From 47d27386c556ec3440ae692e3c764328806db322 Mon Sep 17 00:00:00 2001 From: Marcus Hines Date: Thu, 17 Aug 2017 15:08:49 -0700 Subject: [PATCH 001/238] Update system set package to use streaming rpc Update build files Update gnoi.Path to compliant with gnmi.Path Update simple test to use new path --- test/BUILD.bazel | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 test/BUILD.bazel diff --git a/test/BUILD.bazel b/test/BUILD.bazel new file mode 100644 index 00000000..2b065eeb --- /dev/null +++ b/test/BUILD.bazel @@ -0,0 +1,18 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_test") + +go_test( + name = "simple_test", + size = "small", + srcs = ["simple_test.go"], + deps = [ + "//github.com/golang/protobuf/proto:proto", + "//github.com/openconfig/reference/rpc/gnoi:go_default_library", + "//github.com/openconfig/reference/rpc/gnoi/bgp:go_default_library", + "//github.com/openconfig/reference/rpc/gnoi/cert:go_default_library", + "//github.com/openconfig/reference/rpc/gnoi/file:go_default_library", + "//github.com/openconfig/reference/rpc/gnoi/interface:go_default_library", + "//github.com/openconfig/reference/rpc/gnoi/layer2:go_default_library", + "//github.com/openconfig/reference/rpc/gnoi/mpls:go_default_library", + "//github.com/openconfig/reference/rpc/gnoi/system:go_default_library", + ], +) From 79c5504504702a0e0c9a07d773b48bb1d7346692 Mon Sep 17 00:00:00 2001 From: Marcus Hines Date: Thu, 17 Aug 2017 15:11:38 -0700 Subject: [PATCH 002/238] squash! Update system set package to use streaming rpc Update build files Update gnoi.Path to compliant with gnmi.Path Update simple test to use new path --- file/BUILD.bazel | 6 ++++++ file/file.proto | 4 +++- system/system.proto | 16 +++++++++++----- test/BUILD | 18 ------------------ test/simple_test.go | 12 ++++++++++-- types.proto | 18 +++++++++++++++--- 6 files changed, 45 insertions(+), 29 deletions(-) delete mode 100644 test/BUILD diff --git a/file/BUILD.bazel b/file/BUILD.bazel index 1a9026fa..efe3a090 100644 --- a/file/BUILD.bazel +++ b/file/BUILD.bazel @@ -3,11 +3,17 @@ load("@io_bazel_rules_go//proto:go_proto_library.bzl", "go_proto_library") proto_library( name = "file_proto", srcs = ["file.proto"], + deps = [ + "//github.com/openconfig/reference/rpc/gnoi:go_default_library" + ], ) go_proto_library( name = "go_default_library", srcs = ["file.proto"], + deps = [ + "//github.com/openconfig/reference/rpc/gnoi:go_default_library" + ], visibility = ["//visibility:public"], rules_go_repo_only_for_internal_use = "@", has_services = 1, diff --git a/file/file.proto b/file/file.proto index 650099e3..84553edc 100644 --- a/file/file.proto +++ b/file/file.proto @@ -18,6 +18,8 @@ syntax = "proto3"; package gnoi.file; +import "github.com/openconfig/reference/rpc/gnoi/types.proto"; + service File { // Get read and streams the contents of a file from the target. // The file is streamed by sequential messages, each containing up to @@ -73,7 +75,7 @@ message PutRequest { oneof request { Details open = 1; bytes contents = 2; - bytes checksum = 3; // MD5 checksum of the file. + gnoi.HashType hash = 3; // MD5 checksum of the file. } } diff --git a/system/system.proto b/system/system.proto index 23d78ee1..60df78ee 100644 --- a/system/system.proto +++ b/system/system.proto @@ -47,7 +47,7 @@ service System { // SetPackage places a software package (possibly including bootable images) // on the target. - rpc SetPackage(SetPackageRequest) returns (SetPackageResponse) {} + rpc SetPackage(stream SetPackageRequest) returns (SetPackageResponse) {} // SwitchControlProcessor will switch from the current route processor to the // provided route processor. If the current route processor is the same as the @@ -272,17 +272,23 @@ message TracerouteResponse { // Package defines a single package file to be placed on the target. message Package { string filename = 1; // Destination path and filename of the package. - bytes data = 2; // Contents of the package. - gnoi.HashType hash = 3; // Verification hash of data. string version = 4; // Version of the package. (vendor internal name) bool activate = 5; // For system packages this will take effect after reboot. } // SetPackageRequest will place the package onto the target and optionally mark -// it as the next bootable image. +// it as the next bootable image. The initial message must be a package +// message containing the filename and information about the file. +// The final message must be a hash message contains the hash of the file +// contents. message SetPackageRequest { - repeated Package packages = 1; + oneof request { + Package package = 1; + bytes contents = 2; + gnoi.HashType hash = 3; // Verification hash of data. + } } + message SetPackageResponse { } diff --git a/test/BUILD b/test/BUILD deleted file mode 100644 index 2b065eeb..00000000 --- a/test/BUILD +++ /dev/null @@ -1,18 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_test") - -go_test( - name = "simple_test", - size = "small", - srcs = ["simple_test.go"], - deps = [ - "//github.com/golang/protobuf/proto:proto", - "//github.com/openconfig/reference/rpc/gnoi:go_default_library", - "//github.com/openconfig/reference/rpc/gnoi/bgp:go_default_library", - "//github.com/openconfig/reference/rpc/gnoi/cert:go_default_library", - "//github.com/openconfig/reference/rpc/gnoi/file:go_default_library", - "//github.com/openconfig/reference/rpc/gnoi/interface:go_default_library", - "//github.com/openconfig/reference/rpc/gnoi/layer2:go_default_library", - "//github.com/openconfig/reference/rpc/gnoi/mpls:go_default_library", - "//github.com/openconfig/reference/rpc/gnoi/system:go_default_library", - ], -) diff --git a/test/simple_test.go b/test/simple_test.go index c423f365..d26176fe 100644 --- a/test/simple_test.go +++ b/test/simple_test.go @@ -15,9 +15,17 @@ func TestGNOI(t *testing.T) { in proto.Message want string }{{ - desc: "gnoi", + desc: "gnoi.Path", in: &gnoi.Path{ - Elements: []string{"foo", "path"}, + Origin: "oc", + Elem: []*gnoi.PathElem{{name: "interfaces", key: map[string]string{"name": "Ethernet1/1/0"}}}, + }, + want: "elements: \"foo\"\nelements: \"path\"\n", + }, { + desc: "gnoi.HashType", + in: &gnoi.HashType{ + Method: gnoi.HashMethod_MD5, + Hash: []byte("foo"), }, want: "elements: \"foo\"\nelements: \"path\"\n", }, { diff --git a/types.proto b/types.proto index 5df5735c..3b3ff11f 100644 --- a/types.proto +++ b/types.proto @@ -32,13 +32,25 @@ message HashType { UNSPECIFIED = 0; SHA256 = 1; SHA512 = 2; + MD5 = 3; } HashMethod method = 1; bytes hash = 2; } -// OpenConfig path representation of the target. -// eg. /interfaces/interface[name=et-1/0/0] +// Path encodes a data tree path as a series of repeated strings, with +// each element of the path representing a data tree node name and the +// associated attributes. +// Reference: gNMI Specification Section 2.2.2. message Path { - repeated string elements = 1; + string origin = 2; // Label to disambiguate path. + repeated PathElem elem = 3; // Elements of the path. +} + +// PathElem encodes an element of a gNMI path, along with any attributes (keys) +// that may be associated with it. +// Reference: gNMI Specification Section 2.2.2. +message PathElem { + string name = 1; // The name of the element in the path. + map key = 2; // Map of key (attribute) name to value. } From 27e81f5dbcf900550fda6b4943731c98ca9916cb Mon Sep 17 00:00:00 2001 From: Marcus Hines Date: Thu, 17 Aug 2017 15:18:07 -0700 Subject: [PATCH 003/238] Update to build to use the right gnoi protos update unit tests to pass --- test/BUILD.bazel | 16 ++++++++-------- test/simple_test.go | 13 ++++++------- 2 files changed, 14 insertions(+), 15 deletions(-) diff --git a/test/BUILD.bazel b/test/BUILD.bazel index 2b065eeb..3d53d7a8 100644 --- a/test/BUILD.bazel +++ b/test/BUILD.bazel @@ -6,13 +6,13 @@ go_test( srcs = ["simple_test.go"], deps = [ "//github.com/golang/protobuf/proto:proto", - "//github.com/openconfig/reference/rpc/gnoi:go_default_library", - "//github.com/openconfig/reference/rpc/gnoi/bgp:go_default_library", - "//github.com/openconfig/reference/rpc/gnoi/cert:go_default_library", - "//github.com/openconfig/reference/rpc/gnoi/file:go_default_library", - "//github.com/openconfig/reference/rpc/gnoi/interface:go_default_library", - "//github.com/openconfig/reference/rpc/gnoi/layer2:go_default_library", - "//github.com/openconfig/reference/rpc/gnoi/mpls:go_default_library", - "//github.com/openconfig/reference/rpc/gnoi/system:go_default_library", + "//github.com/openconfig/gnoi:go_default_library", + "//github.com/openconfig/gnoi/bgp:go_default_library", + "//github.com/openconfig/gnoi/cert:go_default_library", + "//github.com/openconfig/gnoi/file:go_default_library", + "//github.com/openconfig/gnoi/interface:go_default_library", + "//github.com/openconfig/gnoi/layer2:go_default_library", + "//github.com/openconfig/gnoi/mpls:go_default_library", + "//github.com/openconfig/gnoi/system:go_default_library", ], ) diff --git a/test/simple_test.go b/test/simple_test.go index d26176fe..5f26dbd6 100644 --- a/test/simple_test.go +++ b/test/simple_test.go @@ -4,9 +4,8 @@ import ( "testing" "github.com/golang/protobuf/proto/proto" - - gnoi "github.com/openconfig/reference/rpc/gnoi" - gbgp "github.com/openconfig/reference/rpc/gnoi/bgp" + "github.com/openconfig/gnoi" + gbgp "github.com/openconfig/gnoi/bgp" ) func TestGNOI(t *testing.T) { @@ -18,16 +17,16 @@ func TestGNOI(t *testing.T) { desc: "gnoi.Path", in: &gnoi.Path{ Origin: "oc", - Elem: []*gnoi.PathElem{{name: "interfaces", key: map[string]string{"name": "Ethernet1/1/0"}}}, + Elem: []*gnoi.PathElem{{Name: "interfaces", Key: map[string]string{"name": "Ethernet1/1/0"}}}, }, - want: "elements: \"foo\"\nelements: \"path\"\n", + want: "origin: \"oc\"\nelem: <\n name: \"interfaces\"\n key: <\n key: \"name\"\n value: \"Ethernet1/1/0\"\n >\n>\n", }, { desc: "gnoi.HashType", in: &gnoi.HashType{ - Method: gnoi.HashMethod_MD5, + Method: gnoi.HashType_MD5, Hash: []byte("foo"), }, - want: "elements: \"foo\"\nelements: \"path\"\n", + want: "method: MD5\nhash: \"foo\"\n", }, { desc: "bgp.ClearBGPNeighborRequest", in: &gbgp.ClearBGPNeighborRequest{ From 95a7614a627f1865baa20025d4e6b1832a7121fe Mon Sep 17 00:00:00 2001 From: Marcus Hines Date: Thu, 17 Aug 2017 16:24:28 -0700 Subject: [PATCH 004/238] squash! Update system set package to use streaming rpc Update build files Update gnoi.Path to compliant with gnmi.Path Update simple test to use new path --- file/BUILD.bazel | 4 ++-- file/file.proto | 16 +++++++--------- layer2/BUILD.bazel | 4 ++-- mpls/BUILD.bazel | 6 ------ system/BUILD.bazel | 4 ++-- system/system.proto | 2 +- 6 files changed, 14 insertions(+), 22 deletions(-) diff --git a/file/BUILD.bazel b/file/BUILD.bazel index efe3a090..27b40159 100644 --- a/file/BUILD.bazel +++ b/file/BUILD.bazel @@ -4,7 +4,7 @@ proto_library( name = "file_proto", srcs = ["file.proto"], deps = [ - "//github.com/openconfig/reference/rpc/gnoi:go_default_library" + "//github.com/openconfig/gnoi:go_default_library" ], ) @@ -12,7 +12,7 @@ go_proto_library( name = "go_default_library", srcs = ["file.proto"], deps = [ - "//github.com/openconfig/reference/rpc/gnoi:go_default_library" + "//github.com/openconfig/gnoi:go_default_library" ], visibility = ["//visibility:public"], rules_go_repo_only_for_internal_use = "@", diff --git a/file/file.proto b/file/file.proto index 84553edc..e83bf8a7 100644 --- a/file/file.proto +++ b/file/file.proto @@ -18,19 +18,19 @@ syntax = "proto3"; package gnoi.file; -import "github.com/openconfig/reference/rpc/gnoi/types.proto"; +import "github.com/openconfig/gnoi/types.proto"; service File { // Get read and streams the contents of a file from the target. // The file is streamed by sequential messages, each containing up to // 64KB of data. A final message is sent prior to closing the stream - // that contains the MD5 checksum of the data sent. An error is returned + // that contains the hash of the data sent. An error is returned // if the file does not exist or there was an error reading the file. rpc Get(GetRequest) returns (stream GetResponse) {} // Put streamd data into a file on the target. The file is sent in // sequential messages, each message containing up to 64KB of data. A final - // message must be sent that includes the MD5 checksum of the data sent. An + // message must be sent that includes the hash of the data sent. An // error is returned if the location does not exist or there is an error // writing the data. If no checksum is received, the target must assume the // the operation is incomplete and remove the partially transmitted file. The @@ -61,8 +61,7 @@ service File { // The contents to be written are streamed through multiple messages using the // contents field. Each message may contain up to 64KB of data. // -// The final message of the RPC contains the MD5 checksum of the data sent in -// hexadecimal ASCII. +// The final message of the RPC contains the hash of the file contents. message PutRequest { message Details { string remote_file = 1; @@ -75,7 +74,7 @@ message PutRequest { oneof request { Details open = 1; bytes contents = 2; - gnoi.HashType hash = 3; // MD5 checksum of the file. + gnoi.HashType hash = 3; // hash of the file. } } @@ -89,12 +88,11 @@ message GetRequest { } // A GetResponse either contains the next set of bytes read from the -// file or, as the last message, the MD5 checksum of the data sent in -// hexadecimal ASCII. +// file or, as the last message, the hash of the data. message GetResponse { oneof response { bytes contents = 1; - string checksum = 2; // MD5 checksum of the file. + gnoi.HashType hash = 2; // hash of the file. } } diff --git a/layer2/BUILD.bazel b/layer2/BUILD.bazel index d0c8f771..9c64d5c4 100644 --- a/layer2/BUILD.bazel +++ b/layer2/BUILD.bazel @@ -4,7 +4,7 @@ proto_library( name = "layer2_proto", srcs = ["layer2.proto"], deps = [ - "//github.com/openconfig/reference/rpc/gnoi:gnoi_proto", + "//github.com/openconfig/gnoi:gnoi_proto", ], ) @@ -12,7 +12,7 @@ go_proto_library( name = "go_default_library", srcs = ["layer2.proto"], deps = [ - "//github.com/openconfig/reference/rpc/gnoi:go_default_library" + "//github.com/openconfig/gnoi:go_default_library" ], visibility = ["//visibility:public"], rules_go_repo_only_for_internal_use = "@", diff --git a/mpls/BUILD.bazel b/mpls/BUILD.bazel index e3c596a0..d11fed74 100644 --- a/mpls/BUILD.bazel +++ b/mpls/BUILD.bazel @@ -3,17 +3,11 @@ load("@io_bazel_rules_go//proto:go_proto_library.bzl", "go_proto_library") proto_library( name = "mpls_proto", srcs = ["mpls.proto"], - deps = [ - "//github.com/openconfig/reference/rpc/gnoi:gnoi_proto", - ], ) go_proto_library( name = "go_default_library", srcs = ["mpls.proto"], - deps = [ - "//github.com/openconfig/reference/rpc/gnoi:go_default_library" - ], visibility = ["//visibility:public"], rules_go_repo_only_for_internal_use = "@", has_services = 1, diff --git a/system/BUILD.bazel b/system/BUILD.bazel index a57a8f47..b891d6e3 100644 --- a/system/BUILD.bazel +++ b/system/BUILD.bazel @@ -4,7 +4,7 @@ proto_library( name = "system_proto", srcs = ["system.proto"], deps = [ - "//github.com/openconfig/reference/rpc/gnoi:gnoi_proto", + "//github.com/openconfig/gnoi:gnoi_proto", ], ) @@ -12,7 +12,7 @@ go_proto_library( name = "go_default_library", srcs = ["system.proto"], deps = [ - "//github.com/openconfig/reference/rpc/gnoi:go_default_library" + "//github.com/openconfig/gnoi:go_default_library" ], visibility = ["//visibility:public"], rules_go_repo_only_for_internal_use = "@", diff --git a/system/system.proto b/system/system.proto index 60df78ee..7c95d323 100644 --- a/system/system.proto +++ b/system/system.proto @@ -24,7 +24,7 @@ syntax = "proto3"; package gnoi.system; -import "github.com/openconfig/reference/rpc/gnoi/types.proto"; +import "github.com/openconfig/gnoi/types.proto"; // The gNOI service is a collection of operational RPC's that allow for the // management of a target outside of the configuration and telemetry pipeline. From a27d51c9b3e4094d00d96919df11b3b5fc8a5800 Mon Sep 17 00:00:00 2001 From: Marcus Hines Date: Thu, 17 Aug 2017 16:14:29 -0700 Subject: [PATCH 005/238] Add generated go files --- README.md | 9 + bgp/bgp.pb.go | 204 +++++ cert/cert.pb.go | 1781 +++++++++++++++++++++++++++++++++++++ interface/interface.pb.go | 311 +++++++ layer2/layer2.pb.go | 593 ++++++++++++ mpls/mpls.pb.go | 772 ++++++++++++++++ system/system.pb.go | 1419 +++++++++++++++++++++++++++++ types.pb.go | 150 ++++ 8 files changed, 5239 insertions(+) create mode 100644 bgp/bgp.pb.go create mode 100644 cert/cert.pb.go create mode 100644 interface/interface.pb.go create mode 100644 layer2/layer2.pb.go create mode 100644 mpls/mpls.pb.go create mode 100644 system/system.pb.go create mode 100644 types.pb.go diff --git a/README.md b/README.md index 7cc20c1f..5d4f7015 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,11 @@ # gNOI - gRPC Network Operations Interface gNOI defines a set of gRPC-based microservices for executing operational commands on network devices. + +# Rebuild *.pb.go files +protoc -I=${GOPATH}/src:${GOPATH}/src/github.com/openconfig/gnoi --go_out=plugins=grpc:. ${GOPATH}/src/github.com/openconfig/gnoi/types.proto +protoc -I=${GOPATH}/src:${GOPATH}/src/github.com/openconfig/gnoi --go_out=plugins=grpc:. ${GOPATH}/src/github.com/openconfig/gnoi/bgp/bgp.proto +protoc -I=${GOPATH}/src:${GOPATH}/src/github.com/openconfig/gnoi --go_out=plugins=grpc:. ${GOPATH}/src/github.com/openconfig/gnoi/cert/cert.proto +protoc -I=${GOPATH}/src:${GOPATH}/src/github.com/openconfig/gnoi --go_out=plugins=grpc:. ${GOPATH}/src/github.com/openconfig/gnoi/interface/interface.proto +protoc -I=${GOPATH}/src:${GOPATH}/src/github.com/openconfig/gnoi --go_out=plugins=grpc:. ${GOPATH}/src/github.com/openconfig/gnoi/layer2/layer2.proto +protoc -I=${GOPATH}/src:${GOPATH}/src/github.com/openconfig/gnoi --go_out=plugins=grpc:. ${GOPATH}/src/github.com/openconfig/gnoi/mpls/mpls.proto +protoc -I=${GOPATH}/src:${GOPATH}/src/github.com/openconfig/gnoi --go_out=plugins=grpc:. ${GOPATH}/src/github.com/openconfig/gnoi/system/system.proto diff --git a/bgp/bgp.pb.go b/bgp/bgp.pb.go new file mode 100644 index 00000000..e98240e4 --- /dev/null +++ b/bgp/bgp.pb.go @@ -0,0 +1,204 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: github.com/openconfig/gnoi/bgp/bgp.proto + +/* +Package gnoi_bgp is a generated protocol buffer package. + +It is generated from these files: + github.com/openconfig/gnoi/bgp/bgp.proto + +It has these top-level messages: + ClearBGPNeighborRequest + ClearBGPNeighborResponse +*/ +package gnoi_bgp + +import proto "github.com/golang/protobuf/proto" +import fmt "fmt" +import math "math" + +import ( + context "golang.org/x/net/context" + grpc "google.golang.org/grpc" +) + +// 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 + +type ClearBGPNeighborRequest_Mode int32 + +const ( + ClearBGPNeighborRequest_SOFT ClearBGPNeighborRequest_Mode = 0 + ClearBGPNeighborRequest_SOFTIN ClearBGPNeighborRequest_Mode = 1 + ClearBGPNeighborRequest_HARD ClearBGPNeighborRequest_Mode = 2 +) + +var ClearBGPNeighborRequest_Mode_name = map[int32]string{ + 0: "SOFT", + 1: "SOFTIN", + 2: "HARD", +} +var ClearBGPNeighborRequest_Mode_value = map[string]int32{ + "SOFT": 0, + "SOFTIN": 1, + "HARD": 2, +} + +func (x ClearBGPNeighborRequest_Mode) String() string { + return proto.EnumName(ClearBGPNeighborRequest_Mode_name, int32(x)) +} +func (ClearBGPNeighborRequest_Mode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor0, []int{0, 0} +} + +type ClearBGPNeighborRequest struct { + Address string `protobuf:"bytes,1,opt,name=address" json:"address,omitempty"` + // Routing instance containing the neighbor. Defaults to the global routing + // table. + RoutingInstance string `protobuf:"bytes,2,opt,name=routing_instance,json=routingInstance" json:"routing_instance,omitempty"` + Mode ClearBGPNeighborRequest_Mode `protobuf:"varint,3,opt,name=mode,enum=gnoi.bgp.ClearBGPNeighborRequest_Mode" json:"mode,omitempty"` +} + +func (m *ClearBGPNeighborRequest) Reset() { *m = ClearBGPNeighborRequest{} } +func (m *ClearBGPNeighborRequest) String() string { return proto.CompactTextString(m) } +func (*ClearBGPNeighborRequest) ProtoMessage() {} +func (*ClearBGPNeighborRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } + +func (m *ClearBGPNeighborRequest) GetAddress() string { + if m != nil { + return m.Address + } + return "" +} + +func (m *ClearBGPNeighborRequest) GetRoutingInstance() string { + if m != nil { + return m.RoutingInstance + } + return "" +} + +func (m *ClearBGPNeighborRequest) GetMode() ClearBGPNeighborRequest_Mode { + if m != nil { + return m.Mode + } + return ClearBGPNeighborRequest_SOFT +} + +type ClearBGPNeighborResponse struct { +} + +func (m *ClearBGPNeighborResponse) Reset() { *m = ClearBGPNeighborResponse{} } +func (m *ClearBGPNeighborResponse) String() string { return proto.CompactTextString(m) } +func (*ClearBGPNeighborResponse) ProtoMessage() {} +func (*ClearBGPNeighborResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } + +func init() { + proto.RegisterType((*ClearBGPNeighborRequest)(nil), "gnoi.bgp.ClearBGPNeighborRequest") + proto.RegisterType((*ClearBGPNeighborResponse)(nil), "gnoi.bgp.ClearBGPNeighborResponse") + proto.RegisterEnum("gnoi.bgp.ClearBGPNeighborRequest_Mode", ClearBGPNeighborRequest_Mode_name, ClearBGPNeighborRequest_Mode_value) +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion4 + +// Client API for BGP service + +type BGPClient interface { + // ClearBGPNeighbor clears a BGP session. + ClearBGPNeighbor(ctx context.Context, in *ClearBGPNeighborRequest, opts ...grpc.CallOption) (*ClearBGPNeighborResponse, error) +} + +type bGPClient struct { + cc *grpc.ClientConn +} + +func NewBGPClient(cc *grpc.ClientConn) BGPClient { + return &bGPClient{cc} +} + +func (c *bGPClient) ClearBGPNeighbor(ctx context.Context, in *ClearBGPNeighborRequest, opts ...grpc.CallOption) (*ClearBGPNeighborResponse, error) { + out := new(ClearBGPNeighborResponse) + err := grpc.Invoke(ctx, "/gnoi.bgp.BGP/ClearBGPNeighbor", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// Server API for BGP service + +type BGPServer interface { + // ClearBGPNeighbor clears a BGP session. + ClearBGPNeighbor(context.Context, *ClearBGPNeighborRequest) (*ClearBGPNeighborResponse, error) +} + +func RegisterBGPServer(s *grpc.Server, srv BGPServer) { + s.RegisterService(&_BGP_serviceDesc, srv) +} + +func _BGP_ClearBGPNeighbor_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ClearBGPNeighborRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(BGPServer).ClearBGPNeighbor(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gnoi.bgp.BGP/ClearBGPNeighbor", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(BGPServer).ClearBGPNeighbor(ctx, req.(*ClearBGPNeighborRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _BGP_serviceDesc = grpc.ServiceDesc{ + ServiceName: "gnoi.bgp.BGP", + HandlerType: (*BGPServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "ClearBGPNeighbor", + Handler: _BGP_ClearBGPNeighbor_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "github.com/openconfig/gnoi/bgp/bgp.proto", +} + +func init() { proto.RegisterFile("github.com/openconfig/gnoi/bgp/bgp.proto", fileDescriptor0) } + +var fileDescriptor0 = []byte{ + // 254 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x90, 0x31, 0x4f, 0xc3, 0x30, + 0x10, 0x85, 0x9b, 0x36, 0x2a, 0xe5, 0x06, 0x88, 0xbc, 0x10, 0x75, 0x2a, 0x19, 0xaa, 0xb0, 0x38, + 0x52, 0xd9, 0xd8, 0x28, 0x88, 0xd2, 0x81, 0x52, 0x05, 0x36, 0x06, 0x14, 0x27, 0x87, 0x6b, 0x89, + 0xfa, 0x8c, 0xed, 0xfc, 0x41, 0x7e, 0x19, 0x72, 0x68, 0x17, 0x10, 0x74, 0x38, 0xe9, 0xde, 0xa7, + 0x77, 0xf7, 0x4e, 0x07, 0xb9, 0x54, 0x7e, 0xd3, 0x0a, 0x5e, 0xd3, 0xb6, 0x20, 0x83, 0xba, 0x26, + 0xfd, 0xa6, 0x64, 0x21, 0x35, 0xa9, 0x42, 0x48, 0x13, 0x8a, 0x1b, 0x4b, 0x9e, 0xd8, 0x28, 0x30, + 0x2e, 0xa4, 0xc9, 0x3e, 0x23, 0x38, 0xbb, 0x79, 0xc7, 0xca, 0xce, 0x17, 0xeb, 0x15, 0x2a, 0xb9, + 0x11, 0x64, 0x4b, 0xfc, 0x68, 0xd1, 0x79, 0x96, 0xc2, 0x51, 0xd5, 0x34, 0x16, 0x9d, 0x4b, 0xa3, + 0x49, 0x94, 0x1f, 0x97, 0x7b, 0xc9, 0x2e, 0x20, 0xb1, 0xd4, 0x7a, 0xa5, 0xe5, 0xab, 0xd2, 0xce, + 0x57, 0xba, 0xc6, 0xb4, 0xdf, 0x59, 0x4e, 0x77, 0x7c, 0xb9, 0xc3, 0xec, 0x0a, 0xe2, 0x2d, 0x35, + 0x98, 0x0e, 0x26, 0x51, 0x7e, 0x32, 0x9b, 0xf2, 0x7d, 0x32, 0xff, 0x23, 0x95, 0x3f, 0x50, 0x83, + 0x65, 0x37, 0x93, 0x4d, 0x21, 0x0e, 0x8a, 0x8d, 0x20, 0x7e, 0x7a, 0xbc, 0x7b, 0x4e, 0x7a, 0x0c, + 0x60, 0x18, 0xba, 0xe5, 0x2a, 0x89, 0x02, 0xbd, 0xbf, 0x2e, 0x6f, 0x93, 0x7e, 0x36, 0x86, 0xf4, + 0xf7, 0x36, 0x67, 0x48, 0x3b, 0x9c, 0x09, 0x18, 0xcc, 0x17, 0x6b, 0xf6, 0x02, 0xc9, 0x4f, 0x0b, + 0x3b, 0x3f, 0x78, 0xcc, 0x38, 0xfb, 0xcf, 0xf2, 0x9d, 0x90, 0xf5, 0xc4, 0xb0, 0xfb, 0xea, 0xe5, + 0x57, 0x00, 0x00, 0x00, 0xff, 0xff, 0x02, 0xe1, 0xbb, 0xd9, 0x81, 0x01, 0x00, 0x00, +} diff --git a/cert/cert.pb.go b/cert/cert.pb.go new file mode 100644 index 00000000..66e2809d --- /dev/null +++ b/cert/cert.pb.go @@ -0,0 +1,1781 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: github.com/openconfig/gnoi/cert/cert.proto + +/* +Package gnoi_certificate is a generated protocol buffer package. + +It is generated from these files: + github.com/openconfig/gnoi/cert/cert.proto + +It has these top-level messages: + RotateCertificateRequest + RotateCertificateResponse + InstallCertificateRequest + InstallCertificateResponse + GenerateCSRRequest + CSRParams + GenerateCSRResponse + LoadCertificateRequest + LoadCertificateResponse + FinalizeRequest + GetCertificatesRequest + GetCertificatesResponse + CertificateInfo + RevokeCertificatesRequest + RevokeCertificatesResponse + CertificateRevocationError + CanGenerateCSRRequest + CanGenerateCSRResponse + Certificate + CSR + KeyPair + Endpoint +*/ +package gnoi_certificate + +import proto "github.com/golang/protobuf/proto" +import fmt "fmt" +import math "math" + +import ( + context "golang.org/x/net/context" + grpc "google.golang.org/grpc" +) + +// 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 + +// Types of certificates. +type CertificateType int32 + +const ( + // 1 - 500 for public use. + // 501 onwards for private use. + CertificateType_CT_UNKNOWN CertificateType = 0 + CertificateType_CT_X509 CertificateType = 1 +) + +var CertificateType_name = map[int32]string{ + 0: "CT_UNKNOWN", + 1: "CT_X509", +} +var CertificateType_value = map[string]int32{ + "CT_UNKNOWN": 0, + "CT_X509": 1, +} + +func (x CertificateType) String() string { + return proto.EnumName(CertificateType_name, int32(x)) +} +func (CertificateType) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } + +// Algorithm to be used for generation the key pair. +type KeyType int32 + +const ( + // 1 - 500, for known types. + // 501 and onwards for private use. + KeyType_KT_UNKNOWN KeyType = 0 + KeyType_KT_RSA KeyType = 1 +) + +var KeyType_name = map[int32]string{ + 0: "KT_UNKNOWN", + 1: "KT_RSA", +} +var KeyType_value = map[string]int32{ + "KT_UNKNOWN": 0, + "KT_RSA": 1, +} + +func (x KeyType) String() string { + return proto.EnumName(KeyType_name, int32(x)) +} +func (KeyType) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } + +// Type of endpoint that can use a cert. This list is to be extended based on +// conversation with vendors. +type Endpoint_Type int32 + +const ( + Endpoint_EP_UNSPECIFIED Endpoint_Type = 0 + Endpoint_EP_IPSEC_TUNNEL Endpoint_Type = 1 + Endpoint_EP_DAEMON Endpoint_Type = 2 +) + +var Endpoint_Type_name = map[int32]string{ + 0: "EP_UNSPECIFIED", + 1: "EP_IPSEC_TUNNEL", + 2: "EP_DAEMON", +} +var Endpoint_Type_value = map[string]int32{ + "EP_UNSPECIFIED": 0, + "EP_IPSEC_TUNNEL": 1, + "EP_DAEMON": 2, +} + +func (x Endpoint_Type) String() string { + return proto.EnumName(Endpoint_Type_name, int32(x)) +} +func (Endpoint_Type) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{21, 0} } + +// Request messages to rotate existing certificates on the target. +type RotateCertificateRequest struct { + // Request Messages. + // + // Types that are valid to be assigned to RotateRequest: + // *RotateCertificateRequest_GenerateCsr + // *RotateCertificateRequest_LoadCertificate + // *RotateCertificateRequest_FinalizeRotation + RotateRequest isRotateCertificateRequest_RotateRequest `protobuf_oneof:"rotate_request"` +} + +func (m *RotateCertificateRequest) Reset() { *m = RotateCertificateRequest{} } +func (m *RotateCertificateRequest) String() string { return proto.CompactTextString(m) } +func (*RotateCertificateRequest) ProtoMessage() {} +func (*RotateCertificateRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } + +type isRotateCertificateRequest_RotateRequest interface { + isRotateCertificateRequest_RotateRequest() +} + +type RotateCertificateRequest_GenerateCsr struct { + GenerateCsr *GenerateCSRRequest `protobuf:"bytes,1,opt,name=generate_csr,json=generateCsr,oneof"` +} +type RotateCertificateRequest_LoadCertificate struct { + LoadCertificate *LoadCertificateRequest `protobuf:"bytes,2,opt,name=load_certificate,json=loadCertificate,oneof"` +} +type RotateCertificateRequest_FinalizeRotation struct { + FinalizeRotation *FinalizeRequest `protobuf:"bytes,3,opt,name=finalize_rotation,json=finalizeRotation,oneof"` +} + +func (*RotateCertificateRequest_GenerateCsr) isRotateCertificateRequest_RotateRequest() {} +func (*RotateCertificateRequest_LoadCertificate) isRotateCertificateRequest_RotateRequest() {} +func (*RotateCertificateRequest_FinalizeRotation) isRotateCertificateRequest_RotateRequest() {} + +func (m *RotateCertificateRequest) GetRotateRequest() isRotateCertificateRequest_RotateRequest { + if m != nil { + return m.RotateRequest + } + return nil +} + +func (m *RotateCertificateRequest) GetGenerateCsr() *GenerateCSRRequest { + if x, ok := m.GetRotateRequest().(*RotateCertificateRequest_GenerateCsr); ok { + return x.GenerateCsr + } + return nil +} + +func (m *RotateCertificateRequest) GetLoadCertificate() *LoadCertificateRequest { + if x, ok := m.GetRotateRequest().(*RotateCertificateRequest_LoadCertificate); ok { + return x.LoadCertificate + } + return nil +} + +func (m *RotateCertificateRequest) GetFinalizeRotation() *FinalizeRequest { + if x, ok := m.GetRotateRequest().(*RotateCertificateRequest_FinalizeRotation); ok { + return x.FinalizeRotation + } + return nil +} + +// XXX_OneofFuncs is for the internal use of the proto package. +func (*RotateCertificateRequest) 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 _RotateCertificateRequest_OneofMarshaler, _RotateCertificateRequest_OneofUnmarshaler, _RotateCertificateRequest_OneofSizer, []interface{}{ + (*RotateCertificateRequest_GenerateCsr)(nil), + (*RotateCertificateRequest_LoadCertificate)(nil), + (*RotateCertificateRequest_FinalizeRotation)(nil), + } +} + +func _RotateCertificateRequest_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*RotateCertificateRequest) + // rotate_request + switch x := m.RotateRequest.(type) { + case *RotateCertificateRequest_GenerateCsr: + b.EncodeVarint(1<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.GenerateCsr); err != nil { + return err + } + case *RotateCertificateRequest_LoadCertificate: + b.EncodeVarint(2<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.LoadCertificate); err != nil { + return err + } + case *RotateCertificateRequest_FinalizeRotation: + b.EncodeVarint(3<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.FinalizeRotation); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("RotateCertificateRequest.RotateRequest has unexpected type %T", x) + } + return nil +} + +func _RotateCertificateRequest_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*RotateCertificateRequest) + switch tag { + case 1: // rotate_request.generate_csr + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(GenerateCSRRequest) + err := b.DecodeMessage(msg) + m.RotateRequest = &RotateCertificateRequest_GenerateCsr{msg} + return true, err + case 2: // rotate_request.load_certificate + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(LoadCertificateRequest) + err := b.DecodeMessage(msg) + m.RotateRequest = &RotateCertificateRequest_LoadCertificate{msg} + return true, err + case 3: // rotate_request.finalize_rotation + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(FinalizeRequest) + err := b.DecodeMessage(msg) + m.RotateRequest = &RotateCertificateRequest_FinalizeRotation{msg} + return true, err + default: + return false, nil + } +} + +func _RotateCertificateRequest_OneofSizer(msg proto.Message) (n int) { + m := msg.(*RotateCertificateRequest) + // rotate_request + switch x := m.RotateRequest.(type) { + case *RotateCertificateRequest_GenerateCsr: + s := proto.Size(x.GenerateCsr) + n += proto.SizeVarint(1<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *RotateCertificateRequest_LoadCertificate: + s := proto.Size(x.LoadCertificate) + n += proto.SizeVarint(2<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *RotateCertificateRequest_FinalizeRotation: + s := proto.Size(x.FinalizeRotation) + n += proto.SizeVarint(3<<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 +} + +// Response Messages from the target. +type RotateCertificateResponse struct { + // Response messages. + // + // Types that are valid to be assigned to RotateResponse: + // *RotateCertificateResponse_GeneratedCsr + // *RotateCertificateResponse_LoadCertificate + RotateResponse isRotateCertificateResponse_RotateResponse `protobuf_oneof:"rotate_response"` +} + +func (m *RotateCertificateResponse) Reset() { *m = RotateCertificateResponse{} } +func (m *RotateCertificateResponse) String() string { return proto.CompactTextString(m) } +func (*RotateCertificateResponse) ProtoMessage() {} +func (*RotateCertificateResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } + +type isRotateCertificateResponse_RotateResponse interface { + isRotateCertificateResponse_RotateResponse() +} + +type RotateCertificateResponse_GeneratedCsr struct { + GeneratedCsr *GenerateCSRResponse `protobuf:"bytes,1,opt,name=generated_csr,json=generatedCsr,oneof"` +} +type RotateCertificateResponse_LoadCertificate struct { + LoadCertificate *LoadCertificateResponse `protobuf:"bytes,2,opt,name=load_certificate,json=loadCertificate,oneof"` +} + +func (*RotateCertificateResponse_GeneratedCsr) isRotateCertificateResponse_RotateResponse() {} +func (*RotateCertificateResponse_LoadCertificate) isRotateCertificateResponse_RotateResponse() {} + +func (m *RotateCertificateResponse) GetRotateResponse() isRotateCertificateResponse_RotateResponse { + if m != nil { + return m.RotateResponse + } + return nil +} + +func (m *RotateCertificateResponse) GetGeneratedCsr() *GenerateCSRResponse { + if x, ok := m.GetRotateResponse().(*RotateCertificateResponse_GeneratedCsr); ok { + return x.GeneratedCsr + } + return nil +} + +func (m *RotateCertificateResponse) GetLoadCertificate() *LoadCertificateResponse { + if x, ok := m.GetRotateResponse().(*RotateCertificateResponse_LoadCertificate); ok { + return x.LoadCertificate + } + return nil +} + +// XXX_OneofFuncs is for the internal use of the proto package. +func (*RotateCertificateResponse) 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 _RotateCertificateResponse_OneofMarshaler, _RotateCertificateResponse_OneofUnmarshaler, _RotateCertificateResponse_OneofSizer, []interface{}{ + (*RotateCertificateResponse_GeneratedCsr)(nil), + (*RotateCertificateResponse_LoadCertificate)(nil), + } +} + +func _RotateCertificateResponse_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*RotateCertificateResponse) + // rotate_response + switch x := m.RotateResponse.(type) { + case *RotateCertificateResponse_GeneratedCsr: + b.EncodeVarint(1<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.GeneratedCsr); err != nil { + return err + } + case *RotateCertificateResponse_LoadCertificate: + b.EncodeVarint(2<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.LoadCertificate); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("RotateCertificateResponse.RotateResponse has unexpected type %T", x) + } + return nil +} + +func _RotateCertificateResponse_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*RotateCertificateResponse) + switch tag { + case 1: // rotate_response.generated_csr + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(GenerateCSRResponse) + err := b.DecodeMessage(msg) + m.RotateResponse = &RotateCertificateResponse_GeneratedCsr{msg} + return true, err + case 2: // rotate_response.load_certificate + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(LoadCertificateResponse) + err := b.DecodeMessage(msg) + m.RotateResponse = &RotateCertificateResponse_LoadCertificate{msg} + return true, err + default: + return false, nil + } +} + +func _RotateCertificateResponse_OneofSizer(msg proto.Message) (n int) { + m := msg.(*RotateCertificateResponse) + // rotate_response + switch x := m.RotateResponse.(type) { + case *RotateCertificateResponse_GeneratedCsr: + s := proto.Size(x.GeneratedCsr) + n += proto.SizeVarint(1<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *RotateCertificateResponse_LoadCertificate: + s := proto.Size(x.LoadCertificate) + n += proto.SizeVarint(2<<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 +} + +// Request messages to install new certificates on the target. +type InstallCertificateRequest struct { + // Request Messages. + // + // Types that are valid to be assigned to InstallRequest: + // *InstallCertificateRequest_GenerateCsr + // *InstallCertificateRequest_LoadCertificate + InstallRequest isInstallCertificateRequest_InstallRequest `protobuf_oneof:"install_request"` +} + +func (m *InstallCertificateRequest) Reset() { *m = InstallCertificateRequest{} } +func (m *InstallCertificateRequest) String() string { return proto.CompactTextString(m) } +func (*InstallCertificateRequest) ProtoMessage() {} +func (*InstallCertificateRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} } + +type isInstallCertificateRequest_InstallRequest interface { + isInstallCertificateRequest_InstallRequest() +} + +type InstallCertificateRequest_GenerateCsr struct { + GenerateCsr *GenerateCSRRequest `protobuf:"bytes,1,opt,name=generate_csr,json=generateCsr,oneof"` +} +type InstallCertificateRequest_LoadCertificate struct { + LoadCertificate *LoadCertificateRequest `protobuf:"bytes,2,opt,name=load_certificate,json=loadCertificate,oneof"` +} + +func (*InstallCertificateRequest_GenerateCsr) isInstallCertificateRequest_InstallRequest() {} +func (*InstallCertificateRequest_LoadCertificate) isInstallCertificateRequest_InstallRequest() {} + +func (m *InstallCertificateRequest) GetInstallRequest() isInstallCertificateRequest_InstallRequest { + if m != nil { + return m.InstallRequest + } + return nil +} + +func (m *InstallCertificateRequest) GetGenerateCsr() *GenerateCSRRequest { + if x, ok := m.GetInstallRequest().(*InstallCertificateRequest_GenerateCsr); ok { + return x.GenerateCsr + } + return nil +} + +func (m *InstallCertificateRequest) GetLoadCertificate() *LoadCertificateRequest { + if x, ok := m.GetInstallRequest().(*InstallCertificateRequest_LoadCertificate); ok { + return x.LoadCertificate + } + return nil +} + +// XXX_OneofFuncs is for the internal use of the proto package. +func (*InstallCertificateRequest) 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 _InstallCertificateRequest_OneofMarshaler, _InstallCertificateRequest_OneofUnmarshaler, _InstallCertificateRequest_OneofSizer, []interface{}{ + (*InstallCertificateRequest_GenerateCsr)(nil), + (*InstallCertificateRequest_LoadCertificate)(nil), + } +} + +func _InstallCertificateRequest_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*InstallCertificateRequest) + // install_request + switch x := m.InstallRequest.(type) { + case *InstallCertificateRequest_GenerateCsr: + b.EncodeVarint(1<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.GenerateCsr); err != nil { + return err + } + case *InstallCertificateRequest_LoadCertificate: + b.EncodeVarint(2<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.LoadCertificate); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("InstallCertificateRequest.InstallRequest has unexpected type %T", x) + } + return nil +} + +func _InstallCertificateRequest_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*InstallCertificateRequest) + switch tag { + case 1: // install_request.generate_csr + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(GenerateCSRRequest) + err := b.DecodeMessage(msg) + m.InstallRequest = &InstallCertificateRequest_GenerateCsr{msg} + return true, err + case 2: // install_request.load_certificate + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(LoadCertificateRequest) + err := b.DecodeMessage(msg) + m.InstallRequest = &InstallCertificateRequest_LoadCertificate{msg} + return true, err + default: + return false, nil + } +} + +func _InstallCertificateRequest_OneofSizer(msg proto.Message) (n int) { + m := msg.(*InstallCertificateRequest) + // install_request + switch x := m.InstallRequest.(type) { + case *InstallCertificateRequest_GenerateCsr: + s := proto.Size(x.GenerateCsr) + n += proto.SizeVarint(1<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *InstallCertificateRequest_LoadCertificate: + s := proto.Size(x.LoadCertificate) + n += proto.SizeVarint(2<<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 +} + +// Response Messages from the target for the InstallCertificateRequest. +type InstallCertificateResponse struct { + // Response messages. + // + // Types that are valid to be assigned to InstallResponse: + // *InstallCertificateResponse_GeneratedCsr + // *InstallCertificateResponse_LoadCertificate + InstallResponse isInstallCertificateResponse_InstallResponse `protobuf_oneof:"install_response"` +} + +func (m *InstallCertificateResponse) Reset() { *m = InstallCertificateResponse{} } +func (m *InstallCertificateResponse) String() string { return proto.CompactTextString(m) } +func (*InstallCertificateResponse) ProtoMessage() {} +func (*InstallCertificateResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} } + +type isInstallCertificateResponse_InstallResponse interface { + isInstallCertificateResponse_InstallResponse() +} + +type InstallCertificateResponse_GeneratedCsr struct { + GeneratedCsr *GenerateCSRResponse `protobuf:"bytes,1,opt,name=generated_csr,json=generatedCsr,oneof"` +} +type InstallCertificateResponse_LoadCertificate struct { + LoadCertificate *LoadCertificateResponse `protobuf:"bytes,2,opt,name=load_certificate,json=loadCertificate,oneof"` +} + +func (*InstallCertificateResponse_GeneratedCsr) isInstallCertificateResponse_InstallResponse() {} +func (*InstallCertificateResponse_LoadCertificate) isInstallCertificateResponse_InstallResponse() {} + +func (m *InstallCertificateResponse) GetInstallResponse() isInstallCertificateResponse_InstallResponse { + if m != nil { + return m.InstallResponse + } + return nil +} + +func (m *InstallCertificateResponse) GetGeneratedCsr() *GenerateCSRResponse { + if x, ok := m.GetInstallResponse().(*InstallCertificateResponse_GeneratedCsr); ok { + return x.GeneratedCsr + } + return nil +} + +func (m *InstallCertificateResponse) GetLoadCertificate() *LoadCertificateResponse { + if x, ok := m.GetInstallResponse().(*InstallCertificateResponse_LoadCertificate); ok { + return x.LoadCertificate + } + return nil +} + +// XXX_OneofFuncs is for the internal use of the proto package. +func (*InstallCertificateResponse) 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 _InstallCertificateResponse_OneofMarshaler, _InstallCertificateResponse_OneofUnmarshaler, _InstallCertificateResponse_OneofSizer, []interface{}{ + (*InstallCertificateResponse_GeneratedCsr)(nil), + (*InstallCertificateResponse_LoadCertificate)(nil), + } +} + +func _InstallCertificateResponse_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*InstallCertificateResponse) + // install_response + switch x := m.InstallResponse.(type) { + case *InstallCertificateResponse_GeneratedCsr: + b.EncodeVarint(1<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.GeneratedCsr); err != nil { + return err + } + case *InstallCertificateResponse_LoadCertificate: + b.EncodeVarint(2<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.LoadCertificate); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("InstallCertificateResponse.InstallResponse has unexpected type %T", x) + } + return nil +} + +func _InstallCertificateResponse_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*InstallCertificateResponse) + switch tag { + case 1: // install_response.generated_csr + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(GenerateCSRResponse) + err := b.DecodeMessage(msg) + m.InstallResponse = &InstallCertificateResponse_GeneratedCsr{msg} + return true, err + case 2: // install_response.load_certificate + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(LoadCertificateResponse) + err := b.DecodeMessage(msg) + m.InstallResponse = &InstallCertificateResponse_LoadCertificate{msg} + return true, err + default: + return false, nil + } +} + +func _InstallCertificateResponse_OneofSizer(msg proto.Message) (n int) { + m := msg.(*InstallCertificateResponse) + // install_response + switch x := m.InstallResponse.(type) { + case *InstallCertificateResponse_GeneratedCsr: + s := proto.Size(x.GeneratedCsr) + n += proto.SizeVarint(1<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *InstallCertificateResponse_LoadCertificate: + s := proto.Size(x.LoadCertificate) + n += proto.SizeVarint(2<<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 +} + +// Request to generate the CSR. +// When this request is made for rotating an existing certificate as part of the +// Rotate() RPC, then the target must ensure that the "certificate_id" is +// already created and exists on the target. If the Certificate Rotation +// proceeds to load the certificate, it must associate the new certificate with +// the previously created "certificate_id". +// +// When this request is made for installing a completely new certificate as part +// of the Install() RPC , then the target must ensure that the "certificate_id" +// is completely new and no entities on the target are should be bound to this +// certificate_id. If any existing certificate matches the certificate_id, then +// this request should fail. +// +// If there is another ongoing Rotate/Install RPC with the same certificate_id, +// the GenerateCSRRequest should fail. +type GenerateCSRRequest struct { + // Parameters for creating a CSR. + CsrParams *CSRParams `protobuf:"bytes,1,opt,name=csr_params,json=csrParams" json:"csr_params,omitempty"` + // The certificate id with which this CSR will be associated. The target + // configuration should bind an entity which wants to use a certificate to + // the certificate_id it should use. + CertificateId string `protobuf:"bytes,2,opt,name=certificate_id,json=certificateId" json:"certificate_id,omitempty"` +} + +func (m *GenerateCSRRequest) Reset() { *m = GenerateCSRRequest{} } +func (m *GenerateCSRRequest) String() string { return proto.CompactTextString(m) } +func (*GenerateCSRRequest) ProtoMessage() {} +func (*GenerateCSRRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} } + +func (m *GenerateCSRRequest) GetCsrParams() *CSRParams { + if m != nil { + return m.CsrParams + } + return nil +} + +func (m *GenerateCSRRequest) GetCertificateId() string { + if m != nil { + return m.CertificateId + } + return "" +} + +// Parameters to be used when generating a Certificate Signing Request. +type CSRParams struct { + // The type of certificate which will be will be associated for this CSR. + Type CertificateType `protobuf:"varint,1,opt,name=type,enum=gnoi.certificate.CertificateType" json:"type,omitempty"` + // Minimum size of the key to be used by the target when generating a + // public/private key pair. + MinKeySize uint32 `protobuf:"varint,2,opt,name=min_key_size,json=minKeySize" json:"min_key_size,omitempty"` + // If provided, the target must use the provided key type. If the target + // cannot use the algorithm specified in the key_type, it should cancel the + // stream with an Unimplemented error. + KeyType KeyType `protobuf:"varint,3,opt,name=key_type,json=keyType,enum=gnoi.certificate.KeyType" json:"key_type,omitempty"` + // --- common set of parameters applicable for any type of certificate --- // + CommonName string `protobuf:"bytes,4,opt,name=common_name,json=commonName" json:"common_name,omitempty"` + Country string `protobuf:"bytes,5,opt,name=country" json:"country,omitempty"` + State string `protobuf:"bytes,6,opt,name=state" json:"state,omitempty"` + City string `protobuf:"bytes,7,opt,name=city" json:"city,omitempty"` + Organization string `protobuf:"bytes,8,opt,name=organization" json:"organization,omitempty"` + OrganizationalUnit string `protobuf:"bytes,9,opt,name=organizational_unit,json=organizationalUnit" json:"organizational_unit,omitempty"` + IpAddress string `protobuf:"bytes,10,opt,name=ip_address,json=ipAddress" json:"ip_address,omitempty"` + EmailId string `protobuf:"bytes,11,opt,name=email_id,json=emailId" json:"email_id,omitempty"` +} + +func (m *CSRParams) Reset() { *m = CSRParams{} } +func (m *CSRParams) String() string { return proto.CompactTextString(m) } +func (*CSRParams) ProtoMessage() {} +func (*CSRParams) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} } + +func (m *CSRParams) GetType() CertificateType { + if m != nil { + return m.Type + } + return CertificateType_CT_UNKNOWN +} + +func (m *CSRParams) GetMinKeySize() uint32 { + if m != nil { + return m.MinKeySize + } + return 0 +} + +func (m *CSRParams) GetKeyType() KeyType { + if m != nil { + return m.KeyType + } + return KeyType_KT_UNKNOWN +} + +func (m *CSRParams) GetCommonName() string { + if m != nil { + return m.CommonName + } + return "" +} + +func (m *CSRParams) GetCountry() string { + if m != nil { + return m.Country + } + return "" +} + +func (m *CSRParams) GetState() string { + if m != nil { + return m.State + } + return "" +} + +func (m *CSRParams) GetCity() string { + if m != nil { + return m.City + } + return "" +} + +func (m *CSRParams) GetOrganization() string { + if m != nil { + return m.Organization + } + return "" +} + +func (m *CSRParams) GetOrganizationalUnit() string { + if m != nil { + return m.OrganizationalUnit + } + return "" +} + +func (m *CSRParams) GetIpAddress() string { + if m != nil { + return m.IpAddress + } + return "" +} + +func (m *CSRParams) GetEmailId() string { + if m != nil { + return m.EmailId + } + return "" +} + +// GenerateCSRResponse contains the CSR associated with the Certificate ID +// supplied in the GenerateCSRRequest. When a Certificate is subsequently +// installed on the target in the same streaming RPC session, it must be +// associated to that Certificate ID. +// +// An Unimplemented error will be returned if the target cannot generate a CSR +// as per the request. In this case, the caller must generate its own key pair. +type GenerateCSRResponse struct { + Csr *CSR `protobuf:"bytes,1,opt,name=csr" json:"csr,omitempty"` +} + +func (m *GenerateCSRResponse) Reset() { *m = GenerateCSRResponse{} } +func (m *GenerateCSRResponse) String() string { return proto.CompactTextString(m) } +func (*GenerateCSRResponse) ProtoMessage() {} +func (*GenerateCSRResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} } + +func (m *GenerateCSRResponse) GetCsr() *CSR { + if m != nil { + return m.Csr + } + return nil +} + +// LoadCertificateRequest instructs the target to store the given certificate. +// +// Case 1: Target Generated CSR and Key Pair. +// If the target generated the CSR (and the public/private key pair) during the +// GenerateCSR request, then the target must associate the certificate with the +// certificate ID specified in the preceding GenerateCSR request. +// +// Case 2: Externally Generated Key Pair. +// If the target can not generate a CSR, then the public/private key pair is +// generated externally. In this case provide the target with the key pair, +// and the certificate_id to be associated with the new certificate. +// +// If there is another ongoing Rotate/Install RPC with the same certificate_id, +// the LoadCertificateRequest must fail. +type LoadCertificateRequest struct { + // The certificate to be Loaded on the target. + Certificate *Certificate `protobuf:"bytes,1,opt,name=certificate" json:"certificate,omitempty"` + // The key pair to be used with the certificate. This is provided in the event + // that the target cannot generate a CSR (and the corresponding public/private + // keys). + KeyPair *KeyPair `protobuf:"bytes,2,opt,name=key_pair,json=keyPair" json:"key_pair,omitempty"` + // Certificate Id of the above certificate. This is to be provided only when + // there is an externally generated key pair. + CertificateId string `protobuf:"bytes,3,opt,name=certificate_id,json=certificateId" json:"certificate_id,omitempty"` +} + +func (m *LoadCertificateRequest) Reset() { *m = LoadCertificateRequest{} } +func (m *LoadCertificateRequest) String() string { return proto.CompactTextString(m) } +func (*LoadCertificateRequest) ProtoMessage() {} +func (*LoadCertificateRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} } + +func (m *LoadCertificateRequest) GetCertificate() *Certificate { + if m != nil { + return m.Certificate + } + return nil +} + +func (m *LoadCertificateRequest) GetKeyPair() *KeyPair { + if m != nil { + return m.KeyPair + } + return nil +} + +func (m *LoadCertificateRequest) GetCertificateId() string { + if m != nil { + return m.CertificateId + } + return "" +} + +// Response from target after Loading a Certificate. +// If the target could not load the certificate, it must end the RPC stream with +// a suitable RPC error about why the Certificate was not loaded. +type LoadCertificateResponse struct { +} + +func (m *LoadCertificateResponse) Reset() { *m = LoadCertificateResponse{} } +func (m *LoadCertificateResponse) String() string { return proto.CompactTextString(m) } +func (*LoadCertificateResponse) ProtoMessage() {} +func (*LoadCertificateResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} } + +// A Finalize message is sent to the target to confirm the Rotation of +// the certificate and that the certificate should not be rolled back when +// the RPC concludes. The certificate must be rolled back if the target returns +// an error after receiving a Finalize message. +type FinalizeRequest struct { +} + +func (m *FinalizeRequest) Reset() { *m = FinalizeRequest{} } +func (m *FinalizeRequest) String() string { return proto.CompactTextString(m) } +func (*FinalizeRequest) ProtoMessage() {} +func (*FinalizeRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{9} } + +// The request to query all the certificates on the target. +type GetCertificatesRequest struct { +} + +func (m *GetCertificatesRequest) Reset() { *m = GetCertificatesRequest{} } +func (m *GetCertificatesRequest) String() string { return proto.CompactTextString(m) } +func (*GetCertificatesRequest) ProtoMessage() {} +func (*GetCertificatesRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{10} } + +// Response from the target about the certificates that exist on the target what +// what is using them. +type GetCertificatesResponse struct { + CertificateInfo []*CertificateInfo `protobuf:"bytes,1,rep,name=certificate_info,json=certificateInfo" json:"certificate_info,omitempty"` +} + +func (m *GetCertificatesResponse) Reset() { *m = GetCertificatesResponse{} } +func (m *GetCertificatesResponse) String() string { return proto.CompactTextString(m) } +func (*GetCertificatesResponse) ProtoMessage() {} +func (*GetCertificatesResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{11} } + +func (m *GetCertificatesResponse) GetCertificateInfo() []*CertificateInfo { + if m != nil { + return m.CertificateInfo + } + return nil +} + +type CertificateInfo struct { + CertificateId string `protobuf:"bytes,1,opt,name=certificate_id,json=certificateId" json:"certificate_id,omitempty"` + Certificate *Certificate `protobuf:"bytes,2,opt,name=certificate" json:"certificate,omitempty"` + // List of endpoints using this certificate. + Endpoints []*Endpoint `protobuf:"bytes,3,rep,name=endpoints" json:"endpoints,omitempty"` + // System modification time when the certificate was installed/rotated in + // nanoseconds since epoch. + ModificationTime int64 `protobuf:"varint,4,opt,name=modification_time,json=modificationTime" json:"modification_time,omitempty"` +} + +func (m *CertificateInfo) Reset() { *m = CertificateInfo{} } +func (m *CertificateInfo) String() string { return proto.CompactTextString(m) } +func (*CertificateInfo) ProtoMessage() {} +func (*CertificateInfo) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{12} } + +func (m *CertificateInfo) GetCertificateId() string { + if m != nil { + return m.CertificateId + } + return "" +} + +func (m *CertificateInfo) GetCertificate() *Certificate { + if m != nil { + return m.Certificate + } + return nil +} + +func (m *CertificateInfo) GetEndpoints() []*Endpoint { + if m != nil { + return m.Endpoints + } + return nil +} + +func (m *CertificateInfo) GetModificationTime() int64 { + if m != nil { + return m.ModificationTime + } + return 0 +} + +type RevokeCertificatesRequest struct { + // Certificates to revoke. + CertificateId []string `protobuf:"bytes,1,rep,name=certificate_id,json=certificateId" json:"certificate_id,omitempty"` +} + +func (m *RevokeCertificatesRequest) Reset() { *m = RevokeCertificatesRequest{} } +func (m *RevokeCertificatesRequest) String() string { return proto.CompactTextString(m) } +func (*RevokeCertificatesRequest) ProtoMessage() {} +func (*RevokeCertificatesRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{13} } + +func (m *RevokeCertificatesRequest) GetCertificateId() []string { + if m != nil { + return m.CertificateId + } + return nil +} + +type RevokeCertificatesResponse struct { + // List of certificates successfully revoked. + RevokedCertificateId []string `protobuf:"bytes,1,rep,name=revoked_certificate_id,json=revokedCertificateId" json:"revoked_certificate_id,omitempty"` + // List of errors why certain certificates could not be revoked. + CertificateRevocationError []*CertificateRevocationError `protobuf:"bytes,2,rep,name=certificate_revocation_error,json=certificateRevocationError" json:"certificate_revocation_error,omitempty"` +} + +func (m *RevokeCertificatesResponse) Reset() { *m = RevokeCertificatesResponse{} } +func (m *RevokeCertificatesResponse) String() string { return proto.CompactTextString(m) } +func (*RevokeCertificatesResponse) ProtoMessage() {} +func (*RevokeCertificatesResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{14} } + +func (m *RevokeCertificatesResponse) GetRevokedCertificateId() []string { + if m != nil { + return m.RevokedCertificateId + } + return nil +} + +func (m *RevokeCertificatesResponse) GetCertificateRevocationError() []*CertificateRevocationError { + if m != nil { + return m.CertificateRevocationError + } + return nil +} + +// An error message indicating why a certificate id could not be revoked. +type CertificateRevocationError struct { + CertificateId string `protobuf:"bytes,1,opt,name=certificate_id,json=certificateId" json:"certificate_id,omitempty"` + ErrorMessage string `protobuf:"bytes,2,opt,name=error_message,json=errorMessage" json:"error_message,omitempty"` +} + +func (m *CertificateRevocationError) Reset() { *m = CertificateRevocationError{} } +func (m *CertificateRevocationError) String() string { return proto.CompactTextString(m) } +func (*CertificateRevocationError) ProtoMessage() {} +func (*CertificateRevocationError) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{15} } + +func (m *CertificateRevocationError) GetCertificateId() string { + if m != nil { + return m.CertificateId + } + return "" +} + +func (m *CertificateRevocationError) GetErrorMessage() string { + if m != nil { + return m.ErrorMessage + } + return "" +} + +// A request to ask the target if it can generate key pairs. +type CanGenerateCSRRequest struct { + KeyType KeyType `protobuf:"varint,1,opt,name=key_type,json=keyType,enum=gnoi.certificate.KeyType" json:"key_type,omitempty"` + CertificateType CertificateType `protobuf:"varint,2,opt,name=certificate_type,json=certificateType,enum=gnoi.certificate.CertificateType" json:"certificate_type,omitempty"` + KeySize uint32 `protobuf:"varint,3,opt,name=key_size,json=keySize" json:"key_size,omitempty"` +} + +func (m *CanGenerateCSRRequest) Reset() { *m = CanGenerateCSRRequest{} } +func (m *CanGenerateCSRRequest) String() string { return proto.CompactTextString(m) } +func (*CanGenerateCSRRequest) ProtoMessage() {} +func (*CanGenerateCSRRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{16} } + +func (m *CanGenerateCSRRequest) GetKeyType() KeyType { + if m != nil { + return m.KeyType + } + return KeyType_KT_UNKNOWN +} + +func (m *CanGenerateCSRRequest) GetCertificateType() CertificateType { + if m != nil { + return m.CertificateType + } + return CertificateType_CT_UNKNOWN +} + +func (m *CanGenerateCSRRequest) GetKeySize() uint32 { + if m != nil { + return m.KeySize + } + return 0 +} + +// Response from the target about whether it can generate a CSR with the given +// parameters. +type CanGenerateCSRResponse struct { + CanGenerate bool `protobuf:"varint,4,opt,name=can_generate,json=canGenerate" json:"can_generate,omitempty"` +} + +func (m *CanGenerateCSRResponse) Reset() { *m = CanGenerateCSRResponse{} } +func (m *CanGenerateCSRResponse) String() string { return proto.CompactTextString(m) } +func (*CanGenerateCSRResponse) ProtoMessage() {} +func (*CanGenerateCSRResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{17} } + +func (m *CanGenerateCSRResponse) GetCanGenerate() bool { + if m != nil { + return m.CanGenerate + } + return false +} + +// A certificate. +type Certificate struct { + // Type of certificate. + Type CertificateType `protobuf:"varint,1,opt,name=type,enum=gnoi.certificate.CertificateType" json:"type,omitempty"` + // Actual certificate. + // The exact encoding depends upon the type of certificate. + // for X509, this should be a PEM encoded Certificate. + Certificate []byte `protobuf:"bytes,2,opt,name=certificate,proto3" json:"certificate,omitempty"` +} + +func (m *Certificate) Reset() { *m = Certificate{} } +func (m *Certificate) String() string { return proto.CompactTextString(m) } +func (*Certificate) ProtoMessage() {} +func (*Certificate) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{18} } + +func (m *Certificate) GetType() CertificateType { + if m != nil { + return m.Type + } + return CertificateType_CT_UNKNOWN +} + +func (m *Certificate) GetCertificate() []byte { + if m != nil { + return m.Certificate + } + return nil +} + +// A Certificate Signing Request. +type CSR struct { + // Type of certificate. + Type CertificateType `protobuf:"varint,1,opt,name=type,enum=gnoi.certificate.CertificateType" json:"type,omitempty"` + // Bytes representing the CSR. + // The exact encoding depends upon the type of certificate requested. + // for X509: This should be the PEM encoded CSR. + Csr []byte `protobuf:"bytes,2,opt,name=csr,proto3" json:"csr,omitempty"` +} + +func (m *CSR) Reset() { *m = CSR{} } +func (m *CSR) String() string { return proto.CompactTextString(m) } +func (*CSR) ProtoMessage() {} +func (*CSR) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{19} } + +func (m *CSR) GetType() CertificateType { + if m != nil { + return m.Type + } + return CertificateType_CT_UNKNOWN +} + +func (m *CSR) GetCsr() []byte { + if m != nil { + return m.Csr + } + return nil +} + +// A message representing a pair of public/private keys. +type KeyPair struct { + PrivateKey []byte `protobuf:"bytes,1,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"` + PublicKey []byte `protobuf:"bytes,2,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` +} + +func (m *KeyPair) Reset() { *m = KeyPair{} } +func (m *KeyPair) String() string { return proto.CompactTextString(m) } +func (*KeyPair) ProtoMessage() {} +func (*KeyPair) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{20} } + +func (m *KeyPair) GetPrivateKey() []byte { + if m != nil { + return m.PrivateKey + } + return nil +} + +func (m *KeyPair) GetPublicKey() []byte { + if m != nil { + return m.PublicKey + } + return nil +} + +// An endpoint represents an entity on the target which can use a certificate. +type Endpoint struct { + Type Endpoint_Type `protobuf:"varint,1,opt,name=type,enum=gnoi.certificate.Endpoint_Type" json:"type,omitempty"` + // Human readable identifier for an endpoint. + Endpoint string `protobuf:"bytes,2,opt,name=endpoint" json:"endpoint,omitempty"` +} + +func (m *Endpoint) Reset() { *m = Endpoint{} } +func (m *Endpoint) String() string { return proto.CompactTextString(m) } +func (*Endpoint) ProtoMessage() {} +func (*Endpoint) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{21} } + +func (m *Endpoint) GetType() Endpoint_Type { + if m != nil { + return m.Type + } + return Endpoint_EP_UNSPECIFIED +} + +func (m *Endpoint) GetEndpoint() string { + if m != nil { + return m.Endpoint + } + return "" +} + +func init() { + proto.RegisterType((*RotateCertificateRequest)(nil), "gnoi.certificate.RotateCertificateRequest") + proto.RegisterType((*RotateCertificateResponse)(nil), "gnoi.certificate.RotateCertificateResponse") + proto.RegisterType((*InstallCertificateRequest)(nil), "gnoi.certificate.InstallCertificateRequest") + proto.RegisterType((*InstallCertificateResponse)(nil), "gnoi.certificate.InstallCertificateResponse") + proto.RegisterType((*GenerateCSRRequest)(nil), "gnoi.certificate.GenerateCSRRequest") + proto.RegisterType((*CSRParams)(nil), "gnoi.certificate.CSRParams") + proto.RegisterType((*GenerateCSRResponse)(nil), "gnoi.certificate.GenerateCSRResponse") + proto.RegisterType((*LoadCertificateRequest)(nil), "gnoi.certificate.LoadCertificateRequest") + proto.RegisterType((*LoadCertificateResponse)(nil), "gnoi.certificate.LoadCertificateResponse") + proto.RegisterType((*FinalizeRequest)(nil), "gnoi.certificate.FinalizeRequest") + proto.RegisterType((*GetCertificatesRequest)(nil), "gnoi.certificate.GetCertificatesRequest") + proto.RegisterType((*GetCertificatesResponse)(nil), "gnoi.certificate.GetCertificatesResponse") + proto.RegisterType((*CertificateInfo)(nil), "gnoi.certificate.CertificateInfo") + proto.RegisterType((*RevokeCertificatesRequest)(nil), "gnoi.certificate.RevokeCertificatesRequest") + proto.RegisterType((*RevokeCertificatesResponse)(nil), "gnoi.certificate.RevokeCertificatesResponse") + proto.RegisterType((*CertificateRevocationError)(nil), "gnoi.certificate.CertificateRevocationError") + proto.RegisterType((*CanGenerateCSRRequest)(nil), "gnoi.certificate.CanGenerateCSRRequest") + proto.RegisterType((*CanGenerateCSRResponse)(nil), "gnoi.certificate.CanGenerateCSRResponse") + proto.RegisterType((*Certificate)(nil), "gnoi.certificate.Certificate") + proto.RegisterType((*CSR)(nil), "gnoi.certificate.CSR") + proto.RegisterType((*KeyPair)(nil), "gnoi.certificate.KeyPair") + proto.RegisterType((*Endpoint)(nil), "gnoi.certificate.Endpoint") + proto.RegisterEnum("gnoi.certificate.CertificateType", CertificateType_name, CertificateType_value) + proto.RegisterEnum("gnoi.certificate.KeyType", KeyType_name, KeyType_value) + proto.RegisterEnum("gnoi.certificate.Endpoint_Type", Endpoint_Type_name, Endpoint_Type_value) +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion4 + +// Client API for CertificateManagement service + +type CertificateManagementClient interface { + // Rotate will replace an existing Certificate on the target by creating a + // new CSR request and placing the new Certificate based on the CSR on the + // target. If the stream is broken or any steps in the process fail the + // target must rollback to the original Certificate. + // + // The following describes the sequence of messages that must be exchanged + // in the Rotate() RPC. + // + // Sequence of expected messages: + // Case 1: When Target generates the CSR. + // + // Step 1: Start the stream + // Client <---- Rotate() RPC stream begin ------> Target + // + // Step 2: CSR + // Client -----> GenerateCSRRequest----> Target + // Client <----- GenerateCSRResponse <--- Target + // + // Step 3: Certificate Signing + // Client gets the certificate signed by the CA. + // + // Step 4: Send Certificate to Target. + // Client --> LoadCertificateRequest ----> Target + // Client <-- LoadCertificateResponse <--- Target + // + // Step 5: Test/Validation by the client. + // This step should be to create a new connection to the target using + // The new certificate and validate that the certificate works. + // Once verfied, the client will then proceed to finalize the rotation. + // If the new connection cannot be completed the client will cancel the + // RPC thereby forcing the target to rollback the certificate. + // + // Step 6: Final commit. + // Client ---> FinalizeRequest ----> Target + // + // + // Case 2: When Client generates the CSR. + // Step 1: Start the stream + // Client <---- Rotate() RPC stream begin ----> Target + // + // Step 2: CSR + // Client generates its own certificate. + // + // Step 3: Certificate Signing + // Client gets the certificate signed by the CA. + // + // Step 4: Send Certificate to Target. + // Client ---> LoadCertificateRequest ----> Target + // Client <--- LoadCertificateResponse <--- Target + // + // Step 5: Test/Validation by the client. + // + // Step 6: Final commit. + // Client ---> FinalizeRequest ----> Target + Rotate(ctx context.Context, opts ...grpc.CallOption) (CertificateManagement_RotateClient, error) + // Install will put a new Certificate on the target by creating a new CSR + // request and placing the new Certificate based on the CSR on the target.The + // new Certificate will be associated with a new Certificate Id on the target. + // If the target has a pre existing Certificate with the given Certificate Id, + // the operation should fail. + // If the stream is broken or any steps in the process fail the target must + // revert any changes in state. + // + // The following describes the sequence of messages that must be exchanged + // in the Install() RPC. + // + // Sequence of expected messages: + // Case 1: When Target generates the CSR-------------------------: + // + // Step 1: Start the stream + // Client <---- Install() RPC stream begin ------> Target + // + // Step 2: CSR + // Client -----> GenerateCSRRequest() ----> Target + // Client <---- GenerateCSRResponse() <---- Target + // + // Step 3: Certificate Signing + // Client gets the certificate signed by the CA. + // + // Step 4: Send Certificate to Target. + // Client -> LoadCertificateRequest() ----> Target + // Client <- LoadCertificateResponse() <--- Target + // + // Case 2: When Client generates the CSR-------------------------: + // Step 1: Start the stream + // Client <---- Install() RPC stream begin ------> Target + // + // Step 2: CSR + // Client generates its own certificate. + // + // Step 3: Certificate Signing + // Client gets the certificate signed by the CA. + // + // Step 4: Send Certificate to Target. + // Client -> LoadCertificateRequest() ----> Target + // Client <- LoadCertificateResponse() <--- Target + // + Install(ctx context.Context, opts ...grpc.CallOption) (CertificateManagement_InstallClient, error) + // An RPC to get the certificates on the target. + GetCertificates(ctx context.Context, in *GetCertificatesRequest, opts ...grpc.CallOption) (*GetCertificatesResponse, error) + // An RPC to revoke specific certificates. + // If a certificate is not present on the target, the request should silently + // succeed. Revoking a certificate should render the existing certificate + // unusable by any endpoints. + RevokeCertificates(ctx context.Context, in *RevokeCertificatesRequest, opts ...grpc.CallOption) (*RevokeCertificatesResponse, error) + // An RPC to ask a target if it can generate a Certificate. + CanGenerateCSR(ctx context.Context, in *CanGenerateCSRRequest, opts ...grpc.CallOption) (*CanGenerateCSRResponse, error) +} + +type certificateManagementClient struct { + cc *grpc.ClientConn +} + +func NewCertificateManagementClient(cc *grpc.ClientConn) CertificateManagementClient { + return &certificateManagementClient{cc} +} + +func (c *certificateManagementClient) Rotate(ctx context.Context, opts ...grpc.CallOption) (CertificateManagement_RotateClient, error) { + stream, err := grpc.NewClientStream(ctx, &_CertificateManagement_serviceDesc.Streams[0], c.cc, "/gnoi.certificate.CertificateManagement/Rotate", opts...) + if err != nil { + return nil, err + } + x := &certificateManagementRotateClient{stream} + return x, nil +} + +type CertificateManagement_RotateClient interface { + Send(*RotateCertificateRequest) error + Recv() (*RotateCertificateResponse, error) + grpc.ClientStream +} + +type certificateManagementRotateClient struct { + grpc.ClientStream +} + +func (x *certificateManagementRotateClient) Send(m *RotateCertificateRequest) error { + return x.ClientStream.SendMsg(m) +} + +func (x *certificateManagementRotateClient) Recv() (*RotateCertificateResponse, error) { + m := new(RotateCertificateResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *certificateManagementClient) Install(ctx context.Context, opts ...grpc.CallOption) (CertificateManagement_InstallClient, error) { + stream, err := grpc.NewClientStream(ctx, &_CertificateManagement_serviceDesc.Streams[1], c.cc, "/gnoi.certificate.CertificateManagement/Install", opts...) + if err != nil { + return nil, err + } + x := &certificateManagementInstallClient{stream} + return x, nil +} + +type CertificateManagement_InstallClient interface { + Send(*InstallCertificateRequest) error + Recv() (*InstallCertificateResponse, error) + grpc.ClientStream +} + +type certificateManagementInstallClient struct { + grpc.ClientStream +} + +func (x *certificateManagementInstallClient) Send(m *InstallCertificateRequest) error { + return x.ClientStream.SendMsg(m) +} + +func (x *certificateManagementInstallClient) Recv() (*InstallCertificateResponse, error) { + m := new(InstallCertificateResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *certificateManagementClient) GetCertificates(ctx context.Context, in *GetCertificatesRequest, opts ...grpc.CallOption) (*GetCertificatesResponse, error) { + out := new(GetCertificatesResponse) + err := grpc.Invoke(ctx, "/gnoi.certificate.CertificateManagement/GetCertificates", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *certificateManagementClient) RevokeCertificates(ctx context.Context, in *RevokeCertificatesRequest, opts ...grpc.CallOption) (*RevokeCertificatesResponse, error) { + out := new(RevokeCertificatesResponse) + err := grpc.Invoke(ctx, "/gnoi.certificate.CertificateManagement/RevokeCertificates", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *certificateManagementClient) CanGenerateCSR(ctx context.Context, in *CanGenerateCSRRequest, opts ...grpc.CallOption) (*CanGenerateCSRResponse, error) { + out := new(CanGenerateCSRResponse) + err := grpc.Invoke(ctx, "/gnoi.certificate.CertificateManagement/CanGenerateCSR", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// Server API for CertificateManagement service + +type CertificateManagementServer interface { + // Rotate will replace an existing Certificate on the target by creating a + // new CSR request and placing the new Certificate based on the CSR on the + // target. If the stream is broken or any steps in the process fail the + // target must rollback to the original Certificate. + // + // The following describes the sequence of messages that must be exchanged + // in the Rotate() RPC. + // + // Sequence of expected messages: + // Case 1: When Target generates the CSR. + // + // Step 1: Start the stream + // Client <---- Rotate() RPC stream begin ------> Target + // + // Step 2: CSR + // Client -----> GenerateCSRRequest----> Target + // Client <----- GenerateCSRResponse <--- Target + // + // Step 3: Certificate Signing + // Client gets the certificate signed by the CA. + // + // Step 4: Send Certificate to Target. + // Client --> LoadCertificateRequest ----> Target + // Client <-- LoadCertificateResponse <--- Target + // + // Step 5: Test/Validation by the client. + // This step should be to create a new connection to the target using + // The new certificate and validate that the certificate works. + // Once verfied, the client will then proceed to finalize the rotation. + // If the new connection cannot be completed the client will cancel the + // RPC thereby forcing the target to rollback the certificate. + // + // Step 6: Final commit. + // Client ---> FinalizeRequest ----> Target + // + // + // Case 2: When Client generates the CSR. + // Step 1: Start the stream + // Client <---- Rotate() RPC stream begin ----> Target + // + // Step 2: CSR + // Client generates its own certificate. + // + // Step 3: Certificate Signing + // Client gets the certificate signed by the CA. + // + // Step 4: Send Certificate to Target. + // Client ---> LoadCertificateRequest ----> Target + // Client <--- LoadCertificateResponse <--- Target + // + // Step 5: Test/Validation by the client. + // + // Step 6: Final commit. + // Client ---> FinalizeRequest ----> Target + Rotate(CertificateManagement_RotateServer) error + // Install will put a new Certificate on the target by creating a new CSR + // request and placing the new Certificate based on the CSR on the target.The + // new Certificate will be associated with a new Certificate Id on the target. + // If the target has a pre existing Certificate with the given Certificate Id, + // the operation should fail. + // If the stream is broken or any steps in the process fail the target must + // revert any changes in state. + // + // The following describes the sequence of messages that must be exchanged + // in the Install() RPC. + // + // Sequence of expected messages: + // Case 1: When Target generates the CSR-------------------------: + // + // Step 1: Start the stream + // Client <---- Install() RPC stream begin ------> Target + // + // Step 2: CSR + // Client -----> GenerateCSRRequest() ----> Target + // Client <---- GenerateCSRResponse() <---- Target + // + // Step 3: Certificate Signing + // Client gets the certificate signed by the CA. + // + // Step 4: Send Certificate to Target. + // Client -> LoadCertificateRequest() ----> Target + // Client <- LoadCertificateResponse() <--- Target + // + // Case 2: When Client generates the CSR-------------------------: + // Step 1: Start the stream + // Client <---- Install() RPC stream begin ------> Target + // + // Step 2: CSR + // Client generates its own certificate. + // + // Step 3: Certificate Signing + // Client gets the certificate signed by the CA. + // + // Step 4: Send Certificate to Target. + // Client -> LoadCertificateRequest() ----> Target + // Client <- LoadCertificateResponse() <--- Target + // + Install(CertificateManagement_InstallServer) error + // An RPC to get the certificates on the target. + GetCertificates(context.Context, *GetCertificatesRequest) (*GetCertificatesResponse, error) + // An RPC to revoke specific certificates. + // If a certificate is not present on the target, the request should silently + // succeed. Revoking a certificate should render the existing certificate + // unusable by any endpoints. + RevokeCertificates(context.Context, *RevokeCertificatesRequest) (*RevokeCertificatesResponse, error) + // An RPC to ask a target if it can generate a Certificate. + CanGenerateCSR(context.Context, *CanGenerateCSRRequest) (*CanGenerateCSRResponse, error) +} + +func RegisterCertificateManagementServer(s *grpc.Server, srv CertificateManagementServer) { + s.RegisterService(&_CertificateManagement_serviceDesc, srv) +} + +func _CertificateManagement_Rotate_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(CertificateManagementServer).Rotate(&certificateManagementRotateServer{stream}) +} + +type CertificateManagement_RotateServer interface { + Send(*RotateCertificateResponse) error + Recv() (*RotateCertificateRequest, error) + grpc.ServerStream +} + +type certificateManagementRotateServer struct { + grpc.ServerStream +} + +func (x *certificateManagementRotateServer) Send(m *RotateCertificateResponse) error { + return x.ServerStream.SendMsg(m) +} + +func (x *certificateManagementRotateServer) Recv() (*RotateCertificateRequest, error) { + m := new(RotateCertificateRequest) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func _CertificateManagement_Install_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(CertificateManagementServer).Install(&certificateManagementInstallServer{stream}) +} + +type CertificateManagement_InstallServer interface { + Send(*InstallCertificateResponse) error + Recv() (*InstallCertificateRequest, error) + grpc.ServerStream +} + +type certificateManagementInstallServer struct { + grpc.ServerStream +} + +func (x *certificateManagementInstallServer) Send(m *InstallCertificateResponse) error { + return x.ServerStream.SendMsg(m) +} + +func (x *certificateManagementInstallServer) Recv() (*InstallCertificateRequest, error) { + m := new(InstallCertificateRequest) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func _CertificateManagement_GetCertificates_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetCertificatesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CertificateManagementServer).GetCertificates(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gnoi.certificate.CertificateManagement/GetCertificates", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CertificateManagementServer).GetCertificates(ctx, req.(*GetCertificatesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _CertificateManagement_RevokeCertificates_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RevokeCertificatesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CertificateManagementServer).RevokeCertificates(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gnoi.certificate.CertificateManagement/RevokeCertificates", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CertificateManagementServer).RevokeCertificates(ctx, req.(*RevokeCertificatesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _CertificateManagement_CanGenerateCSR_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CanGenerateCSRRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CertificateManagementServer).CanGenerateCSR(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gnoi.certificate.CertificateManagement/CanGenerateCSR", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CertificateManagementServer).CanGenerateCSR(ctx, req.(*CanGenerateCSRRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _CertificateManagement_serviceDesc = grpc.ServiceDesc{ + ServiceName: "gnoi.certificate.CertificateManagement", + HandlerType: (*CertificateManagementServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "GetCertificates", + Handler: _CertificateManagement_GetCertificates_Handler, + }, + { + MethodName: "RevokeCertificates", + Handler: _CertificateManagement_RevokeCertificates_Handler, + }, + { + MethodName: "CanGenerateCSR", + Handler: _CertificateManagement_CanGenerateCSR_Handler, + }, + }, + Streams: []grpc.StreamDesc{ + { + StreamName: "Rotate", + Handler: _CertificateManagement_Rotate_Handler, + ServerStreams: true, + ClientStreams: true, + }, + { + StreamName: "Install", + Handler: _CertificateManagement_Install_Handler, + ServerStreams: true, + ClientStreams: true, + }, + }, + Metadata: "github.com/openconfig/gnoi/cert/cert.proto", +} + +func init() { proto.RegisterFile("github.com/openconfig/gnoi/cert/cert.proto", fileDescriptor0) } + +var fileDescriptor0 = []byte{ + // 1212 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x57, 0xdd, 0x72, 0xda, 0x46, + 0x14, 0xb6, 0x8c, 0x63, 0xe0, 0x80, 0x41, 0xde, 0x24, 0x8e, 0xa0, 0xcd, 0x24, 0x51, 0x9b, 0x89, + 0xe3, 0x64, 0x70, 0x26, 0x3f, 0x33, 0xfd, 0x99, 0x49, 0x27, 0x26, 0x24, 0x66, 0xb0, 0x09, 0xb3, + 0xe0, 0xb6, 0x77, 0x1a, 0x59, 0x2c, 0x78, 0xc7, 0x68, 0x57, 0x95, 0xe4, 0x74, 0xf0, 0x43, 0xf4, + 0x05, 0x7a, 0xd3, 0xab, 0x3e, 0x42, 0x1f, 0xa0, 0x4f, 0xd0, 0x8b, 0x4e, 0xaf, 0xfb, 0x28, 0x1d, + 0xed, 0x0a, 0x10, 0x68, 0x71, 0x68, 0xee, 0x72, 0xc3, 0x48, 0xe7, 0x7c, 0xe7, 0xd3, 0xf9, 0xdf, + 0x05, 0xf6, 0x86, 0x34, 0x3c, 0xbb, 0x38, 0xad, 0x39, 0xdc, 0xdd, 0xe7, 0x1e, 0x61, 0x0e, 0x67, + 0x03, 0x3a, 0xdc, 0x1f, 0x32, 0x4e, 0xf7, 0x1d, 0xe2, 0x87, 0xe2, 0xa7, 0xe6, 0xf9, 0x3c, 0xe4, + 0x48, 0x8f, 0xa4, 0xb5, 0x48, 0x40, 0x07, 0xd4, 0xb1, 0x43, 0x62, 0xfe, 0xb6, 0x0e, 0x06, 0xe6, + 0xa1, 0x1d, 0x92, 0xfa, 0x4c, 0x8a, 0xc9, 0x4f, 0x17, 0x24, 0x08, 0x51, 0x13, 0x8a, 0x43, 0xc2, + 0x88, 0x6f, 0x87, 0xc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93, 0xef, 0xf6, 0xc8, 0xba, 0x60, 0x34, 0x34, 0xf2, 0x02, 0x8a, 0xe6, 0x55, 0x27, 0x8c, 0x86, + 0xe8, 0x36, 0x00, 0xf5, 0x2c, 0xbb, 0xdf, 0xf7, 0x49, 0x10, 0x18, 0x20, 0x70, 0x79, 0xea, 0xbd, + 0x92, 0x02, 0x54, 0x81, 0x1c, 0x71, 0x6d, 0x3a, 0x8a, 0xca, 0x52, 0x90, 0x8e, 0x8b, 0xf7, 0x66, + 0xdf, 0x7c, 0x09, 0xd7, 0x15, 0xcd, 0x89, 0x1e, 0x40, 0x66, 0xd6, 0xd0, 0x37, 0x95, 0x3d, 0x80, + 0x23, 0x84, 0xf9, 0x87, 0x06, 0x3b, 0xea, 0x19, 0x43, 0xdf, 0x41, 0x21, 0xd9, 0xcb, 0x92, 0xeb, + 0xf6, 0x95, 0x45, 0xc6, 0x49, 0x8b, 0x49, 0x15, 0x3d, 0x9b, 0xfa, 0xf1, 0x24, 0xa8, 0xab, 0xd8, + 0xb1, 0xa9, 0x2f, 0xaa, 0x18, 0x3d, 0x28, 0x3a, 0x31, 0xa3, 0xea, 0xc4, 0x0a, 0xdc, 0x5a, 0x32, + 0x44, 0xe6, 0x36, 0x94, 0x17, 0x36, 0xbb, 0x69, 0xc0, 0xce, 0x5b, 0x12, 0x26, 0xc0, 0xc1, 0x44, + 0x33, 0x84, 0x5b, 0x29, 0xcd, 0x74, 0x3f, 0xe8, 0x73, 0x9e, 0xb0, 0x01, 0x37, 0xb4, 0xbb, 0x19, + 0xf5, 0x59, 0x92, 0x60, 0x68, 0xb2, 0x01, 0xc7, 0x65, 0x67, 0x5e, 0x60, 0xfe, 0xab, 0x41, 0x79, + 0x01, 0xa4, 0x88, 0x55, 0x53, 0xc4, 0xba, 0x58, 0x89, 0xf5, 0xff, 0x5d, 0x89, 0xaf, 0x20, 0x4f, + 0x58, 0xdf, 0xe3, 0x94, 0x85, 0x81, 0x91, 0x11, 0x21, 0x54, 0xd3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 0x0e, 0x60, 0xb3, 0xd5, 0xb3, 0x70, 0xf7, 0x95, 0xae, + 0x3d, 0xfd, 0x7d, 0x03, 0x6e, 0x26, 0x78, 0x8f, 0x6d, 0x66, 0x0f, 0x89, 0x4b, 0x58, 0x88, 0x08, + 0x6c, 0xca, 0x3b, 0x39, 0xda, 0x4b, 0x47, 0xbf, 0xec, 0x0f, 0x4d, 0xf5, 0xd1, 0x4a, 0x58, 0xd9, + 0x97, 0xbb, 0xda, 0x13, 0x0d, 0x9d, 0x41, 0x36, 0xbe, 0x50, 0x22, 0x85, 0xed, 0xd2, 0xeb, 0x73, + 0xf5, 0xf1, 0x6a, 0xe0, 0xc4, 0x97, 0x06, 0x50, 0x5e, 0x38, 0x97, 0xd0, 0xae, 0xea, 0x62, 0xaa, + 0x3a, 0xd4, 0xaa, 0x0f, 0x57, 0x40, 0xc6, 0xd3, 0xc6, 0x01, 0xa5, 0xd7, 0xad, 0x2a, 0xb8, 0xa5, + 0x9b, 0x5d, 0x15, 0xdc, 0x15, 0x1b, 0xdc, 0x81, 0xd2, 0xfc, 0xe0, 0xa3, 0x07, 0x8a, 0x81, 0x52, + 0xad, 0xb4, 0xea, 0xee, 0x87, 0x81, 0xf2, 0x23, 0xa7, 0x9b, 0xe2, 0xff, 0xed, 0xb3, 0xff, 0x02, + 0x00, 0x00, 0xff, 0xff, 0x34, 0xcc, 0xb3, 0x45, 0x0d, 0x0f, 0x00, 0x00, +} diff --git a/interface/interface.pb.go b/interface/interface.pb.go new file mode 100644 index 00000000..df8e5867 --- /dev/null +++ b/interface/interface.pb.go @@ -0,0 +1,311 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: github.com/openconfig/gnoi/interface/interface.proto + +/* +Package gnoi_interface is a generated protocol buffer package. + +It is generated from these files: + github.com/openconfig/gnoi/interface/interface.proto + +It has these top-level messages: + SetLoopbackModeRequest + SetLoopbackModeResponse + GetLoopbackModeRequest + GetLoopbackModeResponse + ClearInterfaceCountersRequest + ClearInterfaceCountersResponse +*/ +package gnoi_interface + +import proto "github.com/golang/protobuf/proto" +import fmt "fmt" +import math "math" +import gnoi "github.com/openconfig/reference/rpc/gnoi" + +import ( + context "golang.org/x/net/context" + grpc "google.golang.org/grpc" +) + +// 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 + +// SetLoopbackModeRequest requests the provide interface be have its loopback mode +// set to mode. Mode may be vendor specific. For example, on a transport +// device, available modes are "none", "mac", "phy", "phy_remote", +// "framer_facility", and "framer_terminal". +type SetLoopbackModeRequest struct { + Interface *gnoi.Path `protobuf:"bytes,1,opt,name=interface" json:"interface,omitempty"` + Mode string `protobuf:"bytes,2,opt,name=mode" json:"mode,omitempty"` +} + +func (m *SetLoopbackModeRequest) Reset() { *m = SetLoopbackModeRequest{} } +func (m *SetLoopbackModeRequest) String() string { return proto.CompactTextString(m) } +func (*SetLoopbackModeRequest) ProtoMessage() {} +func (*SetLoopbackModeRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } + +func (m *SetLoopbackModeRequest) GetInterface() *gnoi.Path { + if m != nil { + return m.Interface + } + return nil +} + +func (m *SetLoopbackModeRequest) GetMode() string { + if m != nil { + return m.Mode + } + return "" +} + +type SetLoopbackModeResponse struct { +} + +func (m *SetLoopbackModeResponse) Reset() { *m = SetLoopbackModeResponse{} } +func (m *SetLoopbackModeResponse) String() string { return proto.CompactTextString(m) } +func (*SetLoopbackModeResponse) ProtoMessage() {} +func (*SetLoopbackModeResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } + +type GetLoopbackModeRequest struct { + Interface *gnoi.Path `protobuf:"bytes,1,opt,name=interface" json:"interface,omitempty"` +} + +func (m *GetLoopbackModeRequest) Reset() { *m = GetLoopbackModeRequest{} } +func (m *GetLoopbackModeRequest) String() string { return proto.CompactTextString(m) } +func (*GetLoopbackModeRequest) ProtoMessage() {} +func (*GetLoopbackModeRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} } + +func (m *GetLoopbackModeRequest) GetInterface() *gnoi.Path { + if m != nil { + return m.Interface + } + return nil +} + +type GetLoopbackModeResponse struct { + Mode string `protobuf:"bytes,1,opt,name=mode" json:"mode,omitempty"` +} + +func (m *GetLoopbackModeResponse) Reset() { *m = GetLoopbackModeResponse{} } +func (m *GetLoopbackModeResponse) String() string { return proto.CompactTextString(m) } +func (*GetLoopbackModeResponse) ProtoMessage() {} +func (*GetLoopbackModeResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} } + +func (m *GetLoopbackModeResponse) GetMode() string { + if m != nil { + return m.Mode + } + return "" +} + +type ClearInterfaceCountersRequest struct { + Interface []*gnoi.Path `protobuf:"bytes,1,rep,name=interface" json:"interface,omitempty"` +} + +func (m *ClearInterfaceCountersRequest) Reset() { *m = ClearInterfaceCountersRequest{} } +func (m *ClearInterfaceCountersRequest) String() string { return proto.CompactTextString(m) } +func (*ClearInterfaceCountersRequest) ProtoMessage() {} +func (*ClearInterfaceCountersRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} } + +func (m *ClearInterfaceCountersRequest) GetInterface() []*gnoi.Path { + if m != nil { + return m.Interface + } + return nil +} + +type ClearInterfaceCountersResponse struct { +} + +func (m *ClearInterfaceCountersResponse) Reset() { *m = ClearInterfaceCountersResponse{} } +func (m *ClearInterfaceCountersResponse) String() string { return proto.CompactTextString(m) } +func (*ClearInterfaceCountersResponse) ProtoMessage() {} +func (*ClearInterfaceCountersResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} } + +func init() { + proto.RegisterType((*SetLoopbackModeRequest)(nil), "gnoi.interface.SetLoopbackModeRequest") + proto.RegisterType((*SetLoopbackModeResponse)(nil), "gnoi.interface.SetLoopbackModeResponse") + proto.RegisterType((*GetLoopbackModeRequest)(nil), "gnoi.interface.GetLoopbackModeRequest") + proto.RegisterType((*GetLoopbackModeResponse)(nil), "gnoi.interface.GetLoopbackModeResponse") + proto.RegisterType((*ClearInterfaceCountersRequest)(nil), "gnoi.interface.ClearInterfaceCountersRequest") + proto.RegisterType((*ClearInterfaceCountersResponse)(nil), "gnoi.interface.ClearInterfaceCountersResponse") +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion4 + +// Client API for Interface service + +type InterfaceClient interface { + // SetLoopbackMode is used to set the mode of loopback on a interface. + SetLoopbackMode(ctx context.Context, in *SetLoopbackModeRequest, opts ...grpc.CallOption) (*SetLoopbackModeResponse, error) + // GetLoopbackMode is used to get the mode of loopback on a interface. + GetLoopbackMode(ctx context.Context, in *GetLoopbackModeRequest, opts ...grpc.CallOption) (*GetLoopbackModeResponse, error) + // ClearInterfaceCounters will reset the counters for the provided interface. + ClearInterfaceCounters(ctx context.Context, in *ClearInterfaceCountersRequest, opts ...grpc.CallOption) (*ClearInterfaceCountersResponse, error) +} + +type interfaceClient struct { + cc *grpc.ClientConn +} + +func NewInterfaceClient(cc *grpc.ClientConn) InterfaceClient { + return &interfaceClient{cc} +} + +func (c *interfaceClient) SetLoopbackMode(ctx context.Context, in *SetLoopbackModeRequest, opts ...grpc.CallOption) (*SetLoopbackModeResponse, error) { + out := new(SetLoopbackModeResponse) + err := grpc.Invoke(ctx, "/gnoi.interface.Interface/SetLoopbackMode", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *interfaceClient) GetLoopbackMode(ctx context.Context, in *GetLoopbackModeRequest, opts ...grpc.CallOption) (*GetLoopbackModeResponse, error) { + out := new(GetLoopbackModeResponse) + err := grpc.Invoke(ctx, "/gnoi.interface.Interface/GetLoopbackMode", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *interfaceClient) ClearInterfaceCounters(ctx context.Context, in *ClearInterfaceCountersRequest, opts ...grpc.CallOption) (*ClearInterfaceCountersResponse, error) { + out := new(ClearInterfaceCountersResponse) + err := grpc.Invoke(ctx, "/gnoi.interface.Interface/ClearInterfaceCounters", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// Server API for Interface service + +type InterfaceServer interface { + // SetLoopbackMode is used to set the mode of loopback on a interface. + SetLoopbackMode(context.Context, *SetLoopbackModeRequest) (*SetLoopbackModeResponse, error) + // GetLoopbackMode is used to get the mode of loopback on a interface. + GetLoopbackMode(context.Context, *GetLoopbackModeRequest) (*GetLoopbackModeResponse, error) + // ClearInterfaceCounters will reset the counters for the provided interface. + ClearInterfaceCounters(context.Context, *ClearInterfaceCountersRequest) (*ClearInterfaceCountersResponse, error) +} + +func RegisterInterfaceServer(s *grpc.Server, srv InterfaceServer) { + s.RegisterService(&_Interface_serviceDesc, srv) +} + +func _Interface_SetLoopbackMode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SetLoopbackModeRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(InterfaceServer).SetLoopbackMode(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gnoi.interface.Interface/SetLoopbackMode", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(InterfaceServer).SetLoopbackMode(ctx, req.(*SetLoopbackModeRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Interface_GetLoopbackMode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetLoopbackModeRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(InterfaceServer).GetLoopbackMode(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gnoi.interface.Interface/GetLoopbackMode", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(InterfaceServer).GetLoopbackMode(ctx, req.(*GetLoopbackModeRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Interface_ClearInterfaceCounters_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ClearInterfaceCountersRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(InterfaceServer).ClearInterfaceCounters(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gnoi.interface.Interface/ClearInterfaceCounters", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(InterfaceServer).ClearInterfaceCounters(ctx, req.(*ClearInterfaceCountersRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _Interface_serviceDesc = grpc.ServiceDesc{ + ServiceName: "gnoi.interface.Interface", + HandlerType: (*InterfaceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "SetLoopbackMode", + Handler: _Interface_SetLoopbackMode_Handler, + }, + { + MethodName: "GetLoopbackMode", + Handler: _Interface_GetLoopbackMode_Handler, + }, + { + MethodName: "ClearInterfaceCounters", + Handler: _Interface_ClearInterfaceCounters_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "github.com/openconfig/gnoi/interface/interface.proto", +} + +func init() { + proto.RegisterFile("github.com/openconfig/gnoi/interface/interface.proto", fileDescriptor0) +} + +var fileDescriptor0 = []byte{ + // 294 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x92, 0xc1, 0x4a, 0xf3, 0x40, + 0x10, 0xc7, 0xbf, 0xf4, 0x13, 0xa1, 0x23, 0x28, 0xec, 0xa1, 0xad, 0x01, 0x25, 0xe4, 0xa0, 0xb9, + 0x74, 0x03, 0xd5, 0x27, 0xb0, 0x87, 0x50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 0x16, 0x98, + 0xbd, 0x0f, 0x60, 0xd8, 0x76, 0x59, 0x02, 0x67, 0x3b, 0x41, 0xb0, 0x2b, 0xfe, 0xfd, 0x74, 0xbc, + 0xfb, 0x02, 0xf6, 0xf5, 0xde, 0xb9, 0xcf, 0x44, 0xff, 0x55, 0x96, 0x60, 0x9f, 0x25, 0x38, 0xd0, + 0x12, 0xf4, 0x5a, 0xd6, 0x30, 0xea, 0xfe, 0x77, 0x36, 0xdd, 0x85, 0xfc, 0x1a, 0xb7, 0xcd, 0x0f, + 0x1d, 0xdf, 0xa8, 0xe3, 0xe3, 0xfa, 0xb9, 0xde, 0x7c, 0x04, 0x00, 0x00, 0xff, 0xff, 0xe9, 0x0e, + 0x8c, 0x8d, 0x2c, 0x03, 0x00, 0x00, +} diff --git a/layer2/layer2.pb.go b/layer2/layer2.pb.go new file mode 100644 index 00000000..4b2918a6 --- /dev/null +++ b/layer2/layer2.pb.go @@ -0,0 +1,593 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: github.com/openconfig/gnoi/layer2/layer2.proto + +/* +Package gnoi_layer2 is a generated protocol buffer package. + +It is generated from these files: + github.com/openconfig/gnoi/layer2/layer2.proto + +It has these top-level messages: + ClearNeighborDiscoveryRequest + ClearNeighborDiscoveryResponse + ClearSpanningTreeRequest + ClearSpanningTreeResponse + PerformBERTRequest + PerformBERTResponse + ClearLLDPInterfaceRequest + ClearLLDPInterfaceResponse + SendWakeOnLANRequest + SendWakeOnLANResponse +*/ +package gnoi_layer2 + +import proto "github.com/golang/protobuf/proto" +import fmt "fmt" +import math "math" +import gnoi "github.com/openconfig/reference/rpc/gnoi" + +import ( + context "golang.org/x/net/context" + grpc "google.golang.org/grpc" +) + +// 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 + +type PerformBERTResponse_BERTState int32 + +const ( + PerformBERTResponse_UNKNOWN PerformBERTResponse_BERTState = 0 + PerformBERTResponse_DISABLED PerformBERTResponse_BERTState = 1 + PerformBERTResponse_RUNNING PerformBERTResponse_BERTState = 2 + PerformBERTResponse_COMPLETE PerformBERTResponse_BERTState = 3 + PerformBERTResponse_ERROR PerformBERTResponse_BERTState = 4 +) + +var PerformBERTResponse_BERTState_name = map[int32]string{ + 0: "UNKNOWN", + 1: "DISABLED", + 2: "RUNNING", + 3: "COMPLETE", + 4: "ERROR", +} +var PerformBERTResponse_BERTState_value = map[string]int32{ + "UNKNOWN": 0, + "DISABLED": 1, + "RUNNING": 2, + "COMPLETE": 3, + "ERROR": 4, +} + +func (x PerformBERTResponse_BERTState) String() string { + return proto.EnumName(PerformBERTResponse_BERTState_name, int32(x)) +} +func (PerformBERTResponse_BERTState) EnumDescriptor() ([]byte, []int) { + return fileDescriptor0, []int{5, 0} +} + +type ClearNeighborDiscoveryRequest struct { + Protocol gnoi.L3Protocol `protobuf:"varint,1,opt,name=protocol,enum=gnoi.L3Protocol" json:"protocol,omitempty"` + Address string `protobuf:"bytes,2,opt,name=address" json:"address,omitempty"` +} + +func (m *ClearNeighborDiscoveryRequest) Reset() { *m = ClearNeighborDiscoveryRequest{} } +func (m *ClearNeighborDiscoveryRequest) String() string { return proto.CompactTextString(m) } +func (*ClearNeighborDiscoveryRequest) ProtoMessage() {} +func (*ClearNeighborDiscoveryRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } + +func (m *ClearNeighborDiscoveryRequest) GetProtocol() gnoi.L3Protocol { + if m != nil { + return m.Protocol + } + return gnoi.L3Protocol_UNSPECIFIED +} + +func (m *ClearNeighborDiscoveryRequest) GetAddress() string { + if m != nil { + return m.Address + } + return "" +} + +type ClearNeighborDiscoveryResponse struct { +} + +func (m *ClearNeighborDiscoveryResponse) Reset() { *m = ClearNeighborDiscoveryResponse{} } +func (m *ClearNeighborDiscoveryResponse) String() string { return proto.CompactTextString(m) } +func (*ClearNeighborDiscoveryResponse) ProtoMessage() {} +func (*ClearNeighborDiscoveryResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } + +type ClearSpanningTreeRequest struct { + Interface *gnoi.Path `protobuf:"bytes,1,opt,name=interface" json:"interface,omitempty"` +} + +func (m *ClearSpanningTreeRequest) Reset() { *m = ClearSpanningTreeRequest{} } +func (m *ClearSpanningTreeRequest) String() string { return proto.CompactTextString(m) } +func (*ClearSpanningTreeRequest) ProtoMessage() {} +func (*ClearSpanningTreeRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} } + +func (m *ClearSpanningTreeRequest) GetInterface() *gnoi.Path { + if m != nil { + return m.Interface + } + return nil +} + +type ClearSpanningTreeResponse struct { +} + +func (m *ClearSpanningTreeResponse) Reset() { *m = ClearSpanningTreeResponse{} } +func (m *ClearSpanningTreeResponse) String() string { return proto.CompactTextString(m) } +func (*ClearSpanningTreeResponse) ProtoMessage() {} +func (*ClearSpanningTreeResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} } + +type PerformBERTRequest struct { + // ID for retrieving a previous BERT run data - optional. + Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` + Interface *gnoi.Path `protobuf:"bytes,2,opt,name=interface" json:"interface,omitempty"` +} + +func (m *PerformBERTRequest) Reset() { *m = PerformBERTRequest{} } +func (m *PerformBERTRequest) String() string { return proto.CompactTextString(m) } +func (*PerformBERTRequest) ProtoMessage() {} +func (*PerformBERTRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} } + +func (m *PerformBERTRequest) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func (m *PerformBERTRequest) GetInterface() *gnoi.Path { + if m != nil { + return m.Interface + } + return nil +} + +type PerformBERTResponse struct { + Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` + State PerformBERTResponse_BERTState `protobuf:"varint,2,opt,name=state,enum=gnoi.layer2.PerformBERTResponse_BERTState" json:"state,omitempty"` + ElapsedPeriod int64 `protobuf:"varint,3,opt,name=elapsed_period,json=elapsedPeriod" json:"elapsed_period,omitempty"` + Pattern []byte `protobuf:"bytes,4,opt,name=pattern,proto3" json:"pattern,omitempty"` + Errors int64 `protobuf:"varint,5,opt,name=errors" json:"errors,omitempty"` + ReceivedBits int64 `protobuf:"varint,6,opt,name=received_bits,json=receivedBits" json:"received_bits,omitempty"` +} + +func (m *PerformBERTResponse) Reset() { *m = PerformBERTResponse{} } +func (m *PerformBERTResponse) String() string { return proto.CompactTextString(m) } +func (*PerformBERTResponse) ProtoMessage() {} +func (*PerformBERTResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} } + +func (m *PerformBERTResponse) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func (m *PerformBERTResponse) GetState() PerformBERTResponse_BERTState { + if m != nil { + return m.State + } + return PerformBERTResponse_UNKNOWN +} + +func (m *PerformBERTResponse) GetElapsedPeriod() int64 { + if m != nil { + return m.ElapsedPeriod + } + return 0 +} + +func (m *PerformBERTResponse) GetPattern() []byte { + if m != nil { + return m.Pattern + } + return nil +} + +func (m *PerformBERTResponse) GetErrors() int64 { + if m != nil { + return m.Errors + } + return 0 +} + +func (m *PerformBERTResponse) GetReceivedBits() int64 { + if m != nil { + return m.ReceivedBits + } + return 0 +} + +type ClearLLDPInterfaceRequest struct { + Interface *gnoi.Path `protobuf:"bytes,1,opt,name=interface" json:"interface,omitempty"` +} + +func (m *ClearLLDPInterfaceRequest) Reset() { *m = ClearLLDPInterfaceRequest{} } +func (m *ClearLLDPInterfaceRequest) String() string { return proto.CompactTextString(m) } +func (*ClearLLDPInterfaceRequest) ProtoMessage() {} +func (*ClearLLDPInterfaceRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} } + +func (m *ClearLLDPInterfaceRequest) GetInterface() *gnoi.Path { + if m != nil { + return m.Interface + } + return nil +} + +type ClearLLDPInterfaceResponse struct { +} + +func (m *ClearLLDPInterfaceResponse) Reset() { *m = ClearLLDPInterfaceResponse{} } +func (m *ClearLLDPInterfaceResponse) String() string { return proto.CompactTextString(m) } +func (*ClearLLDPInterfaceResponse) ProtoMessage() {} +func (*ClearLLDPInterfaceResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} } + +type SendWakeOnLANRequest struct { + Interface *gnoi.Path `protobuf:"bytes,1,opt,name=interface" json:"interface,omitempty"` + Address string `protobuf:"bytes,2,opt,name=address" json:"address,omitempty"` + MacAddress []byte `protobuf:"bytes,3,opt,name=mac_address,json=macAddress,proto3" json:"mac_address,omitempty"` +} + +func (m *SendWakeOnLANRequest) Reset() { *m = SendWakeOnLANRequest{} } +func (m *SendWakeOnLANRequest) String() string { return proto.CompactTextString(m) } +func (*SendWakeOnLANRequest) ProtoMessage() {} +func (*SendWakeOnLANRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} } + +func (m *SendWakeOnLANRequest) GetInterface() *gnoi.Path { + if m != nil { + return m.Interface + } + return nil +} + +func (m *SendWakeOnLANRequest) GetAddress() string { + if m != nil { + return m.Address + } + return "" +} + +func (m *SendWakeOnLANRequest) GetMacAddress() []byte { + if m != nil { + return m.MacAddress + } + return nil +} + +type SendWakeOnLANResponse struct { +} + +func (m *SendWakeOnLANResponse) Reset() { *m = SendWakeOnLANResponse{} } +func (m *SendWakeOnLANResponse) String() string { return proto.CompactTextString(m) } +func (*SendWakeOnLANResponse) ProtoMessage() {} +func (*SendWakeOnLANResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{9} } + +func init() { + proto.RegisterType((*ClearNeighborDiscoveryRequest)(nil), "gnoi.layer2.ClearNeighborDiscoveryRequest") + proto.RegisterType((*ClearNeighborDiscoveryResponse)(nil), "gnoi.layer2.ClearNeighborDiscoveryResponse") + proto.RegisterType((*ClearSpanningTreeRequest)(nil), "gnoi.layer2.ClearSpanningTreeRequest") + proto.RegisterType((*ClearSpanningTreeResponse)(nil), "gnoi.layer2.ClearSpanningTreeResponse") + proto.RegisterType((*PerformBERTRequest)(nil), "gnoi.layer2.PerformBERTRequest") + proto.RegisterType((*PerformBERTResponse)(nil), "gnoi.layer2.PerformBERTResponse") + proto.RegisterType((*ClearLLDPInterfaceRequest)(nil), "gnoi.layer2.ClearLLDPInterfaceRequest") + proto.RegisterType((*ClearLLDPInterfaceResponse)(nil), "gnoi.layer2.ClearLLDPInterfaceResponse") + proto.RegisterType((*SendWakeOnLANRequest)(nil), "gnoi.layer2.SendWakeOnLANRequest") + proto.RegisterType((*SendWakeOnLANResponse)(nil), "gnoi.layer2.SendWakeOnLANResponse") + proto.RegisterEnum("gnoi.layer2.PerformBERTResponse_BERTState", PerformBERTResponse_BERTState_name, PerformBERTResponse_BERTState_value) +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion4 + +// Client API for Layer2 service + +type Layer2Client interface { + // ClearNeighborDiscovery will clear either a specific neighbor entry or + // clear the entire table based on parameters provided. + // TODO: This method is subject to deprecation once OpenConfig models this + // state. + ClearNeighborDiscovery(ctx context.Context, in *ClearNeighborDiscoveryRequest, opts ...grpc.CallOption) (*ClearNeighborDiscoveryResponse, error) + // ClearSpanningTree will reset a blocked spanning tree interface. + // TODO: This method is subject to deprecation once OpenConfig models this + // state. + ClearSpanningTree(ctx context.Context, in *ClearSpanningTreeRequest, opts ...grpc.CallOption) (*ClearSpanningTreeResponse, error) + // PerformBERT will perform a BERT operation on a port. The stream will + // return the current state of the operation as well as the ID for the + // operation. + PerformBERT(ctx context.Context, in *PerformBERTRequest, opts ...grpc.CallOption) (Layer2_PerformBERTClient, error) + // ClearLLDPInterface will clear all LLDP adjacencies on the provided + // interface. + ClearLLDPInterface(ctx context.Context, in *ClearLLDPInterfaceRequest, opts ...grpc.CallOption) (*ClearLLDPInterfaceResponse, error) + // SendWakeOnLAN will send a WOL event on the requested interface. + SendWakeOnLAN(ctx context.Context, in *SendWakeOnLANRequest, opts ...grpc.CallOption) (*SendWakeOnLANResponse, error) +} + +type layer2Client struct { + cc *grpc.ClientConn +} + +func NewLayer2Client(cc *grpc.ClientConn) Layer2Client { + return &layer2Client{cc} +} + +func (c *layer2Client) ClearNeighborDiscovery(ctx context.Context, in *ClearNeighborDiscoveryRequest, opts ...grpc.CallOption) (*ClearNeighborDiscoveryResponse, error) { + out := new(ClearNeighborDiscoveryResponse) + err := grpc.Invoke(ctx, "/gnoi.layer2.Layer2/ClearNeighborDiscovery", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *layer2Client) ClearSpanningTree(ctx context.Context, in *ClearSpanningTreeRequest, opts ...grpc.CallOption) (*ClearSpanningTreeResponse, error) { + out := new(ClearSpanningTreeResponse) + err := grpc.Invoke(ctx, "/gnoi.layer2.Layer2/ClearSpanningTree", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *layer2Client) PerformBERT(ctx context.Context, in *PerformBERTRequest, opts ...grpc.CallOption) (Layer2_PerformBERTClient, error) { + stream, err := grpc.NewClientStream(ctx, &_Layer2_serviceDesc.Streams[0], c.cc, "/gnoi.layer2.Layer2/PerformBERT", opts...) + if err != nil { + return nil, err + } + x := &layer2PerformBERTClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type Layer2_PerformBERTClient interface { + Recv() (*PerformBERTResponse, error) + grpc.ClientStream +} + +type layer2PerformBERTClient struct { + grpc.ClientStream +} + +func (x *layer2PerformBERTClient) Recv() (*PerformBERTResponse, error) { + m := new(PerformBERTResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *layer2Client) ClearLLDPInterface(ctx context.Context, in *ClearLLDPInterfaceRequest, opts ...grpc.CallOption) (*ClearLLDPInterfaceResponse, error) { + out := new(ClearLLDPInterfaceResponse) + err := grpc.Invoke(ctx, "/gnoi.layer2.Layer2/ClearLLDPInterface", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *layer2Client) SendWakeOnLAN(ctx context.Context, in *SendWakeOnLANRequest, opts ...grpc.CallOption) (*SendWakeOnLANResponse, error) { + out := new(SendWakeOnLANResponse) + err := grpc.Invoke(ctx, "/gnoi.layer2.Layer2/SendWakeOnLAN", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// Server API for Layer2 service + +type Layer2Server interface { + // ClearNeighborDiscovery will clear either a specific neighbor entry or + // clear the entire table based on parameters provided. + // TODO: This method is subject to deprecation once OpenConfig models this + // state. + ClearNeighborDiscovery(context.Context, *ClearNeighborDiscoveryRequest) (*ClearNeighborDiscoveryResponse, error) + // ClearSpanningTree will reset a blocked spanning tree interface. + // TODO: This method is subject to deprecation once OpenConfig models this + // state. + ClearSpanningTree(context.Context, *ClearSpanningTreeRequest) (*ClearSpanningTreeResponse, error) + // PerformBERT will perform a BERT operation on a port. The stream will + // return the current state of the operation as well as the ID for the + // operation. + PerformBERT(*PerformBERTRequest, Layer2_PerformBERTServer) error + // ClearLLDPInterface will clear all LLDP adjacencies on the provided + // interface. + ClearLLDPInterface(context.Context, *ClearLLDPInterfaceRequest) (*ClearLLDPInterfaceResponse, error) + // SendWakeOnLAN will send a WOL event on the requested interface. + SendWakeOnLAN(context.Context, *SendWakeOnLANRequest) (*SendWakeOnLANResponse, error) +} + +func RegisterLayer2Server(s *grpc.Server, srv Layer2Server) { + s.RegisterService(&_Layer2_serviceDesc, srv) +} + +func _Layer2_ClearNeighborDiscovery_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ClearNeighborDiscoveryRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(Layer2Server).ClearNeighborDiscovery(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gnoi.layer2.Layer2/ClearNeighborDiscovery", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(Layer2Server).ClearNeighborDiscovery(ctx, req.(*ClearNeighborDiscoveryRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Layer2_ClearSpanningTree_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ClearSpanningTreeRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(Layer2Server).ClearSpanningTree(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gnoi.layer2.Layer2/ClearSpanningTree", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(Layer2Server).ClearSpanningTree(ctx, req.(*ClearSpanningTreeRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Layer2_PerformBERT_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(PerformBERTRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(Layer2Server).PerformBERT(m, &layer2PerformBERTServer{stream}) +} + +type Layer2_PerformBERTServer interface { + Send(*PerformBERTResponse) error + grpc.ServerStream +} + +type layer2PerformBERTServer struct { + grpc.ServerStream +} + +func (x *layer2PerformBERTServer) Send(m *PerformBERTResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _Layer2_ClearLLDPInterface_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ClearLLDPInterfaceRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(Layer2Server).ClearLLDPInterface(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gnoi.layer2.Layer2/ClearLLDPInterface", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(Layer2Server).ClearLLDPInterface(ctx, req.(*ClearLLDPInterfaceRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Layer2_SendWakeOnLAN_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SendWakeOnLANRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(Layer2Server).SendWakeOnLAN(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gnoi.layer2.Layer2/SendWakeOnLAN", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(Layer2Server).SendWakeOnLAN(ctx, req.(*SendWakeOnLANRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _Layer2_serviceDesc = grpc.ServiceDesc{ + ServiceName: "gnoi.layer2.Layer2", + HandlerType: (*Layer2Server)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "ClearNeighborDiscovery", + Handler: _Layer2_ClearNeighborDiscovery_Handler, + }, + { + MethodName: "ClearSpanningTree", + Handler: _Layer2_ClearSpanningTree_Handler, + }, + { + MethodName: "ClearLLDPInterface", + Handler: _Layer2_ClearLLDPInterface_Handler, + }, + { + MethodName: "SendWakeOnLAN", + Handler: _Layer2_SendWakeOnLAN_Handler, + }, + }, + Streams: []grpc.StreamDesc{ + { + StreamName: "PerformBERT", + Handler: _Layer2_PerformBERT_Handler, + ServerStreams: true, + }, + }, + Metadata: "github.com/openconfig/gnoi/layer2/layer2.proto", +} + +func init() { proto.RegisterFile("github.com/openconfig/gnoi/layer2/layer2.proto", fileDescriptor0) } + +var fileDescriptor0 = []byte{ + // 609 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x94, 0x6b, 0x6f, 0x12, 0x4d, + 0x14, 0xc7, 0xbb, 0xd0, 0xd2, 0x72, 0x68, 0x09, 0xcf, 0x3c, 0x5a, 0x57, 0xbc, 0x14, 0xd7, 0x54, + 0x89, 0x9a, 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x4a, 0xc4, 0xac, 0x8a, 0x26, 0x94, 0x19, + 0xd7, 0x28, 0xc7, 0x9e, 0x8f, 0x71, 0x19, 0x95, 0x36, 0x24, 0x65, 0xf4, 0x3d, 0x7d, 0x41, 0xff, + 0x38, 0xad, 0x27, 0xf0, 0x38, 0x87, 0x92, 0x4a, 0xb8, 0x40, 0xfa, 0x28, 0xc7, 0x42, 0x4e, 0x8f, + 0xba, 0x74, 0x98, 0xc1, 0xab, 0x50, 0x60, 0x41, 0x4c, 0x2d, 0xd3, 0x02, 0x0b, 0x16, 0xc5, 0x0a, + 0x77, 0x89, 0xfd, 0x2c, 0xc0, 0xff, 0x0b, 0xc0, 0x44, 0x67, 0x89, 0xf8, 0x11, 0x36, 0x94, 0xf6, + 0x74, 0x42, 0xab, 0xb6, 0xdf, 0xd8, 0x37, 0x06, 0x67, 0xe7, 0x00, 0xec, 0xd9, 0x63, 0x30, 0xcb, + 0xa0, 0x49, 0x22, 0xd9, 0x87, 0x2a, 0x4e, 0xbc, 0x48, 0x61, 0x70, 0x1e, 0xa1, 0x64, 0x22, 0x30, + 0x8b, 0x0d, 0xa3, 0x59, 0xa4, 0x3b, 0xa9, 0xb5, 0x1f, 0x1b, 0x67, 0xfd, 0x8f, 0x3c, 0xad, 0x51, + 0x72, 0x73, 0xbd, 0x61, 0x34, 0xb7, 0x69, 0xf6, 0x24, 0xbb, 0x50, 0x42, 0x29, 0x85, 0x54, 0xe6, + 0x46, 0x9c, 0x98, 0xbe, 0xc8, 0x4b, 0xd8, 0x91, 0xe8, 0x23, 0xbb, 0xc2, 0xe0, 0x7c, 0xc4, 0xb4, + 0x32, 0x4b, 0xb1, 0x7b, 0x3b, 0x33, 0x1e, 0x31, 0xad, 0x2c, 0x07, 0xca, 0xf3, 0x8a, 0x48, 0x05, + 0x36, 0x4f, 0xdd, 0xcf, 0x6e, 0xef, 0xcc, 0xad, 0xad, 0x91, 0x6d, 0xd8, 0xea, 0x9c, 0x0c, 0x0e, + 0x8f, 0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 0x72, 0xf3, 0xd6, 0xaa, 0x6e, 0xdd, 0x15, 0x92, 0x91, 0x47, 0xa5, + 0xf8, 0x47, 0x79, 0xf0, 0x3b, 0x00, 0x00, 0xff, 0xff, 0xa5, 0xac, 0xd7, 0xcd, 0xe9, 0x05, 0x00, + 0x00, +} diff --git a/mpls/mpls.pb.go b/mpls/mpls.pb.go new file mode 100644 index 00000000..7f54b021 --- /dev/null +++ b/mpls/mpls.pb.go @@ -0,0 +1,772 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: github.com/openconfig/gnoi/mpls/mpls.proto + +/* +Package gnoi_mpls is a generated protocol buffer package. + +It is generated from these files: + github.com/openconfig/gnoi/mpls/mpls.proto + +It has these top-level messages: + ClearLSPRequest + ClearLSPResponse + ClearLSPCountersRequest + ClearLSPCountersResponse + MPLSPingPWEDestination + MPLSPingRSVPTEDestination + MPLSPingRequest + MPLSPingResponse +*/ +package gnoi_mpls + +import proto "github.com/golang/protobuf/proto" +import fmt "fmt" +import math "math" + +import ( + context "golang.org/x/net/context" + grpc "google.golang.org/grpc" +) + +// 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 + +type ClearLSPRequest_Mode int32 + +const ( + ClearLSPRequest_DEFAULT ClearLSPRequest_Mode = 0 + // Reoptimize the LSP using the current bandwidth. + ClearLSPRequest_NONAGGRESSIVE ClearLSPRequest_Mode = 0 + // Reoptimize the LSP using the current bandwidth. Only use IGP metric in + // calcuation. + ClearLSPRequest_AGGRESSIVE ClearLSPRequest_Mode = 1 + // Reset and restart all LSPs that originated from this routing device. + ClearLSPRequest_RESET ClearLSPRequest_Mode = 2 + // Apply the highest bandwidth collected on a tunnel without waiting for + // the current application period to end. Only use IGP metric in + // calcuation. + ClearLSPRequest_AUTOBW_AGGRESSIVE ClearLSPRequest_Mode = 3 + // Apply the highest bandwidth collected on a tunnel without waiting for + // the current application period to end. + ClearLSPRequest_AUTOBW_NONAGGRESSIVE ClearLSPRequest_Mode = 4 +) + +var ClearLSPRequest_Mode_name = map[int32]string{ + 0: "DEFAULT", + // Duplicate value: 0: "NONAGGRESSIVE", + 1: "AGGRESSIVE", + 2: "RESET", + 3: "AUTOBW_AGGRESSIVE", + 4: "AUTOBW_NONAGGRESSIVE", +} +var ClearLSPRequest_Mode_value = map[string]int32{ + "DEFAULT": 0, + "NONAGGRESSIVE": 0, + "AGGRESSIVE": 1, + "RESET": 2, + "AUTOBW_AGGRESSIVE": 3, + "AUTOBW_NONAGGRESSIVE": 4, +} + +func (x ClearLSPRequest_Mode) String() string { + return proto.EnumName(ClearLSPRequest_Mode_name, int32(x)) +} +func (ClearLSPRequest_Mode) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0, 0} } + +type MPLSPingRequest_ReplyMode int32 + +const ( + MPLSPingRequest_IPV4 MPLSPingRequest_ReplyMode = 0 + MPLSPingRequest_ROUTER_ALERT MPLSPingRequest_ReplyMode = 1 +) + +var MPLSPingRequest_ReplyMode_name = map[int32]string{ + 0: "IPV4", + 1: "ROUTER_ALERT", +} +var MPLSPingRequest_ReplyMode_value = map[string]int32{ + "IPV4": 0, + "ROUTER_ALERT": 1, +} + +func (x MPLSPingRequest_ReplyMode) String() string { + return proto.EnumName(MPLSPingRequest_ReplyMode_name, int32(x)) +} +func (MPLSPingRequest_ReplyMode) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{6, 0} } + +type MPLSPingResponse_EchoResponseCode int32 + +const ( + // A successful echo response was received. + MPLSPingResponse_SUCCESS MPLSPingResponse_EchoResponseCode = 0 + // The MPLS ping packet was not sent, for an unknown reason. + MPLSPingResponse_NOT_SENT MPLSPingResponse_EchoResponseCode = 1 + // The local system timed out waiting for an LSP ping response. + MPLSPingResponse_TIMEOUT MPLSPingResponse_EchoResponseCode = 2 +) + +var MPLSPingResponse_EchoResponseCode_name = map[int32]string{ + 0: "SUCCESS", + 1: "NOT_SENT", + 2: "TIMEOUT", +} +var MPLSPingResponse_EchoResponseCode_value = map[string]int32{ + "SUCCESS": 0, + "NOT_SENT": 1, + "TIMEOUT": 2, +} + +func (x MPLSPingResponse_EchoResponseCode) String() string { + return proto.EnumName(MPLSPingResponse_EchoResponseCode_name, int32(x)) +} +func (MPLSPingResponse_EchoResponseCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor0, []int{7, 0} +} + +// Request to clear a single tunnel on a target device. +type ClearLSPRequest struct { + Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` + Mode ClearLSPRequest_Mode `protobuf:"varint,3,opt,name=mode,enum=gnoi.mpls.ClearLSPRequest_Mode" json:"mode,omitempty"` +} + +func (m *ClearLSPRequest) Reset() { *m = ClearLSPRequest{} } +func (m *ClearLSPRequest) String() string { return proto.CompactTextString(m) } +func (*ClearLSPRequest) ProtoMessage() {} +func (*ClearLSPRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } + +func (m *ClearLSPRequest) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *ClearLSPRequest) GetMode() ClearLSPRequest_Mode { + if m != nil { + return m.Mode + } + return ClearLSPRequest_DEFAULT +} + +type ClearLSPResponse struct { +} + +func (m *ClearLSPResponse) Reset() { *m = ClearLSPResponse{} } +func (m *ClearLSPResponse) String() string { return proto.CompactTextString(m) } +func (*ClearLSPResponse) ProtoMessage() {} +func (*ClearLSPResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } + +// Request to clear a single tunnel counters on a target device. +type ClearLSPCountersRequest struct { + Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` +} + +func (m *ClearLSPCountersRequest) Reset() { *m = ClearLSPCountersRequest{} } +func (m *ClearLSPCountersRequest) String() string { return proto.CompactTextString(m) } +func (*ClearLSPCountersRequest) ProtoMessage() {} +func (*ClearLSPCountersRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} } + +func (m *ClearLSPCountersRequest) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +type ClearLSPCountersResponse struct { +} + +func (m *ClearLSPCountersResponse) Reset() { *m = ClearLSPCountersResponse{} } +func (m *ClearLSPCountersResponse) String() string { return proto.CompactTextString(m) } +func (*ClearLSPCountersResponse) ProtoMessage() {} +func (*ClearLSPCountersResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} } + +type MPLSPingPWEDestination struct { + // The address of the egress LER that the MPLS ping should be sent on when + // destined to a PWE service. + Eler string `protobuf:"bytes,1,opt,name=eler" json:"eler,omitempty"` + // The virtual circuit ID for the PWE via which the ping should be sent. + Vcid uint32 `protobuf:"varint,2,opt,name=vcid" json:"vcid,omitempty"` +} + +func (m *MPLSPingPWEDestination) Reset() { *m = MPLSPingPWEDestination{} } +func (m *MPLSPingPWEDestination) String() string { return proto.CompactTextString(m) } +func (*MPLSPingPWEDestination) ProtoMessage() {} +func (*MPLSPingPWEDestination) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} } + +func (m *MPLSPingPWEDestination) GetEler() string { + if m != nil { + return m.Eler + } + return "" +} + +func (m *MPLSPingPWEDestination) GetVcid() uint32 { + if m != nil { + return m.Vcid + } + return 0 +} + +// MPLSPingRSVPTEDestination specifies the destination for an MPLS Ping in +// terms of an absolute specification of an RSVP-TE LSP. It can be used to +// identify an individual RSVP-TE session via which a ping should be sent. +type MPLSPingRSVPTEDestination struct { + // The IPv4 or IPv6 address used by the system initiating (acting as the + // head-end) of the RSVP-TE LSP. + Src string `protobuf:"bytes,1,opt,name=src" json:"src,omitempty"` + // The IPv4 or IPv6 address used by the system terminating (acting as the + // tail-end) of the RSVP-TE LSP. + Dst string `protobuf:"bytes,2,opt,name=dst" json:"dst,omitempty"` + // The extended tunnel ID of the RSVP-TE LSP, expressed as an unsigned, 32b + // integer. + ExtendedTunnelId uint32 `protobuf:"varint,3,opt,name=extended_tunnel_id,json=extendedTunnelId" json:"extended_tunnel_id,omitempty"` +} + +func (m *MPLSPingRSVPTEDestination) Reset() { *m = MPLSPingRSVPTEDestination{} } +func (m *MPLSPingRSVPTEDestination) String() string { return proto.CompactTextString(m) } +func (*MPLSPingRSVPTEDestination) ProtoMessage() {} +func (*MPLSPingRSVPTEDestination) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} } + +func (m *MPLSPingRSVPTEDestination) GetSrc() string { + if m != nil { + return m.Src + } + return "" +} + +func (m *MPLSPingRSVPTEDestination) GetDst() string { + if m != nil { + return m.Dst + } + return "" +} + +func (m *MPLSPingRSVPTEDestination) GetExtendedTunnelId() uint32 { + if m != nil { + return m.ExtendedTunnelId + } + return 0 +} + +// MPLSPingRequest specifies the parameters that should be used as input from +// the client, to a system that is initiating an RFC4379 MPLS ping request. +type MPLSPingRequest struct { + // One field within the destination field should be specified to determine + // the destination of the LSP ping. + // + // Types that are valid to be assigned to Destination: + // *MPLSPingRequest_LdpFec + // *MPLSPingRequest_Fec129Pwe + // *MPLSPingRequest_RsvpteLspName + // *MPLSPingRequest_RsvpteLsp + Destination isMPLSPingRequest_Destination `protobuf_oneof:"destination"` + ReplyMode MPLSPingRequest_ReplyMode `protobuf:"varint,6,opt,name=reply_mode,json=replyMode,enum=gnoi.mpls.MPLSPingRequest_ReplyMode" json:"reply_mode,omitempty"` + // The number of MPLS echo request packets to send. + Count uint32 `protobuf:"varint,7,opt,name=count" json:"count,omitempty"` + // The size (in bytes) of each MPLS echo request packet. + Size uint32 `protobuf:"varint,8,opt,name=size" json:"size,omitempty"` + // The source IPv4 address that should be used in the request packet. + SourceAddress string `protobuf:"bytes,9,opt,name=source_address,json=sourceAddress" json:"source_address,omitempty"` + // The MPLS TTL that should be set in the packets sent. + MplsTtl uint32 `protobuf:"varint,10,opt,name=mpls_ttl,json=mplsTtl" json:"mpls_ttl,omitempty"` + // The value of the traffic class (TC, formerly known as EXP) bits that + // should be set in the MPLS ping packets. + TrafficClass uint32 `protobuf:"varint,11,opt,name=traffic_class,json=trafficClass" json:"traffic_class,omitempty"` +} + +func (m *MPLSPingRequest) Reset() { *m = MPLSPingRequest{} } +func (m *MPLSPingRequest) String() string { return proto.CompactTextString(m) } +func (*MPLSPingRequest) ProtoMessage() {} +func (*MPLSPingRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} } + +type isMPLSPingRequest_Destination interface { + isMPLSPingRequest_Destination() +} + +type MPLSPingRequest_LdpFec struct { + LdpFec string `protobuf:"bytes,1,opt,name=ldp_fec,json=ldpFec,oneof"` +} +type MPLSPingRequest_Fec129Pwe struct { + Fec129Pwe *MPLSPingPWEDestination `protobuf:"bytes,2,opt,name=fec129_pwe,json=fec129Pwe,oneof"` +} +type MPLSPingRequest_RsvpteLspName struct { + RsvpteLspName string `protobuf:"bytes,4,opt,name=rsvpte_lsp_name,json=rsvpteLspName,oneof"` +} +type MPLSPingRequest_RsvpteLsp struct { + RsvpteLsp *MPLSPingRSVPTEDestination `protobuf:"bytes,5,opt,name=rsvpte_lsp,json=rsvpteLsp,oneof"` +} + +func (*MPLSPingRequest_LdpFec) isMPLSPingRequest_Destination() {} +func (*MPLSPingRequest_Fec129Pwe) isMPLSPingRequest_Destination() {} +func (*MPLSPingRequest_RsvpteLspName) isMPLSPingRequest_Destination() {} +func (*MPLSPingRequest_RsvpteLsp) isMPLSPingRequest_Destination() {} + +func (m *MPLSPingRequest) GetDestination() isMPLSPingRequest_Destination { + if m != nil { + return m.Destination + } + return nil +} + +func (m *MPLSPingRequest) GetLdpFec() string { + if x, ok := m.GetDestination().(*MPLSPingRequest_LdpFec); ok { + return x.LdpFec + } + return "" +} + +func (m *MPLSPingRequest) GetFec129Pwe() *MPLSPingPWEDestination { + if x, ok := m.GetDestination().(*MPLSPingRequest_Fec129Pwe); ok { + return x.Fec129Pwe + } + return nil +} + +func (m *MPLSPingRequest) GetRsvpteLspName() string { + if x, ok := m.GetDestination().(*MPLSPingRequest_RsvpteLspName); ok { + return x.RsvpteLspName + } + return "" +} + +func (m *MPLSPingRequest) GetRsvpteLsp() *MPLSPingRSVPTEDestination { + if x, ok := m.GetDestination().(*MPLSPingRequest_RsvpteLsp); ok { + return x.RsvpteLsp + } + return nil +} + +func (m *MPLSPingRequest) GetReplyMode() MPLSPingRequest_ReplyMode { + if m != nil { + return m.ReplyMode + } + return MPLSPingRequest_IPV4 +} + +func (m *MPLSPingRequest) GetCount() uint32 { + if m != nil { + return m.Count + } + return 0 +} + +func (m *MPLSPingRequest) GetSize() uint32 { + if m != nil { + return m.Size + } + return 0 +} + +func (m *MPLSPingRequest) GetSourceAddress() string { + if m != nil { + return m.SourceAddress + } + return "" +} + +func (m *MPLSPingRequest) GetMplsTtl() uint32 { + if m != nil { + return m.MplsTtl + } + return 0 +} + +func (m *MPLSPingRequest) GetTrafficClass() uint32 { + if m != nil { + return m.TrafficClass + } + return 0 +} + +// XXX_OneofFuncs is for the internal use of the proto package. +func (*MPLSPingRequest) 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 _MPLSPingRequest_OneofMarshaler, _MPLSPingRequest_OneofUnmarshaler, _MPLSPingRequest_OneofSizer, []interface{}{ + (*MPLSPingRequest_LdpFec)(nil), + (*MPLSPingRequest_Fec129Pwe)(nil), + (*MPLSPingRequest_RsvpteLspName)(nil), + (*MPLSPingRequest_RsvpteLsp)(nil), + } +} + +func _MPLSPingRequest_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*MPLSPingRequest) + // destination + switch x := m.Destination.(type) { + case *MPLSPingRequest_LdpFec: + b.EncodeVarint(1<<3 | proto.WireBytes) + b.EncodeStringBytes(x.LdpFec) + case *MPLSPingRequest_Fec129Pwe: + b.EncodeVarint(2<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Fec129Pwe); err != nil { + return err + } + case *MPLSPingRequest_RsvpteLspName: + b.EncodeVarint(4<<3 | proto.WireBytes) + b.EncodeStringBytes(x.RsvpteLspName) + case *MPLSPingRequest_RsvpteLsp: + b.EncodeVarint(5<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.RsvpteLsp); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("MPLSPingRequest.Destination has unexpected type %T", x) + } + return nil +} + +func _MPLSPingRequest_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*MPLSPingRequest) + switch tag { + case 1: // destination.ldp_fec + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + x, err := b.DecodeStringBytes() + m.Destination = &MPLSPingRequest_LdpFec{x} + return true, err + case 2: // destination.fec129_pwe + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(MPLSPingPWEDestination) + err := b.DecodeMessage(msg) + m.Destination = &MPLSPingRequest_Fec129Pwe{msg} + return true, err + case 4: // destination.rsvpte_lsp_name + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + x, err := b.DecodeStringBytes() + m.Destination = &MPLSPingRequest_RsvpteLspName{x} + return true, err + case 5: // destination.rsvpte_lsp + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(MPLSPingRSVPTEDestination) + err := b.DecodeMessage(msg) + m.Destination = &MPLSPingRequest_RsvpteLsp{msg} + return true, err + default: + return false, nil + } +} + +func _MPLSPingRequest_OneofSizer(msg proto.Message) (n int) { + m := msg.(*MPLSPingRequest) + // destination + switch x := m.Destination.(type) { + case *MPLSPingRequest_LdpFec: + n += proto.SizeVarint(1<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(len(x.LdpFec))) + n += len(x.LdpFec) + case *MPLSPingRequest_Fec129Pwe: + s := proto.Size(x.Fec129Pwe) + n += proto.SizeVarint(2<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *MPLSPingRequest_RsvpteLspName: + n += proto.SizeVarint(4<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(len(x.RsvpteLspName))) + n += len(x.RsvpteLspName) + case *MPLSPingRequest_RsvpteLsp: + s := proto.Size(x.RsvpteLsp) + n += proto.SizeVarint(5<<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 +} + +// MPLSPingResponse (MPLSPong?) is sent from the target to the client based on +// each MPLS Echo Response packet it receives associated with an input MPLSPing +// RPC. +type MPLSPingResponse struct { + Seq uint32 `protobuf:"varint,1,opt,name=seq" json:"seq,omitempty"` + // The response that was received from the egress LER. + Response MPLSPingResponse_EchoResponseCode `protobuf:"varint,2,opt,name=response,enum=gnoi.mpls.MPLSPingResponse_EchoResponseCode" json:"response,omitempty"` + // The time (in nanoseconds) between transmission of the Echo Response, + // and the echo reply. + ResponseTime uint64 `protobuf:"varint,3,opt,name=response_time,json=responseTime" json:"response_time,omitempty"` +} + +func (m *MPLSPingResponse) Reset() { *m = MPLSPingResponse{} } +func (m *MPLSPingResponse) String() string { return proto.CompactTextString(m) } +func (*MPLSPingResponse) ProtoMessage() {} +func (*MPLSPingResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} } + +func (m *MPLSPingResponse) GetSeq() uint32 { + if m != nil { + return m.Seq + } + return 0 +} + +func (m *MPLSPingResponse) GetResponse() MPLSPingResponse_EchoResponseCode { + if m != nil { + return m.Response + } + return MPLSPingResponse_SUCCESS +} + +func (m *MPLSPingResponse) GetResponseTime() uint64 { + if m != nil { + return m.ResponseTime + } + return 0 +} + +func init() { + proto.RegisterType((*ClearLSPRequest)(nil), "gnoi.mpls.ClearLSPRequest") + proto.RegisterType((*ClearLSPResponse)(nil), "gnoi.mpls.ClearLSPResponse") + proto.RegisterType((*ClearLSPCountersRequest)(nil), "gnoi.mpls.ClearLSPCountersRequest") + proto.RegisterType((*ClearLSPCountersResponse)(nil), "gnoi.mpls.ClearLSPCountersResponse") + proto.RegisterType((*MPLSPingPWEDestination)(nil), "gnoi.mpls.MPLSPingPWEDestination") + proto.RegisterType((*MPLSPingRSVPTEDestination)(nil), "gnoi.mpls.MPLSPingRSVPTEDestination") + proto.RegisterType((*MPLSPingRequest)(nil), "gnoi.mpls.MPLSPingRequest") + proto.RegisterType((*MPLSPingResponse)(nil), "gnoi.mpls.MPLSPingResponse") + proto.RegisterEnum("gnoi.mpls.ClearLSPRequest_Mode", ClearLSPRequest_Mode_name, ClearLSPRequest_Mode_value) + proto.RegisterEnum("gnoi.mpls.MPLSPingRequest_ReplyMode", MPLSPingRequest_ReplyMode_name, MPLSPingRequest_ReplyMode_value) + proto.RegisterEnum("gnoi.mpls.MPLSPingResponse_EchoResponseCode", MPLSPingResponse_EchoResponseCode_name, MPLSPingResponse_EchoResponseCode_value) +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion4 + +// Client API for MPLS service + +type MPLSClient interface { + // ClearLSP clears a single tunnel (requests for it's route to be + // recalculated). + ClearLSP(ctx context.Context, in *ClearLSPRequest, opts ...grpc.CallOption) (*ClearLSPResponse, error) + // ClearLSPCounters will clear the MPLS counters for the provided LSP. + ClearLSPCounters(ctx context.Context, in *ClearLSPCountersRequest, opts ...grpc.CallOption) (*ClearLSPCountersResponse, error) + // An MPLS ping, specified as per RFC4379. + MPLSPing(ctx context.Context, in *MPLSPingRequest, opts ...grpc.CallOption) (MPLS_MPLSPingClient, error) +} + +type mPLSClient struct { + cc *grpc.ClientConn +} + +func NewMPLSClient(cc *grpc.ClientConn) MPLSClient { + return &mPLSClient{cc} +} + +func (c *mPLSClient) ClearLSP(ctx context.Context, in *ClearLSPRequest, opts ...grpc.CallOption) (*ClearLSPResponse, error) { + out := new(ClearLSPResponse) + err := grpc.Invoke(ctx, "/gnoi.mpls.MPLS/ClearLSP", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *mPLSClient) ClearLSPCounters(ctx context.Context, in *ClearLSPCountersRequest, opts ...grpc.CallOption) (*ClearLSPCountersResponse, error) { + out := new(ClearLSPCountersResponse) + err := grpc.Invoke(ctx, "/gnoi.mpls.MPLS/ClearLSPCounters", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *mPLSClient) MPLSPing(ctx context.Context, in *MPLSPingRequest, opts ...grpc.CallOption) (MPLS_MPLSPingClient, error) { + stream, err := grpc.NewClientStream(ctx, &_MPLS_serviceDesc.Streams[0], c.cc, "/gnoi.mpls.MPLS/MPLSPing", opts...) + if err != nil { + return nil, err + } + x := &mPLSMPLSPingClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type MPLS_MPLSPingClient interface { + Recv() (*MPLSPingResponse, error) + grpc.ClientStream +} + +type mPLSMPLSPingClient struct { + grpc.ClientStream +} + +func (x *mPLSMPLSPingClient) Recv() (*MPLSPingResponse, error) { + m := new(MPLSPingResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +// Server API for MPLS service + +type MPLSServer interface { + // ClearLSP clears a single tunnel (requests for it's route to be + // recalculated). + ClearLSP(context.Context, *ClearLSPRequest) (*ClearLSPResponse, error) + // ClearLSPCounters will clear the MPLS counters for the provided LSP. + ClearLSPCounters(context.Context, *ClearLSPCountersRequest) (*ClearLSPCountersResponse, error) + // An MPLS ping, specified as per RFC4379. + MPLSPing(*MPLSPingRequest, MPLS_MPLSPingServer) error +} + +func RegisterMPLSServer(s *grpc.Server, srv MPLSServer) { + s.RegisterService(&_MPLS_serviceDesc, srv) +} + +func _MPLS_ClearLSP_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ClearLSPRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MPLSServer).ClearLSP(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gnoi.mpls.MPLS/ClearLSP", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MPLSServer).ClearLSP(ctx, req.(*ClearLSPRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _MPLS_ClearLSPCounters_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ClearLSPCountersRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MPLSServer).ClearLSPCounters(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gnoi.mpls.MPLS/ClearLSPCounters", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MPLSServer).ClearLSPCounters(ctx, req.(*ClearLSPCountersRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _MPLS_MPLSPing_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(MPLSPingRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(MPLSServer).MPLSPing(m, &mPLSMPLSPingServer{stream}) +} + +type MPLS_MPLSPingServer interface { + Send(*MPLSPingResponse) error + grpc.ServerStream +} + +type mPLSMPLSPingServer struct { + grpc.ServerStream +} + +func (x *mPLSMPLSPingServer) Send(m *MPLSPingResponse) error { + return x.ServerStream.SendMsg(m) +} + +var _MPLS_serviceDesc = grpc.ServiceDesc{ + ServiceName: "gnoi.mpls.MPLS", + HandlerType: (*MPLSServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "ClearLSP", + Handler: _MPLS_ClearLSP_Handler, + }, + { + MethodName: "ClearLSPCounters", + Handler: _MPLS_ClearLSPCounters_Handler, + }, + }, + Streams: []grpc.StreamDesc{ + { + StreamName: "MPLSPing", + Handler: _MPLS_MPLSPing_Handler, + ServerStreams: true, + }, + }, + Metadata: "github.com/openconfig/gnoi/mpls/mpls.proto", +} + +func init() { proto.RegisterFile("github.com/openconfig/gnoi/mpls/mpls.proto", fileDescriptor0) } + +var fileDescriptor0 = []byte{ + // 758 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x54, 0x4f, 0x6f, 0xe2, 0x46, + 0x14, 0xb7, 0xc1, 0x09, 0xf0, 0xc0, 0xc4, 0x19, 0xa5, 0xad, 0x43, 0x0f, 0x4d, 0x9d, 0x56, 0x8d, + 0xaa, 0x94, 0xb4, 0xa4, 0x97, 0xdd, 0xd3, 0x12, 0xe2, 0x24, 0x48, 0x04, 0xd0, 0xd8, 0x24, 0xa7, + 0x95, 0x45, 0xec, 0x81, 0x58, 0x32, 0xb6, 0xe3, 0x19, 0x92, 0xdd, 0xfd, 0x92, 0x2b, 0xed, 0x17, + 0xd9, 0xd3, 0xde, 0x57, 0x33, 0xb6, 0x21, 0x10, 0x36, 0x17, 0xeb, 0xcd, 0xef, 0xbd, 0xf7, 0x7b, + 0x7f, 0xfd, 0xe0, 0xef, 0xa9, 0xcf, 0xee, 0xe7, 0x77, 0x4d, 0x37, 0x9a, 0x9d, 0x44, 0x31, 0x09, + 0xdd, 0x28, 0x9c, 0xf8, 0xd3, 0x93, 0x69, 0x18, 0xf9, 0x27, 0xb3, 0x38, 0xa0, 0xe2, 0xd3, 0x8c, + 0x93, 0x88, 0x45, 0xa8, 0xc2, 0xd1, 0x26, 0x07, 0x8c, 0x2f, 0x32, 0xec, 0x74, 0x02, 0x32, 0x4e, + 0x7a, 0xd6, 0x10, 0x93, 0x87, 0x39, 0xa1, 0x0c, 0x21, 0x50, 0xc2, 0xf1, 0x8c, 0xe8, 0x85, 0x03, + 0xf9, 0xa8, 0x82, 0x85, 0x8c, 0x4e, 0x41, 0x99, 0x45, 0x1e, 0xd1, 0x8b, 0x07, 0xf2, 0x51, 0xbd, + 0xf5, 0x5b, 0x73, 0xc1, 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0x1b, 0x91, 0xff, 0xe0, 0xc8, 0xd8, 0xe0, 0xb2, 0x76, 0x2c, 0x1a, 0x87, 0xaf, 0xda, 0x2c, + 0xe8, 0x2f, 0xa1, 0x9c, 0xb7, 0x6f, 0x25, 0xcb, 0xb5, 0x35, 0x5c, 0xc9, 0x72, 0xbd, 0xdf, 0x86, + 0xf4, 0xaf, 0x7c, 0xb7, 0x2d, 0x4e, 0xf6, 0xe9, 0xf7, 0x00, 0x00, 0x00, 0xff, 0xff, 0xca, 0x1a, + 0xfe, 0xcf, 0xe0, 0x05, 0x00, 0x00, +} diff --git a/system/system.pb.go b/system/system.pb.go new file mode 100644 index 00000000..dc7e3d7f --- /dev/null +++ b/system/system.pb.go @@ -0,0 +1,1419 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: github.com/openconfig/gnoi/system/system.proto + +/* +Package gnoi_system is a generated protocol buffer package. + +It is generated from these files: + github.com/openconfig/gnoi/system/system.proto + +It has these top-level messages: + SwitchControlProcessorRequest + SwitchControlProcessorResponse + RebootRequest + RebootResponse + CancelRebootRequest + CancelRebootResponse + RebootStatusRequest + RebootStatusResponse + TimeRequest + TimeResponse + PingRequest + PingResponse + TracerouteRequest + TracerouteResponse + Package + SetPackageRequest + SetPackageResponse +*/ +package gnoi_system + +import proto "github.com/golang/protobuf/proto" +import fmt "fmt" +import math "math" +import gnoi "github.com/openconfig/reference/rpc/gnoi" + +import ( + context "golang.org/x/net/context" + grpc "google.golang.org/grpc" +) + +// 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 + +// A RebootMethod determines what should be done with a target when a Reboot is +// requested. Only the COLD method is required to be supported by all +// targets. Methods the target does not support should result in failure. +// +// It is vendor defined if a WARM reboot is the same as an NSF reboot. +type RebootMethod int32 + +const ( + RebootMethod_UNKNOWN RebootMethod = 0 + RebootMethod_COLD RebootMethod = 1 + RebootMethod_POWERDOWN RebootMethod = 2 + RebootMethod_HALT RebootMethod = 3 + RebootMethod_WARM RebootMethod = 4 + RebootMethod_NSF RebootMethod = 5 + RebootMethod_RESET RebootMethod = 6 + RebootMethod_POWERUP RebootMethod = 7 +) + +var RebootMethod_name = map[int32]string{ + 0: "UNKNOWN", + 1: "COLD", + 2: "POWERDOWN", + 3: "HALT", + 4: "WARM", + 5: "NSF", + 6: "RESET", + 7: "POWERUP", +} +var RebootMethod_value = map[string]int32{ + "UNKNOWN": 0, + "COLD": 1, + "POWERDOWN": 2, + "HALT": 3, + "WARM": 4, + "NSF": 5, + "RESET": 6, + "POWERUP": 7, +} + +func (x RebootMethod) String() string { + return proto.EnumName(RebootMethod_name, int32(x)) +} +func (RebootMethod) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } + +type TracerouteRequest_L4Protocol int32 + +const ( + TracerouteRequest_ICMP TracerouteRequest_L4Protocol = 0 + TracerouteRequest_TCP TracerouteRequest_L4Protocol = 1 + TracerouteRequest_UDP TracerouteRequest_L4Protocol = 2 +) + +var TracerouteRequest_L4Protocol_name = map[int32]string{ + 0: "ICMP", + 1: "TCP", + 2: "UDP", +} +var TracerouteRequest_L4Protocol_value = map[string]int32{ + "ICMP": 0, + "TCP": 1, + "UDP": 2, +} + +func (x TracerouteRequest_L4Protocol) String() string { + return proto.EnumName(TracerouteRequest_L4Protocol_name, int32(x)) +} +func (TracerouteRequest_L4Protocol) EnumDescriptor() ([]byte, []int) { + return fileDescriptor0, []int{12, 0} +} + +// State is the resulting state of a single traceoroute packet. +type TracerouteResponse_State int32 + +const ( + TracerouteResponse_DEFAULT TracerouteResponse_State = 0 + TracerouteResponse_NONE TracerouteResponse_State = 1 + TracerouteResponse_UNKNOWN TracerouteResponse_State = 2 + TracerouteResponse_ICMP TracerouteResponse_State = 3 + TracerouteResponse_HOST_UNREACHABLE TracerouteResponse_State = 4 + TracerouteResponse_NETWORK_UNREACHABLE TracerouteResponse_State = 5 + TracerouteResponse_PROTOCOL_UNREACHABLE TracerouteResponse_State = 6 + TracerouteResponse_SOURCE_ROUTE_FAILED TracerouteResponse_State = 7 + TracerouteResponse_FRAGMENTATION_NEEDED TracerouteResponse_State = 8 + TracerouteResponse_PROHIBITED TracerouteResponse_State = 9 + TracerouteResponse_PRECEDENCE_VIOLATION TracerouteResponse_State = 10 + TracerouteResponse_PRECEDENCE_CUTOFF TracerouteResponse_State = 11 +) + +var TracerouteResponse_State_name = map[int32]string{ + 0: "DEFAULT", + 1: "NONE", + 2: "UNKNOWN", + 3: "ICMP", + 4: "HOST_UNREACHABLE", + 5: "NETWORK_UNREACHABLE", + 6: "PROTOCOL_UNREACHABLE", + 7: "SOURCE_ROUTE_FAILED", + 8: "FRAGMENTATION_NEEDED", + 9: "PROHIBITED", + 10: "PRECEDENCE_VIOLATION", + 11: "PRECEDENCE_CUTOFF", +} +var TracerouteResponse_State_value = map[string]int32{ + "DEFAULT": 0, + "NONE": 1, + "UNKNOWN": 2, + "ICMP": 3, + "HOST_UNREACHABLE": 4, + "NETWORK_UNREACHABLE": 5, + "PROTOCOL_UNREACHABLE": 6, + "SOURCE_ROUTE_FAILED": 7, + "FRAGMENTATION_NEEDED": 8, + "PROHIBITED": 9, + "PRECEDENCE_VIOLATION": 10, + "PRECEDENCE_CUTOFF": 11, +} + +func (x TracerouteResponse_State) String() string { + return proto.EnumName(TracerouteResponse_State_name, int32(x)) +} +func (TracerouteResponse_State) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{13, 0} } + +type SwitchControlProcessorRequest struct { + ControlProcessor *gnoi.Path `protobuf:"bytes,1,opt,name=control_processor,json=controlProcessor" json:"control_processor,omitempty"` +} + +func (m *SwitchControlProcessorRequest) Reset() { *m = SwitchControlProcessorRequest{} } +func (m *SwitchControlProcessorRequest) String() string { return proto.CompactTextString(m) } +func (*SwitchControlProcessorRequest) ProtoMessage() {} +func (*SwitchControlProcessorRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } + +func (m *SwitchControlProcessorRequest) GetControlProcessor() *gnoi.Path { + if m != nil { + return m.ControlProcessor + } + return nil +} + +type SwitchControlProcessorResponse struct { + ControlProcessor *gnoi.Path `protobuf:"bytes,1,opt,name=control_processor,json=controlProcessor" json:"control_processor,omitempty"` + Version string `protobuf:"bytes,2,opt,name=version" json:"version,omitempty"` + Uptime int64 `protobuf:"varint,3,opt,name=uptime" json:"uptime,omitempty"` +} + +func (m *SwitchControlProcessorResponse) Reset() { *m = SwitchControlProcessorResponse{} } +func (m *SwitchControlProcessorResponse) String() string { return proto.CompactTextString(m) } +func (*SwitchControlProcessorResponse) ProtoMessage() {} +func (*SwitchControlProcessorResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } + +func (m *SwitchControlProcessorResponse) GetControlProcessor() *gnoi.Path { + if m != nil { + return m.ControlProcessor + } + return nil +} + +func (m *SwitchControlProcessorResponse) GetVersion() string { + if m != nil { + return m.Version + } + return "" +} + +func (m *SwitchControlProcessorResponse) GetUptime() int64 { + if m != nil { + return m.Uptime + } + return 0 +} + +// A RebootRequest requests the specified target be rebooted using the specified +// method aftar the specified delay. Only the DEFAULT method with a delay of 0 +// is guaranteed to be accepted for all target types. +type RebootRequest struct { + Method RebootMethod `protobuf:"varint,1,opt,name=method,enum=gnoi.system.RebootMethod" json:"method,omitempty"` + // Delay in nanoseconds before issuing reboot. + Delay uint64 `protobuf:"varint,2,opt,name=delay" json:"delay,omitempty"` + // Informational reason for the reboot. + Message string `protobuf:"bytes,3,opt,name=message" json:"message,omitempty"` + // Optional sub-components to reboot. + Subcomponents []*gnoi.Path `protobuf:"bytes,4,rep,name=subcomponents" json:"subcomponents,omitempty"` + // Force reboot if sanity checks fail. (ex. uncommited configuration) + Force bool `protobuf:"varint,5,opt,name=force" json:"force,omitempty"` +} + +func (m *RebootRequest) Reset() { *m = RebootRequest{} } +func (m *RebootRequest) String() string { return proto.CompactTextString(m) } +func (*RebootRequest) ProtoMessage() {} +func (*RebootRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} } + +func (m *RebootRequest) GetMethod() RebootMethod { + if m != nil { + return m.Method + } + return RebootMethod_UNKNOWN +} + +func (m *RebootRequest) GetDelay() uint64 { + if m != nil { + return m.Delay + } + return 0 +} + +func (m *RebootRequest) GetMessage() string { + if m != nil { + return m.Message + } + return "" +} + +func (m *RebootRequest) GetSubcomponents() []*gnoi.Path { + if m != nil { + return m.Subcomponents + } + return nil +} + +func (m *RebootRequest) GetForce() bool { + if m != nil { + return m.Force + } + return false +} + +type RebootResponse struct { +} + +func (m *RebootResponse) Reset() { *m = RebootResponse{} } +func (m *RebootResponse) String() string { return proto.CompactTextString(m) } +func (*RebootResponse) ProtoMessage() {} +func (*RebootResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} } + +// A CancelRebootRequest requests the cancelation of any outstanding reboot +// request. +type CancelRebootRequest struct { + Message string `protobuf:"bytes,1,opt,name=message" json:"message,omitempty"` + Subcomponents []*gnoi.Path `protobuf:"bytes,2,rep,name=subcomponents" json:"subcomponents,omitempty"` +} + +func (m *CancelRebootRequest) Reset() { *m = CancelRebootRequest{} } +func (m *CancelRebootRequest) String() string { return proto.CompactTextString(m) } +func (*CancelRebootRequest) ProtoMessage() {} +func (*CancelRebootRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} } + +func (m *CancelRebootRequest) GetMessage() string { + if m != nil { + return m.Message + } + return "" +} + +func (m *CancelRebootRequest) GetSubcomponents() []*gnoi.Path { + if m != nil { + return m.Subcomponents + } + return nil +} + +type CancelRebootResponse struct { +} + +func (m *CancelRebootResponse) Reset() { *m = CancelRebootResponse{} } +func (m *CancelRebootResponse) String() string { return proto.CompactTextString(m) } +func (*CancelRebootResponse) ProtoMessage() {} +func (*CancelRebootResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} } + +type RebootStatusRequest struct { + Subcomponents []*gnoi.Path `protobuf:"bytes,1,rep,name=subcomponents" json:"subcomponents,omitempty"` +} + +func (m *RebootStatusRequest) Reset() { *m = RebootStatusRequest{} } +func (m *RebootStatusRequest) String() string { return proto.CompactTextString(m) } +func (*RebootStatusRequest) ProtoMessage() {} +func (*RebootStatusRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} } + +func (m *RebootStatusRequest) GetSubcomponents() []*gnoi.Path { + if m != nil { + return m.Subcomponents + } + return nil +} + +type RebootStatusResponse struct { + Active bool `protobuf:"varint,1,opt,name=active" json:"active,omitempty"` + Wait uint64 `protobuf:"varint,2,opt,name=wait" json:"wait,omitempty"` + When uint64 `protobuf:"varint,3,opt,name=when" json:"when,omitempty"` + Reason string `protobuf:"bytes,4,opt,name=reason" json:"reason,omitempty"` + Count uint32 `protobuf:"varint,5,opt,name=count" json:"count,omitempty"` +} + +func (m *RebootStatusResponse) Reset() { *m = RebootStatusResponse{} } +func (m *RebootStatusResponse) String() string { return proto.CompactTextString(m) } +func (*RebootStatusResponse) ProtoMessage() {} +func (*RebootStatusResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} } + +func (m *RebootStatusResponse) GetActive() bool { + if m != nil { + return m.Active + } + return false +} + +func (m *RebootStatusResponse) GetWait() uint64 { + if m != nil { + return m.Wait + } + return 0 +} + +func (m *RebootStatusResponse) GetWhen() uint64 { + if m != nil { + return m.When + } + return 0 +} + +func (m *RebootStatusResponse) GetReason() string { + if m != nil { + return m.Reason + } + return "" +} + +func (m *RebootStatusResponse) GetCount() uint32 { + if m != nil { + return m.Count + } + return 0 +} + +// A TimeRequest requests the current time accodring to the target. +type TimeRequest struct { +} + +func (m *TimeRequest) Reset() { *m = TimeRequest{} } +func (m *TimeRequest) String() string { return proto.CompactTextString(m) } +func (*TimeRequest) ProtoMessage() {} +func (*TimeRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} } + +type TimeResponse struct { + Time uint64 `protobuf:"varint,1,opt,name=time" json:"time,omitempty"` +} + +func (m *TimeResponse) Reset() { *m = TimeResponse{} } +func (m *TimeResponse) String() string { return proto.CompactTextString(m) } +func (*TimeResponse) ProtoMessage() {} +func (*TimeResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{9} } + +func (m *TimeResponse) GetTime() uint64 { + if m != nil { + return m.Time + } + return 0 +} + +// A PingRequest describes the ping operation to perform. Only the destination +// fields is required. Any field not specified is set to a reasonable server +// specified value. Not all fields are supported by all vendors. +// +// A count of 0 defaults to a vendor specified value, typically 5. A count of +// -1 means continue until the RPC times out or is canceled. +// +// If the interval is -1 then a flood ping is issued. +// +// If the size is 0, the vendor default size will be used (typically 56 bytes). +type PingRequest struct { + Destination string `protobuf:"bytes,1,opt,name=destination" json:"destination,omitempty"` + Source string `protobuf:"bytes,2,opt,name=source" json:"source,omitempty"` + Count int32 `protobuf:"varint,3,opt,name=count" json:"count,omitempty"` + Interval int64 `protobuf:"varint,4,opt,name=interval" json:"interval,omitempty"` + Wait int64 `protobuf:"varint,5,opt,name=wait" json:"wait,omitempty"` + Size int32 `protobuf:"varint,6,opt,name=size" json:"size,omitempty"` + DoNotFragment bool `protobuf:"varint,7,opt,name=do_not_fragment,json=doNotFragment" json:"do_not_fragment,omitempty"` + DoNotResolve bool `protobuf:"varint,8,opt,name=do_not_resolve,json=doNotResolve" json:"do_not_resolve,omitempty"` + L3Protocol gnoi.L3Protocol `protobuf:"varint,9,opt,name=l3protocol,enum=gnoi.L3Protocol" json:"l3protocol,omitempty"` +} + +func (m *PingRequest) Reset() { *m = PingRequest{} } +func (m *PingRequest) String() string { return proto.CompactTextString(m) } +func (*PingRequest) ProtoMessage() {} +func (*PingRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{10} } + +func (m *PingRequest) GetDestination() string { + if m != nil { + return m.Destination + } + return "" +} + +func (m *PingRequest) GetSource() string { + if m != nil { + return m.Source + } + return "" +} + +func (m *PingRequest) GetCount() int32 { + if m != nil { + return m.Count + } + return 0 +} + +func (m *PingRequest) GetInterval() int64 { + if m != nil { + return m.Interval + } + return 0 +} + +func (m *PingRequest) GetWait() int64 { + if m != nil { + return m.Wait + } + return 0 +} + +func (m *PingRequest) GetSize() int32 { + if m != nil { + return m.Size + } + return 0 +} + +func (m *PingRequest) GetDoNotFragment() bool { + if m != nil { + return m.DoNotFragment + } + return false +} + +func (m *PingRequest) GetDoNotResolve() bool { + if m != nil { + return m.DoNotResolve + } + return false +} + +func (m *PingRequest) GetL3Protocol() gnoi.L3Protocol { + if m != nil { + return m.L3Protocol + } + return gnoi.L3Protocol_UNSPECIFIED +} + +// A PingResponse represents either the reponse to a single ping packet +// (the bytes field is non-zero) or the summary statistics (sent is non-zero). +// +// For a single ping packet, time is the round trip time, in nanoseconds. For +// summary statistics, it is the time spent by the ping operation. The time is +// not always present in summary statistics. The std_dev is not always present +// in summary statistics. +type PingResponse struct { + Source string `protobuf:"bytes,1,opt,name=source" json:"source,omitempty"` + Time int64 `protobuf:"varint,2,opt,name=time" json:"time,omitempty"` + Sent int32 `protobuf:"varint,3,opt,name=sent" json:"sent,omitempty"` + Received int32 `protobuf:"varint,4,opt,name=received" json:"received,omitempty"` + MinTime int64 `protobuf:"varint,5,opt,name=min_time,json=minTime" json:"min_time,omitempty"` + AvgTime int64 `protobuf:"varint,6,opt,name=avg_time,json=avgTime" json:"avg_time,omitempty"` + MaxTime int64 `protobuf:"varint,7,opt,name=max_time,json=maxTime" json:"max_time,omitempty"` + StdDev int64 `protobuf:"varint,8,opt,name=std_dev,json=stdDev" json:"std_dev,omitempty"` + Bytes int32 `protobuf:"varint,11,opt,name=bytes" json:"bytes,omitempty"` + Sequence int32 `protobuf:"varint,12,opt,name=sequence" json:"sequence,omitempty"` + Ttl int32 `protobuf:"varint,13,opt,name=ttl" json:"ttl,omitempty"` +} + +func (m *PingResponse) Reset() { *m = PingResponse{} } +func (m *PingResponse) String() string { return proto.CompactTextString(m) } +func (*PingResponse) ProtoMessage() {} +func (*PingResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{11} } + +func (m *PingResponse) GetSource() string { + if m != nil { + return m.Source + } + return "" +} + +func (m *PingResponse) GetTime() int64 { + if m != nil { + return m.Time + } + return 0 +} + +func (m *PingResponse) GetSent() int32 { + if m != nil { + return m.Sent + } + return 0 +} + +func (m *PingResponse) GetReceived() int32 { + if m != nil { + return m.Received + } + return 0 +} + +func (m *PingResponse) GetMinTime() int64 { + if m != nil { + return m.MinTime + } + return 0 +} + +func (m *PingResponse) GetAvgTime() int64 { + if m != nil { + return m.AvgTime + } + return 0 +} + +func (m *PingResponse) GetMaxTime() int64 { + if m != nil { + return m.MaxTime + } + return 0 +} + +func (m *PingResponse) GetStdDev() int64 { + if m != nil { + return m.StdDev + } + return 0 +} + +func (m *PingResponse) GetBytes() int32 { + if m != nil { + return m.Bytes + } + return 0 +} + +func (m *PingResponse) GetSequence() int32 { + if m != nil { + return m.Sequence + } + return 0 +} + +func (m *PingResponse) GetTtl() int32 { + if m != nil { + return m.Ttl + } + return 0 +} + +// A TracerouteRequest describes the traceroute operation to perform. Only the +// destination field is required. Any field not specified is set to a +// reasonable server specified value. Not all fields are supported by all +// vendors. +// +// If the hop_count is -1 the traceroute will continue forever. +// +type TracerouteRequest struct { + Source string `protobuf:"bytes,1,opt,name=source" json:"source,omitempty"` + Destination string `protobuf:"bytes,2,opt,name=destination" json:"destination,omitempty"` + InitialTtl uint32 `protobuf:"varint,3,opt,name=initial_ttl,json=initialTtl" json:"initial_ttl,omitempty"` + MaxTtl int32 `protobuf:"varint,4,opt,name=max_ttl,json=maxTtl" json:"max_ttl,omitempty"` + Wait int64 `protobuf:"varint,5,opt,name=wait" json:"wait,omitempty"` + DoNotFragment bool `protobuf:"varint,6,opt,name=do_not_fragment,json=doNotFragment" json:"do_not_fragment,omitempty"` + DoNotResolve bool `protobuf:"varint,7,opt,name=do_not_resolve,json=doNotResolve" json:"do_not_resolve,omitempty"` + L3Protocol gnoi.L3Protocol `protobuf:"varint,8,opt,name=l3protocol,enum=gnoi.L3Protocol" json:"l3protocol,omitempty"` + L4Protocol TracerouteRequest_L4Protocol `protobuf:"varint,9,opt,name=l4protocol,enum=gnoi.system.TracerouteRequest_L4Protocol" json:"l4protocol,omitempty"` +} + +func (m *TracerouteRequest) Reset() { *m = TracerouteRequest{} } +func (m *TracerouteRequest) String() string { return proto.CompactTextString(m) } +func (*TracerouteRequest) ProtoMessage() {} +func (*TracerouteRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{12} } + +func (m *TracerouteRequest) GetSource() string { + if m != nil { + return m.Source + } + return "" +} + +func (m *TracerouteRequest) GetDestination() string { + if m != nil { + return m.Destination + } + return "" +} + +func (m *TracerouteRequest) GetInitialTtl() uint32 { + if m != nil { + return m.InitialTtl + } + return 0 +} + +func (m *TracerouteRequest) GetMaxTtl() int32 { + if m != nil { + return m.MaxTtl + } + return 0 +} + +func (m *TracerouteRequest) GetWait() int64 { + if m != nil { + return m.Wait + } + return 0 +} + +func (m *TracerouteRequest) GetDoNotFragment() bool { + if m != nil { + return m.DoNotFragment + } + return false +} + +func (m *TracerouteRequest) GetDoNotResolve() bool { + if m != nil { + return m.DoNotResolve + } + return false +} + +func (m *TracerouteRequest) GetL3Protocol() gnoi.L3Protocol { + if m != nil { + return m.L3Protocol + } + return gnoi.L3Protocol_UNSPECIFIED +} + +func (m *TracerouteRequest) GetL4Protocol() TracerouteRequest_L4Protocol { + if m != nil { + return m.L4Protocol + } + return TracerouteRequest_ICMP +} + +// A TraceRouteResponse contains the result of a single traceoute packet. +// +// There may be an optional initial response that provides information about the +// traceroute request itself and contains at least one of the fields in the the +// initial block of fields and none of the fields following that block. All +// subsequent responses should not contain any of these fields. +// +// Typically multiple responses are received for each hop, as the packets are +// received. +// +// The mpls field maps names to values. Example names include "Label", "CoS", +// "TTL", "S", and "MRU". +// [Perhaps we should list the canonical names that must be used when +// applicable]. +type TracerouteResponse struct { + // The following fields are only filled in for the first message. + // If any of these fields are specified, all fields following this + // block are left unspecified. + DestinationName string `protobuf:"bytes,1,opt,name=destination_name,json=destinationName" json:"destination_name,omitempty"` + DestinationAddress string `protobuf:"bytes,2,opt,name=destination_address,json=destinationAddress" json:"destination_address,omitempty"` + Hops int32 `protobuf:"varint,3,opt,name=hops" json:"hops,omitempty"` + PacketSize int32 `protobuf:"varint,4,opt,name=packet_size,json=packetSize" json:"packet_size,omitempty"` + // The following fields provide the disposition of a single traceroute + // packet. + Hop int32 `protobuf:"varint,5,opt,name=hop" json:"hop,omitempty"` + Address string `protobuf:"bytes,6,opt,name=address" json:"address,omitempty"` + Name string `protobuf:"bytes,7,opt,name=name" json:"name,omitempty"` + Rtt int64 `protobuf:"varint,8,opt,name=rtt" json:"rtt,omitempty"` + State TracerouteResponse_State `protobuf:"varint,9,opt,name=state,enum=gnoi.system.TracerouteResponse_State" json:"state,omitempty"` + IcmpCode int32 `protobuf:"varint,10,opt,name=icmp_code,json=icmpCode" json:"icmp_code,omitempty"` + Mpls map[string]string `protobuf:"bytes,11,rep,name=mpls" json:"mpls,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + AsPath []int32 `protobuf:"varint,12,rep,packed,name=as_path,json=asPath" json:"as_path,omitempty"` +} + +func (m *TracerouteResponse) Reset() { *m = TracerouteResponse{} } +func (m *TracerouteResponse) String() string { return proto.CompactTextString(m) } +func (*TracerouteResponse) ProtoMessage() {} +func (*TracerouteResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{13} } + +func (m *TracerouteResponse) GetDestinationName() string { + if m != nil { + return m.DestinationName + } + return "" +} + +func (m *TracerouteResponse) GetDestinationAddress() string { + if m != nil { + return m.DestinationAddress + } + return "" +} + +func (m *TracerouteResponse) GetHops() int32 { + if m != nil { + return m.Hops + } + return 0 +} + +func (m *TracerouteResponse) GetPacketSize() int32 { + if m != nil { + return m.PacketSize + } + return 0 +} + +func (m *TracerouteResponse) GetHop() int32 { + if m != nil { + return m.Hop + } + return 0 +} + +func (m *TracerouteResponse) GetAddress() string { + if m != nil { + return m.Address + } + return "" +} + +func (m *TracerouteResponse) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *TracerouteResponse) GetRtt() int64 { + if m != nil { + return m.Rtt + } + return 0 +} + +func (m *TracerouteResponse) GetState() TracerouteResponse_State { + if m != nil { + return m.State + } + return TracerouteResponse_DEFAULT +} + +func (m *TracerouteResponse) GetIcmpCode() int32 { + if m != nil { + return m.IcmpCode + } + return 0 +} + +func (m *TracerouteResponse) GetMpls() map[string]string { + if m != nil { + return m.Mpls + } + return nil +} + +func (m *TracerouteResponse) GetAsPath() []int32 { + if m != nil { + return m.AsPath + } + return nil +} + +// Package defines a single package file to be placed on the target. +type Package struct { + Filename string `protobuf:"bytes,1,opt,name=filename" json:"filename,omitempty"` + Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` + Hash *gnoi.HashType `protobuf:"bytes,3,opt,name=hash" json:"hash,omitempty"` + Version string `protobuf:"bytes,4,opt,name=version" json:"version,omitempty"` + Activate bool `protobuf:"varint,5,opt,name=activate" json:"activate,omitempty"` +} + +func (m *Package) Reset() { *m = Package{} } +func (m *Package) String() string { return proto.CompactTextString(m) } +func (*Package) ProtoMessage() {} +func (*Package) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{14} } + +func (m *Package) GetFilename() string { + if m != nil { + return m.Filename + } + return "" +} + +func (m *Package) GetData() []byte { + if m != nil { + return m.Data + } + return nil +} + +func (m *Package) GetHash() *gnoi.HashType { + if m != nil { + return m.Hash + } + return nil +} + +func (m *Package) GetVersion() string { + if m != nil { + return m.Version + } + return "" +} + +func (m *Package) GetActivate() bool { + if m != nil { + return m.Activate + } + return false +} + +// SetPackageRequest will place the package onto the target and optionally mark +// it as the next bootable image. +type SetPackageRequest struct { + Packages []*Package `protobuf:"bytes,1,rep,name=packages" json:"packages,omitempty"` +} + +func (m *SetPackageRequest) Reset() { *m = SetPackageRequest{} } +func (m *SetPackageRequest) String() string { return proto.CompactTextString(m) } +func (*SetPackageRequest) ProtoMessage() {} +func (*SetPackageRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{15} } + +func (m *SetPackageRequest) GetPackages() []*Package { + if m != nil { + return m.Packages + } + return nil +} + +type SetPackageResponse struct { +} + +func (m *SetPackageResponse) Reset() { *m = SetPackageResponse{} } +func (m *SetPackageResponse) String() string { return proto.CompactTextString(m) } +func (*SetPackageResponse) ProtoMessage() {} +func (*SetPackageResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{16} } + +func init() { + proto.RegisterType((*SwitchControlProcessorRequest)(nil), "gnoi.system.SwitchControlProcessorRequest") + proto.RegisterType((*SwitchControlProcessorResponse)(nil), "gnoi.system.SwitchControlProcessorResponse") + proto.RegisterType((*RebootRequest)(nil), "gnoi.system.RebootRequest") + proto.RegisterType((*RebootResponse)(nil), "gnoi.system.RebootResponse") + proto.RegisterType((*CancelRebootRequest)(nil), "gnoi.system.CancelRebootRequest") + proto.RegisterType((*CancelRebootResponse)(nil), "gnoi.system.CancelRebootResponse") + proto.RegisterType((*RebootStatusRequest)(nil), "gnoi.system.RebootStatusRequest") + proto.RegisterType((*RebootStatusResponse)(nil), "gnoi.system.RebootStatusResponse") + proto.RegisterType((*TimeRequest)(nil), "gnoi.system.TimeRequest") + proto.RegisterType((*TimeResponse)(nil), "gnoi.system.TimeResponse") + proto.RegisterType((*PingRequest)(nil), "gnoi.system.PingRequest") + proto.RegisterType((*PingResponse)(nil), "gnoi.system.PingResponse") + proto.RegisterType((*TracerouteRequest)(nil), "gnoi.system.TracerouteRequest") + proto.RegisterType((*TracerouteResponse)(nil), "gnoi.system.TracerouteResponse") + proto.RegisterType((*Package)(nil), "gnoi.system.Package") + proto.RegisterType((*SetPackageRequest)(nil), "gnoi.system.SetPackageRequest") + proto.RegisterType((*SetPackageResponse)(nil), "gnoi.system.SetPackageResponse") + proto.RegisterEnum("gnoi.system.RebootMethod", RebootMethod_name, RebootMethod_value) + proto.RegisterEnum("gnoi.system.TracerouteRequest_L4Protocol", TracerouteRequest_L4Protocol_name, TracerouteRequest_L4Protocol_value) + proto.RegisterEnum("gnoi.system.TracerouteResponse_State", TracerouteResponse_State_name, TracerouteResponse_State_value) +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion4 + +// Client API for System service + +type SystemClient interface { + // Ping executes the ping command on the target and streams back + // the results. Some targets may not stream any results until all + // results are in. If a packet count is not explicitly provided, + // 5 is used. + Ping(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (System_PingClient, error) + // Traceroute executes the traceroute command on the target and streams back + // the results. Some targets may not stream any results until all + // results are in. If a hop count is not explicitly provided, + // 30 is used. + Traceroute(ctx context.Context, in *TracerouteRequest, opts ...grpc.CallOption) (System_TracerouteClient, error) + // Time returns the current time on the target. Time is typically used to + // test if a target is actually responding. + Time(ctx context.Context, in *TimeRequest, opts ...grpc.CallOption) (*TimeResponse, error) + // SetPackage places a software package (possibly including bootable images) + // on the target. + SetPackage(ctx context.Context, in *SetPackageRequest, opts ...grpc.CallOption) (*SetPackageResponse, error) + // SwitchControlProcessor will switch from the current route processor to the + // provided route processor. If the current route processor is the same as the + // one provided it is a NOOP. If the target does not exist an error is + // returned. + SwitchControlProcessor(ctx context.Context, in *SwitchControlProcessorRequest, opts ...grpc.CallOption) (*SwitchControlProcessorResponse, error) + // Reboot causes the target to reboot, possibly at some point in the future. + // If the method of reboot is not supported then the Reboot RPC will fail. + // If the reboot is immediate the command will block until the subcomponents + // have restarted. + // If a reboot on the active control processor is pending the service must + // reject all other reboot requests. + // If a reboot request for active control processor is initiated with other + // pending reboot requests it must be rejected. + Reboot(ctx context.Context, in *RebootRequest, opts ...grpc.CallOption) (*RebootResponse, error) + // RebootStatus returns the status of reboot for the target. + RebootStatus(ctx context.Context, in *RebootStatusRequest, opts ...grpc.CallOption) (*RebootStatusResponse, error) + // CancelReboot cancels any pending reboot request. + CancelReboot(ctx context.Context, in *CancelRebootRequest, opts ...grpc.CallOption) (*CancelRebootResponse, error) +} + +type systemClient struct { + cc *grpc.ClientConn +} + +func NewSystemClient(cc *grpc.ClientConn) SystemClient { + return &systemClient{cc} +} + +func (c *systemClient) Ping(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (System_PingClient, error) { + stream, err := grpc.NewClientStream(ctx, &_System_serviceDesc.Streams[0], c.cc, "/gnoi.system.System/Ping", opts...) + if err != nil { + return nil, err + } + x := &systemPingClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type System_PingClient interface { + Recv() (*PingResponse, error) + grpc.ClientStream +} + +type systemPingClient struct { + grpc.ClientStream +} + +func (x *systemPingClient) Recv() (*PingResponse, error) { + m := new(PingResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *systemClient) Traceroute(ctx context.Context, in *TracerouteRequest, opts ...grpc.CallOption) (System_TracerouteClient, error) { + stream, err := grpc.NewClientStream(ctx, &_System_serviceDesc.Streams[1], c.cc, "/gnoi.system.System/Traceroute", opts...) + if err != nil { + return nil, err + } + x := &systemTracerouteClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type System_TracerouteClient interface { + Recv() (*TracerouteResponse, error) + grpc.ClientStream +} + +type systemTracerouteClient struct { + grpc.ClientStream +} + +func (x *systemTracerouteClient) Recv() (*TracerouteResponse, error) { + m := new(TracerouteResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *systemClient) Time(ctx context.Context, in *TimeRequest, opts ...grpc.CallOption) (*TimeResponse, error) { + out := new(TimeResponse) + err := grpc.Invoke(ctx, "/gnoi.system.System/Time", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *systemClient) SetPackage(ctx context.Context, in *SetPackageRequest, opts ...grpc.CallOption) (*SetPackageResponse, error) { + out := new(SetPackageResponse) + err := grpc.Invoke(ctx, "/gnoi.system.System/SetPackage", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *systemClient) SwitchControlProcessor(ctx context.Context, in *SwitchControlProcessorRequest, opts ...grpc.CallOption) (*SwitchControlProcessorResponse, error) { + out := new(SwitchControlProcessorResponse) + err := grpc.Invoke(ctx, "/gnoi.system.System/SwitchControlProcessor", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *systemClient) Reboot(ctx context.Context, in *RebootRequest, opts ...grpc.CallOption) (*RebootResponse, error) { + out := new(RebootResponse) + err := grpc.Invoke(ctx, "/gnoi.system.System/Reboot", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *systemClient) RebootStatus(ctx context.Context, in *RebootStatusRequest, opts ...grpc.CallOption) (*RebootStatusResponse, error) { + out := new(RebootStatusResponse) + err := grpc.Invoke(ctx, "/gnoi.system.System/RebootStatus", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *systemClient) CancelReboot(ctx context.Context, in *CancelRebootRequest, opts ...grpc.CallOption) (*CancelRebootResponse, error) { + out := new(CancelRebootResponse) + err := grpc.Invoke(ctx, "/gnoi.system.System/CancelReboot", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// Server API for System service + +type SystemServer interface { + // Ping executes the ping command on the target and streams back + // the results. Some targets may not stream any results until all + // results are in. If a packet count is not explicitly provided, + // 5 is used. + Ping(*PingRequest, System_PingServer) error + // Traceroute executes the traceroute command on the target and streams back + // the results. Some targets may not stream any results until all + // results are in. If a hop count is not explicitly provided, + // 30 is used. + Traceroute(*TracerouteRequest, System_TracerouteServer) error + // Time returns the current time on the target. Time is typically used to + // test if a target is actually responding. + Time(context.Context, *TimeRequest) (*TimeResponse, error) + // SetPackage places a software package (possibly including bootable images) + // on the target. + SetPackage(context.Context, *SetPackageRequest) (*SetPackageResponse, error) + // SwitchControlProcessor will switch from the current route processor to the + // provided route processor. If the current route processor is the same as the + // one provided it is a NOOP. If the target does not exist an error is + // returned. + SwitchControlProcessor(context.Context, *SwitchControlProcessorRequest) (*SwitchControlProcessorResponse, error) + // Reboot causes the target to reboot, possibly at some point in the future. + // If the method of reboot is not supported then the Reboot RPC will fail. + // If the reboot is immediate the command will block until the subcomponents + // have restarted. + // If a reboot on the active control processor is pending the service must + // reject all other reboot requests. + // If a reboot request for active control processor is initiated with other + // pending reboot requests it must be rejected. + Reboot(context.Context, *RebootRequest) (*RebootResponse, error) + // RebootStatus returns the status of reboot for the target. + RebootStatus(context.Context, *RebootStatusRequest) (*RebootStatusResponse, error) + // CancelReboot cancels any pending reboot request. + CancelReboot(context.Context, *CancelRebootRequest) (*CancelRebootResponse, error) +} + +func RegisterSystemServer(s *grpc.Server, srv SystemServer) { + s.RegisterService(&_System_serviceDesc, srv) +} + +func _System_Ping_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(PingRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(SystemServer).Ping(m, &systemPingServer{stream}) +} + +type System_PingServer interface { + Send(*PingResponse) error + grpc.ServerStream +} + +type systemPingServer struct { + grpc.ServerStream +} + +func (x *systemPingServer) Send(m *PingResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _System_Traceroute_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(TracerouteRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(SystemServer).Traceroute(m, &systemTracerouteServer{stream}) +} + +type System_TracerouteServer interface { + Send(*TracerouteResponse) error + grpc.ServerStream +} + +type systemTracerouteServer struct { + grpc.ServerStream +} + +func (x *systemTracerouteServer) Send(m *TracerouteResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _System_Time_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TimeRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SystemServer).Time(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gnoi.system.System/Time", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SystemServer).Time(ctx, req.(*TimeRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _System_SetPackage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SetPackageRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SystemServer).SetPackage(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gnoi.system.System/SetPackage", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SystemServer).SetPackage(ctx, req.(*SetPackageRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _System_SwitchControlProcessor_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SwitchControlProcessorRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SystemServer).SwitchControlProcessor(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gnoi.system.System/SwitchControlProcessor", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SystemServer).SwitchControlProcessor(ctx, req.(*SwitchControlProcessorRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _System_Reboot_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RebootRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SystemServer).Reboot(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gnoi.system.System/Reboot", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SystemServer).Reboot(ctx, req.(*RebootRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _System_RebootStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RebootStatusRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SystemServer).RebootStatus(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gnoi.system.System/RebootStatus", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SystemServer).RebootStatus(ctx, req.(*RebootStatusRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _System_CancelReboot_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CancelRebootRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SystemServer).CancelReboot(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gnoi.system.System/CancelReboot", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SystemServer).CancelReboot(ctx, req.(*CancelRebootRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _System_serviceDesc = grpc.ServiceDesc{ + ServiceName: "gnoi.system.System", + HandlerType: (*SystemServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "Time", + Handler: _System_Time_Handler, + }, + { + MethodName: "SetPackage", + Handler: _System_SetPackage_Handler, + }, + { + MethodName: "SwitchControlProcessor", + Handler: _System_SwitchControlProcessor_Handler, + }, + { + MethodName: "Reboot", + Handler: _System_Reboot_Handler, + }, + { + MethodName: "RebootStatus", + Handler: _System_RebootStatus_Handler, + }, + { + MethodName: "CancelReboot", + Handler: _System_CancelReboot_Handler, + }, + }, + Streams: []grpc.StreamDesc{ + { + StreamName: "Ping", + Handler: _System_Ping_Handler, + ServerStreams: true, + }, + { + StreamName: "Traceroute", + Handler: _System_Traceroute_Handler, + ServerStreams: true, + }, + }, + Metadata: "github.com/openconfig/gnoi/system/system.proto", +} + +func init() { proto.RegisterFile("github.com/openconfig/gnoi/system/system.proto", fileDescriptor0) } + +var fileDescriptor0 = []byte{ + // 1525 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x57, 0xdf, 0x6e, 0xdb, 0xbc, + 0x15, 0x8f, 0xfc, 0xdf, 0xc7, 0x49, 0xaa, 0x30, 0x59, 0xaa, 0xba, 0x58, 0xeb, 0x09, 0xdb, 0x90, + 0x76, 0x80, 0xd3, 0xa5, 0x05, 0x3a, 0x6c, 0x28, 0x06, 0xd7, 0x56, 0x9a, 0xa0, 0x8e, 0xe5, 0xc9, + 0xf2, 0xb2, 0x3b, 0x83, 0x91, 0x19, 0x5b, 0xa8, 0x2c, 0x6a, 0x22, 0xed, 0x36, 0xbb, 0xde, 0xdd, + 0x6e, 0x06, 0x6c, 0x17, 0xbb, 0xdd, 0x6b, 0xec, 0x45, 0xf6, 0x1e, 0xdf, 0x13, 0x7c, 0x20, 0x29, + 0xd9, 0xb2, 0xe3, 0x36, 0xc5, 0x77, 0x65, 0x9e, 0x3f, 0x3c, 0xe7, 0xf0, 0x77, 0x7e, 0xa4, 0x8e, + 0xa1, 0x39, 0xf1, 0xf9, 0x74, 0x7e, 0xd3, 0xf4, 0xe8, 0xec, 0x94, 0x46, 0x24, 0xf4, 0x68, 0x78, + 0xeb, 0x4f, 0x4e, 0x27, 0x21, 0xf5, 0x4f, 0xd9, 0x1d, 0xe3, 0x64, 0x96, 0xfc, 0x34, 0xa3, 0x98, + 0x72, 0x8a, 0x6a, 0xc2, 0xd2, 0x54, 0xaa, 0xfa, 0x9b, 0xed, 0x9b, 0x63, 0x72, 0x4b, 0x62, 0x12, + 0x7a, 0xe4, 0x34, 0x8e, 0x3c, 0x15, 0x8a, 0x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3, 0xd8, 0xd0, + 0x4e, 0x2a, 0x8e, 0x12, 0x4c, 0x1d, 0xf6, 0xd3, 0xda, 0x15, 0x72, 0x26, 0x86, 0xc3, 0x36, 0x0e, + 0x3d, 0x12, 0xac, 0x9f, 0x29, 0x53, 0x8a, 0xf6, 0x40, 0x29, 0xb9, 0x07, 0x4a, 0x31, 0x8f, 0xe1, + 0x68, 0x3d, 0x45, 0x92, 0xfa, 0x03, 0x1c, 0x2a, 0xcd, 0x80, 0x63, 0x3e, 0x67, 0x69, 0xea, 0x7b, + 0x09, 0xb4, 0x87, 0x12, 0xfc, 0x5d, 0x83, 0xa3, 0xf5, 0x48, 0x09, 0x2d, 0x8e, 0xa1, 0x84, 0x3d, + 0xee, 0x2f, 0xd4, 0x21, 0x2a, 0x4e, 0x22, 0x21, 0x04, 0x85, 0xcf, 0xd8, 0xe7, 0x09, 0xfa, 0x72, + 0x2d, 0x75, 0x53, 0x12, 0x4a, 0xe4, 0x85, 0x6e, 0x4a, 0x24, 0x07, 0x62, 0x82, 0x19, 0x0d, 0x8d, + 0x82, 0x04, 0x21, 0x91, 0x04, 0xb8, 0x1e, 0x9d, 0x87, 0x5c, 0x82, 0xbb, 0xe7, 0x28, 0xc1, 0xdc, + 0x83, 0x9a, 0xeb, 0xcf, 0x48, 0x72, 0x0e, 0xd3, 0x84, 0x5d, 0x25, 0x26, 0xc5, 0x20, 0x28, 0x48, + 0x3a, 0x69, 0x2a, 0x81, 0x24, 0xd3, 0x7f, 0x73, 0x50, 0xeb, 0xfb, 0xe1, 0x24, 0x3d, 0x7b, 0x03, + 0x6a, 0x63, 0xc2, 0xb8, 0x1f, 0x62, 0x2e, 0x28, 0xa9, 0xa0, 0xcf, 0xaa, 0x44, 0x49, 0x8c, 0xce, + 0x45, 0x63, 0x15, 0x5f, 0x13, 0x69, 0x55, 0x92, 0xa8, 0xbf, 0x98, 0x94, 0x84, 0xea, 0x50, 0xf1, + 0x43, 0x4e, 0xe2, 0x05, 0x0e, 0xe4, 0x11, 0xf2, 0xce, 0x52, 0x5e, 0x82, 0x50, 0x94, 0xfa, 0x25, + 0x08, 0xcc, 0xff, 0x1b, 0x31, 0x4a, 0x32, 0x88, 0x5c, 0xa3, 0x5f, 0xc3, 0xa3, 0x31, 0x1d, 0x85, + 0x94, 0x8f, 0x6e, 0x63, 0x3c, 0x99, 0x91, 0x90, 0x1b, 0x65, 0x89, 0xe6, 0xde, 0x98, 0xf6, 0x28, + 0x3f, 0x4f, 0x94, 0xe8, 0x97, 0xb0, 0x9f, 0xf8, 0xc5, 0x84, 0xd1, 0x60, 0x41, 0x8c, 0x8a, 0x74, + 0xdb, 0x95, 0x6e, 0x8e, 0xd2, 0xa1, 0x57, 0x00, 0xc1, 0x6b, 0xf9, 0x62, 0x78, 0x34, 0x30, 0xaa, + 0xf2, 0xc2, 0xe8, 0xaa, 0xb5, 0xdd, 0xd7, 0xfd, 0x44, 0xef, 0x64, 0x7c, 0xcc, 0xff, 0xe4, 0x60, + 0x57, 0x61, 0xb4, 0xea, 0x6a, 0x02, 0x81, 0xb6, 0x06, 0x41, 0x0a, 0x70, 0x4e, 0x1d, 0x48, 0xac, + 0xe5, 0x81, 0xc8, 0x12, 0x15, 0xb9, 0x16, 0xa0, 0xc4, 0xc4, 0x23, 0xfe, 0x82, 0x8c, 0x25, 0x28, + 0x45, 0x67, 0x29, 0xa3, 0x27, 0x50, 0x99, 0xf9, 0xe1, 0x48, 0xc6, 0x51, 0xc0, 0x94, 0x67, 0x7e, + 0x28, 0xfa, 0x28, 0x4c, 0x78, 0x31, 0x51, 0xa6, 0x92, 0x32, 0xe1, 0xc5, 0x24, 0x35, 0xcd, 0xf0, + 0x17, 0x65, 0x2a, 0x27, 0xbb, 0xf0, 0x17, 0x69, 0x7a, 0x0c, 0x65, 0xc6, 0xc7, 0xa3, 0x31, 0x59, + 0x48, 0x38, 0xf2, 0x4e, 0x89, 0xf1, 0x71, 0x87, 0x2c, 0x44, 0xc3, 0x6e, 0xee, 0x38, 0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x6b, 0xdf, 0x46, 0x45, 0xf7, 0xfb, 0x62, 0xee, 0x20, 0x06, 0xc7, + 0xdb, 0xff, 0x12, 0xa0, 0x97, 0xeb, 0x9b, 0xbf, 0xf5, 0x97, 0xa4, 0xfe, 0x9b, 0xef, 0xf2, 0x5d, + 0x26, 0x6d, 0x43, 0x49, 0xd1, 0x01, 0xd5, 0xb7, 0x8c, 0xf8, 0x69, 0xd0, 0xa7, 0x5b, 0x6d, 0xcb, + 0x20, 0xc3, 0x94, 0x53, 0x6a, 0x56, 0x45, 0x8d, 0x2d, 0xee, 0x6b, 0x03, 0x71, 0xfd, 0x17, 0xdf, + 0xf0, 0xc8, 0x86, 0xcd, 0x0e, 0xd9, 0x1b, 0x61, 0xb7, 0x8c, 0xf8, 0x1b, 0x61, 0xb7, 0x4e, 0xe8, + 0x3b, 0x37, 0x25, 0xf9, 0x09, 0x7c, 0xfd, 0x63, 0x00, 0x00, 0x00, 0xff, 0xff, 0x1c, 0x98, 0x98, + 0x50, 0x51, 0x0e, 0x00, 0x00, +} diff --git a/types.pb.go b/types.pb.go new file mode 100644 index 00000000..9a8d4a12 --- /dev/null +++ b/types.pb.go @@ -0,0 +1,150 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: github.com/openconfig/gnoi/types.proto + +/* +Package gnoi is a generated protocol buffer package. + +It is generated from these files: + github.com/openconfig/gnoi/types.proto + +It has these top-level messages: + HashType + Path +*/ +package gnoi + +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 + +// Generic Layer 3 Protocol enumeration. +type L3Protocol int32 + +const ( + L3Protocol_UNSPECIFIED L3Protocol = 0 + L3Protocol_IPV4 L3Protocol = 1 + L3Protocol_IPV6 L3Protocol = 2 +) + +var L3Protocol_name = map[int32]string{ + 0: "UNSPECIFIED", + 1: "IPV4", + 2: "IPV6", +} +var L3Protocol_value = map[string]int32{ + "UNSPECIFIED": 0, + "IPV4": 1, + "IPV6": 2, +} + +func (x L3Protocol) String() string { + return proto.EnumName(L3Protocol_name, int32(x)) +} +func (L3Protocol) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } + +type HashType_HashMethod int32 + +const ( + HashType_UNSPECIFIED HashType_HashMethod = 0 + HashType_SHA256 HashType_HashMethod = 1 + HashType_SHA512 HashType_HashMethod = 2 +) + +var HashType_HashMethod_name = map[int32]string{ + 0: "UNSPECIFIED", + 1: "SHA256", + 2: "SHA512", +} +var HashType_HashMethod_value = map[string]int32{ + "UNSPECIFIED": 0, + "SHA256": 1, + "SHA512": 2, +} + +func (x HashType_HashMethod) String() string { + return proto.EnumName(HashType_HashMethod_name, int32(x)) +} +func (HashType_HashMethod) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0, 0} } + +// HashType defines the valid hash methods for data verification. UNSPECIFIED +// should be treated an error. +type HashType struct { + Method HashType_HashMethod `protobuf:"varint,1,opt,name=method,enum=gnoi.HashType_HashMethod" json:"method,omitempty"` + Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` +} + +func (m *HashType) Reset() { *m = HashType{} } +func (m *HashType) String() string { return proto.CompactTextString(m) } +func (*HashType) ProtoMessage() {} +func (*HashType) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } + +func (m *HashType) GetMethod() HashType_HashMethod { + if m != nil { + return m.Method + } + return HashType_UNSPECIFIED +} + +func (m *HashType) GetHash() []byte { + if m != nil { + return m.Hash + } + return nil +} + +// OpenConfig path representation of the target. +// eg. /interfaces/interface[name=et-1/0/0] +type Path struct { + Elements []string `protobuf:"bytes,1,rep,name=elements" json:"elements,omitempty"` +} + +func (m *Path) Reset() { *m = Path{} } +func (m *Path) String() string { return proto.CompactTextString(m) } +func (*Path) ProtoMessage() {} +func (*Path) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } + +func (m *Path) GetElements() []string { + if m != nil { + return m.Elements + } + return nil +} + +func init() { + proto.RegisterType((*HashType)(nil), "gnoi.HashType") + proto.RegisterType((*Path)(nil), "gnoi.Path") + proto.RegisterEnum("gnoi.L3Protocol", L3Protocol_name, L3Protocol_value) + proto.RegisterEnum("gnoi.HashType_HashMethod", HashType_HashMethod_name, HashType_HashMethod_value) +} + +func init() { proto.RegisterFile("github.com/openconfig/gnoi/types.proto", fileDescriptor0) } + +var fileDescriptor0 = []byte{ + // 233 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x4b, 0xcf, 0x2c, 0xc9, + 0x28, 0x4d, 0xd2, 0x4b, 0xce, 0xcf, 0xd5, 0xcf, 0x2f, 0x48, 0xcd, 0x4b, 0xce, 0xcf, 0x4b, 0xcb, + 0x4c, 0xd7, 0x4f, 0xcf, 0xcb, 0xcf, 0xd4, 0x2f, 0xa9, 0x2c, 0x48, 0x2d, 0xd6, 0x2b, 0x28, 0xca, + 0x2f, 0xc9, 0x17, 0x62, 0x01, 0x89, 0x28, 0x75, 0x30, 0x72, 0x71, 0x78, 0x24, 0x16, 0x67, 0x84, + 0x54, 0x16, 0xa4, 0x0a, 0x19, 0x72, 0xb1, 0xe5, 0xa6, 0x96, 0x64, 0xe4, 0xa7, 0x48, 0x30, 0x2a, + 0x30, 0x6a, 0xf0, 0x19, 0x49, 0xea, 0x81, 0xd4, 0xe8, 0xc1, 0xe4, 0xc1, 0x0c, 0x5f, 0xb0, 0x82, + 0x20, 0xa8, 0x42, 0x21, 0x21, 0x2e, 0x96, 0x8c, 0xc4, 0xe2, 0x0c, 0x09, 0x26, 0x05, 0x46, 0x0d, + 0x9e, 0x20, 0x30, 0x5b, 0xc9, 0x94, 0x8b, 0x0b, 0xa1, 0x52, 0x88, 0x9f, 0x8b, 0x3b, 0xd4, 0x2f, + 0x38, 0xc0, 0xd5, 0xd9, 0xd3, 0xcd, 0xd3, 0xd5, 0x45, 0x80, 0x41, 0x88, 0x8b, 0x8b, 0x2d, 0xd8, + 0xc3, 0xd1, 0xc8, 0xd4, 0x4c, 0x80, 0x11, 0xca, 0x36, 0x35, 0x34, 0x12, 0x60, 0x52, 0x52, 0xe2, + 0x62, 0x09, 0x48, 0x2c, 0xc9, 0x10, 0x92, 0xe2, 0xe2, 0x48, 0xcd, 0x49, 0xcd, 0x4d, 0xcd, 0x2b, + 0x29, 0x96, 0x60, 0x54, 0x60, 0xd6, 0xe0, 0x0c, 0x82, 0xf3, 0xb5, 0x0c, 0xb9, 0xb8, 0x7c, 0x8c, + 0x03, 0x40, 0xee, 0x4f, 0xce, 0xcf, 0xc1, 0x34, 0x9a, 0x83, 0x8b, 0xc5, 0x33, 0x20, 0xcc, 0x44, + 0x80, 0x11, 0xca, 0x32, 0x13, 0x60, 0x4a, 0x62, 0x03, 0x7b, 0xd7, 0x18, 0x10, 0x00, 0x00, 0xff, + 0xff, 0xb0, 0x4d, 0xd2, 0x1e, 0x18, 0x01, 0x00, 0x00, +} From edbff507417892687e290d70ac73c51b24002e5b Mon Sep 17 00:00:00 2001 From: Marcus Hines Date: Thu, 17 Aug 2017 16:36:34 -0700 Subject: [PATCH 006/238] squash! Add generated go files --- README.md | 2 + system/system.pb.go | 443 +++++++++++++++++++++++++++++--------------- types.pb.go | 90 ++++++--- 3 files changed, 369 insertions(+), 166 deletions(-) diff --git a/README.md b/README.md index 5d4f7015..07cf7dd4 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,7 @@ gNOI defines a set of gRPC-based microservices for executing operational commands on network devices. # Rebuild *.pb.go files +cd ${GOPATH}/src protoc -I=${GOPATH}/src:${GOPATH}/src/github.com/openconfig/gnoi --go_out=plugins=grpc:. ${GOPATH}/src/github.com/openconfig/gnoi/types.proto protoc -I=${GOPATH}/src:${GOPATH}/src/github.com/openconfig/gnoi --go_out=plugins=grpc:. ${GOPATH}/src/github.com/openconfig/gnoi/bgp/bgp.proto protoc -I=${GOPATH}/src:${GOPATH}/src/github.com/openconfig/gnoi --go_out=plugins=grpc:. ${GOPATH}/src/github.com/openconfig/gnoi/cert/cert.proto @@ -9,3 +10,4 @@ protoc -I=${GOPATH}/src:${GOPATH}/src/github.com/openconfig/gnoi --go_out=plugin protoc -I=${GOPATH}/src:${GOPATH}/src/github.com/openconfig/gnoi --go_out=plugins=grpc:. ${GOPATH}/src/github.com/openconfig/gnoi/layer2/layer2.proto protoc -I=${GOPATH}/src:${GOPATH}/src/github.com/openconfig/gnoi --go_out=plugins=grpc:. ${GOPATH}/src/github.com/openconfig/gnoi/mpls/mpls.proto protoc -I=${GOPATH}/src:${GOPATH}/src/github.com/openconfig/gnoi --go_out=plugins=grpc:. ${GOPATH}/src/github.com/openconfig/gnoi/system/system.proto +cd - diff --git a/system/system.pb.go b/system/system.pb.go index dc7e3d7f..bac26680 100644 --- a/system/system.pb.go +++ b/system/system.pb.go @@ -31,7 +31,7 @@ package gnoi_system import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" -import gnoi "github.com/openconfig/reference/rpc/gnoi" +import gnoi "github.com/openconfig/gnoi" import ( context "golang.org/x/net/context" @@ -810,11 +810,9 @@ func (m *TracerouteResponse) GetAsPath() []int32 { // Package defines a single package file to be placed on the target. type Package struct { - Filename string `protobuf:"bytes,1,opt,name=filename" json:"filename,omitempty"` - Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` - Hash *gnoi.HashType `protobuf:"bytes,3,opt,name=hash" json:"hash,omitempty"` - Version string `protobuf:"bytes,4,opt,name=version" json:"version,omitempty"` - Activate bool `protobuf:"varint,5,opt,name=activate" json:"activate,omitempty"` + Filename string `protobuf:"bytes,1,opt,name=filename" json:"filename,omitempty"` + Version string `protobuf:"bytes,4,opt,name=version" json:"version,omitempty"` + Activate bool `protobuf:"varint,5,opt,name=activate" json:"activate,omitempty"` } func (m *Package) Reset() { *m = Package{} } @@ -829,20 +827,6 @@ func (m *Package) GetFilename() string { return "" } -func (m *Package) GetData() []byte { - if m != nil { - return m.Data - } - return nil -} - -func (m *Package) GetHash() *gnoi.HashType { - if m != nil { - return m.Hash - } - return nil -} - func (m *Package) GetVersion() string { if m != nil { return m.Version @@ -858,9 +842,16 @@ func (m *Package) GetActivate() bool { } // SetPackageRequest will place the package onto the target and optionally mark -// it as the next bootable image. +// it as the next bootable image. The initial message must be a package +// message containing the filename and information about the file. +// The final message must be a hash message contains the hash of the file +// contents. type SetPackageRequest struct { - Packages []*Package `protobuf:"bytes,1,rep,name=packages" json:"packages,omitempty"` + // Types that are valid to be assigned to Request: + // *SetPackageRequest_Package + // *SetPackageRequest_Contents + // *SetPackageRequest_Hash + Request isSetPackageRequest_Request `protobuf_oneof:"request"` } func (m *SetPackageRequest) Reset() { *m = SetPackageRequest{} } @@ -868,13 +859,141 @@ func (m *SetPackageRequest) String() string { return proto.CompactTex func (*SetPackageRequest) ProtoMessage() {} func (*SetPackageRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{15} } -func (m *SetPackageRequest) GetPackages() []*Package { +type isSetPackageRequest_Request interface { + isSetPackageRequest_Request() +} + +type SetPackageRequest_Package struct { + Package *Package `protobuf:"bytes,1,opt,name=package,oneof"` +} +type SetPackageRequest_Contents struct { + Contents []byte `protobuf:"bytes,2,opt,name=contents,proto3,oneof"` +} +type SetPackageRequest_Hash struct { + Hash *gnoi.HashType `protobuf:"bytes,3,opt,name=hash,oneof"` +} + +func (*SetPackageRequest_Package) isSetPackageRequest_Request() {} +func (*SetPackageRequest_Contents) isSetPackageRequest_Request() {} +func (*SetPackageRequest_Hash) isSetPackageRequest_Request() {} + +func (m *SetPackageRequest) GetRequest() isSetPackageRequest_Request { if m != nil { - return m.Packages + return m.Request + } + return nil +} + +func (m *SetPackageRequest) GetPackage() *Package { + if x, ok := m.GetRequest().(*SetPackageRequest_Package); ok { + return x.Package + } + return nil +} + +func (m *SetPackageRequest) GetContents() []byte { + if x, ok := m.GetRequest().(*SetPackageRequest_Contents); ok { + return x.Contents + } + return nil +} + +func (m *SetPackageRequest) GetHash() *gnoi.HashType { + if x, ok := m.GetRequest().(*SetPackageRequest_Hash); ok { + return x.Hash + } + return nil +} + +// XXX_OneofFuncs is for the internal use of the proto package. +func (*SetPackageRequest) 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 _SetPackageRequest_OneofMarshaler, _SetPackageRequest_OneofUnmarshaler, _SetPackageRequest_OneofSizer, []interface{}{ + (*SetPackageRequest_Package)(nil), + (*SetPackageRequest_Contents)(nil), + (*SetPackageRequest_Hash)(nil), + } +} + +func _SetPackageRequest_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*SetPackageRequest) + // request + switch x := m.Request.(type) { + case *SetPackageRequest_Package: + b.EncodeVarint(1<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Package); err != nil { + return err + } + case *SetPackageRequest_Contents: + b.EncodeVarint(2<<3 | proto.WireBytes) + b.EncodeRawBytes(x.Contents) + case *SetPackageRequest_Hash: + b.EncodeVarint(3<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Hash); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("SetPackageRequest.Request has unexpected type %T", x) } return nil } +func _SetPackageRequest_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*SetPackageRequest) + switch tag { + case 1: // request.package + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(Package) + err := b.DecodeMessage(msg) + m.Request = &SetPackageRequest_Package{msg} + return true, err + case 2: // request.contents + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + x, err := b.DecodeRawBytes(true) + m.Request = &SetPackageRequest_Contents{x} + return true, err + case 3: // request.hash + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(gnoi.HashType) + err := b.DecodeMessage(msg) + m.Request = &SetPackageRequest_Hash{msg} + return true, err + default: + return false, nil + } +} + +func _SetPackageRequest_OneofSizer(msg proto.Message) (n int) { + m := msg.(*SetPackageRequest) + // request + switch x := m.Request.(type) { + case *SetPackageRequest_Package: + s := proto.Size(x.Package) + n += proto.SizeVarint(1<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *SetPackageRequest_Contents: + n += proto.SizeVarint(2<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(len(x.Contents))) + n += len(x.Contents) + case *SetPackageRequest_Hash: + s := proto.Size(x.Hash) + n += proto.SizeVarint(3<<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 +} + type SetPackageResponse struct { } @@ -932,7 +1051,7 @@ type SystemClient interface { Time(ctx context.Context, in *TimeRequest, opts ...grpc.CallOption) (*TimeResponse, error) // SetPackage places a software package (possibly including bootable images) // on the target. - SetPackage(ctx context.Context, in *SetPackageRequest, opts ...grpc.CallOption) (*SetPackageResponse, error) + SetPackage(ctx context.Context, opts ...grpc.CallOption) (System_SetPackageClient, error) // SwitchControlProcessor will switch from the current route processor to the // provided route processor. If the current route processor is the same as the // one provided it is a NOOP. If the target does not exist an error is @@ -1034,13 +1153,38 @@ func (c *systemClient) Time(ctx context.Context, in *TimeRequest, opts ...grpc.C return out, nil } -func (c *systemClient) SetPackage(ctx context.Context, in *SetPackageRequest, opts ...grpc.CallOption) (*SetPackageResponse, error) { - out := new(SetPackageResponse) - err := grpc.Invoke(ctx, "/gnoi.system.System/SetPackage", in, out, c.cc, opts...) +func (c *systemClient) SetPackage(ctx context.Context, opts ...grpc.CallOption) (System_SetPackageClient, error) { + stream, err := grpc.NewClientStream(ctx, &_System_serviceDesc.Streams[2], c.cc, "/gnoi.system.System/SetPackage", opts...) if err != nil { return nil, err } - return out, nil + x := &systemSetPackageClient{stream} + return x, nil +} + +type System_SetPackageClient interface { + Send(*SetPackageRequest) error + CloseAndRecv() (*SetPackageResponse, error) + grpc.ClientStream +} + +type systemSetPackageClient struct { + grpc.ClientStream +} + +func (x *systemSetPackageClient) Send(m *SetPackageRequest) error { + return x.ClientStream.SendMsg(m) +} + +func (x *systemSetPackageClient) CloseAndRecv() (*SetPackageResponse, error) { + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + m := new(SetPackageResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil } func (c *systemClient) SwitchControlProcessor(ctx context.Context, in *SwitchControlProcessorRequest, opts ...grpc.CallOption) (*SwitchControlProcessorResponse, error) { @@ -1097,7 +1241,7 @@ type SystemServer interface { Time(context.Context, *TimeRequest) (*TimeResponse, error) // SetPackage places a software package (possibly including bootable images) // on the target. - SetPackage(context.Context, *SetPackageRequest) (*SetPackageResponse, error) + SetPackage(System_SetPackageServer) error // SwitchControlProcessor will switch from the current route processor to the // provided route processor. If the current route processor is the same as the // one provided it is a NOOP. If the target does not exist an error is @@ -1182,22 +1326,30 @@ func _System_Time_Handler(srv interface{}, ctx context.Context, dec func(interfa return interceptor(ctx, in, info, handler) } -func _System_SetPackage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SetPackageRequest) - if err := dec(in); err != nil { +func _System_SetPackage_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(SystemServer).SetPackage(&systemSetPackageServer{stream}) +} + +type System_SetPackageServer interface { + SendAndClose(*SetPackageResponse) error + Recv() (*SetPackageRequest, error) + grpc.ServerStream +} + +type systemSetPackageServer struct { + grpc.ServerStream +} + +func (x *systemSetPackageServer) SendAndClose(m *SetPackageResponse) error { + return x.ServerStream.SendMsg(m) +} + +func (x *systemSetPackageServer) Recv() (*SetPackageRequest, error) { + m := new(SetPackageRequest) + if err := x.ServerStream.RecvMsg(m); err != nil { return nil, err } - if interceptor == nil { - return srv.(SystemServer).SetPackage(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.system.System/SetPackage", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(SystemServer).SetPackage(ctx, req.(*SetPackageRequest)) - } - return interceptor(ctx, in, info, handler) + return m, nil } func _System_SwitchControlProcessor_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { @@ -1280,10 +1432,6 @@ var _System_serviceDesc = grpc.ServiceDesc{ MethodName: "Time", Handler: _System_Time_Handler, }, - { - MethodName: "SetPackage", - Handler: _System_SetPackage_Handler, - }, { MethodName: "SwitchControlProcessor", Handler: _System_SwitchControlProcessor_Handler, @@ -1312,6 +1460,11 @@ var _System_serviceDesc = grpc.ServiceDesc{ Handler: _System_Traceroute_Handler, ServerStreams: true, }, + { + StreamName: "SetPackage", + Handler: _System_SetPackage_Handler, + ClientStreams: true, + }, }, Metadata: "github.com/openconfig/gnoi/system/system.proto", } @@ -1319,101 +1472,101 @@ var _System_serviceDesc = grpc.ServiceDesc{ func init() { proto.RegisterFile("github.com/openconfig/gnoi/system/system.proto", fileDescriptor0) } var fileDescriptor0 = []byte{ - // 1525 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x57, 0xdf, 0x6e, 0xdb, 0xbc, - 0x15, 0x8f, 0xfc, 0xdf, 0xc7, 0x49, 0xaa, 0x30, 0x59, 0xaa, 0xba, 0x58, 0xeb, 0x09, 0xdb, 0x90, - 0x76, 0x80, 0xd3, 0xa5, 0x05, 0x3a, 0x6c, 0x28, 0x06, 0xd7, 0x56, 0x9a, 0xa0, 0x8e, 0xe5, 0xc9, - 0xf2, 0xb2, 0x3b, 0x83, 0x91, 0x19, 0x5b, 0xa8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, 0xcc, 0xff, 0xe4, 0x60, - 0x57, 0x61, 0xb4, 0xea, 0x6a, 0x02, 0x81, 0xb6, 0x06, 0x41, 0x0a, 0x70, 0x4e, 0x1d, 0x48, 0xac, - 0xe5, 0x81, 0xc8, 0x12, 0x15, 0xb9, 0x16, 0xa0, 0xc4, 0xc4, 0x23, 0xfe, 0x82, 0x8c, 0x25, 0x28, - 0x45, 0x67, 0x29, 0xa3, 0x27, 0x50, 0x99, 0xf9, 0xe1, 0x48, 0xc6, 0x51, 0xc0, 0x94, 0x67, 0x7e, - 0x28, 0xfa, 0x28, 0x4c, 0x78, 0x31, 0x51, 0xa6, 0x92, 0x32, 0xe1, 0xc5, 0x24, 0x35, 0xcd, 0xf0, - 0x17, 0x65, 0x2a, 0x27, 0xbb, 0xf0, 0x17, 0x69, 0x7a, 0x0c, 0x65, 0xc6, 0xc7, 0xa3, 0x31, 0x59, - 0x48, 0x38, 0xf2, 0x4e, 0x89, 0xf1, 0x71, 0x87, 0x2c, 0x44, 0xc3, 0x6e, 0xee, 0x38, 0x61, 0x46, - 0x4d, 0x35, 0x4c, 0x0a, 0xa2, 0x36, 0x26, 0xb8, 0x10, 0x7a, 0xc4, 0xd8, 0x55, 0xb5, 0xa5, 0x32, - 0xd2, 0x21, 0xcf, 0x79, 0x60, 0xec, 0x49, 0xb5, 0x58, 0x9a, 0xff, 0xcc, 0xc3, 0x81, 0x1b, 0x63, - 0x8f, 0xc4, 0x74, 0xce, 0x53, 0xe2, 0x7d, 0x15, 0x9f, 0x0d, 0x72, 0xe5, 0xee, 0x93, 0xeb, 0x39, - 0xd4, 0xfc, 0xd0, 0xe7, 0x3e, 0x0e, 0x46, 0x22, 0x53, 0x5e, 0xb2, 0x1b, 0x12, 0x95, 0xcb, 0x03, - 0x71, 0x1a, 0x79, 0x50, 0x1e, 0x24, 0xc8, 0x95, 0xc4, 0x39, 0xf9, 0x76, 0x32, 0x6d, 0x21, 0x4e, - 0xe9, 0xfb, 0x88, 0x53, 0x7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00, 0xff, 0xff, 0x1c, 0x98, 0x98, - 0x50, 0x51, 0x0e, 0x00, 0x00, + // 1532 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x57, 0xdd, 0x6e, 0xdb, 0xbe, + 0x15, 0xb7, 0xfc, 0xed, 0xe3, 0x24, 0x7f, 0x85, 0xc9, 0x52, 0xd5, 0xdd, 0x5a, 0x4f, 0xe8, 0x8a, + 0xb4, 0x03, 0x9c, 0x2e, 0x2d, 0xd0, 0x61, 0x43, 0x31, 0xb8, 0xb6, 0xd2, 0x04, 0x75, 0x6c, 0x4f, + 0x96, 0x97, 0x01, 0xbb, 0x30, 0x18, 0x99, 0xb1, 0x85, 0xca, 0xa2, 0x26, 0xd2, 0x6e, 0xb3, 0xeb, + 0xdd, 0xed, 0x66, 0x17, 0xc3, 0xb0, 0xdb, 0xbd, 0xc6, 0x5e, 0x64, 0xef, 0xb1, 0x27, 0x18, 0x48, + 0x4a, 0xb6, 0xec, 0xb8, 0x49, 0xf1, 0xbf, 0x32, 0xcf, 0x39, 0xe4, 0xf9, 0xf8, 0x9d, 0x1f, 0xa9, + 0x63, 0x68, 0x4c, 0x3c, 0x3e, 0x9d, 0x5f, 0x37, 0x5c, 0x3a, 0x3b, 0xa1, 0x21, 0x09, 0x5c, 0x1a, + 0xdc, 0x78, 0x93, 0x93, 0x49, 0x40, 0xbd, 0x13, 0x76, 0xcb, 0x38, 0x99, 0xc5, 0x3f, 0x8d, 0x30, + 0xa2, 0x9c, 0xa2, 0xaa, 0xb0, 0x34, 0x94, 0xaa, 0xf6, 0xe2, 0x9e, 0xc3, 0xfc, 0x36, 0x24, 0x4c, + 0x1d, 0x32, 0xff, 0x08, 0x3f, 0x1b, 0x7c, 0xf1, 0xb8, 0x3b, 0x6d, 0xd1, 0x80, 0x47, 0xd4, 0xef, + 0x47, 0xd4, 0x25, 0x8c, 0xd1, 0xc8, 0x26, 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a4, 0x92, + 0x7d, 0x20, 0x15, 0xf3, 0x08, 0x0e, 0xd7, 0x43, 0xc4, 0xa1, 0x3f, 0xc2, 0x81, 0xd2, 0x0c, 0x38, + 0xe6, 0x73, 0x96, 0x84, 0xbe, 0x13, 0x40, 0x7b, 0x28, 0xc0, 0x5f, 0x35, 0x38, 0x5c, 0xf7, 0x14, + 0xd3, 0xe2, 0x08, 0x8a, 0xd8, 0xe5, 0xde, 0x42, 0x15, 0x51, 0xb6, 0x63, 0x09, 0x21, 0xc8, 0x7f, + 0xc1, 0x1e, 0x8f, 0xd1, 0x97, 0x6b, 0xa9, 0x9b, 0x92, 0x40, 0x22, 0x2f, 0x74, 0x53, 0x22, 0x39, + 0x10, 0x11, 0xcc, 0x68, 0x60, 0xe4, 0x25, 0x08, 0xb1, 0x24, 0xc0, 0x75, 0xe9, 0x3c, 0xe0, 0x12, + 0xdc, 0x5d, 0x5b, 0x09, 0xe6, 0x2e, 0x54, 0x1d, 0x6f, 0x46, 0xe2, 0x3a, 0x4c, 0x13, 0x76, 0x94, + 0x18, 0x27, 0x83, 0x20, 0x2f, 0xe9, 0xa4, 0xa9, 0x00, 0x92, 0x4c, 0xff, 0xce, 0x42, 0xb5, 0xef, + 0x05, 0x93, 0xa4, 0xf6, 0x3a, 0x54, 0xc7, 0x84, 0x71, 0x2f, 0xc0, 0x5c, 0x50, 0x52, 0x41, 0x9f, + 0x56, 0x89, 0x94, 0x18, 0x9d, 0x8b, 0xc6, 0x2a, 0xbe, 0xc6, 0xd2, 0x2a, 0x25, 0x91, 0x7f, 0x21, + 0x4e, 0x09, 0xd5, 0xa0, 0xec, 0x05, 0x9c, 0x44, 0x0b, 0xec, 0xcb, 0x12, 0x72, 0xf6, 0x52, 0x5e, + 0x82, 0x50, 0x90, 0xfa, 0x25, 0x08, 0xcc, 0xfb, 0x0b, 0x31, 0x8a, 0xd2, 0x89, 0x5c, 0xa3, 0x17, + 0xf0, 0xc3, 0x98, 0x8e, 0x02, 0xca, 0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, 0x83, 0xa3, 0xed, 0xff, 0x15, 0xd0, 0xab, 0xf5, 0xe3, 0xf7, 0xfd, + 0x57, 0xa9, 0xfd, 0xf2, 0xbb, 0xf6, 0x2e, 0xeb, 0x68, 0x41, 0x51, 0x11, 0x02, 0xd5, 0xb6, 0xcc, + 0xfe, 0x89, 0xd3, 0x27, 0x5b, 0x6d, 0x4b, 0x27, 0xc3, 0x84, 0x55, 0x6a, 0x88, 0x45, 0xf5, 0x2d, + 0xdb, 0xd7, 0x26, 0xe5, 0xda, 0xcf, 0xef, 0xd9, 0x91, 0x76, 0x9b, 0x9e, 0xbe, 0x37, 0xdc, 0x6e, + 0x99, 0xfd, 0x37, 0xdc, 0x6e, 0x1d, 0xdd, 0x33, 0xd7, 0x45, 0xf9, 0x6d, 0x7c, 0xf3, 0xff, 0x00, + 0x00, 0x00, 0xff, 0xff, 0xf5, 0xc0, 0x29, 0xeb, 0x5c, 0x0e, 0x00, 0x00, } diff --git a/types.pb.go b/types.pb.go index 9a8d4a12..1c9ec9f2 100644 --- a/types.pb.go +++ b/types.pb.go @@ -10,6 +10,7 @@ It is generated from these files: It has these top-level messages: HashType Path + PathElem */ package gnoi @@ -59,17 +60,20 @@ const ( HashType_UNSPECIFIED HashType_HashMethod = 0 HashType_SHA256 HashType_HashMethod = 1 HashType_SHA512 HashType_HashMethod = 2 + HashType_MD5 HashType_HashMethod = 3 ) var HashType_HashMethod_name = map[int32]string{ 0: "UNSPECIFIED", 1: "SHA256", 2: "SHA512", + 3: "MD5", } var HashType_HashMethod_value = map[string]int32{ "UNSPECIFIED": 0, "SHA256": 1, "SHA512": 2, + "MD5": 3, } func (x HashType_HashMethod) String() string { @@ -103,10 +107,13 @@ func (m *HashType) GetHash() []byte { return nil } -// OpenConfig path representation of the target. -// eg. /interfaces/interface[name=et-1/0/0] +// Path encodes a data tree path as a series of repeated strings, with +// each element of the path representing a data tree node name and the +// associated attributes. +// Reference: gNMI Specification Section 2.2.2. type Path struct { - Elements []string `protobuf:"bytes,1,rep,name=elements" json:"elements,omitempty"` + Origin string `protobuf:"bytes,2,opt,name=origin" json:"origin,omitempty"` + Elem []*PathElem `protobuf:"bytes,3,rep,name=elem" json:"elem,omitempty"` } func (m *Path) Reset() { *m = Path{} } @@ -114,9 +121,43 @@ func (m *Path) String() string { return proto.CompactTextString(m) } func (*Path) ProtoMessage() {} func (*Path) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } -func (m *Path) GetElements() []string { +func (m *Path) GetOrigin() string { if m != nil { - return m.Elements + return m.Origin + } + return "" +} + +func (m *Path) GetElem() []*PathElem { + if m != nil { + return m.Elem + } + return nil +} + +// PathElem encodes an element of a gNMI path, along with any attributes (keys) +// that may be associated with it. +// Reference: gNMI Specification Section 2.2.2. +type PathElem struct { + Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` + Key map[string]string `protobuf:"bytes,2,rep,name=key" json:"key,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` +} + +func (m *PathElem) Reset() { *m = PathElem{} } +func (m *PathElem) String() string { return proto.CompactTextString(m) } +func (*PathElem) ProtoMessage() {} +func (*PathElem) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} } + +func (m *PathElem) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *PathElem) GetKey() map[string]string { + if m != nil { + return m.Key } return nil } @@ -124,6 +165,7 @@ func (m *Path) GetElements() []string { func init() { proto.RegisterType((*HashType)(nil), "gnoi.HashType") proto.RegisterType((*Path)(nil), "gnoi.Path") + proto.RegisterType((*PathElem)(nil), "gnoi.PathElem") proto.RegisterEnum("gnoi.L3Protocol", L3Protocol_name, L3Protocol_value) proto.RegisterEnum("gnoi.HashType_HashMethod", HashType_HashMethod_name, HashType_HashMethod_value) } @@ -131,20 +173,26 @@ func init() { func init() { proto.RegisterFile("github.com/openconfig/gnoi/types.proto", fileDescriptor0) } var fileDescriptor0 = []byte{ - // 233 bytes of a gzipped FileDescriptorProto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, 0x0c, 0x82, 0xf3, 0xb5, 0x0c, 0xb9, 0xb8, 0x7c, 0x8c, - 0x03, 0x40, 0xee, 0x4f, 0xce, 0xcf, 0xc1, 0x34, 0x9a, 0x83, 0x8b, 0xc5, 0x33, 0x20, 0xcc, 0x44, - 0x80, 0x11, 0xca, 0x32, 0x13, 0x60, 0x4a, 0x62, 0x03, 0x7b, 0xd7, 0x18, 0x10, 0x00, 0x00, 0xff, - 0xff, 0xb0, 0x4d, 0xd2, 0x1e, 0x18, 0x01, 0x00, 0x00, + // 329 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x91, 0x41, 0x4f, 0xbb, 0x40, + 0x10, 0xc5, 0xff, 0x0b, 0xfc, 0x91, 0x4e, 0x4d, 0xdd, 0x4c, 0x8c, 0xa2, 0xa7, 0x86, 0x83, 0xa9, + 0x1e, 0x68, 0x4a, 0x6d, 0x63, 0x3c, 0x98, 0xa8, 0xc5, 0xb4, 0xd1, 0x1a, 0x42, 0xd5, 0x3b, 0xad, + 0x2b, 0x10, 0x81, 0x25, 0x2d, 0x35, 0xe1, 0xe8, 0x47, 0xf0, 0x1b, 0x9b, 0x5d, 0x20, 0xc6, 0x78, + 0xfb, 0xcd, 0xcc, 0x9b, 0x97, 0xb7, 0xb3, 0x70, 0x12, 0xc6, 0x45, 0xb4, 0x5d, 0xda, 0x2b, 0x9e, + 0xf6, 0x79, 0xce, 0xb2, 0x15, 0xcf, 0xde, 0xe2, 0xb0, 0x1f, 0x66, 0x3c, 0xee, 0x17, 0x65, 0xce, + 0x36, 0x76, 0xbe, 0xe6, 0x05, 0x47, 0x4d, 0x74, 0xac, 0x2f, 0x02, 0xc6, 0x34, 0xd8, 0x44, 0x4f, + 0x65, 0xce, 0x70, 0x00, 0x7a, 0xca, 0x8a, 0x88, 0xbf, 0x9a, 0xa4, 0x4b, 0x7a, 0x1d, 0xe7, 0xc8, + 0x16, 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0xe5, 0xdf, 0x0c, 0xbf, 0x03, 0x00, 0x00, 0xff, + 0xff, 0x8d, 0x0d, 0x18, 0xa6, 0xc5, 0x01, 0x00, 0x00, } From 61567e5ec050797a6202b179245bf0a2ded5a0c4 Mon Sep 17 00:00:00 2001 From: Marcus Hines Date: Thu, 17 Aug 2017 16:39:12 -0700 Subject: [PATCH 007/238] fix markdown --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 07cf7dd4..f2f6c6e4 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,7 @@ gNOI defines a set of gRPC-based microservices for executing operational commands on network devices. # Rebuild *.pb.go files +``` cd ${GOPATH}/src protoc -I=${GOPATH}/src:${GOPATH}/src/github.com/openconfig/gnoi --go_out=plugins=grpc:. ${GOPATH}/src/github.com/openconfig/gnoi/types.proto protoc -I=${GOPATH}/src:${GOPATH}/src/github.com/openconfig/gnoi --go_out=plugins=grpc:. ${GOPATH}/src/github.com/openconfig/gnoi/bgp/bgp.proto @@ -11,3 +12,4 @@ protoc -I=${GOPATH}/src:${GOPATH}/src/github.com/openconfig/gnoi --go_out=plugin protoc -I=${GOPATH}/src:${GOPATH}/src/github.com/openconfig/gnoi --go_out=plugins=grpc:. ${GOPATH}/src/github.com/openconfig/gnoi/mpls/mpls.proto protoc -I=${GOPATH}/src:${GOPATH}/src/github.com/openconfig/gnoi --go_out=plugins=grpc:. ${GOPATH}/src/github.com/openconfig/gnoi/system/system.proto cd - +``` From d63f71809291580331016627c9a8ff62f1f638eb Mon Sep 17 00:00:00 2001 From: Marcus Hines Date: Mon, 21 Aug 2017 12:12:05 -0700 Subject: [PATCH 008/238] Update comments on SetPackage to be clear on streaming api Update Put to fix duplicate and typo --- file/file.proto | 4 ++-- system/system.proto | 14 ++++++++++---- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/file/file.proto b/file/file.proto index e83bf8a7..a1657b75 100644 --- a/file/file.proto +++ b/file/file.proto @@ -28,12 +28,12 @@ service File { // if the file does not exist or there was an error reading the file. rpc Get(GetRequest) returns (stream GetResponse) {} - // Put streamd data into a file on the target. The file is sent in + // Put streams data into a file on the target. The file is sent in // sequential messages, each message containing up to 64KB of data. A final // message must be sent that includes the hash of the data sent. An // error is returned if the location does not exist or there is an error // writing the data. If no checksum is received, the target must assume the - // the operation is incomplete and remove the partially transmitted file. The + // operation is incomplete and remove the partially transmitted file. The // target should initially write the file to a temporary location so a failure // does not destroy the original file. rpc Put(stream PutRequest) returns (PutResponse) {} diff --git a/system/system.proto b/system/system.proto index 7c95d323..c35e3e96 100644 --- a/system/system.proto +++ b/system/system.proto @@ -46,7 +46,13 @@ service System { rpc Time(TimeRequest) returns (TimeResponse) {} // SetPackage places a software package (possibly including bootable images) - // on the target. + // on the target. The file is sent in sequential messages, each message + // up to 64KB of data. A final message must be sent that includes the hash + // of the data sent. An error is returned if the location does not exist or + // there is an error writing the data. If no checksum is received, the target + // must assume the operation is incomplete and remove the partially + // transmitted file. The target should initially write the file to a temporary location so a failure + // does not destroy the original file. rpc SetPackage(stream SetPackageRequest) returns (SetPackageResponse) {} // SwitchControlProcessor will switch from the current route processor to the @@ -278,9 +284,9 @@ message Package { // SetPackageRequest will place the package onto the target and optionally mark // it as the next bootable image. The initial message must be a package -// message containing the filename and information about the file. -// The final message must be a hash message contains the hash of the file -// contents. +// message containing the filename and information about the file. Folloing the +// initial message the contents are then streamed in maximum 64k chunks. The +// final message must be a hash message contains the hash of the file contents. message SetPackageRequest { oneof request { Package package = 1; From bd2c15875dee530a2c5d3375b69c5f8ecaa80d11 Mon Sep 17 00:00:00 2001 From: Marcus Hines Date: Mon, 21 Aug 2017 12:16:57 -0700 Subject: [PATCH 009/238] squash! Update comments on SetPackage to be clear on streaming api Update Put to fix duplicate and typo --- README.md | 1 + file/file.pb.go | 810 ++++++++++++++++++++++++++++++++++++++++++++ system/system.pb.go | 22 +- 3 files changed, 828 insertions(+), 5 deletions(-) create mode 100644 file/file.pb.go diff --git a/README.md b/README.md index f2f6c6e4..c2cd6dda 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,7 @@ cd ${GOPATH}/src protoc -I=${GOPATH}/src:${GOPATH}/src/github.com/openconfig/gnoi --go_out=plugins=grpc:. ${GOPATH}/src/github.com/openconfig/gnoi/types.proto protoc -I=${GOPATH}/src:${GOPATH}/src/github.com/openconfig/gnoi --go_out=plugins=grpc:. ${GOPATH}/src/github.com/openconfig/gnoi/bgp/bgp.proto protoc -I=${GOPATH}/src:${GOPATH}/src/github.com/openconfig/gnoi --go_out=plugins=grpc:. ${GOPATH}/src/github.com/openconfig/gnoi/cert/cert.proto +protoc -I=${GOPATH}/src:${GOPATH}/src/github.com/openconfig/gnoi --go_out=plugins=grpc:. ${GOPATH}/src/github.com/openconfig/gnoi/file/file.proto protoc -I=${GOPATH}/src:${GOPATH}/src/github.com/openconfig/gnoi --go_out=plugins=grpc:. ${GOPATH}/src/github.com/openconfig/gnoi/interface/interface.proto protoc -I=${GOPATH}/src:${GOPATH}/src/github.com/openconfig/gnoi --go_out=plugins=grpc:. ${GOPATH}/src/github.com/openconfig/gnoi/layer2/layer2.proto protoc -I=${GOPATH}/src:${GOPATH}/src/github.com/openconfig/gnoi --go_out=plugins=grpc:. ${GOPATH}/src/github.com/openconfig/gnoi/mpls/mpls.proto diff --git a/file/file.pb.go b/file/file.pb.go new file mode 100644 index 00000000..cf46301d --- /dev/null +++ b/file/file.pb.go @@ -0,0 +1,810 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: github.com/openconfig/gnoi/file/file.proto + +/* +Package gnoi_file is a generated protocol buffer package. + +It is generated from these files: + github.com/openconfig/gnoi/file/file.proto + +It has these top-level messages: + PutRequest + PutResponse + GetRequest + GetResponse + StatRequest + StatResponse + StatInfo + RemoveRequest + RemoveResponse +*/ +package gnoi_file + +import proto "github.com/golang/protobuf/proto" +import fmt "fmt" +import math "math" +import gnoi "github.com/openconfig/gnoi" + +import ( + context "golang.org/x/net/context" + grpc "google.golang.org/grpc" +) + +// 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 + +// A PutRequest is used to send data to be written on a file on the target. +// +// The initial message contains an Open message. The Open message contains +// information name of the file and the file's permisssions. +// +// The remote_file must be an absolute path. If remote_file already exists on +// the target, it is overwritten, otherwise it is created. If the path to +// remote_file doesn't exist it will be created. +// +// The contents to be written are streamed through multiple messages using the +// contents field. Each message may contain up to 64KB of data. +// +// The final message of the RPC contains the hash of the file contents. +type PutRequest struct { + // Types that are valid to be assigned to Request: + // *PutRequest_Open + // *PutRequest_Contents + // *PutRequest_Hash + Request isPutRequest_Request `protobuf_oneof:"request"` +} + +func (m *PutRequest) Reset() { *m = PutRequest{} } +func (m *PutRequest) String() string { return proto.CompactTextString(m) } +func (*PutRequest) ProtoMessage() {} +func (*PutRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } + +type isPutRequest_Request interface { + isPutRequest_Request() +} + +type PutRequest_Open struct { + Open *PutRequest_Details `protobuf:"bytes,1,opt,name=open,oneof"` +} +type PutRequest_Contents struct { + Contents []byte `protobuf:"bytes,2,opt,name=contents,proto3,oneof"` +} +type PutRequest_Hash struct { + Hash *gnoi.HashType `protobuf:"bytes,3,opt,name=hash,oneof"` +} + +func (*PutRequest_Open) isPutRequest_Request() {} +func (*PutRequest_Contents) isPutRequest_Request() {} +func (*PutRequest_Hash) isPutRequest_Request() {} + +func (m *PutRequest) GetRequest() isPutRequest_Request { + if m != nil { + return m.Request + } + return nil +} + +func (m *PutRequest) GetOpen() *PutRequest_Details { + if x, ok := m.GetRequest().(*PutRequest_Open); ok { + return x.Open + } + return nil +} + +func (m *PutRequest) GetContents() []byte { + if x, ok := m.GetRequest().(*PutRequest_Contents); ok { + return x.Contents + } + return nil +} + +func (m *PutRequest) GetHash() *gnoi.HashType { + if x, ok := m.GetRequest().(*PutRequest_Hash); ok { + return x.Hash + } + return nil +} + +// XXX_OneofFuncs is for the internal use of the proto package. +func (*PutRequest) 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 _PutRequest_OneofMarshaler, _PutRequest_OneofUnmarshaler, _PutRequest_OneofSizer, []interface{}{ + (*PutRequest_Open)(nil), + (*PutRequest_Contents)(nil), + (*PutRequest_Hash)(nil), + } +} + +func _PutRequest_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*PutRequest) + // request + switch x := m.Request.(type) { + case *PutRequest_Open: + b.EncodeVarint(1<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Open); err != nil { + return err + } + case *PutRequest_Contents: + b.EncodeVarint(2<<3 | proto.WireBytes) + b.EncodeRawBytes(x.Contents) + case *PutRequest_Hash: + b.EncodeVarint(3<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Hash); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("PutRequest.Request has unexpected type %T", x) + } + return nil +} + +func _PutRequest_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*PutRequest) + switch tag { + case 1: // request.open + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(PutRequest_Details) + err := b.DecodeMessage(msg) + m.Request = &PutRequest_Open{msg} + return true, err + case 2: // request.contents + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + x, err := b.DecodeRawBytes(true) + m.Request = &PutRequest_Contents{x} + return true, err + case 3: // request.hash + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(gnoi.HashType) + err := b.DecodeMessage(msg) + m.Request = &PutRequest_Hash{msg} + return true, err + default: + return false, nil + } +} + +func _PutRequest_OneofSizer(msg proto.Message) (n int) { + m := msg.(*PutRequest) + // request + switch x := m.Request.(type) { + case *PutRequest_Open: + s := proto.Size(x.Open) + n += proto.SizeVarint(1<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *PutRequest_Contents: + n += proto.SizeVarint(2<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(len(x.Contents))) + n += len(x.Contents) + case *PutRequest_Hash: + s := proto.Size(x.Hash) + n += proto.SizeVarint(3<<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 +} + +type PutRequest_Details struct { + RemoteFile string `protobuf:"bytes,1,opt,name=remote_file,json=remoteFile" json:"remote_file,omitempty"` + // Permissions are represented as the octal format of standard UNIX + // file permissions. + // ex. 775: user read/write/execute, group read/write/execute, + // global read/execute. + Permissions uint32 `protobuf:"varint,2,opt,name=permissions" json:"permissions,omitempty"` +} + +func (m *PutRequest_Details) Reset() { *m = PutRequest_Details{} } +func (m *PutRequest_Details) String() string { return proto.CompactTextString(m) } +func (*PutRequest_Details) ProtoMessage() {} +func (*PutRequest_Details) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0, 0} } + +func (m *PutRequest_Details) GetRemoteFile() string { + if m != nil { + return m.RemoteFile + } + return "" +} + +func (m *PutRequest_Details) GetPermissions() uint32 { + if m != nil { + return m.Permissions + } + return 0 +} + +type PutResponse struct { +} + +func (m *PutResponse) Reset() { *m = PutResponse{} } +func (m *PutResponse) String() string { return proto.CompactTextString(m) } +func (*PutResponse) ProtoMessage() {} +func (*PutResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } + +// A GetRequest specifies the remote_file to be streamed back +// to the caller. The remote_file must be an absolute path to an +// existing file. +type GetRequest struct { + RemoteFile string `protobuf:"bytes,1,opt,name=remote_file,json=remoteFile" json:"remote_file,omitempty"` +} + +func (m *GetRequest) Reset() { *m = GetRequest{} } +func (m *GetRequest) String() string { return proto.CompactTextString(m) } +func (*GetRequest) ProtoMessage() {} +func (*GetRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} } + +func (m *GetRequest) GetRemoteFile() string { + if m != nil { + return m.RemoteFile + } + return "" +} + +// A GetResponse either contains the next set of bytes read from the +// file or, as the last message, the hash of the data. +type GetResponse struct { + // Types that are valid to be assigned to Response: + // *GetResponse_Contents + // *GetResponse_Hash + Response isGetResponse_Response `protobuf_oneof:"response"` +} + +func (m *GetResponse) Reset() { *m = GetResponse{} } +func (m *GetResponse) String() string { return proto.CompactTextString(m) } +func (*GetResponse) ProtoMessage() {} +func (*GetResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} } + +type isGetResponse_Response interface { + isGetResponse_Response() +} + +type GetResponse_Contents struct { + Contents []byte `protobuf:"bytes,1,opt,name=contents,proto3,oneof"` +} +type GetResponse_Hash struct { + Hash *gnoi.HashType `protobuf:"bytes,2,opt,name=hash,oneof"` +} + +func (*GetResponse_Contents) isGetResponse_Response() {} +func (*GetResponse_Hash) isGetResponse_Response() {} + +func (m *GetResponse) GetResponse() isGetResponse_Response { + if m != nil { + return m.Response + } + return nil +} + +func (m *GetResponse) GetContents() []byte { + if x, ok := m.GetResponse().(*GetResponse_Contents); ok { + return x.Contents + } + return nil +} + +func (m *GetResponse) GetHash() *gnoi.HashType { + if x, ok := m.GetResponse().(*GetResponse_Hash); ok { + return x.Hash + } + return nil +} + +// XXX_OneofFuncs is for the internal use of the proto package. +func (*GetResponse) 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 _GetResponse_OneofMarshaler, _GetResponse_OneofUnmarshaler, _GetResponse_OneofSizer, []interface{}{ + (*GetResponse_Contents)(nil), + (*GetResponse_Hash)(nil), + } +} + +func _GetResponse_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*GetResponse) + // response + switch x := m.Response.(type) { + case *GetResponse_Contents: + b.EncodeVarint(1<<3 | proto.WireBytes) + b.EncodeRawBytes(x.Contents) + case *GetResponse_Hash: + b.EncodeVarint(2<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Hash); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("GetResponse.Response has unexpected type %T", x) + } + return nil +} + +func _GetResponse_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*GetResponse) + switch tag { + case 1: // response.contents + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + x, err := b.DecodeRawBytes(true) + m.Response = &GetResponse_Contents{x} + return true, err + case 2: // response.hash + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(gnoi.HashType) + err := b.DecodeMessage(msg) + m.Response = &GetResponse_Hash{msg} + return true, err + default: + return false, nil + } +} + +func _GetResponse_OneofSizer(msg proto.Message) (n int) { + m := msg.(*GetResponse) + // response + switch x := m.Response.(type) { + case *GetResponse_Contents: + n += proto.SizeVarint(1<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(len(x.Contents))) + n += len(x.Contents) + case *GetResponse_Hash: + s := proto.Size(x.Hash) + n += proto.SizeVarint(2<<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 +} + +// StatRequest will list files at the provided path. +type StatRequest struct { + Path string `protobuf:"bytes,1,opt,name=path" json:"path,omitempty"` +} + +func (m *StatRequest) Reset() { *m = StatRequest{} } +func (m *StatRequest) String() string { return proto.CompactTextString(m) } +func (*StatRequest) ProtoMessage() {} +func (*StatRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} } + +func (m *StatRequest) GetPath() string { + if m != nil { + return m.Path + } + return "" +} + +// StatResponse contains list of stat info of the provided path. +type StatResponse struct { + Stats []*StatInfo `protobuf:"bytes,1,rep,name=stats" json:"stats,omitempty"` +} + +func (m *StatResponse) Reset() { *m = StatResponse{} } +func (m *StatResponse) String() string { return proto.CompactTextString(m) } +func (*StatResponse) ProtoMessage() {} +func (*StatResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} } + +func (m *StatResponse) GetStats() []*StatInfo { + if m != nil { + return m.Stats + } + return nil +} + +// StatInfo provides a file system information about a particular path. +type StatInfo struct { + Path string `protobuf:"bytes,1,opt,name=path" json:"path,omitempty"` + LastModified uint64 `protobuf:"varint,2,opt,name=last_modified,json=lastModified" json:"last_modified,omitempty"` + // Permissions are represented as the octal format of standard UNIX + // file permissions. + // ex. 775: user read/write/execute, group read/write/execute, + // global read/execute. + Permissions uint32 `protobuf:"varint,3,opt,name=permissions" json:"permissions,omitempty"` + Size uint64 `protobuf:"varint,4,opt,name=size" json:"size,omitempty"` + // Default file creation mask. Represented as the octal format of + // standard UNIX mask. + Umask uint32 `protobuf:"varint,5,opt,name=umask" json:"umask,omitempty"` +} + +func (m *StatInfo) Reset() { *m = StatInfo{} } +func (m *StatInfo) String() string { return proto.CompactTextString(m) } +func (*StatInfo) ProtoMessage() {} +func (*StatInfo) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} } + +func (m *StatInfo) GetPath() string { + if m != nil { + return m.Path + } + return "" +} + +func (m *StatInfo) GetLastModified() uint64 { + if m != nil { + return m.LastModified + } + return 0 +} + +func (m *StatInfo) GetPermissions() uint32 { + if m != nil { + return m.Permissions + } + return 0 +} + +func (m *StatInfo) GetSize() uint64 { + if m != nil { + return m.Size + } + return 0 +} + +func (m *StatInfo) GetUmask() uint32 { + if m != nil { + return m.Umask + } + return 0 +} + +// A RemoveRequest specifies a file to be removed from the target. +type RemoveRequest struct { + RemoteFile string `protobuf:"bytes,1,opt,name=remote_file,json=remoteFile" json:"remote_file,omitempty"` +} + +func (m *RemoveRequest) Reset() { *m = RemoveRequest{} } +func (m *RemoveRequest) String() string { return proto.CompactTextString(m) } +func (*RemoveRequest) ProtoMessage() {} +func (*RemoveRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} } + +func (m *RemoveRequest) GetRemoteFile() string { + if m != nil { + return m.RemoteFile + } + return "" +} + +type RemoveResponse struct { +} + +func (m *RemoveResponse) Reset() { *m = RemoveResponse{} } +func (m *RemoveResponse) String() string { return proto.CompactTextString(m) } +func (*RemoveResponse) ProtoMessage() {} +func (*RemoveResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} } + +func init() { + proto.RegisterType((*PutRequest)(nil), "gnoi.file.PutRequest") + proto.RegisterType((*PutRequest_Details)(nil), "gnoi.file.PutRequest.Details") + proto.RegisterType((*PutResponse)(nil), "gnoi.file.PutResponse") + proto.RegisterType((*GetRequest)(nil), "gnoi.file.GetRequest") + proto.RegisterType((*GetResponse)(nil), "gnoi.file.GetResponse") + proto.RegisterType((*StatRequest)(nil), "gnoi.file.StatRequest") + proto.RegisterType((*StatResponse)(nil), "gnoi.file.StatResponse") + proto.RegisterType((*StatInfo)(nil), "gnoi.file.StatInfo") + proto.RegisterType((*RemoveRequest)(nil), "gnoi.file.RemoveRequest") + proto.RegisterType((*RemoveResponse)(nil), "gnoi.file.RemoveResponse") +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion4 + +// Client API for File service + +type FileClient interface { + // Get read and streams the contents of a file from the target. + // The file is streamed by sequential messages, each containing up to + // 64KB of data. A final message is sent prior to closing the stream + // that contains the hash of the data sent. An error is returned + // if the file does not exist or there was an error reading the file. + Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (File_GetClient, error) + // Put streams data into a file on the target. The file is sent in + // sequential messages, each message containing up to 64KB of data. A final + // message must be sent that includes the hash of the data sent. An + // error is returned if the location does not exist or there is an error + // writing the data. If no checksum is received, the target must assume the + // operation is incomplete and remove the partially transmitted file. The + // target should initially write the file to a temporary location so a failure + // does not destroy the original file. + Put(ctx context.Context, opts ...grpc.CallOption) (File_PutClient, error) + // Stat returns metadata about a file on the target. An error is returned + // if the file does not exist of there is an error in accessing the metadata. + Stat(ctx context.Context, in *StatRequest, opts ...grpc.CallOption) (*StatResponse, error) + // Remove removes the specified file from the target. An error is + // returned if the file does not exist, is a directory, or the remove + // operation encounters an error (e.g., permission denied). + Remove(ctx context.Context, in *RemoveRequest, opts ...grpc.CallOption) (*RemoveResponse, error) +} + +type fileClient struct { + cc *grpc.ClientConn +} + +func NewFileClient(cc *grpc.ClientConn) FileClient { + return &fileClient{cc} +} + +func (c *fileClient) Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (File_GetClient, error) { + stream, err := grpc.NewClientStream(ctx, &_File_serviceDesc.Streams[0], c.cc, "/gnoi.file.File/Get", opts...) + if err != nil { + return nil, err + } + x := &fileGetClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type File_GetClient interface { + Recv() (*GetResponse, error) + grpc.ClientStream +} + +type fileGetClient struct { + grpc.ClientStream +} + +func (x *fileGetClient) Recv() (*GetResponse, error) { + m := new(GetResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *fileClient) Put(ctx context.Context, opts ...grpc.CallOption) (File_PutClient, error) { + stream, err := grpc.NewClientStream(ctx, &_File_serviceDesc.Streams[1], c.cc, "/gnoi.file.File/Put", opts...) + if err != nil { + return nil, err + } + x := &filePutClient{stream} + return x, nil +} + +type File_PutClient interface { + Send(*PutRequest) error + CloseAndRecv() (*PutResponse, error) + grpc.ClientStream +} + +type filePutClient struct { + grpc.ClientStream +} + +func (x *filePutClient) Send(m *PutRequest) error { + return x.ClientStream.SendMsg(m) +} + +func (x *filePutClient) CloseAndRecv() (*PutResponse, error) { + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + m := new(PutResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *fileClient) Stat(ctx context.Context, in *StatRequest, opts ...grpc.CallOption) (*StatResponse, error) { + out := new(StatResponse) + err := grpc.Invoke(ctx, "/gnoi.file.File/Stat", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *fileClient) Remove(ctx context.Context, in *RemoveRequest, opts ...grpc.CallOption) (*RemoveResponse, error) { + out := new(RemoveResponse) + err := grpc.Invoke(ctx, "/gnoi.file.File/Remove", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// Server API for File service + +type FileServer interface { + // Get read and streams the contents of a file from the target. + // The file is streamed by sequential messages, each containing up to + // 64KB of data. A final message is sent prior to closing the stream + // that contains the hash of the data sent. An error is returned + // if the file does not exist or there was an error reading the file. + Get(*GetRequest, File_GetServer) error + // Put streams data into a file on the target. The file is sent in + // sequential messages, each message containing up to 64KB of data. A final + // message must be sent that includes the hash of the data sent. An + // error is returned if the location does not exist or there is an error + // writing the data. If no checksum is received, the target must assume the + // operation is incomplete and remove the partially transmitted file. The + // target should initially write the file to a temporary location so a failure + // does not destroy the original file. + Put(File_PutServer) error + // Stat returns metadata about a file on the target. An error is returned + // if the file does not exist of there is an error in accessing the metadata. + Stat(context.Context, *StatRequest) (*StatResponse, error) + // Remove removes the specified file from the target. An error is + // returned if the file does not exist, is a directory, or the remove + // operation encounters an error (e.g., permission denied). + Remove(context.Context, *RemoveRequest) (*RemoveResponse, error) +} + +func RegisterFileServer(s *grpc.Server, srv FileServer) { + s.RegisterService(&_File_serviceDesc, srv) +} + +func _File_Get_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(GetRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(FileServer).Get(m, &fileGetServer{stream}) +} + +type File_GetServer interface { + Send(*GetResponse) error + grpc.ServerStream +} + +type fileGetServer struct { + grpc.ServerStream +} + +func (x *fileGetServer) Send(m *GetResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _File_Put_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(FileServer).Put(&filePutServer{stream}) +} + +type File_PutServer interface { + SendAndClose(*PutResponse) error + Recv() (*PutRequest, error) + grpc.ServerStream +} + +type filePutServer struct { + grpc.ServerStream +} + +func (x *filePutServer) SendAndClose(m *PutResponse) error { + return x.ServerStream.SendMsg(m) +} + +func (x *filePutServer) Recv() (*PutRequest, error) { + m := new(PutRequest) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func _File_Stat_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(StatRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(FileServer).Stat(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gnoi.file.File/Stat", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(FileServer).Stat(ctx, req.(*StatRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _File_Remove_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RemoveRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(FileServer).Remove(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gnoi.file.File/Remove", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(FileServer).Remove(ctx, req.(*RemoveRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _File_serviceDesc = grpc.ServiceDesc{ + ServiceName: "gnoi.file.File", + HandlerType: (*FileServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "Stat", + Handler: _File_Stat_Handler, + }, + { + MethodName: "Remove", + Handler: _File_Remove_Handler, + }, + }, + Streams: []grpc.StreamDesc{ + { + StreamName: "Get", + Handler: _File_Get_Handler, + ServerStreams: true, + }, + { + StreamName: "Put", + Handler: _File_Put_Handler, + ClientStreams: true, + }, + }, + Metadata: "github.com/openconfig/gnoi/file/file.proto", +} + +func init() { proto.RegisterFile("github.com/openconfig/gnoi/file/file.proto", fileDescriptor0) } + +var fileDescriptor0 = []byte{ + // 482 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x53, 0xd1, 0x6e, 0xd3, 0x30, + 0x14, 0xad, 0xd7, 0x74, 0x6b, 0x6f, 0xda, 0x09, 0x19, 0x18, 0xa1, 0x02, 0x51, 0x02, 0x42, 0x05, + 0x89, 0x74, 0xea, 0x5e, 0xd8, 0x13, 0xd2, 0x84, 0x58, 0x91, 0x40, 0x9a, 0x02, 0xaf, 0x68, 0xf2, + 0xba, 0xdb, 0xc6, 0xa2, 0xb1, 0x43, 0xec, 0x20, 0x8d, 0x9f, 0xe0, 0x0f, 0xf9, 0x0c, 0x9e, 0x91, + 0xed, 0xa4, 0x4d, 0xbb, 0x51, 0xf6, 0x52, 0xa5, 0x27, 0xe7, 0x9c, 0x7b, 0xee, 0xb1, 0x03, 0xaf, + 0xe6, 0x5c, 0x27, 0xc5, 0x45, 0x34, 0x95, 0xe9, 0x48, 0x66, 0x28, 0xa6, 0x52, 0xcc, 0xf8, 0x7c, + 0x34, 0x17, 0x92, 0x8f, 0x66, 0x7c, 0x81, 0xf6, 0x27, 0xca, 0x72, 0xa9, 0x25, 0xed, 0x18, 0x34, + 0x32, 0x40, 0xff, 0xc5, 0x16, 0x99, 0xbe, 0xca, 0x50, 0x39, 0x49, 0xf8, 0x9b, 0x00, 0x9c, 0x15, + 0x3a, 0xc6, 0xef, 0x05, 0x2a, 0x4d, 0x8f, 0xc0, 0x33, 0xec, 0x80, 0x0c, 0xc8, 0xd0, 0x1f, 0x3f, + 0x8e, 0x96, 0x86, 0xd1, 0x8a, 0x14, 0xbd, 0x43, 0xcd, 0xf8, 0x42, 0x4d, 0x1a, 0xb1, 0x25, 0xd3, + 0x47, 0xd0, 0x9e, 0x4a, 0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xfc, 0x54, 0x62, 0x9b, 0x6d, 0x37, + 0xaf, 0xb5, 0x6d, 0xac, 0x15, 0xff, 0x89, 0x81, 0x67, 0xd5, 0xf6, 0x99, 0xde, 0x83, 0x56, 0x91, + 0x32, 0xf5, 0x2d, 0x68, 0x59, 0xbe, 0xfb, 0x13, 0x1e, 0x42, 0x2f, 0xc6, 0x54, 0xfe, 0xc0, 0x5b, + 0x1f, 0xc0, 0x1d, 0xd8, 0xaf, 0x14, 0xae, 0x80, 0xf1, 0x1f, 0x02, 0x9e, 0xbd, 0x06, 0x6f, 0xa0, + 0x79, 0x8a, 0x9a, 0xde, 0xaf, 0x35, 0xb0, 0x3a, 0xda, 0xfe, 0xc1, 0x26, 0x5c, 0x56, 0xde, 0x38, + 0x24, 0x46, 0x79, 0x56, 0xac, 0x2b, 0x57, 0xd7, 0x7b, 0x4d, 0x59, 0xbf, 0x3a, 0x8d, 0x21, 0xa1, + 0xc7, 0xe0, 0x99, 0x46, 0xe9, 0xc1, 0x46, 0xed, 0x95, 0xf6, 0xc1, 0x35, 0xbc, 0x12, 0xd3, 0xb7, + 0xb0, 0xeb, 0x36, 0xa1, 0x41, 0x8d, 0xb4, 0x56, 0x47, 0xff, 0xe1, 0x0d, 0x6f, 0x2a, 0x83, 0x8b, + 0x5d, 0xfb, 0xc5, 0x1e, 0xfd, 0x0d, 0x00, 0x00, 0xff, 0xff, 0x2f, 0xfb, 0xba, 0xe9, 0x12, 0x04, + 0x00, 0x00, +} diff --git a/system/system.pb.go b/system/system.pb.go index bac26680..88e31849 100644 --- a/system/system.pb.go +++ b/system/system.pb.go @@ -843,9 +843,9 @@ func (m *Package) GetActivate() bool { // SetPackageRequest will place the package onto the target and optionally mark // it as the next bootable image. The initial message must be a package -// message containing the filename and information about the file. -// The final message must be a hash message contains the hash of the file -// contents. +// message containing the filename and information about the file. Folloing the +// initial message the contents are then streamed in maximum 64k chunks. The +// final message must be a hash message contains the hash of the file contents. type SetPackageRequest struct { // Types that are valid to be assigned to Request: // *SetPackageRequest_Package @@ -1050,7 +1050,13 @@ type SystemClient interface { // test if a target is actually responding. Time(ctx context.Context, in *TimeRequest, opts ...grpc.CallOption) (*TimeResponse, error) // SetPackage places a software package (possibly including bootable images) - // on the target. + // on the target. The file is sent in sequential messages, each message + // up to 64KB of data. A final message must be sent that includes the hash + // of the data sent. An error is returned if the location does not exist or + // there is an error writing the data. If no checksum is received, the target + // must assume the operation is incomplete and remove the partially + // transmitted file. The target should initially write the file to a temporary location so a failure + // does not destroy the original file. SetPackage(ctx context.Context, opts ...grpc.CallOption) (System_SetPackageClient, error) // SwitchControlProcessor will switch from the current route processor to the // provided route processor. If the current route processor is the same as the @@ -1240,7 +1246,13 @@ type SystemServer interface { // test if a target is actually responding. Time(context.Context, *TimeRequest) (*TimeResponse, error) // SetPackage places a software package (possibly including bootable images) - // on the target. + // on the target. The file is sent in sequential messages, each message + // up to 64KB of data. A final message must be sent that includes the hash + // of the data sent. An error is returned if the location does not exist or + // there is an error writing the data. If no checksum is received, the target + // must assume the operation is incomplete and remove the partially + // transmitted file. The target should initially write the file to a temporary location so a failure + // does not destroy the original file. SetPackage(System_SetPackageServer) error // SwitchControlProcessor will switch from the current route processor to the // provided route processor. If the current route processor is the same as the From 55415636c9216b061c4219bd39216462fa88fa2a Mon Sep 17 00:00:00 2001 From: Marcus Hines Date: Mon, 21 Aug 2017 12:19:01 -0700 Subject: [PATCH 010/238] squash! Update comments on SetPackage to be clear on streaming api Update Put to fix duplicate and typo --- system/system.pb.go | 2 +- system/system.proto | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/system/system.pb.go b/system/system.pb.go index 88e31849..fe921e7e 100644 --- a/system/system.pb.go +++ b/system/system.pb.go @@ -843,7 +843,7 @@ func (m *Package) GetActivate() bool { // SetPackageRequest will place the package onto the target and optionally mark // it as the next bootable image. The initial message must be a package -// message containing the filename and information about the file. Folloing the +// message containing the filename and information about the file. Following the // initial message the contents are then streamed in maximum 64k chunks. The // final message must be a hash message contains the hash of the file contents. type SetPackageRequest struct { diff --git a/system/system.proto b/system/system.proto index c35e3e96..85259ce9 100644 --- a/system/system.proto +++ b/system/system.proto @@ -284,7 +284,7 @@ message Package { // SetPackageRequest will place the package onto the target and optionally mark // it as the next bootable image. The initial message must be a package -// message containing the filename and information about the file. Folloing the +// message containing the filename and information about the file. Following the // initial message the contents are then streamed in maximum 64k chunks. The // final message must be a hash message contains the hash of the file contents. message SetPackageRequest { From adcb256430e2563e5bc717d336c6677776e663cc Mon Sep 17 00:00:00 2001 From: Marcus Hines Date: Mon, 21 Aug 2017 13:05:42 -0700 Subject: [PATCH 011/238] squash! Update comments on SetPackage to be clear on streaming api Update Put to fix duplicate and typo --- system/system.proto | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/system/system.proto b/system/system.proto index 85259ce9..933d68f2 100644 --- a/system/system.proto +++ b/system/system.proto @@ -51,8 +51,8 @@ service System { // of the data sent. An error is returned if the location does not exist or // there is an error writing the data. If no checksum is received, the target // must assume the operation is incomplete and remove the partially - // transmitted file. The target should initially write the file to a temporary location so a failure - // does not destroy the original file. + // transmitted file. The target should initially write the file to a temporary + // location so a failure does not destroy the original file. rpc SetPackage(stream SetPackageRequest) returns (SetPackageResponse) {} // SwitchControlProcessor will switch from the current route processor to the From 50ef837e3a0ab12fb45acead8810c3320d059242 Mon Sep 17 00:00:00 2001 From: Eric Breverman Date: Fri, 6 Apr 2018 09:38:57 -0700 Subject: [PATCH 012/238] SetPackage support for remote downloads --- system/system.proto | 32 +++++++++++++++++++++++++++++--- types.proto | 9 +++++++++ 2 files changed, 38 insertions(+), 3 deletions(-) diff --git a/system/system.proto b/system/system.proto index 933d68f2..eb87b321 100644 --- a/system/system.proto +++ b/system/system.proto @@ -275,11 +275,37 @@ message TracerouteResponse { repeated int32 as_path = 12; // AS path. } +// RemoteDownload defines the details for a device to initiate a download of a +// package from a remote location. +message RemoteDownload { + // The path information containing where to download the package from. + // For HTTP(S), this will be the URL (i.e. foo.com/file.tbz2). + // For SFTP and SCP, this will be the address:/path/to/file + // (i.e. host.foo.com:/bar/baz). + string path = 1; + + enum DownloadType { + DL_UNKNOWN = 0; + DL_SFTP = 1; + DL_HTTP = 2; + DL_HTTPS = 3; + DL_SCP = 4; + } + DownloadType download_type = 2; + + gnoi.Credentials credentials = 3; +} + // Package defines a single package file to be placed on the target. message Package { - string filename = 1; // Destination path and filename of the package. - string version = 4; // Version of the package. (vendor internal name) - bool activate = 5; // For system packages this will take effect after reboot. + // Destination path and filename of the package. + string filename = 1; + // Version of the package. (vendor internal name) + string version = 4; + // For system packages this will take effect after reboot. + bool activate = 5; + // Details for the device to download the package from a remote location. + RemoteDownload remote_download = 6; } // SetPackageRequest will place the package onto the target and optionally mark diff --git a/types.proto b/types.proto index 3b3ff11f..31d17b78 100644 --- a/types.proto +++ b/types.proto @@ -54,3 +54,12 @@ message PathElem { string name = 1; // The name of the element in the path. map key = 2; // Map of key (attribute) name to value. } + +// Credentials defines credentials needed to perform authentication on a device. +message Credentials { + string username = 1; + oneof password { + string cleartext = 2; + HashType hashed = 3; + } +} From dff27d2151c09c90ca5fd4b151c9b6f0cd66059e Mon Sep 17 00:00:00 2001 From: Eric Breverman Date: Fri, 13 Apr 2018 10:03:29 -0700 Subject: [PATCH 013/238] remove enum prefix --- system/system.proto | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/system/system.proto b/system/system.proto index eb87b321..a18663e2 100644 --- a/system/system.proto +++ b/system/system.proto @@ -285,11 +285,11 @@ message RemoteDownload { string path = 1; enum DownloadType { - DL_UNKNOWN = 0; - DL_SFTP = 1; - DL_HTTP = 2; - DL_HTTPS = 3; - DL_SCP = 4; + UNKNOWN = 0; + SFTP = 1; + HTTP = 2; + HTTPS = 3; + SCP = 4; } DownloadType download_type = 2; From ee62d0b5debc28b7a19428687ddda7d5210cca31 Mon Sep 17 00:00:00 2001 From: Rob Shakir Date: Tue, 30 Jan 2018 18:20:29 -0800 Subject: [PATCH 014/238] Update gNOI generated protobufs to fix references. * Remove references to the openconfig/reference repo for gNOI types import in both protobufs and the Bazel files. * Regenerate protobufs using protoc v3.5.1. --- bgp/bgp.pb.go | 41 ++++---- cert/cert.pb.go | 159 +++++++++++++++-------------- compile_protos.sh | 11 ++ file/file.pb.go | 72 +++++++------- interface/BUILD.bazel | 4 +- interface/interface.pb.go | 51 +++++----- interface/interface.proto | 2 +- layer2/layer2.pb.go | 89 ++++++++--------- layer2/layer2.proto | 2 +- mpls/mpls.pb.go | 104 ++++++++++--------- system/system.pb.go | 204 +++++++++++++++++++------------------- types.pb.go | 49 +++++---- 12 files changed, 395 insertions(+), 393 deletions(-) create mode 100755 compile_protos.sh diff --git a/bgp/bgp.pb.go b/bgp/bgp.pb.go index e98240e4..0a02ff6f 100644 --- a/bgp/bgp.pb.go +++ b/bgp/bgp.pb.go @@ -1,11 +1,11 @@ // Code generated by protoc-gen-go. DO NOT EDIT. -// source: github.com/openconfig/gnoi/bgp/bgp.proto +// source: bgp/bgp.proto /* Package gnoi_bgp is a generated protocol buffer package. It is generated from these files: - github.com/openconfig/gnoi/bgp/bgp.proto + bgp/bgp.proto It has these top-level messages: ClearBGPNeighborRequest @@ -178,27 +178,26 @@ var _BGP_serviceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "github.com/openconfig/gnoi/bgp/bgp.proto", + Metadata: "bgp/bgp.proto", } -func init() { proto.RegisterFile("github.com/openconfig/gnoi/bgp/bgp.proto", fileDescriptor0) } +func init() { proto.RegisterFile("bgp/bgp.proto", fileDescriptor0) } var fileDescriptor0 = []byte{ - // 254 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x90, 0x31, 0x4f, 0xc3, 0x30, - 0x10, 0x85, 0x9b, 0x36, 0x2a, 0xe5, 0x06, 0x88, 0xbc, 0x10, 0x75, 0x2a, 0x19, 0xaa, 0xb0, 0x38, - 0x52, 0xd9, 0xd8, 0x28, 0x88, 0xd2, 0x81, 0x52, 0x05, 0x36, 0x06, 0x14, 0x27, 0x87, 0x6b, 0x89, - 0xfa, 0x8c, 0xed, 0xfc, 0x41, 0x7e, 0x19, 0x72, 0x68, 0x17, 0x10, 0x74, 0x38, 0xe9, 0xde, 0xa7, - 0x77, 0xf7, 0x4e, 0x07, 0xb9, 0x54, 0x7e, 0xd3, 0x0a, 0x5e, 0xd3, 0xb6, 0x20, 0x83, 0xba, 0x26, - 0xfd, 0xa6, 0x64, 0x21, 0x35, 0xa9, 0x42, 0x48, 0x13, 0x8a, 0x1b, 0x4b, 0x9e, 0xd8, 0x28, 0x30, - 0x2e, 0xa4, 0xc9, 0x3e, 0x23, 0x38, 0xbb, 0x79, 0xc7, 0xca, 0xce, 0x17, 0xeb, 0x15, 0x2a, 0xb9, - 0x11, 0x64, 0x4b, 0xfc, 0x68, 0xd1, 0x79, 0x96, 0xc2, 0x51, 0xd5, 0x34, 0x16, 0x9d, 0x4b, 0xa3, - 0x49, 0x94, 0x1f, 0x97, 0x7b, 0xc9, 0x2e, 0x20, 0xb1, 0xd4, 0x7a, 0xa5, 0xe5, 0xab, 0xd2, 0xce, - 0x57, 0xba, 0xc6, 0xb4, 0xdf, 0x59, 0x4e, 0x77, 0x7c, 0xb9, 0xc3, 0xec, 0x0a, 0xe2, 0x2d, 0x35, - 0x98, 0x0e, 0x26, 0x51, 0x7e, 0x32, 0x9b, 0xf2, 0x7d, 0x32, 0xff, 0x23, 0x95, 0x3f, 0x50, 0x83, - 0x65, 0x37, 0x93, 0x4d, 0x21, 0x0e, 0x8a, 0x8d, 0x20, 0x7e, 0x7a, 0xbc, 0x7b, 0x4e, 0x7a, 0x0c, - 0x60, 0x18, 0xba, 0xe5, 0x2a, 0x89, 0x02, 0xbd, 0xbf, 0x2e, 0x6f, 0x93, 0x7e, 0x36, 0x86, 0xf4, - 0xf7, 0x36, 0x67, 0x48, 0x3b, 0x9c, 0x09, 0x18, 0xcc, 0x17, 0x6b, 0xf6, 0x02, 0xc9, 0x4f, 0x0b, - 0x3b, 0x3f, 0x78, 0xcc, 0x38, 0xfb, 0xcf, 0xf2, 0x9d, 0x90, 0xf5, 0xc4, 0xb0, 0xfb, 0xea, 0xe5, - 0x57, 0x00, 0x00, 0x00, 0xff, 0xff, 0x02, 0xe1, 0xbb, 0xd9, 0x81, 0x01, 0x00, 0x00, + // 234 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0x4d, 0x4a, 0x2f, 0xd0, + 0x4f, 0x4a, 0x2f, 0xd0, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x48, 0xcf, 0xcb, 0xcf, 0xd4, + 0x4b, 0x4a, 0x2f, 0x50, 0x3a, 0xc4, 0xc8, 0x25, 0xee, 0x9c, 0x93, 0x9a, 0x58, 0xe4, 0xe4, 0x1e, + 0xe0, 0x97, 0x9a, 0x99, 0x9e, 0x91, 0x94, 0x5f, 0x14, 0x94, 0x5a, 0x58, 0x9a, 0x5a, 0x5c, 0x22, + 0x24, 0xc1, 0xc5, 0x9e, 0x98, 0x92, 0x52, 0x94, 0x5a, 0x5c, 0x2c, 0xc1, 0xa8, 0xc0, 0xa8, 0xc1, + 0x19, 0x04, 0xe3, 0x0a, 0x69, 0x72, 0x09, 0x14, 0xe5, 0x97, 0x96, 0x64, 0xe6, 0xa5, 0xc7, 0x67, + 0xe6, 0x15, 0x97, 0x24, 0xe6, 0x25, 0xa7, 0x4a, 0x30, 0x81, 0x95, 0xf0, 0x43, 0xc5, 0x3d, 0xa1, + 0xc2, 0x42, 0x56, 0x5c, 0x2c, 0xb9, 0xf9, 0x29, 0xa9, 0x12, 0xcc, 0x0a, 0x8c, 0x1a, 0x7c, 0x46, + 0x6a, 0x7a, 0x30, 0x9b, 0xf5, 0x70, 0xd8, 0xaa, 0xe7, 0x9b, 0x9f, 0x92, 0x1a, 0x04, 0xd6, 0xa3, + 0xa4, 0xc6, 0xc5, 0x02, 0xe2, 0x09, 0x71, 0x70, 0xb1, 0x04, 0xfb, 0xbb, 0x85, 0x08, 0x30, 0x08, + 0x71, 0x71, 0xb1, 0x81, 0x58, 0x9e, 0x7e, 0x02, 0x8c, 0x20, 0x51, 0x0f, 0xc7, 0x20, 0x17, 0x01, + 0x26, 0x25, 0x29, 0x2e, 0x09, 0x4c, 0xd3, 0x8a, 0x0b, 0xf2, 0xf3, 0x8a, 0x53, 0x8d, 0x92, 0xb8, + 0x98, 0x9d, 0xdc, 0x03, 0x84, 0xa2, 0xb9, 0x04, 0xd0, 0x95, 0x08, 0x29, 0x12, 0x74, 0x8c, 0x94, + 0x12, 0x3e, 0x25, 0x10, 0x1b, 0x94, 0x18, 0x92, 0xd8, 0xc0, 0xa1, 0x6a, 0x0c, 0x08, 0x00, 0x00, + 0xff, 0xff, 0x5a, 0x8a, 0x62, 0x2e, 0x66, 0x01, 0x00, 0x00, } diff --git a/cert/cert.pb.go b/cert/cert.pb.go index 66e2809d..45fc5a3c 100644 --- a/cert/cert.pb.go +++ b/cert/cert.pb.go @@ -1,11 +1,11 @@ // Code generated by protoc-gen-go. DO NOT EDIT. -// source: github.com/openconfig/gnoi/cert/cert.proto +// source: cert/cert.proto /* Package gnoi_certificate is a generated protocol buffer package. It is generated from these files: - github.com/openconfig/gnoi/cert/cert.proto + cert/cert.proto It has these top-level messages: RotateCertificateRequest @@ -1695,87 +1695,86 @@ var _CertificateManagement_serviceDesc = grpc.ServiceDesc{ ClientStreams: true, }, }, - Metadata: "github.com/openconfig/gnoi/cert/cert.proto", + Metadata: "cert/cert.proto", } -func init() { proto.RegisterFile("github.com/openconfig/gnoi/cert/cert.proto", fileDescriptor0) } +func init() { proto.RegisterFile("cert/cert.proto", fileDescriptor0) } var fileDescriptor0 = []byte{ - // 1212 bytes of a gzipped FileDescriptorProto + // 1192 bytes of a gzipped FileDescriptorProto 0x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xbb, 0xdf, 0xf7, 0x49, 0x10, 0x18, 0x20, 0x70, 0x79, 0xea, 0xbd, - 0x92, 0x02, 0x54, 0x81, 0x1c, 0x71, 0x6d, 0x3a, 0x8a, 0xca, 0x52, 0x90, 0x8e, 0x8b, 0xf7, 0x66, - 0xdf, 0x7c, 0x09, 0xd7, 0x15, 0xcd, 0x89, 0x1e, 0x40, 0x66, 0xd6, 0xd0, 0x37, 0x95, 0x3d, 0x80, - 0x23, 0x84, 0xf9, 0x87, 0x06, 0x3b, 0xea, 0x19, 0x43, 0xdf, 0x41, 0x21, 0xd9, 0xcb, 0x92, 0xeb, - 0xf6, 0x95, 0x45, 0xc6, 0x49, 0x8b, 0x49, 0x15, 0x3d, 0x9b, 0xfa, 0xf1, 0x24, 0xa8, 0xab, 0xd8, - 0xb1, 0xa9, 0x2f, 0xaa, 0x18, 0x3d, 0x28, 0x3a, 0x31, 0xa3, 0xea, 0xc4, 0x0a, 0xdc, 0x5a, 0x32, - 0x44, 0xe6, 0x36, 0x94, 0x17, 0x36, 0xbb, 0x69, 0xc0, 0xce, 0x5b, 0x12, 0x26, 0xc0, 0xc1, 0x44, - 0x33, 0x84, 0x5b, 0x29, 0xcd, 0x74, 0x3f, 0xe8, 0x73, 0x9e, 0xb0, 0x01, 0x37, 0xb4, 0xbb, 0x19, - 0xf5, 0x59, 0x92, 0x60, 0x68, 0xb2, 0x01, 0xc7, 0x65, 0x67, 0x5e, 0x60, 0xfe, 0xab, 0x41, 0x79, - 0x01, 0xa4, 0x88, 0x55, 0x53, 0xc4, 0xba, 0x58, 0x89, 0xf5, 0xff, 0x5d, 0x89, 0xaf, 0x20, 0x4f, - 0x58, 0xdf, 0xe3, 0x94, 0x85, 0x81, 0x91, 0x11, 0x21, 0x54, 0xd3, 0xe6, 0x8d, 0x18, 0x82, 0x67, - 0x60, 0xf4, 0x08, 0xb6, 0x5d, 0xde, 0x97, 0x08, 0xca, 0x99, 0x15, 0xd2, 0x78, 0xb2, 0x32, 0x58,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43, 0x04, 0x00, 0x52, 0xd4, 0x26, 0x0e, 0x45, 0x06, 0x64, 0x6d, 0xf7, 0x82, 0x07, 0xde, + 0xc4, 0xb8, 0x26, 0x94, 0xd3, 0x57, 0x74, 0x03, 0xae, 0xf9, 0xe1, 0x38, 0x18, 0x9b, 0x42, 0x2e, + 0x5f, 0x10, 0x82, 0x0d, 0x9b, 0x05, 0x13, 0x23, 0x2b, 0x84, 0xe2, 0x19, 0x99, 0x50, 0x74, 0xbd, + 0x21, 0xe1, 0xec, 0x52, 0x2e, 0x97, 0x9c, 0xd0, 0x25, 0x64, 0xe8, 0x11, 0x5c, 0x8f, 0xbf, 0x93, + 0x91, 0x75, 0xc1, 0x59, 0x60, 0xe4, 0x05, 0x14, 0x25, 0x55, 0x67, 0x9c, 0x05, 0xe8, 0x36, 0x00, + 0x1b, 0x5b, 0xa4, 0xdf, 0xf7, 0xa8, 0xef, 0x1b, 0x20, 0x70, 0x79, 0x36, 0x3e, 0x94, 0x02, 0x54, + 0x81, 0x1c, 0x75, 0x08, 0x1b, 0x85, 0x65, 0x29, 0x48, 0xc7, 0xc5, 0x7b, 0xb3, 0x6f, 0xbe, 0x80, + 0xeb, 0x8a, 0xe6, 0x44, 0xf7, 0x20, 0x33, 0x6f, 0xe8, 0x9b, 0xca, 0x1e, 0xc0, 0x21, 0xc2, 0xfc, + 0x43, 0x83, 0x1d, 0xf5, 0x8c, 0xa1, 0xef, 0xa0, 0x10, 0xef, 0x65, 0xc9, 0x75, 0xfb, 0xca, 0x22, + 0xe3, 0xb8, 0xc5, 0xb4, 0x8a, 0x63, 0xc2, 0xbc, 0x68, 0x12, 0xd4, 0x55, 0xec, 0x10, 0xe6, 0x89, + 0x2a, 0x86, 0x0f, 0x8a, 0x4e, 0xcc, 0xa8, 0x3a, 0xb1, 0x02, 0xb7, 0x96, 0x0c, 0x91, 0xb9, 0x0d, + 0xe5, 0x85, 0xcd, 0x6e, 0x1a, 0xb0, 0xf3, 0x9a, 0x06, 0x31,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x3e, 0xfd, 0x2f, 0x00, 0x00, 0xff, 0xff, + 0x8b, 0xfc, 0xfe, 0xf7, 0xf2, 0x0e, 0x00, 0x00, } diff --git a/compile_protos.sh b/compile_protos.sh new file mode 100755 index 00000000..2dcec12a --- /dev/null +++ b/compile_protos.sh @@ -0,0 +1,11 @@ +#!/bin/sh +set -euo pipefail + +proto_imports=".:${GOPATH}/src/github.com/google/protobuf/src:${GOPATH}/src" + +# Go +protoc -I=$proto_imports --go_out=. types.proto +for p in bgp cert file interface layer2 mpls system; do + protoc -I=$proto_imports --go_out=plugins=grpc:. $p/$p.proto +done + diff --git a/file/file.pb.go b/file/file.pb.go index cf46301d..cd68430d 100644 --- a/file/file.pb.go +++ b/file/file.pb.go @@ -1,11 +1,11 @@ // Code generated by protoc-gen-go. DO NOT EDIT. -// source: github.com/openconfig/gnoi/file/file.proto +// source: file/file.proto /* Package gnoi_file is a generated protocol buffer package. It is generated from these files: - github.com/openconfig/gnoi/file/file.proto + file/file.proto It has these top-level messages: PutRequest @@ -769,42 +769,42 @@ var _File_serviceDesc = grpc.ServiceDesc{ ClientStreams: true, }, }, - Metadata: "github.com/openconfig/gnoi/file/file.proto", + Metadata: "file/file.proto", } -func init() { proto.RegisterFile("github.com/openconfig/gnoi/file/file.proto", fileDescriptor0) } +func init() { proto.RegisterFile("file/file.proto", fileDescriptor0) } var fileDescriptor0 = []byte{ - // 482 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x53, 0xd1, 0x6e, 0xd3, 0x30, - 0x14, 0xad, 0xd7, 0x74, 0x6b, 0x6f, 0xda, 0x09, 0x19, 0x18, 0xa1, 0x02, 0x51, 0x02, 0x42, 0x05, - 0x89, 0x74, 0xea, 0x5e, 0xd8, 0x13, 0xd2, 0x84, 0x58, 0x91, 0x40, 0x9a, 0x02, 0xaf, 0x68, 0xf2, - 0xba, 0xdb, 0xc6, 0xa2, 0x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, 0x79, 0x56, 0xac, 0x2b, 0x57, 0xd7, 0x7b, 0x4d, 0x59, 0xbf, 0x3a, 0x8d, 0x21, 0xa1, - 0xc7, 0xe0, 0x99, 0x46, 0xe9, 0xc1, 0x46, 0xed, 0x95, 0xf6, 0xc1, 0x35, 0xbc, 0x12, 0xd3, 0xb7, - 0xb0, 0xeb, 0x36, 0xa1, 0x41, 0x8d, 0xb4, 0x56, 0x47, 0xff, 0xe1, 0x0d, 0x6f, 0x2a, 0x83, 0x8b, - 0x5d, 0xfb, 0xc5, 0x1e, 0xfd, 0x0d, 0x00, 0x00, 0xff, 0xff, 0x2f, 0xfb, 0xba, 0xe9, 0x12, 0x04, - 0x00, 0x00, + // 481 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x53, 0x5d, 0x6f, 0xd3, 0x30, + 0x14, 0xad, 0xd7, 0x74, 0x6b, 0x6f, 0xda, 0x81, 0x0c, 0x8c, 0x50, 0x81, 0x28, 0x01, 0xa1, 0xf2, + 0x40, 0x3a, 0x75, 0x2f, 0xec, 0x09, 0x69, 0x42, 0xac, 0x48, 0x20, 0x4d, 0x81, 0x57, 0x34, 0x79, + 0xdd, 0x6d, 0x63, 0xd1, 0xd8, 0x21, 0x76, 0x90, 0xc6, 0x9f, 0xe0, 0x1f, 0xf2, 0x33, 0x78, 0x46, + 0xb6, 0x93, 0x36, 0xe9, 0xc6, 0xc7, 0x4b, 0x95, 0x9e, 0x9c, 0x73, 0xee, 0xb9, 0xc7, 0x0e, 0xdc, + 0x5a, 0xf0, 0x15, 0x4e, 0xcc, 0x4f, 0x94, 0xe5, 0x52, 0x4b, 0xda, 0x5b, 0x0a, 0xc9, 0x23, 0x03, + 0x0c, 0x9f, 0x2f, 0xb9, 0x4e, 0x8a, 0x8b, 0x68, 0x2e, 0xd3, 0x89, 0xcc, 0x50, 0xcc, 0xa5, 0x58, + 0xf0, 0xe5, 0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0xf7, 0x03, 0x00, + 0x00, } diff --git a/interface/BUILD.bazel b/interface/BUILD.bazel index 470aabcd..2d94e1c3 100644 --- a/interface/BUILD.bazel +++ b/interface/BUILD.bazel @@ -4,7 +4,7 @@ proto_library( name = "interface_proto", srcs = ["interface.proto"], deps = [ - "//github.com/openconfig/reference/rpc/gnoi:gnoi_proto", + "//github.com/openconfig/gnoi:gnoi_proto", ], ) @@ -12,7 +12,7 @@ go_proto_library( name = "go_default_library", srcs = ["interface.proto"], deps = [ - "//github.com/openconfig/reference/rpc/gnoi:go_default_library" + "//github.com/openconfig/gnoi:go_default_library" ], visibility = ["//visibility:public"], rules_go_repo_only_for_internal_use = "@", diff --git a/interface/interface.pb.go b/interface/interface.pb.go index df8e5867..a1f3f84b 100644 --- a/interface/interface.pb.go +++ b/interface/interface.pb.go @@ -1,11 +1,11 @@ // Code generated by protoc-gen-go. DO NOT EDIT. -// source: github.com/openconfig/gnoi/interface/interface.proto +// source: interface/interface.proto /* Package gnoi_interface is a generated protocol buffer package. It is generated from these files: - github.com/openconfig/gnoi/interface/interface.proto + interface/interface.proto It has these top-level messages: SetLoopbackModeRequest @@ -20,7 +20,7 @@ package gnoi_interface import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" -import gnoi "github.com/openconfig/reference/rpc/gnoi" +import gnoi "github.com/openconfig/gnoi" import ( context "golang.org/x/net/context" @@ -280,32 +280,29 @@ var _Interface_serviceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "github.com/openconfig/gnoi/interface/interface.proto", + Metadata: "interface/interface.proto", } -func init() { - proto.RegisterFile("github.com/openconfig/gnoi/interface/interface.proto", fileDescriptor0) -} +func init() { proto.RegisterFile("interface/interface.proto", fileDescriptor0) } var fileDescriptor0 = []byte{ - // 294 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x92, 0xc1, 0x4a, 0xf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0xdb, 0x2c, 0xe0, 0x62, 0xfe, 0x8a, 0x91, 0x5e, 0x6c, 0x00, - 0x73, 0x2a, 0xab, 0xb2, 0xe8, 0x31, 0xff, 0xef, 0x37, 0x3b, 0x70, 0xd9, 0x87, 0x6a, 0x16, 0x98, - 0xbd, 0x0f, 0x60, 0xd8, 0x76, 0x59, 0x02, 0x67, 0x3b, 0x41, 0xb0, 0x2b, 0xfe, 0xfd, 0x74, 0xbc, - 0xfb, 0x02, 0xf6, 0xf5, 0xde, 0xb9, 0xcf, 0x44, 0xff, 0x55, 0x96, 0x60, 0x9f, 0x25, 0x38, 0xd0, - 0x12, 0xf4, 0x5a, 0xd6, 0x30, 0xea, 0xfe, 0x77, 0x36, 0xdd, 0x85, 0xfc, 0x1a, 0xb7, 0xcd, 0x0f, - 0x1d, 0xdf, 0xa8, 0xe3, 0xe3, 0xfa, 0xb9, 0xde, 0x7c, 0x04, 0x00, 0x00, 0xff, 0xff, 0xe9, 0x0e, - 0x8c, 0x8d, 0x2c, 0x03, 0x00, 0x00, + // 284 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xcc, 0xcc, 0x2b, 0x49, + 0x2d, 0x4a, 0x4b, 0x4c, 0x4e, 0xd5, 0x87, 0xb3, 0xf4, 0x0a, 0x8a, 0xf2, 0x4b, 0xf2, 0x85, 0xf8, + 0xd2, 0xf3, 0xf2, 0x33, 0xf5, 0xe0, 0xa2, 0x52, 0x6a, 0xe9, 0x99, 0x25, 0x19, 0xa5, 0x49, 0x7a, + 0xc9, 0xf9, 0xb9, 0xfa, 0xf9, 0x05, 0xa9, 0x79, 0xc9, 0xf9, 0x79, 0x69, 0x99, 0xe9, 0xfa, 0x20, + 0x55, 0xfa, 0x25, 0x95, 0x05, 0xa9, 0xc5, 0x10, 0x7d, 0x4a, 0x61, 0x5c, 0x62, 0xc1, 0xa9, 0x25, + 0x3e, 0xf9, 0xf9, 0x05, 0x49, 0x89, 0xc9, 0xd9, 0xbe, 0xf9, 0x29, 0xa9, 0x41, 0xa9, 0x85, 0xa5, + 0xa9, 0xc5, 0x25, 0x42, 0x1a, 0x5c, 0x9c, 0x70, 0xe3, 0x24, 0x18, 0x15, 0x18, 0x35, 0xb8, 0x8d, + 0xb8, 0xf4, 0xc0, 0xb6, 0x04, 0x24, 0x96, 0x64, 0x04, 0x21, 0x24, 0x85, 0x84, 0xb8, 0x58, 0x72, + 0xf3, 0x53, 0x52, 0x25, 0x98, 0x14, 0x18, 0x35, 0x38, 0x83, 0xc0, 0x6c, 0x25, 0x49, 0x2e, 0x71, + 0x0c, 0x73, 0x8b, 0x0b, 0xf2, 0xf3, 0x8a, 0x53, 0x95, 0x9c, 0xb8, 0xc4, 0xdc, 0x29, 0xb4, 0x52, + 0x49, 0x97, 0x4b, 0xdc, 0x1d, 0xbb, 0xf1, 0x70, 0xd7, 0x30, 0x22, 0xb9, 0xc6, 0x93, 0x4b, 0xd6, + 0x39, 0x27, 0x35, 0xb1, 0xc8, 0x13, 0x66, 0x80, 0x73, 0x7e, 0x29, 0x88, 0x59, 0x8c, 0xc3, 0x66, + 0x66, 0xdc, 0x36, 0x2b, 0x70, 0xc9, 0xe1, 0x32, 0x0a, 0xe2, 0x00, 0xa3, 0x4b, 0x4c, 0x5c, 0x9c, + 0x70, 0x59, 0xa1, 0x14, 0x2e, 0x7e, 0xb4, 0x80, 0x10, 0x52, 0xd3, 0x43, 0x8d, 0x2c, 0x3d, 0xec, + 0x31, 0x20, 0xa5, 0x4e, 0x50, 0x1d, 0x34, 0x44, 0x19, 0x40, 0xb6, 0xb8, 0x13, 0xb2, 0xc5, 0x9d, + 0x48, 0x5b, 0xdc, 0x71, 0xda, 0x52, 0xc9, 0x25, 0x86, 0xdd, 0xef, 0x42, 0xba, 0xe8, 0x86, 0xe0, + 0x0d, 0x6e, 0x29, 0x3d, 0x62, 0x95, 0xc3, 0xac, 0x4e, 0x62, 0x03, 0x27, 0x57, 0x63, 0x40, 0x00, + 0x00, 0x00, 0xff, 0xff, 0xfa, 0x35, 0x00, 0x60, 0x03, 0x03, 0x00, 0x00, } diff --git a/interface/interface.proto b/interface/interface.proto index 19c9a45e..01ed7ccc 100644 --- a/interface/interface.proto +++ b/interface/interface.proto @@ -18,7 +18,7 @@ syntax = "proto3"; package gnoi.interface; -import "github.com/openconfig/reference/rpc/gnoi/types.proto"; +import "github.com/openconfig/gnoi/types.proto"; service Interface { // SetLoopbackMode is used to set the mode of loopback on a interface. diff --git a/layer2/layer2.pb.go b/layer2/layer2.pb.go index 4b2918a6..00f5f7f8 100644 --- a/layer2/layer2.pb.go +++ b/layer2/layer2.pb.go @@ -1,11 +1,11 @@ // Code generated by protoc-gen-go. DO NOT EDIT. -// source: github.com/openconfig/gnoi/layer2/layer2.proto +// source: layer2/layer2.proto /* Package gnoi_layer2 is a generated protocol buffer package. It is generated from these files: - github.com/openconfig/gnoi/layer2/layer2.proto + layer2/layer2.proto It has these top-level messages: ClearNeighborDiscoveryRequest @@ -24,7 +24,7 @@ package gnoi_layer2 import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" -import gnoi "github.com/openconfig/reference/rpc/gnoi" +import gnoi "github.com/openconfig/gnoi" import ( context "golang.org/x/net/context" @@ -544,50 +544,49 @@ var _Layer2_serviceDesc = grpc.ServiceDesc{ ServerStreams: true, }, }, - Metadata: "github.com/openconfig/gnoi/layer2/layer2.proto", + Metadata: "layer2/layer2.proto", } -func init() { proto.RegisterFile("github.com/openconfig/gnoi/layer2/layer2.proto", fileDescriptor0) } +func init() { proto.RegisterFile("layer2/layer2.proto", fileDescriptor0) } var fileDescriptor0 = []byte{ - // 609 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x94, 0x6b, 0x6f, 0x12, 0x4d, - 0x14, 0xc7, 0xbb, 0xd0, 0xd2, 0x72, 0x68, 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0xad, 0x0e, - 0x98, 0x71, 0xc4, 0x20, 0xf2, 0x38, 0x67, 0x3c, 0x1c, 0x4a, 0xc4, 0xac, 0x8a, 0x26, 0x94, 0x19, - 0xd7, 0x28, 0xc7, 0x9e, 0x8f, 0x71, 0x19, 0x95, 0x36, 0x24, 0x65, 0xf4, 0x3d, 0x7d, 0x41, 0xff, - 0x38, 0xad, 0x27, 0xf0, 0x38, 0x87, 0x92, 0x4a, 0xb8, 0x40, 0xfa, 0x28, 0xc7, 0x42, 0x4e, 0x8f, - 0xba, 0x74, 0x98, 0xc1, 0xab, 0x50, 0x60, 0x41, 0x4c, 0x2d, 0xd3, 0x02, 0x0b, 0x16, 0xc5, 0x0a, - 0x77, 0x89, 0xfd, 0x2c, 0xc0, 0xff, 0x0b, 0xc0, 0x44, 0x67, 0x89, 0xf8, 0x11, 0x36, 0x94, 0xf6, - 0x74, 0x42, 0xab, 0xb6, 0xdf, 0xd8, 0x37, 0x06, 0x67, 0xe7, 0x00, 0xec, 0xd9, 0x63, 0x30, 0xcb, - 0xa0, 0x49, 0x22, 0xd9, 0x87, 0x2a, 0x4e, 0xbc, 0x48, 0x61, 0x70, 0x1e, 0xa1, 0x64, 0x22, 0x30, - 0x8b, 0x0d, 0xa3, 0x59, 0xa4, 0x3b, 0xa9, 0xb5, 0x1f, 0x1b, 0x67, 0xfd, 0x8f, 0x3c, 0xad, 0x51, - 0x72, 0x73, 0xbd, 0x61, 0x34, 0xb7, 0x69, 0xf6, 0x24, 0xbb, 0x50, 0x42, 0x29, 0x85, 0x54, 0xe6, - 0x46, 0x9c, 0x98, 0xbe, 0xc8, 0x4b, 0xd8, 0x91, 0xe8, 0x23, 0xbb, 0xc2, 0xe0, 0x7c, 0xc4, 0xb4, - 0x32, 0x4b, 0xb1, 0x7b, 0x3b, 0x33, 0x1e, 0x31, 0xad, 0x2c, 0x07, 0xca, 0xf3, 0x8a, 0x48, 0x05, - 0x36, 0x4f, 0xdd, 0xcf, 0x6e, 0xef, 0x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xc6, 0xcd, 0xcb, 0xff, 0x0a, 0x3b, - 0x0b, 0xd3, 0x23, 0x2f, 0x16, 0x72, 0xf3, 0xd6, 0xaa, 0x6e, 0xdd, 0x15, 0x92, 0x91, 0x47, 0xa5, - 0xf8, 0x47, 0x79, 0xf0, 0x3b, 0x00, 0x00, 0xff, 0xff, 0xa5, 0xac, 0xd7, 0xcd, 0xe9, 0x05, 0x00, - 0x00, + // 597 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0x6d, 0x4f, 0x13, 0x41, + 0x10, 0xe6, 0x5a, 0x28, 0x74, 0x0a, 0x4d, 0x5d, 0x14, 0xcf, 0xfa, 0x42, 0x3d, 0x03, 0x36, 0x6a, + 0xae, 0xa6, 0xfc, 0x01, 0x81, 0x36, 0x86, 0x78, 0x5e, 0x9b, 0x6d, 0x09, 0x7e, 0x23, 0xdb, 0xbb, + 0xe1, 0xd8, 0xd8, 0xde, 0x9e, 0xbb, 0x0b, 0x09, 0xf1, 0x67, 0xf9, 0xf7, 0xfc, 0x60, 0x7a, 0x2f, + 0x95, 0xda, 0x83, 0xca, 0xa7, 0xcb, 0xce, 0x3c, 0xf3, 0x3c, 0x93, 0x99, 0x67, 0x0e, 0xb6, 0xc7, + 0xec, 0x06, 0x65, 0xbb, 0x95, 0x7c, 0xec, 0x48, 0x0a, 0x2d, 0x48, 0x25, 0x08, 0x05, 0xb7, 0x93, + 0x50, 0x7d, 0x3f, 0xe0, 0xfa, 0xf2, 0x6a, 0x64, 0x7b, 0x62, 0xd2, 0x12, 0x11, 0x86, 0x9e, 0x08, + 0x2f, 0x78, 0xd0, 0x9a, 0x42, 0x5a, 0xfa, 0x26, 0x42, 0x95, 0x14, 0x59, 0x01, 0xbc, 0x3c, 0x1e, + 0x23, 0x93, 0x2e, 0xf2, 0xe0, 0x72, 0x24, 0x64, 0x87, 0x2b, 0x4f, 0x5c, 0xa3,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, 0x9b, 0xce, 0x64, 0x85, 0xf8, 0xf0, + 0x68, 0xe1, 0x3a, 0xc8, 0xde, 0x22, 0x47, 0xce, 0x0d, 0xd6, 0xf7, 0x97, 0xc1, 0x66, 0x2a, 0x43, + 0xa8, 0xdc, 0x32, 0x35, 0xd9, 0xbd, 0xdb, 0xee, 0x09, 0x73, 0x63, 0xd9, 0x3d, 0x58, 0x2b, 0x1f, + 0x0d, 0x12, 0x00, 0x59, 0xdc, 0x37, 0xc9, 0xe9, 0x2a, 0xcf, 0x57, 0xf5, 0xb7, 0x4b, 0x71, 0xb3, + 0xf6, 0xbf, 0xc1, 0xd6, 0xdc, 0xf6, 0xc8, 0xeb, 0xb9, 0xda, 0x3c, 0x5b, 0xd5, 0xad, 0xfb, 0x20, + 0x19, 0xf3, 0xa8, 0x14, 0xff, 0x28, 0x0f, 0xfe, 0x04, 0x00, 0x00, 0xff, 0xff, 0xd8, 0x91, 0x68, + 0xe4, 0xc0, 0x05, 0x00, 0x00, } diff --git a/layer2/layer2.proto b/layer2/layer2.proto index 1dd5b303..9d6897ff 100644 --- a/layer2/layer2.proto +++ b/layer2/layer2.proto @@ -18,7 +18,7 @@ syntax = "proto3"; package gnoi.layer2; -import "github.com/openconfig/reference/rpc/gnoi/types.proto"; +import "github.com/openconfig/gnoi/types.proto"; service Layer2 { diff --git a/mpls/mpls.pb.go b/mpls/mpls.pb.go index 7f54b021..7faabf30 100644 --- a/mpls/mpls.pb.go +++ b/mpls/mpls.pb.go @@ -1,11 +1,11 @@ // Code generated by protoc-gen-go. DO NOT EDIT. -// source: github.com/openconfig/gnoi/mpls/mpls.proto +// source: mpls/mpls.proto /* Package gnoi_mpls is a generated protocol buffer package. It is generated from these files: - github.com/openconfig/gnoi/mpls/mpls.proto + mpls/mpls.proto It has these top-level messages: ClearLSPRequest @@ -714,59 +714,57 @@ var _MPLS_serviceDesc = grpc.ServiceDesc{ ServerStreams: true, }, }, - Metadata: "github.com/openconfig/gnoi/mpls/mpls.proto", + Metadata: "mpls/mpls.proto", } -func init() { proto.RegisterFile("github.com/openconfig/gnoi/mpls/mpls.proto", fileDescriptor0) } +func init() { proto.RegisterFile("mpls/mpls.proto", fileDescriptor0) } var fileDescriptor0 = []byte{ - // 758 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x54, 0x4f, 0x6f, 0xe2, 0x46, - 0x14, 0xb7, 0xc1, 0x09, 0xf0, 0xc0, 0xc4, 0x19, 0xa5, 0xad, 0x43, 0x0f, 0x4d, 0x9d, 0x56, 0x8d, - 0xaa, 0x94, 0xb4, 0xa4, 0x97, 0xdd, 0xd3, 0x12, 0xe2, 0x24, 0x48, 0x04, 0xd0, 0xd8, 0x24, 0xa7, - 0x95, 0x45, 0xec, 0x81, 0x58, 0x32, 0xb6, 0xe3, 0x19, 0x92, 0xdd, 0xfd, 0x92, 0x2b, 0xed, 0x17, - 0xd9, 0xd3, 0xde, 0x57, 0x33, 0xb6, 0x21, 0x10, 0x36, 0x17, 0xeb, 0xcd, 0xef, 0xbd, 0xf7, 0x7b, - 0x7f, 0xfd, 0xe0, 0xef, 0xa9, 0xcf, 0xee, 0xe7, 0x77, 0x4d, 0x37, 0x9a, 0x9d, 0x44, 0x31, 0x09, - 0xdd, 0x28, 0x9c, 0xf8, 0xd3, 0x93, 0x69, 0x18, 0xf9, 0x27, 0xb3, 0x38, 0xa0, 0xe2, 0xd3, 0x8c, - 0x93, 0x88, 0x45, 0xa8, 0xc2, 0xd1, 0x26, 0x07, 0x8c, 0x2f, 0x32, 0xec, 0x74, 0x02, 0x32, 0x4e, - 0x7a, 0xd6, 0x10, 0x93, 0x87, 0x39, 0xa1, 0x0c, 0x21, 0x50, 0xc2, 0xf1, 0x8c, 0xe8, 0x85, 0x03, - 0xf9, 0xa8, 0x82, 0x85, 0x8c, 0x4e, 0x41, 0x99, 0x45, 0x1e, 0xd1, 0x8b, 0x07, 0xf2, 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d9, 0x2f, 0x2c, 0xa1, 0xf7, - 0xcb, 0x1b, 0x91, 0xff, 0xe0, 0xc8, 0xd8, 0xe0, 0xb2, 0x76, 0x2c, 0x1a, 0x87, 0xaf, 0xda, 0x2c, - 0xe8, 0x2f, 0xa1, 0x9c, 0xb7, 0x6f, 0x25, 0xcb, 0xb5, 0x35, 0x5c, 0xc9, 0x72, 0xbd, 0xdf, 0x86, - 0xf4, 0xaf, 0x7c, 0xb7, 0x2d, 0x4e, 0xf6, 0xe9, 0xf7, 0x00, 0x00, 0x00, 0xff, 0xff, 0xca, 0x1a, - 0xfe, 0xcf, 0xe0, 0x05, 0x00, 0x00, + // 736 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x54, 0x4f, 0x6f, 0xda, 0x4a, + 0x10, 0xb7, 0xc1, 0x09, 0x30, 0x60, 0xd8, 0xac, 0xf2, 0xde, 0x73, 0x78, 0x87, 0x97, 0xe7, 0xb4, + 0x6a, 0x0e, 0x29, 0x6d, 0x49, 0x2f, 0xed, 0xa9, 0x84, 0x38, 0x09, 0x12, 0x01, 0xb4, 0x36, 0xc9, + 0xa9, 0xb2, 0xa8, 0xbd, 0xa4, 0x96, 0x8c, 0xed, 0x78, 0x4d, 0xd2, 0xf6, 0x4b, 0x56, 0xea, 0x17, + 0xe9, 0xa9, 0xf7, 0x6a, 0xd7, 0x36, 0x04, 0x42, 0x73, 0xb1, 0x66, 0x7f, 0x33, 0xf3, 0x9b, 0xbf, + 0x1e, 0x68, 0xcc, 0x22, 0x9f, 0xbd, 0xe2, 0x9f, 0x56, 0x14, 0x87, 0x49, 0x88, 0x2b, 0x37, 0x41, + 0xe8, 0xb5, 0x38, 0xa0, 0xff, 0x90, 0xa1, 0xd1, 0xf5, 0xe9, 0x24, 0xee, 0x9b, 0x23, 0x42, 0x6f, + 0xe7, 0x94, 0x25, 0x18, 0x83, 0x12, 0x4c, 0x66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, 0x3f, 0x13, 0x37, 0xff, 0x7c, + 0x87, 0x9a, 0xff, 0x6e, 0xd4, 0x65, 0xbf, 0xb0, 0x84, 0x3f, 0x2e, 0x6f, 0x44, 0xfe, 0x83, 0x63, + 0x7d, 0x83, 0xcb, 0xda, 0xb1, 0x68, 0x1e, 0x3c, 0x69, 0xb3, 0xa0, 0x3f, 0x87, 0x72, 0xde, 0xbe, + 0x95, 0x2c, 0xd7, 0xd6, 0x70, 0x25, 0xcb, 0xf5, 0x7e, 0xeb, 0xd2, 0x6b, 0xf9, 0xd3, 0xb6, 0x38, + 0xd9, 0xc7, 0xbf, 0x03, 0x00, 0x00, 0xff, 0xff, 0xc7, 0x45, 0x47, 0x1a, 0xc5, 0x05, 0x00, 0x00, } diff --git a/system/system.pb.go b/system/system.pb.go index fe921e7e..26f480f0 100644 --- a/system/system.pb.go +++ b/system/system.pb.go @@ -1,11 +1,11 @@ // Code generated by protoc-gen-go. DO NOT EDIT. -// source: github.com/openconfig/gnoi/system/system.proto +// source: system/system.proto /* Package gnoi_system is a generated protocol buffer package. It is generated from these files: - github.com/openconfig/gnoi/system/system.proto + system/system.proto It has these top-level messages: SwitchControlProcessorRequest @@ -1055,8 +1055,8 @@ type SystemClient interface { // of the data sent. An error is returned if the location does not exist or // there is an error writing the data. If no checksum is received, the target // must assume the operation is incomplete and remove the partially - // transmitted file. The target should initially write the file to a temporary location so a failure - // does not destroy the original file. + // transmitted file. The target should initially write the file to a temporary + // location so a failure does not destroy the original file. SetPackage(ctx context.Context, opts ...grpc.CallOption) (System_SetPackageClient, error) // SwitchControlProcessor will switch from the current route processor to the // provided route processor. If the current route processor is the same as the @@ -1251,8 +1251,8 @@ type SystemServer interface { // of the data sent. An error is returned if the location does not exist or // there is an error writing the data. If no checksum is received, the target // must assume the operation is incomplete and remove the partially - // transmitted file. The target should initially write the file to a temporary location so a failure - // does not destroy the original file. + // transmitted file. The target should initially write the file to a temporary + // location so a failure does not destroy the original file. SetPackage(System_SetPackageServer) error // SwitchControlProcessor will switch from the current route processor to the // provided route processor. If the current route processor is the same as the @@ -1478,107 +1478,107 @@ var _System_serviceDesc = grpc.ServiceDesc{ ClientStreams: true, }, }, - Metadata: "github.com/openconfig/gnoi/system/system.proto", + Metadata: "system/system.proto", } -func init() { proto.RegisterFile("github.com/openconfig/gnoi/system/system.proto", fileDescriptor0) } +func init() { proto.RegisterFile("system/system.proto", fileDescriptor0) } var fileDescriptor0 = []byte{ - // 1532 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x57, 0xdd, 0x6e, 0xdb, 0xbe, - 0x15, 0xb7, 0xfc, 0xed, 0xe3, 0x24, 0x7f, 0x85, 0xc9, 0x52, 0xd5, 0xdd, 0x5a, 0x4f, 0xe8, 0x8a, - 0xb4, 0x03, 0x9c, 0x2e, 0x2d, 0xd0, 0x61, 0x43, 0x31, 0xb8, 0xb6, 0xd2, 0x04, 0x75, 0x6c, 0x4f, - 0x96, 0x97, 0x01, 0xbb, 0x30, 0x18, 0x99, 0xb1, 0x85, 0xca, 0xa2, 0x26, 0xd2, 0x6e, 0xb3, 0xeb, - 0xdd, 0xed, 0x66, 0x17, 0xc3, 0xb0, 0xdb, 0xbd, 0xc6, 0x5e, 0x64, 0xef, 0xb1, 0x27, 0x18, 0x48, - 0x4a, 0xb6, 0xec, 0xb8, 0x49, 0xf1, 0xbf, 0x32, 0xcf, 0x39, 0xe4, 0xf9, 0xf8, 0x9d, 0x1f, 0xa9, - 0x63, 0x68, 0x4c, 0x3c, 0x3e, 0x9d, 0x5f, 0x37, 0x5c, 0x3a, 0x3b, 0xa1, 0x21, 0x09, 0x5c, 0x1a, - 0xdc, 0x78, 0x93, 0x93, 0x49, 0x40, 0xbd, 0x13, 0x76, 0xcb, 0x38, 0x99, 0xc5, 0x3f, 0x8d, 0x30, - 0xa2, 0x9c, 0xa2, 0xaa, 0xb0, 0x34, 0x94, 0xaa,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, 0x0d, - 0x8d, 0x5c, 0x62, 0x14, 0xea, 0xda, 0x71, 0xd9, 0x56, 0x82, 0xa9, 0xc3, 0x5e, 0x92, 0xbb, 0x42, - 0xce, 0xc4, 0x70, 0xd0, 0xc2, 0x81, 0x4b, 0xfc, 0xf5, 0x9a, 0x52, 0xa9, 0x68, 0x0f, 0xa4, 0x92, - 0x7d, 0x20, 0x15, 0xf3, 0x08, 0x0e, 0xd7, 0x43, 0xc4, 0xa1, 0x3f, 0xc2, 0x81, 0xd2, 0x0c, 0x38, - 0xe6, 0x73, 0x96, 0x84, 0xbe, 0x13, 0x40, 0x7b, 0x28, 0xc0, 0x5f, 0x35, 0x38, 0x5c, 0xf7, 0x14, - 0xd3, 0xe2, 0x08, 0x8a, 0xd8, 0xe5, 0xde, 0x42, 0x15, 0x51, 0xb6, 0x63, 0x09, 0x21, 0xc8, 0x7f, - 0xc1, 0x1e, 0x8f, 0xd1, 0x97, 0x6b, 0xa9, 0x9b, 0x92, 0x40, 0x22, 0x2f, 0x74, 0x53, 0x22, 0x39, - 0x10, 0x11, 0xcc, 0x68, 0x60, 0xe4, 0x25, 0x08, 0xb1, 0x24, 0xc0, 0x75, 0xe9, 0x3c, 0xe0, 0x12, - 0xdc, 0x5d, 0x5b, 0x09, 0xe6, 0x2e, 0x54, 0x1d, 0x6f, 0x46, 0xe2, 0x3a, 0x4c, 0x13, 0x76, 0x94, - 0x18, 0x27, 0x83, 0x20, 0x2f, 0xe9, 0xa4, 0xa9, 0x00, 0x92, 0x4c, 0xff, 0xce, 0x42, 0xb5, 0xef, + // 1531 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x57, 0xdf, 0x6e, 0xdb, 0xbc, + 0x15, 0xb7, 0xfc, 0xdf, 0xc7, 0x49, 0xaa, 0x30, 0x59, 0xaa, 0xba, 0x5b, 0xeb, 0x09, 0x5d, 0x91, + 0x76, 0x80, 0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8c, 0x6c, 0x5d, 0x3b, 0xae, 0xd8, 0x89, + 0x88, 0x8e, 0xa0, 0x38, 0x0f, 0xb9, 0x37, 0x23, 0x46, 0xae, 0xae, 0x1d, 0xe7, 0xec, 0x58, 0x32, + 0xff, 0xa7, 0xc1, 0xae, 0x4d, 0xae, 0x29, 0xe5, 0x49, 0x61, 0xbf, 0x81, 0xe2, 0x8c, 0xf0, 0x29, + 0x1d, 0xcb, 0x13, 0xf7, 0x4e, 0x1f, 0x35, 0x52, 0xf8, 0x35, 0x94, 0xef, 0xa5, 0x74, 0xb0, 0x63, + 0x47, 0x74, 0x08, 0x85, 0x31, 0xf1, 0xf1, 0xad, 0x3c, 0x34, 0x6f, 0x2b, 0x41, 0x24, 0x33, 0x23, + 0x8c, 0xe1, 0x89, 0x3a, 0xb3, 0x62, 0x27, 0x22, 0x7a, 0x05, 0xbb, 0x6c, 0x7e, 0xed, 0xd2, 0x59, + 0x48, 0x03, 0x12, 0x70, 0x66, 0xe4, 0xeb, 0xb9, 0x8d, 0xda, 0xd6, 0x1d, 0xc4, 0x09, 0x37, 0x34, + 0x72, 0x89, 0x51, 0xa8, 0x6b, 0xc7, 0x65, 0x5b, 0x09, 0xa6, 0x0e, 0x7b, 0x49, 0xee, 0x0a, 0x39, + 0x13, 0xc3, 0x41, 0x0b, 0x07, 0x2e, 0xf1, 0xd7, 0x6b, 0x4a, 0xa5, 0xa2, 0xdd, 0x93, 0x4a, 0xf6, + 0x9e, 0x54, 0xcc, 0x23, 0x38, 0x5c, 0x3f, 0x22, 0x3e, 0xfa, 0x03, 0x1c, 0x28, 0xcd, 0x80, 0x63, + 0x3e, 0x67, 0xc9, 0xd1, 0x77, 0x0e, 0xd0, 0xee, 0x3b, 0xe0, 0xef, 0x1a, 0x1c, 0xae, 0x47, 0x8a, + 0x69, 0x71, 0x04, 0x45, 0xec, 0x72, 0x6f, 0xa1, 0x8a, 0x28, 0xdb, 0xb1, 0x84, 0x10, 0xe4, 0x3f, + 0x63, 0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0x76, 0x9b, 0x9e, 0xbe, 0x37, 0xdc, 0x6e, - 0x99, 0xfd, 0x37, 0xdc, 0x6e, 0x1d, 0xdd, 0x33, 0xd7, 0x45, 0xf9, 0x6d, 0x7c, 0xf3, 0xff, 0x00, - 0x00, 0x00, 0xff, 0xff, 0xf5, 0xc0, 0x29, 0xeb, 0x5c, 0x0e, 0x00, 0x00, + 0x82, 0x50, 0x90, 0xfa, 0x25, 0x08, 0xcc, 0xfb, 0x1b, 0x31, 0x8a, 0x32, 0x88, 0x5c, 0xa3, 0xe7, + 0xf0, 0x60, 0x4c, 0x47, 0x01, 0xe5, 0xa3, 0x9b, 0x08, 0x4f, 0x66, 0x24, 0xe0, 0x46, 0x49, 0xa2, + 0xb9, 0x3b, 0xa6, 0x5d, 0xca, 0xcf, 0x62, 0x25, 0x7a, 0x06, 0x7b, 0xb1, 0x5f, 0x44, 0x18, 0xf5, + 0x17, 0xc4, 0x28, 0x4b, 0xb7, 0x1d, 0xe9, 0x66, 0x2b, 0x1d, 0x7a, 0x05, 0xe0, 0xbf, 0x96, 0x2f, + 0x86, 0x4b, 0x7d, 0xa3, 0x22, 0x2f, 0x8c, 0xae, 0x5a, 0xdb, 0x79, 0xdd, 0x8f, 0xf5, 0x76, 0xca, + 0xc7, 0xfc, 0x4f, 0x16, 0x76, 0x14, 0x46, 0xab, 0xae, 0xc6, 0x10, 0x68, 0x6b, 0x10, 0x24, 0x00, + 0x67, 0x55, 0x41, 0x62, 0x2d, 0x0b, 0x22, 0x4b, 0x54, 0xe4, 0x5a, 0x80, 0x12, 0x11, 0x97, 0x78, + 0x0b, 0x32, 0x96, 0xa0, 0x14, 0xec, 0xa5, 0x8c, 0x1e, 0x41, 0x79, 0xe6, 0x05, 0x23, 0x19, 0x47, + 0x01, 0x53, 0x9a, 0x79, 0x81, 0xe8, 0xa3, 0x30, 0xe1, 0xc5, 0x44, 0x99, 0x8a, 0xca, 0x84, 0x17, + 0x93, 0xc4, 0x34, 0xc3, 0x5f, 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, 0xd6, 0xca, 0xbc, + 0xd2, 0xd0, 0x1f, 0x01, 0x56, 0xb7, 0x05, 0x3d, 0xf9, 0xf6, 0x4b, 0x58, 0x7b, 0x7a, 0xcf, 0x35, + 0x93, 0x21, 0xdf, 0x41, 0x5e, 0x7e, 0xe5, 0xd6, 0x73, 0x4a, 0x4d, 0x41, 0x1b, 0x39, 0xa5, 0x07, + 0x22, 0x33, 0x23, 0x32, 0x5a, 0xc1, 0xbb, 0x91, 0xd1, 0x1d, 0x36, 0x6c, 0x64, 0x74, 0xb7, 0x2f, + 0x66, 0xe6, 0x58, 0x43, 0x0c, 0x8e, 0xb6, 0xff, 0x57, 0x40, 0x2f, 0xd7, 0xb7, 0x7f, 0xeb, 0xbf, + 0x4a, 0xed, 0xd7, 0xdf, 0xe5, 0xbb, 0xac, 0xa3, 0x05, 0x45, 0x45, 0x08, 0x54, 0xdb, 0x32, 0xfb, + 0x27, 0x41, 0x1f, 0x6f, 0xb5, 0x2d, 0x83, 0x0c, 0x13, 0x56, 0xa9, 0x21, 0x16, 0xd5, 0xb7, 0xb8, + 0xaf, 0x4d, 0xca, 0xb5, 0x5f, 0x7e, 0xc3, 0x23, 0x1d, 0x36, 0x3d, 0x7d, 0x6f, 0x84, 0xdd, 0x32, + 0xfb, 0x6f, 0x84, 0xdd, 0x3a, 0xba, 0x67, 0xae, 0x8b, 0xf2, 0xdb, 0xf8, 0xfa, 0xc7, 0x00, 0x00, + 0x00, 0xff, 0xff, 0xb7, 0x09, 0xaf, 0x86, 0x41, 0x0e, 0x00, 0x00, } diff --git a/types.pb.go b/types.pb.go index 1c9ec9f2..0fbbd74b 100644 --- a/types.pb.go +++ b/types.pb.go @@ -1,11 +1,11 @@ // Code generated by protoc-gen-go. DO NOT EDIT. -// source: github.com/openconfig/gnoi/types.proto +// source: types.proto /* Package gnoi is a generated protocol buffer package. It is generated from these files: - github.com/openconfig/gnoi/types.proto + types.proto It has these top-level messages: HashType @@ -170,29 +170,28 @@ func init() { proto.RegisterEnum("gnoi.HashType_HashMethod", HashType_HashMethod_name, HashType_HashMethod_value) } -func init() { proto.RegisterFile("github.com/openconfig/gnoi/types.proto", fileDescriptor0) } +func init() { proto.RegisterFile("types.proto", fileDescriptor0) } var fileDescriptor0 = []byte{ - // 329 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x91, 0x41, 0x4f, 0xbb, 0x40, - 0x10, 0xc5, 0xff, 0x0b, 0xfc, 0x91, 0x4e, 0x4d, 0xdd, 0x4c, 0x8c, 0xa2, 0xa7, 0x86, 0x83, 0xa9, - 0x1e, 0x68, 0x4a, 0x6d, 0x63, 0x3c, 0x98, 0xa8, 0xc5, 0xb4, 0xd1, 0x1a, 0x42, 0xd5, 0x3b, 0xad, - 0x2b, 0x10, 0x81, 0x25, 0x2d, 0x35, 0xe1, 0xe8, 0x47, 0xf0, 0x1b, 0x9b, 0x5d, 0x20, 0xc6, 0x78, - 0xfb, 0xcd, 0xcc, 0x9b, 0x97, 0xb7, 0xb3, 0x70, 0x12, 0xc6, 0x45, 0xb4, 0x5d, 0xda, 0x2b, 0x9e, - 0xf6, 0x79, 0xce, 0xb2, 0x15, 0xcf, 0xde, 0xe2, 0xb0, 0x1f, 0x66, 0x3c, 0xee, 0x17, 0x65, 0xce, - 0x36, 0x76, 0xbe, 0xe6, 0x05, 0x47, 0x4d, 0x74, 0xac, 0x2f, 0x02, 0xc6, 0x34, 0xd8, 0x44, 0x4f, - 0x65, 0xce, 0x70, 0x00, 0x7a, 0xca, 0x8a, 0x88, 0xbf, 0x9a, 0xa4, 0x4b, 0x7a, 0x1d, 0xe7, 0xc8, - 0x16, 0x1a, 0xbb, 0x99, 0x4b, 0x98, 0x4b, 0x81, 0x5f, 0x0b, 0x11, 0x41, 0x8b, 0x82, 0x4d, 0x64, - 0x2a, 0x5d, 0xd2, 0xdb, 0xf5, 0x25, 0x5b, 0x57, 0x00, 0x3f, 0x4a, 0xdc, 0x83, 0xf6, 0xf3, 0xe3, - 0xc2, 0x73, 0x6f, 0x67, 0x77, 0x33, 0x77, 0x42, 0xff, 0x21, 0x80, 0xbe, 0x98, 0x5e, 0x3b, 0xa3, - 0x31, 0x25, 0x35, 0x8f, 0x06, 0x0e, 0x55, 0x70, 0x07, 0xd4, 0xf9, 0x64, 0x44, 0x55, 0xeb, 0x06, - 0x34, 0x2f, 0x28, 0x22, 0x3c, 0x00, 0x9d, 0xaf, 0xe3, 0x30, 0xce, 0xa4, 0x7b, 0xcb, 0xaf, 0x2b, - 0xb4, 0x40, 0x63, 0x09, 0x4b, 0x4d, 0xb5, 0xab, 0xf6, 0xda, 0x4e, 0xa7, 0x0a, 0x29, 0x36, 0xdc, - 0x84, 0xa5, 0xbe, 0x9c, 0x59, 0x9f, 0x04, 0x8c, 0xa6, 0x25, 0x42, 0x66, 0x41, 0xca, 0xe4, 0xab, - 0x5a, 0xbe, 0x64, 0x3c, 0x05, 0xf5, 0x9d, 0x95, 0xa6, 0x22, 0x3d, 0x0e, 0x7f, 0x7b, 0xd8, 0xf7, - 0xac, 0x74, 0xb3, 0x62, 0x5d, 0xfa, 0x42, 0x73, 0x3c, 0x06, 0xa3, 0x69, 0x20, 0xad, 0xd6, 0x2a, - 0x27, 0x81, 0xb8, 0x0f, 0xff, 0x3f, 0x82, 0x64, 0xcb, 0xea, 0x90, 0x55, 0x71, 0xa9, 0x5c, 0x90, - 0xb3, 0x01, 0xc0, 0xc3, 0xd0, 0x13, 0xc7, 0x5e, 0xf1, 0xe4, 0xef, 0x1d, 0x0c, 0xd0, 0x66, 0xde, - 0xcb, 0x39, 0x25, 0x35, 0x8d, 0xa9, 0xb2, 0xd4, 0xe5, 0xdf, 0x0c, 0xbf, 0x03, 0x00, 0x00, 0xff, - 0xff, 0x8d, 0x0d, 0x18, 0xa6, 0xc5, 0x01, 0x00, 0x00, + // 306 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x91, 0x41, 0x4f, 0x83, 0x40, + 0x10, 0x85, 0x5d, 0x40, 0xa4, 0x53, 0x53, 0x37, 0x13, 0xa3, 0xe8, 0xa9, 0xe1, 0x54, 0x3d, 0x90, + 0x94, 0xda, 0xc6, 0x78, 0x30, 0x51, 0x8b, 0x69, 0xa3, 0x35, 0x64, 0xab, 0xde, 0x51, 0x37, 0x85, + 0x08, 0x2c, 0x01, 0x34, 0xe1, 0xe8, 0x4f, 0xf0, 0x1f, 0x9b, 0x5d, 0x20, 0xc6, 0x78, 0xfb, 0x66, + 0xe6, 0xcd, 0xcb, 0xdb, 0x59, 0xe8, 0x57, 0x75, 0xce, 0x4b, 0x37, 0x2f, 0x44, 0x25, 0xd0, 0xd8, + 0x64, 0x22, 0x76, 0xbe, 0x09, 0x58, 0x8b, 0xb0, 0x8c, 0x1e, 0xeb, 0x9c, 0xe3, 0x18, 0xcc, 0x94, + 0x57, 0x91, 0x78, 0xb3, 0xc9, 0x90, 0x8c, 0x06, 0xde, 0x91, 0x2b, 0x35, 0x6e, 0x37, 0x57, 0xb0, + 0x52, 0x02, 0xd6, 0x0a, 0x11, 0xc1, 0x88, 0xc2, 0x32, 0xb2, 0xb5, 0x21, 0x19, 0xed, 0x32, 0xc5, + 0xce, 0x25, 0xc0, 0xaf, 0x12, 0xf7, 0xa0, 0xff, 0xf4, 0xb0, 0x0e, 0xfc, 0x9b, 0xe5, 0xed, 0xd2, + 0x9f, 0xd3, 0x2d, 0x04, 0x30, 0xd7, 0x8b, 0x2b, 0x6f, 0x3a, 0xa3, 0xa4, 0xe5, 0xe9, 0xd8, 0xa3, + 0x1a, 0xee, 0x80, 0xbe, 0x9a, 0x4f, 0xa9, 0xee, 0x5c, 0x83, 0x11, 0x84, 0x55, 0x84, 0x07, 0x60, + 0x8a, 0x22, 0xde, 0xc4, 0x99, 0x72, 0xef, 0xb1, 0xb6, 0x42, 0x07, 0x0c, 0x9e, 0xf0, 0xd4, 0xd6, + 0x87, 0xfa, 0xa8, 0xef, 0x0d, 0x9a, 0x90, 0x72, 0xc3, 0x4f, 0x78, 0xca, 0xd4, 0xcc, 0xf9, 0x22, + 0x60, 0x75, 0x2d, 0x19, 0x32, 0x0b, 0x53, 0xae, 0x5e, 0xd5, 0x63, 0x8a, 0xf1, 0x04, 0xf4, 0x77, + 0x5e, 0xdb, 0x9a, 0xf2, 0x38, 0xfc, 0xeb, 0xe1, 0xde, 0xf1, 0xda, 0xcf, 0xaa, 0xa2, 0x66, 0x52, + 0x73, 0x3c, 0x03, 0xab, 0x6b, 0x20, 0x6d, 0xd6, 0x1a, 0x27, 0x89, 0xb8, 0x0f, 0xdb, 0x9f, 0x61, + 0xf2, 0xc1, 0xdb, 0x90, 0x4d, 0x71, 0xa1, 0x9d, 0x93, 0xd3, 0x31, 0xc0, 0xfd, 0x24, 0x90, 0xc7, + 0x7e, 0x15, 0xc9, 0xff, 0x3b, 0x58, 0x60, 0x2c, 0x83, 0xe7, 0x33, 0x4a, 0x5a, 0x9a, 0x51, 0xed, + 0xc5, 0x54, 0x7f, 0x33, 0xf9, 0x09, 0x00, 0x00, 0xff, 0xff, 0xea, 0xe4, 0xaf, 0x79, 0xaa, 0x01, + 0x00, 0x00, } From 6a007f259368223f21da87904cd1abf7946a7ff9 Mon Sep 17 00:00:00 2001 From: Rob Shakir Date: Tue, 30 Jan 2018 18:36:44 -0800 Subject: [PATCH 015/238] Fix license, Go tests and add contributors. --- CONTRIBUTORS | 1 + test/simple.go | 16 ++++++++++++++++ test/simple_test.go | 36 +++++++++++++++++++++++++----------- 3 files changed, 42 insertions(+), 11 deletions(-) create mode 100644 CONTRIBUTORS create mode 100644 test/simple.go diff --git a/CONTRIBUTORS b/CONTRIBUTORS new file mode 100644 index 00000000..d27bcca7 --- /dev/null +++ b/CONTRIBUTORS @@ -0,0 +1 @@ +Google, Inc. diff --git a/test/simple.go b/test/simple.go new file mode 100644 index 00000000..e71210c9 --- /dev/null +++ b/test/simple.go @@ -0,0 +1,16 @@ +// Copyright 2017 Google Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Package simple defines a simple set of gNOI tests. +package simple diff --git a/test/simple_test.go b/test/simple_test.go index 5f26dbd6..ecc708ca 100644 --- a/test/simple_test.go +++ b/test/simple_test.go @@ -1,11 +1,25 @@ +// Copyright 2017 Google Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package simple import ( "testing" - "github.com/golang/protobuf/proto/proto" - "github.com/openconfig/gnoi" - gbgp "github.com/openconfig/gnoi/bgp" + "github.com/golang/protobuf/proto" + gpb "github.com/openconfig/gnoi" + bgppb "github.com/openconfig/gnoi/bgp" ) func TestGNOI(t *testing.T) { @@ -14,25 +28,25 @@ func TestGNOI(t *testing.T) { in proto.Message want string }{{ - desc: "gnoi.Path", - in: &gnoi.Path{ + desc: "gpb.Path", + in: &gpb.Path{ Origin: "oc", - Elem: []*gnoi.PathElem{{Name: "interfaces", Key: map[string]string{"name": "Ethernet1/1/0"}}}, + Elem: []*gpb.PathElem{{Name: "interfaces", Key: map[string]string{"name": "Ethernet1/1/0"}}}, }, want: "origin: \"oc\"\nelem: <\n name: \"interfaces\"\n key: <\n key: \"name\"\n value: \"Ethernet1/1/0\"\n >\n>\n", }, { - desc: "gnoi.HashType", - in: &gnoi.HashType{ - Method: gnoi.HashType_MD5, + desc: "gpb.HashType", + in: &gpb.HashType{ + Method: gpb.HashType_MD5, Hash: []byte("foo"), }, want: "method: MD5\nhash: \"foo\"\n", }, { desc: "bgp.ClearBGPNeighborRequest", - in: &gbgp.ClearBGPNeighborRequest{ + in: &bgppb.ClearBGPNeighborRequest{ Address: "foo", RoutingInstance: "bar", - Mode: gbgp.ClearBGPNeighborRequest_HARD, + Mode: bgppb.ClearBGPNeighborRequest_HARD, }, want: "address: \"foo\"\nrouting_instance: \"bar\"\nmode: HARD\n", }} From 6fa7b09fe03b456dba256724260a58cdd71c2e43 Mon Sep 17 00:00:00 2001 From: Alireza Ghaffarkhah Date: Mon, 21 May 2018 19:22:58 -0700 Subject: [PATCH 016/238] First cut of Diag gNOI micro service --- diag/BUILD.bazel | 14 +++ diag/diag.proto | 236 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 250 insertions(+) create mode 100644 diag/BUILD.bazel create mode 100644 diag/diag.proto diff --git a/diag/BUILD.bazel b/diag/BUILD.bazel new file mode 100644 index 00000000..07deb8e5 --- /dev/null +++ b/diag/BUILD.bazel @@ -0,0 +1,14 @@ +load("@io_bazel_rules_go//proto:go_proto_library.bzl", "go_proto_library") + +proto_library( + name = "diag_proto", + srcs = ["diag.proto"], +) + +go_proto_library( + name = "go_default_library", + srcs = ["diag.proto"], + visibility = ["//visibility:public"], + rules_go_repo_only_for_internal_use = "@", + has_services = 1, +) diff --git a/diag/diag.proto b/diag/diag.proto new file mode 100644 index 00000000..5d8f99fc --- /dev/null +++ b/diag/diag.proto @@ -0,0 +1,236 @@ +// +// Copyright 2017 Google Inc. All Rights Reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +// This file defines the gNOI APIs used to perform diagnostic operations on a +// switching box. +syntax = "proto3"; + +package gnoi.diag; + +// The Diag service exports to main set of RPCs: +// 1- BERT related RPCs: Used to perform Bit Error Rate Test (BERT) +// operation on a set of ports. +// 2- BURNING related RPCs: Used to perform a vendor-provide Burnin test on the +// switch to ensure the box is ready to start serving traffic. Burnin tests +// are typically run by HwOps in the datacenter, as part of turnup or repair +// workflow. +service Diag { + // Starts BERT operation on a set of ports. Each BERT operation is uniquely + // identified by an ID, which is given by the caller. The caller can then + // use this ID (as well as the list of the ports) to stop the BERT operation + // and/or get the BERT results. This RPC is expected to return an error status + // in the the following situations: + // - When BERT operation is not supported on any of the ports specified by + // the request. + // - When BERT is already in progress on any port specified by the request. + // - In case of any low-level HW/SW internal errors. + // The RPC returns an OK status of none of these situations is encountered. + rpc StartBERT(StartBERTRequest) returns(StartBERTResponse) {} + + // Stops an already in-progress BERT operation on a set of ports. The caller + // uses the BERT operation ID it previously used when starting the operation + // to stop it. The RPC is expected to return an error status in the following + // situations: + // - When there is at least one BERT operation in progress on a port which + // cannot be stopped in the middle of the operation (either due to lack of + // support or internal problems). + // - When no BERT operation, which matches the given BERT operation ID, is in + // progress or completed on any of the ports specified by the request. + // - When the BERT operation ID does not match the in progress or completed + // BERT operation on any of the ports specified by the request. + // The RPC returns an OK status of none of these situations is encountered. + // Note that a BERT operation is considered completed if switch has a + // record of it. Also note that it is OK to receive a stop request for a port + // which has completed BERT, as long as the recorded BERT operation ID matches + // the one specified by the request. + rpc StopBERT(StopBERTRequest) returns(StopBERTResponse) {} + + // Gets BERT results during the BERT operation or after it completes. The + // caller uses the BERT operation ID it previously used when starting the + // operation to query it. The switch is expected to keep the results for + // last N BERT operations for some amount of time, as specified by the + // product requirement. This RPC is expected to return error status in the + // following situations: + // - When no BERT operation, which matches the given BERT operation ID, is in + // progress or completed on any of the ports specified by the request. + // - When the BERT operation ID does not match the in progress or completed + // BERT operation on any of the ports specified by the request. + // The RPC returns an OK status of none of these situations is encountered. + // Note that a BERT operation is considered completed if switch has a + // record of it. + rpc GetBERTResult(GetBERTResultRequest) returns(GetBERTResultResponse) {} + + // TODO(aghaffar): Add BURNIN related RPCs. +} + +// Common sequence generating monic polynomials used for PRBS. +enum PrbsPolynomial { + PRBS_POLYNOMIAL_UNKNOWN = 0; // default invalid choice. + PRBS_POLYNOMIAL_PRBS7 = 1; + PRBS_POLYNOMIAL_PRBS9 = 2; + PRBS_POLYNOMIAL_PRBS15 = 3; + PRBS_POLYNOMIAL_PRBS20 = 4; + PRBS_POLYNOMIAL_PRBS23 = 5; + PRBS_POLYNOMIAL_PRBS31 = 6; +} + +// Status returned for each per-port BERT request. +enum BertStatus { + // default invalid choice. + BERT_STATUS_UNKNOWN = 0; + // BERT requests (Start, Stop, GetStatus) were processed successfully. + BERT_STATUS_OK = 1; + // The specified port was not found. + BERT_STATUS_NON_EXISTENT_PORT = 2; + // HW error was encountered while performing BERT operation. + BERT_STATUS_HARDWARE_ACCESS_ERROR = 3; + // PRBS generating polynomial is not supported by the target. + BERT_STATUS_UNSUPPORTED_PRBS_POLYNOMIAL = 4; + // There is already a BERT running on the specified port. Returned when + // `StartBert` RPC tries to add run BERT on an already in-use port. + BERT_STATUS_PORT_ALREADY_IN_BERT = 5; + // There is no BERT running on the specified port. Returned when `StopBert` + // or `GetBertResult` RPC was called for an idle port. + BERT_STATUS_PORT_NOT_RUNNING_BERT = 6; + // The specified test duration is too small. + BERT_STATUS_TEST_DURATION_TOO_SHORT = 7; + // The specified test duration is larger than maximum allowed. + BERT_STATUS_TEST_DURATION_TOO_LONG = 8; + // The given BERT operation ID is not known. Returned for `StopBert` and + // `GetBertResult` RPCs. + BERT_STATUS_BERT_OPERATION_ID_NOT_FOUND = 9; + // The given BERT operation ID is already in use. Returned when `StartBert` + // RPC uses an ID which is already memorized for a BERT operation. + BERT_STATUS_BERT_OPERATION_ID_ALREADY_IN_USE = 10; + // Failure to get the peer lock. + BERT_STATUS_PEER_LOCK_FAILURE = 11; + // Lost the peer lock after locking once. + BERT_STATUS_PEER_LOCK_LOST = 12; + // Misc internal errors that cannot be categorized by any of the previous + // error codes. + BERT_STATUS_INTERNAL_ERROR = 13; +} + +message StartBERTRequest { + // Per port BERT start requests. + message PerPortRequest { + // Path to the interface corresponding to the port. + gnoi.Path interface = 1; // required + // The selected PRBS generating polynomial for BERT. + PrbsPolynomial prbs_polynomial = 2; + // BERT duration in mins. Must be a positive number. + uint32 test_duration_in_mins = 3; // required + } + // Unique BERT operation ID specified by the client. Multiple BERTs run on + // different ports can have the same BERT operation ID. This ID will be used + // later to stop the operation and/or get its results. + string bert_operation_id = 1; + // All the per-port BERTs that are considered one BERT operation and have the + // same BERT operation ID. + repeated PerPortRequest per_port_requests = 2; +} + +message StartBERTResponse { + // Per-port BERT start responses. + message PerPortResponse { + // Path to the interface corresponding to the port. + gnoi.Path interface = 1; + // BERT start status for this port. + BertStatus status = 2; + } + // The same BERT operation ID given by the request. + string bert_operation_id = 1; + // Captures the results of starting BERT on a per-port basis. + repeated PerPortResponse per_port_responses = 2; +} + +message StopBERTRequest { + // Per-port BERT stop requests. + message PerPortRequest { + // Path to the interface corresponding to the port. + gnoi.Path interface = 1; + } + // The same BERT operation ID given when BERT operation was started. + string bert_operation_id = 1; + // All the per-port BERTs that need to be stopped. Must be part of the BERT + // operation specified by the `bert_operation_id` above. + repeated PerPortRequest per_port_requests = 2; +} + +message StopBERTResponse { + // Per-port BERT stop responses. + message PerPortResponse { + // Path to the interface corresponding to the port. + gnoi.Path interface = 1; + // BERT stop status for this port. + BertStatus status = 2; + } + // The same BERT operation ID given by the request. + string bert_operation_id = 1; + // Captures the results of stopping BERT on a per-port basis. + repeated PerPortResponse per_port_responses = 2; +} + +message GetBERTResultRequest { + // Per-port BERT get result requests. + message PerPortRequest { + // Path to the interface corresponding to the port. + gnoi.Path interface = 1; + } + // The same BERT operation ID given when BERT operation was started. + string bert_operation_id = 1; + // All the per-port BERTs result of which we want to query. Must be part of + // the BERT operation specified by the `bert_operation_id` above. + repeated PerPortRequest per_port_requests = 2; + // If set to true, the results for all the per-port BERTs will be returned. + // `bert_operation_id` and `per_port_requests` will be ignored will be + // ignored in that case. + bool result_from_all_ports = 3; +} + +message GetBERTResultResponse { + // Per-port BERT results/status. + message PerPortResponse { + // Path to the interface corresponding to the port. + gnoi.Path interface = 1; + // BERT result get status for this port. Only if the status is + // BERT_STATUS_OK the rest of the fields below are meaningful. + BertStatus status = 2; + // The ID of the BERT operation running on this port. Since the caller + // can query the BERT results for all the ports, ID can potentially be + // different for different ports. + string bert_operation_id = 3; + // The selected PRBS generating polynomial for BERT on this port. + PrbsPolynomial prbs_polynomial = 4; + // The last time BERT started on this port. + uint64 last_bert_start_timestamp = 5; + // The last time BERT results were read for this port. + uint64 last_bert_get_result_timestamp = 6; + // Indicate whether BERT peer lock has was established. If false, + // `bert_lock_lost`, `error_count_per_minute`, and `total_errors` will not + // be meaningful. + bool peer_lock_established = 7; + // Indicate whether BERT peer lock was lost after being established + // once. + bool peer_lock_lost = 8; + // Sequence of bit errors per min since lock was established. + repeated uint32 error_count_per_minute = 9; + // Total number of bit errors accumulated since lock was established. + uint64 total_errors = 10; + } + // Captures the BERT results on a per-port basis. + repeated PerPortResponse per_port_responses = 1; +} From 6dc955bf2f79921ae8122e91dbcdfec2f68b7644 Mon Sep 17 00:00:00 2001 From: Alireza Ghaffarkhah Date: Mon, 21 May 2018 21:42:06 -0700 Subject: [PATCH 017/238] Fix some typos --- diag/diag.proto | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/diag/diag.proto b/diag/diag.proto index 5d8f99fc..d359848a 100644 --- a/diag/diag.proto +++ b/diag/diag.proto @@ -22,8 +22,8 @@ package gnoi.diag; // The Diag service exports to main set of RPCs: // 1- BERT related RPCs: Used to perform Bit Error Rate Test (BERT) -// operation on a set of ports. -// 2- BURNING related RPCs: Used to perform a vendor-provide Burnin test on the +// operations on a set of ports. +// 2- BURNING related RPCs: Used to perform a vendor-provided Burnin test on the // switch to ensure the box is ready to start serving traffic. Burnin tests // are typically run by HwOps in the datacenter, as part of turnup or repair // workflow. @@ -32,7 +32,7 @@ service Diag { // identified by an ID, which is given by the caller. The caller can then // use this ID (as well as the list of the ports) to stop the BERT operation // and/or get the BERT results. This RPC is expected to return an error status - // in the the following situations: + // in the following situations: // - When BERT operation is not supported on any of the ports specified by // the request. // - When BERT is already in progress on any port specified by the request. @@ -130,7 +130,7 @@ message StartBERTRequest { // Path to the interface corresponding to the port. gnoi.Path interface = 1; // required // The selected PRBS generating polynomial for BERT. - PrbsPolynomial prbs_polynomial = 2; + PrbsPolynomial prbs_polynomial = 2; // required // BERT duration in mins. Must be a positive number. uint32 test_duration_in_mins = 3; // required } From 11736b90e79e7499aa077bd1442e1129d6763187 Mon Sep 17 00:00:00 2001 From: Alireza Ghaffarkhah Date: Tue, 22 May 2018 12:03:14 -0700 Subject: [PATCH 018/238] Addressed 1st round of comments --- diag/diag.proto | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/diag/diag.proto b/diag/diag.proto index d359848a..c5707044 100644 --- a/diag/diag.proto +++ b/diag/diag.proto @@ -25,8 +25,10 @@ package gnoi.diag; // operations on a set of ports. // 2- BURNING related RPCs: Used to perform a vendor-provided Burnin test on the // switch to ensure the box is ready to start serving traffic. Burnin tests -// are typically run by HwOps in the datacenter, as part of turnup or repair -// workflow. +// are typically run in the datacenter, as part of turnup or repair workflow. +// Note: The RPCs defined here are are stateless operations and them +// failing/passing should not leave any permanent artifact on the switch (unless +// there is something wrong HW-wise). service Diag { // Starts BERT operation on a set of ports. Each BERT operation is uniquely // identified by an ID, which is given by the caller. The caller can then From 039322cf8eaef57264c521ad31f0983f5d56eb0c Mon Sep 17 00:00:00 2001 From: Alireza Ghaffarkhah Date: Tue, 29 May 2018 11:15:36 -0700 Subject: [PATCH 019/238] Addressed Rob's comments --- diag/diag.proto | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/diag/diag.proto b/diag/diag.proto index c5707044..d99cab7e 100644 --- a/diag/diag.proto +++ b/diag/diag.proto @@ -23,19 +23,23 @@ package gnoi.diag; // The Diag service exports to main set of RPCs: // 1- BERT related RPCs: Used to perform Bit Error Rate Test (BERT) // operations on a set of ports. -// 2- BURNING related RPCs: Used to perform a vendor-provided Burnin test on the +// 2- BURNIN related RPCs: Used to perform a vendor-provided Burnin test on the // switch to ensure the box is ready to start serving traffic. Burnin tests -// are typically run in the datacenter, as part of turnup or repair workflow. +// are typically run in the field, as part of turnup or repair workflow. // Note: The RPCs defined here are are stateless operations and them // failing/passing should not leave any permanent artifact on the switch (unless // there is something wrong HW-wise). +// Note: By "port" we refer to a channelized frontpanel or backplane port on a +// chassis. In OpenConfig YANG models, there is a one-to-one relationship +// between a port as used here and an "interface". Therefore, the "gnoi.Path" +// fields below for ports correspond to "/interfaces/interface" in YANG models. service Diag { // Starts BERT operation on a set of ports. Each BERT operation is uniquely // identified by an ID, which is given by the caller. The caller can then // use this ID (as well as the list of the ports) to stop the BERT operation // and/or get the BERT results. This RPC is expected to return an error status // in the following situations: - // - When BERT operation is not supported on any of the ports specified by + // - When BERT operation is supported on none of the ports specified by // the request. // - When BERT is already in progress on any port specified by the request. // - In case of any low-level HW/SW internal errors. @@ -54,10 +58,10 @@ service Diag { // - When the BERT operation ID does not match the in progress or completed // BERT operation on any of the ports specified by the request. // The RPC returns an OK status of none of these situations is encountered. - // Note that a BERT operation is considered completed if switch has a - // record of it. Also note that it is OK to receive a stop request for a port - // which has completed BERT, as long as the recorded BERT operation ID matches - // the one specified by the request. + // Note that a BERT operation is considered completed if the switch has a + // record/history of it. Also note that it is OK to receive a stop request for + // a port which has completed BERT, as long as the recorded BERT operation ID + // matches the one specified by the request. rpc StopBERT(StopBERTRequest) returns(StopBERTResponse) {} // Gets BERT results during the BERT operation or after it completes. The @@ -113,10 +117,10 @@ enum BertStatus { BERT_STATUS_TEST_DURATION_TOO_LONG = 8; // The given BERT operation ID is not known. Returned for `StopBert` and // `GetBertResult` RPCs. - BERT_STATUS_BERT_OPERATION_ID_NOT_FOUND = 9; + BERT_STATUS_OPERATION_ID_NOT_FOUND = 9; // The given BERT operation ID is already in use. Returned when `StartBert` // RPC uses an ID which is already memorized for a BERT operation. - BERT_STATUS_BERT_OPERATION_ID_ALREADY_IN_USE = 10; + BERT_STATUS_OPERATION_ID_IN_USE = 10; // Failure to get the peer lock. BERT_STATUS_PEER_LOCK_FAILURE = 11; // Lost the peer lock after locking once. @@ -133,8 +137,8 @@ message StartBERTRequest { gnoi.Path interface = 1; // required // The selected PRBS generating polynomial for BERT. PrbsPolynomial prbs_polynomial = 2; // required - // BERT duration in mins. Must be a positive number. - uint32 test_duration_in_mins = 3; // required + // BERT duration in seconds. Must be a positive number. + uint32 test_duration_in_secs = 3; // required } // Unique BERT operation ID specified by the client. Multiple BERTs run on // different ports can have the same BERT operation ID. This ID will be used @@ -209,7 +213,7 @@ message GetBERTResultResponse { // Path to the interface corresponding to the port. gnoi.Path interface = 1; // BERT result get status for this port. Only if the status is - // BERT_STATUS_OK the rest of the fields below are meaningful. + // BERT_STATUS_OK are the rest of the fields meaningful. BertStatus status = 2; // The ID of the BERT operation running on this port. Since the caller // can query the BERT results for all the ports, ID can potentially be From 4422e2a47571c7a20ed0d4ec13637c6f11dbdb82 Mon Sep 17 00:00:00 2001 From: Alireza Ghaffarkhah Date: Wed, 30 May 2018 14:36:25 -0700 Subject: [PATCH 020/238] Addressed Anees' comments --- diag/diag.proto | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/diag/diag.proto b/diag/diag.proto index d99cab7e..a0dc8e1a 100644 --- a/diag/diag.proto +++ b/diag/diag.proto @@ -15,7 +15,7 @@ // // This file defines the gNOI APIs used to perform diagnostic operations on a -// switching box. +// network device. syntax = "proto3"; package gnoi.diag; @@ -24,11 +24,12 @@ package gnoi.diag; // 1- BERT related RPCs: Used to perform Bit Error Rate Test (BERT) // operations on a set of ports. // 2- BURNIN related RPCs: Used to perform a vendor-provided Burnin test on the -// switch to ensure the box is ready to start serving traffic. Burnin tests -// are typically run in the field, as part of turnup or repair workflow. +// network device to ensure the device is ready to start serving traffic. +// Burnin tests are typically run in the field, as part of turnup or repair +// workflow. // Note: The RPCs defined here are are stateless operations and them -// failing/passing should not leave any permanent artifact on the switch (unless -// there is something wrong HW-wise). +// failing/passing should not leave any permanent artifact on the network device +// (unless there is something wrong HW-wise). // Note: By "port" we refer to a channelized frontpanel or backplane port on a // chassis. In OpenConfig YANG models, there is a one-to-one relationship // between a port as used here and an "interface". Therefore, the "gnoi.Path" @@ -58,7 +59,7 @@ service Diag { // - When the BERT operation ID does not match the in progress or completed // BERT operation on any of the ports specified by the request. // The RPC returns an OK status of none of these situations is encountered. - // Note that a BERT operation is considered completed if the switch has a + // Note that a BERT operation is considered completed if the device has a // record/history of it. Also note that it is OK to receive a stop request for // a port which has completed BERT, as long as the recorded BERT operation ID // matches the one specified by the request. @@ -66,7 +67,7 @@ service Diag { // Gets BERT results during the BERT operation or after it completes. The // caller uses the BERT operation ID it previously used when starting the - // operation to query it. The switch is expected to keep the results for + // operation to query it. The device is expected to keep the results for // last N BERT operations for some amount of time, as specified by the // product requirement. This RPC is expected to return error status in the // following situations: @@ -75,7 +76,7 @@ service Diag { // - When the BERT operation ID does not match the in progress or completed // BERT operation on any of the ports specified by the request. // The RPC returns an OK status of none of these situations is encountered. - // Note that a BERT operation is considered completed if switch has a + // Note that a BERT operation is considered completed if device has a // record of it. rpc GetBERTResult(GetBERTResultRequest) returns(GetBERTResultResponse) {} @@ -143,6 +144,7 @@ message StartBERTRequest { // Unique BERT operation ID specified by the client. Multiple BERTs run on // different ports can have the same BERT operation ID. This ID will be used // later to stop the operation and/or get its results. + // TODO: Investigate whether we can use numerical IDs instead. string bert_operation_id = 1; // All the per-port BERTs that are considered one BERT operation and have the // same BERT operation ID. @@ -190,6 +192,9 @@ message StopBERTResponse { repeated PerPortResponse per_port_responses = 2; } +// TODO: If there is no use case to get the BERT results for all the ports +// independent of the bert_operation_id, we can simplify this message and +// return the results for all the ports associated with an operation ID. message GetBERTResultRequest { // Per-port BERT get result requests. message PerPortRequest { From 5424f40b5bc98ddc003ed637e37ba68c575f215c Mon Sep 17 00:00:00 2001 From: Alireza Ghaffarkhah Date: Mon, 25 Jun 2018 09:57:05 -0700 Subject: [PATCH 021/238] Fixed an inlcude issue for diag.proto --- diag/diag.proto | 2 ++ 1 file changed, 2 insertions(+) diff --git a/diag/diag.proto b/diag/diag.proto index a0dc8e1a..c70e9f53 100644 --- a/diag/diag.proto +++ b/diag/diag.proto @@ -20,6 +20,8 @@ syntax = "proto3"; package gnoi.diag; +import "github.com/openconfig/gnoi/types.proto"; + // The Diag service exports to main set of RPCs: // 1- BERT related RPCs: Used to perform Bit Error Rate Test (BERT) // operations on a set of ports. From 7d27575e6511601811f2b1195e3a4a31af9f25a2 Mon Sep 17 00:00:00 2001 From: Eric Breverman Date: Fri, 22 Jun 2018 09:45:35 -0700 Subject: [PATCH 022/238] Support remote download of files when doing a File.Get --- BUILD.bazel | 10 ++++++++-- common.proto | 42 ++++++++++++++++++++++++++++++++++++++++++ file/file.proto | 23 +++++++++++++++++++++++ system/system.proto | 24 ++---------------------- 4 files changed, 75 insertions(+), 24 deletions(-) create mode 100644 common.proto diff --git a/BUILD.bazel b/BUILD.bazel index 4c24df01..9aa5ca40 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -2,13 +2,19 @@ load("@io_bazel_rules_go//proto:go_proto_library.bzl", "go_proto_library") proto_library( name = "gnoi_proto", - srcs = ["types.proto"], + srcs = [ + "types.proto", + "common.proto" + ], visibility = ["//visibility:public"], ) go_proto_library( name = "go_default_library", - srcs = ["types.proto"], + srcs = [ + "types.proto", + "common.proto" + ], visibility = ["//visibility:public"], rules_go_repo_only_for_internal_use = "@", has_services = 1, diff --git a/common.proto b/common.proto new file mode 100644 index 00000000..af867d61 --- /dev/null +++ b/common.proto @@ -0,0 +1,42 @@ +// +// Copyright 2018 Google Inc. All Rights Reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +syntax = "proto3"; + +package gnoi; + +import "third_party/openconfig/gnoi/types.proto"; + +// RemoteDownload defines the details for a device to initiate a file transfer +// from or to a remote location. +message RemoteDownload { + // The path information containing where to download the data from or to. + // For HTTP(S), this will be the URL (i.e. foo.com/file.tbz2). + // For SFTP and SCP, this will be the address:/path/to/file + // (i.e. host.foo.com:/bar/baz). + string path = 1; + + enum Protocol { + UNKNOWN = 0; + SFTP = 1; + HTTP = 2; + HTTPS = 3; + SCP = 4; + } + Protocol protocol = 2; + + gnoi.Credentials credentials = 3; +} diff --git a/file/file.proto b/file/file.proto index a1657b75..c871fd8d 100644 --- a/file/file.proto +++ b/file/file.proto @@ -18,6 +18,7 @@ syntax = "proto3"; package gnoi.file; +import "third_party/openconfig/gnoi/common.proto"; import "github.com/openconfig/gnoi/types.proto"; service File { @@ -28,6 +29,13 @@ service File { // if the file does not exist or there was an error reading the file. rpc Get(GetRequest) returns (stream GetResponse) {} + // GetRemote transfers the contents of a file from the target to a specified + // remote location. The response contains the hash of the data transferred. + // An error is returned if the file does not exist, the file transfer fails, + // or if there was an error reading the file. This is a blocking call until + // the file transfer is complete. + rpc GetRemote(GetRemoteRequest) returns (GetRemoteResponse) {} + // Put streams data into a file on the target. The file is sent in // sequential messages, each message containing up to 64KB of data. A final // message must be sent that includes the hash of the data sent. An @@ -96,6 +104,21 @@ message GetResponse { } } +// A GetRemoteRequest specifies the remote_file to transfer and the details on +// where to transfer the data. The remote_file must be an absolute path to a +// file. +message GetRemoteRequest { + string remote_file = 1; + + // Details to download the remote_file being requested to a remote location. + gnoi.RemoteDownload remote_download = 2; +} + +// A GetRemoteResponse contains the hash of the data transferred. +message GetRemoteResponse { + gnoi.HashType hash = 1; // hash of the file. +} + // StatRequest will list files at the provided path. message StatRequest { string path = 1; diff --git a/system/system.proto b/system/system.proto index a18663e2..dc40044d 100644 --- a/system/system.proto +++ b/system/system.proto @@ -24,6 +24,7 @@ syntax = "proto3"; package gnoi.system; +import "third_party/openconfig/gnoi/common.proto"; import "github.com/openconfig/gnoi/types.proto"; // The gNOI service is a collection of operational RPC's that allow for the @@ -275,27 +276,6 @@ message TracerouteResponse { repeated int32 as_path = 12; // AS path. } -// RemoteDownload defines the details for a device to initiate a download of a -// package from a remote location. -message RemoteDownload { - // The path information containing where to download the package from. - // For HTTP(S), this will be the URL (i.e. foo.com/file.tbz2). - // For SFTP and SCP, this will be the address:/path/to/file - // (i.e. host.foo.com:/bar/baz). - string path = 1; - - enum DownloadType { - UNKNOWN = 0; - SFTP = 1; - HTTP = 2; - HTTPS = 3; - SCP = 4; - } - DownloadType download_type = 2; - - gnoi.Credentials credentials = 3; -} - // Package defines a single package file to be placed on the target. message Package { // Destination path and filename of the package. @@ -305,7 +285,7 @@ message Package { // For system packages this will take effect after reboot. bool activate = 5; // Details for the device to download the package from a remote location. - RemoteDownload remote_download = 6; + gnoi.RemoteDownload remote_download = 6; } // SetPackageRequest will place the package onto the target and optionally mark From e9759f2fa09968c4b9d1491877026a5b82779130 Mon Sep 17 00:00:00 2001 From: Eric Breverman Date: Fri, 29 Jun 2018 11:14:28 -0700 Subject: [PATCH 023/238] fix imports and doc string --- common.proto | 2 +- file/file.proto | 4 ++-- system/system.proto | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/common.proto b/common.proto index af867d61..48c7bb04 100644 --- a/common.proto +++ b/common.proto @@ -18,7 +18,7 @@ syntax = "proto3"; package gnoi; -import "third_party/openconfig/gnoi/types.proto"; +import "github.com/openconfig/gnoi/types.proto"; // RemoteDownload defines the details for a device to initiate a file transfer // from or to a remote location. diff --git a/file/file.proto b/file/file.proto index c871fd8d..1c1eccc0 100644 --- a/file/file.proto +++ b/file/file.proto @@ -18,11 +18,11 @@ syntax = "proto3"; package gnoi.file; -import "third_party/openconfig/gnoi/common.proto"; +import "github.com/openconfig/gnoi/common.proto"; import "github.com/openconfig/gnoi/types.proto"; service File { - // Get read and streams the contents of a file from the target. + // Get reads and streams the contents of a file from the target. // The file is streamed by sequential messages, each containing up to // 64KB of data. A final message is sent prior to closing the stream // that contains the hash of the data sent. An error is returned diff --git a/system/system.proto b/system/system.proto index dc40044d..93303562 100644 --- a/system/system.proto +++ b/system/system.proto @@ -24,7 +24,7 @@ syntax = "proto3"; package gnoi.system; -import "third_party/openconfig/gnoi/common.proto"; +import "github.com/openconfig/gnoi/common.proto"; import "github.com/openconfig/gnoi/types.proto"; // The gNOI service is a collection of operational RPC's that allow for the From ab6d48f2adae9eab8815828878a995f4fac9ad1d Mon Sep 17 00:00:00 2001 From: Eric Breverman Date: Thu, 12 Jul 2018 16:47:52 -0700 Subject: [PATCH 024/238] s/remote_file/local_path and change desc for activate --- file/file.proto | 8 ++++---- system/system.proto | 4 +++- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/file/file.proto b/file/file.proto index 1c1eccc0..ce671203 100644 --- a/file/file.proto +++ b/file/file.proto @@ -104,11 +104,11 @@ message GetResponse { } } -// A GetRemoteRequest specifies the remote_file to transfer and the details on -// where to transfer the data. The remote_file must be an absolute path to a -// file. +// A GetRemoteRequest specifies the local path to transfer to and the +// details on where to transfer the data from. The local_path must be an +// absolute path to the file. message GetRemoteRequest { - string remote_file = 1; + string local_path = 1; // Details to download the remote_file being requested to a remote location. gnoi.RemoteDownload remote_download = 2; diff --git a/system/system.proto b/system/system.proto index 93303562..774431f0 100644 --- a/system/system.proto +++ b/system/system.proto @@ -282,7 +282,9 @@ message Package { string filename = 1; // Version of the package. (vendor internal name) string version = 4; - // For system packages this will take effect after reboot. + // Indicates that the package should be made active after receipt on + // the device. For system image packages, the new image is expected to + // be active after a reboot. bool activate = 5; // Details for the device to download the package from a remote location. gnoi.RemoteDownload remote_download = 6; From ce7f314f2ae9005f72723bf9616a4d500ad87737 Mon Sep 17 00:00:00 2001 From: Eric Breverman Date: Thu, 19 Jul 2018 15:11:19 -0700 Subject: [PATCH 025/238] change name to TransferToRemote --- file/file.proto | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/file/file.proto b/file/file.proto index ce671203..853e3af5 100644 --- a/file/file.proto +++ b/file/file.proto @@ -29,12 +29,12 @@ service File { // if the file does not exist or there was an error reading the file. rpc Get(GetRequest) returns (stream GetResponse) {} - // GetRemote transfers the contents of a file from the target to a specified - // remote location. The response contains the hash of the data transferred. - // An error is returned if the file does not exist, the file transfer fails, - // or if there was an error reading the file. This is a blocking call until - // the file transfer is complete. - rpc GetRemote(GetRemoteRequest) returns (GetRemoteResponse) {} + // TransferToRemote transfers the contents of a file from the target to a + // specified remote location. The response contains the hash of the data + // transferred. An error is returned if the file does not exist, the file + // transfer fails, or if there was an error reading the file. This is a + // blocking call until the file transfer is complete. + rpc TransferToRemote(TransferToRemoteRequest) returns (TransferToRemoteResponse) {} // Put streams data into a file on the target. The file is sent in // sequential messages, each message containing up to 64KB of data. A final @@ -104,18 +104,18 @@ message GetResponse { } } -// A GetRemoteRequest specifies the local path to transfer to and the +// A TransferToRemoteRequest specifies the local path to transfer to and the // details on where to transfer the data from. The local_path must be an // absolute path to the file. -message GetRemoteRequest { +message TransferToRemoteRequest { string local_path = 1; // Details to download the remote_file being requested to a remote location. gnoi.RemoteDownload remote_download = 2; } -// A GetRemoteResponse contains the hash of the data transferred. -message GetRemoteResponse { +// A TransferToRemoteResponse contains the hash of the data transferred. +message TransferToRemoteResponse { gnoi.HashType hash = 1; // hash of the file. } From 7a9fd12d2d817e31d60a49bc1c7bb0f91a64c788 Mon Sep 17 00:00:00 2001 From: Sam Ribeiro Date: Mon, 1 Oct 2018 10:50:45 +0200 Subject: [PATCH 026/238] Add simplified security model --- README.md | 5 +++++ cert/cert.proto | 8 +++++++- simplified_security_model.md | 0 3 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 simplified_security_model.md diff --git a/README.md b/README.md index c2cd6dda..c45e3ab8 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,11 @@ # gNOI - gRPC Network Operations Interface gNOI defines a set of gRPC-based microservices for executing operational commands on network devices. +## Simplified security model + +See [simplified security model](simplified_security_model.md) for a security +model that can be implemented using gNOI. + # Rebuild *.pb.go files ``` cd ${GOPATH}/src diff --git a/cert/cert.proto b/cert/cert.proto index 56307251..512752d2 100644 --- a/cert/cert.proto +++ b/cert/cert.proto @@ -205,7 +205,7 @@ message GenerateCSRRequest { // Parameters to be used when generating a Certificate Signing Request. message CSRParams { - // The type of certificate which will be will be associated for this CSR. + // The type of certificate which will be associated for this CSR. CertificateType type = 1; // Minimum size of the key to be used by the target when generating a @@ -269,6 +269,12 @@ message LoadCertificateRequest { // Certificate Id of the above certificate. This is to be provided only when // there is an externally generated key pair. string certificate_id = 3; + + // Optional bundle of CA certificates. When not empty, the provided + // certificates should squash the existing bundle. This field provides a + // simplified means to provision a CA bundle that can be used to validate + // other peer's certificates. + repeated Certificate ca_certificates = 4; } // Response from target after Loading a Certificate. diff --git a/simplified_security_model.md b/simplified_security_model.md new file mode 100644 index 00000000..e69de29b From e064a5a4952d664bb4e1e3843242b7f25bbbe86e Mon Sep 17 00:00:00 2001 From: Sam Ribeiro Date: Mon, 1 Oct 2018 11:11:04 +0200 Subject: [PATCH 027/238] Update generated go --- cert/cert.pb.go | 1090 ++++++++++++++++++++++++++++++++++------------- 1 file changed, 802 insertions(+), 288 deletions(-) diff --git a/cert/cert.pb.go b/cert/cert.pb.go index 45fc5a3c..8686ccc9 100644 --- a/cert/cert.pb.go +++ b/cert/cert.pb.go @@ -1,45 +1,14 @@ // Code generated by protoc-gen-go. DO NOT EDIT. -// source: cert/cert.proto - -/* -Package gnoi_certificate is a generated protocol buffer package. - -It is generated from these files: - cert/cert.proto - -It has these top-level messages: - RotateCertificateRequest - RotateCertificateResponse - InstallCertificateRequest - InstallCertificateResponse - GenerateCSRRequest - CSRParams - GenerateCSRResponse - LoadCertificateRequest - LoadCertificateResponse - FinalizeRequest - GetCertificatesRequest - GetCertificatesResponse - CertificateInfo - RevokeCertificatesRequest - RevokeCertificatesResponse - CertificateRevocationError - CanGenerateCSRRequest - CanGenerateCSRResponse - Certificate - CSR - KeyPair - Endpoint -*/ -package gnoi_certificate +// source: github.com/openconfig/gnoi/cert/cert.proto -import proto "github.com/golang/protobuf/proto" -import fmt "fmt" -import math "math" +package gnoi_certificate import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" context "golang.org/x/net/context" grpc "google.golang.org/grpc" + math "math" ) // Reference imports to suppress errors if they are not otherwise used. @@ -67,6 +36,7 @@ var CertificateType_name = map[int32]string{ 0: "CT_UNKNOWN", 1: "CT_X509", } + var CertificateType_value = map[string]int32{ "CT_UNKNOWN": 0, "CT_X509": 1, @@ -75,7 +45,10 @@ var CertificateType_value = map[string]int32{ func (x CertificateType) String() string { return proto.EnumName(CertificateType_name, int32(x)) } -func (CertificateType) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } + +func (CertificateType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_35089d6bfca6de66, []int{0} +} // Algorithm to be used for generation the key pair. type KeyType int32 @@ -91,6 +64,7 @@ var KeyType_name = map[int32]string{ 0: "KT_UNKNOWN", 1: "KT_RSA", } + var KeyType_value = map[string]int32{ "KT_UNKNOWN": 0, "KT_RSA": 1, @@ -99,7 +73,10 @@ var KeyType_value = map[string]int32{ func (x KeyType) String() string { return proto.EnumName(KeyType_name, int32(x)) } -func (KeyType) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } + +func (KeyType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_35089d6bfca6de66, []int{1} +} // Type of endpoint that can use a cert. This list is to be extended based on // conversation with vendors. @@ -116,6 +93,7 @@ var Endpoint_Type_name = map[int32]string{ 1: "EP_IPSEC_TUNNEL", 2: "EP_DAEMON", } + var Endpoint_Type_value = map[string]int32{ "EP_UNSPECIFIED": 0, "EP_IPSEC_TUNNEL": 1, @@ -125,7 +103,10 @@ var Endpoint_Type_value = map[string]int32{ func (x Endpoint_Type) String() string { return proto.EnumName(Endpoint_Type_name, int32(x)) } -func (Endpoint_Type) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{21, 0} } + +func (Endpoint_Type) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_35089d6bfca6de66, []int{21, 0} +} // Request messages to rotate existing certificates on the target. type RotateCertificateRequest struct { @@ -135,30 +116,57 @@ type RotateCertificateRequest struct { // *RotateCertificateRequest_GenerateCsr // *RotateCertificateRequest_LoadCertificate // *RotateCertificateRequest_FinalizeRotation - RotateRequest isRotateCertificateRequest_RotateRequest `protobuf_oneof:"rotate_request"` + RotateRequest isRotateCertificateRequest_RotateRequest `protobuf_oneof:"rotate_request"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *RotateCertificateRequest) Reset() { *m = RotateCertificateRequest{} } -func (m *RotateCertificateRequest) String() string { return proto.CompactTextString(m) } -func (*RotateCertificateRequest) ProtoMessage() {} -func (*RotateCertificateRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } +func (m *RotateCertificateRequest) Reset() { *m = RotateCertificateRequest{} } +func (m *RotateCertificateRequest) String() string { return proto.CompactTextString(m) } +func (*RotateCertificateRequest) ProtoMessage() {} +func (*RotateCertificateRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_35089d6bfca6de66, []int{0} +} + +func (m *RotateCertificateRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RotateCertificateRequest.Unmarshal(m, b) +} +func (m *RotateCertificateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RotateCertificateRequest.Marshal(b, m, deterministic) +} +func (m *RotateCertificateRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RotateCertificateRequest.Merge(m, src) +} +func (m *RotateCertificateRequest) XXX_Size() int { + return xxx_messageInfo_RotateCertificateRequest.Size(m) +} +func (m *RotateCertificateRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RotateCertificateRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RotateCertificateRequest proto.InternalMessageInfo type isRotateCertificateRequest_RotateRequest interface { isRotateCertificateRequest_RotateRequest() } type RotateCertificateRequest_GenerateCsr struct { - GenerateCsr *GenerateCSRRequest `protobuf:"bytes,1,opt,name=generate_csr,json=generateCsr,oneof"` + GenerateCsr *GenerateCSRRequest `protobuf:"bytes,1,opt,name=generate_csr,json=generateCsr,proto3,oneof"` } + type RotateCertificateRequest_LoadCertificate struct { - LoadCertificate *LoadCertificateRequest `protobuf:"bytes,2,opt,name=load_certificate,json=loadCertificate,oneof"` + LoadCertificate *LoadCertificateRequest `protobuf:"bytes,2,opt,name=load_certificate,json=loadCertificate,proto3,oneof"` } + type RotateCertificateRequest_FinalizeRotation struct { - FinalizeRotation *FinalizeRequest `protobuf:"bytes,3,opt,name=finalize_rotation,json=finalizeRotation,oneof"` + FinalizeRotation *FinalizeRequest `protobuf:"bytes,3,opt,name=finalize_rotation,json=finalizeRotation,proto3,oneof"` } -func (*RotateCertificateRequest_GenerateCsr) isRotateCertificateRequest_RotateRequest() {} -func (*RotateCertificateRequest_LoadCertificate) isRotateCertificateRequest_RotateRequest() {} +func (*RotateCertificateRequest_GenerateCsr) isRotateCertificateRequest_RotateRequest() {} + +func (*RotateCertificateRequest_LoadCertificate) isRotateCertificateRequest_RotateRequest() {} + func (*RotateCertificateRequest_FinalizeRotation) isRotateCertificateRequest_RotateRequest() {} func (m *RotateCertificateRequest) GetRotateRequest() isRotateCertificateRequest_RotateRequest { @@ -262,17 +270,17 @@ func _RotateCertificateRequest_OneofSizer(msg proto.Message) (n int) { switch x := m.RotateRequest.(type) { case *RotateCertificateRequest_GenerateCsr: s := proto.Size(x.GenerateCsr) - n += proto.SizeVarint(1<<3 | proto.WireBytes) + n += 1 // tag and wire n += proto.SizeVarint(uint64(s)) n += s case *RotateCertificateRequest_LoadCertificate: s := proto.Size(x.LoadCertificate) - n += proto.SizeVarint(2<<3 | proto.WireBytes) + n += 1 // tag and wire n += proto.SizeVarint(uint64(s)) n += s case *RotateCertificateRequest_FinalizeRotation: s := proto.Size(x.FinalizeRotation) - n += proto.SizeVarint(3<<3 | proto.WireBytes) + n += 1 // tag and wire n += proto.SizeVarint(uint64(s)) n += s case nil: @@ -289,26 +297,51 @@ type RotateCertificateResponse struct { // Types that are valid to be assigned to RotateResponse: // *RotateCertificateResponse_GeneratedCsr // *RotateCertificateResponse_LoadCertificate - RotateResponse isRotateCertificateResponse_RotateResponse `protobuf_oneof:"rotate_response"` + RotateResponse isRotateCertificateResponse_RotateResponse `protobuf_oneof:"rotate_response"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RotateCertificateResponse) Reset() { *m = RotateCertificateResponse{} } +func (m *RotateCertificateResponse) String() string { return proto.CompactTextString(m) } +func (*RotateCertificateResponse) ProtoMessage() {} +func (*RotateCertificateResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_35089d6bfca6de66, []int{1} +} + +func (m *RotateCertificateResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RotateCertificateResponse.Unmarshal(m, b) +} +func (m *RotateCertificateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RotateCertificateResponse.Marshal(b, m, deterministic) +} +func (m *RotateCertificateResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RotateCertificateResponse.Merge(m, src) +} +func (m *RotateCertificateResponse) XXX_Size() int { + return xxx_messageInfo_RotateCertificateResponse.Size(m) +} +func (m *RotateCertificateResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RotateCertificateResponse.DiscardUnknown(m) } -func (m *RotateCertificateResponse) Reset() { *m = RotateCertificateResponse{} } -func (m *RotateCertificateResponse) String() string { return proto.CompactTextString(m) } -func (*RotateCertificateResponse) ProtoMessage() {} -func (*RotateCertificateResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } +var xxx_messageInfo_RotateCertificateResponse proto.InternalMessageInfo type isRotateCertificateResponse_RotateResponse interface { isRotateCertificateResponse_RotateResponse() } type RotateCertificateResponse_GeneratedCsr struct { - GeneratedCsr *GenerateCSRResponse `protobuf:"bytes,1,opt,name=generated_csr,json=generatedCsr,oneof"` + GeneratedCsr *GenerateCSRResponse `protobuf:"bytes,1,opt,name=generated_csr,json=generatedCsr,proto3,oneof"` } + type RotateCertificateResponse_LoadCertificate struct { - LoadCertificate *LoadCertificateResponse `protobuf:"bytes,2,opt,name=load_certificate,json=loadCertificate,oneof"` + LoadCertificate *LoadCertificateResponse `protobuf:"bytes,2,opt,name=load_certificate,json=loadCertificate,proto3,oneof"` } -func (*RotateCertificateResponse_GeneratedCsr) isRotateCertificateResponse_RotateResponse() {} +func (*RotateCertificateResponse_GeneratedCsr) isRotateCertificateResponse_RotateResponse() {} + func (*RotateCertificateResponse_LoadCertificate) isRotateCertificateResponse_RotateResponse() {} func (m *RotateCertificateResponse) GetRotateResponse() isRotateCertificateResponse_RotateResponse { @@ -391,12 +424,12 @@ func _RotateCertificateResponse_OneofSizer(msg proto.Message) (n int) { switch x := m.RotateResponse.(type) { case *RotateCertificateResponse_GeneratedCsr: s := proto.Size(x.GeneratedCsr) - n += proto.SizeVarint(1<<3 | proto.WireBytes) + n += 1 // tag and wire n += proto.SizeVarint(uint64(s)) n += s case *RotateCertificateResponse_LoadCertificate: s := proto.Size(x.LoadCertificate) - n += proto.SizeVarint(2<<3 | proto.WireBytes) + n += 1 // tag and wire n += proto.SizeVarint(uint64(s)) n += s case nil: @@ -413,26 +446,51 @@ type InstallCertificateRequest struct { // Types that are valid to be assigned to InstallRequest: // *InstallCertificateRequest_GenerateCsr // *InstallCertificateRequest_LoadCertificate - InstallRequest isInstallCertificateRequest_InstallRequest `protobuf_oneof:"install_request"` + InstallRequest isInstallCertificateRequest_InstallRequest `protobuf_oneof:"install_request"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InstallCertificateRequest) Reset() { *m = InstallCertificateRequest{} } +func (m *InstallCertificateRequest) String() string { return proto.CompactTextString(m) } +func (*InstallCertificateRequest) ProtoMessage() {} +func (*InstallCertificateRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_35089d6bfca6de66, []int{2} +} + +func (m *InstallCertificateRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_InstallCertificateRequest.Unmarshal(m, b) +} +func (m *InstallCertificateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_InstallCertificateRequest.Marshal(b, m, deterministic) +} +func (m *InstallCertificateRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_InstallCertificateRequest.Merge(m, src) +} +func (m *InstallCertificateRequest) XXX_Size() int { + return xxx_messageInfo_InstallCertificateRequest.Size(m) +} +func (m *InstallCertificateRequest) XXX_DiscardUnknown() { + xxx_messageInfo_InstallCertificateRequest.DiscardUnknown(m) } -func (m *InstallCertificateRequest) Reset() { *m = InstallCertificateRequest{} } -func (m *InstallCertificateRequest) String() string { return proto.CompactTextString(m) } -func (*InstallCertificateRequest) ProtoMessage() {} -func (*InstallCertificateRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} } +var xxx_messageInfo_InstallCertificateRequest proto.InternalMessageInfo type isInstallCertificateRequest_InstallRequest interface { isInstallCertificateRequest_InstallRequest() } type InstallCertificateRequest_GenerateCsr struct { - GenerateCsr *GenerateCSRRequest `protobuf:"bytes,1,opt,name=generate_csr,json=generateCsr,oneof"` + GenerateCsr *GenerateCSRRequest `protobuf:"bytes,1,opt,name=generate_csr,json=generateCsr,proto3,oneof"` } + type InstallCertificateRequest_LoadCertificate struct { - LoadCertificate *LoadCertificateRequest `protobuf:"bytes,2,opt,name=load_certificate,json=loadCertificate,oneof"` + LoadCertificate *LoadCertificateRequest `protobuf:"bytes,2,opt,name=load_certificate,json=loadCertificate,proto3,oneof"` } -func (*InstallCertificateRequest_GenerateCsr) isInstallCertificateRequest_InstallRequest() {} +func (*InstallCertificateRequest_GenerateCsr) isInstallCertificateRequest_InstallRequest() {} + func (*InstallCertificateRequest_LoadCertificate) isInstallCertificateRequest_InstallRequest() {} func (m *InstallCertificateRequest) GetInstallRequest() isInstallCertificateRequest_InstallRequest { @@ -515,12 +573,12 @@ func _InstallCertificateRequest_OneofSizer(msg proto.Message) (n int) { switch x := m.InstallRequest.(type) { case *InstallCertificateRequest_GenerateCsr: s := proto.Size(x.GenerateCsr) - n += proto.SizeVarint(1<<3 | proto.WireBytes) + n += 1 // tag and wire n += proto.SizeVarint(uint64(s)) n += s case *InstallCertificateRequest_LoadCertificate: s := proto.Size(x.LoadCertificate) - n += proto.SizeVarint(2<<3 | proto.WireBytes) + n += 1 // tag and wire n += proto.SizeVarint(uint64(s)) n += s case nil: @@ -537,26 +595,51 @@ type InstallCertificateResponse struct { // Types that are valid to be assigned to InstallResponse: // *InstallCertificateResponse_GeneratedCsr // *InstallCertificateResponse_LoadCertificate - InstallResponse isInstallCertificateResponse_InstallResponse `protobuf_oneof:"install_response"` + InstallResponse isInstallCertificateResponse_InstallResponse `protobuf_oneof:"install_response"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *InstallCertificateResponse) Reset() { *m = InstallCertificateResponse{} } -func (m *InstallCertificateResponse) String() string { return proto.CompactTextString(m) } -func (*InstallCertificateResponse) ProtoMessage() {} -func (*InstallCertificateResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} } +func (m *InstallCertificateResponse) Reset() { *m = InstallCertificateResponse{} } +func (m *InstallCertificateResponse) String() string { return proto.CompactTextString(m) } +func (*InstallCertificateResponse) ProtoMessage() {} +func (*InstallCertificateResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_35089d6bfca6de66, []int{3} +} + +func (m *InstallCertificateResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_InstallCertificateResponse.Unmarshal(m, b) +} +func (m *InstallCertificateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_InstallCertificateResponse.Marshal(b, m, deterministic) +} +func (m *InstallCertificateResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_InstallCertificateResponse.Merge(m, src) +} +func (m *InstallCertificateResponse) XXX_Size() int { + return xxx_messageInfo_InstallCertificateResponse.Size(m) +} +func (m *InstallCertificateResponse) XXX_DiscardUnknown() { + xxx_messageInfo_InstallCertificateResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_InstallCertificateResponse proto.InternalMessageInfo type isInstallCertificateResponse_InstallResponse interface { isInstallCertificateResponse_InstallResponse() } type InstallCertificateResponse_GeneratedCsr struct { - GeneratedCsr *GenerateCSRResponse `protobuf:"bytes,1,opt,name=generated_csr,json=generatedCsr,oneof"` + GeneratedCsr *GenerateCSRResponse `protobuf:"bytes,1,opt,name=generated_csr,json=generatedCsr,proto3,oneof"` } + type InstallCertificateResponse_LoadCertificate struct { - LoadCertificate *LoadCertificateResponse `protobuf:"bytes,2,opt,name=load_certificate,json=loadCertificate,oneof"` + LoadCertificate *LoadCertificateResponse `protobuf:"bytes,2,opt,name=load_certificate,json=loadCertificate,proto3,oneof"` } -func (*InstallCertificateResponse_GeneratedCsr) isInstallCertificateResponse_InstallResponse() {} +func (*InstallCertificateResponse_GeneratedCsr) isInstallCertificateResponse_InstallResponse() {} + func (*InstallCertificateResponse_LoadCertificate) isInstallCertificateResponse_InstallResponse() {} func (m *InstallCertificateResponse) GetInstallResponse() isInstallCertificateResponse_InstallResponse { @@ -639,12 +722,12 @@ func _InstallCertificateResponse_OneofSizer(msg proto.Message) (n int) { switch x := m.InstallResponse.(type) { case *InstallCertificateResponse_GeneratedCsr: s := proto.Size(x.GeneratedCsr) - n += proto.SizeVarint(1<<3 | proto.WireBytes) + n += 1 // tag and wire n += proto.SizeVarint(uint64(s)) n += s case *InstallCertificateResponse_LoadCertificate: s := proto.Size(x.LoadCertificate) - n += proto.SizeVarint(2<<3 | proto.WireBytes) + n += 1 // tag and wire n += proto.SizeVarint(uint64(s)) n += s case nil: @@ -671,17 +754,40 @@ func _InstallCertificateResponse_OneofSizer(msg proto.Message) (n int) { // the GenerateCSRRequest should fail. type GenerateCSRRequest struct { // Parameters for creating a CSR. - CsrParams *CSRParams `protobuf:"bytes,1,opt,name=csr_params,json=csrParams" json:"csr_params,omitempty"` + CsrParams *CSRParams `protobuf:"bytes,1,opt,name=csr_params,json=csrParams,proto3" json:"csr_params,omitempty"` // The certificate id with which this CSR will be associated. The target // configuration should bind an entity which wants to use a certificate to // the certificate_id it should use. - CertificateId string `protobuf:"bytes,2,opt,name=certificate_id,json=certificateId" json:"certificate_id,omitempty"` + CertificateId string `protobuf:"bytes,2,opt,name=certificate_id,json=certificateId,proto3" json:"certificate_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *GenerateCSRRequest) Reset() { *m = GenerateCSRRequest{} } -func (m *GenerateCSRRequest) String() string { return proto.CompactTextString(m) } -func (*GenerateCSRRequest) ProtoMessage() {} -func (*GenerateCSRRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} } +func (m *GenerateCSRRequest) Reset() { *m = GenerateCSRRequest{} } +func (m *GenerateCSRRequest) String() string { return proto.CompactTextString(m) } +func (*GenerateCSRRequest) ProtoMessage() {} +func (*GenerateCSRRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_35089d6bfca6de66, []int{4} +} + +func (m *GenerateCSRRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GenerateCSRRequest.Unmarshal(m, b) +} +func (m *GenerateCSRRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GenerateCSRRequest.Marshal(b, m, deterministic) +} +func (m *GenerateCSRRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GenerateCSRRequest.Merge(m, src) +} +func (m *GenerateCSRRequest) XXX_Size() int { + return xxx_messageInfo_GenerateCSRRequest.Size(m) +} +func (m *GenerateCSRRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GenerateCSRRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_GenerateCSRRequest proto.InternalMessageInfo func (m *GenerateCSRRequest) GetCsrParams() *CSRParams { if m != nil { @@ -699,30 +805,53 @@ func (m *GenerateCSRRequest) GetCertificateId() string { // Parameters to be used when generating a Certificate Signing Request. type CSRParams struct { - // The type of certificate which will be will be associated for this CSR. - Type CertificateType `protobuf:"varint,1,opt,name=type,enum=gnoi.certificate.CertificateType" json:"type,omitempty"` + // The type of certificate which will be associated for this CSR. + Type CertificateType `protobuf:"varint,1,opt,name=type,proto3,enum=gnoi.certificate.CertificateType" json:"type,omitempty"` // Minimum size of the key to be used by the target when generating a // public/private key pair. - MinKeySize uint32 `protobuf:"varint,2,opt,name=min_key_size,json=minKeySize" json:"min_key_size,omitempty"` + MinKeySize uint32 `protobuf:"varint,2,opt,name=min_key_size,json=minKeySize,proto3" json:"min_key_size,omitempty"` // If provided, the target must use the provided key type. If the target // cannot use the algorithm specified in the key_type, it should cancel the // stream with an Unimplemented error. - KeyType KeyType `protobuf:"varint,3,opt,name=key_type,json=keyType,enum=gnoi.certificate.KeyType" json:"key_type,omitempty"` + KeyType KeyType `protobuf:"varint,3,opt,name=key_type,json=keyType,proto3,enum=gnoi.certificate.KeyType" json:"key_type,omitempty"` // --- common set of parameters applicable for any type of certificate --- // - CommonName string `protobuf:"bytes,4,opt,name=common_name,json=commonName" json:"common_name,omitempty"` - Country string `protobuf:"bytes,5,opt,name=country" json:"country,omitempty"` - State string `protobuf:"bytes,6,opt,name=state" json:"state,omitempty"` - City string `protobuf:"bytes,7,opt,name=city" json:"city,omitempty"` - Organization string `protobuf:"bytes,8,opt,name=organization" json:"organization,omitempty"` - OrganizationalUnit string `protobuf:"bytes,9,opt,name=organizational_unit,json=organizationalUnit" json:"organizational_unit,omitempty"` - IpAddress string `protobuf:"bytes,10,opt,name=ip_address,json=ipAddress" json:"ip_address,omitempty"` - EmailId string `protobuf:"bytes,11,opt,name=email_id,json=emailId" json:"email_id,omitempty"` + CommonName string `protobuf:"bytes,4,opt,name=common_name,json=commonName,proto3" json:"common_name,omitempty"` + Country string `protobuf:"bytes,5,opt,name=country,proto3" json:"country,omitempty"` + State string `protobuf:"bytes,6,opt,name=state,proto3" json:"state,omitempty"` + City string `protobuf:"bytes,7,opt,name=city,proto3" json:"city,omitempty"` + Organization string `protobuf:"bytes,8,opt,name=organization,proto3" json:"organization,omitempty"` + OrganizationalUnit string `protobuf:"bytes,9,opt,name=organizational_unit,json=organizationalUnit,proto3" json:"organizational_unit,omitempty"` + IpAddress string `protobuf:"bytes,10,opt,name=ip_address,json=ipAddress,proto3" json:"ip_address,omitempty"` + EmailId string `protobuf:"bytes,11,opt,name=email_id,json=emailId,proto3" json:"email_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *CSRParams) Reset() { *m = CSRParams{} } -func (m *CSRParams) String() string { return proto.CompactTextString(m) } -func (*CSRParams) ProtoMessage() {} -func (*CSRParams) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} } +func (m *CSRParams) Reset() { *m = CSRParams{} } +func (m *CSRParams) String() string { return proto.CompactTextString(m) } +func (*CSRParams) ProtoMessage() {} +func (*CSRParams) Descriptor() ([]byte, []int) { + return fileDescriptor_35089d6bfca6de66, []int{5} +} + +func (m *CSRParams) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CSRParams.Unmarshal(m, b) +} +func (m *CSRParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CSRParams.Marshal(b, m, deterministic) +} +func (m *CSRParams) XXX_Merge(src proto.Message) { + xxx_messageInfo_CSRParams.Merge(m, src) +} +func (m *CSRParams) XXX_Size() int { + return xxx_messageInfo_CSRParams.Size(m) +} +func (m *CSRParams) XXX_DiscardUnknown() { + xxx_messageInfo_CSRParams.DiscardUnknown(m) +} + +var xxx_messageInfo_CSRParams proto.InternalMessageInfo func (m *CSRParams) GetType() CertificateType { if m != nil { @@ -809,13 +938,36 @@ func (m *CSRParams) GetEmailId() string { // An Unimplemented error will be returned if the target cannot generate a CSR // as per the request. In this case, the caller must generate its own key pair. type GenerateCSRResponse struct { - Csr *CSR `protobuf:"bytes,1,opt,name=csr" json:"csr,omitempty"` + Csr *CSR `protobuf:"bytes,1,opt,name=csr,proto3" json:"csr,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *GenerateCSRResponse) Reset() { *m = GenerateCSRResponse{} } -func (m *GenerateCSRResponse) String() string { return proto.CompactTextString(m) } -func (*GenerateCSRResponse) ProtoMessage() {} -func (*GenerateCSRResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} } +func (m *GenerateCSRResponse) Reset() { *m = GenerateCSRResponse{} } +func (m *GenerateCSRResponse) String() string { return proto.CompactTextString(m) } +func (*GenerateCSRResponse) ProtoMessage() {} +func (*GenerateCSRResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_35089d6bfca6de66, []int{6} +} + +func (m *GenerateCSRResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GenerateCSRResponse.Unmarshal(m, b) +} +func (m *GenerateCSRResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GenerateCSRResponse.Marshal(b, m, deterministic) +} +func (m *GenerateCSRResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GenerateCSRResponse.Merge(m, src) +} +func (m *GenerateCSRResponse) XXX_Size() int { + return xxx_messageInfo_GenerateCSRResponse.Size(m) +} +func (m *GenerateCSRResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GenerateCSRResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_GenerateCSRResponse proto.InternalMessageInfo func (m *GenerateCSRResponse) GetCsr() *CSR { if m != nil { @@ -840,20 +992,48 @@ func (m *GenerateCSRResponse) GetCsr() *CSR { // the LoadCertificateRequest must fail. type LoadCertificateRequest struct { // The certificate to be Loaded on the target. - Certificate *Certificate `protobuf:"bytes,1,opt,name=certificate" json:"certificate,omitempty"` + Certificate *Certificate `protobuf:"bytes,1,opt,name=certificate,proto3" json:"certificate,omitempty"` // The key pair to be used with the certificate. This is provided in the event // that the target cannot generate a CSR (and the corresponding public/private // keys). - KeyPair *KeyPair `protobuf:"bytes,2,opt,name=key_pair,json=keyPair" json:"key_pair,omitempty"` + KeyPair *KeyPair `protobuf:"bytes,2,opt,name=key_pair,json=keyPair,proto3" json:"key_pair,omitempty"` // Certificate Id of the above certificate. This is to be provided only when // there is an externally generated key pair. - CertificateId string `protobuf:"bytes,3,opt,name=certificate_id,json=certificateId" json:"certificate_id,omitempty"` + CertificateId string `protobuf:"bytes,3,opt,name=certificate_id,json=certificateId,proto3" json:"certificate_id,omitempty"` + // Optional bundle of CA certificates. When not empty, the provided + // certificates should squash the existing bundle. This field provides a + // simplified means to provision a CA bundle that can be used to validate + // other peer's certificates. + CaCertificates []*Certificate `protobuf:"bytes,4,rep,name=ca_certificates,json=caCertificates,proto3" json:"ca_certificates,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *LoadCertificateRequest) Reset() { *m = LoadCertificateRequest{} } -func (m *LoadCertificateRequest) String() string { return proto.CompactTextString(m) } -func (*LoadCertificateRequest) ProtoMessage() {} -func (*LoadCertificateRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} } +func (m *LoadCertificateRequest) Reset() { *m = LoadCertificateRequest{} } +func (m *LoadCertificateRequest) String() string { return proto.CompactTextString(m) } +func (*LoadCertificateRequest) ProtoMessage() {} +func (*LoadCertificateRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_35089d6bfca6de66, []int{7} +} + +func (m *LoadCertificateRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_LoadCertificateRequest.Unmarshal(m, b) +} +func (m *LoadCertificateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_LoadCertificateRequest.Marshal(b, m, deterministic) +} +func (m *LoadCertificateRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_LoadCertificateRequest.Merge(m, src) +} +func (m *LoadCertificateRequest) XXX_Size() int { + return xxx_messageInfo_LoadCertificateRequest.Size(m) +} +func (m *LoadCertificateRequest) XXX_DiscardUnknown() { + xxx_messageInfo_LoadCertificateRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_LoadCertificateRequest proto.InternalMessageInfo func (m *LoadCertificateRequest) GetCertificate() *Certificate { if m != nil { @@ -876,48 +1056,147 @@ func (m *LoadCertificateRequest) GetCertificateId() string { return "" } +func (m *LoadCertificateRequest) GetCaCertificates() []*Certificate { + if m != nil { + return m.CaCertificates + } + return nil +} + // Response from target after Loading a Certificate. // If the target could not load the certificate, it must end the RPC stream with // a suitable RPC error about why the Certificate was not loaded. type LoadCertificateResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LoadCertificateResponse) Reset() { *m = LoadCertificateResponse{} } +func (m *LoadCertificateResponse) String() string { return proto.CompactTextString(m) } +func (*LoadCertificateResponse) ProtoMessage() {} +func (*LoadCertificateResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_35089d6bfca6de66, []int{8} +} + +func (m *LoadCertificateResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_LoadCertificateResponse.Unmarshal(m, b) +} +func (m *LoadCertificateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_LoadCertificateResponse.Marshal(b, m, deterministic) +} +func (m *LoadCertificateResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_LoadCertificateResponse.Merge(m, src) +} +func (m *LoadCertificateResponse) XXX_Size() int { + return xxx_messageInfo_LoadCertificateResponse.Size(m) +} +func (m *LoadCertificateResponse) XXX_DiscardUnknown() { + xxx_messageInfo_LoadCertificateResponse.DiscardUnknown(m) } -func (m *LoadCertificateResponse) Reset() { *m = LoadCertificateResponse{} } -func (m *LoadCertificateResponse) String() string { return proto.CompactTextString(m) } -func (*LoadCertificateResponse) ProtoMessage() {} -func (*LoadCertificateResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} } +var xxx_messageInfo_LoadCertificateResponse proto.InternalMessageInfo // A Finalize message is sent to the target to confirm the Rotation of // the certificate and that the certificate should not be rolled back when // the RPC concludes. The certificate must be rolled back if the target returns // an error after receiving a Finalize message. type FinalizeRequest struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *FinalizeRequest) Reset() { *m = FinalizeRequest{} } -func (m *FinalizeRequest) String() string { return proto.CompactTextString(m) } -func (*FinalizeRequest) ProtoMessage() {} -func (*FinalizeRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{9} } +func (m *FinalizeRequest) Reset() { *m = FinalizeRequest{} } +func (m *FinalizeRequest) String() string { return proto.CompactTextString(m) } +func (*FinalizeRequest) ProtoMessage() {} +func (*FinalizeRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_35089d6bfca6de66, []int{9} +} + +func (m *FinalizeRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_FinalizeRequest.Unmarshal(m, b) +} +func (m *FinalizeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_FinalizeRequest.Marshal(b, m, deterministic) +} +func (m *FinalizeRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_FinalizeRequest.Merge(m, src) +} +func (m *FinalizeRequest) XXX_Size() int { + return xxx_messageInfo_FinalizeRequest.Size(m) +} +func (m *FinalizeRequest) XXX_DiscardUnknown() { + xxx_messageInfo_FinalizeRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_FinalizeRequest proto.InternalMessageInfo // The request to query all the certificates on the target. type GetCertificatesRequest struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetCertificatesRequest) Reset() { *m = GetCertificatesRequest{} } +func (m *GetCertificatesRequest) String() string { return proto.CompactTextString(m) } +func (*GetCertificatesRequest) ProtoMessage() {} +func (*GetCertificatesRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_35089d6bfca6de66, []int{10} +} + +func (m *GetCertificatesRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetCertificatesRequest.Unmarshal(m, b) +} +func (m *GetCertificatesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetCertificatesRequest.Marshal(b, m, deterministic) +} +func (m *GetCertificatesRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetCertificatesRequest.Merge(m, src) +} +func (m *GetCertificatesRequest) XXX_Size() int { + return xxx_messageInfo_GetCertificatesRequest.Size(m) +} +func (m *GetCertificatesRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetCertificatesRequest.DiscardUnknown(m) } -func (m *GetCertificatesRequest) Reset() { *m = GetCertificatesRequest{} } -func (m *GetCertificatesRequest) String() string { return proto.CompactTextString(m) } -func (*GetCertificatesRequest) ProtoMessage() {} -func (*GetCertificatesRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{10} } +var xxx_messageInfo_GetCertificatesRequest proto.InternalMessageInfo // Response from the target about the certificates that exist on the target what // what is using them. type GetCertificatesResponse struct { - CertificateInfo []*CertificateInfo `protobuf:"bytes,1,rep,name=certificate_info,json=certificateInfo" json:"certificate_info,omitempty"` + CertificateInfo []*CertificateInfo `protobuf:"bytes,1,rep,name=certificate_info,json=certificateInfo,proto3" json:"certificate_info,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *GetCertificatesResponse) Reset() { *m = GetCertificatesResponse{} } -func (m *GetCertificatesResponse) String() string { return proto.CompactTextString(m) } -func (*GetCertificatesResponse) ProtoMessage() {} -func (*GetCertificatesResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{11} } +func (m *GetCertificatesResponse) Reset() { *m = GetCertificatesResponse{} } +func (m *GetCertificatesResponse) String() string { return proto.CompactTextString(m) } +func (*GetCertificatesResponse) ProtoMessage() {} +func (*GetCertificatesResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_35089d6bfca6de66, []int{11} +} + +func (m *GetCertificatesResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetCertificatesResponse.Unmarshal(m, b) +} +func (m *GetCertificatesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetCertificatesResponse.Marshal(b, m, deterministic) +} +func (m *GetCertificatesResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetCertificatesResponse.Merge(m, src) +} +func (m *GetCertificatesResponse) XXX_Size() int { + return xxx_messageInfo_GetCertificatesResponse.Size(m) +} +func (m *GetCertificatesResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetCertificatesResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_GetCertificatesResponse proto.InternalMessageInfo func (m *GetCertificatesResponse) GetCertificateInfo() []*CertificateInfo { if m != nil { @@ -927,19 +1206,42 @@ func (m *GetCertificatesResponse) GetCertificateInfo() []*CertificateInfo { } type CertificateInfo struct { - CertificateId string `protobuf:"bytes,1,opt,name=certificate_id,json=certificateId" json:"certificate_id,omitempty"` - Certificate *Certificate `protobuf:"bytes,2,opt,name=certificate" json:"certificate,omitempty"` + CertificateId string `protobuf:"bytes,1,opt,name=certificate_id,json=certificateId,proto3" json:"certificate_id,omitempty"` + Certificate *Certificate `protobuf:"bytes,2,opt,name=certificate,proto3" json:"certificate,omitempty"` // List of endpoints using this certificate. - Endpoints []*Endpoint `protobuf:"bytes,3,rep,name=endpoints" json:"endpoints,omitempty"` + Endpoints []*Endpoint `protobuf:"bytes,3,rep,name=endpoints,proto3" json:"endpoints,omitempty"` // System modification time when the certificate was installed/rotated in // nanoseconds since epoch. - ModificationTime int64 `protobuf:"varint,4,opt,name=modification_time,json=modificationTime" json:"modification_time,omitempty"` + ModificationTime int64 `protobuf:"varint,4,opt,name=modification_time,json=modificationTime,proto3" json:"modification_time,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *CertificateInfo) Reset() { *m = CertificateInfo{} } -func (m *CertificateInfo) String() string { return proto.CompactTextString(m) } -func (*CertificateInfo) ProtoMessage() {} -func (*CertificateInfo) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{12} } +func (m *CertificateInfo) Reset() { *m = CertificateInfo{} } +func (m *CertificateInfo) String() string { return proto.CompactTextString(m) } +func (*CertificateInfo) ProtoMessage() {} +func (*CertificateInfo) Descriptor() ([]byte, []int) { + return fileDescriptor_35089d6bfca6de66, []int{12} +} + +func (m *CertificateInfo) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CertificateInfo.Unmarshal(m, b) +} +func (m *CertificateInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CertificateInfo.Marshal(b, m, deterministic) +} +func (m *CertificateInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_CertificateInfo.Merge(m, src) +} +func (m *CertificateInfo) XXX_Size() int { + return xxx_messageInfo_CertificateInfo.Size(m) +} +func (m *CertificateInfo) XXX_DiscardUnknown() { + xxx_messageInfo_CertificateInfo.DiscardUnknown(m) +} + +var xxx_messageInfo_CertificateInfo proto.InternalMessageInfo func (m *CertificateInfo) GetCertificateId() string { if m != nil { @@ -971,13 +1273,36 @@ func (m *CertificateInfo) GetModificationTime() int64 { type RevokeCertificatesRequest struct { // Certificates to revoke. - CertificateId []string `protobuf:"bytes,1,rep,name=certificate_id,json=certificateId" json:"certificate_id,omitempty"` + CertificateId []string `protobuf:"bytes,1,rep,name=certificate_id,json=certificateId,proto3" json:"certificate_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RevokeCertificatesRequest) Reset() { *m = RevokeCertificatesRequest{} } +func (m *RevokeCertificatesRequest) String() string { return proto.CompactTextString(m) } +func (*RevokeCertificatesRequest) ProtoMessage() {} +func (*RevokeCertificatesRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_35089d6bfca6de66, []int{13} +} + +func (m *RevokeCertificatesRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RevokeCertificatesRequest.Unmarshal(m, b) +} +func (m *RevokeCertificatesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RevokeCertificatesRequest.Marshal(b, m, deterministic) +} +func (m *RevokeCertificatesRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RevokeCertificatesRequest.Merge(m, src) +} +func (m *RevokeCertificatesRequest) XXX_Size() int { + return xxx_messageInfo_RevokeCertificatesRequest.Size(m) +} +func (m *RevokeCertificatesRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RevokeCertificatesRequest.DiscardUnknown(m) } -func (m *RevokeCertificatesRequest) Reset() { *m = RevokeCertificatesRequest{} } -func (m *RevokeCertificatesRequest) String() string { return proto.CompactTextString(m) } -func (*RevokeCertificatesRequest) ProtoMessage() {} -func (*RevokeCertificatesRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{13} } +var xxx_messageInfo_RevokeCertificatesRequest proto.InternalMessageInfo func (m *RevokeCertificatesRequest) GetCertificateId() []string { if m != nil { @@ -988,15 +1313,38 @@ func (m *RevokeCertificatesRequest) GetCertificateId() []string { type RevokeCertificatesResponse struct { // List of certificates successfully revoked. - RevokedCertificateId []string `protobuf:"bytes,1,rep,name=revoked_certificate_id,json=revokedCertificateId" json:"revoked_certificate_id,omitempty"` + RevokedCertificateId []string `protobuf:"bytes,1,rep,name=revoked_certificate_id,json=revokedCertificateId,proto3" json:"revoked_certificate_id,omitempty"` // List of errors why certain certificates could not be revoked. - CertificateRevocationError []*CertificateRevocationError `protobuf:"bytes,2,rep,name=certificate_revocation_error,json=certificateRevocationError" json:"certificate_revocation_error,omitempty"` + CertificateRevocationError []*CertificateRevocationError `protobuf:"bytes,2,rep,name=certificate_revocation_error,json=certificateRevocationError,proto3" json:"certificate_revocation_error,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RevokeCertificatesResponse) Reset() { *m = RevokeCertificatesResponse{} } +func (m *RevokeCertificatesResponse) String() string { return proto.CompactTextString(m) } +func (*RevokeCertificatesResponse) ProtoMessage() {} +func (*RevokeCertificatesResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_35089d6bfca6de66, []int{14} +} + +func (m *RevokeCertificatesResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RevokeCertificatesResponse.Unmarshal(m, b) +} +func (m *RevokeCertificatesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RevokeCertificatesResponse.Marshal(b, m, deterministic) +} +func (m *RevokeCertificatesResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RevokeCertificatesResponse.Merge(m, src) +} +func (m *RevokeCertificatesResponse) XXX_Size() int { + return xxx_messageInfo_RevokeCertificatesResponse.Size(m) +} +func (m *RevokeCertificatesResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RevokeCertificatesResponse.DiscardUnknown(m) } -func (m *RevokeCertificatesResponse) Reset() { *m = RevokeCertificatesResponse{} } -func (m *RevokeCertificatesResponse) String() string { return proto.CompactTextString(m) } -func (*RevokeCertificatesResponse) ProtoMessage() {} -func (*RevokeCertificatesResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{14} } +var xxx_messageInfo_RevokeCertificatesResponse proto.InternalMessageInfo func (m *RevokeCertificatesResponse) GetRevokedCertificateId() []string { if m != nil { @@ -1014,14 +1362,37 @@ func (m *RevokeCertificatesResponse) GetCertificateRevocationError() []*Certific // An error message indicating why a certificate id could not be revoked. type CertificateRevocationError struct { - CertificateId string `protobuf:"bytes,1,opt,name=certificate_id,json=certificateId" json:"certificate_id,omitempty"` - ErrorMessage string `protobuf:"bytes,2,opt,name=error_message,json=errorMessage" json:"error_message,omitempty"` + CertificateId string `protobuf:"bytes,1,opt,name=certificate_id,json=certificateId,proto3" json:"certificate_id,omitempty"` + ErrorMessage string `protobuf:"bytes,2,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *CertificateRevocationError) Reset() { *m = CertificateRevocationError{} } -func (m *CertificateRevocationError) String() string { return proto.CompactTextString(m) } -func (*CertificateRevocationError) ProtoMessage() {} -func (*CertificateRevocationError) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{15} } +func (m *CertificateRevocationError) Reset() { *m = CertificateRevocationError{} } +func (m *CertificateRevocationError) String() string { return proto.CompactTextString(m) } +func (*CertificateRevocationError) ProtoMessage() {} +func (*CertificateRevocationError) Descriptor() ([]byte, []int) { + return fileDescriptor_35089d6bfca6de66, []int{15} +} + +func (m *CertificateRevocationError) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CertificateRevocationError.Unmarshal(m, b) +} +func (m *CertificateRevocationError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CertificateRevocationError.Marshal(b, m, deterministic) +} +func (m *CertificateRevocationError) XXX_Merge(src proto.Message) { + xxx_messageInfo_CertificateRevocationError.Merge(m, src) +} +func (m *CertificateRevocationError) XXX_Size() int { + return xxx_messageInfo_CertificateRevocationError.Size(m) +} +func (m *CertificateRevocationError) XXX_DiscardUnknown() { + xxx_messageInfo_CertificateRevocationError.DiscardUnknown(m) +} + +var xxx_messageInfo_CertificateRevocationError proto.InternalMessageInfo func (m *CertificateRevocationError) GetCertificateId() string { if m != nil { @@ -1039,15 +1410,38 @@ func (m *CertificateRevocationError) GetErrorMessage() string { // A request to ask the target if it can generate key pairs. type CanGenerateCSRRequest struct { - KeyType KeyType `protobuf:"varint,1,opt,name=key_type,json=keyType,enum=gnoi.certificate.KeyType" json:"key_type,omitempty"` - CertificateType CertificateType `protobuf:"varint,2,opt,name=certificate_type,json=certificateType,enum=gnoi.certificate.CertificateType" json:"certificate_type,omitempty"` - KeySize uint32 `protobuf:"varint,3,opt,name=key_size,json=keySize" json:"key_size,omitempty"` + KeyType KeyType `protobuf:"varint,1,opt,name=key_type,json=keyType,proto3,enum=gnoi.certificate.KeyType" json:"key_type,omitempty"` + CertificateType CertificateType `protobuf:"varint,2,opt,name=certificate_type,json=certificateType,proto3,enum=gnoi.certificate.CertificateType" json:"certificate_type,omitempty"` + KeySize uint32 `protobuf:"varint,3,opt,name=key_size,json=keySize,proto3" json:"key_size,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *CanGenerateCSRRequest) Reset() { *m = CanGenerateCSRRequest{} } -func (m *CanGenerateCSRRequest) String() string { return proto.CompactTextString(m) } -func (*CanGenerateCSRRequest) ProtoMessage() {} -func (*CanGenerateCSRRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{16} } +func (m *CanGenerateCSRRequest) Reset() { *m = CanGenerateCSRRequest{} } +func (m *CanGenerateCSRRequest) String() string { return proto.CompactTextString(m) } +func (*CanGenerateCSRRequest) ProtoMessage() {} +func (*CanGenerateCSRRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_35089d6bfca6de66, []int{16} +} + +func (m *CanGenerateCSRRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CanGenerateCSRRequest.Unmarshal(m, b) +} +func (m *CanGenerateCSRRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CanGenerateCSRRequest.Marshal(b, m, deterministic) +} +func (m *CanGenerateCSRRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_CanGenerateCSRRequest.Merge(m, src) +} +func (m *CanGenerateCSRRequest) XXX_Size() int { + return xxx_messageInfo_CanGenerateCSRRequest.Size(m) +} +func (m *CanGenerateCSRRequest) XXX_DiscardUnknown() { + xxx_messageInfo_CanGenerateCSRRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_CanGenerateCSRRequest proto.InternalMessageInfo func (m *CanGenerateCSRRequest) GetKeyType() KeyType { if m != nil { @@ -1073,13 +1467,36 @@ func (m *CanGenerateCSRRequest) GetKeySize() uint32 { // Response from the target about whether it can generate a CSR with the given // parameters. type CanGenerateCSRResponse struct { - CanGenerate bool `protobuf:"varint,4,opt,name=can_generate,json=canGenerate" json:"can_generate,omitempty"` + CanGenerate bool `protobuf:"varint,4,opt,name=can_generate,json=canGenerate,proto3" json:"can_generate,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CanGenerateCSRResponse) Reset() { *m = CanGenerateCSRResponse{} } +func (m *CanGenerateCSRResponse) String() string { return proto.CompactTextString(m) } +func (*CanGenerateCSRResponse) ProtoMessage() {} +func (*CanGenerateCSRResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_35089d6bfca6de66, []int{17} +} + +func (m *CanGenerateCSRResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CanGenerateCSRResponse.Unmarshal(m, b) +} +func (m *CanGenerateCSRResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CanGenerateCSRResponse.Marshal(b, m, deterministic) +} +func (m *CanGenerateCSRResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_CanGenerateCSRResponse.Merge(m, src) +} +func (m *CanGenerateCSRResponse) XXX_Size() int { + return xxx_messageInfo_CanGenerateCSRResponse.Size(m) +} +func (m *CanGenerateCSRResponse) XXX_DiscardUnknown() { + xxx_messageInfo_CanGenerateCSRResponse.DiscardUnknown(m) } -func (m *CanGenerateCSRResponse) Reset() { *m = CanGenerateCSRResponse{} } -func (m *CanGenerateCSRResponse) String() string { return proto.CompactTextString(m) } -func (*CanGenerateCSRResponse) ProtoMessage() {} -func (*CanGenerateCSRResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{17} } +var xxx_messageInfo_CanGenerateCSRResponse proto.InternalMessageInfo func (m *CanGenerateCSRResponse) GetCanGenerate() bool { if m != nil { @@ -1091,17 +1508,40 @@ func (m *CanGenerateCSRResponse) GetCanGenerate() bool { // A certificate. type Certificate struct { // Type of certificate. - Type CertificateType `protobuf:"varint,1,opt,name=type,enum=gnoi.certificate.CertificateType" json:"type,omitempty"` + Type CertificateType `protobuf:"varint,1,opt,name=type,proto3,enum=gnoi.certificate.CertificateType" json:"type,omitempty"` // Actual certificate. // The exact encoding depends upon the type of certificate. // for X509, this should be a PEM encoded Certificate. - Certificate []byte `protobuf:"bytes,2,opt,name=certificate,proto3" json:"certificate,omitempty"` + Certificate []byte `protobuf:"bytes,2,opt,name=certificate,proto3" json:"certificate,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Certificate) Reset() { *m = Certificate{} } -func (m *Certificate) String() string { return proto.CompactTextString(m) } -func (*Certificate) ProtoMessage() {} -func (*Certificate) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{18} } +func (m *Certificate) Reset() { *m = Certificate{} } +func (m *Certificate) String() string { return proto.CompactTextString(m) } +func (*Certificate) ProtoMessage() {} +func (*Certificate) Descriptor() ([]byte, []int) { + return fileDescriptor_35089d6bfca6de66, []int{18} +} + +func (m *Certificate) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Certificate.Unmarshal(m, b) +} +func (m *Certificate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Certificate.Marshal(b, m, deterministic) +} +func (m *Certificate) XXX_Merge(src proto.Message) { + xxx_messageInfo_Certificate.Merge(m, src) +} +func (m *Certificate) XXX_Size() int { + return xxx_messageInfo_Certificate.Size(m) +} +func (m *Certificate) XXX_DiscardUnknown() { + xxx_messageInfo_Certificate.DiscardUnknown(m) +} + +var xxx_messageInfo_Certificate proto.InternalMessageInfo func (m *Certificate) GetType() CertificateType { if m != nil { @@ -1120,17 +1560,40 @@ func (m *Certificate) GetCertificate() []byte { // A Certificate Signing Request. type CSR struct { // Type of certificate. - Type CertificateType `protobuf:"varint,1,opt,name=type,enum=gnoi.certificate.CertificateType" json:"type,omitempty"` + Type CertificateType `protobuf:"varint,1,opt,name=type,proto3,enum=gnoi.certificate.CertificateType" json:"type,omitempty"` // Bytes representing the CSR. // The exact encoding depends upon the type of certificate requested. // for X509: This should be the PEM encoded CSR. - Csr []byte `protobuf:"bytes,2,opt,name=csr,proto3" json:"csr,omitempty"` + Csr []byte `protobuf:"bytes,2,opt,name=csr,proto3" json:"csr,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *CSR) Reset() { *m = CSR{} } -func (m *CSR) String() string { return proto.CompactTextString(m) } -func (*CSR) ProtoMessage() {} -func (*CSR) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{19} } +func (m *CSR) Reset() { *m = CSR{} } +func (m *CSR) String() string { return proto.CompactTextString(m) } +func (*CSR) ProtoMessage() {} +func (*CSR) Descriptor() ([]byte, []int) { + return fileDescriptor_35089d6bfca6de66, []int{19} +} + +func (m *CSR) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CSR.Unmarshal(m, b) +} +func (m *CSR) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CSR.Marshal(b, m, deterministic) +} +func (m *CSR) XXX_Merge(src proto.Message) { + xxx_messageInfo_CSR.Merge(m, src) +} +func (m *CSR) XXX_Size() int { + return xxx_messageInfo_CSR.Size(m) +} +func (m *CSR) XXX_DiscardUnknown() { + xxx_messageInfo_CSR.DiscardUnknown(m) +} + +var xxx_messageInfo_CSR proto.InternalMessageInfo func (m *CSR) GetType() CertificateType { if m != nil { @@ -1148,14 +1611,37 @@ func (m *CSR) GetCsr() []byte { // A message representing a pair of public/private keys. type KeyPair struct { - PrivateKey []byte `protobuf:"bytes,1,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"` - PublicKey []byte `protobuf:"bytes,2,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` + PrivateKey []byte `protobuf:"bytes,1,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"` + PublicKey []byte `protobuf:"bytes,2,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *KeyPair) Reset() { *m = KeyPair{} } -func (m *KeyPair) String() string { return proto.CompactTextString(m) } -func (*KeyPair) ProtoMessage() {} -func (*KeyPair) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{20} } +func (m *KeyPair) Reset() { *m = KeyPair{} } +func (m *KeyPair) String() string { return proto.CompactTextString(m) } +func (*KeyPair) ProtoMessage() {} +func (*KeyPair) Descriptor() ([]byte, []int) { + return fileDescriptor_35089d6bfca6de66, []int{20} +} + +func (m *KeyPair) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_KeyPair.Unmarshal(m, b) +} +func (m *KeyPair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_KeyPair.Marshal(b, m, deterministic) +} +func (m *KeyPair) XXX_Merge(src proto.Message) { + xxx_messageInfo_KeyPair.Merge(m, src) +} +func (m *KeyPair) XXX_Size() int { + return xxx_messageInfo_KeyPair.Size(m) +} +func (m *KeyPair) XXX_DiscardUnknown() { + xxx_messageInfo_KeyPair.DiscardUnknown(m) +} + +var xxx_messageInfo_KeyPair proto.InternalMessageInfo func (m *KeyPair) GetPrivateKey() []byte { if m != nil { @@ -1173,15 +1659,38 @@ func (m *KeyPair) GetPublicKey() []byte { // An endpoint represents an entity on the target which can use a certificate. type Endpoint struct { - Type Endpoint_Type `protobuf:"varint,1,opt,name=type,enum=gnoi.certificate.Endpoint_Type" json:"type,omitempty"` + Type Endpoint_Type `protobuf:"varint,1,opt,name=type,proto3,enum=gnoi.certificate.Endpoint_Type" json:"type,omitempty"` // Human readable identifier for an endpoint. - Endpoint string `protobuf:"bytes,2,opt,name=endpoint" json:"endpoint,omitempty"` + Endpoint string `protobuf:"bytes,2,opt,name=endpoint,proto3" json:"endpoint,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Endpoint) Reset() { *m = Endpoint{} } +func (m *Endpoint) String() string { return proto.CompactTextString(m) } +func (*Endpoint) ProtoMessage() {} +func (*Endpoint) Descriptor() ([]byte, []int) { + return fileDescriptor_35089d6bfca6de66, []int{21} +} + +func (m *Endpoint) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Endpoint.Unmarshal(m, b) +} +func (m *Endpoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Endpoint.Marshal(b, m, deterministic) +} +func (m *Endpoint) XXX_Merge(src proto.Message) { + xxx_messageInfo_Endpoint.Merge(m, src) +} +func (m *Endpoint) XXX_Size() int { + return xxx_messageInfo_Endpoint.Size(m) +} +func (m *Endpoint) XXX_DiscardUnknown() { + xxx_messageInfo_Endpoint.DiscardUnknown(m) } -func (m *Endpoint) Reset() { *m = Endpoint{} } -func (m *Endpoint) String() string { return proto.CompactTextString(m) } -func (*Endpoint) ProtoMessage() {} -func (*Endpoint) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{21} } +var xxx_messageInfo_Endpoint proto.InternalMessageInfo func (m *Endpoint) GetType() Endpoint_Type { if m != nil { @@ -1198,6 +1707,9 @@ func (m *Endpoint) GetEndpoint() string { } func init() { + proto.RegisterEnum("gnoi.certificate.CertificateType", CertificateType_name, CertificateType_value) + proto.RegisterEnum("gnoi.certificate.KeyType", KeyType_name, KeyType_value) + proto.RegisterEnum("gnoi.certificate.Endpoint_Type", Endpoint_Type_name, Endpoint_Type_value) proto.RegisterType((*RotateCertificateRequest)(nil), "gnoi.certificate.RotateCertificateRequest") proto.RegisterType((*RotateCertificateResponse)(nil), "gnoi.certificate.RotateCertificateResponse") proto.RegisterType((*InstallCertificateRequest)(nil), "gnoi.certificate.InstallCertificateRequest") @@ -1220,9 +1732,92 @@ func init() { proto.RegisterType((*CSR)(nil), "gnoi.certificate.CSR") proto.RegisterType((*KeyPair)(nil), "gnoi.certificate.KeyPair") proto.RegisterType((*Endpoint)(nil), "gnoi.certificate.Endpoint") - proto.RegisterEnum("gnoi.certificate.CertificateType", CertificateType_name, CertificateType_value) - proto.RegisterEnum("gnoi.certificate.KeyType", KeyType_name, KeyType_value) - proto.RegisterEnum("gnoi.certificate.Endpoint_Type", Endpoint_Type_name, Endpoint_Type_value) +} + +func init() { + proto.RegisterFile("github.com/openconfig/gnoi/cert/cert.proto", fileDescriptor_35089d6bfca6de66) +} + +var fileDescriptor_35089d6bfca6de66 = []byte{ + // 1233 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x57, 0xdd, 0x72, 0xda, 0xc6, + 0x17, 0xb7, 0x0c, 0x31, 0x70, 0xc0, 0x20, 0x6f, 0x62, 0x47, 0xf0, 0xff, 0x67, 0xe2, 0xa8, 0xf5, + 0xc4, 0x71, 0x32, 0x38, 0x93, 0x8f, 0x99, 0x7e, 0xcc, 0xa4, 0x63, 0x13, 0x1c, 0x33, 0xd8, 0x84, + 0x11, 0xb8, 0xed, 0x9d, 0x66, 0x2d, 0x16, 0xbc, 0x63, 0xb4, 0xab, 0x4a, 0x72, 0x3a, 0xf8, 0x21, + 0xfa, 0x02, 0xbd, 0xe9, 0x55, 0x1f, 0xa1, 0x0f, 0xd0, 0x27, 0xe8, 0x45, 0xa7, 0xd7, 0x7d, 0x92, + 0x4e, 0x47, 0xbb, 0x02, 0x04, 0x12, 0x36, 0xcd, 0x5d, 0x6e, 0x18, 0xed, 0x39, 0xbf, 0xf3, 0xd3, + 0x9e, 0x6f, 0x01, 0x7b, 0x03, 0xea, 0x5f, 0x5c, 0x9d, 0x57, 0x2d, 0x6e, 0xef, 0x73, 0x87, 0x30, + 0x8b, 0xb3, 0x3e, 0x1d, 0xec, 0x0f, 0x18, 0xa7, 0xfb, 0x16, 0x71, 0x7d, 0xf1, 0x53, 0x75, 0x5c, + 0xee, 0x73, 0xa4, 0x06, 0xd2, 0x6a, 0x20, 0xa0, 0x7d, 0x6a, 0x61, 0x9f, 0xe8, 0xbf, 0xac, 0x82, + 0x66, 0x70, 0x1f, 0xfb, 0xa4, 0x36, 0x95, 0x1a, 0xe4, 0x87, 0x2b, 0xe2, 0xf9, 0xa8, 0x01, 0x85, + 0x01, 0x61, 0xc4, 0xc5, 0x3e, 0x31, 0x2d, 0xcf, 0xd5, 0x94, 0x6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0x32, 0xb5, 0xae, 0xf9, 0xfd, 0xeb, + 0xe7, 0x5f, 0xaa, 0xca, 0xde, 0x8e, 0x08, 0xcc, 0x18, 0xd7, 0x8c, 0xe2, 0x00, 0xd6, 0x9a, 0x5d, + 0xd3, 0xe8, 0x1c, 0xa8, 0xca, 0x8b, 0x5f, 0xd3, 0xb0, 0x19, 0xe1, 0x3d, 0xc5, 0x0c, 0x0f, 0x88, + 0x4d, 0x98, 0x8f, 0x08, 0xac, 0xc9, 0x6f, 0x7b, 0xb4, 0x17, 0xf7, 0x7e, 0xd1, 0x1f, 0xa3, 0xca, + 0xd3, 0xa5, 0xb0, 0xb2, 0x2e, 0x77, 0x95, 0xe7, 0x0a, 0xba, 0x80, 0x4c, 0xf8, 0x61, 0x8a, 0x12, + 0x6c, 0x17, 0x7e, 0x86, 0x57, 0x9e, 0x2d, 0x07, 0x8e, 0xbc, 0xa9, 0x0f, 0xa5, 0xb9, 0xbd, 0x84, + 0x76, 0x93, 0x3e, 0x70, 0x93, 0x96, 0x5a, 0xe5, 0xc9, 0x12, 0xc8, 0xb0, 0xdb, 0x38, 0xa0, 0xf8, + 0xb8, 0x4d, 0x72, 0x6e, 0xe1, 0x64, 0x4f, 0x72, 0xee, 0x86, 0x09, 0x6e, 0x41, 0x71, 0xb6, 0xf1, + 0xd1, 0xe3, 0x84, 0x86, 0x4a, 0x1a, 0x69, 0x95, 0xdd, 0xdb, 0x81, 0xf2, 0x25, 0xe7, 0x6b, 0xe2, + 0x7f, 0xf2, 0xcb, 0x7f, 0x03, 0x00, 0x00, 0xff, 0xff, 0x88, 0xf1, 0x0e, 0xed, 0x55, 0x0f, 0x00, + 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1233,8 +1828,9 @@ var _ grpc.ClientConn // is compatible with the grpc package it is being compiled against. const _ = grpc.SupportPackageIsVersion4 -// Client API for CertificateManagement service - +// CertificateManagementClient is the client API for CertificateManagement service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type CertificateManagementClient interface { // Rotate will replace an existing Certificate on the target by creating a // new CSR request and placing the new Certificate based on the CSR on the @@ -1354,7 +1950,7 @@ func NewCertificateManagementClient(cc *grpc.ClientConn) CertificateManagementCl } func (c *certificateManagementClient) Rotate(ctx context.Context, opts ...grpc.CallOption) (CertificateManagement_RotateClient, error) { - stream, err := grpc.NewClientStream(ctx, &_CertificateManagement_serviceDesc.Streams[0], c.cc, "/gnoi.certificate.CertificateManagement/Rotate", opts...) + stream, err := c.cc.NewStream(ctx, &_CertificateManagement_serviceDesc.Streams[0], "/gnoi.certificate.CertificateManagement/Rotate", opts...) if err != nil { return nil, err } @@ -1385,7 +1981,7 @@ func (x *certificateManagementRotateClient) Recv() (*RotateCertificateResponse, } func (c *certificateManagementClient) Install(ctx context.Context, opts ...grpc.CallOption) (CertificateManagement_InstallClient, error) { - stream, err := grpc.NewClientStream(ctx, &_CertificateManagement_serviceDesc.Streams[1], c.cc, "/gnoi.certificate.CertificateManagement/Install", opts...) + stream, err := c.cc.NewStream(ctx, &_CertificateManagement_serviceDesc.Streams[1], "/gnoi.certificate.CertificateManagement/Install", opts...) if err != nil { return nil, err } @@ -1417,7 +2013,7 @@ func (x *certificateManagementInstallClient) Recv() (*InstallCertificateResponse func (c *certificateManagementClient) GetCertificates(ctx context.Context, in *GetCertificatesRequest, opts ...grpc.CallOption) (*GetCertificatesResponse, error) { out := new(GetCertificatesResponse) - err := grpc.Invoke(ctx, "/gnoi.certificate.CertificateManagement/GetCertificates", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/gnoi.certificate.CertificateManagement/GetCertificates", in, out, opts...) if err != nil { return nil, err } @@ -1426,7 +2022,7 @@ func (c *certificateManagementClient) GetCertificates(ctx context.Context, in *G func (c *certificateManagementClient) RevokeCertificates(ctx context.Context, in *RevokeCertificatesRequest, opts ...grpc.CallOption) (*RevokeCertificatesResponse, error) { out := new(RevokeCertificatesResponse) - err := grpc.Invoke(ctx, "/gnoi.certificate.CertificateManagement/RevokeCertificates", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/gnoi.certificate.CertificateManagement/RevokeCertificates", in, out, opts...) if err != nil { return nil, err } @@ -1435,15 +2031,14 @@ func (c *certificateManagementClient) RevokeCertificates(ctx context.Context, in func (c *certificateManagementClient) CanGenerateCSR(ctx context.Context, in *CanGenerateCSRRequest, opts ...grpc.CallOption) (*CanGenerateCSRResponse, error) { out := new(CanGenerateCSRResponse) - err := grpc.Invoke(ctx, "/gnoi.certificate.CertificateManagement/CanGenerateCSR", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/gnoi.certificate.CertificateManagement/CanGenerateCSR", in, out, opts...) if err != nil { return nil, err } return out, nil } -// Server API for CertificateManagement service - +// CertificateManagementServer is the server API for CertificateManagement service. type CertificateManagementServer interface { // Rotate will replace an existing Certificate on the target by creating a // new CSR request and placing the new Certificate based on the CSR on the @@ -1695,86 +2290,5 @@ var _CertificateManagement_serviceDesc = grpc.ServiceDesc{ ClientStreams: true, }, }, - Metadata: "cert/cert.proto", -} - -func init() { proto.RegisterFile("cert/cert.proto", fileDescriptor0) } - -var fileDescriptor0 = []byte{ - // 1192 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x57, 0xdd, 0x72, 0xda, 0x46, - 0x14, 0xb6, 0x8c, 0x63, 0xe0, 0x80, 0x41, 0xde, 0x24, 0x8e, 0xa0, 0xcd, 0xc4, 0x51, 0xeb, 0x89, - 0xe3, 0x64, 0x48, 0x26, 0x3f, 0x33, 0xfd, 0x99, 0x49, 0xc7, 0x26, 0x24, 0x66, 0xb0, 0x09, 0xb3, - 0xe0, 0xb6, 0x77, 0x9a, 0x8d, 0x58, 0xc8, 0x8e, 0xd1, 0x8a, 0x4a, 0x72, 0x3a, 0xf8, 0x21, 0xfa, - 0x02, 0xbd, 0xe9, 0x55, 0x1f, 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x41, 0x9a, 0x3d, 0x97, 0x0f, 0xe8, 0x0e, 0x14, 0x6c, 0xd7, 0x71, 0x5c, 0x6e, 0x71, 0xe2, 0x50, - 0x63, 0x43, 0x04, 0x00, 0x52, 0xd4, 0x26, 0x0e, 0x45, 0x06, 0x64, 0x6d, 0xf7, 0x82, 0x07, 0xde, - 0xc4, 0xb8, 0x26, 0x94, 0xd3, 0x57, 0x74, 0x03, 0xae, 0xf9, 0xe1, 0x38, 0x18, 0x9b, 0x42, 0x2e, - 0x5f, 0x10, 0x82, 0x0d, 0x9b, 0x05, 0x13, 0x23, 0x2b, 0x84, 0xe2, 0x19, 0x99, 0x50, 0x74, 0xbd, - 0x21, 0xe1, 0xec, 0x52, 0x2e, 0x97, 0x9c, 0xd0, 0x25, 0x64, 0xe8, 0x11, 0x5c, 0x8f, 0xbf, 0x93, - 0x91, 0x75, 0xc1, 0x59, 0x60, 0xe4, 0x05, 0x14, 0x25, 0x55, 0x67, 0x9c, 0x05, 0xe8, 0x36, 0x00, - 0x1b, 0x5b, 0xa4, 0xdf, 0xf7, 0xa8, 0xef, 0x1b, 0x20, 0x70, 0x79, 0x36, 0x3e, 0x94, 0x02, 0x54, - 0x81, 0x1c, 0x75, 0x08, 0x1b, 0x85, 0x65, 0x29, 0x48, 0xc7, 0xc5, 0x7b, 0xb3, 0x6f, 0xbe, 0x80, - 0xeb, 0x8a, 0xe6, 0x44, 0xf7, 0x20, 0x33, 0x6f, 0xe8, 0x9b, 0xca, 0x1e, 0xc0, 0x21, 0xc2, 0xfc, - 0x43, 0x83, 0x1d, 0xf5, 0x8c, 0xa1, 0xef, 0xa0, 0x10, 0xef, 0x65, 0xc9, 0x75, 0xfb, 0xca, 0x22, - 0xe3, 0xb8, 0xc5, 0xb4, 0x8a, 0x63, 0xc2, 0xbc, 0x68, 0x12, 0xd4, 0x55, 0xec, 0x10, 0xe6, 0x89, - 0x2a, 0x86, 0x0f, 0x8a, 0x4e, 0xcc, 0xa8, 0x3a, 0xb1,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xdd, 0x53, 0x0c, 0x94, 0x6a, 0xa5, 0x55, 0xf7, - 0x3f, 0x0c, 0x94, 0x1f, 0x79, 0xbb, 0x29, 0xfe, 0xdf, 0x3e, 0xfd, 0x2f, 0x00, 0x00, 0xff, 0xff, - 0x8b, 0xfc, 0xfe, 0xf7, 0xf2, 0x0e, 0x00, 0x00, + Metadata: "github.com/openconfig/gnoi/cert/cert.proto", } From bf1e445d06ed09c665d9c2e4473dde102303cc7e Mon Sep 17 00:00:00 2001 From: Sam Ribeiro Date: Mon, 1 Oct 2018 12:21:08 +0200 Subject: [PATCH 028/238] Security model content --- simplified_security_model.md | 102 +++++++++++++++++++++++++++++++++++ 1 file changed, 102 insertions(+) diff --git a/simplified_security_model.md b/simplified_security_model.md index e69de29b..6d963b7c 100644 --- a/simplified_security_model.md +++ b/simplified_security_model.md @@ -0,0 +1,102 @@ +# Simplified security model for the gNOI Certificate service + +Contributors: Sam Ribeiro (ribeiro@google.com), Rob Shakir (robjs@google.com), +Alireza Ghaffarkhah (aghaffar@google.com), Eric Breverman (ejbrever@google.com), +Anees Shaikh (aashaikh@google.com) + +Updated: August 7th, 2018 + +Version: 0.1.0 + +## Simplified security model + +What follows is the description of one security model and its relation with the +gNOI Certificate Service. This security model does not assert itself as the only +one that can be employed. Different security models can be defined to address +specific scenarios. + +This simplified security model makes assumptions about the installation and +rotation of Certificates & CA Certificates. Their assumed usage is applicable +not only to gNOI and gNMI, but also other services like OpenFlow. + +This simplified security model presumes that a secure connection between the +Target and the Client already exist for installing and rotating Certificates. +Bootstrapping is out of scope for this model. + +This simplified security model assumes low risk of man-in-the-middle attacks +because it relinquishes mandating DNS verification for the Common Name of the +respective Client and Target Certificates. + +## Client + +A Client is defined as per the definition in the gNMI and gNOI specifications. + +## Target + +A Target is defined as per the definition in the gNMI and gNOI specifications. + +## Peer + +Peer is an entity that participates in establishing a connection with another +entity, using whatever protocol that makes use of Certificates to secure that +connection. An example would be an OpenFlow connection between an OpenFlow +switch and an OpenFlow Controller. Target and Client are particular cases of a +Peer. + +## Client is a Relying Party + +It is assumed that the Certificate Authority (CA) provides certificate signing +and generation services to the Client. The Client is therefore a Relying Party +for both certificates and CA bundles. The relationship and interaction between +the CA and the Client is out of scope for this model. + +## Secure Connection + +A secure connection is established between two Peers when mutual authentication +exists. Meaning that both Peers identify each other as genuine. An example is a +gNOI connection between the Client and the Target. The procedure for mutual +authentication is described below. + +## Target is authorized trust by the Client + +By authorized trust it is meant that the Target is granted the necessary +credentials (by the Client) to be able to identify Peers as genuine (using +whatever service uses these Certificates). The Target is authorized trust by the +Client via the successful execution of either: + +* gNOI certificate installation or rotation under a Secure connection (where + the Target is not compromised), or +* other provisioning or bootstrapping mechanism described outside of the scope + of this security model. + +## Target Certificate installation or rotation + +To initiate certificate installation using the gNOI Certificate Management +service: + +1. The Client sends parameters to the target so that it can generate a + Certificate Signing Request (CSR). +2. The Target then generates this CSR using its Private Key. +3. The Target then replies with the Certificate to the Client, which + subsequently provides the Certificate to the CA to be signed. +4. The signed Certificate is then returned to the Target by the Client and it + becomes one of the Target’s Certificates. + +Each one of the Target’s Certificate has a unique identifier, the Certificate +ID. This ID is used both to install and to rotate a Certificate. Certificate +installation for an existing Certificate ID MUST fail. Replacing an existing +Certificate must rather use the Certificate rotation mechanism, whose steps are +similar to the ones described above with the addition of final validation. + +## Target CA pool + +In order for the Target to validate the Client or a Peer's Certificates, it must +have a pool of one or more CA Certificates. These are provisioned onto the +Target by the Client during creation or rotation of the Target’s Certificates. + +## Mutual Authentication + +Mutual authentication exists when two Peers validate each other's Certificate +against their CA pools. Optionally, either the Client or the Target can validate +that the Common Name (CN) in each other’s Certificates matches the resolved one +for the Peer address of the connection. From ef5cbad52ee39135ff03d7bee506ffb427cfa45c Mon Sep 17 00:00:00 2001 From: Rob Shakir Date: Tue, 11 Dec 2018 13:02:04 -0800 Subject: [PATCH 029/238] In progress cleanup of gNOI protobufs and repository. --- BUILD.bazel | 21 - README.md | 18 +- bgp/bgp.pb.go | 56 +- bgp/bgp.proto | 6 +- cert/cert.pb.go | 1301 ++++------------- cert/cert.proto | 4 + common/common.pb.go | 109 ++ common.proto => common/common.proto | 2 +- compile_protos.sh | 3 +- diag/diag.pb.go | 735 ++++++++++ diag/diag.proto | 4 +- docs/README.md | 6 + .../simplified_security_model.md | 0 file/file.pb.go | 244 ++-- file/file.proto | 6 +- interface/interface.pb.go | 54 +- interface/interface.proto | 4 +- layer2/layer2.pb.go | 160 +- layer2/layer2.proto | 3 +- mpls/mpls.pb.go | 219 +-- mpls/mpls.proto | 4 + system/system.pb.go | 605 ++------ system/system.proto | 6 +- types.pb.go | 197 --- types/types.pb.go | 309 ++++ types.proto => types/types.proto | 8 + 26 files changed, 1875 insertions(+), 2209 deletions(-) delete mode 100644 BUILD.bazel create mode 100644 common/common.pb.go rename common.proto => common/common.proto (96%) create mode 100644 diag/diag.pb.go create mode 100644 docs/README.md rename simplified_security_model.md => docs/simplified_security_model.md (100%) delete mode 100644 types.pb.go create mode 100644 types/types.pb.go rename types.proto => types/types.proto (89%) diff --git a/BUILD.bazel b/BUILD.bazel deleted file mode 100644 index 9aa5ca40..00000000 --- a/BUILD.bazel +++ /dev/null @@ -1,21 +0,0 @@ -load("@io_bazel_rules_go//proto:go_proto_library.bzl", "go_proto_library") - -proto_library( - name = "gnoi_proto", - srcs = [ - "types.proto", - "common.proto" - ], - visibility = ["//visibility:public"], -) - -go_proto_library( - name = "go_default_library", - srcs = [ - "types.proto", - "common.proto" - ], - visibility = ["//visibility:public"], - rules_go_repo_only_for_internal_use = "@", - has_services = 1, -) diff --git a/README.md b/README.md index c45e3ab8..66d65528 100644 --- a/README.md +++ b/README.md @@ -1,21 +1,7 @@ # gNOI - gRPC Network Operations Interface gNOI defines a set of gRPC-based microservices for executing operational commands on network devices. -## Simplified security model - -See [simplified security model](simplified_security_model.md) for a security -model that can be implemented using gNOI. - # Rebuild *.pb.go files ``` -cd ${GOPATH}/src -protoc -I=${GOPATH}/src:${GOPATH}/src/github.com/openconfig/gnoi --go_out=plugins=grpc:. ${GOPATH}/src/github.com/openconfig/gnoi/types.proto -protoc -I=${GOPATH}/src:${GOPATH}/src/github.com/openconfig/gnoi --go_out=plugins=grpc:. ${GOPATH}/src/github.com/openconfig/gnoi/bgp/bgp.proto -protoc -I=${GOPATH}/src:${GOPATH}/src/github.com/openconfig/gnoi --go_out=plugins=grpc:. ${GOPATH}/src/github.com/openconfig/gnoi/cert/cert.proto -protoc -I=${GOPATH}/src:${GOPATH}/src/github.com/openconfig/gnoi --go_out=plugins=grpc:. ${GOPATH}/src/github.com/openconfig/gnoi/file/file.proto -protoc -I=${GOPATH}/src:${GOPATH}/src/github.com/openconfig/gnoi --go_out=plugins=grpc:. ${GOPATH}/src/github.com/openconfig/gnoi/interface/interface.proto -protoc -I=${GOPATH}/src:${GOPATH}/src/github.com/openconfig/gnoi --go_out=plugins=grpc:. ${GOPATH}/src/github.com/openconfig/gnoi/layer2/layer2.proto -protoc -I=${GOPATH}/src:${GOPATH}/src/github.com/openconfig/gnoi --go_out=plugins=grpc:. ${GOPATH}/src/github.com/openconfig/gnoi/mpls/mpls.proto -protoc -I=${GOPATH}/src:${GOPATH}/src/github.com/openconfig/gnoi --go_out=plugins=grpc:. ${GOPATH}/src/github.com/openconfig/gnoi/system/system.proto -cd - -``` +./compile_proto.sh +```` diff --git a/bgp/bgp.pb.go b/bgp/bgp.pb.go index 0a02ff6f..646ad88d 100644 --- a/bgp/bgp.pb.go +++ b/bgp/bgp.pb.go @@ -1,5 +1,6 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. +// Code generated by protoc-gen-go. // source: bgp/bgp.proto +// DO NOT EDIT! /* Package gnoi_bgp is a generated protocol buffer package. @@ -16,6 +17,7 @@ package gnoi_bgp import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" +import _ "types" import ( context "golang.org/x/net/context" @@ -72,27 +74,6 @@ func (m *ClearBGPNeighborRequest) String() string { return proto.Comp func (*ClearBGPNeighborRequest) ProtoMessage() {} func (*ClearBGPNeighborRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } -func (m *ClearBGPNeighborRequest) GetAddress() string { - if m != nil { - return m.Address - } - return "" -} - -func (m *ClearBGPNeighborRequest) GetRoutingInstance() string { - if m != nil { - return m.RoutingInstance - } - return "" -} - -func (m *ClearBGPNeighborRequest) GetMode() ClearBGPNeighborRequest_Mode { - if m != nil { - return m.Mode - } - return ClearBGPNeighborRequest_SOFT -} - type ClearBGPNeighborResponse struct { } @@ -184,20 +165,21 @@ var _BGP_serviceDesc = grpc.ServiceDesc{ func init() { proto.RegisterFile("bgp/bgp.proto", fileDescriptor0) } var fileDescriptor0 = []byte{ - // 234 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0x4d, 0x4a, 0x2f, 0xd0, + // 256 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xe2, 0xe2, 0x4d, 0x4a, 0x2f, 0xd0, 0x4f, 0x4a, 0x2f, 0xd0, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x48, 0xcf, 0xcb, 0xcf, 0xd4, - 0x4b, 0x4a, 0x2f, 0x50, 0x3a, 0xc4, 0xc8, 0x25, 0xee, 0x9c, 0x93, 0x9a, 0x58, 0xe4, 0xe4, 0x1e, - 0xe0, 0x97, 0x9a, 0x99, 0x9e, 0x91, 0x94, 0x5f, 0x14, 0x94, 0x5a, 0x58, 0x9a, 0x5a, 0x5c, 0x22, - 0x24, 0xc1, 0xc5, 0x9e, 0x98, 0x92, 0x52, 0x94, 0x5a, 0x5c, 0x2c, 0xc1, 0xa8, 0xc0, 0xa8, 0xc1, - 0x19, 0x04, 0xe3, 0x0a, 0x69, 0x72, 0x09, 0x14, 0xe5, 0x97, 0x96, 0x64, 0xe6, 0xa5, 0xc7, 0x67, - 0xe6, 0x15, 0x97, 0x24, 0xe6, 0x25, 0xa7, 0x4a, 0x30, 0x81, 0x95, 0xf0, 0x43, 0xc5, 0x3d, 0xa1, - 0xc2, 0x42, 0x56, 0x5c, 0x2c, 0xb9, 0xf9, 0x29, 0xa9, 0x12, 0xcc, 0x0a, 0x8c, 0x1a, 0x7c, 0x46, - 0x6a, 0x7a, 0x30, 0x9b, 0xf5, 0x70, 0xd8, 0xaa, 0xe7, 0x9b, 0x9f, 0x92, 0x1a, 0x04, 0xd6, 0xa3, - 0xa4, 0xc6, 0xc5, 0x02, 0xe2, 0x09, 0x71, 0x70, 0xb1, 0x04, 0xfb, 0xbb, 0x85, 0x08, 0x30, 0x08, - 0x71, 0x71, 0xb1, 0x81, 0x58, 0x9e, 0x7e, 0x02, 0x8c, 0x20, 0x51, 0x0f, 0xc7, 0x20, 0x17, 0x01, - 0x26, 0x25, 0x29, 0x2e, 0x09, 0x4c, 0xd3, 0x8a, 0x0b, 0xf2, 0xf3, 0x8a, 0x53, 0x8d, 0x92, 0xb8, - 0x98, 0x9d, 0xdc, 0x03, 0x84, 0xa2, 0xb9, 0x04, 0xd0, 0x95, 0x08, 0x29, 0x12, 0x74, 0x8c, 0x94, - 0x12, 0x3e, 0x25, 0x10, 0x1b, 0x94, 0x18, 0x92, 0xd8, 0xc0, 0xa1, 0x6a, 0x0c, 0x08, 0x00, 0x00, - 0xff, 0xff, 0x5a, 0x8a, 0x62, 0x2e, 0x66, 0x01, 0x00, 0x00, + 0x4b, 0x4a, 0x2f, 0x90, 0x12, 0x2c, 0xa9, 0x2c, 0x48, 0x2d, 0xd6, 0x07, 0x93, 0x10, 0x49, 0xa5, + 0x43, 0x8c, 0x5c, 0xe2, 0xce, 0x39, 0xa9, 0x89, 0x45, 0x4e, 0xee, 0x01, 0x7e, 0xa9, 0x99, 0xe9, + 0x19, 0x49, 0xf9, 0x45, 0x41, 0xa9, 0x85, 0xa5, 0xa9, 0xc5, 0x25, 0x42, 0x12, 0x5c, 0xec, 0x89, + 0x29, 0x29, 0x45, 0xa9, 0xc5, 0xc5, 0x12, 0x8c, 0x0a, 0x8c, 0x1a, 0x9c, 0x41, 0x30, 0xae, 0x90, + 0x26, 0x97, 0x40, 0x51, 0x7e, 0x69, 0x49, 0x66, 0x5e, 0x7a, 0x7c, 0x66, 0x5e, 0x71, 0x49, 0x62, + 0x5e, 0x72, 0xaa, 0x04, 0x13, 0x58, 0x09, 0x3f, 0x54, 0xdc, 0x13, 0x2a, 0x2c, 0x64, 0xc5, 0xc5, + 0x92, 0x9b, 0x9f, 0x92, 0x2a, 0xc1, 0xac, 0xc0, 0xa8, 0xc1, 0x67, 0xa4, 0xa6, 0x07, 0x73, 0x8c, + 0x1e, 0x0e, 0x5b, 0xf5, 0x7c, 0xf3, 0x53, 0x52, 0x83, 0xc0, 0x7a, 0x94, 0xd4, 0xb8, 0x58, 0x40, + 0x3c, 0x21, 0x0e, 0x2e, 0x96, 0x60, 0x7f, 0xb7, 0x10, 0x01, 0x06, 0x21, 0x2e, 0x2e, 0x36, 0x10, + 0xcb, 0xd3, 0x4f, 0x80, 0x11, 0x24, 0xea, 0xe1, 0x18, 0xe4, 0x22, 0xc0, 0xa4, 0x24, 0xc5, 0x25, + 0x81, 0x69, 0x5a, 0x71, 0x41, 0x7e, 0x5e, 0x71, 0xaa, 0x51, 0x12, 0x17, 0xb3, 0x93, 0x7b, 0x80, + 0x50, 0x34, 0x97, 0x00, 0xba, 0x12, 0x21, 0x45, 0x82, 0x8e, 0x91, 0x52, 0xc2, 0xa7, 0x04, 0x62, + 0x83, 0x12, 0x83, 0x13, 0xc7, 0x25, 0x3b, 0x56, 0x03, 0x3d, 0x43, 0x3d, 0x83, 0x24, 0x36, 0x70, + 0xa8, 0x1a, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, 0x1b, 0x68, 0x5d, 0x50, 0x83, 0x01, 0x00, 0x00, } diff --git a/bgp/bgp.proto b/bgp/bgp.proto index 8a180eab..6aa07228 100644 --- a/bgp/bgp.proto +++ b/bgp/bgp.proto @@ -16,10 +16,14 @@ syntax = "proto3"; +import "types/types.proto"; + package gnoi.bgp; -service BGP { +// The current semantic version of the gNOI BGP service. +option (gnoi.gnoi_version) = "0.1.0"; +service BGP { // ClearBGPNeighbor clears a BGP session. rpc ClearBGPNeighbor(ClearBGPNeighborRequest) returns (ClearBGPNeighborResponse) {} diff --git a/cert/cert.pb.go b/cert/cert.pb.go index 8686ccc9..2caa2fea 100644 --- a/cert/cert.pb.go +++ b/cert/cert.pb.go @@ -1,14 +1,47 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: github.com/openconfig/gnoi/cert/cert.proto - +// Code generated by protoc-gen-go. +// source: cert/cert.proto +// DO NOT EDIT! + +/* +Package gnoi_certificate is a generated protocol buffer package. + +It is generated from these files: + cert/cert.proto + +It has these top-level messages: + RotateCertificateRequest + RotateCertificateResponse + InstallCertificateRequest + InstallCertificateResponse + GenerateCSRRequest + CSRParams + GenerateCSRResponse + LoadCertificateRequest + LoadCertificateResponse + FinalizeRequest + GetCertificatesRequest + GetCertificatesResponse + CertificateInfo + RevokeCertificatesRequest + RevokeCertificatesResponse + CertificateRevocationError + CanGenerateCSRRequest + CanGenerateCSRResponse + Certificate + CSR + KeyPair + Endpoint +*/ package gnoi_certificate +import proto "github.com/golang/protobuf/proto" +import fmt "fmt" +import math "math" +import _ "types" + import ( - fmt "fmt" - proto "github.com/golang/protobuf/proto" context "golang.org/x/net/context" grpc "google.golang.org/grpc" - math "math" ) // Reference imports to suppress errors if they are not otherwise used. @@ -36,7 +69,6 @@ var CertificateType_name = map[int32]string{ 0: "CT_UNKNOWN", 1: "CT_X509", } - var CertificateType_value = map[string]int32{ "CT_UNKNOWN": 0, "CT_X509": 1, @@ -45,10 +77,7 @@ var CertificateType_value = map[string]int32{ func (x CertificateType) String() string { return proto.EnumName(CertificateType_name, int32(x)) } - -func (CertificateType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_35089d6bfca6de66, []int{0} -} +func (CertificateType) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } // Algorithm to be used for generation the key pair. type KeyType int32 @@ -64,7 +93,6 @@ var KeyType_name = map[int32]string{ 0: "KT_UNKNOWN", 1: "KT_RSA", } - var KeyType_value = map[string]int32{ "KT_UNKNOWN": 0, "KT_RSA": 1, @@ -73,10 +101,7 @@ var KeyType_value = map[string]int32{ func (x KeyType) String() string { return proto.EnumName(KeyType_name, int32(x)) } - -func (KeyType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_35089d6bfca6de66, []int{1} -} +func (KeyType) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } // Type of endpoint that can use a cert. This list is to be extended based on // conversation with vendors. @@ -93,7 +118,6 @@ var Endpoint_Type_name = map[int32]string{ 1: "EP_IPSEC_TUNNEL", 2: "EP_DAEMON", } - var Endpoint_Type_value = map[string]int32{ "EP_UNSPECIFIED": 0, "EP_IPSEC_TUNNEL": 1, @@ -103,10 +127,7 @@ var Endpoint_Type_value = map[string]int32{ func (x Endpoint_Type) String() string { return proto.EnumName(Endpoint_Type_name, int32(x)) } - -func (Endpoint_Type) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_35089d6bfca6de66, []int{21, 0} -} +func (Endpoint_Type) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{21, 0} } // Request messages to rotate existing certificates on the target. type RotateCertificateRequest struct { @@ -116,57 +137,30 @@ type RotateCertificateRequest struct { // *RotateCertificateRequest_GenerateCsr // *RotateCertificateRequest_LoadCertificate // *RotateCertificateRequest_FinalizeRotation - RotateRequest isRotateCertificateRequest_RotateRequest `protobuf_oneof:"rotate_request"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + RotateRequest isRotateCertificateRequest_RotateRequest `protobuf_oneof:"rotate_request"` } -func (m *RotateCertificateRequest) Reset() { *m = RotateCertificateRequest{} } -func (m *RotateCertificateRequest) String() string { return proto.CompactTextString(m) } -func (*RotateCertificateRequest) ProtoMessage() {} -func (*RotateCertificateRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_35089d6bfca6de66, []int{0} -} - -func (m *RotateCertificateRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RotateCertificateRequest.Unmarshal(m, b) -} -func (m *RotateCertificateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RotateCertificateRequest.Marshal(b, m, deterministic) -} -func (m *RotateCertificateRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RotateCertificateRequest.Merge(m, src) -} -func (m *RotateCertificateRequest) XXX_Size() int { - return xxx_messageInfo_RotateCertificateRequest.Size(m) -} -func (m *RotateCertificateRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RotateCertificateRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RotateCertificateRequest proto.InternalMessageInfo +func (m *RotateCertificateRequest) Reset() { *m = RotateCertificateRequest{} } +func (m *RotateCertificateRequest) String() string { return proto.CompactTextString(m) } +func (*RotateCertificateRequest) ProtoMessage() {} +func (*RotateCertificateRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } type isRotateCertificateRequest_RotateRequest interface { isRotateCertificateRequest_RotateRequest() } type RotateCertificateRequest_GenerateCsr struct { - GenerateCsr *GenerateCSRRequest `protobuf:"bytes,1,opt,name=generate_csr,json=generateCsr,proto3,oneof"` + GenerateCsr *GenerateCSRRequest `protobuf:"bytes,1,opt,name=generate_csr,json=generateCsr,oneof"` } - type RotateCertificateRequest_LoadCertificate struct { - LoadCertificate *LoadCertificateRequest `protobuf:"bytes,2,opt,name=load_certificate,json=loadCertificate,proto3,oneof"` + LoadCertificate *LoadCertificateRequest `protobuf:"bytes,2,opt,name=load_certificate,json=loadCertificate,oneof"` } - type RotateCertificateRequest_FinalizeRotation struct { - FinalizeRotation *FinalizeRequest `protobuf:"bytes,3,opt,name=finalize_rotation,json=finalizeRotation,proto3,oneof"` + FinalizeRotation *FinalizeRequest `protobuf:"bytes,3,opt,name=finalize_rotation,json=finalizeRotation,oneof"` } -func (*RotateCertificateRequest_GenerateCsr) isRotateCertificateRequest_RotateRequest() {} - -func (*RotateCertificateRequest_LoadCertificate) isRotateCertificateRequest_RotateRequest() {} - +func (*RotateCertificateRequest_GenerateCsr) isRotateCertificateRequest_RotateRequest() {} +func (*RotateCertificateRequest_LoadCertificate) isRotateCertificateRequest_RotateRequest() {} func (*RotateCertificateRequest_FinalizeRotation) isRotateCertificateRequest_RotateRequest() {} func (m *RotateCertificateRequest) GetRotateRequest() isRotateCertificateRequest_RotateRequest { @@ -270,17 +264,17 @@ func _RotateCertificateRequest_OneofSizer(msg proto.Message) (n int) { switch x := m.RotateRequest.(type) { case *RotateCertificateRequest_GenerateCsr: s := proto.Size(x.GenerateCsr) - n += 1 // tag and wire + n += proto.SizeVarint(1<<3 | proto.WireBytes) n += proto.SizeVarint(uint64(s)) n += s case *RotateCertificateRequest_LoadCertificate: s := proto.Size(x.LoadCertificate) - n += 1 // tag and wire + n += proto.SizeVarint(2<<3 | proto.WireBytes) n += proto.SizeVarint(uint64(s)) n += s case *RotateCertificateRequest_FinalizeRotation: s := proto.Size(x.FinalizeRotation) - n += 1 // tag and wire + n += proto.SizeVarint(3<<3 | proto.WireBytes) n += proto.SizeVarint(uint64(s)) n += s case nil: @@ -297,51 +291,26 @@ type RotateCertificateResponse struct { // Types that are valid to be assigned to RotateResponse: // *RotateCertificateResponse_GeneratedCsr // *RotateCertificateResponse_LoadCertificate - RotateResponse isRotateCertificateResponse_RotateResponse `protobuf_oneof:"rotate_response"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + RotateResponse isRotateCertificateResponse_RotateResponse `protobuf_oneof:"rotate_response"` } -func (m *RotateCertificateResponse) Reset() { *m = RotateCertificateResponse{} } -func (m *RotateCertificateResponse) String() string { return proto.CompactTextString(m) } -func (*RotateCertificateResponse) ProtoMessage() {} -func (*RotateCertificateResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_35089d6bfca6de66, []int{1} -} - -func (m *RotateCertificateResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RotateCertificateResponse.Unmarshal(m, b) -} -func (m *RotateCertificateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RotateCertificateResponse.Marshal(b, m, deterministic) -} -func (m *RotateCertificateResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RotateCertificateResponse.Merge(m, src) -} -func (m *RotateCertificateResponse) XXX_Size() int { - return xxx_messageInfo_RotateCertificateResponse.Size(m) -} -func (m *RotateCertificateResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RotateCertificateResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RotateCertificateResponse proto.InternalMessageInfo +func (m *RotateCertificateResponse) Reset() { *m = RotateCertificateResponse{} } +func (m *RotateCertificateResponse) String() string { return proto.CompactTextString(m) } +func (*RotateCertificateResponse) ProtoMessage() {} +func (*RotateCertificateResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } type isRotateCertificateResponse_RotateResponse interface { isRotateCertificateResponse_RotateResponse() } type RotateCertificateResponse_GeneratedCsr struct { - GeneratedCsr *GenerateCSRResponse `protobuf:"bytes,1,opt,name=generated_csr,json=generatedCsr,proto3,oneof"` + GeneratedCsr *GenerateCSRResponse `protobuf:"bytes,1,opt,name=generated_csr,json=generatedCsr,oneof"` } - type RotateCertificateResponse_LoadCertificate struct { - LoadCertificate *LoadCertificateResponse `protobuf:"bytes,2,opt,name=load_certificate,json=loadCertificate,proto3,oneof"` + LoadCertificate *LoadCertificateResponse `protobuf:"bytes,2,opt,name=load_certificate,json=loadCertificate,oneof"` } -func (*RotateCertificateResponse_GeneratedCsr) isRotateCertificateResponse_RotateResponse() {} - +func (*RotateCertificateResponse_GeneratedCsr) isRotateCertificateResponse_RotateResponse() {} func (*RotateCertificateResponse_LoadCertificate) isRotateCertificateResponse_RotateResponse() {} func (m *RotateCertificateResponse) GetRotateResponse() isRotateCertificateResponse_RotateResponse { @@ -424,12 +393,12 @@ func _RotateCertificateResponse_OneofSizer(msg proto.Message) (n int) { switch x := m.RotateResponse.(type) { case *RotateCertificateResponse_GeneratedCsr: s := proto.Size(x.GeneratedCsr) - n += 1 // tag and wire + n += proto.SizeVarint(1<<3 | proto.WireBytes) n += proto.SizeVarint(uint64(s)) n += s case *RotateCertificateResponse_LoadCertificate: s := proto.Size(x.LoadCertificate) - n += 1 // tag and wire + n += proto.SizeVarint(2<<3 | proto.WireBytes) n += proto.SizeVarint(uint64(s)) n += s case nil: @@ -446,51 +415,26 @@ type InstallCertificateRequest struct { // Types that are valid to be assigned to InstallRequest: // *InstallCertificateRequest_GenerateCsr // *InstallCertificateRequest_LoadCertificate - InstallRequest isInstallCertificateRequest_InstallRequest `protobuf_oneof:"install_request"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + InstallRequest isInstallCertificateRequest_InstallRequest `protobuf_oneof:"install_request"` } -func (m *InstallCertificateRequest) Reset() { *m = InstallCertificateRequest{} } -func (m *InstallCertificateRequest) String() string { return proto.CompactTextString(m) } -func (*InstallCertificateRequest) ProtoMessage() {} -func (*InstallCertificateRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_35089d6bfca6de66, []int{2} -} - -func (m *InstallCertificateRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_InstallCertificateRequest.Unmarshal(m, b) -} -func (m *InstallCertificateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_InstallCertificateRequest.Marshal(b, m, deterministic) -} -func (m *InstallCertificateRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_InstallCertificateRequest.Merge(m, src) -} -func (m *InstallCertificateRequest) XXX_Size() int { - return xxx_messageInfo_InstallCertificateRequest.Size(m) -} -func (m *InstallCertificateRequest) XXX_DiscardUnknown() { - xxx_messageInfo_InstallCertificateRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_InstallCertificateRequest proto.InternalMessageInfo +func (m *InstallCertificateRequest) Reset() { *m = InstallCertificateRequest{} } +func (m *InstallCertificateRequest) String() string { return proto.CompactTextString(m) } +func (*InstallCertificateRequest) ProtoMessage() {} +func (*InstallCertificateRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} } type isInstallCertificateRequest_InstallRequest interface { isInstallCertificateRequest_InstallRequest() } type InstallCertificateRequest_GenerateCsr struct { - GenerateCsr *GenerateCSRRequest `protobuf:"bytes,1,opt,name=generate_csr,json=generateCsr,proto3,oneof"` + GenerateCsr *GenerateCSRRequest `protobuf:"bytes,1,opt,name=generate_csr,json=generateCsr,oneof"` } - type InstallCertificateRequest_LoadCertificate struct { - LoadCertificate *LoadCertificateRequest `protobuf:"bytes,2,opt,name=load_certificate,json=loadCertificate,proto3,oneof"` + LoadCertificate *LoadCertificateRequest `protobuf:"bytes,2,opt,name=load_certificate,json=loadCertificate,oneof"` } -func (*InstallCertificateRequest_GenerateCsr) isInstallCertificateRequest_InstallRequest() {} - +func (*InstallCertificateRequest_GenerateCsr) isInstallCertificateRequest_InstallRequest() {} func (*InstallCertificateRequest_LoadCertificate) isInstallCertificateRequest_InstallRequest() {} func (m *InstallCertificateRequest) GetInstallRequest() isInstallCertificateRequest_InstallRequest { @@ -573,12 +517,12 @@ func _InstallCertificateRequest_OneofSizer(msg proto.Message) (n int) { switch x := m.InstallRequest.(type) { case *InstallCertificateRequest_GenerateCsr: s := proto.Size(x.GenerateCsr) - n += 1 // tag and wire + n += proto.SizeVarint(1<<3 | proto.WireBytes) n += proto.SizeVarint(uint64(s)) n += s case *InstallCertificateRequest_LoadCertificate: s := proto.Size(x.LoadCertificate) - n += 1 // tag and wire + n += proto.SizeVarint(2<<3 | proto.WireBytes) n += proto.SizeVarint(uint64(s)) n += s case nil: @@ -595,51 +539,26 @@ type InstallCertificateResponse struct { // Types that are valid to be assigned to InstallResponse: // *InstallCertificateResponse_GeneratedCsr // *InstallCertificateResponse_LoadCertificate - InstallResponse isInstallCertificateResponse_InstallResponse `protobuf_oneof:"install_response"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + InstallResponse isInstallCertificateResponse_InstallResponse `protobuf_oneof:"install_response"` } -func (m *InstallCertificateResponse) Reset() { *m = InstallCertificateResponse{} } -func (m *InstallCertificateResponse) String() string { return proto.CompactTextString(m) } -func (*InstallCertificateResponse) ProtoMessage() {} -func (*InstallCertificateResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_35089d6bfca6de66, []int{3} -} - -func (m *InstallCertificateResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_InstallCertificateResponse.Unmarshal(m, b) -} -func (m *InstallCertificateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_InstallCertificateResponse.Marshal(b, m, deterministic) -} -func (m *InstallCertificateResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_InstallCertificateResponse.Merge(m, src) -} -func (m *InstallCertificateResponse) XXX_Size() int { - return xxx_messageInfo_InstallCertificateResponse.Size(m) -} -func (m *InstallCertificateResponse) XXX_DiscardUnknown() { - xxx_messageInfo_InstallCertificateResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_InstallCertificateResponse proto.InternalMessageInfo +func (m *InstallCertificateResponse) Reset() { *m = InstallCertificateResponse{} } +func (m *InstallCertificateResponse) String() string { return proto.CompactTextString(m) } +func (*InstallCertificateResponse) ProtoMessage() {} +func (*InstallCertificateResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} } type isInstallCertificateResponse_InstallResponse interface { isInstallCertificateResponse_InstallResponse() } type InstallCertificateResponse_GeneratedCsr struct { - GeneratedCsr *GenerateCSRResponse `protobuf:"bytes,1,opt,name=generated_csr,json=generatedCsr,proto3,oneof"` + GeneratedCsr *GenerateCSRResponse `protobuf:"bytes,1,opt,name=generated_csr,json=generatedCsr,oneof"` } - type InstallCertificateResponse_LoadCertificate struct { - LoadCertificate *LoadCertificateResponse `protobuf:"bytes,2,opt,name=load_certificate,json=loadCertificate,proto3,oneof"` + LoadCertificate *LoadCertificateResponse `protobuf:"bytes,2,opt,name=load_certificate,json=loadCertificate,oneof"` } -func (*InstallCertificateResponse_GeneratedCsr) isInstallCertificateResponse_InstallResponse() {} - +func (*InstallCertificateResponse_GeneratedCsr) isInstallCertificateResponse_InstallResponse() {} func (*InstallCertificateResponse_LoadCertificate) isInstallCertificateResponse_InstallResponse() {} func (m *InstallCertificateResponse) GetInstallResponse() isInstallCertificateResponse_InstallResponse { @@ -722,12 +641,12 @@ func _InstallCertificateResponse_OneofSizer(msg proto.Message) (n int) { switch x := m.InstallResponse.(type) { case *InstallCertificateResponse_GeneratedCsr: s := proto.Size(x.GeneratedCsr) - n += 1 // tag and wire + n += proto.SizeVarint(1<<3 | proto.WireBytes) n += proto.SizeVarint(uint64(s)) n += s case *InstallCertificateResponse_LoadCertificate: s := proto.Size(x.LoadCertificate) - n += 1 // tag and wire + n += proto.SizeVarint(2<<3 | proto.WireBytes) n += proto.SizeVarint(uint64(s)) n += s case nil: @@ -754,40 +673,17 @@ func _InstallCertificateResponse_OneofSizer(msg proto.Message) (n int) { // the GenerateCSRRequest should fail. type GenerateCSRRequest struct { // Parameters for creating a CSR. - CsrParams *CSRParams `protobuf:"bytes,1,opt,name=csr_params,json=csrParams,proto3" json:"csr_params,omitempty"` + CsrParams *CSRParams `protobuf:"bytes,1,opt,name=csr_params,json=csrParams" json:"csr_params,omitempty"` // The certificate id with which this CSR will be associated. The target // configuration should bind an entity which wants to use a certificate to // the certificate_id it should use. - CertificateId string `protobuf:"bytes,2,opt,name=certificate_id,json=certificateId,proto3" json:"certificate_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GenerateCSRRequest) Reset() { *m = GenerateCSRRequest{} } -func (m *GenerateCSRRequest) String() string { return proto.CompactTextString(m) } -func (*GenerateCSRRequest) ProtoMessage() {} -func (*GenerateCSRRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_35089d6bfca6de66, []int{4} + CertificateId string `protobuf:"bytes,2,opt,name=certificate_id,json=certificateId" json:"certificate_id,omitempty"` } -func (m *GenerateCSRRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GenerateCSRRequest.Unmarshal(m, b) -} -func (m *GenerateCSRRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GenerateCSRRequest.Marshal(b, m, deterministic) -} -func (m *GenerateCSRRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GenerateCSRRequest.Merge(m, src) -} -func (m *GenerateCSRRequest) XXX_Size() int { - return xxx_messageInfo_GenerateCSRRequest.Size(m) -} -func (m *GenerateCSRRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GenerateCSRRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_GenerateCSRRequest proto.InternalMessageInfo +func (m *GenerateCSRRequest) Reset() { *m = GenerateCSRRequest{} } +func (m *GenerateCSRRequest) String() string { return proto.CompactTextString(m) } +func (*GenerateCSRRequest) ProtoMessage() {} +func (*GenerateCSRRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} } func (m *GenerateCSRRequest) GetCsrParams() *CSRParams { if m != nil { @@ -796,139 +692,32 @@ func (m *GenerateCSRRequest) GetCsrParams() *CSRParams { return nil } -func (m *GenerateCSRRequest) GetCertificateId() string { - if m != nil { - return m.CertificateId - } - return "" -} - // Parameters to be used when generating a Certificate Signing Request. type CSRParams struct { // The type of certificate which will be associated for this CSR. - Type CertificateType `protobuf:"varint,1,opt,name=type,proto3,enum=gnoi.certificate.CertificateType" json:"type,omitempty"` + Type CertificateType `protobuf:"varint,1,opt,name=type,enum=gnoi.certificate.CertificateType" json:"type,omitempty"` // Minimum size of the key to be used by the target when generating a // public/private key pair. - MinKeySize uint32 `protobuf:"varint,2,opt,name=min_key_size,json=minKeySize,proto3" json:"min_key_size,omitempty"` + MinKeySize uint32 `protobuf:"varint,2,opt,name=min_key_size,json=minKeySize" json:"min_key_size,omitempty"` // If provided, the target must use the provided key type. If the target // cannot use the algorithm specified in the key_type, it should cancel the // stream with an Unimplemented error. - KeyType KeyType `protobuf:"varint,3,opt,name=key_type,json=keyType,proto3,enum=gnoi.certificate.KeyType" json:"key_type,omitempty"` + KeyType KeyType `protobuf:"varint,3,opt,name=key_type,json=keyType,enum=gnoi.certificate.KeyType" json:"key_type,omitempty"` // --- common set of parameters applicable for any type of certificate --- // - CommonName string `protobuf:"bytes,4,opt,name=common_name,json=commonName,proto3" json:"common_name,omitempty"` - Country string `protobuf:"bytes,5,opt,name=country,proto3" json:"country,omitempty"` - State string `protobuf:"bytes,6,opt,name=state,proto3" json:"state,omitempty"` - City string `protobuf:"bytes,7,opt,name=city,proto3" json:"city,omitempty"` - Organization string `protobuf:"bytes,8,opt,name=organization,proto3" json:"organization,omitempty"` - OrganizationalUnit string `protobuf:"bytes,9,opt,name=organizational_unit,json=organizationalUnit,proto3" json:"organizational_unit,omitempty"` - IpAddress string `protobuf:"bytes,10,opt,name=ip_address,json=ipAddress,proto3" json:"ip_address,omitempty"` - EmailId string `protobuf:"bytes,11,opt,name=email_id,json=emailId,proto3" json:"email_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + CommonName string `protobuf:"bytes,4,opt,name=common_name,json=commonName" json:"common_name,omitempty"` + Country string `protobuf:"bytes,5,opt,name=country" json:"country,omitempty"` + State string `protobuf:"bytes,6,opt,name=state" json:"state,omitempty"` + City string `protobuf:"bytes,7,opt,name=city" json:"city,omitempty"` + Organization string `protobuf:"bytes,8,opt,name=organization" json:"organization,omitempty"` + OrganizationalUnit string `protobuf:"bytes,9,opt,name=organizational_unit,json=organizationalUnit" json:"organizational_unit,omitempty"` + IpAddress string `protobuf:"bytes,10,opt,name=ip_address,json=ipAddress" json:"ip_address,omitempty"` + EmailId string `protobuf:"bytes,11,opt,name=email_id,json=emailId" json:"email_id,omitempty"` } -func (m *CSRParams) Reset() { *m = CSRParams{} } -func (m *CSRParams) String() string { return proto.CompactTextString(m) } -func (*CSRParams) ProtoMessage() {} -func (*CSRParams) Descriptor() ([]byte, []int) { - return fileDescriptor_35089d6bfca6de66, []int{5} -} - -func (m *CSRParams) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CSRParams.Unmarshal(m, b) -} -func (m *CSRParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CSRParams.Marshal(b, m, deterministic) -} -func (m *CSRParams) XXX_Merge(src proto.Message) { - xxx_messageInfo_CSRParams.Merge(m, src) -} -func (m *CSRParams) XXX_Size() int { - return xxx_messageInfo_CSRParams.Size(m) -} -func (m *CSRParams) XXX_DiscardUnknown() { - xxx_messageInfo_CSRParams.DiscardUnknown(m) -} - -var xxx_messageInfo_CSRParams proto.InternalMessageInfo - -func (m *CSRParams) GetType() CertificateType { - if m != nil { - return m.Type - } - return CertificateType_CT_UNKNOWN -} - -func (m *CSRParams) GetMinKeySize() uint32 { - if m != nil { - return m.MinKeySize - } - return 0 -} - -func (m *CSRParams) GetKeyType() KeyType { - if m != nil { - return m.KeyType - } - return KeyType_KT_UNKNOWN -} - -func (m *CSRParams) GetCommonName() string { - if m != nil { - return m.CommonName - } - return "" -} - -func (m *CSRParams) GetCountry() string { - if m != nil { - return m.Country - } - return "" -} - -func (m *CSRParams) GetState() string { - if m != nil { - return m.State - } - return "" -} - -func (m *CSRParams) GetCity() string { - if m != nil { - return m.City - } - return "" -} - -func (m *CSRParams) GetOrganization() string { - if m != nil { - return m.Organization - } - return "" -} - -func (m *CSRParams) GetOrganizationalUnit() string { - if m != nil { - return m.OrganizationalUnit - } - return "" -} - -func (m *CSRParams) GetIpAddress() string { - if m != nil { - return m.IpAddress - } - return "" -} - -func (m *CSRParams) GetEmailId() string { - if m != nil { - return m.EmailId - } - return "" -} +func (m *CSRParams) Reset() { *m = CSRParams{} } +func (m *CSRParams) String() string { return proto.CompactTextString(m) } +func (*CSRParams) ProtoMessage() {} +func (*CSRParams) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} } // GenerateCSRResponse contains the CSR associated with the Certificate ID // supplied in the GenerateCSRRequest. When a Certificate is subsequently @@ -938,36 +727,13 @@ func (m *CSRParams) GetEmailId() string { // An Unimplemented error will be returned if the target cannot generate a CSR // as per the request. In this case, the caller must generate its own key pair. type GenerateCSRResponse struct { - Csr *CSR `protobuf:"bytes,1,opt,name=csr,proto3" json:"csr,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Csr *CSR `protobuf:"bytes,1,opt,name=csr" json:"csr,omitempty"` } -func (m *GenerateCSRResponse) Reset() { *m = GenerateCSRResponse{} } -func (m *GenerateCSRResponse) String() string { return proto.CompactTextString(m) } -func (*GenerateCSRResponse) ProtoMessage() {} -func (*GenerateCSRResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_35089d6bfca6de66, []int{6} -} - -func (m *GenerateCSRResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GenerateCSRResponse.Unmarshal(m, b) -} -func (m *GenerateCSRResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GenerateCSRResponse.Marshal(b, m, deterministic) -} -func (m *GenerateCSRResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GenerateCSRResponse.Merge(m, src) -} -func (m *GenerateCSRResponse) XXX_Size() int { - return xxx_messageInfo_GenerateCSRResponse.Size(m) -} -func (m *GenerateCSRResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GenerateCSRResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_GenerateCSRResponse proto.InternalMessageInfo +func (m *GenerateCSRResponse) Reset() { *m = GenerateCSRResponse{} } +func (m *GenerateCSRResponse) String() string { return proto.CompactTextString(m) } +func (*GenerateCSRResponse) ProtoMessage() {} +func (*GenerateCSRResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} } func (m *GenerateCSRResponse) GetCsr() *CSR { if m != nil { @@ -992,48 +758,25 @@ func (m *GenerateCSRResponse) GetCsr() *CSR { // the LoadCertificateRequest must fail. type LoadCertificateRequest struct { // The certificate to be Loaded on the target. - Certificate *Certificate `protobuf:"bytes,1,opt,name=certificate,proto3" json:"certificate,omitempty"` + Certificate *Certificate `protobuf:"bytes,1,opt,name=certificate" json:"certificate,omitempty"` // The key pair to be used with the certificate. This is provided in the event // that the target cannot generate a CSR (and the corresponding public/private // keys). - KeyPair *KeyPair `protobuf:"bytes,2,opt,name=key_pair,json=keyPair,proto3" json:"key_pair,omitempty"` + KeyPair *KeyPair `protobuf:"bytes,2,opt,name=key_pair,json=keyPair" json:"key_pair,omitempty"` // Certificate Id of the above certificate. This is to be provided only when // there is an externally generated key pair. - CertificateId string `protobuf:"bytes,3,opt,name=certificate_id,json=certificateId,proto3" json:"certificate_id,omitempty"` + CertificateId string `protobuf:"bytes,3,opt,name=certificate_id,json=certificateId" json:"certificate_id,omitempty"` // Optional bundle of CA certificates. When not empty, the provided // certificates should squash the existing bundle. This field provides a // simplified means to provision a CA bundle that can be used to validate // other peer's certificates. - CaCertificates []*Certificate `protobuf:"bytes,4,rep,name=ca_certificates,json=caCertificates,proto3" json:"ca_certificates,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + CaCertificates []*Certificate `protobuf:"bytes,4,rep,name=ca_certificates,json=caCertificates" json:"ca_certificates,omitempty"` } -func (m *LoadCertificateRequest) Reset() { *m = LoadCertificateRequest{} } -func (m *LoadCertificateRequest) String() string { return proto.CompactTextString(m) } -func (*LoadCertificateRequest) ProtoMessage() {} -func (*LoadCertificateRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_35089d6bfca6de66, []int{7} -} - -func (m *LoadCertificateRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_LoadCertificateRequest.Unmarshal(m, b) -} -func (m *LoadCertificateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_LoadCertificateRequest.Marshal(b, m, deterministic) -} -func (m *LoadCertificateRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_LoadCertificateRequest.Merge(m, src) -} -func (m *LoadCertificateRequest) XXX_Size() int { - return xxx_messageInfo_LoadCertificateRequest.Size(m) -} -func (m *LoadCertificateRequest) XXX_DiscardUnknown() { - xxx_messageInfo_LoadCertificateRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_LoadCertificateRequest proto.InternalMessageInfo +func (m *LoadCertificateRequest) Reset() { *m = LoadCertificateRequest{} } +func (m *LoadCertificateRequest) String() string { return proto.CompactTextString(m) } +func (*LoadCertificateRequest) ProtoMessage() {} +func (*LoadCertificateRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} } func (m *LoadCertificateRequest) GetCertificate() *Certificate { if m != nil { @@ -1049,13 +792,6 @@ func (m *LoadCertificateRequest) GetKeyPair() *KeyPair { return nil } -func (m *LoadCertificateRequest) GetCertificateId() string { - if m != nil { - return m.CertificateId - } - return "" -} - func (m *LoadCertificateRequest) GetCaCertificates() []*Certificate { if m != nil { return m.CaCertificates @@ -1067,136 +803,44 @@ func (m *LoadCertificateRequest) GetCaCertificates() []*Certificate { // If the target could not load the certificate, it must end the RPC stream with // a suitable RPC error about why the Certificate was not loaded. type LoadCertificateResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` } -func (m *LoadCertificateResponse) Reset() { *m = LoadCertificateResponse{} } -func (m *LoadCertificateResponse) String() string { return proto.CompactTextString(m) } -func (*LoadCertificateResponse) ProtoMessage() {} -func (*LoadCertificateResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_35089d6bfca6de66, []int{8} -} - -func (m *LoadCertificateResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_LoadCertificateResponse.Unmarshal(m, b) -} -func (m *LoadCertificateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_LoadCertificateResponse.Marshal(b, m, deterministic) -} -func (m *LoadCertificateResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_LoadCertificateResponse.Merge(m, src) -} -func (m *LoadCertificateResponse) XXX_Size() int { - return xxx_messageInfo_LoadCertificateResponse.Size(m) -} -func (m *LoadCertificateResponse) XXX_DiscardUnknown() { - xxx_messageInfo_LoadCertificateResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_LoadCertificateResponse proto.InternalMessageInfo +func (m *LoadCertificateResponse) Reset() { *m = LoadCertificateResponse{} } +func (m *LoadCertificateResponse) String() string { return proto.CompactTextString(m) } +func (*LoadCertificateResponse) ProtoMessage() {} +func (*LoadCertificateResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} } // A Finalize message is sent to the target to confirm the Rotation of // the certificate and that the certificate should not be rolled back when // the RPC concludes. The certificate must be rolled back if the target returns // an error after receiving a Finalize message. type FinalizeRequest struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *FinalizeRequest) Reset() { *m = FinalizeRequest{} } -func (m *FinalizeRequest) String() string { return proto.CompactTextString(m) } -func (*FinalizeRequest) ProtoMessage() {} -func (*FinalizeRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_35089d6bfca6de66, []int{9} -} - -func (m *FinalizeRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_FinalizeRequest.Unmarshal(m, b) -} -func (m *FinalizeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_FinalizeRequest.Marshal(b, m, deterministic) -} -func (m *FinalizeRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_FinalizeRequest.Merge(m, src) -} -func (m *FinalizeRequest) XXX_Size() int { - return xxx_messageInfo_FinalizeRequest.Size(m) -} -func (m *FinalizeRequest) XXX_DiscardUnknown() { - xxx_messageInfo_FinalizeRequest.DiscardUnknown(m) } -var xxx_messageInfo_FinalizeRequest proto.InternalMessageInfo +func (m *FinalizeRequest) Reset() { *m = FinalizeRequest{} } +func (m *FinalizeRequest) String() string { return proto.CompactTextString(m) } +func (*FinalizeRequest) ProtoMessage() {} +func (*FinalizeRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{9} } // The request to query all the certificates on the target. type GetCertificatesRequest struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetCertificatesRequest) Reset() { *m = GetCertificatesRequest{} } -func (m *GetCertificatesRequest) String() string { return proto.CompactTextString(m) } -func (*GetCertificatesRequest) ProtoMessage() {} -func (*GetCertificatesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_35089d6bfca6de66, []int{10} -} - -func (m *GetCertificatesRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetCertificatesRequest.Unmarshal(m, b) -} -func (m *GetCertificatesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetCertificatesRequest.Marshal(b, m, deterministic) -} -func (m *GetCertificatesRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetCertificatesRequest.Merge(m, src) -} -func (m *GetCertificatesRequest) XXX_Size() int { - return xxx_messageInfo_GetCertificatesRequest.Size(m) -} -func (m *GetCertificatesRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetCertificatesRequest.DiscardUnknown(m) } -var xxx_messageInfo_GetCertificatesRequest proto.InternalMessageInfo +func (m *GetCertificatesRequest) Reset() { *m = GetCertificatesRequest{} } +func (m *GetCertificatesRequest) String() string { return proto.CompactTextString(m) } +func (*GetCertificatesRequest) ProtoMessage() {} +func (*GetCertificatesRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{10} } // Response from the target about the certificates that exist on the target what // what is using them. type GetCertificatesResponse struct { - CertificateInfo []*CertificateInfo `protobuf:"bytes,1,rep,name=certificate_info,json=certificateInfo,proto3" json:"certificate_info,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + CertificateInfo []*CertificateInfo `protobuf:"bytes,1,rep,name=certificate_info,json=certificateInfo" json:"certificate_info,omitempty"` } -func (m *GetCertificatesResponse) Reset() { *m = GetCertificatesResponse{} } -func (m *GetCertificatesResponse) String() string { return proto.CompactTextString(m) } -func (*GetCertificatesResponse) ProtoMessage() {} -func (*GetCertificatesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_35089d6bfca6de66, []int{11} -} - -func (m *GetCertificatesResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetCertificatesResponse.Unmarshal(m, b) -} -func (m *GetCertificatesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetCertificatesResponse.Marshal(b, m, deterministic) -} -func (m *GetCertificatesResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetCertificatesResponse.Merge(m, src) -} -func (m *GetCertificatesResponse) XXX_Size() int { - return xxx_messageInfo_GetCertificatesResponse.Size(m) -} -func (m *GetCertificatesResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetCertificatesResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_GetCertificatesResponse proto.InternalMessageInfo +func (m *GetCertificatesResponse) Reset() { *m = GetCertificatesResponse{} } +func (m *GetCertificatesResponse) String() string { return proto.CompactTextString(m) } +func (*GetCertificatesResponse) ProtoMessage() {} +func (*GetCertificatesResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{11} } func (m *GetCertificatesResponse) GetCertificateInfo() []*CertificateInfo { if m != nil { @@ -1206,49 +850,19 @@ func (m *GetCertificatesResponse) GetCertificateInfo() []*CertificateInfo { } type CertificateInfo struct { - CertificateId string `protobuf:"bytes,1,opt,name=certificate_id,json=certificateId,proto3" json:"certificate_id,omitempty"` - Certificate *Certificate `protobuf:"bytes,2,opt,name=certificate,proto3" json:"certificate,omitempty"` + CertificateId string `protobuf:"bytes,1,opt,name=certificate_id,json=certificateId" json:"certificate_id,omitempty"` + Certificate *Certificate `protobuf:"bytes,2,opt,name=certificate" json:"certificate,omitempty"` // List of endpoints using this certificate. - Endpoints []*Endpoint `protobuf:"bytes,3,rep,name=endpoints,proto3" json:"endpoints,omitempty"` + Endpoints []*Endpoint `protobuf:"bytes,3,rep,name=endpoints" json:"endpoints,omitempty"` // System modification time when the certificate was installed/rotated in // nanoseconds since epoch. - ModificationTime int64 `protobuf:"varint,4,opt,name=modification_time,json=modificationTime,proto3" json:"modification_time,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + ModificationTime int64 `protobuf:"varint,4,opt,name=modification_time,json=modificationTime" json:"modification_time,omitempty"` } -func (m *CertificateInfo) Reset() { *m = CertificateInfo{} } -func (m *CertificateInfo) String() string { return proto.CompactTextString(m) } -func (*CertificateInfo) ProtoMessage() {} -func (*CertificateInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_35089d6bfca6de66, []int{12} -} - -func (m *CertificateInfo) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CertificateInfo.Unmarshal(m, b) -} -func (m *CertificateInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CertificateInfo.Marshal(b, m, deterministic) -} -func (m *CertificateInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_CertificateInfo.Merge(m, src) -} -func (m *CertificateInfo) XXX_Size() int { - return xxx_messageInfo_CertificateInfo.Size(m) -} -func (m *CertificateInfo) XXX_DiscardUnknown() { - xxx_messageInfo_CertificateInfo.DiscardUnknown(m) -} - -var xxx_messageInfo_CertificateInfo proto.InternalMessageInfo - -func (m *CertificateInfo) GetCertificateId() string { - if m != nil { - return m.CertificateId - } - return "" -} +func (m *CertificateInfo) Reset() { *m = CertificateInfo{} } +func (m *CertificateInfo) String() string { return proto.CompactTextString(m) } +func (*CertificateInfo) ProtoMessage() {} +func (*CertificateInfo) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{12} } func (m *CertificateInfo) GetCertificate() *Certificate { if m != nil { @@ -1264,94 +878,27 @@ func (m *CertificateInfo) GetEndpoints() []*Endpoint { return nil } -func (m *CertificateInfo) GetModificationTime() int64 { - if m != nil { - return m.ModificationTime - } - return 0 -} - type RevokeCertificatesRequest struct { // Certificates to revoke. - CertificateId []string `protobuf:"bytes,1,rep,name=certificate_id,json=certificateId,proto3" json:"certificate_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RevokeCertificatesRequest) Reset() { *m = RevokeCertificatesRequest{} } -func (m *RevokeCertificatesRequest) String() string { return proto.CompactTextString(m) } -func (*RevokeCertificatesRequest) ProtoMessage() {} -func (*RevokeCertificatesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_35089d6bfca6de66, []int{13} -} - -func (m *RevokeCertificatesRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RevokeCertificatesRequest.Unmarshal(m, b) -} -func (m *RevokeCertificatesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RevokeCertificatesRequest.Marshal(b, m, deterministic) -} -func (m *RevokeCertificatesRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RevokeCertificatesRequest.Merge(m, src) -} -func (m *RevokeCertificatesRequest) XXX_Size() int { - return xxx_messageInfo_RevokeCertificatesRequest.Size(m) -} -func (m *RevokeCertificatesRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RevokeCertificatesRequest.DiscardUnknown(m) + CertificateId []string `protobuf:"bytes,1,rep,name=certificate_id,json=certificateId" json:"certificate_id,omitempty"` } -var xxx_messageInfo_RevokeCertificatesRequest proto.InternalMessageInfo - -func (m *RevokeCertificatesRequest) GetCertificateId() []string { - if m != nil { - return m.CertificateId - } - return nil -} +func (m *RevokeCertificatesRequest) Reset() { *m = RevokeCertificatesRequest{} } +func (m *RevokeCertificatesRequest) String() string { return proto.CompactTextString(m) } +func (*RevokeCertificatesRequest) ProtoMessage() {} +func (*RevokeCertificatesRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{13} } type RevokeCertificatesResponse struct { // List of certificates successfully revoked. - RevokedCertificateId []string `protobuf:"bytes,1,rep,name=revoked_certificate_id,json=revokedCertificateId,proto3" json:"revoked_certificate_id,omitempty"` + RevokedCertificateId []string `protobuf:"bytes,1,rep,name=revoked_certificate_id,json=revokedCertificateId" json:"revoked_certificate_id,omitempty"` // List of errors why certain certificates could not be revoked. - CertificateRevocationError []*CertificateRevocationError `protobuf:"bytes,2,rep,name=certificate_revocation_error,json=certificateRevocationError,proto3" json:"certificate_revocation_error,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + CertificateRevocationError []*CertificateRevocationError `protobuf:"bytes,2,rep,name=certificate_revocation_error,json=certificateRevocationError" json:"certificate_revocation_error,omitempty"` } -func (m *RevokeCertificatesResponse) Reset() { *m = RevokeCertificatesResponse{} } -func (m *RevokeCertificatesResponse) String() string { return proto.CompactTextString(m) } -func (*RevokeCertificatesResponse) ProtoMessage() {} -func (*RevokeCertificatesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_35089d6bfca6de66, []int{14} -} - -func (m *RevokeCertificatesResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RevokeCertificatesResponse.Unmarshal(m, b) -} -func (m *RevokeCertificatesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RevokeCertificatesResponse.Marshal(b, m, deterministic) -} -func (m *RevokeCertificatesResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RevokeCertificatesResponse.Merge(m, src) -} -func (m *RevokeCertificatesResponse) XXX_Size() int { - return xxx_messageInfo_RevokeCertificatesResponse.Size(m) -} -func (m *RevokeCertificatesResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RevokeCertificatesResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RevokeCertificatesResponse proto.InternalMessageInfo - -func (m *RevokeCertificatesResponse) GetRevokedCertificateId() []string { - if m != nil { - return m.RevokedCertificateId - } - return nil -} +func (m *RevokeCertificatesResponse) Reset() { *m = RevokeCertificatesResponse{} } +func (m *RevokeCertificatesResponse) String() string { return proto.CompactTextString(m) } +func (*RevokeCertificatesResponse) ProtoMessage() {} +func (*RevokeCertificatesResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{14} } func (m *RevokeCertificatesResponse) GetCertificateRevocationError() []*CertificateRevocationError { if m != nil { @@ -1362,354 +909,92 @@ func (m *RevokeCertificatesResponse) GetCertificateRevocationError() []*Certific // An error message indicating why a certificate id could not be revoked. type CertificateRevocationError struct { - CertificateId string `protobuf:"bytes,1,opt,name=certificate_id,json=certificateId,proto3" json:"certificate_id,omitempty"` - ErrorMessage string `protobuf:"bytes,2,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + CertificateId string `protobuf:"bytes,1,opt,name=certificate_id,json=certificateId" json:"certificate_id,omitempty"` + ErrorMessage string `protobuf:"bytes,2,opt,name=error_message,json=errorMessage" json:"error_message,omitempty"` } -func (m *CertificateRevocationError) Reset() { *m = CertificateRevocationError{} } -func (m *CertificateRevocationError) String() string { return proto.CompactTextString(m) } -func (*CertificateRevocationError) ProtoMessage() {} -func (*CertificateRevocationError) Descriptor() ([]byte, []int) { - return fileDescriptor_35089d6bfca6de66, []int{15} -} - -func (m *CertificateRevocationError) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CertificateRevocationError.Unmarshal(m, b) -} -func (m *CertificateRevocationError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CertificateRevocationError.Marshal(b, m, deterministic) -} -func (m *CertificateRevocationError) XXX_Merge(src proto.Message) { - xxx_messageInfo_CertificateRevocationError.Merge(m, src) -} -func (m *CertificateRevocationError) XXX_Size() int { - return xxx_messageInfo_CertificateRevocationError.Size(m) -} -func (m *CertificateRevocationError) XXX_DiscardUnknown() { - xxx_messageInfo_CertificateRevocationError.DiscardUnknown(m) -} - -var xxx_messageInfo_CertificateRevocationError proto.InternalMessageInfo - -func (m *CertificateRevocationError) GetCertificateId() string { - if m != nil { - return m.CertificateId - } - return "" -} - -func (m *CertificateRevocationError) GetErrorMessage() string { - if m != nil { - return m.ErrorMessage - } - return "" -} +func (m *CertificateRevocationError) Reset() { *m = CertificateRevocationError{} } +func (m *CertificateRevocationError) String() string { return proto.CompactTextString(m) } +func (*CertificateRevocationError) ProtoMessage() {} +func (*CertificateRevocationError) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{15} } // A request to ask the target if it can generate key pairs. type CanGenerateCSRRequest struct { - KeyType KeyType `protobuf:"varint,1,opt,name=key_type,json=keyType,proto3,enum=gnoi.certificate.KeyType" json:"key_type,omitempty"` - CertificateType CertificateType `protobuf:"varint,2,opt,name=certificate_type,json=certificateType,proto3,enum=gnoi.certificate.CertificateType" json:"certificate_type,omitempty"` - KeySize uint32 `protobuf:"varint,3,opt,name=key_size,json=keySize,proto3" json:"key_size,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CanGenerateCSRRequest) Reset() { *m = CanGenerateCSRRequest{} } -func (m *CanGenerateCSRRequest) String() string { return proto.CompactTextString(m) } -func (*CanGenerateCSRRequest) ProtoMessage() {} -func (*CanGenerateCSRRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_35089d6bfca6de66, []int{16} -} - -func (m *CanGenerateCSRRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CanGenerateCSRRequest.Unmarshal(m, b) -} -func (m *CanGenerateCSRRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CanGenerateCSRRequest.Marshal(b, m, deterministic) -} -func (m *CanGenerateCSRRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_CanGenerateCSRRequest.Merge(m, src) -} -func (m *CanGenerateCSRRequest) XXX_Size() int { - return xxx_messageInfo_CanGenerateCSRRequest.Size(m) -} -func (m *CanGenerateCSRRequest) XXX_DiscardUnknown() { - xxx_messageInfo_CanGenerateCSRRequest.DiscardUnknown(m) + KeyType KeyType `protobuf:"varint,1,opt,name=key_type,json=keyType,enum=gnoi.certificate.KeyType" json:"key_type,omitempty"` + CertificateType CertificateType `protobuf:"varint,2,opt,name=certificate_type,json=certificateType,enum=gnoi.certificate.CertificateType" json:"certificate_type,omitempty"` + KeySize uint32 `protobuf:"varint,3,opt,name=key_size,json=keySize" json:"key_size,omitempty"` } -var xxx_messageInfo_CanGenerateCSRRequest proto.InternalMessageInfo - -func (m *CanGenerateCSRRequest) GetKeyType() KeyType { - if m != nil { - return m.KeyType - } - return KeyType_KT_UNKNOWN -} - -func (m *CanGenerateCSRRequest) GetCertificateType() CertificateType { - if m != nil { - return m.CertificateType - } - return CertificateType_CT_UNKNOWN -} - -func (m *CanGenerateCSRRequest) GetKeySize() uint32 { - if m != nil { - return m.KeySize - } - return 0 -} +func (m *CanGenerateCSRRequest) Reset() { *m = CanGenerateCSRRequest{} } +func (m *CanGenerateCSRRequest) String() string { return proto.CompactTextString(m) } +func (*CanGenerateCSRRequest) ProtoMessage() {} +func (*CanGenerateCSRRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{16} } // Response from the target about whether it can generate a CSR with the given // parameters. type CanGenerateCSRResponse struct { - CanGenerate bool `protobuf:"varint,4,opt,name=can_generate,json=canGenerate,proto3" json:"can_generate,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CanGenerateCSRResponse) Reset() { *m = CanGenerateCSRResponse{} } -func (m *CanGenerateCSRResponse) String() string { return proto.CompactTextString(m) } -func (*CanGenerateCSRResponse) ProtoMessage() {} -func (*CanGenerateCSRResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_35089d6bfca6de66, []int{17} -} - -func (m *CanGenerateCSRResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CanGenerateCSRResponse.Unmarshal(m, b) + CanGenerate bool `protobuf:"varint,4,opt,name=can_generate,json=canGenerate" json:"can_generate,omitempty"` } -func (m *CanGenerateCSRResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CanGenerateCSRResponse.Marshal(b, m, deterministic) -} -func (m *CanGenerateCSRResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_CanGenerateCSRResponse.Merge(m, src) -} -func (m *CanGenerateCSRResponse) XXX_Size() int { - return xxx_messageInfo_CanGenerateCSRResponse.Size(m) -} -func (m *CanGenerateCSRResponse) XXX_DiscardUnknown() { - xxx_messageInfo_CanGenerateCSRResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_CanGenerateCSRResponse proto.InternalMessageInfo -func (m *CanGenerateCSRResponse) GetCanGenerate() bool { - if m != nil { - return m.CanGenerate - } - return false -} +func (m *CanGenerateCSRResponse) Reset() { *m = CanGenerateCSRResponse{} } +func (m *CanGenerateCSRResponse) String() string { return proto.CompactTextString(m) } +func (*CanGenerateCSRResponse) ProtoMessage() {} +func (*CanGenerateCSRResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{17} } // A certificate. type Certificate struct { // Type of certificate. - Type CertificateType `protobuf:"varint,1,opt,name=type,proto3,enum=gnoi.certificate.CertificateType" json:"type,omitempty"` + Type CertificateType `protobuf:"varint,1,opt,name=type,enum=gnoi.certificate.CertificateType" json:"type,omitempty"` // Actual certificate. // The exact encoding depends upon the type of certificate. // for X509, this should be a PEM encoded Certificate. - Certificate []byte `protobuf:"bytes,2,opt,name=certificate,proto3" json:"certificate,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Certificate) Reset() { *m = Certificate{} } -func (m *Certificate) String() string { return proto.CompactTextString(m) } -func (*Certificate) ProtoMessage() {} -func (*Certificate) Descriptor() ([]byte, []int) { - return fileDescriptor_35089d6bfca6de66, []int{18} -} - -func (m *Certificate) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Certificate.Unmarshal(m, b) -} -func (m *Certificate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Certificate.Marshal(b, m, deterministic) -} -func (m *Certificate) XXX_Merge(src proto.Message) { - xxx_messageInfo_Certificate.Merge(m, src) -} -func (m *Certificate) XXX_Size() int { - return xxx_messageInfo_Certificate.Size(m) -} -func (m *Certificate) XXX_DiscardUnknown() { - xxx_messageInfo_Certificate.DiscardUnknown(m) + Certificate []byte `protobuf:"bytes,2,opt,name=certificate,proto3" json:"certificate,omitempty"` } -var xxx_messageInfo_Certificate proto.InternalMessageInfo - -func (m *Certificate) GetType() CertificateType { - if m != nil { - return m.Type - } - return CertificateType_CT_UNKNOWN -} - -func (m *Certificate) GetCertificate() []byte { - if m != nil { - return m.Certificate - } - return nil -} +func (m *Certificate) Reset() { *m = Certificate{} } +func (m *Certificate) String() string { return proto.CompactTextString(m) } +func (*Certificate) ProtoMessage() {} +func (*Certificate) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{18} } // A Certificate Signing Request. type CSR struct { // Type of certificate. - Type CertificateType `protobuf:"varint,1,opt,name=type,proto3,enum=gnoi.certificate.CertificateType" json:"type,omitempty"` + Type CertificateType `protobuf:"varint,1,opt,name=type,enum=gnoi.certificate.CertificateType" json:"type,omitempty"` // Bytes representing the CSR. // The exact encoding depends upon the type of certificate requested. // for X509: This should be the PEM encoded CSR. - Csr []byte `protobuf:"bytes,2,opt,name=csr,proto3" json:"csr,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Csr []byte `protobuf:"bytes,2,opt,name=csr,proto3" json:"csr,omitempty"` } -func (m *CSR) Reset() { *m = CSR{} } -func (m *CSR) String() string { return proto.CompactTextString(m) } -func (*CSR) ProtoMessage() {} -func (*CSR) Descriptor() ([]byte, []int) { - return fileDescriptor_35089d6bfca6de66, []int{19} -} - -func (m *CSR) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CSR.Unmarshal(m, b) -} -func (m *CSR) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CSR.Marshal(b, m, deterministic) -} -func (m *CSR) XXX_Merge(src proto.Message) { - xxx_messageInfo_CSR.Merge(m, src) -} -func (m *CSR) XXX_Size() int { - return xxx_messageInfo_CSR.Size(m) -} -func (m *CSR) XXX_DiscardUnknown() { - xxx_messageInfo_CSR.DiscardUnknown(m) -} - -var xxx_messageInfo_CSR proto.InternalMessageInfo - -func (m *CSR) GetType() CertificateType { - if m != nil { - return m.Type - } - return CertificateType_CT_UNKNOWN -} - -func (m *CSR) GetCsr() []byte { - if m != nil { - return m.Csr - } - return nil -} +func (m *CSR) Reset() { *m = CSR{} } +func (m *CSR) String() string { return proto.CompactTextString(m) } +func (*CSR) ProtoMessage() {} +func (*CSR) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{19} } // A message representing a pair of public/private keys. type KeyPair struct { - PrivateKey []byte `protobuf:"bytes,1,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"` - PublicKey []byte `protobuf:"bytes,2,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + PrivateKey []byte `protobuf:"bytes,1,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"` + PublicKey []byte `protobuf:"bytes,2,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` } -func (m *KeyPair) Reset() { *m = KeyPair{} } -func (m *KeyPair) String() string { return proto.CompactTextString(m) } -func (*KeyPair) ProtoMessage() {} -func (*KeyPair) Descriptor() ([]byte, []int) { - return fileDescriptor_35089d6bfca6de66, []int{20} -} - -func (m *KeyPair) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_KeyPair.Unmarshal(m, b) -} -func (m *KeyPair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_KeyPair.Marshal(b, m, deterministic) -} -func (m *KeyPair) XXX_Merge(src proto.Message) { - xxx_messageInfo_KeyPair.Merge(m, src) -} -func (m *KeyPair) XXX_Size() int { - return xxx_messageInfo_KeyPair.Size(m) -} -func (m *KeyPair) XXX_DiscardUnknown() { - xxx_messageInfo_KeyPair.DiscardUnknown(m) -} - -var xxx_messageInfo_KeyPair proto.InternalMessageInfo - -func (m *KeyPair) GetPrivateKey() []byte { - if m != nil { - return m.PrivateKey - } - return nil -} - -func (m *KeyPair) GetPublicKey() []byte { - if m != nil { - return m.PublicKey - } - return nil -} +func (m *KeyPair) Reset() { *m = KeyPair{} } +func (m *KeyPair) String() string { return proto.CompactTextString(m) } +func (*KeyPair) ProtoMessage() {} +func (*KeyPair) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{20} } // An endpoint represents an entity on the target which can use a certificate. type Endpoint struct { - Type Endpoint_Type `protobuf:"varint,1,opt,name=type,proto3,enum=gnoi.certificate.Endpoint_Type" json:"type,omitempty"` + Type Endpoint_Type `protobuf:"varint,1,opt,name=type,enum=gnoi.certificate.Endpoint_Type" json:"type,omitempty"` // Human readable identifier for an endpoint. - Endpoint string `protobuf:"bytes,2,opt,name=endpoint,proto3" json:"endpoint,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Endpoint) Reset() { *m = Endpoint{} } -func (m *Endpoint) String() string { return proto.CompactTextString(m) } -func (*Endpoint) ProtoMessage() {} -func (*Endpoint) Descriptor() ([]byte, []int) { - return fileDescriptor_35089d6bfca6de66, []int{21} -} - -func (m *Endpoint) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Endpoint.Unmarshal(m, b) -} -func (m *Endpoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Endpoint.Marshal(b, m, deterministic) -} -func (m *Endpoint) XXX_Merge(src proto.Message) { - xxx_messageInfo_Endpoint.Merge(m, src) -} -func (m *Endpoint) XXX_Size() int { - return xxx_messageInfo_Endpoint.Size(m) + Endpoint string `protobuf:"bytes,2,opt,name=endpoint" json:"endpoint,omitempty"` } -func (m *Endpoint) XXX_DiscardUnknown() { - xxx_messageInfo_Endpoint.DiscardUnknown(m) -} - -var xxx_messageInfo_Endpoint proto.InternalMessageInfo -func (m *Endpoint) GetType() Endpoint_Type { - if m != nil { - return m.Type - } - return Endpoint_EP_UNSPECIFIED -} - -func (m *Endpoint) GetEndpoint() string { - if m != nil { - return m.Endpoint - } - return "" -} +func (m *Endpoint) Reset() { *m = Endpoint{} } +func (m *Endpoint) String() string { return proto.CompactTextString(m) } +func (*Endpoint) ProtoMessage() {} +func (*Endpoint) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{21} } func init() { - proto.RegisterEnum("gnoi.certificate.CertificateType", CertificateType_name, CertificateType_value) - proto.RegisterEnum("gnoi.certificate.KeyType", KeyType_name, KeyType_value) - proto.RegisterEnum("gnoi.certificate.Endpoint_Type", Endpoint_Type_name, Endpoint_Type_value) proto.RegisterType((*RotateCertificateRequest)(nil), "gnoi.certificate.RotateCertificateRequest") proto.RegisterType((*RotateCertificateResponse)(nil), "gnoi.certificate.RotateCertificateResponse") proto.RegisterType((*InstallCertificateRequest)(nil), "gnoi.certificate.InstallCertificateRequest") @@ -1732,92 +1017,9 @@ func init() { proto.RegisterType((*CSR)(nil), "gnoi.certificate.CSR") proto.RegisterType((*KeyPair)(nil), "gnoi.certificate.KeyPair") proto.RegisterType((*Endpoint)(nil), "gnoi.certificate.Endpoint") -} - -func init() { - proto.RegisterFile("github.com/openconfig/gnoi/cert/cert.proto", fileDescriptor_35089d6bfca6de66) -} - -var fileDescriptor_35089d6bfca6de66 = []byte{ - // 1233 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x57, 0xdd, 0x72, 0xda, 0xc6, - 0x17, 0xb7, 0x0c, 0x31, 0x70, 0xc0, 0x20, 0x6f, 0x62, 0x47, 0xf0, 0xff, 0x67, 0xe2, 0xa8, 0xf5, - 0xc4, 0x71, 0x32, 0x38, 0x93, 0x8f, 0x99, 0x7e, 0xcc, 0xa4, 0x63, 0x13, 0x1c, 0x33, 0xd8, 0x84, - 0x11, 0xb8, 0xed, 0x9d, 0x66, 0x2d, 0x16, 0xbc, 0x63, 0xb4, 0xab, 0x4a, 0x72, 0x3a, 0xf8, 0x21, - 0xfa, 0x02, 0xbd, 0xe9, 0x55, 0x1f, 0xa1, 0x0f, 0xd0, 0x27, 0xe8, 0x45, 0xa7, 0xd7, 0x7d, 0x92, - 0x4e, 0x47, 0xbb, 0x02, 0x04, 0x12, 0x36, 0xcd, 0x5d, 0x6e, 0x18, 0xed, 0x39, 0xbf, 0xf3, 0xd3, - 0x9e, 0x6f, 0x01, 0x7b, 0x03, 0xea, 0x5f, 0x5c, 0x9d, 0x57, 0x2d, 0x6e, 0xef, 0x73, 0x87, 0x30, - 0x8b, 0xb3, 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a, 0x69, 0x95, 0xdd, 0xdb, 0x81, 0xf2, 0x25, 0xe7, 0x6b, 0xe2, - 0x7f, 0xf2, 0xcb, 0x7f, 0x03, 0x00, 0x00, 0xff, 0xff, 0x88, 0xf1, 0x0e, 0xed, 0x55, 0x0f, 0x00, - 0x00, + proto.RegisterEnum("gnoi.certificate.CertificateType", CertificateType_name, CertificateType_value) + proto.RegisterEnum("gnoi.certificate.KeyType", KeyType_name, KeyType_value) + proto.RegisterEnum("gnoi.certificate.Endpoint_Type", Endpoint_Type_name, Endpoint_Type_value) } // Reference imports to suppress errors if they are not otherwise used. @@ -1828,9 +1030,8 @@ var _ grpc.ClientConn // is compatible with the grpc package it is being compiled against. const _ = grpc.SupportPackageIsVersion4 -// CertificateManagementClient is the client API for CertificateManagement service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +// Client API for CertificateManagement service + type CertificateManagementClient interface { // Rotate will replace an existing Certificate on the target by creating a // new CSR request and placing the new Certificate based on the CSR on the @@ -1950,7 +1151,7 @@ func NewCertificateManagementClient(cc *grpc.ClientConn) CertificateManagementCl } func (c *certificateManagementClient) Rotate(ctx context.Context, opts ...grpc.CallOption) (CertificateManagement_RotateClient, error) { - stream, err := c.cc.NewStream(ctx, &_CertificateManagement_serviceDesc.Streams[0], "/gnoi.certificate.CertificateManagement/Rotate", opts...) + stream, err := grpc.NewClientStream(ctx, &_CertificateManagement_serviceDesc.Streams[0], c.cc, "/gnoi.certificate.CertificateManagement/Rotate", opts...) if err != nil { return nil, err } @@ -1981,7 +1182,7 @@ func (x *certificateManagementRotateClient) Recv() (*RotateCertificateResponse, } func (c *certificateManagementClient) Install(ctx context.Context, opts ...grpc.CallOption) (CertificateManagement_InstallClient, error) { - stream, err := c.cc.NewStream(ctx, &_CertificateManagement_serviceDesc.Streams[1], "/gnoi.certificate.CertificateManagement/Install", opts...) + stream, err := grpc.NewClientStream(ctx, &_CertificateManagement_serviceDesc.Streams[1], c.cc, "/gnoi.certificate.CertificateManagement/Install", opts...) if err != nil { return nil, err } @@ -2013,7 +1214,7 @@ func (x *certificateManagementInstallClient) Recv() (*InstallCertificateResponse func (c *certificateManagementClient) GetCertificates(ctx context.Context, in *GetCertificatesRequest, opts ...grpc.CallOption) (*GetCertificatesResponse, error) { out := new(GetCertificatesResponse) - err := c.cc.Invoke(ctx, "/gnoi.certificate.CertificateManagement/GetCertificates", in, out, opts...) + err := grpc.Invoke(ctx, "/gnoi.certificate.CertificateManagement/GetCertificates", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -2022,7 +1223,7 @@ func (c *certificateManagementClient) GetCertificates(ctx context.Context, in *G func (c *certificateManagementClient) RevokeCertificates(ctx context.Context, in *RevokeCertificatesRequest, opts ...grpc.CallOption) (*RevokeCertificatesResponse, error) { out := new(RevokeCertificatesResponse) - err := c.cc.Invoke(ctx, "/gnoi.certificate.CertificateManagement/RevokeCertificates", in, out, opts...) + err := grpc.Invoke(ctx, "/gnoi.certificate.CertificateManagement/RevokeCertificates", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -2031,14 +1232,15 @@ func (c *certificateManagementClient) RevokeCertificates(ctx context.Context, in func (c *certificateManagementClient) CanGenerateCSR(ctx context.Context, in *CanGenerateCSRRequest, opts ...grpc.CallOption) (*CanGenerateCSRResponse, error) { out := new(CanGenerateCSRResponse) - err := c.cc.Invoke(ctx, "/gnoi.certificate.CertificateManagement/CanGenerateCSR", in, out, opts...) + err := grpc.Invoke(ctx, "/gnoi.certificate.CertificateManagement/CanGenerateCSR", in, out, c.cc, opts...) if err != nil { return nil, err } return out, nil } -// CertificateManagementServer is the server API for CertificateManagement service. +// Server API for CertificateManagement service + type CertificateManagementServer interface { // Rotate will replace an existing Certificate on the target by creating a // new CSR request and placing the new Certificate based on the CSR on the @@ -2290,5 +1492,88 @@ var _CertificateManagement_serviceDesc = grpc.ServiceDesc{ ClientStreams: true, }, }, - Metadata: "github.com/openconfig/gnoi/cert/cert.proto", + Metadata: "cert/cert.proto", +} + +func init() { proto.RegisterFile("cert/cert.proto", fileDescriptor0) } + +var fileDescriptor0 = []byte{ + // 1232 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xd4, 0x57, 0xdd, 0x72, 0xda, 0x46, + 0x14, 0xb6, 0x0c, 0x36, 0x70, 0xc0, 0x20, 0xaf, 0x63, 0x47, 0xd0, 0x66, 0xe2, 0xa8, 0xf5, 0xc4, + 0x71, 0x32, 0xd8, 0xcd, 0xcf, 0x4c, 0x7f, 0x66, 0xdc, 0xb1, 0x09, 0x8e, 0x19, 0x6c, 0xc2, 0x2c, + 0xb8, 0xed, 0x9d, 0x66, 0x23, 0x16, 0xb2, 0x63, 0xb4, 0xa2, 0x92, 0x9c, 0x0e, 0x7e, 0x88, 0xbe, + 0x40, 0x6f, 0x7a, 0xd5, 0x47, 0xe8, 0x03, 0xf4, 0x09, 0x3a, 0x9d, 0x4e, 0xaf, 0xfb, 0x24, 0x9d, + 0x8e, 0x76, 0x05, 0x08, 0x24, 0x6c, 0x92, 0xbb, 0xdc, 0x30, 0xda, 0x73, 0xbe, 0xf3, 0x69, 0xcf, + 0xbf, 0x80, 0x82, 0x49, 0x1d, 0x6f, 0xdf, 0xff, 0x29, 0x0f, 0x1c, 0xdb, 0xb3, 0x91, 0xda, 0xe3, + 0x36, 0x2b, 0xfb, 0x02, 0xd6, 0x65, 0x26, 0xf1, 0x68, 0x69, 0xdd, 0x1b, 0x0e, 0xa8, 0xbb, 0x2f, + 0x7e, 0x25, 0x48, 0xff, 0x75, 0x19, 0x34, 0x6c, 0x7b, 0xc4, 0xa3, 0x95, 0x09, 0x10, 0xd3, 0x1f, + 0xaf, 0xa8, 0xeb, 0xa1, 0x1a, 0xe4, 0x7a, 0x94, 0x53, 0x87, 0x78, 0xd4, 0x30, 0x5d, 0x47, 0x53, + 0xb6, 0x95, 0xdd, 0xec, 0xd3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 0xb0, 0x19, 0xf7, 0x5c, 0x2d, 0x21, + 0x5c, 0x28, 0x45, 0xcd, 0xab, 0x01, 0x04, 0x4f, 0xc0, 0xe8, 0x31, 0xac, 0x5b, 0x76, 0x47, 0x22, + 0x98, 0xcd, 0x0d, 0x8f, 0x05, 0x1d, 0x9a, 0xc0, 0x6a, 0x58, 0xd1, 0x66, 0x16, 0xd5, 0x8f, 0xa1, + 0x88, 0xe9, 0x3b, 0xfb, 0x92, 0xc6, 0x04, 0x3a, 0xd6, 0xd7, 0x44, 0x74, 0x52, 0xfd, 0xa1, 0x40, + 0x29, 0x8e, 0x24, 0xc8, 0xc9, 0x73, 0xd8, 0x72, 0x84, 0x76, 0x6a, 0x60, 0x4f, 0xd8, 0xee, 0x04, + 0xda, 0xca, 0x54, 0x00, 0x39, 0x7c, 0x1a, 0x46, 0xfb, 0x98, 0xc0, 0x1f, 0xea, 0x38, 0xb6, 0x5f, + 0xe5, 0x7e, 0x48, 0x9e, 0xdc, 0x1c, 0xd1, 0xb1, 0x51, 0xd5, 0xb7, 0xc1, 0x25, 0x73, 0xae, 0x4e, + 0x7f, 0x0b, 0xa5, 0xf9, 0x96, 0x8b, 0x66, 0xfd, 0x33, 0x58, 0x13, 0xb7, 0x33, 0x2c, 0xea, 0xba, + 0xa4, 0x47, 0x83, 0xc9, 0x9e, 0x13, 0xc2, 0x73, 0x29, 0xd3, 0x7f, 0x57, 0x60, 0xb3, 0x42, 0x78, + 0xcc, 0x56, 0x09, 0xcf, 0x62, 0x65, 0xe1, 0x59, 0x3c, 0x53, 0xf3, 0xc2, 0x7a, 0x79, 0xd1, 0x35, + 0x11, 0xae, 0x79, 0xc1, 0x56, 0x94, 0x77, 0x10, 0xdb, 0x22, 0x21, 0xb6, 0x85, 0xff, 0x22, 0x7f, + 0x55, 0xe8, 0xdf, 0xc0, 0xd6, 0xec, 0xbd, 0x83, 0x14, 0x3f, 0x80, 0x9c, 0x49, 0xb8, 0x31, 0x5a, + 0xd2, 0xa2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f, 0xa9, 0xca, 0xde, 0x8e, 0x08, 0xcc, 0x08, 0x57, 0x0f, + 0xe3, 0x00, 0x56, 0xeb, 0x6d, 0x03, 0xb7, 0x8e, 0x54, 0xe5, 0xe9, 0x6f, 0x49, 0xd8, 0x0c, 0xf1, + 0x9e, 0x13, 0x4e, 0x7a, 0xd4, 0xa2, 0xdc, 0x43, 0x14, 0x56, 0xe5, 0xb7, 0x3d, 0xda, 0x8b, 0x7a, + 0x3f, 0xef, 0x8f, 0x51, 0xe9, 0xf1, 0x42, 0x58, 0x59, 0x97, 0xbb, 0xca, 0x81, 0x82, 0xde, 0x42, + 0x2a, 0xf8, 0x30, 0x45, 0x31, 0xb6, 0x73, 0x3f, 0xc3, 0x4b, 0x4f, 0x16, 0x03, 0x87, 0xde, 0xd4, + 0x85, 0xc2, 0xcc, 0x5e, 0x42, 0xbb, 0x71, 0x1f, 0xb8, 0x71, 0x4b, 0xad, 0xf4, 0x68, 0x01, 0x64, + 0xd0, 0x6d, 0x36, 0xa0, 0xe8, 0xb8, 0x8d, 0x73, 0x6e, 0xee, 0x64, 0x8f, 0x73, 0xee, 0x86, 0x09, + 0x6e, 0x42, 0x7e, 0xba, 0xf1, 0xd1, 0xc3, 0x98, 0x86, 0x8a, 0x1b, 0x69, 0xa5, 0xdd, 0xdb, 0x81, + 0xf2, 0x25, 0xc7, 0xe9, 0xbf, 0x0e, 0x57, 0x0e, 0xca, 0x5f, 0x94, 0x0f, 0xde, 0xac, 0x8a, 0xff, + 0xc7, 0xcf, 0xfe, 0x0f, 0x00, 0x00, 0xff, 0xff, 0xad, 0x88, 0xe4, 0x40, 0x57, 0x0f, 0x00, 0x00, } diff --git a/cert/cert.proto b/cert/cert.proto index 512752d2..760ff7e0 100644 --- a/cert/cert.proto +++ b/cert/cert.proto @@ -18,8 +18,12 @@ // rotation. syntax = "proto3"; +import "types/types.proto"; + package gnoi.certificate; +option (gnoi.gnoi_version) = "0.1.0"; + // The Certificate Management Service exported by targets. // The service primarily exports two main RPCs, Install & Rotate which are used // for installation of a new certificate, and rotation of an existing diff --git a/common/common.pb.go b/common/common.pb.go new file mode 100644 index 00000000..285ce5cf --- /dev/null +++ b/common/common.pb.go @@ -0,0 +1,109 @@ +// Code generated by protoc-gen-go. +// source: common/common.proto +// DO NOT EDIT! + +/* +Package gnoi is a generated protocol buffer package. + +It is generated from these files: + common/common.proto + +It has these top-level messages: + RemoteDownload +*/ +package gnoi + +import proto "github.com/golang/protobuf/proto" +import fmt "fmt" +import math "math" +import gnoi1 "types" + +// 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 + +type RemoteDownload_Protocol int32 + +const ( + RemoteDownload_UNKNOWN RemoteDownload_Protocol = 0 + RemoteDownload_SFTP RemoteDownload_Protocol = 1 + RemoteDownload_HTTP RemoteDownload_Protocol = 2 + RemoteDownload_HTTPS RemoteDownload_Protocol = 3 + RemoteDownload_SCP RemoteDownload_Protocol = 4 +) + +var RemoteDownload_Protocol_name = map[int32]string{ + 0: "UNKNOWN", + 1: "SFTP", + 2: "HTTP", + 3: "HTTPS", + 4: "SCP", +} +var RemoteDownload_Protocol_value = map[string]int32{ + "UNKNOWN": 0, + "SFTP": 1, + "HTTP": 2, + "HTTPS": 3, + "SCP": 4, +} + +func (x RemoteDownload_Protocol) String() string { + return proto.EnumName(RemoteDownload_Protocol_name, int32(x)) +} +func (RemoteDownload_Protocol) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0, 0} } + +// RemoteDownload defines the details for a device to initiate a file transfer +// from or to a remote location. +type RemoteDownload struct { + // The path information containing where to download the data from or to. + // For HTTP(S), this will be the URL (i.e. foo.com/file.tbz2). + // For SFTP and SCP, this will be the address:/path/to/file + // (i.e. host.foo.com:/bar/baz). + Path string `protobuf:"bytes,1,opt,name=path" json:"path,omitempty"` + Protocol RemoteDownload_Protocol `protobuf:"varint,2,opt,name=protocol,enum=gnoi.RemoteDownload_Protocol" json:"protocol,omitempty"` + Credentials *gnoi1.Credentials `protobuf:"bytes,3,opt,name=credentials" json:"credentials,omitempty"` +} + +func (m *RemoteDownload) Reset() { *m = RemoteDownload{} } +func (m *RemoteDownload) String() string { return proto.CompactTextString(m) } +func (*RemoteDownload) ProtoMessage() {} +func (*RemoteDownload) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } + +func (m *RemoteDownload) GetCredentials() *gnoi1.Credentials { + if m != nil { + return m.Credentials + } + return nil +} + +func init() { + proto.RegisterType((*RemoteDownload)(nil), "gnoi.RemoteDownload") + proto.RegisterEnum("gnoi.RemoteDownload_Protocol", RemoteDownload_Protocol_name, RemoteDownload_Protocol_value) +} + +func init() { proto.RegisterFile("common/common.proto", fileDescriptor0) } + +var fileDescriptor0 = []byte{ + // 215 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xe2, 0x12, 0x4e, 0xce, 0xcf, 0xcd, + 0xcd, 0xcf, 0xd3, 0x87, 0x50, 0x7a, 0x05, 0x45, 0xf9, 0x25, 0xf9, 0x42, 0x2c, 0xe9, 0x79, 0xf9, + 0x99, 0x52, 0x82, 0x25, 0x95, 0x05, 0xa9, 0xc5, 0xfa, 0x60, 0x12, 0x22, 0xa1, 0x74, 0x95, 0x91, + 0x8b, 0x2f, 0x28, 0x35, 0x37, 0xbf, 0x24, 0xd5, 0x25, 0xbf, 0x3c, 0x2f, 0x27, 0x3f, 0x31, 0x45, + 0x48, 0x88, 0x8b, 0xa5, 0x20, 0xb1, 0x24, 0x43, 0x82, 0x51, 0x81, 0x51, 0x83, 0x33, 0x08, 0xcc, + 0x16, 0xb2, 0xe4, 0xe2, 0x00, 0xab, 0x4f, 0xce, 0xcf, 0x91, 0x60, 0x52, 0x60, 0xd4, 0xe0, 0x33, + 0x92, 0xd5, 0x03, 0x19, 0xa9, 0x87, 0xaa, 0x57, 0x2f, 0x00, 0xaa, 0x28, 0x08, 0xae, 0x5c, 0xc8, + 0x98, 0x8b, 0x3b, 0xb9, 0x28, 0x35, 0x25, 0x35, 0xaf, 0x24, 0x33, 0x31, 0xa7, 0x58, 0x82, 0x59, + 0x81, 0x51, 0x83, 0xdb, 0x48, 0x10, 0xa2, 0xdb, 0x19, 0x21, 0x11, 0x84, 0xac, 0x4a, 0xc9, 0x9e, + 0x8b, 0x03, 0x66, 0x94, 0x10, 0x37, 0x17, 0x7b, 0xa8, 0x9f, 0xb7, 0x9f, 0x7f, 0xb8, 0x9f, 0x00, + 0x83, 0x10, 0x07, 0x17, 0x4b, 0xb0, 0x5b, 0x48, 0x80, 0x00, 0x23, 0x88, 0xe5, 0x11, 0x12, 0x12, + 0x20, 0xc0, 0x24, 0xc4, 0xc9, 0xc5, 0x0a, 0x62, 0x05, 0x0b, 0x30, 0x0b, 0xb1, 0x73, 0x31, 0x07, + 0x3b, 0x07, 0x08, 0xb0, 0x24, 0xb1, 0x81, 0xed, 0x37, 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, 0x79, + 0xb3, 0xda, 0x64, 0x0e, 0x01, 0x00, 0x00, +} diff --git a/common.proto b/common/common.proto similarity index 96% rename from common.proto rename to common/common.proto index 48c7bb04..29da4129 100644 --- a/common.proto +++ b/common/common.proto @@ -18,7 +18,7 @@ syntax = "proto3"; package gnoi; -import "github.com/openconfig/gnoi/types.proto"; +import "types/types.proto"; // RemoteDownload defines the details for a device to initiate a file transfer // from or to a remote location. diff --git a/compile_protos.sh b/compile_protos.sh index 2dcec12a..f3522ca5 100755 --- a/compile_protos.sh +++ b/compile_protos.sh @@ -4,8 +4,7 @@ set -euo pipefail proto_imports=".:${GOPATH}/src/github.com/google/protobuf/src:${GOPATH}/src" # Go -protoc -I=$proto_imports --go_out=. types.proto -for p in bgp cert file interface layer2 mpls system; do +for p in types common diag bgp cert file interface layer2 mpls system; do protoc -I=$proto_imports --go_out=plugins=grpc:. $p/$p.proto done diff --git a/diag/diag.pb.go b/diag/diag.pb.go new file mode 100644 index 00000000..f0c6bfdb --- /dev/null +++ b/diag/diag.pb.go @@ -0,0 +1,735 @@ +// Code generated by protoc-gen-go. +// source: diag/diag.proto +// DO NOT EDIT! + +/* +Package gnoi_diag is a generated protocol buffer package. + +It is generated from these files: + diag/diag.proto + +It has these top-level messages: + StartBERTRequest + StartBERTResponse + StopBERTRequest + StopBERTResponse + GetBERTResultRequest + GetBERTResultResponse +*/ +package gnoi_diag + +import proto "github.com/golang/protobuf/proto" +import fmt "fmt" +import math "math" +import gnoi "types" + +import ( + context "golang.org/x/net/context" + grpc "google.golang.org/grpc" +) + +// 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 + +// Common sequence generating monic polynomials used for PRBS. +type PrbsPolynomial int32 + +const ( + PrbsPolynomial_PRBS_POLYNOMIAL_UNKNOWN PrbsPolynomial = 0 + PrbsPolynomial_PRBS_POLYNOMIAL_PRBS7 PrbsPolynomial = 1 + PrbsPolynomial_PRBS_POLYNOMIAL_PRBS9 PrbsPolynomial = 2 + PrbsPolynomial_PRBS_POLYNOMIAL_PRBS15 PrbsPolynomial = 3 + PrbsPolynomial_PRBS_POLYNOMIAL_PRBS20 PrbsPolynomial = 4 + PrbsPolynomial_PRBS_POLYNOMIAL_PRBS23 PrbsPolynomial = 5 + PrbsPolynomial_PRBS_POLYNOMIAL_PRBS31 PrbsPolynomial = 6 +) + +var PrbsPolynomial_name = map[int32]string{ + 0: "PRBS_POLYNOMIAL_UNKNOWN", + 1: "PRBS_POLYNOMIAL_PRBS7", + 2: "PRBS_POLYNOMIAL_PRBS9", + 3: "PRBS_POLYNOMIAL_PRBS15", + 4: "PRBS_POLYNOMIAL_PRBS20", + 5: "PRBS_POLYNOMIAL_PRBS23", + 6: "PRBS_POLYNOMIAL_PRBS31", +} +var PrbsPolynomial_value = map[string]int32{ + "PRBS_POLYNOMIAL_UNKNOWN": 0, + "PRBS_POLYNOMIAL_PRBS7": 1, + "PRBS_POLYNOMIAL_PRBS9": 2, + "PRBS_POLYNOMIAL_PRBS15": 3, + "PRBS_POLYNOMIAL_PRBS20": 4, + "PRBS_POLYNOMIAL_PRBS23": 5, + "PRBS_POLYNOMIAL_PRBS31": 6, +} + +func (x PrbsPolynomial) String() string { + return proto.EnumName(PrbsPolynomial_name, int32(x)) +} +func (PrbsPolynomial) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } + +// Status returned for each per-port BERT request. +type BertStatus int32 + +const ( + // default invalid choice. + BertStatus_BERT_STATUS_UNKNOWN BertStatus = 0 + // BERT requests (Start, Stop, GetStatus) were processed successfully. + BertStatus_BERT_STATUS_OK BertStatus = 1 + // The specified port was not found. + BertStatus_BERT_STATUS_NON_EXISTENT_PORT BertStatus = 2 + // HW error was encountered while performing BERT operation. + BertStatus_BERT_STATUS_HARDWARE_ACCESS_ERROR BertStatus = 3 + // PRBS generating polynomial is not supported by the target. + BertStatus_BERT_STATUS_UNSUPPORTED_PRBS_POLYNOMIAL BertStatus = 4 + // There is already a BERT running on the specified port. Returned when + // `StartBert` RPC tries to add run BERT on an already in-use port. + BertStatus_BERT_STATUS_PORT_ALREADY_IN_BERT BertStatus = 5 + // There is no BERT running on the specified port. Returned when `StopBert` + // or `GetBertResult` RPC was called for an idle port. + BertStatus_BERT_STATUS_PORT_NOT_RUNNING_BERT BertStatus = 6 + // The specified test duration is too small. + BertStatus_BERT_STATUS_TEST_DURATION_TOO_SHORT BertStatus = 7 + // The specified test duration is larger than maximum allowed. + BertStatus_BERT_STATUS_TEST_DURATION_TOO_LONG BertStatus = 8 + // The given BERT operation ID is not known. Returned for `StopBert` and + // `GetBertResult` RPCs. + BertStatus_BERT_STATUS_OPERATION_ID_NOT_FOUND BertStatus = 9 + // The given BERT operation ID is already in use. Returned when `StartBert` + // RPC uses an ID which is already memorized for a BERT operation. + BertStatus_BERT_STATUS_OPERATION_ID_IN_USE BertStatus = 10 + // Failure to get the peer lock. + BertStatus_BERT_STATUS_PEER_LOCK_FAILURE BertStatus = 11 + // Lost the peer lock after locking once. + BertStatus_BERT_STATUS_PEER_LOCK_LOST BertStatus = 12 + // Misc internal errors that cannot be categorized by any of the previous + // error codes. + BertStatus_BERT_STATUS_INTERNAL_ERROR BertStatus = 13 +) + +var BertStatus_name = map[int32]string{ + 0: "BERT_STATUS_UNKNOWN", + 1: "BERT_STATUS_OK", + 2: "BERT_STATUS_NON_EXISTENT_PORT", + 3: "BERT_STATUS_HARDWARE_ACCESS_ERROR", + 4: "BERT_STATUS_UNSUPPORTED_PRBS_POLYNOMIAL", + 5: "BERT_STATUS_PORT_ALREADY_IN_BERT", + 6: "BERT_STATUS_PORT_NOT_RUNNING_BERT", + 7: "BERT_STATUS_TEST_DURATION_TOO_SHORT", + 8: "BERT_STATUS_TEST_DURATION_TOO_LONG", + 9: "BERT_STATUS_OPERATION_ID_NOT_FOUND", + 10: "BERT_STATUS_OPERATION_ID_IN_USE", + 11: "BERT_STATUS_PEER_LOCK_FAILURE", + 12: "BERT_STATUS_PEER_LOCK_LOST", + 13: "BERT_STATUS_INTERNAL_ERROR", +} +var BertStatus_value = map[string]int32{ + "BERT_STATUS_UNKNOWN": 0, + "BERT_STATUS_OK": 1, + "BERT_STATUS_NON_EXISTENT_PORT": 2, + "BERT_STATUS_HARDWARE_ACCESS_ERROR": 3, + "BERT_STATUS_UNSUPPORTED_PRBS_POLYNOMIAL": 4, + "BERT_STATUS_PORT_ALREADY_IN_BERT": 5, + "BERT_STATUS_PORT_NOT_RUNNING_BERT": 6, + "BERT_STATUS_TEST_DURATION_TOO_SHORT": 7, + "BERT_STATUS_TEST_DURATION_TOO_LONG": 8, + "BERT_STATUS_OPERATION_ID_NOT_FOUND": 9, + "BERT_STATUS_OPERATION_ID_IN_USE": 10, + "BERT_STATUS_PEER_LOCK_FAILURE": 11, + "BERT_STATUS_PEER_LOCK_LOST": 12, + "BERT_STATUS_INTERNAL_ERROR": 13, +} + +func (x BertStatus) String() string { + return proto.EnumName(BertStatus_name, int32(x)) +} +func (BertStatus) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } + +type StartBERTRequest struct { + // Unique BERT operation ID specified by the client. Multiple BERTs run on + // different ports can have the same BERT operation ID. This ID will be used + // later to stop the operation and/or get its results. + // TODO: Investigate whether we can use numerical IDs instead. + BertOperationId string `protobuf:"bytes,1,opt,name=bert_operation_id,json=bertOperationId" json:"bert_operation_id,omitempty"` + // All the per-port BERTs that are considered one BERT operation and have the + // same BERT operation ID. + PerPortRequests []*StartBERTRequest_PerPortRequest `protobuf:"bytes,2,rep,name=per_port_requests,json=perPortRequests" json:"per_port_requests,omitempty"` +} + +func (m *StartBERTRequest) Reset() { *m = StartBERTRequest{} } +func (m *StartBERTRequest) String() string { return proto.CompactTextString(m) } +func (*StartBERTRequest) ProtoMessage() {} +func (*StartBERTRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } + +func (m *StartBERTRequest) GetPerPortRequests() []*StartBERTRequest_PerPortRequest { + if m != nil { + return m.PerPortRequests + } + return nil +} + +// Per port BERT start requests. +type StartBERTRequest_PerPortRequest struct { + // Path to the interface corresponding to the port. + Interface *gnoi.Path `protobuf:"bytes,1,opt,name=interface" json:"interface,omitempty"` + // The selected PRBS generating polynomial for BERT. + PrbsPolynomial PrbsPolynomial `protobuf:"varint,2,opt,name=prbs_polynomial,json=prbsPolynomial,enum=gnoi.diag.PrbsPolynomial" json:"prbs_polynomial,omitempty"` + // BERT duration in seconds. Must be a positive number. + TestDurationInSecs uint32 `protobuf:"varint,3,opt,name=test_duration_in_secs,json=testDurationInSecs" json:"test_duration_in_secs,omitempty"` +} + +func (m *StartBERTRequest_PerPortRequest) Reset() { *m = StartBERTRequest_PerPortRequest{} } +func (m *StartBERTRequest_PerPortRequest) String() string { return proto.CompactTextString(m) } +func (*StartBERTRequest_PerPortRequest) ProtoMessage() {} +func (*StartBERTRequest_PerPortRequest) Descriptor() ([]byte, []int) { + return fileDescriptor0, []int{0, 0} +} + +func (m *StartBERTRequest_PerPortRequest) GetInterface() *gnoi.Path { + if m != nil { + return m.Interface + } + return nil +} + +type StartBERTResponse struct { + // The same BERT operation ID given by the request. + BertOperationId string `protobuf:"bytes,1,opt,name=bert_operation_id,json=bertOperationId" json:"bert_operation_id,omitempty"` + // Captures the results of starting BERT on a per-port basis. + PerPortResponses []*StartBERTResponse_PerPortResponse `protobuf:"bytes,2,rep,name=per_port_responses,json=perPortResponses" json:"per_port_responses,omitempty"` +} + +func (m *StartBERTResponse) Reset() { *m = StartBERTResponse{} } +func (m *StartBERTResponse) String() string { return proto.CompactTextString(m) } +func (*StartBERTResponse) ProtoMessage() {} +func (*StartBERTResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } + +func (m *StartBERTResponse) GetPerPortResponses() []*StartBERTResponse_PerPortResponse { + if m != nil { + return m.PerPortResponses + } + return nil +} + +// Per-port BERT start responses. +type StartBERTResponse_PerPortResponse struct { + // Path to the interface corresponding to the port. + Interface *gnoi.Path `protobuf:"bytes,1,opt,name=interface" json:"interface,omitempty"` + // BERT start status for this port. + Status BertStatus `protobuf:"varint,2,opt,name=status,enum=gnoi.diag.BertStatus" json:"status,omitempty"` +} + +func (m *StartBERTResponse_PerPortResponse) Reset() { *m = StartBERTResponse_PerPortResponse{} } +func (m *StartBERTResponse_PerPortResponse) String() string { return proto.CompactTextString(m) } +func (*StartBERTResponse_PerPortResponse) ProtoMessage() {} +func (*StartBERTResponse_PerPortResponse) Descriptor() ([]byte, []int) { + return fileDescriptor0, []int{1, 0} +} + +func (m *StartBERTResponse_PerPortResponse) GetInterface() *gnoi.Path { + if m != nil { + return m.Interface + } + return nil +} + +type StopBERTRequest struct { + // The same BERT operation ID given when BERT operation was started. + BertOperationId string `protobuf:"bytes,1,opt,name=bert_operation_id,json=bertOperationId" json:"bert_operation_id,omitempty"` + // All the per-port BERTs that need to be stopped. Must be part of the BERT + // operation specified by the `bert_operation_id` above. + PerPortRequests []*StopBERTRequest_PerPortRequest `protobuf:"bytes,2,rep,name=per_port_requests,json=perPortRequests" json:"per_port_requests,omitempty"` +} + +func (m *StopBERTRequest) Reset() { *m = StopBERTRequest{} } +func (m *StopBERTRequest) String() string { return proto.CompactTextString(m) } +func (*StopBERTRequest) ProtoMessage() {} +func (*StopBERTRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} } + +func (m *StopBERTRequest) GetPerPortRequests() []*StopBERTRequest_PerPortRequest { + if m != nil { + return m.PerPortRequests + } + return nil +} + +// Per-port BERT stop requests. +type StopBERTRequest_PerPortRequest struct { + // Path to the interface corresponding to the port. + Interface *gnoi.Path `protobuf:"bytes,1,opt,name=interface" json:"interface,omitempty"` +} + +func (m *StopBERTRequest_PerPortRequest) Reset() { *m = StopBERTRequest_PerPortRequest{} } +func (m *StopBERTRequest_PerPortRequest) String() string { return proto.CompactTextString(m) } +func (*StopBERTRequest_PerPortRequest) ProtoMessage() {} +func (*StopBERTRequest_PerPortRequest) Descriptor() ([]byte, []int) { + return fileDescriptor0, []int{2, 0} +} + +func (m *StopBERTRequest_PerPortRequest) GetInterface() *gnoi.Path { + if m != nil { + return m.Interface + } + return nil +} + +type StopBERTResponse struct { + // The same BERT operation ID given by the request. + BertOperationId string `protobuf:"bytes,1,opt,name=bert_operation_id,json=bertOperationId" json:"bert_operation_id,omitempty"` + // Captures the results of stopping BERT on a per-port basis. + PerPortResponses []*StopBERTResponse_PerPortResponse `protobuf:"bytes,2,rep,name=per_port_responses,json=perPortResponses" json:"per_port_responses,omitempty"` +} + +func (m *StopBERTResponse) Reset() { *m = StopBERTResponse{} } +func (m *StopBERTResponse) String() string { return proto.CompactTextString(m) } +func (*StopBERTResponse) ProtoMessage() {} +func (*StopBERTResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} } + +func (m *StopBERTResponse) GetPerPortResponses() []*StopBERTResponse_PerPortResponse { + if m != nil { + return m.PerPortResponses + } + return nil +} + +// Per-port BERT stop responses. +type StopBERTResponse_PerPortResponse struct { + // Path to the interface corresponding to the port. + Interface *gnoi.Path `protobuf:"bytes,1,opt,name=interface" json:"interface,omitempty"` + // BERT stop status for this port. + Status BertStatus `protobuf:"varint,2,opt,name=status,enum=gnoi.diag.BertStatus" json:"status,omitempty"` +} + +func (m *StopBERTResponse_PerPortResponse) Reset() { *m = StopBERTResponse_PerPortResponse{} } +func (m *StopBERTResponse_PerPortResponse) String() string { return proto.CompactTextString(m) } +func (*StopBERTResponse_PerPortResponse) ProtoMessage() {} +func (*StopBERTResponse_PerPortResponse) Descriptor() ([]byte, []int) { + return fileDescriptor0, []int{3, 0} +} + +func (m *StopBERTResponse_PerPortResponse) GetInterface() *gnoi.Path { + if m != nil { + return m.Interface + } + return nil +} + +// TODO: If there is no use case to get the BERT results for all the ports +// independent of the bert_operation_id, we can simplify this message and +// return the results for all the ports associated with an operation ID. +type GetBERTResultRequest struct { + // The same BERT operation ID given when BERT operation was started. + BertOperationId string `protobuf:"bytes,1,opt,name=bert_operation_id,json=bertOperationId" json:"bert_operation_id,omitempty"` + // All the per-port BERTs result of which we want to query. Must be part of + // the BERT operation specified by the `bert_operation_id` above. + PerPortRequests []*GetBERTResultRequest_PerPortRequest `protobuf:"bytes,2,rep,name=per_port_requests,json=perPortRequests" json:"per_port_requests,omitempty"` + // If set to true, the results for all the per-port BERTs will be returned. + // `bert_operation_id` and `per_port_requests` will be ignored will be + // ignored in that case. + ResultFromAllPorts bool `protobuf:"varint,3,opt,name=result_from_all_ports,json=resultFromAllPorts" json:"result_from_all_ports,omitempty"` +} + +func (m *GetBERTResultRequest) Reset() { *m = GetBERTResultRequest{} } +func (m *GetBERTResultRequest) String() string { return proto.CompactTextString(m) } +func (*GetBERTResultRequest) ProtoMessage() {} +func (*GetBERTResultRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} } + +func (m *GetBERTResultRequest) GetPerPortRequests() []*GetBERTResultRequest_PerPortRequest { + if m != nil { + return m.PerPortRequests + } + return nil +} + +// Per-port BERT get result requests. +type GetBERTResultRequest_PerPortRequest struct { + // Path to the interface corresponding to the port. + Interface *gnoi.Path `protobuf:"bytes,1,opt,name=interface" json:"interface,omitempty"` +} + +func (m *GetBERTResultRequest_PerPortRequest) Reset() { *m = GetBERTResultRequest_PerPortRequest{} } +func (m *GetBERTResultRequest_PerPortRequest) String() string { return proto.CompactTextString(m) } +func (*GetBERTResultRequest_PerPortRequest) ProtoMessage() {} +func (*GetBERTResultRequest_PerPortRequest) Descriptor() ([]byte, []int) { + return fileDescriptor0, []int{4, 0} +} + +func (m *GetBERTResultRequest_PerPortRequest) GetInterface() *gnoi.Path { + if m != nil { + return m.Interface + } + return nil +} + +type GetBERTResultResponse struct { + // Captures the BERT results on a per-port basis. + PerPortResponses []*GetBERTResultResponse_PerPortResponse `protobuf:"bytes,1,rep,name=per_port_responses,json=perPortResponses" json:"per_port_responses,omitempty"` +} + +func (m *GetBERTResultResponse) Reset() { *m = GetBERTResultResponse{} } +func (m *GetBERTResultResponse) String() string { return proto.CompactTextString(m) } +func (*GetBERTResultResponse) ProtoMessage() {} +func (*GetBERTResultResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} } + +func (m *GetBERTResultResponse) GetPerPortResponses() []*GetBERTResultResponse_PerPortResponse { + if m != nil { + return m.PerPortResponses + } + return nil +} + +// Per-port BERT results/status. +type GetBERTResultResponse_PerPortResponse struct { + // Path to the interface corresponding to the port. + Interface *gnoi.Path `protobuf:"bytes,1,opt,name=interface" json:"interface,omitempty"` + // BERT result get status for this port. Only if the status is + // BERT_STATUS_OK are the rest of the fields meaningful. + Status BertStatus `protobuf:"varint,2,opt,name=status,enum=gnoi.diag.BertStatus" json:"status,omitempty"` + // The ID of the BERT operation running on this port. Since the caller + // can query the BERT results for all the ports, ID can potentially be + // different for different ports. + BertOperationId string `protobuf:"bytes,3,opt,name=bert_operation_id,json=bertOperationId" json:"bert_operation_id,omitempty"` + // The selected PRBS generating polynomial for BERT on this port. + PrbsPolynomial PrbsPolynomial `protobuf:"varint,4,opt,name=prbs_polynomial,json=prbsPolynomial,enum=gnoi.diag.PrbsPolynomial" json:"prbs_polynomial,omitempty"` + // The last time BERT started on this port. + LastBertStartTimestamp uint64 `protobuf:"varint,5,opt,name=last_bert_start_timestamp,json=lastBertStartTimestamp" json:"last_bert_start_timestamp,omitempty"` + // The last time BERT results were read for this port. + LastBertGetResultTimestamp uint64 `protobuf:"varint,6,opt,name=last_bert_get_result_timestamp,json=lastBertGetResultTimestamp" json:"last_bert_get_result_timestamp,omitempty"` + // Indicate whether BERT peer lock has was established. If false, + // `bert_lock_lost`, `error_count_per_minute`, and `total_errors` will not + // be meaningful. + PeerLockEstablished bool `protobuf:"varint,7,opt,name=peer_lock_established,json=peerLockEstablished" json:"peer_lock_established,omitempty"` + // Indicate whether BERT peer lock was lost after being established + // once. + PeerLockLost bool `protobuf:"varint,8,opt,name=peer_lock_lost,json=peerLockLost" json:"peer_lock_lost,omitempty"` + // Sequence of bit errors per min since lock was established. + ErrorCountPerMinute []uint32 `protobuf:"varint,9,rep,packed,name=error_count_per_minute,json=errorCountPerMinute" json:"error_count_per_minute,omitempty"` + // Total number of bit errors accumulated since lock was established. + TotalErrors uint64 `protobuf:"varint,10,opt,name=total_errors,json=totalErrors" json:"total_errors,omitempty"` +} + +func (m *GetBERTResultResponse_PerPortResponse) Reset() { *m = GetBERTResultResponse_PerPortResponse{} } +func (m *GetBERTResultResponse_PerPortResponse) String() string { return proto.CompactTextString(m) } +func (*GetBERTResultResponse_PerPortResponse) ProtoMessage() {} +func (*GetBERTResultResponse_PerPortResponse) Descriptor() ([]byte, []int) { + return fileDescriptor0, []int{5, 0} +} + +func (m *GetBERTResultResponse_PerPortResponse) GetInterface() *gnoi.Path { + if m != nil { + return m.Interface + } + return nil +} + +func init() { + proto.RegisterType((*StartBERTRequest)(nil), "gnoi.diag.StartBERTRequest") + proto.RegisterType((*StartBERTRequest_PerPortRequest)(nil), "gnoi.diag.StartBERTRequest.PerPortRequest") + proto.RegisterType((*StartBERTResponse)(nil), "gnoi.diag.StartBERTResponse") + proto.RegisterType((*StartBERTResponse_PerPortResponse)(nil), "gnoi.diag.StartBERTResponse.PerPortResponse") + proto.RegisterType((*StopBERTRequest)(nil), "gnoi.diag.StopBERTRequest") + proto.RegisterType((*StopBERTRequest_PerPortRequest)(nil), "gnoi.diag.StopBERTRequest.PerPortRequest") + proto.RegisterType((*StopBERTResponse)(nil), "gnoi.diag.StopBERTResponse") + proto.RegisterType((*StopBERTResponse_PerPortResponse)(nil), "gnoi.diag.StopBERTResponse.PerPortResponse") + proto.RegisterType((*GetBERTResultRequest)(nil), "gnoi.diag.GetBERTResultRequest") + proto.RegisterType((*GetBERTResultRequest_PerPortRequest)(nil), "gnoi.diag.GetBERTResultRequest.PerPortRequest") + proto.RegisterType((*GetBERTResultResponse)(nil), "gnoi.diag.GetBERTResultResponse") + proto.RegisterType((*GetBERTResultResponse_PerPortResponse)(nil), "gnoi.diag.GetBERTResultResponse.PerPortResponse") + proto.RegisterEnum("gnoi.diag.PrbsPolynomial", PrbsPolynomial_name, PrbsPolynomial_value) + proto.RegisterEnum("gnoi.diag.BertStatus", BertStatus_name, BertStatus_value) +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion4 + +// Client API for Diag service + +type DiagClient interface { + // Starts BERT operation on a set of ports. Each BERT operation is uniquely + // identified by an ID, which is given by the caller. The caller can then + // use this ID (as well as the list of the ports) to stop the BERT operation + // and/or get the BERT results. This RPC is expected to return an error status + // in the following situations: + // - When BERT operation is supported on none of the ports specified by + // the request. + // - When BERT is already in progress on any port specified by the request. + // - In case of any low-level HW/SW internal errors. + // The RPC returns an OK status of none of these situations is encountered. + StartBERT(ctx context.Context, in *StartBERTRequest, opts ...grpc.CallOption) (*StartBERTResponse, error) + // Stops an already in-progress BERT operation on a set of ports. The caller + // uses the BERT operation ID it previously used when starting the operation + // to stop it. The RPC is expected to return an error status in the following + // situations: + // - When there is at least one BERT operation in progress on a port which + // cannot be stopped in the middle of the operation (either due to lack of + // support or internal problems). + // - When no BERT operation, which matches the given BERT operation ID, is in + // progress or completed on any of the ports specified by the request. + // - When the BERT operation ID does not match the in progress or completed + // BERT operation on any of the ports specified by the request. + // The RPC returns an OK status of none of these situations is encountered. + // Note that a BERT operation is considered completed if the device has a + // record/history of it. Also note that it is OK to receive a stop request for + // a port which has completed BERT, as long as the recorded BERT operation ID + // matches the one specified by the request. + StopBERT(ctx context.Context, in *StopBERTRequest, opts ...grpc.CallOption) (*StopBERTResponse, error) + // Gets BERT results during the BERT operation or after it completes. The + // caller uses the BERT operation ID it previously used when starting the + // operation to query it. The device is expected to keep the results for + // last N BERT operations for some amount of time, as specified by the + // product requirement. This RPC is expected to return error status in the + // following situations: + // - When no BERT operation, which matches the given BERT operation ID, is in + // progress or completed on any of the ports specified by the request. + // - When the BERT operation ID does not match the in progress or completed + // BERT operation on any of the ports specified by the request. + // The RPC returns an OK status of none of these situations is encountered. + // Note that a BERT operation is considered completed if device has a + // record of it. + GetBERTResult(ctx context.Context, in *GetBERTResultRequest, opts ...grpc.CallOption) (*GetBERTResultResponse, error) +} + +type diagClient struct { + cc *grpc.ClientConn +} + +func NewDiagClient(cc *grpc.ClientConn) DiagClient { + return &diagClient{cc} +} + +func (c *diagClient) StartBERT(ctx context.Context, in *StartBERTRequest, opts ...grpc.CallOption) (*StartBERTResponse, error) { + out := new(StartBERTResponse) + err := grpc.Invoke(ctx, "/gnoi.diag.Diag/StartBERT", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *diagClient) StopBERT(ctx context.Context, in *StopBERTRequest, opts ...grpc.CallOption) (*StopBERTResponse, error) { + out := new(StopBERTResponse) + err := grpc.Invoke(ctx, "/gnoi.diag.Diag/StopBERT", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *diagClient) GetBERTResult(ctx context.Context, in *GetBERTResultRequest, opts ...grpc.CallOption) (*GetBERTResultResponse, error) { + out := new(GetBERTResultResponse) + err := grpc.Invoke(ctx, "/gnoi.diag.Diag/GetBERTResult", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// Server API for Diag service + +type DiagServer interface { + // Starts BERT operation on a set of ports. Each BERT operation is uniquely + // identified by an ID, which is given by the caller. The caller can then + // use this ID (as well as the list of the ports) to stop the BERT operation + // and/or get the BERT results. This RPC is expected to return an error status + // in the following situations: + // - When BERT operation is supported on none of the ports specified by + // the request. + // - When BERT is already in progress on any port specified by the request. + // - In case of any low-level HW/SW internal errors. + // The RPC returns an OK status of none of these situations is encountered. + StartBERT(context.Context, *StartBERTRequest) (*StartBERTResponse, error) + // Stops an already in-progress BERT operation on a set of ports. The caller + // uses the BERT operation ID it previously used when starting the operation + // to stop it. The RPC is expected to return an error status in the following + // situations: + // - When there is at least one BERT operation in progress on a port which + // cannot be stopped in the middle of the operation (either due to lack of + // support or internal problems). + // - When no BERT operation, which matches the given BERT operation ID, is in + // progress or completed on any of the ports specified by the request. + // - When the BERT operation ID does not match the in progress or completed + // BERT operation on any of the ports specified by the request. + // The RPC returns an OK status of none of these situations is encountered. + // Note that a BERT operation is considered completed if the device has a + // record/history of it. Also note that it is OK to receive a stop request for + // a port which has completed BERT, as long as the recorded BERT operation ID + // matches the one specified by the request. + StopBERT(context.Context, *StopBERTRequest) (*StopBERTResponse, error) + // Gets BERT results during the BERT operation or after it completes. The + // caller uses the BERT operation ID it previously used when starting the + // operation to query it. The device is expected to keep the results for + // last N BERT operations for some amount of time, as specified by the + // product requirement. This RPC is expected to return error status in the + // following situations: + // - When no BERT operation, which matches the given BERT operation ID, is in + // progress or completed on any of the ports specified by the request. + // - When the BERT operation ID does not match the in progress or completed + // BERT operation on any of the ports specified by the request. + // The RPC returns an OK status of none of these situations is encountered. + // Note that a BERT operation is considered completed if device has a + // record of it. + GetBERTResult(context.Context, *GetBERTResultRequest) (*GetBERTResultResponse, error) +} + +func RegisterDiagServer(s *grpc.Server, srv DiagServer) { + s.RegisterService(&_Diag_serviceDesc, srv) +} + +func _Diag_StartBERT_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(StartBERTRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DiagServer).StartBERT(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gnoi.diag.Diag/StartBERT", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DiagServer).StartBERT(ctx, req.(*StartBERTRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Diag_StopBERT_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(StopBERTRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DiagServer).StopBERT(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gnoi.diag.Diag/StopBERT", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DiagServer).StopBERT(ctx, req.(*StopBERTRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Diag_GetBERTResult_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetBERTResultRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DiagServer).GetBERTResult(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gnoi.diag.Diag/GetBERTResult", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DiagServer).GetBERTResult(ctx, req.(*GetBERTResultRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _Diag_serviceDesc = grpc.ServiceDesc{ + ServiceName: "gnoi.diag.Diag", + HandlerType: (*DiagServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "StartBERT", + Handler: _Diag_StartBERT_Handler, + }, + { + MethodName: "StopBERT", + Handler: _Diag_StopBERT_Handler, + }, + { + MethodName: "GetBERTResult", + Handler: _Diag_GetBERTResult_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "diag/diag.proto", +} + +func init() { proto.RegisterFile("diag/diag.proto", fileDescriptor0) } + +var fileDescriptor0 = []byte{ + // 1028 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xcc, 0x56, 0xdd, 0x6e, 0x1b, 0x45, + 0x14, 0xce, 0xda, 0x4e, 0x1a, 0x9f, 0xfc, 0x78, 0x33, 0x21, 0xa9, 0xe3, 0x40, 0xeb, 0xb8, 0x85, + 0x9a, 0x14, 0xdc, 0xc4, 0x11, 0x42, 0xe5, 0x02, 0x69, 0x1d, 0x6f, 0x92, 0x55, 0xdc, 0xdd, 0xd5, + 0xec, 0x9a, 0x92, 0x5e, 0x30, 0xda, 0x38, 0xd3, 0xd4, 0x74, 0xed, 0x5d, 0x66, 0xc6, 0x17, 0x7d, + 0x00, 0xc4, 0x05, 0xe2, 0x61, 0x78, 0x0d, 0xae, 0x10, 0x3c, 0x07, 0xaf, 0x80, 0xd0, 0x8c, 0xed, + 0x78, 0x6d, 0xd9, 0x09, 0x09, 0x12, 0xea, 0xcd, 0x4a, 0x73, 0xbe, 0xef, 0xec, 0x39, 0xe7, 0x3b, + 0x67, 0x7e, 0x20, 0x77, 0xd1, 0x0e, 0x2e, 0x9f, 0xc9, 0x4f, 0x25, 0x66,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, 0x4d, 0x6d, 0xb8, 0xa6, 0xaa, 0xdc, 0x9b, 0x5d, 0xe5, + 0xbf, 0xee, 0xfa, 0xcf, 0x99, 0xff, 0xaf, 0xed, 0xd3, 0xbb, 0x9b, 0x9e, 0xde, 0xdd, 0x29, 0xc7, + 0x6f, 0xe6, 0xb6, 0xc7, 0xef, 0x73, 0xd8, 0x0a, 0x03, 0x2e, 0x88, 0x0a, 0xca, 0xe5, 0x71, 0x47, + 0x44, 0xbb, 0x43, 0xb9, 0x08, 0x3a, 0x71, 0x7e, 0xbe, 0xa8, 0x95, 0x33, 0x78, 0x53, 0x12, 0x06, + 0xa9, 0x32, 0xe1, 0x0f, 0x51, 0x54, 0x83, 0x07, 0x23, 0xd7, 0x4b, 0xaa, 0xc4, 0x97, 0xe3, 0x30, + 0xf2, 0x5f, 0x50, 0xfe, 0x85, 0xa1, 0xff, 0x31, 0x15, 0x7d, 0xf1, 0x47, 0xff, 0xa8, 0xc2, 0x46, + 0x4c, 0x29, 0x23, 0x61, 0xd4, 0x7a, 0x4b, 0xa4, 0xed, 0x3c, 0x6c, 0xf3, 0x37, 0xf4, 0x22, 0x7f, + 0x4f, 0x0d, 0xd1, 0xba, 0x04, 0x1b, 0x51, 0xeb, 0xad, 0x39, 0x82, 0xd0, 0x63, 0x58, 0x1d, 0xf9, + 0x84, 0x11, 0x17, 0xf9, 0x45, 0x45, 0x5e, 0x1e, 0x92, 0x1b, 0x11, 0x17, 0xe8, 0x00, 0x36, 0x29, + 0x63, 0x11, 0x23, 0xad, 0xa8, 0xd7, 0x15, 0x44, 0x4e, 0x48, 0xa7, 0xdd, 0xed, 0x09, 0x9a, 0xcf, + 0x16, 0xd3, 0xe5, 0x15, 0xbc, 0xae, 0xd0, 0x43, 0x09, 0xba, 0x94, 0xbd, 0x50, 0x10, 0xda, 0x81, + 0x65, 0x11, 0x89, 0x20, 0x24, 0x0a, 0xe4, 0x79, 0x50, 0x05, 0x2c, 0x29, 0x9b, 0xa9, 0x4c, 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x09, 0x00, 0x00, 0xff, 0xff, 0xd7, 0x6b, 0x04, 0xbd, + 0xd2, 0x0b, 0x00, 0x00, +} diff --git a/diag/diag.proto b/diag/diag.proto index c70e9f53..2e93de2c 100644 --- a/diag/diag.proto +++ b/diag/diag.proto @@ -20,7 +20,9 @@ syntax = "proto3"; package gnoi.diag; -import "github.com/openconfig/gnoi/types.proto"; +import "types/types.proto"; + +option (gnoi.gnoi_version) = "0.1.0"; // The Diag service exports to main set of RPCs: // 1- BERT related RPCs: Used to perform Bit Error Rate Test (BERT) diff --git a/docs/README.md b/docs/README.md new file mode 100644 index 00000000..caae6bc7 --- /dev/null +++ b/docs/README.md @@ -0,0 +1,6 @@ +# Documentation Related to gNOI + +This directory contains a set of documents supplementing the gNOI specifications. + + * [simplified_security_model.md](simplified_security_model.md) -- A simple security + model that can be implemented using gNOI. diff --git a/simplified_security_model.md b/docs/simplified_security_model.md similarity index 100% rename from simplified_security_model.md rename to docs/simplified_security_model.md diff --git a/file/file.pb.go b/file/file.pb.go index cd68430d..c9a4aa74 100644 --- a/file/file.pb.go +++ b/file/file.pb.go @@ -1,5 +1,6 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. +// Code generated by protoc-gen-go. // source: file/file.proto +// DO NOT EDIT! /* Package gnoi_file is a generated protocol buffer package. @@ -12,6 +13,8 @@ It has these top-level messages: PutResponse GetRequest GetResponse + TransferToRemoteRequest + TransferToRemoteResponse StatRequest StatResponse StatInfo @@ -23,7 +26,8 @@ package gnoi_file import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" -import gnoi "github.com/openconfig/gnoi" +import gnoi1 "common" +import gnoi "types" import ( context "golang.org/x/net/context" @@ -216,20 +220,6 @@ func (m *PutRequest_Details) String() string { return proto.CompactTe func (*PutRequest_Details) ProtoMessage() {} func (*PutRequest_Details) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0, 0} } -func (m *PutRequest_Details) GetRemoteFile() string { - if m != nil { - return m.RemoteFile - } - return "" -} - -func (m *PutRequest_Details) GetPermissions() uint32 { - if m != nil { - return m.Permissions - } - return 0 -} - type PutResponse struct { } @@ -250,13 +240,6 @@ func (m *GetRequest) String() string { return proto.CompactTextString func (*GetRequest) ProtoMessage() {} func (*GetRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} } -func (m *GetRequest) GetRemoteFile() string { - if m != nil { - return m.RemoteFile - } - return "" -} - // A GetResponse either contains the next set of bytes read from the // file or, as the last message, the hash of the data. type GetResponse struct { @@ -376,6 +359,44 @@ func _GetResponse_OneofSizer(msg proto.Message) (n int) { return n } +// A TransferToRemoteRequest specifies the local path to transfer to and the +// details on where to transfer the data from. The local_path must be an +// absolute path to the file. +type TransferToRemoteRequest struct { + LocalPath string `protobuf:"bytes,1,opt,name=local_path,json=localPath" json:"local_path,omitempty"` + // Details to download the remote_file being requested to a remote location. + RemoteDownload *gnoi1.RemoteDownload `protobuf:"bytes,2,opt,name=remote_download,json=remoteDownload" json:"remote_download,omitempty"` +} + +func (m *TransferToRemoteRequest) Reset() { *m = TransferToRemoteRequest{} } +func (m *TransferToRemoteRequest) String() string { return proto.CompactTextString(m) } +func (*TransferToRemoteRequest) ProtoMessage() {} +func (*TransferToRemoteRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} } + +func (m *TransferToRemoteRequest) GetRemoteDownload() *gnoi1.RemoteDownload { + if m != nil { + return m.RemoteDownload + } + return nil +} + +// A TransferToRemoteResponse contains the hash of the data transferred. +type TransferToRemoteResponse struct { + Hash *gnoi.HashType `protobuf:"bytes,1,opt,name=hash" json:"hash,omitempty"` +} + +func (m *TransferToRemoteResponse) Reset() { *m = TransferToRemoteResponse{} } +func (m *TransferToRemoteResponse) String() string { return proto.CompactTextString(m) } +func (*TransferToRemoteResponse) ProtoMessage() {} +func (*TransferToRemoteResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} } + +func (m *TransferToRemoteResponse) GetHash() *gnoi.HashType { + if m != nil { + return m.Hash + } + return nil +} + // StatRequest will list files at the provided path. type StatRequest struct { Path string `protobuf:"bytes,1,opt,name=path" json:"path,omitempty"` @@ -384,14 +405,7 @@ type StatRequest struct { func (m *StatRequest) Reset() { *m = StatRequest{} } func (m *StatRequest) String() string { return proto.CompactTextString(m) } func (*StatRequest) ProtoMessage() {} -func (*StatRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} } - -func (m *StatRequest) GetPath() string { - if m != nil { - return m.Path - } - return "" -} +func (*StatRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} } // StatResponse contains list of stat info of the provided path. type StatResponse struct { @@ -401,7 +415,7 @@ type StatResponse struct { func (m *StatResponse) Reset() { *m = StatResponse{} } func (m *StatResponse) String() string { return proto.CompactTextString(m) } func (*StatResponse) ProtoMessage() {} -func (*StatResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} } +func (*StatResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} } func (m *StatResponse) GetStats() []*StatInfo { if m != nil { @@ -428,42 +442,7 @@ type StatInfo struct { func (m *StatInfo) Reset() { *m = StatInfo{} } func (m *StatInfo) String() string { return proto.CompactTextString(m) } func (*StatInfo) ProtoMessage() {} -func (*StatInfo) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} } - -func (m *StatInfo) GetPath() string { - if m != nil { - return m.Path - } - return "" -} - -func (m *StatInfo) GetLastModified() uint64 { - if m != nil { - return m.LastModified - } - return 0 -} - -func (m *StatInfo) GetPermissions() uint32 { - if m != nil { - return m.Permissions - } - return 0 -} - -func (m *StatInfo) GetSize() uint64 { - if m != nil { - return m.Size - } - return 0 -} - -func (m *StatInfo) GetUmask() uint32 { - if m != nil { - return m.Umask - } - return 0 -} +func (*StatInfo) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} } // A RemoveRequest specifies a file to be removed from the target. type RemoveRequest struct { @@ -473,14 +452,7 @@ type RemoveRequest struct { func (m *RemoveRequest) Reset() { *m = RemoveRequest{} } func (m *RemoveRequest) String() string { return proto.CompactTextString(m) } func (*RemoveRequest) ProtoMessage() {} -func (*RemoveRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} } - -func (m *RemoveRequest) GetRemoteFile() string { - if m != nil { - return m.RemoteFile - } - return "" -} +func (*RemoveRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{9} } type RemoveResponse struct { } @@ -488,7 +460,7 @@ type RemoveResponse struct { func (m *RemoveResponse) Reset() { *m = RemoveResponse{} } func (m *RemoveResponse) String() string { return proto.CompactTextString(m) } func (*RemoveResponse) ProtoMessage() {} -func (*RemoveResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} } +func (*RemoveResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{10} } func init() { proto.RegisterType((*PutRequest)(nil), "gnoi.file.PutRequest") @@ -496,6 +468,8 @@ func init() { proto.RegisterType((*PutResponse)(nil), "gnoi.file.PutResponse") proto.RegisterType((*GetRequest)(nil), "gnoi.file.GetRequest") proto.RegisterType((*GetResponse)(nil), "gnoi.file.GetResponse") + proto.RegisterType((*TransferToRemoteRequest)(nil), "gnoi.file.TransferToRemoteRequest") + proto.RegisterType((*TransferToRemoteResponse)(nil), "gnoi.file.TransferToRemoteResponse") proto.RegisterType((*StatRequest)(nil), "gnoi.file.StatRequest") proto.RegisterType((*StatResponse)(nil), "gnoi.file.StatResponse") proto.RegisterType((*StatInfo)(nil), "gnoi.file.StatInfo") @@ -514,12 +488,18 @@ const _ = grpc.SupportPackageIsVersion4 // Client API for File service type FileClient interface { - // Get read and streams the contents of a file from the target. + // Get reads and streams the contents of a file from the target. // The file is streamed by sequential messages, each containing up to // 64KB of data. A final message is sent prior to closing the stream // that contains the hash of the data sent. An error is returned // if the file does not exist or there was an error reading the file. Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (File_GetClient, error) + // TransferToRemote transfers the contents of a file from the target to a + // specified remote location. The response contains the hash of the data + // transferred. An error is returned if the file does not exist, the file + // transfer fails, or if there was an error reading the file. This is a + // blocking call until the file transfer is complete. + TransferToRemote(ctx context.Context, in *TransferToRemoteRequest, opts ...grpc.CallOption) (*TransferToRemoteResponse, error) // Put streams data into a file on the target. The file is sent in // sequential messages, each message containing up to 64KB of data. A final // message must be sent that includes the hash of the data sent. An @@ -578,6 +558,15 @@ func (x *fileGetClient) Recv() (*GetResponse, error) { return m, nil } +func (c *fileClient) TransferToRemote(ctx context.Context, in *TransferToRemoteRequest, opts ...grpc.CallOption) (*TransferToRemoteResponse, error) { + out := new(TransferToRemoteResponse) + err := grpc.Invoke(ctx, "/gnoi.file.File/TransferToRemote", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + func (c *fileClient) Put(ctx context.Context, opts ...grpc.CallOption) (File_PutClient, error) { stream, err := grpc.NewClientStream(ctx, &_File_serviceDesc.Streams[1], c.cc, "/gnoi.file.File/Put", opts...) if err != nil { @@ -633,12 +622,18 @@ func (c *fileClient) Remove(ctx context.Context, in *RemoveRequest, opts ...grpc // Server API for File service type FileServer interface { - // Get read and streams the contents of a file from the target. + // Get reads and streams the contents of a file from the target. // The file is streamed by sequential messages, each containing up to // 64KB of data. A final message is sent prior to closing the stream // that contains the hash of the data sent. An error is returned // if the file does not exist or there was an error reading the file. Get(*GetRequest, File_GetServer) error + // TransferToRemote transfers the contents of a file from the target to a + // specified remote location. The response contains the hash of the data + // transferred. An error is returned if the file does not exist, the file + // transfer fails, or if there was an error reading the file. This is a + // blocking call until the file transfer is complete. + TransferToRemote(context.Context, *TransferToRemoteRequest) (*TransferToRemoteResponse, error) // Put streams data into a file on the target. The file is sent in // sequential messages, each message containing up to 64KB of data. A final // message must be sent that includes the hash of the data sent. An @@ -682,6 +677,24 @@ func (x *fileGetServer) Send(m *GetResponse) error { return x.ServerStream.SendMsg(m) } +func _File_TransferToRemote_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TransferToRemoteRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(FileServer).TransferToRemote(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gnoi.file.File/TransferToRemote", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(FileServer).TransferToRemote(ctx, req.(*TransferToRemoteRequest)) + } + return interceptor(ctx, in, info, handler) +} + func _File_Put_Handler(srv interface{}, stream grpc.ServerStream) error { return srv.(FileServer).Put(&filePutServer{stream}) } @@ -748,6 +761,10 @@ var _File_serviceDesc = grpc.ServiceDesc{ ServiceName: "gnoi.file.File", HandlerType: (*FileServer)(nil), Methods: []grpc.MethodDesc{ + { + MethodName: "TransferToRemote", + Handler: _File_TransferToRemote_Handler, + }, { MethodName: "Stat", Handler: _File_Stat_Handler, @@ -775,36 +792,41 @@ var _File_serviceDesc = grpc.ServiceDesc{ func init() { proto.RegisterFile("file/file.proto", fileDescriptor0) } var fileDescriptor0 = []byte{ - // 481 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x53, 0x5d, 0x6f, 0xd3, 0x30, - 0x14, 0xad, 0xd7, 0x74, 0x6b, 0x6f, 0xda, 0x81, 0x0c, 0x8c, 0x50, 0x81, 0x28, 0x01, 0xa1, 0xf2, - 0x40, 0x3a, 0x75, 0x2f, 0xec, 0x09, 0x69, 0x42, 0xac, 0x48, 0x20, 0x4d, 0x81, 0x57, 0x34, 0x79, - 0xdd, 0x6d, 0x63, 0xd1, 0xd8, 0x21, 0x76, 0x90, 0xc6, 0x9f, 0xe0, 0x1f, 0xf2, 0x33, 0x78, 0x46, - 0xb6, 0x93, 0x36, 0xe9, 0xc6, 0xc7, 0x4b, 0x95, 0x9e, 0x9c, 0x73, 0xee, 0xb9, 0xc7, 0x0e, 0xdc, - 0x5a, 0xf0, 0x15, 0x4e, 0xcc, 0x4f, 0x94, 0xe5, 0x52, 0x4b, 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0x35, 0x52, 0xa3, 0x8e, 0xe1, 0x83, 0x1b, 0xde, 0x54, 0x06, 0x17, 0xbb, - 0xf6, 0x8b, 0x3d, 0xfa, 0x1d, 0x00, 0x00, 0xff, 0xff, 0x9a, 0xb5, 0xd9, 0xe5, 0xf7, 0x03, 0x00, - 0x00, + // 575 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x8c, 0x54, 0x5d, 0x6f, 0xd3, 0x30, + 0x14, 0x6d, 0xda, 0x74, 0x6b, 0x6f, 0xda, 0x6e, 0x78, 0x63, 0x0b, 0x11, 0x13, 0xc5, 0xe3, 0xa1, + 0x3c, 0x90, 0x96, 0xee, 0x85, 0x3d, 0x30, 0xa4, 0x6a, 0x62, 0x45, 0x02, 0xa9, 0x0a, 0x7d, 0x9d, + 0x2a, 0xd3, 0xba, 0x34, 0x22, 0x89, 0x43, 0xec, 0x32, 0x8d, 0x3f, 0xc1, 0x7f, 0x43, 0xe2, 0x95, + 0xdf, 0x82, 0x6c, 0x27, 0x6d, 0xfa, 0xb1, 0xb1, 0x97, 0x34, 0x39, 0x3e, 0x3e, 0xf7, 0x9c, 0xeb, + 0xeb, 0xc2, 0xde, 0xd4, 0x0f, 0x68, 0x5b, 0x3e, 0xdc, 0x38, 0x61, 0x82, 0xa1, 0xea, 0xd7, 0x88, + 0xf9, 0xae, 0x04, 0x9c, 0x83, 0x31, 0x0b, 0x43, 0x16, 0xb5, 0xf5, 0x8f, 0x5e, 0x77, 0x1e, 0x89, + 0xdb, 0x98, 0xf2, 0xb6, 0x7a, 0x6a, 0x08, 0xff, 0x35, 0x00, 0x06, 0x73, 0xe1, 0xd1, 0xef, 0x73, + 0xca, 0x05, 0x3a, 0x03, 0x93, 0xc5, 0x34, 0xb2, 0x8d, 0xa6, 0xd1, 0xb2, 0xba, 0x27, 0xee, 0x42, + 0xd0, 0x5d, 0x92, 0xdc, 0x4b, 0x2a, 0x88, 0x1f, 0xf0, 0x7e, 0xc1, 0x53, 0x64, 0xf4, 0x14, 0x2a, + 0x63, 0x16, 0x09, 0x1a, 0x09, 0x6e, 0x17, 0x9b, 0x46, 0xab, 0xd6, 0x2f, 0x78, 0x0b, 0x04, 0xbd, + 0x00, 0x73, 0x46, 0xf8, 0xcc, 0x2e, 0x29, 0xc9, 0x86, 0x96, 0xec, 0x13, 0x3e, 0x1b, 0xde, 0xc6, + 0x54, 0x6a, 0xc8, 0x55, 0xe7, 0x23, 0xec, 0xa6, 0xb2, 0xe8, 0x19, 0x58, 0x09, 0x0d, 0x99, 0xa0, + 0x23, 0x59, 0x58, 0x59, 0xa9, 0x7a, 0xa0, 0xa1, 0xf7, 0x7e, 0x40, 0x51, 0x13, 0xac, 0x98, 0x26, + 0xa1, 0xcf, 0xb9, 0xcf, 0x22, 0x5d, 0xb2, 0xee, 0xe5, 0xa1, 0x5e, 0x15, 0x76, 0x13, 0x6d, 0x16, + 0xd7, 0xc1, 0x52, 0xd6, 0x79, 0xcc, 0x22, 0x4e, 0xf1, 0x2b, 0x80, 0x2b, 0xba, 0x88, 0xfb, 0xbf, + 0x52, 0xf8, 0x1a, 0x2c, 0x45, 0xd7, 0xbb, 0x57, 0x92, 0x1a, 0x77, 0x26, 0x2d, 0xde, 0x97, 0xb4, + 0x07, 0x50, 0x49, 0x32, 0x37, 0x37, 0x70, 0x3c, 0x4c, 0x48, 0xc4, 0xa7, 0x34, 0x19, 0x32, 0x4f, + 0x95, 0xcd, 0xac, 0x9d, 0x00, 0x04, 0x6c, 0x4c, 0x82, 0x51, 0x4c, 0xc4, 0x2c, 0x75, 0x56, 0x55, + 0xc8, 0x80, 0x88, 0x19, 0x7a, 0x0b, 0x7b, 0xa9, 0xf3, 0x09, 0xbb, 0x89, 0x02, 0x46, 0x26, 0x69, + 0xd9, 0x43, 0x5d, 0x56, 0x8b, 0x5d, 0xa6, 0x6b, 0x5e, 0x23, 0x59, 0xf9, 0xc6, 0x17, 0x60, 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, 0x07, 0x86, 0x8e, 0xd6, 0x4e, 0x35, 0xdb, 0x7b, 0xbc, 0x81, + 0x2f, 0x8a, 0xbe, 0x83, 0x1d, 0xdd, 0x28, 0x64, 0xe7, 0x48, 0x2b, 0xdd, 0x76, 0x9e, 0x6c, 0x59, + 0xc9, 0x04, 0x7a, 0x95, 0xdf, 0x17, 0xe5, 0x8e, 0xfb, 0xda, 0xed, 0x7c, 0xd9, 0x51, 0xff, 0x69, + 0x67, 0xff, 0x02, 0x00, 0x00, 0xff, 0xff, 0xfd, 0xd9, 0x93, 0x47, 0x19, 0x05, 0x00, 0x00, } diff --git a/file/file.proto b/file/file.proto index 853e3af5..70aef125 100644 --- a/file/file.proto +++ b/file/file.proto @@ -18,8 +18,10 @@ syntax = "proto3"; package gnoi.file; -import "github.com/openconfig/gnoi/common.proto"; -import "github.com/openconfig/gnoi/types.proto"; +import "common/common.proto"; +import "types/types.proto"; + +option (gnoi.gnoi_version) = "0.1.0"; service File { // Get reads and streams the contents of a file from the target. diff --git a/interface/interface.pb.go b/interface/interface.pb.go index a1f3f84b..a8e99d87 100644 --- a/interface/interface.pb.go +++ b/interface/interface.pb.go @@ -1,5 +1,6 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. +// Code generated by protoc-gen-go. // source: interface/interface.proto +// DO NOT EDIT! /* Package gnoi_interface is a generated protocol buffer package. @@ -20,7 +21,7 @@ package gnoi_interface import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" -import gnoi "github.com/openconfig/gnoi" +import gnoi "types" import ( context "golang.org/x/net/context" @@ -59,13 +60,6 @@ func (m *SetLoopbackModeRequest) GetInterface() *gnoi.Path { return nil } -func (m *SetLoopbackModeRequest) GetMode() string { - if m != nil { - return m.Mode - } - return "" -} - type SetLoopbackModeResponse struct { } @@ -99,13 +93,6 @@ func (m *GetLoopbackModeResponse) String() string { return proto.Comp func (*GetLoopbackModeResponse) ProtoMessage() {} func (*GetLoopbackModeResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} } -func (m *GetLoopbackModeResponse) GetMode() string { - if m != nil { - return m.Mode - } - return "" -} - type ClearInterfaceCountersRequest struct { Interface []*gnoi.Path `protobuf:"bytes,1,rep,name=interface" json:"interface,omitempty"` } @@ -286,23 +273,22 @@ var _Interface_serviceDesc = grpc.ServiceDesc{ func init() { proto.RegisterFile("interface/interface.proto", fileDescriptor0) } var fileDescriptor0 = []byte{ - // 284 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xcc, 0xcc, 0x2b, 0x49, + // 271 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xe2, 0x92, 0xcc, 0xcc, 0x2b, 0x49, 0x2d, 0x4a, 0x4b, 0x4c, 0x4e, 0xd5, 0x87, 0xb3, 0xf4, 0x0a, 0x8a, 0xf2, 0x4b, 0xf2, 0x85, 0xf8, - 0xd2, 0xf3, 0xf2, 0x33, 0xf5, 0xe0, 0xa2, 0x52, 0x6a, 0xe9, 0x99, 0x25, 0x19, 0xa5, 0x49, 0x7a, - 0xc9, 0xf9, 0xb9, 0xfa, 0xf9, 0x05, 0xa9, 0x79, 0xc9, 0xf9, 0x79, 0x69, 0x99, 0xe9, 0xfa, 0x20, - 0x55, 0xfa, 0x25, 0x95, 0x05, 0xa9, 0xc5, 0x10, 0x7d, 0x4a, 0x61, 0x5c, 0x62, 0xc1, 0xa9, 0x25, - 0x3e, 0xf9, 0xf9, 0x05, 0x49, 0x89, 0xc9, 0xd9, 0xbe, 0xf9, 0x29, 0xa9, 0x41, 0xa9, 0x85, 0xa5, - 0xa9, 0xc5, 0x25, 0x42, 0x1a, 0x5c, 0x9c, 0x70, 0xe3, 0x24, 0x18, 0x15, 0x18, 0x35, 0xb8, 0x8d, - 0xb8, 0xf4, 0xc0, 0xb6, 0x04, 0x24, 0x96, 0x64, 0x04, 0x21, 0x24, 0x85, 0x84, 0xb8, 0x58, 0x72, - 0xf3, 0x53, 0x52, 0x25, 0x98, 0x14, 0x18, 0x35, 0x38, 0x83, 0xc0, 0x6c, 0x25, 0x49, 0x2e, 0x71, - 0x0c, 0x73, 0x8b, 0x0b, 0xf2, 0xf3, 0x8a, 0x53, 0x95, 0x9c, 0xb8, 0xc4, 0xdc, 0x29, 0xb4, 0x52, - 0x49, 0x97, 0x4b, 0xdc, 0x1d, 0xbb, 0xf1, 0x70, 0xd7, 0x30, 0x22, 0xb9, 0xc6, 0x93, 0x4b, 0xd6, - 0x39, 0x27, 0x35, 0xb1, 0xc8, 0x13, 0x66, 0x80, 0x73, 0x7e, 0x29, 0x88, 0x59, 0x8c, 0xc3, 0x66, - 0x66, 0xdc, 0x36, 0x2b, 0x70, 0xc9, 0xe1, 0x32, 0x0a, 0xe2, 0x00, 0xa3, 0x4b, 0x4c, 0x5c, 0x9c, - 0x70, 0x59, 0xa1, 0x14, 0x2e, 0x7e, 0xb4, 0x80, 0x10, 0x52, 0xd3, 0x43, 0x8d, 0x2c, 0x3d, 0xec, - 0x31, 0x20, 0xa5, 0x4e, 0x50, 0x1d, 0x34, 0x44, 0x19, 0x40, 0xb6, 0xb8, 0x13, 0xb2, 0xc5, 0x9d, - 0x48, 0x5b, 0xdc, 0x71, 0xda, 0x52, 0xc9, 0x25, 0x86, 0xdd, 0xef, 0x42, 0xba, 0xe8, 0x86, 0xe0, - 0x0d, 0x6e, 0x29, 0x3d, 0x62, 0x95, 0xc3, 0xac, 0x4e, 0x62, 0x03, 0x27, 0x57, 0x63, 0x40, 0x00, - 0x00, 0x00, 0xff, 0xff, 0xfa, 0x35, 0x00, 0x60, 0x03, 0x03, 0x00, 0x00, + 0xd2, 0xf3, 0xf2, 0x33, 0xf5, 0xe0, 0xa2, 0x52, 0x82, 0x25, 0x95, 0x05, 0xa9, 0xc5, 0xfa, 0x60, + 0x12, 0xa2, 0x44, 0x29, 0x8c, 0x4b, 0x2c, 0x38, 0xb5, 0xc4, 0x27, 0x3f, 0xbf, 0x20, 0x29, 0x31, + 0x39, 0xdb, 0x37, 0x3f, 0x25, 0x35, 0x28, 0xb5, 0xb0, 0x34, 0xb5, 0xb8, 0x44, 0x48, 0x83, 0x8b, + 0x13, 0xae, 0x53, 0x82, 0x51, 0x81, 0x51, 0x83, 0xdb, 0x88, 0x4b, 0x0f, 0x6c, 0x60, 0x40, 0x62, + 0x49, 0x46, 0x10, 0x42, 0x52, 0x48, 0x88, 0x8b, 0x25, 0x37, 0x3f, 0x25, 0x55, 0x82, 0x49, 0x81, + 0x51, 0x83, 0x33, 0x08, 0xcc, 0x56, 0x92, 0xe4, 0x12, 0xc7, 0x30, 0xb7, 0xb8, 0x20, 0x3f, 0xaf, + 0x38, 0x55, 0xc9, 0x89, 0x4b, 0xcc, 0x9d, 0x42, 0x2b, 0x95, 0x74, 0xb9, 0xc4, 0xdd, 0xb1, 0x1b, + 0x0f, 0x77, 0x0d, 0x23, 0x92, 0x6b, 0x3c, 0xb9, 0x64, 0x9d, 0x73, 0x52, 0x13, 0x8b, 0x3c, 0x61, + 0x06, 0x38, 0xe7, 0x97, 0x82, 0x98, 0xc5, 0x38, 0x6c, 0x66, 0xc6, 0x6d, 0xb3, 0x02, 0x97, 0x1c, + 0x2e, 0xa3, 0x20, 0x0e, 0x30, 0xba, 0xc4, 0xc4, 0xc5, 0x09, 0x97, 0x15, 0x4a, 0xe1, 0xe2, 0x47, + 0x0b, 0x08, 0x21, 0x35, 0x3d, 0xd4, 0x78, 0xd1, 0xc3, 0x1e, 0x03, 0x52, 0xea, 0x04, 0xd5, 0x41, + 0x43, 0x94, 0x01, 0x64, 0x8b, 0x3b, 0x21, 0x5b, 0xdc, 0x89, 0xb4, 0xc5, 0x1d, 0xa7, 0x2d, 0x95, + 0x5c, 0x62, 0xd8, 0xfd, 0x2e, 0xa4, 0x8b, 0x6e, 0x08, 0xde, 0xe0, 0x96, 0xd2, 0x23, 0x56, 0x39, + 0xcc, 0x6a, 0x27, 0x8e, 0x4b, 0x76, 0xac, 0x06, 0x7a, 0x86, 0x7a, 0x06, 0x49, 0x6c, 0xe0, 0x84, + 0x6b, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0x30, 0x48, 0x72, 0xef, 0xf8, 0x02, 0x00, 0x00, } diff --git a/interface/interface.proto b/interface/interface.proto index 01ed7ccc..4cff3200 100644 --- a/interface/interface.proto +++ b/interface/interface.proto @@ -18,7 +18,9 @@ syntax = "proto3"; package gnoi.interface; -import "github.com/openconfig/gnoi/types.proto"; +import "types/types.proto"; + +option (gnoi.gnoi_version) = "0.1.0"; service Interface { // SetLoopbackMode is used to set the mode of loopback on a interface. diff --git a/layer2/layer2.pb.go b/layer2/layer2.pb.go index 00f5f7f8..610ac40c 100644 --- a/layer2/layer2.pb.go +++ b/layer2/layer2.pb.go @@ -1,5 +1,6 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. +// Code generated by protoc-gen-go. // source: layer2/layer2.proto +// DO NOT EDIT! /* Package gnoi_layer2 is a generated protocol buffer package. @@ -24,7 +25,7 @@ package gnoi_layer2 import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" -import gnoi "github.com/openconfig/gnoi" +import gnoi "types" import ( context "golang.org/x/net/context" @@ -84,20 +85,6 @@ func (m *ClearNeighborDiscoveryRequest) String() string { return prot func (*ClearNeighborDiscoveryRequest) ProtoMessage() {} func (*ClearNeighborDiscoveryRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } -func (m *ClearNeighborDiscoveryRequest) GetProtocol() gnoi.L3Protocol { - if m != nil { - return m.Protocol - } - return gnoi.L3Protocol_UNSPECIFIED -} - -func (m *ClearNeighborDiscoveryRequest) GetAddress() string { - if m != nil { - return m.Address - } - return "" -} - type ClearNeighborDiscoveryResponse struct { } @@ -141,13 +128,6 @@ func (m *PerformBERTRequest) String() string { return proto.CompactTe func (*PerformBERTRequest) ProtoMessage() {} func (*PerformBERTRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} } -func (m *PerformBERTRequest) GetId() string { - if m != nil { - return m.Id - } - return "" -} - func (m *PerformBERTRequest) GetInterface() *gnoi.Path { if m != nil { return m.Interface @@ -169,48 +149,6 @@ func (m *PerformBERTResponse) String() string { return proto.CompactT func (*PerformBERTResponse) ProtoMessage() {} func (*PerformBERTResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} } -func (m *PerformBERTResponse) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *PerformBERTResponse) GetState() PerformBERTResponse_BERTState { - if m != nil { - return m.State - } - return PerformBERTResponse_UNKNOWN -} - -func (m *PerformBERTResponse) GetElapsedPeriod() int64 { - if m != nil { - return m.ElapsedPeriod - } - return 0 -} - -func (m *PerformBERTResponse) GetPattern() []byte { - if m != nil { - return m.Pattern - } - return nil -} - -func (m *PerformBERTResponse) GetErrors() int64 { - if m != nil { - return m.Errors - } - return 0 -} - -func (m *PerformBERTResponse) GetReceivedBits() int64 { - if m != nil { - return m.ReceivedBits - } - return 0 -} - type ClearLLDPInterfaceRequest struct { Interface *gnoi.Path `protobuf:"bytes,1,opt,name=interface" json:"interface,omitempty"` } @@ -253,20 +191,6 @@ func (m *SendWakeOnLANRequest) GetInterface() *gnoi.Path { return nil } -func (m *SendWakeOnLANRequest) GetAddress() string { - if m != nil { - return m.Address - } - return "" -} - -func (m *SendWakeOnLANRequest) GetMacAddress() []byte { - if m != nil { - return m.MacAddress - } - return nil -} - type SendWakeOnLANResponse struct { } @@ -550,43 +474,43 @@ var _Layer2_serviceDesc = grpc.ServiceDesc{ func init() { proto.RegisterFile("layer2/layer2.proto", fileDescriptor0) } var fileDescriptor0 = []byte{ - // 597 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0x6d, 0x4f, 0x13, 0x41, - 0x10, 0xe6, 0x5a, 0x28, 0x74, 0x0a, 0x4d, 0x5d, 0x14, 0xcf, 0xfa, 0x42, 0x3d, 0x03, 0x36, 0x6a, - 0xae, 0xa6, 0xfc, 0x01, 0x81, 0x36, 0x86, 0x78, 0x5e, 0x9b, 0x6d, 0x09, 0x7e, 0x23, 0xdb, 0xbb, - 0xe1, 0xd8, 0xd8, 0xde, 0x9e, 0xbb, 0x0b, 0x09, 0xf1, 0x67, 0xf9, 0xf7, 0xfc, 0x60, 0x7a, 0x2f, - 0x95, 0xda, 0x83, 0xca, 0xa7, 0xcb, 0xce, 0x3c, 0xf3, 0x3c, 0x93, 0x99, 0x67, 0x0e, 0xb6, 0xc7, - 0xec, 0x06, 0x65, 0xbb, 0x95, 0x7c, 0xec, 0x48, 0x0a, 0x2d, 0x48, 0x25, 0x08, 0x05, 0xb7, 0x93, - 0x50, 0x7d, 0x3f, 0xe0, 0xfa, 0xf2, 0x6a, 0x64, 0x7b, 0x62, 0xd2, 0x12, 0x11, 0x86, 0x9e, 0x08, - 0x2f, 0x78, 0xd0, 0x9a, 0x42, 0x5a, 0xfa, 0x26, 0x42, 0x95, 0x14, 0x59, 0x01, 0xbc, 0x3c, 0x1e, - 0x23, 0x93, 0x2e, 0xf2, 0xe0, 0x72, 0x24, 0x64, 0x87, 0x2b, 0x4f, 0x5c, 0xa3, 0xbc, 0xa1, 0xf8, - 0xe3, 0x0a, 0x95, 0x26, 0x1f, 0x60, 0x23, 0x46, 0x7a, 0x62, 0x6c, 0x1a, 0x0d, 0xa3, 0x59, 0x6d, - 0xd7, 0xec, 0x58, 0xc8, 0x39, 0xe8, 0xa7, 0x71, 0x3a, 0x43, 0x10, 0x13, 0xd6, 0x99, 0xef, 0x4b, - 0x54, 0xca, 0x2c, 0x34, 0x8c, 0x66, 0x99, 0x66, 0x4f, 0xab, 0x01, 0xaf, 0xee, 0x12, 0x52, 0x91, - 0x08, 0x15, 0x5a, 0x1d, 0x30, 0x63, 0xc4, 0x20, 0x62, 0x61, 0xc8, 0xc3, 0x60, 0x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xb9, 0xda, 0x3c, 0x5b, 0xd5, 0xad, 0xfb, 0x20, - 0x19, 0xf3, 0xa8, 0x14, 0xff, 0x28, 0x0f, 0xfe, 0x04, 0x00, 0x00, 0xff, 0xff, 0xd8, 0x91, 0x68, - 0xe4, 0xc0, 0x05, 0x00, 0x00, + // 593 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x94, 0x54, 0x6f, 0x4f, 0xd3, 0x5e, + 0x14, 0xa6, 0x1b, 0x1b, 0xec, 0x0c, 0x96, 0x72, 0xf9, 0xfd, 0xb0, 0xd6, 0x3f, 0xd4, 0x1a, 0x74, + 0x51, 0x53, 0x70, 0xbc, 0x37, 0x32, 0xd6, 0x18, 0x62, 0xed, 0x9a, 0xbb, 0x11, 0x7c, 0x47, 0x2e, + 0xed, 0x61, 0x34, 0x8e, 0xb6, 0xde, 0x5b, 0x49, 0x88, 0x1f, 0xcb, 0x6f, 0xe2, 0xe7, 0xf1, 0x85, + 0xd9, 0x6d, 0x3b, 0x99, 0x2b, 0x4c, 0xde, 0x6c, 0xb9, 0xe7, 0xcf, 0x73, 0x9e, 0x9c, 0xe7, 0x39, + 0x85, 0xcd, 0x31, 0xbb, 0x46, 0xde, 0xd9, 0xcd, 0xfe, 0xac, 0x84, 0xc7, 0x69, 0x4c, 0x9a, 0xa3, + 0x28, 0x0e, 0xad, 0x2c, 0xa4, 0x6f, 0xa4, 0xd7, 0x09, 0x8a, 0x5d, 0xf9, 0x9b, 0xe5, 0xcd, 0x11, + 0x3c, 0x39, 0x1c, 0x23, 0xe3, 0x2e, 0x86, 0xa3, 0x8b, 0xb3, 0x98, 0xf7, 0x42, 0xe1, 0xc7, 0x57, + 0xc8, 0xaf, 0x29, 0x7e, 0xfd, 0x86, 0x22, 0x25, 0x6f, 0x60, 0x55, 0x56, 0xfa, 0xf1, 0x58, 0x53, + 0x0c, 0xa5, 0xdd, 0xea, 0xa8, 0x96, 0xc4, 0x74, 0xf6, 0xbd, 0x3c, 0x4e, 0xa7, 0x15, 0x44, 0x83, + 0x15, 0x16, 0x04, 0x1c, 0x85, 0xd0, 0x2a, 0x86, 0xd2, 0x6e, 0xd0, 0xe2, 0x69, 0x1a, 0xf0, 0xf4, + 0xb6, 0x41, 0x22, 0x89, 0x23, 0x81, 0x66, 0x0f, 0x34, 0x59, 0x31, 0x48, 0x58, 0x14, 0x85, 0xd1, + 0x68, 0xc8, 0x11, 0x0b, 0x16, 0x6d, 0x68, 0x84, 0x51, 0x8a, 0xfc, 0x9c, 0xf9, 0x28, 0x69, 0x34, + 0x3b, 0x90, 0xd1, 0xf0, 0x58, 0x7a, 0x41, 0xff, 0x24, 0xcd, 0x47, 0xf0, 0xb0, 0x04, 0x25, 0x1f, + 0xe1, 0x02, 0xf1, 0x90, 0x9f, 0xc7, 0xfc, 0xb2, 0x6b, 0xd3, 0x61, 0x01, 0xde, 0x82, 0x4a, 0x18, + 0x48, 0xd4, 0x06, 0xad, 0x84, 0xc1, 0xec, 0xb0, 0xca, 0x5d, 0xc3, 0x7e, 0x54, 0x60, 0x73, 0x06, + 0x30, 0x9b, 0x33, 0x87, 0xf8, 0x1e, 0x6a, 0x22, 0x65, 0x69, 0x86, 0xd6, 0xea, 0xbc, 0xb2, 0x6e, + 0xa8, 0x62, 0x95, 0x00, 0x58, 0x93, 0xc7, 0x60, 0xd2, 0x41, 0xb3, 0x46, 0xb2, 0x03, 0x2d, 0x1c, + 0xb3, 0x44, 0x60, 0x70, 0x9a, 0x20, 0x0f, 0xe3, 0x40, 0xab, 0x1a, 0x4a, 0xbb, 0x4a, 0xd7, 0xf3, + 0xa8, 0x27, 0x83, 0x93, 0xfd, 0x27, 0x2c, 0x4d, 0x91, 0x47, 0xda, 0xb2, 0xa1, 0xb4, 0xd7, 0x68, + 0xf1, 0x24, 0x5b, 0x50, 0x47, 0xce, 0x63, 0x2e, 0xb4, 0x9a, 0x6c, 0xcc, 0x5f, 0xe4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xe6, 0x0d, 0x53, 0x93, 0xed, 0xdb, 0xed, 0x9e, 0x21, 0x1b, 0x8b, 0xee, 0xc1, + 0x5c, 0xda, 0x53, 0xc8, 0x08, 0xc8, 0xbc, 0xde, 0xa4, 0x84, 0x55, 0x99, 0xaf, 0xf4, 0x97, 0x0b, + 0xeb, 0xa6, 0xf4, 0x3f, 0xc3, 0xfa, 0x8c, 0x7a, 0xe4, 0xd9, 0x4c, 0x6f, 0x99, 0xad, 0x74, 0xf3, + 0xae, 0x92, 0x02, 0xb9, 0xbb, 0xfa, 0xf3, 0x5d, 0x6d, 0xcf, 0x7a, 0x6b, 0xed, 0x9d, 0xd5, 0xe5, + 0x27, 0x73, 0xff, 0x77, 0x00, 0x00, 0x00, 0xff, 0xff, 0x4d, 0x41, 0x21, 0x76, 0xb5, 0x05, 0x00, + 0x00, } diff --git a/layer2/layer2.proto b/layer2/layer2.proto index 9d6897ff..22407edf 100644 --- a/layer2/layer2.proto +++ b/layer2/layer2.proto @@ -18,8 +18,9 @@ syntax = "proto3"; package gnoi.layer2; -import "github.com/openconfig/gnoi/types.proto"; +import "types/types.proto"; +option (gnoi.gnoi_version) = "0.1.0"; service Layer2 { // ClearNeighborDiscovery will clear either a specific neighbor entry or diff --git a/mpls/mpls.pb.go b/mpls/mpls.pb.go index 7faabf30..aa12e11b 100644 --- a/mpls/mpls.pb.go +++ b/mpls/mpls.pb.go @@ -1,5 +1,6 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. +// Code generated by protoc-gen-go. // source: mpls/mpls.proto +// DO NOT EDIT! /* Package gnoi_mpls is a generated protocol buffer package. @@ -22,6 +23,7 @@ package gnoi_mpls import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" +import _ "types" import ( context "golang.org/x/net/context" @@ -142,20 +144,6 @@ func (m *ClearLSPRequest) String() string { return proto.CompactTextS func (*ClearLSPRequest) ProtoMessage() {} func (*ClearLSPRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } -func (m *ClearLSPRequest) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -func (m *ClearLSPRequest) GetMode() ClearLSPRequest_Mode { - if m != nil { - return m.Mode - } - return ClearLSPRequest_DEFAULT -} - type ClearLSPResponse struct { } @@ -174,13 +162,6 @@ func (m *ClearLSPCountersRequest) String() string { return proto.Comp func (*ClearLSPCountersRequest) ProtoMessage() {} func (*ClearLSPCountersRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} } -func (m *ClearLSPCountersRequest) GetName() string { - if m != nil { - return m.Name - } - return "" -} - type ClearLSPCountersResponse struct { } @@ -202,20 +183,6 @@ func (m *MPLSPingPWEDestination) String() string { return proto.Compa func (*MPLSPingPWEDestination) ProtoMessage() {} func (*MPLSPingPWEDestination) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} } -func (m *MPLSPingPWEDestination) GetEler() string { - if m != nil { - return m.Eler - } - return "" -} - -func (m *MPLSPingPWEDestination) GetVcid() uint32 { - if m != nil { - return m.Vcid - } - return 0 -} - // MPLSPingRSVPTEDestination specifies the destination for an MPLS Ping in // terms of an absolute specification of an RSVP-TE LSP. It can be used to // identify an individual RSVP-TE session via which a ping should be sent. @@ -236,27 +203,6 @@ func (m *MPLSPingRSVPTEDestination) String() string { return proto.Co func (*MPLSPingRSVPTEDestination) ProtoMessage() {} func (*MPLSPingRSVPTEDestination) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} } -func (m *MPLSPingRSVPTEDestination) GetSrc() string { - if m != nil { - return m.Src - } - return "" -} - -func (m *MPLSPingRSVPTEDestination) GetDst() string { - if m != nil { - return m.Dst - } - return "" -} - -func (m *MPLSPingRSVPTEDestination) GetExtendedTunnelId() uint32 { - if m != nil { - return m.ExtendedTunnelId - } - return 0 -} - // MPLSPingRequest specifies the parameters that should be used as input from // the client, to a system that is initiating an RFC4379 MPLS ping request. type MPLSPingRequest struct { @@ -345,48 +291,6 @@ func (m *MPLSPingRequest) GetRsvpteLsp() *MPLSPingRSVPTEDestination { return nil } -func (m *MPLSPingRequest) GetReplyMode() MPLSPingRequest_ReplyMode { - if m != nil { - return m.ReplyMode - } - return MPLSPingRequest_IPV4 -} - -func (m *MPLSPingRequest) GetCount() uint32 { - if m != nil { - return m.Count - } - return 0 -} - -func (m *MPLSPingRequest) GetSize() uint32 { - if m != nil { - return m.Size - } - return 0 -} - -func (m *MPLSPingRequest) GetSourceAddress() string { - if m != nil { - return m.SourceAddress - } - return "" -} - -func (m *MPLSPingRequest) GetMplsTtl() uint32 { - if m != nil { - return m.MplsTtl - } - return 0 -} - -func (m *MPLSPingRequest) GetTrafficClass() uint32 { - if m != nil { - return m.TrafficClass - } - return 0 -} - // XXX_OneofFuncs is for the internal use of the proto package. func (*MPLSPingRequest) 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 _MPLSPingRequest_OneofMarshaler, _MPLSPingRequest_OneofUnmarshaler, _MPLSPingRequest_OneofSizer, []interface{}{ @@ -508,27 +412,6 @@ func (m *MPLSPingResponse) String() string { return proto.CompactText func (*MPLSPingResponse) ProtoMessage() {} func (*MPLSPingResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} } -func (m *MPLSPingResponse) GetSeq() uint32 { - if m != nil { - return m.Seq - } - return 0 -} - -func (m *MPLSPingResponse) GetResponse() MPLSPingResponse_EchoResponseCode { - if m != nil { - return m.Response - } - return MPLSPingResponse_SUCCESS -} - -func (m *MPLSPingResponse) GetResponseTime() uint64 { - if m != nil { - return m.ResponseTime - } - return 0 -} - func init() { proto.RegisterType((*ClearLSPRequest)(nil), "gnoi.mpls.ClearLSPRequest") proto.RegisterType((*ClearLSPResponse)(nil), "gnoi.mpls.ClearLSPResponse") @@ -720,51 +603,53 @@ var _MPLS_serviceDesc = grpc.ServiceDesc{ func init() { proto.RegisterFile("mpls/mpls.proto", fileDescriptor0) } var fileDescriptor0 = []byte{ - // 736 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x54, 0x4f, 0x6f, 0xda, 0x4a, - 0x10, 0xb7, 0xc1, 0x09, 0x30, 0x60, 0xd8, 0xac, 0xf2, 0xde, 0x73, 0x78, 0x87, 0x97, 0xe7, 0xb4, - 0x6a, 0x0e, 0x29, 0x6d, 0x49, 0x2f, 0xed, 0xa9, 0x84, 0x38, 0x09, 0x12, 0x01, 0xb4, 0x36, 0xc9, - 0xa9, 0xb2, 0xa8, 0xbd, 0xa4, 0x96, 0x8c, 0xed, 0x78, 0x4d, 0xd2, 0xf6, 0x4b, 0x56, 0xea, 0x17, - 0xe9, 0xa9, 0xf7, 0x6a, 0xd7, 0x36, 0x04, 0x42, 0x73, 0xb1, 0x66, 0x7f, 0x33, 0xf3, 0x9b, 0xbf, - 0x1e, 0x68, 0xcc, 0x22, 0x9f, 0xbd, 0xe2, 0x9f, 0x56, 0x14, 0x87, 0x49, 0x88, 0x2b, 0x37, 0x41, - 0xe8, 0xb5, 0x38, 0xa0, 0xff, 0x90, 0xa1, 0xd1, 0xf5, 0xe9, 0x24, 0xee, 0x9b, 0x23, 0x42, 0x6f, - 0xe7, 0x94, 0x25, 0x18, 0x83, 0x12, 0x4c, 0x66, 0x54, 0x2b, 0xec, 0xcb, 0x87, 0x15, 0x22, 0x64, - 0x7c, 0x0c, 0xca, 0x2c, 0x74, 0xa9, 0x56, 0xdc, 0x97, 0x0f, 0xeb, 0xed, 0xff, 0x5a, 0x0b, 0x86, - 0xd6, 0x9a, 0x77, 0xeb, 0x32, 0x74, 0x29, 0x11, 0xc6, 0xfa, 0x1d, 0x28, 0xfc, 0x85, 0xab, 0x50, - 0x3a, 0x35, 0xce, 0x3a, 0xe3, 0xbe, 0x85, 0x24, 0xbc, 0x03, 0xea, 0x60, 0x38, 0xe8, 0x9c, 0x9f, - 0x13, 0xc3, 0x34, 0x7b, 0x57, 0x06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xff, 0xc7, 0x45, 0x47, 0x1a, 0xc5, 0x05, 0x00, 0x00, + // 756 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x7c, 0x54, 0x4d, 0x6f, 0xf2, 0x46, + 0x10, 0xb6, 0xc1, 0x04, 0x33, 0x60, 0x70, 0x56, 0x6f, 0x5b, 0x87, 0x1e, 0x9a, 0x3a, 0xad, 0x9a, + 0x43, 0xea, 0x24, 0xa4, 0x97, 0xf6, 0x50, 0x15, 0x88, 0x93, 0x20, 0x11, 0x40, 0x6b, 0x93, 0x9c, + 0x2a, 0x8b, 0xda, 0x4b, 0x6a, 0xc9, 0xd8, 0x8e, 0xd7, 0x24, 0x4d, 0xff, 0x64, 0xa5, 0xfc, 0x91, + 0x9e, 0x7a, 0xaf, 0x76, 0x6d, 0x43, 0x20, 0xbc, 0xb9, 0x58, 0xb3, 0xcf, 0xcc, 0x3c, 0xf3, 0xe9, + 0x81, 0xd6, 0x22, 0x0e, 0xe8, 0x29, 0xfb, 0x18, 0x71, 0x12, 0xa5, 0x11, 0xaa, 0x3d, 0x84, 0x91, + 0x6f, 0x30, 0xa0, 0xbd, 0x9f, 0xbe, 0xc4, 0x84, 0x9e, 0xf2, 0x6f, 0xa6, 0xd5, 0x5f, 0x45, 0x68, + 0xf5, 0x03, 0x32, 0x4b, 0x86, 0xd6, 0x04, 0x93, 0xc7, 0x25, 0xa1, 0x29, 0x42, 0x20, 0x85, 0xb3, + 0x05, 0xd1, 0x4a, 0x87, 0xe2, 0x71, 0x0d, 0x73, 0x19, 0x5d, 0x80, 0xb4, 0x88, 0x3c, 0xa2, 0x95, + 0x0f, 0xc5, 0xe3, 0x66, 0xe7, 0x1b, 0x63, 0x45, 0x6a, 0x6c, 0x79, 0x1b, 0xb7, 0x91, 0x47, 0x30, + 0x37, 0xd6, 0x9f, 0x40, 0x62, 0x2f, 0x54, 0x87, 0xea, 0xa5, 0x79, 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5, 0x86, 0x1b, + 0x59, 0x6e, 0xf7, 0x5b, 0x17, 0xce, 0xc4, 0x9e, 0xfc, 0xfa, 0x6b, 0xe5, 0xcc, 0x38, 0x37, 0xce, + 0xfe, 0xd8, 0xe3, 0x17, 0xfb, 0xe2, 0xff, 0x00, 0x00, 0x00, 0xff, 0xff, 0x57, 0xb4, 0xb0, 0x62, + 0xe2, 0x05, 0x00, 0x00, } diff --git a/mpls/mpls.proto b/mpls/mpls.proto index 7ec08067..867687c7 100644 --- a/mpls/mpls.proto +++ b/mpls/mpls.proto @@ -16,8 +16,12 @@ syntax = "proto3"; +import "types/types.proto"; + package gnoi.mpls; +option (gnoi.gnoi_version) = "0.1.0"; + service MPLS { // ClearLSP clears a single tunnel (requests for it's route to be // recalculated). diff --git a/system/system.pb.go b/system/system.pb.go index 26f480f0..a6c89a93 100644 --- a/system/system.pb.go +++ b/system/system.pb.go @@ -1,5 +1,6 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. +// Code generated by protoc-gen-go. // source: system/system.proto +// DO NOT EDIT! /* Package gnoi_system is a generated protocol buffer package. @@ -31,7 +32,8 @@ package gnoi_system import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" -import gnoi "github.com/openconfig/gnoi" +import gnoi1 "common" +import gnoi "types" import ( context "golang.org/x/net/context" @@ -205,20 +207,6 @@ func (m *SwitchControlProcessorResponse) GetControlProcessor() *gnoi.Path { return nil } -func (m *SwitchControlProcessorResponse) GetVersion() string { - if m != nil { - return m.Version - } - return "" -} - -func (m *SwitchControlProcessorResponse) GetUptime() int64 { - if m != nil { - return m.Uptime - } - return 0 -} - // A RebootRequest requests the specified target be rebooted using the specified // method aftar the specified delay. Only the DEFAULT method with a delay of 0 // is guaranteed to be accepted for all target types. @@ -239,27 +227,6 @@ func (m *RebootRequest) String() string { return proto.CompactTextStr func (*RebootRequest) ProtoMessage() {} func (*RebootRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} } -func (m *RebootRequest) GetMethod() RebootMethod { - if m != nil { - return m.Method - } - return RebootMethod_UNKNOWN -} - -func (m *RebootRequest) GetDelay() uint64 { - if m != nil { - return m.Delay - } - return 0 -} - -func (m *RebootRequest) GetMessage() string { - if m != nil { - return m.Message - } - return "" -} - func (m *RebootRequest) GetSubcomponents() []*gnoi.Path { if m != nil { return m.Subcomponents @@ -267,13 +234,6 @@ func (m *RebootRequest) GetSubcomponents() []*gnoi.Path { return nil } -func (m *RebootRequest) GetForce() bool { - if m != nil { - return m.Force - } - return false -} - type RebootResponse struct { } @@ -294,13 +254,6 @@ func (m *CancelRebootRequest) String() string { return proto.CompactT func (*CancelRebootRequest) ProtoMessage() {} func (*CancelRebootRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} } -func (m *CancelRebootRequest) GetMessage() string { - if m != nil { - return m.Message - } - return "" -} - func (m *CancelRebootRequest) GetSubcomponents() []*gnoi.Path { if m != nil { return m.Subcomponents @@ -345,41 +298,6 @@ func (m *RebootStatusResponse) String() string { return proto.Compact func (*RebootStatusResponse) ProtoMessage() {} func (*RebootStatusResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} } -func (m *RebootStatusResponse) GetActive() bool { - if m != nil { - return m.Active - } - return false -} - -func (m *RebootStatusResponse) GetWait() uint64 { - if m != nil { - return m.Wait - } - return 0 -} - -func (m *RebootStatusResponse) GetWhen() uint64 { - if m != nil { - return m.When - } - return 0 -} - -func (m *RebootStatusResponse) GetReason() string { - if m != nil { - return m.Reason - } - return "" -} - -func (m *RebootStatusResponse) GetCount() uint32 { - if m != nil { - return m.Count - } - return 0 -} - // A TimeRequest requests the current time accodring to the target. type TimeRequest struct { } @@ -398,13 +316,6 @@ func (m *TimeResponse) String() string { return proto.CompactTextStri func (*TimeResponse) ProtoMessage() {} func (*TimeResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{9} } -func (m *TimeResponse) GetTime() uint64 { - if m != nil { - return m.Time - } - return 0 -} - // A PingRequest describes the ping operation to perform. Only the destination // fields is required. Any field not specified is set to a reasonable server // specified value. Not all fields are supported by all vendors. @@ -432,69 +343,6 @@ func (m *PingRequest) String() string { return proto.CompactTextStrin func (*PingRequest) ProtoMessage() {} func (*PingRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{10} } -func (m *PingRequest) GetDestination() string { - if m != nil { - return m.Destination - } - return "" -} - -func (m *PingRequest) GetSource() string { - if m != nil { - return m.Source - } - return "" -} - -func (m *PingRequest) GetCount() int32 { - if m != nil { - return m.Count - } - return 0 -} - -func (m *PingRequest) GetInterval() int64 { - if m != nil { - return m.Interval - } - return 0 -} - -func (m *PingRequest) GetWait() int64 { - if m != nil { - return m.Wait - } - return 0 -} - -func (m *PingRequest) GetSize() int32 { - if m != nil { - return m.Size - } - return 0 -} - -func (m *PingRequest) GetDoNotFragment() bool { - if m != nil { - return m.DoNotFragment - } - return false -} - -func (m *PingRequest) GetDoNotResolve() bool { - if m != nil { - return m.DoNotResolve - } - return false -} - -func (m *PingRequest) GetL3Protocol() gnoi.L3Protocol { - if m != nil { - return m.L3Protocol - } - return gnoi.L3Protocol_UNSPECIFIED -} - // A PingResponse represents either the reponse to a single ping packet // (the bytes field is non-zero) or the summary statistics (sent is non-zero). // @@ -521,83 +369,6 @@ func (m *PingResponse) String() string { return proto.CompactTextStri func (*PingResponse) ProtoMessage() {} func (*PingResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{11} } -func (m *PingResponse) GetSource() string { - if m != nil { - return m.Source - } - return "" -} - -func (m *PingResponse) GetTime() int64 { - if m != nil { - return m.Time - } - return 0 -} - -func (m *PingResponse) GetSent() int32 { - if m != nil { - return m.Sent - } - return 0 -} - -func (m *PingResponse) GetReceived() int32 { - if m != nil { - return m.Received - } - return 0 -} - -func (m *PingResponse) GetMinTime() int64 { - if m != nil { - return m.MinTime - } - return 0 -} - -func (m *PingResponse) GetAvgTime() int64 { - if m != nil { - return m.AvgTime - } - return 0 -} - -func (m *PingResponse) GetMaxTime() int64 { - if m != nil { - return m.MaxTime - } - return 0 -} - -func (m *PingResponse) GetStdDev() int64 { - if m != nil { - return m.StdDev - } - return 0 -} - -func (m *PingResponse) GetBytes() int32 { - if m != nil { - return m.Bytes - } - return 0 -} - -func (m *PingResponse) GetSequence() int32 { - if m != nil { - return m.Sequence - } - return 0 -} - -func (m *PingResponse) GetTtl() int32 { - if m != nil { - return m.Ttl - } - return 0 -} - // A TracerouteRequest describes the traceroute operation to perform. Only the // destination field is required. Any field not specified is set to a // reasonable server specified value. Not all fields are supported by all @@ -622,69 +393,6 @@ func (m *TracerouteRequest) String() string { return proto.CompactTex func (*TracerouteRequest) ProtoMessage() {} func (*TracerouteRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{12} } -func (m *TracerouteRequest) GetSource() string { - if m != nil { - return m.Source - } - return "" -} - -func (m *TracerouteRequest) GetDestination() string { - if m != nil { - return m.Destination - } - return "" -} - -func (m *TracerouteRequest) GetInitialTtl() uint32 { - if m != nil { - return m.InitialTtl - } - return 0 -} - -func (m *TracerouteRequest) GetMaxTtl() int32 { - if m != nil { - return m.MaxTtl - } - return 0 -} - -func (m *TracerouteRequest) GetWait() int64 { - if m != nil { - return m.Wait - } - return 0 -} - -func (m *TracerouteRequest) GetDoNotFragment() bool { - if m != nil { - return m.DoNotFragment - } - return false -} - -func (m *TracerouteRequest) GetDoNotResolve() bool { - if m != nil { - return m.DoNotResolve - } - return false -} - -func (m *TracerouteRequest) GetL3Protocol() gnoi.L3Protocol { - if m != nil { - return m.L3Protocol - } - return gnoi.L3Protocol_UNSPECIFIED -} - -func (m *TracerouteRequest) GetL4Protocol() TracerouteRequest_L4Protocol { - if m != nil { - return m.L4Protocol - } - return TracerouteRequest_ICMP -} - // A TraceRouteResponse contains the result of a single traceoute packet. // // There may be an optional initial response that provides information about the @@ -724,76 +432,6 @@ func (m *TracerouteResponse) String() string { return proto.CompactTe func (*TracerouteResponse) ProtoMessage() {} func (*TracerouteResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{13} } -func (m *TracerouteResponse) GetDestinationName() string { - if m != nil { - return m.DestinationName - } - return "" -} - -func (m *TracerouteResponse) GetDestinationAddress() string { - if m != nil { - return m.DestinationAddress - } - return "" -} - -func (m *TracerouteResponse) GetHops() int32 { - if m != nil { - return m.Hops - } - return 0 -} - -func (m *TracerouteResponse) GetPacketSize() int32 { - if m != nil { - return m.PacketSize - } - return 0 -} - -func (m *TracerouteResponse) GetHop() int32 { - if m != nil { - return m.Hop - } - return 0 -} - -func (m *TracerouteResponse) GetAddress() string { - if m != nil { - return m.Address - } - return "" -} - -func (m *TracerouteResponse) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -func (m *TracerouteResponse) GetRtt() int64 { - if m != nil { - return m.Rtt - } - return 0 -} - -func (m *TracerouteResponse) GetState() TracerouteResponse_State { - if m != nil { - return m.State - } - return TracerouteResponse_DEFAULT -} - -func (m *TracerouteResponse) GetIcmpCode() int32 { - if m != nil { - return m.IcmpCode - } - return 0 -} - func (m *TracerouteResponse) GetMpls() map[string]string { if m != nil { return m.Mpls @@ -801,18 +439,18 @@ func (m *TracerouteResponse) GetMpls() map[string]string { return nil } -func (m *TracerouteResponse) GetAsPath() []int32 { - if m != nil { - return m.AsPath - } - return nil -} - // Package defines a single package file to be placed on the target. type Package struct { + // Destination path and filename of the package. Filename string `protobuf:"bytes,1,opt,name=filename" json:"filename,omitempty"` - Version string `protobuf:"bytes,4,opt,name=version" json:"version,omitempty"` - Activate bool `protobuf:"varint,5,opt,name=activate" json:"activate,omitempty"` + // Version of the package. (vendor internal name) + Version string `protobuf:"bytes,4,opt,name=version" json:"version,omitempty"` + // Indicates that the package should be made active after receipt on + // the device. For system image packages, the new image is expected to + // be active after a reboot. + Activate bool `protobuf:"varint,5,opt,name=activate" json:"activate,omitempty"` + // Details for the device to download the package from a remote location. + RemoteDownload *gnoi1.RemoteDownload `protobuf:"bytes,6,opt,name=remote_download,json=remoteDownload" json:"remote_download,omitempty"` } func (m *Package) Reset() { *m = Package{} } @@ -820,25 +458,11 @@ func (m *Package) String() string { return proto.CompactTextString(m) func (*Package) ProtoMessage() {} func (*Package) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{14} } -func (m *Package) GetFilename() string { +func (m *Package) GetRemoteDownload() *gnoi1.RemoteDownload { if m != nil { - return m.Filename + return m.RemoteDownload } - return "" -} - -func (m *Package) GetVersion() string { - if m != nil { - return m.Version - } - return "" -} - -func (m *Package) GetActivate() bool { - if m != nil { - return m.Activate - } - return false + return nil } // SetPackageRequest will place the package onto the target and optionally mark @@ -1484,101 +1108,104 @@ var _System_serviceDesc = grpc.ServiceDesc{ func init() { proto.RegisterFile("system/system.proto", fileDescriptor0) } var fileDescriptor0 = []byte{ - // 1531 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x57, 0xdf, 0x6e, 0xdb, 0xbc, - 0x15, 0xb7, 0xfc, 0xdf, 0xc7, 0x49, 0xaa, 0x30, 0x59, 0xaa, 0xba, 0x5b, 0xeb, 0x09, 0x5d, 0x91, - 0x76, 0x80, 0xd3, 0xa5, 0x05, 0x3a, 0x6c, 0x28, 0x06, 0xd7, 0x56, 0x9a, 0xa0, 0x8e, 0xed, 0xc9, - 0xf2, 0x32, 0x60, 0x17, 0x06, 0x23, 0x33, 0xb6, 0x50, 0x59, 0xd4, 0x44, 0xda, 0x6d, 0x76, 0xbd, - 0xbb, 0xdd, 0xec, 0x62, 0x18, 0x76, 0xbb, 0xd7, 0xd8, 0x8b, 0xec, 0x3d, 0xbe, 0x27, 0xf8, 0x40, - 0x52, 0xb2, 0x65, 0xc7, 0x6d, 0x8a, 0xef, 0xca, 0x3c, 0x7f, 0x78, 0x78, 0xce, 0xef, 0xfc, 0x48, - 0x1d, 0xc3, 0x01, 0xbb, 0x65, 0x9c, 0xcc, 0x4e, 0xd4, 0x4f, 0x23, 0x8c, 0x28, 0xa7, 0xa8, 0x3a, - 0x09, 0xa8, 0xd7, 0x50, 0xaa, 0xda, 0xf3, 0x89, 0xc7, 0xa7, 0xf3, 0xeb, 0x86, 0x4b, 0x67, 0x27, - 0x34, 0x24, 0x81, 0x4b, 0x83, 0x1b, 0x6f, 0x72, 0x22, 0x5c, 0x4e, 0xf8, 0x6d, 0x48, 0x98, 0xda, - 0x64, 0xfe, 0x19, 0x7e, 0x31, 0xf8, 0xec, 0x71, 0x77, 0xda, 0xa2, 0x01, 0x8f, 0xa8, 0xdf, 0x8f, - 0xa8, 0x4b, 0x18, 0xa3, 0x91, 0x4d, 0xfe, 0x3a, 0x27, 0x8c, 0xa3, 0xb7, 0xb0, 0xef, 0x2a, 0xd3, - 0x28, 0x4c, 0x6c, 0x86, 0x56, 0xd7, 0x8e, 0xab, 0xa7, 0xd0, 0x90, 0x27, 0xf6, 0x31, 0x9f, 0xda, - 0xba, 0xbb, 0xb1, 0xdf, 0xfc, 0x87, 0x06, 0x4f, 0xbe, 0x16, 0x9a, 0x85, 0x34, 0x60, 0xe4, 0x27, - 0xc7, 0x46, 0x06, 0x94, 0x16, 0x24, 0x62, 0x1e, 0x0d, 0x8c, 0x6c, 0x5d, 0x3b, 0xae, 0xd8, 0x89, - 0x88, 0x8e, 0xa0, 0x38, 0x0f, 0xb9, 0x37, 0x23, 0x46, 0xae, 0xae, 0x1d, 0xe7, 0xec, 0x58, 0x32, - 0xff, 0xa7, 0xc1, 0xae, 0x4d, 0xae, 0x29, 0xe5, 0x49, 0x61, 0xbf, 0x81, 0xe2, 0x8c, 0xf0, 0x29, - 0x1d, 0xcb, 0x13, 0xf7, 0x4e, 0x1f, 0x35, 0x52, 0xf8, 0x35, 0x94, 0xef, 0xa5, 0x74, 0xb0, 0x63, - 0x47, 0x74, 0x08, 0x85, 0x31, 0xf1, 0xf1, 0xad, 0x3c, 0x34, 0x6f, 0x2b, 0x41, 0x24, 0x33, 0x23, - 0x8c, 0xe1, 0x89, 0x3a, 0xb3, 0x62, 0x27, 0x22, 0x7a, 0x05, 0xbb, 0x6c, 0x7e, 0xed, 0xd2, 0x59, - 0x48, 0x03, 0x12, 0x70, 0x66, 0xe4, 0xeb, 0xb9, 0x8d, 0xda, 0xd6, 0x1d, 0xc4, 0x09, 0x37, 0x34, - 0x72, 0x89, 0x51, 0xa8, 0x6b, 0xc7, 0x65, 0x5b, 0x09, 0xa6, 0x0e, 0x7b, 0x49, 0xee, 0x0a, 0x39, - 0x13, 0xc3, 0x41, 0x0b, 0x07, 0x2e, 0xf1, 0xd7, 0x6b, 0x4a, 0xa5, 0xa2, 0xdd, 0x93, 0x4a, 0xf6, - 0x9e, 0x54, 0xcc, 0x23, 0x38, 0x5c, 0x3f, 0x22, 0x3e, 0xfa, 0x03, 0x1c, 0x28, 0xcd, 0x80, 0x63, - 0x3e, 0x67, 0xc9, 0xd1, 0x77, 0x0e, 0xd0, 0xee, 0x3b, 0xe0, 0xef, 0x1a, 0x1c, 0xae, 0x47, 0x8a, - 0x69, 0x71, 0x04, 0x45, 0xec, 0x72, 0x6f, 0xa1, 0x8a, 0x28, 0xdb, 0xb1, 0x84, 0x10, 0xe4, 0x3f, - 0x63, 0x8f, 0xc7, 0xe8, 0xcb, 0xb5, 0xd4, 0x4d, 0x49, 0x20, 0x91, 0x17, 0xba, 0x29, 0x91, 0x1c, - 0x88, 0x08, 0x66, 0x34, 0x30, 0xf2, 0x12, 0x84, 0x58, 0x12, 0xe0, 0xba, 0x74, 0x1e, 0x70, 0x09, - 0xee, 0xae, 0xad, 0x04, 0x73, 0x17, 0xaa, 0x8e, 0x37, 0x23, 0x71, 0x1d, 0xa6, 0x09, 0x3b, 0x4a, - 0x8c, 0x93, 0x41, 0x90, 0x97, 0x74, 0xd2, 0xd4, 0x01, 0x92, 0x4c, 0xff, 0xcd, 0x42, 0xb5, 0xef, - 0x05, 0x93, 0xa4, 0xf6, 0x3a, 0x54, 0xc7, 0x84, 0x71, 0x2f, 0xc0, 0x5c, 0x50, 0x52, 0x41, 0x9f, - 0x56, 0x89, 0x94, 0x18, 0x9d, 0x8b, 0xc6, 0x2a, 0xbe, 0xc6, 0xd2, 0x2a, 0x25, 0x91, 0x7f, 0x21, - 0x4e, 0x09, 0xd5, 0xa0, 0xec, 0x05, 0x9c, 0x44, 0x0b, 0xec, 0xcb, 0x12, 0x72, 0xf6, 0x52, 0x5e, - 0x82, 0x50, 0x90, 0xfa, 0x25, 0x08, 0xcc, 0xfb, 0x1b, 0x31, 0x8a, 0x32, 0x88, 0x5c, 0xa3, 0xe7, - 0xf0, 0x60, 0x4c, 0x47, 0x01, 0xe5, 0xa3, 0x9b, 0x08, 0x4f, 0x66, 0x24, 0xe0, 0x46, 0x49, 0xa2, - 0xb9, 0x3b, 0xa6, 0x5d, 0xca, 0xcf, 0x62, 0x25, 0x7a, 0x06, 0x7b, 0xb1, 0x5f, 0x44, 0x18, 0xf5, - 0x17, 0xc4, 0x28, 0x4b, 0xb7, 0x1d, 0xe9, 0x66, 0x2b, 0x1d, 0x7a, 0x05, 0xe0, 0xbf, 0x96, 0x2f, - 0x86, 0x4b, 0x7d, 0xa3, 0x22, 0x2f, 0x8c, 0xae, 0x5a, 0xdb, 0x79, 0xdd, 0x8f, 0xf5, 0x76, 0xca, - 0xc7, 0xfc, 0x4f, 0x16, 0x76, 0x14, 0x46, 0xab, 0xae, 0xc6, 0x10, 0x68, 0x6b, 0x10, 0x24, 0x00, - 0x67, 0x55, 0x41, 0x62, 0x2d, 0x0b, 0x22, 0x4b, 0x54, 0xe4, 0x5a, 0x80, 0x12, 0x11, 0x97, 0x78, - 0x0b, 0x32, 0x96, 0xa0, 0x14, 0xec, 0xa5, 0x8c, 0x1e, 0x41, 0x79, 0xe6, 0x05, 0x23, 0x19, 0x47, - 0x01, 0x53, 0x9a, 0x79, 0x81, 0xe8, 0xa3, 0x30, 0xe1, 0xc5, 0x44, 0x99, 0x8a, 0xca, 0x84, 0x17, - 0x93, 0xc4, 0x34, 0xc3, 0x5f, 0x94, 0xa9, 0x14, 0xef, 0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d2, 0xd0, 0x1f, 0x01, 0x56, 0xb7, 0x05, 0x3d, 0xf9, 0xf6, 0x4b, 0x58, 0x7b, 0x7a, 0xcf, 0x35, - 0x93, 0x21, 0xdf, 0x41, 0x5e, 0x7e, 0xe5, 0xd6, 0x73, 0x4a, 0x4d, 0x41, 0x1b, 0x39, 0xa5, 0x07, - 0x22, 0x33, 0x23, 0x32, 0x5a, 0xc1, 0xbb, 0x91, 0xd1, 0x1d, 0x36, 0x6c, 0x64, 0x74, 0xb7, 0x2f, - 0x66, 0xe6, 0x58, 0x43, 0x0c, 0x8e, 0xb6, 0xff, 0x57, 0x40, 0x2f, 0xd7, 0xb7, 0x7f, 0xeb, 0xbf, - 0x4a, 0xed, 0xd7, 0xdf, 0xe5, 0xbb, 0xac, 0xa3, 0x05, 0x45, 0x45, 0x08, 0x54, 0xdb, 0x32, 0xfb, - 0x27, 0x41, 0x1f, 0x6f, 0xb5, 0x2d, 0x83, 0x0c, 0x13, 0x56, 0xa9, 0x21, 0x16, 0xd5, 0xb7, 0xb8, - 0xaf, 0x4d, 0xca, 0xb5, 0x5f, 0x7e, 0xc3, 0x23, 0x1d, 0x36, 0x3d, 0x7d, 0x6f, 0x84, 0xdd, 0x32, - 0xfb, 0x6f, 0x84, 0xdd, 0x3a, 0xba, 0x67, 0xae, 0x8b, 0xf2, 0xdb, 0xf8, 0xfa, 0xc7, 0x00, 0x00, - 0x00, 0xff, 0xff, 0xb7, 0x09, 0xaf, 0x86, 0x41, 0x0e, 0x00, 0x00, + // 1569 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x9c, 0x57, 0x4f, 0x6f, 0xdb, 0xc8, + 0x15, 0x37, 0xf5, 0x5f, 0x4f, 0xb6, 0x43, 0x8f, 0xd5, 0x2c, 0xa3, 0x6d, 0x77, 0x55, 0x62, 0x5b, + 0x38, 0x5b, 0x40, 0xf1, 0x3a, 0x0b, 0x6c,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0xe7, 0x7c, 0xec, 0x7f, 0x14, 0xe0, + 0x50, 0x63, 0xb4, 0xe9, 0x6a, 0x0a, 0x81, 0xb1, 0x05, 0x41, 0x06, 0x70, 0x41, 0x17, 0x24, 0xd7, + 0xaa, 0x20, 0xba, 0x46, 0x45, 0xad, 0x25, 0x28, 0x09, 0xf5, 0x69, 0xb0, 0xa2, 0x33, 0x05, 0x4a, + 0x19, 0xaf, 0x65, 0xf4, 0x04, 0x6a, 0x51, 0x10, 0x7b, 0x2a, 0x8e, 0x06, 0xa6, 0x1a, 0x05, 0xb1, + 0xec, 0xa3, 0x34, 0x91, 0xd5, 0xad, 0x36, 0x55, 0xb4, 0x89, 0xac, 0x6e, 0x33, 0x53, 0x44, 0xbe, + 0xd7, 0xa6, 0x6a, 0xba, 0x8b, 0x7c, 0xaf, 0x4c, 0x9f, 0x40, 0x95, 0x8b, 0x99, 0x37, 0xa3, 0x2b, + 0x05, 0x47, 0x11, 0x57, 0xb8, 0x98, 0xf5, 0xe9, 0x4a, 0x36, 0xec, 0xf5, 0x9d, 0xa0, 0xdc, 0x6a, + 0xe8, 0x86, 0x29, 0x41, 0xe6, 0xc6, 0x25, 0x17, 0x62, 0x9f, 0x5a, 0x87, 0x3a, 0xb7, 0x4c, 0x46, + 0x26, 0x14, 0x85, 0x08, 0xad, 0x23, 0xa5, 0x96, 0x4b, 0xfb, 0xaf, 0x45, 0x38, 0x71, 0x13, 0xe2, + 0xd3, 0x84, 0x2d, 0x45, 0x46, 0xbc, 0xf7, 0xe2, 0xb3, 0x43, 0xae, 0xc2, 0x7d, 0x72, 0x7d, 0x0e, + 0x8d, 0x20, 0x0e, 0x44, 0x40, 0x42, 0x4f, 0x9e, 0x54, 0x54, 0xec, 0x86, 0x54, 0xe5, 0x8a, 0x50, + 0x56, 0xa3, 0x0a, 0x15, 0x61, 0x8a, 0x5c, 0x45, 0xd6, 0x29, 0xf6, 0x93, 0x69, 0x0f, 0x71, 0x2a, + 0x1f, 0x47, 0x9c,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4f, 0xf7, 0xda, + 0xd6, 0x41, 0xa6, 0x19, 0xab, 0xf4, 0x10, 0x8c, 0xda, 0x7b, 0xdc, 0xb7, 0x26, 0xed, 0xd6, 0x4f, + 0x3f, 0xe0, 0x91, 0x0f, 0x9b, 0x9f, 0xde, 0x77, 0xc2, 0xee, 0xf9, 0xed, 0xb0, 0x13, 0x76, 0xef, + 0xe8, 0x7f, 0xf0, 0xb2, 0xf6, 0x9f, 0xdf, 0x94, 0xcf, 0x3b, 0x5f, 0x75, 0xce, 0x5f, 0x57, 0xd4, + 0x57, 0xf6, 0xf9, 0xff, 0x03, 0x00, 0x00, 0xff, 0xff, 0xc3, 0x1f, 0x43, 0x7b, 0x8b, 0x0e, 0x00, + 0x00, } diff --git a/system/system.proto b/system/system.proto index 774431f0..9338260e 100644 --- a/system/system.proto +++ b/system/system.proto @@ -24,8 +24,10 @@ syntax = "proto3"; package gnoi.system; -import "github.com/openconfig/gnoi/common.proto"; -import "github.com/openconfig/gnoi/types.proto"; +import "common/common.proto"; +import "types/types.proto"; + +option (gnoi.gnoi_version) = "0.1.0"; // The gNOI service is a collection of operational RPC's that allow for the // management of a target outside of the configuration and telemetry pipeline. diff --git a/types.pb.go b/types.pb.go deleted file mode 100644 index 0fbbd74b..00000000 --- a/types.pb.go +++ /dev/null @@ -1,197 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: types.proto - -/* -Package gnoi is a generated protocol buffer package. - -It is generated from these files: - types.proto - -It has these top-level messages: - HashType - Path - PathElem -*/ -package gnoi - -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 - -// Generic Layer 3 Protocol enumeration. -type L3Protocol int32 - -const ( - L3Protocol_UNSPECIFIED L3Protocol = 0 - L3Protocol_IPV4 L3Protocol = 1 - L3Protocol_IPV6 L3Protocol = 2 -) - -var L3Protocol_name = map[int32]string{ - 0: "UNSPECIFIED", - 1: "IPV4", - 2: "IPV6", -} -var L3Protocol_value = map[string]int32{ - "UNSPECIFIED": 0, - "IPV4": 1, - "IPV6": 2, -} - -func (x L3Protocol) String() string { - return proto.EnumName(L3Protocol_name, int32(x)) -} -func (L3Protocol) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } - -type HashType_HashMethod int32 - -const ( - HashType_UNSPECIFIED HashType_HashMethod = 0 - HashType_SHA256 HashType_HashMethod = 1 - HashType_SHA512 HashType_HashMethod = 2 - HashType_MD5 HashType_HashMethod = 3 -) - -var HashType_HashMethod_name = map[int32]string{ - 0: "UNSPECIFIED", - 1: "SHA256", - 2: "SHA512", - 3: "MD5", -} -var HashType_HashMethod_value = map[string]int32{ - "UNSPECIFIED": 0, - "SHA256": 1, - "SHA512": 2, - "MD5": 3, -} - -func (x HashType_HashMethod) String() string { - return proto.EnumName(HashType_HashMethod_name, int32(x)) -} -func (HashType_HashMethod) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0, 0} } - -// HashType defines the valid hash methods for data verification. UNSPECIFIED -// should be treated an error. -type HashType struct { - Method HashType_HashMethod `protobuf:"varint,1,opt,name=method,enum=gnoi.HashType_HashMethod" json:"method,omitempty"` - Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` -} - -func (m *HashType) Reset() { *m = HashType{} } -func (m *HashType) String() string { return proto.CompactTextString(m) } -func (*HashType) ProtoMessage() {} -func (*HashType) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } - -func (m *HashType) GetMethod() HashType_HashMethod { - if m != nil { - return m.Method - } - return HashType_UNSPECIFIED -} - -func (m *HashType) GetHash() []byte { - if m != nil { - return m.Hash - } - return nil -} - -// Path encodes a data tree path as a series of repeated strings, with -// each element of the path representing a data tree node name and the -// associated attributes. -// Reference: gNMI Specification Section 2.2.2. -type Path struct { - Origin string `protobuf:"bytes,2,opt,name=origin" json:"origin,omitempty"` - Elem []*PathElem `protobuf:"bytes,3,rep,name=elem" json:"elem,omitempty"` -} - -func (m *Path) Reset() { *m = Path{} } -func (m *Path) String() string { return proto.CompactTextString(m) } -func (*Path) ProtoMessage() {} -func (*Path) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } - -func (m *Path) GetOrigin() string { - if m != nil { - return m.Origin - } - return "" -} - -func (m *Path) GetElem() []*PathElem { - if m != nil { - return m.Elem - } - return nil -} - -// PathElem encodes an element of a gNMI path, along with any attributes (keys) -// that may be associated with it. -// Reference: gNMI Specification Section 2.2.2. -type PathElem struct { - Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` - Key map[string]string `protobuf:"bytes,2,rep,name=key" json:"key,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` -} - -func (m *PathElem) Reset() { *m = PathElem{} } -func (m *PathElem) String() string { return proto.CompactTextString(m) } -func (*PathElem) ProtoMessage() {} -func (*PathElem) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} } - -func (m *PathElem) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -func (m *PathElem) GetKey() map[string]string { - if m != nil { - return m.Key - } - return nil -} - -func init() { - proto.RegisterType((*HashType)(nil), "gnoi.HashType") - proto.RegisterType((*Path)(nil), "gnoi.Path") - proto.RegisterType((*PathElem)(nil), "gnoi.PathElem") - proto.RegisterEnum("gnoi.L3Protocol", L3Protocol_name, L3Protocol_value) - proto.RegisterEnum("gnoi.HashType_HashMethod", HashType_HashMethod_name, HashType_HashMethod_value) -} - -func init() { proto.RegisterFile("types.proto", fileDescriptor0) } - -var fileDescriptor0 = []byte{ - // 306 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x91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xef, 0x0d, 0x9a, 0x90, 0x72, 0xc3, 0x4f, 0x78, 0xca, 0xd4, 0xcc, 0xf9, 0x22, - 0x60, 0x75, 0x2d, 0x19, 0x32, 0x0b, 0x53, 0xae, 0x5e, 0xd5, 0x63, 0x8a, 0xf1, 0x04, 0xf4, 0x77, - 0x5e, 0xdb, 0x9a, 0xf2, 0x38, 0xfc, 0xeb, 0xe1, 0xde, 0xf1, 0xda, 0xcf, 0xaa, 0xa2, 0x66, 0x52, - 0x73, 0x3c, 0x03, 0xab, 0x6b, 0x20, 0x6d, 0xd6, 0x1a, 0x27, 0x89, 0xb8, 0x0f, 0xdb, 0x9f, 0x61, - 0xf2, 0xc1, 0xdb, 0x90, 0x4d, 0x71, 0xa1, 0x9d, 0x93, 0xd3, 0x31, 0xc0, 0xfd, 0x24, 0x90, 0xc7, - 0x7e, 0x15, 0xc9, 0xff, 0x3b, 0x58, 0x60, 0x2c, 0x83, 0xe7, 0x33, 0x4a, 0x5a, 0x9a, 0x51, 0xed, - 0xc5, 0x54, 0x7f, 0x33, 0xf9, 0x09, 0x00, 0x00, 0xff, 0xff, 0xea, 0xe4, 0xaf, 0x79, 0xaa, 0x01, - 0x00, 0x00, -} diff --git a/types/types.pb.go b/types/types.pb.go new file mode 100644 index 00000000..0808f681 --- /dev/null +++ b/types/types.pb.go @@ -0,0 +1,309 @@ +// Code generated by protoc-gen-go. +// source: types/types.proto +// DO NOT EDIT! + +/* +Package gnoi is a generated protocol buffer package. + +It is generated from these files: + types/types.proto + +It has these top-level messages: + HashType + Path + PathElem + Credentials +*/ +package gnoi + +import proto "github.com/golang/protobuf/proto" +import fmt "fmt" +import math "math" +import google_protobuf "github.com/golang/protobuf/protoc-gen-go/descriptor" + +// 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 + +// Generic Layer 3 Protocol enumeration. +type L3Protocol int32 + +const ( + L3Protocol_UNSPECIFIED L3Protocol = 0 + L3Protocol_IPV4 L3Protocol = 1 + L3Protocol_IPV6 L3Protocol = 2 +) + +var L3Protocol_name = map[int32]string{ + 0: "UNSPECIFIED", + 1: "IPV4", + 2: "IPV6", +} +var L3Protocol_value = map[string]int32{ + "UNSPECIFIED": 0, + "IPV4": 1, + "IPV6": 2, +} + +func (x L3Protocol) String() string { + return proto.EnumName(L3Protocol_name, int32(x)) +} +func (L3Protocol) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } + +type HashType_HashMethod int32 + +const ( + HashType_UNSPECIFIED HashType_HashMethod = 0 + HashType_SHA256 HashType_HashMethod = 1 + HashType_SHA512 HashType_HashMethod = 2 + HashType_MD5 HashType_HashMethod = 3 +) + +var HashType_HashMethod_name = map[int32]string{ + 0: "UNSPECIFIED", + 1: "SHA256", + 2: "SHA512", + 3: "MD5", +} +var HashType_HashMethod_value = map[string]int32{ + "UNSPECIFIED": 0, + "SHA256": 1, + "SHA512": 2, + "MD5": 3, +} + +func (x HashType_HashMethod) String() string { + return proto.EnumName(HashType_HashMethod_name, int32(x)) +} +func (HashType_HashMethod) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0, 0} } + +// HashType defines the valid hash methods for data verification. UNSPECIFIED +// should be treated an error. +type HashType struct { + Method HashType_HashMethod `protobuf:"varint,1,opt,name=method,enum=gnoi.HashType_HashMethod" json:"method,omitempty"` + Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` +} + +func (m *HashType) Reset() { *m = HashType{} } +func (m *HashType) String() string { return proto.CompactTextString(m) } +func (*HashType) ProtoMessage() {} +func (*HashType) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } + +// Path encodes a data tree path as a series of repeated strings, with +// each element of the path representing a data tree node name and the +// associated attributes. +// Reference: gNMI Specification Section 2.2.2. +type Path struct { + Origin string `protobuf:"bytes,2,opt,name=origin" json:"origin,omitempty"` + Elem []*PathElem `protobuf:"bytes,3,rep,name=elem" json:"elem,omitempty"` +} + +func (m *Path) Reset() { *m = Path{} } +func (m *Path) String() string { return proto.CompactTextString(m) } +func (*Path) ProtoMessage() {} +func (*Path) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } + +func (m *Path) GetElem() []*PathElem { + if m != nil { + return m.Elem + } + return nil +} + +// PathElem encodes an element of a gNMI path, along with any attributes (keys) +// that may be associated with it. +// Reference: gNMI Specification Section 2.2.2. +type PathElem struct { + Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` + Key map[string]string `protobuf:"bytes,2,rep,name=key" json:"key,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` +} + +func (m *PathElem) Reset() { *m = PathElem{} } +func (m *PathElem) String() string { return proto.CompactTextString(m) } +func (*PathElem) ProtoMessage() {} +func (*PathElem) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} } + +func (m *PathElem) GetKey() map[string]string { + if m != nil { + return m.Key + } + return nil +} + +// Credentials defines credentials needed to perform authentication on a device. +type Credentials struct { + Username string `protobuf:"bytes,1,opt,name=username" json:"username,omitempty"` + // Types that are valid to be assigned to Password: + // *Credentials_Cleartext + // *Credentials_Hashed + Password isCredentials_Password `protobuf_oneof:"password"` +} + +func (m *Credentials) Reset() { *m = Credentials{} } +func (m *Credentials) String() string { return proto.CompactTextString(m) } +func (*Credentials) ProtoMessage() {} +func (*Credentials) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} } + +type isCredentials_Password interface { + isCredentials_Password() +} + +type Credentials_Cleartext struct { + Cleartext string `protobuf:"bytes,2,opt,name=cleartext,oneof"` +} +type Credentials_Hashed struct { + Hashed *HashType `protobuf:"bytes,3,opt,name=hashed,oneof"` +} + +func (*Credentials_Cleartext) isCredentials_Password() {} +func (*Credentials_Hashed) isCredentials_Password() {} + +func (m *Credentials) GetPassword() isCredentials_Password { + if m != nil { + return m.Password + } + return nil +} + +func (m *Credentials) GetCleartext() string { + if x, ok := m.GetPassword().(*Credentials_Cleartext); ok { + return x.Cleartext + } + return "" +} + +func (m *Credentials) GetHashed() *HashType { + if x, ok := m.GetPassword().(*Credentials_Hashed); ok { + return x.Hashed + } + return nil +} + +// XXX_OneofFuncs is for the internal use of the proto package. +func (*Credentials) 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 _Credentials_OneofMarshaler, _Credentials_OneofUnmarshaler, _Credentials_OneofSizer, []interface{}{ + (*Credentials_Cleartext)(nil), + (*Credentials_Hashed)(nil), + } +} + +func _Credentials_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*Credentials) + // password + switch x := m.Password.(type) { + case *Credentials_Cleartext: + b.EncodeVarint(2<<3 | proto.WireBytes) + b.EncodeStringBytes(x.Cleartext) + case *Credentials_Hashed: + b.EncodeVarint(3<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Hashed); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("Credentials.Password has unexpected type %T", x) + } + return nil +} + +func _Credentials_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*Credentials) + switch tag { + case 2: // password.cleartext + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + x, err := b.DecodeStringBytes() + m.Password = &Credentials_Cleartext{x} + return true, err + case 3: // password.hashed + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(HashType) + err := b.DecodeMessage(msg) + m.Password = &Credentials_Hashed{msg} + return true, err + default: + return false, nil + } +} + +func _Credentials_OneofSizer(msg proto.Message) (n int) { + m := msg.(*Credentials) + // password + switch x := m.Password.(type) { + case *Credentials_Cleartext: + n += proto.SizeVarint(2<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(len(x.Cleartext))) + n += len(x.Cleartext) + case *Credentials_Hashed: + s := proto.Size(x.Hashed) + n += proto.SizeVarint(3<<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 +} + +var E_GnoiVersion = &proto.ExtensionDesc{ + ExtendedType: (*google_protobuf.FileOptions)(nil), + ExtensionType: (*string)(nil), + Field: 1002, + Name: "gnoi.gnoi_version", + Tag: "bytes,1002,opt,name=gnoi_version,json=gnoiVersion", +} + +func init() { + proto.RegisterType((*HashType)(nil), "gnoi.HashType") + proto.RegisterType((*Path)(nil), "gnoi.Path") + proto.RegisterType((*PathElem)(nil), "gnoi.PathElem") + proto.RegisterType((*Credentials)(nil), "gnoi.Credentials") + proto.RegisterEnum("gnoi.L3Protocol", L3Protocol_name, L3Protocol_value) + proto.RegisterEnum("gnoi.HashType_HashMethod", HashType_HashMethod_name, HashType_HashMethod_value) + proto.RegisterExtension(E_GnoiVersion) +} + +func init() { proto.RegisterFile("types/types.proto", fileDescriptor0) } + +var fileDescriptor0 = []byte{ + // 442 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x64, 0x52, 0xc1, 0x6e, 0xd3, 0x40, + 0x10, 0xcd, 0xda, 0xc6, 0x75, 0x26, 0x55, 0x31, 0x2b, 0x04, 0x26, 0x42, 0xc8, 0xf2, 0x29, 0x70, + 0x70, 0x94, 0x94, 0x44, 0xa8, 0x07, 0x04, 0x6d, 0x53, 0x25, 0x82, 0x42, 0xe4, 0x42, 0xaf, 0xc8, + 0x8d, 0x87, 0xd8, 0xc2, 0xf6, 0x5a, 0xbb, 0x9b, 0x82, 0x4f, 0x88, 0x4f, 0xe0, 0x37, 0xf9, 0x0a, + 0xb4, 0x6b, 0x9b, 0x80, 0xb8, 0x58, 0x6f, 0x66, 0xde, 0x7b, 0x7a, 0xe3, 0x59,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b5, 0x67, 0x68, 0x8f, 0x87, 0xff, 0x7a, 0x84, 0x6f, 0xb0, 0x5e, 0x94, 0x92, + 0xd7, 0x91, 0xe2, 0x0c, 0xe7, 0xe0, 0x74, 0x0d, 0xea, 0x36, 0xb2, 0xc6, 0x49, 0x41, 0x7a, 0x1f, + 0xee, 0xdc, 0xc6, 0xf9, 0x0e, 0xdb, 0x90, 0x4d, 0x71, 0x62, 0xbc, 0x20, 0xc1, 0x77, 0x18, 0x9c, + 0x71, 0x4c, 0xb0, 0x94, 0x59, 0x9c, 0x0b, 0x3a, 0x04, 0x67, 0x27, 0x90, 0xff, 0x95, 0xe4, 0x4f, + 0x4d, 0x9f, 0x40, 0x7f, 0x93, 0x63, 0xcc, 0x25, 0x7e, 0x93, 0x8d, 0xd1, 0xb2, 0x17, 0xed, 0x5b, + 0x74, 0x04, 0xb6, 0xfa, 0xb5, 0x98, 0x78, 0xa6, 0x4f, 0xf6, 0x4b, 0x77, 0x97, 0x59, 0xf6, 0xa2, + 0x76, 0x7e, 0x0a, 0xe0, 0x54, 0xb1, 0x10, 0x5f, 0x19, 0x4f, 0x9e, 0x4d, 0x00, 0xde, 0x1e, 0xaf, + 0xd5, 0x9d, 0x37, 0x2c, 0xff, 0xff, 0x10, 0x0e, 0x58, 0xab, 0xf5, 0xf5, 0x73, 0x97, 0xb4, 0x68, + 0xee, 0x1a, 0x27, 0xaf, 0xe0, 0x50, 0x39, 0x7f, 0xba, 0x45, 0x2e, 0x32, 0x56, 0xd2, 0xc7, 0x61, + 0xf3, 0x84, 0xc2, 0xee, 0x09, 0x85, 0x17, 0x59, 0x8e, 0xef, 0x2b, 0x99, 0xb1, 0x52, 0x78, 0xbf, + 0x0e, 0xf4, 0x1e, 0x03, 0x25, 0xb9, 0x6e, 0x14, 0x37, 0xb6, 0x66, 0x1e, 0xff, 0x0e, 0x00, 0x00, + 0xff, 0xff, 0x4e, 0x23, 0x52, 0x84, 0x95, 0x02, 0x00, 0x00, +} diff --git a/types.proto b/types/types.proto similarity index 89% rename from types.proto rename to types/types.proto index 31d17b78..bc5f0472 100644 --- a/types.proto +++ b/types/types.proto @@ -16,8 +16,16 @@ syntax = "proto3"; +import "google/protobuf/descriptor.proto"; + package gnoi; +// Define a protobuf FileOption that defines the gNOI service version. +extend google.protobuf.FileOptions { + // The gNOI service semantic version. + string gnoi_version = 1002; +} + // Generic Layer 3 Protocol enumeration. enum L3Protocol { UNSPECIFIED = 0; From 383d376be005182278033cf96cf64881fce553e8 Mon Sep 17 00:00:00 2001 From: Rob Shakir Date: Tue, 11 Dec 2018 13:18:57 -0800 Subject: [PATCH 030/238] Clean up gNOI repository for clarity and standard Go build. * Remove all BUILD.bazel files from the repository, since there are no users currently. * Move types and common protos to separate directories to work with the standard Go build system. * Add a gnoi_version proto FileOption such that we can mark the version of all files, and assign 0.1.0 as the first version at this point. --- bgp/BUILD.bazel | 14 - bgp/bgp.pb.go | 173 +++-- bgp/bgp.proto | 2 +- cert/BUILD.bazel | 14 - cert/cert.pb.go | 1297 ++++++++++++++++++++++++++-------- cert/cert.proto | 2 +- common/common.pb.go | 116 ++-- common/common.proto | 2 +- diag/BUILD.bazel | 14 - diag/diag.pb.go | 732 ++++++++++++++----- diag/diag.proto | 2 +- file/BUILD.bazel | 20 - file/file.pb.go | 660 +++++++++++++----- file/file.proto | 4 +- interface/BUILD.bazel | 20 - interface/interface.pb.go | 306 +++++--- interface/interface.proto | 2 +- layer2/BUILD.bazel | 20 - layer2/layer2.pb.go | 570 +++++++++++---- layer2/layer2.proto | 2 +- mpls/BUILD.bazel | 14 - mpls/mpls.pb.go | 604 ++++++++++++---- mpls/mpls.proto | 2 +- system/BUILD.bazel | 20 - system/system.pb.go | 1392 ++++++++++++++++++++++++++++--------- system/system.proto | 4 +- test/BUILD.bazel | 18 - test/simple_test.go | 14 +- types/.types.proto.swp | Bin 0 -> 12288 bytes types/types.pb.go | 240 +++++-- 30 files changed, 4647 insertions(+), 1633 deletions(-) delete mode 100644 bgp/BUILD.bazel delete mode 100644 cert/BUILD.bazel delete mode 100644 diag/BUILD.bazel delete mode 100644 file/BUILD.bazel delete mode 100644 interface/BUILD.bazel delete mode 100644 layer2/BUILD.bazel delete mode 100644 mpls/BUILD.bazel delete mode 100644 system/BUILD.bazel delete mode 100644 test/BUILD.bazel create mode 100644 types/.types.proto.swp diff --git a/bgp/BUILD.bazel b/bgp/BUILD.bazel deleted file mode 100644 index 5cc42915..00000000 --- a/bgp/BUILD.bazel +++ /dev/null @@ -1,14 +0,0 @@ -load("@io_bazel_rules_go//proto:go_proto_library.bzl", "go_proto_library") - -proto_library( - name = "bgp_proto", - srcs = ["bgp.proto"], -) - -go_proto_library( - name = "go_default_library", - srcs = ["bgp.proto"], - visibility = ["//visibility:public"], - rules_go_repo_only_for_internal_use = "@", - has_services = 1, -) diff --git a/bgp/bgp.pb.go b/bgp/bgp.pb.go index 646ad88d..47523b58 100644 --- a/bgp/bgp.pb.go +++ b/bgp/bgp.pb.go @@ -1,27 +1,15 @@ -// Code generated by protoc-gen-go. +// Code generated by protoc-gen-go. DO NOT EDIT. // source: bgp/bgp.proto -// DO NOT EDIT! -/* -Package gnoi_bgp is a generated protocol buffer package. - -It is generated from these files: - bgp/bgp.proto - -It has these top-level messages: - ClearBGPNeighborRequest - ClearBGPNeighborResponse -*/ package gnoi_bgp -import proto "github.com/golang/protobuf/proto" -import fmt "fmt" -import math "math" -import _ "types" - import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + _ "github.com/openconfig/gnoi/types" context "golang.org/x/net/context" grpc "google.golang.org/grpc" + math "math" ) // Reference imports to suppress errors if they are not otherwise used. @@ -48,6 +36,7 @@ var ClearBGPNeighborRequest_Mode_name = map[int32]string{ 1: "SOFTIN", 2: "HARD", } + var ClearBGPNeighborRequest_Mode_value = map[string]int32{ "SOFT": 0, "SOFTIN": 1, @@ -57,35 +46,127 @@ var ClearBGPNeighborRequest_Mode_value = map[string]int32{ func (x ClearBGPNeighborRequest_Mode) String() string { return proto.EnumName(ClearBGPNeighborRequest_Mode_name, int32(x)) } + func (ClearBGPNeighborRequest_Mode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor0, []int{0, 0} + return fileDescriptor_dd5905d96efb1c39, []int{0, 0} } type ClearBGPNeighborRequest struct { - Address string `protobuf:"bytes,1,opt,name=address" json:"address,omitempty"` + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // Routing instance containing the neighbor. Defaults to the global routing // table. - RoutingInstance string `protobuf:"bytes,2,opt,name=routing_instance,json=routingInstance" json:"routing_instance,omitempty"` - Mode ClearBGPNeighborRequest_Mode `protobuf:"varint,3,opt,name=mode,enum=gnoi.bgp.ClearBGPNeighborRequest_Mode" json:"mode,omitempty"` + RoutingInstance string `protobuf:"bytes,2,opt,name=routing_instance,json=routingInstance,proto3" json:"routing_instance,omitempty"` + Mode ClearBGPNeighborRequest_Mode `protobuf:"varint,3,opt,name=mode,proto3,enum=gnoi.bgp.ClearBGPNeighborRequest_Mode" json:"mode,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ClearBGPNeighborRequest) Reset() { *m = ClearBGPNeighborRequest{} } +func (m *ClearBGPNeighborRequest) String() string { return proto.CompactTextString(m) } +func (*ClearBGPNeighborRequest) ProtoMessage() {} +func (*ClearBGPNeighborRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_dd5905d96efb1c39, []int{0} +} + +func (m *ClearBGPNeighborRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ClearBGPNeighborRequest.Unmarshal(m, b) +} +func (m *ClearBGPNeighborRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ClearBGPNeighborRequest.Marshal(b, m, deterministic) +} +func (m *ClearBGPNeighborRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ClearBGPNeighborRequest.Merge(m, src) +} +func (m *ClearBGPNeighborRequest) XXX_Size() int { + return xxx_messageInfo_ClearBGPNeighborRequest.Size(m) +} +func (m *ClearBGPNeighborRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ClearBGPNeighborRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ClearBGPNeighborRequest proto.InternalMessageInfo + +func (m *ClearBGPNeighborRequest) GetAddress() string { + if m != nil { + return m.Address + } + return "" +} + +func (m *ClearBGPNeighborRequest) GetRoutingInstance() string { + if m != nil { + return m.RoutingInstance + } + return "" } -func (m *ClearBGPNeighborRequest) Reset() { *m = ClearBGPNeighborRequest{} } -func (m *ClearBGPNeighborRequest) String() string { return proto.CompactTextString(m) } -func (*ClearBGPNeighborRequest) ProtoMessage() {} -func (*ClearBGPNeighborRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } +func (m *ClearBGPNeighborRequest) GetMode() ClearBGPNeighborRequest_Mode { + if m != nil { + return m.Mode + } + return ClearBGPNeighborRequest_SOFT +} type ClearBGPNeighborResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ClearBGPNeighborResponse) Reset() { *m = ClearBGPNeighborResponse{} } +func (m *ClearBGPNeighborResponse) String() string { return proto.CompactTextString(m) } +func (*ClearBGPNeighborResponse) ProtoMessage() {} +func (*ClearBGPNeighborResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_dd5905d96efb1c39, []int{1} } -func (m *ClearBGPNeighborResponse) Reset() { *m = ClearBGPNeighborResponse{} } -func (m *ClearBGPNeighborResponse) String() string { return proto.CompactTextString(m) } -func (*ClearBGPNeighborResponse) ProtoMessage() {} -func (*ClearBGPNeighborResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } +func (m *ClearBGPNeighborResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ClearBGPNeighborResponse.Unmarshal(m, b) +} +func (m *ClearBGPNeighborResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ClearBGPNeighborResponse.Marshal(b, m, deterministic) +} +func (m *ClearBGPNeighborResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ClearBGPNeighborResponse.Merge(m, src) +} +func (m *ClearBGPNeighborResponse) XXX_Size() int { + return xxx_messageInfo_ClearBGPNeighborResponse.Size(m) +} +func (m *ClearBGPNeighborResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ClearBGPNeighborResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ClearBGPNeighborResponse proto.InternalMessageInfo func init() { + proto.RegisterEnum("gnoi.bgp.ClearBGPNeighborRequest_Mode", ClearBGPNeighborRequest_Mode_name, ClearBGPNeighborRequest_Mode_value) proto.RegisterType((*ClearBGPNeighborRequest)(nil), "gnoi.bgp.ClearBGPNeighborRequest") proto.RegisterType((*ClearBGPNeighborResponse)(nil), "gnoi.bgp.ClearBGPNeighborResponse") - proto.RegisterEnum("gnoi.bgp.ClearBGPNeighborRequest_Mode", ClearBGPNeighborRequest_Mode_name, ClearBGPNeighborRequest_Mode_value) +} + +func init() { proto.RegisterFile("bgp/bgp.proto", fileDescriptor_dd5905d96efb1c39) } + +var fileDescriptor_dd5905d96efb1c39 = []byte{ + // 277 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x50, 0xb1, 0x4e, 0xc3, 0x30, + 0x14, 0x6c, 0xda, 0x50, 0xc2, 0x93, 0x80, 0xc8, 0x0b, 0x51, 0xa6, 0x92, 0xa1, 0x2a, 0x12, 0x72, + 0x4a, 0xd9, 0x18, 0x90, 0x08, 0x88, 0xd2, 0x81, 0x52, 0x05, 0x36, 0x06, 0x14, 0x27, 0xc6, 0xb5, + 0x44, 0xfd, 0x4c, 0xec, 0x0c, 0xfc, 0x1e, 0x9f, 0xc0, 0x17, 0xa1, 0x24, 0xed, 0x02, 0x82, 0x2e, + 0x96, 0xef, 0xde, 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4, 0x49, 0xbc, 0xaf, 0xcb, 0x9d, 0x31, + 0x3d, 0xa3, 0x63, 0xd6, 0x6f, 0xae, 0x7a, 0xfe, 0x1d, 0x00, 0x00, 0xff, 0xff, 0x05, 0x3c, 0x32, + 0x2b, 0x9e, 0x01, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -96,8 +177,9 @@ var _ grpc.ClientConn // is compatible with the grpc package it is being compiled against. const _ = grpc.SupportPackageIsVersion4 -// Client API for BGP service - +// BGPClient is the client API for BGP service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type BGPClient interface { // ClearBGPNeighbor clears a BGP session. ClearBGPNeighbor(ctx context.Context, in *ClearBGPNeighborRequest, opts ...grpc.CallOption) (*ClearBGPNeighborResponse, error) @@ -113,15 +195,14 @@ func NewBGPClient(cc *grpc.ClientConn) BGPClient { func (c *bGPClient) ClearBGPNeighbor(ctx context.Context, in *ClearBGPNeighborRequest, opts ...grpc.CallOption) (*ClearBGPNeighborResponse, error) { out := new(ClearBGPNeighborResponse) - err := grpc.Invoke(ctx, "/gnoi.bgp.BGP/ClearBGPNeighbor", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/gnoi.bgp.BGP/ClearBGPNeighbor", in, out, opts...) if err != nil { return nil, err } return out, nil } -// Server API for BGP service - +// BGPServer is the server API for BGP service. type BGPServer interface { // ClearBGPNeighbor clears a BGP session. ClearBGPNeighbor(context.Context, *ClearBGPNeighborRequest) (*ClearBGPNeighborResponse, error) @@ -161,25 +242,3 @@ var _BGP_serviceDesc = grpc.ServiceDesc{ Streams: []grpc.StreamDesc{}, Metadata: "bgp/bgp.proto", } - -func init() { proto.RegisterFile("bgp/bgp.proto", fileDescriptor0) } - -var fileDescriptor0 = []byte{ - // 256 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xe2, 0xe2,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0x71, 0x41, 0x7e, 0x5e, 0x71, 0xaa, 0x51, 0x12, 0x17, 0xb3, 0x93, 0x7b, 0x80, - 0x50, 0x34, 0x97, 0x00, 0xba, 0x12, 0x21, 0x45, 0x82, 0x8e, 0x91, 0x52, 0xc2, 0xa7, 0x04, 0x62, - 0x83, 0x12, 0x83, 0x13, 0xc7, 0x25, 0x3b, 0x56, 0x03, 0x3d, 0x43, 0x3d, 0x83, 0x24, 0x36, 0x70, - 0xa8, 0x1a, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, 0x1b, 0x68, 0x5d, 0x50, 0x83, 0x01, 0x00, 0x00, -} diff --git a/bgp/bgp.proto b/bgp/bgp.proto index 6aa07228..4c85e64f 100644 --- a/bgp/bgp.proto +++ b/bgp/bgp.proto @@ -16,7 +16,7 @@ syntax = "proto3"; -import "types/types.proto"; +import "github.com/openconfig/gnoi/types/types.proto"; package gnoi.bgp; diff --git a/cert/BUILD.bazel b/cert/BUILD.bazel deleted file mode 100644 index 802baf70..00000000 --- a/cert/BUILD.bazel +++ /dev/null @@ -1,14 +0,0 @@ -load("@io_bazel_rules_go//proto:go_proto_library.bzl", "go_proto_library") - -proto_library( - name = "cert_proto", - srcs = ["cert.proto"], -) - -go_proto_library( - name = "go_default_library", - srcs = ["cert.proto"], - visibility = ["//visibility:public"], - rules_go_repo_only_for_internal_use = "@", - has_services = 1, -) diff --git a/cert/cert.pb.go b/cert/cert.pb.go index 2caa2fea..b13e3f9f 100644 --- a/cert/cert.pb.go +++ b/cert/cert.pb.go @@ -1,47 +1,15 @@ -// Code generated by protoc-gen-go. +// Code generated by protoc-gen-go. DO NOT EDIT. // source: cert/cert.proto -// DO NOT EDIT! - -/* -Package gnoi_certificate is a generated protocol buffer package. - -It is generated from these files: - cert/cert.proto - -It has these top-level messages: - RotateCertificateRequest - RotateCertificateResponse - InstallCertificateRequest - InstallCertificateResponse - GenerateCSRRequest - CSRParams - GenerateCSRResponse - LoadCertificateRequest - LoadCertificateResponse - FinalizeRequest - GetCertificatesRequest - GetCertificatesResponse - CertificateInfo - RevokeCertificatesRequest - RevokeCertificatesResponse - CertificateRevocationError - CanGenerateCSRRequest - CanGenerateCSRResponse - Certificate - CSR - KeyPair - Endpoint -*/ -package gnoi_certificate -import proto "github.com/golang/protobuf/proto" -import fmt "fmt" -import math "math" -import _ "types" +package gnoi_certificate import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + _ "github.com/openconfig/gnoi/types" context "golang.org/x/net/context" grpc "google.golang.org/grpc" + math "math" ) // Reference imports to suppress errors if they are not otherwise used. @@ -69,6 +37,7 @@ var CertificateType_name = map[int32]string{ 0: "CT_UNKNOWN", 1: "CT_X509", } + var CertificateType_value = map[string]int32{ "CT_UNKNOWN": 0, "CT_X509": 1, @@ -77,7 +46,10 @@ var CertificateType_value = map[string]int32{ func (x CertificateType) String() string { return proto.EnumName(CertificateType_name, int32(x)) } -func (CertificateType) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } + +func (CertificateType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_cc7c7ec7dcc94e18, []int{0} +} // Algorithm to be used for generation the key pair. type KeyType int32 @@ -93,6 +65,7 @@ var KeyType_name = map[int32]string{ 0: "KT_UNKNOWN", 1: "KT_RSA", } + var KeyType_value = map[string]int32{ "KT_UNKNOWN": 0, "KT_RSA": 1, @@ -101,7 +74,10 @@ var KeyType_value = map[string]int32{ func (x KeyType) String() string { return proto.EnumName(KeyType_name, int32(x)) } -func (KeyType) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } + +func (KeyType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_cc7c7ec7dcc94e18, []int{1} +} // Type of endpoint that can use a cert. This list is to be extended based on // conversation with vendors. @@ -118,6 +94,7 @@ var Endpoint_Type_name = map[int32]string{ 1: "EP_IPSEC_TUNNEL", 2: "EP_DAEMON", } + var Endpoint_Type_value = map[string]int32{ "EP_UNSPECIFIED": 0, "EP_IPSEC_TUNNEL": 1, @@ -127,7 +104,10 @@ var Endpoint_Type_value = map[string]int32{ func (x Endpoint_Type) String() string { return proto.EnumName(Endpoint_Type_name, int32(x)) } -func (Endpoint_Type) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{21, 0} } + +func (Endpoint_Type) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_cc7c7ec7dcc94e18, []int{21, 0} +} // Request messages to rotate existing certificates on the target. type RotateCertificateRequest struct { @@ -137,30 +117,57 @@ type RotateCertificateRequest struct { // *RotateCertificateRequest_GenerateCsr // *RotateCertificateRequest_LoadCertificate // *RotateCertificateRequest_FinalizeRotation - RotateRequest isRotateCertificateRequest_RotateRequest `protobuf_oneof:"rotate_request"` + RotateRequest isRotateCertificateRequest_RotateRequest `protobuf_oneof:"rotate_request"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *RotateCertificateRequest) Reset() { *m = RotateCertificateRequest{} } -func (m *RotateCertificateRequest) String() string { return proto.CompactTextString(m) } -func (*RotateCertificateRequest) ProtoMessage() {} -func (*RotateCertificateRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } +func (m *RotateCertificateRequest) Reset() { *m = RotateCertificateRequest{} } +func (m *RotateCertificateRequest) String() string { return proto.CompactTextString(m) } +func (*RotateCertificateRequest) ProtoMessage() {} +func (*RotateCertificateRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_cc7c7ec7dcc94e18, []int{0} +} + +func (m *RotateCertificateRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RotateCertificateRequest.Unmarshal(m, b) +} +func (m *RotateCertificateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RotateCertificateRequest.Marshal(b, m, deterministic) +} +func (m *RotateCertificateRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RotateCertificateRequest.Merge(m, src) +} +func (m *RotateCertificateRequest) XXX_Size() int { + return xxx_messageInfo_RotateCertificateRequest.Size(m) +} +func (m *RotateCertificateRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RotateCertificateRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RotateCertificateRequest proto.InternalMessageInfo type isRotateCertificateRequest_RotateRequest interface { isRotateCertificateRequest_RotateRequest() } type RotateCertificateRequest_GenerateCsr struct { - GenerateCsr *GenerateCSRRequest `protobuf:"bytes,1,opt,name=generate_csr,json=generateCsr,oneof"` + GenerateCsr *GenerateCSRRequest `protobuf:"bytes,1,opt,name=generate_csr,json=generateCsr,proto3,oneof"` } + type RotateCertificateRequest_LoadCertificate struct { - LoadCertificate *LoadCertificateRequest `protobuf:"bytes,2,opt,name=load_certificate,json=loadCertificate,oneof"` + LoadCertificate *LoadCertificateRequest `protobuf:"bytes,2,opt,name=load_certificate,json=loadCertificate,proto3,oneof"` } + type RotateCertificateRequest_FinalizeRotation struct { - FinalizeRotation *FinalizeRequest `protobuf:"bytes,3,opt,name=finalize_rotation,json=finalizeRotation,oneof"` + FinalizeRotation *FinalizeRequest `protobuf:"bytes,3,opt,name=finalize_rotation,json=finalizeRotation,proto3,oneof"` } -func (*RotateCertificateRequest_GenerateCsr) isRotateCertificateRequest_RotateRequest() {} -func (*RotateCertificateRequest_LoadCertificate) isRotateCertificateRequest_RotateRequest() {} +func (*RotateCertificateRequest_GenerateCsr) isRotateCertificateRequest_RotateRequest() {} + +func (*RotateCertificateRequest_LoadCertificate) isRotateCertificateRequest_RotateRequest() {} + func (*RotateCertificateRequest_FinalizeRotation) isRotateCertificateRequest_RotateRequest() {} func (m *RotateCertificateRequest) GetRotateRequest() isRotateCertificateRequest_RotateRequest { @@ -264,17 +271,17 @@ func _RotateCertificateRequest_OneofSizer(msg proto.Message) (n int) { switch x := m.RotateRequest.(type) { case *RotateCertificateRequest_GenerateCsr: s := proto.Size(x.GenerateCsr) - n += proto.SizeVarint(1<<3 | proto.WireBytes) + n += 1 // tag and wire n += proto.SizeVarint(uint64(s)) n += s case *RotateCertificateRequest_LoadCertificate: s := proto.Size(x.LoadCertificate) - n += proto.SizeVarint(2<<3 | proto.WireBytes) + n += 1 // tag and wire n += proto.SizeVarint(uint64(s)) n += s case *RotateCertificateRequest_FinalizeRotation: s := proto.Size(x.FinalizeRotation) - n += proto.SizeVarint(3<<3 | proto.WireBytes) + n += 1 // tag and wire n += proto.SizeVarint(uint64(s)) n += s case nil: @@ -291,26 +298,51 @@ type RotateCertificateResponse struct { // Types that are valid to be assigned to RotateResponse: // *RotateCertificateResponse_GeneratedCsr // *RotateCertificateResponse_LoadCertificate - RotateResponse isRotateCertificateResponse_RotateResponse `protobuf_oneof:"rotate_response"` + RotateResponse isRotateCertificateResponse_RotateResponse `protobuf_oneof:"rotate_response"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *RotateCertificateResponse) Reset() { *m = RotateCertificateResponse{} } -func (m *RotateCertificateResponse) String() string { return proto.CompactTextString(m) } -func (*RotateCertificateResponse) ProtoMessage() {} -func (*RotateCertificateResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } +func (m *RotateCertificateResponse) Reset() { *m = RotateCertificateResponse{} } +func (m *RotateCertificateResponse) String() string { return proto.CompactTextString(m) } +func (*RotateCertificateResponse) ProtoMessage() {} +func (*RotateCertificateResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_cc7c7ec7dcc94e18, []int{1} +} + +func (m *RotateCertificateResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RotateCertificateResponse.Unmarshal(m, b) +} +func (m *RotateCertificateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RotateCertificateResponse.Marshal(b, m, deterministic) +} +func (m *RotateCertificateResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RotateCertificateResponse.Merge(m, src) +} +func (m *RotateCertificateResponse) XXX_Size() int { + return xxx_messageInfo_RotateCertificateResponse.Size(m) +} +func (m *RotateCertificateResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RotateCertificateResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RotateCertificateResponse proto.InternalMessageInfo type isRotateCertificateResponse_RotateResponse interface { isRotateCertificateResponse_RotateResponse() } type RotateCertificateResponse_GeneratedCsr struct { - GeneratedCsr *GenerateCSRResponse `protobuf:"bytes,1,opt,name=generated_csr,json=generatedCsr,oneof"` + GeneratedCsr *GenerateCSRResponse `protobuf:"bytes,1,opt,name=generated_csr,json=generatedCsr,proto3,oneof"` } + type RotateCertificateResponse_LoadCertificate struct { - LoadCertificate *LoadCertificateResponse `protobuf:"bytes,2,opt,name=load_certificate,json=loadCertificate,oneof"` + LoadCertificate *LoadCertificateResponse `protobuf:"bytes,2,opt,name=load_certificate,json=loadCertificate,proto3,oneof"` } -func (*RotateCertificateResponse_GeneratedCsr) isRotateCertificateResponse_RotateResponse() {} +func (*RotateCertificateResponse_GeneratedCsr) isRotateCertificateResponse_RotateResponse() {} + func (*RotateCertificateResponse_LoadCertificate) isRotateCertificateResponse_RotateResponse() {} func (m *RotateCertificateResponse) GetRotateResponse() isRotateCertificateResponse_RotateResponse { @@ -393,12 +425,12 @@ func _RotateCertificateResponse_OneofSizer(msg proto.Message) (n int) { switch x := m.RotateResponse.(type) { case *RotateCertificateResponse_GeneratedCsr: s := proto.Size(x.GeneratedCsr) - n += proto.SizeVarint(1<<3 | proto.WireBytes) + n += 1 // tag and wire n += proto.SizeVarint(uint64(s)) n += s case *RotateCertificateResponse_LoadCertificate: s := proto.Size(x.LoadCertificate) - n += proto.SizeVarint(2<<3 | proto.WireBytes) + n += 1 // tag and wire n += proto.SizeVarint(uint64(s)) n += s case nil: @@ -415,26 +447,51 @@ type InstallCertificateRequest struct { // Types that are valid to be assigned to InstallRequest: // *InstallCertificateRequest_GenerateCsr // *InstallCertificateRequest_LoadCertificate - InstallRequest isInstallCertificateRequest_InstallRequest `protobuf_oneof:"install_request"` + InstallRequest isInstallCertificateRequest_InstallRequest `protobuf_oneof:"install_request"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *InstallCertificateRequest) Reset() { *m = InstallCertificateRequest{} } -func (m *InstallCertificateRequest) String() string { return proto.CompactTextString(m) } -func (*InstallCertificateRequest) ProtoMessage() {} -func (*InstallCertificateRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} } +func (m *InstallCertificateRequest) Reset() { *m = InstallCertificateRequest{} } +func (m *InstallCertificateRequest) String() string { return proto.CompactTextString(m) } +func (*InstallCertificateRequest) ProtoMessage() {} +func (*InstallCertificateRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_cc7c7ec7dcc94e18, []int{2} +} + +func (m *InstallCertificateRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_InstallCertificateRequest.Unmarshal(m, b) +} +func (m *InstallCertificateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_InstallCertificateRequest.Marshal(b, m, deterministic) +} +func (m *InstallCertificateRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_InstallCertificateRequest.Merge(m, src) +} +func (m *InstallCertificateRequest) XXX_Size() int { + return xxx_messageInfo_InstallCertificateRequest.Size(m) +} +func (m *InstallCertificateRequest) XXX_DiscardUnknown() { + xxx_messageInfo_InstallCertificateRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_InstallCertificateRequest proto.InternalMessageInfo type isInstallCertificateRequest_InstallRequest interface { isInstallCertificateRequest_InstallRequest() } type InstallCertificateRequest_GenerateCsr struct { - GenerateCsr *GenerateCSRRequest `protobuf:"bytes,1,opt,name=generate_csr,json=generateCsr,oneof"` + GenerateCsr *GenerateCSRRequest `protobuf:"bytes,1,opt,name=generate_csr,json=generateCsr,proto3,oneof"` } + type InstallCertificateRequest_LoadCertificate struct { - LoadCertificate *LoadCertificateRequest `protobuf:"bytes,2,opt,name=load_certificate,json=loadCertificate,oneof"` + LoadCertificate *LoadCertificateRequest `protobuf:"bytes,2,opt,name=load_certificate,json=loadCertificate,proto3,oneof"` } -func (*InstallCertificateRequest_GenerateCsr) isInstallCertificateRequest_InstallRequest() {} +func (*InstallCertificateRequest_GenerateCsr) isInstallCertificateRequest_InstallRequest() {} + func (*InstallCertificateRequest_LoadCertificate) isInstallCertificateRequest_InstallRequest() {} func (m *InstallCertificateRequest) GetInstallRequest() isInstallCertificateRequest_InstallRequest { @@ -517,12 +574,12 @@ func _InstallCertificateRequest_OneofSizer(msg proto.Message) (n int) { switch x := m.InstallRequest.(type) { case *InstallCertificateRequest_GenerateCsr: s := proto.Size(x.GenerateCsr) - n += proto.SizeVarint(1<<3 | proto.WireBytes) + n += 1 // tag and wire n += proto.SizeVarint(uint64(s)) n += s case *InstallCertificateRequest_LoadCertificate: s := proto.Size(x.LoadCertificate) - n += proto.SizeVarint(2<<3 | proto.WireBytes) + n += 1 // tag and wire n += proto.SizeVarint(uint64(s)) n += s case nil: @@ -539,26 +596,51 @@ type InstallCertificateResponse struct { // Types that are valid to be assigned to InstallResponse: // *InstallCertificateResponse_GeneratedCsr // *InstallCertificateResponse_LoadCertificate - InstallResponse isInstallCertificateResponse_InstallResponse `protobuf_oneof:"install_response"` + InstallResponse isInstallCertificateResponse_InstallResponse `protobuf_oneof:"install_response"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *InstallCertificateResponse) Reset() { *m = InstallCertificateResponse{} } -func (m *InstallCertificateResponse) String() string { return proto.CompactTextString(m) } -func (*InstallCertificateResponse) ProtoMessage() {} -func (*InstallCertificateResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} } +func (m *InstallCertificateResponse) Reset() { *m = InstallCertificateResponse{} } +func (m *InstallCertificateResponse) String() string { return proto.CompactTextString(m) } +func (*InstallCertificateResponse) ProtoMessage() {} +func (*InstallCertificateResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_cc7c7ec7dcc94e18, []int{3} +} + +func (m *InstallCertificateResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_InstallCertificateResponse.Unmarshal(m, b) +} +func (m *InstallCertificateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_InstallCertificateResponse.Marshal(b, m, deterministic) +} +func (m *InstallCertificateResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_InstallCertificateResponse.Merge(m, src) +} +func (m *InstallCertificateResponse) XXX_Size() int { + return xxx_messageInfo_InstallCertificateResponse.Size(m) +} +func (m *InstallCertificateResponse) XXX_DiscardUnknown() { + xxx_messageInfo_InstallCertificateResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_InstallCertificateResponse proto.InternalMessageInfo type isInstallCertificateResponse_InstallResponse interface { isInstallCertificateResponse_InstallResponse() } type InstallCertificateResponse_GeneratedCsr struct { - GeneratedCsr *GenerateCSRResponse `protobuf:"bytes,1,opt,name=generated_csr,json=generatedCsr,oneof"` + GeneratedCsr *GenerateCSRResponse `protobuf:"bytes,1,opt,name=generated_csr,json=generatedCsr,proto3,oneof"` } + type InstallCertificateResponse_LoadCertificate struct { - LoadCertificate *LoadCertificateResponse `protobuf:"bytes,2,opt,name=load_certificate,json=loadCertificate,oneof"` + LoadCertificate *LoadCertificateResponse `protobuf:"bytes,2,opt,name=load_certificate,json=loadCertificate,proto3,oneof"` } -func (*InstallCertificateResponse_GeneratedCsr) isInstallCertificateResponse_InstallResponse() {} +func (*InstallCertificateResponse_GeneratedCsr) isInstallCertificateResponse_InstallResponse() {} + func (*InstallCertificateResponse_LoadCertificate) isInstallCertificateResponse_InstallResponse() {} func (m *InstallCertificateResponse) GetInstallResponse() isInstallCertificateResponse_InstallResponse { @@ -641,12 +723,12 @@ func _InstallCertificateResponse_OneofSizer(msg proto.Message) (n int) { switch x := m.InstallResponse.(type) { case *InstallCertificateResponse_GeneratedCsr: s := proto.Size(x.GeneratedCsr) - n += proto.SizeVarint(1<<3 | proto.WireBytes) + n += 1 // tag and wire n += proto.SizeVarint(uint64(s)) n += s case *InstallCertificateResponse_LoadCertificate: s := proto.Size(x.LoadCertificate) - n += proto.SizeVarint(2<<3 | proto.WireBytes) + n += 1 // tag and wire n += proto.SizeVarint(uint64(s)) n += s case nil: @@ -673,17 +755,40 @@ func _InstallCertificateResponse_OneofSizer(msg proto.Message) (n int) { // the GenerateCSRRequest should fail. type GenerateCSRRequest struct { // Parameters for creating a CSR. - CsrParams *CSRParams `protobuf:"bytes,1,opt,name=csr_params,json=csrParams" json:"csr_params,omitempty"` + CsrParams *CSRParams `protobuf:"bytes,1,opt,name=csr_params,json=csrParams,proto3" json:"csr_params,omitempty"` // The certificate id with which this CSR will be associated. The target // configuration should bind an entity which wants to use a certificate to // the certificate_id it should use. - CertificateId string `protobuf:"bytes,2,opt,name=certificate_id,json=certificateId" json:"certificate_id,omitempty"` + CertificateId string `protobuf:"bytes,2,opt,name=certificate_id,json=certificateId,proto3" json:"certificate_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GenerateCSRRequest) Reset() { *m = GenerateCSRRequest{} } +func (m *GenerateCSRRequest) String() string { return proto.CompactTextString(m) } +func (*GenerateCSRRequest) ProtoMessage() {} +func (*GenerateCSRRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_cc7c7ec7dcc94e18, []int{4} } -func (m *GenerateCSRRequest) Reset() { *m = GenerateCSRRequest{} } -func (m *GenerateCSRRequest) String() string { return proto.CompactTextString(m) } -func (*GenerateCSRRequest) ProtoMessage() {} -func (*GenerateCSRRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} } +func (m *GenerateCSRRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GenerateCSRRequest.Unmarshal(m, b) +} +func (m *GenerateCSRRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GenerateCSRRequest.Marshal(b, m, deterministic) +} +func (m *GenerateCSRRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GenerateCSRRequest.Merge(m, src) +} +func (m *GenerateCSRRequest) XXX_Size() int { + return xxx_messageInfo_GenerateCSRRequest.Size(m) +} +func (m *GenerateCSRRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GenerateCSRRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_GenerateCSRRequest proto.InternalMessageInfo func (m *GenerateCSRRequest) GetCsrParams() *CSRParams { if m != nil { @@ -692,32 +797,139 @@ func (m *GenerateCSRRequest) GetCsrParams() *CSRParams { return nil } +func (m *GenerateCSRRequest) GetCertificateId() string { + if m != nil { + return m.CertificateId + } + return "" +} + // Parameters to be used when generating a Certificate Signing Request. type CSRParams struct { // The type of certificate which will be associated for this CSR. - Type CertificateType `protobuf:"varint,1,opt,name=type,enum=gnoi.certificate.CertificateType" json:"type,omitempty"` + Type CertificateType `protobuf:"varint,1,opt,name=type,proto3,enum=gnoi.certificate.CertificateType" json:"type,omitempty"` // Minimum size of the key to be used by the target when generating a // public/private key pair. - MinKeySize uint32 `protobuf:"varint,2,opt,name=min_key_size,json=minKeySize" json:"min_key_size,omitempty"` + MinKeySize uint32 `protobuf:"varint,2,opt,name=min_key_size,json=minKeySize,proto3" json:"min_key_size,omitempty"` // If provided, the target must use the provided key type. If the target // cannot use the algorithm specified in the key_type, it should cancel the // stream with an Unimplemented error. - KeyType KeyType `protobuf:"varint,3,opt,name=key_type,json=keyType,enum=gnoi.certificate.KeyType" json:"key_type,omitempty"` + KeyType KeyType `protobuf:"varint,3,opt,name=key_type,json=keyType,proto3,enum=gnoi.certificate.KeyType" json:"key_type,omitempty"` // --- common set of parameters applicable for any type of certificate --- // - CommonName string `protobuf:"bytes,4,opt,name=common_name,json=commonName" json:"common_name,omitempty"` - Country string `protobuf:"bytes,5,opt,name=country" json:"country,omitempty"` - State string `protobuf:"bytes,6,opt,name=state" json:"state,omitempty"` - City string `protobuf:"bytes,7,opt,name=city" json:"city,omitempty"` - Organization string `protobuf:"bytes,8,opt,name=organization" json:"organization,omitempty"` - OrganizationalUnit string `protobuf:"bytes,9,opt,name=organizational_unit,json=organizationalUnit" json:"organizational_unit,omitempty"` - IpAddress string `protobuf:"bytes,10,opt,name=ip_address,json=ipAddress" json:"ip_address,omitempty"` - EmailId string `protobuf:"bytes,11,opt,name=email_id,json=emailId" json:"email_id,omitempty"` + CommonName string `protobuf:"bytes,4,opt,name=common_name,json=commonName,proto3" json:"common_name,omitempty"` + Country string `protobuf:"bytes,5,opt,name=country,proto3" json:"country,omitempty"` + State string `protobuf:"bytes,6,opt,name=state,proto3" json:"state,omitempty"` + City string `protobuf:"bytes,7,opt,name=city,proto3" json:"city,omitempty"` + Organization string `protobuf:"bytes,8,opt,name=organization,proto3" json:"organization,omitempty"` + OrganizationalUnit string `protobuf:"bytes,9,opt,name=organizational_unit,json=organizationalUnit,proto3" json:"organizational_unit,omitempty"` + IpAddress string `protobuf:"bytes,10,opt,name=ip_address,json=ipAddress,proto3" json:"ip_address,omitempty"` + EmailId string `protobuf:"bytes,11,opt,name=email_id,json=emailId,proto3" json:"email_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *CSRParams) Reset() { *m = CSRParams{} } -func (m *CSRParams) String() string { return proto.CompactTextString(m) } -func (*CSRParams) ProtoMessage() {} -func (*CSRParams) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} } +func (m *CSRParams) Reset() { *m = CSRParams{} } +func (m *CSRParams) String() string { return proto.CompactTextString(m) } +func (*CSRParams) ProtoMessage() {} +func (*CSRParams) Descriptor() ([]byte, []int) { + return fileDescriptor_cc7c7ec7dcc94e18, []int{5} +} + +func (m *CSRParams) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CSRParams.Unmarshal(m, b) +} +func (m *CSRParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CSRParams.Marshal(b, m, deterministic) +} +func (m *CSRParams) XXX_Merge(src proto.Message) { + xxx_messageInfo_CSRParams.Merge(m, src) +} +func (m *CSRParams) XXX_Size() int { + return xxx_messageInfo_CSRParams.Size(m) +} +func (m *CSRParams) XXX_DiscardUnknown() { + xxx_messageInfo_CSRParams.DiscardUnknown(m) +} + +var xxx_messageInfo_CSRParams proto.InternalMessageInfo + +func (m *CSRParams) GetType() CertificateType { + if m != nil { + return m.Type + } + return CertificateType_CT_UNKNOWN +} + +func (m *CSRParams) GetMinKeySize() uint32 { + if m != nil { + return m.MinKeySize + } + return 0 +} + +func (m *CSRParams) GetKeyType() KeyType { + if m != nil { + return m.KeyType + } + return KeyType_KT_UNKNOWN +} + +func (m *CSRParams) GetCommonName() string { + if m != nil { + return m.CommonName + } + return "" +} + +func (m *CSRParams) GetCountry() string { + if m != nil { + return m.Country + } + return "" +} + +func (m *CSRParams) GetState() string { + if m != nil { + return m.State + } + return "" +} + +func (m *CSRParams) GetCity() string { + if m != nil { + return m.City + } + return "" +} + +func (m *CSRParams) GetOrganization() string { + if m != nil { + return m.Organization + } + return "" +} + +func (m *CSRParams) GetOrganizationalUnit() string { + if m != nil { + return m.OrganizationalUnit + } + return "" +} + +func (m *CSRParams) GetIpAddress() string { + if m != nil { + return m.IpAddress + } + return "" +} + +func (m *CSRParams) GetEmailId() string { + if m != nil { + return m.EmailId + } + return "" +} // GenerateCSRResponse contains the CSR associated with the Certificate ID // supplied in the GenerateCSRRequest. When a Certificate is subsequently @@ -727,13 +939,36 @@ func (*CSRParams) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5 // An Unimplemented error will be returned if the target cannot generate a CSR // as per the request. In this case, the caller must generate its own key pair. type GenerateCSRResponse struct { - Csr *CSR `protobuf:"bytes,1,opt,name=csr" json:"csr,omitempty"` + Csr *CSR `protobuf:"bytes,1,opt,name=csr,proto3" json:"csr,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *GenerateCSRResponse) Reset() { *m = GenerateCSRResponse{} } -func (m *GenerateCSRResponse) String() string { return proto.CompactTextString(m) } -func (*GenerateCSRResponse) ProtoMessage() {} -func (*GenerateCSRResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} } +func (m *GenerateCSRResponse) Reset() { *m = GenerateCSRResponse{} } +func (m *GenerateCSRResponse) String() string { return proto.CompactTextString(m) } +func (*GenerateCSRResponse) ProtoMessage() {} +func (*GenerateCSRResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_cc7c7ec7dcc94e18, []int{6} +} + +func (m *GenerateCSRResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GenerateCSRResponse.Unmarshal(m, b) +} +func (m *GenerateCSRResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GenerateCSRResponse.Marshal(b, m, deterministic) +} +func (m *GenerateCSRResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GenerateCSRResponse.Merge(m, src) +} +func (m *GenerateCSRResponse) XXX_Size() int { + return xxx_messageInfo_GenerateCSRResponse.Size(m) +} +func (m *GenerateCSRResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GenerateCSRResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_GenerateCSRResponse proto.InternalMessageInfo func (m *GenerateCSRResponse) GetCsr() *CSR { if m != nil { @@ -758,25 +993,48 @@ func (m *GenerateCSRResponse) GetCsr() *CSR { // the LoadCertificateRequest must fail. type LoadCertificateRequest struct { // The certificate to be Loaded on the target. - Certificate *Certificate `protobuf:"bytes,1,opt,name=certificate" json:"certificate,omitempty"` + Certificate *Certificate `protobuf:"bytes,1,opt,name=certificate,proto3" json:"certificate,omitempty"` // The key pair to be used with the certificate. This is provided in the event // that the target cannot generate a CSR (and the corresponding public/private // keys). - KeyPair *KeyPair `protobuf:"bytes,2,opt,name=key_pair,json=keyPair" json:"key_pair,omitempty"` + KeyPair *KeyPair `protobuf:"bytes,2,opt,name=key_pair,json=keyPair,proto3" json:"key_pair,omitempty"` // Certificate Id of the above certificate. This is to be provided only when // there is an externally generated key pair. - CertificateId string `protobuf:"bytes,3,opt,name=certificate_id,json=certificateId" json:"certificate_id,omitempty"` + CertificateId string `protobuf:"bytes,3,opt,name=certificate_id,json=certificateId,proto3" json:"certificate_id,omitempty"` // Optional bundle of CA certificates. When not empty, the provided // certificates should squash the existing bundle. This field provides a // simplified means to provision a CA bundle that can be used to validate // other peer's certificates. - CaCertificates []*Certificate `protobuf:"bytes,4,rep,name=ca_certificates,json=caCertificates" json:"ca_certificates,omitempty"` + CaCertificates []*Certificate `protobuf:"bytes,4,rep,name=ca_certificates,json=caCertificates,proto3" json:"ca_certificates,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *LoadCertificateRequest) Reset() { *m = LoadCertificateRequest{} } -func (m *LoadCertificateRequest) String() string { return proto.CompactTextString(m) } -func (*LoadCertificateRequest) ProtoMessage() {} -func (*LoadCertificateRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} } +func (m *LoadCertificateRequest) Reset() { *m = LoadCertificateRequest{} } +func (m *LoadCertificateRequest) String() string { return proto.CompactTextString(m) } +func (*LoadCertificateRequest) ProtoMessage() {} +func (*LoadCertificateRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_cc7c7ec7dcc94e18, []int{7} +} + +func (m *LoadCertificateRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_LoadCertificateRequest.Unmarshal(m, b) +} +func (m *LoadCertificateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_LoadCertificateRequest.Marshal(b, m, deterministic) +} +func (m *LoadCertificateRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_LoadCertificateRequest.Merge(m, src) +} +func (m *LoadCertificateRequest) XXX_Size() int { + return xxx_messageInfo_LoadCertificateRequest.Size(m) +} +func (m *LoadCertificateRequest) XXX_DiscardUnknown() { + xxx_messageInfo_LoadCertificateRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_LoadCertificateRequest proto.InternalMessageInfo func (m *LoadCertificateRequest) GetCertificate() *Certificate { if m != nil { @@ -792,6 +1050,13 @@ func (m *LoadCertificateRequest) GetKeyPair() *KeyPair { return nil } +func (m *LoadCertificateRequest) GetCertificateId() string { + if m != nil { + return m.CertificateId + } + return "" +} + func (m *LoadCertificateRequest) GetCaCertificates() []*Certificate { if m != nil { return m.CaCertificates @@ -803,44 +1068,136 @@ func (m *LoadCertificateRequest) GetCaCertificates() []*Certificate { // If the target could not load the certificate, it must end the RPC stream with // a suitable RPC error about why the Certificate was not loaded. type LoadCertificateResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *LoadCertificateResponse) Reset() { *m = LoadCertificateResponse{} } -func (m *LoadCertificateResponse) String() string { return proto.CompactTextString(m) } -func (*LoadCertificateResponse) ProtoMessage() {} -func (*LoadCertificateResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} } +func (m *LoadCertificateResponse) Reset() { *m = LoadCertificateResponse{} } +func (m *LoadCertificateResponse) String() string { return proto.CompactTextString(m) } +func (*LoadCertificateResponse) ProtoMessage() {} +func (*LoadCertificateResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_cc7c7ec7dcc94e18, []int{8} +} + +func (m *LoadCertificateResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_LoadCertificateResponse.Unmarshal(m, b) +} +func (m *LoadCertificateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_LoadCertificateResponse.Marshal(b, m, deterministic) +} +func (m *LoadCertificateResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_LoadCertificateResponse.Merge(m, src) +} +func (m *LoadCertificateResponse) XXX_Size() int { + return xxx_messageInfo_LoadCertificateResponse.Size(m) +} +func (m *LoadCertificateResponse) XXX_DiscardUnknown() { + xxx_messageInfo_LoadCertificateResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_LoadCertificateResponse proto.InternalMessageInfo // A Finalize message is sent to the target to confirm the Rotation of // the certificate and that the certificate should not be rolled back when // the RPC concludes. The certificate must be rolled back if the target returns // an error after receiving a Finalize message. type FinalizeRequest struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *FinalizeRequest) Reset() { *m = FinalizeRequest{} } +func (m *FinalizeRequest) String() string { return proto.CompactTextString(m) } +func (*FinalizeRequest) ProtoMessage() {} +func (*FinalizeRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_cc7c7ec7dcc94e18, []int{9} +} + +func (m *FinalizeRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_FinalizeRequest.Unmarshal(m, b) +} +func (m *FinalizeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_FinalizeRequest.Marshal(b, m, deterministic) +} +func (m *FinalizeRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_FinalizeRequest.Merge(m, src) +} +func (m *FinalizeRequest) XXX_Size() int { + return xxx_messageInfo_FinalizeRequest.Size(m) +} +func (m *FinalizeRequest) XXX_DiscardUnknown() { + xxx_messageInfo_FinalizeRequest.DiscardUnknown(m) } -func (m *FinalizeRequest) Reset() { *m = FinalizeRequest{} } -func (m *FinalizeRequest) String() string { return proto.CompactTextString(m) } -func (*FinalizeRequest) ProtoMessage() {} -func (*FinalizeRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{9} } +var xxx_messageInfo_FinalizeRequest proto.InternalMessageInfo // The request to query all the certificates on the target. type GetCertificatesRequest struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetCertificatesRequest) Reset() { *m = GetCertificatesRequest{} } +func (m *GetCertificatesRequest) String() string { return proto.CompactTextString(m) } +func (*GetCertificatesRequest) ProtoMessage() {} +func (*GetCertificatesRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_cc7c7ec7dcc94e18, []int{10} +} + +func (m *GetCertificatesRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetCertificatesRequest.Unmarshal(m, b) +} +func (m *GetCertificatesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetCertificatesRequest.Marshal(b, m, deterministic) +} +func (m *GetCertificatesRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetCertificatesRequest.Merge(m, src) +} +func (m *GetCertificatesRequest) XXX_Size() int { + return xxx_messageInfo_GetCertificatesRequest.Size(m) +} +func (m *GetCertificatesRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetCertificatesRequest.DiscardUnknown(m) } -func (m *GetCertificatesRequest) Reset() { *m = GetCertificatesRequest{} } -func (m *GetCertificatesRequest) String() string { return proto.CompactTextString(m) } -func (*GetCertificatesRequest) ProtoMessage() {} -func (*GetCertificatesRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{10} } +var xxx_messageInfo_GetCertificatesRequest proto.InternalMessageInfo // Response from the target about the certificates that exist on the target what // what is using them. type GetCertificatesResponse struct { - CertificateInfo []*CertificateInfo `protobuf:"bytes,1,rep,name=certificate_info,json=certificateInfo" json:"certificate_info,omitempty"` + CertificateInfo []*CertificateInfo `protobuf:"bytes,1,rep,name=certificate_info,json=certificateInfo,proto3" json:"certificate_info,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *GetCertificatesResponse) Reset() { *m = GetCertificatesResponse{} } -func (m *GetCertificatesResponse) String() string { return proto.CompactTextString(m) } -func (*GetCertificatesResponse) ProtoMessage() {} -func (*GetCertificatesResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{11} } +func (m *GetCertificatesResponse) Reset() { *m = GetCertificatesResponse{} } +func (m *GetCertificatesResponse) String() string { return proto.CompactTextString(m) } +func (*GetCertificatesResponse) ProtoMessage() {} +func (*GetCertificatesResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_cc7c7ec7dcc94e18, []int{11} +} + +func (m *GetCertificatesResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetCertificatesResponse.Unmarshal(m, b) +} +func (m *GetCertificatesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetCertificatesResponse.Marshal(b, m, deterministic) +} +func (m *GetCertificatesResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetCertificatesResponse.Merge(m, src) +} +func (m *GetCertificatesResponse) XXX_Size() int { + return xxx_messageInfo_GetCertificatesResponse.Size(m) +} +func (m *GetCertificatesResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetCertificatesResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_GetCertificatesResponse proto.InternalMessageInfo func (m *GetCertificatesResponse) GetCertificateInfo() []*CertificateInfo { if m != nil { @@ -850,19 +1207,49 @@ func (m *GetCertificatesResponse) GetCertificateInfo() []*CertificateInfo { } type CertificateInfo struct { - CertificateId string `protobuf:"bytes,1,opt,name=certificate_id,json=certificateId" json:"certificate_id,omitempty"` - Certificate *Certificate `protobuf:"bytes,2,opt,name=certificate" json:"certificate,omitempty"` + CertificateId string `protobuf:"bytes,1,opt,name=certificate_id,json=certificateId,proto3" json:"certificate_id,omitempty"` + Certificate *Certificate `protobuf:"bytes,2,opt,name=certificate,proto3" json:"certificate,omitempty"` // List of endpoints using this certificate. - Endpoints []*Endpoint `protobuf:"bytes,3,rep,name=endpoints" json:"endpoints,omitempty"` + Endpoints []*Endpoint `protobuf:"bytes,3,rep,name=endpoints,proto3" json:"endpoints,omitempty"` // System modification time when the certificate was installed/rotated in // nanoseconds since epoch. - ModificationTime int64 `protobuf:"varint,4,opt,name=modification_time,json=modificationTime" json:"modification_time,omitempty"` + ModificationTime int64 `protobuf:"varint,4,opt,name=modification_time,json=modificationTime,proto3" json:"modification_time,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CertificateInfo) Reset() { *m = CertificateInfo{} } +func (m *CertificateInfo) String() string { return proto.CompactTextString(m) } +func (*CertificateInfo) ProtoMessage() {} +func (*CertificateInfo) Descriptor() ([]byte, []int) { + return fileDescriptor_cc7c7ec7dcc94e18, []int{12} } -func (m *CertificateInfo) Reset() { *m = CertificateInfo{} } -func (m *CertificateInfo) String() string { return proto.CompactTextString(m) } -func (*CertificateInfo) ProtoMessage() {} -func (*CertificateInfo) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{12} } +func (m *CertificateInfo) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CertificateInfo.Unmarshal(m, b) +} +func (m *CertificateInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CertificateInfo.Marshal(b, m, deterministic) +} +func (m *CertificateInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_CertificateInfo.Merge(m, src) +} +func (m *CertificateInfo) XXX_Size() int { + return xxx_messageInfo_CertificateInfo.Size(m) +} +func (m *CertificateInfo) XXX_DiscardUnknown() { + xxx_messageInfo_CertificateInfo.DiscardUnknown(m) +} + +var xxx_messageInfo_CertificateInfo proto.InternalMessageInfo + +func (m *CertificateInfo) GetCertificateId() string { + if m != nil { + return m.CertificateId + } + return "" +} func (m *CertificateInfo) GetCertificate() *Certificate { if m != nil { @@ -878,27 +1265,94 @@ func (m *CertificateInfo) GetEndpoints() []*Endpoint { return nil } +func (m *CertificateInfo) GetModificationTime() int64 { + if m != nil { + return m.ModificationTime + } + return 0 +} + type RevokeCertificatesRequest struct { // Certificates to revoke. - CertificateId []string `protobuf:"bytes,1,rep,name=certificate_id,json=certificateId" json:"certificate_id,omitempty"` + CertificateId []string `protobuf:"bytes,1,rep,name=certificate_id,json=certificateId,proto3" json:"certificate_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RevokeCertificatesRequest) Reset() { *m = RevokeCertificatesRequest{} } +func (m *RevokeCertificatesRequest) String() string { return proto.CompactTextString(m) } +func (*RevokeCertificatesRequest) ProtoMessage() {} +func (*RevokeCertificatesRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_cc7c7ec7dcc94e18, []int{13} +} + +func (m *RevokeCertificatesRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RevokeCertificatesRequest.Unmarshal(m, b) +} +func (m *RevokeCertificatesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RevokeCertificatesRequest.Marshal(b, m, deterministic) +} +func (m *RevokeCertificatesRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RevokeCertificatesRequest.Merge(m, src) +} +func (m *RevokeCertificatesRequest) XXX_Size() int { + return xxx_messageInfo_RevokeCertificatesRequest.Size(m) +} +func (m *RevokeCertificatesRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RevokeCertificatesRequest.DiscardUnknown(m) } -func (m *RevokeCertificatesRequest) Reset() { *m = RevokeCertificatesRequest{} } -func (m *RevokeCertificatesRequest) String() string { return proto.CompactTextString(m) } -func (*RevokeCertificatesRequest) ProtoMessage() {} -func (*RevokeCertificatesRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{13} } +var xxx_messageInfo_RevokeCertificatesRequest proto.InternalMessageInfo + +func (m *RevokeCertificatesRequest) GetCertificateId() []string { + if m != nil { + return m.CertificateId + } + return nil +} type RevokeCertificatesResponse struct { // List of certificates successfully revoked. - RevokedCertificateId []string `protobuf:"bytes,1,rep,name=revoked_certificate_id,json=revokedCertificateId" json:"revoked_certificate_id,omitempty"` + RevokedCertificateId []string `protobuf:"bytes,1,rep,name=revoked_certificate_id,json=revokedCertificateId,proto3" json:"revoked_certificate_id,omitempty"` // List of errors why certain certificates could not be revoked. - CertificateRevocationError []*CertificateRevocationError `protobuf:"bytes,2,rep,name=certificate_revocation_error,json=certificateRevocationError" json:"certificate_revocation_error,omitempty"` + CertificateRevocationError []*CertificateRevocationError `protobuf:"bytes,2,rep,name=certificate_revocation_error,json=certificateRevocationError,proto3" json:"certificate_revocation_error,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *RevokeCertificatesResponse) Reset() { *m = RevokeCertificatesResponse{} } -func (m *RevokeCertificatesResponse) String() string { return proto.CompactTextString(m) } -func (*RevokeCertificatesResponse) ProtoMessage() {} -func (*RevokeCertificatesResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{14} } +func (m *RevokeCertificatesResponse) Reset() { *m = RevokeCertificatesResponse{} } +func (m *RevokeCertificatesResponse) String() string { return proto.CompactTextString(m) } +func (*RevokeCertificatesResponse) ProtoMessage() {} +func (*RevokeCertificatesResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_cc7c7ec7dcc94e18, []int{14} +} + +func (m *RevokeCertificatesResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RevokeCertificatesResponse.Unmarshal(m, b) +} +func (m *RevokeCertificatesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RevokeCertificatesResponse.Marshal(b, m, deterministic) +} +func (m *RevokeCertificatesResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RevokeCertificatesResponse.Merge(m, src) +} +func (m *RevokeCertificatesResponse) XXX_Size() int { + return xxx_messageInfo_RevokeCertificatesResponse.Size(m) +} +func (m *RevokeCertificatesResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RevokeCertificatesResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RevokeCertificatesResponse proto.InternalMessageInfo + +func (m *RevokeCertificatesResponse) GetRevokedCertificateId() []string { + if m != nil { + return m.RevokedCertificateId + } + return nil +} func (m *RevokeCertificatesResponse) GetCertificateRevocationError() []*CertificateRevocationError { if m != nil { @@ -909,92 +1363,354 @@ func (m *RevokeCertificatesResponse) GetCertificateRevocationError() []*Certific // An error message indicating why a certificate id could not be revoked. type CertificateRevocationError struct { - CertificateId string `protobuf:"bytes,1,opt,name=certificate_id,json=certificateId" json:"certificate_id,omitempty"` - ErrorMessage string `protobuf:"bytes,2,opt,name=error_message,json=errorMessage" json:"error_message,omitempty"` + CertificateId string `protobuf:"bytes,1,opt,name=certificate_id,json=certificateId,proto3" json:"certificate_id,omitempty"` + ErrorMessage string `protobuf:"bytes,2,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CertificateRevocationError) Reset() { *m = CertificateRevocationError{} } +func (m *CertificateRevocationError) String() string { return proto.CompactTextString(m) } +func (*CertificateRevocationError) ProtoMessage() {} +func (*CertificateRevocationError) Descriptor() ([]byte, []int) { + return fileDescriptor_cc7c7ec7dcc94e18, []int{15} +} + +func (m *CertificateRevocationError) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CertificateRevocationError.Unmarshal(m, b) +} +func (m *CertificateRevocationError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CertificateRevocationError.Marshal(b, m, deterministic) +} +func (m *CertificateRevocationError) XXX_Merge(src proto.Message) { + xxx_messageInfo_CertificateRevocationError.Merge(m, src) } +func (m *CertificateRevocationError) XXX_Size() int { + return xxx_messageInfo_CertificateRevocationError.Size(m) +} +func (m *CertificateRevocationError) XXX_DiscardUnknown() { + xxx_messageInfo_CertificateRevocationError.DiscardUnknown(m) +} + +var xxx_messageInfo_CertificateRevocationError proto.InternalMessageInfo -func (m *CertificateRevocationError) Reset() { *m = CertificateRevocationError{} } -func (m *CertificateRevocationError) String() string { return proto.CompactTextString(m) } -func (*CertificateRevocationError) ProtoMessage() {} -func (*CertificateRevocationError) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{15} } +func (m *CertificateRevocationError) GetCertificateId() string { + if m != nil { + return m.CertificateId + } + return "" +} + +func (m *CertificateRevocationError) GetErrorMessage() string { + if m != nil { + return m.ErrorMessage + } + return "" +} // A request to ask the target if it can generate key pairs. type CanGenerateCSRRequest struct { - KeyType KeyType `protobuf:"varint,1,opt,name=key_type,json=keyType,enum=gnoi.certificate.KeyType" json:"key_type,omitempty"` - CertificateType CertificateType `protobuf:"varint,2,opt,name=certificate_type,json=certificateType,enum=gnoi.certificate.CertificateType" json:"certificate_type,omitempty"` - KeySize uint32 `protobuf:"varint,3,opt,name=key_size,json=keySize" json:"key_size,omitempty"` + KeyType KeyType `protobuf:"varint,1,opt,name=key_type,json=keyType,proto3,enum=gnoi.certificate.KeyType" json:"key_type,omitempty"` + CertificateType CertificateType `protobuf:"varint,2,opt,name=certificate_type,json=certificateType,proto3,enum=gnoi.certificate.CertificateType" json:"certificate_type,omitempty"` + KeySize uint32 `protobuf:"varint,3,opt,name=key_size,json=keySize,proto3" json:"key_size,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *CanGenerateCSRRequest) Reset() { *m = CanGenerateCSRRequest{} } -func (m *CanGenerateCSRRequest) String() string { return proto.CompactTextString(m) } -func (*CanGenerateCSRRequest) ProtoMessage() {} -func (*CanGenerateCSRRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{16} } +func (m *CanGenerateCSRRequest) Reset() { *m = CanGenerateCSRRequest{} } +func (m *CanGenerateCSRRequest) String() string { return proto.CompactTextString(m) } +func (*CanGenerateCSRRequest) ProtoMessage() {} +func (*CanGenerateCSRRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_cc7c7ec7dcc94e18, []int{16} +} + +func (m *CanGenerateCSRRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CanGenerateCSRRequest.Unmarshal(m, b) +} +func (m *CanGenerateCSRRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CanGenerateCSRRequest.Marshal(b, m, deterministic) +} +func (m *CanGenerateCSRRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_CanGenerateCSRRequest.Merge(m, src) +} +func (m *CanGenerateCSRRequest) XXX_Size() int { + return xxx_messageInfo_CanGenerateCSRRequest.Size(m) +} +func (m *CanGenerateCSRRequest) XXX_DiscardUnknown() { + xxx_messageInfo_CanGenerateCSRRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_CanGenerateCSRRequest proto.InternalMessageInfo + +func (m *CanGenerateCSRRequest) GetKeyType() KeyType { + if m != nil { + return m.KeyType + } + return KeyType_KT_UNKNOWN +} + +func (m *CanGenerateCSRRequest) GetCertificateType() CertificateType { + if m != nil { + return m.CertificateType + } + return CertificateType_CT_UNKNOWN +} + +func (m *CanGenerateCSRRequest) GetKeySize() uint32 { + if m != nil { + return m.KeySize + } + return 0 +} // Response from the target about whether it can generate a CSR with the given // parameters. type CanGenerateCSRResponse struct { - CanGenerate bool `protobuf:"varint,4,opt,name=can_generate,json=canGenerate" json:"can_generate,omitempty"` + CanGenerate bool `protobuf:"varint,4,opt,name=can_generate,json=canGenerate,proto3" json:"can_generate,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *CanGenerateCSRResponse) Reset() { *m = CanGenerateCSRResponse{} } -func (m *CanGenerateCSRResponse) String() string { return proto.CompactTextString(m) } -func (*CanGenerateCSRResponse) ProtoMessage() {} -func (*CanGenerateCSRResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{17} } +func (m *CanGenerateCSRResponse) Reset() { *m = CanGenerateCSRResponse{} } +func (m *CanGenerateCSRResponse) String() string { return proto.CompactTextString(m) } +func (*CanGenerateCSRResponse) ProtoMessage() {} +func (*CanGenerateCSRResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_cc7c7ec7dcc94e18, []int{17} +} + +func (m *CanGenerateCSRResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CanGenerateCSRResponse.Unmarshal(m, b) +} +func (m *CanGenerateCSRResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CanGenerateCSRResponse.Marshal(b, m, deterministic) +} +func (m *CanGenerateCSRResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_CanGenerateCSRResponse.Merge(m, src) +} +func (m *CanGenerateCSRResponse) XXX_Size() int { + return xxx_messageInfo_CanGenerateCSRResponse.Size(m) +} +func (m *CanGenerateCSRResponse) XXX_DiscardUnknown() { + xxx_messageInfo_CanGenerateCSRResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_CanGenerateCSRResponse proto.InternalMessageInfo + +func (m *CanGenerateCSRResponse) GetCanGenerate() bool { + if m != nil { + return m.CanGenerate + } + return false +} // A certificate. type Certificate struct { // Type of certificate. - Type CertificateType `protobuf:"varint,1,opt,name=type,enum=gnoi.certificate.CertificateType" json:"type,omitempty"` + Type CertificateType `protobuf:"varint,1,opt,name=type,proto3,enum=gnoi.certificate.CertificateType" json:"type,omitempty"` // Actual certificate. // The exact encoding depends upon the type of certificate. // for X509, this should be a PEM encoded Certificate. - Certificate []byte `protobuf:"bytes,2,opt,name=certificate,proto3" json:"certificate,omitempty"` + Certificate []byte `protobuf:"bytes,2,opt,name=certificate,proto3" json:"certificate,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Certificate) Reset() { *m = Certificate{} } +func (m *Certificate) String() string { return proto.CompactTextString(m) } +func (*Certificate) ProtoMessage() {} +func (*Certificate) Descriptor() ([]byte, []int) { + return fileDescriptor_cc7c7ec7dcc94e18, []int{18} +} + +func (m *Certificate) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Certificate.Unmarshal(m, b) +} +func (m *Certificate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Certificate.Marshal(b, m, deterministic) +} +func (m *Certificate) XXX_Merge(src proto.Message) { + xxx_messageInfo_Certificate.Merge(m, src) +} +func (m *Certificate) XXX_Size() int { + return xxx_messageInfo_Certificate.Size(m) +} +func (m *Certificate) XXX_DiscardUnknown() { + xxx_messageInfo_Certificate.DiscardUnknown(m) +} + +var xxx_messageInfo_Certificate proto.InternalMessageInfo + +func (m *Certificate) GetType() CertificateType { + if m != nil { + return m.Type + } + return CertificateType_CT_UNKNOWN } -func (m *Certificate) Reset() { *m = Certificate{} } -func (m *Certificate) String() string { return proto.CompactTextString(m) } -func (*Certificate) ProtoMessage() {} -func (*Certificate) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{18} } +func (m *Certificate) GetCertificate() []byte { + if m != nil { + return m.Certificate + } + return nil +} // A Certificate Signing Request. type CSR struct { // Type of certificate. - Type CertificateType `protobuf:"varint,1,opt,name=type,enum=gnoi.certificate.CertificateType" json:"type,omitempty"` + Type CertificateType `protobuf:"varint,1,opt,name=type,proto3,enum=gnoi.certificate.CertificateType" json:"type,omitempty"` // Bytes representing the CSR. // The exact encoding depends upon the type of certificate requested. // for X509: This should be the PEM encoded CSR. - Csr []byte `protobuf:"bytes,2,opt,name=csr,proto3" json:"csr,omitempty"` + Csr []byte `protobuf:"bytes,2,opt,name=csr,proto3" json:"csr,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *CSR) Reset() { *m = CSR{} } -func (m *CSR) String() string { return proto.CompactTextString(m) } -func (*CSR) ProtoMessage() {} -func (*CSR) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{19} } +func (m *CSR) Reset() { *m = CSR{} } +func (m *CSR) String() string { return proto.CompactTextString(m) } +func (*CSR) ProtoMessage() {} +func (*CSR) Descriptor() ([]byte, []int) { + return fileDescriptor_cc7c7ec7dcc94e18, []int{19} +} + +func (m *CSR) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CSR.Unmarshal(m, b) +} +func (m *CSR) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CSR.Marshal(b, m, deterministic) +} +func (m *CSR) XXX_Merge(src proto.Message) { + xxx_messageInfo_CSR.Merge(m, src) +} +func (m *CSR) XXX_Size() int { + return xxx_messageInfo_CSR.Size(m) +} +func (m *CSR) XXX_DiscardUnknown() { + xxx_messageInfo_CSR.DiscardUnknown(m) +} + +var xxx_messageInfo_CSR proto.InternalMessageInfo + +func (m *CSR) GetType() CertificateType { + if m != nil { + return m.Type + } + return CertificateType_CT_UNKNOWN +} + +func (m *CSR) GetCsr() []byte { + if m != nil { + return m.Csr + } + return nil +} // A message representing a pair of public/private keys. type KeyPair struct { - PrivateKey []byte `protobuf:"bytes,1,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"` - PublicKey []byte `protobuf:"bytes,2,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` + PrivateKey []byte `protobuf:"bytes,1,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"` + PublicKey []byte `protobuf:"bytes,2,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *KeyPair) Reset() { *m = KeyPair{} } -func (m *KeyPair) String() string { return proto.CompactTextString(m) } -func (*KeyPair) ProtoMessage() {} -func (*KeyPair) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{20} } +func (m *KeyPair) Reset() { *m = KeyPair{} } +func (m *KeyPair) String() string { return proto.CompactTextString(m) } +func (*KeyPair) ProtoMessage() {} +func (*KeyPair) Descriptor() ([]byte, []int) { + return fileDescriptor_cc7c7ec7dcc94e18, []int{20} +} + +func (m *KeyPair) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_KeyPair.Unmarshal(m, b) +} +func (m *KeyPair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_KeyPair.Marshal(b, m, deterministic) +} +func (m *KeyPair) XXX_Merge(src proto.Message) { + xxx_messageInfo_KeyPair.Merge(m, src) +} +func (m *KeyPair) XXX_Size() int { + return xxx_messageInfo_KeyPair.Size(m) +} +func (m *KeyPair) XXX_DiscardUnknown() { + xxx_messageInfo_KeyPair.DiscardUnknown(m) +} + +var xxx_messageInfo_KeyPair proto.InternalMessageInfo + +func (m *KeyPair) GetPrivateKey() []byte { + if m != nil { + return m.PrivateKey + } + return nil +} + +func (m *KeyPair) GetPublicKey() []byte { + if m != nil { + return m.PublicKey + } + return nil +} // An endpoint represents an entity on the target which can use a certificate. type Endpoint struct { - Type Endpoint_Type `protobuf:"varint,1,opt,name=type,enum=gnoi.certificate.Endpoint_Type" json:"type,omitempty"` + Type Endpoint_Type `protobuf:"varint,1,opt,name=type,proto3,enum=gnoi.certificate.Endpoint_Type" json:"type,omitempty"` // Human readable identifier for an endpoint. - Endpoint string `protobuf:"bytes,2,opt,name=endpoint" json:"endpoint,omitempty"` + Endpoint string `protobuf:"bytes,2,opt,name=endpoint,proto3" json:"endpoint,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Endpoint) Reset() { *m = Endpoint{} } +func (m *Endpoint) String() string { return proto.CompactTextString(m) } +func (*Endpoint) ProtoMessage() {} +func (*Endpoint) Descriptor() ([]byte, []int) { + return fileDescriptor_cc7c7ec7dcc94e18, []int{21} +} + +func (m *Endpoint) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Endpoint.Unmarshal(m, b) +} +func (m *Endpoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Endpoint.Marshal(b, m, deterministic) +} +func (m *Endpoint) XXX_Merge(src proto.Message) { + xxx_messageInfo_Endpoint.Merge(m, src) +} +func (m *Endpoint) XXX_Size() int { + return xxx_messageInfo_Endpoint.Size(m) +} +func (m *Endpoint) XXX_DiscardUnknown() { + xxx_messageInfo_Endpoint.DiscardUnknown(m) } -func (m *Endpoint) Reset() { *m = Endpoint{} } -func (m *Endpoint) String() string { return proto.CompactTextString(m) } -func (*Endpoint) ProtoMessage() {} -func (*Endpoint) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{21} } +var xxx_messageInfo_Endpoint proto.InternalMessageInfo + +func (m *Endpoint) GetType() Endpoint_Type { + if m != nil { + return m.Type + } + return Endpoint_EP_UNSPECIFIED +} + +func (m *Endpoint) GetEndpoint() string { + if m != nil { + return m.Endpoint + } + return "" +} func init() { + proto.RegisterEnum("gnoi.certificate.CertificateType", CertificateType_name, CertificateType_value) + proto.RegisterEnum("gnoi.certificate.KeyType", KeyType_name, KeyType_value) + proto.RegisterEnum("gnoi.certificate.Endpoint_Type", Endpoint_Type_name, Endpoint_Type_value) proto.RegisterType((*RotateCertificateRequest)(nil), "gnoi.certificate.RotateCertificateRequest") proto.RegisterType((*RotateCertificateResponse)(nil), "gnoi.certificate.RotateCertificateResponse") proto.RegisterType((*InstallCertificateRequest)(nil), "gnoi.certificate.InstallCertificateRequest") @@ -1017,9 +1733,91 @@ func init() { proto.RegisterType((*CSR)(nil), "gnoi.certificate.CSR") proto.RegisterType((*KeyPair)(nil), "gnoi.certificate.KeyPair") proto.RegisterType((*Endpoint)(nil), "gnoi.certificate.Endpoint") - proto.RegisterEnum("gnoi.certificate.CertificateType", CertificateType_name, CertificateType_value) - proto.RegisterEnum("gnoi.certificate.KeyType", KeyType_name, KeyType_value) - proto.RegisterEnum("gnoi.certificate.Endpoint_Type", Endpoint_Type_name, Endpoint_Type_value) +} + +func init() { proto.RegisterFile("cert/cert.proto", fileDescriptor_cc7c7ec7dcc94e18) } + +var fileDescriptor_cc7c7ec7dcc94e18 = []byte{ + // 1254 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x57, 0xdd, 0x72, 0xda, 0xc6, + 0x17, 0xb7, 0x0c, 0x31, 0x70, 0xc0, 0x20, 0x6f, 0x12, 0x47, 0xf0, 0xff, 0x67, 0x92, 0xa8, 0xcd, + 0xc4, 0x49, 0x3c, 0xd8, 0xcd, 0xc7, 0x4c, 0x3f, 0x66, 0xdc, 0xb1, 0x09, 0x8e, 0x19, 0x6c, 0xc2, + 0x08, 0xdc, 0xf6, 0x4e, 0xb3, 0x16, 0x0b, 0xde, 0x31, 0xda, 0x55, 0x25, 0x39, 0x1d, 0xfc, 0x10, + 0x7d, 0x81, 0xde, 0xf4, 0xaa, 0x8f, 0xd0, 0x07, 0xe8, 0x13, 0x74, 0x3a, 0x9d, 0x5e, 0xf7, 0x49, + 0x3a, 0x1d, 0xed, 0x0a, 0x10, 0x48, 0xd8, 0x34, 0x77, 0xb9, 0x61, 0xa4, 0x73, 0x7e, 0xe7, 0xb7, + 0x7b, 0xbe, 0x05, 0x94, 0x2c, 0xe2, 0xfa, 0x3b, 0xc1, 0x4f, 0xd5, 0x71, 0xb9, 0xcf, 0x91, 0x3a, + 0x60, 0x9c, 0x56, 0x03, 0x01, 0xed, 0x53, 0x0b, 0xfb, 0xa4, 0xb2, 0x3d, 0xa0, 0xfe, 0xf9, 0xe5, + 0x59, 0xd5, 0xe2, 0xf6, 0x0e, 0x77, 0x08, 0xb3, 0x38, 0xeb, 0xd3, 0xc1, 0x4e, 0x80, 0xdb, 0xf1, + 0x47, 0x0e, 0xf1, 0xe4, 0xaf, 0xb4, 0xd7, 0x7f, 0x5e, 0x05, 0xcd, 0xe0, 0x3e, 0xf6, 0x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69, 0xb0, 0x3e, 0x37, 0x4a, 0xd6, 0xac, 0x40, 0xff, 0x5b, 0x81, 0xd2, 0x1c, 0x28, 0x21, + 0x66, 0x4a, 0x52, 0xcc, 0xe6, 0x32, 0xba, 0xfa, 0x9f, 0x33, 0xfa, 0x39, 0xe4, 0x08, 0xeb, 0x39, + 0x9c, 0x32, 0xdf, 0xd3, 0x52, 0xc2, 0x85, 0x4a, 0xdc, 0xbc, 0x1e, 0x42, 0x8c, 0x29, 0x18, 0x3d, + 0x87, 0x0d, 0x9b, 0xf7, 0x24, 0x82, 0x72, 0x66, 0xfa, 0x34, 0xec, 0xd0, 0x94, 0xa1, 0x46, 0x15, + 0x5d, 0x6a, 0x13, 0xfd, 0x00, 0xca, 0x06, 0x79, 0xcf, 0x2f, 0x48, 0x42, 0xa0, 0x13, 0x7d, 0x4d, + 0xc5, 0x27, 0xd5, 0x6f, 0x0a, 0x54, 0x92, 0x48, 0xc2, 0x9c, 0xbc, 0x82, 0x4d, 0x57, 0x68, 0x67, + 0x06, 0xf6, 0x94, 0xed, 0x4e, 0xa8, 0xad, 0xcd, 0x04, 0x90, 0xc1, 0xff, 0xa3, 0xe8, 0x00, 0x13, + 0xfa, 0x43, 0x5c, 0x97, 0x07, 0x55, 0x1e, 0x84, 0x64, 0xfb, 0xfa, 0x88, 0x4e, 0x8c, 0xea, 0x81, + 0x8d, 0x51, 0xb1, 0x16, 0xea, 0xf4, 0x73, 0xa8, 0x2c, 0xb6, 0x5c, 0x36, 0xeb, 0x9f, 0xc0, 0xba, + 0xb8, 0x9d, 0x69, 0x13, 0xcf, 0xc3, 0x03, 0x12, 0x4e, 0xf6, 0x82, 0x10, 0x9e, 0x48, 0x99, 0xfe, + 0xab, 0x02, 0x77, 0x6b, 0x98, 0x25, 0x6c, 0x95, 0xe8, 0x2c, 0x56, 0x96, 0x9e, 0xc5, 0x73, 0x35, + 0x2f, 0xac, 0x57, 0x97, 0x5d, 0x13, 0xd1, 0x9a, 0x17, 0x6c, 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0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1030,8 +1828,9 @@ var _ grpc.ClientConn // is compatible with the grpc package it is being compiled against. const _ = grpc.SupportPackageIsVersion4 -// Client API for CertificateManagement service - +// CertificateManagementClient is the client API for CertificateManagement service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type CertificateManagementClient interface { // Rotate will replace an existing Certificate on the target by creating a // new CSR request and placing the new Certificate based on the CSR on the @@ -1151,7 +1950,7 @@ func NewCertificateManagementClient(cc *grpc.ClientConn) CertificateManagementCl } func (c *certificateManagementClient) Rotate(ctx context.Context, opts ...grpc.CallOption) (CertificateManagement_RotateClient, error) { - stream, err := grpc.NewClientStream(ctx, &_CertificateManagement_serviceDesc.Streams[0], c.cc, "/gnoi.certificate.CertificateManagement/Rotate", opts...) + stream, err := c.cc.NewStream(ctx, &_CertificateManagement_serviceDesc.Streams[0], "/gnoi.certificate.CertificateManagement/Rotate", opts...) if err != nil { return nil, err } @@ -1182,7 +1981,7 @@ func (x *certificateManagementRotateClient) Recv() (*RotateCertificateResponse, } func (c *certificateManagementClient) Install(ctx context.Context, opts ...grpc.CallOption) (CertificateManagement_InstallClient, error) { - stream, err := grpc.NewClientStream(ctx, &_CertificateManagement_serviceDesc.Streams[1], c.cc, "/gnoi.certificate.CertificateManagement/Install", opts...) + stream, err := c.cc.NewStream(ctx, &_CertificateManagement_serviceDesc.Streams[1], "/gnoi.certificate.CertificateManagement/Install", opts...) if err != nil { return nil, err } @@ -1214,7 +2013,7 @@ func (x *certificateManagementInstallClient) Recv() (*InstallCertificateResponse func (c *certificateManagementClient) GetCertificates(ctx context.Context, in *GetCertificatesRequest, opts ...grpc.CallOption) (*GetCertificatesResponse, error) { out := new(GetCertificatesResponse) - err := grpc.Invoke(ctx, "/gnoi.certificate.CertificateManagement/GetCertificates", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/gnoi.certificate.CertificateManagement/GetCertificates", in, out, opts...) if err != nil { return nil, err } @@ -1223,7 +2022,7 @@ func (c *certificateManagementClient) GetCertificates(ctx context.Context, in *G func (c *certificateManagementClient) RevokeCertificates(ctx context.Context, in *RevokeCertificatesRequest, opts ...grpc.CallOption) (*RevokeCertificatesResponse, error) { out := new(RevokeCertificatesResponse) - err := grpc.Invoke(ctx, "/gnoi.certificate.CertificateManagement/RevokeCertificates", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/gnoi.certificate.CertificateManagement/RevokeCertificates", in, out, opts...) if err != nil { return nil, err } @@ -1232,15 +2031,14 @@ func (c *certificateManagementClient) RevokeCertificates(ctx context.Context, in func (c *certificateManagementClient) CanGenerateCSR(ctx context.Context, in *CanGenerateCSRRequest, opts ...grpc.CallOption) (*CanGenerateCSRResponse, error) { out := new(CanGenerateCSRResponse) - err := grpc.Invoke(ctx, "/gnoi.certificate.CertificateManagement/CanGenerateCSR", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/gnoi.certificate.CertificateManagement/CanGenerateCSR", in, out, opts...) if err != nil { return nil, err } return out, nil } -// Server API for CertificateManagement service - +// CertificateManagementServer is the server API for CertificateManagement service. type CertificateManagementServer interface { // Rotate will replace an existing Certificate on the target by creating a // new CSR request and placing the new Certificate based on the CSR on the @@ -1494,86 +2292,3 @@ var _CertificateManagement_serviceDesc = grpc.ServiceDesc{ }, Metadata: "cert/cert.proto", } - -func init() { proto.RegisterFile("cert/cert.proto", fileDescriptor0) } - -var fileDescriptor0 = []byte{ - // 1232 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xd4, 0x57, 0xdd, 0x72, 0xda, 0x46, - 0x14, 0xb6, 0x0c, 0x36, 0x70, 0xc0, 0x20, 0xaf, 0x63, 0x47, 0xd0, 0x66, 0xe2, 0xa8, 0xf5, 0xc4, - 0x71, 0x32, 0xd8, 0xcd, 0xcf, 0x4c, 0x7f, 0x66, 0xdc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a, 0xf8, 0x30, 0x45, 0x31, 0xb6, 0x73, 0x3f, 0xc3, 0x4b, 0x4f, 0x16, 0x03, 0x87, 0xde, 0xd4, - 0x85, 0xc2, 0xcc, 0x5e, 0x42, 0xbb, 0x71, 0x1f, 0xb8, 0x71, 0x4b, 0xad, 0xf4, 0x68, 0x01, 0x64, - 0xd0, 0x6d, 0x36, 0xa0, 0xe8, 0xb8, 0x8d, 0x73, 0x6e, 0xee, 0x64, 0x8f, 0x73, 0xee, 0x86, 0x09, - 0x6e, 0x42, 0x7e, 0xba, 0xf1, 0xd1, 0xc3, 0x98, 0x86, 0x8a, 0x1b, 0x69, 0xa5, 0xdd, 0xdb, 0x81, - 0xf2, 0x25, 0xc7, 0xe9, 0xbf, 0x0e, 0x57, 0x0e, 0xca, 0x5f, 0x94, 0x0f, 0xde, 0xac, 0x8a, 0xff, - 0xc7, 0xcf, 0xfe, 0x0f, 0x00, 0x00, 0xff, 0xff, 0xad, 0x88, 0xe4, 0x40, 0x57, 0x0f, 0x00, 0x00, -} diff --git a/cert/cert.proto b/cert/cert.proto index 760ff7e0..bf10bf67 100644 --- a/cert/cert.proto +++ b/cert/cert.proto @@ -18,7 +18,7 @@ // rotation. syntax = "proto3"; -import "types/types.proto"; +import "github.com/openconfig/gnoi/types/types.proto"; package gnoi.certificate; diff --git a/common/common.pb.go b/common/common.pb.go index 285ce5cf..42d0364e 100644 --- a/common/common.pb.go +++ b/common/common.pb.go @@ -1,22 +1,14 @@ -// Code generated by protoc-gen-go. +// Code generated by protoc-gen-go. DO NOT EDIT. // source: common/common.proto -// DO NOT EDIT! -/* -Package gnoi is a generated protocol buffer package. - -It is generated from these files: - common/common.proto - -It has these top-level messages: - RemoteDownload -*/ package gnoi -import proto "github.com/golang/protobuf/proto" -import fmt "fmt" -import math "math" -import gnoi1 "types" +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + types "github.com/openconfig/gnoi/types" + math "math" +) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal @@ -46,6 +38,7 @@ var RemoteDownload_Protocol_name = map[int32]string{ 3: "HTTPS", 4: "SCP", } + var RemoteDownload_Protocol_value = map[string]int32{ "UNKNOWN": 0, "SFTP": 1, @@ -57,7 +50,10 @@ var RemoteDownload_Protocol_value = map[string]int32{ func (x RemoteDownload_Protocol) String() string { return proto.EnumName(RemoteDownload_Protocol_name, int32(x)) } -func (RemoteDownload_Protocol) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0, 0} } + +func (RemoteDownload_Protocol) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8f954d82c0b891f6, []int{0, 0} +} // RemoteDownload defines the details for a device to initiate a file transfer // from or to a remote location. @@ -66,17 +62,54 @@ type RemoteDownload struct { // For HTTP(S), this will be the URL (i.e. foo.com/file.tbz2). // For SFTP and SCP, this will be the address:/path/to/file // (i.e. host.foo.com:/bar/baz). - Path string `protobuf:"bytes,1,opt,name=path" json:"path,omitempty"` - Protocol RemoteDownload_Protocol `protobuf:"varint,2,opt,name=protocol,enum=gnoi.RemoteDownload_Protocol" json:"protocol,omitempty"` - Credentials *gnoi1.Credentials `protobuf:"bytes,3,opt,name=credentials" json:"credentials,omitempty"` + Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` + Protocol RemoteDownload_Protocol `protobuf:"varint,2,opt,name=protocol,proto3,enum=gnoi.RemoteDownload_Protocol" json:"protocol,omitempty"` + Credentials *types.Credentials `protobuf:"bytes,3,opt,name=credentials,proto3" json:"credentials,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RemoteDownload) Reset() { *m = RemoteDownload{} } +func (m *RemoteDownload) String() string { return proto.CompactTextString(m) } +func (*RemoteDownload) ProtoMessage() {} +func (*RemoteDownload) Descriptor() ([]byte, []int) { + return fileDescriptor_8f954d82c0b891f6, []int{0} +} + +func (m *RemoteDownload) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RemoteDownload.Unmarshal(m, b) +} +func (m *RemoteDownload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RemoteDownload.Marshal(b, m, deterministic) +} +func (m *RemoteDownload) XXX_Merge(src proto.Message) { + xxx_messageInfo_RemoteDownload.Merge(m, src) +} +func (m *RemoteDownload) XXX_Size() int { + return xxx_messageInfo_RemoteDownload.Size(m) +} +func (m *RemoteDownload) XXX_DiscardUnknown() { + xxx_messageInfo_RemoteDownload.DiscardUnknown(m) +} + +var xxx_messageInfo_RemoteDownload proto.InternalMessageInfo + +func (m *RemoteDownload) GetPath() string { + if m != nil { + return m.Path + } + return "" } -func (m *RemoteDownload) Reset() { *m = RemoteDownload{} } -func (m *RemoteDownload) String() string { return proto.CompactTextString(m) } -func (*RemoteDownload) ProtoMessage() {} -func (*RemoteDownload) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } +func (m *RemoteDownload) GetProtocol() RemoteDownload_Protocol { + if m != nil { + return m.Protocol + } + return RemoteDownload_UNKNOWN +} -func (m *RemoteDownload) GetCredentials() *gnoi1.Credentials { +func (m *RemoteDownload) GetCredentials() *types.Credentials { if m != nil { return m.Credentials } @@ -84,26 +117,27 @@ func (m *RemoteDownload) GetCredentials() *gnoi1.Credentials { } func init() { - proto.RegisterType((*RemoteDownload)(nil), "gnoi.RemoteDownload") proto.RegisterEnum("gnoi.RemoteDownload_Protocol", RemoteDownload_Protocol_name, RemoteDownload_Protocol_value) + proto.RegisterType((*RemoteDownload)(nil), "gnoi.RemoteDownload") } -func init() { proto.RegisterFile("common/common.proto", fileDescriptor0) } +func init() { proto.RegisterFile("common/common.proto", fileDescriptor_8f954d82c0b891f6) } -var fileDescriptor0 = []byte{ - // 215 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xe2, 0x12, 0x4e, 0xce, 0xcf, 0xcd, +var fileDescriptor_8f954d82c0b891f6 = []byte{ + // 239 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x4e, 0xce, 0xcf, 0xcd, 0xcd, 0xcf, 0xd3, 0x87, 0x50, 0x7a, 0x05, 0x45, 0xf9, 0x25, 0xf9, 0x42, 0x2c, 0xe9, 0x79, 0xf9, - 0x99, 0x52, 0x82, 0x25, 0x95, 0x05, 0xa9, 0xc5, 0xfa, 0x60, 0x12, 0x22, 0xa1, 0x74, 0x95, 0x91, - 0x8b, 0x2f, 0x28, 0x35, 0x37, 0xbf, 0x24, 0xd5, 0x25, 0xbf, 0x3c, 0x2f, 0x27, 0x3f, 0x31, 0x45, - 0x48, 0x88, 0x8b, 0xa5, 0x20, 0xb1, 0x24, 0x43, 0x82, 0x51, 0x81, 0x51, 0x83, 0x33, 0x08, 0xcc, - 0x16, 0xb2, 0xe4, 0xe2, 0x00, 0xab, 0x4f, 0xce, 0xcf, 0x91, 0x60, 0x52, 0x60, 0xd4, 0xe0, 0x33, - 0x92, 0xd5, 0x03, 0x19, 0xa9, 0x87, 0xaa, 0x57, 0x2f, 0x00, 0xaa, 0x28, 0x08, 0xae, 0x5c, 0xc8, - 0x98, 0x8b, 0x3b, 0xb9, 0x28, 0x35, 0x25, 0x35, 0xaf, 0x24, 0x33, 0x31, 0xa7, 0x58, 0x82, 0x59, - 0x81, 0x51, 0x83, 0xdb, 0x48, 0x10, 0xa2, 0xdb, 0x19, 0x21, 0x11, 0x84, 0xac, 0x4a, 0xc9, 0x9e, - 0x8b, 0x03, 0x66, 0x94, 0x10, 0x37, 0x17, 0x7b, 0xa8, 0x9f, 0xb7, 0x9f, 0x7f, 0xb8, 0x9f, 0x00, - 0x83, 0x10, 0x07, 0x17, 0x4b, 0xb0, 0x5b, 0x48, 0x80, 0x00, 0x23, 0x88, 0xe5, 0x11, 0x12, 0x12, - 0x20, 0xc0, 0x24, 0xc4, 0xc9, 0xc5, 0x0a, 0x62, 0x05, 0x0b, 0x30, 0x0b, 0xb1, 0x73, 0x31, 0x07, - 0x3b, 0x07, 0x08, 0xb0, 0x24, 0xb1, 0x81, 0xed, 0x37, 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, 0x79, - 0xb3, 0xda, 0x64, 0x0e, 0x01, 0x00, 0x00, + 0x99, 0x52, 0x3a, 0xe9, 0x99, 0x25, 0x19, 0xa5, 0x49, 0x7a, 0xc9, 0xf9, 0xb9, 0xfa, 0xf9, 0x05, + 0xa9, 0x79, 0xc9, 0xf9, 0x79, 0x69, 0x99, 0xe9, 0xfa, 0x20, 0x39, 0xfd, 0x92, 0xca, 0x82, 0xd4, + 0x62, 0x08, 0x09, 0xd1, 0xa3, 0x74, 0x95, 0x91, 0x8b, 0x2f, 0x28, 0x35, 0x37, 0xbf, 0x24, 0xd5, + 0x25, 0xbf, 0x3c, 0x2f, 0x27, 0x3f, 0x31, 0x45, 0x48, 0x88, 0x8b, 0xa5, 0x20, 0xb1, 0x24, 0x43, + 0x82, 0x51, 0x81, 0x51, 0x83, 0x33, 0x08, 0xcc, 0x16, 0xb2, 0xe4, 0xe2, 0x00, 0xab, 0x4f, 0xce, + 0xcf, 0x91, 0x60, 0x52, 0x60, 0xd4, 0xe0, 0x33, 0x92, 0xd5, 0x03, 0x99, 0xa8, 0x87, 0xaa, 0x57, + 0x2f, 0x00, 0xaa, 0x28, 0x08, 0xae, 0x5c, 0xc8, 0x98, 0x8b, 0x3b, 0xb9, 0x28, 0x35, 0x25, 0x35, + 0xaf, 0x24, 0x33, 0x31, 0xa7, 0x58, 0x82, 0x59, 0x81, 0x51, 0x83, 0xdb, 0x48, 0x10, 0xa2, 0xdb, + 0x19, 0x21, 0x11, 0x84, 0xac, 0x4a, 0xc9, 0x9e, 0x8b, 0x03, 0x66, 0x94, 0x10, 0x37, 0x17, 0x7b, + 0xa8, 0x9f, 0xb7, 0x9f, 0x7f, 0xb8, 0x9f, 0x00, 0x83, 0x10, 0x07, 0x17, 0x4b, 0xb0, 0x5b, 0x48, + 0x80, 0x00, 0x23, 0x88, 0xe5, 0x11, 0x12, 0x12, 0x20, 0xc0, 0x24, 0xc4, 0xc9, 0xc5, 0x0a, 0x62, + 0x05, 0x0b, 0x30, 0x0b, 0xb1, 0x73, 0x31, 0x07, 0x3b, 0x07, 0x08, 0xb0, 0x24, 0xb1, 0x81, 0xed, + 0x37, 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, 0x35, 0xc2, 0x5a, 0xe6, 0x29, 0x01, 0x00, 0x00, } diff --git a/common/common.proto b/common/common.proto index 29da4129..b5ade89e 100644 --- a/common/common.proto +++ b/common/common.proto @@ -18,7 +18,7 @@ syntax = "proto3"; package gnoi; -import "types/types.proto"; +import "github.com/openconfig/gnoi/types/types.proto"; // RemoteDownload defines the details for a device to initiate a file transfer // from or to a remote location. diff --git a/diag/BUILD.bazel b/diag/BUILD.bazel deleted file mode 100644 index 07deb8e5..00000000 --- a/diag/BUILD.bazel +++ /dev/null @@ -1,14 +0,0 @@ -load("@io_bazel_rules_go//proto:go_proto_library.bzl", "go_proto_library") - -proto_library( - name = "diag_proto", - srcs = ["diag.proto"], -) - -go_proto_library( - name = "go_default_library", - srcs = ["diag.proto"], - visibility = ["//visibility:public"], - rules_go_repo_only_for_internal_use = "@", - has_services = 1, -) diff --git a/diag/diag.pb.go b/diag/diag.pb.go index f0c6bfdb..ced68fb5 100644 --- a/diag/diag.pb.go +++ b/diag/diag.pb.go @@ -1,31 +1,15 @@ -// Code generated by protoc-gen-go. +// Code generated by protoc-gen-go. DO NOT EDIT. // source: diag/diag.proto -// DO NOT EDIT! - -/* -Package gnoi_diag is a generated protocol buffer package. - -It is generated from these files: - diag/diag.proto - -It has these top-level messages: - StartBERTRequest - StartBERTResponse - StopBERTRequest - StopBERTResponse - GetBERTResultRequest - GetBERTResultResponse -*/ -package gnoi_diag -import proto "github.com/golang/protobuf/proto" -import fmt "fmt" -import math "math" -import gnoi "types" +package gnoi_diag import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + types "github.com/openconfig/gnoi/types" context "golang.org/x/net/context" grpc "google.golang.org/grpc" + math "math" ) // Reference imports to suppress errors if they are not otherwise used. @@ -61,6 +45,7 @@ var PrbsPolynomial_name = map[int32]string{ 5: "PRBS_POLYNOMIAL_PRBS23", 6: "PRBS_POLYNOMIAL_PRBS31", } + var PrbsPolynomial_value = map[string]int32{ "PRBS_POLYNOMIAL_UNKNOWN": 0, "PRBS_POLYNOMIAL_PRBS7": 1, @@ -74,7 +59,10 @@ var PrbsPolynomial_value = map[string]int32{ func (x PrbsPolynomial) String() string { return proto.EnumName(PrbsPolynomial_name, int32(x)) } -func (PrbsPolynomial) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } + +func (PrbsPolynomial) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_c2372dae051d1d7a, []int{0} +} // Status returned for each per-port BERT request. type BertStatus int32 @@ -131,6 +119,7 @@ var BertStatus_name = map[int32]string{ 12: "BERT_STATUS_PEER_LOCK_LOST", 13: "BERT_STATUS_INTERNAL_ERROR", } + var BertStatus_value = map[string]int32{ "BERT_STATUS_UNKNOWN": 0, "BERT_STATUS_OK": 1, @@ -151,23 +140,56 @@ var BertStatus_value = map[string]int32{ func (x BertStatus) String() string { return proto.EnumName(BertStatus_name, int32(x)) } -func (BertStatus) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } + +func (BertStatus) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_c2372dae051d1d7a, []int{1} +} type StartBERTRequest struct { // Unique BERT operation ID specified by the client. Multiple BERTs run on // different ports can have the same BERT operation ID. This ID will be used // later to stop the operation and/or get its results. // TODO: Investigate whether we can use numerical IDs instead. - BertOperationId string `protobuf:"bytes,1,opt,name=bert_operation_id,json=bertOperationId" json:"bert_operation_id,omitempty"` + BertOperationId string `protobuf:"bytes,1,opt,name=bert_operation_id,json=bertOperationId,proto3" json:"bert_operation_id,omitempty"` // All the per-port BERTs that are considered one BERT operation and have the // same BERT operation ID. - PerPortRequests []*StartBERTRequest_PerPortRequest `protobuf:"bytes,2,rep,name=per_port_requests,json=perPortRequests" json:"per_port_requests,omitempty"` + PerPortRequests []*StartBERTRequest_PerPortRequest `protobuf:"bytes,2,rep,name=per_port_requests,json=perPortRequests,proto3" json:"per_port_requests,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StartBERTRequest) Reset() { *m = StartBERTRequest{} } +func (m *StartBERTRequest) String() string { return proto.CompactTextString(m) } +func (*StartBERTRequest) ProtoMessage() {} +func (*StartBERTRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_c2372dae051d1d7a, []int{0} +} + +func (m *StartBERTRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StartBERTRequest.Unmarshal(m, b) } +func (m *StartBERTRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StartBERTRequest.Marshal(b, m, deterministic) +} +func (m *StartBERTRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_StartBERTRequest.Merge(m, src) +} +func (m *StartBERTRequest) XXX_Size() int { + return xxx_messageInfo_StartBERTRequest.Size(m) +} +func (m *StartBERTRequest) XXX_DiscardUnknown() { + xxx_messageInfo_StartBERTRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_StartBERTRequest proto.InternalMessageInfo -func (m *StartBERTRequest) Reset() { *m = StartBERTRequest{} } -func (m *StartBERTRequest) String() string { return proto.CompactTextString(m) } -func (*StartBERTRequest) ProtoMessage() {} -func (*StartBERTRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } +func (m *StartBERTRequest) GetBertOperationId() string { + if m != nil { + return m.BertOperationId + } + return "" +} func (m *StartBERTRequest) GetPerPortRequests() []*StartBERTRequest_PerPortRequest { if m != nil { @@ -179,38 +201,103 @@ func (m *StartBERTRequest) GetPerPortRequests() []*StartBERTRequest_PerPortReque // Per port BERT start requests. type StartBERTRequest_PerPortRequest struct { // Path to the interface corresponding to the port. - Interface *gnoi.Path `protobuf:"bytes,1,opt,name=interface" json:"interface,omitempty"` + Interface *types.Path `protobuf:"bytes,1,opt,name=interface,proto3" json:"interface,omitempty"` // The selected PRBS generating polynomial for BERT. - PrbsPolynomial PrbsPolynomial `protobuf:"varint,2,opt,name=prbs_polynomial,json=prbsPolynomial,enum=gnoi.diag.PrbsPolynomial" json:"prbs_polynomial,omitempty"` + PrbsPolynomial PrbsPolynomial `protobuf:"varint,2,opt,name=prbs_polynomial,json=prbsPolynomial,proto3,enum=gnoi.diag.PrbsPolynomial" json:"prbs_polynomial,omitempty"` // BERT duration in seconds. Must be a positive number. - TestDurationInSecs uint32 `protobuf:"varint,3,opt,name=test_duration_in_secs,json=testDurationInSecs" json:"test_duration_in_secs,omitempty"` + TestDurationInSecs uint32 `protobuf:"varint,3,opt,name=test_duration_in_secs,json=testDurationInSecs,proto3" json:"test_duration_in_secs,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *StartBERTRequest_PerPortRequest) Reset() { *m = StartBERTRequest_PerPortRequest{} } func (m *StartBERTRequest_PerPortRequest) String() string { return proto.CompactTextString(m) } func (*StartBERTRequest_PerPortRequest) ProtoMessage() {} func (*StartBERTRequest_PerPortRequest) Descriptor() ([]byte, []int) { - return fileDescriptor0, []int{0, 0} + return fileDescriptor_c2372dae051d1d7a, []int{0, 0} } -func (m *StartBERTRequest_PerPortRequest) GetInterface() *gnoi.Path { +func (m *StartBERTRequest_PerPortRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StartBERTRequest_PerPortRequest.Unmarshal(m, b) +} +func (m *StartBERTRequest_PerPortRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StartBERTRequest_PerPortRequest.Marshal(b, m, deterministic) +} +func (m *StartBERTRequest_PerPortRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_StartBERTRequest_PerPortRequest.Merge(m, src) +} +func (m *StartBERTRequest_PerPortRequest) XXX_Size() int { + return xxx_messageInfo_StartBERTRequest_PerPortRequest.Size(m) +} +func (m *StartBERTRequest_PerPortRequest) XXX_DiscardUnknown() { + xxx_messageInfo_StartBERTRequest_PerPortRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_StartBERTRequest_PerPortRequest proto.InternalMessageInfo + +func (m *StartBERTRequest_PerPortRequest) GetInterface() *types.Path { if m != nil { return m.Interface } return nil } +func (m *StartBERTRequest_PerPortRequest) GetPrbsPolynomial() PrbsPolynomial { + if m != nil { + return m.PrbsPolynomial + } + return PrbsPolynomial_PRBS_POLYNOMIAL_UNKNOWN +} + +func (m *StartBERTRequest_PerPortRequest) GetTestDurationInSecs() uint32 { + if m != nil { + return m.TestDurationInSecs + } + return 0 +} + type StartBERTResponse struct { // The same BERT operation ID given by the request. - BertOperationId string `protobuf:"bytes,1,opt,name=bert_operation_id,json=bertOperationId" json:"bert_operation_id,omitempty"` + BertOperationId string `protobuf:"bytes,1,opt,name=bert_operation_id,json=bertOperationId,proto3" json:"bert_operation_id,omitempty"` // Captures the results of starting BERT on a per-port basis. - PerPortResponses []*StartBERTResponse_PerPortResponse `protobuf:"bytes,2,rep,name=per_port_responses,json=perPortResponses" json:"per_port_responses,omitempty"` + PerPortResponses []*StartBERTResponse_PerPortResponse `protobuf:"bytes,2,rep,name=per_port_responses,json=perPortResponses,proto3" json:"per_port_responses,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *StartBERTResponse) Reset() { *m = StartBERTResponse{} } -func (m *StartBERTResponse) String() string { return proto.CompactTextString(m) } -func (*StartBERTResponse) ProtoMessage() {} -func (*StartBERTResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } +func (m *StartBERTResponse) Reset() { *m = StartBERTResponse{} } +func (m *StartBERTResponse) String() string { return proto.CompactTextString(m) } +func (*StartBERTResponse) ProtoMessage() {} +func (*StartBERTResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_c2372dae051d1d7a, []int{1} +} + +func (m *StartBERTResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StartBERTResponse.Unmarshal(m, b) +} +func (m *StartBERTResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StartBERTResponse.Marshal(b, m, deterministic) +} +func (m *StartBERTResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_StartBERTResponse.Merge(m, src) +} +func (m *StartBERTResponse) XXX_Size() int { + return xxx_messageInfo_StartBERTResponse.Size(m) +} +func (m *StartBERTResponse) XXX_DiscardUnknown() { + xxx_messageInfo_StartBERTResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_StartBERTResponse proto.InternalMessageInfo + +func (m *StartBERTResponse) GetBertOperationId() string { + if m != nil { + return m.BertOperationId + } + return "" +} func (m *StartBERTResponse) GetPerPortResponses() []*StartBERTResponse_PerPortResponse { if m != nil { @@ -222,37 +309,95 @@ func (m *StartBERTResponse) GetPerPortResponses() []*StartBERTResponse_PerPortRe // Per-port BERT start responses. type StartBERTResponse_PerPortResponse struct { // Path to the interface corresponding to the port. - Interface *gnoi.Path `protobuf:"bytes,1,opt,name=interface" json:"interface,omitempty"` + Interface *types.Path `protobuf:"bytes,1,opt,name=interface,proto3" json:"interface,omitempty"` // BERT start status for this port. - Status BertStatus `protobuf:"varint,2,opt,name=status,enum=gnoi.diag.BertStatus" json:"status,omitempty"` + Status BertStatus `protobuf:"varint,2,opt,name=status,proto3,enum=gnoi.diag.BertStatus" json:"status,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *StartBERTResponse_PerPortResponse) Reset() { *m = StartBERTResponse_PerPortResponse{} } func (m *StartBERTResponse_PerPortResponse) String() string { return proto.CompactTextString(m) } func (*StartBERTResponse_PerPortResponse) ProtoMessage() {} func (*StartBERTResponse_PerPortResponse) Descriptor() ([]byte, []int) { - return fileDescriptor0, []int{1, 0} + return fileDescriptor_c2372dae051d1d7a, []int{1, 0} } -func (m *StartBERTResponse_PerPortResponse) GetInterface() *gnoi.Path { +func (m *StartBERTResponse_PerPortResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StartBERTResponse_PerPortResponse.Unmarshal(m, b) +} +func (m *StartBERTResponse_PerPortResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StartBERTResponse_PerPortResponse.Marshal(b, m, deterministic) +} +func (m *StartBERTResponse_PerPortResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_StartBERTResponse_PerPortResponse.Merge(m, src) +} +func (m *StartBERTResponse_PerPortResponse) XXX_Size() int { + return xxx_messageInfo_StartBERTResponse_PerPortResponse.Size(m) +} +func (m *StartBERTResponse_PerPortResponse) XXX_DiscardUnknown() { + xxx_messageInfo_StartBERTResponse_PerPortResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_StartBERTResponse_PerPortResponse proto.InternalMessageInfo + +func (m *StartBERTResponse_PerPortResponse) GetInterface() *types.Path { if m != nil { return m.Interface } return nil } +func (m *StartBERTResponse_PerPortResponse) GetStatus() BertStatus { + if m != nil { + return m.Status + } + return BertStatus_BERT_STATUS_UNKNOWN +} + type StopBERTRequest struct { // The same BERT operation ID given when BERT operation was started. - BertOperationId string `protobuf:"bytes,1,opt,name=bert_operation_id,json=bertOperationId" json:"bert_operation_id,omitempty"` + BertOperationId string `protobuf:"bytes,1,opt,name=bert_operation_id,json=bertOperationId,proto3" json:"bert_operation_id,omitempty"` // All the per-port BERTs that need to be stopped. Must be part of the BERT // operation specified by the `bert_operation_id` above. - PerPortRequests []*StopBERTRequest_PerPortRequest `protobuf:"bytes,2,rep,name=per_port_requests,json=perPortRequests" json:"per_port_requests,omitempty"` + PerPortRequests []*StopBERTRequest_PerPortRequest `protobuf:"bytes,2,rep,name=per_port_requests,json=perPortRequests,proto3" json:"per_port_requests,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *StopBERTRequest) Reset() { *m = StopBERTRequest{} } -func (m *StopBERTRequest) String() string { return proto.CompactTextString(m) } -func (*StopBERTRequest) ProtoMessage() {} -func (*StopBERTRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} } +func (m *StopBERTRequest) Reset() { *m = StopBERTRequest{} } +func (m *StopBERTRequest) String() string { return proto.CompactTextString(m) } +func (*StopBERTRequest) ProtoMessage() {} +func (*StopBERTRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_c2372dae051d1d7a, []int{2} +} + +func (m *StopBERTRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StopBERTRequest.Unmarshal(m, b) +} +func (m *StopBERTRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StopBERTRequest.Marshal(b, m, deterministic) +} +func (m *StopBERTRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_StopBERTRequest.Merge(m, src) +} +func (m *StopBERTRequest) XXX_Size() int { + return xxx_messageInfo_StopBERTRequest.Size(m) +} +func (m *StopBERTRequest) XXX_DiscardUnknown() { + xxx_messageInfo_StopBERTRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_StopBERTRequest proto.InternalMessageInfo + +func (m *StopBERTRequest) GetBertOperationId() string { + if m != nil { + return m.BertOperationId + } + return "" +} func (m *StopBERTRequest) GetPerPortRequests() []*StopBERTRequest_PerPortRequest { if m != nil { @@ -264,17 +409,38 @@ func (m *StopBERTRequest) GetPerPortRequests() []*StopBERTRequest_PerPortRequest // Per-port BERT stop requests. type StopBERTRequest_PerPortRequest struct { // Path to the interface corresponding to the port. - Interface *gnoi.Path `protobuf:"bytes,1,opt,name=interface" json:"interface,omitempty"` + Interface *types.Path `protobuf:"bytes,1,opt,name=interface,proto3" json:"interface,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *StopBERTRequest_PerPortRequest) Reset() { *m = StopBERTRequest_PerPortRequest{} } func (m *StopBERTRequest_PerPortRequest) String() string { return proto.CompactTextString(m) } func (*StopBERTRequest_PerPortRequest) ProtoMessage() {} func (*StopBERTRequest_PerPortRequest) Descriptor() ([]byte, []int) { - return fileDescriptor0, []int{2, 0} + return fileDescriptor_c2372dae051d1d7a, []int{2, 0} } -func (m *StopBERTRequest_PerPortRequest) GetInterface() *gnoi.Path { +func (m *StopBERTRequest_PerPortRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StopBERTRequest_PerPortRequest.Unmarshal(m, b) +} +func (m *StopBERTRequest_PerPortRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StopBERTRequest_PerPortRequest.Marshal(b, m, deterministic) +} +func (m *StopBERTRequest_PerPortRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_StopBERTRequest_PerPortRequest.Merge(m, src) +} +func (m *StopBERTRequest_PerPortRequest) XXX_Size() int { + return xxx_messageInfo_StopBERTRequest_PerPortRequest.Size(m) +} +func (m *StopBERTRequest_PerPortRequest) XXX_DiscardUnknown() { + xxx_messageInfo_StopBERTRequest_PerPortRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_StopBERTRequest_PerPortRequest proto.InternalMessageInfo + +func (m *StopBERTRequest_PerPortRequest) GetInterface() *types.Path { if m != nil { return m.Interface } @@ -283,15 +449,45 @@ func (m *StopBERTRequest_PerPortRequest) GetInterface() *gnoi.Path { type StopBERTResponse struct { // The same BERT operation ID given by the request. - BertOperationId string `protobuf:"bytes,1,opt,name=bert_operation_id,json=bertOperationId" json:"bert_operation_id,omitempty"` + BertOperationId string `protobuf:"bytes,1,opt,name=bert_operation_id,json=bertOperationId,proto3" json:"bert_operation_id,omitempty"` // Captures the results of stopping BERT on a per-port basis. - PerPortResponses []*StopBERTResponse_PerPortResponse `protobuf:"bytes,2,rep,name=per_port_responses,json=perPortResponses" json:"per_port_responses,omitempty"` + PerPortResponses []*StopBERTResponse_PerPortResponse `protobuf:"bytes,2,rep,name=per_port_responses,json=perPortResponses,proto3" json:"per_port_responses,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *StopBERTResponse) Reset() { *m = StopBERTResponse{} } -func (m *StopBERTResponse) String() string { return proto.CompactTextString(m) } -func (*StopBERTResponse) ProtoMessage() {} -func (*StopBERTResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} } +func (m *StopBERTResponse) Reset() { *m = StopBERTResponse{} } +func (m *StopBERTResponse) String() string { return proto.CompactTextString(m) } +func (*StopBERTResponse) ProtoMessage() {} +func (*StopBERTResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_c2372dae051d1d7a, []int{3} +} + +func (m *StopBERTResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StopBERTResponse.Unmarshal(m, b) +} +func (m *StopBERTResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StopBERTResponse.Marshal(b, m, deterministic) +} +func (m *StopBERTResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_StopBERTResponse.Merge(m, src) +} +func (m *StopBERTResponse) XXX_Size() int { + return xxx_messageInfo_StopBERTResponse.Size(m) +} +func (m *StopBERTResponse) XXX_DiscardUnknown() { + xxx_messageInfo_StopBERTResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_StopBERTResponse proto.InternalMessageInfo + +func (m *StopBERTResponse) GetBertOperationId() string { + if m != nil { + return m.BertOperationId + } + return "" +} func (m *StopBERTResponse) GetPerPortResponses() []*StopBERTResponse_PerPortResponse { if m != nil { @@ -303,44 +499,102 @@ func (m *StopBERTResponse) GetPerPortResponses() []*StopBERTResponse_PerPortResp // Per-port BERT stop responses. type StopBERTResponse_PerPortResponse struct { // Path to the interface corresponding to the port. - Interface *gnoi.Path `protobuf:"bytes,1,opt,name=interface" json:"interface,omitempty"` + Interface *types.Path `protobuf:"bytes,1,opt,name=interface,proto3" json:"interface,omitempty"` // BERT stop status for this port. - Status BertStatus `protobuf:"varint,2,opt,name=status,enum=gnoi.diag.BertStatus" json:"status,omitempty"` + Status BertStatus `protobuf:"varint,2,opt,name=status,proto3,enum=gnoi.diag.BertStatus" json:"status,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *StopBERTResponse_PerPortResponse) Reset() { *m = StopBERTResponse_PerPortResponse{} } func (m *StopBERTResponse_PerPortResponse) String() string { return proto.CompactTextString(m) } func (*StopBERTResponse_PerPortResponse) ProtoMessage() {} func (*StopBERTResponse_PerPortResponse) Descriptor() ([]byte, []int) { - return fileDescriptor0, []int{3, 0} + return fileDescriptor_c2372dae051d1d7a, []int{3, 0} } -func (m *StopBERTResponse_PerPortResponse) GetInterface() *gnoi.Path { +func (m *StopBERTResponse_PerPortResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StopBERTResponse_PerPortResponse.Unmarshal(m, b) +} +func (m *StopBERTResponse_PerPortResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StopBERTResponse_PerPortResponse.Marshal(b, m, deterministic) +} +func (m *StopBERTResponse_PerPortResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_StopBERTResponse_PerPortResponse.Merge(m, src) +} +func (m *StopBERTResponse_PerPortResponse) XXX_Size() int { + return xxx_messageInfo_StopBERTResponse_PerPortResponse.Size(m) +} +func (m *StopBERTResponse_PerPortResponse) XXX_DiscardUnknown() { + xxx_messageInfo_StopBERTResponse_PerPortResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_StopBERTResponse_PerPortResponse proto.InternalMessageInfo + +func (m *StopBERTResponse_PerPortResponse) GetInterface() *types.Path { if m != nil { return m.Interface } return nil } +func (m *StopBERTResponse_PerPortResponse) GetStatus() BertStatus { + if m != nil { + return m.Status + } + return BertStatus_BERT_STATUS_UNKNOWN +} + // TODO: If there is no use case to get the BERT results for all the ports // independent of the bert_operation_id, we can simplify this message and // return the results for all the ports associated with an operation ID. type GetBERTResultRequest struct { // The same BERT operation ID given when BERT operation was started. - BertOperationId string `protobuf:"bytes,1,opt,name=bert_operation_id,json=bertOperationId" json:"bert_operation_id,omitempty"` + BertOperationId string `protobuf:"bytes,1,opt,name=bert_operation_id,json=bertOperationId,proto3" json:"bert_operation_id,omitempty"` // All the per-port BERTs result of which we want to query. Must be part of // the BERT operation specified by the `bert_operation_id` above. - PerPortRequests []*GetBERTResultRequest_PerPortRequest `protobuf:"bytes,2,rep,name=per_port_requests,json=perPortRequests" json:"per_port_requests,omitempty"` + PerPortRequests []*GetBERTResultRequest_PerPortRequest `protobuf:"bytes,2,rep,name=per_port_requests,json=perPortRequests,proto3" json:"per_port_requests,omitempty"` // If set to true, the results for all the per-port BERTs will be returned. // `bert_operation_id` and `per_port_requests` will be ignored will be // ignored in that case. - ResultFromAllPorts bool `protobuf:"varint,3,opt,name=result_from_all_ports,json=resultFromAllPorts" json:"result_from_all_ports,omitempty"` + ResultFromAllPorts bool `protobuf:"varint,3,opt,name=result_from_all_ports,json=resultFromAllPorts,proto3" json:"result_from_all_ports,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *GetBERTResultRequest) Reset() { *m = GetBERTResultRequest{} } -func (m *GetBERTResultRequest) String() string { return proto.CompactTextString(m) } -func (*GetBERTResultRequest) ProtoMessage() {} -func (*GetBERTResultRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} } +func (m *GetBERTResultRequest) Reset() { *m = GetBERTResultRequest{} } +func (m *GetBERTResultRequest) String() string { return proto.CompactTextString(m) } +func (*GetBERTResultRequest) ProtoMessage() {} +func (*GetBERTResultRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_c2372dae051d1d7a, []int{4} +} + +func (m *GetBERTResultRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetBERTResultRequest.Unmarshal(m, b) +} +func (m *GetBERTResultRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetBERTResultRequest.Marshal(b, m, deterministic) +} +func (m *GetBERTResultRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetBERTResultRequest.Merge(m, src) +} +func (m *GetBERTResultRequest) XXX_Size() int { + return xxx_messageInfo_GetBERTResultRequest.Size(m) +} +func (m *GetBERTResultRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetBERTResultRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_GetBERTResultRequest proto.InternalMessageInfo + +func (m *GetBERTResultRequest) GetBertOperationId() string { + if m != nil { + return m.BertOperationId + } + return "" +} func (m *GetBERTResultRequest) GetPerPortRequests() []*GetBERTResultRequest_PerPortRequest { if m != nil { @@ -349,20 +603,48 @@ func (m *GetBERTResultRequest) GetPerPortRequests() []*GetBERTResultRequest_PerP return nil } +func (m *GetBERTResultRequest) GetResultFromAllPorts() bool { + if m != nil { + return m.ResultFromAllPorts + } + return false +} + // Per-port BERT get result requests. type GetBERTResultRequest_PerPortRequest struct { // Path to the interface corresponding to the port. - Interface *gnoi.Path `protobuf:"bytes,1,opt,name=interface" json:"interface,omitempty"` + Interface *types.Path `protobuf:"bytes,1,opt,name=interface,proto3" json:"interface,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *GetBERTResultRequest_PerPortRequest) Reset() { *m = GetBERTResultRequest_PerPortRequest{} } func (m *GetBERTResultRequest_PerPortRequest) String() string { return proto.CompactTextString(m) } func (*GetBERTResultRequest_PerPortRequest) ProtoMessage() {} func (*GetBERTResultRequest_PerPortRequest) Descriptor() ([]byte, []int) { - return fileDescriptor0, []int{4, 0} + return fileDescriptor_c2372dae051d1d7a, []int{4, 0} } -func (m *GetBERTResultRequest_PerPortRequest) GetInterface() *gnoi.Path { +func (m *GetBERTResultRequest_PerPortRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetBERTResultRequest_PerPortRequest.Unmarshal(m, b) +} +func (m *GetBERTResultRequest_PerPortRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetBERTResultRequest_PerPortRequest.Marshal(b, m, deterministic) +} +func (m *GetBERTResultRequest_PerPortRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetBERTResultRequest_PerPortRequest.Merge(m, src) +} +func (m *GetBERTResultRequest_PerPortRequest) XXX_Size() int { + return xxx_messageInfo_GetBERTResultRequest_PerPortRequest.Size(m) +} +func (m *GetBERTResultRequest_PerPortRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetBERTResultRequest_PerPortRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_GetBERTResultRequest_PerPortRequest proto.InternalMessageInfo + +func (m *GetBERTResultRequest_PerPortRequest) GetInterface() *types.Path { if m != nil { return m.Interface } @@ -371,13 +653,36 @@ func (m *GetBERTResultRequest_PerPortRequest) GetInterface() *gnoi.Path { type GetBERTResultResponse struct { // Captures the BERT results on a per-port basis. - PerPortResponses []*GetBERTResultResponse_PerPortResponse `protobuf:"bytes,1,rep,name=per_port_responses,json=perPortResponses" json:"per_port_responses,omitempty"` + PerPortResponses []*GetBERTResultResponse_PerPortResponse `protobuf:"bytes,1,rep,name=per_port_responses,json=perPortResponses,proto3" json:"per_port_responses,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *GetBERTResultResponse) Reset() { *m = GetBERTResultResponse{} } -func (m *GetBERTResultResponse) String() string { return proto.CompactTextString(m) } -func (*GetBERTResultResponse) ProtoMessage() {} -func (*GetBERTResultResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} } +func (m *GetBERTResultResponse) Reset() { *m = GetBERTResultResponse{} } +func (m *GetBERTResultResponse) String() string { return proto.CompactTextString(m) } +func (*GetBERTResultResponse) ProtoMessage() {} +func (*GetBERTResultResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_c2372dae051d1d7a, []int{5} +} + +func (m *GetBERTResultResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetBERTResultResponse.Unmarshal(m, b) +} +func (m *GetBERTResultResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetBERTResultResponse.Marshal(b, m, deterministic) +} +func (m *GetBERTResultResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetBERTResultResponse.Merge(m, src) +} +func (m *GetBERTResultResponse) XXX_Size() int { + return xxx_messageInfo_GetBERTResultResponse.Size(m) +} +func (m *GetBERTResultResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetBERTResultResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_GetBERTResultResponse proto.InternalMessageInfo func (m *GetBERTResultResponse) GetPerPortResponses() []*GetBERTResultResponse_PerPortResponse { if m != nil { @@ -389,48 +694,134 @@ func (m *GetBERTResultResponse) GetPerPortResponses() []*GetBERTResultResponse_P // Per-port BERT results/status. type GetBERTResultResponse_PerPortResponse struct { // Path to the interface corresponding to the port. - Interface *gnoi.Path `protobuf:"bytes,1,opt,name=interface" json:"interface,omitempty"` + Interface *types.Path `protobuf:"bytes,1,opt,name=interface,proto3" json:"interface,omitempty"` // BERT result get status for this port. Only if the status is // BERT_STATUS_OK are the rest of the fields meaningful. - Status BertStatus `protobuf:"varint,2,opt,name=status,enum=gnoi.diag.BertStatus" json:"status,omitempty"` + Status BertStatus `protobuf:"varint,2,opt,name=status,proto3,enum=gnoi.diag.BertStatus" json:"status,omitempty"` // The ID of the BERT operation running on this port. Since the caller // can query the BERT results for all the ports, ID can potentially be // different for different ports. - BertOperationId string `protobuf:"bytes,3,opt,name=bert_operation_id,json=bertOperationId" json:"bert_operation_id,omitempty"` + BertOperationId string `protobuf:"bytes,3,opt,name=bert_operation_id,json=bertOperationId,proto3" json:"bert_operation_id,omitempty"` // The selected PRBS generating polynomial for BERT on this port. - PrbsPolynomial PrbsPolynomial `protobuf:"varint,4,opt,name=prbs_polynomial,json=prbsPolynomial,enum=gnoi.diag.PrbsPolynomial" json:"prbs_polynomial,omitempty"` + PrbsPolynomial PrbsPolynomial `protobuf:"varint,4,opt,name=prbs_polynomial,json=prbsPolynomial,proto3,enum=gnoi.diag.PrbsPolynomial" json:"prbs_polynomial,omitempty"` // The last time BERT started on this port. - LastBertStartTimestamp uint64 `protobuf:"varint,5,opt,name=last_bert_start_timestamp,json=lastBertStartTimestamp" json:"last_bert_start_timestamp,omitempty"` + LastBertStartTimestamp uint64 `protobuf:"varint,5,opt,name=last_bert_start_timestamp,json=lastBertStartTimestamp,proto3" json:"last_bert_start_timestamp,omitempty"` // The last time BERT results were read for this port. - LastBertGetResultTimestamp uint64 `protobuf:"varint,6,opt,name=last_bert_get_result_timestamp,json=lastBertGetResultTimestamp" json:"last_bert_get_result_timestamp,omitempty"` + LastBertGetResultTimestamp uint64 `protobuf:"varint,6,opt,name=last_bert_get_result_timestamp,json=lastBertGetResultTimestamp,proto3" json:"last_bert_get_result_timestamp,omitempty"` // Indicate whether BERT peer lock has was established. If false, // `bert_lock_lost`, `error_count_per_minute`, and `total_errors` will not // be meaningful. - PeerLockEstablished bool `protobuf:"varint,7,opt,name=peer_lock_established,json=peerLockEstablished" json:"peer_lock_established,omitempty"` + PeerLockEstablished bool `protobuf:"varint,7,opt,name=peer_lock_established,json=peerLockEstablished,proto3" json:"peer_lock_established,omitempty"` // Indicate whether BERT peer lock was lost after being established // once. - PeerLockLost bool `protobuf:"varint,8,opt,name=peer_lock_lost,json=peerLockLost" json:"peer_lock_lost,omitempty"` + PeerLockLost bool `protobuf:"varint,8,opt,name=peer_lock_lost,json=peerLockLost,proto3" json:"peer_lock_lost,omitempty"` // Sequence of bit errors per min since lock was established. - ErrorCountPerMinute []uint32 `protobuf:"varint,9,rep,packed,name=error_count_per_minute,json=errorCountPerMinute" json:"error_count_per_minute,omitempty"` + ErrorCountPerMinute []uint32 `protobuf:"varint,9,rep,packed,name=error_count_per_minute,json=errorCountPerMinute,proto3" json:"error_count_per_minute,omitempty"` // Total number of bit errors accumulated since lock was established. - TotalErrors uint64 `protobuf:"varint,10,opt,name=total_errors,json=totalErrors" json:"total_errors,omitempty"` + TotalErrors uint64 `protobuf:"varint,10,opt,name=total_errors,json=totalErrors,proto3" json:"total_errors,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *GetBERTResultResponse_PerPortResponse) Reset() { *m = GetBERTResultResponse_PerPortResponse{} } func (m *GetBERTResultResponse_PerPortResponse) String() string { return proto.CompactTextString(m) } func (*GetBERTResultResponse_PerPortResponse) ProtoMessage() {} func (*GetBERTResultResponse_PerPortResponse) Descriptor() ([]byte, []int) { - return fileDescriptor0, []int{5, 0} + return fileDescriptor_c2372dae051d1d7a, []int{5, 0} } -func (m *GetBERTResultResponse_PerPortResponse) GetInterface() *gnoi.Path { +func (m *GetBERTResultResponse_PerPortResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetBERTResultResponse_PerPortResponse.Unmarshal(m, b) +} +func (m *GetBERTResultResponse_PerPortResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetBERTResultResponse_PerPortResponse.Marshal(b, m, deterministic) +} +func (m *GetBERTResultResponse_PerPortResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetBERTResultResponse_PerPortResponse.Merge(m, src) +} +func (m *GetBERTResultResponse_PerPortResponse) XXX_Size() int { + return xxx_messageInfo_GetBERTResultResponse_PerPortResponse.Size(m) +} +func (m *GetBERTResultResponse_PerPortResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetBERTResultResponse_PerPortResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_GetBERTResultResponse_PerPortResponse proto.InternalMessageInfo + +func (m *GetBERTResultResponse_PerPortResponse) GetInterface() *types.Path { if m != nil { return m.Interface } return nil } +func (m *GetBERTResultResponse_PerPortResponse) GetStatus() BertStatus { + if m != nil { + return m.Status + } + return BertStatus_BERT_STATUS_UNKNOWN +} + +func (m *GetBERTResultResponse_PerPortResponse) GetBertOperationId() string { + if m != nil { + return m.BertOperationId + } + return "" +} + +func (m *GetBERTResultResponse_PerPortResponse) GetPrbsPolynomial() PrbsPolynomial { + if m != nil { + return m.PrbsPolynomial + } + return PrbsPolynomial_PRBS_POLYNOMIAL_UNKNOWN +} + +func (m *GetBERTResultResponse_PerPortResponse) GetLastBertStartTimestamp() uint64 { + if m != nil { + return m.LastBertStartTimestamp + } + return 0 +} + +func (m *GetBERTResultResponse_PerPortResponse) GetLastBertGetResultTimestamp() uint64 { + if m != nil { + return m.LastBertGetResultTimestamp + } + return 0 +} + +func (m *GetBERTResultResponse_PerPortResponse) GetPeerLockEstablished() bool { + if m != nil { + return m.PeerLockEstablished + } + return false +} + +func (m *GetBERTResultResponse_PerPortResponse) GetPeerLockLost() bool { + if m != nil { + return m.PeerLockLost + } + return false +} + +func (m *GetBERTResultResponse_PerPortResponse) GetErrorCountPerMinute() []uint32 { + if m != nil { + return m.ErrorCountPerMinute + } + return nil +} + +func (m *GetBERTResultResponse_PerPortResponse) GetTotalErrors() uint64 { + if m != nil { + return m.TotalErrors + } + return 0 +} + func init() { + proto.RegisterEnum("gnoi.diag.PrbsPolynomial", PrbsPolynomial_name, PrbsPolynomial_value) + proto.RegisterEnum("gnoi.diag.BertStatus", BertStatus_name, BertStatus_value) proto.RegisterType((*StartBERTRequest)(nil), "gnoi.diag.StartBERTRequest") proto.RegisterType((*StartBERTRequest_PerPortRequest)(nil), "gnoi.diag.StartBERTRequest.PerPortRequest") proto.RegisterType((*StartBERTResponse)(nil), "gnoi.diag.StartBERTResponse") @@ -443,8 +834,78 @@ func init() { proto.RegisterType((*GetBERTResultRequest_PerPortRequest)(nil), "gnoi.diag.GetBERTResultRequest.PerPortRequest") proto.RegisterType((*GetBERTResultResponse)(nil), "gnoi.diag.GetBERTResultResponse") proto.RegisterType((*GetBERTResultResponse_PerPortResponse)(nil), "gnoi.diag.GetBERTResultResponse.PerPortResponse") - proto.RegisterEnum("gnoi.diag.PrbsPolynomial", PrbsPolynomial_name, PrbsPolynomial_value) - proto.RegisterEnum("gnoi.diag.BertStatus", BertStatus_name, BertStatus_value) +} + +func init() { proto.RegisterFile("diag/diag.proto", fileDescriptor_c2372dae051d1d7a) } + +var fileDescriptor_c2372dae051d1d7a = []byte{ + // 1049 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x56, 0xdd, 0x6e, 0xe3, 0x44, + 0x14, 0x6e, 0x7e, 0xda, 0x6d, 0x4e, 0xb7, 0x8d, 0x77, 0x96, 0x76, 0xd3, 0x14, 0x76, 0xd3, 0xec, + 0xc2, 0x86, 0xee, 0x92, 0xb6, 0xa9, 0x10, 0x5a, 0x2e, 0x90, 0x92, 0xc6, 0x6d, 0xad, 0x66, 0x6d, + 0x6b, 0xec, 0xb0, 0x74, 0x2f, 0x18, 0x39, 0xe9, 0x34, 0x35, 0xeb, 0x78, 0xcc, 0xcc, 0xe4, 0x62, + 0x1f, 0x00, 0x71, 0x81, 0x78, 0x18, 0x5e, 0x83, 0x2b, 0x04, 0xcf, 0xc1, 0x2b, 0x20, 0x64, 0x3b, + 0x69, 0x9c, 0x28, 0x69, 0x69, 0x91, 0x10, 0x37, 0x96, 0xe6, 0x7c, 0xdf, 0xf1, 0x39, 0xe7, 0x3b, + 0x67, 0x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1, 0x93, 0x1b, 0x6e, 0xae, 0x62, 0xe9, 0xa6, 0x43, 0xbf, 0xbc, 0xd0, 0x58, 0xfe, 0xfd, 0xab, + 0xc5, 0xbd, 0xea, 0x7e, 0x75, 0xaf, 0xb3, 0x14, 0xbd, 0xd0, 0x0f, 0xfe, 0x0e, 0x00, 0x00, 0xff, + 0xff, 0x09, 0xcd, 0x0f, 0x34, 0xed, 0x0b, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -455,8 +916,9 @@ var _ grpc.ClientConn // is compatible with the grpc package it is being compiled against. const _ = grpc.SupportPackageIsVersion4 -// Client API for Diag service - +// DiagClient is the client API for Diag service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type DiagClient interface { // Starts BERT operation on a set of ports. Each BERT operation is uniquely // identified by an ID, which is given by the caller. The caller can then @@ -512,7 +974,7 @@ func NewDiagClient(cc *grpc.ClientConn) DiagClient { func (c *diagClient) StartBERT(ctx context.Context, in *StartBERTRequest, opts ...grpc.CallOption) (*StartBERTResponse, error) { out := new(StartBERTResponse) - err := grpc.Invoke(ctx, "/gnoi.diag.Diag/StartBERT", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/gnoi.diag.Diag/StartBERT", in, out, opts...) if err != nil { return nil, err } @@ -521,7 +983,7 @@ func (c *diagClient) StartBERT(ctx context.Context, in *StartBERTRequest, opts . func (c *diagClient) StopBERT(ctx context.Context, in *StopBERTRequest, opts ...grpc.CallOption) (*StopBERTResponse, error) { out := new(StopBERTResponse) - err := grpc.Invoke(ctx, "/gnoi.diag.Diag/StopBERT", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/gnoi.diag.Diag/StopBERT", in, out, opts...) if err != nil { return nil, err } @@ -530,15 +992,14 @@ func (c *diagClient) StopBERT(ctx context.Context, in *StopBERTRequest, opts ... func (c *diagClient) GetBERTResult(ctx context.Context, in *GetBERTResultRequest, opts ...grpc.CallOption) (*GetBERTResultResponse, error) { out := new(GetBERTResultResponse) - err := grpc.Invoke(ctx, "/gnoi.diag.Diag/GetBERTResult", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/gnoi.diag.Diag/GetBERTResult", in, out, opts...) if err != nil { return nil, err } return out, nil } -// Server API for Diag service - +// DiagServer is the server API for Diag service. type DiagServer interface { // Starts BERT operation on a set of ports. Each BERT operation is uniquely // identified by an ID, which is given by the caller. The caller can then @@ -662,74 +1123,3 @@ var _Diag_serviceDesc = grpc.ServiceDesc{ Streams: []grpc.StreamDesc{}, Metadata: "diag/diag.proto", } - -func init() { proto.RegisterFile("diag/diag.proto", fileDescriptor0) } - -var fileDescriptor0 = []byte{ - // 1028 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xcc, 0x56, 0xdd, 0x6e, 0x1b, 0x45, - 0x14, 0xce, 0xda, 0x4e, 0x1a, 0x9f, 0xfc, 0x78, 0x33, 0x21, 0xa9, 0xe3, 0x40, 0xeb, 0xb8, 0x85, - 0x9a, 0x14, 0xdc, 0xc4, 0x11, 0x42, 0xe5, 0x02, 0x69, 0x1d, 0x6f, 0x92, 0x55, 0xdc, 0xdd, 0xd5, - 0xec, 0x9a, 0x92, 0x5e, 0x30, 0xda, 0x38, 0xd3, 0xd4, 0x74, 0xed, 0x5d, 0x66, 0xc6, 0x17, 0x7d, - 0x00, 0xc4, 0x05, 0xe2, 0x61, 0x78, 0x0d, 0xae, 0x10, 0x3c, 0x07, 0xaf, 0x80, 0xd0, 0x8c, 0xed, - 0x78, 0x6d, 0xd9, 0x09, 0x09, 0x12, 0xea, 0xcd, 0x4a, 0x73, 0xbe, 0xef, 0xec, 0x39, 0xe7, 0x3b, - 0x67, 0x7e, 0x20, 0x77, 0xd1, 0x0e, 0x2e, 0x9f, 0xc9, 0x4f, 0x25, 0x66, 0x91, 0x88, 0x50, 0xf6, - 0xb2, 0x1b, 0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, 0x9b, 0x5d, 0xe5, - 0xbf, 0xee, 0xfa, 0xcf, 0x99, 0xff, 0xaf, 0xed, 0xd3, 0xbb, 0x9b, 0x9e, 0xde, 0xdd, 0x29, 0xc7, - 0x6f, 0xe6, 0xb6, 0xc7, 0xef, 0x73, 0xd8, 0x0a, 0x03, 0x2e, 0x88, 0x0a, 0xca, 0xe5, 0x71, 0x47, - 0x44, 0xbb, 0x43, 0xb9, 0x08, 0x3a, 0x71, 0x7e, 0xbe, 0xa8, 0x95, 0x33, 0x78, 0x53, 0x12, 0x06, - 0xa9, 0x32, 0xe1, 0x0f, 0x51, 0x54, 0x83, 0x07, 0x23, 0xd7, 0x4b, 0xaa, 0xc4, 0x97, 0xe3, 0x30, - 0xf2, 0x5f, 0x50, 0xfe, 0x85, 0xa1, 0xff, 0x31, 0x15, 0x7d, 0xf1, 0x47, 0xff, 0xa8, 0xc2, 0x46, - 0x4c, 0x29, 0x23, 0x61, 0xd4, 0x7a, 0x4b, 0xa4, 0xed, 0x3c, 0x6c, 0xf3, 0x37, 0xf4, 0x22, 0x7f, - 0x4f, 0x0d, 0xd1, 0xba, 0x04, 0x1b, 0x51, 0xeb, 0xad, 0x39, 0x82, 0xd0, 0x63, 0x58, 0x1d, 0xf9, - 0x84, 0x11, 0x17, 0xf9, 0x45, 0x45, 0x5e, 0x1e, 0x92, 0x1b, 0x11, 0x17, 0xe8, 0x00, 0x36, 0x29, - 0x63, 0x11, 0x23, 0xad, 0xa8, 0xd7, 0x15, 0x44, 0x4e, 0x48, 0xa7, 0xdd, 0xed, 0x09, 0x9a, 0xcf, - 0x16, 0xd3, 0xe5, 0x15, 0xbc, 0xae, 0xd0, 0x43, 0x09, 0xba, 0x94, 0xbd, 0x50, 0x10, 0xda, 0x81, - 0x65, 0x11, 0x89, 0x20, 0x24, 0x0a, 0xe4, 0x79, 0x50, 0x05, 0x2c, 0x29, 0x9b, 0xa9, 0x4c, 0xbb, - 0x7f, 0xca, 0x0b, 0x73, 0x5c, 0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0x04, 0xbd, - 0xd2, 0x0b, 0x00, 0x00, -} diff --git a/diag/diag.proto b/diag/diag.proto index 2e93de2c..93939e81 100644 --- a/diag/diag.proto +++ b/diag/diag.proto @@ -20,7 +20,7 @@ syntax = "proto3"; package gnoi.diag; -import "types/types.proto"; +import "github.com/openconfig/gnoi/types/types.proto"; option (gnoi.gnoi_version) = "0.1.0"; diff --git a/file/BUILD.bazel b/file/BUILD.bazel deleted file mode 100644 index 27b40159..00000000 --- a/file/BUILD.bazel +++ /dev/null @@ -1,20 +0,0 @@ -load("@io_bazel_rules_go//proto:go_proto_library.bzl", "go_proto_library") - -proto_library( - name = "file_proto", - srcs = ["file.proto"], - deps = [ - "//github.com/openconfig/gnoi:go_default_library" - ], -) - -go_proto_library( - name = "go_default_library", - srcs = ["file.proto"], - deps = [ - "//github.com/openconfig/gnoi:go_default_library" - ], - visibility = ["//visibility:public"], - rules_go_repo_only_for_internal_use = "@", - has_services = 1, -) diff --git a/file/file.pb.go b/file/file.pb.go index c9a4aa74..931b50dc 100644 --- a/file/file.pb.go +++ b/file/file.pb.go @@ -1,37 +1,16 @@ -// Code generated by protoc-gen-go. +// Code generated by protoc-gen-go. DO NOT EDIT. // source: file/file.proto -// DO NOT EDIT! - -/* -Package gnoi_file is a generated protocol buffer package. - -It is generated from these files: - file/file.proto - -It has these top-level messages: - PutRequest - PutResponse - GetRequest - GetResponse - TransferToRemoteRequest - TransferToRemoteResponse - StatRequest - StatResponse - StatInfo - RemoveRequest - RemoveResponse -*/ -package gnoi_file -import proto "github.com/golang/protobuf/proto" -import fmt "fmt" -import math "math" -import gnoi1 "common" -import gnoi "types" +package gnoi_file import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + common "github.com/openconfig/gnoi/common" + types "github.com/openconfig/gnoi/types" context "golang.org/x/net/context" grpc "google.golang.org/grpc" + math "math" ) // Reference imports to suppress errors if they are not otherwise used. @@ -63,31 +42,58 @@ type PutRequest struct { // *PutRequest_Open // *PutRequest_Contents // *PutRequest_Hash - Request isPutRequest_Request `protobuf_oneof:"request"` + Request isPutRequest_Request `protobuf_oneof:"request"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *PutRequest) Reset() { *m = PutRequest{} } +func (m *PutRequest) String() string { return proto.CompactTextString(m) } +func (*PutRequest) ProtoMessage() {} +func (*PutRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_ad806f8986a0c3f6, []int{0} +} + +func (m *PutRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PutRequest.Unmarshal(m, b) +} +func (m *PutRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PutRequest.Marshal(b, m, deterministic) +} +func (m *PutRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_PutRequest.Merge(m, src) +} +func (m *PutRequest) XXX_Size() int { + return xxx_messageInfo_PutRequest.Size(m) +} +func (m *PutRequest) XXX_DiscardUnknown() { + xxx_messageInfo_PutRequest.DiscardUnknown(m) } -func (m *PutRequest) Reset() { *m = PutRequest{} } -func (m *PutRequest) String() string { return proto.CompactTextString(m) } -func (*PutRequest) ProtoMessage() {} -func (*PutRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } +var xxx_messageInfo_PutRequest proto.InternalMessageInfo type isPutRequest_Request interface { isPutRequest_Request() } type PutRequest_Open struct { - Open *PutRequest_Details `protobuf:"bytes,1,opt,name=open,oneof"` + Open *PutRequest_Details `protobuf:"bytes,1,opt,name=open,proto3,oneof"` } + type PutRequest_Contents struct { Contents []byte `protobuf:"bytes,2,opt,name=contents,proto3,oneof"` } + type PutRequest_Hash struct { - Hash *gnoi.HashType `protobuf:"bytes,3,opt,name=hash,oneof"` + Hash *types.HashType `protobuf:"bytes,3,opt,name=hash,proto3,oneof"` } -func (*PutRequest_Open) isPutRequest_Request() {} +func (*PutRequest_Open) isPutRequest_Request() {} + func (*PutRequest_Contents) isPutRequest_Request() {} -func (*PutRequest_Hash) isPutRequest_Request() {} + +func (*PutRequest_Hash) isPutRequest_Request() {} func (m *PutRequest) GetRequest() isPutRequest_Request { if m != nil { @@ -110,7 +116,7 @@ func (m *PutRequest) GetContents() []byte { return nil } -func (m *PutRequest) GetHash() *gnoi.HashType { +func (m *PutRequest) GetHash() *types.HashType { if x, ok := m.GetRequest().(*PutRequest_Hash); ok { return x.Hash } @@ -172,7 +178,7 @@ func _PutRequest_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buf if wire != proto.WireBytes { return true, proto.ErrInternalBadWireType } - msg := new(gnoi.HashType) + msg := new(types.HashType) err := b.DecodeMessage(msg) m.Request = &PutRequest_Hash{msg} return true, err @@ -187,16 +193,16 @@ func _PutRequest_OneofSizer(msg proto.Message) (n int) { switch x := m.Request.(type) { case *PutRequest_Open: s := proto.Size(x.Open) - n += proto.SizeVarint(1<<3 | proto.WireBytes) + n += 1 // tag and wire n += proto.SizeVarint(uint64(s)) n += s case *PutRequest_Contents: - n += proto.SizeVarint(2<<3 | proto.WireBytes) + n += 1 // tag and wire n += proto.SizeVarint(uint64(len(x.Contents))) n += len(x.Contents) case *PutRequest_Hash: s := proto.Size(x.Hash) - n += proto.SizeVarint(3<<3 | proto.WireBytes) + n += 1 // tag and wire n += proto.SizeVarint(uint64(s)) n += s case nil: @@ -207,38 +213,128 @@ func _PutRequest_OneofSizer(msg proto.Message) (n int) { } type PutRequest_Details struct { - RemoteFile string `protobuf:"bytes,1,opt,name=remote_file,json=remoteFile" json:"remote_file,omitempty"` + RemoteFile string `protobuf:"bytes,1,opt,name=remote_file,json=remoteFile,proto3" json:"remote_file,omitempty"` // Permissions are represented as the octal format of standard UNIX // file permissions. // ex. 775: user read/write/execute, group read/write/execute, // global read/execute. - Permissions uint32 `protobuf:"varint,2,opt,name=permissions" json:"permissions,omitempty"` + Permissions uint32 `protobuf:"varint,2,opt,name=permissions,proto3" json:"permissions,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *PutRequest_Details) Reset() { *m = PutRequest_Details{} } -func (m *PutRequest_Details) String() string { return proto.CompactTextString(m) } -func (*PutRequest_Details) ProtoMessage() {} -func (*PutRequest_Details) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0, 0} } +func (m *PutRequest_Details) Reset() { *m = PutRequest_Details{} } +func (m *PutRequest_Details) String() string { return proto.CompactTextString(m) } +func (*PutRequest_Details) ProtoMessage() {} +func (*PutRequest_Details) Descriptor() ([]byte, []int) { + return fileDescriptor_ad806f8986a0c3f6, []int{0, 0} +} + +func (m *PutRequest_Details) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PutRequest_Details.Unmarshal(m, b) +} +func (m *PutRequest_Details) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PutRequest_Details.Marshal(b, m, deterministic) +} +func (m *PutRequest_Details) XXX_Merge(src proto.Message) { + xxx_messageInfo_PutRequest_Details.Merge(m, src) +} +func (m *PutRequest_Details) XXX_Size() int { + return xxx_messageInfo_PutRequest_Details.Size(m) +} +func (m *PutRequest_Details) XXX_DiscardUnknown() { + xxx_messageInfo_PutRequest_Details.DiscardUnknown(m) +} + +var xxx_messageInfo_PutRequest_Details proto.InternalMessageInfo + +func (m *PutRequest_Details) GetRemoteFile() string { + if m != nil { + return m.RemoteFile + } + return "" +} + +func (m *PutRequest_Details) GetPermissions() uint32 { + if m != nil { + return m.Permissions + } + return 0 +} type PutResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *PutResponse) Reset() { *m = PutResponse{} } -func (m *PutResponse) String() string { return proto.CompactTextString(m) } -func (*PutResponse) ProtoMessage() {} -func (*PutResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } +func (m *PutResponse) Reset() { *m = PutResponse{} } +func (m *PutResponse) String() string { return proto.CompactTextString(m) } +func (*PutResponse) ProtoMessage() {} +func (*PutResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_ad806f8986a0c3f6, []int{1} +} + +func (m *PutResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PutResponse.Unmarshal(m, b) +} +func (m *PutResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PutResponse.Marshal(b, m, deterministic) +} +func (m *PutResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_PutResponse.Merge(m, src) +} +func (m *PutResponse) XXX_Size() int { + return xxx_messageInfo_PutResponse.Size(m) +} +func (m *PutResponse) XXX_DiscardUnknown() { + xxx_messageInfo_PutResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_PutResponse proto.InternalMessageInfo // A GetRequest specifies the remote_file to be streamed back // to the caller. The remote_file must be an absolute path to an // existing file. type GetRequest struct { - RemoteFile string `protobuf:"bytes,1,opt,name=remote_file,json=remoteFile" json:"remote_file,omitempty"` + RemoteFile string `protobuf:"bytes,1,opt,name=remote_file,json=remoteFile,proto3" json:"remote_file,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetRequest) Reset() { *m = GetRequest{} } +func (m *GetRequest) String() string { return proto.CompactTextString(m) } +func (*GetRequest) ProtoMessage() {} +func (*GetRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_ad806f8986a0c3f6, []int{2} +} + +func (m *GetRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetRequest.Unmarshal(m, b) +} +func (m *GetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetRequest.Marshal(b, m, deterministic) +} +func (m *GetRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetRequest.Merge(m, src) } +func (m *GetRequest) XXX_Size() int { + return xxx_messageInfo_GetRequest.Size(m) +} +func (m *GetRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_GetRequest proto.InternalMessageInfo -func (m *GetRequest) Reset() { *m = GetRequest{} } -func (m *GetRequest) String() string { return proto.CompactTextString(m) } -func (*GetRequest) ProtoMessage() {} -func (*GetRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} } +func (m *GetRequest) GetRemoteFile() string { + if m != nil { + return m.RemoteFile + } + return "" +} // A GetResponse either contains the next set of bytes read from the // file or, as the last message, the hash of the data. @@ -246,13 +342,36 @@ type GetResponse struct { // Types that are valid to be assigned to Response: // *GetResponse_Contents // *GetResponse_Hash - Response isGetResponse_Response `protobuf_oneof:"response"` + Response isGetResponse_Response `protobuf_oneof:"response"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetResponse) Reset() { *m = GetResponse{} } +func (m *GetResponse) String() string { return proto.CompactTextString(m) } +func (*GetResponse) ProtoMessage() {} +func (*GetResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_ad806f8986a0c3f6, []int{3} +} + +func (m *GetResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetResponse.Unmarshal(m, b) +} +func (m *GetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetResponse.Marshal(b, m, deterministic) +} +func (m *GetResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetResponse.Merge(m, src) +} +func (m *GetResponse) XXX_Size() int { + return xxx_messageInfo_GetResponse.Size(m) +} +func (m *GetResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetResponse.DiscardUnknown(m) } -func (m *GetResponse) Reset() { *m = GetResponse{} } -func (m *GetResponse) String() string { return proto.CompactTextString(m) } -func (*GetResponse) ProtoMessage() {} -func (*GetResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} } +var xxx_messageInfo_GetResponse proto.InternalMessageInfo type isGetResponse_Response interface { isGetResponse_Response() @@ -261,12 +380,14 @@ type isGetResponse_Response interface { type GetResponse_Contents struct { Contents []byte `protobuf:"bytes,1,opt,name=contents,proto3,oneof"` } + type GetResponse_Hash struct { - Hash *gnoi.HashType `protobuf:"bytes,2,opt,name=hash,oneof"` + Hash *types.HashType `protobuf:"bytes,2,opt,name=hash,proto3,oneof"` } func (*GetResponse_Contents) isGetResponse_Response() {} -func (*GetResponse_Hash) isGetResponse_Response() {} + +func (*GetResponse_Hash) isGetResponse_Response() {} func (m *GetResponse) GetResponse() isGetResponse_Response { if m != nil { @@ -282,7 +403,7 @@ func (m *GetResponse) GetContents() []byte { return nil } -func (m *GetResponse) GetHash() *gnoi.HashType { +func (m *GetResponse) GetHash() *types.HashType { if x, ok := m.GetResponse().(*GetResponse_Hash); ok { return x.Hash } @@ -330,7 +451,7 @@ func _GetResponse_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Bu if wire != proto.WireBytes { return true, proto.ErrInternalBadWireType } - msg := new(gnoi.HashType) + msg := new(types.HashType) err := b.DecodeMessage(msg) m.Response = &GetResponse_Hash{msg} return true, err @@ -344,12 +465,12 @@ func _GetResponse_OneofSizer(msg proto.Message) (n int) { // response switch x := m.Response.(type) { case *GetResponse_Contents: - n += proto.SizeVarint(1<<3 | proto.WireBytes) + n += 1 // tag and wire n += proto.SizeVarint(uint64(len(x.Contents))) n += len(x.Contents) case *GetResponse_Hash: s := proto.Size(x.Hash) - n += proto.SizeVarint(2<<3 | proto.WireBytes) + n += 1 // tag and wire n += proto.SizeVarint(uint64(s)) n += s case nil: @@ -363,17 +484,47 @@ func _GetResponse_OneofSizer(msg proto.Message) (n int) { // details on where to transfer the data from. The local_path must be an // absolute path to the file. type TransferToRemoteRequest struct { - LocalPath string `protobuf:"bytes,1,opt,name=local_path,json=localPath" json:"local_path,omitempty"` + LocalPath string `protobuf:"bytes,1,opt,name=local_path,json=localPath,proto3" json:"local_path,omitempty"` // Details to download the remote_file being requested to a remote location. - RemoteDownload *gnoi1.RemoteDownload `protobuf:"bytes,2,opt,name=remote_download,json=remoteDownload" json:"remote_download,omitempty"` + RemoteDownload *common.RemoteDownload `protobuf:"bytes,2,opt,name=remote_download,json=remoteDownload,proto3" json:"remote_download,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TransferToRemoteRequest) Reset() { *m = TransferToRemoteRequest{} } +func (m *TransferToRemoteRequest) String() string { return proto.CompactTextString(m) } +func (*TransferToRemoteRequest) ProtoMessage() {} +func (*TransferToRemoteRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_ad806f8986a0c3f6, []int{4} +} + +func (m *TransferToRemoteRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TransferToRemoteRequest.Unmarshal(m, b) +} +func (m *TransferToRemoteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TransferToRemoteRequest.Marshal(b, m, deterministic) +} +func (m *TransferToRemoteRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_TransferToRemoteRequest.Merge(m, src) +} +func (m *TransferToRemoteRequest) XXX_Size() int { + return xxx_messageInfo_TransferToRemoteRequest.Size(m) +} +func (m *TransferToRemoteRequest) XXX_DiscardUnknown() { + xxx_messageInfo_TransferToRemoteRequest.DiscardUnknown(m) } -func (m *TransferToRemoteRequest) Reset() { *m = TransferToRemoteRequest{} } -func (m *TransferToRemoteRequest) String() string { return proto.CompactTextString(m) } -func (*TransferToRemoteRequest) ProtoMessage() {} -func (*TransferToRemoteRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} } +var xxx_messageInfo_TransferToRemoteRequest proto.InternalMessageInfo -func (m *TransferToRemoteRequest) GetRemoteDownload() *gnoi1.RemoteDownload { +func (m *TransferToRemoteRequest) GetLocalPath() string { + if m != nil { + return m.LocalPath + } + return "" +} + +func (m *TransferToRemoteRequest) GetRemoteDownload() *common.RemoteDownload { if m != nil { return m.RemoteDownload } @@ -382,15 +533,38 @@ func (m *TransferToRemoteRequest) GetRemoteDownload() *gnoi1.RemoteDownload { // A TransferToRemoteResponse contains the hash of the data transferred. type TransferToRemoteResponse struct { - Hash *gnoi.HashType `protobuf:"bytes,1,opt,name=hash" json:"hash,omitempty"` + Hash *types.HashType `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TransferToRemoteResponse) Reset() { *m = TransferToRemoteResponse{} } -func (m *TransferToRemoteResponse) String() string { return proto.CompactTextString(m) } -func (*TransferToRemoteResponse) ProtoMessage() {} -func (*TransferToRemoteResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} } +func (m *TransferToRemoteResponse) Reset() { *m = TransferToRemoteResponse{} } +func (m *TransferToRemoteResponse) String() string { return proto.CompactTextString(m) } +func (*TransferToRemoteResponse) ProtoMessage() {} +func (*TransferToRemoteResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_ad806f8986a0c3f6, []int{5} +} -func (m *TransferToRemoteResponse) GetHash() *gnoi.HashType { +func (m *TransferToRemoteResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TransferToRemoteResponse.Unmarshal(m, b) +} +func (m *TransferToRemoteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TransferToRemoteResponse.Marshal(b, m, deterministic) +} +func (m *TransferToRemoteResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_TransferToRemoteResponse.Merge(m, src) +} +func (m *TransferToRemoteResponse) XXX_Size() int { + return xxx_messageInfo_TransferToRemoteResponse.Size(m) +} +func (m *TransferToRemoteResponse) XXX_DiscardUnknown() { + xxx_messageInfo_TransferToRemoteResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_TransferToRemoteResponse proto.InternalMessageInfo + +func (m *TransferToRemoteResponse) GetHash() *types.HashType { if m != nil { return m.Hash } @@ -399,23 +573,76 @@ func (m *TransferToRemoteResponse) GetHash() *gnoi.HashType { // StatRequest will list files at the provided path. type StatRequest struct { - Path string `protobuf:"bytes,1,opt,name=path" json:"path,omitempty"` + Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StatRequest) Reset() { *m = StatRequest{} } +func (m *StatRequest) String() string { return proto.CompactTextString(m) } +func (*StatRequest) ProtoMessage() {} +func (*StatRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_ad806f8986a0c3f6, []int{6} +} + +func (m *StatRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StatRequest.Unmarshal(m, b) +} +func (m *StatRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StatRequest.Marshal(b, m, deterministic) +} +func (m *StatRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_StatRequest.Merge(m, src) +} +func (m *StatRequest) XXX_Size() int { + return xxx_messageInfo_StatRequest.Size(m) +} +func (m *StatRequest) XXX_DiscardUnknown() { + xxx_messageInfo_StatRequest.DiscardUnknown(m) } -func (m *StatRequest) Reset() { *m = StatRequest{} } -func (m *StatRequest) String() string { return proto.CompactTextString(m) } -func (*StatRequest) ProtoMessage() {} -func (*StatRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} } +var xxx_messageInfo_StatRequest proto.InternalMessageInfo + +func (m *StatRequest) GetPath() string { + if m != nil { + return m.Path + } + return "" +} // StatResponse contains list of stat info of the provided path. type StatResponse struct { - Stats []*StatInfo `protobuf:"bytes,1,rep,name=stats" json:"stats,omitempty"` + Stats []*StatInfo `protobuf:"bytes,1,rep,name=stats,proto3" json:"stats,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *StatResponse) Reset() { *m = StatResponse{} } -func (m *StatResponse) String() string { return proto.CompactTextString(m) } -func (*StatResponse) ProtoMessage() {} -func (*StatResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} } +func (m *StatResponse) Reset() { *m = StatResponse{} } +func (m *StatResponse) String() string { return proto.CompactTextString(m) } +func (*StatResponse) ProtoMessage() {} +func (*StatResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_ad806f8986a0c3f6, []int{7} +} + +func (m *StatResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StatResponse.Unmarshal(m, b) +} +func (m *StatResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StatResponse.Marshal(b, m, deterministic) +} +func (m *StatResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_StatResponse.Merge(m, src) +} +func (m *StatResponse) XXX_Size() int { + return xxx_messageInfo_StatResponse.Size(m) +} +func (m *StatResponse) XXX_DiscardUnknown() { + xxx_messageInfo_StatResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_StatResponse proto.InternalMessageInfo func (m *StatResponse) GetStats() []*StatInfo { if m != nil { @@ -426,41 +653,152 @@ func (m *StatResponse) GetStats() []*StatInfo { // StatInfo provides a file system information about a particular path. type StatInfo struct { - Path string `protobuf:"bytes,1,opt,name=path" json:"path,omitempty"` - LastModified uint64 `protobuf:"varint,2,opt,name=last_modified,json=lastModified" json:"last_modified,omitempty"` + Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` + LastModified uint64 `protobuf:"varint,2,opt,name=last_modified,json=lastModified,proto3" json:"last_modified,omitempty"` // Permissions are represented as the octal format of standard UNIX // file permissions. // ex. 775: user read/write/execute, group read/write/execute, // global read/execute. - Permissions uint32 `protobuf:"varint,3,opt,name=permissions" json:"permissions,omitempty"` - Size uint64 `protobuf:"varint,4,opt,name=size" json:"size,omitempty"` + Permissions uint32 `protobuf:"varint,3,opt,name=permissions,proto3" json:"permissions,omitempty"` + Size uint64 `protobuf:"varint,4,opt,name=size,proto3" json:"size,omitempty"` // Default file creation mask. Represented as the octal format of // standard UNIX mask. - Umask uint32 `protobuf:"varint,5,opt,name=umask" json:"umask,omitempty"` + Umask uint32 `protobuf:"varint,5,opt,name=umask,proto3" json:"umask,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StatInfo) Reset() { *m = StatInfo{} } +func (m *StatInfo) String() string { return proto.CompactTextString(m) } +func (*StatInfo) ProtoMessage() {} +func (*StatInfo) Descriptor() ([]byte, []int) { + return fileDescriptor_ad806f8986a0c3f6, []int{8} +} + +func (m *StatInfo) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StatInfo.Unmarshal(m, b) +} +func (m *StatInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StatInfo.Marshal(b, m, deterministic) +} +func (m *StatInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_StatInfo.Merge(m, src) +} +func (m *StatInfo) XXX_Size() int { + return xxx_messageInfo_StatInfo.Size(m) +} +func (m *StatInfo) XXX_DiscardUnknown() { + xxx_messageInfo_StatInfo.DiscardUnknown(m) } -func (m *StatInfo) Reset() { *m = StatInfo{} } -func (m *StatInfo) String() string { return proto.CompactTextString(m) } -func (*StatInfo) ProtoMessage() {} -func (*StatInfo) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} } +var xxx_messageInfo_StatInfo proto.InternalMessageInfo + +func (m *StatInfo) GetPath() string { + if m != nil { + return m.Path + } + return "" +} + +func (m *StatInfo) GetLastModified() uint64 { + if m != nil { + return m.LastModified + } + return 0 +} + +func (m *StatInfo) GetPermissions() uint32 { + if m != nil { + return m.Permissions + } + return 0 +} + +func (m *StatInfo) GetSize() uint64 { + if m != nil { + return m.Size + } + return 0 +} + +func (m *StatInfo) GetUmask() uint32 { + if m != nil { + return m.Umask + } + return 0 +} // A RemoveRequest specifies a file to be removed from the target. type RemoveRequest struct { - RemoteFile string `protobuf:"bytes,1,opt,name=remote_file,json=remoteFile" json:"remote_file,omitempty"` + RemoteFile string `protobuf:"bytes,1,opt,name=remote_file,json=remoteFile,proto3" json:"remote_file,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RemoveRequest) Reset() { *m = RemoveRequest{} } +func (m *RemoveRequest) String() string { return proto.CompactTextString(m) } +func (*RemoveRequest) ProtoMessage() {} +func (*RemoveRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_ad806f8986a0c3f6, []int{9} +} + +func (m *RemoveRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RemoveRequest.Unmarshal(m, b) +} +func (m *RemoveRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RemoveRequest.Marshal(b, m, deterministic) +} +func (m *RemoveRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RemoveRequest.Merge(m, src) +} +func (m *RemoveRequest) XXX_Size() int { + return xxx_messageInfo_RemoveRequest.Size(m) +} +func (m *RemoveRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RemoveRequest.DiscardUnknown(m) } -func (m *RemoveRequest) Reset() { *m = RemoveRequest{} } -func (m *RemoveRequest) String() string { return proto.CompactTextString(m) } -func (*RemoveRequest) ProtoMessage() {} -func (*RemoveRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{9} } +var xxx_messageInfo_RemoveRequest proto.InternalMessageInfo + +func (m *RemoveRequest) GetRemoteFile() string { + if m != nil { + return m.RemoteFile + } + return "" +} type RemoveResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *RemoveResponse) Reset() { *m = RemoveResponse{} } -func (m *RemoveResponse) String() string { return proto.CompactTextString(m) } -func (*RemoveResponse) ProtoMessage() {} -func (*RemoveResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{10} } +func (m *RemoveResponse) Reset() { *m = RemoveResponse{} } +func (m *RemoveResponse) String() string { return proto.CompactTextString(m) } +func (*RemoveResponse) ProtoMessage() {} +func (*RemoveResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_ad806f8986a0c3f6, []int{10} +} + +func (m *RemoveResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RemoveResponse.Unmarshal(m, b) +} +func (m *RemoveResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RemoveResponse.Marshal(b, m, deterministic) +} +func (m *RemoveResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RemoveResponse.Merge(m, src) +} +func (m *RemoveResponse) XXX_Size() int { + return xxx_messageInfo_RemoveResponse.Size(m) +} +func (m *RemoveResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RemoveResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RemoveResponse proto.InternalMessageInfo func init() { proto.RegisterType((*PutRequest)(nil), "gnoi.file.PutRequest") @@ -477,6 +815,50 @@ func init() { proto.RegisterType((*RemoveResponse)(nil), "gnoi.file.RemoveResponse") } +func init() { proto.RegisterFile("file/file.proto", fileDescriptor_ad806f8986a0c3f6) } + +var fileDescriptor_ad806f8986a0c3f6 = []byte{ + // 594 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x54, 0xdf, 0x6f, 0xd2, 0x50, + 0x14, 0xa6, 0x50, 0x36, 0x38, 0x05, 0xb6, 0x5c, 0xe7, 0x56, 0x1b, 0x17, 0xb1, 0xf3, 0x01, 0x13, + 0x2d, 0xc8, 0x5e, 0xdc, 0x83, 0x33, 0x21, 0x8b, 0xc3, 0x44, 0x13, 0x52, 0x79, 0x5d, 0xc8, 0x1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58, 0x5a, 0xa9, 0xba, 0xa0, 0xa0, 0x0f, 0x7e, 0x40, 0x50, 0x13, + 0x8c, 0x98, 0x24, 0xa1, 0xcf, 0x98, 0x4f, 0x23, 0x25, 0x59, 0x77, 0xf3, 0x50, 0xaf, 0x0a, 0xfb, + 0x89, 0x32, 0x6b, 0xd7, 0xc1, 0x90, 0xd6, 0x59, 0x4c, 0x23, 0x46, 0xec, 0xd7, 0x00, 0xd7, 0x64, + 0x11, 0xf7, 0x5f, 0x52, 0xf6, 0x0d, 0x18, 0x92, 0xae, 0xaa, 0x57, 0x92, 0x6a, 0x0f, 0x26, 0x2d, + 0xee, 0x4a, 0xda, 0x03, 0xa8, 0x24, 0x99, 0x9b, 0x3b, 0x38, 0x19, 0x26, 0x38, 0x62, 0x53, 0x92, + 0x0c, 0xa9, 0x2b, 0x65, 0x33, 0x6b, 0xa7, 0x00, 0x01, 0x1d, 0xe3, 0x60, 0x14, 0x63, 0xee, 0xa5, + 0xce, 0xaa, 0x12, 0x19, 0x60, 0xee, 0xa1, 0x77, 0x70, 0x90, 0x3a, 0x9f, 0xd0, 0xbb, 0x28, 0xa0, + 0x78, 0x92, 0xca, 0x1e, 0x29, 0x59, 0xd5, 0xec, 0x2a, 0x7d, 0xe7, 0x36, 0x92, 0x95, 0x67, 0xfb, + 0x12, 0xcc, 0x4d, 0xe1, 0x34, 0xa4, 0x9d, 0xc6, 0xd0, 0xb6, 0xc5, 0x50, 0x21, 0xec, 0xe7, 0x60, + 0x7c, 0xe1, 0x78, 0x31, 0x47, 0x04, 0x7a, 0xce, 0xa6, 0xbc, 0xb7, 0x2f, 0xa0, 0xa6, 0x28, 0x69, + 0xdb, 0x97, 0x50, 0x66, 0x1c, 0xcb, 0xc1, 0x95, 0x5a, 0x46, 0xf7, 0x51, 0x6e, 0xb7, 0x04, 0xef, + 0x63, 0x34, 0xa5, 0xae, 0x62, 0xd8, 0x3f, 0x35, 0xa8, 0x64, 0xd8, 0xb6, 0xde, 0xe8, 0x0c, 0xea, + 0x01, 0x66, 0x7c, 0x14, 0xd2, 0x89, 0x3f, 0xf5, 0x89, 0xca, 0xae, 0xbb, 0x35, 0x01, 0x7e, 0x4e, + 0xb1, 0xf5, 0x35, 0x29, 0x6d, 0xac, 0x89, 0x68, 0xcd, 0xfc, 0x1f, 0xc4, 0xd4, 0x65, 0xb5, 0xbc, + 0x47, 0x47, 0x50, 0x9e, 0x87, 0x98, 0x7d, 0x35, 0xcb, 0x92, 0xaf, 0x1e, 0xec, 0x0e, 0xd4, 0xc5, + 0x94, 0xbe, 0x93, 0xff, 0xde, 0x9c, 0x43, 0x68, 0x64, 0x15, 0x6a, 0x00, 0xdd, 0xdf, 0x45, 0xd0, + 0xe5, 0xfe, 0xbe, 0x85, 0xd2, 0x35, 0xe1, 0xe8, 0x71, 0x6e, 0x02, 0xcb, 0x9d, 0xb4, 0x8e, 0xd7, + 0xe1, 0x74, 0x57, 0x0a, 0x1d, 0x0d, 0xdd, 0xc0, 0xe1, 0xfa, 0xb1, 0x21, 0x3b, 0xc7, 0x7f, 0x60, + 0x99, 0xac, 0xb3, 0x9d, 0x9c, 0x4c, 0x40, 0x18, 0x1b, 0xcc, 0x57, 0x8d, 0x2d, 0x3f, 0xfb, 0x15, + 0x63, 0xf9, 0x4f, 0xaa, 0xd0, 0xd2, 0xd0, 0x05, 0xe8, 0xe2, 0xc0, 0xd0, 0xf1, 0xda, 0xa9, 0x66, + 0xb5, 0x27, 0x1b, 0xf8, 0x42, 0xf4, 0x3d, 0xec, 0xa9, 0x41, 0x21, 0x33, 0x47, 0x5a, 0x99, 0xb6, + 0xf5, 0x64, 0xcb, 0x9b, 0xac, 0x41, 0xaf, 0xf2, 0xeb, 0xb2, 0xdc, 0x71, 0xde, 0x38, 0x9d, 0xdb, + 0x3d, 0xf9, 0x9f, 0x76, 0xfe, 0x37, 0x00, 0x00, 0xff, 0xff, 0xe0, 0x21, 0x12, 0x79, 0x4f, 0x05, + 0x00, 0x00, +} + // Reference imports to suppress errors if they are not otherwise used. var _ context.Context var _ grpc.ClientConn @@ -485,8 +867,9 @@ var _ grpc.ClientConn // is compatible with the grpc package it is being compiled against. const _ = grpc.SupportPackageIsVersion4 -// Client API for File service - +// FileClient is the client API for File service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type FileClient interface { // Get reads and streams the contents of a file from the target. // The file is streamed by sequential messages, each containing up to @@ -527,7 +910,7 @@ func NewFileClient(cc *grpc.ClientConn) FileClient { } func (c *fileClient) Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (File_GetClient, error) { - stream, err := grpc.NewClientStream(ctx, &_File_serviceDesc.Streams[0], c.cc, "/gnoi.file.File/Get", opts...) + stream, err := c.cc.NewStream(ctx, &_File_serviceDesc.Streams[0], "/gnoi.file.File/Get", opts...) if err != nil { return nil, err } @@ -560,7 +943,7 @@ func (x *fileGetClient) Recv() (*GetResponse, error) { func (c *fileClient) TransferToRemote(ctx context.Context, in *TransferToRemoteRequest, opts ...grpc.CallOption) (*TransferToRemoteResponse, error) { out := new(TransferToRemoteResponse) - err := grpc.Invoke(ctx, "/gnoi.file.File/TransferToRemote", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/gnoi.file.File/TransferToRemote", in, out, opts...) if err != nil { return nil, err } @@ -568,7 +951,7 @@ func (c *fileClient) TransferToRemote(ctx context.Context, in *TransferToRemoteR } func (c *fileClient) Put(ctx context.Context, opts ...grpc.CallOption) (File_PutClient, error) { - stream, err := grpc.NewClientStream(ctx, &_File_serviceDesc.Streams[1], c.cc, "/gnoi.file.File/Put", opts...) + stream, err := c.cc.NewStream(ctx, &_File_serviceDesc.Streams[1], "/gnoi.file.File/Put", opts...) if err != nil { return nil, err } @@ -603,7 +986,7 @@ func (x *filePutClient) CloseAndRecv() (*PutResponse, error) { func (c *fileClient) Stat(ctx context.Context, in *StatRequest, opts ...grpc.CallOption) (*StatResponse, error) { out := new(StatResponse) - err := grpc.Invoke(ctx, "/gnoi.file.File/Stat", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/gnoi.file.File/Stat", in, out, opts...) if err != nil { return nil, err } @@ -612,15 +995,14 @@ func (c *fileClient) Stat(ctx context.Context, in *StatRequest, opts ...grpc.Cal func (c *fileClient) Remove(ctx context.Context, in *RemoveRequest, opts ...grpc.CallOption) (*RemoveResponse, error) { out := new(RemoveResponse) - err := grpc.Invoke(ctx, "/gnoi.file.File/Remove", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/gnoi.file.File/Remove", in, out, opts...) if err != nil { return nil, err } return out, nil } -// Server API for File service - +// FileServer is the server API for File service. type FileServer interface { // Get reads and streams the contents of a file from the target. // The file is streamed by sequential messages, each containing up to @@ -788,45 +1170,3 @@ var _File_serviceDesc = grpc.ServiceDesc{ }, Metadata: "file/file.proto", } - -func init() { proto.RegisterFile("file/file.proto", fileDescriptor0) } - -var fileDescriptor0 = []byte{ - // 575 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x8c, 0x54, 0x5d, 0x6f, 0xd3, 0x30, - 0x14, 0x6d, 0xda, 0x74, 0x6b, 0x6f, 0xda, 0x6e, 0x78, 0x63, 0x0b, 0x11, 0x13, 0xc5, 0xe3, 0xa1, - 0x3c, 0x90, 0x96, 0xee, 0x85, 0x3d, 0x30, 0xa4, 0x6a, 0x62, 0x45, 0x02, 0xa9, 0x0a, 0x7d, 0x9d, - 0x2a, 0xd3, 0xba, 0x34, 0x22, 0x89, 0x43, 0xec, 0x32, 0x8d, 0x3f, 0xc1, 0x7f, 0x43, 0xe2, 0x95, - 0xdf, 0x82, 0x6c, 0x27, 0x6d, 0xfa, 0xb1, 0xb1, 0x97, 0x34, 0x39, 0x3e, 0x3e, 0xf7, 0x9c, 0xeb, - 0xeb, 0xc2, 0xde, 0xd4, 0x0f, 0x68, 0x5b, 0x3e, 0xdc, 0x38, 0x61, 0x82, 0xa1, 0xea, 0xd7, 0x88, - 0xf9, 0xae, 0x04, 0x9c, 0x83, 0x31, 0x0b, 0x43, 0x16, 0xb5, 0xf5, 0x8f, 0x5e, 0x77, 0x1e, 0x89, - 0xdb, 0x98, 0xf2, 0xb6, 0x7a, 0x6a, 0x08, 0xff, 0x35, 0x00, 0x06, 0x73, 0xe1, 0xd1, 0xef, 0x73, - 0xca, 0x05, 0x3a, 0x03, 0x93, 0xc5, 0x34, 0xb2, 0x8d, 0xa6, 0xd1, 0xb2, 0xba, 0x27, 0xee, 0x42, - 0xd0, 0x5d, 0x92, 0xdc, 0x4b, 0x2a, 0x88, 0x1f, 0xf0, 0x7e, 0xc1, 0x53, 0x64, 0xf4, 0x14, 0x2a, - 0x63, 0x16, 0x09, 0x1a, 0x09, 0x6e, 0x17, 0x9b, 0x46, 0xab, 0xd6, 0x2f, 0x78, 0x0b, 0x04, 0xbd, - 0x00, 0x73, 0x46, 0xf8, 0xcc, 0x2e, 0x29, 0xc9, 0x86, 0x96, 0xec, 0x13, 0x3e, 0x1b, 0xde, 0xc6, - 0x54, 0x6a, 0xc8, 0x55, 0xe7, 0x23, 0xec, 0xa6, 0xb2, 0xe8, 0x19, 0x58, 0x09, 0x0d, 0x99, 0xa0, - 0x23, 0x59, 0x58, 0x59, 0xa9, 0x7a, 0xa0, 0xa1, 0xf7, 0x7e, 0x40, 0x51, 0x13, 0xac, 0x98, 0x26, - 0xa1, 0xcf, 0xb9, 0xcf, 0x22, 0x5d, 0xb2, 0xee, 0xe5, 0xa1, 0x5e, 0x15, 0x76, 0x13, 0x6d, 0x16, - 0xd7, 0xc1, 0x52, 0xd6, 0x79, 0xcc, 0x22, 0x4e, 0xf1, 0x2b, 0x80, 0x2b, 0xba, 0x88, 0xfb, 0xbf, - 0x52, 0xf8, 0x1a, 0x2c, 0x45, 0xd7, 0xbb, 0x57, 0x92, 0x1a, 0x77, 0x26, 0x2d, 0xde, 0x97, 0xb4, - 0x07, 0x50, 0x49, 0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x04, 0x53, 0xcd, 0xef, 0x1b, - 0x28, 0x5d, 0x51, 0x81, 0x1e, 0xe7, 0x3a, 0xb0, 0x9c, 0x49, 0xe7, 0x68, 0x1d, 0x4e, 0x67, 0xa5, - 0xd0, 0x31, 0xd0, 0x35, 0xec, 0xaf, 0x1f, 0x1b, 0xc2, 0x39, 0xfe, 0x1d, 0xc3, 0xe4, 0x9c, 0xde, - 0xcb, 0xc9, 0x0a, 0x48, 0x63, 0x83, 0xf9, 0xaa, 0xb1, 0xe5, 0xb5, 0x5f, 0x31, 0x96, 0xbf, 0x52, - 0x85, 0x96, 0x81, 0xce, 0xc1, 0x94, 0x07, 0x86, 0x8e, 0xd6, 0x4e, 0x35, 0xdb, 0x7b, 0xbc, 0x81, - 0x2f, 0x8a, 0xbe, 0x83, 0x1d, 0xdd, 0x28, 0x64, 0xe7, 0x48, 0x2b, 0xdd, 0x76, 0x9e, 0x6c, 0x59, - 0xc9, 0x04, 0x7a, 0x95, 0xdf, 0x17, 0xe5, 0x8e, 0xfb, 0xda, 0xed, 0x7c, 0xd9, 0x51, 0xff, 0x69, - 0x67, 0xff, 0x02, 0x00, 0x00, 0xff, 0xff, 0xfd, 0xd9, 0x93, 0x47, 0x19, 0x05, 0x00, 0x00, -} diff --git a/file/file.proto b/file/file.proto index 70aef125..a9ebe191 100644 --- a/file/file.proto +++ b/file/file.proto @@ -18,8 +18,8 @@ syntax = "proto3"; package gnoi.file; -import "common/common.proto"; -import "types/types.proto"; +import "github.com/openconfig/gnoi/types/types.proto"; +import "github.com/openconfig/gnoi/common/common.proto"; option (gnoi.gnoi_version) = "0.1.0"; diff --git a/interface/BUILD.bazel b/interface/BUILD.bazel deleted file mode 100644 index 2d94e1c3..00000000 --- a/interface/BUILD.bazel +++ /dev/null @@ -1,20 +0,0 @@ -load("@io_bazel_rules_go//proto:go_proto_library.bzl", "go_proto_library") - -proto_library( - name = "interface_proto", - srcs = ["interface.proto"], - deps = [ - "//github.com/openconfig/gnoi:gnoi_proto", - ], -) - -go_proto_library( - name = "go_default_library", - srcs = ["interface.proto"], - deps = [ - "//github.com/openconfig/gnoi:go_default_library" - ], - visibility = ["//visibility:public"], - rules_go_repo_only_for_internal_use = "@", - has_services = 1, -) diff --git a/interface/interface.pb.go b/interface/interface.pb.go index a8e99d87..26dab8e8 100644 --- a/interface/interface.pb.go +++ b/interface/interface.pb.go @@ -1,31 +1,15 @@ -// Code generated by protoc-gen-go. +// Code generated by protoc-gen-go. DO NOT EDIT. // source: interface/interface.proto -// DO NOT EDIT! - -/* -Package gnoi_interface is a generated protocol buffer package. - -It is generated from these files: - interface/interface.proto - -It has these top-level messages: - SetLoopbackModeRequest - SetLoopbackModeResponse - GetLoopbackModeRequest - GetLoopbackModeResponse - ClearInterfaceCountersRequest - ClearInterfaceCountersResponse -*/ -package gnoi_interface -import proto "github.com/golang/protobuf/proto" -import fmt "fmt" -import math "math" -import gnoi "types" +package gnoi_interface import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + types "github.com/openconfig/gnoi/types" context "golang.org/x/net/context" grpc "google.golang.org/grpc" + math "math" ) // Reference imports to suppress errors if they are not otherwise used. @@ -44,40 +28,116 @@ const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package // device, available modes are "none", "mac", "phy", "phy_remote", // "framer_facility", and "framer_terminal". type SetLoopbackModeRequest struct { - Interface *gnoi.Path `protobuf:"bytes,1,opt,name=interface" json:"interface,omitempty"` - Mode string `protobuf:"bytes,2,opt,name=mode" json:"mode,omitempty"` + Interface *types.Path `protobuf:"bytes,1,opt,name=interface,proto3" json:"interface,omitempty"` + Mode string `protobuf:"bytes,2,opt,name=mode,proto3" json:"mode,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *SetLoopbackModeRequest) Reset() { *m = SetLoopbackModeRequest{} } -func (m *SetLoopbackModeRequest) String() string { return proto.CompactTextString(m) } -func (*SetLoopbackModeRequest) ProtoMessage() {} -func (*SetLoopbackModeRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } +func (m *SetLoopbackModeRequest) Reset() { *m = SetLoopbackModeRequest{} } +func (m *SetLoopbackModeRequest) String() string { return proto.CompactTextString(m) } +func (*SetLoopbackModeRequest) ProtoMessage() {} +func (*SetLoopbackModeRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_460c38aebb3cb2d6, []int{0} +} + +func (m *SetLoopbackModeRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SetLoopbackModeRequest.Unmarshal(m, b) +} +func (m *SetLoopbackModeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SetLoopbackModeRequest.Marshal(b, m, deterministic) +} +func (m *SetLoopbackModeRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_SetLoopbackModeRequest.Merge(m, src) +} +func (m *SetLoopbackModeRequest) XXX_Size() int { + return xxx_messageInfo_SetLoopbackModeRequest.Size(m) +} +func (m *SetLoopbackModeRequest) XXX_DiscardUnknown() { + xxx_messageInfo_SetLoopbackModeRequest.DiscardUnknown(m) +} -func (m *SetLoopbackModeRequest) GetInterface() *gnoi.Path { +var xxx_messageInfo_SetLoopbackModeRequest proto.InternalMessageInfo + +func (m *SetLoopbackModeRequest) GetInterface() *types.Path { if m != nil { return m.Interface } return nil } +func (m *SetLoopbackModeRequest) GetMode() string { + if m != nil { + return m.Mode + } + return "" +} + type SetLoopbackModeResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SetLoopbackModeResponse) Reset() { *m = SetLoopbackModeResponse{} } +func (m *SetLoopbackModeResponse) String() string { return proto.CompactTextString(m) } +func (*SetLoopbackModeResponse) ProtoMessage() {} +func (*SetLoopbackModeResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_460c38aebb3cb2d6, []int{1} +} + +func (m *SetLoopbackModeResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SetLoopbackModeResponse.Unmarshal(m, b) +} +func (m *SetLoopbackModeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SetLoopbackModeResponse.Marshal(b, m, deterministic) +} +func (m *SetLoopbackModeResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_SetLoopbackModeResponse.Merge(m, src) +} +func (m *SetLoopbackModeResponse) XXX_Size() int { + return xxx_messageInfo_SetLoopbackModeResponse.Size(m) +} +func (m *SetLoopbackModeResponse) XXX_DiscardUnknown() { + xxx_messageInfo_SetLoopbackModeResponse.DiscardUnknown(m) } -func (m *SetLoopbackModeResponse) Reset() { *m = SetLoopbackModeResponse{} } -func (m *SetLoopbackModeResponse) String() string { return proto.CompactTextString(m) } -func (*SetLoopbackModeResponse) ProtoMessage() {} -func (*SetLoopbackModeResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } +var xxx_messageInfo_SetLoopbackModeResponse proto.InternalMessageInfo type GetLoopbackModeRequest struct { - Interface *gnoi.Path `protobuf:"bytes,1,opt,name=interface" json:"interface,omitempty"` + Interface *types.Path `protobuf:"bytes,1,opt,name=interface,proto3" json:"interface,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *GetLoopbackModeRequest) Reset() { *m = GetLoopbackModeRequest{} } -func (m *GetLoopbackModeRequest) String() string { return proto.CompactTextString(m) } -func (*GetLoopbackModeRequest) ProtoMessage() {} -func (*GetLoopbackModeRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} } +func (m *GetLoopbackModeRequest) Reset() { *m = GetLoopbackModeRequest{} } +func (m *GetLoopbackModeRequest) String() string { return proto.CompactTextString(m) } +func (*GetLoopbackModeRequest) ProtoMessage() {} +func (*GetLoopbackModeRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_460c38aebb3cb2d6, []int{2} +} -func (m *GetLoopbackModeRequest) GetInterface() *gnoi.Path { +func (m *GetLoopbackModeRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetLoopbackModeRequest.Unmarshal(m, b) +} +func (m *GetLoopbackModeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetLoopbackModeRequest.Marshal(b, m, deterministic) +} +func (m *GetLoopbackModeRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetLoopbackModeRequest.Merge(m, src) +} +func (m *GetLoopbackModeRequest) XXX_Size() int { + return xxx_messageInfo_GetLoopbackModeRequest.Size(m) +} +func (m *GetLoopbackModeRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetLoopbackModeRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_GetLoopbackModeRequest proto.InternalMessageInfo + +func (m *GetLoopbackModeRequest) GetInterface() *types.Path { if m != nil { return m.Interface } @@ -85,24 +145,77 @@ func (m *GetLoopbackModeRequest) GetInterface() *gnoi.Path { } type GetLoopbackModeResponse struct { - Mode string `protobuf:"bytes,1,opt,name=mode" json:"mode,omitempty"` + Mode string `protobuf:"bytes,1,opt,name=mode,proto3" json:"mode,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetLoopbackModeResponse) Reset() { *m = GetLoopbackModeResponse{} } +func (m *GetLoopbackModeResponse) String() string { return proto.CompactTextString(m) } +func (*GetLoopbackModeResponse) ProtoMessage() {} +func (*GetLoopbackModeResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_460c38aebb3cb2d6, []int{3} +} + +func (m *GetLoopbackModeResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetLoopbackModeResponse.Unmarshal(m, b) +} +func (m *GetLoopbackModeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetLoopbackModeResponse.Marshal(b, m, deterministic) +} +func (m *GetLoopbackModeResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetLoopbackModeResponse.Merge(m, src) +} +func (m *GetLoopbackModeResponse) XXX_Size() int { + return xxx_messageInfo_GetLoopbackModeResponse.Size(m) +} +func (m *GetLoopbackModeResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetLoopbackModeResponse.DiscardUnknown(m) } -func (m *GetLoopbackModeResponse) Reset() { *m = GetLoopbackModeResponse{} } -func (m *GetLoopbackModeResponse) String() string { return proto.CompactTextString(m) } -func (*GetLoopbackModeResponse) ProtoMessage() {} -func (*GetLoopbackModeResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} } +var xxx_messageInfo_GetLoopbackModeResponse proto.InternalMessageInfo + +func (m *GetLoopbackModeResponse) GetMode() string { + if m != nil { + return m.Mode + } + return "" +} type ClearInterfaceCountersRequest struct { - Interface []*gnoi.Path `protobuf:"bytes,1,rep,name=interface" json:"interface,omitempty"` + Interface []*types.Path `protobuf:"bytes,1,rep,name=interface,proto3" json:"interface,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *ClearInterfaceCountersRequest) Reset() { *m = ClearInterfaceCountersRequest{} } -func (m *ClearInterfaceCountersRequest) String() string { return proto.CompactTextString(m) } -func (*ClearInterfaceCountersRequest) ProtoMessage() {} -func (*ClearInterfaceCountersRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} } +func (m *ClearInterfaceCountersRequest) Reset() { *m = ClearInterfaceCountersRequest{} } +func (m *ClearInterfaceCountersRequest) String() string { return proto.CompactTextString(m) } +func (*ClearInterfaceCountersRequest) ProtoMessage() {} +func (*ClearInterfaceCountersRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_460c38aebb3cb2d6, []int{4} +} -func (m *ClearInterfaceCountersRequest) GetInterface() []*gnoi.Path { +func (m *ClearInterfaceCountersRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ClearInterfaceCountersRequest.Unmarshal(m, b) +} +func (m *ClearInterfaceCountersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ClearInterfaceCountersRequest.Marshal(b, m, deterministic) +} +func (m *ClearInterfaceCountersRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ClearInterfaceCountersRequest.Merge(m, src) +} +func (m *ClearInterfaceCountersRequest) XXX_Size() int { + return xxx_messageInfo_ClearInterfaceCountersRequest.Size(m) +} +func (m *ClearInterfaceCountersRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ClearInterfaceCountersRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ClearInterfaceCountersRequest proto.InternalMessageInfo + +func (m *ClearInterfaceCountersRequest) GetInterface() []*types.Path { if m != nil { return m.Interface } @@ -110,12 +223,35 @@ func (m *ClearInterfaceCountersRequest) GetInterface() []*gnoi.Path { } type ClearInterfaceCountersResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ClearInterfaceCountersResponse) Reset() { *m = ClearInterfaceCountersResponse{} } +func (m *ClearInterfaceCountersResponse) String() string { return proto.CompactTextString(m) } +func (*ClearInterfaceCountersResponse) ProtoMessage() {} +func (*ClearInterfaceCountersResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_460c38aebb3cb2d6, []int{5} } -func (m *ClearInterfaceCountersResponse) Reset() { *m = ClearInterfaceCountersResponse{} } -func (m *ClearInterfaceCountersResponse) String() string { return proto.CompactTextString(m) } -func (*ClearInterfaceCountersResponse) ProtoMessage() {} -func (*ClearInterfaceCountersResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} } +func (m *ClearInterfaceCountersResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ClearInterfaceCountersResponse.Unmarshal(m, b) +} +func (m *ClearInterfaceCountersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ClearInterfaceCountersResponse.Marshal(b, m, deterministic) +} +func (m *ClearInterfaceCountersResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ClearInterfaceCountersResponse.Merge(m, src) +} +func (m *ClearInterfaceCountersResponse) XXX_Size() int { + return xxx_messageInfo_ClearInterfaceCountersResponse.Size(m) +} +func (m *ClearInterfaceCountersResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ClearInterfaceCountersResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ClearInterfaceCountersResponse proto.InternalMessageInfo func init() { proto.RegisterType((*SetLoopbackModeRequest)(nil), "gnoi.interface.SetLoopbackModeRequest") @@ -126,6 +262,31 @@ func init() { proto.RegisterType((*ClearInterfaceCountersResponse)(nil), "gnoi.interface.ClearInterfaceCountersResponse") } +func init() { proto.RegisterFile("interface/interface.proto", fileDescriptor_460c38aebb3cb2d6) } + +var fileDescriptor_460c38aebb3cb2d6 = []byte{ + // 295 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xcc, 0xcc, 0x2b, 0x49, + 0x2d, 0x4a, 0x4b, 0x4c, 0x4e, 0xd5, 0x87, 0xb3, 0xf4, 0x0a, 0x8a, 0xf2, 0x4b, 0xf2, 0x85, 0xf8, + 0xd2, 0xf3, 0xf2, 0x33, 0xf5, 0xe0, 0xa2, 0x52, 0x3a, 0xe9, 0x99, 0x25, 0x19, 0xa5, 0x49, 0x7a, + 0xc9, 0xf9, 0xb9, 0xfa, 0xf9, 0x05, 0xa9, 0x79, 0xc9, 0xf9, 0x79, 0x69, 0x99, 0xe9, 0xfa, 0x20, + 0x55, 0xfa, 0x25, 0x95, 0x05, 0xa9, 0xc5, 0x10, 0x12, 0xa2, 0x5b, 0x29, 0x8c, 0x4b, 0x2c, 0x38, + 0xb5, 0xc4, 0x27, 0x3f, 0xbf, 0x20, 0x29, 0x31, 0x39, 0xdb, 0x37, 0x3f, 0x25, 0x35, 0x28, 0xb5, + 0xb0, 0x34, 0xb5, 0xb8, 0x44, 0x48, 0x83, 0x8b, 0x13, 0x6e, 0xa8, 0x04, 0xa3, 0x02, 0xa3, 0x06, + 0xb7, 0x11, 0x97, 0x1e, 0xd8, 0xae, 0x80, 0xc4, 0x92, 0x8c, 0x20, 0x84, 0xa4, 0x90, 0x10, 0x17, + 0x4b, 0x6e, 0x7e, 0x4a, 0xaa, 0x04, 0x93, 0x02, 0xa3, 0x06, 0x67, 0x10, 0x98, 0xad, 0x24, 0xc9, + 0x25, 0x8e, 0x61, 0x6e, 0x71, 0x41, 0x7e, 0x5e, 0x71, 0xaa, 0x92, 0x13, 0x97, 0x98, 0x3b, 0x85, + 0x56, 0x2a, 0xe9, 0x72, 0x89, 0xbb, 0x63, 0x37, 0x1e, 0xee, 0x1a, 0x46, 0x24, 0xd7, 0x78, 0x72, + 0xc9, 0x3a, 0xe7, 0xa4, 0x26, 0x16, 0x79, 0xc2, 0x0c, 0x70, 0xce, 0x2f, 0x05, 0x31, 0x8b, 0x71, + 0xd8, 0xcc, 0x8c, 0xdb, 0x66, 0x05, 0x2e, 0x39, 0x5c, 0x46, 0x41, 0x1c, 0x60, 0x74, 0x89, 0x89, + 0x8b, 0x13, 0x2e, 0x2b, 0x94, 0xc2, 0xc5, 0x8f, 0x16, 0x10, 0x42, 0x6a, 0x7a, 0xa8, 0x51, 0xa6, + 0x87, 0x3d, 0x06, 0xa4, 0xd4, 0x09, 0xaa, 0x83, 0x86, 0x28, 0x03, 0xc8, 0x16, 0x77, 0x42, 0xb6, + 0xb8, 0x13, 0x69, 0x8b, 0x3b, 0x4e, 0x5b, 0x2a, 0xb9, 0xc4, 0xb0, 0xfb, 0x5d, 0x48, 0x17, 0xdd, + 0x10, 0xbc, 0xc1, 0x2d, 0xa5, 0x47, 0xac, 0x72, 0x98, 0xd5, 0x4e, 0x1c, 0x97, 0xec, 0x58, 0x0d, + 0xf4, 0x0c, 0xf5, 0x0c, 0x92, 0xd8, 0xc0, 0x09, 0xd7, 0x18, 0x10, 0x00, 0x00, 0xff, 0xff, 0x6a, + 0x48, 0x50, 0x47, 0x13, 0x03, 0x00, 0x00, +} + // Reference imports to suppress errors if they are not otherwise used. var _ context.Context var _ grpc.ClientConn @@ -134,8 +295,9 @@ var _ grpc.ClientConn // is compatible with the grpc package it is being compiled against. const _ = grpc.SupportPackageIsVersion4 -// Client API for Interface service - +// InterfaceClient is the client API for Interface service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type InterfaceClient interface { // SetLoopbackMode is used to set the mode of loopback on a interface. SetLoopbackMode(ctx context.Context, in *SetLoopbackModeRequest, opts ...grpc.CallOption) (*SetLoopbackModeResponse, error) @@ -155,7 +317,7 @@ func NewInterfaceClient(cc *grpc.ClientConn) InterfaceClient { func (c *interfaceClient) SetLoopbackMode(ctx context.Context, in *SetLoopbackModeRequest, opts ...grpc.CallOption) (*SetLoopbackModeResponse, error) { out := new(SetLoopbackModeResponse) - err := grpc.Invoke(ctx, "/gnoi.interface.Interface/SetLoopbackMode", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/gnoi.interface.Interface/SetLoopbackMode", in, out, opts...) if err != nil { return nil, err } @@ -164,7 +326,7 @@ func (c *interfaceClient) SetLoopbackMode(ctx context.Context, in *SetLoopbackMo func (c *interfaceClient) GetLoopbackMode(ctx context.Context, in *GetLoopbackModeRequest, opts ...grpc.CallOption) (*GetLoopbackModeResponse, error) { out := new(GetLoopbackModeResponse) - err := grpc.Invoke(ctx, "/gnoi.interface.Interface/GetLoopbackMode", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/gnoi.interface.Interface/GetLoopbackMode", in, out, opts...) if err != nil { return nil, err } @@ -173,15 +335,14 @@ func (c *interfaceClient) GetLoopbackMode(ctx context.Context, in *GetLoopbackMo func (c *interfaceClient) ClearInterfaceCounters(ctx context.Context, in *ClearInterfaceCountersRequest, opts ...grpc.CallOption) (*ClearInterfaceCountersResponse, error) { out := new(ClearInterfaceCountersResponse) - err := grpc.Invoke(ctx, "/gnoi.interface.Interface/ClearInterfaceCounters", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/gnoi.interface.Interface/ClearInterfaceCounters", in, out, opts...) if err != nil { return nil, err } return out, nil } -// Server API for Interface service - +// InterfaceServer is the server API for Interface service. type InterfaceServer interface { // SetLoopbackMode is used to set the mode of loopback on a interface. SetLoopbackMode(context.Context, *SetLoopbackModeRequest) (*SetLoopbackModeResponse, error) @@ -269,26 +430,3 @@ var _Interface_serviceDesc = grpc.ServiceDesc{ Streams: []grpc.StreamDesc{}, Metadata: "interface/interface.proto", } - -func init() { proto.RegisterFile("interface/interface.proto", fileDescriptor0) } - -var fileDescriptor0 = []byte{ - // 271 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xe2, 0x92, 0xcc, 0xcc, 0x2b, 0x49, - 0x2d, 0x4a, 0x4b, 0x4c, 0x4e, 0xd5, 0x87, 0xb3, 0xf4, 0x0a, 0x8a, 0xf2, 0x4b, 0xf2, 0x85, 0xf8, - 0xd2, 0xf3, 0xf2, 0x33, 0xf5, 0xe0, 0xa2, 0x52, 0x82, 0x25, 0x95, 0x05, 0xa9, 0xc5, 0xfa, 0x60, - 0x12, 0xa2, 0x44, 0x29, 0x8c, 0x4b, 0x2c, 0x38, 0xb5, 0xc4, 0x27, 0x3f, 0xbf, 0x20, 0x29, 0x31, - 0x39, 0xdb, 0x37, 0x3f, 0x25, 0x35, 0x28, 0xb5, 0xb0, 0x34, 0xb5, 0xb8, 0x44, 0x48, 0x83, 0x8b, - 0x13, 0xae, 0x53, 0x82, 0x51, 0x81, 0x51, 0x83, 0xdb, 0x88, 0x4b, 0x0f, 0x6c, 0x60, 0x40, 0x62, - 0x49, 0x46, 0x10, 0x42, 0x52, 0x48, 0x88, 0x8b, 0x25, 0x37, 0x3f, 0x25, 0x55, 0x82, 0x49, 0x81, - 0x51, 0x83, 0x33, 0x08, 0xcc, 0x56, 0x92, 0xe4, 0x12, 0xc7, 0x30, 0xb7, 0xb8, 0x20, 0x3f, 0xaf, - 0x38, 0x55, 0xc9, 0x89, 0x4b, 0xcc, 0x9d, 0x42, 0x2b, 0x95, 0x74, 0xb9, 0xc4, 0xdd, 0xb1, 0x1b, - 0x0f, 0x77, 0x0d, 0x23, 0x92, 0x6b, 0x3c, 0xb9, 0x64, 0x9d, 0x73, 0x52, 0x13, 0x8b, 0x3c, 0x61, - 0x06, 0x38, 0xe7, 0x97, 0x82, 0x98, 0xc5, 0x38, 0x6c, 0x66, 0xc6, 0x6d, 0xb3, 0x02, 0x97, 0x1c, - 0x2e, 0xa3, 0x20, 0x0e, 0x30, 0xba, 0xc4, 0xc4, 0xc5, 0x09, 0x97, 0x15, 0x4a, 0xe1, 0xe2, 0x47, - 0x0b, 0x08, 0x21, 0x35, 0x3d, 0xd4, 0x78, 0xd1, 0xc3, 0x1e, 0x03, 0x52, 0xea, 0x04, 0xd5, 0x41, - 0x43, 0x94, 0x01, 0x64, 0x8b, 0x3b, 0x21, 0x5b, 0xdc, 0x89, 0xb4, 0xc5, 0x1d, 0xa7, 0x2d, 0x95, - 0x5c, 0x62, 0xd8, 0xfd, 0x2e, 0xa4, 0x8b, 0x6e, 0x08, 0xde, 0xe0, 0x96, 0xd2, 0x23, 0x56, 0x39, - 0xcc, 0x6a, 0x27, 0x8e, 0x4b, 0x76, 0xac, 0x06, 0x7a, 0x86, 0x7a, 0x06, 0x49, 0x6c, 0xe0, 0x84, - 0x6b, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0x30, 0x48, 0x72, 0xef, 0xf8, 0x02, 0x00, 0x00, -} diff --git a/interface/interface.proto b/interface/interface.proto index 4cff3200..bba18fab 100644 --- a/interface/interface.proto +++ b/interface/interface.proto @@ -18,7 +18,7 @@ syntax = "proto3"; package gnoi.interface; -import "types/types.proto"; +import "github.com/openconfig/gnoi/types/types.proto"; option (gnoi.gnoi_version) = "0.1.0"; diff --git a/layer2/BUILD.bazel b/layer2/BUILD.bazel deleted file mode 100644 index 9c64d5c4..00000000 --- a/layer2/BUILD.bazel +++ /dev/null @@ -1,20 +0,0 @@ -load("@io_bazel_rules_go//proto:go_proto_library.bzl", "go_proto_library") - -proto_library( - name = "layer2_proto", - srcs = ["layer2.proto"], - deps = [ - "//github.com/openconfig/gnoi:gnoi_proto", - ], -) - -go_proto_library( - name = "go_default_library", - srcs = ["layer2.proto"], - deps = [ - "//github.com/openconfig/gnoi:go_default_library" - ], - visibility = ["//visibility:public"], - rules_go_repo_only_for_internal_use = "@", - has_services = 1, -) diff --git a/layer2/layer2.pb.go b/layer2/layer2.pb.go index 610ac40c..8ee39b63 100644 --- a/layer2/layer2.pb.go +++ b/layer2/layer2.pb.go @@ -1,35 +1,15 @@ -// Code generated by protoc-gen-go. +// Code generated by protoc-gen-go. DO NOT EDIT. // source: layer2/layer2.proto -// DO NOT EDIT! - -/* -Package gnoi_layer2 is a generated protocol buffer package. - -It is generated from these files: - layer2/layer2.proto - -It has these top-level messages: - ClearNeighborDiscoveryRequest - ClearNeighborDiscoveryResponse - ClearSpanningTreeRequest - ClearSpanningTreeResponse - PerformBERTRequest - PerformBERTResponse - ClearLLDPInterfaceRequest - ClearLLDPInterfaceResponse - SendWakeOnLANRequest - SendWakeOnLANResponse -*/ -package gnoi_layer2 -import proto "github.com/golang/protobuf/proto" -import fmt "fmt" -import math "math" -import gnoi "types" +package gnoi_layer2 import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + types "github.com/openconfig/gnoi/types" context "golang.org/x/net/context" grpc "google.golang.org/grpc" + math "math" ) // Reference imports to suppress errors if they are not otherwise used. @@ -60,6 +40,7 @@ var PerformBERTResponse_BERTState_name = map[int32]string{ 3: "COMPLETE", 4: "ERROR", } + var PerformBERTResponse_BERTState_value = map[string]int32{ "UNKNOWN": 0, "DISABLED": 1, @@ -71,38 +52,122 @@ var PerformBERTResponse_BERTState_value = map[string]int32{ func (x PerformBERTResponse_BERTState) String() string { return proto.EnumName(PerformBERTResponse_BERTState_name, int32(x)) } + func (PerformBERTResponse_BERTState) EnumDescriptor() ([]byte, []int) { - return fileDescriptor0, []int{5, 0} + return fileDescriptor_dff9ec617d9e4348, []int{5, 0} } type ClearNeighborDiscoveryRequest struct { - Protocol gnoi.L3Protocol `protobuf:"varint,1,opt,name=protocol,enum=gnoi.L3Protocol" json:"protocol,omitempty"` - Address string `protobuf:"bytes,2,opt,name=address" json:"address,omitempty"` + Protocol types.L3Protocol `protobuf:"varint,1,opt,name=protocol,proto3,enum=gnoi.L3Protocol" json:"protocol,omitempty"` + Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ClearNeighborDiscoveryRequest) Reset() { *m = ClearNeighborDiscoveryRequest{} } +func (m *ClearNeighborDiscoveryRequest) String() string { return proto.CompactTextString(m) } +func (*ClearNeighborDiscoveryRequest) ProtoMessage() {} +func (*ClearNeighborDiscoveryRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_dff9ec617d9e4348, []int{0} +} + +func (m *ClearNeighborDiscoveryRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ClearNeighborDiscoveryRequest.Unmarshal(m, b) +} +func (m *ClearNeighborDiscoveryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ClearNeighborDiscoveryRequest.Marshal(b, m, deterministic) +} +func (m *ClearNeighborDiscoveryRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ClearNeighborDiscoveryRequest.Merge(m, src) +} +func (m *ClearNeighborDiscoveryRequest) XXX_Size() int { + return xxx_messageInfo_ClearNeighborDiscoveryRequest.Size(m) +} +func (m *ClearNeighborDiscoveryRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ClearNeighborDiscoveryRequest.DiscardUnknown(m) } -func (m *ClearNeighborDiscoveryRequest) Reset() { *m = ClearNeighborDiscoveryRequest{} } -func (m *ClearNeighborDiscoveryRequest) String() string { return proto.CompactTextString(m) } -func (*ClearNeighborDiscoveryRequest) ProtoMessage() {} -func (*ClearNeighborDiscoveryRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } +var xxx_messageInfo_ClearNeighborDiscoveryRequest proto.InternalMessageInfo + +func (m *ClearNeighborDiscoveryRequest) GetProtocol() types.L3Protocol { + if m != nil { + return m.Protocol + } + return types.L3Protocol_UNSPECIFIED +} + +func (m *ClearNeighborDiscoveryRequest) GetAddress() string { + if m != nil { + return m.Address + } + return "" +} type ClearNeighborDiscoveryResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *ClearNeighborDiscoveryResponse) Reset() { *m = ClearNeighborDiscoveryResponse{} } -func (m *ClearNeighborDiscoveryResponse) String() string { return proto.CompactTextString(m) } -func (*ClearNeighborDiscoveryResponse) ProtoMessage() {} -func (*ClearNeighborDiscoveryResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } +func (m *ClearNeighborDiscoveryResponse) Reset() { *m = ClearNeighborDiscoveryResponse{} } +func (m *ClearNeighborDiscoveryResponse) String() string { return proto.CompactTextString(m) } +func (*ClearNeighborDiscoveryResponse) ProtoMessage() {} +func (*ClearNeighborDiscoveryResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_dff9ec617d9e4348, []int{1} +} + +func (m *ClearNeighborDiscoveryResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ClearNeighborDiscoveryResponse.Unmarshal(m, b) +} +func (m *ClearNeighborDiscoveryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ClearNeighborDiscoveryResponse.Marshal(b, m, deterministic) +} +func (m *ClearNeighborDiscoveryResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ClearNeighborDiscoveryResponse.Merge(m, src) +} +func (m *ClearNeighborDiscoveryResponse) XXX_Size() int { + return xxx_messageInfo_ClearNeighborDiscoveryResponse.Size(m) +} +func (m *ClearNeighborDiscoveryResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ClearNeighborDiscoveryResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ClearNeighborDiscoveryResponse proto.InternalMessageInfo type ClearSpanningTreeRequest struct { - Interface *gnoi.Path `protobuf:"bytes,1,opt,name=interface" json:"interface,omitempty"` + Interface *types.Path `protobuf:"bytes,1,opt,name=interface,proto3" json:"interface,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ClearSpanningTreeRequest) Reset() { *m = ClearSpanningTreeRequest{} } +func (m *ClearSpanningTreeRequest) String() string { return proto.CompactTextString(m) } +func (*ClearSpanningTreeRequest) ProtoMessage() {} +func (*ClearSpanningTreeRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_dff9ec617d9e4348, []int{2} } -func (m *ClearSpanningTreeRequest) Reset() { *m = ClearSpanningTreeRequest{} } -func (m *ClearSpanningTreeRequest) String() string { return proto.CompactTextString(m) } -func (*ClearSpanningTreeRequest) ProtoMessage() {} -func (*ClearSpanningTreeRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} } +func (m *ClearSpanningTreeRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ClearSpanningTreeRequest.Unmarshal(m, b) +} +func (m *ClearSpanningTreeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ClearSpanningTreeRequest.Marshal(b, m, deterministic) +} +func (m *ClearSpanningTreeRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ClearSpanningTreeRequest.Merge(m, src) +} +func (m *ClearSpanningTreeRequest) XXX_Size() int { + return xxx_messageInfo_ClearSpanningTreeRequest.Size(m) +} +func (m *ClearSpanningTreeRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ClearSpanningTreeRequest.DiscardUnknown(m) +} -func (m *ClearSpanningTreeRequest) GetInterface() *gnoi.Path { +var xxx_messageInfo_ClearSpanningTreeRequest proto.InternalMessageInfo + +func (m *ClearSpanningTreeRequest) GetInterface() *types.Path { if m != nil { return m.Interface } @@ -110,25 +175,78 @@ func (m *ClearSpanningTreeRequest) GetInterface() *gnoi.Path { } type ClearSpanningTreeResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ClearSpanningTreeResponse) Reset() { *m = ClearSpanningTreeResponse{} } +func (m *ClearSpanningTreeResponse) String() string { return proto.CompactTextString(m) } +func (*ClearSpanningTreeResponse) ProtoMessage() {} +func (*ClearSpanningTreeResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_dff9ec617d9e4348, []int{3} +} + +func (m *ClearSpanningTreeResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ClearSpanningTreeResponse.Unmarshal(m, b) +} +func (m *ClearSpanningTreeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ClearSpanningTreeResponse.Marshal(b, m, deterministic) +} +func (m *ClearSpanningTreeResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ClearSpanningTreeResponse.Merge(m, src) +} +func (m *ClearSpanningTreeResponse) XXX_Size() int { + return xxx_messageInfo_ClearSpanningTreeResponse.Size(m) +} +func (m *ClearSpanningTreeResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ClearSpanningTreeResponse.DiscardUnknown(m) } -func (m *ClearSpanningTreeResponse) Reset() { *m = ClearSpanningTreeResponse{} } -func (m *ClearSpanningTreeResponse) String() string { return proto.CompactTextString(m) } -func (*ClearSpanningTreeResponse) ProtoMessage() {} -func (*ClearSpanningTreeResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} } +var xxx_messageInfo_ClearSpanningTreeResponse proto.InternalMessageInfo type PerformBERTRequest struct { // ID for retrieving a previous BERT run data - optional. - Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` - Interface *gnoi.Path `protobuf:"bytes,2,opt,name=interface" json:"interface,omitempty"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Interface *types.Path `protobuf:"bytes,2,opt,name=interface,proto3" json:"interface,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *PerformBERTRequest) Reset() { *m = PerformBERTRequest{} } +func (m *PerformBERTRequest) String() string { return proto.CompactTextString(m) } +func (*PerformBERTRequest) ProtoMessage() {} +func (*PerformBERTRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_dff9ec617d9e4348, []int{4} +} + +func (m *PerformBERTRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PerformBERTRequest.Unmarshal(m, b) +} +func (m *PerformBERTRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PerformBERTRequest.Marshal(b, m, deterministic) +} +func (m *PerformBERTRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_PerformBERTRequest.Merge(m, src) +} +func (m *PerformBERTRequest) XXX_Size() int { + return xxx_messageInfo_PerformBERTRequest.Size(m) +} +func (m *PerformBERTRequest) XXX_DiscardUnknown() { + xxx_messageInfo_PerformBERTRequest.DiscardUnknown(m) } -func (m *PerformBERTRequest) Reset() { *m = PerformBERTRequest{} } -func (m *PerformBERTRequest) String() string { return proto.CompactTextString(m) } -func (*PerformBERTRequest) ProtoMessage() {} -func (*PerformBERTRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} } +var xxx_messageInfo_PerformBERTRequest proto.InternalMessageInfo -func (m *PerformBERTRequest) GetInterface() *gnoi.Path { +func (m *PerformBERTRequest) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func (m *PerformBERTRequest) GetInterface() *types.Path { if m != nil { return m.Interface } @@ -136,29 +254,117 @@ func (m *PerformBERTRequest) GetInterface() *gnoi.Path { } type PerformBERTResponse struct { - Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` - State PerformBERTResponse_BERTState `protobuf:"varint,2,opt,name=state,enum=gnoi.layer2.PerformBERTResponse_BERTState" json:"state,omitempty"` - ElapsedPeriod int64 `protobuf:"varint,3,opt,name=elapsed_period,json=elapsedPeriod" json:"elapsed_period,omitempty"` - Pattern []byte `protobuf:"bytes,4,opt,name=pattern,proto3" json:"pattern,omitempty"` - Errors int64 `protobuf:"varint,5,opt,name=errors" json:"errors,omitempty"` - ReceivedBits int64 `protobuf:"varint,6,opt,name=received_bits,json=receivedBits" json:"received_bits,omitempty"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + State PerformBERTResponse_BERTState `protobuf:"varint,2,opt,name=state,proto3,enum=gnoi.layer2.PerformBERTResponse_BERTState" json:"state,omitempty"` + ElapsedPeriod int64 `protobuf:"varint,3,opt,name=elapsed_period,json=elapsedPeriod,proto3" json:"elapsed_period,omitempty"` + Pattern []byte `protobuf:"bytes,4,opt,name=pattern,proto3" json:"pattern,omitempty"` + Errors int64 `protobuf:"varint,5,opt,name=errors,proto3" json:"errors,omitempty"` + ReceivedBits int64 `protobuf:"varint,6,opt,name=received_bits,json=receivedBits,proto3" json:"received_bits,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *PerformBERTResponse) Reset() { *m = PerformBERTResponse{} } +func (m *PerformBERTResponse) String() string { return proto.CompactTextString(m) } +func (*PerformBERTResponse) ProtoMessage() {} +func (*PerformBERTResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_dff9ec617d9e4348, []int{5} +} + +func (m *PerformBERTResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PerformBERTResponse.Unmarshal(m, b) +} +func (m *PerformBERTResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PerformBERTResponse.Marshal(b, m, deterministic) +} +func (m *PerformBERTResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_PerformBERTResponse.Merge(m, src) +} +func (m *PerformBERTResponse) XXX_Size() int { + return xxx_messageInfo_PerformBERTResponse.Size(m) +} +func (m *PerformBERTResponse) XXX_DiscardUnknown() { + xxx_messageInfo_PerformBERTResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_PerformBERTResponse proto.InternalMessageInfo + +func (m *PerformBERTResponse) GetId() string { + if m != nil { + return m.Id + } + return "" } -func (m *PerformBERTResponse) Reset() { *m = PerformBERTResponse{} } -func (m *PerformBERTResponse) String() string { return proto.CompactTextString(m) } -func (*PerformBERTResponse) ProtoMessage() {} -func (*PerformBERTResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} } +func (m *PerformBERTResponse) GetState() PerformBERTResponse_BERTState { + if m != nil { + return m.State + } + return PerformBERTResponse_UNKNOWN +} + +func (m *PerformBERTResponse) GetElapsedPeriod() int64 { + if m != nil { + return m.ElapsedPeriod + } + return 0 +} + +func (m *PerformBERTResponse) GetPattern() []byte { + if m != nil { + return m.Pattern + } + return nil +} + +func (m *PerformBERTResponse) GetErrors() int64 { + if m != nil { + return m.Errors + } + return 0 +} + +func (m *PerformBERTResponse) GetReceivedBits() int64 { + if m != nil { + return m.ReceivedBits + } + return 0 +} type ClearLLDPInterfaceRequest struct { - Interface *gnoi.Path `protobuf:"bytes,1,opt,name=interface" json:"interface,omitempty"` + Interface *types.Path `protobuf:"bytes,1,opt,name=interface,proto3" json:"interface,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *ClearLLDPInterfaceRequest) Reset() { *m = ClearLLDPInterfaceRequest{} } -func (m *ClearLLDPInterfaceRequest) String() string { return proto.CompactTextString(m) } -func (*ClearLLDPInterfaceRequest) ProtoMessage() {} -func (*ClearLLDPInterfaceRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} } +func (m *ClearLLDPInterfaceRequest) Reset() { *m = ClearLLDPInterfaceRequest{} } +func (m *ClearLLDPInterfaceRequest) String() string { return proto.CompactTextString(m) } +func (*ClearLLDPInterfaceRequest) ProtoMessage() {} +func (*ClearLLDPInterfaceRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_dff9ec617d9e4348, []int{6} +} + +func (m *ClearLLDPInterfaceRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ClearLLDPInterfaceRequest.Unmarshal(m, b) +} +func (m *ClearLLDPInterfaceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ClearLLDPInterfaceRequest.Marshal(b, m, deterministic) +} +func (m *ClearLLDPInterfaceRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ClearLLDPInterfaceRequest.Merge(m, src) +} +func (m *ClearLLDPInterfaceRequest) XXX_Size() int { + return xxx_messageInfo_ClearLLDPInterfaceRequest.Size(m) +} +func (m *ClearLLDPInterfaceRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ClearLLDPInterfaceRequest.DiscardUnknown(m) +} -func (m *ClearLLDPInterfaceRequest) GetInterface() *gnoi.Path { +var xxx_messageInfo_ClearLLDPInterfaceRequest proto.InternalMessageInfo + +func (m *ClearLLDPInterfaceRequest) GetInterface() *types.Path { if m != nil { return m.Interface } @@ -166,40 +372,124 @@ func (m *ClearLLDPInterfaceRequest) GetInterface() *gnoi.Path { } type ClearLLDPInterfaceResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ClearLLDPInterfaceResponse) Reset() { *m = ClearLLDPInterfaceResponse{} } +func (m *ClearLLDPInterfaceResponse) String() string { return proto.CompactTextString(m) } +func (*ClearLLDPInterfaceResponse) ProtoMessage() {} +func (*ClearLLDPInterfaceResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_dff9ec617d9e4348, []int{7} } -func (m *ClearLLDPInterfaceResponse) Reset() { *m = ClearLLDPInterfaceResponse{} } -func (m *ClearLLDPInterfaceResponse) String() string { return proto.CompactTextString(m) } -func (*ClearLLDPInterfaceResponse) ProtoMessage() {} -func (*ClearLLDPInterfaceResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} } +func (m *ClearLLDPInterfaceResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ClearLLDPInterfaceResponse.Unmarshal(m, b) +} +func (m *ClearLLDPInterfaceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ClearLLDPInterfaceResponse.Marshal(b, m, deterministic) +} +func (m *ClearLLDPInterfaceResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ClearLLDPInterfaceResponse.Merge(m, src) +} +func (m *ClearLLDPInterfaceResponse) XXX_Size() int { + return xxx_messageInfo_ClearLLDPInterfaceResponse.Size(m) +} +func (m *ClearLLDPInterfaceResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ClearLLDPInterfaceResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ClearLLDPInterfaceResponse proto.InternalMessageInfo type SendWakeOnLANRequest struct { - Interface *gnoi.Path `protobuf:"bytes,1,opt,name=interface" json:"interface,omitempty"` - Address string `protobuf:"bytes,2,opt,name=address" json:"address,omitempty"` - MacAddress []byte `protobuf:"bytes,3,opt,name=mac_address,json=macAddress,proto3" json:"mac_address,omitempty"` + Interface *types.Path `protobuf:"bytes,1,opt,name=interface,proto3" json:"interface,omitempty"` + Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` + MacAddress []byte `protobuf:"bytes,3,opt,name=mac_address,json=macAddress,proto3" json:"mac_address,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SendWakeOnLANRequest) Reset() { *m = SendWakeOnLANRequest{} } +func (m *SendWakeOnLANRequest) String() string { return proto.CompactTextString(m) } +func (*SendWakeOnLANRequest) ProtoMessage() {} +func (*SendWakeOnLANRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_dff9ec617d9e4348, []int{8} +} + +func (m *SendWakeOnLANRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SendWakeOnLANRequest.Unmarshal(m, b) +} +func (m *SendWakeOnLANRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SendWakeOnLANRequest.Marshal(b, m, deterministic) +} +func (m *SendWakeOnLANRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_SendWakeOnLANRequest.Merge(m, src) +} +func (m *SendWakeOnLANRequest) XXX_Size() int { + return xxx_messageInfo_SendWakeOnLANRequest.Size(m) +} +func (m *SendWakeOnLANRequest) XXX_DiscardUnknown() { + xxx_messageInfo_SendWakeOnLANRequest.DiscardUnknown(m) } -func (m *SendWakeOnLANRequest) Reset() { *m = SendWakeOnLANRequest{} } -func (m *SendWakeOnLANRequest) String() string { return proto.CompactTextString(m) } -func (*SendWakeOnLANRequest) ProtoMessage() {} -func (*SendWakeOnLANRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} } +var xxx_messageInfo_SendWakeOnLANRequest proto.InternalMessageInfo -func (m *SendWakeOnLANRequest) GetInterface() *gnoi.Path { +func (m *SendWakeOnLANRequest) GetInterface() *types.Path { if m != nil { return m.Interface } return nil } +func (m *SendWakeOnLANRequest) GetAddress() string { + if m != nil { + return m.Address + } + return "" +} + +func (m *SendWakeOnLANRequest) GetMacAddress() []byte { + if m != nil { + return m.MacAddress + } + return nil +} + type SendWakeOnLANResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SendWakeOnLANResponse) Reset() { *m = SendWakeOnLANResponse{} } +func (m *SendWakeOnLANResponse) String() string { return proto.CompactTextString(m) } +func (*SendWakeOnLANResponse) ProtoMessage() {} +func (*SendWakeOnLANResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_dff9ec617d9e4348, []int{9} +} + +func (m *SendWakeOnLANResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SendWakeOnLANResponse.Unmarshal(m, b) +} +func (m *SendWakeOnLANResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SendWakeOnLANResponse.Marshal(b, m, deterministic) +} +func (m *SendWakeOnLANResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_SendWakeOnLANResponse.Merge(m, src) +} +func (m *SendWakeOnLANResponse) XXX_Size() int { + return xxx_messageInfo_SendWakeOnLANResponse.Size(m) +} +func (m *SendWakeOnLANResponse) XXX_DiscardUnknown() { + xxx_messageInfo_SendWakeOnLANResponse.DiscardUnknown(m) } -func (m *SendWakeOnLANResponse) Reset() { *m = SendWakeOnLANResponse{} } -func (m *SendWakeOnLANResponse) String() string { return proto.CompactTextString(m) } -func (*SendWakeOnLANResponse) ProtoMessage() {} -func (*SendWakeOnLANResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{9} } +var xxx_messageInfo_SendWakeOnLANResponse proto.InternalMessageInfo func init() { + proto.RegisterEnum("gnoi.layer2.PerformBERTResponse_BERTState", PerformBERTResponse_BERTState_name, PerformBERTResponse_BERTState_value) proto.RegisterType((*ClearNeighborDiscoveryRequest)(nil), "gnoi.layer2.ClearNeighborDiscoveryRequest") proto.RegisterType((*ClearNeighborDiscoveryResponse)(nil), "gnoi.layer2.ClearNeighborDiscoveryResponse") proto.RegisterType((*ClearSpanningTreeRequest)(nil), "gnoi.layer2.ClearSpanningTreeRequest") @@ -210,7 +500,51 @@ func init() { proto.RegisterType((*ClearLLDPInterfaceResponse)(nil), "gnoi.layer2.ClearLLDPInterfaceResponse") proto.RegisterType((*SendWakeOnLANRequest)(nil), "gnoi.layer2.SendWakeOnLANRequest") proto.RegisterType((*SendWakeOnLANResponse)(nil), "gnoi.layer2.SendWakeOnLANResponse") - proto.RegisterEnum("gnoi.layer2.PerformBERTResponse_BERTState", PerformBERTResponse_BERTState_name, PerformBERTResponse_BERTState_value) +} + +func init() { proto.RegisterFile("layer2/layer2.proto", fileDescriptor_dff9ec617d9e4348) } + +var fileDescriptor_dff9ec617d9e4348 = []byte{ + // 611 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0x6d, 0x6f, 0x12, 0x41, + 0x10, 0xee, 0x41, 0xa1, 0x65, 0x68, 0x09, 0x6e, 0xb5, 0x9e, 0xf8, 0x52, 0x3c, 0x53, 0x25, 0xda, + 0x1c, 0x95, 0x7e, 0x37, 0x96, 0x42, 0x4c, 0xe3, 0x79, 0x90, 0x85, 0xa6, 0x7e, 0x6b, 0x8e, 0xbb, + 0xe9, 0x75, 0x23, 0xdc, 0x9e, 0xbb, 0xdb, 0x26, 0x8d, 0x3f, 0xcb, 0x7f, 0xe2, 0xef, 0xf1, 0x83, + 0xe1, 0x5e, 0xb0, 0xc8, 0xb5, 0xd8, 0x2f, 0x90, 0x9d, 0x79, 0xe6, 0x79, 0x26, 0x33, 0xcf, 0x1c, + 0x6c, 0x8d, 0x9d, 0x6b, 0x14, 0xad, 0x66, 0xfc, 0x67, 0x86, 0x82, 0x2b, 0x4e, 0xca, 0x7e, 0xc0, + 0x99, 0x19, 0x87, 0x6a, 0x7b, 0x3e, 0x53, 0x17, 0x97, 0x23, 0xd3, 0xe5, 0x93, 0x26, 0x0f, 0x31, + 0x70, 0x79, 0x70, 0xce, 0xfc, 0xe6, 0x14, 0xd2, 0x54, 0xd7, 0x21, 0xca, 0xf8, 0x37, 0x2e, 0x35, + 0x7c, 0x78, 0x7e, 0x34, 0x46, 0x47, 0xd8, 0xc8, 0xfc, 0x8b, 0x11, 0x17, 0x1d, 0x26, 0x5d, 0x7e, + 0x85, 0xe2, 0x9a, 0xe2, 0xf7, 0x4b, 0x94, 0x8a, 0xec, 0xc1, 0x7a, 0x84, 0x74, 0xf9, 0x58, 0xd7, + 0xea, 0x5a, 0xa3, 0xd2, 0xaa, 0x9a, 0x91, 0x9c, 0x75, 0xd0, 0x4f, 0xe2, 0x74, 0x86, 0x20, 0x3a, + 0xac, 0x39, 0x9e, 0x27, 0x50, 0x4a, 0x3d, 0x57, 0xd7, 0x1a, 0x25, 0x9a, 0x3e, 0x8d, 0x3a, 0xbc, + 0xb8, 0x4d, 0x48, 0x86, 0x3c, 0x90, 0x68, 0x74, 0x40, 0x8f, 0x10, 0x83, 0xd0, 0x09, 0x02, 0x16, + 0xf8, 0x43, 0x81, 0x98, 0x76, 0xd1, 0x80, 0x12, 0x0b, 0x14, 0x8a, 0x73, 0xc7, 0xc5, 0xa8, 0x8d, + 0x72, 0x0b, 0xe2, 0x36, 0xfa, 0x8e, 0xba, 0xa0, 0x7f, 0x93, 0xc6, 0x53, 0x78, 0x92, 0xc1, 0x92, + 0x48, 0xd8, 0x40, 0xfa, 0x28, 0xce, 0xb9, 0x98, 0xb4, 0xbb, 0x74, 0x98, 0x92, 0x57, 0x20, 0xc7, + 0xbc, 0x88, 0xb5, 0x44, 0x73, 0xcc, 0x9b, 0x17, 0xcb, 0xdd, 0x25, 0xf6, 0x33, 0x07, 0x5b, 0x73, + 0x84, 0xb1, 0xce, 0x02, 0xe3, 0x47, 0x28, 0x48, 0xe5, 0xa8, 0x98, 0xad, 0xd2, 0x7a, 0x6b, 0xde, + 0x58, 0x98, 0x99, 0x41, 0x60, 0x4e, 0x1f, 0x83, 0x69, 0x05, 0x8d, 0x0b, 0xc9, 0x2e, 0x54, 0x70, + 0xec, 0x84, 0x12, 0xbd, 0xb3, 0x10, 0x05, 0xe3, 0x9e, 0x9e, 0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0x3b, + 0x91, 0xb0, 0x9d, 0x7d, 0x10, 0x64, 0xde, 0x1e, 0x77, 0x9e, 0x67, 0xed, 0xdd, 0x7f, 0x61, 0x93, + 0x99, 0xac, 0x10, 0x0f, 0x1e, 0x2c, 0x5c, 0x07, 0xd9, 0x5d, 0xe4, 0xc8, 0xb8, 0xc1, 0xda, 0xeb, + 0x65, 0xb0, 0x99, 0xca, 0x10, 0xca, 0x37, 0x4c, 0x4d, 0x76, 0x6e, 0xb7, 0x7b, 0xcc, 0x5c, 0x5f, + 0x76, 0x0f, 0xc6, 0xca, 0xbe, 0x46, 0x7c, 0x20, 0x8b, 0xfb, 0x26, 0x19, 0x5d, 0x65, 0xf9, 0xaa, + 0xf6, 0x66, 0x29, 0x6e, 0xd6, 0xfe, 0x57, 0xd8, 0x9c, 0xdb, 0x1e, 0x79, 0x39, 0x57, 0x9b, 0x65, + 0xab, 0x9a, 0x71, 0x17, 0x24, 0x65, 0x6e, 0xaf, 0xff, 0xfa, 0x50, 0xd8, 0x37, 0xdf, 0x9b, 0xfb, + 0xa3, 0x62, 0xf4, 0xc9, 0x3c, 0xf8, 0x13, 0x00, 0x00, 0xff, 0xff, 0x69, 0x07, 0xc6, 0x05, 0xd0, + 0x05, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -221,8 +555,9 @@ var _ grpc.ClientConn // is compatible with the grpc package it is being compiled against. const _ = grpc.SupportPackageIsVersion4 -// Client API for Layer2 service - +// Layer2Client is the client API for Layer2 service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type Layer2Client interface { // ClearNeighborDiscovery will clear either a specific neighbor entry or // clear the entire table based on parameters provided. @@ -254,7 +589,7 @@ func NewLayer2Client(cc *grpc.ClientConn) Layer2Client { func (c *layer2Client) ClearNeighborDiscovery(ctx context.Context, in *ClearNeighborDiscoveryRequest, opts ...grpc.CallOption) (*ClearNeighborDiscoveryResponse, error) { out := new(ClearNeighborDiscoveryResponse) - err := grpc.Invoke(ctx, "/gnoi.layer2.Layer2/ClearNeighborDiscovery", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/gnoi.layer2.Layer2/ClearNeighborDiscovery", in, out, opts...) if err != nil { return nil, err } @@ -263,7 +598,7 @@ func (c *layer2Client) ClearNeighborDiscovery(ctx context.Context, in *ClearNeig func (c *layer2Client) ClearSpanningTree(ctx context.Context, in *ClearSpanningTreeRequest, opts ...grpc.CallOption) (*ClearSpanningTreeResponse, error) { out := new(ClearSpanningTreeResponse) - err := grpc.Invoke(ctx, "/gnoi.layer2.Layer2/ClearSpanningTree", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/gnoi.layer2.Layer2/ClearSpanningTree", in, out, opts...) if err != nil { return nil, err } @@ -271,7 +606,7 @@ func (c *layer2Client) ClearSpanningTree(ctx context.Context, in *ClearSpanningT } func (c *layer2Client) PerformBERT(ctx context.Context, in *PerformBERTRequest, opts ...grpc.CallOption) (Layer2_PerformBERTClient, error) { - stream, err := grpc.NewClientStream(ctx, &_Layer2_serviceDesc.Streams[0], c.cc, "/gnoi.layer2.Layer2/PerformBERT", opts...) + stream, err := c.cc.NewStream(ctx, &_Layer2_serviceDesc.Streams[0], "/gnoi.layer2.Layer2/PerformBERT", opts...) if err != nil { return nil, err } @@ -304,7 +639,7 @@ func (x *layer2PerformBERTClient) Recv() (*PerformBERTResponse, error) { func (c *layer2Client) ClearLLDPInterface(ctx context.Context, in *ClearLLDPInterfaceRequest, opts ...grpc.CallOption) (*ClearLLDPInterfaceResponse, error) { out := new(ClearLLDPInterfaceResponse) - err := grpc.Invoke(ctx, "/gnoi.layer2.Layer2/ClearLLDPInterface", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/gnoi.layer2.Layer2/ClearLLDPInterface", in, out, opts...) if err != nil { return nil, err } @@ -313,15 +648,14 @@ func (c *layer2Client) ClearLLDPInterface(ctx context.Context, in *ClearLLDPInte func (c *layer2Client) SendWakeOnLAN(ctx context.Context, in *SendWakeOnLANRequest, opts ...grpc.CallOption) (*SendWakeOnLANResponse, error) { out := new(SendWakeOnLANResponse) - err := grpc.Invoke(ctx, "/gnoi.layer2.Layer2/SendWakeOnLAN", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/gnoi.layer2.Layer2/SendWakeOnLAN", in, out, opts...) if err != nil { return nil, err } return out, nil } -// Server API for Layer2 service - +// Layer2Server is the server API for Layer2 service. type Layer2Server interface { // ClearNeighborDiscovery will clear either a specific neighbor entry or // clear the entire table based on parameters provided. @@ -470,47 +804,3 @@ var _Layer2_serviceDesc = grpc.ServiceDesc{ }, Metadata: "layer2/layer2.proto", } - -func init() { proto.RegisterFile("layer2/layer2.proto", fileDescriptor0) } - -var fileDescriptor0 = []byte{ - // 593 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x94, 0x54, 0x6f, 0x4f, 0xd3, 0x5e, - 0x14, 0xa6, 0x1b, 0x1b, 0xec, 0x0c, 0x96, 0x72, 0xf9, 0xfd, 0xb0, 0xd6, 0x3f, 0xd4, 0x1a, 0x74, - 0x51, 0x53, 0x70, 0xbc, 0x37, 0x32, 0xd6, 0x18, 0x62, 0xed, 0x9a, 0xbb, 0x11, 0x7c, 0x47, 0x2e, - 0xed, 0x61, 0x34, 0x8e, 0xb6, 0xde, 0x5b, 0x49, 0x88, 0x1f, 0xcb, 0x6f, 0xe2, 0xe7, 0xf1, 0x85, - 0xd9, 0x6d, 0x3b, 0x99, 0x2b, 0x4c, 0xde, 0x6c, 0xb9, 0xe7, 0xcf, 0x73, 0x9e, 0x9c, 0xe7, 0x39, - 0x85, 0xcd, 0x31, 0xbb, 0x46, 0xde, 0xd9, 0xcd, 0xfe, 0xac, 0x84, 0xc7, 0x69, 0x4c, 0x9a, 0xa3, - 0x28, 0x0e, 0xad, 0x2c, 0xa4, 0x6f, 0xa4, 0xd7, 0x09, 0x8a, 0x5d, 0xf9, 0x9b, 0xe5, 0xcd, 0x11, - 0x3c, 0x39, 0x1c, 0x23, 0xe3, 0x2e, 0x86, 0xa3, 0x8b, 0xb3, 0x98, 0xf7, 0x42, 0xe1, 0xc7, 0x57, - 0xc8, 0xaf, 0x29, 0x7e, 0xfd, 0x86, 0x22, 0x25, 0x6f, 0x60, 0x55, 0x56, 0xfa, 0xf1, 0x58, 0x53, - 0x0c, 0xa5, 0xdd, 0xea, 0xa8, 0x96, 0xc4, 0x74, 0xf6, 0xbd, 0x3c, 0x4e, 0xa7, 0x15, 0x44, 0x83, - 0x15, 0x16, 0x04, 0x1c, 0x85, 0xd0, 0x2a, 0x86, 0xd2, 0x6e, 0xd0, 0xe2, 0x69, 0x1a, 0xf0, 0xf4, - 0xb6, 0x41, 0x22, 0x89, 0x23, 0x81, 0x66, 0x0f, 0x34, 0x59, 0x31, 0x48, 0x58, 0x14, 0x85, 0xd1, - 0x68, 0xc8, 0x11, 0x0b, 0x16, 0x6d, 0x68, 0x84, 0x51, 0x8a, 0xfc, 0x9c, 0xf9, 0x28, 0x69, 0x34, - 0x3b, 0x90, 0xd1, 0xf0, 0x58, 0x7a, 0x41, 0xff, 0x24, 0xcd, 0x47, 0xf0, 0xb0, 0x04, 0x25, 0x1f, - 0xe1, 0x02, 0xf1, 0x90, 0x9f, 0xc7, 0xfc, 0xb2, 0x6b, 0xd3, 0x61, 0x01, 0xde, 0x82, 0x4a, 0x18, - 0x48, 0xd4, 0x06, 0xad, 0x84, 0xc1, 0xec, 0xb0, 0xca, 0x5d, 0xc3, 0x7e, 0x54, 0x60, 0x73, 0x06, - 0x30, 0x9b, 0x33, 0x87, 0xf8, 0x1e, 0x6a, 0x22, 0x65, 0x69, 0x86, 0xd6, 0xea, 0xbc, 0xb2, 0x6e, - 0xa8, 0x62, 0x95, 0x00, 0x58, 0x93, 0xc7, 0x60, 0xd2, 0x41, 0xb3, 0x46, 0xb2, 0x03, 0x2d, 0x1c, - 0xb3, 0x44,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0xf3, 0xab, 0x0a, 0x75, 0x47, 0xca, 0x4e, 0x04, 0x6c, - 0x95, 0x1f, 0x04, 0x99, 0xb5, 0xc7, 0x9d, 0xe7, 0xa9, 0xbf, 0xfe, 0xa7, 0xda, 0x7c, 0x27, 0x4b, - 0x24, 0x80, 0x8d, 0xb9, 0xeb, 0x20, 0x3b, 0xf3, 0x18, 0x25, 0x37, 0xa8, 0xbf, 0x58, 0x54, 0x36, - 0x9d, 0x32, 0x84, 0xe6, 0x0d, 0x53, 0x93, 0xed, 0xdb, 0xed, 0x9e, 0x21, 0x1b, 0x8b, 0xee, 0xc1, - 0x5c, 0xda, 0x53, 0xc8, 0x08, 0xc8, 0xbc, 0xde, 0xa4, 0x84, 0x55, 0x99, 0xaf, 0xf4, 0x97, 0x0b, - 0xeb, 0xa6, 0xf4, 0x3f, 0xc3, 0xfa, 0x8c, 0x7a, 0xe4, 0xd9, 0x4c, 0x6f, 0x99, 0xad, 0x74, 0xf3, - 0xae, 0x92, 0x02, 0xb9, 0xbb, 0xfa, 0xf3, 0x5d, 0x6d, 0xcf, 0x7a, 0x6b, 0xed, 0x9d, 0xd5, 0xe5, - 0x27, 0x73, 0xff, 0x77, 0x00, 0x00, 0x00, 0xff, 0xff, 0x4d, 0x41, 0x21, 0x76, 0xb5, 0x05, 0x00, - 0x00, -} diff --git a/layer2/layer2.proto b/layer2/layer2.proto index 22407edf..fb4fe22f 100644 --- a/layer2/layer2.proto +++ b/layer2/layer2.proto @@ -18,7 +18,7 @@ syntax = "proto3"; package gnoi.layer2; -import "types/types.proto"; +import "github.com/openconfig/gnoi/types/types.proto"; option (gnoi.gnoi_version) = "0.1.0"; diff --git a/mpls/BUILD.bazel b/mpls/BUILD.bazel deleted file mode 100644 index d11fed74..00000000 --- a/mpls/BUILD.bazel +++ /dev/null @@ -1,14 +0,0 @@ -load("@io_bazel_rules_go//proto:go_proto_library.bzl", "go_proto_library") - -proto_library( - name = "mpls_proto", - srcs = ["mpls.proto"], -) - -go_proto_library( - name = "go_default_library", - srcs = ["mpls.proto"], - visibility = ["//visibility:public"], - rules_go_repo_only_for_internal_use = "@", - has_services = 1, -) diff --git a/mpls/mpls.pb.go b/mpls/mpls.pb.go index aa12e11b..42f0fbb8 100644 --- a/mpls/mpls.pb.go +++ b/mpls/mpls.pb.go @@ -1,33 +1,15 @@ -// Code generated by protoc-gen-go. +// Code generated by protoc-gen-go. DO NOT EDIT. // source: mpls/mpls.proto -// DO NOT EDIT! - -/* -Package gnoi_mpls is a generated protocol buffer package. - -It is generated from these files: - mpls/mpls.proto - -It has these top-level messages: - ClearLSPRequest - ClearLSPResponse - ClearLSPCountersRequest - ClearLSPCountersResponse - MPLSPingPWEDestination - MPLSPingRSVPTEDestination - MPLSPingRequest - MPLSPingResponse -*/ -package gnoi_mpls -import proto "github.com/golang/protobuf/proto" -import fmt "fmt" -import math "math" -import _ "types" +package gnoi_mpls import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + _ "github.com/openconfig/gnoi/types" context "golang.org/x/net/context" grpc "google.golang.org/grpc" + math "math" ) // Reference imports to suppress errors if they are not otherwise used. @@ -69,6 +51,7 @@ var ClearLSPRequest_Mode_name = map[int32]string{ 3: "AUTOBW_AGGRESSIVE", 4: "AUTOBW_NONAGGRESSIVE", } + var ClearLSPRequest_Mode_value = map[string]int32{ "DEFAULT": 0, "NONAGGRESSIVE": 0, @@ -81,7 +64,10 @@ var ClearLSPRequest_Mode_value = map[string]int32{ func (x ClearLSPRequest_Mode) String() string { return proto.EnumName(ClearLSPRequest_Mode_name, int32(x)) } -func (ClearLSPRequest_Mode) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0, 0} } + +func (ClearLSPRequest_Mode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_d4448d3521f3d4b5, []int{0, 0} +} type MPLSPingRequest_ReplyMode int32 @@ -94,6 +80,7 @@ var MPLSPingRequest_ReplyMode_name = map[int32]string{ 0: "IPV4", 1: "ROUTER_ALERT", } + var MPLSPingRequest_ReplyMode_value = map[string]int32{ "IPV4": 0, "ROUTER_ALERT": 1, @@ -102,7 +89,10 @@ var MPLSPingRequest_ReplyMode_value = map[string]int32{ func (x MPLSPingRequest_ReplyMode) String() string { return proto.EnumName(MPLSPingRequest_ReplyMode_name, int32(x)) } -func (MPLSPingRequest_ReplyMode) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{6, 0} } + +func (MPLSPingRequest_ReplyMode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_d4448d3521f3d4b5, []int{6, 0} +} type MPLSPingResponse_EchoResponseCode int32 @@ -120,6 +110,7 @@ var MPLSPingResponse_EchoResponseCode_name = map[int32]string{ 1: "NOT_SENT", 2: "TIMEOUT", } + var MPLSPingResponse_EchoResponseCode_value = map[string]int32{ "SUCCESS": 0, "NOT_SENT": 1, @@ -129,59 +120,210 @@ var MPLSPingResponse_EchoResponseCode_value = map[string]int32{ func (x MPLSPingResponse_EchoResponseCode) String() string { return proto.EnumName(MPLSPingResponse_EchoResponseCode_name, int32(x)) } + func (MPLSPingResponse_EchoResponseCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor0, []int{7, 0} + return fileDescriptor_d4448d3521f3d4b5, []int{7, 0} } // Request to clear a single tunnel on a target device. type ClearLSPRequest struct { - Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` - Mode ClearLSPRequest_Mode `protobuf:"varint,3,opt,name=mode,enum=gnoi.mpls.ClearLSPRequest_Mode" json:"mode,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Mode ClearLSPRequest_Mode `protobuf:"varint,3,opt,name=mode,proto3,enum=gnoi.mpls.ClearLSPRequest_Mode" json:"mode,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ClearLSPRequest) Reset() { *m = ClearLSPRequest{} } +func (m *ClearLSPRequest) String() string { return proto.CompactTextString(m) } +func (*ClearLSPRequest) ProtoMessage() {} +func (*ClearLSPRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_d4448d3521f3d4b5, []int{0} +} + +func (m *ClearLSPRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ClearLSPRequest.Unmarshal(m, b) +} +func (m *ClearLSPRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ClearLSPRequest.Marshal(b, m, deterministic) +} +func (m *ClearLSPRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ClearLSPRequest.Merge(m, src) +} +func (m *ClearLSPRequest) XXX_Size() int { + return xxx_messageInfo_ClearLSPRequest.Size(m) +} +func (m *ClearLSPRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ClearLSPRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ClearLSPRequest proto.InternalMessageInfo + +func (m *ClearLSPRequest) GetName() string { + if m != nil { + return m.Name + } + return "" } -func (m *ClearLSPRequest) Reset() { *m = ClearLSPRequest{} } -func (m *ClearLSPRequest) String() string { return proto.CompactTextString(m) } -func (*ClearLSPRequest) ProtoMessage() {} -func (*ClearLSPRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } +func (m *ClearLSPRequest) GetMode() ClearLSPRequest_Mode { + if m != nil { + return m.Mode + } + return ClearLSPRequest_DEFAULT +} type ClearLSPResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *ClearLSPResponse) Reset() { *m = ClearLSPResponse{} } -func (m *ClearLSPResponse) String() string { return proto.CompactTextString(m) } -func (*ClearLSPResponse) ProtoMessage() {} -func (*ClearLSPResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } +func (m *ClearLSPResponse) Reset() { *m = ClearLSPResponse{} } +func (m *ClearLSPResponse) String() string { return proto.CompactTextString(m) } +func (*ClearLSPResponse) ProtoMessage() {} +func (*ClearLSPResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_d4448d3521f3d4b5, []int{1} +} + +func (m *ClearLSPResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ClearLSPResponse.Unmarshal(m, b) +} +func (m *ClearLSPResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ClearLSPResponse.Marshal(b, m, deterministic) +} +func (m *ClearLSPResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ClearLSPResponse.Merge(m, src) +} +func (m *ClearLSPResponse) XXX_Size() int { + return xxx_messageInfo_ClearLSPResponse.Size(m) +} +func (m *ClearLSPResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ClearLSPResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ClearLSPResponse proto.InternalMessageInfo // Request to clear a single tunnel counters on a target device. type ClearLSPCountersRequest struct { - Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ClearLSPCountersRequest) Reset() { *m = ClearLSPCountersRequest{} } +func (m *ClearLSPCountersRequest) String() string { return proto.CompactTextString(m) } +func (*ClearLSPCountersRequest) ProtoMessage() {} +func (*ClearLSPCountersRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_d4448d3521f3d4b5, []int{2} } -func (m *ClearLSPCountersRequest) Reset() { *m = ClearLSPCountersRequest{} } -func (m *ClearLSPCountersRequest) String() string { return proto.CompactTextString(m) } -func (*ClearLSPCountersRequest) ProtoMessage() {} -func (*ClearLSPCountersRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} } +func (m *ClearLSPCountersRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ClearLSPCountersRequest.Unmarshal(m, b) +} +func (m *ClearLSPCountersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ClearLSPCountersRequest.Marshal(b, m, deterministic) +} +func (m *ClearLSPCountersRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ClearLSPCountersRequest.Merge(m, src) +} +func (m *ClearLSPCountersRequest) XXX_Size() int { + return xxx_messageInfo_ClearLSPCountersRequest.Size(m) +} +func (m *ClearLSPCountersRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ClearLSPCountersRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ClearLSPCountersRequest proto.InternalMessageInfo + +func (m *ClearLSPCountersRequest) GetName() string { + if m != nil { + return m.Name + } + return "" +} type ClearLSPCountersResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *ClearLSPCountersResponse) Reset() { *m = ClearLSPCountersResponse{} } -func (m *ClearLSPCountersResponse) String() string { return proto.CompactTextString(m) } -func (*ClearLSPCountersResponse) ProtoMessage() {} -func (*ClearLSPCountersResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} } +func (m *ClearLSPCountersResponse) Reset() { *m = ClearLSPCountersResponse{} } +func (m *ClearLSPCountersResponse) String() string { return proto.CompactTextString(m) } +func (*ClearLSPCountersResponse) ProtoMessage() {} +func (*ClearLSPCountersResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_d4448d3521f3d4b5, []int{3} +} + +func (m *ClearLSPCountersResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ClearLSPCountersResponse.Unmarshal(m, b) +} +func (m *ClearLSPCountersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ClearLSPCountersResponse.Marshal(b, m, deterministic) +} +func (m *ClearLSPCountersResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ClearLSPCountersResponse.Merge(m, src) +} +func (m *ClearLSPCountersResponse) XXX_Size() int { + return xxx_messageInfo_ClearLSPCountersResponse.Size(m) +} +func (m *ClearLSPCountersResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ClearLSPCountersResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ClearLSPCountersResponse proto.InternalMessageInfo type MPLSPingPWEDestination struct { // The address of the egress LER that the MPLS ping should be sent on when // destined to a PWE service. - Eler string `protobuf:"bytes,1,opt,name=eler" json:"eler,omitempty"` + Eler string `protobuf:"bytes,1,opt,name=eler,proto3" json:"eler,omitempty"` // The virtual circuit ID for the PWE via which the ping should be sent. - Vcid uint32 `protobuf:"varint,2,opt,name=vcid" json:"vcid,omitempty"` + Vcid uint32 `protobuf:"varint,2,opt,name=vcid,proto3" json:"vcid,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *MPLSPingPWEDestination) Reset() { *m = MPLSPingPWEDestination{} } +func (m *MPLSPingPWEDestination) String() string { return proto.CompactTextString(m) } +func (*MPLSPingPWEDestination) ProtoMessage() {} +func (*MPLSPingPWEDestination) Descriptor() ([]byte, []int) { + return fileDescriptor_d4448d3521f3d4b5, []int{4} } -func (m *MPLSPingPWEDestination) Reset() { *m = MPLSPingPWEDestination{} } -func (m *MPLSPingPWEDestination) String() string { return proto.CompactTextString(m) } -func (*MPLSPingPWEDestination) ProtoMessage() {} -func (*MPLSPingPWEDestination) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} } +func (m *MPLSPingPWEDestination) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_MPLSPingPWEDestination.Unmarshal(m, b) +} +func (m *MPLSPingPWEDestination) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_MPLSPingPWEDestination.Marshal(b, m, deterministic) +} +func (m *MPLSPingPWEDestination) XXX_Merge(src proto.Message) { + xxx_messageInfo_MPLSPingPWEDestination.Merge(m, src) +} +func (m *MPLSPingPWEDestination) XXX_Size() int { + return xxx_messageInfo_MPLSPingPWEDestination.Size(m) +} +func (m *MPLSPingPWEDestination) XXX_DiscardUnknown() { + xxx_messageInfo_MPLSPingPWEDestination.DiscardUnknown(m) +} + +var xxx_messageInfo_MPLSPingPWEDestination proto.InternalMessageInfo + +func (m *MPLSPingPWEDestination) GetEler() string { + if m != nil { + return m.Eler + } + return "" +} + +func (m *MPLSPingPWEDestination) GetVcid() uint32 { + if m != nil { + return m.Vcid + } + return 0 +} // MPLSPingRSVPTEDestination specifies the destination for an MPLS Ping in // terms of an absolute specification of an RSVP-TE LSP. It can be used to @@ -189,19 +331,63 @@ func (*MPLSPingPWEDestination) Descriptor() ([]byte, []int) { return fileDescrip type MPLSPingRSVPTEDestination struct { // The IPv4 or IPv6 address used by the system initiating (acting as the // head-end) of the RSVP-TE LSP. - Src string `protobuf:"bytes,1,opt,name=src" json:"src,omitempty"` + Src string `protobuf:"bytes,1,opt,name=src,proto3" json:"src,omitempty"` // The IPv4 or IPv6 address used by the system terminating (acting as the // tail-end) of the RSVP-TE LSP. - Dst string `protobuf:"bytes,2,opt,name=dst" json:"dst,omitempty"` + Dst string `protobuf:"bytes,2,opt,name=dst,proto3" json:"dst,omitempty"` // The extended tunnel ID of the RSVP-TE LSP, expressed as an unsigned, 32b // integer. - ExtendedTunnelId uint32 `protobuf:"varint,3,opt,name=extended_tunnel_id,json=extendedTunnelId" json:"extended_tunnel_id,omitempty"` + ExtendedTunnelId uint32 `protobuf:"varint,3,opt,name=extended_tunnel_id,json=extendedTunnelId,proto3" json:"extended_tunnel_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *MPLSPingRSVPTEDestination) Reset() { *m = MPLSPingRSVPTEDestination{} } +func (m *MPLSPingRSVPTEDestination) String() string { return proto.CompactTextString(m) } +func (*MPLSPingRSVPTEDestination) ProtoMessage() {} +func (*MPLSPingRSVPTEDestination) Descriptor() ([]byte, []int) { + return fileDescriptor_d4448d3521f3d4b5, []int{5} +} + +func (m *MPLSPingRSVPTEDestination) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_MPLSPingRSVPTEDestination.Unmarshal(m, b) +} +func (m *MPLSPingRSVPTEDestination) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_MPLSPingRSVPTEDestination.Marshal(b, m, deterministic) +} +func (m *MPLSPingRSVPTEDestination) XXX_Merge(src proto.Message) { + xxx_messageInfo_MPLSPingRSVPTEDestination.Merge(m, src) +} +func (m *MPLSPingRSVPTEDestination) XXX_Size() int { + return xxx_messageInfo_MPLSPingRSVPTEDestination.Size(m) +} +func (m *MPLSPingRSVPTEDestination) XXX_DiscardUnknown() { + xxx_messageInfo_MPLSPingRSVPTEDestination.DiscardUnknown(m) +} + +var xxx_messageInfo_MPLSPingRSVPTEDestination proto.InternalMessageInfo + +func (m *MPLSPingRSVPTEDestination) GetSrc() string { + if m != nil { + return m.Src + } + return "" } -func (m *MPLSPingRSVPTEDestination) Reset() { *m = MPLSPingRSVPTEDestination{} } -func (m *MPLSPingRSVPTEDestination) String() string { return proto.CompactTextString(m) } -func (*MPLSPingRSVPTEDestination) ProtoMessage() {} -func (*MPLSPingRSVPTEDestination) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} } +func (m *MPLSPingRSVPTEDestination) GetDst() string { + if m != nil { + return m.Dst + } + return "" +} + +func (m *MPLSPingRSVPTEDestination) GetExtendedTunnelId() uint32 { + if m != nil { + return m.ExtendedTunnelId + } + return 0 +} // MPLSPingRequest specifies the parameters that should be used as input from // the client, to a system that is initiating an RFC4379 MPLS ping request. @@ -215,46 +401,75 @@ type MPLSPingRequest struct { // *MPLSPingRequest_RsvpteLspName // *MPLSPingRequest_RsvpteLsp Destination isMPLSPingRequest_Destination `protobuf_oneof:"destination"` - ReplyMode MPLSPingRequest_ReplyMode `protobuf:"varint,6,opt,name=reply_mode,json=replyMode,enum=gnoi.mpls.MPLSPingRequest_ReplyMode" json:"reply_mode,omitempty"` + ReplyMode MPLSPingRequest_ReplyMode `protobuf:"varint,6,opt,name=reply_mode,json=replyMode,proto3,enum=gnoi.mpls.MPLSPingRequest_ReplyMode" json:"reply_mode,omitempty"` // The number of MPLS echo request packets to send. - Count uint32 `protobuf:"varint,7,opt,name=count" json:"count,omitempty"` + Count uint32 `protobuf:"varint,7,opt,name=count,proto3" json:"count,omitempty"` // The size (in bytes) of each MPLS echo request packet. - Size uint32 `protobuf:"varint,8,opt,name=size" json:"size,omitempty"` + Size uint32 `protobuf:"varint,8,opt,name=size,proto3" json:"size,omitempty"` // The source IPv4 address that should be used in the request packet. - SourceAddress string `protobuf:"bytes,9,opt,name=source_address,json=sourceAddress" json:"source_address,omitempty"` + SourceAddress string `protobuf:"bytes,9,opt,name=source_address,json=sourceAddress,proto3" json:"source_address,omitempty"` // The MPLS TTL that should be set in the packets sent. - MplsTtl uint32 `protobuf:"varint,10,opt,name=mpls_ttl,json=mplsTtl" json:"mpls_ttl,omitempty"` + MplsTtl uint32 `protobuf:"varint,10,opt,name=mpls_ttl,json=mplsTtl,proto3" json:"mpls_ttl,omitempty"` // The value of the traffic class (TC, formerly known as EXP) bits that // should be set in the MPLS ping packets. - TrafficClass uint32 `protobuf:"varint,11,opt,name=traffic_class,json=trafficClass" json:"traffic_class,omitempty"` + TrafficClass uint32 `protobuf:"varint,11,opt,name=traffic_class,json=trafficClass,proto3" json:"traffic_class,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *MPLSPingRequest) Reset() { *m = MPLSPingRequest{} } +func (m *MPLSPingRequest) String() string { return proto.CompactTextString(m) } +func (*MPLSPingRequest) ProtoMessage() {} +func (*MPLSPingRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_d4448d3521f3d4b5, []int{6} +} + +func (m *MPLSPingRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_MPLSPingRequest.Unmarshal(m, b) +} +func (m *MPLSPingRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_MPLSPingRequest.Marshal(b, m, deterministic) +} +func (m *MPLSPingRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_MPLSPingRequest.Merge(m, src) +} +func (m *MPLSPingRequest) XXX_Size() int { + return xxx_messageInfo_MPLSPingRequest.Size(m) +} +func (m *MPLSPingRequest) XXX_DiscardUnknown() { + xxx_messageInfo_MPLSPingRequest.DiscardUnknown(m) } -func (m *MPLSPingRequest) Reset() { *m = MPLSPingRequest{} } -func (m *MPLSPingRequest) String() string { return proto.CompactTextString(m) } -func (*MPLSPingRequest) ProtoMessage() {} -func (*MPLSPingRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} } +var xxx_messageInfo_MPLSPingRequest proto.InternalMessageInfo type isMPLSPingRequest_Destination interface { isMPLSPingRequest_Destination() } type MPLSPingRequest_LdpFec struct { - LdpFec string `protobuf:"bytes,1,opt,name=ldp_fec,json=ldpFec,oneof"` + LdpFec string `protobuf:"bytes,1,opt,name=ldp_fec,json=ldpFec,proto3,oneof"` } + type MPLSPingRequest_Fec129Pwe struct { - Fec129Pwe *MPLSPingPWEDestination `protobuf:"bytes,2,opt,name=fec129_pwe,json=fec129Pwe,oneof"` + Fec129Pwe *MPLSPingPWEDestination `protobuf:"bytes,2,opt,name=fec129_pwe,json=fec129Pwe,proto3,oneof"` } + type MPLSPingRequest_RsvpteLspName struct { - RsvpteLspName string `protobuf:"bytes,4,opt,name=rsvpte_lsp_name,json=rsvpteLspName,oneof"` + RsvpteLspName string `protobuf:"bytes,4,opt,name=rsvpte_lsp_name,json=rsvpteLspName,proto3,oneof"` } + type MPLSPingRequest_RsvpteLsp struct { - RsvpteLsp *MPLSPingRSVPTEDestination `protobuf:"bytes,5,opt,name=rsvpte_lsp,json=rsvpteLsp,oneof"` + RsvpteLsp *MPLSPingRSVPTEDestination `protobuf:"bytes,5,opt,name=rsvpte_lsp,json=rsvpteLsp,proto3,oneof"` } -func (*MPLSPingRequest_LdpFec) isMPLSPingRequest_Destination() {} -func (*MPLSPingRequest_Fec129Pwe) isMPLSPingRequest_Destination() {} +func (*MPLSPingRequest_LdpFec) isMPLSPingRequest_Destination() {} + +func (*MPLSPingRequest_Fec129Pwe) isMPLSPingRequest_Destination() {} + func (*MPLSPingRequest_RsvpteLspName) isMPLSPingRequest_Destination() {} -func (*MPLSPingRequest_RsvpteLsp) isMPLSPingRequest_Destination() {} + +func (*MPLSPingRequest_RsvpteLsp) isMPLSPingRequest_Destination() {} func (m *MPLSPingRequest) GetDestination() isMPLSPingRequest_Destination { if m != nil { @@ -291,6 +506,48 @@ func (m *MPLSPingRequest) GetRsvpteLsp() *MPLSPingRSVPTEDestination { return nil } +func (m *MPLSPingRequest) GetReplyMode() MPLSPingRequest_ReplyMode { + if m != nil { + return m.ReplyMode + } + return MPLSPingRequest_IPV4 +} + +func (m *MPLSPingRequest) GetCount() uint32 { + if m != nil { + return m.Count + } + return 0 +} + +func (m *MPLSPingRequest) GetSize() uint32 { + if m != nil { + return m.Size + } + return 0 +} + +func (m *MPLSPingRequest) GetSourceAddress() string { + if m != nil { + return m.SourceAddress + } + return "" +} + +func (m *MPLSPingRequest) GetMplsTtl() uint32 { + if m != nil { + return m.MplsTtl + } + return 0 +} + +func (m *MPLSPingRequest) GetTrafficClass() uint32 { + if m != nil { + return m.TrafficClass + } + return 0 +} + // XXX_OneofFuncs is for the internal use of the proto package. func (*MPLSPingRequest) 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 _MPLSPingRequest_OneofMarshaler, _MPLSPingRequest_OneofUnmarshaler, _MPLSPingRequest_OneofSizer, []interface{}{ @@ -371,21 +628,21 @@ func _MPLSPingRequest_OneofSizer(msg proto.Message) (n int) { // destination switch x := m.Destination.(type) { case *MPLSPingRequest_LdpFec: - n += proto.SizeVarint(1<<3 | proto.WireBytes) + n += 1 // tag and wire n += proto.SizeVarint(uint64(len(x.LdpFec))) n += len(x.LdpFec) case *MPLSPingRequest_Fec129Pwe: s := proto.Size(x.Fec129Pwe) - n += proto.SizeVarint(2<<3 | proto.WireBytes) + n += 1 // tag and wire n += proto.SizeVarint(uint64(s)) n += s case *MPLSPingRequest_RsvpteLspName: - n += proto.SizeVarint(4<<3 | proto.WireBytes) + n += 1 // tag and wire n += proto.SizeVarint(uint64(len(x.RsvpteLspName))) n += len(x.RsvpteLspName) case *MPLSPingRequest_RsvpteLsp: s := proto.Size(x.RsvpteLsp) - n += proto.SizeVarint(5<<3 | proto.WireBytes) + n += 1 // tag and wire n += proto.SizeVarint(uint64(s)) n += s case nil: @@ -399,20 +656,67 @@ func _MPLSPingRequest_OneofSizer(msg proto.Message) (n int) { // each MPLS Echo Response packet it receives associated with an input MPLSPing // RPC. type MPLSPingResponse struct { - Seq uint32 `protobuf:"varint,1,opt,name=seq" json:"seq,omitempty"` + Seq uint32 `protobuf:"varint,1,opt,name=seq,proto3" json:"seq,omitempty"` // The response that was received from the egress LER. - Response MPLSPingResponse_EchoResponseCode `protobuf:"varint,2,opt,name=response,enum=gnoi.mpls.MPLSPingResponse_EchoResponseCode" json:"response,omitempty"` + Response MPLSPingResponse_EchoResponseCode `protobuf:"varint,2,opt,name=response,proto3,enum=gnoi.mpls.MPLSPingResponse_EchoResponseCode" json:"response,omitempty"` // The time (in nanoseconds) between transmission of the Echo Response, // and the echo reply. - ResponseTime uint64 `protobuf:"varint,3,opt,name=response_time,json=responseTime" json:"response_time,omitempty"` + ResponseTime uint64 `protobuf:"varint,3,opt,name=response_time,json=responseTime,proto3" json:"response_time,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *MPLSPingResponse) Reset() { *m = MPLSPingResponse{} } +func (m *MPLSPingResponse) String() string { return proto.CompactTextString(m) } +func (*MPLSPingResponse) ProtoMessage() {} +func (*MPLSPingResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_d4448d3521f3d4b5, []int{7} } -func (m *MPLSPingResponse) Reset() { *m = MPLSPingResponse{} } -func (m *MPLSPingResponse) String() string { return proto.CompactTextString(m) } -func (*MPLSPingResponse) ProtoMessage() {} -func (*MPLSPingResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} } +func (m *MPLSPingResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_MPLSPingResponse.Unmarshal(m, b) +} +func (m *MPLSPingResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_MPLSPingResponse.Marshal(b, m, deterministic) +} +func (m *MPLSPingResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MPLSPingResponse.Merge(m, src) +} +func (m *MPLSPingResponse) XXX_Size() int { + return xxx_messageInfo_MPLSPingResponse.Size(m) +} +func (m *MPLSPingResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MPLSPingResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MPLSPingResponse proto.InternalMessageInfo + +func (m *MPLSPingResponse) GetSeq() uint32 { + if m != nil { + return m.Seq + } + return 0 +} + +func (m *MPLSPingResponse) GetResponse() MPLSPingResponse_EchoResponseCode { + if m != nil { + return m.Response + } + return MPLSPingResponse_SUCCESS +} + +func (m *MPLSPingResponse) GetResponseTime() uint64 { + if m != nil { + return m.ResponseTime + } + return 0 +} func init() { + proto.RegisterEnum("gnoi.mpls.ClearLSPRequest_Mode", ClearLSPRequest_Mode_name, ClearLSPRequest_Mode_value) + proto.RegisterEnum("gnoi.mpls.MPLSPingRequest_ReplyMode", MPLSPingRequest_ReplyMode_name, MPLSPingRequest_ReplyMode_value) + proto.RegisterEnum("gnoi.mpls.MPLSPingResponse_EchoResponseCode", MPLSPingResponse_EchoResponseCode_name, MPLSPingResponse_EchoResponseCode_value) proto.RegisterType((*ClearLSPRequest)(nil), "gnoi.mpls.ClearLSPRequest") proto.RegisterType((*ClearLSPResponse)(nil), "gnoi.mpls.ClearLSPResponse") proto.RegisterType((*ClearLSPCountersRequest)(nil), "gnoi.mpls.ClearLSPCountersRequest") @@ -421,9 +725,61 @@ func init() { proto.RegisterType((*MPLSPingRSVPTEDestination)(nil), "gnoi.mpls.MPLSPingRSVPTEDestination") proto.RegisterType((*MPLSPingRequest)(nil), "gnoi.mpls.MPLSPingRequest") proto.RegisterType((*MPLSPingResponse)(nil), "gnoi.mpls.MPLSPingResponse") - proto.RegisterEnum("gnoi.mpls.ClearLSPRequest_Mode", ClearLSPRequest_Mode_name, ClearLSPRequest_Mode_value) - proto.RegisterEnum("gnoi.mpls.MPLSPingRequest_ReplyMode", MPLSPingRequest_ReplyMode_name, MPLSPingRequest_ReplyMode_value) - proto.RegisterEnum("gnoi.mpls.MPLSPingResponse_EchoResponseCode", MPLSPingResponse_EchoResponseCode_name, MPLSPingResponse_EchoResponseCode_value) +} + +func init() { proto.RegisterFile("mpls/mpls.proto", fileDescriptor_d4448d3521f3d4b5) } + +var fileDescriptor_d4448d3521f3d4b5 = []byte{ + // 778 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x54, 0x4f, 0x8f, 0xda, 0x46, + 0x14, 0xb7, 0xc1, 0x2c, 0xe6, 0x81, 0xc1, 0x19, 0xa5, 0xad, 0x97, 0x1e, 0x9a, 0x3a, 0xad, 0xba, + 0x87, 0xad, 0xd9, 0x90, 0x5e, 0xda, 0x43, 0x55, 0x20, 0xce, 0x2e, 0x12, 0x0b, 0x68, 0x6c, 0x36, + 0xa7, 0xca, 0x22, 0xf6, 0x40, 0x2c, 0x19, 0xdb, 0xf1, 0x0c, 0x9b, 0xa6, 0x5f, 0xb2, 0x52, 0xbe, + 0x48, 0x4f, 0xbd, 0x57, 0x33, 0xb6, 0x61, 0x21, 0x64, 0x2f, 0xd6, 0x9b, 0xdf, 0x7b, 0xef, 0xf7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0xd9, 0xb2, 0xdc, 0xc4, 0xb2, 0xfd, 0x77, 0x49, 0xf9, 0x18, 0xf1, 0xd6, 0xed, 0xbc, + 0x79, 0x35, 0xa5, 0xec, 0xb1, 0x70, 0x93, 0x1f, 0x0a, 0x05, 0xb7, 0x4a, 0xd0, 0x0d, 0x37, 0xc4, + 0xfc, 0x0d, 0xf4, 0x63, 0x0a, 0x7e, 0x1b, 0x9c, 0xc5, 0x68, 0x64, 0x3b, 0x8e, 0x2e, 0xa1, 0x16, + 0xa8, 0xd3, 0x99, 0xeb, 0x39, 0xf6, 0xd4, 0xd5, 0x65, 0xae, 0x72, 0xc7, 0xb7, 0xf6, 0x6c, 0xe1, + 0xea, 0x95, 0xfe, 0x7f, 0x32, 0x28, 0x3c, 0x21, 0x64, 0x83, 0x5a, 0xfe, 0x99, 0xa8, 0xfb, 0xe5, + 0x3b, 0xd4, 0xfd, 0xf6, 0xa4, 0xae, 0xf8, 0x85, 0x25, 0xf4, 0xe7, 0xfe, 0x46, 0x94, 0x3f, 0x38, + 0x32, 0x4f, 0xb8, 0x1c, 0x1d, 0x8b, 0xee, 0xf3, 0x47, 0x6d, 0x76, 0xf4, 0xd7, 0xa0, 0x96, 0xed, + 0x3b, 0xc8, 0xf2, 0x68, 0x0d, 0x0f, 0xb2, 0x3c, 0xee, 0xb7, 0x29, 0x5d, 0xc9, 0x43, 0xf5, 0xd3, + 0xef, 0xb5, 0x2b, 0xeb, 0x85, 0x75, 0xf5, 0xf6, 0x4c, 0x5c, 0xec, 0x97, 0xff, 0x07, 0x00, 0x00, + 0xff, 0xff, 0x2b, 0x14, 0x01, 0x1f, 0xfd, 0x05, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -434,8 +790,9 @@ var _ grpc.ClientConn // is compatible with the grpc package it is being compiled against. const _ = grpc.SupportPackageIsVersion4 -// Client API for MPLS service - +// MPLSClient is the client API for MPLS service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type MPLSClient interface { // ClearLSP clears a single tunnel (requests for it's route to be // recalculated). @@ -456,7 +813,7 @@ func NewMPLSClient(cc *grpc.ClientConn) MPLSClient { func (c *mPLSClient) ClearLSP(ctx context.Context, in *ClearLSPRequest, opts ...grpc.CallOption) (*ClearLSPResponse, error) { out := new(ClearLSPResponse) - err := grpc.Invoke(ctx, "/gnoi.mpls.MPLS/ClearLSP", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/gnoi.mpls.MPLS/ClearLSP", in, out, opts...) if err != nil { return nil, err } @@ -465,7 +822,7 @@ func (c *mPLSClient) ClearLSP(ctx context.Context, in *ClearLSPRequest, opts ... func (c *mPLSClient) ClearLSPCounters(ctx context.Context, in *ClearLSPCountersRequest, opts ...grpc.CallOption) (*ClearLSPCountersResponse, error) { out := new(ClearLSPCountersResponse) - err := grpc.Invoke(ctx, "/gnoi.mpls.MPLS/ClearLSPCounters", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/gnoi.mpls.MPLS/ClearLSPCounters", in, out, opts...) if err != nil { return nil, err } @@ -473,7 +830,7 @@ func (c *mPLSClient) ClearLSPCounters(ctx context.Context, in *ClearLSPCountersR } func (c *mPLSClient) MPLSPing(ctx context.Context, in *MPLSPingRequest, opts ...grpc.CallOption) (MPLS_MPLSPingClient, error) { - stream, err := grpc.NewClientStream(ctx, &_MPLS_serviceDesc.Streams[0], c.cc, "/gnoi.mpls.MPLS/MPLSPing", opts...) + stream, err := c.cc.NewStream(ctx, &_MPLS_serviceDesc.Streams[0], "/gnoi.mpls.MPLS/MPLSPing", opts...) if err != nil { return nil, err } @@ -504,8 +861,7 @@ func (x *mPLSMPLSPingClient) Recv() (*MPLSPingResponse, error) { return m, nil } -// Server API for MPLS service - +// MPLSServer is the server API for MPLS service. type MPLSServer interface { // ClearLSP clears a single tunnel (requests for it's route to be // recalculated). @@ -599,57 +955,3 @@ var _MPLS_serviceDesc = grpc.ServiceDesc{ }, Metadata: "mpls/mpls.proto", } - -func init() { proto.RegisterFile("mpls/mpls.proto", fileDescriptor0) } - -var fileDescriptor0 = []byte{ - // 756 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x7c, 0x54, 0x4d, 0x6f, 0xf2, 0x46, - 0x10, 0xb6, 0xc1, 0x04, 0x33, 0x60, 0x70, 0x56, 0x6f, 0x5b, 0x87, 0x1e, 0x9a, 0x3a, 0xad, 0x9a, - 0x43, 0xea, 0x24, 0xa4, 0x97, 0xf6, 0x50, 0x15, 0x88, 0x93, 0x20, 0x11, 0x40, 0x6b, 0x93, 0x9c, - 0x2a, 0x8b, 0xda, 0x4b, 0x6a, 0xc9, 0xd8, 0x8e, 0xd7, 0x24, 0x4d, 0xff, 0x64, 0xa5, 0xfc, 0x91, - 0x9e, 0x7a, 0xaf, 0x76, 0x6d, 0x43, 0x20, 0xbc, 0xb9, 0x58, 0xb3, 0xcf, 0xcc, 0x3c, 0xf3, 0xe9, - 0x81, 0xd6, 0x22, 0x0e, 0xe8, 0x29, 0xfb, 0x18, 0x71, 0x12, 0xa5, 0x11, 0xaa, 0x3d, 0x84, 0x91, - 0x6f, 0x30, 0xa0, 0xbd, 0x9f, 0xbe, 0xc4, 0x84, 0x9e, 0xf2, 0x6f, 0xa6, 0xd5, 0x5f, 0x45, 0x68, - 0xf5, 0x03, 0x32, 0x4b, 0x86, 0xd6, 0x04, 0x93, 0xc7, 0x25, 0xa1, 0x29, 0x42, 0x20, 0x85, 0xb3, - 0x05, 0xd1, 0x4a, 0x87, 0xe2, 0x71, 0x0d, 0x73, 0x19, 0x5d, 0x80, 0xb4, 0x88, 0x3c, 0xa2, 0x95, - 0x0f, 0xc5, 0xe3, 0x66, 0xe7, 0x1b, 0x63, 0x45, 0x6a, 0x6c, 0x79, 0x1b, 0xb7, 0x91, 0x47, 0x30, - 0x37, 0xd6, 0x9f, 0x40, 0x62, 0x2f, 0x54, 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 0x6d, 0x64, 0xb9, 0xb5, 0x86, 0x1b, - 0x59, 0x6e, 0xf7, 0x5b, 0x17, 0xce, 0xc4, 0x9e, 0xfc, 0xfa, 0x6b, 0xe5, 0xcc, 0x38, 0x37, 0xce, - 0xfe, 0xd8, 0xe3, 0x17, 0xfb, 0xe2, 0xff, 0x00, 0x00, 0x00, 0xff, 0xff, 0x57, 0xb4, 0xb0, 0x62, - 0xe2, 0x05, 0x00, 0x00, -} diff --git a/mpls/mpls.proto b/mpls/mpls.proto index 867687c7..c3901333 100644 --- a/mpls/mpls.proto +++ b/mpls/mpls.proto @@ -16,7 +16,7 @@ syntax = "proto3"; -import "types/types.proto"; +import "github.com/openconfig/gnoi/types/types.proto"; package gnoi.mpls; diff --git a/system/BUILD.bazel b/system/BUILD.bazel deleted file mode 100644 index b891d6e3..00000000 --- a/system/BUILD.bazel +++ /dev/null @@ -1,20 +0,0 @@ -load("@io_bazel_rules_go//proto:go_proto_library.bzl", "go_proto_library") - -proto_library( - name = "system_proto", - srcs = ["system.proto"], - deps = [ - "//github.com/openconfig/gnoi:gnoi_proto", - ], -) - -go_proto_library( - name = "go_default_library", - srcs = ["system.proto"], - deps = [ - "//github.com/openconfig/gnoi:go_default_library" - ], - visibility = ["//visibility:public"], - rules_go_repo_only_for_internal_use = "@", - has_services = 1, -) diff --git a/system/system.pb.go b/system/system.pb.go index a6c89a93..314660f7 100644 --- a/system/system.pb.go +++ b/system/system.pb.go @@ -1,43 +1,16 @@ -// Code generated by protoc-gen-go. +// Code generated by protoc-gen-go. DO NOT EDIT. // source: system/system.proto -// DO NOT EDIT! - -/* -Package gnoi_system is a generated protocol buffer package. - -It is generated from these files: - system/system.proto - -It has these top-level messages: - SwitchControlProcessorRequest - SwitchControlProcessorResponse - RebootRequest - RebootResponse - CancelRebootRequest - CancelRebootResponse - RebootStatusRequest - RebootStatusResponse - TimeRequest - TimeResponse - PingRequest - PingResponse - TracerouteRequest - TracerouteResponse - Package - SetPackageRequest - SetPackageResponse -*/ -package gnoi_system -import proto "github.com/golang/protobuf/proto" -import fmt "fmt" -import math "math" -import gnoi1 "common" -import gnoi "types" +package gnoi_system import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + common "github.com/openconfig/gnoi/common" + types "github.com/openconfig/gnoi/types" context "golang.org/x/net/context" grpc "google.golang.org/grpc" + math "math" ) // Reference imports to suppress errors if they are not otherwise used. @@ -79,6 +52,7 @@ var RebootMethod_name = map[int32]string{ 6: "RESET", 7: "POWERUP", } + var RebootMethod_value = map[string]int32{ "UNKNOWN": 0, "COLD": 1, @@ -93,7 +67,10 @@ var RebootMethod_value = map[string]int32{ func (x RebootMethod) String() string { return proto.EnumName(RebootMethod_name, int32(x)) } -func (RebootMethod) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } + +func (RebootMethod) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_746080b643370b3b, []int{0} +} type TracerouteRequest_L4Protocol int32 @@ -108,6 +85,7 @@ var TracerouteRequest_L4Protocol_name = map[int32]string{ 1: "TCP", 2: "UDP", } + var TracerouteRequest_L4Protocol_value = map[string]int32{ "ICMP": 0, "TCP": 1, @@ -117,8 +95,9 @@ var TracerouteRequest_L4Protocol_value = map[string]int32{ func (x TracerouteRequest_L4Protocol) String() string { return proto.EnumName(TracerouteRequest_L4Protocol_name, int32(x)) } + func (TracerouteRequest_L4Protocol) EnumDescriptor() ([]byte, []int) { - return fileDescriptor0, []int{12, 0} + return fileDescriptor_746080b643370b3b, []int{12, 0} } // State is the resulting state of a single traceoroute packet. @@ -153,6 +132,7 @@ var TracerouteResponse_State_name = map[int32]string{ 10: "PRECEDENCE_VIOLATION", 11: "PRECEDENCE_CUTOFF", } + var TracerouteResponse_State_value = map[string]int32{ "DEFAULT": 0, "NONE": 1, @@ -171,18 +151,44 @@ var TracerouteResponse_State_value = map[string]int32{ func (x TracerouteResponse_State) String() string { return proto.EnumName(TracerouteResponse_State_name, int32(x)) } -func (TracerouteResponse_State) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{13, 0} } + +func (TracerouteResponse_State) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_746080b643370b3b, []int{13, 0} +} type SwitchControlProcessorRequest struct { - ControlProcessor *gnoi.Path `protobuf:"bytes,1,opt,name=control_processor,json=controlProcessor" json:"control_processor,omitempty"` + ControlProcessor *types.Path `protobuf:"bytes,1,opt,name=control_processor,json=controlProcessor,proto3" json:"control_processor,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *SwitchControlProcessorRequest) Reset() { *m = SwitchControlProcessorRequest{} } -func (m *SwitchControlProcessorRequest) String() string { return proto.CompactTextString(m) } -func (*SwitchControlProcessorRequest) ProtoMessage() {} -func (*SwitchControlProcessorRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } +func (m *SwitchControlProcessorRequest) Reset() { *m = SwitchControlProcessorRequest{} } +func (m *SwitchControlProcessorRequest) String() string { return proto.CompactTextString(m) } +func (*SwitchControlProcessorRequest) ProtoMessage() {} +func (*SwitchControlProcessorRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_746080b643370b3b, []int{0} +} -func (m *SwitchControlProcessorRequest) GetControlProcessor() *gnoi.Path { +func (m *SwitchControlProcessorRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SwitchControlProcessorRequest.Unmarshal(m, b) +} +func (m *SwitchControlProcessorRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SwitchControlProcessorRequest.Marshal(b, m, deterministic) +} +func (m *SwitchControlProcessorRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_SwitchControlProcessorRequest.Merge(m, src) +} +func (m *SwitchControlProcessorRequest) XXX_Size() int { + return xxx_messageInfo_SwitchControlProcessorRequest.Size(m) +} +func (m *SwitchControlProcessorRequest) XXX_DiscardUnknown() { + xxx_messageInfo_SwitchControlProcessorRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_SwitchControlProcessorRequest proto.InternalMessageInfo + +func (m *SwitchControlProcessorRequest) GetControlProcessor() *types.Path { if m != nil { return m.ControlProcessor } @@ -190,71 +196,212 @@ func (m *SwitchControlProcessorRequest) GetControlProcessor() *gnoi.Path { } type SwitchControlProcessorResponse struct { - ControlProcessor *gnoi.Path `protobuf:"bytes,1,opt,name=control_processor,json=controlProcessor" json:"control_processor,omitempty"` - Version string `protobuf:"bytes,2,opt,name=version" json:"version,omitempty"` - Uptime int64 `protobuf:"varint,3,opt,name=uptime" json:"uptime,omitempty"` + ControlProcessor *types.Path `protobuf:"bytes,1,opt,name=control_processor,json=controlProcessor,proto3" json:"control_processor,omitempty"` + Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` + Uptime int64 `protobuf:"varint,3,opt,name=uptime,proto3" json:"uptime,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SwitchControlProcessorResponse) Reset() { *m = SwitchControlProcessorResponse{} } +func (m *SwitchControlProcessorResponse) String() string { return proto.CompactTextString(m) } +func (*SwitchControlProcessorResponse) ProtoMessage() {} +func (*SwitchControlProcessorResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_746080b643370b3b, []int{1} +} + +func (m *SwitchControlProcessorResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SwitchControlProcessorResponse.Unmarshal(m, b) +} +func (m *SwitchControlProcessorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SwitchControlProcessorResponse.Marshal(b, m, deterministic) +} +func (m *SwitchControlProcessorResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_SwitchControlProcessorResponse.Merge(m, src) +} +func (m *SwitchControlProcessorResponse) XXX_Size() int { + return xxx_messageInfo_SwitchControlProcessorResponse.Size(m) +} +func (m *SwitchControlProcessorResponse) XXX_DiscardUnknown() { + xxx_messageInfo_SwitchControlProcessorResponse.DiscardUnknown(m) } -func (m *SwitchControlProcessorResponse) Reset() { *m = SwitchControlProcessorResponse{} } -func (m *SwitchControlProcessorResponse) String() string { return proto.CompactTextString(m) } -func (*SwitchControlProcessorResponse) ProtoMessage() {} -func (*SwitchControlProcessorResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } +var xxx_messageInfo_SwitchControlProcessorResponse proto.InternalMessageInfo -func (m *SwitchControlProcessorResponse) GetControlProcessor() *gnoi.Path { +func (m *SwitchControlProcessorResponse) GetControlProcessor() *types.Path { if m != nil { return m.ControlProcessor } return nil } +func (m *SwitchControlProcessorResponse) GetVersion() string { + if m != nil { + return m.Version + } + return "" +} + +func (m *SwitchControlProcessorResponse) GetUptime() int64 { + if m != nil { + return m.Uptime + } + return 0 +} + // A RebootRequest requests the specified target be rebooted using the specified // method aftar the specified delay. Only the DEFAULT method with a delay of 0 // is guaranteed to be accepted for all target types. type RebootRequest struct { - Method RebootMethod `protobuf:"varint,1,opt,name=method,enum=gnoi.system.RebootMethod" json:"method,omitempty"` + Method RebootMethod `protobuf:"varint,1,opt,name=method,proto3,enum=gnoi.system.RebootMethod" json:"method,omitempty"` // Delay in nanoseconds before issuing reboot. - Delay uint64 `protobuf:"varint,2,opt,name=delay" json:"delay,omitempty"` + Delay uint64 `protobuf:"varint,2,opt,name=delay,proto3" json:"delay,omitempty"` // Informational reason for the reboot. - Message string `protobuf:"bytes,3,opt,name=message" json:"message,omitempty"` + Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` // Optional sub-components to reboot. - Subcomponents []*gnoi.Path `protobuf:"bytes,4,rep,name=subcomponents" json:"subcomponents,omitempty"` + Subcomponents []*types.Path `protobuf:"bytes,4,rep,name=subcomponents,proto3" json:"subcomponents,omitempty"` // Force reboot if sanity checks fail. (ex. uncommited configuration) - Force bool `protobuf:"varint,5,opt,name=force" json:"force,omitempty"` + Force bool `protobuf:"varint,5,opt,name=force,proto3" json:"force,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RebootRequest) Reset() { *m = RebootRequest{} } +func (m *RebootRequest) String() string { return proto.CompactTextString(m) } +func (*RebootRequest) ProtoMessage() {} +func (*RebootRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_746080b643370b3b, []int{2} } -func (m *RebootRequest) Reset() { *m = RebootRequest{} } -func (m *RebootRequest) String() string { return proto.CompactTextString(m) } -func (*RebootRequest) ProtoMessage() {} -func (*RebootRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} } +func (m *RebootRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RebootRequest.Unmarshal(m, b) +} +func (m *RebootRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RebootRequest.Marshal(b, m, deterministic) +} +func (m *RebootRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RebootRequest.Merge(m, src) +} +func (m *RebootRequest) XXX_Size() int { + return xxx_messageInfo_RebootRequest.Size(m) +} +func (m *RebootRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RebootRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RebootRequest proto.InternalMessageInfo + +func (m *RebootRequest) GetMethod() RebootMethod { + if m != nil { + return m.Method + } + return RebootMethod_UNKNOWN +} + +func (m *RebootRequest) GetDelay() uint64 { + if m != nil { + return m.Delay + } + return 0 +} -func (m *RebootRequest) GetSubcomponents() []*gnoi.Path { +func (m *RebootRequest) GetMessage() string { + if m != nil { + return m.Message + } + return "" +} + +func (m *RebootRequest) GetSubcomponents() []*types.Path { if m != nil { return m.Subcomponents } return nil } +func (m *RebootRequest) GetForce() bool { + if m != nil { + return m.Force + } + return false +} + type RebootResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *RebootResponse) Reset() { *m = RebootResponse{} } -func (m *RebootResponse) String() string { return proto.CompactTextString(m) } -func (*RebootResponse) ProtoMessage() {} -func (*RebootResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} } +func (m *RebootResponse) Reset() { *m = RebootResponse{} } +func (m *RebootResponse) String() string { return proto.CompactTextString(m) } +func (*RebootResponse) ProtoMessage() {} +func (*RebootResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_746080b643370b3b, []int{3} +} + +func (m *RebootResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RebootResponse.Unmarshal(m, b) +} +func (m *RebootResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RebootResponse.Marshal(b, m, deterministic) +} +func (m *RebootResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RebootResponse.Merge(m, src) +} +func (m *RebootResponse) XXX_Size() int { + return xxx_messageInfo_RebootResponse.Size(m) +} +func (m *RebootResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RebootResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RebootResponse proto.InternalMessageInfo // A CancelRebootRequest requests the cancelation of any outstanding reboot // request. type CancelRebootRequest struct { - Message string `protobuf:"bytes,1,opt,name=message" json:"message,omitempty"` - Subcomponents []*gnoi.Path `protobuf:"bytes,2,rep,name=subcomponents" json:"subcomponents,omitempty"` + Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` + Subcomponents []*types.Path `protobuf:"bytes,2,rep,name=subcomponents,proto3" json:"subcomponents,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CancelRebootRequest) Reset() { *m = CancelRebootRequest{} } +func (m *CancelRebootRequest) String() string { return proto.CompactTextString(m) } +func (*CancelRebootRequest) ProtoMessage() {} +func (*CancelRebootRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_746080b643370b3b, []int{4} +} + +func (m *CancelRebootRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CancelRebootRequest.Unmarshal(m, b) +} +func (m *CancelRebootRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CancelRebootRequest.Marshal(b, m, deterministic) +} +func (m *CancelRebootRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_CancelRebootRequest.Merge(m, src) +} +func (m *CancelRebootRequest) XXX_Size() int { + return xxx_messageInfo_CancelRebootRequest.Size(m) +} +func (m *CancelRebootRequest) XXX_DiscardUnknown() { + xxx_messageInfo_CancelRebootRequest.DiscardUnknown(m) } -func (m *CancelRebootRequest) Reset() { *m = CancelRebootRequest{} } -func (m *CancelRebootRequest) String() string { return proto.CompactTextString(m) } -func (*CancelRebootRequest) ProtoMessage() {} -func (*CancelRebootRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} } +var xxx_messageInfo_CancelRebootRequest proto.InternalMessageInfo -func (m *CancelRebootRequest) GetSubcomponents() []*gnoi.Path { +func (m *CancelRebootRequest) GetMessage() string { + if m != nil { + return m.Message + } + return "" +} + +func (m *CancelRebootRequest) GetSubcomponents() []*types.Path { if m != nil { return m.Subcomponents } @@ -262,23 +409,69 @@ func (m *CancelRebootRequest) GetSubcomponents() []*gnoi.Path { } type CancelRebootResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CancelRebootResponse) Reset() { *m = CancelRebootResponse{} } +func (m *CancelRebootResponse) String() string { return proto.CompactTextString(m) } +func (*CancelRebootResponse) ProtoMessage() {} +func (*CancelRebootResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_746080b643370b3b, []int{5} +} + +func (m *CancelRebootResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CancelRebootResponse.Unmarshal(m, b) +} +func (m *CancelRebootResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CancelRebootResponse.Marshal(b, m, deterministic) +} +func (m *CancelRebootResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_CancelRebootResponse.Merge(m, src) +} +func (m *CancelRebootResponse) XXX_Size() int { + return xxx_messageInfo_CancelRebootResponse.Size(m) +} +func (m *CancelRebootResponse) XXX_DiscardUnknown() { + xxx_messageInfo_CancelRebootResponse.DiscardUnknown(m) } -func (m *CancelRebootResponse) Reset() { *m = CancelRebootResponse{} } -func (m *CancelRebootResponse) String() string { return proto.CompactTextString(m) } -func (*CancelRebootResponse) ProtoMessage() {} -func (*CancelRebootResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} } +var xxx_messageInfo_CancelRebootResponse proto.InternalMessageInfo type RebootStatusRequest struct { - Subcomponents []*gnoi.Path `protobuf:"bytes,1,rep,name=subcomponents" json:"subcomponents,omitempty"` + Subcomponents []*types.Path `protobuf:"bytes,1,rep,name=subcomponents,proto3" json:"subcomponents,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RebootStatusRequest) Reset() { *m = RebootStatusRequest{} } +func (m *RebootStatusRequest) String() string { return proto.CompactTextString(m) } +func (*RebootStatusRequest) ProtoMessage() {} +func (*RebootStatusRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_746080b643370b3b, []int{6} +} + +func (m *RebootStatusRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RebootStatusRequest.Unmarshal(m, b) +} +func (m *RebootStatusRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RebootStatusRequest.Marshal(b, m, deterministic) +} +func (m *RebootStatusRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RebootStatusRequest.Merge(m, src) +} +func (m *RebootStatusRequest) XXX_Size() int { + return xxx_messageInfo_RebootStatusRequest.Size(m) +} +func (m *RebootStatusRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RebootStatusRequest.DiscardUnknown(m) } -func (m *RebootStatusRequest) Reset() { *m = RebootStatusRequest{} } -func (m *RebootStatusRequest) String() string { return proto.CompactTextString(m) } -func (*RebootStatusRequest) ProtoMessage() {} -func (*RebootStatusRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} } +var xxx_messageInfo_RebootStatusRequest proto.InternalMessageInfo -func (m *RebootStatusRequest) GetSubcomponents() []*gnoi.Path { +func (m *RebootStatusRequest) GetSubcomponents() []*types.Path { if m != nil { return m.Subcomponents } @@ -286,35 +479,146 @@ func (m *RebootStatusRequest) GetSubcomponents() []*gnoi.Path { } type RebootStatusResponse struct { - Active bool `protobuf:"varint,1,opt,name=active" json:"active,omitempty"` - Wait uint64 `protobuf:"varint,2,opt,name=wait" json:"wait,omitempty"` - When uint64 `protobuf:"varint,3,opt,name=when" json:"when,omitempty"` - Reason string `protobuf:"bytes,4,opt,name=reason" json:"reason,omitempty"` - Count uint32 `protobuf:"varint,5,opt,name=count" json:"count,omitempty"` + Active bool `protobuf:"varint,1,opt,name=active,proto3" json:"active,omitempty"` + Wait uint64 `protobuf:"varint,2,opt,name=wait,proto3" json:"wait,omitempty"` + When uint64 `protobuf:"varint,3,opt,name=when,proto3" json:"when,omitempty"` + Reason string `protobuf:"bytes,4,opt,name=reason,proto3" json:"reason,omitempty"` + Count uint32 `protobuf:"varint,5,opt,name=count,proto3" json:"count,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *RebootStatusResponse) Reset() { *m = RebootStatusResponse{} } -func (m *RebootStatusResponse) String() string { return proto.CompactTextString(m) } -func (*RebootStatusResponse) ProtoMessage() {} -func (*RebootStatusResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} } +func (m *RebootStatusResponse) Reset() { *m = RebootStatusResponse{} } +func (m *RebootStatusResponse) String() string { return proto.CompactTextString(m) } +func (*RebootStatusResponse) ProtoMessage() {} +func (*RebootStatusResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_746080b643370b3b, []int{7} +} + +func (m *RebootStatusResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RebootStatusResponse.Unmarshal(m, b) +} +func (m *RebootStatusResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RebootStatusResponse.Marshal(b, m, deterministic) +} +func (m *RebootStatusResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RebootStatusResponse.Merge(m, src) +} +func (m *RebootStatusResponse) XXX_Size() int { + return xxx_messageInfo_RebootStatusResponse.Size(m) +} +func (m *RebootStatusResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RebootStatusResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RebootStatusResponse proto.InternalMessageInfo + +func (m *RebootStatusResponse) GetActive() bool { + if m != nil { + return m.Active + } + return false +} + +func (m *RebootStatusResponse) GetWait() uint64 { + if m != nil { + return m.Wait + } + return 0 +} + +func (m *RebootStatusResponse) GetWhen() uint64 { + if m != nil { + return m.When + } + return 0 +} + +func (m *RebootStatusResponse) GetReason() string { + if m != nil { + return m.Reason + } + return "" +} + +func (m *RebootStatusResponse) GetCount() uint32 { + if m != nil { + return m.Count + } + return 0 +} // A TimeRequest requests the current time accodring to the target. type TimeRequest struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *TimeRequest) Reset() { *m = TimeRequest{} } -func (m *TimeRequest) String() string { return proto.CompactTextString(m) } -func (*TimeRequest) ProtoMessage() {} -func (*TimeRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} } +func (m *TimeRequest) Reset() { *m = TimeRequest{} } +func (m *TimeRequest) String() string { return proto.CompactTextString(m) } +func (*TimeRequest) ProtoMessage() {} +func (*TimeRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_746080b643370b3b, []int{8} +} + +func (m *TimeRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TimeRequest.Unmarshal(m, b) +} +func (m *TimeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TimeRequest.Marshal(b, m, deterministic) +} +func (m *TimeRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_TimeRequest.Merge(m, src) +} +func (m *TimeRequest) XXX_Size() int { + return xxx_messageInfo_TimeRequest.Size(m) +} +func (m *TimeRequest) XXX_DiscardUnknown() { + xxx_messageInfo_TimeRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_TimeRequest proto.InternalMessageInfo type TimeResponse struct { - Time uint64 `protobuf:"varint,1,opt,name=time" json:"time,omitempty"` + Time uint64 `protobuf:"varint,1,opt,name=time,proto3" json:"time,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TimeResponse) Reset() { *m = TimeResponse{} } +func (m *TimeResponse) String() string { return proto.CompactTextString(m) } +func (*TimeResponse) ProtoMessage() {} +func (*TimeResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_746080b643370b3b, []int{9} +} + +func (m *TimeResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TimeResponse.Unmarshal(m, b) +} +func (m *TimeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TimeResponse.Marshal(b, m, deterministic) +} +func (m *TimeResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_TimeResponse.Merge(m, src) } +func (m *TimeResponse) XXX_Size() int { + return xxx_messageInfo_TimeResponse.Size(m) +} +func (m *TimeResponse) XXX_DiscardUnknown() { + xxx_messageInfo_TimeResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_TimeResponse proto.InternalMessageInfo -func (m *TimeResponse) Reset() { *m = TimeResponse{} } -func (m *TimeResponse) String() string { return proto.CompactTextString(m) } -func (*TimeResponse) ProtoMessage() {} -func (*TimeResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{9} } +func (m *TimeResponse) GetTime() uint64 { + if m != nil { + return m.Time + } + return 0 +} // A PingRequest describes the ping operation to perform. Only the destination // fields is required. Any field not specified is set to a reasonable server @@ -327,21 +631,107 @@ func (*TimeResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []in // // If the size is 0, the vendor default size will be used (typically 56 bytes). type PingRequest struct { - Destination string `protobuf:"bytes,1,opt,name=destination" json:"destination,omitempty"` - Source string `protobuf:"bytes,2,opt,name=source" json:"source,omitempty"` - Count int32 `protobuf:"varint,3,opt,name=count" json:"count,omitempty"` - Interval int64 `protobuf:"varint,4,opt,name=interval" json:"interval,omitempty"` - Wait int64 `protobuf:"varint,5,opt,name=wait" json:"wait,omitempty"` - Size int32 `protobuf:"varint,6,opt,name=size" json:"size,omitempty"` - DoNotFragment bool `protobuf:"varint,7,opt,name=do_not_fragment,json=doNotFragment" json:"do_not_fragment,omitempty"` - DoNotResolve bool `protobuf:"varint,8,opt,name=do_not_resolve,json=doNotResolve" json:"do_not_resolve,omitempty"` - L3Protocol gnoi.L3Protocol `protobuf:"varint,9,opt,name=l3protocol,enum=gnoi.L3Protocol" json:"l3protocol,omitempty"` -} - -func (m *PingRequest) Reset() { *m = PingRequest{} } -func (m *PingRequest) String() string { return proto.CompactTextString(m) } -func (*PingRequest) ProtoMessage() {} -func (*PingRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{10} } + Destination string `protobuf:"bytes,1,opt,name=destination,proto3" json:"destination,omitempty"` + Source string `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"` + Count int32 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"` + Interval int64 `protobuf:"varint,4,opt,name=interval,proto3" json:"interval,omitempty"` + Wait int64 `protobuf:"varint,5,opt,name=wait,proto3" json:"wait,omitempty"` + Size int32 `protobuf:"varint,6,opt,name=size,proto3" json:"size,omitempty"` + DoNotFragment bool `protobuf:"varint,7,opt,name=do_not_fragment,json=doNotFragment,proto3" json:"do_not_fragment,omitempty"` + DoNotResolve bool `protobuf:"varint,8,opt,name=do_not_resolve,json=doNotResolve,proto3" json:"do_not_resolve,omitempty"` + L3Protocol types.L3Protocol `protobuf:"varint,9,opt,name=l3protocol,proto3,enum=gnoi.L3Protocol" json:"l3protocol,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *PingRequest) Reset() { *m = PingRequest{} } +func (m *PingRequest) String() string { return proto.CompactTextString(m) } +func (*PingRequest) ProtoMessage() {} +func (*PingRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_746080b643370b3b, []int{10} +} + +func (m *PingRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PingRequest.Unmarshal(m, b) +} +func (m *PingRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PingRequest.Marshal(b, m, deterministic) +} +func (m *PingRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_PingRequest.Merge(m, src) +} +func (m *PingRequest) XXX_Size() int { + return xxx_messageInfo_PingRequest.Size(m) +} +func (m *PingRequest) XXX_DiscardUnknown() { + xxx_messageInfo_PingRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_PingRequest proto.InternalMessageInfo + +func (m *PingRequest) GetDestination() string { + if m != nil { + return m.Destination + } + return "" +} + +func (m *PingRequest) GetSource() string { + if m != nil { + return m.Source + } + return "" +} + +func (m *PingRequest) GetCount() int32 { + if m != nil { + return m.Count + } + return 0 +} + +func (m *PingRequest) GetInterval() int64 { + if m != nil { + return m.Interval + } + return 0 +} + +func (m *PingRequest) GetWait() int64 { + if m != nil { + return m.Wait + } + return 0 +} + +func (m *PingRequest) GetSize() int32 { + if m != nil { + return m.Size + } + return 0 +} + +func (m *PingRequest) GetDoNotFragment() bool { + if m != nil { + return m.DoNotFragment + } + return false +} + +func (m *PingRequest) GetDoNotResolve() bool { + if m != nil { + return m.DoNotResolve + } + return false +} + +func (m *PingRequest) GetL3Protocol() types.L3Protocol { + if m != nil { + return m.L3Protocol + } + return types.L3Protocol_UNSPECIFIED +} // A PingResponse represents either the reponse to a single ping packet // (the bytes field is non-zero) or the summary statistics (sent is non-zero). @@ -351,23 +741,123 @@ func (*PingRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int // not always present in summary statistics. The std_dev is not always present // in summary statistics. type PingResponse struct { - Source string `protobuf:"bytes,1,opt,name=source" json:"source,omitempty"` - Time int64 `protobuf:"varint,2,opt,name=time" json:"time,omitempty"` - Sent int32 `protobuf:"varint,3,opt,name=sent" json:"sent,omitempty"` - Received int32 `protobuf:"varint,4,opt,name=received" json:"received,omitempty"` - MinTime int64 `protobuf:"varint,5,opt,name=min_time,json=minTime" json:"min_time,omitempty"` - AvgTime int64 `protobuf:"varint,6,opt,name=avg_time,json=avgTime" json:"avg_time,omitempty"` - MaxTime int64 `protobuf:"varint,7,opt,name=max_time,json=maxTime" json:"max_time,omitempty"` - StdDev int64 `protobuf:"varint,8,opt,name=std_dev,json=stdDev" json:"std_dev,omitempty"` - Bytes int32 `protobuf:"varint,11,opt,name=bytes" json:"bytes,omitempty"` - Sequence int32 `protobuf:"varint,12,opt,name=sequence" json:"sequence,omitempty"` - Ttl int32 `protobuf:"varint,13,opt,name=ttl" json:"ttl,omitempty"` -} - -func (m *PingResponse) Reset() { *m = PingResponse{} } -func (m *PingResponse) String() string { return proto.CompactTextString(m) } -func (*PingResponse) ProtoMessage() {} -func (*PingResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{11} } + Source string `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"` + Time int64 `protobuf:"varint,2,opt,name=time,proto3" json:"time,omitempty"` + Sent int32 `protobuf:"varint,3,opt,name=sent,proto3" json:"sent,omitempty"` + Received int32 `protobuf:"varint,4,opt,name=received,proto3" json:"received,omitempty"` + MinTime int64 `protobuf:"varint,5,opt,name=min_time,json=minTime,proto3" json:"min_time,omitempty"` + AvgTime int64 `protobuf:"varint,6,opt,name=avg_time,json=avgTime,proto3" json:"avg_time,omitempty"` + MaxTime int64 `protobuf:"varint,7,opt,name=max_time,json=maxTime,proto3" json:"max_time,omitempty"` + StdDev int64 `protobuf:"varint,8,opt,name=std_dev,json=stdDev,proto3" json:"std_dev,omitempty"` + Bytes int32 `protobuf:"varint,11,opt,name=bytes,proto3" json:"bytes,omitempty"` + Sequence int32 `protobuf:"varint,12,opt,name=sequence,proto3" json:"sequence,omitempty"` + Ttl int32 `protobuf:"varint,13,opt,name=ttl,proto3" json:"ttl,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *PingResponse) Reset() { *m = PingResponse{} } +func (m *PingResponse) String() string { return proto.CompactTextString(m) } +func (*PingResponse) ProtoMessage() {} +func (*PingResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_746080b643370b3b, []int{11} +} + +func (m *PingResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PingResponse.Unmarshal(m, b) +} +func (m *PingResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PingResponse.Marshal(b, m, deterministic) +} +func (m *PingResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_PingResponse.Merge(m, src) +} +func (m *PingResponse) XXX_Size() int { + return xxx_messageInfo_PingResponse.Size(m) +} +func (m *PingResponse) XXX_DiscardUnknown() { + xxx_messageInfo_PingResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_PingResponse proto.InternalMessageInfo + +func (m *PingResponse) GetSource() string { + if m != nil { + return m.Source + } + return "" +} + +func (m *PingResponse) GetTime() int64 { + if m != nil { + return m.Time + } + return 0 +} + +func (m *PingResponse) GetSent() int32 { + if m != nil { + return m.Sent + } + return 0 +} + +func (m *PingResponse) GetReceived() int32 { + if m != nil { + return m.Received + } + return 0 +} + +func (m *PingResponse) GetMinTime() int64 { + if m != nil { + return m.MinTime + } + return 0 +} + +func (m *PingResponse) GetAvgTime() int64 { + if m != nil { + return m.AvgTime + } + return 0 +} + +func (m *PingResponse) GetMaxTime() int64 { + if m != nil { + return m.MaxTime + } + return 0 +} + +func (m *PingResponse) GetStdDev() int64 { + if m != nil { + return m.StdDev + } + return 0 +} + +func (m *PingResponse) GetBytes() int32 { + if m != nil { + return m.Bytes + } + return 0 +} + +func (m *PingResponse) GetSequence() int32 { + if m != nil { + return m.Sequence + } + return 0 +} + +func (m *PingResponse) GetTtl() int32 { + if m != nil { + return m.Ttl + } + return 0 +} // A TracerouteRequest describes the traceroute operation to perform. Only the // destination field is required. Any field not specified is set to a @@ -377,21 +867,107 @@ func (*PingResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []in // If the hop_count is -1 the traceroute will continue forever. // type TracerouteRequest struct { - Source string `protobuf:"bytes,1,opt,name=source" json:"source,omitempty"` - Destination string `protobuf:"bytes,2,opt,name=destination" json:"destination,omitempty"` - InitialTtl uint32 `protobuf:"varint,3,opt,name=initial_ttl,json=initialTtl" json:"initial_ttl,omitempty"` - MaxTtl int32 `protobuf:"varint,4,opt,name=max_ttl,json=maxTtl" json:"max_ttl,omitempty"` - Wait int64 `protobuf:"varint,5,opt,name=wait" json:"wait,omitempty"` - DoNotFragment bool `protobuf:"varint,6,opt,name=do_not_fragment,json=doNotFragment" json:"do_not_fragment,omitempty"` - DoNotResolve bool `protobuf:"varint,7,opt,name=do_not_resolve,json=doNotResolve" json:"do_not_resolve,omitempty"` - L3Protocol gnoi.L3Protocol `protobuf:"varint,8,opt,name=l3protocol,enum=gnoi.L3Protocol" json:"l3protocol,omitempty"` - L4Protocol TracerouteRequest_L4Protocol `protobuf:"varint,9,opt,name=l4protocol,enum=gnoi.system.TracerouteRequest_L4Protocol" json:"l4protocol,omitempty"` -} - -func (m *TracerouteRequest) Reset() { *m = TracerouteRequest{} } -func (m *TracerouteRequest) String() string { return proto.CompactTextString(m) } -func (*TracerouteRequest) ProtoMessage() {} -func (*TracerouteRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{12} } + Source string `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"` + Destination string `protobuf:"bytes,2,opt,name=destination,proto3" json:"destination,omitempty"` + InitialTtl uint32 `protobuf:"varint,3,opt,name=initial_ttl,json=initialTtl,proto3" json:"initial_ttl,omitempty"` + MaxTtl int32 `protobuf:"varint,4,opt,name=max_ttl,json=maxTtl,proto3" json:"max_ttl,omitempty"` + Wait int64 `protobuf:"varint,5,opt,name=wait,proto3" json:"wait,omitempty"` + DoNotFragment bool `protobuf:"varint,6,opt,name=do_not_fragment,json=doNotFragment,proto3" json:"do_not_fragment,omitempty"` + DoNotResolve bool `protobuf:"varint,7,opt,name=do_not_resolve,json=doNotResolve,proto3" json:"do_not_resolve,omitempty"` + L3Protocol types.L3Protocol `protobuf:"varint,8,opt,name=l3protocol,proto3,enum=gnoi.L3Protocol" json:"l3protocol,omitempty"` + L4Protocol TracerouteRequest_L4Protocol `protobuf:"varint,9,opt,name=l4protocol,proto3,enum=gnoi.system.TracerouteRequest_L4Protocol" json:"l4protocol,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TracerouteRequest) Reset() { *m = TracerouteRequest{} } +func (m *TracerouteRequest) String() string { return proto.CompactTextString(m) } +func (*TracerouteRequest) ProtoMessage() {} +func (*TracerouteRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_746080b643370b3b, []int{12} +} + +func (m *TracerouteRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TracerouteRequest.Unmarshal(m, b) +} +func (m *TracerouteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TracerouteRequest.Marshal(b, m, deterministic) +} +func (m *TracerouteRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_TracerouteRequest.Merge(m, src) +} +func (m *TracerouteRequest) XXX_Size() int { + return xxx_messageInfo_TracerouteRequest.Size(m) +} +func (m *TracerouteRequest) XXX_DiscardUnknown() { + xxx_messageInfo_TracerouteRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_TracerouteRequest proto.InternalMessageInfo + +func (m *TracerouteRequest) GetSource() string { + if m != nil { + return m.Source + } + return "" +} + +func (m *TracerouteRequest) GetDestination() string { + if m != nil { + return m.Destination + } + return "" +} + +func (m *TracerouteRequest) GetInitialTtl() uint32 { + if m != nil { + return m.InitialTtl + } + return 0 +} + +func (m *TracerouteRequest) GetMaxTtl() int32 { + if m != nil { + return m.MaxTtl + } + return 0 +} + +func (m *TracerouteRequest) GetWait() int64 { + if m != nil { + return m.Wait + } + return 0 +} + +func (m *TracerouteRequest) GetDoNotFragment() bool { + if m != nil { + return m.DoNotFragment + } + return false +} + +func (m *TracerouteRequest) GetDoNotResolve() bool { + if m != nil { + return m.DoNotResolve + } + return false +} + +func (m *TracerouteRequest) GetL3Protocol() types.L3Protocol { + if m != nil { + return m.L3Protocol + } + return types.L3Protocol_UNSPECIFIED +} + +func (m *TracerouteRequest) GetL4Protocol() TracerouteRequest_L4Protocol { + if m != nil { + return m.L4Protocol + } + return TracerouteRequest_ICMP +} // A TraceRouteResponse contains the result of a single traceoute packet. // @@ -411,26 +987,119 @@ type TracerouteResponse struct { // The following fields are only filled in for the first message. // If any of these fields are specified, all fields following this // block are left unspecified. - DestinationName string `protobuf:"bytes,1,opt,name=destination_name,json=destinationName" json:"destination_name,omitempty"` - DestinationAddress string `protobuf:"bytes,2,opt,name=destination_address,json=destinationAddress" json:"destination_address,omitempty"` - Hops int32 `protobuf:"varint,3,opt,name=hops" json:"hops,omitempty"` - PacketSize int32 `protobuf:"varint,4,opt,name=packet_size,json=packetSize" json:"packet_size,omitempty"` + DestinationName string `protobuf:"bytes,1,opt,name=destination_name,json=destinationName,proto3" json:"destination_name,omitempty"` + DestinationAddress string `protobuf:"bytes,2,opt,name=destination_address,json=destinationAddress,proto3" json:"destination_address,omitempty"` + Hops int32 `protobuf:"varint,3,opt,name=hops,proto3" json:"hops,omitempty"` + PacketSize int32 `protobuf:"varint,4,opt,name=packet_size,json=packetSize,proto3" json:"packet_size,omitempty"` // The following fields provide the disposition of a single traceroute // packet. - Hop int32 `protobuf:"varint,5,opt,name=hop" json:"hop,omitempty"` - Address string `protobuf:"bytes,6,opt,name=address" json:"address,omitempty"` - Name string `protobuf:"bytes,7,opt,name=name" json:"name,omitempty"` - Rtt int64 `protobuf:"varint,8,opt,name=rtt" json:"rtt,omitempty"` - State TracerouteResponse_State `protobuf:"varint,9,opt,name=state,enum=gnoi.system.TracerouteResponse_State" json:"state,omitempty"` - IcmpCode int32 `protobuf:"varint,10,opt,name=icmp_code,json=icmpCode" json:"icmp_code,omitempty"` - Mpls map[string]string `protobuf:"bytes,11,rep,name=mpls" json:"mpls,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` - AsPath []int32 `protobuf:"varint,12,rep,packed,name=as_path,json=asPath" json:"as_path,omitempty"` + Hop int32 `protobuf:"varint,5,opt,name=hop,proto3" json:"hop,omitempty"` + Address string `protobuf:"bytes,6,opt,name=address,proto3" json:"address,omitempty"` + Name string `protobuf:"bytes,7,opt,name=name,proto3" json:"name,omitempty"` + Rtt int64 `protobuf:"varint,8,opt,name=rtt,proto3" json:"rtt,omitempty"` + State TracerouteResponse_State `protobuf:"varint,9,opt,name=state,proto3,enum=gnoi.system.TracerouteResponse_State" json:"state,omitempty"` + IcmpCode int32 `protobuf:"varint,10,opt,name=icmp_code,json=icmpCode,proto3" json:"icmp_code,omitempty"` + Mpls map[string]string `protobuf:"bytes,11,rep,name=mpls,proto3" json:"mpls,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + AsPath []int32 `protobuf:"varint,12,rep,packed,name=as_path,json=asPath,proto3" json:"as_path,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TracerouteResponse) Reset() { *m = TracerouteResponse{} } +func (m *TracerouteResponse) String() string { return proto.CompactTextString(m) } +func (*TracerouteResponse) ProtoMessage() {} +func (*TracerouteResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_746080b643370b3b, []int{13} +} + +func (m *TracerouteResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TracerouteResponse.Unmarshal(m, b) +} +func (m *TracerouteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TracerouteResponse.Marshal(b, m, deterministic) +} +func (m *TracerouteResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_TracerouteResponse.Merge(m, src) +} +func (m *TracerouteResponse) XXX_Size() int { + return xxx_messageInfo_TracerouteResponse.Size(m) +} +func (m *TracerouteResponse) XXX_DiscardUnknown() { + xxx_messageInfo_TracerouteResponse.DiscardUnknown(m) } -func (m *TracerouteResponse) Reset() { *m = TracerouteResponse{} } -func (m *TracerouteResponse) String() string { return proto.CompactTextString(m) } -func (*TracerouteResponse) ProtoMessage() {} -func (*TracerouteResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{13} } +var xxx_messageInfo_TracerouteResponse proto.InternalMessageInfo + +func (m *TracerouteResponse) GetDestinationName() string { + if m != nil { + return m.DestinationName + } + return "" +} + +func (m *TracerouteResponse) GetDestinationAddress() string { + if m != nil { + return m.DestinationAddress + } + return "" +} + +func (m *TracerouteResponse) GetHops() int32 { + if m != nil { + return m.Hops + } + return 0 +} + +func (m *TracerouteResponse) GetPacketSize() int32 { + if m != nil { + return m.PacketSize + } + return 0 +} + +func (m *TracerouteResponse) GetHop() int32 { + if m != nil { + return m.Hop + } + return 0 +} + +func (m *TracerouteResponse) GetAddress() string { + if m != nil { + return m.Address + } + return "" +} + +func (m *TracerouteResponse) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *TracerouteResponse) GetRtt() int64 { + if m != nil { + return m.Rtt + } + return 0 +} + +func (m *TracerouteResponse) GetState() TracerouteResponse_State { + if m != nil { + return m.State + } + return TracerouteResponse_DEFAULT +} + +func (m *TracerouteResponse) GetIcmpCode() int32 { + if m != nil { + return m.IcmpCode + } + return 0 +} func (m *TracerouteResponse) GetMpls() map[string]string { if m != nil { @@ -439,26 +1108,77 @@ func (m *TracerouteResponse) GetMpls() map[string]string { return nil } +func (m *TracerouteResponse) GetAsPath() []int32 { + if m != nil { + return m.AsPath + } + return nil +} + // Package defines a single package file to be placed on the target. type Package struct { // Destination path and filename of the package. - Filename string `protobuf:"bytes,1,opt,name=filename" json:"filename,omitempty"` + Filename string `protobuf:"bytes,1,opt,name=filename,proto3" json:"filename,omitempty"` // Version of the package. (vendor internal name) - Version string `protobuf:"bytes,4,opt,name=version" json:"version,omitempty"` + Version string `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"` // Indicates that the package should be made active after receipt on // the device. For system image packages, the new image is expected to // be active after a reboot. - Activate bool `protobuf:"varint,5,opt,name=activate" json:"activate,omitempty"` + Activate bool `protobuf:"varint,5,opt,name=activate,proto3" json:"activate,omitempty"` // Details for the device to download the package from a remote location. - RemoteDownload *gnoi1.RemoteDownload `protobuf:"bytes,6,opt,name=remote_download,json=remoteDownload" json:"remote_download,omitempty"` + RemoteDownload *common.RemoteDownload `protobuf:"bytes,6,opt,name=remote_download,json=remoteDownload,proto3" json:"remote_download,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Package) Reset() { *m = Package{} } +func (m *Package) String() string { return proto.CompactTextString(m) } +func (*Package) ProtoMessage() {} +func (*Package) Descriptor() ([]byte, []int) { + return fileDescriptor_746080b643370b3b, []int{14} +} + +func (m *Package) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Package.Unmarshal(m, b) +} +func (m *Package) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Package.Marshal(b, m, deterministic) +} +func (m *Package) XXX_Merge(src proto.Message) { + xxx_messageInfo_Package.Merge(m, src) +} +func (m *Package) XXX_Size() int { + return xxx_messageInfo_Package.Size(m) +} +func (m *Package) XXX_DiscardUnknown() { + xxx_messageInfo_Package.DiscardUnknown(m) } -func (m *Package) Reset() { *m = Package{} } -func (m *Package) String() string { return proto.CompactTextString(m) } -func (*Package) ProtoMessage() {} -func (*Package) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{14} } +var xxx_messageInfo_Package proto.InternalMessageInfo -func (m *Package) GetRemoteDownload() *gnoi1.RemoteDownload { +func (m *Package) GetFilename() string { + if m != nil { + return m.Filename + } + return "" +} + +func (m *Package) GetVersion() string { + if m != nil { + return m.Version + } + return "" +} + +func (m *Package) GetActivate() bool { + if m != nil { + return m.Activate + } + return false +} + +func (m *Package) GetRemoteDownload() *common.RemoteDownload { if m != nil { return m.RemoteDownload } @@ -475,31 +1195,58 @@ type SetPackageRequest struct { // *SetPackageRequest_Package // *SetPackageRequest_Contents // *SetPackageRequest_Hash - Request isSetPackageRequest_Request `protobuf_oneof:"request"` + Request isSetPackageRequest_Request `protobuf_oneof:"request"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SetPackageRequest) Reset() { *m = SetPackageRequest{} } +func (m *SetPackageRequest) String() string { return proto.CompactTextString(m) } +func (*SetPackageRequest) ProtoMessage() {} +func (*SetPackageRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_746080b643370b3b, []int{15} +} + +func (m *SetPackageRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SetPackageRequest.Unmarshal(m, b) +} +func (m *SetPackageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SetPackageRequest.Marshal(b, m, deterministic) +} +func (m *SetPackageRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_SetPackageRequest.Merge(m, src) +} +func (m *SetPackageRequest) XXX_Size() int { + return xxx_messageInfo_SetPackageRequest.Size(m) +} +func (m *SetPackageRequest) XXX_DiscardUnknown() { + xxx_messageInfo_SetPackageRequest.DiscardUnknown(m) } -func (m *SetPackageRequest) Reset() { *m = SetPackageRequest{} } -func (m *SetPackageRequest) String() string { return proto.CompactTextString(m) } -func (*SetPackageRequest) ProtoMessage() {} -func (*SetPackageRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{15} } +var xxx_messageInfo_SetPackageRequest proto.InternalMessageInfo type isSetPackageRequest_Request interface { isSetPackageRequest_Request() } type SetPackageRequest_Package struct { - Package *Package `protobuf:"bytes,1,opt,name=package,oneof"` + Package *Package `protobuf:"bytes,1,opt,name=package,proto3,oneof"` } + type SetPackageRequest_Contents struct { Contents []byte `protobuf:"bytes,2,opt,name=contents,proto3,oneof"` } + type SetPackageRequest_Hash struct { - Hash *gnoi.HashType `protobuf:"bytes,3,opt,name=hash,oneof"` + Hash *types.HashType `protobuf:"bytes,3,opt,name=hash,proto3,oneof"` } -func (*SetPackageRequest_Package) isSetPackageRequest_Request() {} +func (*SetPackageRequest_Package) isSetPackageRequest_Request() {} + func (*SetPackageRequest_Contents) isSetPackageRequest_Request() {} -func (*SetPackageRequest_Hash) isSetPackageRequest_Request() {} + +func (*SetPackageRequest_Hash) isSetPackageRequest_Request() {} func (m *SetPackageRequest) GetRequest() isSetPackageRequest_Request { if m != nil { @@ -522,7 +1269,7 @@ func (m *SetPackageRequest) GetContents() []byte { return nil } -func (m *SetPackageRequest) GetHash() *gnoi.HashType { +func (m *SetPackageRequest) GetHash() *types.HashType { if x, ok := m.GetRequest().(*SetPackageRequest_Hash); ok { return x.Hash } @@ -584,7 +1331,7 @@ func _SetPackageRequest_OneofUnmarshaler(msg proto.Message, tag, wire int, b *pr if wire != proto.WireBytes { return true, proto.ErrInternalBadWireType } - msg := new(gnoi.HashType) + msg := new(types.HashType) err := b.DecodeMessage(msg) m.Request = &SetPackageRequest_Hash{msg} return true, err @@ -599,16 +1346,16 @@ func _SetPackageRequest_OneofSizer(msg proto.Message) (n int) { switch x := m.Request.(type) { case *SetPackageRequest_Package: s := proto.Size(x.Package) - n += proto.SizeVarint(1<<3 | proto.WireBytes) + n += 1 // tag and wire n += proto.SizeVarint(uint64(s)) n += s case *SetPackageRequest_Contents: - n += proto.SizeVarint(2<<3 | proto.WireBytes) + n += 1 // tag and wire n += proto.SizeVarint(uint64(len(x.Contents))) n += len(x.Contents) case *SetPackageRequest_Hash: s := proto.Size(x.Hash) - n += proto.SizeVarint(3<<3 | proto.WireBytes) + n += 1 // tag and wire n += proto.SizeVarint(uint64(s)) n += s case nil: @@ -619,14 +1366,40 @@ func _SetPackageRequest_OneofSizer(msg proto.Message) (n int) { } type SetPackageResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SetPackageResponse) Reset() { *m = SetPackageResponse{} } +func (m *SetPackageResponse) String() string { return proto.CompactTextString(m) } +func (*SetPackageResponse) ProtoMessage() {} +func (*SetPackageResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_746080b643370b3b, []int{16} +} + +func (m *SetPackageResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SetPackageResponse.Unmarshal(m, b) +} +func (m *SetPackageResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SetPackageResponse.Marshal(b, m, deterministic) +} +func (m *SetPackageResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_SetPackageResponse.Merge(m, src) +} +func (m *SetPackageResponse) XXX_Size() int { + return xxx_messageInfo_SetPackageResponse.Size(m) +} +func (m *SetPackageResponse) XXX_DiscardUnknown() { + xxx_messageInfo_SetPackageResponse.DiscardUnknown(m) } -func (m *SetPackageResponse) Reset() { *m = SetPackageResponse{} } -func (m *SetPackageResponse) String() string { return proto.CompactTextString(m) } -func (*SetPackageResponse) ProtoMessage() {} -func (*SetPackageResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{16} } +var xxx_messageInfo_SetPackageResponse proto.InternalMessageInfo func init() { + proto.RegisterEnum("gnoi.system.RebootMethod", RebootMethod_name, RebootMethod_value) + proto.RegisterEnum("gnoi.system.TracerouteRequest_L4Protocol", TracerouteRequest_L4Protocol_name, TracerouteRequest_L4Protocol_value) + proto.RegisterEnum("gnoi.system.TracerouteResponse_State", TracerouteResponse_State_name, TracerouteResponse_State_value) proto.RegisterType((*SwitchControlProcessorRequest)(nil), "gnoi.system.SwitchControlProcessorRequest") proto.RegisterType((*SwitchControlProcessorResponse)(nil), "gnoi.system.SwitchControlProcessorResponse") proto.RegisterType((*RebootRequest)(nil), "gnoi.system.RebootRequest") @@ -641,12 +1414,116 @@ func init() { proto.RegisterType((*PingResponse)(nil), "gnoi.system.PingResponse") proto.RegisterType((*TracerouteRequest)(nil), "gnoi.system.TracerouteRequest") proto.RegisterType((*TracerouteResponse)(nil), "gnoi.system.TracerouteResponse") + proto.RegisterMapType((map[string]string)(nil), "gnoi.system.TracerouteResponse.MplsEntry") proto.RegisterType((*Package)(nil), "gnoi.system.Package") proto.RegisterType((*SetPackageRequest)(nil), "gnoi.system.SetPackageRequest") proto.RegisterType((*SetPackageResponse)(nil), "gnoi.system.SetPackageResponse") - proto.RegisterEnum("gnoi.system.RebootMethod", RebootMethod_name, RebootMethod_value) - proto.RegisterEnum("gnoi.system.TracerouteRequest_L4Protocol", TracerouteRequest_L4Protocol_name, TracerouteRequest_L4Protocol_value) - proto.RegisterEnum("gnoi.system.TracerouteResponse_State", TracerouteResponse_State_name, TracerouteResponse_State_value) +} + +func init() { proto.RegisterFile("system/system.proto", fileDescriptor_746080b643370b3b) } + +var fileDescriptor_746080b643370b3b = []byte{ + // 1590 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0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e, 0x06, 0x87, 0xeb, 0x47, 0x64, 0x47, 0x7f, 0x0b, 0x07, 0x5a, 0x33, 0x11, + 0x44, 0x2c, 0x78, 0x7e, 0xf4, 0xbd, 0x03, 0x8c, 0xc7, 0x0e, 0xf8, 0x93, 0x01, 0x87, 0xeb, 0x91, + 0x32, 0x5a, 0x3c, 0x83, 0x1a, 0xf1, 0x45, 0xb0, 0xd4, 0x45, 0x34, 0x70, 0x26, 0x21, 0x04, 0x95, + 0xf7, 0x24, 0x10, 0x19, 0xfa, 0x6a, 0xad, 0x74, 0x73, 0x1a, 0x2b, 0xe4, 0xa5, 0x6e, 0x4e, 0x15, + 0x07, 0x52, 0x4a, 0x38, 0x8b, 0xad, 0x8a, 0x02, 0x21, 0x93, 0x24, 0xb8, 0x3e, 0x5b, 0xc4, 0x42, + 0x81, 0xbb, 0x87, 0xb5, 0x60, 0xef, 0x41, 0xcb, 0x0d, 0x22, 0x9a, 0xd5, 0x61, 0xdb, 0xb0, 0xab, + 0xc5, 0x2c, 0x19, 0x04, 0x15, 0x45, 0x27, 0x43, 0x1f, 0xa0, 0xc8, 0xf4, 0xcf, 0x12, 0xb4, 0xc6, + 0x41, 0x7c, 0x93, 0xd7, 0x7e, 0x04, 0xad, 0x19, 0xe5, 0x22, 0x88, 0x89, 0x90, 0x94, 0xd4, 0xd0, + 0x17, 0x55, 0x32, 0x25, 0xce, 0x16, 0xb2, 0xb1, 0x9a, 0xaf, 0x99, 0x74, 0x97, 0x92, 0xcc, 0xbf, + 0x9a, 0xa5, 0x84, 0xda, 0xd0, 0x08, 0x62, 0x41, 0xd3, 0x25, 0x09, 0x55, 0x09, 0x65, 0xbc, 0x92, + 0x57, 0x20, 0x54, 0x95, 0x7e, 0x05, 0x02, 0x0f, 0xfe, 0x48, 0xad, 0x9a, 0x0a, 0xa2, 0xd6, 0xe8, + 0xa7, 0xf0, 0x64, 0xc6, 0xbc, 0x98, 0x09, 0xef, 0x6d, 0x4a, 0x6e, 0x22, 0x1a, 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53, 0x61, 0x8a, 0xda, 0xc8, 0xa9, 0x38, 0x50, + 0xd9, 0x3b, 0x32, 0xa3, 0x3b, 0x78, 0x37, 0x32, 0xba, 0xc7, 0x86, 0x8d, 0x8c, 0xee, 0xf7, 0xc5, + 0xde, 0x39, 0x36, 0x10, 0x87, 0x67, 0xdb, 0x7f, 0x6b, 0xa0, 0x2f, 0xd7, 0xb7, 0x3f, 0xf4, 0x5b, + 0xa7, 0xfd, 0xb3, 0x8f, 0xf2, 0x5d, 0xd5, 0xd1, 0x83, 0x9a, 0x26, 0x04, 0x6a, 0x6f, 0xf9, 0xed, + 0x90, 0x07, 0xfd, 0x74, 0xab, 0x6d, 0x15, 0x64, 0x9a, 0xb3, 0x4a, 0x0f, 0xc1, 0xe8, 0x68, 0x8b, + 0xfb, 0xda, 0xa4, 0xdd, 0xfe, 0xf1, 0x03, 0x1e, 0xc5, 0xb0, 0xc5, 0xe9, 0x7d, 0x23, 0xec, 0x96, + 0xdf, 0x0e, 0x1b, 0x61, 0xb7, 0x8e, 0xfe, 0x3b, 0xaf, 0x1b, 0xff, 0xfe, 0x75, 0xf5, 0xb4, 0xf3, + 0x55, 0xe7, 0xf4, 0xba, 0xa6, 0xbe, 0xb2, 0x2f, 0xff, 0x17, 0x00, 0x00, 0xff, 0xff, 0xcf, 0x1c, + 0x6a, 0xa7, 0xc1, 0x0e, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -657,8 +1534,9 @@ var _ grpc.ClientConn // is compatible with the grpc package it is being compiled against. const _ = grpc.SupportPackageIsVersion4 -// Client API for System service - +// SystemClient is the client API for System service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type SystemClient interface { // Ping executes the ping command on the target and streams back // the results. Some targets may not stream any results until all @@ -711,7 +1589,7 @@ func NewSystemClient(cc *grpc.ClientConn) SystemClient { } func (c *systemClient) Ping(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (System_PingClient, error) { - stream, err := grpc.NewClientStream(ctx, &_System_serviceDesc.Streams[0], c.cc, "/gnoi.system.System/Ping", opts...) + stream, err := c.cc.NewStream(ctx, &_System_serviceDesc.Streams[0], "/gnoi.system.System/Ping", opts...) if err != nil { return nil, err } @@ -743,7 +1621,7 @@ func (x *systemPingClient) Recv() (*PingResponse, error) { } func (c *systemClient) Traceroute(ctx context.Context, in *TracerouteRequest, opts ...grpc.CallOption) (System_TracerouteClient, error) { - stream, err := grpc.NewClientStream(ctx, &_System_serviceDesc.Streams[1], c.cc, "/gnoi.system.System/Traceroute", opts...) + stream, err := c.cc.NewStream(ctx, &_System_serviceDesc.Streams[1], "/gnoi.system.System/Traceroute", opts...) if err != nil { return nil, err } @@ -776,7 +1654,7 @@ func (x *systemTracerouteClient) Recv() (*TracerouteResponse, error) { func (c *systemClient) Time(ctx context.Context, in *TimeRequest, opts ...grpc.CallOption) (*TimeResponse, error) { out := new(TimeResponse) - err := grpc.Invoke(ctx, "/gnoi.system.System/Time", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/gnoi.system.System/Time", in, out, opts...) if err != nil { return nil, err } @@ -784,7 +1662,7 @@ func (c *systemClient) Time(ctx context.Context, in *TimeRequest, opts ...grpc.C } func (c *systemClient) SetPackage(ctx context.Context, opts ...grpc.CallOption) (System_SetPackageClient, error) { - stream, err := grpc.NewClientStream(ctx, &_System_serviceDesc.Streams[2], c.cc, "/gnoi.system.System/SetPackage", opts...) + stream, err := c.cc.NewStream(ctx, &_System_serviceDesc.Streams[2], "/gnoi.system.System/SetPackage", opts...) if err != nil { return nil, err } @@ -819,7 +1697,7 @@ func (x *systemSetPackageClient) CloseAndRecv() (*SetPackageResponse, error) { func (c *systemClient) SwitchControlProcessor(ctx context.Context, in *SwitchControlProcessorRequest, opts ...grpc.CallOption) (*SwitchControlProcessorResponse, error) { out := new(SwitchControlProcessorResponse) - err := grpc.Invoke(ctx, "/gnoi.system.System/SwitchControlProcessor", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/gnoi.system.System/SwitchControlProcessor", in, out, opts...) if err != nil { return nil, err } @@ -828,7 +1706,7 @@ func (c *systemClient) SwitchControlProcessor(ctx context.Context, in *SwitchCon func (c *systemClient) Reboot(ctx context.Context, in *RebootRequest, opts ...grpc.CallOption) (*RebootResponse, error) { out := new(RebootResponse) - err := grpc.Invoke(ctx, "/gnoi.system.System/Reboot", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/gnoi.system.System/Reboot", in, out, opts...) if err != nil { return nil, err } @@ -837,7 +1715,7 @@ func (c *systemClient) Reboot(ctx context.Context, in *RebootRequest, opts ...gr func (c *systemClient) RebootStatus(ctx context.Context, in *RebootStatusRequest, opts ...grpc.CallOption) (*RebootStatusResponse, error) { out := new(RebootStatusResponse) - err := grpc.Invoke(ctx, "/gnoi.system.System/RebootStatus", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/gnoi.system.System/RebootStatus", in, out, opts...) if err != nil { return nil, err } @@ -846,15 +1724,14 @@ func (c *systemClient) RebootStatus(ctx context.Context, in *RebootStatusRequest func (c *systemClient) CancelReboot(ctx context.Context, in *CancelRebootRequest, opts ...grpc.CallOption) (*CancelRebootResponse, error) { out := new(CancelRebootResponse) - err := grpc.Invoke(ctx, "/gnoi.system.System/CancelReboot", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/gnoi.system.System/CancelReboot", in, out, opts...) if err != nil { return nil, err } return out, nil } -// Server API for System service - +// SystemServer is the server API for System service. type SystemServer interface { // Ping executes the ping command on the target and streams back // the results. Some targets may not stream any results until all @@ -1104,108 +1981,3 @@ var _System_serviceDesc = grpc.ServiceDesc{ }, Metadata: "system/system.proto", } - -func init() { proto.RegisterFile("system/system.proto", fileDescriptor0) } - -var fileDescriptor0 = []byte{ - // 1569 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x9c, 0x57, 0x4f, 0x6f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xdb, 0xa1, 0x72, 0xc3, 0x5a, 0x87, 0xce, 0x01, 0xc2, 0xe7, 0xea, 0xc5, 0xf0, 0x59, 0x68, 0xd5, - 0xd5, 0x85, 0x31, 0x75, 0x6b, 0x07, 0xcf, 0xc7, 0xa9, 0x1e, 0xe7, 0x7c, 0xec, 0x7f, 0x14, 0xe0, - 0x50, 0x63, 0xb4, 0xe9, 0x6a, 0x0a, 0x81, 0xb1, 0x05, 0x41, 0x06, 0x70, 0x41, 0x17, 0x24, 0xd7, - 0xaa, 0x20, 0xba, 0x46, 0x45, 0xad, 0x25, 0x28, 0x09, 0xf5, 0x69, 0xb0, 0xa2, 0x33, 0x05, 0x4a, - 0x19, 0xaf, 0x65, 0xf4, 0x04, 0x6a, 0x51, 0x10, 0x7b, 0x2a, 0x8e, 0x06, 0xa6, 0x1a, 0x05, 0xb1, - 0xec, 0xa3, 0x34, 0x91, 0xd5, 0xad, 0x36, 0x55, 0xb4, 0x89, 0xac, 0x6e, 0x33, 0x53, 0x44, 0xbe, - 0xd7, 0xa6, 0x6a, 0xba, 0x8b, 0x7c, 0xaf, 0x4c, 0x9f, 0x40, 0x95, 0x8b, 0x99, 0x37, 0xa3, 0x2b, - 0x05, 0x47, 0x11, 0x57, 0xb8, 0x98, 0xf5, 0xe9, 0x4a, 0x36, 0xec, 0xf5, 0x9d, 0xa0, 0xdc, 0x6a, - 0xe8, 0x86, 0x29, 0x41, 0xe6, 0xc6, 0x25, 0x17, 0x62, 0x9f, 0x5a, 0x87, 0x3a, 0xb7, 0x4c, 0x46, - 0x26, 0x14, 0x85, 0x08, 0xad, 0x23, 0xa5, 0x96, 0x4b, 0xfb, 0xaf, 0x45, 0x38, 0x71, 0x13, 0xe2, - 0xd3, 0x84, 0x2d, 0x45, 0x46, 0xbc, 0xf7, 0xe2, 0xb3, 0x43, 0xae, 0xc2, 0x7d, 0x72, 0x7d, 0x0e, - 0x8d, 0x20, 0x0e, 0x44, 0x40, 0x42, 0x4f, 0x9e, 0x54, 0x54, 0xec, 0x86, 0x54, 0xe5, 0x8a, 0x50, - 0x56, 0xa3, 0x0a, 0x15, 0x61, 0x8a, 0x5c, 0x45, 0xd6, 0x29, 0xf6, 0x93, 0x69, 0x0f, 0x71, 0x2a, - 0x1f, 0x47, 0x9c, 0xea, 0x83, 0xc4, 0xa9, 0x3d, 0x4c, 0x1c, 0x74, 0x0d, 0x10, 0x7e, 0xbd, 0x43, - 0xb5, 0xa7, 0x5b, 0x6f, 0xf3, 0x3d, 0xec, 0x3a, 0x83, 0xaf, 0x73, 0xa1, 0xd6, 0x9b, 0xed, 0x33, - 0x80, 0x8d, 0x05, 0xd5, 0xa0, 0x74, 0xdd, 0xbb, 0x19, 0x9b, 0x07, 0xa8, 0x0a, 0x45, 0xb7, 0x37, - 0x36, 0x0d, 0xb9, 0x98, 0xf6, 0xc7, 0x66, 0xc1, 0xfe, 0x6f, 0x19, 0x50, 0x3e, 0x6c, 0xca, 0xd9, - 0xa7, 0x60, 0xe6, 0x80, 0xf6, 0x62, 0x12, 0x65, 0xdd, 0x79, 0x94, 0xd3, 0x0f, 0x49, 0x44, 0xd1, - 0x33, 0x38, 0xcd, 0xbb, 0x92, 0xd9, 0x2c, 0xa1, 0x9c, 0xa7, 0xed, 0x42, 0x39, 0x53, 0x57, 0x5b, - 0x24, 0xf6, 0x73, 0xb6, 0xe0, 0x19, 0xc7, 0xe5, 0x5a, 0x76, 0x72, 0x41, 0xfc, 0xb7, 0x54, 0x78, - 0xea, 0x3e, 0xeb, 0x66, 0x81, 0x56, 0x4d, 0xe4, 0xad, 0x36, 0xa1, 0x38, 0x67, 0x0b, 0xd5, 0xaf, - 0x32, 0x96, 0x4b, 0xf9, 0xe4, 0x67, 0x67, 0x55, 0xf4, 0x93, 0x4f, 0x36, 0x07, 0xa8, 0x84, 0xab, - 0x4a, 0xad, 0xd6, 0x72, 0x7f, 0x22, 0x44, 0xca, 0x69, 0xb9, 0x44, 0xbf, 0x86, 0x32, 0x17, 0x44, - 0xd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x7d, 0xb9, 0xbd, 0xfd, 0x43, 0xbf, 0x75, 0x5a, 0xbf, 0xf8, 0x28, 0xdf, - 0x75, 0x1d, 0x3d, 0xa8, 0x68, 0x42, 0xa0, 0xd6, 0x9e, 0xdf, 0x0e, 0x59, 0xd0, 0x4f, 0xf7, 0xda, - 0xd6, 0x41, 0xa6, 0x19, 0xab, 0xf4, 0x10, 0x8c, 0xda, 0x7b, 0xdc, 0xb7, 0x26, 0xed, 0xd6, 0x4f, - 0x3f, 0xe0, 0x91, 0x0f, 0x9b, 0x9f, 0xde, 0x77, 0xc2, 0xee, 0xf9, 0xed, 0xb0, 0x13, 0x76, 0xef, - 0xe8, 0x7f, 0xf0, 0xb2, 0xf6, 0x9f, 0xdf, 0x94, 0xcf, 0x3b, 0x5f, 0x75, 0xce, 0x5f, 0x57, 0xd4, - 0x57, 0xf6, 0xf9, 0xff, 0x03, 0x00, 0x00, 0xff, 0xff, 0xc3, 0x1f, 0x43, 0x7b, 0x8b, 0x0e, 0x00, - 0x00, -} diff --git a/system/system.proto b/system/system.proto index 9338260e..9278095a 100644 --- a/system/system.proto +++ b/system/system.proto @@ -24,8 +24,8 @@ syntax = "proto3"; package gnoi.system; -import "common/common.proto"; -import "types/types.proto"; +import "github.com/openconfig/gnoi/common/common.proto"; +import "github.com/openconfig/gnoi/types/types.proto"; option (gnoi.gnoi_version) = "0.1.0"; diff --git a/test/BUILD.bazel b/test/BUILD.bazel deleted file mode 100644 index 3d53d7a8..00000000 --- a/test/BUILD.bazel +++ /dev/null @@ -1,18 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_test") - -go_test( - name = "simple_test", - size = "small", - srcs = ["simple_test.go"], - deps = [ - "//github.com/golang/protobuf/proto:proto", - "//github.com/openconfig/gnoi:go_default_library", - "//github.com/openconfig/gnoi/bgp:go_default_library", - "//github.com/openconfig/gnoi/cert:go_default_library", - "//github.com/openconfig/gnoi/file:go_default_library", - "//github.com/openconfig/gnoi/interface:go_default_library", - "//github.com/openconfig/gnoi/layer2:go_default_library", - "//github.com/openconfig/gnoi/mpls:go_default_library", - "//github.com/openconfig/gnoi/system:go_default_library", - ], -) diff --git a/test/simple_test.go b/test/simple_test.go index ecc708ca..88073e92 100644 --- a/test/simple_test.go +++ b/test/simple_test.go @@ -18,7 +18,7 @@ import ( "testing" "github.com/golang/protobuf/proto" - gpb "github.com/openconfig/gnoi" + tpb "github.com/openconfig/gnoi/types" bgppb "github.com/openconfig/gnoi/bgp" ) @@ -28,16 +28,16 @@ func TestGNOI(t *testing.T) { in proto.Message want string }{{ - desc: "gpb.Path", - in: &gpb.Path{ + desc: "tpb.Path", + in: &tpb.Path{ Origin: "oc", - Elem: []*gpb.PathElem{{Name: "interfaces", Key: map[string]string{"name": "Ethernet1/1/0"}}}, + Elem: []*tpb.PathElem{{Name: "interfaces", Key: map[string]string{"name": "Ethernet1/1/0"}}}, }, want: "origin: \"oc\"\nelem: <\n name: \"interfaces\"\n key: <\n key: \"name\"\n value: \"Ethernet1/1/0\"\n >\n>\n", }, { - desc: "gpb.HashType", - in: &gpb.HashType{ - Method: gpb.HashType_MD5, + desc: "tpb.HashType", + in: &tpb.HashType{ + Method: tpb.HashType_MD5, Hash: []byte("foo"), }, want: "method: MD5\nhash: \"foo\"\n", diff --git a/types/.types.proto.swp b/types/.types.proto.swp new file mode 100644 index 0000000000000000000000000000000000000000..04efd42ad5a816c8e688cfa87a5ccc536083a1bb GIT binary patch literal 12288 zcmeI2&yN&E6vqoq@F!|8p13>*qhOZl{UJ(NFpj&+Zo}^Ey0Z&`n3$UGnwgfKuC}{o zhY2Eyzs@E`5hKRCcaC~A`WJXmq9+gDJ(!sIebqh9AO@m0O*Q$_)7`JD-uu*huS2Nz z^l5*Mj?||Gj>m-f@R`S6-M8-p@%=d=GTnYX=lgd#tlgo$4BA?sPcuDN&$R5<1D&Py zuGZaH;dft%x2&PJphM+#wU=js*NseX(B{XUPE``905nb5pV|-*K|eku#8=Rl&=u%yD1+M2HuMT~1bP~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bgp.proto | 2 +- cert/cert.proto | 2 +- common/common.pb.go | 36 +++---- common/common.proto | 4 +- diag/diag.pb.go | 134 ++++++++++++------------- diag/diag.proto | 16 +-- file/file.pb.go | 78 +++++++-------- file/file.proto | 10 +- interface/interface.pb.go | 28 +++--- interface/interface.proto | 8 +- layer2/layer2.pb.go | 82 +++++++-------- layer2/layer2.proto | 12 +-- mpls/mpls.proto | 2 +- system/system.pb.go | 204 +++++++++++++++++++------------------- system/system.proto | 20 ++-- test/simple_test.go | 17 +++- types/types.pb.go | 78 +++++++-------- types/types.proto | 2 +- 18 files changed, 375 insertions(+), 360 deletions(-) diff --git a/bgp/bgp.proto b/bgp/bgp.proto index 4c85e64f..124efabc 100644 --- a/bgp/bgp.proto +++ b/bgp/bgp.proto @@ -21,7 +21,7 @@ import "github.com/openconfig/gnoi/types/types.proto"; package gnoi.bgp; // The current semantic version of the gNOI BGP service. -option (gnoi.gnoi_version) = "0.1.0"; +option (types.gnoi_version) = "0.1.0"; service BGP { // ClearBGPNeighbor clears a BGP session. diff --git a/cert/cert.proto b/cert/cert.proto index bf10bf67..453a7fb4 100644 --- a/cert/cert.proto +++ b/cert/cert.proto @@ -22,7 +22,7 @@ import "github.com/openconfig/gnoi/types/types.proto"; package gnoi.certificate; -option (gnoi.gnoi_version) = "0.1.0"; +option (types.gnoi_version) = "0.1.0"; // The Certificate Management Service exported by targets. // The service primarily exports two main RPCs, Install & Rotate which are used diff --git a/common/common.pb.go b/common/common.pb.go index 42d0364e..0ef446a1 100644 --- a/common/common.pb.go +++ b/common/common.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // source: common/common.proto -package gnoi +package common import ( fmt "fmt" @@ -63,7 +63,7 @@ type RemoteDownload struct { // For SFTP and SCP, this will be the address:/path/to/file // (i.e. host.foo.com:/bar/baz). Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` - Protocol RemoteDownload_Protocol `protobuf:"varint,2,opt,name=protocol,proto3,enum=gnoi.RemoteDownload_Protocol" json:"protocol,omitempty"` + Protocol RemoteDownload_Protocol `protobuf:"varint,2,opt,name=protocol,proto3,enum=common.RemoteDownload_Protocol" json:"protocol,omitempty"` Credentials *types.Credentials `protobuf:"bytes,3,opt,name=credentials,proto3" json:"credentials,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -117,8 +117,8 @@ func (m *RemoteDownload) GetCredentials() *types.Credentials { } func init() { - proto.RegisterEnum("gnoi.RemoteDownload_Protocol", RemoteDownload_Protocol_name, RemoteDownload_Protocol_value) - proto.RegisterType((*RemoteDownload)(nil), "gnoi.RemoteDownload") + proto.RegisterEnum("common.RemoteDownload_Protocol", RemoteDownload_Protocol_name, RemoteDownload_Protocol_value) + proto.RegisterType((*RemoteDownload)(nil), "common.RemoteDownload") } func init() { proto.RegisterFile("common/common.proto", fileDescriptor_8f954d82c0b891f6) } @@ -126,18 +126,18 @@ func init() { proto.RegisterFile("common/common.proto", fileDescriptor_8f954d82c var fileDescriptor_8f954d82c0b891f6 = []byte{ // 239 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x4e, 0xce, 0xcf, 0xcd, - 0xcd, 0xcf, 0xd3, 0x87, 0x50, 0x7a, 0x05, 0x45, 0xf9, 0x25, 0xf9, 0x42, 0x2c, 0xe9, 0x79, 0xf9, - 0x99, 0x52, 0x3a, 0xe9, 0x99, 0x25, 0x19, 0xa5, 0x49, 0x7a, 0xc9, 0xf9, 0xb9, 0xfa, 0xf9, 0x05, - 0xa9, 0x79, 0xc9, 0xf9, 0x79, 0x69, 0x99, 0xe9, 0xfa, 0x20, 0x39, 0xfd, 0x92, 0xca, 0x82, 0xd4, - 0x62, 0x08, 0x09, 0xd1, 0xa3, 0x74, 0x95, 0x91, 0x8b, 0x2f, 0x28, 0x35, 0x37, 0xbf, 0x24, 0xd5, - 0x25, 0xbf, 0x3c, 0x2f, 0x27, 0x3f, 0x31, 0x45, 0x48, 0x88, 0x8b, 0xa5, 0x20, 0xb1, 0x24, 0x43, - 0x82, 0x51, 0x81, 0x51, 0x83, 0x33, 0x08, 0xcc, 0x16, 0xb2, 0xe4, 0xe2, 0x00, 0xab, 0x4f, 0xce, - 0xcf, 0x91, 0x60, 0x52, 0x60, 0xd4, 0xe0, 0x33, 0x92, 0xd5, 0x03, 0x99, 0xa8, 0x87, 0xaa, 0x57, - 0x2f, 0x00, 0xaa, 0x28, 0x08, 0xae, 0x5c, 0xc8, 0x98, 0x8b, 0x3b, 0xb9, 0x28, 0x35, 0x25, 0x35, - 0xaf, 0x24, 0x33, 0x31, 0xa7, 0x58, 0x82, 0x59, 0x81, 0x51, 0x83, 0xdb, 0x48, 0x10, 0xa2, 0xdb, - 0x19, 0x21, 0x11, 0x84, 0xac, 0x4a, 0xc9, 0x9e, 0x8b, 0x03, 0x66, 0x94, 0x10, 0x37, 0x17, 0x7b, - 0xa8, 0x9f, 0xb7, 0x9f, 0x7f, 0xb8, 0x9f, 0x00, 0x83, 0x10, 0x07, 0x17, 0x4b, 0xb0, 0x5b, 0x48, - 0x80, 0x00, 0x23, 0x88, 0xe5, 0x11, 0x12, 0x12, 0x20, 0xc0, 0x24, 0xc4, 0xc9, 0xc5, 0x0a, 0x62, - 0x05, 0x0b, 0x30, 0x0b, 0xb1, 0x73, 0x31, 0x07, 0x3b, 0x07, 0x08, 0xb0, 0x24, 0xb1, 0x81, 0xed, - 0x37, 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, 0x35, 0xc2, 0x5a, 0xe6, 0x29, 0x01, 0x00, 0x00, + 0xcd, 0xcf, 0xd3, 0x87, 0x50, 0x7a, 0x05, 0x45, 0xf9, 0x25, 0xf9, 0x42, 0x6c, 0x10, 0x9e, 0x94, + 0x4e, 0x7a, 0x66, 0x49, 0x46, 0x69, 0x92, 0x5e, 0x72, 0x7e, 0xae, 0x7e, 0x7e, 0x41, 0x6a, 0x5e, + 0x72, 0x7e, 0x5e, 0x5a, 0x66, 0xba, 0x7e, 0x7a, 0x5e, 0x7e, 0xa6, 0x7e, 0x49, 0x65, 0x41, 0x6a, + 0x31, 0x84, 0x84, 0xe8, 0x52, 0xba, 0xc1, 0xc8, 0xc5, 0x17, 0x94, 0x9a, 0x9b, 0x5f, 0x92, 0xea, + 0x92, 0x5f, 0x9e, 0x97, 0x93, 0x9f, 0x98, 0x22, 0x24, 0xc4, 0xc5, 0x52, 0x90, 0x58, 0x92, 0x21, + 0xc1, 0xa8, 0xc0, 0xa8, 0xc1, 0x19, 0x04, 0x66, 0x0b, 0x59, 0x73, 0x71, 0x80, 0xd5, 0x27, 0xe7, + 0xe7, 0x48, 0x30, 0x29, 0x30, 0x6a, 0xf0, 0x19, 0xc9, 0xeb, 0x41, 0x6d, 0x47, 0xd5, 0xad, 0x17, + 0x00, 0x55, 0x16, 0x04, 0xd7, 0x20, 0x64, 0xc2, 0xc5, 0x9d, 0x5c, 0x94, 0x9a, 0x92, 0x9a, 0x57, + 0x92, 0x99, 0x98, 0x53, 0x2c, 0xc1, 0xac, 0xc0, 0xa8, 0xc1, 0x6d, 0x24, 0xa4, 0x07, 0x71, 0x86, + 0x33, 0x42, 0x26, 0x08, 0x59, 0x99, 0x92, 0x3d, 0x17, 0x07, 0xcc, 0x2c, 0x21, 0x6e, 0x2e, 0xf6, + 0x50, 0x3f, 0x6f, 0x3f, 0xff, 0x70, 0x3f, 0x01, 0x06, 0x21, 0x0e, 0x2e, 0x96, 0x60, 0xb7, 0x90, + 0x00, 0x01, 0x46, 0x10, 0xcb, 0x23, 0x24, 0x24, 0x40, 0x80, 0x49, 0x88, 0x93, 0x8b, 0x15, 0xc4, + 0x0a, 0x16, 0x60, 0x16, 0x62, 0xe7, 0x62, 0x0e, 0x76, 0x0e, 0x10, 0x60, 0x49, 0x62, 0x03, 0x3b, + 0xc0, 0x18, 0x10, 0x00, 0x00, 0xff, 0xff, 0xbb, 0x3d, 0xeb, 0xfc, 0x2e, 0x01, 0x00, 0x00, } diff --git a/common/common.proto b/common/common.proto index b5ade89e..4fbd30db 100644 --- a/common/common.proto +++ b/common/common.proto @@ -16,7 +16,7 @@ syntax = "proto3"; -package gnoi; +package common; import "github.com/openconfig/gnoi/types/types.proto"; @@ -38,5 +38,5 @@ message RemoteDownload { } Protocol protocol = 2; - gnoi.Credentials credentials = 3; + types.Credentials credentials = 3; } diff --git a/diag/diag.pb.go b/diag/diag.pb.go index ced68fb5..e0668141 100644 --- a/diag/diag.pb.go +++ b/diag/diag.pb.go @@ -839,73 +839,73 @@ func init() { func init() { proto.RegisterFile("diag/diag.proto", fileDescriptor_c2372dae051d1d7a) } var fileDescriptor_c2372dae051d1d7a = []byte{ - // 1049 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x56, 0xdd, 0x6e, 0xe3, 0x44, - 0x14, 0x6e, 0x7e, 0xda, 0x6d, 0x4e, 0xb7, 0x8d, 0x77, 0x96, 0x76, 0xd3, 0x14, 0x76, 0xd3, 0xec, - 0xc2, 0x86, 0xee, 0x92, 0xb6, 0xa9, 0x10, 0x5a, 0x2e, 0x90, 0x92, 0xc6, 0x6d, 0xad, 0x66, 0x6d, - 0x6b, 0xec, 0xb0, 0x74, 0x2f, 0x18, 0x39, 0xe9, 0x34, 0x35, 0xeb, 0x78, 0xcc, 0xcc, 0xe4, 0x62, - 0x1f, 0x00, 0x71, 0x81, 0x78, 0x18, 0x5e, 0x83, 0x2b, 0x04, 0xcf, 0xc1, 0x2b, 0x20, 0x64, 0x3b, - 0x69, 0x9c, 0x28, 0x69, 0x69, 0x91, 0x10, 0x37, 0x96, 0xe6, 0x7c, 0xdf, 0xf1, 0x39, 0xe7, 0x3b, - 0x67, 0x7e, 0x20, 0x7f, 0xee, 0x3a, 0xbd, 0xdd, 0xf0, 0x53, 0x0d, 0x38, 0x93, 0x0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, 0xfe, 0xfd, 0xab, - 0xc5, 0xbd, 0xea, 0x7e, 0x75, 0xaf, 0xb3, 0x14, 0xbd, 0xd0, 0x0f, 0xfe, 0x0e, 0x00, 0x00, 0xff, - 0xff, 0x09, 0xcd, 0x0f, 0x34, 0xed, 0x0b, 0x00, 0x00, + // 1051 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x56, 0xdd, 0x4e, 0xe3, 0xc6, + 0x17, 0x27, 0x1f, 0xb0, 0x64, 0xf8, 0x88, 0x19, 0xfe, 0xb0, 0x21, 0xfc, 0xbb, 0x1b, 0xb2, 0xdb, + 0x6e, 0x96, 0xdd, 0x06, 0x08, 0xaa, 0xaa, 0x55, 0xa5, 0x4a, 0x0e, 0x31, 0x60, 0x91, 0xb5, 0xad, + 0xb1, 0xd3, 0x2d, 0x7b, 0xd1, 0x91, 0x13, 0x86, 0x60, 0xe1, 0x78, 0xdc, 0x99, 0xc9, 0xc5, 0xbe, + 0x40, 0xd5, 0x8b, 0xaa, 0x0f, 0xd3, 0xd7, 0xe8, 0x55, 0xdb, 0xe7, 0xe8, 0x2b, 0x54, 0xd5, 0xd8, + 0x09, 0x71, 0xa2, 0x04, 0x0a, 0x2b, 0x55, 0xbd, 0xb1, 0x34, 0xe7, 0xf7, 0x3b, 0x3e, 0xe7, 0xfc, + 0xce, 0x99, 0x0f, 0x90, 0xbf, 0xf0, 0xdc, 0xee, 0x9e, 0xfc, 0x54, 0x43, 0x46, 0x05, 0x85, 0xb9, + 0x6e, 0x40, 0xbd, 0xaa, 0x34, 0x14, 0x5f, 0x77, 0x3d, 0x71, 0xd5, 0x6f, 0x57, 0x3b, 0xb4, 0xb7, + 0x47, 0x43, 0x12, 0x74, 0x68, 0x70, 0xe9, 0x75, 0xf7, 0x24, 0x61, 0x4f, 0x7c, 0x08, 0x09, 0x8f, + 0xbf, 0xb1, 0x63, 0xf9, 0xd7, 0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x9a, 0xd8, 0x3e, 0x95, 0x95, 0x3c, 0x82, 0x9f, 0x81, 0xf2, 0xed, 0xc4, 0xa6, 0x69, 0x9c, 0x28, + 0x8b, 0x93, 0x3c, 0xd3, 0xd2, 0x06, 0x1c, 0xbd, 0x11, 0xc5, 0x3f, 0x36, 0x5b, 0x46, 0x43, 0xc9, + 0xc1, 0x67, 0xe0, 0xe9, 0x4c, 0x9e, 0x6e, 0xe0, 0x96, 0xad, 0x29, 0x60, 0x52, 0x61, 0x4b, 0xd3, + 0x10, 0x6e, 0x9a, 0x47, 0x67, 0xf8, 0x58, 0xd5, 0x9b, 0x2d, 0xa4, 0x29, 0x4b, 0xf0, 0x09, 0x28, + 0x4e, 0xa7, 0x34, 0x4d, 0xdb, 0x51, 0x96, 0x27, 0x71, 0xdd, 0x70, 0x34, 0x64, 0xa8, 0xcd, 0x81, + 0xf4, 0x2b, 0xb5, 0x3f, 0x53, 0x20, 0xdb, 0xf0, 0xdc, 0x2e, 0x3c, 0x05, 0xb9, 0x9b, 0xa7, 0x0f, + 0xdc, 0xbe, 0xe5, 0x81, 0x59, 0xfc, 0xff, 0x6d, 0xaf, 0xa5, 0xf2, 0x1c, 0xd4, 0xc0, 0xe2, 0xf0, + 0x9a, 0x85, 0xc5, 0xd9, 0x2f, 0x8a, 0xe2, 0xf6, 0x2d, 0xf7, 0x72, 0x79, 0x0e, 0x3a, 0x60, 0x65, + 0xec, 0xe8, 0x86, 0x4f, 0xef, 0xb8, 0xbb, 0x8a, 0xa5, 0xbb, 0x4e, 0xfd, 0xf2, 0x5c, 0x7d, 0xf1, + 0xf7, 0xaf, 0xe7, 0xf7, 0xab, 0x07, 0xd5, 0xfd, 0xf6, 0x42, 0xf4, 0x4e, 0x3f, 0xfc, 0x3b, 0x00, + 0x00, 0xff, 0xff, 0x9c, 0x1e, 0x54, 0x1c, 0xf3, 0x0b, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. diff --git a/diag/diag.proto b/diag/diag.proto index 93939e81..84592d6a 100644 --- a/diag/diag.proto +++ b/diag/diag.proto @@ -22,7 +22,7 @@ package gnoi.diag; import "github.com/openconfig/gnoi/types/types.proto"; -option (gnoi.gnoi_version) = "0.1.0"; +option (types.gnoi_version) = "0.1.0"; // The Diag service exports to main set of RPCs: // 1- BERT related RPCs: Used to perform Bit Error Rate Test (BERT) @@ -36,7 +36,7 @@ option (gnoi.gnoi_version) = "0.1.0"; // (unless there is something wrong HW-wise). // Note: By "port" we refer to a channelized frontpanel or backplane port on a // chassis. In OpenConfig YANG models, there is a one-to-one relationship -// between a port as used here and an "interface". Therefore, the "gnoi.Path" +// between a port as used here and an "interface". Therefore, the "types.Path" // fields below for ports correspond to "/interfaces/interface" in YANG models. service Diag { // Starts BERT operation on a set of ports. Each BERT operation is uniquely @@ -139,7 +139,7 @@ message StartBERTRequest { // Per port BERT start requests. message PerPortRequest { // Path to the interface corresponding to the port. - gnoi.Path interface = 1; // required + types.Path interface = 1; // required // The selected PRBS generating polynomial for BERT. PrbsPolynomial prbs_polynomial = 2; // required // BERT duration in seconds. Must be a positive number. @@ -159,7 +159,7 @@ message StartBERTResponse { // Per-port BERT start responses. message PerPortResponse { // Path to the interface corresponding to the port. - gnoi.Path interface = 1; + types.Path interface = 1; // BERT start status for this port. BertStatus status = 2; } @@ -173,7 +173,7 @@ message StopBERTRequest { // Per-port BERT stop requests. message PerPortRequest { // Path to the interface corresponding to the port. - gnoi.Path interface = 1; + types.Path interface = 1; } // The same BERT operation ID given when BERT operation was started. string bert_operation_id = 1; @@ -186,7 +186,7 @@ message StopBERTResponse { // Per-port BERT stop responses. message PerPortResponse { // Path to the interface corresponding to the port. - gnoi.Path interface = 1; + types.Path interface = 1; // BERT stop status for this port. BertStatus status = 2; } @@ -203,7 +203,7 @@ message GetBERTResultRequest { // Per-port BERT get result requests. message PerPortRequest { // Path to the interface corresponding to the port. - gnoi.Path interface = 1; + types.Path interface = 1; } // The same BERT operation ID given when BERT operation was started. string bert_operation_id = 1; @@ -220,7 +220,7 @@ message GetBERTResultResponse { // Per-port BERT results/status. message PerPortResponse { // Path to the interface corresponding to the port. - gnoi.Path interface = 1; + types.Path interface = 1; // BERT result get status for this port. Only if the status is // BERT_STATUS_OK are the rest of the fields meaningful. BertStatus status = 2; diff --git a/file/file.pb.go b/file/file.pb.go index 931b50dc..7b01f524 100644 --- a/file/file.pb.go +++ b/file/file.pb.go @@ -818,45 +818,45 @@ func init() { func init() { proto.RegisterFile("file/file.proto", fileDescriptor_ad806f8986a0c3f6) } var fileDescriptor_ad806f8986a0c3f6 = []byte{ - // 594 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x54, 0xdf, 0x6f, 0xd2, 0x50, - 0x14, 0xa6, 0x50, 0x36, 0x38, 0x05, 0xb6, 0x5c, 0xe7, 0x56, 0x1b, 0x17, 0xb1, 0xf3, 0x01, 0x13, - 0x2d, 0xc8, 0x5e, 0xdc, 0x83, 0x33, 0x21, 0x8b, 0xc3, 0x44, 0x13, 0x52, 0x79, 0x5d, 0xc8, 0x1d, - 0x5c, 0x68, 0x63, 0xdb, 0x5b, 0x7b, 0x2f, 0x2e, 0xf3, 0x9f, 0xf0, 0x7f, 0x33, 0xf1, 0xd5, 0xbf, - 0xc5, 0xdc, 0x7b, 0x5b, 0x28, 0x3f, 0x86, 0xbe, 0x94, 0xf6, 0xeb, 0x77, 0xce, 0xf7, 0x7d, 0xe7, - 0x9e, 0x02, 0x07, 0x53, 0x3f, 0x20, 0x6d, 0x71, 0x71, 0xe2, 0x84, 0x72, 0x8a, 0xaa, 0xb3, 0x88, - 0xfa, 0x8e, 0x00, 0xac, 0x57, 0x33, 0x9f, 0x7b, 0xf3, 0x5b, 0x67, 0x4c, 0xc3, 0x36, 0x8d, 0x49, - 0x34, 0xa6, 0xd1, 0xd4, 0x9f, 0xb5, 0x05, 0xa1, 0xcd, 0xef, 0x63, 0xc2, 0xd4, 0x55, 0x15, 0x5a, - 0xce, 0x0e, 0xf6, 0x98, 0x86, 0x21, 0x8d, 0xd2, 0x1f, 0xc5, 0xb7, 0xff, 0x68, 0x00, 0x83, 0x39, - 0x77, 0xc9, 0xb7, 0x39, 0x61, 0x1c, 0x9d, 0x83, 0x2e, 0xaa, 0x4c, 0xad, 0xa9, 0xb5, 0x8c, 0xee, - 0xa9, 0xb3, 0xb0, 0xe1, 0x2c, 0x49, 0xce, 0x15, 0xe1, 0xd8, 0x0f, 0x58, 0xbf, 0xe0, 0x4a, 0x32, - 0x7a, 0x0a, 0x95, 0x31, 0x8d, 0x38, 0x89, 0x38, 0x33, 0x8b, 0x4d, 0xad, 0x55, 0xeb, 0x17, 0xdc, - 0x05, 0x82, 0x5e, 0x80, 0xee, 0x61, 0xe6, 0x99, 0x25, 0xd9, 0xb2, 0xa1, 0x5a, 0xf6, 0x31, 0xf3, - 0x86, 0xf7, 0x31, 0x11, 0x3d, 0xc4, 0x5b, 0xeb, 0x13, 0xec, 0xa7, 0x6d, 0xd1, 0x33, 0x30, 0x12, - 0x12, 0x52, 0x4e, 0x46, 0x42, 0x58, 0x5a, 0xa9, 0xba, 0xa0, 0xa0, 0x0f, 0x7e, 0x40, 0x50, 0x13, - 0x8c, 0x98, 0x24, 0xa1, 0xcf, 0x98, 0x4f, 0x23, 0x25, 0x59, 0x77, 0xf3, 0x50, 0xaf, 0x0a, 0xfb, - 0x89, 0x32, 0x6b, 0xd7, 0xc1, 0x90, 0xd6, 0x59, 0x4c, 0x23, 0x46, 0xec, 0xd7, 0x00, 0xd7, 0x64, - 0x11, 0xf7, 0x5f, 0x52, 0xf6, 0x0d, 0x18, 0x92, 0xae, 0xaa, 0x57, 0x92, 0x6a, 0x0f, 0x26, 0x2d, - 0xee, 0x4a, 0xda, 0x03, 0xa8, 0x24, 0x99, 0x9b, 0x3b, 0x38, 0x19, 0x26, 0x38, 0x62, 0x53, 0x92, - 0x0c, 0xa9, 0x2b, 0x65, 0x33, 0x6b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, 0x8e, 0xd7, - 0xe1, 0x74, 0x57, 0x0a, 0x1d, 0x0d, 0xdd, 0xc0, 0xe1, 0xfa, 0xb1, 0x21, 0x3b, 0xc7, 0x7f, 0x60, - 0x99, 0xac, 0xb3, 0x9d, 0x9c, 0x4c, 0x40, 0x18, 0x1b, 0xcc, 0x57, 0x8d, 0x2d, 0x3f, 0xfb, 0x15, - 0x63, 0xf9, 0x4f, 0xaa, 0xd0, 0xd2, 0xd0, 0x05, 0xe8, 0xe2, 0xc0, 0xd0, 0xf1, 0xda, 0xa9, 0x66, - 0xb5, 0x27, 0x1b, 0xf8, 0x42, 0xf4, 0x3d, 0xec, 0xa9, 0x41, 0x21, 0x33, 0x47, 0x5a, 0x99, 0xb6, - 0xf5, 0x64, 0xcb, 0x9b, 0xac, 0x41, 0xaf, 0xf2, 0xeb, 0xb2, 0xdc, 0x71, 0xde, 0x38, 0x9d, 0xdb, - 0x3d, 0xf9, 0x9f, 0x76, 0xfe, 0x37, 0x00, 0x00, 0xff, 0xff, 0xe0, 0x21, 0x12, 0x79, 0x4f, 0x05, - 0x00, 0x00, + // 597 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x54, 0xdd, 0x6e, 0xd3, 0x4c, + 0x10, 0x8d, 0x1b, 0xa7, 0x4d, 0xc6, 0x4d, 0x5b, 0xed, 0xf7, 0xd1, 0x1a, 0x8b, 0x8a, 0xe2, 0x0a, + 0x29, 0x48, 0xe0, 0x84, 0xf4, 0x86, 0xde, 0x10, 0x29, 0xaa, 0x68, 0x90, 0x40, 0x8a, 0x4c, 0x6e, + 0x21, 0xda, 0x26, 0x9b, 0xd8, 0xc2, 0xf6, 0x1a, 0xef, 0x06, 0x14, 0x5e, 0x82, 0x77, 0x43, 0xe2, + 0x9a, 0x57, 0x41, 0xfb, 0xe3, 0xc4, 0xf9, 0x69, 0xe0, 0xc6, 0xb1, 0xcf, 0x9e, 0x99, 0x39, 0x67, + 0x66, 0x36, 0x70, 0x3c, 0x09, 0x23, 0xd2, 0x14, 0x0f, 0x2f, 0xcd, 0x28, 0xa7, 0xa8, 0x36, 0x4d, + 0x68, 0xe8, 0x09, 0xc0, 0x79, 0x3e, 0x0d, 0x79, 0x30, 0xbb, 0xf3, 0x46, 0x34, 0x6e, 0xd2, 0x94, + 0x24, 0x23, 0x9a, 0x4c, 0xc2, 0x69, 0x53, 0x10, 0x9a, 0x7c, 0x9e, 0x12, 0xa6, 0x9e, 0x2a, 0xd0, + 0xf1, 0x76, 0xb0, 0x47, 0x34, 0x8e, 0x69, 0xa2, 0x7f, 0x14, 0xdf, 0xfd, 0x6d, 0x00, 0xf4, 0x67, + 0xdc, 0x27, 0x5f, 0x66, 0x84, 0x71, 0x74, 0x05, 0xa6, 0x88, 0xb2, 0x8d, 0x0b, 0xa3, 0x61, 0xb5, + 0xcf, 0xbd, 0x85, 0x0c, 0x6f, 0x49, 0xf2, 0x6e, 0x08, 0xc7, 0x61, 0xc4, 0x7a, 0x25, 0x5f, 0x92, + 0xd1, 0x23, 0xa8, 0x8e, 0x68, 0xc2, 0x49, 0xc2, 0x99, 0xbd, 0x77, 0x61, 0x34, 0x0e, 0x7b, 0x25, + 0x7f, 0x81, 0xa0, 0xa7, 0x60, 0x06, 0x98, 0x05, 0x76, 0x59, 0xa6, 0x3c, 0xf6, 0x94, 0xda, 0x1e, + 0x66, 0xc1, 0x60, 0x9e, 0x12, 0x91, 0x44, 0x1c, 0x3b, 0xef, 0xe0, 0x40, 0xe7, 0x45, 0x8f, 0xc1, + 0xca, 0x48, 0x4c, 0x39, 0x19, 0x8a, 0xca, 0x52, 0x4b, 0xcd, 0x07, 0x05, 0xbd, 0x09, 0x23, 0x82, + 0x2e, 0xc0, 0x4a, 0x49, 0x16, 0x87, 0x8c, 0x85, 0x34, 0x51, 0x35, 0xeb, 0x7e, 0x11, 0xea, 0xd6, + 0xe0, 0x20, 0x53, 0x6a, 0xdd,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xf0, 0x3b, 0xb1, 0x4d, + 0x19, 0x2d, 0xdf, 0xd1, 0xff, 0x50, 0x99, 0xc5, 0x98, 0x7d, 0xb6, 0x2b, 0x92, 0xaf, 0x3e, 0xdc, + 0x16, 0xd4, 0x45, 0x9b, 0xbe, 0x92, 0x7f, 0xde, 0x9e, 0x13, 0x38, 0xca, 0x23, 0x54, 0x03, 0xda, + 0xbf, 0xf6, 0xc0, 0x94, 0x3b, 0xfc, 0x0a, 0xca, 0xb7, 0x84, 0xa3, 0x07, 0x85, 0x0e, 0x2c, 0xf7, + 0xd2, 0x39, 0x5d, 0x87, 0xf5, 0xba, 0x94, 0x5a, 0x06, 0xfa, 0x08, 0x27, 0xeb, 0x73, 0x43, 0x6e, + 0x81, 0x7f, 0xcf, 0x3e, 0x39, 0x97, 0x3b, 0x39, 0x79, 0x01, 0x21, 0xac, 0x3f, 0x5b, 0x15, 0xb6, + 0xbc, 0xfb, 0x2b, 0xc2, 0x8a, 0xd7, 0xaa, 0xd4, 0x30, 0xd0, 0x35, 0x98, 0x62, 0x60, 0xe8, 0x74, + 0x6d, 0xaa, 0x79, 0xec, 0xd9, 0x06, 0xbe, 0x28, 0xda, 0x81, 0x7d, 0xd5, 0x28, 0x64, 0x17, 0x48, + 0x2b, 0xdd, 0x76, 0x1e, 0x6e, 0x39, 0xc9, 0x13, 0x74, 0xab, 0x3f, 0x5f, 0x57, 0x5a, 0xde, 0x4b, + 0xaf, 0x75, 0xb7, 0x2f, 0xff, 0xd8, 0xae, 0xfe, 0x04, 0x00, 0x00, 0xff, 0xff, 0xf2, 0x24, 0xb9, + 0x54, 0x54, 0x05, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. diff --git a/file/file.proto b/file/file.proto index a9ebe191..bc644ddd 100644 --- a/file/file.proto +++ b/file/file.proto @@ -21,7 +21,7 @@ package gnoi.file; import "github.com/openconfig/gnoi/types/types.proto"; import "github.com/openconfig/gnoi/common/common.proto"; -option (gnoi.gnoi_version) = "0.1.0"; +option (types.gnoi_version) = "0.1.0"; service File { // Get reads and streams the contents of a file from the target. @@ -84,7 +84,7 @@ message PutRequest { oneof request { Details open = 1; bytes contents = 2; - gnoi.HashType hash = 3; // hash of the file. + types.HashType hash = 3; // hash of the file. } } @@ -102,7 +102,7 @@ message GetRequest { message GetResponse { oneof response { bytes contents = 1; - gnoi.HashType hash = 2; // hash of the file. + types.HashType hash = 2; // hash of the file. } } @@ -113,12 +113,12 @@ message TransferToRemoteRequest { string local_path = 1; // Details to download the remote_file being requested to a remote location. - gnoi.RemoteDownload remote_download = 2; + common.RemoteDownload remote_download = 2; } // A TransferToRemoteResponse contains the hash of the data transferred. message TransferToRemoteResponse { - gnoi.HashType hash = 1; // hash of the file. + types.HashType hash = 1; // hash of the file. } // StatRequest will list files at the provided path. diff --git a/interface/interface.pb.go b/interface/interface.pb.go index 26dab8e8..a87d8430 100644 --- a/interface/interface.pb.go +++ b/interface/interface.pb.go @@ -270,21 +270,21 @@ var fileDescriptor_460c38aebb3cb2d6 = []byte{ 0x2d, 0x4a, 0x4b, 0x4c, 0x4e, 0xd5, 0x87, 0xb3, 0xf4, 0x0a, 0x8a, 0xf2, 0x4b, 0xf2, 0x85, 0xf8, 0xd2, 0xf3, 0xf2, 0x33, 0xf5, 0xe0, 0xa2, 0x52, 0x3a, 0xe9, 0x99, 0x25, 0x19, 0xa5, 0x49, 0x7a, 0xc9, 0xf9, 0xb9, 0xfa, 0xf9, 0x05, 0xa9, 0x79, 0xc9, 0xf9, 0x79, 0x69, 0x99, 0xe9, 0xfa, 0x20, - 0x55, 0xfa, 0x25, 0x95, 0x05, 0xa9, 0xc5, 0x10, 0x12, 0xa2, 0x5b, 0x29, 0x8c, 0x4b, 0x2c, 0x38, + 0x55, 0xfa, 0x25, 0x95, 0x05, 0xa9, 0xc5, 0x10, 0x12, 0xa2, 0x5b, 0x29, 0x9c, 0x4b, 0x2c, 0x38, 0xb5, 0xc4, 0x27, 0x3f, 0xbf, 0x20, 0x29, 0x31, 0x39, 0xdb, 0x37, 0x3f, 0x25, 0x35, 0x28, 0xb5, - 0xb0, 0x34, 0xb5, 0xb8, 0x44, 0x48, 0x83, 0x8b, 0x13, 0x6e, 0xa8, 0x04, 0xa3, 0x02, 0xa3, 0x06, - 0xb7, 0x11, 0x97, 0x1e, 0xd8, 0xae, 0x80, 0xc4, 0x92, 0x8c, 0x20, 0x84, 0xa4, 0x90, 0x10, 0x17, - 0x4b, 0x6e, 0x7e, 0x4a, 0xaa, 0x04, 0x93, 0x02, 0xa3, 0x06, 0x67, 0x10, 0x98, 0xad, 0x24, 0xc9, - 0x25, 0x8e, 0x61, 0x6e, 0x71, 0x41, 0x7e, 0x5e, 0x71, 0xaa, 0x92, 0x13, 0x97, 0x98, 0x3b, 0x85, - 0x56, 0x2a, 0xe9, 0x72, 0x89, 0xbb, 0x63, 0x37, 0x1e, 0xee, 0x1a, 0x46, 0x24, 0xd7, 0x78, 0x72, - 0xc9, 0x3a, 0xe7, 0xa4, 0x26, 0x16, 0x79, 0xc2, 0x0c, 0x70, 0xce, 0x2f, 0x05, 0x31, 0x8b, 0x71, - 0xd8, 0xcc, 0x8c, 0xdb, 0x66, 0x05, 0x2e, 0x39, 0x5c, 0x46, 0x41, 0x1c, 0x60, 0x74, 0x89, 0x89, - 0x8b, 0x13, 0x2e, 0x2b, 0x94, 0xc2, 0xc5, 0x8f, 0x16, 0x10, 0x42, 0x6a, 0x7a, 0xa8, 0x51, 0xa6, - 0x87, 0x3d, 0x06, 0xa4, 0xd4, 0x09, 0xaa, 0x83, 0x86, 0x28, 0x03, 0xc8, 0x16, 0x77, 0x42, 0xb6, - 0xb8, 0x13, 0x69, 0x8b, 0x3b, 0x4e, 0x5b, 0x2a, 0xb9, 0xc4, 0xb0, 0xfb, 0x5d, 0x48, 0x17, 0xdd, - 0x10, 0xbc, 0xc1, 0x2d, 0xa5, 0x47, 0xac, 0x72, 0x98, 0xd5, 0x4e, 0x1c, 0x97, 0xec, 0x58, 0x0d, - 0xf4, 0x0c, 0xf5, 0x0c, 0x92, 0xd8, 0xc0, 0x09, 0xd7, 0x18, 0x10, 0x00, 0x00, 0xff, 0xff, 0x6a, - 0x48, 0x50, 0x47, 0x13, 0x03, 0x00, 0x00, + 0xb0, 0x34, 0xb5, 0xb8, 0x44, 0x48, 0x93, 0x8b, 0x13, 0x6e, 0xa8, 0x04, 0xa3, 0x02, 0xa3, 0x06, + 0xb7, 0x11, 0xb7, 0x1e, 0x44, 0x6b, 0x40, 0x62, 0x49, 0x46, 0x10, 0x42, 0x56, 0x48, 0x88, 0x8b, + 0x25, 0x37, 0x3f, 0x25, 0x55, 0x82, 0x49, 0x81, 0x51, 0x83, 0x33, 0x08, 0xcc, 0x56, 0x92, 0xe4, + 0x12, 0xc7, 0x30, 0xb8, 0xb8, 0x20, 0x3f, 0xaf, 0x38, 0x55, 0xc9, 0x99, 0x4b, 0xcc, 0x9d, 0x52, + 0x3b, 0x95, 0x74, 0xb9, 0xc4, 0xdd, 0xb1, 0x9b, 0x0f, 0x77, 0x0e, 0x23, 0x92, 0x73, 0xbc, 0xb8, + 0x64, 0x9d, 0x73, 0x52, 0x13, 0x8b, 0x3c, 0x61, 0x06, 0x38, 0xe7, 0x97, 0x82, 0x98, 0xc5, 0x38, + 0xac, 0x66, 0xc6, 0x63, 0xb5, 0x02, 0x97, 0x1c, 0x2e, 0xb3, 0x20, 0x2e, 0x30, 0xba, 0xc4, 0xc4, + 0xc5, 0x09, 0x97, 0x15, 0x4a, 0xe1, 0xe2, 0x47, 0x0b, 0x0a, 0x21, 0x35, 0x3d, 0xd4, 0x58, 0xd3, + 0xc3, 0x1e, 0x09, 0x52, 0xea, 0x04, 0xd5, 0x41, 0xc3, 0x94, 0x01, 0x64, 0x8b, 0x3b, 0x21, 0x5b, + 0xdc, 0x89, 0xb4, 0xc5, 0x1d, 0xa7, 0x2d, 0x95, 0x5c, 0x62, 0xd8, 0xfd, 0x2e, 0xa4, 0x8b, 0x6e, + 0x08, 0xde, 0xf0, 0x96, 0xd2, 0x23, 0x56, 0x39, 0xcc, 0x6a, 0x27, 0x8e, 0x4b, 0x76, 0xac, 0x06, + 0x7a, 0x86, 0x7a, 0x06, 0x49, 0x6c, 0xe0, 0xb4, 0x6b, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0x61, + 0x25, 0x1e, 0x05, 0x16, 0x03, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. diff --git a/interface/interface.proto b/interface/interface.proto index bba18fab..f8d4201e 100644 --- a/interface/interface.proto +++ b/interface/interface.proto @@ -20,7 +20,7 @@ package gnoi.interface; import "github.com/openconfig/gnoi/types/types.proto"; -option (gnoi.gnoi_version) = "0.1.0"; +option (types.gnoi_version) = "0.1.0"; service Interface { // SetLoopbackMode is used to set the mode of loopback on a interface. @@ -39,7 +39,7 @@ service Interface { // device, available modes are "none", "mac", "phy", "phy_remote", // "framer_facility", and "framer_terminal". message SetLoopbackModeRequest { - gnoi.Path interface = 1; + types.Path interface = 1; string mode = 2; } @@ -47,7 +47,7 @@ message SetLoopbackModeResponse { } message GetLoopbackModeRequest { - gnoi.Path interface = 1; + types.Path interface = 1; } message GetLoopbackModeResponse { @@ -55,7 +55,7 @@ message GetLoopbackModeResponse { } message ClearInterfaceCountersRequest { - repeated gnoi.Path interface = 1; + repeated types.Path interface = 1; } message ClearInterfaceCountersResponse { diff --git a/layer2/layer2.pb.go b/layer2/layer2.pb.go index 8ee39b63..54838487 100644 --- a/layer2/layer2.pb.go +++ b/layer2/layer2.pb.go @@ -58,7 +58,7 @@ func (PerformBERTResponse_BERTState) EnumDescriptor() ([]byte, []int) { } type ClearNeighborDiscoveryRequest struct { - Protocol types.L3Protocol `protobuf:"varint,1,opt,name=protocol,proto3,enum=gnoi.L3Protocol" json:"protocol,omitempty"` + Protocol types.L3Protocol `protobuf:"varint,1,opt,name=protocol,proto3,enum=types.L3Protocol" json:"protocol,omitempty"` Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -505,46 +505,46 @@ func init() { func init() { proto.RegisterFile("layer2/layer2.proto", fileDescriptor_dff9ec617d9e4348) } var fileDescriptor_dff9ec617d9e4348 = []byte{ - // 611 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0x6d, 0x6f, 0x12, 0x41, - 0x10, 0xee, 0x41, 0xa1, 0x65, 0x68, 0x09, 0x6e, 0xb5, 0x9e, 0xf8, 0x52, 0x3c, 0x53, 0x25, 0xda, - 0x1c, 0x95, 0x7e, 0x37, 0x96, 0x42, 0x4c, 0xe3, 0x79, 0x90, 0x85, 0xa6, 0x7e, 0x6b, 0x8e, 0xbb, - 0xe9, 0x75, 0x23, 0xdc, 0x9e, 0xbb, 0xdb, 0x26, 0x8d, 0x3f, 0xcb, 0x7f, 0xe2, 0xef, 0xf1, 0x83, - 0xe1, 0x5e, 0xb0, 0xc8, 0xb5, 0xd8, 0x2f, 0x90, 0x9d, 0x79, 0xe6, 0x79, 0x26, 0x33, 0xcf, 0x1c, - 0x6c, 0x8d, 0x9d, 0x6b, 0x14, 0xad, 0x66, 0xfc, 0x67, 0x86, 0x82, 0x2b, 0x4e, 0xca, 0x7e, 0xc0, - 0x99, 0x19, 0x87, 0x6a, 0x7b, 0x3e, 0x53, 0x17, 0x97, 0x23, 0xd3, 0xe5, 0x93, 0x26, 0x0f, 0x31, - 0x70, 0x79, 0x70, 0xce, 0xfc, 0xe6, 0x14, 0xd2, 0x54, 0xd7, 0x21, 0xca, 0xf8, 0x37, 0x2e, 0x35, - 0x7c, 0x78, 0x7e, 0x34, 0x46, 0x47, 0xd8, 0xc8, 0xfc, 0x8b, 0x11, 0x17, 0x1d, 0x26, 0x5d, 0x7e, - 0x85, 0xe2, 0x9a, 0xe2, 0xf7, 0x4b, 0x94, 0x8a, 0xec, 0xc1, 0x7a, 0x84, 0x74, 0xf9, 0x58, 0xd7, - 0xea, 0x5a, 0xa3, 0xd2, 0xaa, 0x9a, 0x91, 0x9c, 0x75, 0xd0, 0x4f, 0xe2, 0x74, 0x86, 0x20, 0x3a, - 0xac, 0x39, 0x9e, 0x27, 0x50, 0x4a, 0x3d, 0x57, 0xd7, 0x1a, 0x25, 0x9a, 0x3e, 0x8d, 0x3a, 0xbc, - 0xb8, 0x4d, 0x48, 0x86, 0x3c, 0x90, 0x68, 0x74, 0x40, 0x8f, 0x10, 0x83, 0xd0, 0x09, 0x02, 0x16, - 0xf8, 0x43, 0x81, 0x98, 0x76, 0xd1, 0x80, 0x12, 0x0b, 0x14, 0x8a, 0x73, 0xc7, 0xc5, 0xa8, 0x8d, - 0x72, 0x0b, 0xe2, 0x36, 0xfa, 0x8e, 0xba, 0xa0, 0x7f, 0x93, 0xc6, 0x53, 0x78, 0x92, 0xc1, 0x92, - 0x48, 0xd8, 0x40, 0xfa, 0x28, 0xce, 0xb9, 0x98, 0xb4, 0xbb, 0x74, 0x98, 0x92, 0x57, 0x20, 0xc7, - 0xbc, 0x88, 0xb5, 0x44, 0x73, 0xcc, 0x9b, 0x17, 0xcb, 0xdd, 0x25, 0xf6, 0x33, 0x07, 0x5b, 0x73, - 0x84, 0xb1, 0xce, 0x02, 0xe3, 0x47, 0x28, 0x48, 0xe5, 0xa8, 0x98, 0xad, 0xd2, 0x7a, 0x6b, 0xde, - 0x58, 0x98, 0x99, 0x41, 0x60, 0x4e, 0x1f, 0x83, 0x69, 0x05, 0x8d, 0x0b, 0xc9, 0x2e, 0x54, 0x70, - 0xec, 0x84, 0x12, 0xbd, 0xb3, 0x10, 0x05, 0xe3, 0x9e, 0x9e, 0xaf, 0x6b, 0x8d, 0x3c, 0xdd, 0x4c, - 0xa2, 0xfd, 0x28, 0x38, 0x9d, 0x7f, 0xe8, 0x28, 0x85, 0x22, 0xd0, 0x57, 0xeb, 0x5a, 0x63, 0x83, - 0xa6, 0x4f, 0xb2, 0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 0x5d, 0xe4, 0xc8, 0xb8, 0xc1, 0xda, 0xeb, - 0x65, 0xb0, 0x99, 0xca, 0x10, 0xca, 0x37, 0x4c, 0x4d, 0x76, 0x6e, 0xb7, 0x7b, 0xcc, 0x5c, 0x5f, - 0x76, 0x0f, 0xc6, 0xca, 0xbe, 0x46, 0x7c, 0x20, 0x8b, 0xfb, 0x26, 0x19, 0x5d, 0x65, 0xf9, 0xaa, - 0xf6, 0x66, 0x29, 0x6e, 0xd6, 0xfe, 0x57, 0xd8, 0x9c, 0xdb, 0x1e, 0x79, 0x39, 0x57, 0x9b, 0x65, - 0xab, 0x9a, 0x71, 0x17, 0x24, 0x65, 0x6e, 0xaf, 0xff, 0xfa, 0x50, 0xd8, 0x37, 0xdf, 0x9b, 0xfb, - 0xa3, 0x62, 0xf4, 0xc9, 0x3c, 0xf8, 0x13, 0x00, 0x00, 0xff, 0xff, 0x69, 0x07, 0xc6, 0x05, 0xd0, - 0x05, 0x00, 0x00, + // 614 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0xdd, 0x6e, 0xda, 0x4c, + 0x10, 0x8d, 0x21, 0x90, 0x30, 0x24, 0x88, 0x6c, 0xbe, 0x2f, 0x75, 0xe9, 0x4f, 0xa8, 0xab, 0xb4, + 0xf4, 0xcf, 0xa4, 0xe4, 0xbe, 0x6a, 0x08, 0xb4, 0x8a, 0xea, 0x1a, 0xb4, 0x10, 0xa5, 0x77, 0x91, + 0xb1, 0x27, 0xb0, 0x2a, 0x78, 0xdd, 0xdd, 0x4d, 0xa4, 0x48, 0x7d, 0xab, 0xbe, 0x49, 0x9f, 0xa7, + 0x17, 0x15, 0xfe, 0xa1, 0xa1, 0x38, 0xa1, 0xed, 0x0d, 0x68, 0x66, 0xce, 0x9c, 0x33, 0xda, 0x33, + 0x63, 0xd8, 0x1e, 0x3b, 0x57, 0x28, 0x1a, 0xf5, 0xe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b, 0xa1, 0xef, 0x9d, 0x3a, 0x9f, 0xb1, 0xe3, 0x5b, 0x87, 0xf6, 0xdf, 0x0b, + 0xdc, 0xbc, 0xcf, 0x64, 0x17, 0x8a, 0x13, 0xc7, 0x3d, 0x4b, 0xaa, 0xd9, 0xf0, 0xad, 0x61, 0xe2, + 0xb8, 0x87, 0xf1, 0xc2, 0xdf, 0x81, 0xff, 0x7f, 0x53, 0x8f, 0xc6, 0x6a, 0xfc, 0xc8, 0x42, 0xde, + 0x0a, 0x8d, 0x27, 0x12, 0x76, 0xd2, 0x8f, 0x82, 0xcc, 0x2f, 0xc8, 0xad, 0x37, 0x5a, 0x79, 0xf1, + 0x47, 0xd8, 0xf8, 0x51, 0x56, 0x88, 0x07, 0x5b, 0x0b, 0x07, 0x42, 0xf6, 0x16, 0x39, 0x52, 0xee, + 0xb0, 0xf2, 0x64, 0x19, 0x6c, 0xa6, 0xd2, 0x87, 0xe2, 0xb5, 0xb5, 0x26, 0xbb, 0x37, 0x2f, 0x7c, + 0xc4, 0x5c, 0x5d, 0x76, 0x11, 0xc6, 0xca, 0xbe, 0x46, 0x86, 0x40, 0x16, 0x0d, 0x27, 0x29, 0x53, + 0xa5, 0x6d, 0x56, 0xe5, 0xe9, 0x52, 0xdc, 0x6c, 0xfc, 0x4f, 0xb0, 0x39, 0xe7, 0x1e, 0x79, 0x34, + 0xd7, 0x9b, 0xb6, 0x57, 0x15, 0xe3, 0x36, 0x48, 0xc2, 0xdc, 0x5c, 0xff, 0xfe, 0x26, 0xb7, 0x6f, + 0xbe, 0x36, 0xf7, 0x07, 0xf9, 0xf0, 0xb3, 0x79, 0xf0, 0x33, 0x00, 0x00, 0xff, 0xff, 0xd2, 0x75, + 0x98, 0x1a, 0xd5, 0x05, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. diff --git a/layer2/layer2.proto b/layer2/layer2.proto index fb4fe22f..75c2471f 100644 --- a/layer2/layer2.proto +++ b/layer2/layer2.proto @@ -20,7 +20,7 @@ package gnoi.layer2; import "github.com/openconfig/gnoi/types/types.proto"; -option (gnoi.gnoi_version) = "0.1.0"; +option (types.gnoi_version) = "0.1.0"; service Layer2 { // ClearNeighborDiscovery will clear either a specific neighbor entry or @@ -49,7 +49,7 @@ service Layer2 { } message ClearNeighborDiscoveryRequest { - gnoi.L3Protocol protocol = 1; + types.L3Protocol protocol = 1; string address = 2; } @@ -58,7 +58,7 @@ message ClearNeighborDiscoveryResponse { message ClearSpanningTreeRequest { - gnoi.Path interface = 1; + types.Path interface = 1; } message ClearSpanningTreeResponse { @@ -67,7 +67,7 @@ message ClearSpanningTreeResponse { message PerformBERTRequest { // ID for retrieving a previous BERT run data - optional. string id = 1; - gnoi.Path interface = 2; + types.Path interface = 2; } message PerformBERTResponse { @@ -87,14 +87,14 @@ message PerformBERTResponse { } message ClearLLDPInterfaceRequest { - gnoi.Path interface = 1; + types.Path interface = 1; } message ClearLLDPInterfaceResponse { } message SendWakeOnLANRequest { - gnoi.Path interface = 1; + types.Path interface = 1; string address = 2; // IP address of the WOL target. bytes mac_address = 3; // MAC address of the target. } diff --git a/mpls/mpls.proto b/mpls/mpls.proto index c3901333..e1b1f011 100644 --- a/mpls/mpls.proto +++ b/mpls/mpls.proto @@ -20,7 +20,7 @@ import "github.com/openconfig/gnoi/types/types.proto"; package gnoi.mpls; -option (gnoi.gnoi_version) = "0.1.0"; +option (types.gnoi_version) = "0.1.0"; service MPLS { // ClearLSP clears a single tunnel (requests for it's route to be diff --git a/system/system.pb.go b/system/system.pb.go index 314660f7..94680e41 100644 --- a/system/system.pb.go +++ b/system/system.pb.go @@ -639,7 +639,7 @@ type PingRequest struct { Size int32 `protobuf:"varint,6,opt,name=size,proto3" json:"size,omitempty"` DoNotFragment bool `protobuf:"varint,7,opt,name=do_not_fragment,json=doNotFragment,proto3" json:"do_not_fragment,omitempty"` DoNotResolve bool `protobuf:"varint,8,opt,name=do_not_resolve,json=doNotResolve,proto3" json:"do_not_resolve,omitempty"` - L3Protocol types.L3Protocol `protobuf:"varint,9,opt,name=l3protocol,proto3,enum=gnoi.L3Protocol" json:"l3protocol,omitempty"` + L3Protocol types.L3Protocol `protobuf:"varint,9,opt,name=l3protocol,proto3,enum=types.L3Protocol" json:"l3protocol,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -874,7 +874,7 @@ type TracerouteRequest struct { Wait int64 `protobuf:"varint,5,opt,name=wait,proto3" json:"wait,omitempty"` DoNotFragment bool `protobuf:"varint,6,opt,name=do_not_fragment,json=doNotFragment,proto3" json:"do_not_fragment,omitempty"` DoNotResolve bool `protobuf:"varint,7,opt,name=do_not_resolve,json=doNotResolve,proto3" json:"do_not_resolve,omitempty"` - L3Protocol types.L3Protocol `protobuf:"varint,8,opt,name=l3protocol,proto3,enum=gnoi.L3Protocol" json:"l3protocol,omitempty"` + L3Protocol types.L3Protocol `protobuf:"varint,8,opt,name=l3protocol,proto3,enum=types.L3Protocol" json:"l3protocol,omitempty"` L4Protocol TracerouteRequest_L4Protocol `protobuf:"varint,9,opt,name=l4protocol,proto3,enum=gnoi.system.TracerouteRequest_L4Protocol" json:"l4protocol,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -1423,107 +1423,107 @@ func init() { func init() { proto.RegisterFile("system/system.proto", fileDescriptor_746080b643370b3b) } var fileDescriptor_746080b643370b3b = []byte{ - // 1590 bytes of a gzipped FileDescriptorProto + // 1595 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x57, 0x4f, 0x73, 0xe3, 0x48, - 0x15, 0x8f, 0xfc, 0xdf, 0xcf, 0x49, 0x46, 0xd3, 0x09, 0xb3, 0x1a, 0x2f, 0xec, 0x06, 0xd5, 0x42, - 0x65, 0x16, 0xca, 0xc9, 0x66, 0xb6, 0x6a, 0x29, 0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1a, 0xf1, 0x45, 0xb0, 0xd4, 0x45, 0x34, 0x70, 0x26, 0x21, 0x04, 0x95, - 0xf7, 0x24, 0x10, 0x19, 0xfa, 0x6a, 0xad, 0x74, 0x73, 0x1a, 0x2b, 0xe4, 0xa5, 0x6e, 0x4e, 0x15, - 0x07, 0x52, 0x4a, 0x38, 0x8b, 0xad, 0x8a, 0x02, 0x21, 0x93, 0x24, 0xb8, 0x3e, 0x5b, 0xc4, 0x42, - 0x81, 0xbb, 0x87, 0xb5, 0x60, 0xef, 0x41, 0xcb, 0x0d, 0x22, 0x9a, 0xd5, 0x61, 0xdb, 0xb0, 0xab, - 0xc5, 0x2c, 0x19, 0x04, 0x15, 0x45, 0x27, 0x43, 0x1f, 0xa0, 0xc8, 0xf4, 0xcf, 0x12, 0xb4, 0xc6, - 0x41, 0x7c, 0x93, 0xd7, 0x7e, 0x04, 0xad, 0x19, 0xe5, 0x22, 0x88, 0x89, 0x90, 0x94, 0xd4, 0xd0, - 0x17, 0x55, 0x32, 0x25, 0xce, 0x16, 0xb2, 0xb1, 0x9a, 0xaf, 0x99, 0x74, 0x97, 0x92, 0xcc, 0xbf, - 0x9a, 0xa5, 0x84, 0xda, 0xd0, 0x08, 0x62, 0x41, 0xd3, 0x25, 0x09, 0x55, 0x09, 0x65, 0xbc, 0x92, - 0x57, 0x20, 0x54, 0x95, 0x7e, 0x05, 0x02, 0x0f, 0xfe, 0x48, 0xad, 0x9a, 0x0a, 0xa2, 0xd6, 0xe8, - 0xa7, 0xf0, 0x64, 0xc6, 0xbc, 0x98, 0x09, 0xef, 0x6d, 0x4a, 0x6e, 0x22, 0x1a, 0x0b, 0xab, 0xae, - 0xd0, 0xdc, 0x9b, 0xb1, 0x21, 0x13, 0xe7, 0x99, 0x12, 0x7d, 0x01, 0xfb, 0x99, 0x5f, 0x4a, 0x39, - 0x0b, 0x97, 0xd4, 0x6a, 0x28, 0xb7, 0x5d, 0xe5, 0x86, 0xb5, 0x0e, 0x9d, 0x02, 0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0x9f, 0x7c, 0x10, 0x69, 0x0d, 0x49, 0x47, 0xbe, - 0xd5, 0x14, 0xeb, 0x3d, 0xe8, 0x53, 0x68, 0x06, 0x7e, 0x94, 0x78, 0x3e, 0x9b, 0x51, 0x0b, 0x34, - 0xf1, 0xa5, 0xa2, 0xc7, 0x66, 0x14, 0xbd, 0x82, 0x4a, 0x94, 0x84, 0xf2, 0xa6, 0xc8, 0x0f, 0xc1, - 0x8b, 0xc7, 0x02, 0x5f, 0x25, 0x21, 0x77, 0x62, 0x91, 0xde, 0x62, 0xb5, 0x4d, 0x92, 0x96, 0x70, - 0x2f, 0x21, 0x62, 0x6e, 0xed, 0x1e, 0x95, 0x25, 0x69, 0x09, 0x97, 0x9f, 0x91, 0xf6, 0x37, 0xd0, - 0x5c, 0xf9, 0xca, 0x82, 0xde, 0xd1, 0xdb, 0xac, 0x29, 0x72, 0x29, 0x6f, 0xe8, 0x92, 0x84, 0x8b, - 0xfc, 0xa5, 0xd5, 0xc2, 0x2f, 0x4b, 0xbf, 0x30, 0xec, 0xff, 0x1a, 0x50, 0x55, 0xe9, 0xa3, 0x16, - 0xd4, 0xfb, 0xce, 0x79, 0x77, 0x3a, 0x70, 0xcd, 0x1d, 0xc9, 0x8b, 0xe1, 0x68, 0xe8, 0x98, 0x86, - 0x54, 0x4f, 0x87, 0xdf, 0x0d, 0x47, 0x6f, 0x86, 0x66, 0x69, 0x45, 0x97, 0x32, 0x3a, 0x04, 0xf3, - 0x62, 0x34, 0x71, 0xbd, 0xe9, 0x10, 0x3b, 0xdd, 0xde, 0x45, 0xf7, 0xf5, 0xc0, 0x31, 0x2b, 0xe8, - 0x13, 0x38, 0x18, 0x3a, 0xee, 0x9b, 0x11, 0xfe, 0x6e, 0xcd, 0x50, 0x45, 0x16, 0x1c, 0x8e, 0xf1, - 0xc8, 0x1d, 0xf5, 0x46, 0x83, 0x35, 0x4b, 0x4d, 0x6e, 0x99, 0x8c, 0xa6, 0xb8, 0xe7, 0x78, 0x78, -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+ 0x38, 0x28, 0x58, 0x7a, 0x53, 0x77, 0x74, 0x71, 0x61, 0xb6, 0xec, 0x7f, 0x18, 0x50, 0x1f, 0xfb, + 0xc1, 0x5b, 0x31, 0x08, 0xb4, 0xa1, 0xf1, 0x26, 0x8c, 0x48, 0x81, 0xc6, 0x2b, 0xb9, 0x38, 0x57, + 0x55, 0xd6, 0xe7, 0xaa, 0x36, 0x34, 0xe4, 0x27, 0x58, 0x90, 0x44, 0x8d, 0x26, 0x2b, 0x19, 0x7d, + 0x0b, 0x4f, 0x32, 0x12, 0x53, 0x4e, 0xbc, 0x19, 0x7d, 0x97, 0x44, 0xd4, 0x9f, 0x49, 0x16, 0xb6, + 0xce, 0x8f, 0x3b, 0x7a, 0x36, 0xc5, 0xd2, 0xdc, 0xd7, 0x56, 0xbc, 0x9f, 0xad, 0xc9, 0xf6, 0x5f, + 0x0d, 0x38, 0x98, 0x10, 0xae, 0x33, 0xcc, 0x1f, 0xc3, 0xe7, 0x50, 0x4f, 0x95, 0x46, 0x0f, 0x85, + 0x47, 0x6b, 0xec, 0xd1, 0xde, 0x97, 0x3b, 0x38, 0x77, 0x43, 0x3f, 0x84, 0x86, 0x18, 0x15, 0xf5, + 0x78, 0x63, 0x9c, 0xee, 0x5e, 0xee, 0xe0, 0x95, 0x06, 0x7d, 0x01, 0x95, 0xb9, 0xcf, 0xe6, 0xf2, + 0xae, 0xb5, 0xce, 0x9f, 0xe8, 0x07, 0xe8, 0xd2, 0x67, 0x73, 0xf7, 0x2e, 0x15, 0x71, 0xa4, 0xf9, + 0x55, 0x13, 0xea, 0x99, 0x1e, 0x04, 0x8e, 0x00, 0x15, 0xd3, 0x52, 0x1c, 0xfd, 0x32, 0x84, 0xdd, + 0xe2, 0x74, 0x58, 0x24, 0x8c, 0xe4, 0x51, 0x6f, 0x34, 0xe8, 0x9b, 0x06, 0xda, 0x83, 0xe6, 0x78, + 0xf4, 0xda, 0xc1, 0xfd, 0x15, 0x93, 0x2e, 0xbb, 0x03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x3b, 0xaf, 0x1a, 0xff, + 0xfe, 0x75, 0xf5, 0x79, 0xe7, 0x45, 0xe7, 0xf9, 0x4d, 0x4d, 0x7e, 0x68, 0x5f, 0xfe, 0x2f, 0x00, + 0x00, 0xff, 0xff, 0xec, 0x84, 0xe0, 0xe4, 0xcb, 0x0e, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. diff --git a/system/system.proto b/system/system.proto index 9278095a..f7cd0a81 100644 --- a/system/system.proto +++ b/system/system.proto @@ -27,7 +27,7 @@ package gnoi.system; import "github.com/openconfig/gnoi/common/common.proto"; import "github.com/openconfig/gnoi/types/types.proto"; -option (gnoi.gnoi_version) = "0.1.0"; +option (types.gnoi_version) = "0.1.0"; // The gNOI service is a collection of operational RPC's that allow for the // management of a target outside of the configuration and telemetry pipeline. @@ -85,11 +85,11 @@ service System { } message SwitchControlProcessorRequest { - gnoi.Path control_processor = 1; + types.Path control_processor = 1; } message SwitchControlProcessorResponse { - gnoi.Path control_processor = 1; + types.Path control_processor = 1; string version = 2; // Current software version. int64 uptime = 3; // Uptime in nanoseconds since epoch. } @@ -104,7 +104,7 @@ message RebootRequest { // Informational reason for the reboot. string message = 3; // Optional sub-components to reboot. - repeated gnoi.Path subcomponents = 4; + repeated types.Path subcomponents = 4; // Force reboot if sanity checks fail. (ex. uncommited configuration) bool force = 5; } @@ -132,14 +132,14 @@ enum RebootMethod { // request. message CancelRebootRequest { string message = 1; // informational reason for the cancel - repeated gnoi.Path subcomponents = 2; // optional sub-components. + repeated types.Path subcomponents = 2; // optional sub-components. } message CancelRebootResponse { } message RebootStatusRequest { - repeated gnoi.Path subcomponents = 1; // optional sub-component. + repeated types.Path subcomponents = 1; // optional sub-component. } message RebootStatusResponse { @@ -177,7 +177,7 @@ message PingRequest { int32 size = 6; // Size of request packet. (excluding ICMP header) bool do_not_fragment = 7; // Set the do not fragment bit. (IPv4 destinations) bool do_not_resolve = 8; // Do not try resolve the address returned. - gnoi.L3Protocol l3protocol = 9; // Layer3 protocol requested for the ping. + types.L3Protocol l3protocol = 9; // Layer3 protocol requested for the ping. } // A PingResponse represents either the reponse to a single ping packet @@ -218,7 +218,7 @@ message TracerouteRequest { int64 wait = 5; // Nanoseconds to wait for a response. bool do_not_fragment = 6; // Set the do not fragment bit. (IPv4 destinations) bool do_not_resolve = 7; // Do not try resolve the address returned. - gnoi.L3Protocol l3protocol = 8; // Layer-3 protocol requested for the ping. + types.L3Protocol l3protocol = 8; // Layer-3 protocol requested for the ping. enum L4Protocol { ICMP = 0; // Use ICMP ECHO for probes. TCP = 1; // Use TCP SYN for probes. @@ -289,7 +289,7 @@ message Package { // be active after a reboot. bool activate = 5; // Details for the device to download the package from a remote location. - gnoi.RemoteDownload remote_download = 6; + common.RemoteDownload remote_download = 6; } // SetPackageRequest will place the package onto the target and optionally mark @@ -301,7 +301,7 @@ message SetPackageRequest { oneof request { Package package = 1; bytes contents = 2; - gnoi.HashType hash = 3; // Verification hash of data. + types.HashType hash = 3; // Verification hash of data. } } diff --git a/test/simple_test.go b/test/simple_test.go index 88073e92..79947d64 100644 --- a/test/simple_test.go +++ b/test/simple_test.go @@ -18,8 +18,10 @@ import ( "testing" "github.com/golang/protobuf/proto" - tpb "github.com/openconfig/gnoi/types" bgppb "github.com/openconfig/gnoi/bgp" + cpb "github.com/openconfig/gnoi/common" + spb "github.com/openconfig/gnoi/system" + tpb "github.com/openconfig/gnoi/types" ) func TestGNOI(t *testing.T) { @@ -49,6 +51,19 @@ func TestGNOI(t *testing.T) { Mode: bgppb.ClearBGPNeighborRequest_HARD, }, want: "address: \"foo\"\nrouting_instance: \"bar\"\nmode: HARD\n", + }, { + desc: "system.SetPackage", + in: &spb.Package{ + Filename: "filename", + RemoteDownload: &cpb.RemoteDownload{ + Path: "foo", + Protocol: cpb.RemoteDownload_SCP, + Credentials: &tpb.Credentials{ + Username: "bar", + }, + }, + }, + want: "filename: \"filename\"\nremote_download: <\n path: \"foo\"\n protocol: SCP\n credentials: <\n username: \"bar\"\n >\n>\n", }} for _, tt := range tests { t.Run(tt.desc, func(t *testing.T) { diff --git a/types/types.pb.go b/types/types.pb.go index f74aa3fd..f8c817b8 100644 --- a/types/types.pb.go +++ b/types/types.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // source: types/types.proto -package gnoi +package types import ( fmt "fmt" @@ -84,7 +84,7 @@ func (HashType_HashMethod) EnumDescriptor() ([]byte, []int) { // HashType defines the valid hash methods for data verification. UNSPECIFIED // should be treated an error. type HashType struct { - Method HashType_HashMethod `protobuf:"varint,1,opt,name=method,proto3,enum=gnoi.HashType_HashMethod" json:"method,omitempty"` + Method HashType_HashMethod `protobuf:"varint,1,opt,name=method,proto3,enum=types.HashType_HashMethod" json:"method,omitempty"` Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -386,52 +386,52 @@ var E_GnoiVersion = &proto.ExtensionDesc{ ExtendedType: (*descriptor.FileOptions)(nil), ExtensionType: (*string)(nil), Field: 1002, - Name: "gnoi.gnoi_version", + Name: "types.gnoi_version", Tag: "bytes,1002,opt,name=gnoi_version", Filename: "types/types.proto", } func init() { - proto.RegisterEnum("gnoi.L3Protocol", L3Protocol_name, L3Protocol_value) - proto.RegisterEnum("gnoi.HashType_HashMethod", HashType_HashMethod_name, HashType_HashMethod_value) - proto.RegisterType((*HashType)(nil), "gnoi.HashType") - proto.RegisterType((*Path)(nil), "gnoi.Path") - proto.RegisterType((*PathElem)(nil), "gnoi.PathElem") - proto.RegisterMapType((map[string]string)(nil), "gnoi.PathElem.KeyEntry") - proto.RegisterType((*Credentials)(nil), "gnoi.Credentials") + proto.RegisterEnum("types.L3Protocol", L3Protocol_name, L3Protocol_value) + proto.RegisterEnum("types.HashType_HashMethod", HashType_HashMethod_name, HashType_HashMethod_value) + proto.RegisterType((*HashType)(nil), "types.HashType") + proto.RegisterType((*Path)(nil), "types.Path") + proto.RegisterType((*PathElem)(nil), "types.PathElem") + proto.RegisterMapType((map[string]string)(nil), "types.PathElem.KeyEntry") + proto.RegisterType((*Credentials)(nil), "types.Credentials") proto.RegisterExtension(E_GnoiVersion) } func init() { proto.RegisterFile("types/types.proto", fileDescriptor_2c0f90c600ad7e2e) } var fileDescriptor_2c0f90c600ad7e2e = []byte{ - // 442 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x52, 0xc1, 0x6e, 0xd3, 0x40, - 0x10, 0xcd, 0xda, 0xc6, 0x75, 0x26, 0x55, 0x31, 0x2b, 0x04, 0x26, 0x42, 0xc8, 0xf2, 0x29, 0x70, - 0x70, 0x94, 0x94, 0x44, 0xa8, 0x07, 0x04, 0x6d, 0x53, 0x25, 0x82, 0x42, 0xe4, 0x42, 0xaf, 0xc8, - 0x8d, 0x87, 0xd8, 0xc2, 0xf6, 0x5a, 0xbb, 0x9b, 0x82, 0x4f, 0x88, 0x4f, 0xe0, 0x37, 0xf9, 0x0a, - 0xb4, 0x6b, 0x9b, 0x80, 0xb8, 0x58, 0x6f, 0x66, 0xde, 0x7b, 0x7a, 0xe3, 0x59, 0xb8, 0x27, 0xeb, - 0x0a, 0xc5, 0x58, 0x7f, 0xc3, 0x8a, 0x33, 0xc9, 0xa8, 0xb5, 0x2d, 0x59, 0x36, 0xf4, 0xb7, 0x8c, - 0x6d, 0x73, 0x1c, 0xeb, 0xde, 0xcd, 0xee, 0xf3, 0x38, 0x41, 0xb1, 0xe1, 0x59, 0x25, 0x19, 0x6f, - 0x78, 0xc1, 0x4f, 0x02, 0xce, 0x32, 0x16, 0xe9, 0x87, 0xba, 0x42, 0x3a, 0x01, 0xbb, 0x40, 0x99, - 0xb2, 0xc4, 0x23, 0x3e, 0x19, 0x1d, 0x4d, 0x1f, 0x85, 0xca, 0x25, 0xec, 0xe6, 0x1a, 0x5c, 0x6a, - 0x42, 0xd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e, 0x93, 0x8d, 0xd1, 0xb2, 0x17, 0xed, 0x5b, - 0x74, 0x04, 0xb6, 0xfa, 0xb5, 0x98, 0x78, 0xa6, 0x4f, 0xf6, 0x4b, 0x77, 0x97, 0x59, 0xf6, 0xa2, - 0x76, 0x7e, 0x0a, 0xe0, 0x54, 0xb1, 0x10, 0x5f, 0x19, 0x4f, 0x9e, 0x4d, 0x00, 0xde, 0x1e, 0xaf, - 0xd5, 0x9d, 0x37, 0x2c, 0xff, 0xff, 0x10, 0x0e, 0x58, 0xab, 0xf5, 0xf5, 0x73, 0x97, 0xb4, 0x68, - 0xee, 0x1a, 0x27, 0xaf, 0xe0, 0x50, 0x39, 0x7f, 0xba, 0x45, 0x2e, 0x32, 0x56, 0xd2, 0xc7, 0x61, - 0xf3, 0x84, 0xc2, 0xee, 0x09, 0x85, 0x17, 0x59, 0x8e, 0xef, 0x2b, 0x99, 0xb1, 0x52, 0x78, 0xbf, - 0x0e, 0xf4, 0x1e, 0x03, 0x25, 0xb9, 0x6e, 0x14, 0x37, 0xb6, 0x66, 0x1e, 0xff, 0x0e, 0x00, 0x00, - 0xff, 0xff, 0x4e, 0x23, 0x52, 0x84, 0x95, 0x02, 0x00, 0x00, + // 443 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x92, 0xc1, 0x6e, 0xd3, 0x40, + 0x10, 0x86, 0xb3, 0x76, 0xea, 0x3a, 0x93, 0x8a, 0x9a, 0x15, 0x42, 0x56, 0x84, 0x90, 0x65, 0x2e, + 0xa1, 0x07, 0x47, 0x75, 0x49, 0x84, 0x7a, 0x40, 0x40, 0x9a, 0x2a, 0x11, 0x14, 0x22, 0x17, 0x7a, + 0x45, 0x6e, 0x3c, 0xc4, 0x16, 0xb6, 0xd7, 0xda, 0xdd, 0x14, 0x7c, 0x43, 0x3c, 0x02, 0x8f, 0xc9, + 0x53, 0x20, 0xef, 0xda, 0xb4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0x97, 0x72, 0x64, 0x08, 0x9b, 0x02, 0x00, 0x00, } diff --git a/types/types.proto b/types/types.proto index bc5f0472..f250158f 100644 --- a/types/types.proto +++ b/types/types.proto @@ -18,7 +18,7 @@ syntax = "proto3"; import "google/protobuf/descriptor.proto"; -package gnoi; +package types; // Define a protobuf FileOption that defines the gNOI service version. extend google.protobuf.FileOptions { From 40a9c0558b3eb4189127671980977b1cd2b3cdfe Mon Sep 17 00:00:00 2001 From: Rob Shakir Date: Wed, 2 Jan 2019 13:04:34 -0800 Subject: [PATCH 032/238] Rename packages to be gnoi.* --- common/common.pb.go | 39 ++++---- common/common.proto | 2 +- diag/diag.pb.go | 134 ++++++++++++------------- file/file.pb.go | 78 +++++++-------- interface/interface.pb.go | 30 +++--- layer2/layer2.pb.go | 80 +++++++-------- system/system.pb.go | 206 +++++++++++++++++++------------------- types/types.pb.go | 78 +++++++-------- types/types.proto | 2 +- 9 files changed, 325 insertions(+), 324 deletions(-) diff --git a/common/common.pb.go b/common/common.pb.go index 0ef446a1..0955e27b 100644 --- a/common/common.pb.go +++ b/common/common.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // source: common/common.proto -package common +package gnoi_common import ( fmt "fmt" @@ -63,7 +63,7 @@ type RemoteDownload struct { // For SFTP and SCP, this will be the address:/path/to/file // (i.e. host.foo.com:/bar/baz). Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` - Protocol RemoteDownload_Protocol `protobuf:"varint,2,opt,name=protocol,proto3,enum=common.RemoteDownload_Protocol" json:"protocol,omitempty"` + Protocol RemoteDownload_Protocol `protobuf:"varint,2,opt,name=protocol,proto3,enum=gnoi.common.RemoteDownload_Protocol" json:"protocol,omitempty"` Credentials *types.Credentials `protobuf:"bytes,3,opt,name=credentials,proto3" json:"credentials,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -117,27 +117,28 @@ func (m *RemoteDownload) GetCredentials() *types.Credentials { } func init() { - proto.RegisterEnum("common.RemoteDownload_Protocol", RemoteDownload_Protocol_name, RemoteDownload_Protocol_value) - proto.RegisterType((*RemoteDownload)(nil), "common.RemoteDownload") + proto.RegisterEnum("gnoi.common.RemoteDownload_Protocol", RemoteDownload_Protocol_name, RemoteDownload_Protocol_value) + proto.RegisterType((*RemoteDownload)(nil), "gnoi.common.RemoteDownload") } func init() { proto.RegisterFile("common/common.proto", fileDescriptor_8f954d82c0b891f6) } var fileDescriptor_8f954d82c0b891f6 = []byte{ - // 239 bytes of a gzipped FileDescriptorProto + // 243 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x4e, 0xce, 0xcf, 0xcd, - 0xcd, 0xcf, 0xd3, 0x87, 0x50, 0x7a, 0x05, 0x45, 0xf9, 0x25, 0xf9, 0x42, 0x6c, 0x10, 0x9e, 0x94, - 0x4e, 0x7a, 0x66, 0x49, 0x46, 0x69, 0x92, 0x5e, 0x72, 0x7e, 0xae, 0x7e, 0x7e, 0x41, 0x6a, 0x5e, - 0x72, 0x7e, 0x5e, 0x5a, 0x66, 0xba, 0x7e, 0x7a, 0x5e, 0x7e, 0xa6, 0x7e, 0x49, 0x65, 0x41, 0x6a, - 0x31, 0x84, 0x84, 0xe8, 0x52, 0xba, 0xc1, 0xc8, 0xc5, 0x17, 0x94, 0x9a, 0x9b, 0x5f, 0x92, 0xea, - 0x92, 0x5f, 0x9e, 0x97, 0x93, 0x9f, 0x98, 0x22, 0x24, 0xc4, 0xc5, 0x52, 0x90, 0x58, 0x92, 0x21, - 0xc1, 0xa8, 0xc0, 0xa8, 0xc1, 0x19, 0x04, 0x66, 0x0b, 0x59, 0x73, 0x71, 0x80, 0xd5, 0x27, 0xe7, - 0xe7, 0x48, 0x30, 0x29, 0x30, 0x6a, 0xf0, 0x19, 0xc9, 0xeb, 0x41, 0x6d, 0x47, 0xd5, 0xad, 0x17, - 0x00, 0x55, 0x16, 0x04, 0xd7, 0x20, 0x64, 0xc2, 0xc5, 0x9d, 0x5c, 0x94, 0x9a, 0x92, 0x9a, 0x57, - 0x92, 0x99, 0x98, 0x53, 0x2c, 0xc1, 0xac, 0xc0, 0xa8, 0xc1, 0x6d, 0x24, 0xa4, 0x07, 0x71, 0x86, - 0x33, 0x42, 0x26, 0x08, 0x59, 0x99, 0x92, 0x3d, 0x17, 0x07, 0xcc, 0x2c, 0x21, 0x6e, 0x2e, 0xf6, - 0x50, 0x3f, 0x6f, 0x3f, 0xff, 0x70, 0x3f, 0x01, 0x06, 0x21, 0x0e, 0x2e, 0x96, 0x60, 0xb7, 0x90, - 0x00, 0x01, 0x46, 0x10, 0xcb, 0x23, 0x24, 0x24, 0x40, 0x80, 0x49, 0x88, 0x93, 0x8b, 0x15, 0xc4, - 0x0a, 0x16, 0x60, 0x16, 0x62, 0xe7, 0x62, 0x0e, 0x76, 0x0e, 0x10, 0x60, 0x49, 0x62, 0x03, 0x3b, - 0xc0, 0x18, 0x10, 0x00, 0x00, 0xff, 0xff, 0xbb, 0x3d, 0xeb, 0xfc, 0x2e, 0x01, 0x00, 0x00, + 0xcd, 0xcf, 0xd3, 0x87, 0x50, 0x7a, 0x05, 0x45, 0xf9, 0x25, 0xf9, 0x42, 0xdc, 0xe9, 0x79, 0xf9, + 0x99, 0x7a, 0x10, 0x21, 0x29, 0x9d, 0xf4, 0xcc, 0x92, 0x8c, 0xd2, 0x24, 0x10, 0x57, 0x3f, 0xbf, + 0x20, 0x35, 0x2f, 0x39, 0x3f, 0x2f, 0x2d, 0x33, 0x5d, 0x1f, 0xa4, 0x44, 0xbf, 0xa4, 0xb2, 0x20, + 0xb5, 0x18, 0x42, 0x42, 0xb4, 0x2a, 0x3d, 0x62, 0xe4, 0xe2, 0x0b, 0x4a, 0xcd, 0xcd, 0x2f, 0x49, + 0x75, 0xc9, 0x2f, 0xcf, 0xcb, 0xc9, 0x4f, 0x4c, 0x11, 0x12, 0xe2, 0x62, 0x29, 0x48, 0x2c, 0xc9, + 0x90, 0x60, 0x54, 0x60, 0xd4, 0xe0, 0x0c, 0x02, 0xb3, 0x85, 0x1c, 0xb8, 0x38, 0xc0, 0xea, 0x93, + 0xf3, 0x73, 0x24, 0x98, 0x14, 0x18, 0x35, 0xf8, 0x8c, 0x54, 0xf4, 0x90, 0x2c, 0xd5, 0x43, 0x35, + 0x42, 0x2f, 0x00, 0xaa, 0x36, 0x08, 0xae, 0x4b, 0xc8, 0x92, 0x8b, 0x3b, 0xb9, 0x28, 0x35, 0x25, + 0x35, 0xaf, 0x24, 0x33, 0x31, 0xa7, 0x58, 0x82, 0x59, 0x81, 0x51, 0x83, 0xdb, 0x48, 0x1c, 0x62, + 0x08, 0xc4, 0x41, 0xce, 0x08, 0xe9, 0x20, 0x64, 0xb5, 0x4a, 0xf6, 0x5c, 0x1c, 0x30, 0x03, 0x85, + 0xb8, 0xb9, 0xd8, 0x43, 0xfd, 0xbc, 0xfd, 0xfc, 0xc3, 0xfd, 0x04, 0x18, 0x84, 0x38, 0xb8, 0x58, + 0x82, 0xdd, 0x42, 0x02, 0x04, 0x18, 0x41, 0x2c, 0x8f, 0x90, 0x90, 0x00, 0x01, 0x26, 0x21, 0x4e, + 0x2e, 0x56, 0x10, 0x2b, 0x58, 0x80, 0x59, 0x88, 0x9d, 0x8b, 0x39, 0xd8, 0x39, 0x40, 0x80, 0x25, + 0x89, 0x0d, 0xec, 0x0a, 0x63, 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0x6f, 0xdb, 0xfe, 0xf8, 0x3d, + 0x01, 0x00, 0x00, } diff --git a/common/common.proto b/common/common.proto index 4fbd30db..f2928fca 100644 --- a/common/common.proto +++ b/common/common.proto @@ -16,7 +16,7 @@ syntax = "proto3"; -package common; +package gnoi.common; import "github.com/openconfig/gnoi/types/types.proto"; diff --git a/diag/diag.pb.go b/diag/diag.pb.go index e0668141..e511386d 100644 --- a/diag/diag.pb.go +++ b/diag/diag.pb.go @@ -839,73 +839,73 @@ func init() { func init() { proto.RegisterFile("diag/diag.proto", fileDescriptor_c2372dae051d1d7a) } var fileDescriptor_c2372dae051d1d7a = []byte{ - // 1051 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x56, 0xdd, 0x4e, 0xe3, 0xc6, - 0x17, 0x27, 0x1f, 0xb0, 0x64, 0xf8, 0x88, 0x19, 0xfe, 0xb0, 0x21, 0xfc, 0xbb, 0x1b, 0xb2, 0xdb, - 0x6e, 0x96, 0xdd, 0x06, 0x08, 0xaa, 0xaa, 0x55, 0xa5, 0x4a, 0x0e, 0x31, 0x60, 0x91, 0xb5, 0xad, - 0xb1, 0xd3, 0x2d, 0x7b, 0xd1, 0x91, 0x13, 0x86, 0x60, 0xe1, 0x78, 0xdc, 0x99, 0xc9, 0xc5, 0xbe, - 0x40, 0xd5, 0x8b, 0xaa, 0x0f, 0xd3, 0xd7, 0xe8, 0x55, 0xdb, 0xe7, 0xe8, 0x2b, 0x54, 0xd5, 0xd8, - 0x09, 0x71, 0xa2, 0x04, 0x0a, 0x2b, 0x55, 0xbd, 0xb1, 0x34, 0xe7, 0xf7, 0x3b, 0x3e, 0xe7, 0xfc, - 0xce, 0x99, 0x0f, 0x90, 0xbf, 0xf0, 0xdc, 0xee, 0x9e, 0xfc, 0x54, 0x43, 0x46, 0x05, 0x85, 0xb9, - 0x6e, 0x40, 0xbd, 0xaa, 0x34, 0x14, 0x5f, 0x77, 0x3d, 0x71, 0xd5, 0x6f, 0x57, 0x3b, 0xb4, 0xb7, - 0x47, 0x43, 0x12, 0x74, 0x68, 0x70, 0xe9, 0x75, 0xf7, 0x24, 0x61, 0x4f, 0x7c, 0x08, 0x09, 0x8f, - 0xbf, 0xb1, 0x63, 0xf9, 0xd7, 0x34, 0x50, 0x6c, 0xe1, 0x32, 0x51, 0xd7, 0x90, 0x83, 0xc8, 0xf7,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96, 0xef, 0x72, 0x81, 0xa3, - 0xa0, 0x5c, 0x9e, 0x79, 0x58, 0x78, 0x3d, 0xc2, 0x85, 0xdb, 0x0b, 0x0b, 0xf3, 0xa5, 0x54, 0x25, - 0x8b, 0x36, 0x25, 0x61, 0x90, 0x2a, 0x13, 0xce, 0x10, 0x85, 0x75, 0xf0, 0x64, 0xe4, 0xda, 0x25, - 0x91, 0xfa, 0x72, 0x20, 0x46, 0xfe, 0x0b, 0x91, 0x7f, 0x71, 0xe8, 0x7f, 0x42, 0x44, 0xac, 0xfe, - 0xe8, 0x1f, 0x35, 0xb0, 0x11, 0x12, 0xc2, 0xb0, 0x4f, 0x3b, 0xd7, 0x58, 0xda, 0xda, 0xbe, 0xc7, - 0xaf, 0xc8, 0x45, 0xe1, 0x51, 0x34, 0x46, 0xeb, 0x12, 0x6c, 0xd2, 0xce, 0xb5, 0x36, 0x82, 0xe0, - 0x73, 0xb0, 0x3a, 0xf2, 0xf1, 0x29, 0x17, 0x85, 0xc5, 0x88, 0xbc, 0x3c, 0x24, 0x37, 0x29, 0x17, - 0xf0, 0x10, 0x6c, 0x12, 0xc6, 0x28, 0xc3, 0x1d, 0xda, 0x0f, 0x04, 0x96, 0x23, 0xd2, 0xf3, 0x82, - 0xbe, 0x20, 0x85, 0x5c, 0x29, 0x53, 0x59, 0x41, 0xeb, 0x11, 0x7a, 0x24, 0x41, 0x8b, 0xb0, 0xb7, - 0x11, 0x04, 0x77, 0xc0, 0xb2, 0xa0, 0xc2, 0xf5, 0x71, 0x04, 0xf2, 0x02, 0x88, 0x0a, 0x58, 0x8a, - 0x6c, 0x5a, 0x64, 0xda, 0xfd, 0x43, 0x5e, 0x9b, 0xe3, 0x1a, 0x6e, 0x83, 0xc7, 0x16, 0xaa, 0xdb, - 0xd8, 0x32, 0x9b, 0xe7, 0x86, 0xf9, 0x56, 0x57, 0x9b, 0xb8, 0x65, 0x9c, 0x19, 0xe6, 0x3b, 0x43, - 0x99, 0x83, 0x5b, 0x60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0xf8, 0xf3, 0x62, 0xa6, 0x9c, 0xad, 0xae, 0xd4, 0x77, 0x6a, + 0x57, 0x59, 0xd5, 0xa6, 0x63, 0xd4, 0x6c, 0xc2, 0x6c, 0xca, 0xc4, 0x70, 0x89, 0x0a, 0xd1, 0xc4, + 0x9a, 0x97, 0x7e, 0x56, 0xc0, 0xda, 0x24, 0x07, 0xd6, 0x40, 0xde, 0x0f, 0x05, 0x61, 0x17, 0x5e, + 0x97, 0xc4, 0xe9, 0xac, 0xd4, 0xd5, 0x24, 0x44, 0x52, 0x91, 0xed, 0x89, 0x4b, 0x34, 0xa6, 0xc0, + 0x06, 0x28, 0x44, 0xac, 0xc3, 0x71, 0x44, 0x83, 0xf7, 0x21, 0xed, 0xfb, 0x5e, 0x50, 0xcc, 0x94, + 0x95, 0xea, 0x5a, 0x7d, 0x33, 0x95, 0x98, 0xcd, 0x3a, 0xdc, 0xbe, 0x22, 0xa0, 0xb5, 0x68, 0x62, + 0x0d, 0xf7, 0xc1, 0xba, 0x20, 0x5c, 0xe0, 0xf3, 0xc1, 0xa8, 0x13, 0x21, 0xe6, 0xa4, 0xcb, 0x8b, + 0xd9, 0xb2, 0x52, 0x5d, 0x45, 0x50, 0x82, 0xcd, 0x21, 0x66, 0x84, 0x0e, 0xe9, 0xf2, 0xca, 0x0f, + 0x19, 0xf0, 0x20, 0x55, 0x2e, 0x8f, 0x68, 0xc8, 0xc9, 0xad, 0x7a, 0xfa, 0x16, 0xc0, 0x54, 0x4f, + 0x93, 0x1f, 0x8c, 0x9a, 0xfa, 0x72, 0x76, 0x53, 0x13, 0xd2, 0xb8, 0xab, 0xc9, 0x1a, 0xa9, 0xd1, + 0xa4, 0x81, 0x97, 0x22, 0x50, 0x98, 0x22, 0xdd, 0xba, 0xaf, 0x9f, 0x81, 0x25, 0x2e, 0x3c, 0x31, + 0xe0, 0xc3, 0x76, 0xae, 0xa7, 0x52, 0x6a, 0x10, 0x26, 0x9c, 0x18, 0x44, 0x43, 0x52, 0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0x3c, 0xc5, 0x47, 0x9a, 0xd1, 0x6a, 0x23, 0x5d, 0x5d, 0x81, 0x8f, 0x41, 0x69, 0x36, + 0xa5, 0x65, 0x39, 0xae, 0x7a, 0x7f, 0x1a, 0x37, 0x4c, 0x57, 0x47, 0xa6, 0xd6, 0x1a, 0xb6, 0x7e, + 0xb5, 0xfe, 0x87, 0x02, 0x72, 0x4d, 0xdf, 0xeb, 0xc1, 0x13, 0x90, 0xbf, 0x7a, 0x13, 0xc1, 0xad, + 0x6b, 0x9e, 0x9f, 0xa5, 0x0f, 0xaf, 0x7b, 0x46, 0x55, 0x16, 0xa0, 0x0e, 0x96, 0x47, 0xb7, 0x2e, + 0x2c, 0xcd, 0x7f, 0x65, 0x94, 0xb6, 0xae, 0xb9, 0xa6, 0x2b, 0x0b, 0xd0, 0x05, 0xab, 0x13, 0xe7, + 0x37, 0x7c, 0x72, 0xc3, 0x2d, 0x56, 0x2a, 0xdf, 0x74, 0xf4, 0x57, 0x16, 0x1a, 0xcb, 0xbf, 0x7e, + 0xb9, 0xb8, 0x57, 0xdb, 0xaf, 0xed, 0x75, 0x96, 0xe2, 0x57, 0xfc, 0xc1, 0x5f, 0x01, 0x00, 0x00, + 0xff, 0xff, 0x01, 0x94, 0x0f, 0x66, 0x11, 0x0c, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. diff --git a/file/file.pb.go b/file/file.pb.go index 7b01f524..c38247cf 100644 --- a/file/file.pb.go +++ b/file/file.pb.go @@ -818,45 +818,45 @@ func init() { func init() { proto.RegisterFile("file/file.proto", fileDescriptor_ad806f8986a0c3f6) } var fileDescriptor_ad806f8986a0c3f6 = []byte{ - // 597 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x54, 0xdd, 0x6e, 0xd3, 0x4c, - 0x10, 0x8d, 0x1b, 0xa7, 0x4d, 0xc6, 0x4d, 0x5b, 0xed, 0xf7,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 0xc1, 0x60, 0x9e, 0x12, 0x91, 0x44, 0x1c, 0x3b, 0xef, 0xe0, 0x40, 0xe7, 0x45, 0x8f, 0xc1, - 0xca, 0x48, 0x4c, 0x39, 0x19, 0x8a, 0xca, 0x52, 0x4b, 0xcd, 0x07, 0x05, 0xbd, 0x09, 0x23, 0x82, - 0x2e, 0xc0, 0x4a, 0x49, 0x16, 0x87, 0x8c, 0x85, 0x34, 0x51, 0x35, 0xeb, 0x7e, 0x11, 0xea, 0xd6, - 0xe0, 0x20, 0x53, 0x6a, 0xdd, 0x3a, 0x58, 0x52, 0x3b, 0x4b, 0x69, 0xc2, 0x88, 0xfb, 0x02, 0xe0, - 0x96, 0x2c, 0xfc, 0xfe, 0xad, 0x94, 0xfb, 0x09, 0x2c, 0x49, 0x57, 0xd1, 0x2b, 0x56, 0x8d, 0x7b, - 0xad, 0xee, 0xed, 0xb4, 0xda, 0x05, 0xa8, 0x66, 0xb9, 0x9c, 0x39, 0x9c, 0x0d, 0x32, 0x9c, 0xb0, - 0x09, 0xc9, 0x06, 0xd4, 0x97, 0x75, 0x73, 0x6d, 0xe7, 0x00, 0x11, 0x1d, 0xe1, 0x68, 0x98, 0x62, - 0x1e, 0x68, 0x69, 0x35, 0x89, 0xf4, 0x31, 0x0f, 0x50, 0x07, 0x8e, 0xb5, 0xf4, 0x31, 0xfd, 0x96, - 0x44, 0x14, 0x8f, 0x75, 0xdd, 0x53, 0x4f, 0x4f, 0x58, 0xa5, 0xbb, 0xd1, 0xa7, 0xfe, 0x51, 0xb6, - 0xf2, 0xed, 0x76, 0xc0, 0xde, 0x2c, 0xad, 0x7d, 0x5e, 0x6a, 0x27, 0xc6, 0x56, 0x27, 0xca, 0x87, - 0xfb, 0x04, 0xac, 0x0f, 0x1c, 0x2f, 0x7a, 0x89, 0xc0, 0x2c, 0x28, 0x95, 0xef, 0xee, 0x35, 0x1c, - 0x2a, 0x8a, 0xce, 0xfb, 0x0c, 0x2a, 0x8c, 0x63, 0xd9, 0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xaf, 0x75, 0xb7, 0x2f, 0xff, 0xd8, 0xae, 0xfe, 0x04, 0x00, 0x00, 0xff, 0xff, 0xf2, 0x24, 0xb9, - 0x54, 0x54, 0x05, 0x00, 0x00, + // 600 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x54, 0xcd, 0x6e, 0xd3, 0x4c, + 0x14, 0x8d, 0x1b, 0xa7, 0x4d, 0xae, 0x9b, 0xb6, 0x9a, 0xaf, 0x5f, 0x6b, 0x0c, 0x15, 0xc5, 0xdd, + 0x04, 0x04, 0x4e, 0x68, 0x37, 0x74, 0x03, 0x52, 0x14, 0xd1, 0x20, 0x81, 0x14, 0x99, 0x6c, 0x51, + 0x34, 0x75, 0x26, 0xb1, 0x85, 0xed, 0x31, 0x9e, 0x09, 0xa8, 0x2c, 0x78, 0x05, 0xde, 0x0d, 0x89, + 0x37, 0xe0, 0x41, 0xd0, 0xfc, 0x38, 0x71, 0x92, 0xa6, 0x65, 0xe3, 0xd8, 0x27, 0xe7, 0xde, 0x73, + 0xce, 0x9d, 0x6b, 0xc3, 0xfe, 0x24, 0x8a, 0x49, 0x5b, 0x5c, 0xbc, 0x2c, 0xa7, 0x9c, 0xa2, 0xc6, + 0x34, 0xa5, 0x91, 0x27, 0x00, 0xe7, 0xf9, 0x34, 0xe2, 0xe1, 0xec, 0xda, 0x0b, 0x68, 0xd2, 0xa6, + 0x19, 0x49, 0x03, 0x9a, 0x4e, 0xa2, 0x69, 0x5b, 0x10, 0xda, 0xfc, 0x26, 0x23, 0x4c, 0x5d, 0x55, + 0xa1, 0xe3, 0xdd, 0xc1, 0x0e, 0x68, 0x92, 0xd0, 0x54, 0xff, 0x28, 0xbe, 0xfb, 0xc7, 0x00, 0x18, + 0xcc, 0xb8, 0x4f, 0xbe, 0xcc, 0x08, 0xe3, 0xe8, 0x02, 0x4c, 0x51, 0x65, 0x1b, 0xa7, 0x46, 0x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0xc2, 0xd8, 0x60, 0xb6, + 0x6c, 0x6c, 0xf1, 0x3d, 0x58, 0x32, 0x56, 0x7e, 0xcb, 0x2a, 0x2d, 0x03, 0x5d, 0x82, 0x29, 0x0e, + 0x0c, 0x1d, 0xad, 0x9c, 0x6a, 0x51, 0x7b, 0xbc, 0x86, 0xcf, 0x45, 0xdf, 0xc0, 0xb6, 0x1a, 0x14, + 0xb2, 0x4b, 0xa4, 0xa5, 0x69, 0x3b, 0x0f, 0x6e, 0xf9, 0xa7, 0x68, 0xd0, 0xad, 0xff, 0x7a, 0x5d, + 0xeb, 0x78, 0x2f, 0xbd, 0xce, 0xf5, 0xb6, 0xfc, 0xd8, 0x5d, 0xfc, 0x0d, 0x00, 0x00, 0xff, 0xff, + 0xdf, 0xe7, 0xb5, 0x47, 0x68, 0x05, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. diff --git a/interface/interface.pb.go b/interface/interface.pb.go index a87d8430..09a5c64e 100644 --- a/interface/interface.pb.go +++ b/interface/interface.pb.go @@ -265,26 +265,26 @@ func init() { func init() { proto.RegisterFile("interface/interface.proto", fileDescriptor_460c38aebb3cb2d6) } var fileDescriptor_460c38aebb3cb2d6 = []byte{ - // 295 bytes of a gzipped FileDescriptorProto + // 298 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xcc, 0xcc, 0x2b, 0x49, 0x2d, 0x4a, 0x4b, 0x4c, 0x4e, 0xd5, 0x87, 0xb3, 0xf4, 0x0a, 0x8a, 0xf2, 0x4b, 0xf2, 0x85, 0xf8, 0xd2, 0xf3, 0xf2, 0x33, 0xf5, 0xe0, 0xa2, 0x52, 0x3a, 0xe9, 0x99, 0x25, 0x19, 0xa5, 0x49, 0x7a, 0xc9, 0xf9, 0xb9, 0xfa, 0xf9, 0x05, 0xa9, 0x79, 0xc9, 0xf9, 0x79, 0x69, 0x99, 0xe9, 0xfa, 0x20, - 0x55, 0xfa, 0x25, 0x95, 0x05, 0xa9, 0xc5, 0x10, 0x12, 0xa2, 0x5b, 0x29, 0x9c, 0x4b, 0x2c, 0x38, + 0x55, 0xfa, 0x25, 0x95, 0x05, 0xa9, 0xc5, 0x10, 0x12, 0xa2, 0x5b, 0x29, 0x86, 0x4b, 0x2c, 0x38, 0xb5, 0xc4, 0x27, 0x3f, 0xbf, 0x20, 0x29, 0x31, 0x39, 0xdb, 0x37, 0x3f, 0x25, 0x35, 0x28, 0xb5, - 0xb0, 0x34, 0xb5, 0xb8, 0x44, 0x48, 0x93, 0x8b, 0x13, 0x6e, 0xa8, 0x04, 0xa3, 0x02, 0xa3, 0x06, - 0xb7, 0x11, 0xb7, 0x1e, 0x44, 0x6b, 0x40, 0x62, 0x49, 0x46, 0x10, 0x42, 0x56, 0x48, 0x88, 0x8b, - 0x25, 0x37, 0x3f, 0x25, 0x55, 0x82, 0x49, 0x81, 0x51, 0x83, 0x33, 0x08, 0xcc, 0x56, 0x92, 0xe4, - 0x12, 0xc7, 0x30, 0xb8, 0xb8, 0x20, 0x3f, 0xaf, 0x38, 0x55, 0xc9, 0x99, 0x4b, 0xcc, 0x9d, 0x52, - 0x3b, 0x95, 0x74, 0xb9, 0xc4, 0xdd, 0xb1, 0x9b, 0x0f, 0x77, 0x0e, 0x23, 0x92, 0x73, 0xbc, 0xb8, - 0x64, 0x9d, 0x73, 0x52, 0x13, 0x8b, 0x3c, 0x61, 0x06, 0x38, 0xe7, 0x97, 0x82, 0x98, 0xc5, 0x38, - 0xac, 0x66, 0xc6, 0x63, 0xb5, 0x02, 0x97, 0x1c, 0x2e, 0xb3, 0x20, 0x2e, 0x30, 0xba, 0xc4, 0xc4, - 0xc5, 0x09, 0x97, 0x15, 0x4a, 0xe1, 0xe2, 0x47, 0x0b, 0x0a, 0x21, 0x35, 0x3d, 0xd4, 0x58, 0xd3, - 0xc3, 0x1e, 0x09, 0x52, 0xea, 0x04, 0xd5, 0x41, 0xc3, 0x94, 0x01, 0x64, 0x8b, 0x3b, 0x21, 0x5b, - 0xdc, 0x89, 0xb4, 0xc5, 0x1d, 0xa7, 0x2d, 0x95, 0x5c, 0x62, 0xd8, 0xfd, 0x2e, 0xa4, 0x8b, 0x6e, - 0x08, 0xde, 0xf0, 0x96, 0xd2, 0x23, 0x56, 0x39, 0xcc, 0x6a, 0x27, 0x8e, 0x4b, 0x76, 0xac, 0x06, - 0x7a, 0x86, 0x7a, 0x06, 0x49, 0x6c, 0xe0, 0xb4, 0x6b, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0x61, - 0x25, 0x1e, 0x05, 0x16, 0x03, 0x00, 0x00, + 0xb0, 0x34, 0xb5, 0xb8, 0x44, 0x48, 0x8f, 0x8b, 0x13, 0x6e, 0xa8, 0x04, 0xa3, 0x02, 0xa3, 0x06, + 0xb7, 0x91, 0x80, 0x1e, 0xd8, 0x2e, 0x88, 0xfe, 0x80, 0xc4, 0x92, 0x8c, 0x20, 0x84, 0x12, 0x21, + 0x21, 0x2e, 0x96, 0xdc, 0xfc, 0x94, 0x54, 0x09, 0x26, 0x05, 0x46, 0x0d, 0xce, 0x20, 0x30, 0x5b, + 0x49, 0x92, 0x4b, 0x1c, 0xc3, 0xf4, 0xe2, 0x82, 0xfc, 0xbc, 0xe2, 0x54, 0x25, 0x0f, 0x2e, 0x31, + 0x77, 0xaa, 0x58, 0xac, 0xa4, 0xcb, 0x25, 0xee, 0x8e, 0xdd, 0x12, 0xb8, 0x9b, 0x18, 0x91, 0xdc, + 0xe4, 0xcf, 0x25, 0xeb, 0x9c, 0x93, 0x9a, 0x58, 0xe4, 0x09, 0x33, 0xc0, 0x39, 0xbf, 0x14, 0xc4, + 0x2c, 0xc6, 0x61, 0x3f, 0x33, 0x21, 0xfb, 0x15, 0xb8, 0xe4, 0x70, 0x19, 0x08, 0x71, 0x86, 0xd1, + 0x25, 0x26, 0x2e, 0x4e, 0xb8, 0xac, 0x50, 0x0a, 0x17, 0x3f, 0x5a, 0xa0, 0x08, 0xa9, 0xe9, 0xa1, + 0x46, 0xa2, 0x1e, 0xf6, 0x38, 0x91, 0x52, 0x27, 0xa8, 0x0e, 0x1a, 0xba, 0x0c, 0x20, 0x5b, 0xdc, + 0x09, 0xd9, 0xe2, 0x4e, 0xa4, 0x2d, 0xee, 0x38, 0x6d, 0xa9, 0xe4, 0x12, 0xc3, 0xee, 0x77, 0x21, + 0x5d, 0x74, 0x43, 0xf0, 0x06, 0xba, 0x94, 0x1e, 0xb1, 0xca, 0x61, 0x56, 0x3b, 0x71, 0x5c, 0xb2, + 0x63, 0x35, 0xd0, 0x33, 0xd4, 0x33, 0x48, 0x62, 0x03, 0x27, 0x65, 0x63, 0x40, 0x00, 0x00, 0x00, + 0xff, 0xff, 0x00, 0x88, 0x3f, 0x97, 0x25, 0x03, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. diff --git a/layer2/layer2.pb.go b/layer2/layer2.pb.go index 54838487..4fdd0f30 100644 --- a/layer2/layer2.pb.go +++ b/layer2/layer2.pb.go @@ -58,7 +58,7 @@ func (PerformBERTResponse_BERTState) EnumDescriptor() ([]byte, []int) { } type ClearNeighborDiscoveryRequest struct { - Protocol types.L3Protocol `protobuf:"varint,1,opt,name=protocol,proto3,enum=types.L3Protocol" json:"protocol,omitempty"` + Protocol types.L3Protocol `protobuf:"varint,1,opt,name=protocol,proto3,enum=gnoi.types.L3Protocol" json:"protocol,omitempty"` Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -505,46 +505,46 @@ func init() { func init() { proto.RegisterFile("layer2/layer2.proto", fileDescriptor_dff9ec617d9e4348) } var fileDescriptor_dff9ec617d9e4348 = []byte{ - // 614 bytes of a gzipped FileDescriptorProto + // 617 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9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x9d, 0x7d, 0x29, 0x64, 0x7e, 0x57, 0xee, 0xbc, 0xde, + 0xda, 0x9b, 0x7f, 0xc2, 0x26, 0x4f, 0xb3, 0x42, 0x3c, 0xf8, 0x6f, 0xe1, 0x60, 0xc8, 0xee, 0x22, + 0x47, 0xc6, 0x71, 0xd6, 0x5e, 0x2e, 0x83, 0xcd, 0x54, 0x86, 0x50, 0xbe, 0xb1, 0xe1, 0x64, 0xe7, + 0xf6, 0xdd, 0x8f, 0x99, 0xeb, 0xcb, 0x8e, 0xc3, 0x58, 0xd9, 0xd3, 0xc8, 0x18, 0xc8, 0xe2, 0xd8, + 0x49, 0x86, 0xab, 0xac, 0x25, 0xab, 0xbd, 0x5a, 0x8a, 0x9b, 0xd9, 0xff, 0x02, 0x9b, 0x73, 0xd3, + 0x23, 0xcf, 0xe7, 0x7a, 0xb3, 0x96, 0xab, 0x66, 0xdc, 0x05, 0x49, 0x99, 0xdb, 0xeb, 0x3f, 0xdf, + 0x17, 0xf6, 0xcc, 0x77, 0xe6, 0xde, 0xa8, 0x18, 0x7d, 0x4b, 0xf7, 0x7f, 0x07, 0x00, 0x00, 0xff, + 0xff, 0x08, 0x4f, 0xea, 0xf4, 0xef, 0x05, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. diff --git a/system/system.pb.go b/system/system.pb.go index 94680e41..1d3da254 100644 --- a/system/system.pb.go +++ b/system/system.pb.go @@ -639,7 +639,7 @@ type PingRequest struct { Size int32 `protobuf:"varint,6,opt,name=size,proto3" json:"size,omitempty"` DoNotFragment bool `protobuf:"varint,7,opt,name=do_not_fragment,json=doNotFragment,proto3" json:"do_not_fragment,omitempty"` DoNotResolve bool `protobuf:"varint,8,opt,name=do_not_resolve,json=doNotResolve,proto3" json:"do_not_resolve,omitempty"` - L3Protocol types.L3Protocol `protobuf:"varint,9,opt,name=l3protocol,proto3,enum=types.L3Protocol" json:"l3protocol,omitempty"` + L3Protocol types.L3Protocol `protobuf:"varint,9,opt,name=l3protocol,proto3,enum=gnoi.types.L3Protocol" json:"l3protocol,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -874,7 +874,7 @@ type TracerouteRequest struct { Wait int64 `protobuf:"varint,5,opt,name=wait,proto3" json:"wait,omitempty"` DoNotFragment bool `protobuf:"varint,6,opt,name=do_not_fragment,json=doNotFragment,proto3" json:"do_not_fragment,omitempty"` DoNotResolve bool `protobuf:"varint,7,opt,name=do_not_resolve,json=doNotResolve,proto3" json:"do_not_resolve,omitempty"` - L3Protocol types.L3Protocol `protobuf:"varint,8,opt,name=l3protocol,proto3,enum=types.L3Protocol" json:"l3protocol,omitempty"` + L3Protocol types.L3Protocol `protobuf:"varint,8,opt,name=l3protocol,proto3,enum=gnoi.types.L3Protocol" json:"l3protocol,omitempty"` L4Protocol TracerouteRequest_L4Protocol `protobuf:"varint,9,opt,name=l4protocol,proto3,enum=gnoi.system.TracerouteRequest_L4Protocol" json:"l4protocol,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -1423,107 +1423,107 @@ func init() { func init() { proto.RegisterFile("system/system.proto", fileDescriptor_746080b643370b3b) } var fileDescriptor_746080b643370b3b = []byte{ - // 1595 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x57, 0x4f, 0x73, 0xe3, 0x48, - 0x15, 0x8f, 0xfc, 0xdf, 0xcf, 0x49, 0x46, 0xe9, 0x84, 0xac, 0xc6, 0x0b, 0xbb, 0x41, 0xc5, 0x52, - 0x99, 0x85, 0x72, 0x66, 0x32, 0x5b, 0xc5, 0x16, 0xd4, 0xb2, 0xe5, 0xb1, 0x15, 0x92, 0x5a, 0xc7, - 0x36, 0x6d, 0x99, 0x29, 0x4e, 0x2a, 0x45, 0xee, 0x89, 0x55, 0x23, 0xa9, 0x85, 0xba,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x5d, 0xf7, 0x6a, 0x34, 0xf4, 0x86, 0x8e, 0xd3, 0x77, 0xfa, 0x66, - 0x03, 0xed, 0x03, 0x8c, 0xf1, 0xe8, 0xf2, 0xea, 0xd5, 0x95, 0xeb, 0xf4, 0xcd, 0xa6, 0x0a, 0xee, - 0xf4, 0x9c, 0xbe, 0x33, 0xec, 0x39, 0xde, 0xef, 0xae, 0x46, 0x03, 0xb9, 0xc1, 0x04, 0xf4, 0x03, - 0x38, 0x28, 0x58, 0x7a, 0x53, 0x77, 0x74, 0x71, 0x61, 0xb6, 0xec, 0x7f, 0x18, 0x50, 0x1f, 0xfb, - 0xc1, 0x5b, 0x31, 0x08, 0xb4, 0xa1, 0xf1, 0x26, 0x8c, 0x48, 0x81, 0xc6, 0x2b, 0xb9, 0x38, 0x57, - 0x55, 0xd6, 0xe7, 0xaa, 0x36, 0x34, 0xe4, 0x27, 0x58, 0x90, 0x44, 0x8d, 0x26, 0x2b, 0x19, 0x7d, - 0x0b, 0x4f, 0x32, 0x12, 0x53, 0x4e, 0xbc, 0x19, 0x7d, 0x97, 0x44, 0xd4, 0x9f, 0x49, 0x16, 0xb6, - 0xce, 0x8f, 0x3b, 0x7a, 0x36, 0xc5, 0xd2, 0xdc, 0xd7, 0x56, 0xbc, 0x9f, 0xad, 0xc9, 0xf6, 0x5f, - 0x0d, 0x38, 0x98, 0x10, 0xae, 0x33, 0xcc, 0x1f, 0xc3, 0xe7, 0x50, 0x4f, 0x95, 0x46, 0x0f, 0x85, - 0x47, 0x6b, 0xec, 0xd1, 0xde, 0x97, 0x3b, 0x38, 0x77, 0x43, 0x3f, 0x84, 0x86, 0x18, 0x15, 0xf5, - 0x78, 0x63, 0x9c, 0xee, 0x5e, 0xee, 0xe0, 0x95, 0x06, 0x7d, 0x01, 0x95, 0xb9, 0xcf, 0xe6, 0xf2, - 0xae, 0xb5, 0xce, 0x9f, 0xe8, 0x07, 0xe8, 0xd2, 0x67, 0x73, 0xf7, 0x2e, 0x15, 0x71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x2d, 0xbf, 0x21, 0xf2, 0xa0, 0x9f, 0x6e, 0xb5, 0xad, 0x82, 0x4c, 0x73, 0x56, 0xa9, - 0x49, 0x18, 0x9d, 0x6c, 0x71, 0x5f, 0x9b, 0xb7, 0xdb, 0x3f, 0x7e, 0xc0, 0xa3, 0x18, 0xb6, 0x38, - 0xc3, 0x6f, 0x84, 0xdd, 0xf2, 0x13, 0x62, 0x23, 0xec, 0xd6, 0x1f, 0x00, 0x3b, 0xaf, 0x1a, 0xff, - 0xfe, 0x75, 0xf5, 0x79, 0xe7, 0x45, 0xe7, 0xf9, 0x4d, 0x4d, 0x7e, 0x68, 0x5f, 0xfe, 0x2f, 0x00, - 0x00, 0xff, 0xff, 0xec, 0x84, 0xe0, 0xe4, 0xcb, 0x0e, 0x00, 0x00, + // 1596 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x57, 0xdb, 0x72, 0xe3, 0x48, + 0x19, 0x8e, 0x7c, 0xf6, 0xef, 0x24, 0xa3, 0xe9, 0x84, 0xac, 0xc6, 0x03, 0xbb, 0x41, 0x05, 0x54, + 0x66, 0xa0, 0x9c, 0xd9, 0x99, 0xad, 0x85, 0x82, 0x5a, 0x28, 0x8f, 0xad, 0x90, 0xd4, 0x3a, 0xb6, + 0x69, 0xcb, 0xcc, 0x1d, 0x2a, 0x45, 0xee, 0xb1, 0x55, 0x23, 0xa9, 0x85, 0xba, 0xed, 0xd9, 0x70, + 0xcd, 0x0b, 0x70, 0x33, 0x45, 0x71, 0xc7, 0x15, 0xaf, 0xc1, 0x33, 0x70, 0xc3, 0x7b, 0xf0, 0x04, + 0x54, 0x1f, 0xe4, 0xc8, 0x89, 0x67, 0x92, 0xaa, 0xbd, 0xb1, 0xfb, 0x3f, 0xf4, 0x7f, 0xfc, 0xba, + 0xfb, 0x17, 0x1c, 0xb0, 0x6b, 0xc6, 0x49, 0x7c, 0xaa, 0xf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 0x0e, 0xa1, 0x3a, 0x23, 0x91, 0x7f, 0x2d, 0x9d, 0x56, 0xb0, 0x22, 0x44, 0x30, 0x31, 0x61, + 0xcc, 0x9f, 0x2b, 0x9f, 0x4d, 0x9c, 0x93, 0xe8, 0x6b, 0xd8, 0x63, 0xcb, 0xab, 0x80, 0xc6, 0x29, + 0x4d, 0x48, 0xc2, 0x99, 0x55, 0x39, 0x2e, 0x6f, 0xcd, 0x70, 0x53, 0x4d, 0xf8, 0x79, 0x4b, 0xb3, + 0x80, 0x58, 0xd5, 0x63, 0xe3, 0xa4, 0x81, 0x15, 0x61, 0x9b, 0xb0, 0x9f, 0x67, 0xa0, 0xaa, 0x68, + 0xcf, 0xe1, 0xa0, 0xe7, 0x27, 0x01, 0x89, 0x36, 0x33, 0x2b, 0x04, 0x64, 0xdc, 0x13, 0x50, 0xe9, + 0x41, 0x01, 0xd9, 0x47, 0x70, 0xb8, 0xe9, 0x48, 0x07, 0x70, 0x09, 0x07, 0x8a, 0x33, 0xe1, 0x3e, + 0x5f, 0xb2, 0x3c, 0x80, 0x3b, 0x6e, 0x8c, 0x87, 0xb9, 0xf9, 0xab, 0x01, 0x87, 0x9b, 0xf6, 0x34, + 0x5c, 0x8e, 0xa0, 0xe6, 0x07, 0x3c, 0x5c, 0xa9, 0x84, 0x1a, 0x58, 0x53, 0x08, 0x41, 0xe5, 0xbd, + 0x1f, 0x72, 0xdd, 0x0f, 0xb9, 0x96, 0xbc, 0x05, 0x49, 0x64, 0x2f, 0x04, 0x6f, 0x41, 0x24, 0x2a, + 0x32, 0xe2, 0x33, 0x9a, 0x58, 0x15, 0x59, 0x10, 0x4d, 0x89, 0x42, 0x07, 0x74, 0x99, 0x70, 0x59, + 0xe8, 0x3d, 0xac, 0x08, 0x7b, 0x0f, 0x5a, 0x6e, 0x18, 0x13, 0x9d, 0x8d, 0x6d, 0xc3, 0xae, 0x22, + 0x75, 0x30, 0x08, 0x2a, 0x12, 0x60, 0x86, 0x72, 0x20, 0x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0xbc, 0x6e, 0xfc, + 0xe7, 0xb7, 0xd5, 0x17, 0x9d, 0x2f, 0x3b, 0x2f, 0xae, 0x6a, 0xf2, 0xc9, 0x7d, 0xf5, 0xff, 0x00, + 0x00, 0x00, 0xff, 0xff, 0x20, 0x36, 0x19, 0xc2, 0xf8, 0x0e, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. diff --git a/types/types.pb.go b/types/types.pb.go index f8c817b8..3b6efb58 100644 --- a/types/types.pb.go +++ b/types/types.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // source: types/types.proto -package types +package gnoi_types import ( fmt "fmt" @@ -84,7 +84,7 @@ func (HashType_HashMethod) EnumDescriptor() ([]byte, []int) { // HashType defines the valid hash methods for data verification. UNSPECIFIED // should be treated an error. type HashType struct { - Method HashType_HashMethod `protobuf:"varint,1,opt,name=method,proto3,enum=types.HashType_HashMethod" json:"method,omitempty"` + Method HashType_HashMethod `protobuf:"varint,1,opt,name=method,proto3,enum=gnoi.types.HashType_HashMethod" json:"method,omitempty"` Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -386,52 +386,52 @@ var E_GnoiVersion = &proto.ExtensionDesc{ ExtendedType: (*descriptor.FileOptions)(nil), ExtensionType: (*string)(nil), Field: 1002, - Name: "types.gnoi_version", + Name: "gnoi.types.gnoi_version", Tag: "bytes,1002,opt,name=gnoi_version", Filename: "types/types.proto", } func init() { - proto.RegisterEnum("types.L3Protocol", L3Protocol_name, L3Protocol_value) - proto.RegisterEnum("types.HashType_HashMethod", HashType_HashMethod_name, HashType_HashMethod_value) - proto.RegisterType((*HashType)(nil), "types.HashType") - proto.RegisterType((*Path)(nil), "types.Path") - proto.RegisterType((*PathElem)(nil), "types.PathElem") - proto.RegisterMapType((map[string]string)(nil), "types.PathElem.KeyEntry") - proto.RegisterType((*Credentials)(nil), "types.Credentials") + proto.RegisterEnum("gnoi.types.L3Protocol", L3Protocol_name, L3Protocol_value) + proto.RegisterEnum("gnoi.types.HashType_HashMethod", HashType_HashMethod_name, HashType_HashMethod_value) + proto.RegisterType((*HashType)(nil), "gnoi.types.HashType") + proto.RegisterType((*Path)(nil), "gnoi.types.Path") + proto.RegisterType((*PathElem)(nil), "gnoi.types.PathElem") + proto.RegisterMapType((map[string]string)(nil), "gnoi.types.PathElem.KeyEntry") + proto.RegisterType((*Credentials)(nil), "gnoi.types.Credentials") proto.RegisterExtension(E_GnoiVersion) } func init() { proto.RegisterFile("types/types.proto", fileDescriptor_2c0f90c600ad7e2e) } var fileDescriptor_2c0f90c600ad7e2e = []byte{ - // 443 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x92, 0xc1, 0x6e, 0xd3, 0x40, - 0x10, 0x86, 0xb3, 0x76, 0xea, 0x3a, 0x93, 0x8a, 0x9a, 0x15, 0x42, 0x56, 0x84, 0x90, 0x65, 0x2e, - 0xa1, 0x07, 0x47, 0x75, 0x49, 0x84, 0x7a, 0x40, 0x40, 0x9a, 0x2a, 0x11, 0x14, 0x22, 0x17, 0x7a, - 0x45, 0x6e, 0x3c, 0xc4, 0x16, 0xb6, 0xd7, 0xda, 0xdd, 0x14, 0x7c, 0x43, 0x3c, 0x02, 0x8f, 0xc9, - 0x53, 0x20, 0xef, 0xda, 0xb4, 0xa2, 0x17, 0xeb, 0x9f, 0xf1, 0x37, 0xbf, 0x66, 0x76, 0x06, 0x1e, - 0xca, 0xba, 0x42, 0x31, 0x51, 0xdf, 0xa0, 0xe2, 0x4c, 0x32, 0xba, 0xa7, 0x82, 0x91, 0xb7, 0x65, - 0x6c, 0x9b, 0xe3, 0x44, 0x25, 0xaf, 0x77, 0x5f, 0x27, 0x09, 0x8a, 0x0d, 0xcf, 0x2a, 0xc9, 0xb8, - 0x06, 0xfd, 0xdf,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x24, 0xfe, 0x4f, 0x02, 0xc3, 0x39, - 0xc7, 0x04, 0x4b, 0x99, 0xc5, 0xb9, 0xa0, 0x23, 0xb0, 0x77, 0x02, 0xf9, 0x9d, 0x5e, 0xfe, 0xc5, - 0xf4, 0x29, 0x0c, 0x36, 0x39, 0xc6, 0x5c, 0xe2, 0x0f, 0xa9, 0x9d, 0x96, 0xbd, 0xe8, 0x36, 0x45, - 0x9f, 0x83, 0xd5, 0xbc, 0x2e, 0x26, 0xae, 0xe9, 0x91, 0x3b, 0x73, 0x77, 0xdb, 0x59, 0xf6, 0xa2, - 0x16, 0x78, 0x0b, 0x60, 0x57, 0xb1, 0x10, 0xdf, 0x19, 0x4f, 0x8e, 0x8e, 0x01, 0xde, 0x9f, 0xac, - 0x9b, 0x65, 0x6f, 0x58, 0x7e, 0x7f, 0x19, 0x36, 0xf4, 0x57, 0xeb, 0xab, 0x17, 0x0e, 0x69, 0xd5, - 0xcc, 0x31, 0x4e, 0x5f, 0xc3, 0xc1, 0xb6, 0x64, 0xd9, 0x97, 0x1b, 0xe4, 0x22, 0x63, 0x25, 0x7d, - 0x12, 0xe8, 0x3b, 0x0a, 0xba, 0x3b, 0x0a, 0xce, 0xb3, 0x1c, 0x3f, 0x56, 0x32, 0x63, 0xa5, 0x70, - 0xff, 0xec, 0xab, 0x41, 0x86, 0x4d, 0xc9, 0x95, 0xae, 0xb8, 0xb6, 0x14, 0x79, 0xf2, 0x37, 0x00, - 0x00, 0xff, 0xff, 0x97, 0x72, 0x64, 0x08, 0x9b, 0x02, 0x00, 0x00, + // 448 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x92, 0xdf, 0x6e, 0xd3, 0x30, + 0x14, 0xc6, 0xeb, 0xa4, 0x64, 0xe9, 0xe9, 0x04, 0xc1, 0x9a, 0x50, 0x54, 0xf1, 0x27, 0xca, 0x55, + 0xc5, 0x85, 0xab, 0x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0x14, 0x32, 0xe5, 0x05, 0x7d, 0xc8, 0x9a, 0xdd, 0x62, 0xdd, 0x6e, 0xb1, 0xb3, 0x34, 0xc3, 0x0f, + 0xa5, 0x4a, 0x79, 0x21, 0xdd, 0xdf, 0x7b, 0xfa, 0x34, 0xc3, 0x7a, 0xe4, 0xb2, 0x99, 0xb8, 0xb2, + 0x34, 0x79, 0xf4, 0x27, 0x00, 0x00, 0xff, 0xff, 0x3b, 0xfa, 0x7b, 0x5f, 0xb4, 0x02, 0x00, 0x00, } diff --git a/types/types.proto b/types/types.proto index f250158f..a5baa43d 100644 --- a/types/types.proto +++ b/types/types.proto @@ -18,7 +18,7 @@ syntax = "proto3"; import "google/protobuf/descriptor.proto"; -package types; +package gnoi.types; // Define a protobuf FileOption that defines the gNOI service version. extend google.protobuf.FileOptions { From 796c55420178bb4bdebd854fe8170c34945f12ae Mon Sep 17 00:00:00 2001 From: Rob Shakir Date: Wed, 2 Jan 2019 13:06:39 -0800 Subject: [PATCH 033/238] Add .travis.yml --- .travis.yml | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..64b227f1 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,8 @@ +language: go +go: + - 1.9.x + - 1.10.x + - 1.11.x + - master +script: + - go test ./... From 9d308da100f9814bdd4cb2e4bf9ea2b8a6882426 Mon Sep 17 00:00:00 2001 From: Eric Breverman Date: Sat, 20 Apr 2019 18:01:07 -0700 Subject: [PATCH 034/238] Add optical.proto --- compile_protos.sh | 6 +- optical/optical.pb.go | 571 ++++++++++++++++++++++++++++++++++++++++++ optical/optical.proto | 154 ++++++++++++ 3 files changed, 728 insertions(+), 3 deletions(-) create mode 100644 optical/optical.pb.go create mode 100644 optical/optical.proto diff --git a/compile_protos.sh b/compile_protos.sh index f3522ca5..dbec8175 100755 --- a/compile_protos.sh +++ b/compile_protos.sh @@ -1,10 +1,10 @@ #!/bin/sh set -euo pipefail -proto_imports=".:${GOPATH}/src/github.com/google/protobuf/src:${GOPATH}/src" +proto_imports=".:${GOPATH}/src/github.com/google/protobuf/src:${GOPATH}/src:/usr/local/google/home/ejbrever/openconfig3/gnoi" # Go -for p in types common diag bgp cert file interface layer2 mpls system; do +for p in types common diag bgp cert file interface layer2 mpls system optical; do protoc -I=$proto_imports --go_out=plugins=grpc:. $p/$p.proto done - + diff --git a/optical/optical.pb.go b/optical/optical.pb.go new file mode 100644 index 00000000..5fcf1a40 --- /dev/null +++ b/optical/optical.pb.go @@ -0,0 +1,571 @@ +// Code generated by protoc-gen-go. +// source: optical/optical.proto +// DO NOT EDIT! + +/* +Package gnoi_optical is a generated protocol buffer package. + +It is generated from these files: + optical/optical.proto + +It has these top-level messages: + OTDRRequest + OTDRConfigurationProfile + OTDRConfiguration + OTDRResponse + OTDRTrace + Event +*/ +package gnoi_optical + +import proto "github.com/golang/protobuf/proto" +import fmt "fmt" +import math "math" +import gnoi_types "github.com/openconfig/gnoi/types" + +import ( + context "golang.org/x/net/context" + grpc "google.golang.org/grpc" +) + +// 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 + +// Type definition for different profiles of fiber types. These match what is +// already defined in OpenConfig under the FIBER_TYPE_PROFILE identityref in +// openconfig-optical-amplifier.yang model. +type FiberTypeProfile int32 + +const ( + FiberTypeProfile_FTP_UNKNOWN FiberTypeProfile = 0 + FiberTypeProfile_FTP_DSF FiberTypeProfile = 1 + FiberTypeProfile_FTP_LEAF FiberTypeProfile = 2 + FiberTypeProfile_FTP_SSMF FiberTypeProfile = 3 + FiberTypeProfile_FTP_TWC FiberTypeProfile = 4 + FiberTypeProfile_FTP_TWRS FiberTypeProfile = 5 + FiberTypeProfile_FTP_LS FiberTypeProfile = 6 + FiberTypeProfile_FTP_TERAWAVE FiberTypeProfile = 7 + FiberTypeProfile_FTP_TERALIGHT FiberTypeProfile = 8 +) + +var FiberTypeProfile_name = map[int32]string{ + 0: "FTP_UNKNOWN", + 1: "FTP_DSF", + 2: "FTP_LEAF", + 3: "FTP_SSMF", + 4: "FTP_TWC", + 5: "FTP_TWRS", + 6: "FTP_LS", + 7: "FTP_TERAWAVE", + 8: "FTP_TERALIGHT", +} +var FiberTypeProfile_value = map[string]int32{ + "FTP_UNKNOWN": 0, + "FTP_DSF": 1, + "FTP_LEAF": 2, + "FTP_SSMF": 3, + "FTP_TWC": 4, + "FTP_TWRS": 5, + "FTP_LS": 6, + "FTP_TERAWAVE": 7, + "FTP_TERALIGHT": 8, +} + +func (x FiberTypeProfile) String() string { + return proto.EnumName(FiberTypeProfile_name, int32(x)) +} +func (FiberTypeProfile) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } + +type OTDRRequest_OTDRResultsMethod int32 + +const ( + OTDRRequest_RESULTS_UNKNOWN OTDRRequest_OTDRResultsMethod = 0 + OTDRRequest_RESULTS_TO_LOCAL_DISK OTDRRequest_OTDRResultsMethod = 1 + OTDRRequest_RESULTS_IN_RESPONSE OTDRRequest_OTDRResultsMethod = 2 +) + +var OTDRRequest_OTDRResultsMethod_name = map[int32]string{ + 0: "RESULTS_UNKNOWN", + 1: "RESULTS_TO_LOCAL_DISK", + 2: "RESULTS_IN_RESPONSE", +} +var OTDRRequest_OTDRResultsMethod_value = map[string]int32{ + "RESULTS_UNKNOWN": 0, + "RESULTS_TO_LOCAL_DISK": 1, + "RESULTS_IN_RESPONSE": 2, +} + +func (x OTDRRequest_OTDRResultsMethod) String() string { + return proto.EnumName(OTDRRequest_OTDRResultsMethod_name, int32(x)) +} +func (OTDRRequest_OTDRResultsMethod) EnumDescriptor() ([]byte, []int) { + return fileDescriptor0, []int{0, 0} +} + +type OTDRResponse_OTDRState int32 + +const ( + OTDRResponse_UNKNOWN OTDRResponse_OTDRState = 0 + OTDRResponse_RUNNING OTDRResponse_OTDRState = 1 + OTDRResponse_PENDING OTDRResponse_OTDRState = 2 + OTDRResponse_COMPLETE OTDRResponse_OTDRState = 3 +) + +var OTDRResponse_OTDRState_name = map[int32]string{ + 0: "UNKNOWN", + 1: "RUNNING", + 2: "PENDING", + 3: "COMPLETE", +} +var OTDRResponse_OTDRState_value = map[string]int32{ + "UNKNOWN": 0, + "RUNNING": 1, + "PENDING": 2, + "COMPLETE": 3, +} + +func (x OTDRResponse_OTDRState) String() string { + return proto.EnumName(OTDRResponse_OTDRState_name, int32(x)) +} +func (OTDRResponse_OTDRState) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{3, 0} } + +type OTDRRequest struct { + // Absolute path to the /components/component list member in the OpenConfig + // model corresponding to the port to perform the OTDR trace from. + // (e.g., /components/component[name=otdr-1-1]) + Component *gnoi_types.Path `protobuf:"bytes,1,opt,name=component" json:"component,omitempty"` + // Describes how the results of the OTDR trace should be made available. More + // than one option may be specified if desired. + ResultsMethod []OTDRRequest_OTDRResultsMethod `protobuf:"varint,2,rep,packed,name=results_method,json=resultsMethod,enum=gnoi.optical.OTDRRequest_OTDRResultsMethod" json:"results_method,omitempty"` + // Describes the configuration used to perform an OTDR trace for the needed + // circumstance. + Configuration *OTDRConfigurationProfile `protobuf:"bytes,3,opt,name=configuration" json:"configuration,omitempty"` + // If specified, the device will label the OTDR trace so it can be recalled + // later. For example, the initial OTDR trace measured during span + // commissioning might be labeled "baseline". + Label string `protobuf:"bytes,4,opt,name=label" json:"label,omitempty"` +} + +func (m *OTDRRequest) Reset() { *m = OTDRRequest{} } +func (m *OTDRRequest) String() string { return proto.CompactTextString(m) } +func (*OTDRRequest) ProtoMessage() {} +func (*OTDRRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } + +func (m *OTDRRequest) GetComponent() *gnoi_types.Path { + if m != nil { + return m.Component + } + return nil +} + +func (m *OTDRRequest) GetConfiguration() *OTDRConfigurationProfile { + if m != nil { + return m.Configuration + } + return nil +} + +type OTDRConfigurationProfile struct { + // Types that are valid to be assigned to ProfileType: + // *OTDRConfigurationProfile_CustomProfile + // *OTDRConfigurationProfile_Profile + ProfileType isOTDRConfigurationProfile_ProfileType `protobuf_oneof:"profile_type"` +} + +func (m *OTDRConfigurationProfile) Reset() { *m = OTDRConfigurationProfile{} } +func (m *OTDRConfigurationProfile) String() string { return proto.CompactTextString(m) } +func (*OTDRConfigurationProfile) ProtoMessage() {} +func (*OTDRConfigurationProfile) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } + +type isOTDRConfigurationProfile_ProfileType interface { + isOTDRConfigurationProfile_ProfileType() +} + +type OTDRConfigurationProfile_CustomProfile struct { + CustomProfile string `protobuf:"bytes,1,opt,name=custom_profile,json=customProfile,oneof"` +} +type OTDRConfigurationProfile_Profile struct { + Profile *OTDRConfiguration `protobuf:"bytes,2,opt,name=profile,oneof"` +} + +func (*OTDRConfigurationProfile_CustomProfile) isOTDRConfigurationProfile_ProfileType() {} +func (*OTDRConfigurationProfile_Profile) isOTDRConfigurationProfile_ProfileType() {} + +func (m *OTDRConfigurationProfile) GetProfileType() isOTDRConfigurationProfile_ProfileType { + if m != nil { + return m.ProfileType + } + return nil +} + +func (m *OTDRConfigurationProfile) GetCustomProfile() string { + if x, ok := m.GetProfileType().(*OTDRConfigurationProfile_CustomProfile); ok { + return x.CustomProfile + } + return "" +} + +func (m *OTDRConfigurationProfile) GetProfile() *OTDRConfiguration { + if x, ok := m.GetProfileType().(*OTDRConfigurationProfile_Profile); ok { + return x.Profile + } + return nil +} + +// XXX_OneofFuncs is for the internal use of the proto package. +func (*OTDRConfigurationProfile) 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 _OTDRConfigurationProfile_OneofMarshaler, _OTDRConfigurationProfile_OneofUnmarshaler, _OTDRConfigurationProfile_OneofSizer, []interface{}{ + (*OTDRConfigurationProfile_CustomProfile)(nil), + (*OTDRConfigurationProfile_Profile)(nil), + } +} + +func _OTDRConfigurationProfile_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*OTDRConfigurationProfile) + // profile_type + switch x := m.ProfileType.(type) { + case *OTDRConfigurationProfile_CustomProfile: + b.EncodeVarint(1<<3 | proto.WireBytes) + b.EncodeStringBytes(x.CustomProfile) + case *OTDRConfigurationProfile_Profile: + b.EncodeVarint(2<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Profile); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("OTDRConfigurationProfile.ProfileType has unexpected type %T", x) + } + return nil +} + +func _OTDRConfigurationProfile_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*OTDRConfigurationProfile) + switch tag { + case 1: // profile_type.custom_profile + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + x, err := b.DecodeStringBytes() + m.ProfileType = &OTDRConfigurationProfile_CustomProfile{x} + return true, err + case 2: // profile_type.profile + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(OTDRConfiguration) + err := b.DecodeMessage(msg) + m.ProfileType = &OTDRConfigurationProfile_Profile{msg} + return true, err + default: + return false, nil + } +} + +func _OTDRConfigurationProfile_OneofSizer(msg proto.Message) (n int) { + m := msg.(*OTDRConfigurationProfile) + // profile_type + switch x := m.ProfileType.(type) { + case *OTDRConfigurationProfile_CustomProfile: + n += proto.SizeVarint(1<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(len(x.CustomProfile))) + n += len(x.CustomProfile) + case *OTDRConfigurationProfile_Profile: + s := proto.Size(x.Profile) + n += proto.SizeVarint(2<<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 +} + +// OTDR configuration options which can be set on the device. It is not required +// that every field be set as some fields may not apply for a given +// implementation. +type OTDRConfiguration struct { + // The time in seconds in which the OTDR trace will run continuously to + // collect data. + AcquisitionTimeS uint32 `protobuf:"varint,1,opt,name=acquisition_time_s,json=acquisitionTimeS" json:"acquisition_time_s,omitempty"` + // The pulse width in nanoseconds which defines how long pulses sent by the + // OTDR will be during the test. + PulseWidthNs float32 `protobuf:"fixed32,2,opt,name=pulse_width_ns,json=pulseWidthNs" json:"pulse_width_ns,omitempty"` + // The wavelength in MHz that will be sent by the OTDR. This may be left blank + // if the OTDR only supports one wavelength. + WavelengthMhz uint64 `protobuf:"varint,3,opt,name=wavelength_mhz,json=wavelengthMhz" json:"wavelength_mhz,omitempty"` + // The maximum fiber distance range in meters that the OTDR trace will + // support. + RangeM float32 `protobuf:"fixed32,4,opt,name=range_m,json=rangeM" json:"range_m,omitempty"` + // The type of fiber that is being measured. + FiberType FiberTypeProfile `protobuf:"varint,5,opt,name=fiber_type,json=fiberType,enum=gnoi.optical.FiberTypeProfile" json:"fiber_type,omitempty"` +} + +func (m *OTDRConfiguration) Reset() { *m = OTDRConfiguration{} } +func (m *OTDRConfiguration) String() string { return proto.CompactTextString(m) } +func (*OTDRConfiguration) ProtoMessage() {} +func (*OTDRConfiguration) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} } + +type OTDRResponse struct { + // The local path in which the OTDR file is saved on the device. + LocalPath string `protobuf:"bytes,1,opt,name=local_path,json=localPath" json:"local_path,omitempty"` + // The OTDR trace details in a structured format. + OtdrTrace *OTDRTrace `protobuf:"bytes,2,opt,name=otdr_trace,json=otdrTrace" json:"otdr_trace,omitempty"` + // The state of the OTDR trace requested. Note that this does not include + // error states as these should be returned as a gRPC error. + State OTDRResponse_OTDRState `protobuf:"varint,3,opt,name=state,enum=gnoi.optical.OTDRResponse_OTDRState" json:"state,omitempty"` +} + +func (m *OTDRResponse) Reset() { *m = OTDRResponse{} } +func (m *OTDRResponse) String() string { return proto.CompactTextString(m) } +func (*OTDRResponse) ProtoMessage() {} +func (*OTDRResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} } + +func (m *OTDRResponse) GetOtdrTrace() *OTDRTrace { + if m != nil { + return m.OtdrTrace + } + return nil +} + +type OTDRTrace struct { + // Total measured loss of the fiber. + TotalLossDb float32 `protobuf:"fixed32,1,opt,name=total_loss_db,json=totalLossDb" json:"total_loss_db,omitempty"` + // Total measured length of the fiber in meters. + TotalLengthM float32 `protobuf:"fixed32,2,opt,name=total_length_m,json=totalLengthM" json:"total_length_m,omitempty"` + // Optical return loss of the fiber in dB. + OpticalReturnLossDb float32 `protobuf:"fixed32,3,opt,name=optical_return_loss_db,json=opticalReturnLossDb" json:"optical_return_loss_db,omitempty"` + // Average fiber loss (dB/km) + AverageLossDbKm float32 `protobuf:"fixed32,4,opt,name=average_loss_db_km,json=averageLossDbKm" json:"average_loss_db_km,omitempty"` + // Discovered fiber type, if the OTDR can infer this information. + DiscoveredFiberType FiberTypeProfile `protobuf:"varint,5,opt,name=discovered_fiber_type,json=discoveredFiberType,enum=gnoi.optical.FiberTypeProfile" json:"discovered_fiber_type,omitempty"` + Events []*Event `protobuf:"bytes,6,rep,name=events" json:"events,omitempty"` +} + +func (m *OTDRTrace) Reset() { *m = OTDRTrace{} } +func (m *OTDRTrace) String() string { return proto.CompactTextString(m) } +func (*OTDRTrace) ProtoMessage() {} +func (*OTDRTrace) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} } + +func (m *OTDRTrace) GetEvents() []*Event { + if m != nil { + return m.Events + } + return nil +} + +type Event struct { + // Distance at which the event occurred in meters. + DistanceM float32 `protobuf:"fixed32,1,opt,name=distance_m,json=distanceM" json:"distance_m,omitempty"` + // The fiber loss that occurred at the event in dB. + LossDb float32 `protobuf:"fixed32,2,opt,name=loss_db,json=lossDb" json:"loss_db,omitempty"` + // The reflection that occurred at the event in dB. + ReflectionDb float32 `protobuf:"fixed32,3,opt,name=reflection_db,json=reflectionDb" json:"reflection_db,omitempty"` +} + +func (m *Event) Reset() { *m = Event{} } +func (m *Event) String() string { return proto.CompactTextString(m) } +func (*Event) ProtoMessage() {} +func (*Event) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} } + +func init() { + proto.RegisterType((*OTDRRequest)(nil), "gnoi.optical.OTDRRequest") + proto.RegisterType((*OTDRConfigurationProfile)(nil), "gnoi.optical.OTDRConfigurationProfile") + proto.RegisterType((*OTDRConfiguration)(nil), "gnoi.optical.OTDRConfiguration") + proto.RegisterType((*OTDRResponse)(nil), "gnoi.optical.OTDRResponse") + proto.RegisterType((*OTDRTrace)(nil), "gnoi.optical.OTDRTrace") + proto.RegisterType((*Event)(nil), "gnoi.optical.Event") + proto.RegisterEnum("gnoi.optical.FiberTypeProfile", FiberTypeProfile_name, FiberTypeProfile_value) + proto.RegisterEnum("gnoi.optical.OTDRRequest_OTDRResultsMethod", OTDRRequest_OTDRResultsMethod_name, OTDRRequest_OTDRResultsMethod_value) + proto.RegisterEnum("gnoi.optical.OTDRResponse_OTDRState", OTDRResponse_OTDRState_name, OTDRResponse_OTDRState_value) +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion3 + +// Client API for Optical service + +type OpticalClient interface { + // InitiateOTDR triggers an optical time domain reflectometer (OTDR) trace to + // be run on a specified port. The results of the trace may be sent back in + // the response or saved on the device to be retrieved later. If the + // information is saved on the device a path to the file must be returned + // which can later be used by File.Get or File.TransferToRemote. The RPC + // should initiate the OTDR trace and wait until the OTDR trace has completed + // and the device has processed the results before returning. If the RPC is + // cancelled while in operation, the running OTDR trace should stop. As only + // one OTDR trace can take place concurrently, the RPC should error if a + // trace is currently running. + InitiateOTDR(ctx context.Context, in *OTDRRequest, opts ...grpc.CallOption) (Optical_InitiateOTDRClient, error) +} + +type opticalClient struct { + cc *grpc.ClientConn +} + +func NewOpticalClient(cc *grpc.ClientConn) OpticalClient { + return &opticalClient{cc} +} + +func (c *opticalClient) InitiateOTDR(ctx context.Context, in *OTDRRequest, opts ...grpc.CallOption) (Optical_InitiateOTDRClient, error) { + stream, err := grpc.NewClientStream(ctx, &_Optical_serviceDesc.Streams[0], c.cc, "/gnoi.optical.Optical/InitiateOTDR", opts...) + if err != nil { + return nil, err + } + x := &opticalInitiateOTDRClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type Optical_InitiateOTDRClient interface { + Recv() (*OTDRResponse, error) + grpc.ClientStream +} + +type opticalInitiateOTDRClient struct { + grpc.ClientStream +} + +func (x *opticalInitiateOTDRClient) Recv() (*OTDRResponse, error) { + m := new(OTDRResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +// Server API for Optical service + +type OpticalServer interface { + // InitiateOTDR triggers an optical time domain reflectometer (OTDR) trace to + // be run on a specified port. The results of the trace may be sent back in + // the response or saved on the device to be retrieved later. If the + // information is saved on the device a path to the file must be returned + // which can later be used by File.Get or File.TransferToRemote. The RPC + // should initiate the OTDR trace and wait until the OTDR trace has completed + // and the device has processed the results before returning. If the RPC is + // cancelled while in operation, the running OTDR trace should stop. As only + // one OTDR trace can take place concurrently, the RPC should error if a + // trace is currently running. + InitiateOTDR(*OTDRRequest, Optical_InitiateOTDRServer) error +} + +func RegisterOpticalServer(s *grpc.Server, srv OpticalServer) { + s.RegisterService(&_Optical_serviceDesc, srv) +} + +func _Optical_InitiateOTDR_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(OTDRRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(OpticalServer).InitiateOTDR(m, &opticalInitiateOTDRServer{stream}) +} + +type Optical_InitiateOTDRServer interface { + Send(*OTDRResponse) error + grpc.ServerStream +} + +type opticalInitiateOTDRServer struct { + grpc.ServerStream +} + +func (x *opticalInitiateOTDRServer) Send(m *OTDRResponse) error { + return x.ServerStream.SendMsg(m) +} + +var _Optical_serviceDesc = grpc.ServiceDesc{ + ServiceName: "gnoi.optical.Optical", + HandlerType: (*OpticalServer)(nil), + Methods: []grpc.MethodDesc{}, + Streams: []grpc.StreamDesc{ + { + StreamName: "InitiateOTDR", + Handler: _Optical_InitiateOTDR_Handler, + ServerStreams: true, + }, + }, + Metadata: fileDescriptor0, +} + +func init() { proto.RegisterFile("optical/optical.proto", fileDescriptor0) } + +var fileDescriptor0 = []byte{ + // 893 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x94, 0x55, 0xdd, 0x6e, 0xe2, 0x46, + 0x14, 0x8e, 0x61, 0x81, 0x70, 0xf8, 0x89, 0x77, 0x68, 0x1a, 0x36, 0x52, 0x5b, 0xe4, 0x6e, 0x5b, + 0xd4, 0xac, 0x48, 0xca, 0x4a, 0xbd, 0x68, 0xd5, 0xaa, 0xd9, 0x60, 0x36, 0x28, 0x60, 0xd0, 0xd8, + 0x29, 0x37, 0x95, 0x46, 0xc6, 0x0c, 0x60, 0xd5, 0x78, 0xbc, 0xf6, 0x90, 0xd5, 0xee, 0x53, 0xf4, + 0xb2, 0x8f, 0xd2, 0xe7, 0x68, 0x1f, 0xa1, 0x52, 0x9f, 0xa3, 0x9a, 0x19, 0x3b, 0x40, 0xd3, 0xa8, + 0xea, 0x0d, 0xf8, 0x7c, 0xe7, 0x3b, 0x87, 0xef, 0x9c, 0xef, 0x00, 0x70, 0xcc, 0x22, 0xee, 0x7b, + 0x6e, 0x70, 0x9e, 0xbe, 0x77, 0xa2, 0x98, 0x71, 0x86, 0xaa, 0xcb, 0x90, 0xf9, 0x9d, 0x14, 0x3b, + 0x7d, 0xb1, 0xf4, 0xf9, 0x6a, 0x33, 0xeb, 0x78, 0x6c, 0x7d, 0xce, 0x22, 0x1a, 0x7a, 0x2c, 0x5c, + 0xf8, 0xcb, 0x73, 0xc1, 0x39, 0xe7, 0xef, 0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f, 0xb8, 0xe8, 0x7c, 0xd5, 0xb9, 0x98, 0x15, 0xe5, 0x5f, 0xcb, 0xcb, 0xbf, + 0x03, 0x00, 0x00, 0xff, 0xff, 0x02, 0xcb, 0x72, 0x49, 0xaf, 0x06, 0x00, 0x00, +} diff --git a/optical/optical.proto b/optical/optical.proto new file mode 100644 index 00000000..a91301d2 --- /dev/null +++ b/optical/optical.proto @@ -0,0 +1,154 @@ +// +// Copyright 2019 Google LLC. All Rights Reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +syntax = "proto3"; + +package gnoi.optical; + +import "third_party/openconfig/gnoi/types/types.proto"; + +option (types.gnoi_version) = "0.1.0"; + +service Optical { + // InitiateOTDR triggers an optical time domain reflectometer (OTDR) trace to + // be run on a specified port. The results of the trace may be sent back in + // the response or saved on the device to be retrieved later. If the + // information is saved on the device a path to the file must be returned + // which can later be used by File.Get or File.TransferToRemote. The RPC + // should initiate the OTDR trace and wait until the OTDR trace has completed + // and the device has processed the results before returning. If the RPC is + // cancelled while in operation, the running OTDR trace should stop. As only + // one OTDR trace can take place concurrently, the RPC should error if a + // trace is currently running. + rpc InitiateOTDR(OTDRRequest) returns (stream OTDRResponse) {} +} + +message OTDRRequest { + // Absolute path to the /components/component list member in the OpenConfig + // model corresponding to the port to perform the OTDR trace from. + // (e.g., /components/component[name=otdr-1-1]) + types.Path component = 1; + + enum OTDRResultsMethod { + RESULTS_UNKNOWN = 0; + RESULTS_TO_LOCAL_DISK = 1; // Results saved to a file on the device. + RESULTS_IN_RESPONSE = 2; // Results sent back in the response. + } + // Describes how the results of the OTDR trace should be made available. More + // than one option may be specified if desired. + repeated OTDRResultsMethod results_method = 2; + + // Describes the configuration used to perform an OTDR trace for the needed + // circumstance. + OTDRConfigurationProfile configuration = 3; + + // If specified, the device will label the OTDR trace so it can be recalled + // later. For example, the initial OTDR trace measured during span + // commissioning might be labeled "baseline". + string label = 4; +} + +message OTDRConfigurationProfile { + oneof profile_type { + // A custom OTDR configuration profile which defines a set of OTDR + // configurations. The profiles are defined by the vendor implementation. + // (e.g., 'short', 'long', 'auto'). + string custom_profile = 1; + // OTDR configuration profile which allows the user to specify granular + // control of the various configuration options. + OTDRConfiguration profile = 2; + } +} + +// OTDR configuration options which can be set on the device. It is not required +// that every field be set as some fields may not apply for a given +// implementation. +message OTDRConfiguration { + // The time in seconds in which the OTDR trace will run continuously to + // collect data. + uint16 acquisition_time_s = 1; + + // The pulse width in nanoseconds which defines how long pulses sent by the + // OTDR will be during the test. + float pulse_width_ns = 2; + + // The wavelength in MHz that will be sent by the OTDR. This may be left blank + // if the OTDR only supports one wavelength. + uint64 wavelength_mhz = 3; + + // The maximum fiber distance range in meters that the OTDR trace will + // support. + float range_m = 4; + + // The type of fiber that is being measured. + FiberTypeProfile fiber_type = 5; +} + +// Type definition for different profiles of fiber types. These match what is +// already defined in OpenConfig under the FIBER_TYPE_PROFILE identityref in +// openconfig-optical-amplifier.yang model. +enum FiberTypeProfile { + FTP_UNKNOWN = 0; + FTP_DSF = 1; // Dispersion shifted fiber. + FTP_LEAF = 2; // Large effective area fiber. + FTP_SSMF = 3; // Standard single mode fiber. + FTP_TWC = 4; // True wave classic fiber. + FTP_TWRS = 5; // True wave reduced slope fiber. + FTP_LS = 6; // LEAF Submarine fiber. + FTP_TERAWAVE = 7; // TeraWave fiber. + FTP_TERALIGHT = 8; // TeraLight fiber. +} + +message OTDRResponse { + // The local path in which the OTDR file is saved on the device. + string local_path = 1; + // The OTDR trace details in a structured format. + OTDRTrace otdr_trace = 2; + enum OTDRState { + UNKNOWN = 0; + RUNNING = 1; // The OTDR is currently performing an OTDR trace. + PENDING = 2; // The OTDR is pending underlying resources being available. + COMPLETE = 3; // The OTDR trace was completed. + } + // The state of the OTDR trace requested. Note that this does not include + // error states as these should be returned as a gRPC error. + OTDRState state = 3; +} + +message OTDRTrace { + // Total measured loss of the fiber. + float total_loss_db = 1; + // Total measured length of the fiber in meters. + float total_length_m = 2; + // Optical return loss of the fiber in dB. + float optical_return_loss_db = 3; + // Average fiber loss (dB/km) + float average_loss_db_km = 4; + // Discovered fiber type, if the OTDR can infer this information. + FiberTypeProfile discovered_fiber_type = 5; + + repeated Event events = 6; +} + +message Event { + // Distance at which the event occurred in meters. + float distance_m = 1; + // The fiber loss that occurred at the event in dB. + float loss_db = 2; + // The reflection that occurred at the event in dB. + float reflection_db = 3; +} + From c06e062a90f249231166acdd69d3afffa0363735 Mon Sep 17 00:00:00 2001 From: Eric Breverman Date: Sat, 20 Apr 2019 18:05:44 -0700 Subject: [PATCH 035/238] fix compile_protos.sh --- compile_protos.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compile_protos.sh b/compile_protos.sh index dbec8175..083b4fad 100755 --- a/compile_protos.sh +++ b/compile_protos.sh @@ -1,7 +1,7 @@ #!/bin/sh set -euo pipefail -proto_imports=".:${GOPATH}/src/github.com/google/protobuf/src:${GOPATH}/src:/usr/local/google/home/ejbrever/openconfig3/gnoi" +proto_imports=".:${GOPATH}/src/github.com/google/protobuf/src:${GOPATH}/src" # Go for p in types common diag bgp cert file interface layer2 mpls system optical; do From 228d294160c54657edc75902bb445c4c9419b9ce Mon Sep 17 00:00:00 2001 From: Eric Breverman Date: Sat, 20 Apr 2019 18:11:38 -0700 Subject: [PATCH 036/238] updates to optical.proto --- optical/optical.proto | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/optical/optical.proto b/optical/optical.proto index a91301d2..ad0e13e6 100644 --- a/optical/optical.proto +++ b/optical/optical.proto @@ -18,7 +18,7 @@ syntax = "proto3"; package gnoi.optical; -import "third_party/openconfig/gnoi/types/types.proto"; +import "github.com/openconfig/gnoi/types/types.proto"; option (types.gnoi_version) = "0.1.0"; @@ -79,7 +79,7 @@ message OTDRConfigurationProfile { message OTDRConfiguration { // The time in seconds in which the OTDR trace will run continuously to // collect data. - uint16 acquisition_time_s = 1; + uint32 acquisition_time_s = 1; // The pulse width in nanoseconds which defines how long pulses sent by the // OTDR will be during the test. From 86ed58af66bbf4d98b30c64ad645f51981847423 Mon Sep 17 00:00:00 2001 From: Eric Breverman Date: Tue, 7 May 2019 08:54:35 -0700 Subject: [PATCH 037/238] add wavelength_router service and migrate optical to just be an OTDR service --- compile_protos.sh | 2 +- optical/optical.pb.go | 571 ---------------- otdr/otdr.pb.go | 787 ++++++++++++++++++++++ optical/optical.proto => otdr/otdr.proto | 57 +- wavelength_router/wavelength_router.pb.go | 507 ++++++++++++++ wavelength_router/wavelength_router.proto | 98 +++ 6 files changed, 1435 insertions(+), 587 deletions(-) delete mode 100644 optical/optical.pb.go create mode 100644 otdr/otdr.pb.go rename optical/optical.proto => otdr/otdr.proto (82%) create mode 100644 wavelength_router/wavelength_router.pb.go create mode 100644 wavelength_router/wavelength_router.proto diff --git a/compile_protos.sh b/compile_protos.sh index 083b4fad..74dfbee9 100755 --- a/compile_protos.sh +++ b/compile_protos.sh @@ -4,7 +4,7 @@ set -euo pipefail proto_imports=".:${GOPATH}/src/github.com/google/protobuf/src:${GOPATH}/src" # Go -for p in types common diag bgp cert file interface layer2 mpls system optical; do +for p in types common diag bgp cert file interface layer2 mpls system otdr wavelength_router; do protoc -I=$proto_imports --go_out=plugins=grpc:. $p/$p.proto done diff --git a/optical/optical.pb.go b/optical/optical.pb.go deleted file mode 100644 index 5fcf1a40..00000000 --- a/optical/optical.pb.go +++ /dev/null @@ -1,571 +0,0 @@ -// Code generated by protoc-gen-go. -// source: optical/optical.proto -// DO NOT EDIT! - -/* -Package gnoi_optical is a generated protocol buffer package. - -It is generated from these files: - optical/optical.proto - -It has these top-level messages: - OTDRRequest - OTDRConfigurationProfile - OTDRConfiguration - OTDRResponse - OTDRTrace - Event -*/ -package gnoi_optical - -import proto "github.com/golang/protobuf/proto" -import fmt "fmt" -import math "math" -import gnoi_types "github.com/openconfig/gnoi/types" - -import ( - context "golang.org/x/net/context" - grpc "google.golang.org/grpc" -) - -// 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 - -// Type definition for different profiles of fiber types. These match what is -// already defined in OpenConfig under the FIBER_TYPE_PROFILE identityref in -// openconfig-optical-amplifier.yang model. -type FiberTypeProfile int32 - -const ( - FiberTypeProfile_FTP_UNKNOWN FiberTypeProfile = 0 - FiberTypeProfile_FTP_DSF FiberTypeProfile = 1 - FiberTypeProfile_FTP_LEAF FiberTypeProfile = 2 - FiberTypeProfile_FTP_SSMF FiberTypeProfile = 3 - FiberTypeProfile_FTP_TWC FiberTypeProfile = 4 - FiberTypeProfile_FTP_TWRS FiberTypeProfile = 5 - FiberTypeProfile_FTP_LS FiberTypeProfile = 6 - FiberTypeProfile_FTP_TERAWAVE FiberTypeProfile = 7 - FiberTypeProfile_FTP_TERALIGHT FiberTypeProfile = 8 -) - -var FiberTypeProfile_name = map[int32]string{ - 0: "FTP_UNKNOWN", - 1: "FTP_DSF", - 2: "FTP_LEAF", - 3: "FTP_SSMF", - 4: "FTP_TWC", - 5: "FTP_TWRS", - 6: "FTP_LS", - 7: "FTP_TERAWAVE", - 8: "FTP_TERALIGHT", -} -var FiberTypeProfile_value = map[string]int32{ - "FTP_UNKNOWN": 0, - "FTP_DSF": 1, - "FTP_LEAF": 2, - "FTP_SSMF": 3, - "FTP_TWC": 4, - "FTP_TWRS": 5, - "FTP_LS": 6, - "FTP_TERAWAVE": 7, - "FTP_TERALIGHT": 8, -} - -func (x FiberTypeProfile) String() string { - return proto.EnumName(FiberTypeProfile_name, int32(x)) -} -func (FiberTypeProfile) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } - -type OTDRRequest_OTDRResultsMethod int32 - -const ( - OTDRRequest_RESULTS_UNKNOWN OTDRRequest_OTDRResultsMethod = 0 - OTDRRequest_RESULTS_TO_LOCAL_DISK OTDRRequest_OTDRResultsMethod = 1 - OTDRRequest_RESULTS_IN_RESPONSE OTDRRequest_OTDRResultsMethod = 2 -) - -var OTDRRequest_OTDRResultsMethod_name = map[int32]string{ - 0: "RESULTS_UNKNOWN", - 1: "RESULTS_TO_LOCAL_DISK", - 2: "RESULTS_IN_RESPONSE", -} -var OTDRRequest_OTDRResultsMethod_value = map[string]int32{ - "RESULTS_UNKNOWN": 0, - "RESULTS_TO_LOCAL_DISK": 1, - "RESULTS_IN_RESPONSE": 2, -} - -func (x OTDRRequest_OTDRResultsMethod) String() string { - return proto.EnumName(OTDRRequest_OTDRResultsMethod_name, int32(x)) -} -func (OTDRRequest_OTDRResultsMethod) EnumDescriptor() ([]byte, []int) { - return fileDescriptor0, []int{0, 0} -} - -type OTDRResponse_OTDRState int32 - -const ( - OTDRResponse_UNKNOWN OTDRResponse_OTDRState = 0 - OTDRResponse_RUNNING OTDRResponse_OTDRState = 1 - OTDRResponse_PENDING OTDRResponse_OTDRState = 2 - OTDRResponse_COMPLETE OTDRResponse_OTDRState = 3 -) - -var OTDRResponse_OTDRState_name = map[int32]string{ - 0: "UNKNOWN", - 1: "RUNNING", - 2: "PENDING", - 3: "COMPLETE", -} -var OTDRResponse_OTDRState_value = map[string]int32{ - "UNKNOWN": 0, - "RUNNING": 1, - "PENDING": 2, - "COMPLETE": 3, -} - -func (x OTDRResponse_OTDRState) String() string { - return proto.EnumName(OTDRResponse_OTDRState_name, int32(x)) -} -func (OTDRResponse_OTDRState) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{3, 0} } - -type OTDRRequest struct { - // Absolute path to the /components/component list member in the OpenConfig - // model corresponding to the port to perform the OTDR trace from. - // (e.g., /components/component[name=otdr-1-1]) - Component *gnoi_types.Path `protobuf:"bytes,1,opt,name=component" json:"component,omitempty"` - // Describes how the results of the OTDR trace should be made available. More - // than one option may be specified if desired. - ResultsMethod []OTDRRequest_OTDRResultsMethod `protobuf:"varint,2,rep,packed,name=results_method,json=resultsMethod,enum=gnoi.optical.OTDRRequest_OTDRResultsMethod" json:"results_method,omitempty"` - // Describes the configuration used to perform an OTDR trace for the needed - // circumstance. - Configuration *OTDRConfigurationProfile `protobuf:"bytes,3,opt,name=configuration" json:"configuration,omitempty"` - // If specified, the device will label the OTDR trace so it can be recalled - // later. For example, the initial OTDR trace measured during span - // commissioning might be labeled "baseline". - Label string `protobuf:"bytes,4,opt,name=label" json:"label,omitempty"` -} - -func (m *OTDRRequest) Reset() { *m = OTDRRequest{} } -func (m *OTDRRequest) String() string { return proto.CompactTextString(m) } -func (*OTDRRequest) ProtoMessage() {} -func (*OTDRRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } - -func (m *OTDRRequest) GetComponent() *gnoi_types.Path { - if m != nil { - return m.Component - } - return nil -} - -func (m *OTDRRequest) GetConfiguration() *OTDRConfigurationProfile { - if m != nil { - return m.Configuration - } - return nil -} - -type OTDRConfigurationProfile struct { - // Types that are valid to be assigned to ProfileType: - // *OTDRConfigurationProfile_CustomProfile - // *OTDRConfigurationProfile_Profile - ProfileType isOTDRConfigurationProfile_ProfileType `protobuf_oneof:"profile_type"` -} - -func (m *OTDRConfigurationProfile) Reset() { *m = OTDRConfigurationProfile{} } -func (m *OTDRConfigurationProfile) String() string { return proto.CompactTextString(m) } -func (*OTDRConfigurationProfile) ProtoMessage() {} -func (*OTDRConfigurationProfile) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } - -type isOTDRConfigurationProfile_ProfileType interface { - isOTDRConfigurationProfile_ProfileType() -} - -type OTDRConfigurationProfile_CustomProfile struct { - CustomProfile string `protobuf:"bytes,1,opt,name=custom_profile,json=customProfile,oneof"` -} -type OTDRConfigurationProfile_Profile struct { - Profile *OTDRConfiguration `protobuf:"bytes,2,opt,name=profile,oneof"` -} - -func (*OTDRConfigurationProfile_CustomProfile) isOTDRConfigurationProfile_ProfileType() {} -func (*OTDRConfigurationProfile_Profile) isOTDRConfigurationProfile_ProfileType() {} - -func (m *OTDRConfigurationProfile) GetProfileType() isOTDRConfigurationProfile_ProfileType { - if m != nil { - return m.ProfileType - } - return nil -} - -func (m *OTDRConfigurationProfile) GetCustomProfile() string { - if x, ok := m.GetProfileType().(*OTDRConfigurationProfile_CustomProfile); ok { - return x.CustomProfile - } - return "" -} - -func (m *OTDRConfigurationProfile) GetProfile() *OTDRConfiguration { - if x, ok := m.GetProfileType().(*OTDRConfigurationProfile_Profile); ok { - return x.Profile - } - return nil -} - -// XXX_OneofFuncs is for the internal use of the proto package. -func (*OTDRConfigurationProfile) 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 _OTDRConfigurationProfile_OneofMarshaler, _OTDRConfigurationProfile_OneofUnmarshaler, _OTDRConfigurationProfile_OneofSizer, []interface{}{ - (*OTDRConfigurationProfile_CustomProfile)(nil), - (*OTDRConfigurationProfile_Profile)(nil), - } -} - -func _OTDRConfigurationProfile_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { - m := msg.(*OTDRConfigurationProfile) - // profile_type - switch x := m.ProfileType.(type) { - case *OTDRConfigurationProfile_CustomProfile: - b.EncodeVarint(1<<3 | proto.WireBytes) - b.EncodeStringBytes(x.CustomProfile) - case *OTDRConfigurationProfile_Profile: - b.EncodeVarint(2<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.Profile); err != nil { - return err - } - case nil: - default: - return fmt.Errorf("OTDRConfigurationProfile.ProfileType has unexpected type %T", x) - } - return nil -} - -func _OTDRConfigurationProfile_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { - m := msg.(*OTDRConfigurationProfile) - switch tag { - case 1: // profile_type.custom_profile - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - x, err := b.DecodeStringBytes() - m.ProfileType = &OTDRConfigurationProfile_CustomProfile{x} - return true, err - case 2: // profile_type.profile - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(OTDRConfiguration) - err := b.DecodeMessage(msg) - m.ProfileType = &OTDRConfigurationProfile_Profile{msg} - return true, err - default: - return false, nil - } -} - -func _OTDRConfigurationProfile_OneofSizer(msg proto.Message) (n int) { - m := msg.(*OTDRConfigurationProfile) - // profile_type - switch x := m.ProfileType.(type) { - case *OTDRConfigurationProfile_CustomProfile: - n += proto.SizeVarint(1<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(len(x.CustomProfile))) - n += len(x.CustomProfile) - case *OTDRConfigurationProfile_Profile: - s := proto.Size(x.Profile) - n += proto.SizeVarint(2<<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 -} - -// OTDR configuration options which can be set on the device. It is not required -// that every field be set as some fields may not apply for a given -// implementation. -type OTDRConfiguration struct { - // The time in seconds in which the OTDR trace will run continuously to - // collect data. - AcquisitionTimeS uint32 `protobuf:"varint,1,opt,name=acquisition_time_s,json=acquisitionTimeS" json:"acquisition_time_s,omitempty"` - // The pulse width in nanoseconds which defines how long pulses sent by the - // OTDR will be during the test. - PulseWidthNs float32 `protobuf:"fixed32,2,opt,name=pulse_width_ns,json=pulseWidthNs" json:"pulse_width_ns,omitempty"` - // The wavelength in MHz that will be sent by the OTDR. This may be left blank - // if the OTDR only supports one wavelength. - WavelengthMhz uint64 `protobuf:"varint,3,opt,name=wavelength_mhz,json=wavelengthMhz" json:"wavelength_mhz,omitempty"` - // The maximum fiber distance range in meters that the OTDR trace will - // support. - RangeM float32 `protobuf:"fixed32,4,opt,name=range_m,json=rangeM" json:"range_m,omitempty"` - // The type of fiber that is being measured. - FiberType FiberTypeProfile `protobuf:"varint,5,opt,name=fiber_type,json=fiberType,enum=gnoi.optical.FiberTypeProfile" json:"fiber_type,omitempty"` -} - -func (m *OTDRConfiguration) Reset() { *m = OTDRConfiguration{} } -func (m *OTDRConfiguration) String() string { return proto.CompactTextString(m) } -func (*OTDRConfiguration) ProtoMessage() {} -func (*OTDRConfiguration) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} } - -type OTDRResponse struct { - // The local path in which the OTDR file is saved on the device. - LocalPath string `protobuf:"bytes,1,opt,name=local_path,json=localPath" json:"local_path,omitempty"` - // The OTDR trace details in a structured format. - OtdrTrace *OTDRTrace `protobuf:"bytes,2,opt,name=otdr_trace,json=otdrTrace" json:"otdr_trace,omitempty"` - // The state of the OTDR trace requested. Note that this does not include - // error states as these should be returned as a gRPC error. - State OTDRResponse_OTDRState `protobuf:"varint,3,opt,name=state,enum=gnoi.optical.OTDRResponse_OTDRState" json:"state,omitempty"` -} - -func (m *OTDRResponse) Reset() { *m = OTDRResponse{} } -func (m *OTDRResponse) String() string { return proto.CompactTextString(m) } -func (*OTDRResponse) ProtoMessage() {} -func (*OTDRResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} } - -func (m *OTDRResponse) GetOtdrTrace() *OTDRTrace { - if m != nil { - return m.OtdrTrace - } - return nil -} - -type OTDRTrace struct { - // Total measured loss of the fiber. - TotalLossDb float32 `protobuf:"fixed32,1,opt,name=total_loss_db,json=totalLossDb" json:"total_loss_db,omitempty"` - // Total measured length of the fiber in meters. - TotalLengthM float32 `protobuf:"fixed32,2,opt,name=total_length_m,json=totalLengthM" json:"total_length_m,omitempty"` - // Optical return loss of the fiber in dB. - OpticalReturnLossDb float32 `protobuf:"fixed32,3,opt,name=optical_return_loss_db,json=opticalReturnLossDb" json:"optical_return_loss_db,omitempty"` - // Average fiber loss (dB/km) - AverageLossDbKm float32 `protobuf:"fixed32,4,opt,name=average_loss_db_km,json=averageLossDbKm" json:"average_loss_db_km,omitempty"` - // Discovered fiber type, if the OTDR can infer this information. - DiscoveredFiberType FiberTypeProfile `protobuf:"varint,5,opt,name=discovered_fiber_type,json=discoveredFiberType,enum=gnoi.optical.FiberTypeProfile" json:"discovered_fiber_type,omitempty"` - Events []*Event `protobuf:"bytes,6,rep,name=events" json:"events,omitempty"` -} - -func (m *OTDRTrace) Reset() { *m = OTDRTrace{} } -func (m *OTDRTrace) String() string { return proto.CompactTextString(m) } -func (*OTDRTrace) ProtoMessage() {} -func (*OTDRTrace) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} } - -func (m *OTDRTrace) GetEvents() []*Event { - if m != nil { - return m.Events - } - return nil -} - -type Event struct { - // Distance at which the event occurred in meters. - DistanceM float32 `protobuf:"fixed32,1,opt,name=distance_m,json=distanceM" json:"distance_m,omitempty"` - // The fiber loss that occurred at the event in dB. - LossDb float32 `protobuf:"fixed32,2,opt,name=loss_db,json=lossDb" json:"loss_db,omitempty"` - // The reflection that occurred at the event in dB. - ReflectionDb float32 `protobuf:"fixed32,3,opt,name=reflection_db,json=reflectionDb" json:"reflection_db,omitempty"` -} - -func (m *Event) Reset() { *m = Event{} } -func (m *Event) String() string { return proto.CompactTextString(m) } -func (*Event) ProtoMessage() {} -func (*Event) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} } - -func init() { - proto.RegisterType((*OTDRRequest)(nil), "gnoi.optical.OTDRRequest") - proto.RegisterType((*OTDRConfigurationProfile)(nil), "gnoi.optical.OTDRConfigurationProfile") - proto.RegisterType((*OTDRConfiguration)(nil), "gnoi.optical.OTDRConfiguration") - proto.RegisterType((*OTDRResponse)(nil), "gnoi.optical.OTDRResponse") - proto.RegisterType((*OTDRTrace)(nil), "gnoi.optical.OTDRTrace") - proto.RegisterType((*Event)(nil), "gnoi.optical.Event") - proto.RegisterEnum("gnoi.optical.FiberTypeProfile", FiberTypeProfile_name, FiberTypeProfile_value) - proto.RegisterEnum("gnoi.optical.OTDRRequest_OTDRResultsMethod", OTDRRequest_OTDRResultsMethod_name, OTDRRequest_OTDRResultsMethod_value) - proto.RegisterEnum("gnoi.optical.OTDRResponse_OTDRState", OTDRResponse_OTDRState_name, OTDRResponse_OTDRState_value) -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion3 - -// Client API for Optical service - -type OpticalClient interface { - // InitiateOTDR triggers an optical time domain reflectometer (OTDR) trace to - // be run on a specified port. The results of the trace may be sent back in - // the response or saved on the device to be retrieved later. If the - // information is saved on the device a path to the file must be returned - // which can later be used by File.Get or File.TransferToRemote. The RPC - // should initiate the OTDR trace and wait until the OTDR trace has completed - // and the device has processed the results before returning. If the RPC is - // cancelled while in operation, the running OTDR trace should stop. As only - // one OTDR trace can take place concurrently, the RPC should error if a - // trace is currently running. - InitiateOTDR(ctx context.Context, in *OTDRRequest, opts ...grpc.CallOption) (Optical_InitiateOTDRClient, error) -} - -type opticalClient struct { - cc *grpc.ClientConn -} - -func NewOpticalClient(cc *grpc.ClientConn) OpticalClient { - return &opticalClient{cc} -} - -func (c *opticalClient) InitiateOTDR(ctx context.Context, in *OTDRRequest, opts ...grpc.CallOption) (Optical_InitiateOTDRClient, error) { - stream, err := grpc.NewClientStream(ctx, &_Optical_serviceDesc.Streams[0], c.cc, "/gnoi.optical.Optical/InitiateOTDR", opts...) - if err != nil { - return nil, err - } - x := &opticalInitiateOTDRClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type Optical_InitiateOTDRClient interface { - Recv() (*OTDRResponse, error) - grpc.ClientStream -} - -type opticalInitiateOTDRClient struct { - grpc.ClientStream -} - -func (x *opticalInitiateOTDRClient) Recv() (*OTDRResponse, error) { - m := new(OTDRResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -// Server API for Optical service - -type OpticalServer interface { - // InitiateOTDR triggers an optical time domain reflectometer (OTDR) trace to - // be run on a specified port. The results of the trace may be sent back in - // the response or saved on the device to be retrieved later. If the - // information is saved on the device a path to the file must be returned - // which can later be used by File.Get or File.TransferToRemote. The RPC - // should initiate the OTDR trace and wait until the OTDR trace has completed - // and the device has processed the results before returning. If the RPC is - // cancelled while in operation, the running OTDR trace should stop. As only - // one OTDR trace can take place concurrently, the RPC should error if a - // trace is currently running. - InitiateOTDR(*OTDRRequest, Optical_InitiateOTDRServer) error -} - -func RegisterOpticalServer(s *grpc.Server, srv OpticalServer) { - s.RegisterService(&_Optical_serviceDesc, srv) -} - -func _Optical_InitiateOTDR_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(OTDRRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(OpticalServer).InitiateOTDR(m, &opticalInitiateOTDRServer{stream}) -} - -type Optical_InitiateOTDRServer interface { - Send(*OTDRResponse) error - grpc.ServerStream -} - -type opticalInitiateOTDRServer struct { - grpc.ServerStream -} - -func (x *opticalInitiateOTDRServer) Send(m *OTDRResponse) error { - return x.ServerStream.SendMsg(m) -} - -var _Optical_serviceDesc = grpc.ServiceDesc{ - ServiceName: "gnoi.optical.Optical", - HandlerType: (*OpticalServer)(nil), - Methods: []grpc.MethodDesc{}, - Streams: []grpc.StreamDesc{ - { - StreamName: "InitiateOTDR", - Handler: _Optical_InitiateOTDR_Handler, - ServerStreams: true, - }, - }, - Metadata: fileDescriptor0, -} - -func init() { proto.RegisterFile("optical/optical.proto", fileDescriptor0) } - -var fileDescriptor0 = []byte{ - // 893 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x94, 0x55, 0xdd, 0x6e, 0xe2, 0x46, - 0x14, 0x8e, 0x61, 0x81, 0x70, 0xf8, 0x89, 0x77, 0x68, 0x1a, 0x36, 0x52, 0x5b,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 0xe7, 0x50, 0x8f, 0x36, 0x41, 0x42, 0xc9, - 0x5b, 0x7f, 0xce, 0x57, 0x24, 0x4c, 0xa4, 0xae, 0x1c, 0xae, 0x4a, 0x74, 0x2a, 0x40, 0x2b, 0x41, - 0x9f, 0x41, 0xfd, 0xad, 0x7b, 0x47, 0x03, 0x1a, 0x2e, 0xf9, 0x8a, 0xac, 0x57, 0xef, 0xa5, 0x7f, - 0x4f, 0x70, 0x6d, 0x8b, 0x8e, 0x56, 0xef, 0xd1, 0x09, 0x94, 0x62, 0x37, 0x5c, 0x52, 0xb2, 0x96, - 0xce, 0xe4, 0x70, 0x51, 0x86, 0x23, 0xf4, 0x1d, 0xc0, 0xc2, 0x9f, 0xd1, 0x58, 0xea, 0x6e, 0x16, - 0x5a, 0x5a, 0xbb, 0xde, 0xfd, 0x78, 0x7f, 0xf2, 0xbe, 0xc8, 0x3b, 0xef, 0x22, 0x9a, 0x79, 0x5e, - 0x5e, 0x64, 0x88, 0xf1, 0xa7, 0x06, 0xd5, 0xd4, 0xda, 0x88, 0x85, 0x09, 0x45, 0x1f, 0x01, 0x04, - 0xcc, 0x73, 0x03, 0x12, 0xb9, 0x7c, 0xa5, 0x76, 0x8d, 0xcb, 0x12, 0x11, 0xc7, 0x8c, 0xbe, 0x06, - 0x60, 0x7c, 0x1e, 0x13, 0x1e, 0xbb, 0x5e, 0xb6, 0xe8, 0x93, 0x87, 0x8b, 0x76, 0x44, 0x1a, 0x97, - 0x05, 0x55, 0x3e, 0xa2, 0x6f, 0xa0, 0x90, 0x70, 0x97, 0x53, 0x39, 0x5d, 0xbd, 0xfb, 0xfc, 0xdf, - 0x0e, 0x5e, 0x29, 0x90, 0x81, 0x2d, 0xb8, 0x58, 0x95, 0x18, 0x3f, 0x40, 0xf9, 0x1e, 0x43, 0x15, - 0x28, 0x6d, 0xaf, 0xad, 0x02, 0x25, 0x7c, 0x6b, 0x59, 0x03, 0xeb, 0xb5, 0xae, 0x89, 0x60, 0x62, - 0x5a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x7f, 0x8a, 0x47, 0x47, 0x50, 0xe9, 0x3b, 0x13, - 0xb2, 0x67, 0xb7, 0x00, 0x7a, 0x76, 0x5f, 0xd7, 0x84, 0xc3, 0x22, 0x18, 0x9a, 0x97, 0x7d, 0xe5, - 0xb7, 0x88, 0x6c, 0x7b, 0xd4, 0xd7, 0xf3, 0x19, 0xd1, 0x99, 0x5e, 0xe9, 0x4f, 0xb2, 0x94, 0x33, - 0xc5, 0xb6, 0x5e, 0x40, 0x00, 0x45, 0x59, 0x66, 0xeb, 0x45, 0xa4, 0x43, 0x55, 0x66, 0x4c, 0x7c, - 0x39, 0xbd, 0xfc, 0xd1, 0xd4, 0x4b, 0xe8, 0x29, 0xd4, 0x32, 0x64, 0x38, 0x78, 0x7d, 0xed, 0xe8, - 0x87, 0x5d, 0x07, 0x4a, 0x63, 0xb5, 0x19, 0x34, 0x80, 0xea, 0x20, 0xf4, 0xb9, 0xef, 0x72, 0x2a, - 0xae, 0x09, 0x3d, 0x7b, 0xf4, 0x67, 0xfb, 0xf4, 0xf4, 0xf1, 0x03, 0x37, 0x0e, 0x2e, 0xb4, 0x57, - 0x87, 0xbf, 0x7f, 0x5f, 0xb8, 0xe8, 0x7c, 0xd5, 0xb9, 0x98, 0x15, 0xe5, 0x5f, 0xcb, 0xcb, 0xbf, - 0x03, 0x00, 0x00, 0xff, 0xff, 0x02, 0xcb, 0x72, 0x49, 0xaf, 0x06, 0x00, 0x00, -} diff --git a/otdr/otdr.pb.go b/otdr/otdr.pb.go new file mode 100644 index 00000000..121cb69b --- /dev/null +++ b/otdr/otdr.pb.go @@ -0,0 +1,787 @@ +// Code generated by protoc-gen-go. +// source: otdr/otdr.proto +// DO NOT EDIT! + +/* +Package gnoi_optical is a generated protocol buffer package. + +It is generated from these files: + otdr/otdr.proto + +It has these top-level messages: + InitiateRequest + OTDRConfigurationProfile + OTDRConfiguration + InitiateProgress + InitiateResults + InitiateError + InitiateResponse + OTDRTrace + Event +*/ +package gnoi_optical + +import proto "github.com/golang/protobuf/proto" +import fmt "fmt" +import math "math" +import gnoi_types "github.com/openconfig/gnoi/types" + +import ( + context "golang.org/x/net/context" + grpc "google.golang.org/grpc" +) + +// 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 + +// Type definition for different profiles of fiber types. These match what is +// already defined in OpenConfig under the FIBER_TYPE_PROFILE identityref in +// openconfig-optical-amplifier.yang model. +type FiberTypeProfile int32 + +const ( + FiberTypeProfile_FTP_UNKNOWN FiberTypeProfile = 0 + FiberTypeProfile_FTP_DSF FiberTypeProfile = 1 + FiberTypeProfile_FTP_LEAF FiberTypeProfile = 2 + FiberTypeProfile_FTP_SSMF FiberTypeProfile = 3 + FiberTypeProfile_FTP_TWC FiberTypeProfile = 4 + FiberTypeProfile_FTP_TWRS FiberTypeProfile = 5 + FiberTypeProfile_FTP_LS FiberTypeProfile = 6 + FiberTypeProfile_FTP_TERAWAVE FiberTypeProfile = 7 + FiberTypeProfile_FTP_TERALIGHT FiberTypeProfile = 8 +) + +var FiberTypeProfile_name = map[int32]string{ + 0: "FTP_UNKNOWN", + 1: "FTP_DSF", + 2: "FTP_LEAF", + 3: "FTP_SSMF", + 4: "FTP_TWC", + 5: "FTP_TWRS", + 6: "FTP_LS", + 7: "FTP_TERAWAVE", + 8: "FTP_TERALIGHT", +} +var FiberTypeProfile_value = map[string]int32{ + "FTP_UNKNOWN": 0, + "FTP_DSF": 1, + "FTP_LEAF": 2, + "FTP_SSMF": 3, + "FTP_TWC": 4, + "FTP_TWRS": 5, + "FTP_LS": 6, + "FTP_TERAWAVE": 7, + "FTP_TERALIGHT": 8, +} + +func (x FiberTypeProfile) String() string { + return proto.EnumName(FiberTypeProfile_name, int32(x)) +} +func (FiberTypeProfile) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } + +type InitiateRequest_ResultsMethod int32 + +const ( + InitiateRequest_RESULTS_UNKNOWN InitiateRequest_ResultsMethod = 0 + InitiateRequest_RESULTS_TO_LOCAL_DISK InitiateRequest_ResultsMethod = 1 + InitiateRequest_RESULTS_IN_RESPONSE InitiateRequest_ResultsMethod = 2 +) + +var InitiateRequest_ResultsMethod_name = map[int32]string{ + 0: "RESULTS_UNKNOWN", + 1: "RESULTS_TO_LOCAL_DISK", + 2: "RESULTS_IN_RESPONSE", +} +var InitiateRequest_ResultsMethod_value = map[string]int32{ + "RESULTS_UNKNOWN": 0, + "RESULTS_TO_LOCAL_DISK": 1, + "RESULTS_IN_RESPONSE": 2, +} + +func (x InitiateRequest_ResultsMethod) String() string { + return proto.EnumName(InitiateRequest_ResultsMethod_name, int32(x)) +} +func (InitiateRequest_ResultsMethod) EnumDescriptor() ([]byte, []int) { + return fileDescriptor0, []int{0, 0} +} + +type InitiateProgress_State int32 + +const ( + InitiateProgress_UNKNOWN InitiateProgress_State = 0 + InitiateProgress_RUNNING InitiateProgress_State = 1 + InitiateProgress_PENDING InitiateProgress_State = 2 + InitiateProgress_COMPLETE InitiateProgress_State = 3 +) + +var InitiateProgress_State_name = map[int32]string{ + 0: "UNKNOWN", + 1: "RUNNING", + 2: "PENDING", + 3: "COMPLETE", +} +var InitiateProgress_State_value = map[string]int32{ + "UNKNOWN": 0, + "RUNNING": 1, + "PENDING": 2, + "COMPLETE": 3, +} + +func (x InitiateProgress_State) String() string { + return proto.EnumName(InitiateProgress_State_name, int32(x)) +} +func (InitiateProgress_State) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{3, 0} } + +type InitiateError_Type int32 + +const ( + // An unspecified error. Must use the detail value to describe the issue. + InitiateError_UNSPECIFIED InitiateError_Type = 0 + // An existing OTDR trace is already in progress. + InitiateError_ALREADY_IN_PROGRESS InitiateError_Type = 1 + // The OTDR hardware has failed and cannot complete an OTDR trace. + InitiateError_HARDWARE_FAILURE InitiateError_Type = 2 +) + +var InitiateError_Type_name = map[int32]string{ + 0: "UNSPECIFIED", + 1: "ALREADY_IN_PROGRESS", + 2: "HARDWARE_FAILURE", +} +var InitiateError_Type_value = map[string]int32{ + "UNSPECIFIED": 0, + "ALREADY_IN_PROGRESS": 1, + "HARDWARE_FAILURE": 2, +} + +func (x InitiateError_Type) String() string { + return proto.EnumName(InitiateError_Type_name, int32(x)) +} +func (InitiateError_Type) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{5, 0} } + +type InitiateRequest struct { + // Absolute path to the /components/component list member in the OpenConfig + // model corresponding to the port to perform the OTDR trace from. + // (e.g., /components/component[name=otdr-1-1]) + Component *gnoi_types.Path `protobuf:"bytes,1,opt,name=component" json:"component,omitempty"` + // Describes how the results of the OTDR trace should be made available. More + // than one option may be specified if desired. + ResultsMethod []InitiateRequest_ResultsMethod `protobuf:"varint,2,rep,packed,name=results_method,json=resultsMethod,enum=gnoi.optical.InitiateRequest_ResultsMethod" json:"results_method,omitempty"` + // Describes the configuration used to perform an OTDR trace for the needed + // circumstance. + Configuration *OTDRConfigurationProfile `protobuf:"bytes,3,opt,name=configuration" json:"configuration,omitempty"` + // If specified, the device will label the OTDR trace so it can be recalled + // later. For example, the initial OTDR trace measured during span + // commissioning might be labeled "baseline". + Label string `protobuf:"bytes,4,opt,name=label" json:"label,omitempty"` +} + +func (m *InitiateRequest) Reset() { *m = InitiateRequest{} } +func (m *InitiateRequest) String() string { return proto.CompactTextString(m) } +func (*InitiateRequest) ProtoMessage() {} +func (*InitiateRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } + +func (m *InitiateRequest) GetComponent() *gnoi_types.Path { + if m != nil { + return m.Component + } + return nil +} + +func (m *InitiateRequest) GetConfiguration() *OTDRConfigurationProfile { + if m != nil { + return m.Configuration + } + return nil +} + +type OTDRConfigurationProfile struct { + // Types that are valid to be assigned to ProfileType: + // *OTDRConfigurationProfile_CustomProfile + // *OTDRConfigurationProfile_Profile + ProfileType isOTDRConfigurationProfile_ProfileType `protobuf_oneof:"profile_type"` +} + +func (m *OTDRConfigurationProfile) Reset() { *m = OTDRConfigurationProfile{} } +func (m *OTDRConfigurationProfile) String() string { return proto.CompactTextString(m) } +func (*OTDRConfigurationProfile) ProtoMessage() {} +func (*OTDRConfigurationProfile) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } + +type isOTDRConfigurationProfile_ProfileType interface { + isOTDRConfigurationProfile_ProfileType() +} + +type OTDRConfigurationProfile_CustomProfile struct { + CustomProfile string `protobuf:"bytes,1,opt,name=custom_profile,json=customProfile,oneof"` +} +type OTDRConfigurationProfile_Profile struct { + Profile *OTDRConfiguration `protobuf:"bytes,2,opt,name=profile,oneof"` +} + +func (*OTDRConfigurationProfile_CustomProfile) isOTDRConfigurationProfile_ProfileType() {} +func (*OTDRConfigurationProfile_Profile) isOTDRConfigurationProfile_ProfileType() {} + +func (m *OTDRConfigurationProfile) GetProfileType() isOTDRConfigurationProfile_ProfileType { + if m != nil { + return m.ProfileType + } + return nil +} + +func (m *OTDRConfigurationProfile) GetCustomProfile() string { + if x, ok := m.GetProfileType().(*OTDRConfigurationProfile_CustomProfile); ok { + return x.CustomProfile + } + return "" +} + +func (m *OTDRConfigurationProfile) GetProfile() *OTDRConfiguration { + if x, ok := m.GetProfileType().(*OTDRConfigurationProfile_Profile); ok { + return x.Profile + } + return nil +} + +// XXX_OneofFuncs is for the internal use of the proto package. +func (*OTDRConfigurationProfile) 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 _OTDRConfigurationProfile_OneofMarshaler, _OTDRConfigurationProfile_OneofUnmarshaler, _OTDRConfigurationProfile_OneofSizer, []interface{}{ + (*OTDRConfigurationProfile_CustomProfile)(nil), + (*OTDRConfigurationProfile_Profile)(nil), + } +} + +func _OTDRConfigurationProfile_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*OTDRConfigurationProfile) + // profile_type + switch x := m.ProfileType.(type) { + case *OTDRConfigurationProfile_CustomProfile: + b.EncodeVarint(1<<3 | proto.WireBytes) + b.EncodeStringBytes(x.CustomProfile) + case *OTDRConfigurationProfile_Profile: + b.EncodeVarint(2<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Profile); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("OTDRConfigurationProfile.ProfileType has unexpected type %T", x) + } + return nil +} + +func _OTDRConfigurationProfile_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*OTDRConfigurationProfile) + switch tag { + case 1: // profile_type.custom_profile + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + x, err := b.DecodeStringBytes() + m.ProfileType = &OTDRConfigurationProfile_CustomProfile{x} + return true, err + case 2: // profile_type.profile + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(OTDRConfiguration) + err := b.DecodeMessage(msg) + m.ProfileType = &OTDRConfigurationProfile_Profile{msg} + return true, err + default: + return false, nil + } +} + +func _OTDRConfigurationProfile_OneofSizer(msg proto.Message) (n int) { + m := msg.(*OTDRConfigurationProfile) + // profile_type + switch x := m.ProfileType.(type) { + case *OTDRConfigurationProfile_CustomProfile: + n += proto.SizeVarint(1<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(len(x.CustomProfile))) + n += len(x.CustomProfile) + case *OTDRConfigurationProfile_Profile: + s := proto.Size(x.Profile) + n += proto.SizeVarint(2<<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 +} + +// OTDR configuration options which can be set on the device. It is not required +// that every field be set as some fields may not apply for a given +// implementation. +type OTDRConfiguration struct { + // The time in seconds in which the OTDR trace will run continuously to + // collect data. + AcquisitionTimeS uint32 `protobuf:"varint,1,opt,name=acquisition_time_s,json=acquisitionTimeS" json:"acquisition_time_s,omitempty"` + // The pulse width in nanoseconds which defines how long pulses sent by the + // OTDR will be during the test. + PulseWidthNs float32 `protobuf:"fixed32,2,opt,name=pulse_width_ns,json=pulseWidthNs" json:"pulse_width_ns,omitempty"` + // The wavelength in MHz that will be sent by the OTDR. This may be left blank + // if the OTDR only supports one wavelength. + WavelengthMhz uint64 `protobuf:"varint,3,opt,name=wavelength_mhz,json=wavelengthMhz" json:"wavelength_mhz,omitempty"` + // The maximum fiber distance range in meters that the OTDR trace will + // support. + RangeM float32 `protobuf:"fixed32,4,opt,name=range_m,json=rangeM" json:"range_m,omitempty"` + // The type of fiber that is being measured. + FiberType FiberTypeProfile `protobuf:"varint,5,opt,name=fiber_type,json=fiberType,enum=gnoi.optical.FiberTypeProfile" json:"fiber_type,omitempty"` +} + +func (m *OTDRConfiguration) Reset() { *m = OTDRConfiguration{} } +func (m *OTDRConfiguration) String() string { return proto.CompactTextString(m) } +func (*OTDRConfiguration) ProtoMessage() {} +func (*OTDRConfiguration) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} } + +type InitiateProgress struct { + // The state of the OTDR trace requested. Note that this does not include + // error states as these should be returned as a gRPC error. + State InitiateProgress_State `protobuf:"varint,1,opt,name=state,enum=gnoi.optical.InitiateProgress_State" json:"state,omitempty"` +} + +func (m *InitiateProgress) Reset() { *m = InitiateProgress{} } +func (m *InitiateProgress) String() string { return proto.CompactTextString(m) } +func (*InitiateProgress) ProtoMessage() {} +func (*InitiateProgress) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} } + +type InitiateResults struct { + // The local path in which the OTDR file is saved on the device. + LocalPath string `protobuf:"bytes,1,opt,name=local_path,json=localPath" json:"local_path,omitempty"` + // The OTDR trace details in a structured format. + OtdrTrace *OTDRTrace `protobuf:"bytes,2,opt,name=otdr_trace,json=otdrTrace" json:"otdr_trace,omitempty"` +} + +func (m *InitiateResults) Reset() { *m = InitiateResults{} } +func (m *InitiateResults) String() string { return proto.CompactTextString(m) } +func (*InitiateResults) ProtoMessage() {} +func (*InitiateResults) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} } + +func (m *InitiateResults) GetOtdrTrace() *OTDRTrace { + if m != nil { + return m.OtdrTrace + } + return nil +} + +type InitiateError struct { + Type InitiateError_Type `protobuf:"varint,1,opt,name=type,enum=gnoi.optical.InitiateError_Type" json:"type,omitempty"` + Detail string `protobuf:"bytes,2,opt,name=detail" json:"detail,omitempty"` +} + +func (m *InitiateError) Reset() { *m = InitiateError{} } +func (m *InitiateError) String() string { return proto.CompactTextString(m) } +func (*InitiateError) ProtoMessage() {} +func (*InitiateError) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} } + +// IntitiateResponse describes the possible response messages that will be +// streamed after the RPC is initiated. While the OTDR is running, "progress" +// messages should be sent at a regular interval. When the OTDR trace is +// completed, a final "results" or "error" message should be streamed before +// the RPC is terminated. +type InitiateResponse struct { + // Types that are valid to be assigned to Response: + // *InitiateResponse_Progress + // *InitiateResponse_Results + // *InitiateResponse_Error + Response isInitiateResponse_Response `protobuf_oneof:"response"` +} + +func (m *InitiateResponse) Reset() { *m = InitiateResponse{} } +func (m *InitiateResponse) String() string { return proto.CompactTextString(m) } +func (*InitiateResponse) ProtoMessage() {} +func (*InitiateResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} } + +type isInitiateResponse_Response interface { + isInitiateResponse_Response() +} + +type InitiateResponse_Progress struct { + Progress *InitiateProgress `protobuf:"bytes,1,opt,name=progress,oneof"` +} +type InitiateResponse_Results struct { + Results *InitiateResults `protobuf:"bytes,2,opt,name=results,oneof"` +} +type InitiateResponse_Error struct { + Error *InitiateError `protobuf:"bytes,3,opt,name=error,oneof"` +} + +func (*InitiateResponse_Progress) isInitiateResponse_Response() {} +func (*InitiateResponse_Results) isInitiateResponse_Response() {} +func (*InitiateResponse_Error) isInitiateResponse_Response() {} + +func (m *InitiateResponse) GetResponse() isInitiateResponse_Response { + if m != nil { + return m.Response + } + return nil +} + +func (m *InitiateResponse) GetProgress() *InitiateProgress { + if x, ok := m.GetResponse().(*InitiateResponse_Progress); ok { + return x.Progress + } + return nil +} + +func (m *InitiateResponse) GetResults() *InitiateResults { + if x, ok := m.GetResponse().(*InitiateResponse_Results); ok { + return x.Results + } + return nil +} + +func (m *InitiateResponse) GetError() *InitiateError { + if x, ok := m.GetResponse().(*InitiateResponse_Error); ok { + return x.Error + } + return nil +} + +// XXX_OneofFuncs is for the internal use of the proto package. +func (*InitiateResponse) 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 _InitiateResponse_OneofMarshaler, _InitiateResponse_OneofUnmarshaler, _InitiateResponse_OneofSizer, []interface{}{ + (*InitiateResponse_Progress)(nil), + (*InitiateResponse_Results)(nil), + (*InitiateResponse_Error)(nil), + } +} + +func _InitiateResponse_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*InitiateResponse) + // response + switch x := m.Response.(type) { + case *InitiateResponse_Progress: + b.EncodeVarint(1<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Progress); err != nil { + return err + } + case *InitiateResponse_Results: + b.EncodeVarint(2<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Results); err != nil { + return err + } + case *InitiateResponse_Error: + b.EncodeVarint(3<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Error); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("InitiateResponse.Response has unexpected type %T", x) + } + return nil +} + +func _InitiateResponse_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*InitiateResponse) + switch tag { + case 1: // response.progress + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(InitiateProgress) + err := b.DecodeMessage(msg) + m.Response = &InitiateResponse_Progress{msg} + return true, err + case 2: // response.results + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(InitiateResults) + err := b.DecodeMessage(msg) + m.Response = &InitiateResponse_Results{msg} + return true, err + case 3: // response.error + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(InitiateError) + err := b.DecodeMessage(msg) + m.Response = &InitiateResponse_Error{msg} + return true, err + default: + return false, nil + } +} + +func _InitiateResponse_OneofSizer(msg proto.Message) (n int) { + m := msg.(*InitiateResponse) + // response + switch x := m.Response.(type) { + case *InitiateResponse_Progress: + s := proto.Size(x.Progress) + n += proto.SizeVarint(1<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *InitiateResponse_Results: + s := proto.Size(x.Results) + n += proto.SizeVarint(2<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *InitiateResponse_Error: + s := proto.Size(x.Error) + n += proto.SizeVarint(3<<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 +} + +type OTDRTrace struct { + // Total measured loss of the fiber. + TotalLossDb float32 `protobuf:"fixed32,1,opt,name=total_loss_db,json=totalLossDb" json:"total_loss_db,omitempty"` + // Total measured length of the fiber in meters. + TotalLengthM float32 `protobuf:"fixed32,2,opt,name=total_length_m,json=totalLengthM" json:"total_length_m,omitempty"` + // Optical return loss of the fiber in dB. + OpticalReturnLossDb float32 `protobuf:"fixed32,3,opt,name=optical_return_loss_db,json=opticalReturnLossDb" json:"optical_return_loss_db,omitempty"` + // Average fiber loss (dB/km) + AverageLossDbKm float32 `protobuf:"fixed32,4,opt,name=average_loss_db_km,json=averageLossDbKm" json:"average_loss_db_km,omitempty"` + // Discovered fiber type, if the OTDR can infer this information. + DiscoveredFiberType FiberTypeProfile `protobuf:"varint,5,opt,name=discovered_fiber_type,json=discoveredFiberType,enum=gnoi.optical.FiberTypeProfile" json:"discovered_fiber_type,omitempty"` + Events []*Event `protobuf:"bytes,6,rep,name=events" json:"events,omitempty"` +} + +func (m *OTDRTrace) Reset() { *m = OTDRTrace{} } +func (m *OTDRTrace) String() string { return proto.CompactTextString(m) } +func (*OTDRTrace) ProtoMessage() {} +func (*OTDRTrace) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} } + +func (m *OTDRTrace) GetEvents() []*Event { + if m != nil { + return m.Events + } + return nil +} + +type Event struct { + // Distance at which the event occurred in meters. + DistanceM float32 `protobuf:"fixed32,1,opt,name=distance_m,json=distanceM" json:"distance_m,omitempty"` + // The fiber loss that occurred at the event in dB. + LossDb float32 `protobuf:"fixed32,2,opt,name=loss_db,json=lossDb" json:"loss_db,omitempty"` + // The reflection that occurred at the event in dB. + ReflectionDb float32 `protobuf:"fixed32,3,opt,name=reflection_db,json=reflectionDb" json:"reflection_db,omitempty"` +} + +func (m *Event) Reset() { *m = Event{} } +func (m *Event) String() string { return proto.CompactTextString(m) } +func (*Event) ProtoMessage() {} +func (*Event) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} } + +func init() { + proto.RegisterType((*InitiateRequest)(nil), "gnoi.optical.InitiateRequest") + proto.RegisterType((*OTDRConfigurationProfile)(nil), "gnoi.optical.OTDRConfigurationProfile") + proto.RegisterType((*OTDRConfiguration)(nil), "gnoi.optical.OTDRConfiguration") + proto.RegisterType((*InitiateProgress)(nil), "gnoi.optical.InitiateProgress") + proto.RegisterType((*InitiateResults)(nil), "gnoi.optical.InitiateResults") + proto.RegisterType((*InitiateError)(nil), "gnoi.optical.InitiateError") + proto.RegisterType((*InitiateResponse)(nil), "gnoi.optical.InitiateResponse") + proto.RegisterType((*OTDRTrace)(nil), "gnoi.optical.OTDRTrace") + proto.RegisterType((*Event)(nil), "gnoi.optical.Event") + proto.RegisterEnum("gnoi.optical.FiberTypeProfile", FiberTypeProfile_name, FiberTypeProfile_value) + proto.RegisterEnum("gnoi.optical.InitiateRequest_ResultsMethod", InitiateRequest_ResultsMethod_name, InitiateRequest_ResultsMethod_value) + proto.RegisterEnum("gnoi.optical.InitiateProgress_State", InitiateProgress_State_name, InitiateProgress_State_value) + proto.RegisterEnum("gnoi.optical.InitiateError_Type", InitiateError_Type_name, InitiateError_Type_value) +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion3 + +// Client API for OTDR service + +type OTDRClient interface { + // InitiateOTDR triggers an optical time domain reflectometer (OTDR) trace to + // be run on a specified port. The results of the trace may be sent back in + // the response or saved on the device to be retrieved later. If the + // information is saved on the device a path to the file must be returned + // which can later be used by File.Get or File.TransferToRemote. The RPC + // should initiate the OTDR trace and wait until the OTDR trace has completed + // and the device has processed the results before returning. If the RPC is + // cancelled while in operation, the running OTDR trace should stop. + Initiate(ctx context.Context, in *InitiateRequest, opts ...grpc.CallOption) (OTDR_InitiateClient, error) +} + +type oTDRClient struct { + cc *grpc.ClientConn +} + +func NewOTDRClient(cc *grpc.ClientConn) OTDRClient { + return &oTDRClient{cc} +} + +func (c *oTDRClient) Initiate(ctx context.Context, in *InitiateRequest, opts ...grpc.CallOption) (OTDR_InitiateClient, error) { + stream, err := grpc.NewClientStream(ctx, &_OTDR_serviceDesc.Streams[0], c.cc, "/gnoi.optical.OTDR/Initiate", opts...) + if err != nil { + return nil, err + } + x := &oTDRInitiateClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type OTDR_InitiateClient interface { + Recv() (*InitiateResponse, error) + grpc.ClientStream +} + +type oTDRInitiateClient struct { + grpc.ClientStream +} + +func (x *oTDRInitiateClient) Recv() (*InitiateResponse, error) { + m := new(InitiateResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +// Server API for OTDR service + +type OTDRServer interface { + // InitiateOTDR triggers an optical time domain reflectometer (OTDR) trace to + // be run on a specified port. The results of the trace may be sent back in + // the response or saved on the device to be retrieved later. If the + // information is saved on the device a path to the file must be returned + // which can later be used by File.Get or File.TransferToRemote. The RPC + // should initiate the OTDR trace and wait until the OTDR trace has completed + // and the device has processed the results before returning. If the RPC is + // cancelled while in operation, the running OTDR trace should stop. + Initiate(*InitiateRequest, OTDR_InitiateServer) error +} + +func RegisterOTDRServer(s *grpc.Server, srv OTDRServer) { + s.RegisterService(&_OTDR_serviceDesc, srv) +} + +func _OTDR_Initiate_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(InitiateRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(OTDRServer).Initiate(m, &oTDRInitiateServer{stream}) +} + +type OTDR_InitiateServer interface { + Send(*InitiateResponse) error + grpc.ServerStream +} + +type oTDRInitiateServer struct { + grpc.ServerStream +} + +func (x *oTDRInitiateServer) Send(m *InitiateResponse) error { + return x.ServerStream.SendMsg(m) +} + +var _OTDR_serviceDesc = grpc.ServiceDesc{ + ServiceName: "gnoi.optical.OTDR", + HandlerType: (*OTDRServer)(nil), + Methods: []grpc.MethodDesc{}, + Streams: []grpc.StreamDesc{ + { + StreamName: "Initiate", + Handler: _OTDR_Initiate_Handler, + ServerStreams: true, + }, + }, + Metadata: fileDescriptor0, +} + +func init() { proto.RegisterFile("otdr/otdr.proto", fileDescriptor0) } + +var fileDescriptor0 = []byte{ + // 1065 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x94, 0x55, 0xdb, 0x6e, 0x1b, 0x45, + 0x18, 0xf6, 0xfa, 0xec, 0xdf, 0x87, 0x6c, 0x27, 0x3d, 0x98, 0xa2, 0x16, 0x6b, 0x29, 0x10, 0x91, + 0x6a, 0x13, 0x1c, 0x84, 0x04, 0x14, 0x24, 0x27, 0x5e, 0xc7, 0x56, 0x7c, 0xd2, 0xac, 0x8d, 0xe1, + 0x6a, 0xb4, 0xb6, 0x27, 0xf6, 0x8a, 0xf5, 0x8e, 0xbb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4, 0xd1, 0xe4, 0x4c, 0x4f, 0xc7, + 0xae, 0xd1, 0x04, 0xdb, 0x7a, 0x06, 0x01, 0x64, 0x55, 0x98, 0xad, 0x67, 0x91, 0x0e, 0x25, 0xe5, + 0xb1, 0x70, 0x63, 0xd2, 0xf8, 0xc1, 0xd2, 0x73, 0xe8, 0x1e, 0x94, 0x63, 0xa4, 0xdb, 0x39, 0x6f, + 0x8f, 0xf4, 0x7c, 0x7d, 0x0c, 0x69, 0xb9, 0x3a, 0xa8, 0x07, 0xf9, 0x78, 0xd3, 0xd0, 0x93, 0x3b, + 0xbf, 0x9a, 0x8f, 0x9f, 0xde, 0xba, 0xd9, 0xe1, 0x3a, 0x26, 0x8e, 0xb5, 0xd3, 0xfc, 0x5f, 0xdf, + 0x67, 0x8e, 0xcd, 0x2f, 0xcc, 0xe3, 0x69, 0x56, 0x7d, 0xe5, 0x4f, 0xfe, 0x0d, 0x00, 0x00, 0xff, + 0xff, 0x93, 0xe0, 0xfa, 0x41, 0x34, 0x08, 0x00, 0x00, +} diff --git a/optical/optical.proto b/otdr/otdr.proto similarity index 82% rename from optical/optical.proto rename to otdr/otdr.proto index ad0e13e6..29dad5f3 100644 --- a/optical/optical.proto +++ b/otdr/otdr.proto @@ -22,7 +22,7 @@ import "github.com/openconfig/gnoi/types/types.proto"; option (types.gnoi_version) = "0.1.0"; -service Optical { +service OTDR { // InitiateOTDR triggers an optical time domain reflectometer (OTDR) trace to // be run on a specified port. The results of the trace may be sent back in // the response or saved on the device to be retrieved later. If the @@ -30,26 +30,24 @@ service Optical { // which can later be used by File.Get or File.TransferToRemote. The RPC // should initiate the OTDR trace and wait until the OTDR trace has completed // and the device has processed the results before returning. If the RPC is - // cancelled while in operation, the running OTDR trace should stop. As only - // one OTDR trace can take place concurrently, the RPC should error if a - // trace is currently running. - rpc InitiateOTDR(OTDRRequest) returns (stream OTDRResponse) {} + // cancelled while in operation, the running OTDR trace should stop. + rpc Initiate(InitiateRequest) returns (stream InitiateResponse) {} } -message OTDRRequest { +message InitiateRequest { // Absolute path to the /components/component list member in the OpenConfig // model corresponding to the port to perform the OTDR trace from. // (e.g., /components/component[name=otdr-1-1]) types.Path component = 1; - enum OTDRResultsMethod { + enum ResultsMethod { RESULTS_UNKNOWN = 0; RESULTS_TO_LOCAL_DISK = 1; // Results saved to a file on the device. RESULTS_IN_RESPONSE = 2; // Results sent back in the response. } // Describes how the results of the OTDR trace should be made available. More // than one option may be specified if desired. - repeated OTDRResultsMethod results_method = 2; + repeated ResultsMethod results_method = 2; // Describes the configuration used to perform an OTDR trace for the needed // circumstance. @@ -112,12 +110,8 @@ enum FiberTypeProfile { FTP_TERALIGHT = 8; // TeraLight fiber. } -message OTDRResponse { - // The local path in which the OTDR file is saved on the device. - string local_path = 1; - // The OTDR trace details in a structured format. - OTDRTrace otdr_trace = 2; - enum OTDRState { +message InitiateProgress { + enum State { UNKNOWN = 0; RUNNING = 1; // The OTDR is currently performing an OTDR trace. PENDING = 2; // The OTDR is pending underlying resources being available. @@ -125,7 +119,40 @@ message OTDRResponse { } // The state of the OTDR trace requested. Note that this does not include // error states as these should be returned as a gRPC error. - OTDRState state = 3; + State state = 1; +} + +message InitiateResults { + // The local path in which the OTDR file is saved on the device. + string local_path = 1; + // The OTDR trace details in a structured format. + OTDRTrace otdr_trace = 2; +} + +message InitiateError { + enum Type { + // An unspecified error. Must use the detail value to describe the issue. + UNSPECIFIED = 0; + // An existing OTDR trace is already in progress. + ALREADY_IN_PROGRESS = 1; + // The OTDR hardware has failed and cannot complete an OTDR trace. + HARDWARE_FAILURE = 2; + } + Type type = 1; + string detail = 2; +} + +// IntitiateResponse describes the possible response messages that will be +// streamed after the RPC is initiated. While the OTDR is running, "progress" +// messages should be sent at a regular interval. When the OTDR trace is +// completed, a final "results" or "error" message should be streamed before +// the RPC is terminated. +message InitiateResponse { + oneof response { + InitiateProgress progress = 1; + InitiateResults results = 2; + InitiateError error = 3; + } } message OTDRTrace { diff --git a/wavelength_router/wavelength_router.pb.go b/wavelength_router/wavelength_router.pb.go new file mode 100644 index 00000000..36a106fd --- /dev/null +++ b/wavelength_router/wavelength_router.pb.go @@ -0,0 +1,507 @@ +// Code generated by protoc-gen-go. +// source: wavelength_router/wavelength_router.proto +// DO NOT EDIT! + +/* +Package gnoi_optical is a generated protocol buffer package. + +It is generated from these files: + wavelength_router/wavelength_router.proto + +It has these top-level messages: + AdjustPSDRequest + AdjustPSDProgress + AdjustPSDError + AdjustPSDResponse + CancelAdjustPSDResponse +*/ +package gnoi_optical + +import proto "github.com/golang/protobuf/proto" +import fmt "fmt" +import math "math" +import gnoi_types "github.com/openconfig/gnoi/types" + +import ( + context "golang.org/x/net/context" + grpc "google.golang.org/grpc" +) + +// 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 + +type AdjustPSDRequest_SignalDirection int32 + +const ( + AdjustPSDRequest_DIRECTION_UNKNOWN AdjustPSDRequest_SignalDirection = 0 + AdjustPSDRequest_DIRECTION_INPUT AdjustPSDRequest_SignalDirection = 1 + AdjustPSDRequest_DIRECTION_OUTPUT AdjustPSDRequest_SignalDirection = 2 +) + +var AdjustPSDRequest_SignalDirection_name = map[int32]string{ + 0: "DIRECTION_UNKNOWN", + 1: "DIRECTION_INPUT", + 2: "DIRECTION_OUTPUT", +} +var AdjustPSDRequest_SignalDirection_value = map[string]int32{ + "DIRECTION_UNKNOWN": 0, + "DIRECTION_INPUT": 1, + "DIRECTION_OUTPUT": 2, +} + +func (x AdjustPSDRequest_SignalDirection) String() string { + return proto.EnumName(AdjustPSDRequest_SignalDirection_name, int32(x)) +} +func (AdjustPSDRequest_SignalDirection) EnumDescriptor() ([]byte, []int) { + return fileDescriptor0, []int{0, 0} +} + +type AdjustPSDProgress_State int32 + +const ( + AdjustPSDProgress_UNKNOWN AdjustPSDProgress_State = 0 + AdjustPSDProgress_RUNNING AdjustPSDProgress_State = 1 + AdjustPSDProgress_COMPLETE AdjustPSDProgress_State = 2 +) + +var AdjustPSDProgress_State_name = map[int32]string{ + 0: "UNKNOWN", + 1: "RUNNING", + 2: "COMPLETE", +} +var AdjustPSDProgress_State_value = map[string]int32{ + "UNKNOWN": 0, + "RUNNING": 1, + "COMPLETE": 2, +} + +func (x AdjustPSDProgress_State) String() string { + return proto.EnumName(AdjustPSDProgress_State_name, int32(x)) +} +func (AdjustPSDProgress_State) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{1, 0} } + +type AdjustPSDError_Type int32 + +const ( + // An unspecified error. Must use the detail value to describe the issue. + AdjustPSDError_UNSPECIFIED AdjustPSDError_Type = 0 + // An adjustment was requested for a port that is busy (e.g., requesting + // input adjustment for a port that is currently running an output + // adjustment) + AdjustPSDError_PORT_BUSY AdjustPSDError_Type = 1 + // The hardware has failed and cannot complete an adjustment. + AdjustPSDError_HARDWARE_FAILURE AdjustPSDError_Type = 2 +) + +var AdjustPSDError_Type_name = map[int32]string{ + 0: "UNSPECIFIED", + 1: "PORT_BUSY", + 2: "HARDWARE_FAILURE", +} +var AdjustPSDError_Type_value = map[string]int32{ + "UNSPECIFIED": 0, + "PORT_BUSY": 1, + "HARDWARE_FAILURE": 2, +} + +func (x AdjustPSDError_Type) String() string { + return proto.EnumName(AdjustPSDError_Type_name, int32(x)) +} +func (AdjustPSDError_Type) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{2, 0} } + +type AdjustPSDRequest struct { + // Absolute path to the /components/component list member in the OpenConfig + // model corresponding to the port to perform the adjustment for. + // (e.g., /components/component[name=amp-1-1]) + Component *gnoi_types.Path `protobuf:"bytes,1,opt,name=component" json:"component,omitempty"` + // Describes the signal direction that should be adjusted relative to the + // device. For example, "input" would be the signal entering into the device + // from the far end device. + Direction AdjustPSDRequest_SignalDirection `protobuf:"varint,2,opt,name=direction,enum=gnoi.optical.AdjustPSDRequest_SignalDirection" json:"direction,omitempty"` +} + +func (m *AdjustPSDRequest) Reset() { *m = AdjustPSDRequest{} } +func (m *AdjustPSDRequest) String() string { return proto.CompactTextString(m) } +func (*AdjustPSDRequest) ProtoMessage() {} +func (*AdjustPSDRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } + +func (m *AdjustPSDRequest) GetComponent() *gnoi_types.Path { + if m != nil { + return m.Component + } + return nil +} + +type AdjustPSDProgress struct { + // The state of the OTDR trace requested. Note that this does not include + // error states as these should be returned as a gRPC error. + State AdjustPSDProgress_State `protobuf:"varint,1,opt,name=state,enum=gnoi.optical.AdjustPSDProgress_State" json:"state,omitempty"` +} + +func (m *AdjustPSDProgress) Reset() { *m = AdjustPSDProgress{} } +func (m *AdjustPSDProgress) String() string { return proto.CompactTextString(m) } +func (*AdjustPSDProgress) ProtoMessage() {} +func (*AdjustPSDProgress) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } + +type AdjustPSDError struct { + Type AdjustPSDError_Type `protobuf:"varint,1,opt,name=type,enum=gnoi.optical.AdjustPSDError_Type" json:"type,omitempty"` + Detail string `protobuf:"bytes,2,opt,name=detail" json:"detail,omitempty"` +} + +func (m *AdjustPSDError) Reset() { *m = AdjustPSDError{} } +func (m *AdjustPSDError) String() string { return proto.CompactTextString(m) } +func (*AdjustPSDError) ProtoMessage() {} +func (*AdjustPSDError) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} } + +type AdjustPSDResponse struct { + // Types that are valid to be assigned to Response: + // *AdjustPSDResponse_Progress + // *AdjustPSDResponse_Error + Response isAdjustPSDResponse_Response `protobuf_oneof:"response"` +} + +func (m *AdjustPSDResponse) Reset() { *m = AdjustPSDResponse{} } +func (m *AdjustPSDResponse) String() string { return proto.CompactTextString(m) } +func (*AdjustPSDResponse) ProtoMessage() {} +func (*AdjustPSDResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} } + +type isAdjustPSDResponse_Response interface { + isAdjustPSDResponse_Response() +} + +type AdjustPSDResponse_Progress struct { + Progress *AdjustPSDProgress `protobuf:"bytes,1,opt,name=progress,oneof"` +} +type AdjustPSDResponse_Error struct { + Error *AdjustPSDError `protobuf:"bytes,2,opt,name=error,oneof"` +} + +func (*AdjustPSDResponse_Progress) isAdjustPSDResponse_Response() {} +func (*AdjustPSDResponse_Error) isAdjustPSDResponse_Response() {} + +func (m *AdjustPSDResponse) GetResponse() isAdjustPSDResponse_Response { + if m != nil { + return m.Response + } + return nil +} + +func (m *AdjustPSDResponse) GetProgress() *AdjustPSDProgress { + if x, ok := m.GetResponse().(*AdjustPSDResponse_Progress); ok { + return x.Progress + } + return nil +} + +func (m *AdjustPSDResponse) GetError() *AdjustPSDError { + if x, ok := m.GetResponse().(*AdjustPSDResponse_Error); ok { + return x.Error + } + return nil +} + +// XXX_OneofFuncs is for the internal use of the proto package. +func (*AdjustPSDResponse) 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 _AdjustPSDResponse_OneofMarshaler, _AdjustPSDResponse_OneofUnmarshaler, _AdjustPSDResponse_OneofSizer, []interface{}{ + (*AdjustPSDResponse_Progress)(nil), + (*AdjustPSDResponse_Error)(nil), + } +} + +func _AdjustPSDResponse_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*AdjustPSDResponse) + // response + switch x := m.Response.(type) { + case *AdjustPSDResponse_Progress: + b.EncodeVarint(1<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Progress); err != nil { + return err + } + case *AdjustPSDResponse_Error: + b.EncodeVarint(2<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Error); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("AdjustPSDResponse.Response has unexpected type %T", x) + } + return nil +} + +func _AdjustPSDResponse_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*AdjustPSDResponse) + switch tag { + case 1: // response.progress + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(AdjustPSDProgress) + err := b.DecodeMessage(msg) + m.Response = &AdjustPSDResponse_Progress{msg} + return true, err + case 2: // response.error + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(AdjustPSDError) + err := b.DecodeMessage(msg) + m.Response = &AdjustPSDResponse_Error{msg} + return true, err + default: + return false, nil + } +} + +func _AdjustPSDResponse_OneofSizer(msg proto.Message) (n int) { + m := msg.(*AdjustPSDResponse) + // response + switch x := m.Response.(type) { + case *AdjustPSDResponse_Progress: + s := proto.Size(x.Progress) + n += proto.SizeVarint(1<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *AdjustPSDResponse_Error: + s := proto.Size(x.Error) + n += proto.SizeVarint(2<<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 +} + +type CancelAdjustPSDResponse struct { +} + +func (m *CancelAdjustPSDResponse) Reset() { *m = CancelAdjustPSDResponse{} } +func (m *CancelAdjustPSDResponse) String() string { return proto.CompactTextString(m) } +func (*CancelAdjustPSDResponse) ProtoMessage() {} +func (*CancelAdjustPSDResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} } + +func init() { + proto.RegisterType((*AdjustPSDRequest)(nil), "gnoi.optical.AdjustPSDRequest") + proto.RegisterType((*AdjustPSDProgress)(nil), "gnoi.optical.AdjustPSDProgress") + proto.RegisterType((*AdjustPSDError)(nil), "gnoi.optical.AdjustPSDError") + proto.RegisterType((*AdjustPSDResponse)(nil), "gnoi.optical.AdjustPSDResponse") + proto.RegisterType((*CancelAdjustPSDResponse)(nil), "gnoi.optical.CancelAdjustPSDResponse") + proto.RegisterEnum("gnoi.optical.AdjustPSDRequest_SignalDirection", AdjustPSDRequest_SignalDirection_name, AdjustPSDRequest_SignalDirection_value) + proto.RegisterEnum("gnoi.optical.AdjustPSDProgress_State", AdjustPSDProgress_State_name, AdjustPSDProgress_State_value) + proto.RegisterEnum("gnoi.optical.AdjustPSDError_Type", AdjustPSDError_Type_name, AdjustPSDError_Type_value) +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion3 + +// Client API for WavelengthRouter service + +type WavelengthRouterClient interface { + // AdjustPSD performs a power spectral density (PSD) adjustment on an optical + // DWDM line system port. + // + // This RPC's initial message triggers adjustments. The target should validate + // the request, and immediately begin the adjustment as long as another + // adjustment is not already running. As this RPC may take multiple minutes, + // the state should be regularly streamed to the client. The operation should + // be completed on the device regardless of the state of the RPC channel to + // the initiating client. A client that becomes disconnected during an + // operation can reconnect, requesting the same operation, and receive status + // updates this way. There is no means by which an adjustment that has been + // triggered by a client can be cancelled unless the CancelAdjustPSD RPC is + // used. + AdjustPSD(ctx context.Context, in *AdjustPSDRequest, opts ...grpc.CallOption) (WavelengthRouter_AdjustPSDClient, error) + // CancelAdjustPSD cancels an in-progress AdjustPSD request. If an + // adjustment is not being performed for the provided request, then the RPC + // should return successfully. + CancelAdjustPSD(ctx context.Context, in *AdjustPSDRequest, opts ...grpc.CallOption) (*CancelAdjustPSDResponse, error) +} + +type wavelengthRouterClient struct { + cc *grpc.ClientConn +} + +func NewWavelengthRouterClient(cc *grpc.ClientConn) WavelengthRouterClient { + return &wavelengthRouterClient{cc} +} + +func (c *wavelengthRouterClient) AdjustPSD(ctx context.Context, in *AdjustPSDRequest, opts ...grpc.CallOption) (WavelengthRouter_AdjustPSDClient, error) { + stream, err := grpc.NewClientStream(ctx, &_WavelengthRouter_serviceDesc.Streams[0], c.cc, "/gnoi.optical.WavelengthRouter/AdjustPSD", opts...) + if err != nil { + return nil, err + } + x := &wavelengthRouterAdjustPSDClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type WavelengthRouter_AdjustPSDClient interface { + Recv() (*AdjustPSDResponse, error) + grpc.ClientStream +} + +type wavelengthRouterAdjustPSDClient struct { + grpc.ClientStream +} + +func (x *wavelengthRouterAdjustPSDClient) Recv() (*AdjustPSDResponse, error) { + m := new(AdjustPSDResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *wavelengthRouterClient) CancelAdjustPSD(ctx context.Context, in *AdjustPSDRequest, opts ...grpc.CallOption) (*CancelAdjustPSDResponse, error) { + out := new(CancelAdjustPSDResponse) + err := grpc.Invoke(ctx, "/gnoi.optical.WavelengthRouter/CancelAdjustPSD", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// Server API for WavelengthRouter service + +type WavelengthRouterServer interface { + // AdjustPSD performs a power spectral density (PSD) adjustment on an optical + // DWDM line system port. + // + // This RPC's initial message triggers adjustments. The target should validate + // the request, and immediately begin the adjustment as long as another + // adjustment is not already running. As this RPC may take multiple minutes, + // the state should be regularly streamed to the client. The operation should + // be completed on the device regardless of the state of the RPC channel to + // the initiating client. A client that becomes disconnected during an + // operation can reconnect, requesting the same operation, and receive status + // updates this way. There is no means by which an adjustment that has been + // triggered by a client can be cancelled unless the CancelAdjustPSD RPC is + // used. + AdjustPSD(*AdjustPSDRequest, WavelengthRouter_AdjustPSDServer) error + // CancelAdjustPSD cancels an in-progress AdjustPSD request. If an + // adjustment is not being performed for the provided request, then the RPC + // should return successfully. + CancelAdjustPSD(context.Context, *AdjustPSDRequest) (*CancelAdjustPSDResponse, error) +} + +func RegisterWavelengthRouterServer(s *grpc.Server, srv WavelengthRouterServer) { + s.RegisterService(&_WavelengthRouter_serviceDesc, srv) +} + +func _WavelengthRouter_AdjustPSD_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(AdjustPSDRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(WavelengthRouterServer).AdjustPSD(m, &wavelengthRouterAdjustPSDServer{stream}) +} + +type WavelengthRouter_AdjustPSDServer interface { + Send(*AdjustPSDResponse) error + grpc.ServerStream +} + +type wavelengthRouterAdjustPSDServer struct { + grpc.ServerStream +} + +func (x *wavelengthRouterAdjustPSDServer) Send(m *AdjustPSDResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _WavelengthRouter_CancelAdjustPSD_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AdjustPSDRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(WavelengthRouterServer).CancelAdjustPSD(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gnoi.optical.WavelengthRouter/CancelAdjustPSD", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(WavelengthRouterServer).CancelAdjustPSD(ctx, req.(*AdjustPSDRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _WavelengthRouter_serviceDesc = grpc.ServiceDesc{ + ServiceName: "gnoi.optical.WavelengthRouter", + HandlerType: (*WavelengthRouterServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "CancelAdjustPSD", + Handler: _WavelengthRouter_CancelAdjustPSD_Handler, + }, + }, + Streams: []grpc.StreamDesc{ + { + StreamName: "AdjustPSD", + Handler: _WavelengthRouter_AdjustPSD_Handler, + ServerStreams: true, + }, + }, + Metadata: fileDescriptor0, +} + +func init() { proto.RegisterFile("wavelength_router/wavelength_router.proto", fileDescriptor0) } + +var fileDescriptor0 = []byte{ + // 537 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x84, 0x93, 0xdb, 0x6e, 0xd3, 0x40, + 0x10, 0x86, 0xed, 0xa8, 0x69, 0x93, 0x49, 0x49, 0xdc, 0xe5, 0x54, 0x2a,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0x9d, 0x74, 0x3d, 0xe7, 0x53, 0xee, 0xd1, 0xa0, 0x43, 0xfa, + 0xe3, 0x0e, 0x31, 0x26, 0x27, 0x1d, 0x73, 0xe8, 0x91, 0x94, 0xef, 0xd7, 0x65, 0x8f, 0x08, 0x4d, + 0x62, 0xce, 0x12, 0x8a, 0xde, 0x42, 0x25, 0x2e, 0xe6, 0x2f, 0x76, 0xe1, 0xf0, 0x06, 0x9b, 0x06, + 0x0a, 0x59, 0xa6, 0xa0, 0x97, 0x50, 0xa6, 0x29, 0x7e, 0x46, 0x5a, 0x6b, 0x3f, 0xbc, 0x6e, 0xc4, + 0x81, 0x42, 0x72, 0x71, 0x17, 0xa0, 0x22, 0x0a, 0x00, 0xfd, 0x01, 0xdc, 0xef, 0xf9, 0x2c, 0xa0, + 0xf3, 0x2b, 0x6c, 0xed, 0x3f, 0x2a, 0x68, 0xe3, 0xe5, 0x55, 0x90, 0xec, 0x28, 0x90, 0x0d, 0xd5, + 0xa5, 0x12, 0x3d, 0xba, 0x7e, 0x0f, 0x0f, 0x0e, 0x37, 0xbe, 0x17, 0xdd, 0x95, 0x96, 0x8a, 0x3e, + 0x43, 0x63, 0x8d, 0xe0, 0xc6, 0xba, 0x6b, 0xab, 0xb4, 0x61, 0x00, 0x5d, 0xe9, 0x56, 0xfe, 0xbe, + 0x2b, 0xb7, 0xf0, 0x73, 0xdc, 0x3a, 0xdd, 0xce, 0x2e, 0xf2, 0xc5, 0xff, 0x00, 0x00, 0x00, 0xff, + 0xff, 0xa0, 0xb1, 0x54, 0x93, 0xfa, 0x03, 0x00, 0x00, +} diff --git a/wavelength_router/wavelength_router.proto b/wavelength_router/wavelength_router.proto new file mode 100644 index 00000000..48e2fb56 --- /dev/null +++ b/wavelength_router/wavelength_router.proto @@ -0,0 +1,98 @@ +// +// Copyright 2019 Google LLC. All Rights Reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +syntax = "proto3"; + +package gnoi.optical; + +import "github.com/openconfig/gnoi/types/types.proto"; + +option (types.gnoi_version) = "0.1.0"; + +service WavelengthRouter { + // AdjustPSD performs a power spectral density (PSD) adjustment on an optical + // DWDM line system port. + // + // This RPC's initial message triggers adjustments. The target should validate + // the request, and immediately begin the adjustment as long as another + // adjustment is not already running. As this RPC may take multiple minutes, + // the state should be regularly streamed to the client. The operation should + // be completed on the device regardless of the state of the RPC channel to + // the initiating client. A client that becomes disconnected during an + // operation can reconnect, requesting the same operation, and receive status + // updates this way. There is no means by which an adjustment that has been + // triggered by a client can be cancelled unless the CancelAdjustPSD RPC is + // used. + rpc AdjustPSD(AdjustPSDRequest) returns (stream AdjustPSDResponse) {} + + // CancelAdjustPSD cancels an in-progress AdjustPSD request. If an + // adjustment is not being performed for the provided request, then the RPC + // should return successfully. + rpc CancelAdjustPSD(AdjustPSDRequest) returns (CancelAdjustPSDResponse) {} +} + +message AdjustPSDRequest { + // Absolute path to the /components/component list member in the OpenConfig + // model corresponding to the port to perform the adjustment for. + // (e.g., /components/component[name=amp-1-1]) + types.Path component = 1; + + enum SignalDirection { + DIRECTION_UNKNOWN = 0; + DIRECTION_INPUT = 1; + DIRECTION_OUTPUT = 2; + } + // Describes the signal direction that should be adjusted relative to the + // device. For example, "input" would be the signal entering into the device + // from the far end device. + SignalDirection direction = 2; +} + +message AdjustPSDProgress { + enum State { + UNKNOWN = 0; + RUNNING = 1; // The PSD adjustment is running. + COMPLETE = 2; // The PSD adjustment completed successfully. + } + // The state of the OTDR trace requested. Note that this does not include + // error states as these should be returned as a gRPC error. + State state = 1; +} + +message AdjustPSDError { + enum Type { + // An unspecified error. Must use the detail value to describe the issue. + UNSPECIFIED = 0; + // An adjustment was requested for a port that is busy (e.g., requesting + // input adjustment for a port that is currently running an output + // adjustment) + PORT_BUSY = 1; + // The hardware has failed and cannot complete an adjustment. + HARDWARE_FAILURE = 2; + } + Type type = 1; + string detail = 2; +} + +message AdjustPSDResponse { + oneof response { + AdjustPSDProgress progress = 1; + AdjustPSDError error = 2; + } +} + +message CancelAdjustPSDResponse {} + From 3d21a11f893ef11a255d9284628cdbcc940a8e64 Mon Sep 17 00:00:00 2001 From: Eric Breverman Date: Tue, 7 May 2019 09:02:44 -0700 Subject: [PATCH 038/238] update desc for wavelength_router AdjustPSDResponse --- wavelength_router/wavelength_router.pb.go | 5 +++++ wavelength_router/wavelength_router.proto | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/wavelength_router/wavelength_router.pb.go b/wavelength_router/wavelength_router.pb.go index 36a106fd..20b1763f 100644 --- a/wavelength_router/wavelength_router.pb.go +++ b/wavelength_router/wavelength_router.pb.go @@ -161,6 +161,11 @@ func (m *AdjustPSDError) String() string { return proto.CompactTextSt func (*AdjustPSDError) ProtoMessage() {} func (*AdjustPSDError) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} } +// AdjustPSDResponse describes the possible response messages that will be +// streamed after the RPC is initiated. While the OTDR is running, +// "progress" messages should be sent at a regular interval. When the +// adjustment is completed, an "error" message should be streamed if an +// error is encountered or the RPC should be terminated on success. type AdjustPSDResponse struct { // Types that are valid to be assigned to Response: // *AdjustPSDResponse_Progress diff --git a/wavelength_router/wavelength_router.proto b/wavelength_router/wavelength_router.proto index 48e2fb56..63c68f71 100644 --- a/wavelength_router/wavelength_router.proto +++ b/wavelength_router/wavelength_router.proto @@ -87,6 +87,11 @@ message AdjustPSDError { string detail = 2; } +// AdjustPSDResponse describes the possible response messages that will be +// streamed after the RPC is initiated. While the OTDR is running, +// "progress" messages should be sent at a regular interval. When the +// adjustment is completed, an "error" message should be streamed if an +// error is encountered or the RPC should be terminated on success. message AdjustPSDResponse { oneof response { AdjustPSDProgress progress = 1; From 5d67eea16a16395dd409d040f9f806ab4eea8592 Mon Sep 17 00:00:00 2001 From: Eric Breverman Date: Mon, 13 May 2019 15:16:42 -0700 Subject: [PATCH 039/238] some description updates --- otdr/otdr.pb.go | 6 ++++-- otdr/otdr.proto | 4 +++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/otdr/otdr.pb.go b/otdr/otdr.pb.go index 121cb69b..125f0e62 100644 --- a/otdr/otdr.pb.go +++ b/otdr/otdr.pb.go @@ -113,6 +113,8 @@ func (InitiateRequest_ResultsMethod) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0, 0} } +// The State enum defines possible states that the OTDR trace may be in +// while running the operation. type InitiateProgress_State int32 const ( @@ -609,7 +611,7 @@ const _ = grpc.SupportPackageIsVersion3 // Client API for OTDR service type OTDRClient interface { - // InitiateOTDR triggers an optical time domain reflectometer (OTDR) trace to + // Initiate triggers an optical time domain reflectometer (OTDR) trace to // be run on a specified port. The results of the trace may be sent back in // the response or saved on the device to be retrieved later. If the // information is saved on the device a path to the file must be returned @@ -663,7 +665,7 @@ func (x *oTDRInitiateClient) Recv() (*InitiateResponse, error) { // Server API for OTDR service type OTDRServer interface { - // InitiateOTDR triggers an optical time domain reflectometer (OTDR) trace to + // Initiate triggers an optical time domain reflectometer (OTDR) trace to // be run on a specified port. The results of the trace may be sent back in // the response or saved on the device to be retrieved later. If the // information is saved on the device a path to the file must be returned diff --git a/otdr/otdr.proto b/otdr/otdr.proto index 29dad5f3..2b4ecf26 100644 --- a/otdr/otdr.proto +++ b/otdr/otdr.proto @@ -23,7 +23,7 @@ import "github.com/openconfig/gnoi/types/types.proto"; option (types.gnoi_version) = "0.1.0"; service OTDR { - // InitiateOTDR triggers an optical time domain reflectometer (OTDR) trace to + // Initiate triggers an optical time domain reflectometer (OTDR) trace to // be run on a specified port. The results of the trace may be sent back in // the response or saved on the device to be retrieved later. If the // information is saved on the device a path to the file must be returned @@ -111,6 +111,8 @@ enum FiberTypeProfile { } message InitiateProgress { + // The State enum defines possible states that the OTDR trace may be in + // while running the operation. enum State { UNKNOWN = 0; RUNNING = 1; // The OTDR is currently performing an OTDR trace. From 7738909e922030a993ad023b0f1cdaec031b62ae Mon Sep 17 00:00:00 2001 From: Eric Breverman Date: Mon, 13 May 2019 22:52:53 -0700 Subject: [PATCH 040/238] remove custom profile as this can happen in the clients instead --- otdr/otdr.pb.go | 277 ++++++++++++++---------------------------------- otdr/otdr.proto | 17 +-- 2 files changed, 79 insertions(+), 215 deletions(-) diff --git a/otdr/otdr.pb.go b/otdr/otdr.pb.go index 125f0e62..010ee470 100644 --- a/otdr/otdr.pb.go +++ b/otdr/otdr.pb.go @@ -10,7 +10,6 @@ It is generated from these files: It has these top-level messages: InitiateRequest - OTDRConfigurationProfile OTDRConfiguration InitiateProgress InitiateResults @@ -140,7 +139,7 @@ var InitiateProgress_State_value = map[string]int32{ func (x InitiateProgress_State) String() string { return proto.EnumName(InitiateProgress_State_name, int32(x)) } -func (InitiateProgress_State) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{3, 0} } +func (InitiateProgress_State) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{2, 0} } type InitiateError_Type int32 @@ -167,7 +166,7 @@ var InitiateError_Type_value = map[string]int32{ func (x InitiateError_Type) String() string { return proto.EnumName(InitiateError_Type_name, int32(x)) } -func (InitiateError_Type) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{5, 0} } +func (InitiateError_Type) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{4, 0} } type InitiateRequest struct { // Absolute path to the /components/component list member in the OpenConfig @@ -177,9 +176,8 @@ type InitiateRequest struct { // Describes how the results of the OTDR trace should be made available. More // than one option may be specified if desired. ResultsMethod []InitiateRequest_ResultsMethod `protobuf:"varint,2,rep,packed,name=results_method,json=resultsMethod,enum=gnoi.optical.InitiateRequest_ResultsMethod" json:"results_method,omitempty"` - // Describes the configuration used to perform an OTDR trace for the needed - // circumstance. - Configuration *OTDRConfigurationProfile `protobuf:"bytes,3,opt,name=configuration" json:"configuration,omitempty"` + // Describes the configuration used to perform an OTDR trace. + Configuration *OTDRConfiguration `protobuf:"bytes,3,opt,name=configuration" json:"configuration,omitempty"` // If specified, the device will label the OTDR trace so it can be recalled // later. For example, the initial OTDR trace measured during span // commissioning might be labeled "baseline". @@ -198,130 +196,13 @@ func (m *InitiateRequest) GetComponent() *gnoi_types.Path { return nil } -func (m *InitiateRequest) GetConfiguration() *OTDRConfigurationProfile { +func (m *InitiateRequest) GetConfiguration() *OTDRConfiguration { if m != nil { return m.Configuration } return nil } -type OTDRConfigurationProfile struct { - // Types that are valid to be assigned to ProfileType: - // *OTDRConfigurationProfile_CustomProfile - // *OTDRConfigurationProfile_Profile - ProfileType isOTDRConfigurationProfile_ProfileType `protobuf_oneof:"profile_type"` -} - -func (m *OTDRConfigurationProfile) Reset() { *m = OTDRConfigurationProfile{} } -func (m *OTDRConfigurationProfile) String() string { return proto.CompactTextString(m) } -func (*OTDRConfigurationProfile) ProtoMessage() {} -func (*OTDRConfigurationProfile) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } - -type isOTDRConfigurationProfile_ProfileType interface { - isOTDRConfigurationProfile_ProfileType() -} - -type OTDRConfigurationProfile_CustomProfile struct { - CustomProfile string `protobuf:"bytes,1,opt,name=custom_profile,json=customProfile,oneof"` -} -type OTDRConfigurationProfile_Profile struct { - Profile *OTDRConfiguration `protobuf:"bytes,2,opt,name=profile,oneof"` -} - -func (*OTDRConfigurationProfile_CustomProfile) isOTDRConfigurationProfile_ProfileType() {} -func (*OTDRConfigurationProfile_Profile) isOTDRConfigurationProfile_ProfileType() {} - -func (m *OTDRConfigurationProfile) GetProfileType() isOTDRConfigurationProfile_ProfileType { - if m != nil { - return m.ProfileType - } - return nil -} - -func (m *OTDRConfigurationProfile) GetCustomProfile() string { - if x, ok := m.GetProfileType().(*OTDRConfigurationProfile_CustomProfile); ok { - return x.CustomProfile - } - return "" -} - -func (m *OTDRConfigurationProfile) GetProfile() *OTDRConfiguration { - if x, ok := m.GetProfileType().(*OTDRConfigurationProfile_Profile); ok { - return x.Profile - } - return nil -} - -// XXX_OneofFuncs is for the internal use of the proto package. -func (*OTDRConfigurationProfile) 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 _OTDRConfigurationProfile_OneofMarshaler, _OTDRConfigurationProfile_OneofUnmarshaler, _OTDRConfigurationProfile_OneofSizer, []interface{}{ - (*OTDRConfigurationProfile_CustomProfile)(nil), - (*OTDRConfigurationProfile_Profile)(nil), - } -} - -func _OTDRConfigurationProfile_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { - m := msg.(*OTDRConfigurationProfile) - // profile_type - switch x := m.ProfileType.(type) { - case *OTDRConfigurationProfile_CustomProfile: - b.EncodeVarint(1<<3 | proto.WireBytes) - b.EncodeStringBytes(x.CustomProfile) - case *OTDRConfigurationProfile_Profile: - b.EncodeVarint(2<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.Profile); err != nil { - return err - } - case nil: - default: - return fmt.Errorf("OTDRConfigurationProfile.ProfileType has unexpected type %T", x) - } - return nil -} - -func _OTDRConfigurationProfile_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { - m := msg.(*OTDRConfigurationProfile) - switch tag { - case 1: // profile_type.custom_profile - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - x, err := b.DecodeStringBytes() - m.ProfileType = &OTDRConfigurationProfile_CustomProfile{x} - return true, err - case 2: // profile_type.profile - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(OTDRConfiguration) - err := b.DecodeMessage(msg) - m.ProfileType = &OTDRConfigurationProfile_Profile{msg} - return true, err - default: - return false, nil - } -} - -func _OTDRConfigurationProfile_OneofSizer(msg proto.Message) (n int) { - m := msg.(*OTDRConfigurationProfile) - // profile_type - switch x := m.ProfileType.(type) { - case *OTDRConfigurationProfile_CustomProfile: - n += proto.SizeVarint(1<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(len(x.CustomProfile))) - n += len(x.CustomProfile) - case *OTDRConfigurationProfile_Profile: - s := proto.Size(x.Profile) - n += proto.SizeVarint(2<<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 -} - // OTDR configuration options which can be set on the device. It is not required // that every field be set as some fields may not apply for a given // implementation. @@ -345,7 +226,7 @@ type OTDRConfiguration struct { func (m *OTDRConfiguration) Reset() { *m = OTDRConfiguration{} } func (m *OTDRConfiguration) String() string { return proto.CompactTextString(m) } func (*OTDRConfiguration) ProtoMessage() {} -func (*OTDRConfiguration) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} } +func (*OTDRConfiguration) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } type InitiateProgress struct { // The state of the OTDR trace requested. Note that this does not include @@ -356,7 +237,7 @@ type InitiateProgress struct { func (m *InitiateProgress) Reset() { *m = InitiateProgress{} } func (m *InitiateProgress) String() string { return proto.CompactTextString(m) } func (*InitiateProgress) ProtoMessage() {} -func (*InitiateProgress) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} } +func (*InitiateProgress) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} } type InitiateResults struct { // The local path in which the OTDR file is saved on the device. @@ -368,7 +249,7 @@ type InitiateResults struct { func (m *InitiateResults) Reset() { *m = InitiateResults{} } func (m *InitiateResults) String() string { return proto.CompactTextString(m) } func (*InitiateResults) ProtoMessage() {} -func (*InitiateResults) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} } +func (*InitiateResults) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} } func (m *InitiateResults) GetOtdrTrace() *OTDRTrace { if m != nil { @@ -385,7 +266,7 @@ type InitiateError struct { func (m *InitiateError) Reset() { *m = InitiateError{} } func (m *InitiateError) String() string { return proto.CompactTextString(m) } func (*InitiateError) ProtoMessage() {} -func (*InitiateError) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} } +func (*InitiateError) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} } // IntitiateResponse describes the possible response messages that will be // streamed after the RPC is initiated. While the OTDR is running, "progress" @@ -403,7 +284,7 @@ type InitiateResponse struct { func (m *InitiateResponse) Reset() { *m = InitiateResponse{} } func (m *InitiateResponse) String() string { return proto.CompactTextString(m) } func (*InitiateResponse) ProtoMessage() {} -func (*InitiateResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} } +func (*InitiateResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} } type isInitiateResponse_Response interface { isInitiateResponse_Response() @@ -561,7 +442,7 @@ type OTDRTrace struct { func (m *OTDRTrace) Reset() { *m = OTDRTrace{} } func (m *OTDRTrace) String() string { return proto.CompactTextString(m) } func (*OTDRTrace) ProtoMessage() {} -func (*OTDRTrace) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} } +func (*OTDRTrace) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} } func (m *OTDRTrace) GetEvents() []*Event { if m != nil { @@ -582,11 +463,10 @@ type Event struct { func (m *Event) Reset() { *m = Event{} } func (m *Event) String() string { return proto.CompactTextString(m) } func (*Event) ProtoMessage() {} -func (*Event) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} } +func (*Event) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} } func init() { proto.RegisterType((*InitiateRequest)(nil), "gnoi.optical.InitiateRequest") - proto.RegisterType((*OTDRConfigurationProfile)(nil), "gnoi.optical.OTDRConfigurationProfile") proto.RegisterType((*OTDRConfiguration)(nil), "gnoi.optical.OTDRConfiguration") proto.RegisterType((*InitiateProgress)(nil), "gnoi.optical.InitiateProgress") proto.RegisterType((*InitiateResults)(nil), "gnoi.optical.InitiateResults") @@ -718,72 +598,69 @@ var _OTDR_serviceDesc = grpc.ServiceDesc{ func init() { proto.RegisterFile("otdr/otdr.proto", fileDescriptor0) } var fileDescriptor0 = []byte{ - // 1065 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x94, 0x55, 0xdb, 0x6e, 0x1b, 0x45, - 0x18, 0xf6, 0xfa, 0xec, 0xdf, 0x87, 0x6c, 0x27, 0x3d, 0x98, 0xa2, 0x16, 0x6b, 0x29, 0x10, 0x91, - 0x6a, 0x13, 0x1c, 0x84, 0x04, 0x14, 0x24, 0x27, 0x5e, 0xc7, 0x56, 0x7c, 0xd2, 0xac, 0x8d, 0xe1, - 0x6a, 0xb4, 0xb6, 0x27, 0xf6, 0x8a, 0xf5, 0x8e, 0xbb, 0x33, 0x4e, 0xd5, 0x3e, 0x03, 0x17, 0x5c, - 0xf2, 0x02, 0xbc, 0x03, 0x0f, 0xc1, 0x15, 0xbc, 0x03, 0xcf, 0x81, 0x66, 0x76, 0x37, 0xb1, 0xdb, - 0x26, 0x88, 0x1b, 0xcb, 0xff, 0xf7, 0x7f, 0xff, 0xcc, 0x7f, 0xfa, 0x66, 0x61, 0x8f, 0x89, 0x79, - 0x70, 0x24, 0x7f, 0xcc, 0x75, 0xc0, 0x04, 0x43, 0xa5, 0x85, 0xcf, 0x5c, 0x93, 0xad, 0x85, 0x3b, - 0x73, 0xbc, 0xc7, 0xcf, 0x17, 0xae, 0x58, 0x6e, 0xa6, 0xe6, 0x8c, 0xad, 0x8e, 0xd8, 0x9a, 0xfa, - 0x33, 0xe6, 0x5f, 0xba, 0x8b, 0x23, 0xc9, 0x39, 0x12, 0xaf, 0xd7, 0x94, 0x87, 0xbf, 0x61, 0xac, - 0xf1, 0x77, 0x12, 0xf6, 0x3a, 0xbe, 0x2b, 0x5c, 0x47, 0x50, 0x4c, 0x5f, 0x6e, 0x28, 0x17, 0xc8, - 0x84, 0xc2, 0x8c, 0xad, 0xd6, 0xcc, 0xa7, 0xb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 0xba, 0x1f, 0x3d, 0x39, - 0x4f, 0xef, 0x9e, 0x51, 0x3b, 0x81, 0xaf, 0x23, 0xd0, 0xd7, 0x90, 0x8b, 0x9e, 0x8f, 0xa8, 0x5f, - 0x4f, 0x6e, 0x7b, 0x7a, 0x14, 0x49, 0xea, 0x24, 0xe2, 0xa3, 0x13, 0xc8, 0x50, 0xd9, 0x81, 0xe8, - 0x81, 0xf9, 0xf0, 0x8e, 0x26, 0xb5, 0x13, 0x38, 0xe4, 0x9e, 0x02, 0xe4, 0x83, 0x28, 0x73, 0xe3, - 0x8f, 0x24, 0x14, 0xae, 0xe7, 0x81, 0x0c, 0x28, 0x0b, 0x26, 0x1c, 0x8f, 0x78, 0x8c, 0x73, 0x32, - 0x9f, 0xaa, 0x62, 0x92, 0xb8, 0xa8, 0xc0, 0x2e, 0xe3, 0xbc, 0x39, 0x95, 0x32, 0x8a, 0x38, 0x91, - 0x44, 0x62, 0x19, 0x85, 0xa4, 0x50, 0x21, 0xe8, 0x04, 0x1e, 0x46, 0x59, 0x90, 0x80, 0x8a, 0x4d, - 0xe0, 0x5f, 0x1f, 0x99, 0x52, 0xec, 0xfd, 0xc8, 0x8b, 0x95, 0x33, 0x3a, 0xfa, 0x10, 0x90, 0x73, - 0x45, 0x03, 0x67, 0x41, 0x63, 0x36, 0xf9, 0x39, 0xd6, 0xd7, 0x5e, 0xe4, 0x09, 0xa9, 0x17, 0x2b, - 0x84, 0xe1, 0xc1, 0xdc, 0xe5, 0x33, 0x76, 0x45, 0x03, 0x3a, 0x27, 0xff, 0x5b, 0x73, 0xfb, 0x37, - 0xc1, 0xd7, 0x3e, 0x74, 0x08, 0x59, 0x7a, 0x45, 0x7d, 0xc1, 0xab, 0xd9, 0x5a, 0xea, 0xa0, 0x58, - 0xdf, 0xdf, 0x3d, 0xc4, 0x92, 0x3e, 0x1c, 0x51, 0x8c, 0x39, 0x64, 0x14, 0x20, 0x15, 0x31, 0x77, - 0xb9, 0x70, 0xfc, 0x99, 0x7c, 0x0e, 0xc2, 0x96, 0x15, 0x62, 0xa4, 0x27, 0x9f, 0x8a, 0xb8, 0xf6, - 0xb0, 0x53, 0x59, 0x2f, 0x2c, 0xf7, 0x63, 0x28, 0x07, 0xf4, 0xd2, 0xa3, 0x33, 0xf5, 0x7a, 0x5d, - 0xb7, 0xa6, 0x74, 0x03, 0x36, 0xa7, 0x9f, 0xff, 0xa6, 0x81, 0xfe, 0x76, 0xf2, 0x72, 0x89, 0x5b, - 0xa3, 0x21, 0xd9, 0xd1, 0xb3, 0x04, 0x9a, 0x76, 0x4b, 0xd7, 0xa4, 0x84, 0xa5, 0xd1, 0xb5, 0x1a, - 0xad, 0x50, 0xd0, 0xd2, 0xb2, 0xed, 0x5e, 0x4b, 0x4f, 0xc5, 0xc4, 0xd1, 0xe4, 0x4c, 0x4f, 0xc7, - 0xae, 0xd1, 0x04, 0xdb, 0x7a, 0x06, 0x01, 0x64, 0x55, 0x98, 0xad, 0x67, 0x91, 0x0e, 0x25, 0xe5, - 0xb1, 0x70, 0x63, 0xd2, 0xf8, 0xc1, 0xd2, 0x73, 0xe8, 0x1e, 0x94, 0x63, 0xa4, 0xdb, 0x39, 0x6f, - 0x8f, 0xf4, 0x7c, 0x7d, 0x0c, 0x69, 0xb9, 0x3a, 0xa8, 0x07, 0xf9, 0x78, 0xd3, 0xd0, 0x93, 0x3b, - 0xbf, 0x9a, 0x8f, 0x9f, 0xde, 0xba, 0xd9, 0xe1, 0x3a, 0x26, 0x8e, 0xb5, 0xd3, 0xfc, 0x5f, 0xdf, - 0x67, 0x8e, 0xcd, 0x2f, 0xcc, 0xe3, 0x69, 0x56, 0x7d, 0xe5, 0x4f, 0xfe, 0x0d, 0x00, 0x00, 0xff, - 0xff, 0x93, 0xe0, 0xfa, 0x41, 0x34, 0x08, 0x00, 0x00, + // 1021 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x94, 0x55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e3, 0x0c, 0xba, 0x7a, 0x2e, 0x05, 0xba, 0x93, + 0x73, 0x3d, 0x9f, 0x86, 0xdc, 0x09, 0x76, 0xf4, 0x02, 0x02, 0x28, 0xaa, 0x34, 0x47, 0x2f, 0x22, + 0x1d, 0xf6, 0x55, 0xc4, 0xc2, 0xed, 0x49, 0xfb, 0x67, 0x4b, 0xdf, 0x43, 0x0f, 0xa0, 0x9a, 0x7a, + 0xfa, 0xbd, 0x8b, 0x4b, 0x57, 0x2f, 0xb5, 0xc6, 0x90, 0x97, 0xab, 0x83, 0x06, 0x50, 0x4a, 0x37, + 0x0d, 0x3d, 0xbb, 0xf7, 0xdb, 0xf4, 0xf4, 0xe8, 0xb3, 0x9b, 0x1d, 0xaf, 0x63, 0xe6, 0x54, 0x7b, + 0x55, 0xfa, 0xfb, 0xa7, 0xc2, 0xa9, 0xf9, 0x8d, 0x79, 0x3a, 0x2d, 0xaa, 0x6f, 0xe9, 0xd9, 0xbf, + 0x01, 0x00, 0x00, 0xff, 0xff, 0xb6, 0x72, 0x56, 0x89, 0x9a, 0x07, 0x00, 0x00, } diff --git a/otdr/otdr.proto b/otdr/otdr.proto index 2b4ecf26..23ca19dc 100644 --- a/otdr/otdr.proto +++ b/otdr/otdr.proto @@ -49,9 +49,8 @@ message InitiateRequest { // than one option may be specified if desired. repeated ResultsMethod results_method = 2; - // Describes the configuration used to perform an OTDR trace for the needed - // circumstance. - OTDRConfigurationProfile configuration = 3; + // Describes the configuration used to perform an OTDR trace. + OTDRConfiguration configuration = 3; // If specified, the device will label the OTDR trace so it can be recalled // later. For example, the initial OTDR trace measured during span @@ -59,18 +58,6 @@ message InitiateRequest { string label = 4; } -message OTDRConfigurationProfile { - oneof profile_type { - // A custom OTDR configuration profile which defines a set of OTDR - // configurations. The profiles are defined by the vendor implementation. - // (e.g., 'short', 'long', 'auto'). - string custom_profile = 1; - // OTDR configuration profile which allows the user to specify granular - // control of the various configuration options. - OTDRConfiguration profile = 2; - } -} - // OTDR configuration options which can be set on the device. It is not required // that every field be set as some fields may not apply for a given // implementation. From 25497303037e564d5d0deb1a406164c39fa5f859 Mon Sep 17 00:00:00 2001 From: Eric Breverman Date: Fri, 7 Jun 2019 11:28:08 -0700 Subject: [PATCH 041/238] add sampling resolution --- otdr/otdr.pb.go | 132 +++++++++++++++++++++++++----------------------- otdr/otdr.proto | 3 ++ 2 files changed, 71 insertions(+), 64 deletions(-) diff --git a/otdr/otdr.pb.go b/otdr/otdr.pb.go index 010ee470..d336f681 100644 --- a/otdr/otdr.pb.go +++ b/otdr/otdr.pb.go @@ -221,6 +221,8 @@ type OTDRConfiguration struct { RangeM float32 `protobuf:"fixed32,4,opt,name=range_m,json=rangeM" json:"range_m,omitempty"` // The type of fiber that is being measured. FiberType FiberTypeProfile `protobuf:"varint,5,opt,name=fiber_type,json=fiberType,enum=gnoi.optical.FiberTypeProfile" json:"fiber_type,omitempty"` + // The sampling resolution in meters. + SamplingResolutionM float32 `protobuf:"fixed32,6,opt,name=sampling_resolution_m,json=samplingResolutionM" json:"sampling_resolution_m,omitempty"` } func (m *OTDRConfiguration) Reset() { *m = OTDRConfiguration{} } @@ -598,69 +600,71 @@ var _OTDR_serviceDesc = grpc.ServiceDesc{ func init() { proto.RegisterFile("otdr/otdr.proto", fileDescriptor0) } var fileDescriptor0 = []byte{ - // 1021 bytes of a gzipped FileDescriptorProto + // 1046 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x94, 0x55, 0xed, 0x6e, 0xe2, 0x46, - 0x17, 0xc6, 0x7c, 0x05, 0x0e, 0x81, 0x78, 0x27, 0xfb, 0xc1, 0xbb, 0xaf, 0x36, 0x45, 0xee, 0x56, - 0x42, 0xcd, 0xca, 0x49, 0x49, 0x55, 0xa9, 0xd5, 0xb6, 0x12, 0x1b, 0x4c, 0x82, 0x02, 0x06, 0x8d, - 0x4d, 0x69, 0x7f, 0x8d, 0x0c, 0x4c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xe1, 0x18, 0x52, 0x9f, 0x43, 0x4e, 0x25, 0xa4, 0x23, 0xe6, 0x2e, 0x17, 0x8e, + 0x3f, 0x93, 0x4f, 0x48, 0x44, 0x59, 0x31, 0xc9, 0xf4, 0xe5, 0xf3, 0x92, 0x9c, 0x3d, 0x62, 0x2a, + 0xef, 0x45, 0xc7, 0xfd, 0x12, 0xca, 0x21, 0xbd, 0xf5, 0xe8, 0x4c, 0x3d, 0x0b, 0x1b, 0x6a, 0xf6, + 0xef, 0x93, 0xed, 0xe9, 0xd7, 0x7f, 0x68, 0xa0, 0x7f, 0x38, 0xbc, 0x14, 0x71, 0xc7, 0x1e, 0x91, + 0x1d, 0x3f, 0xcb, 0x44, 0xdb, 0xea, 0xe8, 0x9a, 0xb4, 0xb0, 0x0c, 0x7a, 0x66, 0xab, 0x13, 0x19, + 0x5a, 0x46, 0x96, 0xd5, 0xef, 0xe8, 0x99, 0x04, 0x68, 0x4f, 0x2e, 0xf5, 0x6c, 0x52, 0xb2, 0x27, + 0xd8, 0xd2, 0x73, 0x08, 0x20, 0xaf, 0xda, 0x2c, 0x3d, 0x8f, 0x74, 0xd8, 0x57, 0x15, 0x13, 0xb7, + 0x26, 0xad, 0x9f, 0x4d, 0x7d, 0x0f, 0x3d, 0x82, 0x72, 0x92, 0xe9, 0x75, 0xaf, 0xae, 0x6d, 0xbd, + 0xd0, 0x1c, 0x43, 0x56, 0x4a, 0x07, 0xf5, 0xa1, 0x90, 0x28, 0x0d, 0x1d, 0x3f, 0xf8, 0x3d, 0x7b, + 0x76, 0xf2, 0x59, 0x65, 0x47, 0x72, 0x4c, 0x9d, 0x6b, 0xaf, 0x0a, 0xff, 0xfc, 0x94, 0x3b, 0x37, + 0xbe, 0x31, 0xce, 0xa7, 0x79, 0xf5, 0xfd, 0xbd, 0xf8, 0x37, 0x00, 0x00, 0xff, 0xff, 0x11, 0x20, + 0x0f, 0x65, 0xce, 0x07, 0x00, 0x00, } diff --git a/otdr/otdr.proto b/otdr/otdr.proto index 23ca19dc..79963212 100644 --- a/otdr/otdr.proto +++ b/otdr/otdr.proto @@ -80,6 +80,9 @@ message OTDRConfiguration { // The type of fiber that is being measured. FiberTypeProfile fiber_type = 5; + + // The sampling resolution in meters. + float sampling_resolution_m = 6; } // Type definition for different profiles of fiber types. These match what is From 0114b3379a7adc586ca6afd62eb63dbbe3108129 Mon Sep 17 00:00:00 2001 From: Sam Ribeiro Date: Tue, 2 Apr 2019 17:24:46 +0200 Subject: [PATCH 042/238] Simplified bootstrapping --- docs/img/bootstrapping_state.png | Bin 0 -> 41556 bytes docs/simplified_bootstrapping.md | 111 +++++++++++++++++++++++++++++++ 2 files changed, 111 insertions(+) create mode 100644 docs/img/bootstrapping_state.png create mode 100644 docs/simplified_bootstrapping.md diff --git a/docs/img/bootstrapping_state.png b/docs/img/bootstrapping_state.png new file mode 100644 index 0000000000000000000000000000000000000000..bd441ef9e4de01d125bdb4c848fdc1da781e8e34 GIT binary patch literal 41556 zcmYgYbzD^4)>d)|Nok~|l^#-hXpkCGx(1}X5u~KMk(3UB5d>)v>FyL58bJn>koXS1 z@4essi{F_!bJ%y^dk-Ga zJy4XD()Kn!T)|A?gj|AuqM$z%rREk?{u6FJ7KrzS{v~3w-BCzqNH=%ozQeruud@7Ib@> z_m~KTh7v4ENAUNLDgil1zp|<|dke+?e@qcf$8|#YKX+9VfRLJ%dr_kp|NqN`bnpMU z%GUv*`IOJNLu^q0`)s;?WwHOcQs+PmX`QxfDQx)vI|vX@-~Z2583~G%v7La?#KM2p z2P_jwH19sJK8@4pIZ?dALbE0j;t zz~ZV)I7F!af7epR8~-DNU;}yr#0Q-zfzPAue~!NFW!k(~GdcxTUiE zj+&=lxs9X-MFshRzEQre@_jJ(l8dlq&e*S-qmStA-;L*M5t0X8pG<`ktIcbkhqS`c zv}}xJqg_V?=87w8+ePlgu6B!T8yBppROzr8cn+!>N?g7@Y5MW@0uVs*d*FY>CqC^R zxJfhi-J6hb8x^*hOUP_QrFitOYT$x^(?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bRckZ!YePh=ATKh@HB%{Lx8L^g_3Rl+aL_L%c2-Q?I0PItID z7H@JCO_&n;=(ZidC|LXku0{am9CY~6^ zv-tieh^qd>IE#07{@ngNYed6RUQ0i8Er0{clSMGPX5vQx0AjB41Y&(afr`WXAC;zc zC_iOdX5F~F3gcM23A4~}?^Sl^OGGm=m$NcTE4!rV1?tvCrGz-%LEVFRLIMHC%Ho!#Xwsr*M(R4|Kuw=ivR!r=AXSo Y@!zBcu2cFm9)f>3HC@$m Date: Fri, 26 Apr 2019 12:45:53 +0200 Subject: [PATCH 043/238] Fix wording with secure mode --- docs/simplified_bootstrapping.md | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/docs/simplified_bootstrapping.md b/docs/simplified_bootstrapping.md index 1d9601cb..52fcac62 100644 --- a/docs/simplified_bootstrapping.md +++ b/docs/simplified_bootstrapping.md @@ -86,12 +86,13 @@ assigned by the Target. ##### Target behaviour -The Target must restart its gNOI/gNMI service in secure mode as soon as the -certificate and CA certificates have been successfully installed, thus -transitioning from the default state to the provisioned state. The previously -used default certificate must not be used once in the provisioned state. +The Target must restart its gNOI/gNMI service and exclusively perform secure +connections as soon as the certificate and CA certificates have been +successfully installed, thus transitioning from the default state to the +provisioned state. The previously used default certificate must not be used once +in the provisioned state. -##### Client behaviour +##### Client behavior The Client, when bootstrapping a Target must not attempt to authenticate the Target when establishing a connection. However it should still encrypt that @@ -107,5 +108,5 @@ encryption rules apply. It must be possible to reset a Target to its default state. For a Network Element this would be a factory reset triggered via gNOI. When executed, all certificates and CA certificates should be cleared. A default certificate must -be generated if it does not already exist. The entire boostrapping process +be generated if it does not already exist. The entire bootstrapping process should be applicable again. From d4652f015d7820005c2bebbdc27605640637e57e Mon Sep 17 00:00:00 2001 From: Sam Ribeiro Date: Thu, 6 Jun 2019 14:21:43 +0200 Subject: [PATCH 044/238] Always specify a cert ID during Installation. --- docs/simplified_bootstrapping.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/docs/simplified_bootstrapping.md b/docs/simplified_bootstrapping.md index 52fcac62..376ca54c 100644 --- a/docs/simplified_bootstrapping.md +++ b/docs/simplified_bootstrapping.md @@ -80,9 +80,8 @@ certificate or reuses a default one. The first installed certificate and CA certificate pool is used for the gNOI and gNMI services. No other certificates should be installed during the default -stage. If the certificate ID is specified, then that becomes the associated -certificate ID for the gNMI/gNOI service. If none is specified then one is -assigned by the Target. +stage. The certificate ID specified, becomes the associated certificate ID for +the gNMI/gNOI service. ##### Target behaviour From bfb2ead14ec503d280d477240e230a1f348c0ad2 Mon Sep 17 00:00:00 2001 From: Sam Ribeiro Date: Mon, 6 May 2019 15:04:51 +0200 Subject: [PATCH 045/238] IANA reserved port --- docs/reserved_port.md | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 docs/reserved_port.md diff --git a/docs/reserved_port.md b/docs/reserved_port.md new file mode 100644 index 00000000..621120e3 --- /dev/null +++ b/docs/reserved_port.md @@ -0,0 +1,8 @@ +# IANA Reserved port + +gNMI and gNOI services have the reserved port: + +` +service: gnmi-gnoi +port: 9339 +` From e551b4139f84267678cda2f504ea70b88b5a9427 Mon Sep 17 00:00:00 2001 From: Sam Ribeiro Date: Mon, 6 May 2019 15:10:36 +0200 Subject: [PATCH 046/238] IANA reserved port --- docs/reserved_port.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/reserved_port.md b/docs/reserved_port.md index 621120e3..57f77fb7 100644 --- a/docs/reserved_port.md +++ b/docs/reserved_port.md @@ -1,8 +1,8 @@ -# IANA Reserved port +# IANA reserved port -gNMI and gNOI services have the reserved port: +gNMI and gNOI services have a reserved port. ` service: gnmi-gnoi port: 9339 -` +` From e052deb30f8f778dcff3466a589f62479f7792c3 Mon Sep 17 00:00:00 2001 From: Sam Ribeiro Date: Tue, 4 Jun 2019 15:23:57 +0200 Subject: [PATCH 047/238] IANA reserved port document --- docs/reserved_port.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/reserved_port.md b/docs/reserved_port.md index 57f77fb7..c6244a77 100644 --- a/docs/reserved_port.md +++ b/docs/reserved_port.md @@ -1,6 +1,7 @@ # IANA reserved port -gNMI and gNOI services have a reserved port. +gNMI and gNOI services have a reserved port since May the 9th, 2019. Please use +this port as the default & configured port in your systems. ` service: gnmi-gnoi From 57320b6706cd16275b984c2ec27ce54e6215e1a5 Mon Sep 17 00:00:00 2001 From: Sam Ribeiro Date: Tue, 4 Jun 2019 15:14:39 +0200 Subject: [PATCH 048/238] gNOI best practices --- docs/best_practices.md | 237 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 237 insertions(+) create mode 100644 docs/best_practices.md diff --git a/docs/best_practices.md b/docs/best_practices.md new file mode 100644 index 00000000..f708e355 --- /dev/null +++ b/docs/best_practices.md @@ -0,0 +1,237 @@ +# Guidelines for developing gNOI microservices + +This document delivers some guidance for helping develop gNOI microservices. + +## Why gNOI instead of gNMI? + +gNMI defines actions to retrieve or manipulate the state of a device via +telemetry or configuration data, respectively. gNOI, on the other hand, is used +to execute commands on a device rather than directly change its configuration. + +## Characteristics of a gNOI microservice + +After deciding that a gNOI microservice needs to be developed, a few aspects +should be taken into consideration. There are three fundamental components that +should be understood. + +**Interpretation** - The microservice should be easy to read and understand. The +service and RPC names should intuitively deduce its purpose. + +**Implementation** - The microservice should be easy to code. There should be no +ambiguities. The combination of the service definition together with its +documentation should offer a complete understanding of all the code paths. + +**Operation** - The microservice should be straightforward to use. Not in the +versatile sense of a single RPC fits all swiss army knife style, but that a +single RPC behaves equally across different implementations. The following +guidelines help with achieving this. + +### Thin and focused + +The microservice should be simple and focus on the process it aims to implement. +The microservice must not be overarching, it must be specialized. As such, avoid +defining a microservice that implements different unrelated actions. The +developed microservice should be categorized by the nature of the process it +implements, and not by the nature of the Target it is meant to be used on. This +also applies to the naming of the microservice. + +*Instead of this:* + +``` +service Car { + rpc Turn(...) returns (...); + rpc SetSpeed(...) returns (...); + rpc SetStation(...) returns (...); + rpc SetVolume(...) returns (...); +} +``` + +*Prefer this:* + +``` +service Guidance { + rpc Turn(...) returns (...); + rpc SetSpeed(...) returns (...); +} + +service Radio { + rpc SetStation(...) returns (...); + rpc SetVolume(...) returns (...); +} +``` + +### Shallow RPCs + +Aim for more RPCs instead of single RPCs overloaded with actions. This provides +a better path for augmenting the microservice without breaking backward +compatibility. + +*Instead of this:* + +``` +service Direction { + rpc Adjust(AdjustRequest) returns (...); +} + +message AdjustRequest { + speed = 0; + turn_angle = 1; +} +``` + +*Prefer this:** + +``` +service Guidance { + rpc Turn(...) returns (...); + rpc SetSpeed(...) returns (...); +} +``` + +### Precisely specified behavior + +By virtue of its proto definition, the microservice should already specify a +good amount of detail on what is expected of a Target that implements it. +However some details usually fall out of the proto definition. These details +must be specified meticulously as a complement to the proto definition. Take +also in consideration that prescriptions should focus on the behaviour of the +implementation, as opposed to the method of the implementation. + +*Instead of this:* + +``` +service Guidance { + // Turn sets the turn angle. The + // forward wheels must rotate to the + // expected angle. The rear wheels must + // help if applicable. + rpc Turn(...) returns (...); +} +``` + +*Prefer this:* + +``` +service Guidance { + // Turn sets the turn angle. The + // system is expected to reach the + // turn angle in less than one second. + rpc Turn(...) returns (...); +} +``` + +## Error handling + +Error handling is an important factor to take into consideration in a +microservice. There are generally two approaches that can be used for individual +scenarios. + +### Vanilla gRPC Errors + +RPC's return a gRPC error using the status definitions. See in +[golang](http://google.golang.org/genproto/googleapis/rpc/status) for examples. +These errors immediately terminate the RPC and should additionally provide +detailed messages about the nature of the error. They are useful for the +following scenarios: + +* RPC's that have a singular pass/fail criteria; +* Status RPC's that request unexpected or non existing data; +* Unexpected oneof message type used in a stream RPC workflow; +* Authentication issues; +* Network issues; + +An example: + +``` +Service Bubble { + ... + // An gRPC Unimplemented error will be returned if the target cannot generate bubbles. + rpc Generate(GenerateRequest) returns (GenerateResponse) + + rpc Count(CountRequest) returns (CountResponse) +} +``` + +### Structured Error messages + +Vanilla gRPC errors are straightforward to use but may allow ambiguity to creep +if applied on more complex scenarios. Structured Error messages help with +further documenting and scoping the proto definition which limits ambiguity. +They are, in addition, well defined signals that can be trivially consumed by +upstream workflows operating with a specific gNOI microservice. An example of an +RPC with structured error messages is seen below. + +``` +message StepLeft {} + +message StepRight {} + +message StepError { + enum Type { + UNSPECIFIED = 0; + NO_LEGS_ERROR = 1; + TIRED_ERROR = 2; + } + Type type = 1; + // The detail message must be used if type is UNSPECIFIED. + string detail = 2; +} + +message StepResponse { + oneof request { + StepLeft step_left = 1; + StepRight step_right = 2; + StepError step_error = 3; + } +} + +message StepRequest {} + +// Abort with a gRPC error if Metadata authentication fails. +rpc Step(stream StepRequest) returns (stream StepResponse) +``` + +Non zero (UNSPECIFIED) enum error types should be descriptive and in general not +require filling up the detail message. + +Note that a single RPC can still make use of both the vanilla gRPC Error and +Structured Error message approaches as long as they are applied to different +scenarios. Structured Error messages must never be accompanied by a Vanilla gRPC +Error. Structured Error messages don't necessarily require the RPC to return +immediately. + +## Versioning + +It is plausible that not all scenarios may have been taken into consideration +during the conception of a microservice. Equally, novel requirements can be +introduced. Microservices may need to expand in order to mature and accommodate +improvements. However there are two fundamental pathways to accomplish this. + +### Enhancement + +These add backward compatible incremental functionalities to the microservice. +Enhancements require little effort to implement. Enhancements must be reflected +in a version string that accompanies the specific microservice. + +``` +syntax = "proto3"; + +package gnoi.whack; + +import "github.com/openconfig/gnoi/types/types.proto"; + +option (types.gnoi_version) = "0.1.0"; + +service Whack { ... +``` + +The version string details the major, minor & micro revisions to the gNOI +microservice. + +### Evolution + +These add or change functionality to the microservice that will break previous +versions. Evolution is a result of a fundamental alteration in the expected +behaviour of the microservice. When a microservice evolves, it must not +necessarily replace the previous one. Evolutions typically result in a new, more +precise and specific service name. From 7f5c7182b6c76f76b3afb41041269c12faf0f8b6 Mon Sep 17 00:00:00 2001 From: Sam Ribeiro Date: Mon, 6 May 2019 17:49:28 +0200 Subject: [PATCH 049/238] Add optional validation to new Certificates --- docs/simplified_security_model.md | 48 +++++++++++++++++-------------- 1 file changed, 27 insertions(+), 21 deletions(-) diff --git a/docs/simplified_security_model.md b/docs/simplified_security_model.md index 6d963b7c..031039a8 100644 --- a/docs/simplified_security_model.md +++ b/docs/simplified_security_model.md @@ -16,16 +16,16 @@ one that can be employed. Different security models can be defined to address specific scenarios. This simplified security model makes assumptions about the installation and -rotation of Certificates & CA Certificates. Their assumed usage is applicable +rotation of certificates & CA certificates. Their assumed usage is applicable not only to gNOI and gNMI, but also other services like OpenFlow. This simplified security model presumes that a secure connection between the -Target and the Client already exist for installing and rotating Certificates. +Target and the Client already exist for installing and rotating certificates. Bootstrapping is out of scope for this model. This simplified security model assumes low risk of man-in-the-middle attacks because it relinquishes mandating DNS verification for the Common Name of the -respective Client and Target Certificates. +respective Client and Target certificates. ## Client @@ -38,7 +38,7 @@ A Target is defined as per the definition in the gNMI and gNOI specifications. ## Peer Peer is an entity that participates in establishing a connection with another -entity, using whatever protocol that makes use of Certificates to secure that +entity, using whatever protocol that makes use of certificates to secure that connection. An example would be an OpenFlow connection between an OpenFlow switch and an OpenFlow Controller. Target and Client are particular cases of a Peer. @@ -61,7 +61,7 @@ authentication is described below. By authorized trust it is meant that the Target is granted the necessary credentials (by the Client) to be able to identify Peers as genuine (using -whatever service uses these Certificates). The Target is authorized trust by the +whatever service uses these certificates). The Target is authorized trust by the Client via the successful execution of either: * gNOI certificate installation or rotation under a Secure connection (where @@ -69,34 +69,40 @@ Client via the successful execution of either: * other provisioning or bootstrapping mechanism described outside of the scope of this security model. -## Target Certificate installation or rotation +## Target certificate installation or rotation To initiate certificate installation using the gNOI Certificate Management service: 1. The Client sends parameters to the target so that it can generate a - Certificate Signing Request (CSR). + certificate Signing Request (CSR). 2. The Target then generates this CSR using its Private Key. -3. The Target then replies with the Certificate to the Client, which - subsequently provides the Certificate to the CA to be signed. -4. The signed Certificate is then returned to the Target by the Client and it - becomes one of the Target’s Certificates. - -Each one of the Target’s Certificate has a unique identifier, the Certificate -ID. This ID is used both to install and to rotate a Certificate. Certificate -installation for an existing Certificate ID MUST fail. Replacing an existing -Certificate must rather use the Certificate rotation mechanism, whose steps are +3. The Target then replies with the certificate to the Client, which + subsequently provides the certificate to the CA to be signed. +4. The signed certificate is then returned to the Target by the Client and it + becomes one of the Target’s certificates. + +Each one of the Target’s certificate has a unique identifier, the certificate +ID. This ID is used both to install and to rotate a certificate. certificate +installation for an existing certificate ID MUST fail. Replacing an existing +certificate must rather use the certificate rotation mechanism, whose steps are similar to the ones described above with the addition of final validation. ## Target CA pool -In order for the Target to validate the Client or a Peer's Certificates, it must -have a pool of one or more CA Certificates. These are provisioned onto the -Target by the Client during creation or rotation of the Target’s Certificates. +In order for the Target to validate the Client or a Peer's certificates, it must +have a pool of one or more CA certificates. These are provisioned onto the +Target by the Client during creation or rotation of the Target’s certificates. + +### Validate installed certificate (optional) + +For increased security, the Target may use certificates in its CA pool to +validate a newly installed certificate. This requires the CA pool to contain a +CA certificate that can validate the new certificate. ## Mutual Authentication -Mutual authentication exists when two Peers validate each other's Certificate +Mutual authentication exists when two Peers validate each other's certificate against their CA pools. Optionally, either the Client or the Target can validate -that the Common Name (CN) in each other’s Certificates matches the resolved one +that the Common Name (CN) in each other’s certificates matches the resolved one for the Peer address of the connection. From f00a01556b11422860d036a80dbdc1e7b699b8fb Mon Sep 17 00:00:00 2001 From: Sam Ribeiro Date: Tue, 2 Jul 2019 11:15:09 +0200 Subject: [PATCH 050/238] Make CA validation required --- docs/simplified_security_model.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/simplified_security_model.md b/docs/simplified_security_model.md index 031039a8..4b39a7eb 100644 --- a/docs/simplified_security_model.md +++ b/docs/simplified_security_model.md @@ -94,9 +94,9 @@ In order for the Target to validate the Client or a Peer's certificates, it must have a pool of one or more CA certificates. These are provisioned onto the Target by the Client during creation or rotation of the Target’s certificates. -### Validate installed certificate (optional) +### Validate installed certificate -For increased security, the Target may use certificates in its CA pool to +For increased security, the Target must use certificates in its CA pool to validate a newly installed certificate. This requires the CA pool to contain a CA certificate that can validate the new certificate. From 0feb32f2f348e1724d1a17c4ce5d26a7ef367bde Mon Sep 17 00:00:00 2001 From: Sam Ribeiro Date: Mon, 6 May 2019 15:28:33 +0200 Subject: [PATCH 051/238] Suggest order in gNOI cert ca_certificates --- cert/cert.proto | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cert/cert.proto b/cert/cert.proto index 453a7fb4..190f04ce 100644 --- a/cert/cert.proto +++ b/cert/cert.proto @@ -278,6 +278,10 @@ message LoadCertificateRequest { // certificates should squash the existing bundle. This field provides a // simplified means to provision a CA bundle that can be used to validate // other peer's certificates. + // To improve performance in the Target, certificates can be ordered. + // Groups of chained certificates should be last, where within, the root + // certificate is the last one. E.g.: + // CertA, CertB, CertB-Root, CertC, CertC-Intermediate, CertC-Root repeated Certificate ca_certificates = 4; } From 3401d48a316108174da9dd35729280fec8312b13 Mon Sep 17 00:00:00 2001 From: Sam Ribeiro Date: Tue, 2 Jul 2019 11:10:50 +0200 Subject: [PATCH 052/238] Add forward looking notice --- cert/cert.proto | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cert/cert.proto b/cert/cert.proto index 190f04ce..d2b323d3 100644 --- a/cert/cert.proto +++ b/cert/cert.proto @@ -282,6 +282,8 @@ message LoadCertificateRequest { // Groups of chained certificates should be last, where within, the root // certificate is the last one. E.g.: // CertA, CertB, CertB-Root, CertC, CertC-Intermediate, CertC-Root + // Note that on a forward looking iteration, CA Certificates will be managed + // by a dedicated gNOI service. repeated Certificate ca_certificates = 4; } From 11420c70519891c34ee2f10df044c6315a4df4f4 Mon Sep 17 00:00:00 2001 From: Sam Ribeiro Date: Tue, 2 Apr 2019 16:21:25 +0200 Subject: [PATCH 053/238] gNOI OS service --- os/os.proto | 321 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 321 insertions(+) create mode 100644 os/os.proto diff --git a/os/os.proto b/os/os.proto new file mode 100644 index 00000000..34e94491 --- /dev/null +++ b/os/os.proto @@ -0,0 +1,321 @@ +// This file defines a gNOI API to be used for OS installation. +syntax = "proto3"; + +package gnoi.os; + +import "github.com/openconfig/gnoi/types/types.proto"; + +option (types.gnoi_version) = "0.1.0"; + +// The OS service provides an interface for OS installation on a Target. The +// Client progresses through 3 RPCs: +// 1) Installation - provide the Target with the OS package. +// 2) Activation - activate an installed OS package. +// 3) Verification - verify that the Activation was successful. +// +// Dual Supervisor Target is supported, where the above process is executed once +// for each Supervisor. +// +// Note that certain platforms may have particular approaches to upgrade the +// firmware of specific components, eg., power supply units, etc.. In addition, +// platforms may have processes to apply patches to the running OS. Handling +// these exceptions introduces extra complexities. For Targets that implement +// this service, component firmware upgrade or OS patching must be embedded +// within an OS upgrade. +service OS { + // Install transfers an OS package into the Target. No concurrent Install RPCs + // must be allowed to the same Target. + // + // The OS package file format is platform dependent. The platform must + // validate that the OS package that is supplied is valid and bootable. This + // should include a hash check against a known good hash. It is recommended + // that the hash is embedded in the OS package. + // + // The Target manages its own persistent storage, and OS installation process. + // It stores a set of distinct OS packages, and always proactively frees up + // space for incoming new OS packages. It is guaranteed that the Target always + // has enough space for a valid incoming OS package. The currently running OS + // packages must never be removed. + // + // The Install RPC allows the Client to specify the OS package version. If + // the Target already has an OS package with the same version then there is no + // need to transfer the OS package to the Target. If the Target does not have + // an OS package with the same version, then the OS package is copied. + // + // Scenario 1 - When the Target already has the OS package: + // + // Client :--------------|--------------> Target + // TransferRequest --> + // <-- [Validated|InstallError] + // + // + // Scenario 2 - When the Target does not have the OS package: + // + // Client :--------------|--------------> Target + // TransferRequest --> + // <-- [TransferReady|InstallError] + // transfer_content --> + // ... + // <-- [TransferProgress|InstallError] + // ... + // TransferEnd --> + // <-- [Validated|InstallError] + // + // On a dual Supervisor Target, only the Active Supervisor runs this gNOI + // Service. The Install RPC applies to the Active Supervisor unless + // InstallRequest->TransferRequest->standby_supervisor is set, in which case + // it applies to the Standby Supervisor. One Install RPC is required for each + // Supervisor. + // + // The Target MUST always attempt to copy the OS package between Supervisors + // first before accepting the transfer from the Client. The syncing progress + // is reported to the client with InstallResponse->SyncProgress messages. + // + // If a switchover is triggered by an external event during the Install RPC, + // the RPC MUST immediately abort with Error->type->UNEXPECTED_SWITCHOVER. + // + // Scenario 3 - When both Supervisors already have the OS package, regardless + // of the value in Start.standby_supervisor: + // + // Client :--------------|--------------> Target + // TransferRequest --> + // <-- [Validated|InstallError] + // + // + // Scenario 4 - When one of the Supervisors already has the OS package but the + // other Supervisor is the target of the Install: + // + // Client :--------------|--------------> Target + // TransferRequest --> + // <-- [SyncProgress|InstallError] + // ... + // <-- [Validated|InstallError] + // + // + // Scenario 5 - When neither of the two Supervisors has the OS package: + // + // Client :--------------|--------------> Target + // TransferRequest --> + // <-- [TransferReady|InstallError] + // transfer_content --> + // ... + // <-- [TransferProgress|InstallError] + // ... + // TransferEnd --> + // <-- [Validated|InstallError] + // + rpc Install(stream InstallRequest) returns (stream InstallResponse); + + // Activate sets the requested OS version as the version which is used at the + // next reboot, and reboots the Target. When booting the requested OS version + // fails, the Target recovers by booting the previously running OS package. + rpc Activate(ActivateRequest) returns (ActivateResponse); + + // Verify checks the running OS version. This RPC may be called multiple times + // while the Target boots, until successful. + rpc Verify(VerifyRequest) returns (VerifyResponse); +} + +message InstallRequest { + oneof request { + TransferRequest transfer_request = 1; + bytes transfer_content = 2; + TransferEnd transfer_end = 3; + } +} + +message TransferRequest { + // State the desired OS package version to transfer to the Target. If the + // Target already has the OS package version it will reply with + // InstallResponse->Validated. In the case that the target is a + // single Supervisor device, or the partner Supervisor does not have the OS + // image specified, it will respond with InstallResponse->TransferReady. In + // this case, the client MUST subsequently transfer the image. In the case + // that the image is available on the peer Supervisor of a dual Supervisor + // system, it will respond with InstallResponse->SyncProgress. In this, + // latter, case - the client does not need to transfer the OS image. This + // value can also be set empty, in which case the OS package is forced + // transferred to the Target. The Target MUST never validate that this value + // matches the one in the InstallResponse->Validated message, that is the + // Client's responsibility. + string version = 1; + + // For a Target with dual Supervisors setting this flag instructs the Target + // to perform the action on the Standby Supervisor. + bool standby_supervisor = 2; +} + +// The TransferEnd message is sent whenever the Client finishes transferring +// the OS package to the Target. At this point the Target MUST perform a general +// health check to the OS package. If the Target fails to parse the OS package +// it should immediately reply with an InstallError->type->PARSE_FAIL. If the +// integrity check of the OS package fails it should immediately reply with an +// InstallError->type->INTEGRITY_FAIL. If the identified OS version contained in +// the package is not compatible with the Target either because of the platform +// type or the running OS, it should immediately reply with an +// InstallError->type->INCOMPATIBLE. If the image is force transferred by +// omitting the InstallRequest->TransferRequest->version value, and the OS +// package is the same as the one running in the Target, the RPC should +// immediately abort and reply with an InstallError->type->INSTALL_RUN_PACKAGE. +message TransferEnd {} + +// The InstallResponse is used by the Target to inform the Client about the +// state of the Install RPC. At any stage of the process the Target can reply +// with an Error message which MUST terminate the stream. +message InstallResponse { + oneof response { + TransferReady transfer_ready = 1; + TransferProgress transfer_progress = 2; + SyncProgress sync_progress = 3; + Validated validated = 4; + InstallError install_error = 5; + } +} + +// The TransferReady message tells the Client that the Target is ready to accept +// the transfer of the OS package. At this stage the Target MUST have cleared +// enough space to accept the incoming OS package. +message TransferReady {} + +// The TransferProgress message is sent by the target asynchronously during a +// file transfer. The device should not respond to each input block received +// from the client, but rather determine reasonable intervals at which to send +// the message (e.g., 5MB). +message TransferProgress { + // The number of bytes transferred. + uint64 bytes_received = 1; +} + +// The SyncProgress message signals the Client about the progress of +// transferring the OS package between Supervisors. +message SyncProgress { + // The percentage that has transferred between Supervisors. + uint32 percentage_transferred = 1; +} + +// The Validated message asserts that the Target was able to parse the package +// and perform integrity checks to its contents. +message Validated { + // The OS version string that identifies the OS version in the OS package. + string version = 1; + // Informational field that should be used for providing more details about + // the OS package and its version. This MUST be strictly informational if + // used, and can contain information such as build date, target platform, + // developer, etc. + string description = 2; +} + +// The InstallError message MUST be sent by the Target to the Client whenever an +// issue occurs. The Target must immediately close the RPC without a gRPC error. +message InstallError { + enum Type { + // An unspecified error. Must use the detail value to describe the issue. + UNSPECIFIED = 0; + // The newly transferred package is not compatible with the Target platform. + // The detail field must contain the detailed error message. + INCOMPATIBLE = 1; + // The OS package being transferred is larger than the available size the + // Target provisioned. This is unexpected since the Target must clear disk + // space for the new OS packages. The available space and the OS package + // size must be guaranteed by the platform maker, therefore the most likely + // cause of this error is that a wrong package is being transferred. + TOO_LARGE = 2; + // Used whenever the system is unable to parse the newly transferred + // package, like reading the OS version or the integrity checksums. + PARSE_FAIL = 3; + // The transferred OS package fails integrity check. + INTEGRITY_FAIL = 4; + // Attempting to force transfer an OS package with the same version as the + // currently running. + INSTALL_RUN_PACKAGE = 5; + // Another Install RPC to this Target is already in progress. + INSTALL_IN_PROGRESS = 6; + // A switchover happened during the Install RPC. + UNEXPECTED_SWITCHOVER = 7; + // Failed to sync the transferred OS package to the standby Supervisor. The + // detail value must have more information. + SYNC_FAIL = 8; + } + Type type = 1; + string detail = 2; +} + +// The ActivateRequest is sent by the Client to the Target to initiate a change +// in the next bootable OS version that is to be used on the Target. +message ActivateRequest { + // The version that is required to be activated and booted. + string version = 1; + // For dual Supervisors setting this flag instructs the Target to perform the + // action on the Standby Supervisor. + bool standby_supervisor = 2; +} + +// The ActivateResponse is sent from the Target to the Client in response to the +// Activate RPC. It indicates the success of making the OS package version +// active. +message ActivateResponse { + oneof response { + ActivateOK activate_ok = 1; + ActivateError activate_error = 2; + } +} + +// If the Target is already running the requested version in ActivateRequest, +// then it replies with ActivateOK. If the Target has the OS package version +// requested in ActivateRequest then it replies with ActivateOK and proceeds to +// boot. In a Target with dual Supervisor, performing this RPC on the Active +// Supervisor triggers a switchover before booting the (old)Active Supervisor. +message ActivateOK {} + +message ActivateError { + enum Type { + // An unspecified error. Must use the detail value to describe the issue. + UNSPECIFIED = 0; + // There is no OS package with the version requested for activation. This is + // also used for an empty version string. + NON_EXISTENT_VERSION = 1; + } + Type type = 1; + string detail = 2; +} + +message VerifyRequest {} + +message VerifyResponse { + // The OS version currently running. + string version = 1; + // Informational message describing fail details of the last boot. This must + // be set when a newly transferred OS fails to boot and the system falls back + // to the previously running OS version. It must be cleared whenever the + // systems successfully boots the activated OS version. + string activation_fail_message = 2; + + VerifyStandby verify_standby = 3; +} + +message VerifyStandby { + oneof state { + StandbyState standby_state = 1; + StandbyResponse verify_response = 2; + } +} + +message StandbyState { + enum State { + UNSPECIFIED = 0; + // The Target does not support dual Supervisors. + UNSUPORTED = 1; + // Standby Supervisor is supported but does not exist. + NON_EXISTENT = 2; + // Standby Supervisor is supported but is not available, eg.: rebooting. + UNAVAILABLE = 3; + } + State state = 1; +} + +message StandbyResponse { + // Standby Supervisor ID, usually the slot number. + string id = 1; + string version = 2; + string activation_fail_message = 3; +} From 39fe1307e5e272f4ad97fc4c625d40530ad41349 Mon Sep 17 00:00:00 2001 From: Sam Ribeiro Date: Tue, 2 Apr 2019 17:37:14 +0200 Subject: [PATCH 054/238] fix wording --- os/os.proto | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/os/os.proto b/os/os.proto index 34e94491..ecf0f101 100644 --- a/os/os.proto +++ b/os/os.proto @@ -1,4 +1,4 @@ -// This file defines a gNOI API to be used for OS installation. +// This file defines a gNOI API used for OS installation. syntax = "proto3"; package gnoi.os; From fb58cc949e9ef05b84452d5ba5a7d3988647ef93 Mon Sep 17 00:00:00 2001 From: Sam Ribeiro Date: Tue, 30 Apr 2019 13:01:06 +0200 Subject: [PATCH 055/238] Better clarification on some text --- os/os.proto | 49 ++++++++++++++++++++++++++----------------------- 1 file changed, 26 insertions(+), 23 deletions(-) diff --git a/os/os.proto b/os/os.proto index ecf0f101..dc1a47e0 100644 --- a/os/os.proto +++ b/os/os.proto @@ -20,22 +20,23 @@ option (types.gnoi_version) = "0.1.0"; // firmware of specific components, eg., power supply units, etc.. In addition, // platforms may have processes to apply patches to the running OS. Handling // these exceptions introduces extra complexities. For Targets that implement -// this service, component firmware upgrade or OS patching must be embedded +// this service, component firmware upgrade or OS patching MUST be embedded // within an OS upgrade. service OS { // Install transfers an OS package into the Target. No concurrent Install RPCs - // must be allowed to the same Target. + // MUST be allowed to the same Target. // - // The OS package file format is platform dependent. The platform must + // The OS package file format is platform dependent. The platform MUST // validate that the OS package that is supplied is valid and bootable. This - // should include a hash check against a known good hash. It is recommended + // SHOULD include a hash check against a known good hash. It is recommended // that the hash is embedded in the OS package. // // The Target manages its own persistent storage, and OS installation process. // It stores a set of distinct OS packages, and always proactively frees up // space for incoming new OS packages. It is guaranteed that the Target always // has enough space for a valid incoming OS package. The currently running OS - // packages must never be removed. + // packages MUST never be removed. The Client MUST expect that the last + // successfully installed package is available. // // The Install RPC allows the Client to specify the OS package version. If // the Target already has an OS package with the same version then there is no @@ -65,14 +66,14 @@ service OS { // Service. The Install RPC applies to the Active Supervisor unless // InstallRequest->TransferRequest->standby_supervisor is set, in which case // it applies to the Standby Supervisor. One Install RPC is required for each - // Supervisor. + // Supervisor. The Supervisor order of package installation MUST not be fixed. // // The Target MUST always attempt to copy the OS package between Supervisors // first before accepting the transfer from the Client. The syncing progress // is reported to the client with InstallResponse->SyncProgress messages. // - // If a switchover is triggered by an external event during the Install RPC, - // the RPC MUST immediately abort with Error->type->UNEXPECTED_SWITCHOVER. + // If a switchover is triggered during the Install RPC, the RPC MUST + // immediately abort with Error->type->UNEXPECTED_SWITCHOVER. // // Scenario 3 - When both Supervisors already have the OS package, regardless // of the value in Start.standby_supervisor: @@ -125,8 +126,10 @@ message InstallRequest { } message TransferRequest { - // State the desired OS package version to transfer to the Target. If the - // Target already has the OS package version it will reply with + // The version string is a vendor defined string that identifies the OS + // version. It is provided by the vendor and embedded in the OS package. This + // value states the desired OS package version to transfer to the Target. If + // the Target already has the OS package version it will reply with // InstallResponse->Validated. In the case that the target is a // single Supervisor device, or the partner Supervisor does not have the OS // image specified, it will respond with InstallResponse->TransferReady. In @@ -148,14 +151,14 @@ message TransferRequest { // The TransferEnd message is sent whenever the Client finishes transferring // the OS package to the Target. At this point the Target MUST perform a general // health check to the OS package. If the Target fails to parse the OS package -// it should immediately reply with an InstallError->type->PARSE_FAIL. If the -// integrity check of the OS package fails it should immediately reply with an +// it MUST immediately reply with an InstallError->type->PARSE_FAIL. If the +// integrity check of the OS package fails it MUST immediately reply with an // InstallError->type->INTEGRITY_FAIL. If the identified OS version contained in // the package is not compatible with the Target either because of the platform -// type or the running OS, it should immediately reply with an +// type or the running OS, it MUST immediately reply with an // InstallError->type->INCOMPATIBLE. If the image is force transferred by // omitting the InstallRequest->TransferRequest->version value, and the OS -// package is the same as the one running in the Target, the RPC should +// package is the same as the one running in the Target, the RPC MUST // immediately abort and reply with an InstallError->type->INSTALL_RUN_PACKAGE. message TransferEnd {} @@ -178,7 +181,7 @@ message InstallResponse { message TransferReady {} // The TransferProgress message is sent by the target asynchronously during a -// file transfer. The device should not respond to each input block received +// file transfer. The device SHOULD not respond to each input block received // from the client, but rather determine reasonable intervals at which to send // the message (e.g., 5MB). message TransferProgress { @@ -198,7 +201,7 @@ message SyncProgress { message Validated { // The OS version string that identifies the OS version in the OS package. string version = 1; - // Informational field that should be used for providing more details about + // Informational field that SHOULD be used for providing more details about // the OS package and its version. This MUST be strictly informational if // used, and can contain information such as build date, target platform, // developer, etc. @@ -206,18 +209,18 @@ message Validated { } // The InstallError message MUST be sent by the Target to the Client whenever an -// issue occurs. The Target must immediately close the RPC without a gRPC error. +// issue occurs. The Target MUST immediately close the RPC without a gRPC error. message InstallError { enum Type { // An unspecified error. Must use the detail value to describe the issue. UNSPECIFIED = 0; // The newly transferred package is not compatible with the Target platform. - // The detail field must contain the detailed error message. + // The detail field MUST contain the detailed error message. INCOMPATIBLE = 1; // The OS package being transferred is larger than the available size the - // Target provisioned. This is unexpected since the Target must clear disk + // Target provisioned. This is unexpected since the Target MUST clear disk // space for the new OS packages. The available space and the OS package - // size must be guaranteed by the platform maker, therefore the most likely + // size MUST be guaranteed by the platform maker, therefore the most likely // cause of this error is that a wrong package is being transferred. TOO_LARGE = 2; // Used whenever the system is unable to parse the newly transferred @@ -233,7 +236,7 @@ message InstallError { // A switchover happened during the Install RPC. UNEXPECTED_SWITCHOVER = 7; // Failed to sync the transferred OS package to the standby Supervisor. The - // detail value must have more information. + // detail value MUST have more information. SYNC_FAIL = 8; } Type type = 1; @@ -284,9 +287,9 @@ message VerifyRequest {} message VerifyResponse { // The OS version currently running. string version = 1; - // Informational message describing fail details of the last boot. This must + // Informational message describing fail details of the last boot. This MUST // be set when a newly transferred OS fails to boot and the system falls back - // to the previously running OS version. It must be cleared whenever the + // to the previously running OS version. It MUST be cleared whenever the // systems successfully boots the activated OS version. string activation_fail_message = 2; From 9d7b6e2175657c50aef25d71be3e281d3f74208e Mon Sep 17 00:00:00 2001 From: Sam Ribeiro Date: Fri, 3 May 2019 16:15:34 +0200 Subject: [PATCH 056/238] Clarify switchover impact --- os/os.proto | 2 ++ 1 file changed, 2 insertions(+) diff --git a/os/os.proto b/os/os.proto index dc1a47e0..04fc5992 100644 --- a/os/os.proto +++ b/os/os.proto @@ -268,6 +268,8 @@ message ActivateResponse { // requested in ActivateRequest then it replies with ActivateOK and proceeds to // boot. In a Target with dual Supervisor, performing this RPC on the Active // Supervisor triggers a switchover before booting the (old)Active Supervisor. +// The Target should always perform a switchover with the least impact possible +// to forwarding. message ActivateOK {} message ActivateError { From 438a167348b22426eb7fb04ce677ebed243d40d9 Mon Sep 17 00:00:00 2001 From: Eric Breverman Date: Wed, 20 Nov 2019 17:05:15 -0800 Subject: [PATCH 057/238] psd to spectrum power units change --- wavelength_router/wavelength_router.pb.go | 603 +++++++++++++--------- wavelength_router/wavelength_router.proto | 32 +- 2 files changed, 362 insertions(+), 273 deletions(-) diff --git a/wavelength_router/wavelength_router.pb.go b/wavelength_router/wavelength_router.pb.go index 20b1763f..61ddf4a9 100644 --- a/wavelength_router/wavelength_router.pb.go +++ b/wavelength_router/wavelength_router.pb.go @@ -1,30 +1,17 @@ -// Code generated by protoc-gen-go. +// Code generated by protoc-gen-go. DO NOT EDIT. // source: wavelength_router/wavelength_router.proto -// DO NOT EDIT! -/* -Package gnoi_optical is a generated protocol buffer package. - -It is generated from these files: - wavelength_router/wavelength_router.proto - -It has these top-level messages: - AdjustPSDRequest - AdjustPSDProgress - AdjustPSDError - AdjustPSDResponse - CancelAdjustPSDResponse -*/ package gnoi_optical -import proto "github.com/golang/protobuf/proto" -import fmt "fmt" -import math "math" -import gnoi_types "github.com/openconfig/gnoi/types" - import ( - context "golang.org/x/net/context" + context "context" + fmt "fmt" + proto "github.com/golang/protobuf/proto" + types "github.com/openconfig/gnoi/types" grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + math "math" ) // Reference imports to suppress errors if they are not otherwise used. @@ -36,274 +23,405 @@ var _ = math.Inf // 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 +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package -type AdjustPSDRequest_SignalDirection int32 +type AdjustSpectrumRequest_SignalDirection int32 const ( - AdjustPSDRequest_DIRECTION_UNKNOWN AdjustPSDRequest_SignalDirection = 0 - AdjustPSDRequest_DIRECTION_INPUT AdjustPSDRequest_SignalDirection = 1 - AdjustPSDRequest_DIRECTION_OUTPUT AdjustPSDRequest_SignalDirection = 2 + AdjustSpectrumRequest_DIRECTION_UNKNOWN AdjustSpectrumRequest_SignalDirection = 0 + AdjustSpectrumRequest_DIRECTION_INPUT AdjustSpectrumRequest_SignalDirection = 1 + AdjustSpectrumRequest_DIRECTION_OUTPUT AdjustSpectrumRequest_SignalDirection = 2 ) -var AdjustPSDRequest_SignalDirection_name = map[int32]string{ +var AdjustSpectrumRequest_SignalDirection_name = map[int32]string{ 0: "DIRECTION_UNKNOWN", 1: "DIRECTION_INPUT", 2: "DIRECTION_OUTPUT", } -var AdjustPSDRequest_SignalDirection_value = map[string]int32{ + +var AdjustSpectrumRequest_SignalDirection_value = map[string]int32{ "DIRECTION_UNKNOWN": 0, "DIRECTION_INPUT": 1, "DIRECTION_OUTPUT": 2, } -func (x AdjustPSDRequest_SignalDirection) String() string { - return proto.EnumName(AdjustPSDRequest_SignalDirection_name, int32(x)) +func (x AdjustSpectrumRequest_SignalDirection) String() string { + return proto.EnumName(AdjustSpectrumRequest_SignalDirection_name, int32(x)) } -func (AdjustPSDRequest_SignalDirection) EnumDescriptor() ([]byte, []int) { - return fileDescriptor0, []int{0, 0} + +func (AdjustSpectrumRequest_SignalDirection) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_cb8b6c17dc3d7490, []int{0, 0} } -type AdjustPSDProgress_State int32 +type AdjustSpectrumProgress_State int32 const ( - AdjustPSDProgress_UNKNOWN AdjustPSDProgress_State = 0 - AdjustPSDProgress_RUNNING AdjustPSDProgress_State = 1 - AdjustPSDProgress_COMPLETE AdjustPSDProgress_State = 2 + AdjustSpectrumProgress_UNKNOWN AdjustSpectrumProgress_State = 0 + AdjustSpectrumProgress_RUNNING AdjustSpectrumProgress_State = 1 + AdjustSpectrumProgress_COMPLETE AdjustSpectrumProgress_State = 2 ) -var AdjustPSDProgress_State_name = map[int32]string{ +var AdjustSpectrumProgress_State_name = map[int32]string{ 0: "UNKNOWN", 1: "RUNNING", 2: "COMPLETE", } -var AdjustPSDProgress_State_value = map[string]int32{ + +var AdjustSpectrumProgress_State_value = map[string]int32{ "UNKNOWN": 0, "RUNNING": 1, "COMPLETE": 2, } -func (x AdjustPSDProgress_State) String() string { - return proto.EnumName(AdjustPSDProgress_State_name, int32(x)) +func (x AdjustSpectrumProgress_State) String() string { + return proto.EnumName(AdjustSpectrumProgress_State_name, int32(x)) +} + +func (AdjustSpectrumProgress_State) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_cb8b6c17dc3d7490, []int{1, 0} } -func (AdjustPSDProgress_State) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{1, 0} } -type AdjustPSDError_Type int32 +type AdjustSpectrumError_Type int32 const ( // An unspecified error. Must use the detail value to describe the issue. - AdjustPSDError_UNSPECIFIED AdjustPSDError_Type = 0 + AdjustSpectrumError_UNSPECIFIED AdjustSpectrumError_Type = 0 // An adjustment was requested for a port that is busy (e.g., requesting // input adjustment for a port that is currently running an output // adjustment) - AdjustPSDError_PORT_BUSY AdjustPSDError_Type = 1 + AdjustSpectrumError_PORT_BUSY AdjustSpectrumError_Type = 1 // The hardware has failed and cannot complete an adjustment. - AdjustPSDError_HARDWARE_FAILURE AdjustPSDError_Type = 2 + AdjustSpectrumError_HARDWARE_FAILURE AdjustSpectrumError_Type = 2 ) -var AdjustPSDError_Type_name = map[int32]string{ +var AdjustSpectrumError_Type_name = map[int32]string{ 0: "UNSPECIFIED", 1: "PORT_BUSY", 2: "HARDWARE_FAILURE", } -var AdjustPSDError_Type_value = map[string]int32{ + +var AdjustSpectrumError_Type_value = map[string]int32{ "UNSPECIFIED": 0, "PORT_BUSY": 1, "HARDWARE_FAILURE": 2, } -func (x AdjustPSDError_Type) String() string { - return proto.EnumName(AdjustPSDError_Type_name, int32(x)) +func (x AdjustSpectrumError_Type) String() string { + return proto.EnumName(AdjustSpectrumError_Type_name, int32(x)) +} + +func (AdjustSpectrumError_Type) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_cb8b6c17dc3d7490, []int{2, 0} } -func (AdjustPSDError_Type) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{2, 0} } -type AdjustPSDRequest struct { +type AdjustSpectrumRequest struct { // Absolute path to the /components/component list member in the OpenConfig // model corresponding to the port to perform the adjustment for. // (e.g., /components/component[name=amp-1-1]) - Component *gnoi_types.Path `protobuf:"bytes,1,opt,name=component" json:"component,omitempty"` + Component *types.Path `protobuf:"bytes,1,opt,name=component,proto3" json:"component,omitempty"` // Describes the signal direction that should be adjusted relative to the // device. For example, "input" would be the signal entering into the device // from the far end device. - Direction AdjustPSDRequest_SignalDirection `protobuf:"varint,2,opt,name=direction,enum=gnoi.optical.AdjustPSDRequest_SignalDirection" json:"direction,omitempty"` + Direction AdjustSpectrumRequest_SignalDirection `protobuf:"varint,2,opt,name=direction,proto3,enum=gnoi.optical.AdjustSpectrumRequest_SignalDirection" json:"direction,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *AdjustSpectrumRequest) Reset() { *m = AdjustSpectrumRequest{} } +func (m *AdjustSpectrumRequest) String() string { return proto.CompactTextString(m) } +func (*AdjustSpectrumRequest) ProtoMessage() {} +func (*AdjustSpectrumRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_cb8b6c17dc3d7490, []int{0} +} + +func (m *AdjustSpectrumRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AdjustSpectrumRequest.Unmarshal(m, b) +} +func (m *AdjustSpectrumRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AdjustSpectrumRequest.Marshal(b, m, deterministic) +} +func (m *AdjustSpectrumRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_AdjustSpectrumRequest.Merge(m, src) +} +func (m *AdjustSpectrumRequest) XXX_Size() int { + return xxx_messageInfo_AdjustSpectrumRequest.Size(m) +} +func (m *AdjustSpectrumRequest) XXX_DiscardUnknown() { + xxx_messageInfo_AdjustSpectrumRequest.DiscardUnknown(m) } -func (m *AdjustPSDRequest) Reset() { *m = AdjustPSDRequest{} } -func (m *AdjustPSDRequest) String() string { return proto.CompactTextString(m) } -func (*AdjustPSDRequest) ProtoMessage() {} -func (*AdjustPSDRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } +var xxx_messageInfo_AdjustSpectrumRequest proto.InternalMessageInfo -func (m *AdjustPSDRequest) GetComponent() *gnoi_types.Path { +func (m *AdjustSpectrumRequest) GetComponent() *types.Path { if m != nil { return m.Component } return nil } -type AdjustPSDProgress struct { +func (m *AdjustSpectrumRequest) GetDirection() AdjustSpectrumRequest_SignalDirection { + if m != nil { + return m.Direction + } + return AdjustSpectrumRequest_DIRECTION_UNKNOWN +} + +type AdjustSpectrumProgress struct { // The state of the OTDR trace requested. Note that this does not include // error states as these should be returned as a gRPC error. - State AdjustPSDProgress_State `protobuf:"varint,1,opt,name=state,enum=gnoi.optical.AdjustPSDProgress_State" json:"state,omitempty"` + State AdjustSpectrumProgress_State `protobuf:"varint,1,opt,name=state,proto3,enum=gnoi.optical.AdjustSpectrumProgress_State" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *AdjustSpectrumProgress) Reset() { *m = AdjustSpectrumProgress{} } +func (m *AdjustSpectrumProgress) String() string { return proto.CompactTextString(m) } +func (*AdjustSpectrumProgress) ProtoMessage() {} +func (*AdjustSpectrumProgress) Descriptor() ([]byte, []int) { + return fileDescriptor_cb8b6c17dc3d7490, []int{1} +} + +func (m *AdjustSpectrumProgress) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AdjustSpectrumProgress.Unmarshal(m, b) +} +func (m *AdjustSpectrumProgress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AdjustSpectrumProgress.Marshal(b, m, deterministic) +} +func (m *AdjustSpectrumProgress) XXX_Merge(src proto.Message) { + xxx_messageInfo_AdjustSpectrumProgress.Merge(m, src) +} +func (m *AdjustSpectrumProgress) XXX_Size() int { + return xxx_messageInfo_AdjustSpectrumProgress.Size(m) } +func (m *AdjustSpectrumProgress) XXX_DiscardUnknown() { + xxx_messageInfo_AdjustSpectrumProgress.DiscardUnknown(m) +} + +var xxx_messageInfo_AdjustSpectrumProgress proto.InternalMessageInfo -func (m *AdjustPSDProgress) Reset() { *m = AdjustPSDProgress{} } -func (m *AdjustPSDProgress) String() string { return proto.CompactTextString(m) } -func (*AdjustPSDProgress) ProtoMessage() {} -func (*AdjustPSDProgress) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } +func (m *AdjustSpectrumProgress) GetState() AdjustSpectrumProgress_State { + if m != nil { + return m.State + } + return AdjustSpectrumProgress_UNKNOWN +} -type AdjustPSDError struct { - Type AdjustPSDError_Type `protobuf:"varint,1,opt,name=type,enum=gnoi.optical.AdjustPSDError_Type" json:"type,omitempty"` - Detail string `protobuf:"bytes,2,opt,name=detail" json:"detail,omitempty"` +type AdjustSpectrumError struct { + Type AdjustSpectrumError_Type `protobuf:"varint,1,opt,name=type,proto3,enum=gnoi.optical.AdjustSpectrumError_Type" json:"type,omitempty"` + Detail string `protobuf:"bytes,2,opt,name=detail,proto3" json:"detail,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *AdjustPSDError) Reset() { *m = AdjustPSDError{} } -func (m *AdjustPSDError) String() string { return proto.CompactTextString(m) } -func (*AdjustPSDError) ProtoMessage() {} -func (*AdjustPSDError) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} } +func (m *AdjustSpectrumError) Reset() { *m = AdjustSpectrumError{} } +func (m *AdjustSpectrumError) String() string { return proto.CompactTextString(m) } +func (*AdjustSpectrumError) ProtoMessage() {} +func (*AdjustSpectrumError) Descriptor() ([]byte, []int) { + return fileDescriptor_cb8b6c17dc3d7490, []int{2} +} -// AdjustPSDResponse describes the possible response messages that will be +func (m *AdjustSpectrumError) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AdjustSpectrumError.Unmarshal(m, b) +} +func (m *AdjustSpectrumError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AdjustSpectrumError.Marshal(b, m, deterministic) +} +func (m *AdjustSpectrumError) XXX_Merge(src proto.Message) { + xxx_messageInfo_AdjustSpectrumError.Merge(m, src) +} +func (m *AdjustSpectrumError) XXX_Size() int { + return xxx_messageInfo_AdjustSpectrumError.Size(m) +} +func (m *AdjustSpectrumError) XXX_DiscardUnknown() { + xxx_messageInfo_AdjustSpectrumError.DiscardUnknown(m) +} + +var xxx_messageInfo_AdjustSpectrumError proto.InternalMessageInfo + +func (m *AdjustSpectrumError) GetType() AdjustSpectrumError_Type { + if m != nil { + return m.Type + } + return AdjustSpectrumError_UNSPECIFIED +} + +func (m *AdjustSpectrumError) GetDetail() string { + if m != nil { + return m.Detail + } + return "" +} + +// AdjustSpectrumResponse describes the possible response messages that will be // streamed after the RPC is initiated. While the OTDR is running, // "progress" messages should be sent at a regular interval. When the // adjustment is completed, an "error" message should be streamed if an // error is encountered or the RPC should be terminated on success. -type AdjustPSDResponse struct { +type AdjustSpectrumResponse struct { // Types that are valid to be assigned to Response: - // *AdjustPSDResponse_Progress - // *AdjustPSDResponse_Error - Response isAdjustPSDResponse_Response `protobuf_oneof:"response"` + // *AdjustSpectrumResponse_Progress + // *AdjustSpectrumResponse_Error + Response isAdjustSpectrumResponse_Response `protobuf_oneof:"response"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *AdjustSpectrumResponse) Reset() { *m = AdjustSpectrumResponse{} } +func (m *AdjustSpectrumResponse) String() string { return proto.CompactTextString(m) } +func (*AdjustSpectrumResponse) ProtoMessage() {} +func (*AdjustSpectrumResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_cb8b6c17dc3d7490, []int{3} +} + +func (m *AdjustSpectrumResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AdjustSpectrumResponse.Unmarshal(m, b) +} +func (m *AdjustSpectrumResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AdjustSpectrumResponse.Marshal(b, m, deterministic) +} +func (m *AdjustSpectrumResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_AdjustSpectrumResponse.Merge(m, src) +} +func (m *AdjustSpectrumResponse) XXX_Size() int { + return xxx_messageInfo_AdjustSpectrumResponse.Size(m) +} +func (m *AdjustSpectrumResponse) XXX_DiscardUnknown() { + xxx_messageInfo_AdjustSpectrumResponse.DiscardUnknown(m) } -func (m *AdjustPSDResponse) Reset() { *m = AdjustPSDResponse{} } -func (m *AdjustPSDResponse) String() string { return proto.CompactTextString(m) } -func (*AdjustPSDResponse) ProtoMessage() {} -func (*AdjustPSDResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} } +var xxx_messageInfo_AdjustSpectrumResponse proto.InternalMessageInfo -type isAdjustPSDResponse_Response interface { - isAdjustPSDResponse_Response() +type isAdjustSpectrumResponse_Response interface { + isAdjustSpectrumResponse_Response() } -type AdjustPSDResponse_Progress struct { - Progress *AdjustPSDProgress `protobuf:"bytes,1,opt,name=progress,oneof"` +type AdjustSpectrumResponse_Progress struct { + Progress *AdjustSpectrumProgress `protobuf:"bytes,1,opt,name=progress,proto3,oneof"` } -type AdjustPSDResponse_Error struct { - Error *AdjustPSDError `protobuf:"bytes,2,opt,name=error,oneof"` + +type AdjustSpectrumResponse_Error struct { + Error *AdjustSpectrumError `protobuf:"bytes,2,opt,name=error,proto3,oneof"` } -func (*AdjustPSDResponse_Progress) isAdjustPSDResponse_Response() {} -func (*AdjustPSDResponse_Error) isAdjustPSDResponse_Response() {} +func (*AdjustSpectrumResponse_Progress) isAdjustSpectrumResponse_Response() {} -func (m *AdjustPSDResponse) GetResponse() isAdjustPSDResponse_Response { +func (*AdjustSpectrumResponse_Error) isAdjustSpectrumResponse_Response() {} + +func (m *AdjustSpectrumResponse) GetResponse() isAdjustSpectrumResponse_Response { if m != nil { return m.Response } return nil } -func (m *AdjustPSDResponse) GetProgress() *AdjustPSDProgress { - if x, ok := m.GetResponse().(*AdjustPSDResponse_Progress); ok { +func (m *AdjustSpectrumResponse) GetProgress() *AdjustSpectrumProgress { + if x, ok := m.GetResponse().(*AdjustSpectrumResponse_Progress); ok { return x.Progress } return nil } -func (m *AdjustPSDResponse) GetError() *AdjustPSDError { - if x, ok := m.GetResponse().(*AdjustPSDResponse_Error); ok { +func (m *AdjustSpectrumResponse) GetError() *AdjustSpectrumError { + if x, ok := m.GetResponse().(*AdjustSpectrumResponse_Error); ok { return x.Error } return nil } -// XXX_OneofFuncs is for the internal use of the proto package. -func (*AdjustPSDResponse) 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 _AdjustPSDResponse_OneofMarshaler, _AdjustPSDResponse_OneofUnmarshaler, _AdjustPSDResponse_OneofSizer, []interface{}{ - (*AdjustPSDResponse_Progress)(nil), - (*AdjustPSDResponse_Error)(nil), +// XXX_OneofWrappers is for the internal use of the proto package. +func (*AdjustSpectrumResponse) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*AdjustSpectrumResponse_Progress)(nil), + (*AdjustSpectrumResponse_Error)(nil), } } -func _AdjustPSDResponse_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { - m := msg.(*AdjustPSDResponse) - // response - switch x := m.Response.(type) { - case *AdjustPSDResponse_Progress: - b.EncodeVarint(1<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.Progress); err != nil { - return err - } - case *AdjustPSDResponse_Error: - b.EncodeVarint(2<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.Error); err != nil { - return err - } - case nil: - default: - return fmt.Errorf("AdjustPSDResponse.Response has unexpected type %T", x) - } - return nil +type CancelAdjustSpectrumResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func _AdjustPSDResponse_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { - m := msg.(*AdjustPSDResponse) - switch tag { - case 1: // response.progress - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(AdjustPSDProgress) - err := b.DecodeMessage(msg) - m.Response = &AdjustPSDResponse_Progress{msg} - return true, err - case 2: // response.error - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(AdjustPSDError) - err := b.DecodeMessage(msg) - m.Response = &AdjustPSDResponse_Error{msg} - return true, err - default: - return false, nil - } +func (m *CancelAdjustSpectrumResponse) Reset() { *m = CancelAdjustSpectrumResponse{} } +func (m *CancelAdjustSpectrumResponse) String() string { return proto.CompactTextString(m) } +func (*CancelAdjustSpectrumResponse) ProtoMessage() {} +func (*CancelAdjustSpectrumResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_cb8b6c17dc3d7490, []int{4} } -func _AdjustPSDResponse_OneofSizer(msg proto.Message) (n int) { - m := msg.(*AdjustPSDResponse) - // response - switch x := m.Response.(type) { - case *AdjustPSDResponse_Progress: - s := proto.Size(x.Progress) - n += proto.SizeVarint(1<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *AdjustPSDResponse_Error: - s := proto.Size(x.Error) - n += proto.SizeVarint(2<<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 +func (m *CancelAdjustSpectrumResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CancelAdjustSpectrumResponse.Unmarshal(m, b) } - -type CancelAdjustPSDResponse struct { +func (m *CancelAdjustSpectrumResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CancelAdjustSpectrumResponse.Marshal(b, m, deterministic) +} +func (m *CancelAdjustSpectrumResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_CancelAdjustSpectrumResponse.Merge(m, src) +} +func (m *CancelAdjustSpectrumResponse) XXX_Size() int { + return xxx_messageInfo_CancelAdjustSpectrumResponse.Size(m) +} +func (m *CancelAdjustSpectrumResponse) XXX_DiscardUnknown() { + xxx_messageInfo_CancelAdjustSpectrumResponse.DiscardUnknown(m) } -func (m *CancelAdjustPSDResponse) Reset() { *m = CancelAdjustPSDResponse{} } -func (m *CancelAdjustPSDResponse) String() string { return proto.CompactTextString(m) } -func (*CancelAdjustPSDResponse) ProtoMessage() {} -func (*CancelAdjustPSDResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} } +var xxx_messageInfo_CancelAdjustSpectrumResponse proto.InternalMessageInfo func init() { - proto.RegisterType((*AdjustPSDRequest)(nil), "gnoi.optical.AdjustPSDRequest") - proto.RegisterType((*AdjustPSDProgress)(nil), "gnoi.optical.AdjustPSDProgress") - proto.RegisterType((*AdjustPSDError)(nil), "gnoi.optical.AdjustPSDError") - proto.RegisterType((*AdjustPSDResponse)(nil), "gnoi.optical.AdjustPSDResponse") - proto.RegisterType((*CancelAdjustPSDResponse)(nil), "gnoi.optical.CancelAdjustPSDResponse") - proto.RegisterEnum("gnoi.optical.AdjustPSDRequest_SignalDirection", AdjustPSDRequest_SignalDirection_name, AdjustPSDRequest_SignalDirection_value) - proto.RegisterEnum("gnoi.optical.AdjustPSDProgress_State", AdjustPSDProgress_State_name, AdjustPSDProgress_State_value) - proto.RegisterEnum("gnoi.optical.AdjustPSDError_Type", AdjustPSDError_Type_name, AdjustPSDError_Type_value) + proto.RegisterEnum("gnoi.optical.AdjustSpectrumRequest_SignalDirection", AdjustSpectrumRequest_SignalDirection_name, AdjustSpectrumRequest_SignalDirection_value) + proto.RegisterEnum("gnoi.optical.AdjustSpectrumProgress_State", AdjustSpectrumProgress_State_name, AdjustSpectrumProgress_State_value) + proto.RegisterEnum("gnoi.optical.AdjustSpectrumError_Type", AdjustSpectrumError_Type_name, AdjustSpectrumError_Type_value) + proto.RegisterType((*AdjustSpectrumRequest)(nil), "gnoi.optical.AdjustSpectrumRequest") + proto.RegisterType((*AdjustSpectrumProgress)(nil), "gnoi.optical.AdjustSpectrumProgress") + proto.RegisterType((*AdjustSpectrumError)(nil), "gnoi.optical.AdjustSpectrumError") + proto.RegisterType((*AdjustSpectrumResponse)(nil), "gnoi.optical.AdjustSpectrumResponse") + proto.RegisterType((*CancelAdjustSpectrumResponse)(nil), "gnoi.optical.CancelAdjustSpectrumResponse") +} + +func init() { + proto.RegisterFile("wavelength_router/wavelength_router.proto", fileDescriptor_cb8b6c17dc3d7490) +} + +var fileDescriptor_cb8b6c17dc3d7490 = []byte{ + // 544 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0x5d, 0x6e, 0xd3, 0x40, + 0x10, 0xc7, 0xed, 0xa8, 0x69, 0x93, 0x49, 0x49, 0xcc, 0xf6, 0x43, 0x55, 0x85, 0x50, 0x31, 0x15, + 0x2a, 0x08, 0x6d, 0x42, 0xfa, 0x04, 0x42, 0x88, 0x7c, 0xb8, 0xc4, 0xa2, 0x38, 0x66, 0x6d, 0x2b, + 0xe2, 0x29, 0x72, 0x9d, 0xc5, 0x31, 0x4a, 0xbc, 0x66, 0xbd, 0x01, 0xf5, 0x0c, 0x1c, 0x83, 0x07, + 0xee, 0xc3, 0x01, 0xb8, 0x02, 0x57, 0x40, 0xfe, 0x68, 0x43, 0xda, 0x28, 0xcd, 0x8b, 0xa5, 0x1d, + 0xcf, 0x7f, 0xe7, 0x37, 0xff, 0x9d, 0x81, 0xa7, 0xdf, 0xdd, 0x6f, 0x74, 0x42, 0x43, 0x5f, 0x8c, + 0x87, 0x9c, 0xcd, 0x04, 0xe5, 0xf5, 0x5b, 0x11, 0x1c, 0x71, 0x26, 0x18, 0xda, 0xf6, 0x43, 0x16, + 0x60, 0x16, 0x89, 0xc0, 0x73, 0x27, 0x87, 0xcf, 0xfd, 0x40, 0x8c, 0x67, 0x17, 0xd8, 0x63, 0xd3, + 0x3a, 0x8b, 0x68, 0xe8, 0xb1, 0xf0, 0x73, 0xe0, 0xd7, 0x93, 0x9c, 0xba, 0xb8, 0x8c, 0x68, 0x9c, + 0x7d, 0x33, 0xad, 0xfa, 0x57, 0x86, 0xbd, 0xd6, 0xe8, 0xcb, 0x2c, 0x16, 0x56, 0x44, 0x3d, 0xc1, + 0x67, 0x53, 0x42, 0xbf, 0xce, 0x68, 0x2c, 0x10, 0x86, 0xb2, 0xc7, 0xa6, 0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ea, 0xc4, 0x4a, 0x04, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -312,12 +430,13 @@ var _ grpc.ClientConn // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion3 - -// Client API for WavelengthRouter service +const _ = grpc.SupportPackageIsVersion4 +// WavelengthRouterClient is the client API for WavelengthRouter service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type WavelengthRouterClient interface { - // AdjustPSD performs a power spectral density (PSD) adjustment on an optical + // AdjustSpectrum performs a spectrum power adjustment on an optical // DWDM line system port. // // This RPC's initial message triggers adjustments. The target should validate @@ -328,13 +447,13 @@ type WavelengthRouterClient interface { // the initiating client. A client that becomes disconnected during an // operation can reconnect, requesting the same operation, and receive status // updates this way. There is no means by which an adjustment that has been - // triggered by a client can be cancelled unless the CancelAdjustPSD RPC is - // used. - AdjustPSD(ctx context.Context, in *AdjustPSDRequest, opts ...grpc.CallOption) (WavelengthRouter_AdjustPSDClient, error) - // CancelAdjustPSD cancels an in-progress AdjustPSD request. If an + // triggered by a client can be cancelled unless the CancelAdjustSpectrum + // RPC is used. + AdjustSpectrum(ctx context.Context, in *AdjustSpectrumRequest, opts ...grpc.CallOption) (WavelengthRouter_AdjustSpectrumClient, error) + // CancelAdjustSpectrum cancels an in-progress AdjustSpectrum request. If an // adjustment is not being performed for the provided request, then the RPC // should return successfully. - CancelAdjustPSD(ctx context.Context, in *AdjustPSDRequest, opts ...grpc.CallOption) (*CancelAdjustPSDResponse, error) + CancelAdjustSpectrum(ctx context.Context, in *AdjustSpectrumRequest, opts ...grpc.CallOption) (*CancelAdjustSpectrumResponse, error) } type wavelengthRouterClient struct { @@ -345,12 +464,12 @@ func NewWavelengthRouterClient(cc *grpc.ClientConn) WavelengthRouterClient { return &wavelengthRouterClient{cc} } -func (c *wavelengthRouterClient) AdjustPSD(ctx context.Context, in *AdjustPSDRequest, opts ...grpc.CallOption) (WavelengthRouter_AdjustPSDClient, error) { - stream, err := grpc.NewClientStream(ctx, &_WavelengthRouter_serviceDesc.Streams[0], c.cc, "/gnoi.optical.WavelengthRouter/AdjustPSD", opts...) +func (c *wavelengthRouterClient) AdjustSpectrum(ctx context.Context, in *AdjustSpectrumRequest, opts ...grpc.CallOption) (WavelengthRouter_AdjustSpectrumClient, error) { + stream, err := c.cc.NewStream(ctx, &_WavelengthRouter_serviceDesc.Streams[0], "/gnoi.optical.WavelengthRouter/AdjustSpectrum", opts...) if err != nil { return nil, err } - x := &wavelengthRouterAdjustPSDClient{stream} + x := &wavelengthRouterAdjustSpectrumClient{stream} if err := x.ClientStream.SendMsg(in); err != nil { return nil, err } @@ -360,36 +479,35 @@ func (c *wavelengthRouterClient) AdjustPSD(ctx context.Context, in *AdjustPSDReq return x, nil } -type WavelengthRouter_AdjustPSDClient interface { - Recv() (*AdjustPSDResponse, error) +type WavelengthRouter_AdjustSpectrumClient interface { + Recv() (*AdjustSpectrumResponse, error) grpc.ClientStream } -type wavelengthRouterAdjustPSDClient struct { +type wavelengthRouterAdjustSpectrumClient struct { grpc.ClientStream } -func (x *wavelengthRouterAdjustPSDClient) Recv() (*AdjustPSDResponse, error) { - m := new(AdjustPSDResponse) +func (x *wavelengthRouterAdjustSpectrumClient) Recv() (*AdjustSpectrumResponse, error) { + m := new(AdjustSpectrumResponse) if err := x.ClientStream.RecvMsg(m); err != nil { return nil, err } return m, nil } -func (c *wavelengthRouterClient) CancelAdjustPSD(ctx context.Context, in *AdjustPSDRequest, opts ...grpc.CallOption) (*CancelAdjustPSDResponse, error) { - out := new(CancelAdjustPSDResponse) - err := grpc.Invoke(ctx, "/gnoi.optical.WavelengthRouter/CancelAdjustPSD", in, out, c.cc, opts...) +func (c *wavelengthRouterClient) CancelAdjustSpectrum(ctx context.Context, in *AdjustSpectrumRequest, opts ...grpc.CallOption) (*CancelAdjustSpectrumResponse, error) { + out := new(CancelAdjustSpectrumResponse) + err := c.cc.Invoke(ctx, "/gnoi.optical.WavelengthRouter/CancelAdjustSpectrum", in, out, opts...) if err != nil { return nil, err } return out, nil } -// Server API for WavelengthRouter service - +// WavelengthRouterServer is the server API for WavelengthRouter service. type WavelengthRouterServer interface { - // AdjustPSD performs a power spectral density (PSD) adjustment on an optical + // AdjustSpectrum performs a spectrum power adjustment on an optical // DWDM line system port. // // This RPC's initial message triggers adjustments. The target should validate @@ -400,54 +518,65 @@ type WavelengthRouterServer interface { // the initiating client. A client that becomes disconnected during an // operation can reconnect, requesting the same operation, and receive status // updates this way. There is no means by which an adjustment that has been - // triggered by a client can be cancelled unless the CancelAdjustPSD RPC is - // used. - AdjustPSD(*AdjustPSDRequest, WavelengthRouter_AdjustPSDServer) error - // CancelAdjustPSD cancels an in-progress AdjustPSD request. If an + // triggered by a client can be cancelled unless the CancelAdjustSpectrum + // RPC is used. + AdjustSpectrum(*AdjustSpectrumRequest, WavelengthRouter_AdjustSpectrumServer) error + // CancelAdjustSpectrum cancels an in-progress AdjustSpectrum request. If an // adjustment is not being performed for the provided request, then the RPC // should return successfully. - CancelAdjustPSD(context.Context, *AdjustPSDRequest) (*CancelAdjustPSDResponse, error) + CancelAdjustSpectrum(context.Context, *AdjustSpectrumRequest) (*CancelAdjustSpectrumResponse, error) +} + +// UnimplementedWavelengthRouterServer can be embedded to have forward compatible implementations. +type UnimplementedWavelengthRouterServer struct { +} + +func (*UnimplementedWavelengthRouterServer) AdjustSpectrum(req *AdjustSpectrumRequest, srv WavelengthRouter_AdjustSpectrumServer) error { + return status.Errorf(codes.Unimplemented, "method AdjustSpectrum not implemented") +} +func (*UnimplementedWavelengthRouterServer) CancelAdjustSpectrum(ctx context.Context, req *AdjustSpectrumRequest) (*CancelAdjustSpectrumResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CancelAdjustSpectrum not implemented") } func RegisterWavelengthRouterServer(s *grpc.Server, srv WavelengthRouterServer) { s.RegisterService(&_WavelengthRouter_serviceDesc, srv) } -func _WavelengthRouter_AdjustPSD_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(AdjustPSDRequest) +func _WavelengthRouter_AdjustSpectrum_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(AdjustSpectrumRequest) if err := stream.RecvMsg(m); err != nil { return err } - return srv.(WavelengthRouterServer).AdjustPSD(m, &wavelengthRouterAdjustPSDServer{stream}) + return srv.(WavelengthRouterServer).AdjustSpectrum(m, &wavelengthRouterAdjustSpectrumServer{stream}) } -type WavelengthRouter_AdjustPSDServer interface { - Send(*AdjustPSDResponse) error +type WavelengthRouter_AdjustSpectrumServer interface { + Send(*AdjustSpectrumResponse) error grpc.ServerStream } -type wavelengthRouterAdjustPSDServer struct { +type wavelengthRouterAdjustSpectrumServer struct { grpc.ServerStream } -func (x *wavelengthRouterAdjustPSDServer) Send(m *AdjustPSDResponse) error { +func (x *wavelengthRouterAdjustSpectrumServer) Send(m *AdjustSpectrumResponse) error { return x.ServerStream.SendMsg(m) } -func _WavelengthRouter_CancelAdjustPSD_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(AdjustPSDRequest) +func _WavelengthRouter_CancelAdjustSpectrum_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AdjustSpectrumRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(WavelengthRouterServer).CancelAdjustPSD(ctx, in) + return srv.(WavelengthRouterServer).CancelAdjustSpectrum(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/gnoi.optical.WavelengthRouter/CancelAdjustPSD", + FullMethod: "/gnoi.optical.WavelengthRouter/CancelAdjustSpectrum", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(WavelengthRouterServer).CancelAdjustPSD(ctx, req.(*AdjustPSDRequest)) + return srv.(WavelengthRouterServer).CancelAdjustSpectrum(ctx, req.(*AdjustSpectrumRequest)) } return interceptor(ctx, in, info, handler) } @@ -457,56 +586,16 @@ var _WavelengthRouter_serviceDesc = grpc.ServiceDesc{ HandlerType: (*WavelengthRouterServer)(nil), Methods: []grpc.MethodDesc{ { - MethodName: "CancelAdjustPSD", - Handler: _WavelengthRouter_CancelAdjustPSD_Handler, + MethodName: "CancelAdjustSpectrum", + Handler: _WavelengthRouter_CancelAdjustSpectrum_Handler, }, }, Streams: []grpc.StreamDesc{ { - StreamName: "AdjustPSD", - Handler: _WavelengthRouter_AdjustPSD_Handler, + StreamName: "AdjustSpectrum", + Handler: _WavelengthRouter_AdjustSpectrum_Handler, ServerStreams: true, }, }, - Metadata: fileDescriptor0, -} - -func init() { proto.RegisterFile("wavelength_router/wavelength_router.proto", fileDescriptor0) } - -var fileDescriptor0 = []byte{ - // 537 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x84, 0x93, 0xdb, 0x6e, 0xd3, 0x40, - 0x10, 0x86, 0xed, 0xa8, 0x69, 0x93, 0x49, 0x49, 0xdc, 0xe5, 0x54, 0x2a, 0x44, 0x8b, 0x25, 0xa4, - 0x22, 0xa1, 0x4d, 0x08, 0x70, 0xc5, 0x41, 0xca, 0xc1, 0x25, 0x16, 0xc1, 0xb1, 0xd6, 0xb6, 0x22, - 0xb8, 0x89, 0x5c, 0x67, 0x71, 0x8c, 0xd2, 0x5d, 0xb3, 0xde, 0x80, 0x7a, 0xc9, 0x3b, 0x70, 0xcb, - 0xbb, 0xf0, 0x0c, 0xbc, 0x03, 0xef, 0x81, 0x7c, 0x68, 0x52, 0xa5, 0x4a, 0x7b, 0x63, 0xc9, 0xb3, - 0xff, 0xcc, 0x7c, 0xf3, 0x6b, 0x06, 0x9e, 0xfe, 0xf0, 0xbf, 0xd3, 0x39, 0x65, 0xa1, 0x9c, 0x4d, - 0x04, 0x5f, 0x48, 0x2a, 0x9a, 0x57, 0x22, 0x38,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 0xed, 0x3f, 0x2a, 0x68, 0xe3, 0xe5, 0x55, 0x90, 0xec, 0x28, 0x90, 0x0d, 0xd5, - 0xa5, 0x12, 0x3d, 0xba, 0x7e, 0x0f, 0x0f, 0x0e, 0x37, 0xbe, 0x17, 0xdd, 0x95, 0x96, 0x8a, 0x3e, - 0x43, 0x63, 0x8d, 0xe0, 0xc6, 0xba, 0x6b, 0xab, 0xb4, 0x61, 0x00, 0x5d, 0xe9, 0x56, 0xfe, 0xbe, - 0x2b, 0xb7, 0xf0, 0x73, 0xdc, 0x3a, 0xdd, 0xce, 0x2e, 0xf2, 0xc5, 0xff, 0x00, 0x00, 0x00, 0xff, - 0xff, 0xa0, 0xb1, 0x54, 0x93, 0xfa, 0x03, 0x00, 0x00, + Metadata: "wavelength_router/wavelength_router.proto", } diff --git a/wavelength_router/wavelength_router.proto b/wavelength_router/wavelength_router.proto index 63c68f71..2140a130 100644 --- a/wavelength_router/wavelength_router.proto +++ b/wavelength_router/wavelength_router.proto @@ -23,7 +23,7 @@ import "github.com/openconfig/gnoi/types/types.proto"; option (types.gnoi_version) = "0.1.0"; service WavelengthRouter { - // AdjustPSD performs a power spectral density (PSD) adjustment on an optical + // AdjustSpectrum performs a spectrum power adjustment on an optical // DWDM line system port. // // This RPC's initial message triggers adjustments. The target should validate @@ -34,17 +34,17 @@ service WavelengthRouter { // the initiating client. A client that becomes disconnected during an // operation can reconnect, requesting the same operation, and receive status // updates this way. There is no means by which an adjustment that has been - // triggered by a client can be cancelled unless the CancelAdjustPSD RPC is - // used. - rpc AdjustPSD(AdjustPSDRequest) returns (stream AdjustPSDResponse) {} + // triggered by a client can be cancelled unless the CancelAdjustSpectrum + // RPC is used. + rpc AdjustSpectrum(AdjustSpectrumRequest) returns (stream AdjustSpectrumResponse) {} - // CancelAdjustPSD cancels an in-progress AdjustPSD request. If an + // CancelAdjustSpectrum cancels an in-progress AdjustSpectrum request. If an // adjustment is not being performed for the provided request, then the RPC // should return successfully. - rpc CancelAdjustPSD(AdjustPSDRequest) returns (CancelAdjustPSDResponse) {} + rpc CancelAdjustSpectrum(AdjustSpectrumRequest) returns (CancelAdjustSpectrumResponse) {} } -message AdjustPSDRequest { +message AdjustSpectrumRequest { // Absolute path to the /components/component list member in the OpenConfig // model corresponding to the port to perform the adjustment for. // (e.g., /components/component[name=amp-1-1]) @@ -61,18 +61,18 @@ message AdjustPSDRequest { SignalDirection direction = 2; } -message AdjustPSDProgress { +message AdjustSpectrumProgress { enum State { UNKNOWN = 0; - RUNNING = 1; // The PSD adjustment is running. - COMPLETE = 2; // The PSD adjustment completed successfully. + RUNNING = 1; // The spectrum adjustment is running. + COMPLETE = 2; // The spectrum adjustment completed successfully. } // The state of the OTDR trace requested. Note that this does not include // error states as these should be returned as a gRPC error. State state = 1; } -message AdjustPSDError { +message AdjustSpectrumError { enum Type { // An unspecified error. Must use the detail value to describe the issue. UNSPECIFIED = 0; @@ -87,17 +87,17 @@ message AdjustPSDError { string detail = 2; } -// AdjustPSDResponse describes the possible response messages that will be +// AdjustSpectrumResponse describes the possible response messages that will be // streamed after the RPC is initiated. While the OTDR is running, // "progress" messages should be sent at a regular interval. When the // adjustment is completed, an "error" message should be streamed if an // error is encountered or the RPC should be terminated on success. -message AdjustPSDResponse { +message AdjustSpectrumResponse { oneof response { - AdjustPSDProgress progress = 1; - AdjustPSDError error = 2; + AdjustSpectrumProgress progress = 1; + AdjustSpectrumError error = 2; } } -message CancelAdjustPSDResponse {} +message CancelAdjustSpectrumResponse {} From 0f31bd880291285c8830c550fcdc46051f052815 Mon Sep 17 00:00:00 2001 From: Eric Breverman Date: Tue, 26 Nov 2019 10:26:42 -0800 Subject: [PATCH 058/238] update version --- wavelength_router/wavelength_router.pb.go | 68 +++++++++++------------ wavelength_router/wavelength_router.proto | 2 +- 2 files changed, 35 insertions(+), 35 deletions(-) diff --git a/wavelength_router/wavelength_router.pb.go b/wavelength_router/wavelength_router.pb.go index 61ddf4a9..f5844eca 100644 --- a/wavelength_router/wavelength_router.pb.go +++ b/wavelength_router/wavelength_router.pb.go @@ -387,41 +387,41 @@ func init() { } var fileDescriptor_cb8b6c17dc3d7490 = []byte{ - // 544 bytes of a gzipped FileDescriptorProto + // 543 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0x5d, 0x6e, 0xd3, 0x40, - 0x10, 0xc7, 0xed, 0xa8, 0x69, 0x93, 0x49, 0x49, 0xcc, 0xf6, 0x43, 0x55, 0x85, 0x50, 0x31, 0x15, - 0x2a, 0x08, 0x6d, 0x42, 0xfa, 0x04, 0x42, 0x88, 0x7c, 0xb8, 0xc4, 0xa2, 0x38, 0x66, 0x6d, 0x2b, - 0xe2, 0x29, 0x72, 0x9d, 0xc5, 0x31, 0x4a, 0xbc, 0x66, 0xbd, 0x01, 0xf5, 0x0c, 0x1c, 0x83, 0x07, - 0xee, 0xc3, 0x01, 0xb8, 0x02, 0x57, 0x40, 0xfe, 0x68, 0x43, 0xda, 0x28, 0xcd, 0x8b, 0xa5, 0x1d, - 0xcf, 0x7f, 0xe7, 0x37, 0xff, 0x9d, 0x81, 0xa7, 0xdf, 0xdd, 0x6f, 0x74, 0x42, 0x43, 0x5f, 0x8c, - 0x87, 0x9c, 0xcd, 0x04, 0xe5, 0xf5, 0x5b, 0x11, 0x1c, 0x71, 0x26, 0x18, 0xda, 0xf6, 0x43, 0x16, - 0x60, 0x16, 0x89, 0xc0, 0x73, 0x27, 0x87, 0xcf, 0xfd, 0x40, 0x8c, 0x67, 0x17, 0xd8, 0x63, 0xd3, - 0x3a, 0x8b, 0x68, 0xe8, 0xb1, 0xf0, 0x73, 0xe0, 0xd7, 0x93, 0x9c, 0xba, 0xb8, 0x8c, 0x68, 0x9c, - 0x7d, 0x33, 0xad, 0xfa, 0x57, 0x86, 0xbd, 0xd6, 0xe8, 0xcb, 0x2c, 0x16, 0x56, 0x44, 0x3d, 0xc1, - 0x67, 0x53, 0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xf8, 0xe9, 0xbf, 0x00, 0x00, 0x00, 0xff, 0xff, 0xd3, 0x44, 0xea, 0xc4, 0x4a, 0x04, 0x00, 0x00, + 0x10, 0xc7, 0xed, 0xaa, 0x69, 0x93, 0x49, 0x49, 0xcc, 0xf6, 0x43, 0x55, 0x85, 0x50, 0x31, 0x15, + 0x2a, 0x08, 0x6d, 0x22, 0xf7, 0x09, 0x84, 0x10, 0xf9, 0x70, 0x89, 0x45, 0x71, 0xcc, 0xda, 0x56, + 0xc4, 0x53, 0xe4, 0x3a, 0x8b, 0x63, 0x94, 0x78, 0xcd, 0x7a, 0x03, 0xea, 0x19, 0x38, 0x06, 0x0f, + 0xdc, 0x87, 0x03, 0x70, 0x05, 0xae, 0x80, 0xfc, 0xd1, 0x86, 0xb4, 0x51, 0xc8, 0x8b, 0xa5, 0x1d, + 0xcf, 0x7f, 0xe7, 0x37, 0xff, 0x9d, 0x81, 0xa7, 0xdf, 0xbc, 0xaf, 0x74, 0x42, 0xa3, 0x40, 0x8c, + 0x87, 0x9c, 0xcd, 0x04, 0xe5, 0x8d, 0x3b, 0x11, 0x1c, 0x73, 0x26, 0x18, 0xda, 0x09, 0x22, 0x16, + 0x62, 0x16, 0x8b, 0xd0, 0xf7, 0x26, 0x47, 0xcf, 0x83, 0x50, 0x8c, 0x67, 0x97, 0xd8, 0x67, 0xd3, + 0x06, 0x8b, 0x69, 0xe4, 0xb3, 0xe8, 0x53, 0x18, 0x34, 0xd2, 0x9c, 0x86, 0xb8, 0x8a, 0x69, 0x92, + 0x7f, 0x73, 0xad, 0xfa, 0x47, 0x86, 0xfd, 0xd6, 0xe8, 0xf3, 0x2c, 0x11, 0x76, 0x4c, 0x7d, 0xc1, + 0x67, 0x53, 0x42, 0xbf, 0xcc, 0x68, 0x22, 0x10, 0x86, 0x8a, 0xcf, 0xa6, 0x31, 0x8b, 0x68, 0x24, + 0x0e, 0xe5, 0x63, 0xf9, 0xb4, 0xaa, 0x29, 0x38, 0xab, 0x94, 0x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33, 0x54, 0x48, 0x71, 0x52, 0x5f, 0xc1, 0x66, 0x9a, 0x85, 0xea, 0x50, 0x75, 0x4d, 0xdb, 0xd2, + 0x3b, 0xc6, 0xb9, 0xa1, 0x77, 0x15, 0x09, 0xdd, 0x83, 0x8a, 0xd5, 0x27, 0xce, 0xb0, 0xed, 0xda, + 0x1f, 0x73, 0xdf, 0x7a, 0x2d, 0xd2, 0x1d, 0xb4, 0x88, 0x3e, 0x3c, 0x6f, 0x19, 0x17, 0x2e, 0x49, + 0x49, 0x7f, 0xdc, 0xf1, 0x8d, 0xd0, 0x24, 0x66, 0x51, 0x42, 0x51, 0x1b, 0xca, 0x71, 0x61, 0x47, + 0x31, 0x29, 0x27, 0xeb, 0x58, 0xd7, 0x93, 0xc8, 0x8d, 0x0e, 0xbd, 0x80, 0x12, 0x4d, 0x1b, 0xc9, + 0x98, 0xab, 0xda, 0xa3, 0xff, 0x76, 0xdc, 0x93, 0x48, 0xae, 0x68, 0x03, 0x94, 0x79, 0x81, 0xa2, + 0x3e, 0x84, 0x07, 0x1d, 0x2f, 0xf2, 0xe9, 0x64, 0x39, 0xaa, 0xf6, 0x5b, 0x06, 0x65, 0x70, 0xb3, + 0x47, 0x24, 0x5b, 0x23, 0x34, 0x84, 0xda, 0x62, 0x3a, 0x7a, 0xbc, 0xc6, 0xe4, 0x1e, 0x9d, 0xac, + 0x4e, 0x2a, 0x88, 0xa4, 0xa6, 0x8c, 0x42, 0xd8, 0x5b, 0x46, 0xb5, 0x5e, 0x99, 0x5b, 0x63, 0xb8, + 0xaa, 0x3d, 0x55, 0x6a, 0x97, 0x7f, 0xbd, 0x2e, 0x35, 0xb1, 0x86, 0x9b, 0x97, 0x5b, 0xd9, 0x86, + 0x9f, 0xfd, 0x0d, 0x00, 0x00, 0xff, 0xff, 0xd2, 0x22, 0x08, 0x5d, 0x4a, 0x04, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. diff --git a/wavelength_router/wavelength_router.proto b/wavelength_router/wavelength_router.proto index 2140a130..4426abf6 100644 --- a/wavelength_router/wavelength_router.proto +++ b/wavelength_router/wavelength_router.proto @@ -20,7 +20,7 @@ package gnoi.optical; import "github.com/openconfig/gnoi/types/types.proto"; -option (types.gnoi_version) = "0.1.0"; +option (types.gnoi_version) = "0.2.0"; service WavelengthRouter { // AdjustSpectrum performs a spectrum power adjustment on an optical From 4fdd4e5bb77335151db369ee2113edbf0b3778e0 Mon Sep 17 00:00:00 2001 From: Eric Breverman Date: Tue, 3 Dec 2019 10:54:31 -0800 Subject: [PATCH 059/238] mark old RPCs deprecated instead of deleting --- wavelength_router/wavelength_router.pb.go | 596 ++++++++++++++++++++-- wavelength_router/wavelength_router.proto | 83 +++ 2 files changed, 635 insertions(+), 44 deletions(-) diff --git a/wavelength_router/wavelength_router.pb.go b/wavelength_router/wavelength_router.pb.go index f5844eca..0ee7407b 100644 --- a/wavelength_router/wavelength_router.pb.go +++ b/wavelength_router/wavelength_router.pb.go @@ -25,6 +25,95 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +type AdjustPSDRequest_SignalDirection int32 + +const ( + AdjustPSDRequest_DIRECTION_UNKNOWN AdjustPSDRequest_SignalDirection = 0 + AdjustPSDRequest_DIRECTION_INPUT AdjustPSDRequest_SignalDirection = 1 + AdjustPSDRequest_DIRECTION_OUTPUT AdjustPSDRequest_SignalDirection = 2 +) + +var AdjustPSDRequest_SignalDirection_name = map[int32]string{ + 0: "DIRECTION_UNKNOWN", + 1: "DIRECTION_INPUT", + 2: "DIRECTION_OUTPUT", +} + +var AdjustPSDRequest_SignalDirection_value = map[string]int32{ + "DIRECTION_UNKNOWN": 0, + "DIRECTION_INPUT": 1, + "DIRECTION_OUTPUT": 2, +} + +func (x AdjustPSDRequest_SignalDirection) String() string { + return proto.EnumName(AdjustPSDRequest_SignalDirection_name, int32(x)) +} + +func (AdjustPSDRequest_SignalDirection) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_cb8b6c17dc3d7490, []int{0, 0} +} + +type AdjustPSDProgress_State int32 + +const ( + AdjustPSDProgress_UNKNOWN AdjustPSDProgress_State = 0 + AdjustPSDProgress_RUNNING AdjustPSDProgress_State = 1 + AdjustPSDProgress_COMPLETE AdjustPSDProgress_State = 2 +) + +var AdjustPSDProgress_State_name = map[int32]string{ + 0: "UNKNOWN", + 1: "RUNNING", + 2: "COMPLETE", +} + +var AdjustPSDProgress_State_value = map[string]int32{ + "UNKNOWN": 0, + "RUNNING": 1, + "COMPLETE": 2, +} + +func (x AdjustPSDProgress_State) String() string { + return proto.EnumName(AdjustPSDProgress_State_name, int32(x)) +} + +func (AdjustPSDProgress_State) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_cb8b6c17dc3d7490, []int{1, 0} +} + +type AdjustPSDError_Type int32 + +const ( + // An unspecified error. Must use the detail value to describe the issue. + AdjustPSDError_UNSPECIFIED AdjustPSDError_Type = 0 + // An adjustment was requested for a port that is busy (e.g., requesting + // input adjustment for a port that is currently running an output + // adjustment) + AdjustPSDError_PORT_BUSY AdjustPSDError_Type = 1 + // The hardware has failed and cannot complete an adjustment. + AdjustPSDError_HARDWARE_FAILURE AdjustPSDError_Type = 2 +) + +var AdjustPSDError_Type_name = map[int32]string{ + 0: "UNSPECIFIED", + 1: "PORT_BUSY", + 2: "HARDWARE_FAILURE", +} + +var AdjustPSDError_Type_value = map[string]int32{ + "UNSPECIFIED": 0, + "PORT_BUSY": 1, + "HARDWARE_FAILURE": 2, +} + +func (x AdjustPSDError_Type) String() string { + return proto.EnumName(AdjustPSDError_Type_name, int32(x)) +} + +func (AdjustPSDError_Type) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_cb8b6c17dc3d7490, []int{2, 0} +} + type AdjustSpectrumRequest_SignalDirection int32 const ( @@ -50,7 +139,7 @@ func (x AdjustSpectrumRequest_SignalDirection) String() string { } func (AdjustSpectrumRequest_SignalDirection) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_cb8b6c17dc3d7490, []int{0, 0} + return fileDescriptor_cb8b6c17dc3d7490, []int{5, 0} } type AdjustSpectrumProgress_State int32 @@ -78,7 +167,7 @@ func (x AdjustSpectrumProgress_State) String() string { } func (AdjustSpectrumProgress_State) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_cb8b6c17dc3d7490, []int{1, 0} + return fileDescriptor_cb8b6c17dc3d7490, []int{6, 0} } type AdjustSpectrumError_Type int32 @@ -111,9 +200,266 @@ func (x AdjustSpectrumError_Type) String() string { } func (AdjustSpectrumError_Type) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_cb8b6c17dc3d7490, []int{2, 0} + return fileDescriptor_cb8b6c17dc3d7490, []int{7, 0} +} + +type AdjustPSDRequest struct { + // Absolute path to the /components/component list member in the OpenConfig + // model corresponding to the port to perform the adjustment for. + // (e.g., /components/component[name=amp-1-1]) + Component *types.Path `protobuf:"bytes,1,opt,name=component,proto3" json:"component,omitempty"` + // Describes the signal direction that should be adjusted relative to the + // device. For example, "input" would be the signal entering into the device + // from the far end device. + Direction AdjustPSDRequest_SignalDirection `protobuf:"varint,2,opt,name=direction,proto3,enum=gnoi.optical.AdjustPSDRequest_SignalDirection" json:"direction,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *AdjustPSDRequest) Reset() { *m = AdjustPSDRequest{} } +func (m *AdjustPSDRequest) String() string { return proto.CompactTextString(m) } +func (*AdjustPSDRequest) ProtoMessage() {} +func (*AdjustPSDRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_cb8b6c17dc3d7490, []int{0} +} + +func (m *AdjustPSDRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AdjustPSDRequest.Unmarshal(m, b) +} +func (m *AdjustPSDRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AdjustPSDRequest.Marshal(b, m, deterministic) +} +func (m *AdjustPSDRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_AdjustPSDRequest.Merge(m, src) +} +func (m *AdjustPSDRequest) XXX_Size() int { + return xxx_messageInfo_AdjustPSDRequest.Size(m) +} +func (m *AdjustPSDRequest) XXX_DiscardUnknown() { + xxx_messageInfo_AdjustPSDRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_AdjustPSDRequest proto.InternalMessageInfo + +func (m *AdjustPSDRequest) GetComponent() *types.Path { + if m != nil { + return m.Component + } + return nil +} + +func (m *AdjustPSDRequest) GetDirection() AdjustPSDRequest_SignalDirection { + if m != nil { + return m.Direction + } + return AdjustPSDRequest_DIRECTION_UNKNOWN +} + +type AdjustPSDProgress struct { + // The state of the OTDR trace requested. Note that this does not include + // error states as these should be returned as a gRPC error. + State AdjustPSDProgress_State `protobuf:"varint,1,opt,name=state,proto3,enum=gnoi.optical.AdjustPSDProgress_State" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *AdjustPSDProgress) Reset() { *m = AdjustPSDProgress{} } +func (m *AdjustPSDProgress) String() string { return proto.CompactTextString(m) } +func (*AdjustPSDProgress) ProtoMessage() {} +func (*AdjustPSDProgress) Descriptor() ([]byte, []int) { + return fileDescriptor_cb8b6c17dc3d7490, []int{1} +} + +func (m *AdjustPSDProgress) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AdjustPSDProgress.Unmarshal(m, b) +} +func (m *AdjustPSDProgress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AdjustPSDProgress.Marshal(b, m, deterministic) +} +func (m *AdjustPSDProgress) XXX_Merge(src proto.Message) { + xxx_messageInfo_AdjustPSDProgress.Merge(m, src) +} +func (m *AdjustPSDProgress) XXX_Size() int { + return xxx_messageInfo_AdjustPSDProgress.Size(m) +} +func (m *AdjustPSDProgress) XXX_DiscardUnknown() { + xxx_messageInfo_AdjustPSDProgress.DiscardUnknown(m) +} + +var xxx_messageInfo_AdjustPSDProgress proto.InternalMessageInfo + +func (m *AdjustPSDProgress) GetState() AdjustPSDProgress_State { + if m != nil { + return m.State + } + return AdjustPSDProgress_UNKNOWN +} + +type AdjustPSDError struct { + Type AdjustPSDError_Type `protobuf:"varint,1,opt,name=type,proto3,enum=gnoi.optical.AdjustPSDError_Type" json:"type,omitempty"` + Detail string `protobuf:"bytes,2,opt,name=detail,proto3" json:"detail,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *AdjustPSDError) Reset() { *m = AdjustPSDError{} } +func (m *AdjustPSDError) String() string { return proto.CompactTextString(m) } +func (*AdjustPSDError) ProtoMessage() {} +func (*AdjustPSDError) Descriptor() ([]byte, []int) { + return fileDescriptor_cb8b6c17dc3d7490, []int{2} +} + +func (m *AdjustPSDError) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AdjustPSDError.Unmarshal(m, b) +} +func (m *AdjustPSDError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AdjustPSDError.Marshal(b, m, deterministic) +} +func (m *AdjustPSDError) XXX_Merge(src proto.Message) { + xxx_messageInfo_AdjustPSDError.Merge(m, src) +} +func (m *AdjustPSDError) XXX_Size() int { + return xxx_messageInfo_AdjustPSDError.Size(m) +} +func (m *AdjustPSDError) XXX_DiscardUnknown() { + xxx_messageInfo_AdjustPSDError.DiscardUnknown(m) +} + +var xxx_messageInfo_AdjustPSDError proto.InternalMessageInfo + +func (m *AdjustPSDError) GetType() AdjustPSDError_Type { + if m != nil { + return m.Type + } + return AdjustPSDError_UNSPECIFIED +} + +func (m *AdjustPSDError) GetDetail() string { + if m != nil { + return m.Detail + } + return "" +} + +// AdjustPSDResponse describes the possible response messages that will be +// streamed after the RPC is initiated. While the OTDR is running, +// "progress" messages should be sent at a regular interval. When the +// adjustment is completed, an "error" message should be streamed if an +// error is encountered or the RPC should be terminated on success. +type AdjustPSDResponse struct { + // Types that are valid to be assigned to Response: + // *AdjustPSDResponse_Progress + // *AdjustPSDResponse_Error + Response isAdjustPSDResponse_Response `protobuf_oneof:"response"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *AdjustPSDResponse) Reset() { *m = AdjustPSDResponse{} } +func (m *AdjustPSDResponse) String() string { return proto.CompactTextString(m) } +func (*AdjustPSDResponse) ProtoMessage() {} +func (*AdjustPSDResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_cb8b6c17dc3d7490, []int{3} +} + +func (m *AdjustPSDResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AdjustPSDResponse.Unmarshal(m, b) +} +func (m *AdjustPSDResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AdjustPSDResponse.Marshal(b, m, deterministic) +} +func (m *AdjustPSDResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_AdjustPSDResponse.Merge(m, src) +} +func (m *AdjustPSDResponse) XXX_Size() int { + return xxx_messageInfo_AdjustPSDResponse.Size(m) +} +func (m *AdjustPSDResponse) XXX_DiscardUnknown() { + xxx_messageInfo_AdjustPSDResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_AdjustPSDResponse proto.InternalMessageInfo + +type isAdjustPSDResponse_Response interface { + isAdjustPSDResponse_Response() +} + +type AdjustPSDResponse_Progress struct { + Progress *AdjustPSDProgress `protobuf:"bytes,1,opt,name=progress,proto3,oneof"` +} + +type AdjustPSDResponse_Error struct { + Error *AdjustPSDError `protobuf:"bytes,2,opt,name=error,proto3,oneof"` +} + +func (*AdjustPSDResponse_Progress) isAdjustPSDResponse_Response() {} + +func (*AdjustPSDResponse_Error) isAdjustPSDResponse_Response() {} + +func (m *AdjustPSDResponse) GetResponse() isAdjustPSDResponse_Response { + if m != nil { + return m.Response + } + return nil +} + +func (m *AdjustPSDResponse) GetProgress() *AdjustPSDProgress { + if x, ok := m.GetResponse().(*AdjustPSDResponse_Progress); ok { + return x.Progress + } + return nil } +func (m *AdjustPSDResponse) GetError() *AdjustPSDError { + if x, ok := m.GetResponse().(*AdjustPSDResponse_Error); ok { + return x.Error + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*AdjustPSDResponse) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*AdjustPSDResponse_Progress)(nil), + (*AdjustPSDResponse_Error)(nil), + } +} + +type CancelAdjustPSDResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CancelAdjustPSDResponse) Reset() { *m = CancelAdjustPSDResponse{} } +func (m *CancelAdjustPSDResponse) String() string { return proto.CompactTextString(m) } +func (*CancelAdjustPSDResponse) ProtoMessage() {} +func (*CancelAdjustPSDResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_cb8b6c17dc3d7490, []int{4} +} + +func (m *CancelAdjustPSDResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CancelAdjustPSDResponse.Unmarshal(m, b) +} +func (m *CancelAdjustPSDResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CancelAdjustPSDResponse.Marshal(b, m, deterministic) +} +func (m *CancelAdjustPSDResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_CancelAdjustPSDResponse.Merge(m, src) +} +func (m *CancelAdjustPSDResponse) XXX_Size() int { + return xxx_messageInfo_CancelAdjustPSDResponse.Size(m) +} +func (m *CancelAdjustPSDResponse) XXX_DiscardUnknown() { + xxx_messageInfo_CancelAdjustPSDResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_CancelAdjustPSDResponse proto.InternalMessageInfo + type AdjustSpectrumRequest struct { // Absolute path to the /components/component list member in the OpenConfig // model corresponding to the port to perform the adjustment for. @@ -132,7 +478,7 @@ func (m *AdjustSpectrumRequest) Reset() { *m = AdjustSpectrumRequest{} } func (m *AdjustSpectrumRequest) String() string { return proto.CompactTextString(m) } func (*AdjustSpectrumRequest) ProtoMessage() {} func (*AdjustSpectrumRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_cb8b6c17dc3d7490, []int{0} + return fileDescriptor_cb8b6c17dc3d7490, []int{5} } func (m *AdjustSpectrumRequest) XXX_Unmarshal(b []byte) error { @@ -180,7 +526,7 @@ func (m *AdjustSpectrumProgress) Reset() { *m = AdjustSpectrumProgress{} func (m *AdjustSpectrumProgress) String() string { return proto.CompactTextString(m) } func (*AdjustSpectrumProgress) ProtoMessage() {} func (*AdjustSpectrumProgress) Descriptor() ([]byte, []int) { - return fileDescriptor_cb8b6c17dc3d7490, []int{1} + return fileDescriptor_cb8b6c17dc3d7490, []int{6} } func (m *AdjustSpectrumProgress) XXX_Unmarshal(b []byte) error { @@ -220,7 +566,7 @@ func (m *AdjustSpectrumError) Reset() { *m = AdjustSpectrumError{} } func (m *AdjustSpectrumError) String() string { return proto.CompactTextString(m) } func (*AdjustSpectrumError) ProtoMessage() {} func (*AdjustSpectrumError) Descriptor() ([]byte, []int) { - return fileDescriptor_cb8b6c17dc3d7490, []int{2} + return fileDescriptor_cb8b6c17dc3d7490, []int{7} } func (m *AdjustSpectrumError) XXX_Unmarshal(b []byte) error { @@ -274,7 +620,7 @@ func (m *AdjustSpectrumResponse) Reset() { *m = AdjustSpectrumResponse{} func (m *AdjustSpectrumResponse) String() string { return proto.CompactTextString(m) } func (*AdjustSpectrumResponse) ProtoMessage() {} func (*AdjustSpectrumResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_cb8b6c17dc3d7490, []int{3} + return fileDescriptor_cb8b6c17dc3d7490, []int{8} } func (m *AdjustSpectrumResponse) XXX_Unmarshal(b []byte) error { @@ -350,7 +696,7 @@ func (m *CancelAdjustSpectrumResponse) Reset() { *m = CancelAdjustSpectr func (m *CancelAdjustSpectrumResponse) String() string { return proto.CompactTextString(m) } func (*CancelAdjustSpectrumResponse) ProtoMessage() {} func (*CancelAdjustSpectrumResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_cb8b6c17dc3d7490, []int{4} + return fileDescriptor_cb8b6c17dc3d7490, []int{9} } func (m *CancelAdjustSpectrumResponse) XXX_Unmarshal(b []byte) error { @@ -372,9 +718,17 @@ func (m *CancelAdjustSpectrumResponse) XXX_DiscardUnknown() { var xxx_messageInfo_CancelAdjustSpectrumResponse proto.InternalMessageInfo func init() { + proto.RegisterEnum("gnoi.optical.AdjustPSDRequest_SignalDirection", AdjustPSDRequest_SignalDirection_name, AdjustPSDRequest_SignalDirection_value) + proto.RegisterEnum("gnoi.optical.AdjustPSDProgress_State", AdjustPSDProgress_State_name, AdjustPSDProgress_State_value) + proto.RegisterEnum("gnoi.optical.AdjustPSDError_Type", AdjustPSDError_Type_name, AdjustPSDError_Type_value) proto.RegisterEnum("gnoi.optical.AdjustSpectrumRequest_SignalDirection", AdjustSpectrumRequest_SignalDirection_name, AdjustSpectrumRequest_SignalDirection_value) proto.RegisterEnum("gnoi.optical.AdjustSpectrumProgress_State", AdjustSpectrumProgress_State_name, AdjustSpectrumProgress_State_value) proto.RegisterEnum("gnoi.optical.AdjustSpectrumError_Type", AdjustSpectrumError_Type_name, AdjustSpectrumError_Type_value) + proto.RegisterType((*AdjustPSDRequest)(nil), "gnoi.optical.AdjustPSDRequest") + proto.RegisterType((*AdjustPSDProgress)(nil), "gnoi.optical.AdjustPSDProgress") + proto.RegisterType((*AdjustPSDError)(nil), "gnoi.optical.AdjustPSDError") + proto.RegisterType((*AdjustPSDResponse)(nil), "gnoi.optical.AdjustPSDResponse") + proto.RegisterType((*CancelAdjustPSDResponse)(nil), "gnoi.optical.CancelAdjustPSDResponse") proto.RegisterType((*AdjustSpectrumRequest)(nil), "gnoi.optical.AdjustSpectrumRequest") proto.RegisterType((*AdjustSpectrumProgress)(nil), "gnoi.optical.AdjustSpectrumProgress") proto.RegisterType((*AdjustSpectrumError)(nil), "gnoi.optical.AdjustSpectrumError") @@ -387,41 +741,50 @@ func init() { } var fileDescriptor_cb8b6c17dc3d7490 = []byte{ - // 543 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0x5d, 0x6e, 0xd3, 0x40, - 0x10, 0xc7, 0xed, 0xaa, 0x69, 0x93, 0x49, 0x49, 0xcc, 0xf6, 0x43, 0x55, 0x85, 0x50, 0x31, 0x15, - 0x2a, 0x08, 0x6d, 0x22, 0xf7, 0x09, 0x84, 0x10, 0xf9, 0x70, 0x89, 0x45, 0x71, 0xcc, 0xda, 0x56, - 0xc4, 0x53, 0xe4, 0x3a, 0x8b, 0x63, 0x94, 0x78, 0xcd, 0x7a, 0x03, 0xea, 0x19, 0x38, 0x06, 0x0f, - 0xdc, 0x87, 0x03, 0x70, 0x05, 0xae, 0x80, 0xfc, 0xd1, 0x86, 0xb4, 0x51, 0xc8, 0x8b, 0xa5, 0x1d, - 0xcf, 0x7f, 0xe7, 0x37, 0xff, 0x9d, 0x81, 0xa7, 0xdf, 0xbc, 0xaf, 0x74, 0x42, 0xa3, 0x40, 0x8c, - 0x87, 0x9c, 0xcd, 0x04, 0xe5, 0x8d, 0x3b, 0x11, 0x1c, 0x73, 0x26, 0x18, 0xda, 0x09, 0x22, 0x16, - 0x62, 0x16, 0x8b, 0xd0, 0xf7, 0x26, 0x47, 0xcf, 0x83, 0x50, 0x8c, 0x67, 0x97, 0xd8, 0x67, 0xd3, - 0x06, 0x8b, 0x69, 0xe4, 0xb3, 0xe8, 0x53, 0x18, 0x34, 0xd2, 0x9c, 0x86, 0xb8, 0x8a, 0x69, 0x92, - 0x7f, 0x73, 0xad, 0xfa, 0x47, 0x86, 0xfd, 0xd6, 0xe8, 0xf3, 0x2c, 0x11, 0x76, 0x4c, 0x7d, 0xc1, - 0x67, 0x53, 0x42, 0xbf, 0xcc, 0x68, 0x22, 0x10, 0x86, 0x8a, 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0x22, 0x08, 0x5d, 0x4a, 0x04, 0x00, 0x00, + // 683 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x55, 0x4b, 0x6f, 0xd3, 0x4a, + 0x18, 0xcd, 0xa4, 0x4d, 0x9b, 0x7c, 0xe9, 0x6d, 0xdc, 0xe9, 0xe3, 0xf6, 0x56, 0x55, 0x1f, 0xbe, + 0x05, 0x95, 0x0a, 0x39, 0x51, 0x0a, 0x0b, 0x9e, 0x22, 0xaf, 0x52, 0x8b, 0xe2, 0x98, 0x71, 0xac, + 0x8a, 0x05, 0x8a, 0x5c, 0x77, 0x48, 0x8d, 0x52, 0x8f, 0xb1, 0x27, 0xa0, 0x2e, 0xd9, 0x21, 0xb1, + 0x43, 0x6c, 0x59, 0xb1, 0xe0, 0xff, 0xf0, 0x1f, 0x58, 0xf3, 0x17, 0x90, 0x1f, 0x71, 0x9a, 0xa4, + 0x49, 0x2b, 0x84, 0xba, 0xb1, 0xe4, 0x6f, 0xce, 0x37, 0xe7, 0x7c, 0x47, 0x67, 0x66, 0xe0, 0xd6, + 0x7b, 0xe3, 0x1d, 0x6d, 0x53, 0xbb, 0xc5, 0x4f, 0x9a, 0x2e, 0xeb, 0x70, 0xea, 0xe6, 0x87, 0x2a, + 0x92, 0xe3, 0x32, 0xce, 0xf0, 0x4c, 0xcb, 0x66, 0x96, 0xc4, 0x1c, 0x6e, 0x99, 0x46, 0x7b, 0xe5, + 0x76, 0xcb, 0xe2, 0x27, 0x9d, 0x23, 0xc9, 0x64, 0xa7, 0x79, 0xe6, 0x50, 0xdb, 0x64, 0xf6, 0x6b, + 0xab, 0x95, 0xf7, 0x31, 0x79, 0x7e, 0xe6, 0x50, 0x2f, 0xfc, 0x86, 0xbd, 0xe2, 0x4f, 0x04, 0x42, + 0xe9, 0xf8, 0x4d, 0xc7, 0xe3, 0xaa, 0x56, 0x25, 0xf4, 0x6d, 0x87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f7, 0xfb, 0x62, 0x7d, 0x73, 0x9c, 0x92, 0x6b, 0xca, 0xf6, + 0xb7, 0x21, 0xdf, 0xe2, 0x80, 0x97, 0x87, 0x02, 0xbe, 0x75, 0x15, 0xeb, 0xfa, 0x52, 0x7e, 0xaf, + 0x3f, 0xe5, 0x9b, 0x97, 0x4e, 0x7c, 0x71, 0xd4, 0xd7, 0x60, 0xf5, 0x7c, 0xd4, 0x07, 0xa5, 0x16, + 0x3f, 0x4f, 0x80, 0x70, 0x18, 0xbf, 0x02, 0x24, 0x78, 0x04, 0xb0, 0x06, 0x99, 0xf8, 0x64, 0xe0, + 0xb5, 0xf1, 0xf7, 0xee, 0xca, 0xfa, 0xc8, 0xf5, 0x48, 0xc2, 0xc4, 0xc7, 0x24, 0x2a, 0x20, 0xfc, + 0x0a, 0x72, 0x03, 0x87, 0xee, 0xd2, 0xad, 0x07, 0x6e, 0xcf, 0x51, 0x67, 0xd6, 0x27, 0xc0, 0xcd, + 0xee, 0x4d, 0xd8, 0x1d, 0x11, 0xff, 0x7f, 0x85, 0xd3, 0xb6, 0xb2, 0x35, 0x1e, 0x14, 0x31, 0x24, + 0x0a, 0x08, 0x5b, 0xb0, 0x70, 0x91, 0x93, 0x57, 0xa3, 0xd9, 0x19, 0x3d, 0xc9, 0x30, 0x59, 0x39, + 0xfd, 0xe3, 0x71, 0xaa, 0x20, 0x15, 0xa5, 0xc2, 0xd1, 0x54, 0xf0, 0xa6, 0xee, 0xfe, 0x0e, 0x00, + 0x00, 0xff, 0xff, 0x88, 0xb8, 0xf7, 0xca, 0xbc, 0x07, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -436,6 +799,30 @@ const _ = grpc.SupportPackageIsVersion4 // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type WavelengthRouterClient interface { + // AdjustPSD performs a power spectral density (PSD) adjustment on an optical + // DWDM line system port. + // + // This RPC's initial message triggers adjustments. The target should validate + // the request, and immediately begin the adjustment as long as another + // adjustment is not already running. As this RPC may take multiple minutes, + // the state should be regularly streamed to the client. The operation should + // be completed on the device regardless of the state of the RPC channel to + // the initiating client. A client that becomes disconnected during an + // operation can reconnect, requesting the same operation, and receive status + // updates this way. There is no means by which an adjustment that has been + // triggered by a client can be cancelled unless the CancelAdjustPSD RPC is + // used. + // DEPRECATED, use AdjustSpectrum. + // + // Deprecated: Do not use. + AdjustPSD(ctx context.Context, in *AdjustPSDRequest, opts ...grpc.CallOption) (WavelengthRouter_AdjustPSDClient, error) + // CancelAdjustPSD cancels an in-progress AdjustPSD request. If an + // adjustment is not being performed for the provided request, then the RPC + // should return successfully. + // DEPRECATED, use CancelAdjustSpectrum. + // + // Deprecated: Do not use. + CancelAdjustPSD(ctx context.Context, in *AdjustPSDRequest, opts ...grpc.CallOption) (*CancelAdjustPSDResponse, error) // AdjustSpectrum performs a spectrum power adjustment on an optical // DWDM line system port. // @@ -464,8 +851,51 @@ func NewWavelengthRouterClient(cc *grpc.ClientConn) WavelengthRouterClient { return &wavelengthRouterClient{cc} } +// Deprecated: Do not use. +func (c *wavelengthRouterClient) AdjustPSD(ctx context.Context, in *AdjustPSDRequest, opts ...grpc.CallOption) (WavelengthRouter_AdjustPSDClient, error) { + stream, err := c.cc.NewStream(ctx, &_WavelengthRouter_serviceDesc.Streams[0], "/gnoi.optical.WavelengthRouter/AdjustPSD", opts...) + if err != nil { + return nil, err + } + x := &wavelengthRouterAdjustPSDClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type WavelengthRouter_AdjustPSDClient interface { + Recv() (*AdjustPSDResponse, error) + grpc.ClientStream +} + +type wavelengthRouterAdjustPSDClient struct { + grpc.ClientStream +} + +func (x *wavelengthRouterAdjustPSDClient) Recv() (*AdjustPSDResponse, error) { + m := new(AdjustPSDResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +// Deprecated: Do not use. +func (c *wavelengthRouterClient) CancelAdjustPSD(ctx context.Context, in *AdjustPSDRequest, opts ...grpc.CallOption) (*CancelAdjustPSDResponse, error) { + out := new(CancelAdjustPSDResponse) + err := c.cc.Invoke(ctx, "/gnoi.optical.WavelengthRouter/CancelAdjustPSD", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + func (c *wavelengthRouterClient) AdjustSpectrum(ctx context.Context, in *AdjustSpectrumRequest, opts ...grpc.CallOption) (WavelengthRouter_AdjustSpectrumClient, error) { - stream, err := c.cc.NewStream(ctx, &_WavelengthRouter_serviceDesc.Streams[0], "/gnoi.optical.WavelengthRouter/AdjustSpectrum", opts...) + stream, err := c.cc.NewStream(ctx, &_WavelengthRouter_serviceDesc.Streams[1], "/gnoi.optical.WavelengthRouter/AdjustSpectrum", opts...) if err != nil { return nil, err } @@ -507,6 +937,30 @@ func (c *wavelengthRouterClient) CancelAdjustSpectrum(ctx context.Context, in *A // WavelengthRouterServer is the server API for WavelengthRouter service. type WavelengthRouterServer interface { + // AdjustPSD performs a power spectral density (PSD) adjustment on an optical + // DWDM line system port. + // + // This RPC's initial message triggers adjustments. The target should validate + // the request, and immediately begin the adjustment as long as another + // adjustment is not already running. As this RPC may take multiple minutes, + // the state should be regularly streamed to the client. The operation should + // be completed on the device regardless of the state of the RPC channel to + // the initiating client. A client that becomes disconnected during an + // operation can reconnect, requesting the same operation, and receive status + // updates this way. There is no means by which an adjustment that has been + // triggered by a client can be cancelled unless the CancelAdjustPSD RPC is + // used. + // DEPRECATED, use AdjustSpectrum. + // + // Deprecated: Do not use. + AdjustPSD(*AdjustPSDRequest, WavelengthRouter_AdjustPSDServer) error + // CancelAdjustPSD cancels an in-progress AdjustPSD request. If an + // adjustment is not being performed for the provided request, then the RPC + // should return successfully. + // DEPRECATED, use CancelAdjustSpectrum. + // + // Deprecated: Do not use. + CancelAdjustPSD(context.Context, *AdjustPSDRequest) (*CancelAdjustPSDResponse, error) // AdjustSpectrum performs a spectrum power adjustment on an optical // DWDM line system port. // @@ -531,6 +985,12 @@ type WavelengthRouterServer interface { type UnimplementedWavelengthRouterServer struct { } +func (*UnimplementedWavelengthRouterServer) AdjustPSD(req *AdjustPSDRequest, srv WavelengthRouter_AdjustPSDServer) error { + return status.Errorf(codes.Unimplemented, "method AdjustPSD not implemented") +} +func (*UnimplementedWavelengthRouterServer) CancelAdjustPSD(ctx context.Context, req *AdjustPSDRequest) (*CancelAdjustPSDResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CancelAdjustPSD not implemented") +} func (*UnimplementedWavelengthRouterServer) AdjustSpectrum(req *AdjustSpectrumRequest, srv WavelengthRouter_AdjustSpectrumServer) error { return status.Errorf(codes.Unimplemented, "method AdjustSpectrum not implemented") } @@ -542,6 +1002,45 @@ func RegisterWavelengthRouterServer(s *grpc.Server, srv WavelengthRouterServer) s.RegisterService(&_WavelengthRouter_serviceDesc, srv) } +func _WavelengthRouter_AdjustPSD_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(AdjustPSDRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(WavelengthRouterServer).AdjustPSD(m, &wavelengthRouterAdjustPSDServer{stream}) +} + +type WavelengthRouter_AdjustPSDServer interface { + Send(*AdjustPSDResponse) error + grpc.ServerStream +} + +type wavelengthRouterAdjustPSDServer struct { + grpc.ServerStream +} + +func (x *wavelengthRouterAdjustPSDServer) Send(m *AdjustPSDResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _WavelengthRouter_CancelAdjustPSD_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AdjustPSDRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(WavelengthRouterServer).CancelAdjustPSD(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gnoi.optical.WavelengthRouter/CancelAdjustPSD", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(WavelengthRouterServer).CancelAdjustPSD(ctx, req.(*AdjustPSDRequest)) + } + return interceptor(ctx, in, info, handler) +} + func _WavelengthRouter_AdjustSpectrum_Handler(srv interface{}, stream grpc.ServerStream) error { m := new(AdjustSpectrumRequest) if err := stream.RecvMsg(m); err != nil { @@ -585,12 +1084,21 @@ var _WavelengthRouter_serviceDesc = grpc.ServiceDesc{ ServiceName: "gnoi.optical.WavelengthRouter", HandlerType: (*WavelengthRouterServer)(nil), Methods: []grpc.MethodDesc{ + { + MethodName: "CancelAdjustPSD", + Handler: _WavelengthRouter_CancelAdjustPSD_Handler, + }, { MethodName: "CancelAdjustSpectrum", Handler: _WavelengthRouter_CancelAdjustSpectrum_Handler, }, }, Streams: []grpc.StreamDesc{ + { + StreamName: "AdjustPSD", + Handler: _WavelengthRouter_AdjustPSD_Handler, + ServerStreams: true, + }, { StreamName: "AdjustSpectrum", Handler: _WavelengthRouter_AdjustSpectrum_Handler, diff --git a/wavelength_router/wavelength_router.proto b/wavelength_router/wavelength_router.proto index 4426abf6..6917608d 100644 --- a/wavelength_router/wavelength_router.proto +++ b/wavelength_router/wavelength_router.proto @@ -23,6 +23,32 @@ import "github.com/openconfig/gnoi/types/types.proto"; option (types.gnoi_version) = "0.2.0"; service WavelengthRouter { + // AdjustPSD performs a power spectral density (PSD) adjustment on an optical + // DWDM line system port. + // + // This RPC's initial message triggers adjustments. The target should validate + // the request, and immediately begin the adjustment as long as another + // adjustment is not already running. As this RPC may take multiple minutes, + // the state should be regularly streamed to the client. The operation should + // be completed on the device regardless of the state of the RPC channel to + // the initiating client. A client that becomes disconnected during an + // operation can reconnect, requesting the same operation, and receive status + // updates this way. There is no means by which an adjustment that has been + // triggered by a client can be cancelled unless the CancelAdjustPSD RPC is + // used. + // DEPRECATED, use AdjustSpectrum. + rpc AdjustPSD(AdjustPSDRequest) returns (stream AdjustPSDResponse) { + option deprecated = true; + } + + // CancelAdjustPSD cancels an in-progress AdjustPSD request. If an + // adjustment is not being performed for the provided request, then the RPC + // should return successfully. + // DEPRECATED, use CancelAdjustSpectrum. + rpc CancelAdjustPSD(AdjustPSDRequest) returns (CancelAdjustPSDResponse) { + option deprecated = true; + } + // AdjustSpectrum performs a spectrum power adjustment on an optical // DWDM line system port. // @@ -44,6 +70,63 @@ service WavelengthRouter { rpc CancelAdjustSpectrum(AdjustSpectrumRequest) returns (CancelAdjustSpectrumResponse) {} } +message AdjustPSDRequest { + // Absolute path to the /components/component list member in the OpenConfig + // model corresponding to the port to perform the adjustment for. + // (e.g., /components/component[name=amp-1-1]) + types.Path component = 1; + + enum SignalDirection { + DIRECTION_UNKNOWN = 0; + DIRECTION_INPUT = 1; + DIRECTION_OUTPUT = 2; + } + // Describes the signal direction that should be adjusted relative to the + // device. For example, "input" would be the signal entering into the device + // from the far end device. + SignalDirection direction = 2; +} + +message AdjustPSDProgress { + enum State { + UNKNOWN = 0; + RUNNING = 1; // The PSD adjustment is running. + COMPLETE = 2; // The PSD adjustment completed successfully. + } + // The state of the OTDR trace requested. Note that this does not include + // error states as these should be returned as a gRPC error. + State state = 1; +} + +message AdjustPSDError { + enum Type { + // An unspecified error. Must use the detail value to describe the issue. + UNSPECIFIED = 0; + // An adjustment was requested for a port that is busy (e.g., requesting + // input adjustment for a port that is currently running an output + // adjustment) + PORT_BUSY = 1; + // The hardware has failed and cannot complete an adjustment. + HARDWARE_FAILURE = 2; + } + Type type = 1; + string detail = 2; +} + +// AdjustPSDResponse describes the possible response messages that will be +// streamed after the RPC is initiated. While the OTDR is running, +// "progress" messages should be sent at a regular interval. When the +// adjustment is completed, an "error" message should be streamed if an +// error is encountered or the RPC should be terminated on success. +message AdjustPSDResponse { + oneof response { + AdjustPSDProgress progress = 1; + AdjustPSDError error = 2; + } +} + +message CancelAdjustPSDResponse {} + message AdjustSpectrumRequest { // Absolute path to the /components/component list member in the OpenConfig // model corresponding to the port to perform the adjustment for. From a53b0b7ebe7c13289e8bf5593b4998c793597b49 Mon Sep 17 00:00:00 2001 From: Eric Breverman Date: Thu, 5 Dec 2019 10:35:00 -0800 Subject: [PATCH 060/238] deprecate msgs and fix example --- wavelength_router/wavelength_router.pb.go | 97 ++++++++++++----------- wavelength_router/wavelength_router.proto | 10 ++- 2 files changed, 60 insertions(+), 47 deletions(-) diff --git a/wavelength_router/wavelength_router.pb.go b/wavelength_router/wavelength_router.pb.go index 0ee7407b..f814aedd 100644 --- a/wavelength_router/wavelength_router.pb.go +++ b/wavelength_router/wavelength_router.pb.go @@ -203,6 +203,7 @@ func (AdjustSpectrumError_Type) EnumDescriptor() ([]byte, []int) { return fileDescriptor_cb8b6c17dc3d7490, []int{7, 0} } +// Deprecated: Do not use. type AdjustPSDRequest struct { // Absolute path to the /components/component list member in the OpenConfig // model corresponding to the port to perform the adjustment for. @@ -256,6 +257,7 @@ func (m *AdjustPSDRequest) GetDirection() AdjustPSDRequest_SignalDirection { return AdjustPSDRequest_DIRECTION_UNKNOWN } +// Deprecated: Do not use. type AdjustPSDProgress struct { // The state of the OTDR trace requested. Note that this does not include // error states as these should be returned as a gRPC error. @@ -297,6 +299,7 @@ func (m *AdjustPSDProgress) GetState() AdjustPSDProgress_State { return AdjustPSDProgress_UNKNOWN } +// Deprecated: Do not use. type AdjustPSDError struct { Type AdjustPSDError_Type `protobuf:"varint,1,opt,name=type,proto3,enum=gnoi.optical.AdjustPSDError_Type" json:"type,omitempty"` Detail string `protobuf:"bytes,2,opt,name=detail,proto3" json:"detail,omitempty"` @@ -349,6 +352,8 @@ func (m *AdjustPSDError) GetDetail() string { // "progress" messages should be sent at a regular interval. When the // adjustment is completed, an "error" message should be streamed if an // error is encountered or the RPC should be terminated on success. +// +// Deprecated: Do not use. type AdjustPSDResponse struct { // Types that are valid to be assigned to Response: // *AdjustPSDResponse_Progress @@ -429,6 +434,7 @@ func (*AdjustPSDResponse) XXX_OneofWrappers() []interface{} { } } +// Deprecated: Do not use. type CancelAdjustPSDResponse struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -463,7 +469,7 @@ var xxx_messageInfo_CancelAdjustPSDResponse proto.InternalMessageInfo type AdjustSpectrumRequest struct { // Absolute path to the /components/component list member in the OpenConfig // model corresponding to the port to perform the adjustment for. - // (e.g., /components/component[name=amp-1-1]) + // (e.g., /components/component[name=wavelength-router-1-1]) Component *types.Path `protobuf:"bytes,1,opt,name=component,proto3" json:"component,omitempty"` // Describes the signal direction that should be adjusted relative to the // device. For example, "input" would be the signal entering into the device @@ -741,50 +747,51 @@ func init() { } var fileDescriptor_cb8b6c17dc3d7490 = []byte{ - // 683 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x55, 0x4b, 0x6f, 0xd3, 0x4a, - 0x18, 0xcd, 0xa4, 0x4d, 0x9b, 0x7c, 0xe9, 0x6d, 0xdc, 0xe9, 0xe3, 0xf6, 0x56, 0x55, 0x1f, 0xbe, - 0x05, 0x95, 0x0a, 0x39, 0x51, 0x0a, 0x0b, 0x9e, 0x22, 0xaf, 0x52, 0x8b, 0xe2, 0x98, 0x71, 0xac, - 0x8a, 0x05, 0x8a, 0x5c, 0x77, 0x48, 0x8d, 0x52, 0x8f, 0xb1, 0x27, 0xa0, 0x2e, 0xd9, 0x21, 0xb1, - 0x43, 0x6c, 0x59, 0xb1, 0xe0, 0xff, 0xf0, 0x1f, 0x58, 0xf3, 0x17, 0x90, 0x1f, 0x71, 0x9a, 0xa4, - 0x49, 0x2b, 0x84, 0xba, 0xb1, 0xe4, 0x6f, 0xce, 0x37, 0xe7, 0x7c, 0x47, 0x67, 0x66, 0xe0, 0xd6, - 0x7b, 0xe3, 0x1d, 0x6d, 0x53, 0xbb, 0xc5, 0x4f, 0x9a, 0x2e, 0xeb, 0x70, 0xea, 0xe6, 0x87, 0x2a, - 0x92, 0xe3, 0x32, 0xce, 0xf0, 0x4c, 0xcb, 0x66, 0x96, 0xc4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 0xee, 0xfe, 0x0e, 0x00, - 0x00, 0xff, 0xff, 0x88, 0xb8, 0xf7, 0xca, 0xbc, 0x07, 0x00, 0x00, + // 697 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x95, 0xcb, 0x6e, 0xd3, 0x4a, + 0x18, 0xc7, 0x33, 0x69, 0xd3, 0x26, 0x5f, 0x7a, 0x1a, 0x77, 0x7a, 0x39, 0x55, 0xd5, 0xd3, 0x8b, + 0x4f, 0xcf, 0x51, 0xa9, 0x90, 0x13, 0xa5, 0xb0, 0xa0, 0x5c, 0x44, 0x6e, 0xa5, 0x11, 0xc5, 0x31, + 0xe3, 0x58, 0x15, 0x0b, 0x14, 0xb9, 0xee, 0x90, 0x1a, 0xa5, 0x1e, 0x63, 0x4f, 0x40, 0x7d, 0x00, + 0x24, 0x24, 0x76, 0xac, 0xd8, 0x22, 0x16, 0xbc, 0x0f, 0x6f, 0xc1, 0x8a, 0x57, 0x40, 0xbe, 0xc4, + 0xa9, 0x93, 0x26, 0xad, 0x10, 0xea, 0xc6, 0x92, 0x67, 0xfe, 0x33, 0xdf, 0xef, 0xfb, 0xeb, 0x3f, + 0x33, 0x70, 0xeb, 0x9d, 0xfe, 0x96, 0x76, 0xa8, 0xd5, 0xe6, 0xa7, 0x2d, 0x87, 0x75, 0x39, 0x75, + 0xf2, 0x43, 0x23, 0x92, 0xed, 0x30, 0xce, 0xf0, 0x4c, 0xdb, 0x62, 0xa6, 0xc4, 0x6c, 0x6e, 0x1a, + 0x7a, 0x67, 0xe5, 0x76, 0xdb, 0xe4, 0xa7, 0xdd, 0x63, 0xc9, 0x60, 0x67, 0x79, 0x66, 0x53, 0xcb, + 0x60, 0xd6, 0x2b, 0xb3, 0x9d, 0xf7, 0x34, 0x79, 0x7e, 0x6e, 0x53, 0x37, 0xf8, 0x06, 0x6b, 0xc5, + 0x1f, 0x08, 0x84, 0xd2, 0x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0xce, 0x38, 0xfc, 0x3f, 0x93, 0x70, 0xf1, 0x1b, 0x82, 0xf9, 0xf8, 0xc6, 0x41, + 0xc4, 0xf7, 0x62, 0x11, 0xff, 0x7f, 0x1c, 0xc9, 0xcd, 0xe4, 0x5c, 0xfc, 0x3a, 0xe4, 0x5b, 0x14, + 0xf4, 0xf2, 0x50, 0xd0, 0xb7, 0xae, 0x63, 0x5d, 0x2c, 0xed, 0xf7, 0xe2, 0x69, 0xdf, 0xbc, 0xb2, + 0xe3, 0x28, 0xf2, 0xb1, 0xb8, 0xaf, 0xc1, 0xea, 0xc5, 0xb8, 0x0f, 0xa2, 0x16, 0x3f, 0x4d, 0x80, + 0x70, 0x14, 0xbd, 0x0c, 0xc4, 0x7f, 0x18, 0xb0, 0x0a, 0x99, 0xe8, 0x74, 0xe0, 0xb5, 0xf1, 0x77, + 0xf1, 0xca, 0xfa, 0xc8, 0xf9, 0x10, 0x61, 0xe2, 0x43, 0x12, 0x15, 0x10, 0x7e, 0x09, 0xb9, 0x81, + 0x83, 0x77, 0xe5, 0xd6, 0x03, 0xb7, 0xe9, 0x88, 0x73, 0xeb, 0x17, 0xc0, 0xad, 0xde, 0xad, 0xd8, + 0x6b, 0x11, 0xff, 0x7b, 0x8d, 0xd3, 0xb6, 0xb2, 0x35, 0x5e, 0x14, 0x56, 0x48, 0x14, 0x10, 0x36, + 0x61, 0xe1, 0x32, 0x27, 0xaf, 0x57, 0x66, 0x67, 0x74, 0x27, 0xc3, 0xc5, 0xca, 0xe9, 0xef, 0x8f, + 0x52, 0x05, 0xa9, 0x28, 0x15, 0x8e, 0xa7, 0xfc, 0x77, 0x76, 0xf7, 0x57, 0x00, 0x00, 0x00, 0xff, + 0xff, 0xe6, 0xd4, 0x57, 0x43, 0xd0, 0x07, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. diff --git a/wavelength_router/wavelength_router.proto b/wavelength_router/wavelength_router.proto index 6917608d..12c8b50f 100644 --- a/wavelength_router/wavelength_router.proto +++ b/wavelength_router/wavelength_router.proto @@ -71,6 +71,7 @@ service WavelengthRouter { } message AdjustPSDRequest { + option deprecated = true; // Absolute path to the /components/component list member in the OpenConfig // model corresponding to the port to perform the adjustment for. // (e.g., /components/component[name=amp-1-1]) @@ -88,6 +89,7 @@ message AdjustPSDRequest { } message AdjustPSDProgress { + option deprecated = true; enum State { UNKNOWN = 0; RUNNING = 1; // The PSD adjustment is running. @@ -99,6 +101,7 @@ message AdjustPSDProgress { } message AdjustPSDError { + option deprecated = true; enum Type { // An unspecified error. Must use the detail value to describe the issue. UNSPECIFIED = 0; @@ -119,18 +122,21 @@ message AdjustPSDError { // adjustment is completed, an "error" message should be streamed if an // error is encountered or the RPC should be terminated on success. message AdjustPSDResponse { + option deprecated = true; oneof response { AdjustPSDProgress progress = 1; AdjustPSDError error = 2; } } -message CancelAdjustPSDResponse {} +message CancelAdjustPSDResponse { + option deprecated = true; +} message AdjustSpectrumRequest { // Absolute path to the /components/component list member in the OpenConfig // model corresponding to the port to perform the adjustment for. - // (e.g., /components/component[name=amp-1-1]) + // (e.g., /components/component[name=wavelength-router-1-1]) types.Path component = 1; enum SignalDirection { From bd8e175d47d85b9b679ecb16c4dc27668b3d3c0a Mon Sep 17 00:00:00 2001 From: Sam Ribeiro Date: Mon, 2 Mar 2020 11:01:33 -0800 Subject: [PATCH 061/238] gNOI Factory Reset - service for factory resetting a Target (#17) * gNOI Reset service --- factory_reset/reset.proto | 57 +++++++++++++++++++++++++++++++++++++++ system/system.proto | 5 ++-- 2 files changed, 60 insertions(+), 2 deletions(-) create mode 100644 factory_reset/reset.proto diff --git a/factory_reset/reset.proto b/factory_reset/reset.proto new file mode 100644 index 00000000..eb7ae242 --- /dev/null +++ b/factory_reset/reset.proto @@ -0,0 +1,57 @@ +// This file defines a gNOI API used for factory reseting a Target. +syntax = "proto3"; + +package gnoi.factory_reset; + +import "github.com/openconfig/gnoi/types/types.proto"; + +option (types.gnoi_version) = "0.1.0"; + +// The FactoryReset service exported by Targets. +service FactoryReset { + // The Start RPC allows the Client to instruct the Target to immediately + // clean all existing state and boot the Target in the same condition as it is + // shipped from factory. State includes storage, configuration, logs, + // certificates and licenses. + // + // Optionally allows rolling back the OS to the same version shipped from + // factory. + // + // Optionally allows for the Target to zero-fill permanent storage where state + // data is stored. + // + // If any of the optional flags is set but not supported, a gRPC Status with + // code INVALID_ARGUMENT must be returned with the details value set to a + // properly populated ResetError message. + rpc Start(StartRequest) returns (StartResponse); +} + +message StartRequest { + // Instructs the Target to rollback the OS to the same version as it shipped + // from factory. + bool factory_os = 1; + // Instructs the Target to zero fill persistent storage state data. + bool zero_fill = 2; +} + +message ResetSuccess {} + +// Message also used in gRPC status.details field. +message ResetError { + // Factory OS reset is not supported. + bool factory_os_unsupported = 1 + // Zero fill is not supported. + bool zero_fill_unsupported = 2 + // Unspecified error, must provide detail message. + bool other = 3 + string detail = 4 +} + +message StartResponse { + oneof response { + // Reset will be executed. + ResetSuccess reset_success = 1; + // Reset will not be executed. + ResetError reset_error = 2 + } +} diff --git a/system/system.proto b/system/system.proto index f7cd0a81..5ebbfff3 100644 --- a/system/system.proto +++ b/system/system.proto @@ -27,7 +27,7 @@ package gnoi.system; import "github.com/openconfig/gnoi/common/common.proto"; import "github.com/openconfig/gnoi/types/types.proto"; -option (types.gnoi_version) = "0.1.0"; +option (types.gnoi_version) = "1.0.0"; // The gNOI service is a collection of operational RPC's that allow for the // management of a target outside of the configuration and telemetry pipeline. @@ -124,7 +124,8 @@ enum RebootMethod { HALT = 3; // Halt, if possible. WARM = 4; // Reload configuration but not underlying hardware. NSF = 5; // Non-stop-forwarding reboot, if possible. - RESET = 6; // Reboot to factory defaults. + reserved 6; // RESET method is deprecated in favor of the gNOI + // FactoryReset.Start(). POWERUP = 7; // Apply power, no-op if power is already on. } From 8b9859fc99bd57235a38a24b17106d628c712198 Mon Sep 17 00:00:00 2001 From: Brian Neville Date: Mon, 30 Mar 2020 15:39:08 +0100 Subject: [PATCH 062/238] Fix syntax errors in reset.proto (#36) --- factory_reset/reset.proto | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/factory_reset/reset.proto b/factory_reset/reset.proto index eb7ae242..fba8e31e 100644 --- a/factory_reset/reset.proto +++ b/factory_reset/reset.proto @@ -39,12 +39,12 @@ message ResetSuccess {} // Message also used in gRPC status.details field. message ResetError { // Factory OS reset is not supported. - bool factory_os_unsupported = 1 + bool factory_os_unsupported = 1; // Zero fill is not supported. - bool zero_fill_unsupported = 2 + bool zero_fill_unsupported = 2; // Unspecified error, must provide detail message. - bool other = 3 - string detail = 4 + bool other = 3; + string detail = 4; } message StartResponse { @@ -52,6 +52,6 @@ message StartResponse { // Reset will be executed. ResetSuccess reset_success = 1; // Reset will not be executed. - ResetError reset_error = 2 + ResetError reset_error = 2; } } From b71da256dbbbd62eedfbd39320b9ba5a65c832ce Mon Sep 17 00:00:00 2001 From: Anees Shaikh Date: Sat, 8 Aug 2020 00:42:47 -0700 Subject: [PATCH 063/238] Updates to cert service. (#41) contributor: jdwestbro * (M) cert/cert.proto - Added RPCs to support separating operations within the Install and Rotate operations. New RPCs reuse current request/response protos. --- cert/cert.proto | 36 +++++++++++++++++++++++++++++++++--- 1 file changed, 33 insertions(+), 3 deletions(-) diff --git a/cert/cert.proto b/cert/cert.proto index d2b323d3..f720e453 100644 --- a/cert/cert.proto +++ b/cert/cert.proto @@ -22,12 +22,16 @@ import "github.com/openconfig/gnoi/types/types.proto"; package gnoi.certificate; -option (types.gnoi_version) = "0.1.0"; +option (types.gnoi_version) = "0.2.0"; // The Certificate Management Service exported by targets. +// // The service primarily exports two main RPCs, Install & Rotate which are used // for installation of a new certificate, and rotation of an existing // certificate on a target, along with a few management related RPCs. +// +// In addition, the actions from the Install and Rotate RPCs are made available +// as separate RPCs. These use the same request/response protos. service CertificateManagement { // Rotate will replace an existing Certificate on the target by creating a @@ -132,6 +136,18 @@ service CertificateManagement { rpc Install(stream InstallCertificateRequest) returns (stream InstallCertificateResponse); + // When credentials are generated on the device, generates a keypair and + // returns the Certificate Signing Request (CSR). The CSR has the public key, + // which when signed by the CA, becomes the Certificate. + rpc GenerateCSR(GenerateCSRRequest) returns (GenerateCSRResponse); + + // Loads a certificate signed by a Certificate Authority (CA). + rpc LoadCertificate(LoadCertificateRequest) returns (LoadCertificateResponse); + + // Loads a bundle of CA certificates. + rpc LoadCertificateAuthorityBundle(LoadCertificateAuthorityBundleRequest) + returns (LoadCertificateAuthorityBundleResponse); + // An RPC to get the certificates on the target. rpc GetCertificates(GetCertificatesRequest) returns (GetCertificatesResponse); @@ -282,8 +298,6 @@ message LoadCertificateRequest { // Groups of chained certificates should be last, where within, the root // certificate is the last one. E.g.: // CertA, CertB, CertB-Root, CertC, CertC-Intermediate, CertC-Root - // Note that on a forward looking iteration, CA Certificates will be managed - // by a dedicated gNOI service. repeated Certificate ca_certificates = 4; } @@ -293,6 +307,22 @@ message LoadCertificateRequest { message LoadCertificateResponse { } +// Bundle of CA certificates. Same as LoadCertificateRequest::ca_certificates. +message LoadCertificateAuthorityBundleRequest { + // Squashes the existing certificate bundle. + // To improve performance in the Target, certificates can be ordered. + // Groups of chained certificates should be last, where within, the root + // certificate is the last one. E.g.: + // CertA, CertB, CertB-Root, CertC, CertC-Intermediate, CertC-Root + repeated Certificate ca_certificates = 1; +} + +// Response from target after Loading a certificate authority bundle. +// If the target could not load the certificates, it must end the RPC stream +// with a suitable RPC error about why the Certificate was not loaded. +message LoadCertificateAuthorityBundleResponse { +} + // A Finalize message is sent to the target to confirm the Rotation of // the certificate and that the certificate should not be rolled back when // the RPC concludes. The certificate must be rolled back if the target returns From f40a716a7a316fcb730dae7504f4b8a6c0729a0e Mon Sep 17 00:00:00 2001 From: Vamsi Punati Date: Thu, 7 Jan 2021 12:22:21 -0800 Subject: [PATCH 064/238] [Adding Bazel c++ compilation support for gNOI proto] --- BUILD | 31 ++++++++ WORKSPACE | 95 +++++++++++++++++++++++ bgp/BUILD | 40 ++++++++++ bgp/bgp.proto | 3 +- cert/BUILD | 42 ++++++++++ cert/cert.proto | 3 +- common/BUILD | 42 ++++++++++ common/common.proto | 3 +- diag/BUILD | 40 ++++++++++ diag/diag.proto | 3 +- factory_reset/BUILD | 40 ++++++++++ factory_reset/reset.proto | 3 +- file/BUILD | 41 ++++++++++ file/file.proto | 6 +- gnoi_infra_deps.bzl | 81 +++++++++++++++++++ interface/interface.proto | 3 +- layer2/layer2.proto | 3 +- mpls/mpls.proto | 3 +- os/os.proto | 3 +- otdr/otdr.proto | 3 +- system/BUILD | 36 +++++++++ system/system.proto | 7 +- types/BUILD | 41 ++++++++++ wavelength_router/wavelength_router.proto | 3 +- 24 files changed, 560 insertions(+), 15 deletions(-) create mode 100644 BUILD create mode 100644 WORKSPACE create mode 100644 bgp/BUILD create mode 100644 cert/BUILD create mode 100644 common/BUILD create mode 100644 diag/BUILD create mode 100644 factory_reset/BUILD create mode 100644 file/BUILD create mode 100644 gnoi_infra_deps.bzl create mode 100644 system/BUILD create mode 100644 types/BUILD diff --git a/BUILD b/BUILD new file mode 100644 index 00000000..7d097421 --- /dev/null +++ b/BUILD @@ -0,0 +1,31 @@ +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Supporting infrastructure for implementing and testing PINS. + +package( + default_visibility = ["//visibility:public"], + licenses = ["notice"], +) + +exports_files(["LICENSE"]) + +# copybara:insert_begin(For format.sh script) +# load("@com_github_bazelbuild_buildtools//buildifier:def.bzl", "buildifier") +# +# buildifier( +# name = "buildifier", +# ) +# copybara:insert_end + diff --git a/WORKSPACE b/WORKSPACE new file mode 100644 index 00000000..8809456e --- /dev/null +++ b/WORKSPACE @@ -0,0 +1,95 @@ +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +workspace(name = "gnoi") + +load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") + +# -- Load Dependencies --------------------------------------------------------- +load("gnoi_infra_deps.bzl", "gnoi_infra_deps") + +gnoi_infra_deps() + +# -- Load Protobuf ------------------------------------------------------------- +load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps") + +protobuf_deps() + +load("@rules_proto//proto:repositories.bzl", "rules_proto_dependencies", "rules_proto_toolchains") + +rules_proto_dependencies() + +rules_proto_toolchains() + +load("@com_google_googleapis//:repository_rules.bzl", "switched_rules_by_language") + +switched_rules_by_language( + name = "com_google_googleapis_imports", + cc = True, + grpc = True, +) + +load("@com_github_grpc_grpc//bazel:grpc_deps.bzl", "grpc_deps") + +grpc_deps() + +bind( + name = "grpc_cpp_plugin", + actual = "@com_github_grpc_grpc//:grpc_cpp_plugin", +) + +bind( + name = "grpc++_codegen_proto", + actual = "@com_github_grpc_grpc//:grpc++_codegen_proto", +) + +load("@com_github_grpc_grpc//bazel:grpc_extra_deps.bzl", "grpc_extra_deps") + +grpc_extra_deps() + +# -- Load buildifier ----------------------------------------------------------- +http_archive( + name = "io_bazel_rules_go", + sha256 = "9fb16af4d4836c8222142e54c9efa0bb5fc562ffc893ce2abeac3e25daead144", + urls = [ + "https://storage.googleapis.com/bazel-mirror/github.com/bazelbuild/rules_go/releases/download/0.19.0/rules_go-0.19.0.tar.gz", + "https://github.com/bazelbuild/rules_go/releases/download/0.19.0/rules_go-0.19.0.tar.gz", + ], +) + +load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies") + +go_rules_dependencies() + +go_register_toolchains() + +http_archive( + name = "bazel_gazelle", + sha256 = "be9296bfd64882e3c08e3283c58fcb461fa6dd3c171764fcc4cf322f60615a9b", + urls = [ + "https://storage.googleapis.com/bazel-mirror/github.com/bazelbuild/bazel-gazelle/releases/download/0.18.1/bazel-gazelle-0.18.1.tar.gz", + "https://github.com/bazelbuild/bazel-gazelle/releases/download/0.18.1/bazel-gazelle-0.18.1.tar.gz", + ], +) + +load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies") + +gazelle_dependencies() + +http_archive( + name = "com_github_bazelbuild_buildtools", + strip_prefix = "buildtools-master", + url = "https://github.com/bazelbuild/buildtools/archive/master.zip", +) + diff --git a/bgp/BUILD b/bgp/BUILD new file mode 100644 index 00000000..bcbc7779 --- /dev/null +++ b/bgp/BUILD @@ -0,0 +1,40 @@ +#Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Supporting infrastructure for implementing and testing PINS. +# +package( + default_visibility = ["//visibility:public"], + licenses = ["notice"], +) + +filegroup( + name = "bgp_proto_srcs", + srcs = glob(["**/*.proto"]), + visibility = ["//third_party/pins_infra/thinkit:__pkg__"], +) + +proto_library( + name = "bgp_proto", + srcs = ["bgp.proto"], + deps = [ + "//types:types_proto", + ], +) + +cc_proto_library( + name = "types_cc_proto", + deps = [":types_proto"], +) + diff --git a/bgp/bgp.proto b/bgp/bgp.proto index 124efabc..5bb831ac 100644 --- a/bgp/bgp.proto +++ b/bgp/bgp.proto @@ -16,7 +16,8 @@ syntax = "proto3"; -import "github.com/openconfig/gnoi/types/types.proto"; +// import "github.com/openconfig/gnoi/types/types.proto"; +import "types/types.proto"; package gnoi.bgp; diff --git a/cert/BUILD b/cert/BUILD new file mode 100644 index 00000000..de7a51af --- /dev/null +++ b/cert/BUILD @@ -0,0 +1,42 @@ +#Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Supporting infrastructure for implementing and testing PINS. +# +package( + default_visibility = ["//visibility:public"], + licenses = ["notice"], +) + +filegroup( + name = "cert_proto_srcs", + srcs = glob(["**/*.proto"]), + visibility = ["//third_party/pins_infra/thinkit:__pkg__"], +) + +proto_library( + name = "cert_proto", + srcs = ["cert.proto"], + deps = [ + "@com_google_protobuf//:any_proto", + "@com_google_protobuf//:descriptor_proto", + "//types:types_proto", + ], +) + +cc_proto_library( + name = "types_cc_proto", + deps = [":types_proto"], +) + diff --git a/cert/cert.proto b/cert/cert.proto index f720e453..74538b67 100644 --- a/cert/cert.proto +++ b/cert/cert.proto @@ -18,7 +18,8 @@ // rotation. syntax = "proto3"; -import "github.com/openconfig/gnoi/types/types.proto"; +// import "github.com/openconfig/gnoi/types/types.proto"; +import "types/types.proto"; package gnoi.certificate; diff --git a/common/BUILD b/common/BUILD new file mode 100644 index 00000000..bd527015 --- /dev/null +++ b/common/BUILD @@ -0,0 +1,42 @@ +#Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Supporting infrastructure for implementing and testing PINS. +# +package( + default_visibility = ["//visibility:public"], + licenses = ["notice"], +) + +filegroup( + name = "common_proto_srcs", + srcs = glob(["**/*.proto"]), + visibility = ["//third_party/pins_infra/thinkit:__pkg__"], +) + +proto_library( + name = "common_proto", + srcs = ["common.proto"], + deps = [ + "//types:types_proto", + "@com_google_protobuf//:any_proto", + "@com_google_protobuf//:descriptor_proto", + ], +) + +cc_proto_library( + name = "common_ext_cc_proto", + deps = [":common_proto"], +) + diff --git a/common/common.proto b/common/common.proto index f2928fca..4c32060f 100644 --- a/common/common.proto +++ b/common/common.proto @@ -18,7 +18,8 @@ syntax = "proto3"; package gnoi.common; -import "github.com/openconfig/gnoi/types/types.proto"; +// import "github.com/openconfig/gnoi/types/types.proto"; +import "types/types.proto"; // RemoteDownload defines the details for a device to initiate a file transfer // from or to a remote location. diff --git a/diag/BUILD b/diag/BUILD new file mode 100644 index 00000000..fbcb1e3d --- /dev/null +++ b/diag/BUILD @@ -0,0 +1,40 @@ +#Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Supporting infrastructure for implementing and testing PINS. +# +package( + default_visibility = ["//visibility:public"], + licenses = ["notice"], +) + +filegroup( + name = "diag_proto_srcs", + srcs = glob(["**/*.proto"]), + visibility = ["//third_party/pins_infra/thinkit:__pkg__"], +) + +proto_library( + name = "diag_proto", + srcs = ["diag.proto"], + deps = [ + "//types:types_proto", + ], +) + +cc_proto_library( + name = "types_cc_proto", + deps = [":types_proto"], +) + diff --git a/diag/diag.proto b/diag/diag.proto index 84592d6a..88d1e42c 100644 --- a/diag/diag.proto +++ b/diag/diag.proto @@ -20,7 +20,8 @@ syntax = "proto3"; package gnoi.diag; -import "github.com/openconfig/gnoi/types/types.proto"; +// import "github.com/openconfig/gnoi/types/types.proto"; +import "types/types.proto"; option (types.gnoi_version) = "0.1.0"; diff --git a/factory_reset/BUILD b/factory_reset/BUILD new file mode 100644 index 00000000..1390affa --- /dev/null +++ b/factory_reset/BUILD @@ -0,0 +1,40 @@ +#Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Supporting infrastructure for implementing and testing PINS. +# +package( + default_visibility = ["//visibility:public"], + licenses = ["notice"], +) + +filegroup( + name = "reset_proto_srcs", + srcs = glob(["**/*.proto"]), + visibility = ["//third_party/pins_infra/thinkit:__pkg__"], +) + +proto_library( + name = "reset_proto", + srcs = ["reset.proto"], + deps = [ + "//types:types_proto", + ], +) + +cc_proto_library( + name = "types_cc_proto", + deps = [":reset_proto"], +) + diff --git a/factory_reset/reset.proto b/factory_reset/reset.proto index fba8e31e..9ce6560d 100644 --- a/factory_reset/reset.proto +++ b/factory_reset/reset.proto @@ -3,7 +3,8 @@ syntax = "proto3"; package gnoi.factory_reset; -import "github.com/openconfig/gnoi/types/types.proto"; +// import "github.com/openconfig/gnoi/types/types.proto"; +import "types/types.proto"; option (types.gnoi_version) = "0.1.0"; diff --git a/file/BUILD b/file/BUILD new file mode 100644 index 00000000..72108e76 --- /dev/null +++ b/file/BUILD @@ -0,0 +1,41 @@ +#Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Supporting infrastructure for implementing and testing PINS. +# +package( + default_visibility = ["//visibility:public"], + licenses = ["notice"], +) + +filegroup( + name = "file_proto_srcs", + srcs = glob(["**/*.proto"]), + visibility = ["//third_party/pins_infra/thinkit:__pkg__"], +) + +proto_library( + name = "file_proto", + srcs = ["file.proto"], + deps = [ + "//types:types_proto", + "//common:common_proto", + ], +) + +cc_proto_library( + name = "types_cc_proto", + deps = [":file_proto"], +) + diff --git a/file/file.proto b/file/file.proto index bc644ddd..5dd0b2e5 100644 --- a/file/file.proto +++ b/file/file.proto @@ -18,8 +18,10 @@ syntax = "proto3"; package gnoi.file; -import "github.com/openconfig/gnoi/types/types.proto"; -import "github.com/openconfig/gnoi/common/common.proto"; +// import "github.com/openconfig/gnoi/types/types.proto"; +// import "github.com/openconfig/gnoi/common/common.proto"; +import "types/types.proto"; +import "common/common.proto"; option (types.gnoi_version) = "0.1.0"; diff --git a/gnoi_infra_deps.bzl b/gnoi_infra_deps.bzl new file mode 100644 index 00000000..b8949200 --- /dev/null +++ b/gnoi_infra_deps.bzl @@ -0,0 +1,81 @@ +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +"""Dependencies to build PINS infra.""" + +load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository", "new_git_repository") +load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") + +def gnoi_infra_deps(): + """Declare the third-party dependencies necessary to build GNOI infrastructure""" + + if not native.existing_rule("com_github_grpc_grpc"): + git_repository( + name = "com_github_grpc_grpc", + remote = "https://github.com/grpc/grpc", + commit = "638c34ceba0c050574f473745a1316b3a9cf4136", + shallow_since = "1606864594 -0800", + ) + if not native.existing_rule("com_google_absl"): + http_archive( + name = "com_google_absl", + sha256 = "f41868f7a938605c92936230081175d1eae87f6ea2c248f41077c8f88316f111", + strip_prefix = "abseil-cpp-20200225.2", + url = "https://github.com/abseil/abseil-cpp/archive/20200225.2.tar.gz", + ) + if not native.existing_rule("com_google_googletest"): + http_archive( + name = "com_google_googletest", + sha256 = "9dc9157a9a1551ec7a7e43daea9a694a0bb5fb8bec81235d8a1e6ef64c716dcb", + strip_prefix = "googletest-release-1.10.0", + urls = ["https://github.com/google/googletest/archive/release-1.10.0.tar.gz"], + ) + if not native.existing_rule("com_google_protobuf"): + http_archive( + name = "com_google_protobuf", + sha256 = "1a83f0525e5c8096b7b812181865da3c8637de88f9777056cefbf51a1eb0b83f", + strip_prefix = "protobuf-3.12.3", + url = "https://github.com/protocolbuffers/protobuf/releases/download/v3.12.3/protobuf-all-3.12.3.tar.gz", + ) + if not native.existing_rule("com_googlesource_code_re2"): + http_archive( + name = "com_googlesource_code_re2", + sha256 = "2e9489a31ae007c81e90e8ec8a15d62d58a9c18d4fd1603f6441ef248556b41f", + strip_prefix = "re2-2020-07-06", + url = "https://github.com/google/re2/archive/2020-07-06.tar.gz", + ) + if not native.existing_rule("com_google_googleapis"): + git_repository( + name = "com_google_googleapis", + commit = "dd244bb3a5023a4a9290b21dae6b99020c026123", + remote = "https://github.com/googleapis/googleapis", + shallow_since = "1591402163 -0700", + ) + if not native.existing_rule("rules_cc"): + git_repository( + name = "rules_cc", + commit = "1477dbab59b401daa94acedbeaefe79bf9112167", + remote = "https://github.com/bazelbuild/rules_cc.git", + shallow_since = "1595949469 -0700", + ) + if not native.existing_rule("rules_proto"): + http_archive( + name = "rules_proto", + sha256 = "602e7161d9195e50246177e7c55b2f39950a9cf7366f74ed5f22fd45750cd208", + strip_prefix = "rules_proto-97d8af4dc474595af3900dd85cb3a29ad28cc313", + urls = [ + "https://mirror.bazel.build/github.com/bazelbuild/rules_proto/archive/97d8af4dc474595af3900dd85cb3a29ad28cc313.tar.gz", + "https://github.com/bazelbuild/rules_proto/archive/97d8af4dc474595af3900dd85cb3a29ad28cc313.tar.gz", + ], + ) diff --git a/interface/interface.proto b/interface/interface.proto index f8d4201e..a0e3f8f7 100644 --- a/interface/interface.proto +++ b/interface/interface.proto @@ -18,7 +18,8 @@ syntax = "proto3"; package gnoi.interface; -import "github.com/openconfig/gnoi/types/types.proto"; +// import "github.com/openconfig/gnoi/types/types.proto"; +import "types/types.proto"; option (types.gnoi_version) = "0.1.0"; diff --git a/layer2/layer2.proto b/layer2/layer2.proto index 75c2471f..8b6977e0 100644 --- a/layer2/layer2.proto +++ b/layer2/layer2.proto @@ -18,7 +18,8 @@ syntax = "proto3"; package gnoi.layer2; -import "github.com/openconfig/gnoi/types/types.proto"; +// import "github.com/openconfig/gnoi/types/types.proto"; +import "types/types.proto"; option (types.gnoi_version) = "0.1.0"; diff --git a/mpls/mpls.proto b/mpls/mpls.proto index e1b1f011..e51f68bd 100644 --- a/mpls/mpls.proto +++ b/mpls/mpls.proto @@ -16,7 +16,8 @@ syntax = "proto3"; -import "github.com/openconfig/gnoi/types/types.proto"; +// import "github.com/openconfig/gnoi/types/types.proto"; +import "types/types.proto"; package gnoi.mpls; diff --git a/os/os.proto b/os/os.proto index 04fc5992..6efbfb84 100644 --- a/os/os.proto +++ b/os/os.proto @@ -3,7 +3,8 @@ syntax = "proto3"; package gnoi.os; -import "github.com/openconfig/gnoi/types/types.proto"; +// import "github.com/openconfig/gnoi/types/types.proto"; +import "types/types.proto"; option (types.gnoi_version) = "0.1.0"; diff --git a/otdr/otdr.proto b/otdr/otdr.proto index 79963212..8599d7cb 100644 --- a/otdr/otdr.proto +++ b/otdr/otdr.proto @@ -18,7 +18,8 @@ syntax = "proto3"; package gnoi.optical; -import "github.com/openconfig/gnoi/types/types.proto"; +// import "github.com/openconfig/gnoi/types/types.proto"; +import "types/types.proto"; option (types.gnoi_version) = "0.1.0"; diff --git a/system/BUILD b/system/BUILD new file mode 100644 index 00000000..16ab8950 --- /dev/null +++ b/system/BUILD @@ -0,0 +1,36 @@ +# A generic network operational interface gRPC service for interacting with +# network devices based on OpenConfig models. This is for the gNOI APIs used +# to perform diagnostic operations on a network device. + +load("@com_github_grpc_grpc//bazel:cc_grpc_library.bzl", "cc_grpc_library") + +package(default_visibility = ["//visibility:public"], + licenses = ["notice"],) + +filegroup( + name = "gnoi_proto_srcs", + srcs = glob(["gnoi/common/*.proto", + "gnoi/types/*.proto"]), +) + +proto_library( + name = "system_proto", + srcs = ["system.proto"], + deps = [ + "@com_google_protobuf//:any_proto", + "@com_google_protobuf//:descriptor_proto", + "//common:common_proto", + "//types:types_proto", + ], +) + +cc_proto_library( + name = "system_cc_proto", + deps = [":system_proto"], +) + +cc_grpc_library( + name = "system_cc_grpc_proto", + srcs = [":system_proto"], + deps = [":system_cc_proto"], +) diff --git a/system/system.proto b/system/system.proto index 5ebbfff3..9c2a72b3 100644 --- a/system/system.proto +++ b/system/system.proto @@ -24,8 +24,11 @@ syntax = "proto3"; package gnoi.system; -import "github.com/openconfig/gnoi/common/common.proto"; -import "github.com/openconfig/gnoi/types/types.proto"; +// import "github.com/openconfig/gnoi/common/common.proto"; +// import "github.com/openconfig/gnoi/types/types.proto"; + +import "common/common.proto"; +import "types/types.proto"; option (types.gnoi_version) = "1.0.0"; diff --git a/types/BUILD b/types/BUILD new file mode 100644 index 00000000..96cb8912 --- /dev/null +++ b/types/BUILD @@ -0,0 +1,41 @@ +#Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Supporting infrastructure for implementing and testing PINS. +# +package( + default_visibility = ["//visibility:public"], + licenses = ["notice"], +) + +filegroup( + name = "types_proto_srcs", + srcs = glob(["**/*.proto"]), + visibility = ["//third_party/pins_infra/thinkit:__pkg__"], +) + +proto_library( + name = "types_proto", + srcs = ["types.proto"], + deps = [ + "@com_google_protobuf//:any_proto", + "@com_google_protobuf//:descriptor_proto", + ], +) + +cc_proto_library( + name = "types_cc_proto", + deps = [":types_proto"], +) + diff --git a/wavelength_router/wavelength_router.proto b/wavelength_router/wavelength_router.proto index 12c8b50f..a4f38ee0 100644 --- a/wavelength_router/wavelength_router.proto +++ b/wavelength_router/wavelength_router.proto @@ -18,7 +18,8 @@ syntax = "proto3"; package gnoi.optical; -import "github.com/openconfig/gnoi/types/types.proto"; +// import "github.com/openconfig/gnoi/types/types.proto"; +import "types/types.proto"; option (types.gnoi_version) = "0.2.0"; From eaadb402b6951fea9f64b9d75a3106c29ee84b88 Mon Sep 17 00:00:00 2001 From: Vamsi Punati Date: Thu, 7 Jan 2021 12:25:06 -0800 Subject: [PATCH 065/238] [Adding Bazel c++ compilation support for gNOI proto] --- bgp/BUILD | 4 ++-- cert/BUILD | 4 ++-- common/BUILD | 2 +- diag/BUILD | 4 ++-- factory_reset/BUILD | 2 +- file/BUILD | 2 +- interface/BUILD | 41 +++++++++++++++++++++++++++++++++++++++++ layer2/BUILD | 41 +++++++++++++++++++++++++++++++++++++++++ mpls/BUILD | 41 +++++++++++++++++++++++++++++++++++++++++ os/BUILD | 41 +++++++++++++++++++++++++++++++++++++++++ otdr/BUILD | 41 +++++++++++++++++++++++++++++++++++++++++ system/BUILD | 2 +- wavelength_router/BUILD | 41 +++++++++++++++++++++++++++++++++++++++++ 13 files changed, 256 insertions(+), 10 deletions(-) create mode 100644 interface/BUILD create mode 100644 layer2/BUILD create mode 100644 mpls/BUILD create mode 100644 os/BUILD create mode 100644 otdr/BUILD create mode 100644 wavelength_router/BUILD diff --git a/bgp/BUILD b/bgp/BUILD index bcbc7779..2f1a610f 100644 --- a/bgp/BUILD +++ b/bgp/BUILD @@ -34,7 +34,7 @@ proto_library( ) cc_proto_library( - name = "types_cc_proto", - deps = [":types_proto"], + name = "bgp_cc_proto", + deps = [":bgp_proto"], ) diff --git a/cert/BUILD b/cert/BUILD index de7a51af..26d34e38 100644 --- a/cert/BUILD +++ b/cert/BUILD @@ -36,7 +36,7 @@ proto_library( ) cc_proto_library( - name = "types_cc_proto", - deps = [":types_proto"], + name = "cert_cc_proto", + deps = [":cert_proto"], ) diff --git a/common/BUILD b/common/BUILD index bd527015..90dbe97f 100644 --- a/common/BUILD +++ b/common/BUILD @@ -36,7 +36,7 @@ proto_library( ) cc_proto_library( - name = "common_ext_cc_proto", + name = "common_cc_proto", deps = [":common_proto"], ) diff --git a/diag/BUILD b/diag/BUILD index fbcb1e3d..f2097b58 100644 --- a/diag/BUILD +++ b/diag/BUILD @@ -34,7 +34,7 @@ proto_library( ) cc_proto_library( - name = "types_cc_proto", - deps = [":types_proto"], + name = "diag_cc_proto", + deps = [":diag_proto"], ) diff --git a/factory_reset/BUILD b/factory_reset/BUILD index 1390affa..b907ce80 100644 --- a/factory_reset/BUILD +++ b/factory_reset/BUILD @@ -34,7 +34,7 @@ proto_library( ) cc_proto_library( - name = "types_cc_proto", + name = "reset_cc_proto", deps = [":reset_proto"], ) diff --git a/file/BUILD b/file/BUILD index 72108e76..d2d221be 100644 --- a/file/BUILD +++ b/file/BUILD @@ -35,7 +35,7 @@ proto_library( ) cc_proto_library( - name = "types_cc_proto", + name = "file_cc_proto", deps = [":file_proto"], ) diff --git a/interface/BUILD b/interface/BUILD new file mode 100644 index 00000000..5137ccc9 --- /dev/null +++ b/interface/BUILD @@ -0,0 +1,41 @@ +#Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Supporting infrastructure for implementing and testing PINS. +# +package( + default_visibility = ["//visibility:public"], + licenses = ["notice"], +) + +filegroup( + name = "file_proto_srcs", + srcs = glob(["**/*.proto"]), + visibility = ["//third_party/pins_infra/thinkit:__pkg__"], +) + +proto_library( + name = "interface_proto", + srcs = ["interface.proto"], + deps = [ + "//types:types_proto", + "//common:common_proto", + ], +) + +cc_proto_library( + name = "interface_cc_proto", + deps = [":interface_proto"], +) + diff --git a/layer2/BUILD b/layer2/BUILD new file mode 100644 index 00000000..65f5989c --- /dev/null +++ b/layer2/BUILD @@ -0,0 +1,41 @@ +#Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Supporting infrastructure for implementing and testing PINS. +# +package( + default_visibility = ["//visibility:public"], + licenses = ["notice"], +) + +filegroup( + name = "layer2_proto_srcs", + srcs = glob(["**/*.proto"]), + visibility = ["//third_party/pins_infra/thinkit:__pkg__"], +) + +proto_library( + name = "layer2_proto", + srcs = ["layer2.proto"], + deps = [ + "//types:types_proto", + "//common:common_proto", + ], +) + +cc_proto_library( + name = "layer2_cc_proto", + deps = [":layer2_proto"], +) + diff --git a/mpls/BUILD b/mpls/BUILD new file mode 100644 index 00000000..cc37b146 --- /dev/null +++ b/mpls/BUILD @@ -0,0 +1,41 @@ +#Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Supporting infrastructure for implementing and testing PINS. +# +package( + default_visibility = ["//visibility:public"], + licenses = ["notice"], +) + +filegroup( + name = "mpls_proto_srcs", + srcs = glob(["**/*.proto"]), + visibility = ["//third_party/pins_infra/thinkit:__pkg__"], +) + +proto_library( + name = "mpls_proto", + srcs = ["mpls.proto"], + deps = [ + "//types:types_proto", + "//common:common_proto", + ], +) + +cc_proto_library( + name = "mpls_cc_proto", + deps = [":mpls_proto"], +) + diff --git a/os/BUILD b/os/BUILD new file mode 100644 index 00000000..e559edb2 --- /dev/null +++ b/os/BUILD @@ -0,0 +1,41 @@ +#Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Supporting infrastructure for implementing and testing PINS. +# +package( + default_visibility = ["//visibility:public"], + licenses = ["notice"], +) + +filegroup( + name = "os_proto_srcs", + srcs = glob(["**/*.proto"]), + visibility = ["//third_party/pins_infra/thinkit:__pkg__"], +) + +proto_library( + name = "os_proto", + srcs = ["os.proto"], + deps = [ + "//types:types_proto", + "//common:common_proto", + ], +) + +cc_proto_library( + name = "os_cc_proto", + deps = [":os_proto"], +) + diff --git a/otdr/BUILD b/otdr/BUILD new file mode 100644 index 00000000..d5b56d49 --- /dev/null +++ b/otdr/BUILD @@ -0,0 +1,41 @@ +#Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Supporting infrastructure for implementing and testing PINS. +# +package( + default_visibility = ["//visibility:public"], + licenses = ["notice"], +) + +filegroup( + name = "otdr_proto_srcs", + srcs = glob(["**/*.proto"]), + visibility = ["//third_party/pins_infra/thinkit:__pkg__"], +) + +proto_library( + name = "otdr_proto", + srcs = ["otdr.proto"], + deps = [ + "//types:types_proto", + "//common:common_proto", + ], +) + +cc_proto_library( + name = "otdr_cc_proto", + deps = [":otdr_proto"], +) + diff --git a/system/BUILD b/system/BUILD index 16ab8950..75418324 100644 --- a/system/BUILD +++ b/system/BUILD @@ -8,7 +8,7 @@ package(default_visibility = ["//visibility:public"], licenses = ["notice"],) filegroup( - name = "gnoi_proto_srcs", + name = "system_proto_srcs", srcs = glob(["gnoi/common/*.proto", "gnoi/types/*.proto"]), ) diff --git a/wavelength_router/BUILD b/wavelength_router/BUILD new file mode 100644 index 00000000..e144975e --- /dev/null +++ b/wavelength_router/BUILD @@ -0,0 +1,41 @@ +#Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Supporting infrastructure for implementing and testing PINS. +# +package( + default_visibility = ["//visibility:public"], + licenses = ["notice"], +) + +filegroup( + name = "wavelength_router_proto_srcs", + srcs = glob(["**/*.proto"]), + visibility = ["//third_party/pins_infra/thinkit:__pkg__"], +) + +proto_library( + name = "wavelength_router_proto", + srcs = ["wavelength_router.proto"], + deps = [ + "//common:common_proto", + "//types:types_proto", + ], +) + +cc_proto_library( + name = "wavelength_router_cc_proto", + deps = [":wavelength_router_proto"], +) + From ae18f959a86e754c7ae708edd0928b049f3a24d8 Mon Sep 17 00:00:00 2001 From: Vamsi Punati Date: Sun, 10 Jan 2021 21:33:50 -0800 Subject: [PATCH 066/238] [Bazel C++ compilation support for grpc] --- bgp/BUILD | 9 +++++++++ cert/BUILD | 8 ++++++++ common/BUILD | 9 +++++++++ diag/BUILD | 9 +++++++++ factory_reset/BUILD | 8 ++++++++ file/BUILD | 7 +++++++ interface/BUILD | 7 +++++++ layer2/BUILD | 7 +++++++ mpls/BUILD | 7 +++++++ os/BUILD | 9 +++++++++ otdr/BUILD | 9 +++++++++ system/BUILD | 1 + types/BUILD | 9 +++++++++ wavelength_router/BUILD | 9 +++++++++ 14 files changed, 108 insertions(+) diff --git a/bgp/BUILD b/bgp/BUILD index 2f1a610f..6a1ecb58 100644 --- a/bgp/BUILD +++ b/bgp/BUILD @@ -14,6 +14,9 @@ # # Supporting infrastructure for implementing and testing PINS. # + +load("@com_github_grpc_grpc//bazel:cc_grpc_library.bzl", "cc_grpc_library") + package( default_visibility = ["//visibility:public"], licenses = ["notice"], @@ -38,3 +41,9 @@ cc_proto_library( deps = [":bgp_proto"], ) +cc_grpc_library( + name = "bgp_cc_grpc_proto", + srcs = [":bgp_proto"], + deps = [":bgp_cc_proto"], + grpc_only = True, +) diff --git a/cert/BUILD b/cert/BUILD index 26d34e38..3ce6af43 100644 --- a/cert/BUILD +++ b/cert/BUILD @@ -14,6 +14,8 @@ # # Supporting infrastructure for implementing and testing PINS. # +load("@com_github_grpc_grpc//bazel:cc_grpc_library.bzl", "cc_grpc_library") + package( default_visibility = ["//visibility:public"], licenses = ["notice"], @@ -40,3 +42,9 @@ cc_proto_library( deps = [":cert_proto"], ) +cc_grpc_library( + name = "cert_cc_grpc_proto", + srcs = [":cert_proto"], + deps = [":cert_cc_proto"], + grpc_only = True, +) diff --git a/common/BUILD b/common/BUILD index 90dbe97f..e30a7f7a 100644 --- a/common/BUILD +++ b/common/BUILD @@ -14,6 +14,9 @@ # # Supporting infrastructure for implementing and testing PINS. # + +load("@com_github_grpc_grpc//bazel:cc_grpc_library.bzl", "cc_grpc_library") + package( default_visibility = ["//visibility:public"], licenses = ["notice"], @@ -40,3 +43,9 @@ cc_proto_library( deps = [":common_proto"], ) +cc_grpc_library( + name = "common_cc_grpc_proto", + srcs = [":common_proto"], + deps = [":common_cc_proto"], + grpc_only = True, +) diff --git a/diag/BUILD b/diag/BUILD index f2097b58..190d080f 100644 --- a/diag/BUILD +++ b/diag/BUILD @@ -14,6 +14,9 @@ # # Supporting infrastructure for implementing and testing PINS. # + +load("@com_github_grpc_grpc//bazel:cc_grpc_library.bzl", "cc_grpc_library") + package( default_visibility = ["//visibility:public"], licenses = ["notice"], @@ -38,3 +41,9 @@ cc_proto_library( deps = [":diag_proto"], ) +cc_grpc_library( + name = "diag_cc_grpc_proto", + srcs = [":diag_proto"], + deps = [":diag_cc_proto"], + grpc_only = True, +) diff --git a/factory_reset/BUILD b/factory_reset/BUILD index b907ce80..2cfc7dd6 100644 --- a/factory_reset/BUILD +++ b/factory_reset/BUILD @@ -14,6 +14,8 @@ # # Supporting infrastructure for implementing and testing PINS. # +load("@com_github_grpc_grpc//bazel:cc_grpc_library.bzl", "cc_grpc_library") + package( default_visibility = ["//visibility:public"], licenses = ["notice"], @@ -38,3 +40,9 @@ cc_proto_library( deps = [":reset_proto"], ) +cc_grpc_library( + name = "reset_cc_grpc_proto", + srcs = [":reset_proto"], + deps = [":reset_cc_proto"], + grpc_only = True, +) diff --git a/file/BUILD b/file/BUILD index d2d221be..abfc40fc 100644 --- a/file/BUILD +++ b/file/BUILD @@ -14,6 +14,7 @@ # # Supporting infrastructure for implementing and testing PINS. # +load("@com_github_grpc_grpc//bazel:cc_grpc_library.bzl", "cc_grpc_library") package( default_visibility = ["//visibility:public"], licenses = ["notice"], @@ -39,3 +40,9 @@ cc_proto_library( deps = [":file_proto"], ) +cc_grpc_library( + name = "file_cc_grpc_proto", + srcs = [":file_proto"], + deps = [":file_cc_proto"], + grpc_only = True, +) diff --git a/interface/BUILD b/interface/BUILD index 5137ccc9..eb4b29c1 100644 --- a/interface/BUILD +++ b/interface/BUILD @@ -14,6 +14,7 @@ # # Supporting infrastructure for implementing and testing PINS. # +load("@com_github_grpc_grpc//bazel:cc_grpc_library.bzl", "cc_grpc_library") package( default_visibility = ["//visibility:public"], licenses = ["notice"], @@ -39,3 +40,9 @@ cc_proto_library( deps = [":interface_proto"], ) +cc_grpc_library( + name = "interface_cc_grpc_proto", + srcs = [":interface_proto"], + deps = [":interface_cc_proto"], + grpc_only = True, +) diff --git a/layer2/BUILD b/layer2/BUILD index 65f5989c..095b1c32 100644 --- a/layer2/BUILD +++ b/layer2/BUILD @@ -14,6 +14,7 @@ # # Supporting infrastructure for implementing and testing PINS. # +load("@com_github_grpc_grpc//bazel:cc_grpc_library.bzl", "cc_grpc_library") package( default_visibility = ["//visibility:public"], licenses = ["notice"], @@ -39,3 +40,9 @@ cc_proto_library( deps = [":layer2_proto"], ) +cc_grpc_library( + name = "layer2_cc_grpc_proto", + srcs = [":layer2_proto"], + deps = [":layer2_cc_proto"], + grpc_only = True, +) diff --git a/mpls/BUILD b/mpls/BUILD index cc37b146..9afba4a8 100644 --- a/mpls/BUILD +++ b/mpls/BUILD @@ -14,6 +14,7 @@ # # Supporting infrastructure for implementing and testing PINS. # +load("@com_github_grpc_grpc//bazel:cc_grpc_library.bzl", "cc_grpc_library") package( default_visibility = ["//visibility:public"], licenses = ["notice"], @@ -39,3 +40,9 @@ cc_proto_library( deps = [":mpls_proto"], ) +cc_grpc_library( + name = "mpls_cc_grpc_proto", + srcs = [":mpls_proto"], + deps = [":mpls_cc_proto"], + grpc_only = True, +) diff --git a/os/BUILD b/os/BUILD index e559edb2..01f57460 100644 --- a/os/BUILD +++ b/os/BUILD @@ -14,6 +14,9 @@ # # Supporting infrastructure for implementing and testing PINS. # + +load("@com_github_grpc_grpc//bazel:cc_grpc_library.bzl", "cc_grpc_library") + package( default_visibility = ["//visibility:public"], licenses = ["notice"], @@ -39,3 +42,9 @@ cc_proto_library( deps = [":os_proto"], ) +cc_grpc_library( + name = "os_cc_grpc_proto", + srcs = [":os_proto"], + deps = [":os_cc_proto"], + grpc_only = True, +) diff --git a/otdr/BUILD b/otdr/BUILD index d5b56d49..06f62842 100644 --- a/otdr/BUILD +++ b/otdr/BUILD @@ -14,6 +14,9 @@ # # Supporting infrastructure for implementing and testing PINS. # + +load("@com_github_grpc_grpc//bazel:cc_grpc_library.bzl", "cc_grpc_library") + package( default_visibility = ["//visibility:public"], licenses = ["notice"], @@ -39,3 +42,9 @@ cc_proto_library( deps = [":otdr_proto"], ) +cc_grpc_library( + name = "otdr_cc_grpc_proto", + srcs = [":otdr_proto"], + deps = [":otdr_cc_proto"], + grpc_only = True, +) diff --git a/system/BUILD b/system/BUILD index 75418324..d25fb5f7 100644 --- a/system/BUILD +++ b/system/BUILD @@ -33,4 +33,5 @@ cc_grpc_library( name = "system_cc_grpc_proto", srcs = [":system_proto"], deps = [":system_cc_proto"], + grpc_only = True, ) diff --git a/types/BUILD b/types/BUILD index 96cb8912..5e086c2b 100644 --- a/types/BUILD +++ b/types/BUILD @@ -14,6 +14,9 @@ # # Supporting infrastructure for implementing and testing PINS. # + +load("@com_github_grpc_grpc//bazel:cc_grpc_library.bzl", "cc_grpc_library") + package( default_visibility = ["//visibility:public"], licenses = ["notice"], @@ -39,3 +42,9 @@ cc_proto_library( deps = [":types_proto"], ) +cc_grpc_library( + name = "types_cc_grpc_proto", + srcs = [":types_proto"], + deps = [":types_cc_proto"], + grpc_only = True, +) diff --git a/wavelength_router/BUILD b/wavelength_router/BUILD index e144975e..4744266d 100644 --- a/wavelength_router/BUILD +++ b/wavelength_router/BUILD @@ -14,6 +14,9 @@ # # Supporting infrastructure for implementing and testing PINS. # + +load("@com_github_grpc_grpc//bazel:cc_grpc_library.bzl", "cc_grpc_library") + package( default_visibility = ["//visibility:public"], licenses = ["notice"], @@ -39,3 +42,9 @@ cc_proto_library( deps = [":wavelength_router_proto"], ) +cc_grpc_library( + name = "wavelength_router_cc_grpc_proto", + srcs = [":wavelength_router_proto"], + deps = [":wavelength_router_cc_proto"], + grpc_only = True, +) From 176c6fcc429dbb2c0edeb7253062d2cebcbde126 Mon Sep 17 00:00:00 2001 From: Vamsi Punati Date: Wed, 5 May 2021 20:48:00 -0700 Subject: [PATCH 067/238] Fixing path issues in build files --- bgp/BUILD | 1 + bgp/bgp.proto | 3 +-- cert/BUILD | 1 + cert/cert.proto | 3 +-- common/BUILD | 1 + common/common.proto | 3 +-- diag/BUILD | 1 + diag/diag.proto | 3 +-- factory_reset/BUILD | 1 + factory_reset/reset.proto | 3 +-- file/BUILD | 1 + file/file.proto | 6 ++---- interface/BUILD | 1 + interface/interface.proto | 3 +-- layer2/BUILD | 1 + layer2/layer2.proto | 3 +-- mpls/BUILD | 1 + mpls/mpls.proto | 3 +-- os/BUILD | 1 + os/os.proto | 3 +-- otdr/BUILD | 1 + otdr/otdr.proto | 3 +-- system/BUILD | 1 + system/system.proto | 7 ++----- types/BUILD | 1 + wavelength_router/BUILD | 1 + wavelength_router/wavelength_router.proto | 3 +-- 27 files changed, 29 insertions(+), 31 deletions(-) diff --git a/bgp/BUILD b/bgp/BUILD index 6a1ecb58..f4b9be16 100644 --- a/bgp/BUILD +++ b/bgp/BUILD @@ -31,6 +31,7 @@ filegroup( proto_library( name = "bgp_proto", srcs = ["bgp.proto"], + import_prefix = "github.com/openconfig/gnoi", deps = [ "//types:types_proto", ], diff --git a/bgp/bgp.proto b/bgp/bgp.proto index 5bb831ac..124efabc 100644 --- a/bgp/bgp.proto +++ b/bgp/bgp.proto @@ -16,8 +16,7 @@ syntax = "proto3"; -// import "github.com/openconfig/gnoi/types/types.proto"; -import "types/types.proto"; +import "github.com/openconfig/gnoi/types/types.proto"; package gnoi.bgp; diff --git a/cert/BUILD b/cert/BUILD index 3ce6af43..e6529956 100644 --- a/cert/BUILD +++ b/cert/BUILD @@ -30,6 +30,7 @@ filegroup( proto_library( name = "cert_proto", srcs = ["cert.proto"], + import_prefix = "github.com/openconfig/gnoi", deps = [ "@com_google_protobuf//:any_proto", "@com_google_protobuf//:descriptor_proto", diff --git a/cert/cert.proto b/cert/cert.proto index 74538b67..f720e453 100644 --- a/cert/cert.proto +++ b/cert/cert.proto @@ -18,8 +18,7 @@ // rotation. syntax = "proto3"; -// import "github.com/openconfig/gnoi/types/types.proto"; -import "types/types.proto"; +import "github.com/openconfig/gnoi/types/types.proto"; package gnoi.certificate; diff --git a/common/BUILD b/common/BUILD index e30a7f7a..ea198e6d 100644 --- a/common/BUILD +++ b/common/BUILD @@ -31,6 +31,7 @@ filegroup( proto_library( name = "common_proto", srcs = ["common.proto"], + import_prefix = "github.com/openconfig/gnoi", deps = [ "//types:types_proto", "@com_google_protobuf//:any_proto", diff --git a/common/common.proto b/common/common.proto index 4c32060f..f2928fca 100644 --- a/common/common.proto +++ b/common/common.proto @@ -18,8 +18,7 @@ syntax = "proto3"; package gnoi.common; -// import "github.com/openconfig/gnoi/types/types.proto"; -import "types/types.proto"; +import "github.com/openconfig/gnoi/types/types.proto"; // RemoteDownload defines the details for a device to initiate a file transfer // from or to a remote location. diff --git a/diag/BUILD b/diag/BUILD index 190d080f..7895d2f9 100644 --- a/diag/BUILD +++ b/diag/BUILD @@ -31,6 +31,7 @@ filegroup( proto_library( name = "diag_proto", srcs = ["diag.proto"], + import_prefix = "github.com/openconfig/gnoi", deps = [ "//types:types_proto", ], diff --git a/diag/diag.proto b/diag/diag.proto index 88d1e42c..84592d6a 100644 --- a/diag/diag.proto +++ b/diag/diag.proto @@ -20,8 +20,7 @@ syntax = "proto3"; package gnoi.diag; -// import "github.com/openconfig/gnoi/types/types.proto"; -import "types/types.proto"; +import "github.com/openconfig/gnoi/types/types.proto"; option (types.gnoi_version) = "0.1.0"; diff --git a/factory_reset/BUILD b/factory_reset/BUILD index 2cfc7dd6..7ee115c7 100644 --- a/factory_reset/BUILD +++ b/factory_reset/BUILD @@ -30,6 +30,7 @@ filegroup( proto_library( name = "reset_proto", srcs = ["reset.proto"], + import_prefix = "github.com/openconfig/gnoi", deps = [ "//types:types_proto", ], diff --git a/factory_reset/reset.proto b/factory_reset/reset.proto index 9ce6560d..fba8e31e 100644 --- a/factory_reset/reset.proto +++ b/factory_reset/reset.proto @@ -3,8 +3,7 @@ syntax = "proto3"; package gnoi.factory_reset; -// import "github.com/openconfig/gnoi/types/types.proto"; -import "types/types.proto"; +import "github.com/openconfig/gnoi/types/types.proto"; option (types.gnoi_version) = "0.1.0"; diff --git a/file/BUILD b/file/BUILD index abfc40fc..59a15b6b 100644 --- a/file/BUILD +++ b/file/BUILD @@ -29,6 +29,7 @@ filegroup( proto_library( name = "file_proto", srcs = ["file.proto"], + import_prefix = "github.com/openconfig/gnoi", deps = [ "//types:types_proto", "//common:common_proto", diff --git a/file/file.proto b/file/file.proto index 5dd0b2e5..bc644ddd 100644 --- a/file/file.proto +++ b/file/file.proto @@ -18,10 +18,8 @@ syntax = "proto3"; package gnoi.file; -// import "github.com/openconfig/gnoi/types/types.proto"; -// import "github.com/openconfig/gnoi/common/common.proto"; -import "types/types.proto"; -import "common/common.proto"; +import "github.com/openconfig/gnoi/types/types.proto"; +import "github.com/openconfig/gnoi/common/common.proto"; option (types.gnoi_version) = "0.1.0"; diff --git a/interface/BUILD b/interface/BUILD index eb4b29c1..9379161b 100644 --- a/interface/BUILD +++ b/interface/BUILD @@ -29,6 +29,7 @@ filegroup( proto_library( name = "interface_proto", srcs = ["interface.proto"], + import_prefix = "github.com/openconfig/gnoi", deps = [ "//types:types_proto", "//common:common_proto", diff --git a/interface/interface.proto b/interface/interface.proto index a0e3f8f7..f8d4201e 100644 --- a/interface/interface.proto +++ b/interface/interface.proto @@ -18,8 +18,7 @@ syntax = "proto3"; package gnoi.interface; -// import "github.com/openconfig/gnoi/types/types.proto"; -import "types/types.proto"; +import "github.com/openconfig/gnoi/types/types.proto"; option (types.gnoi_version) = "0.1.0"; diff --git a/layer2/BUILD b/layer2/BUILD index 095b1c32..7df3b062 100644 --- a/layer2/BUILD +++ b/layer2/BUILD @@ -29,6 +29,7 @@ filegroup( proto_library( name = "layer2_proto", srcs = ["layer2.proto"], + import_prefix = "github.com/openconfig/gnoi", deps = [ "//types:types_proto", "//common:common_proto", diff --git a/layer2/layer2.proto b/layer2/layer2.proto index 8b6977e0..75c2471f 100644 --- a/layer2/layer2.proto +++ b/layer2/layer2.proto @@ -18,8 +18,7 @@ syntax = "proto3"; package gnoi.layer2; -// import "github.com/openconfig/gnoi/types/types.proto"; -import "types/types.proto"; +import "github.com/openconfig/gnoi/types/types.proto"; option (types.gnoi_version) = "0.1.0"; diff --git a/mpls/BUILD b/mpls/BUILD index 9afba4a8..a29ae4c8 100644 --- a/mpls/BUILD +++ b/mpls/BUILD @@ -29,6 +29,7 @@ filegroup( proto_library( name = "mpls_proto", srcs = ["mpls.proto"], + import_prefix = "github.com/openconfig/gnoi", deps = [ "//types:types_proto", "//common:common_proto", diff --git a/mpls/mpls.proto b/mpls/mpls.proto index e51f68bd..e1b1f011 100644 --- a/mpls/mpls.proto +++ b/mpls/mpls.proto @@ -16,8 +16,7 @@ syntax = "proto3"; -// import "github.com/openconfig/gnoi/types/types.proto"; -import "types/types.proto"; +import "github.com/openconfig/gnoi/types/types.proto"; package gnoi.mpls; diff --git a/os/BUILD b/os/BUILD index 01f57460..fb9e80d2 100644 --- a/os/BUILD +++ b/os/BUILD @@ -31,6 +31,7 @@ filegroup( proto_library( name = "os_proto", srcs = ["os.proto"], + import_prefix = "github.com/openconfig/gnoi", deps = [ "//types:types_proto", "//common:common_proto", diff --git a/os/os.proto b/os/os.proto index 6efbfb84..04fc5992 100644 --- a/os/os.proto +++ b/os/os.proto @@ -3,8 +3,7 @@ syntax = "proto3"; package gnoi.os; -// import "github.com/openconfig/gnoi/types/types.proto"; -import "types/types.proto"; +import "github.com/openconfig/gnoi/types/types.proto"; option (types.gnoi_version) = "0.1.0"; diff --git a/otdr/BUILD b/otdr/BUILD index 06f62842..3cc40d6a 100644 --- a/otdr/BUILD +++ b/otdr/BUILD @@ -31,6 +31,7 @@ filegroup( proto_library( name = "otdr_proto", srcs = ["otdr.proto"], + import_prefix = "github.com/openconfig/gnoi", deps = [ "//types:types_proto", "//common:common_proto", diff --git a/otdr/otdr.proto b/otdr/otdr.proto index 8599d7cb..79963212 100644 --- a/otdr/otdr.proto +++ b/otdr/otdr.proto @@ -18,8 +18,7 @@ syntax = "proto3"; package gnoi.optical; -// import "github.com/openconfig/gnoi/types/types.proto"; -import "types/types.proto"; +import "github.com/openconfig/gnoi/types/types.proto"; option (types.gnoi_version) = "0.1.0"; diff --git a/system/BUILD b/system/BUILD index d25fb5f7..0d083201 100644 --- a/system/BUILD +++ b/system/BUILD @@ -16,6 +16,7 @@ filegroup( proto_library( name = "system_proto", srcs = ["system.proto"], + import_prefix = "github.com/openconfig/gnoi", deps = [ "@com_google_protobuf//:any_proto", "@com_google_protobuf//:descriptor_proto", diff --git a/system/system.proto b/system/system.proto index 9c2a72b3..5ebbfff3 100644 --- a/system/system.proto +++ b/system/system.proto @@ -24,11 +24,8 @@ syntax = "proto3"; package gnoi.system; -// import "github.com/openconfig/gnoi/common/common.proto"; -// import "github.com/openconfig/gnoi/types/types.proto"; - -import "common/common.proto"; -import "types/types.proto"; +import "github.com/openconfig/gnoi/common/common.proto"; +import "github.com/openconfig/gnoi/types/types.proto"; option (types.gnoi_version) = "1.0.0"; diff --git a/types/BUILD b/types/BUILD index 5e086c2b..3952806a 100644 --- a/types/BUILD +++ b/types/BUILD @@ -31,6 +31,7 @@ filegroup( proto_library( name = "types_proto", srcs = ["types.proto"], + import_prefix = "github.com/openconfig/gnoi", deps = [ "@com_google_protobuf//:any_proto", "@com_google_protobuf//:descriptor_proto", diff --git a/wavelength_router/BUILD b/wavelength_router/BUILD index 4744266d..36440b59 100644 --- a/wavelength_router/BUILD +++ b/wavelength_router/BUILD @@ -31,6 +31,7 @@ filegroup( proto_library( name = "wavelength_router_proto", srcs = ["wavelength_router.proto"], + import_prefix = "github.com/openconfig/gnoi", deps = [ "//common:common_proto", "//types:types_proto", diff --git a/wavelength_router/wavelength_router.proto b/wavelength_router/wavelength_router.proto index a4f38ee0..12c8b50f 100644 --- a/wavelength_router/wavelength_router.proto +++ b/wavelength_router/wavelength_router.proto @@ -18,8 +18,7 @@ syntax = "proto3"; package gnoi.optical; -// import "github.com/openconfig/gnoi/types/types.proto"; -import "types/types.proto"; +import "github.com/openconfig/gnoi/types/types.proto"; option (types.gnoi_version) = "0.2.0"; From a883ade61682022743f2ddb80ced4353c976e8f1 Mon Sep 17 00:00:00 2001 From: Rob Shakir Date: Tue, 24 Nov 2020 17:03:09 -0800 Subject: [PATCH 068/238] Migrate from Travis-CI to GitHub actions. * (D) .travis.yml - Disable travis-ci. * (A) .github/workflows/go.yml - Ensure that any Go files within the project are tested. This covers the tests that are added directly within the project. * (A) .github/workflows/linter.yml - Use the GitHub "super-linter" to lint stuff! --- .github/workflows/go.yml | 63 ++++++++++++++++++++++++++++++++++++ .github/workflows/linter.yml | 26 +++++++++++++++ .travis.yml | 8 ----- 3 files changed, 89 insertions(+), 8 deletions(-) create mode 100644 .github/workflows/go.yml create mode 100644 .github/workflows/linter.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml new file mode 100644 index 00000000..33fb9492 --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,63 @@ +name: Go + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + name: Build + runs-on: ubuntu-latest + strategy: + matrix: + go: ['1.12', '1.13', '1.14', '1.15'] + steps: + + - name: Set up Go ${{ matrix.go }} + uses: actions/setup-go@v2 + with: + go-version: ${{ matrix.go }} + id: go + + - name: Check out code into the Go module directory + uses: actions/checkout@v2 + + - name: Get dependencies + run: | + go get -v -t -d ./... + + - name: Build + run: go build -v ./... + + - name: Test + run: go test -v -coverprofile=profile.cov ./... + + static_analysis: + name: Static Analysis + runs-on: ubuntu-latest + + steps: + - name: Install Go + uses: actions/setup-go@v2 + with: + go-version: '1.14' + id: go + + - name: Install required static analysis tools + run: | + go get -u honnef.co/go/tools/cmd/staticcheck + + - name: Check out ygot code + uses: actions/checkout@v2 + + - name: Go vet + run: go vet ./... + + - name: Check gofmt + run: diff -u <(echo -n) <(gofmt -d -s .) + + - name: Staticcheck + run: | + staticcheck ./... diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml new file mode 100644 index 00000000..9f891bd2 --- /dev/null +++ b/.github/workflows/linter.yml @@ -0,0 +1,26 @@ +name: Lint Code Base + +on: + push: + branches-ignore: [master] + # Remove the line above to run when pushing to master + pull_request: + branches: [master] + +jobs: + build: + name: Lint Code Base + runs-on: ubuntu-latest + + steps: + - name: Checkout Code + uses: actions/checkout@v2 + with: + fetch-depth: 0 + + - name: Lint Code Base + uses: github/super-linter@v3 + env: + VALIDATE_ALL_CODEBASE: false + DEFAULT_BRANCH: master + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 64b227f1..00000000 --- a/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -language: go -go: - - 1.9.x - - 1.10.x - - 1.11.x - - master -script: - - go test ./... From daf0853eeb6c0e1a6171026abe55f655e1cad034 Mon Sep 17 00:00:00 2001 From: Rob Shakir Date: Tue, 24 Nov 2020 17:06:38 -0800 Subject: [PATCH 069/238] Add go module support. --- .github/workflows/go.yml | 6 ++- go.mod | 9 +++++ go.sum | 82 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 96 insertions(+), 1 deletion(-) create mode 100644 go.mod create mode 100644 go.sum diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 33fb9492..1006318d 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -49,9 +49,13 @@ jobs: run: | go get -u honnef.co/go/tools/cmd/staticcheck - - name: Check out ygot code + - name: Check out code uses: actions/checkout@v2 + - name: get dependencies + run: | + go get -v -t -d ./... + - name: Go vet run: go vet ./... diff --git a/go.mod b/go.mod new file mode 100644 index 00000000..b084997e --- /dev/null +++ b/go.mod @@ -0,0 +1,9 @@ +module github.com/openconfig/gnoi + +go 1.15 + +require ( + github.com/golang/protobuf v1.4.3 + golang.org/x/net v0.0.0-20201110031124-69a78807bb2b + google.golang.org/grpc v1.33.2 +) diff --git a/go.sum b/go.sum new file mode 100644 index 00000000..0b6e5e08 --- /dev/null +++ b/go.sum @@ -0,0 +1,82 @@ +cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= +github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= +github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= +github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= +github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= +github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= +github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98= +github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= +github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= +github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= +github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8= +github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA= +github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs= +github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w= +github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0= +github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8= +github.com/golang/protobuf v1.4.3 h1:JjCZWpVbqXDqFVmTfYWEVTMIYrL/NPdPSCHPJ0T/raM= +github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= +github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= +github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= +github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= +github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= +golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= +golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= +golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= +golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= +golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20201110031124-69a78807bb2b h1:uwuIcX0g4Yl1NC5XAz37xsr2lTtcqevgzYNVt49waME= +golang.org/x/net v0.0.0-20201110031124-69a78807bb2b/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= +golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= +golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/text v0.3.3 h1:cokOdA+Jmi5PJGXLlLllQSgYigAEfHXJAERHVMaCc2k= +golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= +golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= +golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= +golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= +google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= +google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= +google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= +google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013 h1:+kGHl1aib/qcwaRi1CbqBZ1rk19r85MNUf8HaBghugY= +google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= +google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= +google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= +google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY= +google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= +google.golang.org/grpc v1.33.2 h1:EQyQC3sa8M+p6Ulc8yy9SWSS2GVwyRc83gAbG8lrl4o= +google.golang.org/grpc v1.33.2/go.mod h1:JMHMWHQWaTccqQQlmk3MJZS+GWXOdAesneDmEnv2fbc= +google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= +google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= +google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= +google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE= +google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo= +google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.25.0 h1:Ejskq+SyPohKW+1uil0JJMtmHCgJPJ/qWTxr8qp+R4c= +google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c= +honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= From eb4843bd9866c7e937ae4506bafab09a96ba481e Mon Sep 17 00:00:00 2001 From: Rob Shakir Date: Tue, 24 Nov 2020 17:09:14 -0800 Subject: [PATCH 070/238] Remove staticcheck since it does not work well against .pb.go files. --- .github/workflows/go.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 1006318d..a08c2859 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -61,7 +61,3 @@ jobs: - name: Check gofmt run: diff -u <(echo -n) <(gofmt -d -s .) - - - name: Staticcheck - run: | - staticcheck ./... From f092a923502159b9dbc74b9605c8a4f739a84183 Mon Sep 17 00:00:00 2001 From: Rob Shakir Date: Mon, 5 Apr 2021 12:35:59 -0700 Subject: [PATCH 071/238] Move to using protolint. --- .github/workflows/linter.yml | 8 ++------ .protolint.yml | 5 +++++ 2 files changed, 7 insertions(+), 6 deletions(-) create mode 100644 .protolint.yml diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index 9f891bd2..5bb27d64 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -18,9 +18,5 @@ jobs: with: fetch-depth: 0 - - name: Lint Code Base - uses: github/super-linter@v3 - env: - VALIDATE_ALL_CODEBASE: false - DEFAULT_BRANCH: master - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Lint protobuf + uses: plexsystems/protolint-action@v0.2.0 diff --git a/.protolint.yml b/.protolint.yml new file mode 100644 index 00000000..5076ac02 --- /dev/null +++ b/.protolint.yml @@ -0,0 +1,5 @@ +lint: + rules: + remove: + - ENUM_FIELD_NAMES_PREFIX + - ENUM_FIELD_NAMES_ZERO_VALUE_END_WITH From 4ce4cf338d345c5e25c621da858ea22806070e5c Mon Sep 17 00:00:00 2001 From: Rob Shakir Date: Mon, 5 Apr 2021 12:39:02 -0700 Subject: [PATCH 072/238] Update directory containing protolint config. --- .protolint.yml => .github/.protolint.yml | 0 .github/workflows/linter.yml | 1 + 2 files changed, 1 insertion(+) rename .protolint.yml => .github/.protolint.yml (100%) diff --git a/.protolint.yml b/.github/.protolint.yml similarity index 100% rename from .protolint.yml rename to .github/.protolint.yml diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index 5bb27d64..e57da543 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -20,3 +20,4 @@ jobs: - name: Lint protobuf uses: plexsystems/protolint-action@v0.2.0 + configDirectory: .github From abe32a6fabde2c8280036ec71f6dfc6c30ec9ca1 Mon Sep 17 00:00:00 2001 From: Rob Shakir Date: Mon, 5 Apr 2021 12:41:07 -0700 Subject: [PATCH 073/238] Fix syntax error in workflow config. --- .github/workflows/linter.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index e57da543..a62f8ef3 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -20,4 +20,5 @@ jobs: - name: Lint protobuf uses: plexsystems/protolint-action@v0.2.0 - configDirectory: .github + with: + configDirectory: .github From 073243de1a62eb81d0a70b613069809d63d33221 Mon Sep 17 00:00:00 2001 From: Rob Shakir Date: Mon, 5 Apr 2021 12:43:17 -0700 Subject: [PATCH 074/238] Fix path to protolint.yaml --- .github/{.protolint.yml => protolint.yaml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/{.protolint.yml => protolint.yaml} (100%) diff --git a/.github/.protolint.yml b/.github/protolint.yaml similarity index 100% rename from .github/.protolint.yml rename to .github/protolint.yaml From 23c12ebe1db0e6972ede3fe129e0d4ac467951f5 Mon Sep 17 00:00:00 2001 From: Rob Shakir Date: Mon, 5 Apr 2021 12:47:35 -0700 Subject: [PATCH 075/238] Bring cert.proto into conformance with linter. --- cert/cert.proto | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cert/cert.proto b/cert/cert.proto index f720e453..e9da3ecf 100644 --- a/cert/cert.proto +++ b/cert/cert.proto @@ -18,10 +18,10 @@ // rotation. syntax = "proto3"; -import "github.com/openconfig/gnoi/types/types.proto"; - package gnoi.certificate; +import "github.com/openconfig/gnoi/types/types.proto"; + option (types.gnoi_version) = "0.2.0"; // The Certificate Management Service exported by targets. @@ -89,7 +89,7 @@ service CertificateManagement { // Step 6: Final commit. // Client ---> FinalizeRequest ----> Target rpc Rotate(stream RotateCertificateRequest) - returns (stream RotateCertificateResponse); + returns (stream RotateCertificateResponse); // Install will put a new Certificate on the target by creating a new CSR // request and placing the new Certificate based on the CSR on the target.The @@ -134,7 +134,7 @@ service CertificateManagement { // Client <- LoadCertificateResponse() <--- Target // rpc Install(stream InstallCertificateRequest) - returns (stream InstallCertificateResponse); + returns (stream InstallCertificateResponse); // When credentials are generated on the device, generates a keypair and // returns the Certificate Signing Request (CSR). The CSR has the public key, From 63f563b3d571a36e42a7323e8971135dea94dd9c Mon Sep 17 00:00:00 2001 From: Rob Shakir Date: Mon, 5 Apr 2021 12:48:20 -0700 Subject: [PATCH 076/238] Bring BGP into conformance with linter. --- bgp/bgp.proto | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/bgp/bgp.proto b/bgp/bgp.proto index 124efabc..77d46cd9 100644 --- a/bgp/bgp.proto +++ b/bgp/bgp.proto @@ -16,16 +16,17 @@ syntax = "proto3"; -import "github.com/openconfig/gnoi/types/types.proto"; - package gnoi.bgp; +import "github.com/openconfig/gnoi/types/types.proto"; + // The current semantic version of the gNOI BGP service. option (types.gnoi_version) = "0.1.0"; service BGP { // ClearBGPNeighbor clears a BGP session. - rpc ClearBGPNeighbor(ClearBGPNeighborRequest) returns (ClearBGPNeighborResponse) {} + rpc ClearBGPNeighbor(ClearBGPNeighborRequest) + returns (ClearBGPNeighborResponse) {} } From 4a7fa4a5ff8bad43dd5908844fa36ac522dc0747 Mon Sep 17 00:00:00 2001 From: Rob Shakir Date: Mon, 5 Apr 2021 12:49:25 -0700 Subject: [PATCH 077/238] Bring factory_reset into conformance with linter. --- factory_reset/reset.proto | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/factory_reset/reset.proto b/factory_reset/reset.proto index fba8e31e..19feff67 100644 --- a/factory_reset/reset.proto +++ b/factory_reset/reset.proto @@ -34,7 +34,8 @@ message StartRequest { bool zero_fill = 2; } -message ResetSuccess {} +message ResetSuccess { +} // Message also used in gRPC status.details field. message ResetError { From ac2cb24d0148b80007dbb13cb9932f0d19f9c74b Mon Sep 17 00:00:00 2001 From: Rob Shakir Date: Mon, 5 Apr 2021 12:50:36 -0700 Subject: [PATCH 078/238] Bring file into conformance with linter. --- file/file.proto | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/file/file.proto b/file/file.proto index bc644ddd..5897d025 100644 --- a/file/file.proto +++ b/file/file.proto @@ -18,8 +18,8 @@ syntax = "proto3"; package gnoi.file; -import "github.com/openconfig/gnoi/types/types.proto"; import "github.com/openconfig/gnoi/common/common.proto"; +import "github.com/openconfig/gnoi/types/types.proto"; option (types.gnoi_version) = "0.1.0"; @@ -36,7 +36,8 @@ service File { // transferred. An error is returned if the file does not exist, the file // transfer fails, or if there was an error reading the file. This is a // blocking call until the file transfer is complete. - rpc TransferToRemote(TransferToRemoteRequest) returns (TransferToRemoteResponse) {} + rpc TransferToRemote(TransferToRemoteRequest) + returns (TransferToRemoteResponse) {} // Put streams data into a file on the target. The file is sent in // sequential messages, each message containing up to 64KB of data. A final @@ -88,7 +89,8 @@ message PutRequest { } } -message PutResponse {} +message PutResponse { +} // A GetRequest specifies the remote_file to be streamed back // to the caller. The remote_file must be an absolute path to an @@ -151,4 +153,5 @@ message RemoveRequest { string remote_file = 1; } -message RemoveResponse {} +message RemoveResponse { +} From 17f37c042b9f4330fcca275f1df98e6c3778df3b Mon Sep 17 00:00:00 2001 From: Rob Shakir Date: Mon, 5 Apr 2021 12:52:12 -0700 Subject: [PATCH 079/238] Bring interface into conformance with linter. --- interface/interface.proto | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/interface/interface.proto b/interface/interface.proto index f8d4201e..bff9f11a 100644 --- a/interface/interface.proto +++ b/interface/interface.proto @@ -24,20 +24,23 @@ option (types.gnoi_version) = "0.1.0"; service Interface { // SetLoopbackMode is used to set the mode of loopback on a interface. - rpc SetLoopbackMode(SetLoopbackModeRequest) returns (SetLoopbackModeResponse) {} + rpc SetLoopbackMode(SetLoopbackModeRequest) + returns (SetLoopbackModeResponse) {} // GetLoopbackMode is used to get the mode of loopback on a interface. - rpc GetLoopbackMode(GetLoopbackModeRequest) returns (GetLoopbackModeResponse) {} + rpc GetLoopbackMode(GetLoopbackModeRequest) + returns (GetLoopbackModeResponse) {} // ClearInterfaceCounters will reset the counters for the provided interface. - rpc ClearInterfaceCounters(ClearInterfaceCountersRequest) returns (ClearInterfaceCountersResponse) {} + rpc ClearInterfaceCounters(ClearInterfaceCountersRequest) + returns (ClearInterfaceCountersResponse) {} } -// SetLoopbackModeRequest requests the provide interface be have its loopback mode -// set to mode. Mode may be vendor specific. For example, on a transport -// device, available modes are "none", "mac", "phy", "phy_remote", -// "framer_facility", and "framer_terminal". +// SetLoopbackModeRequest requests the provide interface be have its loopback +// mode set to the specified mode. The mode may be vendor specific. For example, +// on a transport device, available modes are "none", "mac", "phy", +// "phy_remote", "framer_facility", and "framer_terminal". message SetLoopbackModeRequest { types.Path interface = 1; string mode = 2; From 0385fb5ef0266eb3d9ec9dceb7878b05fa5cce02 Mon Sep 17 00:00:00 2001 From: Rob Shakir Date: Mon, 5 Apr 2021 12:53:17 -0700 Subject: [PATCH 080/238] Bring layer2 into conformance with linter. --- layer2/layer2.proto | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/layer2/layer2.proto b/layer2/layer2.proto index 75c2471f..fe8725ec 100644 --- a/layer2/layer2.proto +++ b/layer2/layer2.proto @@ -27,24 +27,29 @@ service Layer2 { // clear the entire table based on parameters provided. // TODO: This method is subject to deprecation once OpenConfig models this // state. - rpc ClearNeighborDiscovery(ClearNeighborDiscoveryRequest) returns (ClearNeighborDiscoveryResponse) {} + rpc ClearNeighborDiscovery(ClearNeighborDiscoveryRequest) + returns (ClearNeighborDiscoveryResponse) {} // ClearSpanningTree will reset a blocked spanning tree interface. // TODO: This method is subject to deprecation once OpenConfig models this // state. - rpc ClearSpanningTree(ClearSpanningTreeRequest) returns (ClearSpanningTreeResponse) {} + rpc ClearSpanningTree(ClearSpanningTreeRequest) + returns (ClearSpanningTreeResponse) {} // PerformBERT will perform a BERT operation on a port. The stream will // return the current state of the operation as well as the ID for the // operation. - rpc PerformBERT(PerformBERTRequest) returns (stream PerformBERTResponse) {} + rpc PerformBERT(PerformBERTRequest) + returns (stream PerformBERTResponse) {} // ClearLLDPInterface will clear all LLDP adjacencies on the provided // interface. - rpc ClearLLDPInterface(ClearLLDPInterfaceRequest) returns (ClearLLDPInterfaceResponse) {} + rpc ClearLLDPInterface(ClearLLDPInterfaceRequest) + returns (ClearLLDPInterfaceResponse) {} // SendWakeOnLAN will send a WOL event on the requested interface. - rpc SendWakeOnLAN(SendWakeOnLANRequest) returns (SendWakeOnLANResponse) {} + rpc SendWakeOnLAN(SendWakeOnLANRequest) + returns (SendWakeOnLANResponse) {} } @@ -82,8 +87,10 @@ message PerformBERTResponse { BERTState state = 2; int64 elapsed_period = 3; // BERT test length in nanoseconds. bytes pattern = 4; // Pattern used for the BERT test. - int64 errors = 5; // Number of errors experienced since the start of the BERT test. - int64 received_bits = 6; // Number of bits received since the start of the BERT test.} + // Number of errors experienced since the start of the BERT test. + int64 errors = 5; + // Number of bits received since the start of the BERT test. + int64 received_bits = 6; } message ClearLLDPInterfaceRequest { From 12a3847edc68a5d214ecdd2719b85f58fd0c6807 Mon Sep 17 00:00:00 2001 From: Rob Shakir Date: Mon, 5 Apr 2021 12:54:40 -0700 Subject: [PATCH 081/238] Bring mpls into conformance with linter. --- mpls/mpls.proto | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/mpls/mpls.proto b/mpls/mpls.proto index e1b1f011..6192a94b 100644 --- a/mpls/mpls.proto +++ b/mpls/mpls.proto @@ -16,10 +16,10 @@ syntax = "proto3"; -import "github.com/openconfig/gnoi/types/types.proto"; - package gnoi.mpls; +import "github.com/openconfig/gnoi/types/types.proto"; + option (types.gnoi_version) = "0.1.0"; service MPLS { @@ -28,7 +28,8 @@ service MPLS { rpc ClearLSP(ClearLSPRequest) returns (ClearLSPResponse) {} // ClearLSPCounters will clear the MPLS counters for the provided LSP. - rpc ClearLSPCounters(ClearLSPCountersRequest) returns (ClearLSPCountersResponse) {} + rpc ClearLSPCounters(ClearLSPCountersRequest) + returns (ClearLSPCountersResponse) {} // An MPLS ping, specified as per RFC4379. rpc MPLSPing(MPLSPingRequest) returns (stream MPLSPingResponse) {} @@ -115,10 +116,13 @@ message MPLSPingRequest { // TODO(robjs): L3VPN, BGP-LU destination types. See RFC4379. } enum ReplyMode { - IPV4 = 0; // Reply via an IPv4 packet to this system. - ROUTER_ALERT = 1; // Reply with a labeled packet with the router alert bit set. + // Reply via an IPv4 packet to this system. + IPV4 = 0; + // Reply with a labeled packet with the router alert bit set. + ROUTER_ALERT = 1; } - ReplyMode reply_mode = 6; // How the target LER should respond to the LSP ping. + // How the target LER should respond to the LSP ping. + ReplyMode reply_mode = 6; // The number of MPLS echo request packets to send. uint32 count = 7; // default=3 // The size (in bytes) of each MPLS echo request packet. From a95373f478e5beab384607a8664073639749b6ad Mon Sep 17 00:00:00 2001 From: Rob Shakir Date: Mon, 5 Apr 2021 12:56:38 -0700 Subject: [PATCH 082/238] Bring OS into conformance with linter. --- os/os.proto | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/os/os.proto b/os/os.proto index 04fc5992..af82ee23 100644 --- a/os/os.proto +++ b/os/os.proto @@ -160,7 +160,8 @@ message TransferRequest { // omitting the InstallRequest->TransferRequest->version value, and the OS // package is the same as the one running in the Target, the RPC MUST // immediately abort and reply with an InstallError->type->INSTALL_RUN_PACKAGE. -message TransferEnd {} +message TransferEnd { +} // The InstallResponse is used by the Target to inform the Client about the // state of the Install RPC. At any stage of the process the Target can reply @@ -178,7 +179,8 @@ message InstallResponse { // The TransferReady message tells the Client that the Target is ready to accept // the transfer of the OS package. At this stage the Target MUST have cleared // enough space to accept the incoming OS package. -message TransferReady {} +message TransferReady { +} // The TransferProgress message is sent by the target asynchronously during a // file transfer. The device SHOULD not respond to each input block received @@ -270,7 +272,8 @@ message ActivateResponse { // Supervisor triggers a switchover before booting the (old)Active Supervisor. // The Target should always perform a switchover with the least impact possible // to forwarding. -message ActivateOK {} +message ActivateOK { +} message ActivateError { enum Type { @@ -284,7 +287,8 @@ message ActivateError { string detail = 2; } -message VerifyRequest {} +message VerifyRequest { +} message VerifyResponse { // The OS version currently running. From 2366b6c2047f9fda68502bc3788001a2193e4837 Mon Sep 17 00:00:00 2001 From: Rob Shakir Date: Mon, 5 Apr 2021 12:57:16 -0700 Subject: [PATCH 083/238] Update infrastructure rules. --- .github/protolint.yaml | 1 + compile_protos.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/protolint.yaml b/.github/protolint.yaml index 5076ac02..a4aba2e4 100644 --- a/.github/protolint.yaml +++ b/.github/protolint.yaml @@ -3,3 +3,4 @@ lint: remove: - ENUM_FIELD_NAMES_PREFIX - ENUM_FIELD_NAMES_ZERO_VALUE_END_WITH + - REPEATED_FIELD_NAMES_PLURALIZED diff --git a/compile_protos.sh b/compile_protos.sh index 74dfbee9..1685a180 100755 --- a/compile_protos.sh +++ b/compile_protos.sh @@ -4,7 +4,7 @@ set -euo pipefail proto_imports=".:${GOPATH}/src/github.com/google/protobuf/src:${GOPATH}/src" # Go -for p in types common diag bgp cert file interface layer2 mpls system otdr wavelength_router; do +for p in types common diag bgp cert file interface layer2 mpls system os otdr wavelength_router; do protoc -I=$proto_imports --go_out=plugins=grpc:. $p/$p.proto done From 1aece4ce0fdba0285de4a617ba1da538f3470cb5 Mon Sep 17 00:00:00 2001 From: Rob Shakir Date: Mon, 5 Apr 2021 15:48:52 -0700 Subject: [PATCH 084/238] Update protobuf files for linter. --- system/system.proto | 16 ++++++++-------- types/.types.proto.swp | Bin 12288 -> 0 bytes types/types.proto | 4 ++-- wavelength_router/wavelength_router.proto | 9 ++++++--- 4 files changed, 16 insertions(+), 13 deletions(-) delete mode 100644 types/.types.proto.swp diff --git a/system/system.proto b/system/system.proto index 5ebbfff3..143c0111 100644 --- a/system/system.proto +++ b/system/system.proto @@ -62,7 +62,8 @@ service System { // provided route processor. If the current route processor is the same as the // one provided it is a NOOP. If the target does not exist an error is // returned. - rpc SwitchControlProcessor(SwitchControlProcessorRequest) returns (SwitchControlProcessorResponse) {} + rpc SwitchControlProcessor(SwitchControlProcessorRequest) + returns (SwitchControlProcessorResponse) {} // Reboot causes the target to reboot, possibly at some point in the future. // If the method of reboot is not supported then the Reboot RPC will fail. @@ -124,8 +125,8 @@ enum RebootMethod { HALT = 3; // Halt, if possible. WARM = 4; // Reload configuration but not underlying hardware. NSF = 5; // Non-stop-forwarding reboot, if possible. - reserved 6; // RESET method is deprecated in favor of the gNOI - // FactoryReset.Start(). + // RESET method is deprecated in favor of the gNOI FactoryReset.Start(). + reserved 6; POWERUP = 7; // Apply power, no-op if power is already on. } @@ -300,12 +301,11 @@ message Package { // final message must be a hash message contains the hash of the file contents. message SetPackageRequest { oneof request { - Package package = 1; - bytes contents = 2; - types.HashType hash = 3; // Verification hash of data. - } + Package package = 1; + bytes contents = 2; + types.HashType hash = 3; // Verification hash of data. + } } - message SetPackageResponse { } diff --git a/types/.types.proto.swp b/types/.types.proto.swp deleted file mode 100644 index 04efd42ad5a816c8e688cfa87a5ccc536083a1bb..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 12288 zcmeI2&yN&E6vqoq@F!|8p13>*qhOZl{UJ(NFpj&+Zo}^Ey0Z&`n3$UGnwgfKuC}{o zhY2Eyzs@E`5hKRCcaC~A`WJXmq9+gDJ(!sIebqh9AO@m0O*Q$_)7`JD-uu*huS2Nz z^l5*Mj?||Gj>m-f@R`S6-M8-p@%=d=GTnYX=lgd#tlgo$4BA?sPcuDN&$R5<1D&Py zuGZaH;dft%x2&PJphM+#wU=js*NseX(B{XUPE``905nb5pV|-*K|eku#8=Rl&=u%yD1+M2HuMT~1bP~J3fd3- z@F2#8E<&fEW6-Y;2=N8*l5q}W&%5PDs5()iatbDl z5``B+GMZAAb#&GzIWRpQB9JE12|OT4q1uT8Rmb-b4)kSutZ-tgbmm1muSV8oDi6%O zCR2j%{N#W%h_5{`>L6L4G2M=g2N~F2;m|q+->Fn-nGXGL@!R zuP|)jY6%7fgH6>@8Fn42qttD#`P52P5Ou}@wp3sPovrg9W@dWQAj%Q76@k1CB5A;A zh)s+X8EaBaz?&IEFqKK=5ge4oMC{ZQ$yj4)?b|XLQN<#s1AvnsEU0EGRd$-2LvsL} zA(JGk-|&+o1cIC~GZLO|f~d}-F6eM3Rd4<64-B;`+bZTP2%}u~+fjD_U&;Z;xy6qC zJD?K~Z$@u9DjD=9!HvTp;K)?Yc?fn$KxrhIOd$t=yGR6?Aa8q$SIoLrEyaX2Bf%PC z1e8mJbpoo2bdkjQlwF%*71|>MBd$)%O%x@&rc6(V)Gto9;Kmibws_dC5iE&XD~-c5 zv*S1I_3Yv2ag7S)=iANJ#?pd+!e3g%&1t@=l0o0Lg>sIIRSs9Z!q#!#(}OtVj06Rn zC!BFvrZda2G9K4BgG7l%VG&H>dQPbDg3bnRs^*$fwL14J^6P3WdcQT3Df zZke>2OQbS5&#jg{o);qOr#drKD<=2GBYS8HK^CP33uN!rV4IH;BQGGln!Pp0_dJgi zIF9;}u~>2%Bq5;j06G7GoFavm2Vc|$E=Ckj zMhG{KRA^m7uPEDkc)QaS<=jjv1OARARBN=zZ`J7KM$2zau|wNQ%tL4DjX{L(61CAG zQ_K;_cB~N8kY|-$l)n8+p`i`4h`RzlKDuLuGUE=wBjM;7lOFZF;c!@&Sf`$<>#XZx zFvggBtNy}Lv$b?+7W?3fch2g8?ew~BB!-q0=yWvhrzL)LY#x48nkL#1KE7BCMA$)! z0Z*V(`z68#cepO`sVVyX#DZC3<%pBG8rIM8Qcuz8vIgKI9pLwC Date: Mon, 5 Apr 2021 15:53:51 -0700 Subject: [PATCH 085/238] Fix protolint version. --- .github/workflows/linter.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index a62f8ef3..e61d3eea 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -22,3 +22,5 @@ jobs: uses: plexsystems/protolint-action@v0.2.0 with: configDirectory: .github + env: + PROTOLINT_VERSION: 0.31.0 From c642bfa1e67b2256005ec4ff16a8d775e6be8c9a Mon Sep 17 00:00:00 2001 From: Rob Shakir Date: Mon, 5 Apr 2021 15:57:52 -0700 Subject: [PATCH 086/238] Move to using 0.31.0 of protolint. --- .github/workflows/linter.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index e61d3eea..82f36ddc 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -19,7 +19,7 @@ jobs: fetch-depth: 0 - name: Lint protobuf - uses: plexsystems/protolint-action@v0.2.0 + uses: robshakir/protolint-action@v0.3.0 with: configDirectory: .github env: From c8062e090a8031d42180fad7465d77632ff235ae Mon Sep 17 00:00:00 2001 From: Rob Shakir Date: Mon, 5 Apr 2021 16:21:05 -0700 Subject: [PATCH 087/238] Update protobuf generation, add go_package option. --- bgp/bgp.pb.go | 409 +- bgp/bgp.proto | 2 + bgp/bgp_grpc.pb.go | 103 + cert/cert.pb.go | 3398 +++++++++-------- cert/cert.proto | 2 + cert/cert_grpc.pb.go | 632 +++ common/common.pb.go | 291 +- common/common.proto | 2 + compile_protos.sh | 2 +- diag/diag.pb.go | 1869 +++++---- diag/diag.proto | 2 + diag/diag_grpc.pb.go | 251 ++ factory_reset/reset.proto | 2 + file/file.pb.go | 1655 ++++---- file/file.proto | 2 + file/file_grpc.pb.go | 353 ++ go.mod | 3 +- go.sum | 12 +- interface/interface.pb.go | 752 ++-- interface/interface.proto | 2 + interface/interface_grpc.pb.go | 179 + layer2/layer2.pb.go | 1326 ++++--- layer2/layer2.proto | 2 + layer2/layer2_grpc.pb.go | 299 ++ mpls/mpls.pb.go | 1401 +++---- mpls/mpls.proto | 2 + mpls/mpls_grpc.pb.go | 209 + os/os.pb.go | 1845 +++++++++ os/os.proto | 2 + os/os_grpc.pb.go | 380 ++ otdr/otdr.pb.go | 1409 ++++--- otdr/otdr.proto | 2 + otdr/otdr_grpc.pb.go | 144 + system/system.pb.go | 2906 +++++++------- system/system.proto | 2 + system/system_grpc.pb.go | 506 +++ types/types.pb.go | 730 ++-- types/types.proto | 2 + wavelength_router/wavelength_router.pb.go | 1702 +++++---- wavelength_router/wavelength_router.proto | 2 + .../wavelength_router_grpc.pb.go | 338 ++ 41 files changed, 15054 insertions(+), 8078 deletions(-) create mode 100644 bgp/bgp_grpc.pb.go create mode 100644 cert/cert_grpc.pb.go create mode 100644 diag/diag_grpc.pb.go create mode 100644 file/file_grpc.pb.go create mode 100644 interface/interface_grpc.pb.go create mode 100644 layer2/layer2_grpc.pb.go create mode 100644 mpls/mpls_grpc.pb.go create mode 100644 os/os.pb.go create mode 100644 os/os_grpc.pb.go create mode 100644 otdr/otdr_grpc.pb.go create mode 100644 system/system_grpc.pb.go create mode 100644 wavelength_router/wavelength_router_grpc.pb.go diff --git a/bgp/bgp.pb.go b/bgp/bgp.pb.go index 47523b58..67d68f83 100644 --- a/bgp/bgp.pb.go +++ b/bgp/bgp.pb.go @@ -1,244 +1,305 @@ +// +// Copyright 2017 Google Inc. All Rights Reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.26.0 +// protoc v3.15.7 // source: bgp/bgp.proto -package gnoi_bgp +package bgp import ( - fmt "fmt" - proto "github.com/golang/protobuf/proto" _ "github.com/openconfig/gnoi/types" - context "golang.org/x/net/context" - grpc "google.golang.org/grpc" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// 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 +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) type ClearBGPNeighborRequest_Mode int32 const ( - ClearBGPNeighborRequest_SOFT ClearBGPNeighborRequest_Mode = 0 - ClearBGPNeighborRequest_SOFTIN ClearBGPNeighborRequest_Mode = 1 - ClearBGPNeighborRequest_HARD ClearBGPNeighborRequest_Mode = 2 + ClearBGPNeighborRequest_SOFT ClearBGPNeighborRequest_Mode = 0 // Send route-refresh and reapply policy. + ClearBGPNeighborRequest_SOFTIN ClearBGPNeighborRequest_Mode = 1 // Re-apply inbound policy on stored Adj-RIB-In. + ClearBGPNeighborRequest_HARD ClearBGPNeighborRequest_Mode = 2 // Teardown and restart TCP connection. ) -var ClearBGPNeighborRequest_Mode_name = map[int32]string{ - 0: "SOFT", - 1: "SOFTIN", - 2: "HARD", -} +// Enum value maps for ClearBGPNeighborRequest_Mode. +var ( + ClearBGPNeighborRequest_Mode_name = map[int32]string{ + 0: "SOFT", + 1: "SOFTIN", + 2: "HARD", + } + ClearBGPNeighborRequest_Mode_value = map[string]int32{ + "SOFT": 0, + "SOFTIN": 1, + "HARD": 2, + } +) -var ClearBGPNeighborRequest_Mode_value = map[string]int32{ - "SOFT": 0, - "SOFTIN": 1, - "HARD": 2, +func (x ClearBGPNeighborRequest_Mode) Enum() *ClearBGPNeighborRequest_Mode { + p := new(ClearBGPNeighborRequest_Mode) + *p = x + return p } func (x ClearBGPNeighborRequest_Mode) String() string { - return proto.EnumName(ClearBGPNeighborRequest_Mode_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } +func (ClearBGPNeighborRequest_Mode) Descriptor() protoreflect.EnumDescriptor { + return file_bgp_bgp_proto_enumTypes[0].Descriptor() +} + +func (ClearBGPNeighborRequest_Mode) Type() protoreflect.EnumType { + return &file_bgp_bgp_proto_enumTypes[0] +} + +func (x ClearBGPNeighborRequest_Mode) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use ClearBGPNeighborRequest_Mode.Descriptor instead. func (ClearBGPNeighborRequest_Mode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_dd5905d96efb1c39, []int{0, 0} + return file_bgp_bgp_proto_rawDescGZIP(), []int{0, 0} } type ClearBGPNeighborRequest struct { - Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // IPv4 or IPv6 BGP neighbor address to clear. // Routing instance containing the neighbor. Defaults to the global routing // table. - RoutingInstance string `protobuf:"bytes,2,opt,name=routing_instance,json=routingInstance,proto3" json:"routing_instance,omitempty"` - Mode ClearBGPNeighborRequest_Mode `protobuf:"varint,3,opt,name=mode,proto3,enum=gnoi.bgp.ClearBGPNeighborRequest_Mode" json:"mode,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + RoutingInstance string `protobuf:"bytes,2,opt,name=routing_instance,json=routingInstance,proto3" json:"routing_instance,omitempty"` + Mode ClearBGPNeighborRequest_Mode `protobuf:"varint,3,opt,name=mode,proto3,enum=gnoi.bgp.ClearBGPNeighborRequest_Mode" json:"mode,omitempty"` // Which mode to use for the clear operation. } -func (m *ClearBGPNeighborRequest) Reset() { *m = ClearBGPNeighborRequest{} } -func (m *ClearBGPNeighborRequest) String() string { return proto.CompactTextString(m) } -func (*ClearBGPNeighborRequest) ProtoMessage() {} -func (*ClearBGPNeighborRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_dd5905d96efb1c39, []int{0} +func (x *ClearBGPNeighborRequest) Reset() { + *x = ClearBGPNeighborRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_bgp_bgp_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ClearBGPNeighborRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ClearBGPNeighborRequest.Unmarshal(m, b) -} -func (m *ClearBGPNeighborRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ClearBGPNeighborRequest.Marshal(b, m, deterministic) +func (x *ClearBGPNeighborRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ClearBGPNeighborRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ClearBGPNeighborRequest.Merge(m, src) -} -func (m *ClearBGPNeighborRequest) XXX_Size() int { - return xxx_messageInfo_ClearBGPNeighborRequest.Size(m) -} -func (m *ClearBGPNeighborRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ClearBGPNeighborRequest.DiscardUnknown(m) + +func (*ClearBGPNeighborRequest) ProtoMessage() {} + +func (x *ClearBGPNeighborRequest) ProtoReflect() protoreflect.Message { + mi := &file_bgp_bgp_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ClearBGPNeighborRequest proto.InternalMessageInfo +// Deprecated: Use ClearBGPNeighborRequest.ProtoReflect.Descriptor instead. +func (*ClearBGPNeighborRequest) Descriptor() ([]byte, []int) { + return file_bgp_bgp_proto_rawDescGZIP(), []int{0} +} -func (m *ClearBGPNeighborRequest) GetAddress() string { - if m != nil { - return m.Address +func (x *ClearBGPNeighborRequest) GetAddress() string { + if x != nil { + return x.Address } return "" } -func (m *ClearBGPNeighborRequest) GetRoutingInstance() string { - if m != nil { - return m.RoutingInstance +func (x *ClearBGPNeighborRequest) GetRoutingInstance() string { + if x != nil { + return x.RoutingInstance } return "" } -func (m *ClearBGPNeighborRequest) GetMode() ClearBGPNeighborRequest_Mode { - if m != nil { - return m.Mode +func (x *ClearBGPNeighborRequest) GetMode() ClearBGPNeighborRequest_Mode { + if x != nil { + return x.Mode } return ClearBGPNeighborRequest_SOFT } type ClearBGPNeighborResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ClearBGPNeighborResponse) Reset() { *m = ClearBGPNeighborResponse{} } -func (m *ClearBGPNeighborResponse) String() string { return proto.CompactTextString(m) } -func (*ClearBGPNeighborResponse) ProtoMessage() {} -func (*ClearBGPNeighborResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_dd5905d96efb1c39, []int{1} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *ClearBGPNeighborResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ClearBGPNeighborResponse.Unmarshal(m, b) -} -func (m *ClearBGPNeighborResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ClearBGPNeighborResponse.Marshal(b, m, deterministic) -} -func (m *ClearBGPNeighborResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ClearBGPNeighborResponse.Merge(m, src) -} -func (m *ClearBGPNeighborResponse) XXX_Size() int { - return xxx_messageInfo_ClearBGPNeighborResponse.Size(m) -} -func (m *ClearBGPNeighborResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ClearBGPNeighborResponse.DiscardUnknown(m) +func (x *ClearBGPNeighborResponse) Reset() { + *x = ClearBGPNeighborResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_bgp_bgp_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -var xxx_messageInfo_ClearBGPNeighborResponse proto.InternalMessageInfo - -func init() { - proto.RegisterEnum("gnoi.bgp.ClearBGPNeighborRequest_Mode", ClearBGPNeighborRequest_Mode_name, ClearBGPNeighborRequest_Mode_value) - proto.RegisterType((*ClearBGPNeighborRequest)(nil), "gnoi.bgp.ClearBGPNeighborRequest") - proto.RegisterType((*ClearBGPNeighborResponse)(nil), "gnoi.bgp.ClearBGPNeighborResponse") +func (x *ClearBGPNeighborResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func init() { proto.RegisterFile("bgp/bgp.proto", fileDescriptor_dd5905d96efb1c39) } +func (*ClearBGPNeighborResponse) ProtoMessage() {} -var fileDescriptor_dd5905d96efb1c39 = []byte{ - // 277 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x50, 0xb1, 0x4e, 0xc3, 0x30, - 0x14, 0x6c, 0xda, 0x50, 0xc2, 0x93, 0x80, 0xc8, 0x0b, 0x51, 0xa6, 0x92, 0xa1, 0x2a, 0x12, 0x72, - 0x4a, 0xd9, 0x18, 0x90, 0x08, 0x88, 0xd2, 0x81, 0x52, 0x05, 0x36, 0x06, 0x14, 0x27, 0xc6, 0xb5, - 0x44, 0xfd, 0x4c, 0xec, 0x0c, 0xfc, 0x1e, 0x9f, 0xc0, 0x17, 0xa1, 0x24, 0xed, 0x02, 0x82, 0x2e, - 0x96, 0xef, 0xde, 0xdd, 0xbb, 0xd3, 0x83, 0x7d, 0x26, 0x74, 0xcc, 0x84, 0xa6, 0xba, 0x44, 0x8b, - 0xc4, 0x13, 0x0a, 0x25, 0x65, 0x42, 0x87, 0xa7, 0x42, 0xda, 0x65, 0xc5, 0x68, 0x8e, 0xab, 0x18, - 0x35, 0x57, 0x39, 0xaa, 0x57, 0x29, 0xe2, 0x7a, 0x1e, 0xdb, 0x0f, 0xcd, 0x4d, 0xfb, 0xb6, 0xbe, - 0xe8, 0xd3, 0x81, 0xa3, 0xeb, 0x37, 0x9e, 0x95, 0xc9, 0x74, 0x31, 0xe7, 0x52, 0x2c, 0x19, 0x96, - 0x29, 0x7f, 0xaf, 0xb8, 0xb1, 0x24, 0x80, 0xdd, 0xac, 0x28, 0x4a, 0x6e, 0x4c, 0xe0, 0x0c, 0x9c, - 0xd1, 0x5e, 0xba, 0x81, 0xe4, 0x04, 0xfc, 0x12, 0x2b, 0x2b, 0x95, 0x78, 0x91, 0xca, 0xd8, 0x4c, - 0xe5, 0x3c, 0xe8, 0x36, 0x92, 0xc3, 0x35, 0x3f, 0x5b, 0xd3, 0xe4, 0x02, 0xdc, 0x15, 0x16, 0x3c, - 0xe8, 0x0d, 0x9c, 0xd1, 0xc1, 0x64, 0x48, 0x37, 0x3d, 0xe9, 0x1f, 0xa9, 0xf4, 0x1e, 0x0b, 0x9e, - 0x36, 0x9e, 0x68, 0x08, 0x6e, 0x8d, 0x88, 0x07, 0xee, 0xe3, 0xc3, 0xed, 0x93, 0xdf, 0x21, 0x00, - 0xfd, 0xfa, 0x37, 0x9b, 0xfb, 0x4e, 0xcd, 0xde, 0x5d, 0xa5, 0x37, 0x7e, 0x37, 0x0a, 0x21, 0xf8, - 0xbd, 0xcd, 0x68, 0x54, 0x86, 0x4f, 0x18, 0xf4, 0x92, 0xe9, 0x82, 0x3c, 0x83, 0xff, 0x53, 0x42, - 0x8e, 0xb7, 0x96, 0x09, 0xa3, 0xff, 0x24, 0x6d, 0x42, 0xd4, 0x49, 0xbc, 0xaf, 0xcb, 0x9d, 0x31, - 0x3d, 0xa3, 0x63, 0xd6, 0x6f, 0xae, 0x7a, 0xfe, 0x1d, 0x00, 0x00, 0xff, 0xff, 0x05, 0x3c, 0x32, - 0x2b, 0x9e, 0x01, 0x00, 0x00, +func (x *ClearBGPNeighborResponse) ProtoReflect() protoreflect.Message { + mi := &file_bgp_bgp_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// BGPClient is the client API for BGP service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type BGPClient interface { - // ClearBGPNeighbor clears a BGP session. - ClearBGPNeighbor(ctx context.Context, in *ClearBGPNeighborRequest, opts ...grpc.CallOption) (*ClearBGPNeighborResponse, error) +// Deprecated: Use ClearBGPNeighborResponse.ProtoReflect.Descriptor instead. +func (*ClearBGPNeighborResponse) Descriptor() ([]byte, []int) { + return file_bgp_bgp_proto_rawDescGZIP(), []int{1} } -type bGPClient struct { - cc *grpc.ClientConn +var File_bgp_bgp_proto protoreflect.FileDescriptor + +var file_bgp_bgp_proto_rawDesc = []byte{ + 0x0a, 0x0d, 0x62, 0x67, 0x70, 0x2f, 0x62, 0x67, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, + 0x08, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x62, 0x67, 0x70, 0x1a, 0x2c, 0x67, 0x69, 0x74, 0x68, 0x75, + 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x2f, 0x67, 0x6e, 0x6f, 0x69, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x74, 0x79, 0x70, 0x65, + 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc2, 0x01, 0x0a, 0x17, 0x43, 0x6c, 0x65, 0x61, + 0x72, 0x42, 0x47, 0x50, 0x4e, 0x65, 0x69, 0x67, 0x68, 0x62, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x29, 0x0a, + 0x10, 0x72, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x72, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, + 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x3a, 0x0a, 0x04, 0x6d, 0x6f, 0x64, 0x65, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x26, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x62, 0x67, + 0x70, 0x2e, 0x43, 0x6c, 0x65, 0x61, 0x72, 0x42, 0x47, 0x50, 0x4e, 0x65, 0x69, 0x67, 0x68, 0x62, + 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x04, + 0x6d, 0x6f, 0x64, 0x65, 0x22, 0x26, 0x0a, 0x04, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x08, 0x0a, 0x04, + 0x53, 0x4f, 0x46, 0x54, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x4f, 0x46, 0x54, 0x49, 0x4e, + 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x48, 0x41, 0x52, 0x44, 0x10, 0x02, 0x22, 0x1a, 0x0a, 0x18, + 0x43, 0x6c, 0x65, 0x61, 0x72, 0x42, 0x47, 0x50, 0x4e, 0x65, 0x69, 0x67, 0x68, 0x62, 0x6f, 0x72, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0x62, 0x0a, 0x03, 0x42, 0x47, 0x50, 0x12, + 0x5b, 0x0a, 0x10, 0x43, 0x6c, 0x65, 0x61, 0x72, 0x42, 0x47, 0x50, 0x4e, 0x65, 0x69, 0x67, 0x68, + 0x62, 0x6f, 0x72, 0x12, 0x21, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x62, 0x67, 0x70, 0x2e, 0x43, + 0x6c, 0x65, 0x61, 0x72, 0x42, 0x47, 0x50, 0x4e, 0x65, 0x69, 0x67, 0x68, 0x62, 0x6f, 0x72, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x62, 0x67, + 0x70, 0x2e, 0x43, 0x6c, 0x65, 0x61, 0x72, 0x42, 0x47, 0x50, 0x4e, 0x65, 0x69, 0x67, 0x68, 0x62, + 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x28, 0x5a, 0x1e, + 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x63, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x67, 0x6e, 0x6f, 0x69, 0x2f, 0x62, 0x67, 0x70, 0xd2, 0x3e, + 0x05, 0x30, 0x2e, 0x31, 0x2e, 0x30, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } -func NewBGPClient(cc *grpc.ClientConn) BGPClient { - return &bGPClient{cc} -} +var ( + file_bgp_bgp_proto_rawDescOnce sync.Once + file_bgp_bgp_proto_rawDescData = file_bgp_bgp_proto_rawDesc +) -func (c *bGPClient) ClearBGPNeighbor(ctx context.Context, in *ClearBGPNeighborRequest, opts ...grpc.CallOption) (*ClearBGPNeighborResponse, error) { - out := new(ClearBGPNeighborResponse) - err := c.cc.Invoke(ctx, "/gnoi.bgp.BGP/ClearBGPNeighbor", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +func file_bgp_bgp_proto_rawDescGZIP() []byte { + file_bgp_bgp_proto_rawDescOnce.Do(func() { + file_bgp_bgp_proto_rawDescData = protoimpl.X.CompressGZIP(file_bgp_bgp_proto_rawDescData) + }) + return file_bgp_bgp_proto_rawDescData } -// BGPServer is the server API for BGP service. -type BGPServer interface { - // ClearBGPNeighbor clears a BGP session. - ClearBGPNeighbor(context.Context, *ClearBGPNeighborRequest) (*ClearBGPNeighborResponse, error) +var file_bgp_bgp_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_bgp_bgp_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_bgp_bgp_proto_goTypes = []interface{}{ + (ClearBGPNeighborRequest_Mode)(0), // 0: gnoi.bgp.ClearBGPNeighborRequest.Mode + (*ClearBGPNeighborRequest)(nil), // 1: gnoi.bgp.ClearBGPNeighborRequest + (*ClearBGPNeighborResponse)(nil), // 2: gnoi.bgp.ClearBGPNeighborResponse } - -func RegisterBGPServer(s *grpc.Server, srv BGPServer) { - s.RegisterService(&_BGP_serviceDesc, srv) +var file_bgp_bgp_proto_depIdxs = []int32{ + 0, // 0: gnoi.bgp.ClearBGPNeighborRequest.mode:type_name -> gnoi.bgp.ClearBGPNeighborRequest.Mode + 1, // 1: gnoi.bgp.BGP.ClearBGPNeighbor:input_type -> gnoi.bgp.ClearBGPNeighborRequest + 2, // 2: gnoi.bgp.BGP.ClearBGPNeighbor:output_type -> gnoi.bgp.ClearBGPNeighborResponse + 2, // [2:3] is the sub-list for method output_type + 1, // [1:2] is the sub-list for method input_type + 1, // [1:1] is the sub-list for extension type_name + 1, // [1:1] is the sub-list for extension extendee + 0, // [0:1] is the sub-list for field type_name } -func _BGP_ClearBGPNeighbor_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ClearBGPNeighborRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(BGPServer).ClearBGPNeighbor(ctx, in) +func init() { file_bgp_bgp_proto_init() } +func file_bgp_bgp_proto_init() { + if File_bgp_bgp_proto != nil { + return } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.bgp.BGP/ClearBGPNeighbor", + if !protoimpl.UnsafeEnabled { + file_bgp_bgp_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ClearBGPNeighborRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_bgp_bgp_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ClearBGPNeighborResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(BGPServer).ClearBGPNeighbor(ctx, req.(*ClearBGPNeighborRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _BGP_serviceDesc = grpc.ServiceDesc{ - ServiceName: "gnoi.bgp.BGP", - HandlerType: (*BGPServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "ClearBGPNeighbor", - Handler: _BGP_ClearBGPNeighbor_Handler, + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_bgp_bgp_proto_rawDesc, + NumEnums: 1, + NumMessages: 2, + NumExtensions: 0, + NumServices: 1, }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "bgp/bgp.proto", + GoTypes: file_bgp_bgp_proto_goTypes, + DependencyIndexes: file_bgp_bgp_proto_depIdxs, + EnumInfos: file_bgp_bgp_proto_enumTypes, + MessageInfos: file_bgp_bgp_proto_msgTypes, + }.Build() + File_bgp_bgp_proto = out.File + file_bgp_bgp_proto_rawDesc = nil + file_bgp_bgp_proto_goTypes = nil + file_bgp_bgp_proto_depIdxs = nil } diff --git a/bgp/bgp.proto b/bgp/bgp.proto index 77d46cd9..8f8a8c72 100644 --- a/bgp/bgp.proto +++ b/bgp/bgp.proto @@ -20,6 +20,8 @@ package gnoi.bgp; import "github.com/openconfig/gnoi/types/types.proto"; +option go_package = "github.com/openconfig/gnoi/bgp"; + // The current semantic version of the gNOI BGP service. option (types.gnoi_version) = "0.1.0"; diff --git a/bgp/bgp_grpc.pb.go b/bgp/bgp_grpc.pb.go new file mode 100644 index 00000000..86676828 --- /dev/null +++ b/bgp/bgp_grpc.pb.go @@ -0,0 +1,103 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. + +package bgp + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.32.0 or later. +const _ = grpc.SupportPackageIsVersion7 + +// BGPClient is the client API for BGP service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type BGPClient interface { + // ClearBGPNeighbor clears a BGP session. + ClearBGPNeighbor(ctx context.Context, in *ClearBGPNeighborRequest, opts ...grpc.CallOption) (*ClearBGPNeighborResponse, error) +} + +type bGPClient struct { + cc grpc.ClientConnInterface +} + +func NewBGPClient(cc grpc.ClientConnInterface) BGPClient { + return &bGPClient{cc} +} + +func (c *bGPClient) ClearBGPNeighbor(ctx context.Context, in *ClearBGPNeighborRequest, opts ...grpc.CallOption) (*ClearBGPNeighborResponse, error) { + out := new(ClearBGPNeighborResponse) + err := c.cc.Invoke(ctx, "/gnoi.bgp.BGP/ClearBGPNeighbor", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// BGPServer is the server API for BGP service. +// All implementations must embed UnimplementedBGPServer +// for forward compatibility +type BGPServer interface { + // ClearBGPNeighbor clears a BGP session. + ClearBGPNeighbor(context.Context, *ClearBGPNeighborRequest) (*ClearBGPNeighborResponse, error) + mustEmbedUnimplementedBGPServer() +} + +// UnimplementedBGPServer must be embedded to have forward compatible implementations. +type UnimplementedBGPServer struct { +} + +func (UnimplementedBGPServer) ClearBGPNeighbor(context.Context, *ClearBGPNeighborRequest) (*ClearBGPNeighborResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ClearBGPNeighbor not implemented") +} +func (UnimplementedBGPServer) mustEmbedUnimplementedBGPServer() {} + +// UnsafeBGPServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to BGPServer will +// result in compilation errors. +type UnsafeBGPServer interface { + mustEmbedUnimplementedBGPServer() +} + +func RegisterBGPServer(s grpc.ServiceRegistrar, srv BGPServer) { + s.RegisterService(&BGP_ServiceDesc, srv) +} + +func _BGP_ClearBGPNeighbor_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ClearBGPNeighborRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(BGPServer).ClearBGPNeighbor(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gnoi.bgp.BGP/ClearBGPNeighbor", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(BGPServer).ClearBGPNeighbor(ctx, req.(*ClearBGPNeighborRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// BGP_ServiceDesc is the grpc.ServiceDesc for BGP service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var BGP_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "gnoi.bgp.BGP", + HandlerType: (*BGPServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "ClearBGPNeighbor", + Handler: _BGP_ClearBGPNeighbor_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "bgp/bgp.proto", +} diff --git a/cert/cert.pb.go b/cert/cert.pb.go index b13e3f9f..edfc32c2 100644 --- a/cert/cert.pb.go +++ b/cert/cert.pb.go @@ -1,27 +1,44 @@ +// +// Copyright 2017 Google Inc. All Rights Reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +// This file defines the gNOI API to be used for certificate installation and +// rotation. + // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.26.0 +// protoc v3.15.7 // source: cert/cert.proto -package gnoi_certificate +package cert import ( - fmt "fmt" - proto "github.com/golang/protobuf/proto" _ "github.com/openconfig/gnoi/types" - context "golang.org/x/net/context" - grpc "google.golang.org/grpc" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// 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 +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) // Types of certificates. type CertificateType int32 @@ -33,22 +50,43 @@ const ( CertificateType_CT_X509 CertificateType = 1 ) -var CertificateType_name = map[int32]string{ - 0: "CT_UNKNOWN", - 1: "CT_X509", -} +// Enum value maps for CertificateType. +var ( + CertificateType_name = map[int32]string{ + 0: "CT_UNKNOWN", + 1: "CT_X509", + } + CertificateType_value = map[string]int32{ + "CT_UNKNOWN": 0, + "CT_X509": 1, + } +) -var CertificateType_value = map[string]int32{ - "CT_UNKNOWN": 0, - "CT_X509": 1, +func (x CertificateType) Enum() *CertificateType { + p := new(CertificateType) + *p = x + return p } func (x CertificateType) String() string { - return proto.EnumName(CertificateType_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (CertificateType) Descriptor() protoreflect.EnumDescriptor { + return file_cert_cert_proto_enumTypes[0].Descriptor() } +func (CertificateType) Type() protoreflect.EnumType { + return &file_cert_cert_proto_enumTypes[0] +} + +func (x CertificateType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use CertificateType.Descriptor instead. func (CertificateType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_cc7c7ec7dcc94e18, []int{0} + return file_cert_cert_proto_rawDescGZIP(), []int{0} } // Algorithm to be used for generation the key pair. @@ -61,22 +99,43 @@ const ( KeyType_KT_RSA KeyType = 1 ) -var KeyType_name = map[int32]string{ - 0: "KT_UNKNOWN", - 1: "KT_RSA", -} +// Enum value maps for KeyType. +var ( + KeyType_name = map[int32]string{ + 0: "KT_UNKNOWN", + 1: "KT_RSA", + } + KeyType_value = map[string]int32{ + "KT_UNKNOWN": 0, + "KT_RSA": 1, + } +) -var KeyType_value = map[string]int32{ - "KT_UNKNOWN": 0, - "KT_RSA": 1, +func (x KeyType) Enum() *KeyType { + p := new(KeyType) + *p = x + return p } func (x KeyType) String() string { - return proto.EnumName(KeyType_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } +func (KeyType) Descriptor() protoreflect.EnumDescriptor { + return file_cert_cert_proto_enumTypes[1].Descriptor() +} + +func (KeyType) Type() protoreflect.EnumType { + return &file_cert_cert_proto_enumTypes[1] +} + +func (x KeyType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use KeyType.Descriptor instead. func (KeyType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_cc7c7ec7dcc94e18, []int{1} + return file_cert_cert_proto_rawDescGZIP(), []int{1} } // Type of endpoint that can use a cert. This list is to be extended based on @@ -89,87 +148,94 @@ const ( Endpoint_EP_DAEMON Endpoint_Type = 2 ) -var Endpoint_Type_name = map[int32]string{ - 0: "EP_UNSPECIFIED", - 1: "EP_IPSEC_TUNNEL", - 2: "EP_DAEMON", -} +// Enum value maps for Endpoint_Type. +var ( + Endpoint_Type_name = map[int32]string{ + 0: "EP_UNSPECIFIED", + 1: "EP_IPSEC_TUNNEL", + 2: "EP_DAEMON", + } + Endpoint_Type_value = map[string]int32{ + "EP_UNSPECIFIED": 0, + "EP_IPSEC_TUNNEL": 1, + "EP_DAEMON": 2, + } +) -var Endpoint_Type_value = map[string]int32{ - "EP_UNSPECIFIED": 0, - "EP_IPSEC_TUNNEL": 1, - "EP_DAEMON": 2, +func (x Endpoint_Type) Enum() *Endpoint_Type { + p := new(Endpoint_Type) + *p = x + return p } func (x Endpoint_Type) String() string { - return proto.EnumName(Endpoint_Type_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (Endpoint_Type) Descriptor() protoreflect.EnumDescriptor { + return file_cert_cert_proto_enumTypes[2].Descriptor() +} + +func (Endpoint_Type) Type() protoreflect.EnumType { + return &file_cert_cert_proto_enumTypes[2] +} + +func (x Endpoint_Type) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) } +// Deprecated: Use Endpoint_Type.Descriptor instead. func (Endpoint_Type) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_cc7c7ec7dcc94e18, []int{21, 0} + return file_cert_cert_proto_rawDescGZIP(), []int{23, 0} } // Request messages to rotate existing certificates on the target. type RotateCertificateRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // Request Messages. // - // Types that are valid to be assigned to RotateRequest: + // Types that are assignable to RotateRequest: // *RotateCertificateRequest_GenerateCsr // *RotateCertificateRequest_LoadCertificate // *RotateCertificateRequest_FinalizeRotation - RotateRequest isRotateCertificateRequest_RotateRequest `protobuf_oneof:"rotate_request"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RotateCertificateRequest) Reset() { *m = RotateCertificateRequest{} } -func (m *RotateCertificateRequest) String() string { return proto.CompactTextString(m) } -func (*RotateCertificateRequest) ProtoMessage() {} -func (*RotateCertificateRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_cc7c7ec7dcc94e18, []int{0} + RotateRequest isRotateCertificateRequest_RotateRequest `protobuf_oneof:"rotate_request"` } -func (m *RotateCertificateRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RotateCertificateRequest.Unmarshal(m, b) -} -func (m *RotateCertificateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RotateCertificateRequest.Marshal(b, m, deterministic) -} -func (m *RotateCertificateRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RotateCertificateRequest.Merge(m, src) -} -func (m *RotateCertificateRequest) XXX_Size() int { - return xxx_messageInfo_RotateCertificateRequest.Size(m) -} -func (m *RotateCertificateRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RotateCertificateRequest.DiscardUnknown(m) +func (x *RotateCertificateRequest) Reset() { + *x = RotateCertificateRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cert_cert_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -var xxx_messageInfo_RotateCertificateRequest proto.InternalMessageInfo - -type isRotateCertificateRequest_RotateRequest interface { - isRotateCertificateRequest_RotateRequest() +func (x *RotateCertificateRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -type RotateCertificateRequest_GenerateCsr struct { - GenerateCsr *GenerateCSRRequest `protobuf:"bytes,1,opt,name=generate_csr,json=generateCsr,proto3,oneof"` -} +func (*RotateCertificateRequest) ProtoMessage() {} -type RotateCertificateRequest_LoadCertificate struct { - LoadCertificate *LoadCertificateRequest `protobuf:"bytes,2,opt,name=load_certificate,json=loadCertificate,proto3,oneof"` +func (x *RotateCertificateRequest) ProtoReflect() protoreflect.Message { + mi := &file_cert_cert_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -type RotateCertificateRequest_FinalizeRotation struct { - FinalizeRotation *FinalizeRequest `protobuf:"bytes,3,opt,name=finalize_rotation,json=finalizeRotation,proto3,oneof"` +// Deprecated: Use RotateCertificateRequest.ProtoReflect.Descriptor instead. +func (*RotateCertificateRequest) Descriptor() ([]byte, []int) { + return file_cert_cert_proto_rawDescGZIP(), []int{0} } -func (*RotateCertificateRequest_GenerateCsr) isRotateCertificateRequest_RotateRequest() {} - -func (*RotateCertificateRequest_LoadCertificate) isRotateCertificateRequest_RotateRequest() {} - -func (*RotateCertificateRequest_FinalizeRotation) isRotateCertificateRequest_RotateRequest() {} - func (m *RotateCertificateRequest) GetRotateRequest() isRotateCertificateRequest_RotateRequest { if m != nil { return m.RotateRequest @@ -177,174 +243,95 @@ func (m *RotateCertificateRequest) GetRotateRequest() isRotateCertificateRequest return nil } -func (m *RotateCertificateRequest) GetGenerateCsr() *GenerateCSRRequest { - if x, ok := m.GetRotateRequest().(*RotateCertificateRequest_GenerateCsr); ok { +func (x *RotateCertificateRequest) GetGenerateCsr() *GenerateCSRRequest { + if x, ok := x.GetRotateRequest().(*RotateCertificateRequest_GenerateCsr); ok { return x.GenerateCsr } return nil } -func (m *RotateCertificateRequest) GetLoadCertificate() *LoadCertificateRequest { - if x, ok := m.GetRotateRequest().(*RotateCertificateRequest_LoadCertificate); ok { +func (x *RotateCertificateRequest) GetLoadCertificate() *LoadCertificateRequest { + if x, ok := x.GetRotateRequest().(*RotateCertificateRequest_LoadCertificate); ok { return x.LoadCertificate } return nil } -func (m *RotateCertificateRequest) GetFinalizeRotation() *FinalizeRequest { - if x, ok := m.GetRotateRequest().(*RotateCertificateRequest_FinalizeRotation); ok { +func (x *RotateCertificateRequest) GetFinalizeRotation() *FinalizeRequest { + if x, ok := x.GetRotateRequest().(*RotateCertificateRequest_FinalizeRotation); ok { return x.FinalizeRotation } return nil } -// XXX_OneofFuncs is for the internal use of the proto package. -func (*RotateCertificateRequest) 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 _RotateCertificateRequest_OneofMarshaler, _RotateCertificateRequest_OneofUnmarshaler, _RotateCertificateRequest_OneofSizer, []interface{}{ - (*RotateCertificateRequest_GenerateCsr)(nil), - (*RotateCertificateRequest_LoadCertificate)(nil), - (*RotateCertificateRequest_FinalizeRotation)(nil), - } +type isRotateCertificateRequest_RotateRequest interface { + isRotateCertificateRequest_RotateRequest() } -func _RotateCertificateRequest_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { - m := msg.(*RotateCertificateRequest) - // rotate_request - switch x := m.RotateRequest.(type) { - case *RotateCertificateRequest_GenerateCsr: - b.EncodeVarint(1<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.GenerateCsr); err != nil { - return err - } - case *RotateCertificateRequest_LoadCertificate: - b.EncodeVarint(2<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.LoadCertificate); err != nil { - return err - } - case *RotateCertificateRequest_FinalizeRotation: - b.EncodeVarint(3<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.FinalizeRotation); err != nil { - return err - } - case nil: - default: - return fmt.Errorf("RotateCertificateRequest.RotateRequest has unexpected type %T", x) - } - return nil +type RotateCertificateRequest_GenerateCsr struct { + GenerateCsr *GenerateCSRRequest `protobuf:"bytes,1,opt,name=generate_csr,json=generateCsr,proto3,oneof"` } -func _RotateCertificateRequest_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { - m := msg.(*RotateCertificateRequest) - switch tag { - case 1: // rotate_request.generate_csr - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(GenerateCSRRequest) - err := b.DecodeMessage(msg) - m.RotateRequest = &RotateCertificateRequest_GenerateCsr{msg} - return true, err - case 2: // rotate_request.load_certificate - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(LoadCertificateRequest) - err := b.DecodeMessage(msg) - m.RotateRequest = &RotateCertificateRequest_LoadCertificate{msg} - return true, err - case 3: // rotate_request.finalize_rotation - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(FinalizeRequest) - err := b.DecodeMessage(msg) - m.RotateRequest = &RotateCertificateRequest_FinalizeRotation{msg} - return true, err - default: - return false, nil - } -} - -func _RotateCertificateRequest_OneofSizer(msg proto.Message) (n int) { - m := msg.(*RotateCertificateRequest) - // rotate_request - switch x := m.RotateRequest.(type) { - case *RotateCertificateRequest_GenerateCsr: - s := proto.Size(x.GenerateCsr) - n += 1 // tag and wire - n += proto.SizeVarint(uint64(s)) - n += s - case *RotateCertificateRequest_LoadCertificate: - s := proto.Size(x.LoadCertificate) - n += 1 // tag and wire - n += proto.SizeVarint(uint64(s)) - n += s - case *RotateCertificateRequest_FinalizeRotation: - s := proto.Size(x.FinalizeRotation) - n += 1 // tag and wire - n += proto.SizeVarint(uint64(s)) - n += s - case nil: - default: - panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) - } - return n +type RotateCertificateRequest_LoadCertificate struct { + LoadCertificate *LoadCertificateRequest `protobuf:"bytes,2,opt,name=load_certificate,json=loadCertificate,proto3,oneof"` +} + +type RotateCertificateRequest_FinalizeRotation struct { + FinalizeRotation *FinalizeRequest `protobuf:"bytes,3,opt,name=finalize_rotation,json=finalizeRotation,proto3,oneof"` } +func (*RotateCertificateRequest_GenerateCsr) isRotateCertificateRequest_RotateRequest() {} + +func (*RotateCertificateRequest_LoadCertificate) isRotateCertificateRequest_RotateRequest() {} + +func (*RotateCertificateRequest_FinalizeRotation) isRotateCertificateRequest_RotateRequest() {} + // Response Messages from the target. type RotateCertificateResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // Response messages. // - // Types that are valid to be assigned to RotateResponse: + // Types that are assignable to RotateResponse: // *RotateCertificateResponse_GeneratedCsr // *RotateCertificateResponse_LoadCertificate - RotateResponse isRotateCertificateResponse_RotateResponse `protobuf_oneof:"rotate_response"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + RotateResponse isRotateCertificateResponse_RotateResponse `protobuf_oneof:"rotate_response"` } -func (m *RotateCertificateResponse) Reset() { *m = RotateCertificateResponse{} } -func (m *RotateCertificateResponse) String() string { return proto.CompactTextString(m) } -func (*RotateCertificateResponse) ProtoMessage() {} -func (*RotateCertificateResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_cc7c7ec7dcc94e18, []int{1} +func (x *RotateCertificateResponse) Reset() { + *x = RotateCertificateResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cert_cert_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *RotateCertificateResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RotateCertificateResponse.Unmarshal(m, b) -} -func (m *RotateCertificateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RotateCertificateResponse.Marshal(b, m, deterministic) +func (x *RotateCertificateResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *RotateCertificateResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RotateCertificateResponse.Merge(m, src) -} -func (m *RotateCertificateResponse) XXX_Size() int { - return xxx_messageInfo_RotateCertificateResponse.Size(m) -} -func (m *RotateCertificateResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RotateCertificateResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RotateCertificateResponse proto.InternalMessageInfo -type isRotateCertificateResponse_RotateResponse interface { - isRotateCertificateResponse_RotateResponse() -} +func (*RotateCertificateResponse) ProtoMessage() {} -type RotateCertificateResponse_GeneratedCsr struct { - GeneratedCsr *GenerateCSRResponse `protobuf:"bytes,1,opt,name=generated_csr,json=generatedCsr,proto3,oneof"` +func (x *RotateCertificateResponse) ProtoReflect() protoreflect.Message { + mi := &file_cert_cert_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -type RotateCertificateResponse_LoadCertificate struct { - LoadCertificate *LoadCertificateResponse `protobuf:"bytes,2,opt,name=load_certificate,json=loadCertificate,proto3,oneof"` +// Deprecated: Use RotateCertificateResponse.ProtoReflect.Descriptor instead. +func (*RotateCertificateResponse) Descriptor() ([]byte, []int) { + return file_cert_cert_proto_rawDescGZIP(), []int{1} } -func (*RotateCertificateResponse_GeneratedCsr) isRotateCertificateResponse_RotateResponse() {} - -func (*RotateCertificateResponse_LoadCertificate) isRotateCertificateResponse_RotateResponse() {} - func (m *RotateCertificateResponse) GetRotateResponse() isRotateCertificateResponse_RotateResponse { if m != nil { return m.RotateResponse @@ -352,148 +339,82 @@ func (m *RotateCertificateResponse) GetRotateResponse() isRotateCertificateRespo return nil } -func (m *RotateCertificateResponse) GetGeneratedCsr() *GenerateCSRResponse { - if x, ok := m.GetRotateResponse().(*RotateCertificateResponse_GeneratedCsr); ok { +func (x *RotateCertificateResponse) GetGeneratedCsr() *GenerateCSRResponse { + if x, ok := x.GetRotateResponse().(*RotateCertificateResponse_GeneratedCsr); ok { return x.GeneratedCsr } return nil } -func (m *RotateCertificateResponse) GetLoadCertificate() *LoadCertificateResponse { - if x, ok := m.GetRotateResponse().(*RotateCertificateResponse_LoadCertificate); ok { +func (x *RotateCertificateResponse) GetLoadCertificate() *LoadCertificateResponse { + if x, ok := x.GetRotateResponse().(*RotateCertificateResponse_LoadCertificate); ok { return x.LoadCertificate } return nil } -// XXX_OneofFuncs is for the internal use of the proto package. -func (*RotateCertificateResponse) 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 _RotateCertificateResponse_OneofMarshaler, _RotateCertificateResponse_OneofUnmarshaler, _RotateCertificateResponse_OneofSizer, []interface{}{ - (*RotateCertificateResponse_GeneratedCsr)(nil), - (*RotateCertificateResponse_LoadCertificate)(nil), - } +type isRotateCertificateResponse_RotateResponse interface { + isRotateCertificateResponse_RotateResponse() } -func _RotateCertificateResponse_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { - m := msg.(*RotateCertificateResponse) - // rotate_response - switch x := m.RotateResponse.(type) { - case *RotateCertificateResponse_GeneratedCsr: - b.EncodeVarint(1<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.GeneratedCsr); err != nil { - return err - } - case *RotateCertificateResponse_LoadCertificate: - b.EncodeVarint(2<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.LoadCertificate); err != nil { - return err - } - case nil: - default: - return fmt.Errorf("RotateCertificateResponse.RotateResponse has unexpected type %T", x) - } - return nil +type RotateCertificateResponse_GeneratedCsr struct { + GeneratedCsr *GenerateCSRResponse `protobuf:"bytes,1,opt,name=generated_csr,json=generatedCsr,proto3,oneof"` } -func _RotateCertificateResponse_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { - m := msg.(*RotateCertificateResponse) - switch tag { - case 1: // rotate_response.generated_csr - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(GenerateCSRResponse) - err := b.DecodeMessage(msg) - m.RotateResponse = &RotateCertificateResponse_GeneratedCsr{msg} - return true, err - case 2: // rotate_response.load_certificate - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(LoadCertificateResponse) - err := b.DecodeMessage(msg) - m.RotateResponse = &RotateCertificateResponse_LoadCertificate{msg} - return true, err - default: - return false, nil - } -} - -func _RotateCertificateResponse_OneofSizer(msg proto.Message) (n int) { - m := msg.(*RotateCertificateResponse) - // rotate_response - switch x := m.RotateResponse.(type) { - case *RotateCertificateResponse_GeneratedCsr: - s := proto.Size(x.GeneratedCsr) - n += 1 // tag and wire - n += proto.SizeVarint(uint64(s)) - n += s - case *RotateCertificateResponse_LoadCertificate: - s := proto.Size(x.LoadCertificate) - n += 1 // tag and wire - n += proto.SizeVarint(uint64(s)) - n += s - case nil: - default: - panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) - } - return n +type RotateCertificateResponse_LoadCertificate struct { + LoadCertificate *LoadCertificateResponse `protobuf:"bytes,2,opt,name=load_certificate,json=loadCertificate,proto3,oneof"` } +func (*RotateCertificateResponse_GeneratedCsr) isRotateCertificateResponse_RotateResponse() {} + +func (*RotateCertificateResponse_LoadCertificate) isRotateCertificateResponse_RotateResponse() {} + // Request messages to install new certificates on the target. type InstallCertificateRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // Request Messages. // - // Types that are valid to be assigned to InstallRequest: + // Types that are assignable to InstallRequest: // *InstallCertificateRequest_GenerateCsr // *InstallCertificateRequest_LoadCertificate - InstallRequest isInstallCertificateRequest_InstallRequest `protobuf_oneof:"install_request"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + InstallRequest isInstallCertificateRequest_InstallRequest `protobuf_oneof:"install_request"` } -func (m *InstallCertificateRequest) Reset() { *m = InstallCertificateRequest{} } -func (m *InstallCertificateRequest) String() string { return proto.CompactTextString(m) } -func (*InstallCertificateRequest) ProtoMessage() {} -func (*InstallCertificateRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_cc7c7ec7dcc94e18, []int{2} +func (x *InstallCertificateRequest) Reset() { + *x = InstallCertificateRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cert_cert_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *InstallCertificateRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_InstallCertificateRequest.Unmarshal(m, b) -} -func (m *InstallCertificateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_InstallCertificateRequest.Marshal(b, m, deterministic) -} -func (m *InstallCertificateRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_InstallCertificateRequest.Merge(m, src) -} -func (m *InstallCertificateRequest) XXX_Size() int { - return xxx_messageInfo_InstallCertificateRequest.Size(m) -} -func (m *InstallCertificateRequest) XXX_DiscardUnknown() { - xxx_messageInfo_InstallCertificateRequest.DiscardUnknown(m) +func (x *InstallCertificateRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_InstallCertificateRequest proto.InternalMessageInfo +func (*InstallCertificateRequest) ProtoMessage() {} -type isInstallCertificateRequest_InstallRequest interface { - isInstallCertificateRequest_InstallRequest() -} - -type InstallCertificateRequest_GenerateCsr struct { - GenerateCsr *GenerateCSRRequest `protobuf:"bytes,1,opt,name=generate_csr,json=generateCsr,proto3,oneof"` +func (x *InstallCertificateRequest) ProtoReflect() protoreflect.Message { + mi := &file_cert_cert_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -type InstallCertificateRequest_LoadCertificate struct { - LoadCertificate *LoadCertificateRequest `protobuf:"bytes,2,opt,name=load_certificate,json=loadCertificate,proto3,oneof"` +// Deprecated: Use InstallCertificateRequest.ProtoReflect.Descriptor instead. +func (*InstallCertificateRequest) Descriptor() ([]byte, []int) { + return file_cert_cert_proto_rawDescGZIP(), []int{2} } -func (*InstallCertificateRequest_GenerateCsr) isInstallCertificateRequest_InstallRequest() {} - -func (*InstallCertificateRequest_LoadCertificate) isInstallCertificateRequest_InstallRequest() {} - func (m *InstallCertificateRequest) GetInstallRequest() isInstallCertificateRequest_InstallRequest { if m != nil { return m.InstallRequest @@ -501,148 +422,82 @@ func (m *InstallCertificateRequest) GetInstallRequest() isInstallCertificateRequ return nil } -func (m *InstallCertificateRequest) GetGenerateCsr() *GenerateCSRRequest { - if x, ok := m.GetInstallRequest().(*InstallCertificateRequest_GenerateCsr); ok { +func (x *InstallCertificateRequest) GetGenerateCsr() *GenerateCSRRequest { + if x, ok := x.GetInstallRequest().(*InstallCertificateRequest_GenerateCsr); ok { return x.GenerateCsr } return nil } -func (m *InstallCertificateRequest) GetLoadCertificate() *LoadCertificateRequest { - if x, ok := m.GetInstallRequest().(*InstallCertificateRequest_LoadCertificate); ok { +func (x *InstallCertificateRequest) GetLoadCertificate() *LoadCertificateRequest { + if x, ok := x.GetInstallRequest().(*InstallCertificateRequest_LoadCertificate); ok { return x.LoadCertificate } return nil } -// XXX_OneofFuncs is for the internal use of the proto package. -func (*InstallCertificateRequest) 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 _InstallCertificateRequest_OneofMarshaler, _InstallCertificateRequest_OneofUnmarshaler, _InstallCertificateRequest_OneofSizer, []interface{}{ - (*InstallCertificateRequest_GenerateCsr)(nil), - (*InstallCertificateRequest_LoadCertificate)(nil), - } +type isInstallCertificateRequest_InstallRequest interface { + isInstallCertificateRequest_InstallRequest() } -func _InstallCertificateRequest_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { - m := msg.(*InstallCertificateRequest) - // install_request - switch x := m.InstallRequest.(type) { - case *InstallCertificateRequest_GenerateCsr: - b.EncodeVarint(1<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.GenerateCsr); err != nil { - return err - } - case *InstallCertificateRequest_LoadCertificate: - b.EncodeVarint(2<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.LoadCertificate); err != nil { - return err - } - case nil: - default: - return fmt.Errorf("InstallCertificateRequest.InstallRequest has unexpected type %T", x) - } - return nil +type InstallCertificateRequest_GenerateCsr struct { + GenerateCsr *GenerateCSRRequest `protobuf:"bytes,1,opt,name=generate_csr,json=generateCsr,proto3,oneof"` } -func _InstallCertificateRequest_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { - m := msg.(*InstallCertificateRequest) - switch tag { - case 1: // install_request.generate_csr - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(GenerateCSRRequest) - err := b.DecodeMessage(msg) - m.InstallRequest = &InstallCertificateRequest_GenerateCsr{msg} - return true, err - case 2: // install_request.load_certificate - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(LoadCertificateRequest) - err := b.DecodeMessage(msg) - m.InstallRequest = &InstallCertificateRequest_LoadCertificate{msg} - return true, err - default: - return false, nil - } -} - -func _InstallCertificateRequest_OneofSizer(msg proto.Message) (n int) { - m := msg.(*InstallCertificateRequest) - // install_request - switch x := m.InstallRequest.(type) { - case *InstallCertificateRequest_GenerateCsr: - s := proto.Size(x.GenerateCsr) - n += 1 // tag and wire - n += proto.SizeVarint(uint64(s)) - n += s - case *InstallCertificateRequest_LoadCertificate: - s := proto.Size(x.LoadCertificate) - n += 1 // tag and wire - n += proto.SizeVarint(uint64(s)) - n += s - case nil: - default: - panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) - } - return n +type InstallCertificateRequest_LoadCertificate struct { + LoadCertificate *LoadCertificateRequest `protobuf:"bytes,2,opt,name=load_certificate,json=loadCertificate,proto3,oneof"` } +func (*InstallCertificateRequest_GenerateCsr) isInstallCertificateRequest_InstallRequest() {} + +func (*InstallCertificateRequest_LoadCertificate) isInstallCertificateRequest_InstallRequest() {} + // Response Messages from the target for the InstallCertificateRequest. type InstallCertificateResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // Response messages. // - // Types that are valid to be assigned to InstallResponse: + // Types that are assignable to InstallResponse: // *InstallCertificateResponse_GeneratedCsr // *InstallCertificateResponse_LoadCertificate - InstallResponse isInstallCertificateResponse_InstallResponse `protobuf_oneof:"install_response"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + InstallResponse isInstallCertificateResponse_InstallResponse `protobuf_oneof:"install_response"` } -func (m *InstallCertificateResponse) Reset() { *m = InstallCertificateResponse{} } -func (m *InstallCertificateResponse) String() string { return proto.CompactTextString(m) } -func (*InstallCertificateResponse) ProtoMessage() {} -func (*InstallCertificateResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_cc7c7ec7dcc94e18, []int{3} +func (x *InstallCertificateResponse) Reset() { + *x = InstallCertificateResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cert_cert_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *InstallCertificateResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_InstallCertificateResponse.Unmarshal(m, b) -} -func (m *InstallCertificateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_InstallCertificateResponse.Marshal(b, m, deterministic) -} -func (m *InstallCertificateResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_InstallCertificateResponse.Merge(m, src) -} -func (m *InstallCertificateResponse) XXX_Size() int { - return xxx_messageInfo_InstallCertificateResponse.Size(m) +func (x *InstallCertificateResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *InstallCertificateResponse) XXX_DiscardUnknown() { - xxx_messageInfo_InstallCertificateResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_InstallCertificateResponse proto.InternalMessageInfo -type isInstallCertificateResponse_InstallResponse interface { - isInstallCertificateResponse_InstallResponse() -} +func (*InstallCertificateResponse) ProtoMessage() {} -type InstallCertificateResponse_GeneratedCsr struct { - GeneratedCsr *GenerateCSRResponse `protobuf:"bytes,1,opt,name=generated_csr,json=generatedCsr,proto3,oneof"` +func (x *InstallCertificateResponse) ProtoReflect() protoreflect.Message { + mi := &file_cert_cert_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -type InstallCertificateResponse_LoadCertificate struct { - LoadCertificate *LoadCertificateResponse `protobuf:"bytes,2,opt,name=load_certificate,json=loadCertificate,proto3,oneof"` +// Deprecated: Use InstallCertificateResponse.ProtoReflect.Descriptor instead. +func (*InstallCertificateResponse) Descriptor() ([]byte, []int) { + return file_cert_cert_proto_rawDescGZIP(), []int{3} } -func (*InstallCertificateResponse_GeneratedCsr) isInstallCertificateResponse_InstallResponse() {} - -func (*InstallCertificateResponse_LoadCertificate) isInstallCertificateResponse_InstallResponse() {} - func (m *InstallCertificateResponse) GetInstallResponse() isInstallCertificateResponse_InstallResponse { if m != nil { return m.InstallResponse @@ -650,94 +505,36 @@ func (m *InstallCertificateResponse) GetInstallResponse() isInstallCertificateRe return nil } -func (m *InstallCertificateResponse) GetGeneratedCsr() *GenerateCSRResponse { - if x, ok := m.GetInstallResponse().(*InstallCertificateResponse_GeneratedCsr); ok { +func (x *InstallCertificateResponse) GetGeneratedCsr() *GenerateCSRResponse { + if x, ok := x.GetInstallResponse().(*InstallCertificateResponse_GeneratedCsr); ok { return x.GeneratedCsr } return nil } -func (m *InstallCertificateResponse) GetLoadCertificate() *LoadCertificateResponse { - if x, ok := m.GetInstallResponse().(*InstallCertificateResponse_LoadCertificate); ok { +func (x *InstallCertificateResponse) GetLoadCertificate() *LoadCertificateResponse { + if x, ok := x.GetInstallResponse().(*InstallCertificateResponse_LoadCertificate); ok { return x.LoadCertificate } return nil } -// XXX_OneofFuncs is for the internal use of the proto package. -func (*InstallCertificateResponse) 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 _InstallCertificateResponse_OneofMarshaler, _InstallCertificateResponse_OneofUnmarshaler, _InstallCertificateResponse_OneofSizer, []interface{}{ - (*InstallCertificateResponse_GeneratedCsr)(nil), - (*InstallCertificateResponse_LoadCertificate)(nil), - } +type isInstallCertificateResponse_InstallResponse interface { + isInstallCertificateResponse_InstallResponse() } -func _InstallCertificateResponse_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { - m := msg.(*InstallCertificateResponse) - // install_response - switch x := m.InstallResponse.(type) { - case *InstallCertificateResponse_GeneratedCsr: - b.EncodeVarint(1<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.GeneratedCsr); err != nil { - return err - } - case *InstallCertificateResponse_LoadCertificate: - b.EncodeVarint(2<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.LoadCertificate); err != nil { - return err - } - case nil: - default: - return fmt.Errorf("InstallCertificateResponse.InstallResponse has unexpected type %T", x) - } - return nil +type InstallCertificateResponse_GeneratedCsr struct { + GeneratedCsr *GenerateCSRResponse `protobuf:"bytes,1,opt,name=generated_csr,json=generatedCsr,proto3,oneof"` } -func _InstallCertificateResponse_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { - m := msg.(*InstallCertificateResponse) - switch tag { - case 1: // install_response.generated_csr - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(GenerateCSRResponse) - err := b.DecodeMessage(msg) - m.InstallResponse = &InstallCertificateResponse_GeneratedCsr{msg} - return true, err - case 2: // install_response.load_certificate - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(LoadCertificateResponse) - err := b.DecodeMessage(msg) - m.InstallResponse = &InstallCertificateResponse_LoadCertificate{msg} - return true, err - default: - return false, nil - } -} - -func _InstallCertificateResponse_OneofSizer(msg proto.Message) (n int) { - m := msg.(*InstallCertificateResponse) - // install_response - switch x := m.InstallResponse.(type) { - case *InstallCertificateResponse_GeneratedCsr: - s := proto.Size(x.GeneratedCsr) - n += 1 // tag and wire - n += proto.SizeVarint(uint64(s)) - n += s - case *InstallCertificateResponse_LoadCertificate: - s := proto.Size(x.LoadCertificate) - n += 1 // tag and wire - n += proto.SizeVarint(uint64(s)) - n += s - case nil: - default: - panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) - } - return n +type InstallCertificateResponse_LoadCertificate struct { + LoadCertificate *LoadCertificateResponse `protobuf:"bytes,2,opt,name=load_certificate,json=loadCertificate,proto3,oneof"` } +func (*InstallCertificateResponse_GeneratedCsr) isInstallCertificateResponse_InstallResponse() {} + +func (*InstallCertificateResponse_LoadCertificate) isInstallCertificateResponse_InstallResponse() {} + // Request to generate the CSR. // When this request is made for rotating an existing certificate as part of the // Rotate() RPC, then the target must ensure that the "certificate_id" is @@ -754,58 +551,70 @@ func _InstallCertificateResponse_OneofSizer(msg proto.Message) (n int) { // If there is another ongoing Rotate/Install RPC with the same certificate_id, // the GenerateCSRRequest should fail. type GenerateCSRRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // Parameters for creating a CSR. CsrParams *CSRParams `protobuf:"bytes,1,opt,name=csr_params,json=csrParams,proto3" json:"csr_params,omitempty"` // The certificate id with which this CSR will be associated. The target // configuration should bind an entity which wants to use a certificate to // the certificate_id it should use. - CertificateId string `protobuf:"bytes,2,opt,name=certificate_id,json=certificateId,proto3" json:"certificate_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + CertificateId string `protobuf:"bytes,2,opt,name=certificate_id,json=certificateId,proto3" json:"certificate_id,omitempty"` } -func (m *GenerateCSRRequest) Reset() { *m = GenerateCSRRequest{} } -func (m *GenerateCSRRequest) String() string { return proto.CompactTextString(m) } -func (*GenerateCSRRequest) ProtoMessage() {} -func (*GenerateCSRRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_cc7c7ec7dcc94e18, []int{4} +func (x *GenerateCSRRequest) Reset() { + *x = GenerateCSRRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cert_cert_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GenerateCSRRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GenerateCSRRequest.Unmarshal(m, b) -} -func (m *GenerateCSRRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GenerateCSRRequest.Marshal(b, m, deterministic) -} -func (m *GenerateCSRRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GenerateCSRRequest.Merge(m, src) +func (x *GenerateCSRRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GenerateCSRRequest) XXX_Size() int { - return xxx_messageInfo_GenerateCSRRequest.Size(m) -} -func (m *GenerateCSRRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GenerateCSRRequest.DiscardUnknown(m) + +func (*GenerateCSRRequest) ProtoMessage() {} + +func (x *GenerateCSRRequest) ProtoReflect() protoreflect.Message { + mi := &file_cert_cert_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_GenerateCSRRequest proto.InternalMessageInfo +// Deprecated: Use GenerateCSRRequest.ProtoReflect.Descriptor instead. +func (*GenerateCSRRequest) Descriptor() ([]byte, []int) { + return file_cert_cert_proto_rawDescGZIP(), []int{4} +} -func (m *GenerateCSRRequest) GetCsrParams() *CSRParams { - if m != nil { - return m.CsrParams +func (x *GenerateCSRRequest) GetCsrParams() *CSRParams { + if x != nil { + return x.CsrParams } return nil } -func (m *GenerateCSRRequest) GetCertificateId() string { - if m != nil { - return m.CertificateId +func (x *GenerateCSRRequest) GetCertificateId() string { + if x != nil { + return x.CertificateId } return "" } // Parameters to be used when generating a Certificate Signing Request. type CSRParams struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // The type of certificate which will be associated for this CSR. Type CertificateType `protobuf:"varint,1,opt,name=type,proto3,enum=gnoi.certificate.CertificateType" json:"type,omitempty"` // Minimum size of the key to be used by the target when generating a @@ -816,117 +625,121 @@ type CSRParams struct { // stream with an Unimplemented error. KeyType KeyType `protobuf:"varint,3,opt,name=key_type,json=keyType,proto3,enum=gnoi.certificate.KeyType" json:"key_type,omitempty"` // --- common set of parameters applicable for any type of certificate --- // - CommonName string `protobuf:"bytes,4,opt,name=common_name,json=commonName,proto3" json:"common_name,omitempty"` - Country string `protobuf:"bytes,5,opt,name=country,proto3" json:"country,omitempty"` - State string `protobuf:"bytes,6,opt,name=state,proto3" json:"state,omitempty"` - City string `protobuf:"bytes,7,opt,name=city,proto3" json:"city,omitempty"` - Organization string `protobuf:"bytes,8,opt,name=organization,proto3" json:"organization,omitempty"` - OrganizationalUnit string `protobuf:"bytes,9,opt,name=organizational_unit,json=organizationalUnit,proto3" json:"organizational_unit,omitempty"` - IpAddress string `protobuf:"bytes,10,opt,name=ip_address,json=ipAddress,proto3" json:"ip_address,omitempty"` - EmailId string `protobuf:"bytes,11,opt,name=email_id,json=emailId,proto3" json:"email_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CSRParams) Reset() { *m = CSRParams{} } -func (m *CSRParams) String() string { return proto.CompactTextString(m) } -func (*CSRParams) ProtoMessage() {} -func (*CSRParams) Descriptor() ([]byte, []int) { - return fileDescriptor_cc7c7ec7dcc94e18, []int{5} + CommonName string `protobuf:"bytes,4,opt,name=common_name,json=commonName,proto3" json:"common_name,omitempty"` // e.g "device.corp.google.com" + Country string `protobuf:"bytes,5,opt,name=country,proto3" json:"country,omitempty"` // e.g "US" + State string `protobuf:"bytes,6,opt,name=state,proto3" json:"state,omitempty"` // e.g "CA" + City string `protobuf:"bytes,7,opt,name=city,proto3" json:"city,omitempty"` // e.g "Mountain View" + Organization string `protobuf:"bytes,8,opt,name=organization,proto3" json:"organization,omitempty"` // e.g "Google" + OrganizationalUnit string `protobuf:"bytes,9,opt,name=organizational_unit,json=organizationalUnit,proto3" json:"organizational_unit,omitempty"` // e.g "Security" + IpAddress string `protobuf:"bytes,10,opt,name=ip_address,json=ipAddress,proto3" json:"ip_address,omitempty"` + EmailId string `protobuf:"bytes,11,opt,name=email_id,json=emailId,proto3" json:"email_id,omitempty"` } -func (m *CSRParams) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CSRParams.Unmarshal(m, b) -} -func (m *CSRParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CSRParams.Marshal(b, m, deterministic) -} -func (m *CSRParams) XXX_Merge(src proto.Message) { - xxx_messageInfo_CSRParams.Merge(m, src) +func (x *CSRParams) Reset() { + *x = CSRParams{} + if protoimpl.UnsafeEnabled { + mi := &file_cert_cert_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *CSRParams) XXX_Size() int { - return xxx_messageInfo_CSRParams.Size(m) + +func (x *CSRParams) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *CSRParams) XXX_DiscardUnknown() { - xxx_messageInfo_CSRParams.DiscardUnknown(m) + +func (*CSRParams) ProtoMessage() {} + +func (x *CSRParams) ProtoReflect() protoreflect.Message { + mi := &file_cert_cert_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_CSRParams proto.InternalMessageInfo +// Deprecated: Use CSRParams.ProtoReflect.Descriptor instead. +func (*CSRParams) Descriptor() ([]byte, []int) { + return file_cert_cert_proto_rawDescGZIP(), []int{5} +} -func (m *CSRParams) GetType() CertificateType { - if m != nil { - return m.Type +func (x *CSRParams) GetType() CertificateType { + if x != nil { + return x.Type } return CertificateType_CT_UNKNOWN } -func (m *CSRParams) GetMinKeySize() uint32 { - if m != nil { - return m.MinKeySize +func (x *CSRParams) GetMinKeySize() uint32 { + if x != nil { + return x.MinKeySize } return 0 } -func (m *CSRParams) GetKeyType() KeyType { - if m != nil { - return m.KeyType +func (x *CSRParams) GetKeyType() KeyType { + if x != nil { + return x.KeyType } return KeyType_KT_UNKNOWN } -func (m *CSRParams) GetCommonName() string { - if m != nil { - return m.CommonName +func (x *CSRParams) GetCommonName() string { + if x != nil { + return x.CommonName } return "" } -func (m *CSRParams) GetCountry() string { - if m != nil { - return m.Country +func (x *CSRParams) GetCountry() string { + if x != nil { + return x.Country } return "" } -func (m *CSRParams) GetState() string { - if m != nil { - return m.State +func (x *CSRParams) GetState() string { + if x != nil { + return x.State } return "" } -func (m *CSRParams) GetCity() string { - if m != nil { - return m.City +func (x *CSRParams) GetCity() string { + if x != nil { + return x.City } return "" } -func (m *CSRParams) GetOrganization() string { - if m != nil { - return m.Organization +func (x *CSRParams) GetOrganization() string { + if x != nil { + return x.Organization } return "" } -func (m *CSRParams) GetOrganizationalUnit() string { - if m != nil { - return m.OrganizationalUnit +func (x *CSRParams) GetOrganizationalUnit() string { + if x != nil { + return x.OrganizationalUnit } return "" } -func (m *CSRParams) GetIpAddress() string { - if m != nil { - return m.IpAddress +func (x *CSRParams) GetIpAddress() string { + if x != nil { + return x.IpAddress } return "" } -func (m *CSRParams) GetEmailId() string { - if m != nil { - return m.EmailId +func (x *CSRParams) GetEmailId() string { + if x != nil { + return x.EmailId } return "" } @@ -939,40 +752,48 @@ func (m *CSRParams) GetEmailId() string { // An Unimplemented error will be returned if the target cannot generate a CSR // as per the request. In this case, the caller must generate its own key pair. type GenerateCSRResponse struct { - Csr *CSR `protobuf:"bytes,1,opt,name=csr,proto3" json:"csr,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *GenerateCSRResponse) Reset() { *m = GenerateCSRResponse{} } -func (m *GenerateCSRResponse) String() string { return proto.CompactTextString(m) } -func (*GenerateCSRResponse) ProtoMessage() {} -func (*GenerateCSRResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_cc7c7ec7dcc94e18, []int{6} + Csr *CSR `protobuf:"bytes,1,opt,name=csr,proto3" json:"csr,omitempty"` } -func (m *GenerateCSRResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GenerateCSRResponse.Unmarshal(m, b) -} -func (m *GenerateCSRResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GenerateCSRResponse.Marshal(b, m, deterministic) -} -func (m *GenerateCSRResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GenerateCSRResponse.Merge(m, src) +func (x *GenerateCSRResponse) Reset() { + *x = GenerateCSRResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cert_cert_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GenerateCSRResponse) XXX_Size() int { - return xxx_messageInfo_GenerateCSRResponse.Size(m) + +func (x *GenerateCSRResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GenerateCSRResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GenerateCSRResponse.DiscardUnknown(m) + +func (*GenerateCSRResponse) ProtoMessage() {} + +func (x *GenerateCSRResponse) ProtoReflect() protoreflect.Message { + mi := &file_cert_cert_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_GenerateCSRResponse proto.InternalMessageInfo +// Deprecated: Use GenerateCSRResponse.ProtoReflect.Descriptor instead. +func (*GenerateCSRResponse) Descriptor() ([]byte, []int) { + return file_cert_cert_proto_rawDescGZIP(), []int{6} +} -func (m *GenerateCSRResponse) GetCsr() *CSR { - if m != nil { - return m.Csr +func (x *GenerateCSRResponse) GetCsr() *CSR { + if x != nil { + return x.Csr } return nil } @@ -992,6 +813,10 @@ func (m *GenerateCSRResponse) GetCsr() *CSR { // If there is another ongoing Rotate/Install RPC with the same certificate_id, // the LoadCertificateRequest must fail. type LoadCertificateRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // The certificate to be Loaded on the target. Certificate *Certificate `protobuf:"bytes,1,opt,name=certificate,proto3" json:"certificate,omitempty"` // The key pair to be used with the certificate. This is provided in the event @@ -1005,61 +830,69 @@ type LoadCertificateRequest struct { // certificates should squash the existing bundle. This field provides a // simplified means to provision a CA bundle that can be used to validate // other peer's certificates. - CaCertificates []*Certificate `protobuf:"bytes,4,rep,name=ca_certificates,json=caCertificates,proto3" json:"ca_certificates,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + // To improve performance in the Target, certificates can be ordered. + // Groups of chained certificates should be last, where within, the root + // certificate is the last one. E.g.: + // CertA, CertB, CertB-Root, CertC, CertC-Intermediate, CertC-Root + CaCertificates []*Certificate `protobuf:"bytes,4,rep,name=ca_certificates,json=caCertificates,proto3" json:"ca_certificates,omitempty"` } -func (m *LoadCertificateRequest) Reset() { *m = LoadCertificateRequest{} } -func (m *LoadCertificateRequest) String() string { return proto.CompactTextString(m) } -func (*LoadCertificateRequest) ProtoMessage() {} -func (*LoadCertificateRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_cc7c7ec7dcc94e18, []int{7} +func (x *LoadCertificateRequest) Reset() { + *x = LoadCertificateRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cert_cert_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *LoadCertificateRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_LoadCertificateRequest.Unmarshal(m, b) -} -func (m *LoadCertificateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_LoadCertificateRequest.Marshal(b, m, deterministic) -} -func (m *LoadCertificateRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_LoadCertificateRequest.Merge(m, src) -} -func (m *LoadCertificateRequest) XXX_Size() int { - return xxx_messageInfo_LoadCertificateRequest.Size(m) +func (x *LoadCertificateRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *LoadCertificateRequest) XXX_DiscardUnknown() { - xxx_messageInfo_LoadCertificateRequest.DiscardUnknown(m) + +func (*LoadCertificateRequest) ProtoMessage() {} + +func (x *LoadCertificateRequest) ProtoReflect() protoreflect.Message { + mi := &file_cert_cert_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_LoadCertificateRequest proto.InternalMessageInfo +// Deprecated: Use LoadCertificateRequest.ProtoReflect.Descriptor instead. +func (*LoadCertificateRequest) Descriptor() ([]byte, []int) { + return file_cert_cert_proto_rawDescGZIP(), []int{7} +} -func (m *LoadCertificateRequest) GetCertificate() *Certificate { - if m != nil { - return m.Certificate +func (x *LoadCertificateRequest) GetCertificate() *Certificate { + if x != nil { + return x.Certificate } return nil } -func (m *LoadCertificateRequest) GetKeyPair() *KeyPair { - if m != nil { - return m.KeyPair +func (x *LoadCertificateRequest) GetKeyPair() *KeyPair { + if x != nil { + return x.KeyPair } return nil } -func (m *LoadCertificateRequest) GetCertificateId() string { - if m != nil { - return m.CertificateId +func (x *LoadCertificateRequest) GetCertificateId() string { + if x != nil { + return x.CertificateId } return "" } -func (m *LoadCertificateRequest) GetCaCertificates() []*Certificate { - if m != nil { - return m.CaCertificates +func (x *LoadCertificateRequest) GetCaCertificates() []*Certificate { + if x != nil { + return x.CaCertificates } return nil } @@ -1068,399 +901,562 @@ func (m *LoadCertificateRequest) GetCaCertificates() []*Certificate { // If the target could not load the certificate, it must end the RPC stream with // a suitable RPC error about why the Certificate was not loaded. type LoadCertificateResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *LoadCertificateResponse) Reset() { + *x = LoadCertificateResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cert_cert_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *LoadCertificateResponse) Reset() { *m = LoadCertificateResponse{} } -func (m *LoadCertificateResponse) String() string { return proto.CompactTextString(m) } -func (*LoadCertificateResponse) ProtoMessage() {} +func (x *LoadCertificateResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*LoadCertificateResponse) ProtoMessage() {} + +func (x *LoadCertificateResponse) ProtoReflect() protoreflect.Message { + mi := &file_cert_cert_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use LoadCertificateResponse.ProtoReflect.Descriptor instead. func (*LoadCertificateResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_cc7c7ec7dcc94e18, []int{8} + return file_cert_cert_proto_rawDescGZIP(), []int{8} +} + +// Bundle of CA certificates. Same as LoadCertificateRequest::ca_certificates. +type LoadCertificateAuthorityBundleRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Squashes the existing certificate bundle. + // To improve performance in the Target, certificates can be ordered. + // Groups of chained certificates should be last, where within, the root + // certificate is the last one. E.g.: + // CertA, CertB, CertB-Root, CertC, CertC-Intermediate, CertC-Root + CaCertificates []*Certificate `protobuf:"bytes,1,rep,name=ca_certificates,json=caCertificates,proto3" json:"ca_certificates,omitempty"` +} + +func (x *LoadCertificateAuthorityBundleRequest) Reset() { + *x = LoadCertificateAuthorityBundleRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cert_cert_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *LoadCertificateAuthorityBundleRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*LoadCertificateAuthorityBundleRequest) ProtoMessage() {} + +func (x *LoadCertificateAuthorityBundleRequest) ProtoReflect() protoreflect.Message { + mi := &file_cert_cert_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func (m *LoadCertificateResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_LoadCertificateResponse.Unmarshal(m, b) +// Deprecated: Use LoadCertificateAuthorityBundleRequest.ProtoReflect.Descriptor instead. +func (*LoadCertificateAuthorityBundleRequest) Descriptor() ([]byte, []int) { + return file_cert_cert_proto_rawDescGZIP(), []int{9} } -func (m *LoadCertificateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_LoadCertificateResponse.Marshal(b, m, deterministic) + +func (x *LoadCertificateAuthorityBundleRequest) GetCaCertificates() []*Certificate { + if x != nil { + return x.CaCertificates + } + return nil } -func (m *LoadCertificateResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_LoadCertificateResponse.Merge(m, src) + +// Response from target after Loading a certificate authority bundle. +// If the target could not load the certificates, it must end the RPC stream +// with a suitable RPC error about why the Certificate was not loaded. +type LoadCertificateAuthorityBundleResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *LoadCertificateResponse) XXX_Size() int { - return xxx_messageInfo_LoadCertificateResponse.Size(m) + +func (x *LoadCertificateAuthorityBundleResponse) Reset() { + *x = LoadCertificateAuthorityBundleResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cert_cert_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *LoadCertificateResponse) XXX_DiscardUnknown() { - xxx_messageInfo_LoadCertificateResponse.DiscardUnknown(m) + +func (x *LoadCertificateAuthorityBundleResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_LoadCertificateResponse proto.InternalMessageInfo +func (*LoadCertificateAuthorityBundleResponse) ProtoMessage() {} + +func (x *LoadCertificateAuthorityBundleResponse) ProtoReflect() protoreflect.Message { + mi := &file_cert_cert_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use LoadCertificateAuthorityBundleResponse.ProtoReflect.Descriptor instead. +func (*LoadCertificateAuthorityBundleResponse) Descriptor() ([]byte, []int) { + return file_cert_cert_proto_rawDescGZIP(), []int{10} +} // A Finalize message is sent to the target to confirm the Rotation of // the certificate and that the certificate should not be rolled back when // the RPC concludes. The certificate must be rolled back if the target returns // an error after receiving a Finalize message. type FinalizeRequest struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *FinalizeRequest) Reset() { *m = FinalizeRequest{} } -func (m *FinalizeRequest) String() string { return proto.CompactTextString(m) } -func (*FinalizeRequest) ProtoMessage() {} -func (*FinalizeRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_cc7c7ec7dcc94e18, []int{9} +func (x *FinalizeRequest) Reset() { + *x = FinalizeRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cert_cert_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *FinalizeRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_FinalizeRequest.Unmarshal(m, b) -} -func (m *FinalizeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_FinalizeRequest.Marshal(b, m, deterministic) -} -func (m *FinalizeRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_FinalizeRequest.Merge(m, src) +func (x *FinalizeRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *FinalizeRequest) XXX_Size() int { - return xxx_messageInfo_FinalizeRequest.Size(m) -} -func (m *FinalizeRequest) XXX_DiscardUnknown() { - xxx_messageInfo_FinalizeRequest.DiscardUnknown(m) + +func (*FinalizeRequest) ProtoMessage() {} + +func (x *FinalizeRequest) ProtoReflect() protoreflect.Message { + mi := &file_cert_cert_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_FinalizeRequest proto.InternalMessageInfo +// Deprecated: Use FinalizeRequest.ProtoReflect.Descriptor instead. +func (*FinalizeRequest) Descriptor() ([]byte, []int) { + return file_cert_cert_proto_rawDescGZIP(), []int{11} +} // The request to query all the certificates on the target. type GetCertificatesRequest struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *GetCertificatesRequest) Reset() { *m = GetCertificatesRequest{} } -func (m *GetCertificatesRequest) String() string { return proto.CompactTextString(m) } -func (*GetCertificatesRequest) ProtoMessage() {} -func (*GetCertificatesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_cc7c7ec7dcc94e18, []int{10} +func (x *GetCertificatesRequest) Reset() { + *x = GetCertificatesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cert_cert_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetCertificatesRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetCertificatesRequest.Unmarshal(m, b) -} -func (m *GetCertificatesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetCertificatesRequest.Marshal(b, m, deterministic) +func (x *GetCertificatesRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetCertificatesRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetCertificatesRequest.Merge(m, src) -} -func (m *GetCertificatesRequest) XXX_Size() int { - return xxx_messageInfo_GetCertificatesRequest.Size(m) -} -func (m *GetCertificatesRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetCertificatesRequest.DiscardUnknown(m) + +func (*GetCertificatesRequest) ProtoMessage() {} + +func (x *GetCertificatesRequest) ProtoReflect() protoreflect.Message { + mi := &file_cert_cert_proto_msgTypes[12] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_GetCertificatesRequest proto.InternalMessageInfo +// Deprecated: Use GetCertificatesRequest.ProtoReflect.Descriptor instead. +func (*GetCertificatesRequest) Descriptor() ([]byte, []int) { + return file_cert_cert_proto_rawDescGZIP(), []int{12} +} // Response from the target about the certificates that exist on the target what // what is using them. type GetCertificatesResponse struct { - CertificateInfo []*CertificateInfo `protobuf:"bytes,1,rep,name=certificate_info,json=certificateInfo,proto3" json:"certificate_info,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *GetCertificatesResponse) Reset() { *m = GetCertificatesResponse{} } -func (m *GetCertificatesResponse) String() string { return proto.CompactTextString(m) } -func (*GetCertificatesResponse) ProtoMessage() {} -func (*GetCertificatesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_cc7c7ec7dcc94e18, []int{11} + CertificateInfo []*CertificateInfo `protobuf:"bytes,1,rep,name=certificate_info,json=certificateInfo,proto3" json:"certificate_info,omitempty"` } -func (m *GetCertificatesResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetCertificatesResponse.Unmarshal(m, b) -} -func (m *GetCertificatesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetCertificatesResponse.Marshal(b, m, deterministic) -} -func (m *GetCertificatesResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetCertificatesResponse.Merge(m, src) +func (x *GetCertificatesResponse) Reset() { + *x = GetCertificatesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cert_cert_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetCertificatesResponse) XXX_Size() int { - return xxx_messageInfo_GetCertificatesResponse.Size(m) + +func (x *GetCertificatesResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetCertificatesResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetCertificatesResponse.DiscardUnknown(m) + +func (*GetCertificatesResponse) ProtoMessage() {} + +func (x *GetCertificatesResponse) ProtoReflect() protoreflect.Message { + mi := &file_cert_cert_proto_msgTypes[13] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_GetCertificatesResponse proto.InternalMessageInfo +// Deprecated: Use GetCertificatesResponse.ProtoReflect.Descriptor instead. +func (*GetCertificatesResponse) Descriptor() ([]byte, []int) { + return file_cert_cert_proto_rawDescGZIP(), []int{13} +} -func (m *GetCertificatesResponse) GetCertificateInfo() []*CertificateInfo { - if m != nil { - return m.CertificateInfo +func (x *GetCertificatesResponse) GetCertificateInfo() []*CertificateInfo { + if x != nil { + return x.CertificateInfo } return nil } type CertificateInfo struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + CertificateId string `protobuf:"bytes,1,opt,name=certificate_id,json=certificateId,proto3" json:"certificate_id,omitempty"` Certificate *Certificate `protobuf:"bytes,2,opt,name=certificate,proto3" json:"certificate,omitempty"` // List of endpoints using this certificate. Endpoints []*Endpoint `protobuf:"bytes,3,rep,name=endpoints,proto3" json:"endpoints,omitempty"` // System modification time when the certificate was installed/rotated in // nanoseconds since epoch. - ModificationTime int64 `protobuf:"varint,4,opt,name=modification_time,json=modificationTime,proto3" json:"modification_time,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + ModificationTime int64 `protobuf:"varint,4,opt,name=modification_time,json=modificationTime,proto3" json:"modification_time,omitempty"` } -func (m *CertificateInfo) Reset() { *m = CertificateInfo{} } -func (m *CertificateInfo) String() string { return proto.CompactTextString(m) } -func (*CertificateInfo) ProtoMessage() {} -func (*CertificateInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_cc7c7ec7dcc94e18, []int{12} +func (x *CertificateInfo) Reset() { + *x = CertificateInfo{} + if protoimpl.UnsafeEnabled { + mi := &file_cert_cert_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *CertificateInfo) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CertificateInfo.Unmarshal(m, b) -} -func (m *CertificateInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CertificateInfo.Marshal(b, m, deterministic) +func (x *CertificateInfo) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *CertificateInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_CertificateInfo.Merge(m, src) -} -func (m *CertificateInfo) XXX_Size() int { - return xxx_messageInfo_CertificateInfo.Size(m) -} -func (m *CertificateInfo) XXX_DiscardUnknown() { - xxx_messageInfo_CertificateInfo.DiscardUnknown(m) + +func (*CertificateInfo) ProtoMessage() {} + +func (x *CertificateInfo) ProtoReflect() protoreflect.Message { + mi := &file_cert_cert_proto_msgTypes[14] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_CertificateInfo proto.InternalMessageInfo +// Deprecated: Use CertificateInfo.ProtoReflect.Descriptor instead. +func (*CertificateInfo) Descriptor() ([]byte, []int) { + return file_cert_cert_proto_rawDescGZIP(), []int{14} +} -func (m *CertificateInfo) GetCertificateId() string { - if m != nil { - return m.CertificateId +func (x *CertificateInfo) GetCertificateId() string { + if x != nil { + return x.CertificateId } return "" } -func (m *CertificateInfo) GetCertificate() *Certificate { - if m != nil { - return m.Certificate +func (x *CertificateInfo) GetCertificate() *Certificate { + if x != nil { + return x.Certificate } return nil } -func (m *CertificateInfo) GetEndpoints() []*Endpoint { - if m != nil { - return m.Endpoints +func (x *CertificateInfo) GetEndpoints() []*Endpoint { + if x != nil { + return x.Endpoints } return nil } -func (m *CertificateInfo) GetModificationTime() int64 { - if m != nil { - return m.ModificationTime +func (x *CertificateInfo) GetModificationTime() int64 { + if x != nil { + return x.ModificationTime } return 0 } type RevokeCertificatesRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // Certificates to revoke. - CertificateId []string `protobuf:"bytes,1,rep,name=certificate_id,json=certificateId,proto3" json:"certificate_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + CertificateId []string `protobuf:"bytes,1,rep,name=certificate_id,json=certificateId,proto3" json:"certificate_id,omitempty"` } -func (m *RevokeCertificatesRequest) Reset() { *m = RevokeCertificatesRequest{} } -func (m *RevokeCertificatesRequest) String() string { return proto.CompactTextString(m) } -func (*RevokeCertificatesRequest) ProtoMessage() {} -func (*RevokeCertificatesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_cc7c7ec7dcc94e18, []int{13} +func (x *RevokeCertificatesRequest) Reset() { + *x = RevokeCertificatesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cert_cert_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *RevokeCertificatesRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RevokeCertificatesRequest.Unmarshal(m, b) +func (x *RevokeCertificatesRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *RevokeCertificatesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RevokeCertificatesRequest.Marshal(b, m, deterministic) -} -func (m *RevokeCertificatesRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RevokeCertificatesRequest.Merge(m, src) -} -func (m *RevokeCertificatesRequest) XXX_Size() int { - return xxx_messageInfo_RevokeCertificatesRequest.Size(m) -} -func (m *RevokeCertificatesRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RevokeCertificatesRequest.DiscardUnknown(m) + +func (*RevokeCertificatesRequest) ProtoMessage() {} + +func (x *RevokeCertificatesRequest) ProtoReflect() protoreflect.Message { + mi := &file_cert_cert_proto_msgTypes[15] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_RevokeCertificatesRequest proto.InternalMessageInfo +// Deprecated: Use RevokeCertificatesRequest.ProtoReflect.Descriptor instead. +func (*RevokeCertificatesRequest) Descriptor() ([]byte, []int) { + return file_cert_cert_proto_rawDescGZIP(), []int{15} +} -func (m *RevokeCertificatesRequest) GetCertificateId() []string { - if m != nil { - return m.CertificateId +func (x *RevokeCertificatesRequest) GetCertificateId() []string { + if x != nil { + return x.CertificateId } return nil } type RevokeCertificatesResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // List of certificates successfully revoked. RevokedCertificateId []string `protobuf:"bytes,1,rep,name=revoked_certificate_id,json=revokedCertificateId,proto3" json:"revoked_certificate_id,omitempty"` // List of errors why certain certificates could not be revoked. CertificateRevocationError []*CertificateRevocationError `protobuf:"bytes,2,rep,name=certificate_revocation_error,json=certificateRevocationError,proto3" json:"certificate_revocation_error,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` } -func (m *RevokeCertificatesResponse) Reset() { *m = RevokeCertificatesResponse{} } -func (m *RevokeCertificatesResponse) String() string { return proto.CompactTextString(m) } -func (*RevokeCertificatesResponse) ProtoMessage() {} -func (*RevokeCertificatesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_cc7c7ec7dcc94e18, []int{14} +func (x *RevokeCertificatesResponse) Reset() { + *x = RevokeCertificatesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cert_cert_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *RevokeCertificatesResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RevokeCertificatesResponse.Unmarshal(m, b) +func (x *RevokeCertificatesResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *RevokeCertificatesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RevokeCertificatesResponse.Marshal(b, m, deterministic) -} -func (m *RevokeCertificatesResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RevokeCertificatesResponse.Merge(m, src) -} -func (m *RevokeCertificatesResponse) XXX_Size() int { - return xxx_messageInfo_RevokeCertificatesResponse.Size(m) -} -func (m *RevokeCertificatesResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RevokeCertificatesResponse.DiscardUnknown(m) + +func (*RevokeCertificatesResponse) ProtoMessage() {} + +func (x *RevokeCertificatesResponse) ProtoReflect() protoreflect.Message { + mi := &file_cert_cert_proto_msgTypes[16] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_RevokeCertificatesResponse proto.InternalMessageInfo +// Deprecated: Use RevokeCertificatesResponse.ProtoReflect.Descriptor instead. +func (*RevokeCertificatesResponse) Descriptor() ([]byte, []int) { + return file_cert_cert_proto_rawDescGZIP(), []int{16} +} -func (m *RevokeCertificatesResponse) GetRevokedCertificateId() []string { - if m != nil { - return m.RevokedCertificateId +func (x *RevokeCertificatesResponse) GetRevokedCertificateId() []string { + if x != nil { + return x.RevokedCertificateId } return nil } -func (m *RevokeCertificatesResponse) GetCertificateRevocationError() []*CertificateRevocationError { - if m != nil { - return m.CertificateRevocationError +func (x *RevokeCertificatesResponse) GetCertificateRevocationError() []*CertificateRevocationError { + if x != nil { + return x.CertificateRevocationError } return nil } // An error message indicating why a certificate id could not be revoked. type CertificateRevocationError struct { - CertificateId string `protobuf:"bytes,1,opt,name=certificate_id,json=certificateId,proto3" json:"certificate_id,omitempty"` - ErrorMessage string `protobuf:"bytes,2,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *CertificateRevocationError) Reset() { *m = CertificateRevocationError{} } -func (m *CertificateRevocationError) String() string { return proto.CompactTextString(m) } -func (*CertificateRevocationError) ProtoMessage() {} -func (*CertificateRevocationError) Descriptor() ([]byte, []int) { - return fileDescriptor_cc7c7ec7dcc94e18, []int{15} + CertificateId string `protobuf:"bytes,1,opt,name=certificate_id,json=certificateId,proto3" json:"certificate_id,omitempty"` + ErrorMessage string `protobuf:"bytes,2,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"` } -func (m *CertificateRevocationError) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CertificateRevocationError.Unmarshal(m, b) -} -func (m *CertificateRevocationError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CertificateRevocationError.Marshal(b, m, deterministic) -} -func (m *CertificateRevocationError) XXX_Merge(src proto.Message) { - xxx_messageInfo_CertificateRevocationError.Merge(m, src) +func (x *CertificateRevocationError) Reset() { + *x = CertificateRevocationError{} + if protoimpl.UnsafeEnabled { + mi := &file_cert_cert_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *CertificateRevocationError) XXX_Size() int { - return xxx_messageInfo_CertificateRevocationError.Size(m) + +func (x *CertificateRevocationError) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *CertificateRevocationError) XXX_DiscardUnknown() { - xxx_messageInfo_CertificateRevocationError.DiscardUnknown(m) + +func (*CertificateRevocationError) ProtoMessage() {} + +func (x *CertificateRevocationError) ProtoReflect() protoreflect.Message { + mi := &file_cert_cert_proto_msgTypes[17] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_CertificateRevocationError proto.InternalMessageInfo +// Deprecated: Use CertificateRevocationError.ProtoReflect.Descriptor instead. +func (*CertificateRevocationError) Descriptor() ([]byte, []int) { + return file_cert_cert_proto_rawDescGZIP(), []int{17} +} -func (m *CertificateRevocationError) GetCertificateId() string { - if m != nil { - return m.CertificateId +func (x *CertificateRevocationError) GetCertificateId() string { + if x != nil { + return x.CertificateId } return "" } -func (m *CertificateRevocationError) GetErrorMessage() string { - if m != nil { - return m.ErrorMessage +func (x *CertificateRevocationError) GetErrorMessage() string { + if x != nil { + return x.ErrorMessage } return "" } // A request to ask the target if it can generate key pairs. type CanGenerateCSRRequest struct { - KeyType KeyType `protobuf:"varint,1,opt,name=key_type,json=keyType,proto3,enum=gnoi.certificate.KeyType" json:"key_type,omitempty"` - CertificateType CertificateType `protobuf:"varint,2,opt,name=certificate_type,json=certificateType,proto3,enum=gnoi.certificate.CertificateType" json:"certificate_type,omitempty"` - KeySize uint32 `protobuf:"varint,3,opt,name=key_size,json=keySize,proto3" json:"key_size,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *CanGenerateCSRRequest) Reset() { *m = CanGenerateCSRRequest{} } -func (m *CanGenerateCSRRequest) String() string { return proto.CompactTextString(m) } -func (*CanGenerateCSRRequest) ProtoMessage() {} -func (*CanGenerateCSRRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_cc7c7ec7dcc94e18, []int{16} + KeyType KeyType `protobuf:"varint,1,opt,name=key_type,json=keyType,proto3,enum=gnoi.certificate.KeyType" json:"key_type,omitempty"` + CertificateType CertificateType `protobuf:"varint,2,opt,name=certificate_type,json=certificateType,proto3,enum=gnoi.certificate.CertificateType" json:"certificate_type,omitempty"` + KeySize uint32 `protobuf:"varint,3,opt,name=key_size,json=keySize,proto3" json:"key_size,omitempty"` } -func (m *CanGenerateCSRRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CanGenerateCSRRequest.Unmarshal(m, b) -} -func (m *CanGenerateCSRRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CanGenerateCSRRequest.Marshal(b, m, deterministic) -} -func (m *CanGenerateCSRRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_CanGenerateCSRRequest.Merge(m, src) +func (x *CanGenerateCSRRequest) Reset() { + *x = CanGenerateCSRRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_cert_cert_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *CanGenerateCSRRequest) XXX_Size() int { - return xxx_messageInfo_CanGenerateCSRRequest.Size(m) + +func (x *CanGenerateCSRRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *CanGenerateCSRRequest) XXX_DiscardUnknown() { - xxx_messageInfo_CanGenerateCSRRequest.DiscardUnknown(m) + +func (*CanGenerateCSRRequest) ProtoMessage() {} + +func (x *CanGenerateCSRRequest) ProtoReflect() protoreflect.Message { + mi := &file_cert_cert_proto_msgTypes[18] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_CanGenerateCSRRequest proto.InternalMessageInfo +// Deprecated: Use CanGenerateCSRRequest.ProtoReflect.Descriptor instead. +func (*CanGenerateCSRRequest) Descriptor() ([]byte, []int) { + return file_cert_cert_proto_rawDescGZIP(), []int{18} +} -func (m *CanGenerateCSRRequest) GetKeyType() KeyType { - if m != nil { - return m.KeyType +func (x *CanGenerateCSRRequest) GetKeyType() KeyType { + if x != nil { + return x.KeyType } return KeyType_KT_UNKNOWN } -func (m *CanGenerateCSRRequest) GetCertificateType() CertificateType { - if m != nil { - return m.CertificateType +func (x *CanGenerateCSRRequest) GetCertificateType() CertificateType { + if x != nil { + return x.CertificateType } return CertificateType_CT_UNKNOWN } -func (m *CanGenerateCSRRequest) GetKeySize() uint32 { - if m != nil { - return m.KeySize +func (x *CanGenerateCSRRequest) GetKeySize() uint32 { + if x != nil { + return x.KeySize } return 0 } @@ -1468,827 +1464,993 @@ func (m *CanGenerateCSRRequest) GetKeySize() uint32 { // Response from the target about whether it can generate a CSR with the given // parameters. type CanGenerateCSRResponse struct { - CanGenerate bool `protobuf:"varint,4,opt,name=can_generate,json=canGenerate,proto3" json:"can_generate,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *CanGenerateCSRResponse) Reset() { *m = CanGenerateCSRResponse{} } -func (m *CanGenerateCSRResponse) String() string { return proto.CompactTextString(m) } -func (*CanGenerateCSRResponse) ProtoMessage() {} -func (*CanGenerateCSRResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_cc7c7ec7dcc94e18, []int{17} + CanGenerate bool `protobuf:"varint,4,opt,name=can_generate,json=canGenerate,proto3" json:"can_generate,omitempty"` } -func (m *CanGenerateCSRResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CanGenerateCSRResponse.Unmarshal(m, b) -} -func (m *CanGenerateCSRResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CanGenerateCSRResponse.Marshal(b, m, deterministic) -} -func (m *CanGenerateCSRResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_CanGenerateCSRResponse.Merge(m, src) +func (x *CanGenerateCSRResponse) Reset() { + *x = CanGenerateCSRResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_cert_cert_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *CanGenerateCSRResponse) XXX_Size() int { - return xxx_messageInfo_CanGenerateCSRResponse.Size(m) + +func (x *CanGenerateCSRResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *CanGenerateCSRResponse) XXX_DiscardUnknown() { - xxx_messageInfo_CanGenerateCSRResponse.DiscardUnknown(m) + +func (*CanGenerateCSRResponse) ProtoMessage() {} + +func (x *CanGenerateCSRResponse) ProtoReflect() protoreflect.Message { + mi := &file_cert_cert_proto_msgTypes[19] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_CanGenerateCSRResponse proto.InternalMessageInfo +// Deprecated: Use CanGenerateCSRResponse.ProtoReflect.Descriptor instead. +func (*CanGenerateCSRResponse) Descriptor() ([]byte, []int) { + return file_cert_cert_proto_rawDescGZIP(), []int{19} +} -func (m *CanGenerateCSRResponse) GetCanGenerate() bool { - if m != nil { - return m.CanGenerate +func (x *CanGenerateCSRResponse) GetCanGenerate() bool { + if x != nil { + return x.CanGenerate } return false } // A certificate. type Certificate struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // Type of certificate. Type CertificateType `protobuf:"varint,1,opt,name=type,proto3,enum=gnoi.certificate.CertificateType" json:"type,omitempty"` // Actual certificate. // The exact encoding depends upon the type of certificate. // for X509, this should be a PEM encoded Certificate. - Certificate []byte `protobuf:"bytes,2,opt,name=certificate,proto3" json:"certificate,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Certificate []byte `protobuf:"bytes,2,opt,name=certificate,proto3" json:"certificate,omitempty"` } -func (m *Certificate) Reset() { *m = Certificate{} } -func (m *Certificate) String() string { return proto.CompactTextString(m) } -func (*Certificate) ProtoMessage() {} -func (*Certificate) Descriptor() ([]byte, []int) { - return fileDescriptor_cc7c7ec7dcc94e18, []int{18} +func (x *Certificate) Reset() { + *x = Certificate{} + if protoimpl.UnsafeEnabled { + mi := &file_cert_cert_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *Certificate) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Certificate.Unmarshal(m, b) +func (x *Certificate) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Certificate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Certificate.Marshal(b, m, deterministic) -} -func (m *Certificate) XXX_Merge(src proto.Message) { - xxx_messageInfo_Certificate.Merge(m, src) -} -func (m *Certificate) XXX_Size() int { - return xxx_messageInfo_Certificate.Size(m) -} -func (m *Certificate) XXX_DiscardUnknown() { - xxx_messageInfo_Certificate.DiscardUnknown(m) + +func (*Certificate) ProtoMessage() {} + +func (x *Certificate) ProtoReflect() protoreflect.Message { + mi := &file_cert_cert_proto_msgTypes[20] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_Certificate proto.InternalMessageInfo +// Deprecated: Use Certificate.ProtoReflect.Descriptor instead. +func (*Certificate) Descriptor() ([]byte, []int) { + return file_cert_cert_proto_rawDescGZIP(), []int{20} +} -func (m *Certificate) GetType() CertificateType { - if m != nil { - return m.Type +func (x *Certificate) GetType() CertificateType { + if x != nil { + return x.Type } return CertificateType_CT_UNKNOWN } -func (m *Certificate) GetCertificate() []byte { - if m != nil { - return m.Certificate +func (x *Certificate) GetCertificate() []byte { + if x != nil { + return x.Certificate } return nil } // A Certificate Signing Request. type CSR struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // Type of certificate. Type CertificateType `protobuf:"varint,1,opt,name=type,proto3,enum=gnoi.certificate.CertificateType" json:"type,omitempty"` // Bytes representing the CSR. // The exact encoding depends upon the type of certificate requested. // for X509: This should be the PEM encoded CSR. - Csr []byte `protobuf:"bytes,2,opt,name=csr,proto3" json:"csr,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Csr []byte `protobuf:"bytes,2,opt,name=csr,proto3" json:"csr,omitempty"` } -func (m *CSR) Reset() { *m = CSR{} } -func (m *CSR) String() string { return proto.CompactTextString(m) } -func (*CSR) ProtoMessage() {} -func (*CSR) Descriptor() ([]byte, []int) { - return fileDescriptor_cc7c7ec7dcc94e18, []int{19} -} - -func (m *CSR) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CSR.Unmarshal(m, b) -} -func (m *CSR) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CSR.Marshal(b, m, deterministic) -} -func (m *CSR) XXX_Merge(src proto.Message) { - xxx_messageInfo_CSR.Merge(m, src) -} -func (m *CSR) XXX_Size() int { - return xxx_messageInfo_CSR.Size(m) -} -func (m *CSR) XXX_DiscardUnknown() { - xxx_messageInfo_CSR.DiscardUnknown(m) -} - -var xxx_messageInfo_CSR proto.InternalMessageInfo - -func (m *CSR) GetType() CertificateType { - if m != nil { - return m.Type +func (x *CSR) Reset() { + *x = CSR{} + if protoimpl.UnsafeEnabled { + mi := &file_cert_cert_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return CertificateType_CT_UNKNOWN } -func (m *CSR) GetCsr() []byte { - if m != nil { - return m.Csr - } - return nil +func (x *CSR) String() string { + return protoimpl.X.MessageStringOf(x) } -// A message representing a pair of public/private keys. -type KeyPair struct { - PrivateKey []byte `protobuf:"bytes,1,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"` - PublicKey []byte `protobuf:"bytes,2,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} +func (*CSR) ProtoMessage() {} -func (m *KeyPair) Reset() { *m = KeyPair{} } -func (m *KeyPair) String() string { return proto.CompactTextString(m) } -func (*KeyPair) ProtoMessage() {} -func (*KeyPair) Descriptor() ([]byte, []int) { - return fileDescriptor_cc7c7ec7dcc94e18, []int{20} +func (x *CSR) ProtoReflect() protoreflect.Message { + mi := &file_cert_cert_proto_msgTypes[21] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func (m *KeyPair) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_KeyPair.Unmarshal(m, b) -} -func (m *KeyPair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_KeyPair.Marshal(b, m, deterministic) -} -func (m *KeyPair) XXX_Merge(src proto.Message) { - xxx_messageInfo_KeyPair.Merge(m, src) -} -func (m *KeyPair) XXX_Size() int { - return xxx_messageInfo_KeyPair.Size(m) -} -func (m *KeyPair) XXX_DiscardUnknown() { - xxx_messageInfo_KeyPair.DiscardUnknown(m) +// Deprecated: Use CSR.ProtoReflect.Descriptor instead. +func (*CSR) Descriptor() ([]byte, []int) { + return file_cert_cert_proto_rawDescGZIP(), []int{21} } -var xxx_messageInfo_KeyPair proto.InternalMessageInfo - -func (m *KeyPair) GetPrivateKey() []byte { - if m != nil { - return m.PrivateKey +func (x *CSR) GetType() CertificateType { + if x != nil { + return x.Type } - return nil + return CertificateType_CT_UNKNOWN } -func (m *KeyPair) GetPublicKey() []byte { - if m != nil { - return m.PublicKey +func (x *CSR) GetCsr() []byte { + if x != nil { + return x.Csr } return nil } -// An endpoint represents an entity on the target which can use a certificate. -type Endpoint struct { - Type Endpoint_Type `protobuf:"varint,1,opt,name=type,proto3,enum=gnoi.certificate.Endpoint_Type" json:"type,omitempty"` - // Human readable identifier for an endpoint. - Endpoint string `protobuf:"bytes,2,opt,name=endpoint,proto3" json:"endpoint,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Endpoint) Reset() { *m = Endpoint{} } -func (m *Endpoint) String() string { return proto.CompactTextString(m) } -func (*Endpoint) ProtoMessage() {} -func (*Endpoint) Descriptor() ([]byte, []int) { - return fileDescriptor_cc7c7ec7dcc94e18, []int{21} -} - -func (m *Endpoint) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Endpoint.Unmarshal(m, b) -} -func (m *Endpoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Endpoint.Marshal(b, m, deterministic) -} -func (m *Endpoint) XXX_Merge(src proto.Message) { - xxx_messageInfo_Endpoint.Merge(m, src) -} -func (m *Endpoint) XXX_Size() int { - return xxx_messageInfo_Endpoint.Size(m) -} -func (m *Endpoint) XXX_DiscardUnknown() { - xxx_messageInfo_Endpoint.DiscardUnknown(m) -} - -var xxx_messageInfo_Endpoint proto.InternalMessageInfo +// A message representing a pair of public/private keys. +type KeyPair struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *Endpoint) GetType() Endpoint_Type { - if m != nil { - return m.Type - } - return Endpoint_EP_UNSPECIFIED + PrivateKey []byte `protobuf:"bytes,1,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"` + PublicKey []byte `protobuf:"bytes,2,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` } -func (m *Endpoint) GetEndpoint() string { - if m != nil { - return m.Endpoint +func (x *KeyPair) Reset() { + *x = KeyPair{} + if protoimpl.UnsafeEnabled { + mi := &file_cert_cert_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return "" -} - -func init() { - proto.RegisterEnum("gnoi.certificate.CertificateType", CertificateType_name, CertificateType_value) - proto.RegisterEnum("gnoi.certificate.KeyType", KeyType_name, KeyType_value) - proto.RegisterEnum("gnoi.certificate.Endpoint_Type", Endpoint_Type_name, Endpoint_Type_value) - proto.RegisterType((*RotateCertificateRequest)(nil), "gnoi.certificate.RotateCertificateRequest") - proto.RegisterType((*RotateCertificateResponse)(nil), "gnoi.certificate.RotateCertificateResponse") - proto.RegisterType((*InstallCertificateRequest)(nil), "gnoi.certificate.InstallCertificateRequest") - proto.RegisterType((*InstallCertificateResponse)(nil), "gnoi.certificate.InstallCertificateResponse") - proto.RegisterType((*GenerateCSRRequest)(nil), "gnoi.certificate.GenerateCSRRequest") - proto.RegisterType((*CSRParams)(nil), "gnoi.certificate.CSRParams") - proto.RegisterType((*GenerateCSRResponse)(nil), "gnoi.certificate.GenerateCSRResponse") - proto.RegisterType((*LoadCertificateRequest)(nil), "gnoi.certificate.LoadCertificateRequest") - proto.RegisterType((*LoadCertificateResponse)(nil), "gnoi.certificate.LoadCertificateResponse") - proto.RegisterType((*FinalizeRequest)(nil), "gnoi.certificate.FinalizeRequest") - proto.RegisterType((*GetCertificatesRequest)(nil), "gnoi.certificate.GetCertificatesRequest") - proto.RegisterType((*GetCertificatesResponse)(nil), "gnoi.certificate.GetCertificatesResponse") - proto.RegisterType((*CertificateInfo)(nil), "gnoi.certificate.CertificateInfo") - proto.RegisterType((*RevokeCertificatesRequest)(nil), "gnoi.certificate.RevokeCertificatesRequest") - proto.RegisterType((*RevokeCertificatesResponse)(nil), "gnoi.certificate.RevokeCertificatesResponse") - proto.RegisterType((*CertificateRevocationError)(nil), "gnoi.certificate.CertificateRevocationError") - proto.RegisterType((*CanGenerateCSRRequest)(nil), "gnoi.certificate.CanGenerateCSRRequest") - proto.RegisterType((*CanGenerateCSRResponse)(nil), "gnoi.certificate.CanGenerateCSRResponse") - proto.RegisterType((*Certificate)(nil), "gnoi.certificate.Certificate") - proto.RegisterType((*CSR)(nil), "gnoi.certificate.CSR") - proto.RegisterType((*KeyPair)(nil), "gnoi.certificate.KeyPair") - proto.RegisterType((*Endpoint)(nil), "gnoi.certificate.Endpoint") -} - -func init() { proto.RegisterFile("cert/cert.proto", fileDescriptor_cc7c7ec7dcc94e18) } - -var fileDescriptor_cc7c7ec7dcc94e18 = []byte{ - // 1254 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x57, 0xdd, 0x72, 0xda, 0xc6, - 0x17, 0xb7, 0x0c, 0x31, 0x70, 0xc0, 0x20, 0x6f, 0x12, 0x47, 0xf0, 0xff, 0x67, 0x92, 0xa8, 0xcd, - 0xc4, 0x49, 0x3c, 0xd8, 0xcd, 0xc7, 0x4c, 0x3f, 0x66, 0xdc, 0xb1, 0x09, 0x8e, 0x19, 0x6c, 0xc2, - 0x08, 0xdc, 0xf6, 0x4e, 0xb3, 0x16, 0x0b, 0xde, 0x31, 0xda, 0x55, 0x25, 0x39, 0x1d, 0xfc, 0x10, - 0x7d, 0x81, 0xde, 0xf4, 0xaa, 0x8f, 0xd0, 0x07, 0xe8, 0x13, 0x74, 0x3a, 0x9d, 0x5e, 0xf7, 0x49, - 0x3a, 0x1d, 0xed, 0x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x0e, 0xa6, 0x6e, 0xd8, 0x09, 0xc9, 0x59, 0x6c, 0x63, 0xea, 0x8a, 0x2c, - 0x06, 0x0f, 0x09, 0x95, 0x98, 0x4a, 0xa8, 0x44, 0x74, 0x08, 0x25, 0x0b, 0x47, 0x9b, 0xcd, 0xd3, - 0xd2, 0x0f, 0x53, 0x37, 0xdf, 0xb0, 0x68, 0xe1, 0xc8, 0xab, 0xa7, 0x97, 0xe1, 0xde, 0x82, 0x66, - 0xd4, 0x37, 0xa0, 0x34, 0xb7, 0x21, 0x74, 0x0d, 0x36, 0xdf, 0x12, 0x3f, 0x4a, 0x30, 0xd6, 0x0c, - 0xe0, 0x5e, 0x4c, 0x33, 0x99, 0x33, 0xea, 0x8c, 0x47, 0xac, 0xcf, 0x35, 0x45, 0xdc, 0xf5, 0xfa, - 0x96, 0x69, 0xb0, 0x3e, 0x37, 0x4a, 0xd6, 0xac, 0x40, 0xff, 0x5b, 0x81, 0xd2, 0x1c, 0x28, 0x21, - 0x66, 0x4a, 0x52, 0xcc, 0xe6, 0x32, 0xba, 0xfa, 0x9f, 0x33, 0xfa, 0x39, 0xe4, 0x08, 0xeb, 0x39, - 0x9c, 0x32, 0xdf, 0xd3, 0x52, 0xc2, 0x85, 0x4a, 0xdc, 0xbc, 0x1e, 0x42, 0x8c, 0x29, 0x18, 0x3d, - 0x87, 0x0d, 0x9b, 0xf7, 0x24, 0x82, 0x72, 0x66, 0xfa, 0x34, 0xec, 0xd0, 0x94, 0xa1, 0x46, 0x15, - 0x5d, 0x6a, 0x13, 0xfd, 0x00, 0xca, 0x06, 0x79, 0xcf, 0x2f, 0x48, 0x42, 0xa0, 0x13, 0x7d, 0x4d, - 0xc5, 0x27, 0xd5, 0x6f, 0x0a, 0x54, 0x92, 0x48, 0xc2, 0x9c, 0xbc, 0x82, 0x4d, 0x57, 0x68, 0x67, - 0x06, 0xf6, 0x94, 0xed, 0x4e, 0xa8, 0xad, 0xcd, 0x04, 0x90, 0xc1, 0xff, 0x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dc, 0x5e, 0x42, 0x5b, 0x49, 0x1f, 0xb8, 0x49, - 0x4b, 0xad, 0xf2, 0x74, 0x09, 0x64, 0xd8, 0x6d, 0x1c, 0x50, 0x7c, 0xdc, 0x26, 0x39, 0xb7, 0x70, - 0xb2, 0x27, 0x39, 0x77, 0xcd, 0x04, 0xb7, 0xa0, 0x38, 0xdb, 0xf8, 0xe8, 0x49, 0x42, 0x43, 0x25, - 0x8d, 0xb4, 0xca, 0xd6, 0xcd, 0x40, 0x79, 0xc8, 0x41, 0xf6, 0x8f, 0xbd, 0x5b, 0xbb, 0xd5, 0xcf, - 0xaa, 0xbb, 0x67, 0x6b, 0xe2, 0xff, 0xf1, 0xcb, 0x7f, 0x03, 0x00, 0x00, 0xff, 0xff, 0x12, 0x6e, - 0xeb, 0x1d, 0x72, 0x0f, 0x00, 0x00, -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// CertificateManagementClient is the client API for CertificateManagement service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type CertificateManagementClient interface { - // Rotate will replace an existing Certificate on the target by creating a - // new CSR request and placing the new Certificate based on the CSR on the - // target. If the stream is broken or any steps in the process fail the - // target must rollback to the original Certificate. - // - // The following describes the sequence of messages that must be exchanged - // in the Rotate() RPC. - // - // Sequence of expected messages: - // Case 1: When Target generates the CSR. - // - // Step 1: Start the stream - // Client <---- Rotate() RPC stream begin ------> Target - // - // Step 2: CSR - // Client -----> GenerateCSRRequest----> Target - // Client <----- GenerateCSRResponse <--- Target - // - // Step 3: Certificate Signing - // Client gets the certificate signed by the CA. - // - // Step 4: Send Certificate to Target. - // Client --> LoadCertificateRequest ----> Target - // Client <-- LoadCertificateResponse <--- Target - // - // Step 5: Test/Validation by the client. - // This step should be to create a new connection to the target using - // The new certificate and validate that the certificate works. - // Once verfied, the client will then proceed to finalize the rotation. - // If the new connection cannot be completed the client will cancel the - // RPC thereby forcing the target to rollback the certificate. - // - // Step 6: Final commit. - // Client ---> FinalizeRequest ----> Target - // - // - // Case 2: When Client generates the CSR. - // Step 1: Start the stream - // Client <---- Rotate() RPC stream begin ----> Target - // - // Step 2: CSR - // Client generates its own certificate. - // - // Step 3: Certificate Signing - // Client gets the certificate signed by the CA. - // - // Step 4: Send Certificate to Target. - // Client ---> LoadCertificateRequest ----> Target - // Client <--- LoadCertificateResponse <--- Target - // - // Step 5: Test/Validation by the client. - // - // Step 6: Final commit. - // Client ---> FinalizeRequest ----> Target - Rotate(ctx context.Context, opts ...grpc.CallOption) (CertificateManagement_RotateClient, error) - // Install will put a new Certificate on the target by creating a new CSR - // request and placing the new Certificate based on the CSR on the target.The - // new Certificate will be associated with a new Certificate Id on the target. - // If the target has a pre existing Certificate with the given Certificate Id, - // the operation should fail. - // If the stream is broken or any steps in the process fail the target must - // revert any changes in state. - // - // The following describes the sequence of messages that must be exchanged - // in the Install() RPC. - // - // Sequence of expected messages: - // Case 1: When Target generates the CSR-------------------------: - // - // Step 1: Start the stream - // Client <---- Install() RPC stream begin ------> Target - // - // Step 2: CSR - // Client -----> GenerateCSRRequest() ----> Target - // Client <---- GenerateCSRResponse() <---- Target - // - // Step 3: Certificate Signing - // Client gets the certificate signed by the CA. - // - // Step 4: Send Certificate to Target. - // Client -> LoadCertificateRequest() ----> Target - // Client <- LoadCertificateResponse() <--- Target - // - // Case 2: When Client generates the CSR-------------------------: - // Step 1: Start the stream - // Client <---- Install() RPC stream begin ------> Target - // - // Step 2: CSR - // Client generates its own certificate. - // - // Step 3: Certificate Signing - // Client gets the certificate signed by the CA. - // - // Step 4: Send Certificate to Target. - // Client -> LoadCertificateRequest() ----> Target - // Client <- LoadCertificateResponse() <--- Target - // - Install(ctx context.Context, opts ...grpc.CallOption) (CertificateManagement_InstallClient, error) - // An RPC to get the certificates on the target. - GetCertificates(ctx context.Context, in *GetCertificatesRequest, opts ...grpc.CallOption) (*GetCertificatesResponse, error) - // An RPC to revoke specific certificates. - // If a certificate is not present on the target, the request should silently - // succeed. Revoking a certificate should render the existing certificate - // unusable by any endpoints. - RevokeCertificates(ctx context.Context, in *RevokeCertificatesRequest, opts ...grpc.CallOption) (*RevokeCertificatesResponse, error) - // An RPC to ask a target if it can generate a Certificate. - CanGenerateCSR(ctx context.Context, in *CanGenerateCSRRequest, opts ...grpc.CallOption) (*CanGenerateCSRResponse, error) } -type certificateManagementClient struct { - cc *grpc.ClientConn +func (x *KeyPair) String() string { + return protoimpl.X.MessageStringOf(x) } -func NewCertificateManagementClient(cc *grpc.ClientConn) CertificateManagementClient { - return &certificateManagementClient{cc} -} +func (*KeyPair) ProtoMessage() {} -func (c *certificateManagementClient) Rotate(ctx context.Context, opts ...grpc.CallOption) (CertificateManagement_RotateClient, error) { - stream, err := c.cc.NewStream(ctx, &_CertificateManagement_serviceDesc.Streams[0], "/gnoi.certificate.CertificateManagement/Rotate", opts...) - if err != nil { - return nil, err +func (x *KeyPair) ProtoReflect() protoreflect.Message { + mi := &file_cert_cert_proto_msgTypes[22] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - x := &certificateManagementRotateClient{stream} - return x, nil -} - -type CertificateManagement_RotateClient interface { - Send(*RotateCertificateRequest) error - Recv() (*RotateCertificateResponse, error) - grpc.ClientStream -} - -type certificateManagementRotateClient struct { - grpc.ClientStream + return mi.MessageOf(x) } -func (x *certificateManagementRotateClient) Send(m *RotateCertificateRequest) error { - return x.ClientStream.SendMsg(m) +// Deprecated: Use KeyPair.ProtoReflect.Descriptor instead. +func (*KeyPair) Descriptor() ([]byte, []int) { + return file_cert_cert_proto_rawDescGZIP(), []int{22} } -func (x *certificateManagementRotateClient) Recv() (*RotateCertificateResponse, error) { - m := new(RotateCertificateResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err +func (x *KeyPair) GetPrivateKey() []byte { + if x != nil { + return x.PrivateKey } - return m, nil + return nil } -func (c *certificateManagementClient) Install(ctx context.Context, opts ...grpc.CallOption) (CertificateManagement_InstallClient, error) { - stream, err := c.cc.NewStream(ctx, &_CertificateManagement_serviceDesc.Streams[1], "/gnoi.certificate.CertificateManagement/Install", opts...) - if err != nil { - return nil, err +func (x *KeyPair) GetPublicKey() []byte { + if x != nil { + return x.PublicKey } - x := &certificateManagementInstallClient{stream} - return x, nil -} - -type CertificateManagement_InstallClient interface { - Send(*InstallCertificateRequest) error - Recv() (*InstallCertificateResponse, error) - grpc.ClientStream + return nil } -type certificateManagementInstallClient struct { - grpc.ClientStream -} +// An endpoint represents an entity on the target which can use a certificate. +type Endpoint struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (x *certificateManagementInstallClient) Send(m *InstallCertificateRequest) error { - return x.ClientStream.SendMsg(m) + Type Endpoint_Type `protobuf:"varint,1,opt,name=type,proto3,enum=gnoi.certificate.Endpoint_Type" json:"type,omitempty"` + // Human readable identifier for an endpoint. + Endpoint string `protobuf:"bytes,2,opt,name=endpoint,proto3" json:"endpoint,omitempty"` } -func (x *certificateManagementInstallClient) Recv() (*InstallCertificateResponse, error) { - m := new(InstallCertificateResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err +func (x *Endpoint) Reset() { + *x = Endpoint{} + if protoimpl.UnsafeEnabled { + mi := &file_cert_cert_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return m, nil } -func (c *certificateManagementClient) GetCertificates(ctx context.Context, in *GetCertificatesRequest, opts ...grpc.CallOption) (*GetCertificatesResponse, error) { - out := new(GetCertificatesResponse) - err := c.cc.Invoke(ctx, "/gnoi.certificate.CertificateManagement/GetCertificates", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +func (x *Endpoint) String() string { + return protoimpl.X.MessageStringOf(x) } -func (c *certificateManagementClient) RevokeCertificates(ctx context.Context, in *RevokeCertificatesRequest, opts ...grpc.CallOption) (*RevokeCertificatesResponse, error) { - out := new(RevokeCertificatesResponse) - err := c.cc.Invoke(ctx, "/gnoi.certificate.CertificateManagement/RevokeCertificates", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} +func (*Endpoint) ProtoMessage() {} -func (c *certificateManagementClient) CanGenerateCSR(ctx context.Context, in *CanGenerateCSRRequest, opts ...grpc.CallOption) (*CanGenerateCSRResponse, error) { - out := new(CanGenerateCSRResponse) - err := c.cc.Invoke(ctx, "/gnoi.certificate.CertificateManagement/CanGenerateCSR", in, out, opts...) - if err != nil { - return nil, err +func (x *Endpoint) ProtoReflect() protoreflect.Message { + mi := &file_cert_cert_proto_msgTypes[23] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return out, nil -} - -// CertificateManagementServer is the server API for CertificateManagement service. -type CertificateManagementServer interface { - // Rotate will replace an existing Certificate on the target by creating a - // new CSR request and placing the new Certificate based on the CSR on the - // target. If the stream is broken or any steps in the process fail the - // target must rollback to the original Certificate. - // - // The following describes the sequence of messages that must be exchanged - // in the Rotate() RPC. - // - // Sequence of expected messages: - // Case 1: When Target generates the CSR. - // - // Step 1: Start the stream - // Client <---- Rotate() RPC stream begin ------> Target - // - // Step 2: CSR - // Client -----> GenerateCSRRequest----> Target - // Client <----- GenerateCSRResponse <--- Target - // - // Step 3: Certificate Signing - // Client gets the certificate signed by the CA. - // - // Step 4: Send Certificate to Target. - // Client --> LoadCertificateRequest ----> Target - // Client <-- LoadCertificateResponse <--- Target - // - // Step 5: Test/Validation by the client. - // This step should be to create a new connection to the target using - // The new certificate and validate that the certificate works. - // Once verfied, the client will then proceed to finalize the rotation. - // If the new connection cannot be completed the client will cancel the - // RPC thereby forcing the target to rollback the certificate. - // - // Step 6: Final commit. - // Client ---> FinalizeRequest ----> Target - // - // - // Case 2: When Client generates the CSR. - // Step 1: Start the stream - // Client <---- Rotate() RPC stream begin ----> Target - // - // Step 2: CSR - // Client generates its own certificate. - // - // Step 3: Certificate Signing - // Client gets the certificate signed by the CA. - // - // Step 4: Send Certificate to Target. - // Client ---> LoadCertificateRequest ----> Target - // Client <--- LoadCertificateResponse <--- Target - // - // Step 5: Test/Validation by the client. - // - // Step 6: Final commit. - // Client ---> FinalizeRequest ----> Target - Rotate(CertificateManagement_RotateServer) error - // Install will put a new Certificate on the target by creating a new CSR - // request and placing the new Certificate based on the CSR on the target.The - // new Certificate will be associated with a new Certificate Id on the target. - // If the target has a pre existing Certificate with the given Certificate Id, - // the operation should fail. - // If the stream is broken or any steps in the process fail the target must - // revert any changes in state. - // - // The following describes the sequence of messages that must be exchanged - // in the Install() RPC. - // - // Sequence of expected messages: - // Case 1: When Target generates the CSR-------------------------: - // - // Step 1: Start the stream - // Client <---- Install() RPC stream begin ------> Target - // - // Step 2: CSR - // Client -----> GenerateCSRRequest() ----> Target - // Client <---- GenerateCSRResponse() <---- Target - // - // Step 3: Certificate Signing - // Client gets the certificate signed by the CA. - // - // Step 4: Send Certificate to Target. - // Client -> LoadCertificateRequest() ----> Target - // Client <- LoadCertificateResponse() <--- Target - // - // Case 2: When Client generates the CSR-------------------------: - // Step 1: Start the stream - // Client <---- Install() RPC stream begin ------> Target - // - // Step 2: CSR - // Client generates its own certificate. - // - // Step 3: Certificate Signing - // Client gets the certificate signed by the CA. - // - // Step 4: Send Certificate to Target. - // Client -> LoadCertificateRequest() ----> Target - // Client <- LoadCertificateResponse() <--- Target - // - Install(CertificateManagement_InstallServer) error - // An RPC to get the certificates on the target. - GetCertificates(context.Context, *GetCertificatesRequest) (*GetCertificatesResponse, error) - // An RPC to revoke specific certificates. - // If a certificate is not present on the target, the request should silently - // succeed. Revoking a certificate should render the existing certificate - // unusable by any endpoints. - RevokeCertificates(context.Context, *RevokeCertificatesRequest) (*RevokeCertificatesResponse, error) - // An RPC to ask a target if it can generate a Certificate. - CanGenerateCSR(context.Context, *CanGenerateCSRRequest) (*CanGenerateCSRResponse, error) -} - -func RegisterCertificateManagementServer(s *grpc.Server, srv CertificateManagementServer) { - s.RegisterService(&_CertificateManagement_serviceDesc, srv) -} - -func _CertificateManagement_Rotate_Handler(srv interface{}, stream grpc.ServerStream) error { - return srv.(CertificateManagementServer).Rotate(&certificateManagementRotateServer{stream}) -} - -type CertificateManagement_RotateServer interface { - Send(*RotateCertificateResponse) error - Recv() (*RotateCertificateRequest, error) - grpc.ServerStream -} - -type certificateManagementRotateServer struct { - grpc.ServerStream + return mi.MessageOf(x) } -func (x *certificateManagementRotateServer) Send(m *RotateCertificateResponse) error { - return x.ServerStream.SendMsg(m) +// Deprecated: Use Endpoint.ProtoReflect.Descriptor instead. +func (*Endpoint) Descriptor() ([]byte, []int) { + return file_cert_cert_proto_rawDescGZIP(), []int{23} } -func (x *certificateManagementRotateServer) Recv() (*RotateCertificateRequest, error) { - m := new(RotateCertificateRequest) - if err := x.ServerStream.RecvMsg(m); err != nil { - return nil, err +func (x *Endpoint) GetType() Endpoint_Type { + if x != nil { + return x.Type } - return m, nil -} - -func _CertificateManagement_Install_Handler(srv interface{}, stream grpc.ServerStream) error { - return srv.(CertificateManagementServer).Install(&certificateManagementInstallServer{stream}) -} - -type CertificateManagement_InstallServer interface { - Send(*InstallCertificateResponse) error - Recv() (*InstallCertificateRequest, error) - grpc.ServerStream -} - -type certificateManagementInstallServer struct { - grpc.ServerStream -} - -func (x *certificateManagementInstallServer) Send(m *InstallCertificateResponse) error { - return x.ServerStream.SendMsg(m) + return Endpoint_EP_UNSPECIFIED } -func (x *certificateManagementInstallServer) Recv() (*InstallCertificateRequest, error) { - m := new(InstallCertificateRequest) - if err := x.ServerStream.RecvMsg(m); err != nil { - return nil, err +func (x *Endpoint) GetEndpoint() string { + if x != nil { + return x.Endpoint } - return m, nil + return "" } -func _CertificateManagement_GetCertificates_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetCertificatesRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(CertificateManagementServer).GetCertificates(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.certificate.CertificateManagement/GetCertificates", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(CertificateManagementServer).GetCertificates(ctx, req.(*GetCertificatesRequest)) - } - return interceptor(ctx, in, info, handler) -} +var File_cert_cert_proto protoreflect.FileDescriptor + +var file_cert_cert_proto_rawDesc = []byte{ + 0x0a, 0x0f, 0x63, 0x65, 0x72, 0x74, 0x2f, 0x63, 0x65, 0x72, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x12, 0x10, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, + 0x61, 0x74, 0x65, 0x1a, 0x2c, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, + 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x67, 0x6e, 0x6f, 0x69, 0x2f, + 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x22, 0xa0, 0x02, 0x0a, 0x18, 0x52, 0x6f, 0x74, 0x61, 0x74, 0x65, 0x43, 0x65, 0x72, 0x74, + 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x49, + 0x0a, 0x0c, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x5f, 0x63, 0x73, 0x72, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x65, 0x72, 0x74, + 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, + 0x43, 0x53, 0x52, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x0b, 0x67, 0x65, + 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x43, 0x73, 0x72, 0x12, 0x55, 0x0a, 0x10, 0x6c, 0x6f, 0x61, + 0x64, 0x5f, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x65, 0x72, 0x74, 0x69, + 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x2e, 0x4c, 0x6f, 0x61, 0x64, 0x43, 0x65, 0x72, 0x74, 0x69, + 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, + 0x0f, 0x6c, 0x6f, 0x61, 0x64, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, + 0x12, 0x50, 0x0a, 0x11, 0x66, 0x69, 0x6e, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x5f, 0x72, 0x6f, 0x74, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67, 0x6e, + 0x6f, 0x69, 0x2e, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x2e, 0x46, + 0x69, 0x6e, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, + 0x52, 0x10, 0x66, 0x69, 0x6e, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x52, 0x6f, 0x74, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x42, 0x10, 0x0a, 0x0e, 0x72, 0x6f, 0x74, 0x61, 0x74, 0x65, 0x5f, 0x72, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x22, 0xd4, 0x01, 0x0a, 0x19, 0x52, 0x6f, 0x74, 0x61, 0x74, 0x65, 0x43, + 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x4c, 0x0a, 0x0d, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x5f, + 0x63, 0x73, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x67, 0x6e, 0x6f, 0x69, + 0x2e, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x2e, 0x47, 0x65, 0x6e, + 0x65, 0x72, 0x61, 0x74, 0x65, 0x43, 0x53, 0x52, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x48, 0x00, 0x52, 0x0c, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x43, 0x73, 0x72, + 0x12, 0x56, 0x0a, 0x10, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, + 0x63, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x67, 0x6e, 0x6f, + 0x69, 0x2e, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x2e, 0x4c, 0x6f, + 0x61, 0x64, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x0f, 0x6c, 0x6f, 0x61, 0x64, 0x43, 0x65, 0x72, + 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x42, 0x11, 0x0a, 0x0f, 0x72, 0x6f, 0x74, 0x61, + 0x74, 0x65, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xd0, 0x01, 0x0a, 0x19, + 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, + 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x49, 0x0a, 0x0c, 0x67, 0x65, 0x6e, + 0x65, 0x72, 0x61, 0x74, 0x65, 0x5f, 0x63, 0x73, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x24, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, + 0x74, 0x65, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x43, 0x53, 0x52, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x0b, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, + 0x65, 0x43, 0x73, 0x72, 0x12, 0x55, 0x0a, 0x10, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x63, 0x65, 0x72, + 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, + 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, + 0x65, 0x2e, 0x4c, 0x6f, 0x61, 0x64, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, + 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x0f, 0x6c, 0x6f, 0x61, 0x64, + 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x42, 0x11, 0x0a, 0x0f, 0x69, + 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0xd6, + 0x01, 0x0a, 0x1a, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, + 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4c, 0x0a, + 0x0d, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x63, 0x73, 0x72, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x65, 0x72, 0x74, + 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, + 0x43, 0x53, 0x52, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x0c, 0x67, + 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x43, 0x73, 0x72, 0x12, 0x56, 0x0a, 0x10, 0x6c, + 0x6f, 0x61, 0x64, 0x5f, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x65, 0x72, + 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x2e, 0x4c, 0x6f, 0x61, 0x64, 0x43, 0x65, 0x72, + 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x48, 0x00, 0x52, 0x0f, 0x6c, 0x6f, 0x61, 0x64, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, + 0x61, 0x74, 0x65, 0x42, 0x12, 0x0a, 0x10, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x5f, 0x72, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x77, 0x0a, 0x12, 0x47, 0x65, 0x6e, 0x65, 0x72, + 0x61, 0x74, 0x65, 0x43, 0x53, 0x52, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3a, 0x0a, + 0x0a, 0x63, 0x73, 0x72, 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, + 0x63, 0x61, 0x74, 0x65, 0x2e, 0x43, 0x53, 0x52, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x09, + 0x63, 0x73, 0x72, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x63, 0x65, 0x72, + 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0d, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x49, 0x64, + 0x22, 0x8e, 0x03, 0x0a, 0x09, 0x43, 0x53, 0x52, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x35, + 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x67, + 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x2e, + 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, + 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x20, 0x0a, 0x0c, 0x6d, 0x69, 0x6e, 0x5f, 0x6b, 0x65, 0x79, + 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x6d, 0x69, 0x6e, + 0x4b, 0x65, 0x79, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x34, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x5f, 0x74, + 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x67, 0x6e, 0x6f, 0x69, + 0x2e, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x2e, 0x4b, 0x65, 0x79, + 0x54, 0x79, 0x70, 0x65, 0x52, 0x07, 0x6b, 0x65, 0x79, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1f, 0x0a, + 0x0b, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x18, + 0x0a, 0x07, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x07, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, + 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x12, + 0x0a, 0x04, 0x63, 0x69, 0x74, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x69, + 0x74, 0x79, 0x12, 0x22, 0x0a, 0x0c, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, + 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2f, 0x0a, 0x13, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, + 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x18, 0x09, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x12, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x61, 0x6c, 0x55, 0x6e, 0x69, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x69, 0x70, 0x5f, 0x61, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x69, 0x70, 0x41, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x5f, + 0x69, 0x64, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x49, + 0x64, 0x22, 0x3e, 0x0a, 0x13, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x43, 0x53, 0x52, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x27, 0x0a, 0x03, 0x63, 0x73, 0x72, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x65, 0x72, + 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x2e, 0x43, 0x53, 0x52, 0x52, 0x03, 0x63, 0x73, + 0x72, 0x22, 0xfe, 0x01, 0x0a, 0x16, 0x4c, 0x6f, 0x61, 0x64, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, + 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3f, 0x0a, 0x0b, + 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, + 0x63, 0x61, 0x74, 0x65, 0x2e, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, + 0x52, 0x0b, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x12, 0x34, 0x0a, + 0x08, 0x6b, 0x65, 0x79, 0x5f, 0x70, 0x61, 0x69, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x19, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, + 0x74, 0x65, 0x2e, 0x4b, 0x65, 0x79, 0x50, 0x61, 0x69, 0x72, 0x52, 0x07, 0x6b, 0x65, 0x79, 0x50, + 0x61, 0x69, 0x72, 0x12, 0x25, 0x0a, 0x0e, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, + 0x74, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x63, 0x65, 0x72, + 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x49, 0x64, 0x12, 0x46, 0x0a, 0x0f, 0x63, 0x61, + 0x5f, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x73, 0x18, 0x04, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x65, 0x72, 0x74, 0x69, + 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x2e, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, + 0x74, 0x65, 0x52, 0x0e, 0x63, 0x61, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, + 0x65, 0x73, 0x22, 0x19, 0x0a, 0x17, 0x4c, 0x6f, 0x61, 0x64, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, + 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x6f, 0x0a, + 0x25, 0x4c, 0x6f, 0x61, 0x64, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, + 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x46, 0x0a, 0x0f, 0x63, 0x61, 0x5f, 0x63, 0x65, 0x72, + 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x1d, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, + 0x74, 0x65, 0x2e, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 0x0e, + 0x63, 0x61, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x73, 0x22, 0x28, + 0x0a, 0x26, 0x4c, 0x6f, 0x61, 0x64, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, + 0x65, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x11, 0x0a, 0x0f, 0x46, 0x69, 0x6e, 0x61, + 0x6c, 0x69, 0x7a, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x18, 0x0a, 0x16, 0x47, + 0x65, 0x74, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x67, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x43, 0x65, 0x72, 0x74, + 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x4c, 0x0a, 0x10, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x5f, + 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67, 0x6e, 0x6f, + 0x69, 0x2e, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x2e, 0x43, 0x65, + 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0f, 0x63, + 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0xe0, + 0x01, 0x0a, 0x0f, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x49, 0x6e, + 0x66, 0x6f, 0x12, 0x25, 0x0a, 0x0e, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, + 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x63, 0x65, 0x72, 0x74, + 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x49, 0x64, 0x12, 0x3f, 0x0a, 0x0b, 0x63, 0x65, 0x72, + 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, + 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, + 0x65, 0x2e, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 0x0b, 0x63, + 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x12, 0x38, 0x0a, 0x09, 0x65, 0x6e, + 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, + 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, + 0x2e, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x09, 0x65, 0x6e, 0x64, 0x70, 0x6f, + 0x69, 0x6e, 0x74, 0x73, 0x12, 0x2b, 0x0a, 0x11, 0x6d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x63, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, + 0x10, 0x6d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x69, 0x6d, + 0x65, 0x22, 0x42, 0x0a, 0x19, 0x52, 0x65, 0x76, 0x6f, 0x6b, 0x65, 0x43, 0x65, 0x72, 0x74, 0x69, + 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x25, + 0x0a, 0x0e, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x5f, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0d, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, + 0x61, 0x74, 0x65, 0x49, 0x64, 0x22, 0xc2, 0x01, 0x0a, 0x1a, 0x52, 0x65, 0x76, 0x6f, 0x6b, 0x65, + 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x34, 0x0a, 0x16, 0x72, 0x65, 0x76, 0x6f, 0x6b, 0x65, 0x64, 0x5f, + 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x03, 0x28, 0x09, 0x52, 0x14, 0x72, 0x65, 0x76, 0x6f, 0x6b, 0x65, 0x64, 0x43, 0x65, 0x72, + 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x49, 0x64, 0x12, 0x6e, 0x0a, 0x1c, 0x63, 0x65, + 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x5f, 0x72, 0x65, 0x76, 0x6f, 0x63, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x2c, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, + 0x61, 0x74, 0x65, 0x2e, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, + 0x65, 0x76, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x1a, + 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 0x65, 0x76, 0x6f, 0x63, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x22, 0x68, 0x0a, 0x1a, 0x43, 0x65, + 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 0x65, 0x76, 0x6f, 0x63, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x25, 0x0a, 0x0e, 0x63, 0x65, 0x72, 0x74, + 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0d, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x49, 0x64, 0x12, + 0x23, 0x0a, 0x0d, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x4d, 0x65, 0x73, + 0x73, 0x61, 0x67, 0x65, 0x22, 0xb6, 0x01, 0x0a, 0x15, 0x43, 0x61, 0x6e, 0x47, 0x65, 0x6e, 0x65, + 0x72, 0x61, 0x74, 0x65, 0x43, 0x53, 0x52, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x34, + 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, + 0x32, 0x19, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, + 0x61, 0x74, 0x65, 0x2e, 0x4b, 0x65, 0x79, 0x54, 0x79, 0x70, 0x65, 0x52, 0x07, 0x6b, 0x65, 0x79, + 0x54, 0x79, 0x70, 0x65, 0x12, 0x4c, 0x0a, 0x10, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, + 0x61, 0x74, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21, + 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, + 0x65, 0x2e, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x54, 0x79, 0x70, + 0x65, 0x52, 0x0f, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x54, 0x79, + 0x70, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x6b, 0x65, 0x79, 0x53, 0x69, 0x7a, 0x65, 0x22, 0x3b, 0x0a, + 0x16, 0x43, 0x61, 0x6e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x43, 0x53, 0x52, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x61, 0x6e, 0x5f, 0x67, + 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x63, + 0x61, 0x6e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x22, 0x66, 0x0a, 0x0b, 0x43, 0x65, + 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x12, 0x35, 0x0a, 0x04, 0x74, 0x79, 0x70, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, + 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x2e, 0x43, 0x65, 0x72, 0x74, 0x69, + 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, + 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, + 0x74, 0x65, 0x22, 0x4e, 0x0a, 0x03, 0x43, 0x53, 0x52, 0x12, 0x35, 0x0a, 0x04, 0x74, 0x79, 0x70, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, + 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x2e, 0x43, 0x65, 0x72, 0x74, 0x69, + 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, + 0x12, 0x10, 0x0a, 0x03, 0x63, 0x73, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x63, + 0x73, 0x72, 0x22, 0x49, 0x0a, 0x07, 0x4b, 0x65, 0x79, 0x50, 0x61, 0x69, 0x72, 0x12, 0x1f, 0x0a, + 0x0b, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0c, 0x52, 0x0a, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x12, 0x1d, + 0x0a, 0x0a, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0c, 0x52, 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x22, 0x9b, 0x01, + 0x0a, 0x08, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x33, 0x0a, 0x04, 0x74, 0x79, + 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, + 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x2e, 0x45, 0x6e, 0x64, 0x70, + 0x6f, 0x69, 0x6e, 0x74, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, + 0x1a, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x22, 0x3e, 0x0a, 0x04, 0x54, + 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x0e, 0x45, 0x50, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, + 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x13, 0x0a, 0x0f, 0x45, 0x50, 0x5f, 0x49, 0x50, + 0x53, 0x45, 0x43, 0x5f, 0x54, 0x55, 0x4e, 0x4e, 0x45, 0x4c, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, + 0x45, 0x50, 0x5f, 0x44, 0x41, 0x45, 0x4d, 0x4f, 0x4e, 0x10, 0x02, 0x2a, 0x2e, 0x0a, 0x0f, 0x43, + 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0e, + 0x0a, 0x0a, 0x43, 0x54, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x0b, + 0x0a, 0x07, 0x43, 0x54, 0x5f, 0x58, 0x35, 0x30, 0x39, 0x10, 0x01, 0x2a, 0x25, 0x0a, 0x07, 0x4b, + 0x65, 0x79, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0e, 0x0a, 0x0a, 0x4b, 0x54, 0x5f, 0x55, 0x4e, 0x4b, + 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x4b, 0x54, 0x5f, 0x52, 0x53, 0x41, + 0x10, 0x01, 0x32, 0x80, 0x07, 0x0a, 0x15, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, + 0x74, 0x65, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x65, 0x0a, 0x06, + 0x52, 0x6f, 0x74, 0x61, 0x74, 0x65, 0x12, 0x2a, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x65, + 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x2e, 0x52, 0x6f, 0x74, 0x61, 0x74, 0x65, + 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, + 0x69, 0x63, 0x61, 0x74, 0x65, 0x2e, 0x52, 0x6f, 0x74, 0x61, 0x74, 0x65, 0x43, 0x65, 0x72, 0x74, + 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x28, + 0x01, 0x30, 0x01, 0x12, 0x68, 0x0a, 0x07, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x12, 0x2b, + 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, + 0x65, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, + 0x63, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x67, 0x6e, + 0x6f, 0x69, 0x2e, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x2e, 0x49, + 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, + 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x28, 0x01, 0x30, 0x01, 0x12, 0x5a, 0x0a, + 0x0b, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x43, 0x53, 0x52, 0x12, 0x24, 0x2e, 0x67, + 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x2e, + 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x43, 0x53, 0x52, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, + 0x69, 0x63, 0x61, 0x74, 0x65, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x43, 0x53, + 0x52, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x66, 0x0a, 0x0f, 0x4c, 0x6f, 0x61, + 0x64, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x12, 0x28, 0x2e, 0x67, + 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x2e, + 0x4c, 0x6f, 0x61, 0x64, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x65, + 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x2e, 0x4c, 0x6f, 0x61, 0x64, 0x43, 0x65, + 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x93, 0x01, 0x0a, 0x1e, 0x4c, 0x6f, 0x61, 0x64, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, + 0x69, 0x63, 0x61, 0x74, 0x65, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x42, 0x75, + 0x6e, 0x64, 0x6c, 0x65, 0x12, 0x37, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x65, 0x72, 0x74, + 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x2e, 0x4c, 0x6f, 0x61, 0x64, 0x43, 0x65, 0x72, 0x74, + 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, + 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x38, 0x2e, + 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, + 0x2e, 0x4c, 0x6f, 0x61, 0x64, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, + 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x66, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x43, 0x65, + 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x73, 0x12, 0x28, 0x2e, 0x67, 0x6e, 0x6f, + 0x69, 0x2e, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x2e, 0x47, 0x65, + 0x74, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x73, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x65, 0x72, 0x74, + 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x65, 0x72, 0x74, 0x69, + 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x6f, 0x0a, 0x12, 0x52, 0x65, 0x76, 0x6f, 0x6b, 0x65, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, + 0x63, 0x61, 0x74, 0x65, 0x73, 0x12, 0x2b, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x65, 0x72, + 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x2e, 0x52, 0x65, 0x76, 0x6f, 0x6b, 0x65, 0x43, + 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, + 0x69, 0x63, 0x61, 0x74, 0x65, 0x2e, 0x52, 0x65, 0x76, 0x6f, 0x6b, 0x65, 0x43, 0x65, 0x72, 0x74, + 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x63, 0x0a, 0x0e, 0x43, 0x61, 0x6e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x43, + 0x53, 0x52, 0x12, 0x27, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, + 0x69, 0x63, 0x61, 0x74, 0x65, 0x2e, 0x43, 0x61, 0x6e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, + 0x65, 0x43, 0x53, 0x52, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x67, 0x6e, + 0x6f, 0x69, 0x2e, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x2e, 0x43, + 0x61, 0x6e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x43, 0x53, 0x52, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x29, 0x5a, 0x1f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, + 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x67, + 0x6e, 0x6f, 0x69, 0x2f, 0x63, 0x65, 0x72, 0x74, 0xd2, 0x3e, 0x05, 0x30, 0x2e, 0x32, 0x2e, 0x30, + 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_cert_cert_proto_rawDescOnce sync.Once + file_cert_cert_proto_rawDescData = file_cert_cert_proto_rawDesc +) -func _CertificateManagement_RevokeCertificates_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RevokeCertificatesRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(CertificateManagementServer).RevokeCertificates(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.certificate.CertificateManagement/RevokeCertificates", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(CertificateManagementServer).RevokeCertificates(ctx, req.(*RevokeCertificatesRequest)) +func file_cert_cert_proto_rawDescGZIP() []byte { + file_cert_cert_proto_rawDescOnce.Do(func() { + file_cert_cert_proto_rawDescData = protoimpl.X.CompressGZIP(file_cert_cert_proto_rawDescData) + }) + return file_cert_cert_proto_rawDescData +} + +var file_cert_cert_proto_enumTypes = make([]protoimpl.EnumInfo, 3) +var file_cert_cert_proto_msgTypes = make([]protoimpl.MessageInfo, 24) +var file_cert_cert_proto_goTypes = []interface{}{ + (CertificateType)(0), // 0: gnoi.certificate.CertificateType + (KeyType)(0), // 1: gnoi.certificate.KeyType + (Endpoint_Type)(0), // 2: gnoi.certificate.Endpoint.Type + (*RotateCertificateRequest)(nil), // 3: gnoi.certificate.RotateCertificateRequest + (*RotateCertificateResponse)(nil), // 4: gnoi.certificate.RotateCertificateResponse + (*InstallCertificateRequest)(nil), // 5: gnoi.certificate.InstallCertificateRequest + (*InstallCertificateResponse)(nil), // 6: gnoi.certificate.InstallCertificateResponse + (*GenerateCSRRequest)(nil), // 7: gnoi.certificate.GenerateCSRRequest + (*CSRParams)(nil), // 8: gnoi.certificate.CSRParams + (*GenerateCSRResponse)(nil), // 9: gnoi.certificate.GenerateCSRResponse + (*LoadCertificateRequest)(nil), // 10: gnoi.certificate.LoadCertificateRequest + (*LoadCertificateResponse)(nil), // 11: gnoi.certificate.LoadCertificateResponse + (*LoadCertificateAuthorityBundleRequest)(nil), // 12: gnoi.certificate.LoadCertificateAuthorityBundleRequest + (*LoadCertificateAuthorityBundleResponse)(nil), // 13: gnoi.certificate.LoadCertificateAuthorityBundleResponse + (*FinalizeRequest)(nil), // 14: gnoi.certificate.FinalizeRequest + (*GetCertificatesRequest)(nil), // 15: gnoi.certificate.GetCertificatesRequest + (*GetCertificatesResponse)(nil), // 16: gnoi.certificate.GetCertificatesResponse + (*CertificateInfo)(nil), // 17: gnoi.certificate.CertificateInfo + (*RevokeCertificatesRequest)(nil), // 18: gnoi.certificate.RevokeCertificatesRequest + (*RevokeCertificatesResponse)(nil), // 19: gnoi.certificate.RevokeCertificatesResponse + (*CertificateRevocationError)(nil), // 20: gnoi.certificate.CertificateRevocationError + (*CanGenerateCSRRequest)(nil), // 21: gnoi.certificate.CanGenerateCSRRequest + (*CanGenerateCSRResponse)(nil), // 22: gnoi.certificate.CanGenerateCSRResponse + (*Certificate)(nil), // 23: gnoi.certificate.Certificate + (*CSR)(nil), // 24: gnoi.certificate.CSR + (*KeyPair)(nil), // 25: gnoi.certificate.KeyPair + (*Endpoint)(nil), // 26: gnoi.certificate.Endpoint +} +var file_cert_cert_proto_depIdxs = []int32{ + 7, // 0: gnoi.certificate.RotateCertificateRequest.generate_csr:type_name -> gnoi.certificate.GenerateCSRRequest + 10, // 1: gnoi.certificate.RotateCertificateRequest.load_certificate:type_name -> gnoi.certificate.LoadCertificateRequest + 14, // 2: gnoi.certificate.RotateCertificateRequest.finalize_rotation:type_name -> gnoi.certificate.FinalizeRequest + 9, // 3: gnoi.certificate.RotateCertificateResponse.generated_csr:type_name -> gnoi.certificate.GenerateCSRResponse + 11, // 4: gnoi.certificate.RotateCertificateResponse.load_certificate:type_name -> gnoi.certificate.LoadCertificateResponse + 7, // 5: gnoi.certificate.InstallCertificateRequest.generate_csr:type_name -> gnoi.certificate.GenerateCSRRequest + 10, // 6: gnoi.certificate.InstallCertificateRequest.load_certificate:type_name -> gnoi.certificate.LoadCertificateRequest + 9, // 7: gnoi.certificate.InstallCertificateResponse.generated_csr:type_name -> gnoi.certificate.GenerateCSRResponse + 11, // 8: gnoi.certificate.InstallCertificateResponse.load_certificate:type_name -> gnoi.certificate.LoadCertificateResponse + 8, // 9: gnoi.certificate.GenerateCSRRequest.csr_params:type_name -> gnoi.certificate.CSRParams + 0, // 10: gnoi.certificate.CSRParams.type:type_name -> gnoi.certificate.CertificateType + 1, // 11: gnoi.certificate.CSRParams.key_type:type_name -> gnoi.certificate.KeyType + 24, // 12: gnoi.certificate.GenerateCSRResponse.csr:type_name -> gnoi.certificate.CSR + 23, // 13: gnoi.certificate.LoadCertificateRequest.certificate:type_name -> gnoi.certificate.Certificate + 25, // 14: gnoi.certificate.LoadCertificateRequest.key_pair:type_name -> gnoi.certificate.KeyPair + 23, // 15: gnoi.certificate.LoadCertificateRequest.ca_certificates:type_name -> gnoi.certificate.Certificate + 23, // 16: gnoi.certificate.LoadCertificateAuthorityBundleRequest.ca_certificates:type_name -> gnoi.certificate.Certificate + 17, // 17: gnoi.certificate.GetCertificatesResponse.certificate_info:type_name -> gnoi.certificate.CertificateInfo + 23, // 18: gnoi.certificate.CertificateInfo.certificate:type_name -> gnoi.certificate.Certificate + 26, // 19: gnoi.certificate.CertificateInfo.endpoints:type_name -> gnoi.certificate.Endpoint + 20, // 20: gnoi.certificate.RevokeCertificatesResponse.certificate_revocation_error:type_name -> gnoi.certificate.CertificateRevocationError + 1, // 21: gnoi.certificate.CanGenerateCSRRequest.key_type:type_name -> gnoi.certificate.KeyType + 0, // 22: gnoi.certificate.CanGenerateCSRRequest.certificate_type:type_name -> gnoi.certificate.CertificateType + 0, // 23: gnoi.certificate.Certificate.type:type_name -> gnoi.certificate.CertificateType + 0, // 24: gnoi.certificate.CSR.type:type_name -> gnoi.certificate.CertificateType + 2, // 25: gnoi.certificate.Endpoint.type:type_name -> gnoi.certificate.Endpoint.Type + 3, // 26: gnoi.certificate.CertificateManagement.Rotate:input_type -> gnoi.certificate.RotateCertificateRequest + 5, // 27: gnoi.certificate.CertificateManagement.Install:input_type -> gnoi.certificate.InstallCertificateRequest + 7, // 28: gnoi.certificate.CertificateManagement.GenerateCSR:input_type -> gnoi.certificate.GenerateCSRRequest + 10, // 29: gnoi.certificate.CertificateManagement.LoadCertificate:input_type -> gnoi.certificate.LoadCertificateRequest + 12, // 30: gnoi.certificate.CertificateManagement.LoadCertificateAuthorityBundle:input_type -> gnoi.certificate.LoadCertificateAuthorityBundleRequest + 15, // 31: gnoi.certificate.CertificateManagement.GetCertificates:input_type -> gnoi.certificate.GetCertificatesRequest + 18, // 32: gnoi.certificate.CertificateManagement.RevokeCertificates:input_type -> gnoi.certificate.RevokeCertificatesRequest + 21, // 33: gnoi.certificate.CertificateManagement.CanGenerateCSR:input_type -> gnoi.certificate.CanGenerateCSRRequest + 4, // 34: gnoi.certificate.CertificateManagement.Rotate:output_type -> gnoi.certificate.RotateCertificateResponse + 6, // 35: gnoi.certificate.CertificateManagement.Install:output_type -> gnoi.certificate.InstallCertificateResponse + 9, // 36: gnoi.certificate.CertificateManagement.GenerateCSR:output_type -> gnoi.certificate.GenerateCSRResponse + 11, // 37: gnoi.certificate.CertificateManagement.LoadCertificate:output_type -> gnoi.certificate.LoadCertificateResponse + 13, // 38: gnoi.certificate.CertificateManagement.LoadCertificateAuthorityBundle:output_type -> gnoi.certificate.LoadCertificateAuthorityBundleResponse + 16, // 39: gnoi.certificate.CertificateManagement.GetCertificates:output_type -> gnoi.certificate.GetCertificatesResponse + 19, // 40: gnoi.certificate.CertificateManagement.RevokeCertificates:output_type -> gnoi.certificate.RevokeCertificatesResponse + 22, // 41: gnoi.certificate.CertificateManagement.CanGenerateCSR:output_type -> gnoi.certificate.CanGenerateCSRResponse + 34, // [34:42] is the sub-list for method output_type + 26, // [26:34] is the sub-list for method input_type + 26, // [26:26] is the sub-list for extension type_name + 26, // [26:26] is the sub-list for extension extendee + 0, // [0:26] is the sub-list for field type_name +} + +func init() { file_cert_cert_proto_init() } +func file_cert_cert_proto_init() { + if File_cert_cert_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_cert_cert_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RotateCertificateRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cert_cert_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RotateCertificateResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cert_cert_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*InstallCertificateRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cert_cert_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*InstallCertificateResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cert_cert_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GenerateCSRRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cert_cert_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CSRParams); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cert_cert_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GenerateCSRResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cert_cert_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*LoadCertificateRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cert_cert_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*LoadCertificateResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cert_cert_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*LoadCertificateAuthorityBundleRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cert_cert_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*LoadCertificateAuthorityBundleResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cert_cert_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FinalizeRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cert_cert_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetCertificatesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cert_cert_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetCertificatesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cert_cert_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CertificateInfo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cert_cert_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RevokeCertificatesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cert_cert_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RevokeCertificatesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cert_cert_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CertificateRevocationError); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cert_cert_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CanGenerateCSRRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cert_cert_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CanGenerateCSRResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cert_cert_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Certificate); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cert_cert_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CSR); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cert_cert_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*KeyPair); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_cert_cert_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Endpoint); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } } - return interceptor(ctx, in, info, handler) -} - -func _CertificateManagement_CanGenerateCSR_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CanGenerateCSRRequest) - if err := dec(in); err != nil { - return nil, err + file_cert_cert_proto_msgTypes[0].OneofWrappers = []interface{}{ + (*RotateCertificateRequest_GenerateCsr)(nil), + (*RotateCertificateRequest_LoadCertificate)(nil), + (*RotateCertificateRequest_FinalizeRotation)(nil), } - if interceptor == nil { - return srv.(CertificateManagementServer).CanGenerateCSR(ctx, in) + file_cert_cert_proto_msgTypes[1].OneofWrappers = []interface{}{ + (*RotateCertificateResponse_GeneratedCsr)(nil), + (*RotateCertificateResponse_LoadCertificate)(nil), } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.certificate.CertificateManagement/CanGenerateCSR", + file_cert_cert_proto_msgTypes[2].OneofWrappers = []interface{}{ + (*InstallCertificateRequest_GenerateCsr)(nil), + (*InstallCertificateRequest_LoadCertificate)(nil), } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(CertificateManagementServer).CanGenerateCSR(ctx, req.(*CanGenerateCSRRequest)) + file_cert_cert_proto_msgTypes[3].OneofWrappers = []interface{}{ + (*InstallCertificateResponse_GeneratedCsr)(nil), + (*InstallCertificateResponse_LoadCertificate)(nil), } - return interceptor(ctx, in, info, handler) -} - -var _CertificateManagement_serviceDesc = grpc.ServiceDesc{ - ServiceName: "gnoi.certificate.CertificateManagement", - HandlerType: (*CertificateManagementServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "GetCertificates", - Handler: _CertificateManagement_GetCertificates_Handler, - }, - { - MethodName: "RevokeCertificates", - Handler: _CertificateManagement_RevokeCertificates_Handler, - }, - { - MethodName: "CanGenerateCSR", - Handler: _CertificateManagement_CanGenerateCSR_Handler, - }, - }, - Streams: []grpc.StreamDesc{ - { - StreamName: "Rotate", - Handler: _CertificateManagement_Rotate_Handler, - ServerStreams: true, - ClientStreams: true, - }, - { - StreamName: "Install", - Handler: _CertificateManagement_Install_Handler, - ServerStreams: true, - ClientStreams: true, + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_cert_cert_proto_rawDesc, + NumEnums: 3, + NumMessages: 24, + NumExtensions: 0, + NumServices: 1, }, - }, - Metadata: "cert/cert.proto", + GoTypes: file_cert_cert_proto_goTypes, + DependencyIndexes: file_cert_cert_proto_depIdxs, + EnumInfos: file_cert_cert_proto_enumTypes, + MessageInfos: file_cert_cert_proto_msgTypes, + }.Build() + File_cert_cert_proto = out.File + file_cert_cert_proto_rawDesc = nil + file_cert_cert_proto_goTypes = nil + file_cert_cert_proto_depIdxs = nil } diff --git a/cert/cert.proto b/cert/cert.proto index e9da3ecf..952a700b 100644 --- a/cert/cert.proto +++ b/cert/cert.proto @@ -22,6 +22,8 @@ package gnoi.certificate; import "github.com/openconfig/gnoi/types/types.proto"; +option go_package = "github.com/openconfig/gnoi/cert"; + option (types.gnoi_version) = "0.2.0"; // The Certificate Management Service exported by targets. diff --git a/cert/cert_grpc.pb.go b/cert/cert_grpc.pb.go new file mode 100644 index 00000000..1f3754b3 --- /dev/null +++ b/cert/cert_grpc.pb.go @@ -0,0 +1,632 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. + +package cert + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.32.0 or later. +const _ = grpc.SupportPackageIsVersion7 + +// CertificateManagementClient is the client API for CertificateManagement service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type CertificateManagementClient interface { + // Rotate will replace an existing Certificate on the target by creating a + // new CSR request and placing the new Certificate based on the CSR on the + // target. If the stream is broken or any steps in the process fail the + // target must rollback to the original Certificate. + // + // The following describes the sequence of messages that must be exchanged + // in the Rotate() RPC. + // + // Sequence of expected messages: + // Case 1: When Target generates the CSR. + // + // Step 1: Start the stream + // Client <---- Rotate() RPC stream begin ------> Target + // + // Step 2: CSR + // Client -----> GenerateCSRRequest----> Target + // Client <----- GenerateCSRResponse <--- Target + // + // Step 3: Certificate Signing + // Client gets the certificate signed by the CA. + // + // Step 4: Send Certificate to Target. + // Client --> LoadCertificateRequest ----> Target + // Client <-- LoadCertificateResponse <--- Target + // + // Step 5: Test/Validation by the client. + // This step should be to create a new connection to the target using + // The new certificate and validate that the certificate works. + // Once verfied, the client will then proceed to finalize the rotation. + // If the new connection cannot be completed the client will cancel the + // RPC thereby forcing the target to rollback the certificate. + // + // Step 6: Final commit. + // Client ---> FinalizeRequest ----> Target + // + // + // Case 2: When Client generates the CSR. + // Step 1: Start the stream + // Client <---- Rotate() RPC stream begin ----> Target + // + // Step 2: CSR + // Client generates its own certificate. + // + // Step 3: Certificate Signing + // Client gets the certificate signed by the CA. + // + // Step 4: Send Certificate to Target. + // Client ---> LoadCertificateRequest ----> Target + // Client <--- LoadCertificateResponse <--- Target + // + // Step 5: Test/Validation by the client. + // + // Step 6: Final commit. + // Client ---> FinalizeRequest ----> Target + Rotate(ctx context.Context, opts ...grpc.CallOption) (CertificateManagement_RotateClient, error) + // Install will put a new Certificate on the target by creating a new CSR + // request and placing the new Certificate based on the CSR on the target.The + // new Certificate will be associated with a new Certificate Id on the target. + // If the target has a pre existing Certificate with the given Certificate Id, + // the operation should fail. + // If the stream is broken or any steps in the process fail the target must + // revert any changes in state. + // + // The following describes the sequence of messages that must be exchanged + // in the Install() RPC. + // + // Sequence of expected messages: + // Case 1: When Target generates the CSR-------------------------: + // + // Step 1: Start the stream + // Client <---- Install() RPC stream begin ------> Target + // + // Step 2: CSR + // Client -----> GenerateCSRRequest() ----> Target + // Client <---- GenerateCSRResponse() <---- Target + // + // Step 3: Certificate Signing + // Client gets the certificate signed by the CA. + // + // Step 4: Send Certificate to Target. + // Client -> LoadCertificateRequest() ----> Target + // Client <- LoadCertificateResponse() <--- Target + // + // Case 2: When Client generates the CSR-------------------------: + // Step 1: Start the stream + // Client <---- Install() RPC stream begin ------> Target + // + // Step 2: CSR + // Client generates its own certificate. + // + // Step 3: Certificate Signing + // Client gets the certificate signed by the CA. + // + // Step 4: Send Certificate to Target. + // Client -> LoadCertificateRequest() ----> Target + // Client <- LoadCertificateResponse() <--- Target + // + Install(ctx context.Context, opts ...grpc.CallOption) (CertificateManagement_InstallClient, error) + // When credentials are generated on the device, generates a keypair and + // returns the Certificate Signing Request (CSR). The CSR has the public key, + // which when signed by the CA, becomes the Certificate. + GenerateCSR(ctx context.Context, in *GenerateCSRRequest, opts ...grpc.CallOption) (*GenerateCSRResponse, error) + // Loads a certificate signed by a Certificate Authority (CA). + LoadCertificate(ctx context.Context, in *LoadCertificateRequest, opts ...grpc.CallOption) (*LoadCertificateResponse, error) + // Loads a bundle of CA certificates. + LoadCertificateAuthorityBundle(ctx context.Context, in *LoadCertificateAuthorityBundleRequest, opts ...grpc.CallOption) (*LoadCertificateAuthorityBundleResponse, error) + // An RPC to get the certificates on the target. + GetCertificates(ctx context.Context, in *GetCertificatesRequest, opts ...grpc.CallOption) (*GetCertificatesResponse, error) + // An RPC to revoke specific certificates. + // If a certificate is not present on the target, the request should silently + // succeed. Revoking a certificate should render the existing certificate + // unusable by any endpoints. + RevokeCertificates(ctx context.Context, in *RevokeCertificatesRequest, opts ...grpc.CallOption) (*RevokeCertificatesResponse, error) + // An RPC to ask a target if it can generate a Certificate. + CanGenerateCSR(ctx context.Context, in *CanGenerateCSRRequest, opts ...grpc.CallOption) (*CanGenerateCSRResponse, error) +} + +type certificateManagementClient struct { + cc grpc.ClientConnInterface +} + +func NewCertificateManagementClient(cc grpc.ClientConnInterface) CertificateManagementClient { + return &certificateManagementClient{cc} +} + +func (c *certificateManagementClient) Rotate(ctx context.Context, opts ...grpc.CallOption) (CertificateManagement_RotateClient, error) { + stream, err := c.cc.NewStream(ctx, &CertificateManagement_ServiceDesc.Streams[0], "/gnoi.certificate.CertificateManagement/Rotate", opts...) + if err != nil { + return nil, err + } + x := &certificateManagementRotateClient{stream} + return x, nil +} + +type CertificateManagement_RotateClient interface { + Send(*RotateCertificateRequest) error + Recv() (*RotateCertificateResponse, error) + grpc.ClientStream +} + +type certificateManagementRotateClient struct { + grpc.ClientStream +} + +func (x *certificateManagementRotateClient) Send(m *RotateCertificateRequest) error { + return x.ClientStream.SendMsg(m) +} + +func (x *certificateManagementRotateClient) Recv() (*RotateCertificateResponse, error) { + m := new(RotateCertificateResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *certificateManagementClient) Install(ctx context.Context, opts ...grpc.CallOption) (CertificateManagement_InstallClient, error) { + stream, err := c.cc.NewStream(ctx, &CertificateManagement_ServiceDesc.Streams[1], "/gnoi.certificate.CertificateManagement/Install", opts...) + if err != nil { + return nil, err + } + x := &certificateManagementInstallClient{stream} + return x, nil +} + +type CertificateManagement_InstallClient interface { + Send(*InstallCertificateRequest) error + Recv() (*InstallCertificateResponse, error) + grpc.ClientStream +} + +type certificateManagementInstallClient struct { + grpc.ClientStream +} + +func (x *certificateManagementInstallClient) Send(m *InstallCertificateRequest) error { + return x.ClientStream.SendMsg(m) +} + +func (x *certificateManagementInstallClient) Recv() (*InstallCertificateResponse, error) { + m := new(InstallCertificateResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *certificateManagementClient) GenerateCSR(ctx context.Context, in *GenerateCSRRequest, opts ...grpc.CallOption) (*GenerateCSRResponse, error) { + out := new(GenerateCSRResponse) + err := c.cc.Invoke(ctx, "/gnoi.certificate.CertificateManagement/GenerateCSR", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *certificateManagementClient) LoadCertificate(ctx context.Context, in *LoadCertificateRequest, opts ...grpc.CallOption) (*LoadCertificateResponse, error) { + out := new(LoadCertificateResponse) + err := c.cc.Invoke(ctx, "/gnoi.certificate.CertificateManagement/LoadCertificate", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *certificateManagementClient) LoadCertificateAuthorityBundle(ctx context.Context, in *LoadCertificateAuthorityBundleRequest, opts ...grpc.CallOption) (*LoadCertificateAuthorityBundleResponse, error) { + out := new(LoadCertificateAuthorityBundleResponse) + err := c.cc.Invoke(ctx, "/gnoi.certificate.CertificateManagement/LoadCertificateAuthorityBundle", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *certificateManagementClient) GetCertificates(ctx context.Context, in *GetCertificatesRequest, opts ...grpc.CallOption) (*GetCertificatesResponse, error) { + out := new(GetCertificatesResponse) + err := c.cc.Invoke(ctx, "/gnoi.certificate.CertificateManagement/GetCertificates", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *certificateManagementClient) RevokeCertificates(ctx context.Context, in *RevokeCertificatesRequest, opts ...grpc.CallOption) (*RevokeCertificatesResponse, error) { + out := new(RevokeCertificatesResponse) + err := c.cc.Invoke(ctx, "/gnoi.certificate.CertificateManagement/RevokeCertificates", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *certificateManagementClient) CanGenerateCSR(ctx context.Context, in *CanGenerateCSRRequest, opts ...grpc.CallOption) (*CanGenerateCSRResponse, error) { + out := new(CanGenerateCSRResponse) + err := c.cc.Invoke(ctx, "/gnoi.certificate.CertificateManagement/CanGenerateCSR", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// CertificateManagementServer is the server API for CertificateManagement service. +// All implementations must embed UnimplementedCertificateManagementServer +// for forward compatibility +type CertificateManagementServer interface { + // Rotate will replace an existing Certificate on the target by creating a + // new CSR request and placing the new Certificate based on the CSR on the + // target. If the stream is broken or any steps in the process fail the + // target must rollback to the original Certificate. + // + // The following describes the sequence of messages that must be exchanged + // in the Rotate() RPC. + // + // Sequence of expected messages: + // Case 1: When Target generates the CSR. + // + // Step 1: Start the stream + // Client <---- Rotate() RPC stream begin ------> Target + // + // Step 2: CSR + // Client -----> GenerateCSRRequest----> Target + // Client <----- GenerateCSRResponse <--- Target + // + // Step 3: Certificate Signing + // Client gets the certificate signed by the CA. + // + // Step 4: Send Certificate to Target. + // Client --> LoadCertificateRequest ----> Target + // Client <-- LoadCertificateResponse <--- Target + // + // Step 5: Test/Validation by the client. + // This step should be to create a new connection to the target using + // The new certificate and validate that the certificate works. + // Once verfied, the client will then proceed to finalize the rotation. + // If the new connection cannot be completed the client will cancel the + // RPC thereby forcing the target to rollback the certificate. + // + // Step 6: Final commit. + // Client ---> FinalizeRequest ----> Target + // + // + // Case 2: When Client generates the CSR. + // Step 1: Start the stream + // Client <---- Rotate() RPC stream begin ----> Target + // + // Step 2: CSR + // Client generates its own certificate. + // + // Step 3: Certificate Signing + // Client gets the certificate signed by the CA. + // + // Step 4: Send Certificate to Target. + // Client ---> LoadCertificateRequest ----> Target + // Client <--- LoadCertificateResponse <--- Target + // + // Step 5: Test/Validation by the client. + // + // Step 6: Final commit. + // Client ---> FinalizeRequest ----> Target + Rotate(CertificateManagement_RotateServer) error + // Install will put a new Certificate on the target by creating a new CSR + // request and placing the new Certificate based on the CSR on the target.The + // new Certificate will be associated with a new Certificate Id on the target. + // If the target has a pre existing Certificate with the given Certificate Id, + // the operation should fail. + // If the stream is broken or any steps in the process fail the target must + // revert any changes in state. + // + // The following describes the sequence of messages that must be exchanged + // in the Install() RPC. + // + // Sequence of expected messages: + // Case 1: When Target generates the CSR-------------------------: + // + // Step 1: Start the stream + // Client <---- Install() RPC stream begin ------> Target + // + // Step 2: CSR + // Client -----> GenerateCSRRequest() ----> Target + // Client <---- GenerateCSRResponse() <---- Target + // + // Step 3: Certificate Signing + // Client gets the certificate signed by the CA. + // + // Step 4: Send Certificate to Target. + // Client -> LoadCertificateRequest() ----> Target + // Client <- LoadCertificateResponse() <--- Target + // + // Case 2: When Client generates the CSR-------------------------: + // Step 1: Start the stream + // Client <---- Install() RPC stream begin ------> Target + // + // Step 2: CSR + // Client generates its own certificate. + // + // Step 3: Certificate Signing + // Client gets the certificate signed by the CA. + // + // Step 4: Send Certificate to Target. + // Client -> LoadCertificateRequest() ----> Target + // Client <- LoadCertificateResponse() <--- Target + // + Install(CertificateManagement_InstallServer) error + // When credentials are generated on the device, generates a keypair and + // returns the Certificate Signing Request (CSR). The CSR has the public key, + // which when signed by the CA, becomes the Certificate. + GenerateCSR(context.Context, *GenerateCSRRequest) (*GenerateCSRResponse, error) + // Loads a certificate signed by a Certificate Authority (CA). + LoadCertificate(context.Context, *LoadCertificateRequest) (*LoadCertificateResponse, error) + // Loads a bundle of CA certificates. + LoadCertificateAuthorityBundle(context.Context, *LoadCertificateAuthorityBundleRequest) (*LoadCertificateAuthorityBundleResponse, error) + // An RPC to get the certificates on the target. + GetCertificates(context.Context, *GetCertificatesRequest) (*GetCertificatesResponse, error) + // An RPC to revoke specific certificates. + // If a certificate is not present on the target, the request should silently + // succeed. Revoking a certificate should render the existing certificate + // unusable by any endpoints. + RevokeCertificates(context.Context, *RevokeCertificatesRequest) (*RevokeCertificatesResponse, error) + // An RPC to ask a target if it can generate a Certificate. + CanGenerateCSR(context.Context, *CanGenerateCSRRequest) (*CanGenerateCSRResponse, error) + mustEmbedUnimplementedCertificateManagementServer() +} + +// UnimplementedCertificateManagementServer must be embedded to have forward compatible implementations. +type UnimplementedCertificateManagementServer struct { +} + +func (UnimplementedCertificateManagementServer) Rotate(CertificateManagement_RotateServer) error { + return status.Errorf(codes.Unimplemented, "method Rotate not implemented") +} +func (UnimplementedCertificateManagementServer) Install(CertificateManagement_InstallServer) error { + return status.Errorf(codes.Unimplemented, "method Install not implemented") +} +func (UnimplementedCertificateManagementServer) GenerateCSR(context.Context, *GenerateCSRRequest) (*GenerateCSRResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GenerateCSR not implemented") +} +func (UnimplementedCertificateManagementServer) LoadCertificate(context.Context, *LoadCertificateRequest) (*LoadCertificateResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method LoadCertificate not implemented") +} +func (UnimplementedCertificateManagementServer) LoadCertificateAuthorityBundle(context.Context, *LoadCertificateAuthorityBundleRequest) (*LoadCertificateAuthorityBundleResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method LoadCertificateAuthorityBundle not implemented") +} +func (UnimplementedCertificateManagementServer) GetCertificates(context.Context, *GetCertificatesRequest) (*GetCertificatesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetCertificates not implemented") +} +func (UnimplementedCertificateManagementServer) RevokeCertificates(context.Context, *RevokeCertificatesRequest) (*RevokeCertificatesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RevokeCertificates not implemented") +} +func (UnimplementedCertificateManagementServer) CanGenerateCSR(context.Context, *CanGenerateCSRRequest) (*CanGenerateCSRResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CanGenerateCSR not implemented") +} +func (UnimplementedCertificateManagementServer) mustEmbedUnimplementedCertificateManagementServer() {} + +// UnsafeCertificateManagementServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to CertificateManagementServer will +// result in compilation errors. +type UnsafeCertificateManagementServer interface { + mustEmbedUnimplementedCertificateManagementServer() +} + +func RegisterCertificateManagementServer(s grpc.ServiceRegistrar, srv CertificateManagementServer) { + s.RegisterService(&CertificateManagement_ServiceDesc, srv) +} + +func _CertificateManagement_Rotate_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(CertificateManagementServer).Rotate(&certificateManagementRotateServer{stream}) +} + +type CertificateManagement_RotateServer interface { + Send(*RotateCertificateResponse) error + Recv() (*RotateCertificateRequest, error) + grpc.ServerStream +} + +type certificateManagementRotateServer struct { + grpc.ServerStream +} + +func (x *certificateManagementRotateServer) Send(m *RotateCertificateResponse) error { + return x.ServerStream.SendMsg(m) +} + +func (x *certificateManagementRotateServer) Recv() (*RotateCertificateRequest, error) { + m := new(RotateCertificateRequest) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func _CertificateManagement_Install_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(CertificateManagementServer).Install(&certificateManagementInstallServer{stream}) +} + +type CertificateManagement_InstallServer interface { + Send(*InstallCertificateResponse) error + Recv() (*InstallCertificateRequest, error) + grpc.ServerStream +} + +type certificateManagementInstallServer struct { + grpc.ServerStream +} + +func (x *certificateManagementInstallServer) Send(m *InstallCertificateResponse) error { + return x.ServerStream.SendMsg(m) +} + +func (x *certificateManagementInstallServer) Recv() (*InstallCertificateRequest, error) { + m := new(InstallCertificateRequest) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func _CertificateManagement_GenerateCSR_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GenerateCSRRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CertificateManagementServer).GenerateCSR(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gnoi.certificate.CertificateManagement/GenerateCSR", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CertificateManagementServer).GenerateCSR(ctx, req.(*GenerateCSRRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _CertificateManagement_LoadCertificate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(LoadCertificateRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CertificateManagementServer).LoadCertificate(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gnoi.certificate.CertificateManagement/LoadCertificate", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CertificateManagementServer).LoadCertificate(ctx, req.(*LoadCertificateRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _CertificateManagement_LoadCertificateAuthorityBundle_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(LoadCertificateAuthorityBundleRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CertificateManagementServer).LoadCertificateAuthorityBundle(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gnoi.certificate.CertificateManagement/LoadCertificateAuthorityBundle", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CertificateManagementServer).LoadCertificateAuthorityBundle(ctx, req.(*LoadCertificateAuthorityBundleRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _CertificateManagement_GetCertificates_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetCertificatesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CertificateManagementServer).GetCertificates(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gnoi.certificate.CertificateManagement/GetCertificates", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CertificateManagementServer).GetCertificates(ctx, req.(*GetCertificatesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _CertificateManagement_RevokeCertificates_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RevokeCertificatesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CertificateManagementServer).RevokeCertificates(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gnoi.certificate.CertificateManagement/RevokeCertificates", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CertificateManagementServer).RevokeCertificates(ctx, req.(*RevokeCertificatesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _CertificateManagement_CanGenerateCSR_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CanGenerateCSRRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CertificateManagementServer).CanGenerateCSR(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gnoi.certificate.CertificateManagement/CanGenerateCSR", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CertificateManagementServer).CanGenerateCSR(ctx, req.(*CanGenerateCSRRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// CertificateManagement_ServiceDesc is the grpc.ServiceDesc for CertificateManagement service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var CertificateManagement_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "gnoi.certificate.CertificateManagement", + HandlerType: (*CertificateManagementServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "GenerateCSR", + Handler: _CertificateManagement_GenerateCSR_Handler, + }, + { + MethodName: "LoadCertificate", + Handler: _CertificateManagement_LoadCertificate_Handler, + }, + { + MethodName: "LoadCertificateAuthorityBundle", + Handler: _CertificateManagement_LoadCertificateAuthorityBundle_Handler, + }, + { + MethodName: "GetCertificates", + Handler: _CertificateManagement_GetCertificates_Handler, + }, + { + MethodName: "RevokeCertificates", + Handler: _CertificateManagement_RevokeCertificates_Handler, + }, + { + MethodName: "CanGenerateCSR", + Handler: _CertificateManagement_CanGenerateCSR_Handler, + }, + }, + Streams: []grpc.StreamDesc{ + { + StreamName: "Rotate", + Handler: _CertificateManagement_Rotate_Handler, + ServerStreams: true, + ClientStreams: true, + }, + { + StreamName: "Install", + Handler: _CertificateManagement_Install_Handler, + ServerStreams: true, + ClientStreams: true, + }, + }, + Metadata: "cert/cert.proto", +} diff --git a/common/common.pb.go b/common/common.pb.go index 0955e27b..9d05d44a 100644 --- a/common/common.pb.go +++ b/common/common.pb.go @@ -1,25 +1,41 @@ +// +// Copyright 2018 Google Inc. All Rights Reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.26.0 +// protoc v3.15.7 // source: common/common.proto -package gnoi_common +package common import ( - fmt "fmt" - proto "github.com/golang/protobuf/proto" types "github.com/openconfig/gnoi/types" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// 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 +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) type RemoteDownload_Protocol int32 @@ -31,114 +47,213 @@ const ( RemoteDownload_SCP RemoteDownload_Protocol = 4 ) -var RemoteDownload_Protocol_name = map[int32]string{ - 0: "UNKNOWN", - 1: "SFTP", - 2: "HTTP", - 3: "HTTPS", - 4: "SCP", -} +// Enum value maps for RemoteDownload_Protocol. +var ( + RemoteDownload_Protocol_name = map[int32]string{ + 0: "UNKNOWN", + 1: "SFTP", + 2: "HTTP", + 3: "HTTPS", + 4: "SCP", + } + RemoteDownload_Protocol_value = map[string]int32{ + "UNKNOWN": 0, + "SFTP": 1, + "HTTP": 2, + "HTTPS": 3, + "SCP": 4, + } +) -var RemoteDownload_Protocol_value = map[string]int32{ - "UNKNOWN": 0, - "SFTP": 1, - "HTTP": 2, - "HTTPS": 3, - "SCP": 4, +func (x RemoteDownload_Protocol) Enum() *RemoteDownload_Protocol { + p := new(RemoteDownload_Protocol) + *p = x + return p } func (x RemoteDownload_Protocol) String() string { - return proto.EnumName(RemoteDownload_Protocol_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (RemoteDownload_Protocol) Descriptor() protoreflect.EnumDescriptor { + return file_common_common_proto_enumTypes[0].Descriptor() } +func (RemoteDownload_Protocol) Type() protoreflect.EnumType { + return &file_common_common_proto_enumTypes[0] +} + +func (x RemoteDownload_Protocol) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use RemoteDownload_Protocol.Descriptor instead. func (RemoteDownload_Protocol) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8f954d82c0b891f6, []int{0, 0} + return file_common_common_proto_rawDescGZIP(), []int{0, 0} } // RemoteDownload defines the details for a device to initiate a file transfer // from or to a remote location. type RemoteDownload struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // The path information containing where to download the data from or to. // For HTTP(S), this will be the URL (i.e. foo.com/file.tbz2). // For SFTP and SCP, this will be the address:/path/to/file // (i.e. host.foo.com:/bar/baz). - Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` - Protocol RemoteDownload_Protocol `protobuf:"varint,2,opt,name=protocol,proto3,enum=gnoi.common.RemoteDownload_Protocol" json:"protocol,omitempty"` - Credentials *types.Credentials `protobuf:"bytes,3,opt,name=credentials,proto3" json:"credentials,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` + Protocol RemoteDownload_Protocol `protobuf:"varint,2,opt,name=protocol,proto3,enum=gnoi.common.RemoteDownload_Protocol" json:"protocol,omitempty"` + Credentials *types.Credentials `protobuf:"bytes,3,opt,name=credentials,proto3" json:"credentials,omitempty"` } -func (m *RemoteDownload) Reset() { *m = RemoteDownload{} } -func (m *RemoteDownload) String() string { return proto.CompactTextString(m) } -func (*RemoteDownload) ProtoMessage() {} -func (*RemoteDownload) Descriptor() ([]byte, []int) { - return fileDescriptor_8f954d82c0b891f6, []int{0} +func (x *RemoteDownload) Reset() { + *x = RemoteDownload{} + if protoimpl.UnsafeEnabled { + mi := &file_common_common_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *RemoteDownload) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RemoteDownload.Unmarshal(m, b) -} -func (m *RemoteDownload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RemoteDownload.Marshal(b, m, deterministic) -} -func (m *RemoteDownload) XXX_Merge(src proto.Message) { - xxx_messageInfo_RemoteDownload.Merge(m, src) +func (x *RemoteDownload) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *RemoteDownload) XXX_Size() int { - return xxx_messageInfo_RemoteDownload.Size(m) -} -func (m *RemoteDownload) XXX_DiscardUnknown() { - xxx_messageInfo_RemoteDownload.DiscardUnknown(m) + +func (*RemoteDownload) ProtoMessage() {} + +func (x *RemoteDownload) ProtoReflect() protoreflect.Message { + mi := &file_common_common_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_RemoteDownload proto.InternalMessageInfo +// Deprecated: Use RemoteDownload.ProtoReflect.Descriptor instead. +func (*RemoteDownload) Descriptor() ([]byte, []int) { + return file_common_common_proto_rawDescGZIP(), []int{0} +} -func (m *RemoteDownload) GetPath() string { - if m != nil { - return m.Path +func (x *RemoteDownload) GetPath() string { + if x != nil { + return x.Path } return "" } -func (m *RemoteDownload) GetProtocol() RemoteDownload_Protocol { - if m != nil { - return m.Protocol +func (x *RemoteDownload) GetProtocol() RemoteDownload_Protocol { + if x != nil { + return x.Protocol } return RemoteDownload_UNKNOWN } -func (m *RemoteDownload) GetCredentials() *types.Credentials { - if m != nil { - return m.Credentials +func (x *RemoteDownload) GetCredentials() *types.Credentials { + if x != nil { + return x.Credentials } return nil } -func init() { - proto.RegisterEnum("gnoi.common.RemoteDownload_Protocol", RemoteDownload_Protocol_name, RemoteDownload_Protocol_value) - proto.RegisterType((*RemoteDownload)(nil), "gnoi.common.RemoteDownload") -} - -func init() { proto.RegisterFile("common/common.proto", fileDescriptor_8f954d82c0b891f6) } - -var fileDescriptor_8f954d82c0b891f6 = []byte{ - // 243 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x4e, 0xce, 0xcf, 0xcd, - 0xcd, 0xcf, 0xd3, 0x87, 0x50, 0x7a, 0x05, 0x45, 0xf9, 0x25, 0xf9, 0x42, 0xdc, 0xe9, 0x79, 0xf9, - 0x99, 0x7a, 0x10, 0x21, 0x29, 0x9d, 0xf4, 0xcc, 0x92, 0x8c, 0xd2, 0x24, 0x10, 0x57, 0x3f, 0xbf, - 0x20, 0x35, 0x2f, 0x39, 0x3f, 0x2f, 0x2d, 0x33, 0x5d, 0x1f, 0xa4, 0x44, 0xbf, 0xa4, 0xb2, 0x20, - 0xb5, 0x18, 0x42, 0x42, 0xb4, 0x2a, 0x3d, 0x62, 0xe4, 0xe2, 0x0b, 0x4a, 0xcd, 0xcd, 0x2f, 0x49, - 0x75, 0xc9, 0x2f, 0xcf, 0xcb, 0xc9, 0x4f, 0x4c, 0x11, 0x12, 0xe2, 0x62, 0x29, 0x48, 0x2c, 0xc9, - 0x90, 0x60, 0x54, 0x60, 0xd4, 0xe0, 0x0c, 0x02, 0xb3, 0x85, 0x1c, 0xb8, 0x38, 0xc0, 0xea, 0x93, - 0xf3, 0x73, 0x24, 0x98, 0x14, 0x18, 0x35, 0xf8, 0x8c, 0x54, 0xf4, 0x90, 0x2c, 0xd5, 0x43, 0x35, - 0x42, 0x2f, 0x00, 0xaa, 0x36, 0x08, 0xae, 0x4b, 0xc8, 0x92, 0x8b, 0x3b, 0xb9, 0x28, 0x35, 0x25, - 0x35, 0xaf, 0x24, 0x33, 0x31, 0xa7, 0x58, 0x82, 0x59, 0x81, 0x51, 0x83, 0xdb, 0x48, 0x1c, 0x62, - 0x08, 0xc4, 0x41, 0xce, 0x08, 0xe9, 0x20, 0x64, 0xb5, 0x4a, 0xf6, 0x5c, 0x1c, 0x30, 0x03, 0x85, - 0xb8, 0xb9, 0xd8, 0x43, 0xfd, 0xbc, 0xfd, 0xfc, 0xc3, 0xfd, 0x04, 0x18, 0x84, 0x38, 0xb8, 0x58, - 0x82, 0xdd, 0x42, 0x02, 0x04, 0x18, 0x41, 0x2c, 0x8f, 0x90, 0x90, 0x00, 0x01, 0x26, 0x21, 0x4e, - 0x2e, 0x56, 0x10, 0x2b, 0x58, 0x80, 0x59, 0x88, 0x9d, 0x8b, 0x39, 0xd8, 0x39, 0x40, 0x80, 0x25, - 0x89, 0x0d, 0xec, 0x0a, 0x63, 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0x6f, 0xdb, 0xfe, 0xf8, 0x3d, - 0x01, 0x00, 0x00, +var File_common_common_proto protoreflect.FileDescriptor + +var file_common_common_proto_rawDesc = []byte{ + 0x0a, 0x13, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0b, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, + 0x6f, 0x6e, 0x1a, 0x2c, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, + 0x70, 0x65, 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x67, 0x6e, 0x6f, 0x69, 0x2f, 0x74, + 0x79, 0x70, 0x65, 0x73, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x22, 0xe2, 0x01, 0x0a, 0x0e, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x44, 0x6f, 0x77, 0x6e, 0x6c, + 0x6f, 0x61, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x40, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x63, 0x6f, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x24, 0x2e, 0x67, 0x6e, 0x6f, 0x69, + 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x44, 0x6f, + 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x52, + 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x39, 0x0a, 0x0b, 0x63, 0x72, 0x65, + 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, + 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x43, 0x72, 0x65, 0x64, + 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x52, 0x0b, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, + 0x69, 0x61, 0x6c, 0x73, 0x22, 0x3f, 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, + 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x08, 0x0a, + 0x04, 0x53, 0x46, 0x54, 0x50, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x48, 0x54, 0x54, 0x50, 0x10, + 0x02, 0x12, 0x09, 0x0a, 0x05, 0x48, 0x54, 0x54, 0x50, 0x53, 0x10, 0x03, 0x12, 0x07, 0x0a, 0x03, + 0x53, 0x43, 0x50, 0x10, 0x04, 0x42, 0x23, 0x5a, 0x21, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, + 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x67, + 0x6e, 0x6f, 0x69, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x33, +} + +var ( + file_common_common_proto_rawDescOnce sync.Once + file_common_common_proto_rawDescData = file_common_common_proto_rawDesc +) + +func file_common_common_proto_rawDescGZIP() []byte { + file_common_common_proto_rawDescOnce.Do(func() { + file_common_common_proto_rawDescData = protoimpl.X.CompressGZIP(file_common_common_proto_rawDescData) + }) + return file_common_common_proto_rawDescData +} + +var file_common_common_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_common_common_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_common_common_proto_goTypes = []interface{}{ + (RemoteDownload_Protocol)(0), // 0: gnoi.common.RemoteDownload.Protocol + (*RemoteDownload)(nil), // 1: gnoi.common.RemoteDownload + (*types.Credentials)(nil), // 2: gnoi.types.Credentials +} +var file_common_common_proto_depIdxs = []int32{ + 0, // 0: gnoi.common.RemoteDownload.protocol:type_name -> gnoi.common.RemoteDownload.Protocol + 2, // 1: gnoi.common.RemoteDownload.credentials:type_name -> gnoi.types.Credentials + 2, // [2:2] is the sub-list for method output_type + 2, // [2:2] is the sub-list for method input_type + 2, // [2:2] is the sub-list for extension type_name + 2, // [2:2] is the sub-list for extension extendee + 0, // [0:2] is the sub-list for field type_name +} + +func init() { file_common_common_proto_init() } +func file_common_common_proto_init() { + if File_common_common_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_common_common_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RemoteDownload); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_common_common_proto_rawDesc, + NumEnums: 1, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_common_common_proto_goTypes, + DependencyIndexes: file_common_common_proto_depIdxs, + EnumInfos: file_common_common_proto_enumTypes, + MessageInfos: file_common_common_proto_msgTypes, + }.Build() + File_common_common_proto = out.File + file_common_common_proto_rawDesc = nil + file_common_common_proto_goTypes = nil + file_common_common_proto_depIdxs = nil } diff --git a/common/common.proto b/common/common.proto index f2928fca..2d8e44c4 100644 --- a/common/common.proto +++ b/common/common.proto @@ -20,6 +20,8 @@ package gnoi.common; import "github.com/openconfig/gnoi/types/types.proto"; +option go_package = "github.com/openconfig/gnoi/common"; + // RemoteDownload defines the details for a device to initiate a file transfer // from or to a remote location. message RemoteDownload { diff --git a/compile_protos.sh b/compile_protos.sh index 1685a180..bc4aa2ba 100755 --- a/compile_protos.sh +++ b/compile_protos.sh @@ -5,6 +5,6 @@ proto_imports=".:${GOPATH}/src/github.com/google/protobuf/src:${GOPATH}/src" # Go for p in types common diag bgp cert file interface layer2 mpls system os otdr wavelength_router; do - protoc -I=$proto_imports --go_out=plugins=grpc:. $p/$p.proto + protoc -I=$proto_imports --go_out=. --go_opt=paths=source_relative --go-grpc_out=. --go-grpc_opt=paths=source_relative $p/$p.proto done diff --git a/diag/diag.pb.go b/diag/diag.pb.go index e511386d..6ef8db9c 100644 --- a/diag/diag.pb.go +++ b/diag/diag.pb.go @@ -1,33 +1,50 @@ +// +// Copyright 2017 Google Inc. All Rights Reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +// This file defines the gNOI APIs used to perform diagnostic operations on a +// network device. + // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.26.0 +// protoc v3.15.7 // source: diag/diag.proto -package gnoi_diag +package diag import ( - fmt "fmt" - proto "github.com/golang/protobuf/proto" types "github.com/openconfig/gnoi/types" - context "golang.org/x/net/context" - grpc "google.golang.org/grpc" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// 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 +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) // Common sequence generating monic polynomials used for PRBS. type PrbsPolynomial int32 const ( - PrbsPolynomial_PRBS_POLYNOMIAL_UNKNOWN PrbsPolynomial = 0 + PrbsPolynomial_PRBS_POLYNOMIAL_UNKNOWN PrbsPolynomial = 0 // default invalid choice. PrbsPolynomial_PRBS_POLYNOMIAL_PRBS7 PrbsPolynomial = 1 PrbsPolynomial_PRBS_POLYNOMIAL_PRBS9 PrbsPolynomial = 2 PrbsPolynomial_PRBS_POLYNOMIAL_PRBS15 PrbsPolynomial = 3 @@ -36,32 +53,53 @@ const ( PrbsPolynomial_PRBS_POLYNOMIAL_PRBS31 PrbsPolynomial = 6 ) -var PrbsPolynomial_name = map[int32]string{ - 0: "PRBS_POLYNOMIAL_UNKNOWN", - 1: "PRBS_POLYNOMIAL_PRBS7", - 2: "PRBS_POLYNOMIAL_PRBS9", - 3: "PRBS_POLYNOMIAL_PRBS15", - 4: "PRBS_POLYNOMIAL_PRBS20", - 5: "PRBS_POLYNOMIAL_PRBS23", - 6: "PRBS_POLYNOMIAL_PRBS31", -} +// Enum value maps for PrbsPolynomial. +var ( + PrbsPolynomial_name = map[int32]string{ + 0: "PRBS_POLYNOMIAL_UNKNOWN", + 1: "PRBS_POLYNOMIAL_PRBS7", + 2: "PRBS_POLYNOMIAL_PRBS9", + 3: "PRBS_POLYNOMIAL_PRBS15", + 4: "PRBS_POLYNOMIAL_PRBS20", + 5: "PRBS_POLYNOMIAL_PRBS23", + 6: "PRBS_POLYNOMIAL_PRBS31", + } + PrbsPolynomial_value = map[string]int32{ + "PRBS_POLYNOMIAL_UNKNOWN": 0, + "PRBS_POLYNOMIAL_PRBS7": 1, + "PRBS_POLYNOMIAL_PRBS9": 2, + "PRBS_POLYNOMIAL_PRBS15": 3, + "PRBS_POLYNOMIAL_PRBS20": 4, + "PRBS_POLYNOMIAL_PRBS23": 5, + "PRBS_POLYNOMIAL_PRBS31": 6, + } +) -var PrbsPolynomial_value = map[string]int32{ - "PRBS_POLYNOMIAL_UNKNOWN": 0, - "PRBS_POLYNOMIAL_PRBS7": 1, - "PRBS_POLYNOMIAL_PRBS9": 2, - "PRBS_POLYNOMIAL_PRBS15": 3, - "PRBS_POLYNOMIAL_PRBS20": 4, - "PRBS_POLYNOMIAL_PRBS23": 5, - "PRBS_POLYNOMIAL_PRBS31": 6, +func (x PrbsPolynomial) Enum() *PrbsPolynomial { + p := new(PrbsPolynomial) + *p = x + return p } func (x PrbsPolynomial) String() string { - return proto.EnumName(PrbsPolynomial_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (PrbsPolynomial) Descriptor() protoreflect.EnumDescriptor { + return file_diag_diag_proto_enumTypes[0].Descriptor() +} + +func (PrbsPolynomial) Type() protoreflect.EnumType { + return &file_diag_diag_proto_enumTypes[0] +} + +func (x PrbsPolynomial) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) } +// Deprecated: Use PrbsPolynomial.Descriptor instead. func (PrbsPolynomial) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_c2372dae051d1d7a, []int{0} + return file_diag_diag_proto_rawDescGZIP(), []int{0} } // Status returned for each per-port BERT request. @@ -103,49 +141,74 @@ const ( BertStatus_BERT_STATUS_INTERNAL_ERROR BertStatus = 13 ) -var BertStatus_name = map[int32]string{ - 0: "BERT_STATUS_UNKNOWN", - 1: "BERT_STATUS_OK", - 2: "BERT_STATUS_NON_EXISTENT_PORT", - 3: "BERT_STATUS_HARDWARE_ACCESS_ERROR", - 4: "BERT_STATUS_UNSUPPORTED_PRBS_POLYNOMIAL", - 5: "BERT_STATUS_PORT_ALREADY_IN_BERT", - 6: "BERT_STATUS_PORT_NOT_RUNNING_BERT", - 7: "BERT_STATUS_TEST_DURATION_TOO_SHORT", - 8: "BERT_STATUS_TEST_DURATION_TOO_LONG", - 9: "BERT_STATUS_OPERATION_ID_NOT_FOUND", - 10: "BERT_STATUS_OPERATION_ID_IN_USE", - 11: "BERT_STATUS_PEER_LOCK_FAILURE", - 12: "BERT_STATUS_PEER_LOCK_LOST", - 13: "BERT_STATUS_INTERNAL_ERROR", -} - -var BertStatus_value = map[string]int32{ - "BERT_STATUS_UNKNOWN": 0, - "BERT_STATUS_OK": 1, - "BERT_STATUS_NON_EXISTENT_PORT": 2, - "BERT_STATUS_HARDWARE_ACCESS_ERROR": 3, - "BERT_STATUS_UNSUPPORTED_PRBS_POLYNOMIAL": 4, - "BERT_STATUS_PORT_ALREADY_IN_BERT": 5, - "BERT_STATUS_PORT_NOT_RUNNING_BERT": 6, - "BERT_STATUS_TEST_DURATION_TOO_SHORT": 7, - "BERT_STATUS_TEST_DURATION_TOO_LONG": 8, - "BERT_STATUS_OPERATION_ID_NOT_FOUND": 9, - "BERT_STATUS_OPERATION_ID_IN_USE": 10, - "BERT_STATUS_PEER_LOCK_FAILURE": 11, - "BERT_STATUS_PEER_LOCK_LOST": 12, - "BERT_STATUS_INTERNAL_ERROR": 13, +// Enum value maps for BertStatus. +var ( + BertStatus_name = map[int32]string{ + 0: "BERT_STATUS_UNKNOWN", + 1: "BERT_STATUS_OK", + 2: "BERT_STATUS_NON_EXISTENT_PORT", + 3: "BERT_STATUS_HARDWARE_ACCESS_ERROR", + 4: "BERT_STATUS_UNSUPPORTED_PRBS_POLYNOMIAL", + 5: "BERT_STATUS_PORT_ALREADY_IN_BERT", + 6: "BERT_STATUS_PORT_NOT_RUNNING_BERT", + 7: "BERT_STATUS_TEST_DURATION_TOO_SHORT", + 8: "BERT_STATUS_TEST_DURATION_TOO_LONG", + 9: "BERT_STATUS_OPERATION_ID_NOT_FOUND", + 10: "BERT_STATUS_OPERATION_ID_IN_USE", + 11: "BERT_STATUS_PEER_LOCK_FAILURE", + 12: "BERT_STATUS_PEER_LOCK_LOST", + 13: "BERT_STATUS_INTERNAL_ERROR", + } + BertStatus_value = map[string]int32{ + "BERT_STATUS_UNKNOWN": 0, + "BERT_STATUS_OK": 1, + "BERT_STATUS_NON_EXISTENT_PORT": 2, + "BERT_STATUS_HARDWARE_ACCESS_ERROR": 3, + "BERT_STATUS_UNSUPPORTED_PRBS_POLYNOMIAL": 4, + "BERT_STATUS_PORT_ALREADY_IN_BERT": 5, + "BERT_STATUS_PORT_NOT_RUNNING_BERT": 6, + "BERT_STATUS_TEST_DURATION_TOO_SHORT": 7, + "BERT_STATUS_TEST_DURATION_TOO_LONG": 8, + "BERT_STATUS_OPERATION_ID_NOT_FOUND": 9, + "BERT_STATUS_OPERATION_ID_IN_USE": 10, + "BERT_STATUS_PEER_LOCK_FAILURE": 11, + "BERT_STATUS_PEER_LOCK_LOST": 12, + "BERT_STATUS_INTERNAL_ERROR": 13, + } +) + +func (x BertStatus) Enum() *BertStatus { + p := new(BertStatus) + *p = x + return p } func (x BertStatus) String() string { - return proto.EnumName(BertStatus_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } +func (BertStatus) Descriptor() protoreflect.EnumDescriptor { + return file_diag_diag_proto_enumTypes[1].Descriptor() +} + +func (BertStatus) Type() protoreflect.EnumType { + return &file_diag_diag_proto_enumTypes[1] +} + +func (x BertStatus) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use BertStatus.Descriptor instead. func (BertStatus) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_c2372dae051d1d7a, []int{1} + return file_diag_diag_proto_rawDescGZIP(), []int{1} } type StartBERTRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // Unique BERT operation ID specified by the client. Multiple BERTs run on // different ports can have the same BERT operation ID. This ID will be used // later to stop the operation and/or get its results. @@ -153,546 +216,634 @@ type StartBERTRequest struct { BertOperationId string `protobuf:"bytes,1,opt,name=bert_operation_id,json=bertOperationId,proto3" json:"bert_operation_id,omitempty"` // All the per-port BERTs that are considered one BERT operation and have the // same BERT operation ID. - PerPortRequests []*StartBERTRequest_PerPortRequest `protobuf:"bytes,2,rep,name=per_port_requests,json=perPortRequests,proto3" json:"per_port_requests,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + PerPortRequests []*StartBERTRequest_PerPortRequest `protobuf:"bytes,2,rep,name=per_port_requests,json=perPortRequests,proto3" json:"per_port_requests,omitempty"` } -func (m *StartBERTRequest) Reset() { *m = StartBERTRequest{} } -func (m *StartBERTRequest) String() string { return proto.CompactTextString(m) } -func (*StartBERTRequest) ProtoMessage() {} -func (*StartBERTRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c2372dae051d1d7a, []int{0} +func (x *StartBERTRequest) Reset() { + *x = StartBERTRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_diag_diag_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *StartBERTRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_StartBERTRequest.Unmarshal(m, b) -} -func (m *StartBERTRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_StartBERTRequest.Marshal(b, m, deterministic) +func (x *StartBERTRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *StartBERTRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_StartBERTRequest.Merge(m, src) -} -func (m *StartBERTRequest) XXX_Size() int { - return xxx_messageInfo_StartBERTRequest.Size(m) -} -func (m *StartBERTRequest) XXX_DiscardUnknown() { - xxx_messageInfo_StartBERTRequest.DiscardUnknown(m) + +func (*StartBERTRequest) ProtoMessage() {} + +func (x *StartBERTRequest) ProtoReflect() protoreflect.Message { + mi := &file_diag_diag_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_StartBERTRequest proto.InternalMessageInfo +// Deprecated: Use StartBERTRequest.ProtoReflect.Descriptor instead. +func (*StartBERTRequest) Descriptor() ([]byte, []int) { + return file_diag_diag_proto_rawDescGZIP(), []int{0} +} -func (m *StartBERTRequest) GetBertOperationId() string { - if m != nil { - return m.BertOperationId +func (x *StartBERTRequest) GetBertOperationId() string { + if x != nil { + return x.BertOperationId } return "" } -func (m *StartBERTRequest) GetPerPortRequests() []*StartBERTRequest_PerPortRequest { - if m != nil { - return m.PerPortRequests +func (x *StartBERTRequest) GetPerPortRequests() []*StartBERTRequest_PerPortRequest { + if x != nil { + return x.PerPortRequests } return nil } -// Per port BERT start requests. -type StartBERTRequest_PerPortRequest struct { - // Path to the interface corresponding to the port. - Interface *types.Path `protobuf:"bytes,1,opt,name=interface,proto3" json:"interface,omitempty"` - // The selected PRBS generating polynomial for BERT. - PrbsPolynomial PrbsPolynomial `protobuf:"varint,2,opt,name=prbs_polynomial,json=prbsPolynomial,proto3,enum=gnoi.diag.PrbsPolynomial" json:"prbs_polynomial,omitempty"` - // BERT duration in seconds. Must be a positive number. - TestDurationInSecs uint32 `protobuf:"varint,3,opt,name=test_duration_in_secs,json=testDurationInSecs,proto3" json:"test_duration_in_secs,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} +type StartBERTResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *StartBERTRequest_PerPortRequest) Reset() { *m = StartBERTRequest_PerPortRequest{} } -func (m *StartBERTRequest_PerPortRequest) String() string { return proto.CompactTextString(m) } -func (*StartBERTRequest_PerPortRequest) ProtoMessage() {} -func (*StartBERTRequest_PerPortRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c2372dae051d1d7a, []int{0, 0} + // The same BERT operation ID given by the request. + BertOperationId string `protobuf:"bytes,1,opt,name=bert_operation_id,json=bertOperationId,proto3" json:"bert_operation_id,omitempty"` + // Captures the results of starting BERT on a per-port basis. + PerPortResponses []*StartBERTResponse_PerPortResponse `protobuf:"bytes,2,rep,name=per_port_responses,json=perPortResponses,proto3" json:"per_port_responses,omitempty"` } -func (m *StartBERTRequest_PerPortRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_StartBERTRequest_PerPortRequest.Unmarshal(m, b) -} -func (m *StartBERTRequest_PerPortRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_StartBERTRequest_PerPortRequest.Marshal(b, m, deterministic) -} -func (m *StartBERTRequest_PerPortRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_StartBERTRequest_PerPortRequest.Merge(m, src) -} -func (m *StartBERTRequest_PerPortRequest) XXX_Size() int { - return xxx_messageInfo_StartBERTRequest_PerPortRequest.Size(m) +func (x *StartBERTResponse) Reset() { + *x = StartBERTResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_diag_diag_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *StartBERTRequest_PerPortRequest) XXX_DiscardUnknown() { - xxx_messageInfo_StartBERTRequest_PerPortRequest.DiscardUnknown(m) + +func (x *StartBERTResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_StartBERTRequest_PerPortRequest proto.InternalMessageInfo +func (*StartBERTResponse) ProtoMessage() {} -func (m *StartBERTRequest_PerPortRequest) GetInterface() *types.Path { - if m != nil { - return m.Interface +func (x *StartBERTResponse) ProtoReflect() protoreflect.Message { + mi := &file_diag_diag_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) +} + +// Deprecated: Use StartBERTResponse.ProtoReflect.Descriptor instead. +func (*StartBERTResponse) Descriptor() ([]byte, []int) { + return file_diag_diag_proto_rawDescGZIP(), []int{1} } -func (m *StartBERTRequest_PerPortRequest) GetPrbsPolynomial() PrbsPolynomial { - if m != nil { - return m.PrbsPolynomial +func (x *StartBERTResponse) GetBertOperationId() string { + if x != nil { + return x.BertOperationId } - return PrbsPolynomial_PRBS_POLYNOMIAL_UNKNOWN + return "" } -func (m *StartBERTRequest_PerPortRequest) GetTestDurationInSecs() uint32 { - if m != nil { - return m.TestDurationInSecs +func (x *StartBERTResponse) GetPerPortResponses() []*StartBERTResponse_PerPortResponse { + if x != nil { + return x.PerPortResponses } - return 0 + return nil } -type StartBERTResponse struct { - // The same BERT operation ID given by the request. +type StopBERTRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The same BERT operation ID given when BERT operation was started. BertOperationId string `protobuf:"bytes,1,opt,name=bert_operation_id,json=bertOperationId,proto3" json:"bert_operation_id,omitempty"` - // Captures the results of starting BERT on a per-port basis. - PerPortResponses []*StartBERTResponse_PerPortResponse `protobuf:"bytes,2,rep,name=per_port_responses,json=perPortResponses,proto3" json:"per_port_responses,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + // All the per-port BERTs that need to be stopped. Must be part of the BERT + // operation specified by the `bert_operation_id` above. + PerPortRequests []*StopBERTRequest_PerPortRequest `protobuf:"bytes,2,rep,name=per_port_requests,json=perPortRequests,proto3" json:"per_port_requests,omitempty"` } -func (m *StartBERTResponse) Reset() { *m = StartBERTResponse{} } -func (m *StartBERTResponse) String() string { return proto.CompactTextString(m) } -func (*StartBERTResponse) ProtoMessage() {} -func (*StartBERTResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c2372dae051d1d7a, []int{1} +func (x *StopBERTRequest) Reset() { + *x = StopBERTRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_diag_diag_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *StartBERTResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_StartBERTResponse.Unmarshal(m, b) -} -func (m *StartBERTResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_StartBERTResponse.Marshal(b, m, deterministic) -} -func (m *StartBERTResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_StartBERTResponse.Merge(m, src) +func (x *StopBERTRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *StartBERTResponse) XXX_Size() int { - return xxx_messageInfo_StartBERTResponse.Size(m) -} -func (m *StartBERTResponse) XXX_DiscardUnknown() { - xxx_messageInfo_StartBERTResponse.DiscardUnknown(m) + +func (*StopBERTRequest) ProtoMessage() {} + +func (x *StopBERTRequest) ProtoReflect() protoreflect.Message { + mi := &file_diag_diag_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_StartBERTResponse proto.InternalMessageInfo +// Deprecated: Use StopBERTRequest.ProtoReflect.Descriptor instead. +func (*StopBERTRequest) Descriptor() ([]byte, []int) { + return file_diag_diag_proto_rawDescGZIP(), []int{2} +} -func (m *StartBERTResponse) GetBertOperationId() string { - if m != nil { - return m.BertOperationId +func (x *StopBERTRequest) GetBertOperationId() string { + if x != nil { + return x.BertOperationId } return "" } -func (m *StartBERTResponse) GetPerPortResponses() []*StartBERTResponse_PerPortResponse { - if m != nil { - return m.PerPortResponses +func (x *StopBERTRequest) GetPerPortRequests() []*StopBERTRequest_PerPortRequest { + if x != nil { + return x.PerPortRequests } return nil } -// Per-port BERT start responses. -type StartBERTResponse_PerPortResponse struct { - // Path to the interface corresponding to the port. - Interface *types.Path `protobuf:"bytes,1,opt,name=interface,proto3" json:"interface,omitempty"` - // BERT start status for this port. - Status BertStatus `protobuf:"varint,2,opt,name=status,proto3,enum=gnoi.diag.BertStatus" json:"status,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} +type StopBERTResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *StartBERTResponse_PerPortResponse) Reset() { *m = StartBERTResponse_PerPortResponse{} } -func (m *StartBERTResponse_PerPortResponse) String() string { return proto.CompactTextString(m) } -func (*StartBERTResponse_PerPortResponse) ProtoMessage() {} -func (*StartBERTResponse_PerPortResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c2372dae051d1d7a, []int{1, 0} + // The same BERT operation ID given by the request. + BertOperationId string `protobuf:"bytes,1,opt,name=bert_operation_id,json=bertOperationId,proto3" json:"bert_operation_id,omitempty"` + // Captures the results of stopping BERT on a per-port basis. + PerPortResponses []*StopBERTResponse_PerPortResponse `protobuf:"bytes,2,rep,name=per_port_responses,json=perPortResponses,proto3" json:"per_port_responses,omitempty"` } -func (m *StartBERTResponse_PerPortResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_StartBERTResponse_PerPortResponse.Unmarshal(m, b) -} -func (m *StartBERTResponse_PerPortResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_StartBERTResponse_PerPortResponse.Marshal(b, m, deterministic) -} -func (m *StartBERTResponse_PerPortResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_StartBERTResponse_PerPortResponse.Merge(m, src) +func (x *StopBERTResponse) Reset() { + *x = StopBERTResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_diag_diag_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *StartBERTResponse_PerPortResponse) XXX_Size() int { - return xxx_messageInfo_StartBERTResponse_PerPortResponse.Size(m) + +func (x *StopBERTResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *StartBERTResponse_PerPortResponse) XXX_DiscardUnknown() { - xxx_messageInfo_StartBERTResponse_PerPortResponse.DiscardUnknown(m) + +func (*StopBERTResponse) ProtoMessage() {} + +func (x *StopBERTResponse) ProtoReflect() protoreflect.Message { + mi := &file_diag_diag_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_StartBERTResponse_PerPortResponse proto.InternalMessageInfo +// Deprecated: Use StopBERTResponse.ProtoReflect.Descriptor instead. +func (*StopBERTResponse) Descriptor() ([]byte, []int) { + return file_diag_diag_proto_rawDescGZIP(), []int{3} +} -func (m *StartBERTResponse_PerPortResponse) GetInterface() *types.Path { - if m != nil { - return m.Interface +func (x *StopBERTResponse) GetBertOperationId() string { + if x != nil { + return x.BertOperationId } - return nil + return "" } -func (m *StartBERTResponse_PerPortResponse) GetStatus() BertStatus { - if m != nil { - return m.Status +func (x *StopBERTResponse) GetPerPortResponses() []*StopBERTResponse_PerPortResponse { + if x != nil { + return x.PerPortResponses } - return BertStatus_BERT_STATUS_UNKNOWN + return nil } -type StopBERTRequest struct { +// TODO: If there is no use case to get the BERT results for all the ports +// independent of the bert_operation_id, we can simplify this message and +// return the results for all the ports associated with an operation ID. +type GetBERTResultRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // The same BERT operation ID given when BERT operation was started. BertOperationId string `protobuf:"bytes,1,opt,name=bert_operation_id,json=bertOperationId,proto3" json:"bert_operation_id,omitempty"` - // All the per-port BERTs that need to be stopped. Must be part of the BERT - // operation specified by the `bert_operation_id` above. - PerPortRequests []*StopBERTRequest_PerPortRequest `protobuf:"bytes,2,rep,name=per_port_requests,json=perPortRequests,proto3" json:"per_port_requests,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + // All the per-port BERTs result of which we want to query. Must be part of + // the BERT operation specified by the `bert_operation_id` above. + PerPortRequests []*GetBERTResultRequest_PerPortRequest `protobuf:"bytes,2,rep,name=per_port_requests,json=perPortRequests,proto3" json:"per_port_requests,omitempty"` + // If set to true, the results for all the per-port BERTs will be returned. + // `bert_operation_id` and `per_port_requests` will be ignored will be + // ignored in that case. + ResultFromAllPorts bool `protobuf:"varint,3,opt,name=result_from_all_ports,json=resultFromAllPorts,proto3" json:"result_from_all_ports,omitempty"` } -func (m *StopBERTRequest) Reset() { *m = StopBERTRequest{} } -func (m *StopBERTRequest) String() string { return proto.CompactTextString(m) } -func (*StopBERTRequest) ProtoMessage() {} -func (*StopBERTRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c2372dae051d1d7a, []int{2} +func (x *GetBERTResultRequest) Reset() { + *x = GetBERTResultRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_diag_diag_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *StopBERTRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_StopBERTRequest.Unmarshal(m, b) -} -func (m *StopBERTRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_StopBERTRequest.Marshal(b, m, deterministic) -} -func (m *StopBERTRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_StopBERTRequest.Merge(m, src) -} -func (m *StopBERTRequest) XXX_Size() int { - return xxx_messageInfo_StopBERTRequest.Size(m) +func (x *GetBERTResultRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *StopBERTRequest) XXX_DiscardUnknown() { - xxx_messageInfo_StopBERTRequest.DiscardUnknown(m) + +func (*GetBERTResultRequest) ProtoMessage() {} + +func (x *GetBERTResultRequest) ProtoReflect() protoreflect.Message { + mi := &file_diag_diag_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_StopBERTRequest proto.InternalMessageInfo +// Deprecated: Use GetBERTResultRequest.ProtoReflect.Descriptor instead. +func (*GetBERTResultRequest) Descriptor() ([]byte, []int) { + return file_diag_diag_proto_rawDescGZIP(), []int{4} +} -func (m *StopBERTRequest) GetBertOperationId() string { - if m != nil { - return m.BertOperationId +func (x *GetBERTResultRequest) GetBertOperationId() string { + if x != nil { + return x.BertOperationId } return "" } -func (m *StopBERTRequest) GetPerPortRequests() []*StopBERTRequest_PerPortRequest { - if m != nil { - return m.PerPortRequests +func (x *GetBERTResultRequest) GetPerPortRequests() []*GetBERTResultRequest_PerPortRequest { + if x != nil { + return x.PerPortRequests } return nil } -// Per-port BERT stop requests. -type StopBERTRequest_PerPortRequest struct { - // Path to the interface corresponding to the port. - Interface *types.Path `protobuf:"bytes,1,opt,name=interface,proto3" json:"interface,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *GetBERTResultRequest) GetResultFromAllPorts() bool { + if x != nil { + return x.ResultFromAllPorts + } + return false } -func (m *StopBERTRequest_PerPortRequest) Reset() { *m = StopBERTRequest_PerPortRequest{} } -func (m *StopBERTRequest_PerPortRequest) String() string { return proto.CompactTextString(m) } -func (*StopBERTRequest_PerPortRequest) ProtoMessage() {} -func (*StopBERTRequest_PerPortRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c2372dae051d1d7a, []int{2, 0} -} +type GetBERTResultResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *StopBERTRequest_PerPortRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_StopBERTRequest_PerPortRequest.Unmarshal(m, b) -} -func (m *StopBERTRequest_PerPortRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_StopBERTRequest_PerPortRequest.Marshal(b, m, deterministic) -} -func (m *StopBERTRequest_PerPortRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_StopBERTRequest_PerPortRequest.Merge(m, src) + // Captures the BERT results on a per-port basis. + PerPortResponses []*GetBERTResultResponse_PerPortResponse `protobuf:"bytes,1,rep,name=per_port_responses,json=perPortResponses,proto3" json:"per_port_responses,omitempty"` } -func (m *StopBERTRequest_PerPortRequest) XXX_Size() int { - return xxx_messageInfo_StopBERTRequest_PerPortRequest.Size(m) + +func (x *GetBERTResultResponse) Reset() { + *x = GetBERTResultResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_diag_diag_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *StopBERTRequest_PerPortRequest) XXX_DiscardUnknown() { - xxx_messageInfo_StopBERTRequest_PerPortRequest.DiscardUnknown(m) + +func (x *GetBERTResultResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_StopBERTRequest_PerPortRequest proto.InternalMessageInfo +func (*GetBERTResultResponse) ProtoMessage() {} -func (m *StopBERTRequest_PerPortRequest) GetInterface() *types.Path { - if m != nil { - return m.Interface +func (x *GetBERTResultResponse) ProtoReflect() protoreflect.Message { + mi := &file_diag_diag_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) } -type StopBERTResponse struct { - // The same BERT operation ID given by the request. - BertOperationId string `protobuf:"bytes,1,opt,name=bert_operation_id,json=bertOperationId,proto3" json:"bert_operation_id,omitempty"` - // Captures the results of stopping BERT on a per-port basis. - PerPortResponses []*StopBERTResponse_PerPortResponse `protobuf:"bytes,2,rep,name=per_port_responses,json=perPortResponses,proto3" json:"per_port_responses,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// Deprecated: Use GetBERTResultResponse.ProtoReflect.Descriptor instead. +func (*GetBERTResultResponse) Descriptor() ([]byte, []int) { + return file_diag_diag_proto_rawDescGZIP(), []int{5} } -func (m *StopBERTResponse) Reset() { *m = StopBERTResponse{} } -func (m *StopBERTResponse) String() string { return proto.CompactTextString(m) } -func (*StopBERTResponse) ProtoMessage() {} -func (*StopBERTResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c2372dae051d1d7a, []int{3} +func (x *GetBERTResultResponse) GetPerPortResponses() []*GetBERTResultResponse_PerPortResponse { + if x != nil { + return x.PerPortResponses + } + return nil } -func (m *StopBERTResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_StopBERTResponse.Unmarshal(m, b) +// Per port BERT start requests. +type StartBERTRequest_PerPortRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Path to the interface corresponding to the port. + Interface *types.Path `protobuf:"bytes,1,opt,name=interface,proto3" json:"interface,omitempty"` // required + // The selected PRBS generating polynomial for BERT. + PrbsPolynomial PrbsPolynomial `protobuf:"varint,2,opt,name=prbs_polynomial,json=prbsPolynomial,proto3,enum=gnoi.diag.PrbsPolynomial" json:"prbs_polynomial,omitempty"` // required + // BERT duration in seconds. Must be a positive number. + TestDurationInSecs uint32 `protobuf:"varint,3,opt,name=test_duration_in_secs,json=testDurationInSecs,proto3" json:"test_duration_in_secs,omitempty"` // required } -func (m *StopBERTResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_StopBERTResponse.Marshal(b, m, deterministic) + +func (x *StartBERTRequest_PerPortRequest) Reset() { + *x = StartBERTRequest_PerPortRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_diag_diag_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *StopBERTResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_StopBERTResponse.Merge(m, src) + +func (x *StartBERTRequest_PerPortRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *StopBERTResponse) XXX_Size() int { - return xxx_messageInfo_StopBERTResponse.Size(m) + +func (*StartBERTRequest_PerPortRequest) ProtoMessage() {} + +func (x *StartBERTRequest_PerPortRequest) ProtoReflect() protoreflect.Message { + mi := &file_diag_diag_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func (m *StopBERTResponse) XXX_DiscardUnknown() { - xxx_messageInfo_StopBERTResponse.DiscardUnknown(m) + +// Deprecated: Use StartBERTRequest_PerPortRequest.ProtoReflect.Descriptor instead. +func (*StartBERTRequest_PerPortRequest) Descriptor() ([]byte, []int) { + return file_diag_diag_proto_rawDescGZIP(), []int{0, 0} } -var xxx_messageInfo_StopBERTResponse proto.InternalMessageInfo +func (x *StartBERTRequest_PerPortRequest) GetInterface() *types.Path { + if x != nil { + return x.Interface + } + return nil +} -func (m *StopBERTResponse) GetBertOperationId() string { - if m != nil { - return m.BertOperationId +func (x *StartBERTRequest_PerPortRequest) GetPrbsPolynomial() PrbsPolynomial { + if x != nil { + return x.PrbsPolynomial } - return "" + return PrbsPolynomial_PRBS_POLYNOMIAL_UNKNOWN } -func (m *StopBERTResponse) GetPerPortResponses() []*StopBERTResponse_PerPortResponse { - if m != nil { - return m.PerPortResponses +func (x *StartBERTRequest_PerPortRequest) GetTestDurationInSecs() uint32 { + if x != nil { + return x.TestDurationInSecs } - return nil + return 0 } -// Per-port BERT stop responses. -type StopBERTResponse_PerPortResponse struct { +// Per-port BERT start responses. +type StartBERTResponse_PerPortResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // Path to the interface corresponding to the port. Interface *types.Path `protobuf:"bytes,1,opt,name=interface,proto3" json:"interface,omitempty"` - // BERT stop status for this port. - Status BertStatus `protobuf:"varint,2,opt,name=status,proto3,enum=gnoi.diag.BertStatus" json:"status,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + // BERT start status for this port. + Status BertStatus `protobuf:"varint,2,opt,name=status,proto3,enum=gnoi.diag.BertStatus" json:"status,omitempty"` } -func (m *StopBERTResponse_PerPortResponse) Reset() { *m = StopBERTResponse_PerPortResponse{} } -func (m *StopBERTResponse_PerPortResponse) String() string { return proto.CompactTextString(m) } -func (*StopBERTResponse_PerPortResponse) ProtoMessage() {} -func (*StopBERTResponse_PerPortResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c2372dae051d1d7a, []int{3, 0} +func (x *StartBERTResponse_PerPortResponse) Reset() { + *x = StartBERTResponse_PerPortResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_diag_diag_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *StopBERTResponse_PerPortResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_StopBERTResponse_PerPortResponse.Unmarshal(m, b) +func (x *StartBERTResponse_PerPortResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *StopBERTResponse_PerPortResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_StopBERTResponse_PerPortResponse.Marshal(b, m, deterministic) -} -func (m *StopBERTResponse_PerPortResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_StopBERTResponse_PerPortResponse.Merge(m, src) -} -func (m *StopBERTResponse_PerPortResponse) XXX_Size() int { - return xxx_messageInfo_StopBERTResponse_PerPortResponse.Size(m) -} -func (m *StopBERTResponse_PerPortResponse) XXX_DiscardUnknown() { - xxx_messageInfo_StopBERTResponse_PerPortResponse.DiscardUnknown(m) + +func (*StartBERTResponse_PerPortResponse) ProtoMessage() {} + +func (x *StartBERTResponse_PerPortResponse) ProtoReflect() protoreflect.Message { + mi := &file_diag_diag_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_StopBERTResponse_PerPortResponse proto.InternalMessageInfo +// Deprecated: Use StartBERTResponse_PerPortResponse.ProtoReflect.Descriptor instead. +func (*StartBERTResponse_PerPortResponse) Descriptor() ([]byte, []int) { + return file_diag_diag_proto_rawDescGZIP(), []int{1, 0} +} -func (m *StopBERTResponse_PerPortResponse) GetInterface() *types.Path { - if m != nil { - return m.Interface +func (x *StartBERTResponse_PerPortResponse) GetInterface() *types.Path { + if x != nil { + return x.Interface } return nil } -func (m *StopBERTResponse_PerPortResponse) GetStatus() BertStatus { - if m != nil { - return m.Status +func (x *StartBERTResponse_PerPortResponse) GetStatus() BertStatus { + if x != nil { + return x.Status } return BertStatus_BERT_STATUS_UNKNOWN } -// TODO: If there is no use case to get the BERT results for all the ports -// independent of the bert_operation_id, we can simplify this message and -// return the results for all the ports associated with an operation ID. -type GetBERTResultRequest struct { - // The same BERT operation ID given when BERT operation was started. - BertOperationId string `protobuf:"bytes,1,opt,name=bert_operation_id,json=bertOperationId,proto3" json:"bert_operation_id,omitempty"` - // All the per-port BERTs result of which we want to query. Must be part of - // the BERT operation specified by the `bert_operation_id` above. - PerPortRequests []*GetBERTResultRequest_PerPortRequest `protobuf:"bytes,2,rep,name=per_port_requests,json=perPortRequests,proto3" json:"per_port_requests,omitempty"` - // If set to true, the results for all the per-port BERTs will be returned. - // `bert_operation_id` and `per_port_requests` will be ignored will be - // ignored in that case. - ResultFromAllPorts bool `protobuf:"varint,3,opt,name=result_from_all_ports,json=resultFromAllPorts,proto3" json:"result_from_all_ports,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} +// Per-port BERT stop requests. +type StopBERTRequest_PerPortRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *GetBERTResultRequest) Reset() { *m = GetBERTResultRequest{} } -func (m *GetBERTResultRequest) String() string { return proto.CompactTextString(m) } -func (*GetBERTResultRequest) ProtoMessage() {} -func (*GetBERTResultRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c2372dae051d1d7a, []int{4} + // Path to the interface corresponding to the port. + Interface *types.Path `protobuf:"bytes,1,opt,name=interface,proto3" json:"interface,omitempty"` } -func (m *GetBERTResultRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetBERTResultRequest.Unmarshal(m, b) -} -func (m *GetBERTResultRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetBERTResultRequest.Marshal(b, m, deterministic) -} -func (m *GetBERTResultRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetBERTResultRequest.Merge(m, src) -} -func (m *GetBERTResultRequest) XXX_Size() int { - return xxx_messageInfo_GetBERTResultRequest.Size(m) +func (x *StopBERTRequest_PerPortRequest) Reset() { + *x = StopBERTRequest_PerPortRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_diag_diag_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetBERTResultRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetBERTResultRequest.DiscardUnknown(m) + +func (x *StopBERTRequest_PerPortRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_GetBERTResultRequest proto.InternalMessageInfo +func (*StopBERTRequest_PerPortRequest) ProtoMessage() {} -func (m *GetBERTResultRequest) GetBertOperationId() string { - if m != nil { - return m.BertOperationId +func (x *StopBERTRequest_PerPortRequest) ProtoReflect() protoreflect.Message { + mi := &file_diag_diag_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return "" + return mi.MessageOf(x) } -func (m *GetBERTResultRequest) GetPerPortRequests() []*GetBERTResultRequest_PerPortRequest { - if m != nil { - return m.PerPortRequests - } - return nil +// Deprecated: Use StopBERTRequest_PerPortRequest.ProtoReflect.Descriptor instead. +func (*StopBERTRequest_PerPortRequest) Descriptor() ([]byte, []int) { + return file_diag_diag_proto_rawDescGZIP(), []int{2, 0} } -func (m *GetBERTResultRequest) GetResultFromAllPorts() bool { - if m != nil { - return m.ResultFromAllPorts +func (x *StopBERTRequest_PerPortRequest) GetInterface() *types.Path { + if x != nil { + return x.Interface } - return false + return nil } -// Per-port BERT get result requests. -type GetBERTResultRequest_PerPortRequest struct { +// Per-port BERT stop responses. +type StopBERTResponse_PerPortResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // Path to the interface corresponding to the port. - Interface *types.Path `protobuf:"bytes,1,opt,name=interface,proto3" json:"interface,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Interface *types.Path `protobuf:"bytes,1,opt,name=interface,proto3" json:"interface,omitempty"` + // BERT stop status for this port. + Status BertStatus `protobuf:"varint,2,opt,name=status,proto3,enum=gnoi.diag.BertStatus" json:"status,omitempty"` } -func (m *GetBERTResultRequest_PerPortRequest) Reset() { *m = GetBERTResultRequest_PerPortRequest{} } -func (m *GetBERTResultRequest_PerPortRequest) String() string { return proto.CompactTextString(m) } -func (*GetBERTResultRequest_PerPortRequest) ProtoMessage() {} -func (*GetBERTResultRequest_PerPortRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c2372dae051d1d7a, []int{4, 0} +func (x *StopBERTResponse_PerPortResponse) Reset() { + *x = StopBERTResponse_PerPortResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_diag_diag_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetBERTResultRequest_PerPortRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetBERTResultRequest_PerPortRequest.Unmarshal(m, b) -} -func (m *GetBERTResultRequest_PerPortRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetBERTResultRequest_PerPortRequest.Marshal(b, m, deterministic) -} -func (m *GetBERTResultRequest_PerPortRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetBERTResultRequest_PerPortRequest.Merge(m, src) -} -func (m *GetBERTResultRequest_PerPortRequest) XXX_Size() int { - return xxx_messageInfo_GetBERTResultRequest_PerPortRequest.Size(m) -} -func (m *GetBERTResultRequest_PerPortRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetBERTResultRequest_PerPortRequest.DiscardUnknown(m) +func (x *StopBERTResponse_PerPortResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_GetBERTResultRequest_PerPortRequest proto.InternalMessageInfo +func (*StopBERTResponse_PerPortResponse) ProtoMessage() {} -func (m *GetBERTResultRequest_PerPortRequest) GetInterface() *types.Path { - if m != nil { - return m.Interface +func (x *StopBERTResponse_PerPortResponse) ProtoReflect() protoreflect.Message { + mi := &file_diag_diag_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) } -type GetBERTResultResponse struct { - // Captures the BERT results on a per-port basis. - PerPortResponses []*GetBERTResultResponse_PerPortResponse `protobuf:"bytes,1,rep,name=per_port_responses,json=perPortResponses,proto3" json:"per_port_responses,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// Deprecated: Use StopBERTResponse_PerPortResponse.ProtoReflect.Descriptor instead. +func (*StopBERTResponse_PerPortResponse) Descriptor() ([]byte, []int) { + return file_diag_diag_proto_rawDescGZIP(), []int{3, 0} } -func (m *GetBERTResultResponse) Reset() { *m = GetBERTResultResponse{} } -func (m *GetBERTResultResponse) String() string { return proto.CompactTextString(m) } -func (*GetBERTResultResponse) ProtoMessage() {} -func (*GetBERTResultResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c2372dae051d1d7a, []int{5} +func (x *StopBERTResponse_PerPortResponse) GetInterface() *types.Path { + if x != nil { + return x.Interface + } + return nil } -func (m *GetBERTResultResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetBERTResultResponse.Unmarshal(m, b) +func (x *StopBERTResponse_PerPortResponse) GetStatus() BertStatus { + if x != nil { + return x.Status + } + return BertStatus_BERT_STATUS_UNKNOWN } -func (m *GetBERTResultResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetBERTResultResponse.Marshal(b, m, deterministic) + +// Per-port BERT get result requests. +type GetBERTResultRequest_PerPortRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Path to the interface corresponding to the port. + Interface *types.Path `protobuf:"bytes,1,opt,name=interface,proto3" json:"interface,omitempty"` } -func (m *GetBERTResultResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetBERTResultResponse.Merge(m, src) + +func (x *GetBERTResultRequest_PerPortRequest) Reset() { + *x = GetBERTResultRequest_PerPortRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_diag_diag_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetBERTResultResponse) XXX_Size() int { - return xxx_messageInfo_GetBERTResultResponse.Size(m) + +func (x *GetBERTResultRequest_PerPortRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetBERTResultResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetBERTResultResponse.DiscardUnknown(m) + +func (*GetBERTResultRequest_PerPortRequest) ProtoMessage() {} + +func (x *GetBERTResultRequest_PerPortRequest) ProtoReflect() protoreflect.Message { + mi := &file_diag_diag_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_GetBERTResultResponse proto.InternalMessageInfo +// Deprecated: Use GetBERTResultRequest_PerPortRequest.ProtoReflect.Descriptor instead. +func (*GetBERTResultRequest_PerPortRequest) Descriptor() ([]byte, []int) { + return file_diag_diag_proto_rawDescGZIP(), []int{4, 0} +} -func (m *GetBERTResultResponse) GetPerPortResponses() []*GetBERTResultResponse_PerPortResponse { - if m != nil { - return m.PerPortResponses +func (x *GetBERTResultRequest_PerPortRequest) GetInterface() *types.Path { + if x != nil { + return x.Interface } return nil } // Per-port BERT results/status. type GetBERTResultResponse_PerPortResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // Path to the interface corresponding to the port. Interface *types.Path `protobuf:"bytes,1,opt,name=interface,proto3" json:"interface,omitempty"` // BERT result get status for this port. Only if the status is @@ -718,408 +869,542 @@ type GetBERTResultResponse_PerPortResponse struct { // Sequence of bit errors per min since lock was established. ErrorCountPerMinute []uint32 `protobuf:"varint,9,rep,packed,name=error_count_per_minute,json=errorCountPerMinute,proto3" json:"error_count_per_minute,omitempty"` // Total number of bit errors accumulated since lock was established. - TotalErrors uint64 `protobuf:"varint,10,opt,name=total_errors,json=totalErrors,proto3" json:"total_errors,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + TotalErrors uint64 `protobuf:"varint,10,opt,name=total_errors,json=totalErrors,proto3" json:"total_errors,omitempty"` } -func (m *GetBERTResultResponse_PerPortResponse) Reset() { *m = GetBERTResultResponse_PerPortResponse{} } -func (m *GetBERTResultResponse_PerPortResponse) String() string { return proto.CompactTextString(m) } -func (*GetBERTResultResponse_PerPortResponse) ProtoMessage() {} -func (*GetBERTResultResponse_PerPortResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c2372dae051d1d7a, []int{5, 0} +func (x *GetBERTResultResponse_PerPortResponse) Reset() { + *x = GetBERTResultResponse_PerPortResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_diag_diag_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetBERTResultResponse_PerPortResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetBERTResultResponse_PerPortResponse.Unmarshal(m, b) -} -func (m *GetBERTResultResponse_PerPortResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetBERTResultResponse_PerPortResponse.Marshal(b, m, deterministic) -} -func (m *GetBERTResultResponse_PerPortResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetBERTResultResponse_PerPortResponse.Merge(m, src) +func (x *GetBERTResultResponse_PerPortResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetBERTResultResponse_PerPortResponse) XXX_Size() int { - return xxx_messageInfo_GetBERTResultResponse_PerPortResponse.Size(m) -} -func (m *GetBERTResultResponse_PerPortResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetBERTResultResponse_PerPortResponse.DiscardUnknown(m) + +func (*GetBERTResultResponse_PerPortResponse) ProtoMessage() {} + +func (x *GetBERTResultResponse_PerPortResponse) ProtoReflect() protoreflect.Message { + mi := &file_diag_diag_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_GetBERTResultResponse_PerPortResponse proto.InternalMessageInfo +// Deprecated: Use GetBERTResultResponse_PerPortResponse.ProtoReflect.Descriptor instead. +func (*GetBERTResultResponse_PerPortResponse) Descriptor() ([]byte, []int) { + return file_diag_diag_proto_rawDescGZIP(), []int{5, 0} +} -func (m *GetBERTResultResponse_PerPortResponse) GetInterface() *types.Path { - if m != nil { - return m.Interface +func (x *GetBERTResultResponse_PerPortResponse) GetInterface() *types.Path { + if x != nil { + return x.Interface } return nil } -func (m *GetBERTResultResponse_PerPortResponse) GetStatus() BertStatus { - if m != nil { - return m.Status +func (x *GetBERTResultResponse_PerPortResponse) GetStatus() BertStatus { + if x != nil { + return x.Status } return BertStatus_BERT_STATUS_UNKNOWN } -func (m *GetBERTResultResponse_PerPortResponse) GetBertOperationId() string { - if m != nil { - return m.BertOperationId +func (x *GetBERTResultResponse_PerPortResponse) GetBertOperationId() string { + if x != nil { + return x.BertOperationId } return "" } -func (m *GetBERTResultResponse_PerPortResponse) GetPrbsPolynomial() PrbsPolynomial { - if m != nil { - return m.PrbsPolynomial +func (x *GetBERTResultResponse_PerPortResponse) GetPrbsPolynomial() PrbsPolynomial { + if x != nil { + return x.PrbsPolynomial } return PrbsPolynomial_PRBS_POLYNOMIAL_UNKNOWN } -func (m *GetBERTResultResponse_PerPortResponse) GetLastBertStartTimestamp() uint64 { - if m != nil { - return m.LastBertStartTimestamp +func (x *GetBERTResultResponse_PerPortResponse) GetLastBertStartTimestamp() uint64 { + if x != nil { + return x.LastBertStartTimestamp } return 0 } -func (m *GetBERTResultResponse_PerPortResponse) GetLastBertGetResultTimestamp() uint64 { - if m != nil { - return m.LastBertGetResultTimestamp +func (x *GetBERTResultResponse_PerPortResponse) GetLastBertGetResultTimestamp() uint64 { + if x != nil { + return x.LastBertGetResultTimestamp } return 0 } -func (m *GetBERTResultResponse_PerPortResponse) GetPeerLockEstablished() bool { - if m != nil { - return m.PeerLockEstablished +func (x *GetBERTResultResponse_PerPortResponse) GetPeerLockEstablished() bool { + if x != nil { + return x.PeerLockEstablished } return false } -func (m *GetBERTResultResponse_PerPortResponse) GetPeerLockLost() bool { - if m != nil { - return m.PeerLockLost +func (x *GetBERTResultResponse_PerPortResponse) GetPeerLockLost() bool { + if x != nil { + return x.PeerLockLost } return false } -func (m *GetBERTResultResponse_PerPortResponse) GetErrorCountPerMinute() []uint32 { - if m != nil { - return m.ErrorCountPerMinute +func (x *GetBERTResultResponse_PerPortResponse) GetErrorCountPerMinute() []uint32 { + if x != nil { + return x.ErrorCountPerMinute } return nil } -func (m *GetBERTResultResponse_PerPortResponse) GetTotalErrors() uint64 { - if m != nil { - return m.TotalErrors +func (x *GetBERTResultResponse_PerPortResponse) GetTotalErrors() uint64 { + if x != nil { + return x.TotalErrors } return 0 } -func init() { - proto.RegisterEnum("gnoi.diag.PrbsPolynomial", PrbsPolynomial_name, PrbsPolynomial_value) - proto.RegisterEnum("gnoi.diag.BertStatus", BertStatus_name, BertStatus_value) - proto.RegisterType((*StartBERTRequest)(nil), "gnoi.diag.StartBERTRequest") - proto.RegisterType((*StartBERTRequest_PerPortRequest)(nil), "gnoi.diag.StartBERTRequest.PerPortRequest") - proto.RegisterType((*StartBERTResponse)(nil), "gnoi.diag.StartBERTResponse") - proto.RegisterType((*StartBERTResponse_PerPortResponse)(nil), "gnoi.diag.StartBERTResponse.PerPortResponse") - proto.RegisterType((*StopBERTRequest)(nil), "gnoi.diag.StopBERTRequest") - proto.RegisterType((*StopBERTRequest_PerPortRequest)(nil), "gnoi.diag.StopBERTRequest.PerPortRequest") - proto.RegisterType((*StopBERTResponse)(nil), "gnoi.diag.StopBERTResponse") - proto.RegisterType((*StopBERTResponse_PerPortResponse)(nil), "gnoi.diag.StopBERTResponse.PerPortResponse") - proto.RegisterType((*GetBERTResultRequest)(nil), "gnoi.diag.GetBERTResultRequest") - proto.RegisterType((*GetBERTResultRequest_PerPortRequest)(nil), "gnoi.diag.GetBERTResultRequest.PerPortRequest") - proto.RegisterType((*GetBERTResultResponse)(nil), "gnoi.diag.GetBERTResultResponse") - proto.RegisterType((*GetBERTResultResponse_PerPortResponse)(nil), "gnoi.diag.GetBERTResultResponse.PerPortResponse") -} - -func init() { proto.RegisterFile("diag/diag.proto", fileDescriptor_c2372dae051d1d7a) } - -var fileDescriptor_c2372dae051d1d7a = []byte{ - // 1050 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x56, 0x6f, 0x6f, 0xdb, 0x44, - 0x18, 0xaf, 0x93, 0xb4, 0x6b, 0xae, 0x6b, 0xe3, 0xdd, 0x68, 0x97, 0xa6, 0xb0, 0xa5, 0xd9, 0x60, - 0xa1, 0x1b, 0x69, 0x9b, 0x0a, 0xa1, 0xbd, 0x41, 0x38, 0x8d, 0xdb, 0x5a, 0xcd, 0x6c, 0xeb, 0xec, - 0x30, 0xba, 0x17, 0x9c, 0x9c, 0xf4, 0x9a, 0x5a, 0x73, 0x7c, 0xe6, 0xee, 0xf2, 0x62, 0x9f, 0x01, - 0xf1, 0x02, 0xf1, 0x61, 0xf8, 0x1a, 0x08, 0x24, 0xbe, 0x05, 0x5f, 0x01, 0xa1, 0xb3, 0x93, 0xc6, - 0x89, 0x92, 0x96, 0x16, 0x84, 0x78, 0x63, 0xe9, 0x9e, 0xdf, 0xef, 0xf1, 0xf3, 0xef, 0x77, 0x7f, - 0x40, 0xe1, 0xdc, 0xf7, 0x7a, 0xbb, 0xf2, 0x53, 0x8b, 0x18, 0x15, 0x14, 0xe6, 0x7b, 0x21, 0xf5, - 0x6b, 0xd2, 0x50, 0x7a, 0xd9, 0xf3, 0xc5, 0xe5, 0xa0, 0x53, 0xeb, 0xd2, 0xfe, 0x2e, 0x8d, 0x48, - 0xd8, 0xa5, 0xe1, 0x85, 0xdf, 0xdb, 0x95, 0x84, 0x5d, 0xf1, 0x3e, 0x22, 0x3c, 0xf9, 0x26, 0x8e, - 0x95, 0x5f, 0x32, 0x40, 0x75, 0x84, 0xc7, 0x44, 0x43, 0x47, 0x2e, 0x22, 0xdf, 0x0d, 0x08, 0x17, - 0x70, 0x07, 0x3c, 0xe8, 0x10, 0x26, 0x30, 0x8d, 0x08, 0xf3, 0x84, 0x4f, 0x43, 0xec, 0x9f, 0x17, - 0x95, 0xb2, 0x52, 0xcd, 0xa3, 0x82, 0x04, 0xac, 0x91, 0xdd, 0x38, 0x87, 0x5f, 0x83, 0x07, 0x11, - 0x61, 0x38, 0xa2, 0x4c, 0x60, 0x96, 0xf8, 0xf3, 0x62, 0xa6, 0x9c, 0xad, 0xae, 0xd4, 0x77, 0x6a, - 0x57, 0x59, 0xd5, 0xa6, 0x63, 0xd4, 0x6c, 0xc2, 0x6c, 0xca, 0xc4, 0x70, 0x89, 0x0a, 0xd1, 0xc4, - 0x9a, 0x97, 0x7e, 0x56, 0xc0, 0xda, 0x24, 0x07, 0xd6, 0x40, 0xde, 0x0f, 0x05, 0x61, 0x17, 0x5e, - 0x97, 0xc4, 0xe9, 0xac, 0xd4, 0xd5, 0x24, 0x44, 0x52, 0x91, 0xed, 0x89, 0x4b, 0x34, 0xa6, 0xc0, - 0x06, 0x28, 0x44, 0xac, 0xc3, 0x71, 0x44, 0x83, 0xf7, 0x21, 0xed, 0xfb, 0x5e, 0x50, 0xcc, 0x94, - 0x95, 0xea, 0x5a, 0x7d, 0x33, 0x95, 0x98, 0xcd, 0x3a, 0xdc, 0xbe, 0x22, 0xa0, 0xb5, 0x68, 0x62, - 0x0d, 0xf7, 0xc1, 0xba, 0x20, 0x5c, 0xe0, 0xf3, 0xc1, 0xa8, 0x13, 0x21, 0xe6, 0xa4, 0xcb, 0x8b, - 0xd9, 0xb2, 0x52, 0x5d, 0x45, 0x50, 0x82, 0xcd, 0x21, 0x66, 0x84, 0x0e, 0xe9, 0xf2, 0xca, 0x0f, - 0x19, 0xf0, 0x20, 0x55, 0x2e, 0x8f, 0x68, 0xc8, 0xc9, 0xad, 0x7a, 0xfa, 0x16, 0xc0, 0x54, 0x4f, - 0x93, 0x1f, 0x8c, 0x9a, 0xfa, 0x72, 0x76, 0x53, 0x13, 0xd2, 0xb8, 0xab, 0xc9, 0x1a, 0xa9, 0xd1, - 0xa4, 0x81, 0x97, 0x22, 0x50, 0x98, 0x22, 0xdd, 0xba, 0xaf, 0x9f, 0x81, 0x25, 0x2e, 0x3c, 0x31, - 0xe0, 0xc3, 0x76, 0xae, 0xa7, 0x52, 0x6a, 0x10, 0x26, 0x9c, 0x18, 0x44, 0x43, 0x52, 0xe5, 0x77, - 0x05, 0x14, 0x1c, 0x41, 0xa3, 0xbb, 0x2a, 0xac, 0x3d, 0x5f, 0x61, 0x9f, 0x4e, 0x34, 0x63, 0x22, - 0xc4, 0x8d, 0x02, 0xfb, 0xea, 0x9f, 0xea, 0xab, 0xf2, 0x7d, 0xbc, 0x77, 0x46, 0x51, 0xef, 0x30, - 0xe7, 0xb3, 0x6b, 0xe6, 0xfc, 0x62, 0x66, 0x69, 0xff, 0xe3, 0x31, 0xff, 0x94, 0x01, 0x1f, 0x1c, - 0x93, 0x91, 0x1c, 0x07, 0x81, 0xb8, 0xcb, 0x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0xa0, 0x0e, 0x96, 0x47, 0xb7, 0x2e, - 0x2c, 0xcd, 0x7f, 0x65, 0x94, 0xb6, 0xae, 0xb9, 0xa6, 0x2b, 0x0b, 0xd0, 0x05, 0xab, 0x13, 0xe7, - 0x37, 0x7c, 0x72, 0xc3, 0x2d, 0x56, 0x2a, 0xdf, 0x74, 0xf4, 0x57, 0x16, 0x1a, 0xcb, 0xbf, 0x7e, - 0xb9, 0xb8, 0x57, 0xdb, 0xaf, 0xed, 0x75, 0x96, 0xe2, 0x57, 0xfc, 0xc1, 0x5f, 0x01, 0x00, 0x00, - 0xff, 0xff, 0x01, 0x94, 0x0f, 0x66, 0x11, 0x0c, 0x00, 0x00, -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// DiagClient is the client API for Diag service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type DiagClient interface { - // Starts BERT operation on a set of ports. Each BERT operation is uniquely - // identified by an ID, which is given by the caller. The caller can then - // use this ID (as well as the list of the ports) to stop the BERT operation - // and/or get the BERT results. This RPC is expected to return an error status - // in the following situations: - // - When BERT operation is supported on none of the ports specified by - // the request. - // - When BERT is already in progress on any port specified by the request. - // - In case of any low-level HW/SW internal errors. - // The RPC returns an OK status of none of these situations is encountered. - StartBERT(ctx context.Context, in *StartBERTRequest, opts ...grpc.CallOption) (*StartBERTResponse, error) - // Stops an already in-progress BERT operation on a set of ports. The caller - // uses the BERT operation ID it previously used when starting the operation - // to stop it. The RPC is expected to return an error status in the following - // situations: - // - When there is at least one BERT operation in progress on a port which - // cannot be stopped in the middle of the operation (either due to lack of - // support or internal problems). - // - When no BERT operation, which matches the given BERT operation ID, is in - // progress or completed on any of the ports specified by the request. - // - When the BERT operation ID does not match the in progress or completed - // BERT operation on any of the ports specified by the request. - // The RPC returns an OK status of none of these situations is encountered. - // Note that a BERT operation is considered completed if the device has a - // record/history of it. Also note that it is OK to receive a stop request for - // a port which has completed BERT, as long as the recorded BERT operation ID - // matches the one specified by the request. - StopBERT(ctx context.Context, in *StopBERTRequest, opts ...grpc.CallOption) (*StopBERTResponse, error) - // Gets BERT results during the BERT operation or after it completes. The - // caller uses the BERT operation ID it previously used when starting the - // operation to query it. The device is expected to keep the results for - // last N BERT operations for some amount of time, as specified by the - // product requirement. This RPC is expected to return error status in the - // following situations: - // - When no BERT operation, which matches the given BERT operation ID, is in - // progress or completed on any of the ports specified by the request. - // - When the BERT operation ID does not match the in progress or completed - // BERT operation on any of the ports specified by the request. - // The RPC returns an OK status of none of these situations is encountered. - // Note that a BERT operation is considered completed if device has a - // record of it. - GetBERTResult(ctx context.Context, in *GetBERTResultRequest, opts ...grpc.CallOption) (*GetBERTResultResponse, error) -} - -type diagClient struct { - cc *grpc.ClientConn -} - -func NewDiagClient(cc *grpc.ClientConn) DiagClient { - return &diagClient{cc} -} - -func (c *diagClient) StartBERT(ctx context.Context, in *StartBERTRequest, opts ...grpc.CallOption) (*StartBERTResponse, error) { - out := new(StartBERTResponse) - err := c.cc.Invoke(ctx, "/gnoi.diag.Diag/StartBERT", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *diagClient) StopBERT(ctx context.Context, in *StopBERTRequest, opts ...grpc.CallOption) (*StopBERTResponse, error) { - out := new(StopBERTResponse) - err := c.cc.Invoke(ctx, "/gnoi.diag.Diag/StopBERT", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *diagClient) GetBERTResult(ctx context.Context, in *GetBERTResultRequest, opts ...grpc.CallOption) (*GetBERTResultResponse, error) { - out := new(GetBERTResultResponse) - err := c.cc.Invoke(ctx, "/gnoi.diag.Diag/GetBERTResult", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// DiagServer is the server API for Diag service. -type DiagServer interface { - // Starts BERT operation on a set of ports. Each BERT operation is uniquely - // identified by an ID, which is given by the caller. The caller can then - // use this ID (as well as the list of the ports) to stop the BERT operation - // and/or get the BERT results. This RPC is expected to return an error status - // in the following situations: - // - When BERT operation is supported on none of the ports specified by - // the request. - // - When BERT is already in progress on any port specified by the request. - // - In case of any low-level HW/SW internal errors. - // The RPC returns an OK status of none of these situations is encountered. - StartBERT(context.Context, *StartBERTRequest) (*StartBERTResponse, error) - // Stops an already in-progress BERT operation on a set of ports. The caller - // uses the BERT operation ID it previously used when starting the operation - // to stop it. The RPC is expected to return an error status in the following - // situations: - // - When there is at least one BERT operation in progress on a port which - // cannot be stopped in the middle of the operation (either due to lack of - // support or internal problems). - // - When no BERT operation, which matches the given BERT operation ID, is in - // progress or completed on any of the ports specified by the request. - // - When the BERT operation ID does not match the in progress or completed - // BERT operation on any of the ports specified by the request. - // The RPC returns an OK status of none of these situations is encountered. - // Note that a BERT operation is considered completed if the device has a - // record/history of it. Also note that it is OK to receive a stop request for - // a port which has completed BERT, as long as the recorded BERT operation ID - // matches the one specified by the request. - StopBERT(context.Context, *StopBERTRequest) (*StopBERTResponse, error) - // Gets BERT results during the BERT operation or after it completes. The - // caller uses the BERT operation ID it previously used when starting the - // operation to query it. The device is expected to keep the results for - // last N BERT operations for some amount of time, as specified by the - // product requirement. This RPC is expected to return error status in the - // following situations: - // - When no BERT operation, which matches the given BERT operation ID, is in - // progress or completed on any of the ports specified by the request. - // - When the BERT operation ID does not match the in progress or completed - // BERT operation on any of the ports specified by the request. - // The RPC returns an OK status of none of these situations is encountered. - // Note that a BERT operation is considered completed if device has a - // record of it. - GetBERTResult(context.Context, *GetBERTResultRequest) (*GetBERTResultResponse, error) -} - -func RegisterDiagServer(s *grpc.Server, srv DiagServer) { - s.RegisterService(&_Diag_serviceDesc, srv) -} - -func _Diag_StartBERT_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(StartBERTRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(DiagServer).StartBERT(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.diag.Diag/StartBERT", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(DiagServer).StartBERT(ctx, req.(*StartBERTRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Diag_StopBERT_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(StopBERTRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(DiagServer).StopBERT(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.diag.Diag/StopBERT", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(DiagServer).StopBERT(ctx, req.(*StopBERTRequest)) - } - return interceptor(ctx, in, info, handler) -} +var File_diag_diag_proto protoreflect.FileDescriptor + +var file_diag_diag_proto_rawDesc = []byte{ + 0x0a, 0x0f, 0x64, 0x69, 0x61, 0x67, 0x2f, 0x64, 0x69, 0x61, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x12, 0x09, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x64, 0x69, 0x61, 0x67, 0x1a, 0x2c, 0x67, 0x69, + 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x2f, 0x67, 0x6e, 0x6f, 0x69, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x74, + 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xd0, 0x02, 0x0a, 0x10, 0x53, + 0x74, 0x61, 0x72, 0x74, 0x42, 0x45, 0x52, 0x54, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x2a, 0x0a, 0x11, 0x62, 0x65, 0x72, 0x74, 0x5f, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x62, 0x65, 0x72, 0x74, + 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x56, 0x0a, 0x11, 0x70, + 0x65, 0x72, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, + 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x64, 0x69, + 0x61, 0x67, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x42, 0x45, 0x52, 0x54, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x2e, 0x50, 0x65, 0x72, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x52, 0x0f, 0x70, 0x65, 0x72, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x73, 0x1a, 0xb7, 0x01, 0x0a, 0x0e, 0x50, 0x65, 0x72, 0x50, 0x6f, 0x72, 0x74, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2e, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, + 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x67, 0x6e, 0x6f, 0x69, + 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x50, 0x61, 0x74, 0x68, 0x52, 0x09, 0x69, 0x6e, 0x74, + 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x12, 0x42, 0x0a, 0x0f, 0x70, 0x72, 0x62, 0x73, 0x5f, 0x70, + 0x6f, 0x6c, 0x79, 0x6e, 0x6f, 0x6d, 0x69, 0x61, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, + 0x19, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x64, 0x69, 0x61, 0x67, 0x2e, 0x50, 0x72, 0x62, 0x73, + 0x50, 0x6f, 0x6c, 0x79, 0x6e, 0x6f, 0x6d, 0x69, 0x61, 0x6c, 0x52, 0x0e, 0x70, 0x72, 0x62, 0x73, + 0x50, 0x6f, 0x6c, 0x79, 0x6e, 0x6f, 0x6d, 0x69, 0x61, 0x6c, 0x12, 0x31, 0x0a, 0x15, 0x74, 0x65, + 0x73, 0x74, 0x5f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x6e, 0x5f, 0x73, + 0x65, 0x63, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x12, 0x74, 0x65, 0x73, 0x74, 0x44, + 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x53, 0x65, 0x63, 0x73, 0x22, 0x8d, 0x02, + 0x0a, 0x11, 0x53, 0x74, 0x61, 0x72, 0x74, 0x42, 0x45, 0x52, 0x54, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x2a, 0x0a, 0x11, 0x62, 0x65, 0x72, 0x74, 0x5f, 0x6f, 0x70, 0x65, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, + 0x62, 0x65, 0x72, 0x74, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, + 0x5a, 0x0a, 0x12, 0x70, 0x65, 0x72, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x72, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x67, 0x6e, + 0x6f, 0x69, 0x2e, 0x64, 0x69, 0x61, 0x67, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x42, 0x45, 0x52, + 0x54, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x50, 0x65, 0x72, 0x50, 0x6f, 0x72, + 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x10, 0x70, 0x65, 0x72, 0x50, 0x6f, + 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x73, 0x1a, 0x70, 0x0a, 0x0f, 0x50, + 0x65, 0x72, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2e, + 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x10, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x50, + 0x61, 0x74, 0x68, 0x52, 0x09, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x12, 0x2d, + 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, + 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x64, 0x69, 0x61, 0x67, 0x2e, 0x42, 0x65, 0x72, 0x74, 0x53, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0xd6, 0x01, + 0x0a, 0x0f, 0x53, 0x74, 0x6f, 0x70, 0x42, 0x45, 0x52, 0x54, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x2a, 0x0a, 0x11, 0x62, 0x65, 0x72, 0x74, 0x5f, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x62, 0x65, + 0x72, 0x74, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x55, 0x0a, + 0x11, 0x70, 0x65, 0x72, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, + 0x64, 0x69, 0x61, 0x67, 0x2e, 0x53, 0x74, 0x6f, 0x70, 0x42, 0x45, 0x52, 0x54, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x2e, 0x50, 0x65, 0x72, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x52, 0x0f, 0x70, 0x65, 0x72, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x73, 0x1a, 0x40, 0x0a, 0x0e, 0x50, 0x65, 0x72, 0x50, 0x6f, 0x72, 0x74, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2e, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, + 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x67, 0x6e, 0x6f, 0x69, + 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x50, 0x61, 0x74, 0x68, 0x52, 0x09, 0x69, 0x6e, 0x74, + 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x22, 0x8b, 0x02, 0x0a, 0x10, 0x53, 0x74, 0x6f, 0x70, 0x42, + 0x45, 0x52, 0x54, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2a, 0x0a, 0x11, 0x62, + 0x65, 0x72, 0x74, 0x5f, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x62, 0x65, 0x72, 0x74, 0x4f, 0x70, 0x65, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x59, 0x0a, 0x12, 0x70, 0x65, 0x72, 0x5f, 0x70, + 0x6f, 0x72, 0x74, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x73, 0x18, 0x02, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x64, 0x69, 0x61, 0x67, 0x2e, + 0x53, 0x74, 0x6f, 0x70, 0x42, 0x45, 0x52, 0x54, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x2e, 0x50, 0x65, 0x72, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x52, 0x10, 0x70, 0x65, 0x72, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x73, 0x1a, 0x70, 0x0a, 0x0f, 0x50, 0x65, 0x72, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2e, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, + 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, + 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x50, 0x61, 0x74, 0x68, 0x52, 0x09, 0x69, 0x6e, 0x74, 0x65, + 0x72, 0x66, 0x61, 0x63, 0x65, 0x12, 0x2d, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x64, 0x69, 0x61, + 0x67, 0x2e, 0x42, 0x65, 0x72, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, + 0x61, 0x74, 0x75, 0x73, 0x22, 0x93, 0x02, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x42, 0x45, 0x52, 0x54, + 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2a, 0x0a, + 0x11, 0x62, 0x65, 0x72, 0x74, 0x5f, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, + 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x62, 0x65, 0x72, 0x74, 0x4f, 0x70, + 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x5a, 0x0a, 0x11, 0x70, 0x65, 0x72, + 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x18, 0x02, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x64, 0x69, 0x61, 0x67, + 0x2e, 0x47, 0x65, 0x74, 0x42, 0x45, 0x52, 0x54, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x50, 0x65, 0x72, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x52, 0x0f, 0x70, 0x65, 0x72, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x73, 0x12, 0x31, 0x0a, 0x15, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x5f, + 0x66, 0x72, 0x6f, 0x6d, 0x5f, 0x61, 0x6c, 0x6c, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x08, 0x52, 0x12, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x46, 0x72, 0x6f, 0x6d, + 0x41, 0x6c, 0x6c, 0x50, 0x6f, 0x72, 0x74, 0x73, 0x1a, 0x40, 0x0a, 0x0e, 0x50, 0x65, 0x72, 0x50, + 0x6f, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2e, 0x0a, 0x09, 0x69, 0x6e, + 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, + 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x50, 0x61, 0x74, 0x68, 0x52, + 0x09, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x22, 0x8b, 0x05, 0x0a, 0x15, 0x47, + 0x65, 0x74, 0x42, 0x45, 0x52, 0x54, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5e, 0x0a, 0x12, 0x70, 0x65, 0x72, 0x5f, 0x70, 0x6f, 0x72, 0x74, + 0x5f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x30, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x64, 0x69, 0x61, 0x67, 0x2e, 0x47, 0x65, 0x74, + 0x42, 0x45, 0x52, 0x54, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x2e, 0x50, 0x65, 0x72, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x52, 0x10, 0x70, 0x65, 0x72, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x73, 0x1a, 0x91, 0x04, 0x0a, 0x0f, 0x50, 0x65, 0x72, 0x50, 0x6f, 0x72, 0x74, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2e, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x65, + 0x72, 0x66, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x67, 0x6e, + 0x6f, 0x69, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x50, 0x61, 0x74, 0x68, 0x52, 0x09, 0x69, + 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x12, 0x2d, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, + 0x64, 0x69, 0x61, 0x67, 0x2e, 0x42, 0x65, 0x72, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, + 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x2a, 0x0a, 0x11, 0x62, 0x65, 0x72, 0x74, 0x5f, + 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0f, 0x62, 0x65, 0x72, 0x74, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x49, 0x64, 0x12, 0x42, 0x0a, 0x0f, 0x70, 0x72, 0x62, 0x73, 0x5f, 0x70, 0x6f, 0x6c, 0x79, + 0x6e, 0x6f, 0x6d, 0x69, 0x61, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x67, + 0x6e, 0x6f, 0x69, 0x2e, 0x64, 0x69, 0x61, 0x67, 0x2e, 0x50, 0x72, 0x62, 0x73, 0x50, 0x6f, 0x6c, + 0x79, 0x6e, 0x6f, 0x6d, 0x69, 0x61, 0x6c, 0x52, 0x0e, 0x70, 0x72, 0x62, 0x73, 0x50, 0x6f, 0x6c, + 0x79, 0x6e, 0x6f, 0x6d, 0x69, 0x61, 0x6c, 0x12, 0x39, 0x0a, 0x19, 0x6c, 0x61, 0x73, 0x74, 0x5f, + 0x62, 0x65, 0x72, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x73, + 0x74, 0x61, 0x6d, 0x70, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x16, 0x6c, 0x61, 0x73, 0x74, + 0x42, 0x65, 0x72, 0x74, 0x53, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, + 0x6d, 0x70, 0x12, 0x42, 0x0a, 0x1e, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x62, 0x65, 0x72, 0x74, 0x5f, + 0x67, 0x65, 0x74, 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x73, + 0x74, 0x61, 0x6d, 0x70, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x1a, 0x6c, 0x61, 0x73, 0x74, + 0x42, 0x65, 0x72, 0x74, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x54, 0x69, 0x6d, + 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x32, 0x0a, 0x15, 0x70, 0x65, 0x65, 0x72, 0x5f, 0x6c, + 0x6f, 0x63, 0x6b, 0x5f, 0x65, 0x73, 0x74, 0x61, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x64, 0x18, + 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x13, 0x70, 0x65, 0x65, 0x72, 0x4c, 0x6f, 0x63, 0x6b, 0x45, + 0x73, 0x74, 0x61, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x64, 0x12, 0x24, 0x0a, 0x0e, 0x70, 0x65, + 0x65, 0x72, 0x5f, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x6c, 0x6f, 0x73, 0x74, 0x18, 0x08, 0x20, 0x01, + 0x28, 0x08, 0x52, 0x0c, 0x70, 0x65, 0x65, 0x72, 0x4c, 0x6f, 0x63, 0x6b, 0x4c, 0x6f, 0x73, 0x74, + 0x12, 0x33, 0x0a, 0x16, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, + 0x70, 0x65, 0x72, 0x5f, 0x6d, 0x69, 0x6e, 0x75, 0x74, 0x65, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0d, + 0x52, 0x13, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x50, 0x65, 0x72, 0x4d, + 0x69, 0x6e, 0x75, 0x74, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x65, + 0x72, 0x72, 0x6f, 0x72, 0x73, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x74, 0x6f, 0x74, + 0x61, 0x6c, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x2a, 0xd3, 0x01, 0x0a, 0x0e, 0x50, 0x72, 0x62, + 0x73, 0x50, 0x6f, 0x6c, 0x79, 0x6e, 0x6f, 0x6d, 0x69, 0x61, 0x6c, 0x12, 0x1b, 0x0a, 0x17, 0x50, + 0x52, 0x42, 0x53, 0x5f, 0x50, 0x4f, 0x4c, 0x59, 0x4e, 0x4f, 0x4d, 0x49, 0x41, 0x4c, 0x5f, 0x55, + 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x19, 0x0a, 0x15, 0x50, 0x52, 0x42, 0x53, + 0x5f, 0x50, 0x4f, 0x4c, 0x59, 0x4e, 0x4f, 0x4d, 0x49, 0x41, 0x4c, 0x5f, 0x50, 0x52, 0x42, 0x53, + 0x37, 0x10, 0x01, 0x12, 0x19, 0x0a, 0x15, 0x50, 0x52, 0x42, 0x53, 0x5f, 0x50, 0x4f, 0x4c, 0x59, + 0x4e, 0x4f, 0x4d, 0x49, 0x41, 0x4c, 0x5f, 0x50, 0x52, 0x42, 0x53, 0x39, 0x10, 0x02, 0x12, 0x1a, + 0x0a, 0x16, 0x50, 0x52, 0x42, 0x53, 0x5f, 0x50, 0x4f, 0x4c, 0x59, 0x4e, 0x4f, 0x4d, 0x49, 0x41, + 0x4c, 0x5f, 0x50, 0x52, 0x42, 0x53, 0x31, 0x35, 0x10, 0x03, 0x12, 0x1a, 0x0a, 0x16, 0x50, 0x52, + 0x42, 0x53, 0x5f, 0x50, 0x4f, 0x4c, 0x59, 0x4e, 0x4f, 0x4d, 0x49, 0x41, 0x4c, 0x5f, 0x50, 0x52, + 0x42, 0x53, 0x32, 0x30, 0x10, 0x04, 0x12, 0x1a, 0x0a, 0x16, 0x50, 0x52, 0x42, 0x53, 0x5f, 0x50, + 0x4f, 0x4c, 0x59, 0x4e, 0x4f, 0x4d, 0x49, 0x41, 0x4c, 0x5f, 0x50, 0x52, 0x42, 0x53, 0x32, 0x33, + 0x10, 0x05, 0x12, 0x1a, 0x0a, 0x16, 0x50, 0x52, 0x42, 0x53, 0x5f, 0x50, 0x4f, 0x4c, 0x59, 0x4e, + 0x4f, 0x4d, 0x49, 0x41, 0x4c, 0x5f, 0x50, 0x52, 0x42, 0x53, 0x33, 0x31, 0x10, 0x06, 0x2a, 0xfe, + 0x03, 0x0a, 0x0a, 0x42, 0x65, 0x72, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x17, 0x0a, + 0x13, 0x42, 0x45, 0x52, 0x54, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x4b, + 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x12, 0x0a, 0x0e, 0x42, 0x45, 0x52, 0x54, 0x5f, 0x53, + 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x4f, 0x4b, 0x10, 0x01, 0x12, 0x21, 0x0a, 0x1d, 0x42, 0x45, + 0x52, 0x54, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x4e, 0x4f, 0x4e, 0x5f, 0x45, 0x58, + 0x49, 0x53, 0x54, 0x45, 0x4e, 0x54, 0x5f, 0x50, 0x4f, 0x52, 0x54, 0x10, 0x02, 0x12, 0x25, 0x0a, + 0x21, 0x42, 0x45, 0x52, 0x54, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x48, 0x41, 0x52, + 0x44, 0x57, 0x41, 0x52, 0x45, 0x5f, 0x41, 0x43, 0x43, 0x45, 0x53, 0x53, 0x5f, 0x45, 0x52, 0x52, + 0x4f, 0x52, 0x10, 0x03, 0x12, 0x2b, 0x0a, 0x27, 0x42, 0x45, 0x52, 0x54, 0x5f, 0x53, 0x54, 0x41, + 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x53, 0x55, 0x50, 0x50, 0x4f, 0x52, 0x54, 0x45, 0x44, 0x5f, + 0x50, 0x52, 0x42, 0x53, 0x5f, 0x50, 0x4f, 0x4c, 0x59, 0x4e, 0x4f, 0x4d, 0x49, 0x41, 0x4c, 0x10, + 0x04, 0x12, 0x24, 0x0a, 0x20, 0x42, 0x45, 0x52, 0x54, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, + 0x5f, 0x50, 0x4f, 0x52, 0x54, 0x5f, 0x41, 0x4c, 0x52, 0x45, 0x41, 0x44, 0x59, 0x5f, 0x49, 0x4e, + 0x5f, 0x42, 0x45, 0x52, 0x54, 0x10, 0x05, 0x12, 0x25, 0x0a, 0x21, 0x42, 0x45, 0x52, 0x54, 0x5f, + 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x50, 0x4f, 0x52, 0x54, 0x5f, 0x4e, 0x4f, 0x54, 0x5f, + 0x52, 0x55, 0x4e, 0x4e, 0x49, 0x4e, 0x47, 0x5f, 0x42, 0x45, 0x52, 0x54, 0x10, 0x06, 0x12, 0x27, + 0x0a, 0x23, 0x42, 0x45, 0x52, 0x54, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x54, 0x45, + 0x53, 0x54, 0x5f, 0x44, 0x55, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x4f, 0x4f, 0x5f, + 0x53, 0x48, 0x4f, 0x52, 0x54, 0x10, 0x07, 0x12, 0x26, 0x0a, 0x22, 0x42, 0x45, 0x52, 0x54, 0x5f, + 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x54, 0x45, 0x53, 0x54, 0x5f, 0x44, 0x55, 0x52, 0x41, + 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x4f, 0x4f, 0x5f, 0x4c, 0x4f, 0x4e, 0x47, 0x10, 0x08, 0x12, + 0x26, 0x0a, 0x22, 0x42, 0x45, 0x52, 0x54, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x4f, + 0x50, 0x45, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x49, 0x44, 0x5f, 0x4e, 0x4f, 0x54, 0x5f, + 0x46, 0x4f, 0x55, 0x4e, 0x44, 0x10, 0x09, 0x12, 0x23, 0x0a, 0x1f, 0x42, 0x45, 0x52, 0x54, 0x5f, + 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x4f, 0x50, 0x45, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, + 0x5f, 0x49, 0x44, 0x5f, 0x49, 0x4e, 0x5f, 0x55, 0x53, 0x45, 0x10, 0x0a, 0x12, 0x21, 0x0a, 0x1d, + 0x42, 0x45, 0x52, 0x54, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x50, 0x45, 0x45, 0x52, + 0x5f, 0x4c, 0x4f, 0x43, 0x4b, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x55, 0x52, 0x45, 0x10, 0x0b, 0x12, + 0x1e, 0x0a, 0x1a, 0x42, 0x45, 0x52, 0x54, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x50, + 0x45, 0x45, 0x52, 0x5f, 0x4c, 0x4f, 0x43, 0x4b, 0x5f, 0x4c, 0x4f, 0x53, 0x54, 0x10, 0x0c, 0x12, + 0x1e, 0x0a, 0x1a, 0x42, 0x45, 0x52, 0x54, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x49, + 0x4e, 0x54, 0x45, 0x52, 0x4e, 0x41, 0x4c, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x0d, 0x32, + 0xed, 0x01, 0x0a, 0x04, 0x44, 0x69, 0x61, 0x67, 0x12, 0x48, 0x0a, 0x09, 0x53, 0x74, 0x61, 0x72, + 0x74, 0x42, 0x45, 0x52, 0x54, 0x12, 0x1b, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x64, 0x69, 0x61, + 0x67, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x42, 0x45, 0x52, 0x54, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x64, 0x69, 0x61, 0x67, 0x2e, 0x53, + 0x74, 0x61, 0x72, 0x74, 0x42, 0x45, 0x52, 0x54, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x00, 0x12, 0x45, 0x0a, 0x08, 0x53, 0x74, 0x6f, 0x70, 0x42, 0x45, 0x52, 0x54, 0x12, 0x1a, + 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x64, 0x69, 0x61, 0x67, 0x2e, 0x53, 0x74, 0x6f, 0x70, 0x42, + 0x45, 0x52, 0x54, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x67, 0x6e, 0x6f, + 0x69, 0x2e, 0x64, 0x69, 0x61, 0x67, 0x2e, 0x53, 0x74, 0x6f, 0x70, 0x42, 0x45, 0x52, 0x54, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x54, 0x0a, 0x0d, 0x47, 0x65, 0x74, + 0x42, 0x45, 0x52, 0x54, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x1f, 0x2e, 0x67, 0x6e, 0x6f, + 0x69, 0x2e, 0x64, 0x69, 0x61, 0x67, 0x2e, 0x47, 0x65, 0x74, 0x42, 0x45, 0x52, 0x54, 0x52, 0x65, + 0x73, 0x75, 0x6c, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x67, 0x6e, + 0x6f, 0x69, 0x2e, 0x64, 0x69, 0x61, 0x67, 0x2e, 0x47, 0x65, 0x74, 0x42, 0x45, 0x52, 0x54, 0x52, + 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, + 0x29, 0x5a, 0x1f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, + 0x65, 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x67, 0x6e, 0x6f, 0x69, 0x2f, 0x64, 0x69, + 0x61, 0x67, 0xd2, 0x3e, 0x05, 0x30, 0x2e, 0x31, 0x2e, 0x30, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x33, +} + +var ( + file_diag_diag_proto_rawDescOnce sync.Once + file_diag_diag_proto_rawDescData = file_diag_diag_proto_rawDesc +) -func _Diag_GetBERTResult_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetBERTResultRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(DiagServer).GetBERTResult(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.diag.Diag/GetBERTResult", +func file_diag_diag_proto_rawDescGZIP() []byte { + file_diag_diag_proto_rawDescOnce.Do(func() { + file_diag_diag_proto_rawDescData = protoimpl.X.CompressGZIP(file_diag_diag_proto_rawDescData) + }) + return file_diag_diag_proto_rawDescData +} + +var file_diag_diag_proto_enumTypes = make([]protoimpl.EnumInfo, 2) +var file_diag_diag_proto_msgTypes = make([]protoimpl.MessageInfo, 12) +var file_diag_diag_proto_goTypes = []interface{}{ + (PrbsPolynomial)(0), // 0: gnoi.diag.PrbsPolynomial + (BertStatus)(0), // 1: gnoi.diag.BertStatus + (*StartBERTRequest)(nil), // 2: gnoi.diag.StartBERTRequest + (*StartBERTResponse)(nil), // 3: gnoi.diag.StartBERTResponse + (*StopBERTRequest)(nil), // 4: gnoi.diag.StopBERTRequest + (*StopBERTResponse)(nil), // 5: gnoi.diag.StopBERTResponse + (*GetBERTResultRequest)(nil), // 6: gnoi.diag.GetBERTResultRequest + (*GetBERTResultResponse)(nil), // 7: gnoi.diag.GetBERTResultResponse + (*StartBERTRequest_PerPortRequest)(nil), // 8: gnoi.diag.StartBERTRequest.PerPortRequest + (*StartBERTResponse_PerPortResponse)(nil), // 9: gnoi.diag.StartBERTResponse.PerPortResponse + (*StopBERTRequest_PerPortRequest)(nil), // 10: gnoi.diag.StopBERTRequest.PerPortRequest + (*StopBERTResponse_PerPortResponse)(nil), // 11: gnoi.diag.StopBERTResponse.PerPortResponse + (*GetBERTResultRequest_PerPortRequest)(nil), // 12: gnoi.diag.GetBERTResultRequest.PerPortRequest + (*GetBERTResultResponse_PerPortResponse)(nil), // 13: gnoi.diag.GetBERTResultResponse.PerPortResponse + (*types.Path)(nil), // 14: gnoi.types.Path +} +var file_diag_diag_proto_depIdxs = []int32{ + 8, // 0: gnoi.diag.StartBERTRequest.per_port_requests:type_name -> gnoi.diag.StartBERTRequest.PerPortRequest + 9, // 1: gnoi.diag.StartBERTResponse.per_port_responses:type_name -> gnoi.diag.StartBERTResponse.PerPortResponse + 10, // 2: gnoi.diag.StopBERTRequest.per_port_requests:type_name -> gnoi.diag.StopBERTRequest.PerPortRequest + 11, // 3: gnoi.diag.StopBERTResponse.per_port_responses:type_name -> gnoi.diag.StopBERTResponse.PerPortResponse + 12, // 4: gnoi.diag.GetBERTResultRequest.per_port_requests:type_name -> gnoi.diag.GetBERTResultRequest.PerPortRequest + 13, // 5: gnoi.diag.GetBERTResultResponse.per_port_responses:type_name -> gnoi.diag.GetBERTResultResponse.PerPortResponse + 14, // 6: gnoi.diag.StartBERTRequest.PerPortRequest.interface:type_name -> gnoi.types.Path + 0, // 7: gnoi.diag.StartBERTRequest.PerPortRequest.prbs_polynomial:type_name -> gnoi.diag.PrbsPolynomial + 14, // 8: gnoi.diag.StartBERTResponse.PerPortResponse.interface:type_name -> gnoi.types.Path + 1, // 9: gnoi.diag.StartBERTResponse.PerPortResponse.status:type_name -> gnoi.diag.BertStatus + 14, // 10: gnoi.diag.StopBERTRequest.PerPortRequest.interface:type_name -> gnoi.types.Path + 14, // 11: gnoi.diag.StopBERTResponse.PerPortResponse.interface:type_name -> gnoi.types.Path + 1, // 12: gnoi.diag.StopBERTResponse.PerPortResponse.status:type_name -> gnoi.diag.BertStatus + 14, // 13: gnoi.diag.GetBERTResultRequest.PerPortRequest.interface:type_name -> gnoi.types.Path + 14, // 14: gnoi.diag.GetBERTResultResponse.PerPortResponse.interface:type_name -> gnoi.types.Path + 1, // 15: gnoi.diag.GetBERTResultResponse.PerPortResponse.status:type_name -> gnoi.diag.BertStatus + 0, // 16: gnoi.diag.GetBERTResultResponse.PerPortResponse.prbs_polynomial:type_name -> gnoi.diag.PrbsPolynomial + 2, // 17: gnoi.diag.Diag.StartBERT:input_type -> gnoi.diag.StartBERTRequest + 4, // 18: gnoi.diag.Diag.StopBERT:input_type -> gnoi.diag.StopBERTRequest + 6, // 19: gnoi.diag.Diag.GetBERTResult:input_type -> gnoi.diag.GetBERTResultRequest + 3, // 20: gnoi.diag.Diag.StartBERT:output_type -> gnoi.diag.StartBERTResponse + 5, // 21: gnoi.diag.Diag.StopBERT:output_type -> gnoi.diag.StopBERTResponse + 7, // 22: gnoi.diag.Diag.GetBERTResult:output_type -> gnoi.diag.GetBERTResultResponse + 20, // [20:23] is the sub-list for method output_type + 17, // [17:20] is the sub-list for method input_type + 17, // [17:17] is the sub-list for extension type_name + 17, // [17:17] is the sub-list for extension extendee + 0, // [0:17] is the sub-list for field type_name +} + +func init() { file_diag_diag_proto_init() } +func file_diag_diag_proto_init() { + if File_diag_diag_proto != nil { + return } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(DiagServer).GetBERTResult(ctx, req.(*GetBERTResultRequest)) + if !protoimpl.UnsafeEnabled { + file_diag_diag_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StartBERTRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_diag_diag_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StartBERTResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_diag_diag_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StopBERTRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_diag_diag_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StopBERTResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_diag_diag_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetBERTResultRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_diag_diag_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetBERTResultResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_diag_diag_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StartBERTRequest_PerPortRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_diag_diag_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StartBERTResponse_PerPortResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_diag_diag_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StopBERTRequest_PerPortRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_diag_diag_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StopBERTResponse_PerPortResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_diag_diag_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetBERTResultRequest_PerPortRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_diag_diag_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetBERTResultResponse_PerPortResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } } - return interceptor(ctx, in, info, handler) -} - -var _Diag_serviceDesc = grpc.ServiceDesc{ - ServiceName: "gnoi.diag.Diag", - HandlerType: (*DiagServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "StartBERT", - Handler: _Diag_StartBERT_Handler, - }, - { - MethodName: "StopBERT", - Handler: _Diag_StopBERT_Handler, - }, - { - MethodName: "GetBERTResult", - Handler: _Diag_GetBERTResult_Handler, + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_diag_diag_proto_rawDesc, + NumEnums: 2, + NumMessages: 12, + NumExtensions: 0, + NumServices: 1, }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "diag/diag.proto", + GoTypes: file_diag_diag_proto_goTypes, + DependencyIndexes: file_diag_diag_proto_depIdxs, + EnumInfos: file_diag_diag_proto_enumTypes, + MessageInfos: file_diag_diag_proto_msgTypes, + }.Build() + File_diag_diag_proto = out.File + file_diag_diag_proto_rawDesc = nil + file_diag_diag_proto_goTypes = nil + file_diag_diag_proto_depIdxs = nil } diff --git a/diag/diag.proto b/diag/diag.proto index 84592d6a..5ca592fb 100644 --- a/diag/diag.proto +++ b/diag/diag.proto @@ -22,6 +22,8 @@ package gnoi.diag; import "github.com/openconfig/gnoi/types/types.proto"; +option go_package = "github.com/openconfig/gnoi/diag"; + option (types.gnoi_version) = "0.1.0"; // The Diag service exports to main set of RPCs: diff --git a/diag/diag_grpc.pb.go b/diag/diag_grpc.pb.go new file mode 100644 index 00000000..50bffe38 --- /dev/null +++ b/diag/diag_grpc.pb.go @@ -0,0 +1,251 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. + +package diag + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.32.0 or later. +const _ = grpc.SupportPackageIsVersion7 + +// DiagClient is the client API for Diag service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type DiagClient interface { + // Starts BERT operation on a set of ports. Each BERT operation is uniquely + // identified by an ID, which is given by the caller. The caller can then + // use this ID (as well as the list of the ports) to stop the BERT operation + // and/or get the BERT results. This RPC is expected to return an error status + // in the following situations: + // - When BERT operation is supported on none of the ports specified by + // the request. + // - When BERT is already in progress on any port specified by the request. + // - In case of any low-level HW/SW internal errors. + // The RPC returns an OK status of none of these situations is encountered. + StartBERT(ctx context.Context, in *StartBERTRequest, opts ...grpc.CallOption) (*StartBERTResponse, error) + // Stops an already in-progress BERT operation on a set of ports. The caller + // uses the BERT operation ID it previously used when starting the operation + // to stop it. The RPC is expected to return an error status in the following + // situations: + // - When there is at least one BERT operation in progress on a port which + // cannot be stopped in the middle of the operation (either due to lack of + // support or internal problems). + // - When no BERT operation, which matches the given BERT operation ID, is in + // progress or completed on any of the ports specified by the request. + // - When the BERT operation ID does not match the in progress or completed + // BERT operation on any of the ports specified by the request. + // The RPC returns an OK status of none of these situations is encountered. + // Note that a BERT operation is considered completed if the device has a + // record/history of it. Also note that it is OK to receive a stop request for + // a port which has completed BERT, as long as the recorded BERT operation ID + // matches the one specified by the request. + StopBERT(ctx context.Context, in *StopBERTRequest, opts ...grpc.CallOption) (*StopBERTResponse, error) + // Gets BERT results during the BERT operation or after it completes. The + // caller uses the BERT operation ID it previously used when starting the + // operation to query it. The device is expected to keep the results for + // last N BERT operations for some amount of time, as specified by the + // product requirement. This RPC is expected to return error status in the + // following situations: + // - When no BERT operation, which matches the given BERT operation ID, is in + // progress or completed on any of the ports specified by the request. + // - When the BERT operation ID does not match the in progress or completed + // BERT operation on any of the ports specified by the request. + // The RPC returns an OK status of none of these situations is encountered. + // Note that a BERT operation is considered completed if device has a + // record of it. + GetBERTResult(ctx context.Context, in *GetBERTResultRequest, opts ...grpc.CallOption) (*GetBERTResultResponse, error) +} + +type diagClient struct { + cc grpc.ClientConnInterface +} + +func NewDiagClient(cc grpc.ClientConnInterface) DiagClient { + return &diagClient{cc} +} + +func (c *diagClient) StartBERT(ctx context.Context, in *StartBERTRequest, opts ...grpc.CallOption) (*StartBERTResponse, error) { + out := new(StartBERTResponse) + err := c.cc.Invoke(ctx, "/gnoi.diag.Diag/StartBERT", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *diagClient) StopBERT(ctx context.Context, in *StopBERTRequest, opts ...grpc.CallOption) (*StopBERTResponse, error) { + out := new(StopBERTResponse) + err := c.cc.Invoke(ctx, "/gnoi.diag.Diag/StopBERT", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *diagClient) GetBERTResult(ctx context.Context, in *GetBERTResultRequest, opts ...grpc.CallOption) (*GetBERTResultResponse, error) { + out := new(GetBERTResultResponse) + err := c.cc.Invoke(ctx, "/gnoi.diag.Diag/GetBERTResult", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// DiagServer is the server API for Diag service. +// All implementations must embed UnimplementedDiagServer +// for forward compatibility +type DiagServer interface { + // Starts BERT operation on a set of ports. Each BERT operation is uniquely + // identified by an ID, which is given by the caller. The caller can then + // use this ID (as well as the list of the ports) to stop the BERT operation + // and/or get the BERT results. This RPC is expected to return an error status + // in the following situations: + // - When BERT operation is supported on none of the ports specified by + // the request. + // - When BERT is already in progress on any port specified by the request. + // - In case of any low-level HW/SW internal errors. + // The RPC returns an OK status of none of these situations is encountered. + StartBERT(context.Context, *StartBERTRequest) (*StartBERTResponse, error) + // Stops an already in-progress BERT operation on a set of ports. The caller + // uses the BERT operation ID it previously used when starting the operation + // to stop it. The RPC is expected to return an error status in the following + // situations: + // - When there is at least one BERT operation in progress on a port which + // cannot be stopped in the middle of the operation (either due to lack of + // support or internal problems). + // - When no BERT operation, which matches the given BERT operation ID, is in + // progress or completed on any of the ports specified by the request. + // - When the BERT operation ID does not match the in progress or completed + // BERT operation on any of the ports specified by the request. + // The RPC returns an OK status of none of these situations is encountered. + // Note that a BERT operation is considered completed if the device has a + // record/history of it. Also note that it is OK to receive a stop request for + // a port which has completed BERT, as long as the recorded BERT operation ID + // matches the one specified by the request. + StopBERT(context.Context, *StopBERTRequest) (*StopBERTResponse, error) + // Gets BERT results during the BERT operation or after it completes. The + // caller uses the BERT operation ID it previously used when starting the + // operation to query it. The device is expected to keep the results for + // last N BERT operations for some amount of time, as specified by the + // product requirement. This RPC is expected to return error status in the + // following situations: + // - When no BERT operation, which matches the given BERT operation ID, is in + // progress or completed on any of the ports specified by the request. + // - When the BERT operation ID does not match the in progress or completed + // BERT operation on any of the ports specified by the request. + // The RPC returns an OK status of none of these situations is encountered. + // Note that a BERT operation is considered completed if device has a + // record of it. + GetBERTResult(context.Context, *GetBERTResultRequest) (*GetBERTResultResponse, error) + mustEmbedUnimplementedDiagServer() +} + +// UnimplementedDiagServer must be embedded to have forward compatible implementations. +type UnimplementedDiagServer struct { +} + +func (UnimplementedDiagServer) StartBERT(context.Context, *StartBERTRequest) (*StartBERTResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method StartBERT not implemented") +} +func (UnimplementedDiagServer) StopBERT(context.Context, *StopBERTRequest) (*StopBERTResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method StopBERT not implemented") +} +func (UnimplementedDiagServer) GetBERTResult(context.Context, *GetBERTResultRequest) (*GetBERTResultResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetBERTResult not implemented") +} +func (UnimplementedDiagServer) mustEmbedUnimplementedDiagServer() {} + +// UnsafeDiagServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to DiagServer will +// result in compilation errors. +type UnsafeDiagServer interface { + mustEmbedUnimplementedDiagServer() +} + +func RegisterDiagServer(s grpc.ServiceRegistrar, srv DiagServer) { + s.RegisterService(&Diag_ServiceDesc, srv) +} + +func _Diag_StartBERT_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(StartBERTRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DiagServer).StartBERT(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gnoi.diag.Diag/StartBERT", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DiagServer).StartBERT(ctx, req.(*StartBERTRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Diag_StopBERT_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(StopBERTRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DiagServer).StopBERT(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gnoi.diag.Diag/StopBERT", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DiagServer).StopBERT(ctx, req.(*StopBERTRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Diag_GetBERTResult_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetBERTResultRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DiagServer).GetBERTResult(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gnoi.diag.Diag/GetBERTResult", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DiagServer).GetBERTResult(ctx, req.(*GetBERTResultRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// Diag_ServiceDesc is the grpc.ServiceDesc for Diag service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var Diag_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "gnoi.diag.Diag", + HandlerType: (*DiagServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "StartBERT", + Handler: _Diag_StartBERT_Handler, + }, + { + MethodName: "StopBERT", + Handler: _Diag_StopBERT_Handler, + }, + { + MethodName: "GetBERTResult", + Handler: _Diag_GetBERTResult_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "diag/diag.proto", +} diff --git a/factory_reset/reset.proto b/factory_reset/reset.proto index 19feff67..39e98f87 100644 --- a/factory_reset/reset.proto +++ b/factory_reset/reset.proto @@ -5,6 +5,8 @@ package gnoi.factory_reset; import "github.com/openconfig/gnoi/types/types.proto"; +option go_package = "github.com/openconfig/gnoi/factory_reset"; + option (types.gnoi_version) = "0.1.0"; // The FactoryReset service exported by Targets. diff --git a/file/file.pb.go b/file/file.pb.go index c38247cf..41e47462 100644 --- a/file/file.pb.go +++ b/file/file.pb.go @@ -1,28 +1,42 @@ +// +// Copyright 2017 Google Inc. All Rights Reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.26.0 +// protoc v3.15.7 // source: file/file.proto -package gnoi_file +package file import ( - fmt "fmt" - proto "github.com/golang/protobuf/proto" common "github.com/openconfig/gnoi/common" types "github.com/openconfig/gnoi/types" - context "golang.org/x/net/context" - grpc "google.golang.org/grpc" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// 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 +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) // A PutRequest is used to send data to be written on a file on the target. // @@ -38,63 +52,49 @@ const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package // // The final message of the RPC contains the hash of the file contents. type PutRequest struct { - // Types that are valid to be assigned to Request: + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Types that are assignable to Request: // *PutRequest_Open // *PutRequest_Contents // *PutRequest_Hash - Request isPutRequest_Request `protobuf_oneof:"request"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Request isPutRequest_Request `protobuf_oneof:"request"` } -func (m *PutRequest) Reset() { *m = PutRequest{} } -func (m *PutRequest) String() string { return proto.CompactTextString(m) } -func (*PutRequest) ProtoMessage() {} -func (*PutRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_ad806f8986a0c3f6, []int{0} -} - -func (m *PutRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PutRequest.Unmarshal(m, b) -} -func (m *PutRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PutRequest.Marshal(b, m, deterministic) -} -func (m *PutRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_PutRequest.Merge(m, src) -} -func (m *PutRequest) XXX_Size() int { - return xxx_messageInfo_PutRequest.Size(m) -} -func (m *PutRequest) XXX_DiscardUnknown() { - xxx_messageInfo_PutRequest.DiscardUnknown(m) +func (x *PutRequest) Reset() { + *x = PutRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_file_file_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -var xxx_messageInfo_PutRequest proto.InternalMessageInfo - -type isPutRequest_Request interface { - isPutRequest_Request() +func (x *PutRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -type PutRequest_Open struct { - Open *PutRequest_Details `protobuf:"bytes,1,opt,name=open,proto3,oneof"` -} +func (*PutRequest) ProtoMessage() {} -type PutRequest_Contents struct { - Contents []byte `protobuf:"bytes,2,opt,name=contents,proto3,oneof"` +func (x *PutRequest) ProtoReflect() protoreflect.Message { + mi := &file_file_file_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -type PutRequest_Hash struct { - Hash *types.HashType `protobuf:"bytes,3,opt,name=hash,proto3,oneof"` +// Deprecated: Use PutRequest.ProtoReflect.Descriptor instead. +func (*PutRequest) Descriptor() ([]byte, []int) { + return file_file_file_proto_rawDescGZIP(), []int{0} } -func (*PutRequest_Open) isPutRequest_Request() {} - -func (*PutRequest_Contents) isPutRequest_Request() {} - -func (*PutRequest_Hash) isPutRequest_Request() {} - func (m *PutRequest) GetRequest() isPutRequest_Request { if m != nil { return m.Request @@ -102,236 +102,133 @@ func (m *PutRequest) GetRequest() isPutRequest_Request { return nil } -func (m *PutRequest) GetOpen() *PutRequest_Details { - if x, ok := m.GetRequest().(*PutRequest_Open); ok { +func (x *PutRequest) GetOpen() *PutRequest_Details { + if x, ok := x.GetRequest().(*PutRequest_Open); ok { return x.Open } return nil } -func (m *PutRequest) GetContents() []byte { - if x, ok := m.GetRequest().(*PutRequest_Contents); ok { +func (x *PutRequest) GetContents() []byte { + if x, ok := x.GetRequest().(*PutRequest_Contents); ok { return x.Contents } return nil } -func (m *PutRequest) GetHash() *types.HashType { - if x, ok := m.GetRequest().(*PutRequest_Hash); ok { +func (x *PutRequest) GetHash() *types.HashType { + if x, ok := x.GetRequest().(*PutRequest_Hash); ok { return x.Hash } return nil } -// XXX_OneofFuncs is for the internal use of the proto package. -func (*PutRequest) 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 _PutRequest_OneofMarshaler, _PutRequest_OneofUnmarshaler, _PutRequest_OneofSizer, []interface{}{ - (*PutRequest_Open)(nil), - (*PutRequest_Contents)(nil), - (*PutRequest_Hash)(nil), - } -} - -func _PutRequest_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { - m := msg.(*PutRequest) - // request - switch x := m.Request.(type) { - case *PutRequest_Open: - b.EncodeVarint(1<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.Open); err != nil { - return err - } - case *PutRequest_Contents: - b.EncodeVarint(2<<3 | proto.WireBytes) - b.EncodeRawBytes(x.Contents) - case *PutRequest_Hash: - b.EncodeVarint(3<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.Hash); err != nil { - return err - } - case nil: - default: - return fmt.Errorf("PutRequest.Request has unexpected type %T", x) - } - return nil +type isPutRequest_Request interface { + isPutRequest_Request() } -func _PutRequest_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { - m := msg.(*PutRequest) - switch tag { - case 1: // request.open - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(PutRequest_Details) - err := b.DecodeMessage(msg) - m.Request = &PutRequest_Open{msg} - return true, err - case 2: // request.contents - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - x, err := b.DecodeRawBytes(true) - m.Request = &PutRequest_Contents{x} - return true, err - case 3: // request.hash - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(types.HashType) - err := b.DecodeMessage(msg) - m.Request = &PutRequest_Hash{msg} - return true, err - default: - return false, nil - } +type PutRequest_Open struct { + Open *PutRequest_Details `protobuf:"bytes,1,opt,name=open,proto3,oneof"` } -func _PutRequest_OneofSizer(msg proto.Message) (n int) { - m := msg.(*PutRequest) - // request - switch x := m.Request.(type) { - case *PutRequest_Open: - s := proto.Size(x.Open) - n += 1 // tag and wire - n += proto.SizeVarint(uint64(s)) - n += s - case *PutRequest_Contents: - n += 1 // tag and wire - n += proto.SizeVarint(uint64(len(x.Contents))) - n += len(x.Contents) - case *PutRequest_Hash: - s := proto.Size(x.Hash) - n += 1 // tag and wire - n += proto.SizeVarint(uint64(s)) - n += s - case nil: - default: - panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) - } - return n +type PutRequest_Contents struct { + Contents []byte `protobuf:"bytes,2,opt,name=contents,proto3,oneof"` } -type PutRequest_Details struct { - RemoteFile string `protobuf:"bytes,1,opt,name=remote_file,json=remoteFile,proto3" json:"remote_file,omitempty"` - // Permissions are represented as the octal format of standard UNIX - // file permissions. - // ex. 775: user read/write/execute, group read/write/execute, - // global read/execute. - Permissions uint32 `protobuf:"varint,2,opt,name=permissions,proto3" json:"permissions,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type PutRequest_Hash struct { + Hash *types.HashType `protobuf:"bytes,3,opt,name=hash,proto3,oneof"` // hash of the file. } -func (m *PutRequest_Details) Reset() { *m = PutRequest_Details{} } -func (m *PutRequest_Details) String() string { return proto.CompactTextString(m) } -func (*PutRequest_Details) ProtoMessage() {} -func (*PutRequest_Details) Descriptor() ([]byte, []int) { - return fileDescriptor_ad806f8986a0c3f6, []int{0, 0} -} +func (*PutRequest_Open) isPutRequest_Request() {} -func (m *PutRequest_Details) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PutRequest_Details.Unmarshal(m, b) -} -func (m *PutRequest_Details) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PutRequest_Details.Marshal(b, m, deterministic) -} -func (m *PutRequest_Details) XXX_Merge(src proto.Message) { - xxx_messageInfo_PutRequest_Details.Merge(m, src) -} -func (m *PutRequest_Details) XXX_Size() int { - return xxx_messageInfo_PutRequest_Details.Size(m) -} -func (m *PutRequest_Details) XXX_DiscardUnknown() { - xxx_messageInfo_PutRequest_Details.DiscardUnknown(m) -} +func (*PutRequest_Contents) isPutRequest_Request() {} -var xxx_messageInfo_PutRequest_Details proto.InternalMessageInfo +func (*PutRequest_Hash) isPutRequest_Request() {} -func (m *PutRequest_Details) GetRemoteFile() string { - if m != nil { - return m.RemoteFile - } - return "" +type PutResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *PutRequest_Details) GetPermissions() uint32 { - if m != nil { - return m.Permissions +func (x *PutResponse) Reset() { + *x = PutResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_file_file_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return 0 } -type PutResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *PutResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *PutResponse) Reset() { *m = PutResponse{} } -func (m *PutResponse) String() string { return proto.CompactTextString(m) } -func (*PutResponse) ProtoMessage() {} -func (*PutResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_ad806f8986a0c3f6, []int{1} -} +func (*PutResponse) ProtoMessage() {} -func (m *PutResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PutResponse.Unmarshal(m, b) -} -func (m *PutResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PutResponse.Marshal(b, m, deterministic) -} -func (m *PutResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_PutResponse.Merge(m, src) -} -func (m *PutResponse) XXX_Size() int { - return xxx_messageInfo_PutResponse.Size(m) -} -func (m *PutResponse) XXX_DiscardUnknown() { - xxx_messageInfo_PutResponse.DiscardUnknown(m) +func (x *PutResponse) ProtoReflect() protoreflect.Message { + mi := &file_file_file_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_PutResponse proto.InternalMessageInfo +// Deprecated: Use PutResponse.ProtoReflect.Descriptor instead. +func (*PutResponse) Descriptor() ([]byte, []int) { + return file_file_file_proto_rawDescGZIP(), []int{1} +} // A GetRequest specifies the remote_file to be streamed back // to the caller. The remote_file must be an absolute path to an // existing file. type GetRequest struct { - RemoteFile string `protobuf:"bytes,1,opt,name=remote_file,json=remoteFile,proto3" json:"remote_file,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *GetRequest) Reset() { *m = GetRequest{} } -func (m *GetRequest) String() string { return proto.CompactTextString(m) } -func (*GetRequest) ProtoMessage() {} -func (*GetRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_ad806f8986a0c3f6, []int{2} + RemoteFile string `protobuf:"bytes,1,opt,name=remote_file,json=remoteFile,proto3" json:"remote_file,omitempty"` } -func (m *GetRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetRequest.Unmarshal(m, b) -} -func (m *GetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetRequest.Marshal(b, m, deterministic) -} -func (m *GetRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetRequest.Merge(m, src) +func (x *GetRequest) Reset() { + *x = GetRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_file_file_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetRequest) XXX_Size() int { - return xxx_messageInfo_GetRequest.Size(m) + +func (x *GetRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetRequest.DiscardUnknown(m) + +func (*GetRequest) ProtoMessage() {} + +func (x *GetRequest) ProtoReflect() protoreflect.Message { + mi := &file_file_file_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_GetRequest proto.InternalMessageInfo +// Deprecated: Use GetRequest.ProtoReflect.Descriptor instead. +func (*GetRequest) Descriptor() ([]byte, []int) { + return file_file_file_proto_rawDescGZIP(), []int{2} +} -func (m *GetRequest) GetRemoteFile() string { - if m != nil { - return m.RemoteFile +func (x *GetRequest) GetRemoteFile() string { + if x != nil { + return x.RemoteFile } return "" } @@ -339,56 +236,48 @@ func (m *GetRequest) GetRemoteFile() string { // A GetResponse either contains the next set of bytes read from the // file or, as the last message, the hash of the data. type GetResponse struct { - // Types that are valid to be assigned to Response: + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Types that are assignable to Response: // *GetResponse_Contents // *GetResponse_Hash - Response isGetResponse_Response `protobuf_oneof:"response"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Response isGetResponse_Response `protobuf_oneof:"response"` } -func (m *GetResponse) Reset() { *m = GetResponse{} } -func (m *GetResponse) String() string { return proto.CompactTextString(m) } -func (*GetResponse) ProtoMessage() {} -func (*GetResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_ad806f8986a0c3f6, []int{3} +func (x *GetResponse) Reset() { + *x = GetResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_file_file_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GetResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetResponse.Unmarshal(m, b) -} -func (m *GetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetResponse.Marshal(b, m, deterministic) +func (x *GetResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetResponse.Merge(m, src) -} -func (m *GetResponse) XXX_Size() int { - return xxx_messageInfo_GetResponse.Size(m) -} -func (m *GetResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_GetResponse proto.InternalMessageInfo -type isGetResponse_Response interface { - isGetResponse_Response() -} +func (*GetResponse) ProtoMessage() {} -type GetResponse_Contents struct { - Contents []byte `protobuf:"bytes,1,opt,name=contents,proto3,oneof"` +func (x *GetResponse) ProtoReflect() protoreflect.Message { + mi := &file_file_file_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -type GetResponse_Hash struct { - Hash *types.HashType `protobuf:"bytes,2,opt,name=hash,proto3,oneof"` +// Deprecated: Use GetResponse.ProtoReflect.Descriptor instead. +func (*GetResponse) Descriptor() ([]byte, []int) { + return file_file_file_proto_rawDescGZIP(), []int{3} } -func (*GetResponse_Contents) isGetResponse_Response() {} - -func (*GetResponse_Hash) isGetResponse_Response() {} - func (m *GetResponse) GetResponse() isGetResponse_Response { if m != nil { return m.Response @@ -396,265 +285,247 @@ func (m *GetResponse) GetResponse() isGetResponse_Response { return nil } -func (m *GetResponse) GetContents() []byte { - if x, ok := m.GetResponse().(*GetResponse_Contents); ok { +func (x *GetResponse) GetContents() []byte { + if x, ok := x.GetResponse().(*GetResponse_Contents); ok { return x.Contents } return nil } -func (m *GetResponse) GetHash() *types.HashType { - if x, ok := m.GetResponse().(*GetResponse_Hash); ok { +func (x *GetResponse) GetHash() *types.HashType { + if x, ok := x.GetResponse().(*GetResponse_Hash); ok { return x.Hash } return nil } -// XXX_OneofFuncs is for the internal use of the proto package. -func (*GetResponse) 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 _GetResponse_OneofMarshaler, _GetResponse_OneofUnmarshaler, _GetResponse_OneofSizer, []interface{}{ - (*GetResponse_Contents)(nil), - (*GetResponse_Hash)(nil), - } +type isGetResponse_Response interface { + isGetResponse_Response() } -func _GetResponse_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { - m := msg.(*GetResponse) - // response - switch x := m.Response.(type) { - case *GetResponse_Contents: - b.EncodeVarint(1<<3 | proto.WireBytes) - b.EncodeRawBytes(x.Contents) - case *GetResponse_Hash: - b.EncodeVarint(2<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.Hash); err != nil { - return err - } - case nil: - default: - return fmt.Errorf("GetResponse.Response has unexpected type %T", x) - } - return nil +type GetResponse_Contents struct { + Contents []byte `protobuf:"bytes,1,opt,name=contents,proto3,oneof"` } -func _GetResponse_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { - m := msg.(*GetResponse) - switch tag { - case 1: // response.contents - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - x, err := b.DecodeRawBytes(true) - m.Response = &GetResponse_Contents{x} - return true, err - case 2: // response.hash - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(types.HashType) - err := b.DecodeMessage(msg) - m.Response = &GetResponse_Hash{msg} - return true, err - default: - return false, nil - } +type GetResponse_Hash struct { + Hash *types.HashType `protobuf:"bytes,2,opt,name=hash,proto3,oneof"` // hash of the file. } -func _GetResponse_OneofSizer(msg proto.Message) (n int) { - m := msg.(*GetResponse) - // response - switch x := m.Response.(type) { - case *GetResponse_Contents: - n += 1 // tag and wire - n += proto.SizeVarint(uint64(len(x.Contents))) - n += len(x.Contents) - case *GetResponse_Hash: - s := proto.Size(x.Hash) - n += 1 // tag and wire - n += proto.SizeVarint(uint64(s)) - n += s - case nil: - default: - panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) - } - return n -} +func (*GetResponse_Contents) isGetResponse_Response() {} + +func (*GetResponse_Hash) isGetResponse_Response() {} // A TransferToRemoteRequest specifies the local path to transfer to and the // details on where to transfer the data from. The local_path must be an // absolute path to the file. type TransferToRemoteRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + LocalPath string `protobuf:"bytes,1,opt,name=local_path,json=localPath,proto3" json:"local_path,omitempty"` // Details to download the remote_file being requested to a remote location. - RemoteDownload *common.RemoteDownload `protobuf:"bytes,2,opt,name=remote_download,json=remoteDownload,proto3" json:"remote_download,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + RemoteDownload *common.RemoteDownload `protobuf:"bytes,2,opt,name=remote_download,json=remoteDownload,proto3" json:"remote_download,omitempty"` } -func (m *TransferToRemoteRequest) Reset() { *m = TransferToRemoteRequest{} } -func (m *TransferToRemoteRequest) String() string { return proto.CompactTextString(m) } -func (*TransferToRemoteRequest) ProtoMessage() {} -func (*TransferToRemoteRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_ad806f8986a0c3f6, []int{4} +func (x *TransferToRemoteRequest) Reset() { + *x = TransferToRemoteRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_file_file_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *TransferToRemoteRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TransferToRemoteRequest.Unmarshal(m, b) -} -func (m *TransferToRemoteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TransferToRemoteRequest.Marshal(b, m, deterministic) -} -func (m *TransferToRemoteRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_TransferToRemoteRequest.Merge(m, src) +func (x *TransferToRemoteRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *TransferToRemoteRequest) XXX_Size() int { - return xxx_messageInfo_TransferToRemoteRequest.Size(m) -} -func (m *TransferToRemoteRequest) XXX_DiscardUnknown() { - xxx_messageInfo_TransferToRemoteRequest.DiscardUnknown(m) + +func (*TransferToRemoteRequest) ProtoMessage() {} + +func (x *TransferToRemoteRequest) ProtoReflect() protoreflect.Message { + mi := &file_file_file_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_TransferToRemoteRequest proto.InternalMessageInfo +// Deprecated: Use TransferToRemoteRequest.ProtoReflect.Descriptor instead. +func (*TransferToRemoteRequest) Descriptor() ([]byte, []int) { + return file_file_file_proto_rawDescGZIP(), []int{4} +} -func (m *TransferToRemoteRequest) GetLocalPath() string { - if m != nil { - return m.LocalPath +func (x *TransferToRemoteRequest) GetLocalPath() string { + if x != nil { + return x.LocalPath } return "" } -func (m *TransferToRemoteRequest) GetRemoteDownload() *common.RemoteDownload { - if m != nil { - return m.RemoteDownload +func (x *TransferToRemoteRequest) GetRemoteDownload() *common.RemoteDownload { + if x != nil { + return x.RemoteDownload } return nil } // A TransferToRemoteResponse contains the hash of the data transferred. type TransferToRemoteResponse struct { - Hash *types.HashType `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *TransferToRemoteResponse) Reset() { *m = TransferToRemoteResponse{} } -func (m *TransferToRemoteResponse) String() string { return proto.CompactTextString(m) } -func (*TransferToRemoteResponse) ProtoMessage() {} -func (*TransferToRemoteResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_ad806f8986a0c3f6, []int{5} + Hash *types.HashType `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` // hash of the file. } -func (m *TransferToRemoteResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TransferToRemoteResponse.Unmarshal(m, b) -} -func (m *TransferToRemoteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TransferToRemoteResponse.Marshal(b, m, deterministic) -} -func (m *TransferToRemoteResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_TransferToRemoteResponse.Merge(m, src) +func (x *TransferToRemoteResponse) Reset() { + *x = TransferToRemoteResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_file_file_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *TransferToRemoteResponse) XXX_Size() int { - return xxx_messageInfo_TransferToRemoteResponse.Size(m) + +func (x *TransferToRemoteResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *TransferToRemoteResponse) XXX_DiscardUnknown() { - xxx_messageInfo_TransferToRemoteResponse.DiscardUnknown(m) + +func (*TransferToRemoteResponse) ProtoMessage() {} + +func (x *TransferToRemoteResponse) ProtoReflect() protoreflect.Message { + mi := &file_file_file_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_TransferToRemoteResponse proto.InternalMessageInfo +// Deprecated: Use TransferToRemoteResponse.ProtoReflect.Descriptor instead. +func (*TransferToRemoteResponse) Descriptor() ([]byte, []int) { + return file_file_file_proto_rawDescGZIP(), []int{5} +} -func (m *TransferToRemoteResponse) GetHash() *types.HashType { - if m != nil { - return m.Hash +func (x *TransferToRemoteResponse) GetHash() *types.HashType { + if x != nil { + return x.Hash } return nil } // StatRequest will list files at the provided path. type StatRequest struct { - Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *StatRequest) Reset() { *m = StatRequest{} } -func (m *StatRequest) String() string { return proto.CompactTextString(m) } -func (*StatRequest) ProtoMessage() {} -func (*StatRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_ad806f8986a0c3f6, []int{6} + Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` } -func (m *StatRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_StatRequest.Unmarshal(m, b) -} -func (m *StatRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_StatRequest.Marshal(b, m, deterministic) -} -func (m *StatRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_StatRequest.Merge(m, src) +func (x *StatRequest) Reset() { + *x = StatRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_file_file_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *StatRequest) XXX_Size() int { - return xxx_messageInfo_StatRequest.Size(m) + +func (x *StatRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *StatRequest) XXX_DiscardUnknown() { - xxx_messageInfo_StatRequest.DiscardUnknown(m) + +func (*StatRequest) ProtoMessage() {} + +func (x *StatRequest) ProtoReflect() protoreflect.Message { + mi := &file_file_file_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_StatRequest proto.InternalMessageInfo +// Deprecated: Use StatRequest.ProtoReflect.Descriptor instead. +func (*StatRequest) Descriptor() ([]byte, []int) { + return file_file_file_proto_rawDescGZIP(), []int{6} +} -func (m *StatRequest) GetPath() string { - if m != nil { - return m.Path +func (x *StatRequest) GetPath() string { + if x != nil { + return x.Path } return "" } // StatResponse contains list of stat info of the provided path. type StatResponse struct { - Stats []*StatInfo `protobuf:"bytes,1,rep,name=stats,proto3" json:"stats,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *StatResponse) Reset() { *m = StatResponse{} } -func (m *StatResponse) String() string { return proto.CompactTextString(m) } -func (*StatResponse) ProtoMessage() {} -func (*StatResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_ad806f8986a0c3f6, []int{7} + Stats []*StatInfo `protobuf:"bytes,1,rep,name=stats,proto3" json:"stats,omitempty"` } -func (m *StatResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_StatResponse.Unmarshal(m, b) -} -func (m *StatResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_StatResponse.Marshal(b, m, deterministic) -} -func (m *StatResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_StatResponse.Merge(m, src) +func (x *StatResponse) Reset() { + *x = StatResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_file_file_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *StatResponse) XXX_Size() int { - return xxx_messageInfo_StatResponse.Size(m) + +func (x *StatResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *StatResponse) XXX_DiscardUnknown() { - xxx_messageInfo_StatResponse.DiscardUnknown(m) + +func (*StatResponse) ProtoMessage() {} + +func (x *StatResponse) ProtoReflect() protoreflect.Message { + mi := &file_file_file_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_StatResponse proto.InternalMessageInfo +// Deprecated: Use StatResponse.ProtoReflect.Descriptor instead. +func (*StatResponse) Descriptor() ([]byte, []int) { + return file_file_file_proto_rawDescGZIP(), []int{7} +} -func (m *StatResponse) GetStats() []*StatInfo { - if m != nil { - return m.Stats +func (x *StatResponse) GetStats() []*StatInfo { + if x != nil { + return x.Stats } return nil } // StatInfo provides a file system information about a particular path. type StatInfo struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` - LastModified uint64 `protobuf:"varint,2,opt,name=last_modified,json=lastModified,proto3" json:"last_modified,omitempty"` + LastModified uint64 `protobuf:"varint,2,opt,name=last_modified,json=lastModified,proto3" json:"last_modified,omitempty"` // Nanoseconds since epoch. // Permissions are represented as the octal format of standard UNIX // file permissions. // ex. 775: user read/write/execute, group read/write/execute, @@ -663,510 +534,544 @@ type StatInfo struct { Size uint64 `protobuf:"varint,4,opt,name=size,proto3" json:"size,omitempty"` // Default file creation mask. Represented as the octal format of // standard UNIX mask. - Umask uint32 `protobuf:"varint,5,opt,name=umask,proto3" json:"umask,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Umask uint32 `protobuf:"varint,5,opt,name=umask,proto3" json:"umask,omitempty"` } -func (m *StatInfo) Reset() { *m = StatInfo{} } -func (m *StatInfo) String() string { return proto.CompactTextString(m) } -func (*StatInfo) ProtoMessage() {} -func (*StatInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_ad806f8986a0c3f6, []int{8} +func (x *StatInfo) Reset() { + *x = StatInfo{} + if protoimpl.UnsafeEnabled { + mi := &file_file_file_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *StatInfo) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_StatInfo.Unmarshal(m, b) +func (x *StatInfo) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *StatInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_StatInfo.Marshal(b, m, deterministic) -} -func (m *StatInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_StatInfo.Merge(m, src) -} -func (m *StatInfo) XXX_Size() int { - return xxx_messageInfo_StatInfo.Size(m) -} -func (m *StatInfo) XXX_DiscardUnknown() { - xxx_messageInfo_StatInfo.DiscardUnknown(m) + +func (*StatInfo) ProtoMessage() {} + +func (x *StatInfo) ProtoReflect() protoreflect.Message { + mi := &file_file_file_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_StatInfo proto.InternalMessageInfo +// Deprecated: Use StatInfo.ProtoReflect.Descriptor instead. +func (*StatInfo) Descriptor() ([]byte, []int) { + return file_file_file_proto_rawDescGZIP(), []int{8} +} -func (m *StatInfo) GetPath() string { - if m != nil { - return m.Path +func (x *StatInfo) GetPath() string { + if x != nil { + return x.Path } return "" } -func (m *StatInfo) GetLastModified() uint64 { - if m != nil { - return m.LastModified +func (x *StatInfo) GetLastModified() uint64 { + if x != nil { + return x.LastModified } return 0 } -func (m *StatInfo) GetPermissions() uint32 { - if m != nil { - return m.Permissions +func (x *StatInfo) GetPermissions() uint32 { + if x != nil { + return x.Permissions } return 0 } -func (m *StatInfo) GetSize() uint64 { - if m != nil { - return m.Size +func (x *StatInfo) GetSize() uint64 { + if x != nil { + return x.Size } return 0 } -func (m *StatInfo) GetUmask() uint32 { - if m != nil { - return m.Umask +func (x *StatInfo) GetUmask() uint32 { + if x != nil { + return x.Umask } return 0 } // A RemoveRequest specifies a file to be removed from the target. type RemoveRequest struct { - RemoteFile string `protobuf:"bytes,1,opt,name=remote_file,json=remoteFile,proto3" json:"remote_file,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RemoveRequest) Reset() { *m = RemoveRequest{} } -func (m *RemoveRequest) String() string { return proto.CompactTextString(m) } -func (*RemoveRequest) ProtoMessage() {} -func (*RemoveRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_ad806f8986a0c3f6, []int{9} -} - -func (m *RemoveRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RemoveRequest.Unmarshal(m, b) -} -func (m *RemoveRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RemoveRequest.Marshal(b, m, deterministic) -} -func (m *RemoveRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RemoveRequest.Merge(m, src) -} -func (m *RemoveRequest) XXX_Size() int { - return xxx_messageInfo_RemoveRequest.Size(m) -} -func (m *RemoveRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RemoveRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RemoveRequest proto.InternalMessageInfo - -func (m *RemoveRequest) GetRemoteFile() string { - if m != nil { - return m.RemoteFile - } - return "" -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -type RemoveResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + RemoteFile string `protobuf:"bytes,1,opt,name=remote_file,json=remoteFile,proto3" json:"remote_file,omitempty"` } -func (m *RemoveResponse) Reset() { *m = RemoveResponse{} } -func (m *RemoveResponse) String() string { return proto.CompactTextString(m) } -func (*RemoveResponse) ProtoMessage() {} -func (*RemoveResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_ad806f8986a0c3f6, []int{10} -} - -func (m *RemoveResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RemoveResponse.Unmarshal(m, b) -} -func (m *RemoveResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RemoveResponse.Marshal(b, m, deterministic) -} -func (m *RemoveResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RemoveResponse.Merge(m, src) -} -func (m *RemoveResponse) XXX_Size() int { - return xxx_messageInfo_RemoveResponse.Size(m) -} -func (m *RemoveResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RemoveResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RemoveResponse proto.InternalMessageInfo - -func init() { - proto.RegisterType((*PutRequest)(nil), "gnoi.file.PutRequest") - proto.RegisterType((*PutRequest_Details)(nil), "gnoi.file.PutRequest.Details") - proto.RegisterType((*PutResponse)(nil), "gnoi.file.PutResponse") - proto.RegisterType((*GetRequest)(nil), "gnoi.file.GetRequest") - proto.RegisterType((*GetResponse)(nil), "gnoi.file.GetResponse") - proto.RegisterType((*TransferToRemoteRequest)(nil), "gnoi.file.TransferToRemoteRequest") - proto.RegisterType((*TransferToRemoteResponse)(nil), "gnoi.file.TransferToRemoteResponse") - proto.RegisterType((*StatRequest)(nil), "gnoi.file.StatRequest") - proto.RegisterType((*StatResponse)(nil), "gnoi.file.StatResponse") - proto.RegisterType((*StatInfo)(nil), "gnoi.file.StatInfo") - proto.RegisterType((*RemoveRequest)(nil), "gnoi.file.RemoveRequest") - proto.RegisterType((*RemoveResponse)(nil), "gnoi.file.RemoveResponse") -} - -func init() { proto.RegisterFile("file/file.proto", fileDescriptor_ad806f8986a0c3f6) } - -var fileDescriptor_ad806f8986a0c3f6 = []byte{ - // 600 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x54, 0xcd, 0x6e, 0xd3, 0x4c, - 0x14, 0x8d, 0x1b, 0xa7, 0x4d, 0xae, 0x9b, 0xb6, 0x9a, 0xaf, 0x5f, 0x6b, 0x0c, 0x15, 0xc5, 0xdd, - 0x04, 0x04, 0x4e, 0x68, 0x37, 0x74, 0x03, 0x52, 0x14, 0xd1, 0x20, 0x81, 0x14, 0x99, 0x6c, 0x51, - 0x34, 0x75, 0x26, 0xb1, 0x85, 0xed, 0x31, 0x9e, 0x09, 0xa8, 0x2c, 0x78, 0x05, 0xde, 0x0d, 0x89, - 0x37, 0xe0, 0x41, 0xd0, 0xfc, 0x38, 0x71, 0x92, 0xa6, 0x65, 0xe3, 0xd8, 0x27, 0xe7, 0xde, 0x73, - 0xce, 0x9d, 0x6b, 0xc3, 0xfe, 0x24, 0x8a, 0x49, 0x5b, 0x5c, 0xbc, 0x2c, 0xa7, 0x9c, 0xa2, 0xc6, - 0x34, 0xa5, 0x91, 0x27, 0x00, 0xe7, 0xf9, 0x34, 0xe2, 0xe1, 0xec, 0xda, 0x0b, 0x68, 0xd2, 0xa6, - 0x19, 0x49, 0x03, 0x9a, 0x4e, 0xa2, 0x69, 0x5b, 0x10, 0xda, 0xfc, 0x26, 0x23, 0x4c, 0x5d, 0x55, - 0xa1, 0xe3, 0xdd, 0xc1, 0x0e, 0x68, 0x92, 0xd0, 0x54, 0xff, 0x28, 0xbe, 0xfb, 0xc7, 0x00, 0x18, - 0xcc, 0xb8, 0x4f, 0xbe, 0xcc, 0x08, 0xe3, 0xe8, 0x02, 0x4c, 0x51, 0x65, 0x1b, 0xa7, 0x46, 0xcb, - 0x3a, 0x3f, 0xf1, 0xe6, 0x36, 0xbc, 0x05, 0xc9, 0xeb, 0x11, 0x8e, 0xa3, 0x98, 0xf5, 0x2b, 0xbe, - 0x24, 0xa3, 0x47, 0x50, 0x0f, 0x68, 0xca, 0x49, 0xca, 0x99, 0xbd, 0x75, 0x6a, 0xb4, 0x76, 0xfb, - 0x15, 0x7f, 0x8e, 0xa0, 0x67, 0x60, 0x86, 0x98, 0x85, 0x76, 0x55, 0xb6, 0x3c, 0x54, 0x2d, 0x95, - 0xe5, 0x3e, 0x66, 0xe1, 0xf0, 0x26, 0x23, 0xa2, 0x93, 0xe0, 0x38, 0xef, 0x61, 0x47, 0x37, 0x47, - 0x8f,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0x0d, 0x00, 0x00, 0xff, 0xff, - 0xdf, 0xe7, 0xb5, 0x47, 0x68, 0x05, 0x00, 0x00, -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// FileClient is the client API for File service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type FileClient interface { - // Get reads and streams the contents of a file from the target. - // The file is streamed by sequential messages, each containing up to - // 64KB of data. A final message is sent prior to closing the stream - // that contains the hash of the data sent. An error is returned - // if the file does not exist or there was an error reading the file. - Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (File_GetClient, error) - // TransferToRemote transfers the contents of a file from the target to a - // specified remote location. The response contains the hash of the data - // transferred. An error is returned if the file does not exist, the file - // transfer fails, or if there was an error reading the file. This is a - // blocking call until the file transfer is complete. - TransferToRemote(ctx context.Context, in *TransferToRemoteRequest, opts ...grpc.CallOption) (*TransferToRemoteResponse, error) - // Put streams data into a file on the target. The file is sent in - // sequential messages, each message containing up to 64KB of data. A final - // message must be sent that includes the hash of the data sent. An - // error is returned if the location does not exist or there is an error - // writing the data. If no checksum is received, the target must assume the - // operation is incomplete and remove the partially transmitted file. The - // target should initially write the file to a temporary location so a failure - // does not destroy the original file. - Put(ctx context.Context, opts ...grpc.CallOption) (File_PutClient, error) - // Stat returns metadata about a file on the target. An error is returned - // if the file does not exist of there is an error in accessing the metadata. - Stat(ctx context.Context, in *StatRequest, opts ...grpc.CallOption) (*StatResponse, error) - // Remove removes the specified file from the target. An error is - // returned if the file does not exist, is a directory, or the remove - // operation encounters an error (e.g., permission denied). - Remove(ctx context.Context, in *RemoveRequest, opts ...grpc.CallOption) (*RemoveResponse, error) -} - -type fileClient struct { - cc *grpc.ClientConn -} - -func NewFileClient(cc *grpc.ClientConn) FileClient { - return &fileClient{cc} -} - -func (c *fileClient) Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (File_GetClient, error) { - stream, err := c.cc.NewStream(ctx, &_File_serviceDesc.Streams[0], "/gnoi.file.File/Get", opts...) - if err != nil { - return nil, err - } - x := &fileGetClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err +func (x *RemoveRequest) Reset() { + *x = RemoveRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_file_file_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil } -type File_GetClient interface { - Recv() (*GetResponse, error) - grpc.ClientStream +func (x *RemoveRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -type fileGetClient struct { - grpc.ClientStream -} +func (*RemoveRequest) ProtoMessage() {} -func (x *fileGetClient) Recv() (*GetResponse, error) { - m := new(GetResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err +func (x *RemoveRequest) ProtoReflect() protoreflect.Message { + mi := &file_file_file_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return m, nil + return mi.MessageOf(x) } -func (c *fileClient) TransferToRemote(ctx context.Context, in *TransferToRemoteRequest, opts ...grpc.CallOption) (*TransferToRemoteResponse, error) { - out := new(TransferToRemoteResponse) - err := c.cc.Invoke(ctx, "/gnoi.file.File/TransferToRemote", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +// Deprecated: Use RemoveRequest.ProtoReflect.Descriptor instead. +func (*RemoveRequest) Descriptor() ([]byte, []int) { + return file_file_file_proto_rawDescGZIP(), []int{9} } -func (c *fileClient) Put(ctx context.Context, opts ...grpc.CallOption) (File_PutClient, error) { - stream, err := c.cc.NewStream(ctx, &_File_serviceDesc.Streams[1], "/gnoi.file.File/Put", opts...) - if err != nil { - return nil, err +func (x *RemoveRequest) GetRemoteFile() string { + if x != nil { + return x.RemoteFile } - x := &filePutClient{stream} - return x, nil -} - -type File_PutClient interface { - Send(*PutRequest) error - CloseAndRecv() (*PutResponse, error) - grpc.ClientStream -} - -type filePutClient struct { - grpc.ClientStream + return "" } -func (x *filePutClient) Send(m *PutRequest) error { - return x.ClientStream.SendMsg(m) +type RemoveResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (x *filePutClient) CloseAndRecv() (*PutResponse, error) { - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err +func (x *RemoveResponse) Reset() { + *x = RemoveResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_file_file_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - m := new(PutResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil } -func (c *fileClient) Stat(ctx context.Context, in *StatRequest, opts ...grpc.CallOption) (*StatResponse, error) { - out := new(StatResponse) - err := c.cc.Invoke(ctx, "/gnoi.file.File/Stat", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +func (x *RemoveResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (c *fileClient) Remove(ctx context.Context, in *RemoveRequest, opts ...grpc.CallOption) (*RemoveResponse, error) { - out := new(RemoveResponse) - err := c.cc.Invoke(ctx, "/gnoi.file.File/Remove", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// FileServer is the server API for File service. -type FileServer interface { - // Get reads and streams the contents of a file from the target. - // The file is streamed by sequential messages, each containing up to - // 64KB of data. A final message is sent prior to closing the stream - // that contains the hash of the data sent. An error is returned - // if the file does not exist or there was an error reading the file. - Get(*GetRequest, File_GetServer) error - // TransferToRemote transfers the contents of a file from the target to a - // specified remote location. The response contains the hash of the data - // transferred. An error is returned if the file does not exist, the file - // transfer fails, or if there was an error reading the file. This is a - // blocking call until the file transfer is complete. - TransferToRemote(context.Context, *TransferToRemoteRequest) (*TransferToRemoteResponse, error) - // Put streams data into a file on the target. The file is sent in - // sequential messages, each message containing up to 64KB of data. A final - // message must be sent that includes the hash of the data sent. An - // error is returned if the location does not exist or there is an error - // writing the data. If no checksum is received, the target must assume the - // operation is incomplete and remove the partially transmitted file. The - // target should initially write the file to a temporary location so a failure - // does not destroy the original file. - Put(File_PutServer) error - // Stat returns metadata about a file on the target. An error is returned - // if the file does not exist of there is an error in accessing the metadata. - Stat(context.Context, *StatRequest) (*StatResponse, error) - // Remove removes the specified file from the target. An error is - // returned if the file does not exist, is a directory, or the remove - // operation encounters an error (e.g., permission denied). - Remove(context.Context, *RemoveRequest) (*RemoveResponse, error) -} - -func RegisterFileServer(s *grpc.Server, srv FileServer) { - s.RegisterService(&_File_serviceDesc, srv) -} - -func _File_Get_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(GetRequest) - if err := stream.RecvMsg(m); err != nil { - return err +func (*RemoveResponse) ProtoMessage() {} + +func (x *RemoveResponse) ProtoReflect() protoreflect.Message { + mi := &file_file_file_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return srv.(FileServer).Get(m, &fileGetServer{stream}) + return mi.MessageOf(x) } -type File_GetServer interface { - Send(*GetResponse) error - grpc.ServerStream +// Deprecated: Use RemoveResponse.ProtoReflect.Descriptor instead. +func (*RemoveResponse) Descriptor() ([]byte, []int) { + return file_file_file_proto_rawDescGZIP(), []int{10} } -type fileGetServer struct { - grpc.ServerStream -} +type PutRequest_Details struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (x *fileGetServer) Send(m *GetResponse) error { - return x.ServerStream.SendMsg(m) + RemoteFile string `protobuf:"bytes,1,opt,name=remote_file,json=remoteFile,proto3" json:"remote_file,omitempty"` + // Permissions are represented as the octal format of standard UNIX + // file permissions. + // ex. 775: user read/write/execute, group read/write/execute, + // global read/execute. + Permissions uint32 `protobuf:"varint,2,opt,name=permissions,proto3" json:"permissions,omitempty"` } -func _File_TransferToRemote_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TransferToRemoteRequest) - if err := dec(in); err != nil { - return nil, err +func (x *PutRequest_Details) Reset() { + *x = PutRequest_Details{} + if protoimpl.UnsafeEnabled { + mi := &file_file_file_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - if interceptor == nil { - return srv.(FileServer).TransferToRemote(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.file.File/TransferToRemote", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(FileServer).TransferToRemote(ctx, req.(*TransferToRemoteRequest)) - } - return interceptor(ctx, in, info, handler) } -func _File_Put_Handler(srv interface{}, stream grpc.ServerStream) error { - return srv.(FileServer).Put(&filePutServer{stream}) +func (x *PutRequest_Details) String() string { + return protoimpl.X.MessageStringOf(x) } -type File_PutServer interface { - SendAndClose(*PutResponse) error - Recv() (*PutRequest, error) - grpc.ServerStream -} +func (*PutRequest_Details) ProtoMessage() {} -type filePutServer struct { - grpc.ServerStream +func (x *PutRequest_Details) ProtoReflect() protoreflect.Message { + mi := &file_file_file_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func (x *filePutServer) SendAndClose(m *PutResponse) error { - return x.ServerStream.SendMsg(m) +// Deprecated: Use PutRequest_Details.ProtoReflect.Descriptor instead. +func (*PutRequest_Details) Descriptor() ([]byte, []int) { + return file_file_file_proto_rawDescGZIP(), []int{0, 0} } -func (x *filePutServer) Recv() (*PutRequest, error) { - m := new(PutRequest) - if err := x.ServerStream.RecvMsg(m); err != nil { - return nil, err +func (x *PutRequest_Details) GetRemoteFile() string { + if x != nil { + return x.RemoteFile } - return m, nil + return "" } -func _File_Stat_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(StatRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(FileServer).Stat(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.file.File/Stat", +func (x *PutRequest_Details) GetPermissions() uint32 { + if x != nil { + return x.Permissions } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(FileServer).Stat(ctx, req.(*StatRequest)) - } - return interceptor(ctx, in, info, handler) + return 0 } -func _File_Remove_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RemoveRequest) - if err := dec(in); err != nil { - return nil, err +var File_file_file_proto protoreflect.FileDescriptor + +var file_file_file_proto_rawDesc = []byte{ + 0x0a, 0x0f, 0x66, 0x69, 0x6c, 0x65, 0x2f, 0x66, 0x69, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x12, 0x09, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x1a, 0x2e, 0x67, 0x69, + 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x2f, 0x67, 0x6e, 0x6f, 0x69, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, + 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2c, 0x67, 0x69, + 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x2f, 0x67, 0x6e, 0x6f, 0x69, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x74, + 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xe4, 0x01, 0x0a, 0x0a, 0x50, + 0x75, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x33, 0x0a, 0x04, 0x6f, 0x70, 0x65, + 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x66, + 0x69, 0x6c, 0x65, 0x2e, 0x50, 0x75, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x44, + 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x48, 0x00, 0x52, 0x04, 0x6f, 0x70, 0x65, 0x6e, 0x12, 0x1c, + 0x0a, 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, + 0x48, 0x00, 0x52, 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x2a, 0x0a, 0x04, + 0x68, 0x61, 0x73, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6e, 0x6f, + 0x69, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x48, 0x61, 0x73, 0x68, 0x54, 0x79, 0x70, 0x65, + 0x48, 0x00, 0x52, 0x04, 0x68, 0x61, 0x73, 0x68, 0x1a, 0x4c, 0x0a, 0x07, 0x44, 0x65, 0x74, 0x61, + 0x69, 0x6c, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x5f, 0x66, 0x69, + 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, + 0x46, 0x69, 0x6c, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, + 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0b, 0x70, 0x65, 0x72, 0x6d, 0x69, + 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x42, 0x09, 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x22, 0x0d, 0x0a, 0x0b, 0x50, 0x75, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x2d, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, + 0x0a, 0x0b, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0a, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x22, + 0x63, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1c, + 0x0a, 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, + 0x48, 0x00, 0x52, 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x2a, 0x0a, 0x04, + 0x68, 0x61, 0x73, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6e, 0x6f, + 0x69, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x48, 0x61, 0x73, 0x68, 0x54, 0x79, 0x70, 0x65, + 0x48, 0x00, 0x52, 0x04, 0x68, 0x61, 0x73, 0x68, 0x42, 0x0a, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x7e, 0x0a, 0x17, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, + 0x54, 0x6f, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x1d, 0x0a, 0x0a, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x09, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x50, 0x61, 0x74, 0x68, 0x12, 0x44, + 0x0a, 0x0f, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x5f, 0x64, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, + 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, + 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x44, 0x6f, 0x77, 0x6e, + 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x0e, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x44, 0x6f, 0x77, 0x6e, + 0x6c, 0x6f, 0x61, 0x64, 0x22, 0x44, 0x0a, 0x18, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, + 0x54, 0x6f, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x28, 0x0a, 0x04, 0x68, 0x61, 0x73, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, + 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x48, 0x61, 0x73, 0x68, + 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x68, 0x61, 0x73, 0x68, 0x22, 0x21, 0x0a, 0x0b, 0x53, 0x74, + 0x61, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, + 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x22, 0x39, 0x0a, + 0x0c, 0x53, 0x74, 0x61, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x29, 0x0a, + 0x05, 0x73, 0x74, 0x61, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x67, + 0x6e, 0x6f, 0x69, 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x49, 0x6e, 0x66, + 0x6f, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x73, 0x22, 0x8f, 0x01, 0x0a, 0x08, 0x53, 0x74, 0x61, + 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x23, 0x0a, 0x0d, 0x6c, 0x61, 0x73, + 0x74, 0x5f, 0x6d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, + 0x52, 0x0c, 0x6c, 0x61, 0x73, 0x74, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x64, 0x12, 0x20, + 0x0a, 0x0b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x0d, 0x52, 0x0b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, + 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04, + 0x73, 0x69, 0x7a, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x75, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x05, 0x20, + 0x01, 0x28, 0x0d, 0x52, 0x05, 0x75, 0x6d, 0x61, 0x73, 0x6b, 0x22, 0x30, 0x0a, 0x0d, 0x52, 0x65, + 0x6d, 0x6f, 0x76, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x72, + 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0a, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x22, 0x10, 0x0a, 0x0e, + 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xd5, + 0x02, 0x0a, 0x04, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x38, 0x0a, 0x03, 0x47, 0x65, 0x74, 0x12, 0x15, + 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x66, 0x69, 0x6c, + 0x65, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x30, + 0x01, 0x12, 0x5d, 0x0a, 0x10, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x54, 0x6f, 0x52, + 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x12, 0x22, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x66, 0x69, 0x6c, + 0x65, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x54, 0x6f, 0x52, 0x65, 0x6d, 0x6f, + 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x67, 0x6e, 0x6f, 0x69, + 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x54, 0x6f, + 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, + 0x12, 0x38, 0x0a, 0x03, 0x50, 0x75, 0x74, 0x12, 0x15, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x66, + 0x69, 0x6c, 0x65, 0x2e, 0x50, 0x75, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, + 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x2e, 0x50, 0x75, 0x74, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x28, 0x01, 0x12, 0x39, 0x0a, 0x04, 0x53, 0x74, + 0x61, 0x74, 0x12, 0x16, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x2e, 0x53, + 0x74, 0x61, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x67, 0x6e, 0x6f, + 0x69, 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x3f, 0x0a, 0x06, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x12, + 0x18, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x2e, 0x52, 0x65, 0x6d, 0x6f, + 0x76, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x67, 0x6e, 0x6f, 0x69, + 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x29, 0x5a, 0x1f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, + 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, + 0x67, 0x6e, 0x6f, 0x69, 0x2f, 0x66, 0x69, 0x6c, 0x65, 0xd2, 0x3e, 0x05, 0x30, 0x2e, 0x31, 0x2e, + 0x30, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_file_file_proto_rawDescOnce sync.Once + file_file_file_proto_rawDescData = file_file_file_proto_rawDesc +) + +func file_file_file_proto_rawDescGZIP() []byte { + file_file_file_proto_rawDescOnce.Do(func() { + file_file_file_proto_rawDescData = protoimpl.X.CompressGZIP(file_file_file_proto_rawDescData) + }) + return file_file_file_proto_rawDescData +} + +var file_file_file_proto_msgTypes = make([]protoimpl.MessageInfo, 12) +var file_file_file_proto_goTypes = []interface{}{ + (*PutRequest)(nil), // 0: gnoi.file.PutRequest + (*PutResponse)(nil), // 1: gnoi.file.PutResponse + (*GetRequest)(nil), // 2: gnoi.file.GetRequest + (*GetResponse)(nil), // 3: gnoi.file.GetResponse + (*TransferToRemoteRequest)(nil), // 4: gnoi.file.TransferToRemoteRequest + (*TransferToRemoteResponse)(nil), // 5: gnoi.file.TransferToRemoteResponse + (*StatRequest)(nil), // 6: gnoi.file.StatRequest + (*StatResponse)(nil), // 7: gnoi.file.StatResponse + (*StatInfo)(nil), // 8: gnoi.file.StatInfo + (*RemoveRequest)(nil), // 9: gnoi.file.RemoveRequest + (*RemoveResponse)(nil), // 10: gnoi.file.RemoveResponse + (*PutRequest_Details)(nil), // 11: gnoi.file.PutRequest.Details + (*types.HashType)(nil), // 12: gnoi.types.HashType + (*common.RemoteDownload)(nil), // 13: gnoi.common.RemoteDownload +} +var file_file_file_proto_depIdxs = []int32{ + 11, // 0: gnoi.file.PutRequest.open:type_name -> gnoi.file.PutRequest.Details + 12, // 1: gnoi.file.PutRequest.hash:type_name -> gnoi.types.HashType + 12, // 2: gnoi.file.GetResponse.hash:type_name -> gnoi.types.HashType + 13, // 3: gnoi.file.TransferToRemoteRequest.remote_download:type_name -> gnoi.common.RemoteDownload + 12, // 4: gnoi.file.TransferToRemoteResponse.hash:type_name -> gnoi.types.HashType + 8, // 5: gnoi.file.StatResponse.stats:type_name -> gnoi.file.StatInfo + 2, // 6: gnoi.file.File.Get:input_type -> gnoi.file.GetRequest + 4, // 7: gnoi.file.File.TransferToRemote:input_type -> gnoi.file.TransferToRemoteRequest + 0, // 8: gnoi.file.File.Put:input_type -> gnoi.file.PutRequest + 6, // 9: gnoi.file.File.Stat:input_type -> gnoi.file.StatRequest + 9, // 10: gnoi.file.File.Remove:input_type -> gnoi.file.RemoveRequest + 3, // 11: gnoi.file.File.Get:output_type -> gnoi.file.GetResponse + 5, // 12: gnoi.file.File.TransferToRemote:output_type -> gnoi.file.TransferToRemoteResponse + 1, // 13: gnoi.file.File.Put:output_type -> gnoi.file.PutResponse + 7, // 14: gnoi.file.File.Stat:output_type -> gnoi.file.StatResponse + 10, // 15: gnoi.file.File.Remove:output_type -> gnoi.file.RemoveResponse + 11, // [11:16] is the sub-list for method output_type + 6, // [6:11] is the sub-list for method input_type + 6, // [6:6] is the sub-list for extension type_name + 6, // [6:6] is the sub-list for extension extendee + 0, // [0:6] is the sub-list for field type_name +} + +func init() { file_file_file_proto_init() } +func file_file_file_proto_init() { + if File_file_file_proto != nil { + return } - if interceptor == nil { - return srv.(FileServer).Remove(ctx, in) + if !protoimpl.UnsafeEnabled { + file_file_file_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PutRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_file_file_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PutResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_file_file_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_file_file_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_file_file_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TransferToRemoteRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_file_file_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TransferToRemoteResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_file_file_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StatRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_file_file_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StatResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_file_file_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StatInfo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_file_file_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RemoveRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_file_file_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RemoveResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_file_file_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PutRequest_Details); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.file.File/Remove", + file_file_file_proto_msgTypes[0].OneofWrappers = []interface{}{ + (*PutRequest_Open)(nil), + (*PutRequest_Contents)(nil), + (*PutRequest_Hash)(nil), } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(FileServer).Remove(ctx, req.(*RemoveRequest)) + file_file_file_proto_msgTypes[3].OneofWrappers = []interface{}{ + (*GetResponse_Contents)(nil), + (*GetResponse_Hash)(nil), } - return interceptor(ctx, in, info, handler) -} - -var _File_serviceDesc = grpc.ServiceDesc{ - ServiceName: "gnoi.file.File", - HandlerType: (*FileServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "TransferToRemote", - Handler: _File_TransferToRemote_Handler, - }, - { - MethodName: "Stat", - Handler: _File_Stat_Handler, - }, - { - MethodName: "Remove", - Handler: _File_Remove_Handler, - }, - }, - Streams: []grpc.StreamDesc{ - { - StreamName: "Get", - Handler: _File_Get_Handler, - ServerStreams: true, - }, - { - StreamName: "Put", - Handler: _File_Put_Handler, - ClientStreams: true, + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_file_file_proto_rawDesc, + NumEnums: 0, + NumMessages: 12, + NumExtensions: 0, + NumServices: 1, }, - }, - Metadata: "file/file.proto", + GoTypes: file_file_file_proto_goTypes, + DependencyIndexes: file_file_file_proto_depIdxs, + MessageInfos: file_file_file_proto_msgTypes, + }.Build() + File_file_file_proto = out.File + file_file_file_proto_rawDesc = nil + file_file_file_proto_goTypes = nil + file_file_file_proto_depIdxs = nil } diff --git a/file/file.proto b/file/file.proto index 5897d025..119f7fcf 100644 --- a/file/file.proto +++ b/file/file.proto @@ -21,6 +21,8 @@ package gnoi.file; import "github.com/openconfig/gnoi/common/common.proto"; import "github.com/openconfig/gnoi/types/types.proto"; +option go_package = "github.com/openconfig/gnoi/file"; + option (types.gnoi_version) = "0.1.0"; service File { diff --git a/file/file_grpc.pb.go b/file/file_grpc.pb.go new file mode 100644 index 00000000..5b339b0e --- /dev/null +++ b/file/file_grpc.pb.go @@ -0,0 +1,353 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. + +package file + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.32.0 or later. +const _ = grpc.SupportPackageIsVersion7 + +// FileClient is the client API for File service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type FileClient interface { + // Get reads and streams the contents of a file from the target. + // The file is streamed by sequential messages, each containing up to + // 64KB of data. A final message is sent prior to closing the stream + // that contains the hash of the data sent. An error is returned + // if the file does not exist or there was an error reading the file. + Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (File_GetClient, error) + // TransferToRemote transfers the contents of a file from the target to a + // specified remote location. The response contains the hash of the data + // transferred. An error is returned if the file does not exist, the file + // transfer fails, or if there was an error reading the file. This is a + // blocking call until the file transfer is complete. + TransferToRemote(ctx context.Context, in *TransferToRemoteRequest, opts ...grpc.CallOption) (*TransferToRemoteResponse, error) + // Put streams data into a file on the target. The file is sent in + // sequential messages, each message containing up to 64KB of data. A final + // message must be sent that includes the hash of the data sent. An + // error is returned if the location does not exist or there is an error + // writing the data. If no checksum is received, the target must assume the + // operation is incomplete and remove the partially transmitted file. The + // target should initially write the file to a temporary location so a failure + // does not destroy the original file. + Put(ctx context.Context, opts ...grpc.CallOption) (File_PutClient, error) + // Stat returns metadata about a file on the target. An error is returned + // if the file does not exist of there is an error in accessing the metadata. + Stat(ctx context.Context, in *StatRequest, opts ...grpc.CallOption) (*StatResponse, error) + // Remove removes the specified file from the target. An error is + // returned if the file does not exist, is a directory, or the remove + // operation encounters an error (e.g., permission denied). + Remove(ctx context.Context, in *RemoveRequest, opts ...grpc.CallOption) (*RemoveResponse, error) +} + +type fileClient struct { + cc grpc.ClientConnInterface +} + +func NewFileClient(cc grpc.ClientConnInterface) FileClient { + return &fileClient{cc} +} + +func (c *fileClient) Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (File_GetClient, error) { + stream, err := c.cc.NewStream(ctx, &File_ServiceDesc.Streams[0], "/gnoi.file.File/Get", opts...) + if err != nil { + return nil, err + } + x := &fileGetClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type File_GetClient interface { + Recv() (*GetResponse, error) + grpc.ClientStream +} + +type fileGetClient struct { + grpc.ClientStream +} + +func (x *fileGetClient) Recv() (*GetResponse, error) { + m := new(GetResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *fileClient) TransferToRemote(ctx context.Context, in *TransferToRemoteRequest, opts ...grpc.CallOption) (*TransferToRemoteResponse, error) { + out := new(TransferToRemoteResponse) + err := c.cc.Invoke(ctx, "/gnoi.file.File/TransferToRemote", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *fileClient) Put(ctx context.Context, opts ...grpc.CallOption) (File_PutClient, error) { + stream, err := c.cc.NewStream(ctx, &File_ServiceDesc.Streams[1], "/gnoi.file.File/Put", opts...) + if err != nil { + return nil, err + } + x := &filePutClient{stream} + return x, nil +} + +type File_PutClient interface { + Send(*PutRequest) error + CloseAndRecv() (*PutResponse, error) + grpc.ClientStream +} + +type filePutClient struct { + grpc.ClientStream +} + +func (x *filePutClient) Send(m *PutRequest) error { + return x.ClientStream.SendMsg(m) +} + +func (x *filePutClient) CloseAndRecv() (*PutResponse, error) { + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + m := new(PutResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *fileClient) Stat(ctx context.Context, in *StatRequest, opts ...grpc.CallOption) (*StatResponse, error) { + out := new(StatResponse) + err := c.cc.Invoke(ctx, "/gnoi.file.File/Stat", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *fileClient) Remove(ctx context.Context, in *RemoveRequest, opts ...grpc.CallOption) (*RemoveResponse, error) { + out := new(RemoveResponse) + err := c.cc.Invoke(ctx, "/gnoi.file.File/Remove", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// FileServer is the server API for File service. +// All implementations must embed UnimplementedFileServer +// for forward compatibility +type FileServer interface { + // Get reads and streams the contents of a file from the target. + // The file is streamed by sequential messages, each containing up to + // 64KB of data. A final message is sent prior to closing the stream + // that contains the hash of the data sent. An error is returned + // if the file does not exist or there was an error reading the file. + Get(*GetRequest, File_GetServer) error + // TransferToRemote transfers the contents of a file from the target to a + // specified remote location. The response contains the hash of the data + // transferred. An error is returned if the file does not exist, the file + // transfer fails, or if there was an error reading the file. This is a + // blocking call until the file transfer is complete. + TransferToRemote(context.Context, *TransferToRemoteRequest) (*TransferToRemoteResponse, error) + // Put streams data into a file on the target. The file is sent in + // sequential messages, each message containing up to 64KB of data. A final + // message must be sent that includes the hash of the data sent. An + // error is returned if the location does not exist or there is an error + // writing the data. If no checksum is received, the target must assume the + // operation is incomplete and remove the partially transmitted file. The + // target should initially write the file to a temporary location so a failure + // does not destroy the original file. + Put(File_PutServer) error + // Stat returns metadata about a file on the target. An error is returned + // if the file does not exist of there is an error in accessing the metadata. + Stat(context.Context, *StatRequest) (*StatResponse, error) + // Remove removes the specified file from the target. An error is + // returned if the file does not exist, is a directory, or the remove + // operation encounters an error (e.g., permission denied). + Remove(context.Context, *RemoveRequest) (*RemoveResponse, error) + mustEmbedUnimplementedFileServer() +} + +// UnimplementedFileServer must be embedded to have forward compatible implementations. +type UnimplementedFileServer struct { +} + +func (UnimplementedFileServer) Get(*GetRequest, File_GetServer) error { + return status.Errorf(codes.Unimplemented, "method Get not implemented") +} +func (UnimplementedFileServer) TransferToRemote(context.Context, *TransferToRemoteRequest) (*TransferToRemoteResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method TransferToRemote not implemented") +} +func (UnimplementedFileServer) Put(File_PutServer) error { + return status.Errorf(codes.Unimplemented, "method Put not implemented") +} +func (UnimplementedFileServer) Stat(context.Context, *StatRequest) (*StatResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Stat not implemented") +} +func (UnimplementedFileServer) Remove(context.Context, *RemoveRequest) (*RemoveResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Remove not implemented") +} +func (UnimplementedFileServer) mustEmbedUnimplementedFileServer() {} + +// UnsafeFileServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to FileServer will +// result in compilation errors. +type UnsafeFileServer interface { + mustEmbedUnimplementedFileServer() +} + +func RegisterFileServer(s grpc.ServiceRegistrar, srv FileServer) { + s.RegisterService(&File_ServiceDesc, srv) +} + +func _File_Get_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(GetRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(FileServer).Get(m, &fileGetServer{stream}) +} + +type File_GetServer interface { + Send(*GetResponse) error + grpc.ServerStream +} + +type fileGetServer struct { + grpc.ServerStream +} + +func (x *fileGetServer) Send(m *GetResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _File_TransferToRemote_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TransferToRemoteRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(FileServer).TransferToRemote(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gnoi.file.File/TransferToRemote", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(FileServer).TransferToRemote(ctx, req.(*TransferToRemoteRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _File_Put_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(FileServer).Put(&filePutServer{stream}) +} + +type File_PutServer interface { + SendAndClose(*PutResponse) error + Recv() (*PutRequest, error) + grpc.ServerStream +} + +type filePutServer struct { + grpc.ServerStream +} + +func (x *filePutServer) SendAndClose(m *PutResponse) error { + return x.ServerStream.SendMsg(m) +} + +func (x *filePutServer) Recv() (*PutRequest, error) { + m := new(PutRequest) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func _File_Stat_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(StatRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(FileServer).Stat(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gnoi.file.File/Stat", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(FileServer).Stat(ctx, req.(*StatRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _File_Remove_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RemoveRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(FileServer).Remove(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gnoi.file.File/Remove", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(FileServer).Remove(ctx, req.(*RemoveRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// File_ServiceDesc is the grpc.ServiceDesc for File service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var File_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "gnoi.file.File", + HandlerType: (*FileServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "TransferToRemote", + Handler: _File_TransferToRemote_Handler, + }, + { + MethodName: "Stat", + Handler: _File_Stat_Handler, + }, + { + MethodName: "Remove", + Handler: _File_Remove_Handler, + }, + }, + Streams: []grpc.StreamDesc{ + { + StreamName: "Get", + Handler: _File_Get_Handler, + ServerStreams: true, + }, + { + StreamName: "Put", + Handler: _File_Put_Handler, + ClientStreams: true, + }, + }, + Metadata: "file/file.proto", +} diff --git a/go.mod b/go.mod index b084997e..8331392f 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,8 @@ module github.com/openconfig/gnoi go 1.15 require ( - github.com/golang/protobuf v1.4.3 + github.com/golang/protobuf v1.5.0 golang.org/x/net v0.0.0-20201110031124-69a78807bb2b google.golang.org/grpc v1.33.2 + google.golang.org/protobuf v1.26.0 ) diff --git a/go.sum b/go.sum index 0b6e5e08..dee70a0f 100644 --- a/go.sum +++ b/go.sum @@ -17,13 +17,15 @@ github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrU github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w= github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0= github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8= -github.com/golang/protobuf v1.4.3 h1:JjCZWpVbqXDqFVmTfYWEVTMIYrL/NPdPSCHPJ0T/raM= -github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= +github.com/golang/protobuf v1.5.0 h1:LUVKkCeviFUMKqHa4tXIIij/lbhnMbP7Fn5wKdKkRh4= +github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.5 h1:Khx7svrCpmxxtHBq5j2mp/xVjsi8hQMfNLvJFAlrGgU= +github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= @@ -46,6 +48,7 @@ golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJ golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f h1:+Nyd8tzPX9R7BWHguqsrbFdRx3WQ/1ib8I44HXV5yTA= golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.3 h1:cokOdA+Jmi5PJGXLlLllQSgYigAEfHXJAERHVMaCc2k= @@ -55,6 +58,7 @@ golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGm golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= +golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= @@ -74,9 +78,11 @@ google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQ google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE= google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo= google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= -google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= google.golang.org/protobuf v1.25.0 h1:Ejskq+SyPohKW+1uil0JJMtmHCgJPJ/qWTxr8qp+R4c= google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c= +google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= +google.golang.org/protobuf v1.26.0 h1:bxAC2xTBsZGibn2RTntX0oH50xLsqy1OxA9tTL3p/lk= +google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= diff --git a/interface/interface.pb.go b/interface/interface.pb.go index 09a5c64e..41986498 100644 --- a/interface/interface.pb.go +++ b/interface/interface.pb.go @@ -1,432 +1,510 @@ +// +// Copyright 2017 Google Inc. All Rights Reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.26.0 +// protoc v3.15.7 // source: interface/interface.proto -package gnoi_interface +package _interface import ( - fmt "fmt" - proto "github.com/golang/protobuf/proto" types "github.com/openconfig/gnoi/types" - context "golang.org/x/net/context" - grpc "google.golang.org/grpc" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// 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 - -// SetLoopbackModeRequest requests the provide interface be have its loopback mode -// set to mode. Mode may be vendor specific. For example, on a transport -// device, available modes are "none", "mac", "phy", "phy_remote", -// "framer_facility", and "framer_terminal". +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// SetLoopbackModeRequest requests the provide interface be have its loopback +// mode set to the specified mode. The mode may be vendor specific. For example, +// on a transport device, available modes are "none", "mac", "phy", +// "phy_remote", "framer_facility", and "framer_terminal". type SetLoopbackModeRequest struct { - Interface *types.Path `protobuf:"bytes,1,opt,name=interface,proto3" json:"interface,omitempty"` - Mode string `protobuf:"bytes,2,opt,name=mode,proto3" json:"mode,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *SetLoopbackModeRequest) Reset() { *m = SetLoopbackModeRequest{} } -func (m *SetLoopbackModeRequest) String() string { return proto.CompactTextString(m) } -func (*SetLoopbackModeRequest) ProtoMessage() {} -func (*SetLoopbackModeRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_460c38aebb3cb2d6, []int{0} + Interface *types.Path `protobuf:"bytes,1,opt,name=interface,proto3" json:"interface,omitempty"` + Mode string `protobuf:"bytes,2,opt,name=mode,proto3" json:"mode,omitempty"` } -func (m *SetLoopbackModeRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SetLoopbackModeRequest.Unmarshal(m, b) -} -func (m *SetLoopbackModeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SetLoopbackModeRequest.Marshal(b, m, deterministic) -} -func (m *SetLoopbackModeRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_SetLoopbackModeRequest.Merge(m, src) +func (x *SetLoopbackModeRequest) Reset() { + *x = SetLoopbackModeRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_interface_interface_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *SetLoopbackModeRequest) XXX_Size() int { - return xxx_messageInfo_SetLoopbackModeRequest.Size(m) + +func (x *SetLoopbackModeRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *SetLoopbackModeRequest) XXX_DiscardUnknown() { - xxx_messageInfo_SetLoopbackModeRequest.DiscardUnknown(m) + +func (*SetLoopbackModeRequest) ProtoMessage() {} + +func (x *SetLoopbackModeRequest) ProtoReflect() protoreflect.Message { + mi := &file_interface_interface_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_SetLoopbackModeRequest proto.InternalMessageInfo +// Deprecated: Use SetLoopbackModeRequest.ProtoReflect.Descriptor instead. +func (*SetLoopbackModeRequest) Descriptor() ([]byte, []int) { + return file_interface_interface_proto_rawDescGZIP(), []int{0} +} -func (m *SetLoopbackModeRequest) GetInterface() *types.Path { - if m != nil { - return m.Interface +func (x *SetLoopbackModeRequest) GetInterface() *types.Path { + if x != nil { + return x.Interface } return nil } -func (m *SetLoopbackModeRequest) GetMode() string { - if m != nil { - return m.Mode +func (x *SetLoopbackModeRequest) GetMode() string { + if x != nil { + return x.Mode } return "" } type SetLoopbackModeResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *SetLoopbackModeResponse) Reset() { *m = SetLoopbackModeResponse{} } -func (m *SetLoopbackModeResponse) String() string { return proto.CompactTextString(m) } -func (*SetLoopbackModeResponse) ProtoMessage() {} -func (*SetLoopbackModeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_460c38aebb3cb2d6, []int{1} +func (x *SetLoopbackModeResponse) Reset() { + *x = SetLoopbackModeResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_interface_interface_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *SetLoopbackModeResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SetLoopbackModeResponse.Unmarshal(m, b) -} -func (m *SetLoopbackModeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SetLoopbackModeResponse.Marshal(b, m, deterministic) -} -func (m *SetLoopbackModeResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_SetLoopbackModeResponse.Merge(m, src) -} -func (m *SetLoopbackModeResponse) XXX_Size() int { - return xxx_messageInfo_SetLoopbackModeResponse.Size(m) -} -func (m *SetLoopbackModeResponse) XXX_DiscardUnknown() { - xxx_messageInfo_SetLoopbackModeResponse.DiscardUnknown(m) +func (x *SetLoopbackModeResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_SetLoopbackModeResponse proto.InternalMessageInfo +func (*SetLoopbackModeResponse) ProtoMessage() {} -type GetLoopbackModeRequest struct { - Interface *types.Path `protobuf:"bytes,1,opt,name=interface,proto3" json:"interface,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *SetLoopbackModeResponse) ProtoReflect() protoreflect.Message { + mi := &file_interface_interface_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func (m *GetLoopbackModeRequest) Reset() { *m = GetLoopbackModeRequest{} } -func (m *GetLoopbackModeRequest) String() string { return proto.CompactTextString(m) } -func (*GetLoopbackModeRequest) ProtoMessage() {} -func (*GetLoopbackModeRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_460c38aebb3cb2d6, []int{2} +// Deprecated: Use SetLoopbackModeResponse.ProtoReflect.Descriptor instead. +func (*SetLoopbackModeResponse) Descriptor() ([]byte, []int) { + return file_interface_interface_proto_rawDescGZIP(), []int{1} } -func (m *GetLoopbackModeRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetLoopbackModeRequest.Unmarshal(m, b) -} -func (m *GetLoopbackModeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetLoopbackModeRequest.Marshal(b, m, deterministic) -} -func (m *GetLoopbackModeRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetLoopbackModeRequest.Merge(m, src) -} -func (m *GetLoopbackModeRequest) XXX_Size() int { - return xxx_messageInfo_GetLoopbackModeRequest.Size(m) -} -func (m *GetLoopbackModeRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetLoopbackModeRequest.DiscardUnknown(m) -} +type GetLoopbackModeRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -var xxx_messageInfo_GetLoopbackModeRequest proto.InternalMessageInfo + Interface *types.Path `protobuf:"bytes,1,opt,name=interface,proto3" json:"interface,omitempty"` +} -func (m *GetLoopbackModeRequest) GetInterface() *types.Path { - if m != nil { - return m.Interface +func (x *GetLoopbackModeRequest) Reset() { + *x = GetLoopbackModeRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_interface_interface_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -type GetLoopbackModeResponse struct { - Mode string `protobuf:"bytes,1,opt,name=mode,proto3" json:"mode,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *GetLoopbackModeRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GetLoopbackModeResponse) Reset() { *m = GetLoopbackModeResponse{} } -func (m *GetLoopbackModeResponse) String() string { return proto.CompactTextString(m) } -func (*GetLoopbackModeResponse) ProtoMessage() {} -func (*GetLoopbackModeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_460c38aebb3cb2d6, []int{3} -} +func (*GetLoopbackModeRequest) ProtoMessage() {} -func (m *GetLoopbackModeResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetLoopbackModeResponse.Unmarshal(m, b) -} -func (m *GetLoopbackModeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetLoopbackModeResponse.Marshal(b, m, deterministic) -} -func (m *GetLoopbackModeResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetLoopbackModeResponse.Merge(m, src) -} -func (m *GetLoopbackModeResponse) XXX_Size() int { - return xxx_messageInfo_GetLoopbackModeResponse.Size(m) -} -func (m *GetLoopbackModeResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetLoopbackModeResponse.DiscardUnknown(m) +func (x *GetLoopbackModeRequest) ProtoReflect() protoreflect.Message { + mi := &file_interface_interface_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_GetLoopbackModeResponse proto.InternalMessageInfo +// Deprecated: Use GetLoopbackModeRequest.ProtoReflect.Descriptor instead. +func (*GetLoopbackModeRequest) Descriptor() ([]byte, []int) { + return file_interface_interface_proto_rawDescGZIP(), []int{2} +} -func (m *GetLoopbackModeResponse) GetMode() string { - if m != nil { - return m.Mode +func (x *GetLoopbackModeRequest) GetInterface() *types.Path { + if x != nil { + return x.Interface } - return "" + return nil } -type ClearInterfaceCountersRequest struct { - Interface []*types.Path `protobuf:"bytes,1,rep,name=interface,proto3" json:"interface,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} +type GetLoopbackModeResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *ClearInterfaceCountersRequest) Reset() { *m = ClearInterfaceCountersRequest{} } -func (m *ClearInterfaceCountersRequest) String() string { return proto.CompactTextString(m) } -func (*ClearInterfaceCountersRequest) ProtoMessage() {} -func (*ClearInterfaceCountersRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_460c38aebb3cb2d6, []int{4} + Mode string `protobuf:"bytes,1,opt,name=mode,proto3" json:"mode,omitempty"` } -func (m *ClearInterfaceCountersRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ClearInterfaceCountersRequest.Unmarshal(m, b) -} -func (m *ClearInterfaceCountersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ClearInterfaceCountersRequest.Marshal(b, m, deterministic) -} -func (m *ClearInterfaceCountersRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ClearInterfaceCountersRequest.Merge(m, src) -} -func (m *ClearInterfaceCountersRequest) XXX_Size() int { - return xxx_messageInfo_ClearInterfaceCountersRequest.Size(m) +func (x *GetLoopbackModeResponse) Reset() { + *x = GetLoopbackModeResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_interface_interface_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ClearInterfaceCountersRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ClearInterfaceCountersRequest.DiscardUnknown(m) + +func (x *GetLoopbackModeResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_ClearInterfaceCountersRequest proto.InternalMessageInfo +func (*GetLoopbackModeResponse) ProtoMessage() {} -func (m *ClearInterfaceCountersRequest) GetInterface() []*types.Path { - if m != nil { - return m.Interface +func (x *GetLoopbackModeResponse) ProtoReflect() protoreflect.Message { + mi := &file_interface_interface_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil -} - -type ClearInterfaceCountersResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + return mi.MessageOf(x) } -func (m *ClearInterfaceCountersResponse) Reset() { *m = ClearInterfaceCountersResponse{} } -func (m *ClearInterfaceCountersResponse) String() string { return proto.CompactTextString(m) } -func (*ClearInterfaceCountersResponse) ProtoMessage() {} -func (*ClearInterfaceCountersResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_460c38aebb3cb2d6, []int{5} +// Deprecated: Use GetLoopbackModeResponse.ProtoReflect.Descriptor instead. +func (*GetLoopbackModeResponse) Descriptor() ([]byte, []int) { + return file_interface_interface_proto_rawDescGZIP(), []int{3} } -func (m *ClearInterfaceCountersResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ClearInterfaceCountersResponse.Unmarshal(m, b) -} -func (m *ClearInterfaceCountersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ClearInterfaceCountersResponse.Marshal(b, m, deterministic) -} -func (m *ClearInterfaceCountersResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ClearInterfaceCountersResponse.Merge(m, src) -} -func (m *ClearInterfaceCountersResponse) XXX_Size() int { - return xxx_messageInfo_ClearInterfaceCountersResponse.Size(m) -} -func (m *ClearInterfaceCountersResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ClearInterfaceCountersResponse.DiscardUnknown(m) +func (x *GetLoopbackModeResponse) GetMode() string { + if x != nil { + return x.Mode + } + return "" } -var xxx_messageInfo_ClearInterfaceCountersResponse proto.InternalMessageInfo +type ClearInterfaceCountersRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func init() { - proto.RegisterType((*SetLoopbackModeRequest)(nil), "gnoi.interface.SetLoopbackModeRequest") - proto.RegisterType((*SetLoopbackModeResponse)(nil), "gnoi.interface.SetLoopbackModeResponse") - proto.RegisterType((*GetLoopbackModeRequest)(nil), "gnoi.interface.GetLoopbackModeRequest") - proto.RegisterType((*GetLoopbackModeResponse)(nil), "gnoi.interface.GetLoopbackModeResponse") - proto.RegisterType((*ClearInterfaceCountersRequest)(nil), "gnoi.interface.ClearInterfaceCountersRequest") - proto.RegisterType((*ClearInterfaceCountersResponse)(nil), "gnoi.interface.ClearInterfaceCountersResponse") + Interface []*types.Path `protobuf:"bytes,1,rep,name=interface,proto3" json:"interface,omitempty"` } -func init() { proto.RegisterFile("interface/interface.proto", fileDescriptor_460c38aebb3cb2d6) } - -var fileDescriptor_460c38aebb3cb2d6 = []byte{ - // 298 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xcc, 0xcc, 0x2b, 0x49, - 0x2d, 0x4a, 0x4b, 0x4c, 0x4e, 0xd5, 0x87, 0xb3, 0xf4, 0x0a, 0x8a, 0xf2, 0x4b, 0xf2, 0x85, 0xf8, - 0xd2, 0xf3, 0xf2, 0x33, 0xf5, 0xe0, 0xa2, 0x52, 0x3a, 0xe9, 0x99, 0x25, 0x19, 0xa5, 0x49, 0x7a, - 0xc9, 0xf9, 0xb9, 0xfa, 0xf9, 0x05, 0xa9, 0x79, 0xc9, 0xf9, 0x79, 0x69, 0x99, 0xe9, 0xfa, 0x20, - 0x55, 0xfa, 0x25, 0x95, 0x05, 0xa9, 0xc5, 0x10, 0x12, 0xa2, 0x5b, 0x29, 0x86, 0x4b, 0x2c, 0x38, - 0xb5, 0xc4, 0x27, 0x3f, 0xbf, 0x20, 0x29, 0x31, 0x39, 0xdb, 0x37, 0x3f, 0x25, 0x35, 0x28, 0xb5, - 0xb0, 0x34, 0xb5, 0xb8, 0x44, 0x48, 0x8f, 0x8b, 0x13, 0x6e, 0xa8, 0x04, 0xa3, 0x02, 0xa3, 0x06, - 0xb7, 0x91, 0x80, 0x1e, 0xd8, 0x2e, 0x88, 0xfe, 0x80, 0xc4, 0x92, 0x8c, 0x20, 0x84, 0x12, 0x21, - 0x21, 0x2e, 0x96, 0xdc, 0xfc, 0x94, 0x54, 0x09, 0x26, 0x05, 0x46, 0x0d, 0xce, 0x20, 0x30, 0x5b, - 0x49, 0x92, 0x4b, 0x1c, 0xc3, 0xf4, 0xe2, 0x82, 0xfc, 0xbc, 0xe2, 0x54, 0x25, 0x0f, 0x2e, 0x31, - 0x77, 0xaa, 0x58, 0xac, 0xa4, 0xcb, 0x25, 0xee, 0x8e, 0xdd, 0x12, 0xb8, 0x9b, 0x18, 0x91, 0xdc, - 0xe4, 0xcf, 0x25, 0xeb, 0x9c, 0x93, 0x9a, 0x58, 0xe4, 0x09, 0x33, 0xc0, 0x39, 0xbf, 0x14, 0xc4, - 0x2c, 0xc6, 0x61, 0x3f, 0x33, 0x21, 0xfb, 0x15, 0xb8, 0xe4, 0x70, 0x19, 0x08, 0x71, 0x86, 0xd1, - 0x25, 0x26, 0x2e, 0x4e, 0xb8, 0xac, 0x50, 0x0a, 0x17, 0x3f, 0x5a, 0xa0, 0x08, 0xa9, 0xe9, 0xa1, - 0x46, 0xa2, 0x1e, 0xf6, 0x38, 0x91, 0x52, 0x27, 0xa8, 0x0e, 0x1a, 0xba, 0x0c, 0x20, 0x5b, 0xdc, - 0x09, 0xd9, 0xe2, 0x4e, 0xa4, 0x2d, 0xee, 0x38, 0x6d, 0xa9, 0xe4, 0x12, 0xc3, 0xee, 0x77, 0x21, - 0x5d, 0x74, 0x43, 0xf0, 0x06, 0xba, 0x94, 0x1e, 0xb1, 0xca, 0x61, 0x56, 0x3b, 0x71, 0x5c, 0xb2, - 0x63, 0x35, 0xd0, 0x33, 0xd4, 0x33, 0x48, 0x62, 0x03, 0x27, 0x65, 0x63, 0x40, 0x00, 0x00, 0x00, - 0xff, 0xff, 0x00, 0x88, 0x3f, 0x97, 0x25, 0x03, 0x00, 0x00, +func (x *ClearInterfaceCountersRequest) Reset() { + *x = ClearInterfaceCountersRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_interface_interface_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// InterfaceClient is the client API for Interface service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type InterfaceClient interface { - // SetLoopbackMode is used to set the mode of loopback on a interface. - SetLoopbackMode(ctx context.Context, in *SetLoopbackModeRequest, opts ...grpc.CallOption) (*SetLoopbackModeResponse, error) - // GetLoopbackMode is used to get the mode of loopback on a interface. - GetLoopbackMode(ctx context.Context, in *GetLoopbackModeRequest, opts ...grpc.CallOption) (*GetLoopbackModeResponse, error) - // ClearInterfaceCounters will reset the counters for the provided interface. - ClearInterfaceCounters(ctx context.Context, in *ClearInterfaceCountersRequest, opts ...grpc.CallOption) (*ClearInterfaceCountersResponse, error) +func (x *ClearInterfaceCountersRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -type interfaceClient struct { - cc *grpc.ClientConn +func (*ClearInterfaceCountersRequest) ProtoMessage() {} + +func (x *ClearInterfaceCountersRequest) ProtoReflect() protoreflect.Message { + mi := &file_interface_interface_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func NewInterfaceClient(cc *grpc.ClientConn) InterfaceClient { - return &interfaceClient{cc} +// Deprecated: Use ClearInterfaceCountersRequest.ProtoReflect.Descriptor instead. +func (*ClearInterfaceCountersRequest) Descriptor() ([]byte, []int) { + return file_interface_interface_proto_rawDescGZIP(), []int{4} } -func (c *interfaceClient) SetLoopbackMode(ctx context.Context, in *SetLoopbackModeRequest, opts ...grpc.CallOption) (*SetLoopbackModeResponse, error) { - out := new(SetLoopbackModeResponse) - err := c.cc.Invoke(ctx, "/gnoi.interface.Interface/SetLoopbackMode", in, out, opts...) - if err != nil { - return nil, err +func (x *ClearInterfaceCountersRequest) GetInterface() []*types.Path { + if x != nil { + return x.Interface } - return out, nil + return nil } -func (c *interfaceClient) GetLoopbackMode(ctx context.Context, in *GetLoopbackModeRequest, opts ...grpc.CallOption) (*GetLoopbackModeResponse, error) { - out := new(GetLoopbackModeResponse) - err := c.cc.Invoke(ctx, "/gnoi.interface.Interface/GetLoopbackMode", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +type ClearInterfaceCountersResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (c *interfaceClient) ClearInterfaceCounters(ctx context.Context, in *ClearInterfaceCountersRequest, opts ...grpc.CallOption) (*ClearInterfaceCountersResponse, error) { - out := new(ClearInterfaceCountersResponse) - err := c.cc.Invoke(ctx, "/gnoi.interface.Interface/ClearInterfaceCounters", in, out, opts...) - if err != nil { - return nil, err +func (x *ClearInterfaceCountersResponse) Reset() { + *x = ClearInterfaceCountersResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_interface_interface_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return out, nil } -// InterfaceServer is the server API for Interface service. -type InterfaceServer interface { - // SetLoopbackMode is used to set the mode of loopback on a interface. - SetLoopbackMode(context.Context, *SetLoopbackModeRequest) (*SetLoopbackModeResponse, error) - // GetLoopbackMode is used to get the mode of loopback on a interface. - GetLoopbackMode(context.Context, *GetLoopbackModeRequest) (*GetLoopbackModeResponse, error) - // ClearInterfaceCounters will reset the counters for the provided interface. - ClearInterfaceCounters(context.Context, *ClearInterfaceCountersRequest) (*ClearInterfaceCountersResponse, error) +func (x *ClearInterfaceCountersResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func RegisterInterfaceServer(s *grpc.Server, srv InterfaceServer) { - s.RegisterService(&_Interface_serviceDesc, srv) -} +func (*ClearInterfaceCountersResponse) ProtoMessage() {} -func _Interface_SetLoopbackMode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SetLoopbackModeRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(InterfaceServer).SetLoopbackMode(ctx, in) +func (x *ClearInterfaceCountersResponse) ProtoReflect() protoreflect.Message { + mi := &file_interface_interface_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.interface.Interface/SetLoopbackMode", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(InterfaceServer).SetLoopbackMode(ctx, req.(*SetLoopbackModeRequest)) - } - return interceptor(ctx, in, info, handler) + return mi.MessageOf(x) } -func _Interface_GetLoopbackMode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetLoopbackModeRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(InterfaceServer).GetLoopbackMode(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.interface.Interface/GetLoopbackMode", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(InterfaceServer).GetLoopbackMode(ctx, req.(*GetLoopbackModeRequest)) - } - return interceptor(ctx, in, info, handler) -} +// Deprecated: Use ClearInterfaceCountersResponse.ProtoReflect.Descriptor instead. +func (*ClearInterfaceCountersResponse) Descriptor() ([]byte, []int) { + return file_interface_interface_proto_rawDescGZIP(), []int{5} +} + +var File_interface_interface_proto protoreflect.FileDescriptor + +var file_interface_interface_proto_rawDesc = []byte{ + 0x0a, 0x19, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x2f, 0x69, 0x6e, 0x74, 0x65, + 0x72, 0x66, 0x61, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x67, 0x6e, 0x6f, + 0x69, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x1a, 0x2c, 0x67, 0x69, 0x74, + 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x2f, 0x67, 0x6e, 0x6f, 0x69, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x74, 0x79, + 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x5c, 0x0a, 0x16, 0x53, 0x65, 0x74, + 0x4c, 0x6f, 0x6f, 0x70, 0x62, 0x61, 0x63, 0x6b, 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x2e, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x74, 0x79, + 0x70, 0x65, 0x73, 0x2e, 0x50, 0x61, 0x74, 0x68, 0x52, 0x09, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, + 0x61, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x22, 0x19, 0x0a, 0x17, 0x53, 0x65, 0x74, 0x4c, 0x6f, + 0x6f, 0x70, 0x62, 0x61, 0x63, 0x6b, 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x48, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x4c, 0x6f, 0x6f, 0x70, 0x62, 0x61, 0x63, + 0x6b, 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2e, 0x0a, 0x09, + 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x10, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x50, 0x61, 0x74, + 0x68, 0x52, 0x09, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x22, 0x2d, 0x0a, 0x17, + 0x47, 0x65, 0x74, 0x4c, 0x6f, 0x6f, 0x70, 0x62, 0x61, 0x63, 0x6b, 0x4d, 0x6f, 0x64, 0x65, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x22, 0x4f, 0x0a, 0x1d, 0x43, + 0x6c, 0x65, 0x61, 0x72, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x43, 0x6f, 0x75, + 0x6e, 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2e, 0x0a, 0x09, + 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x10, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x50, 0x61, 0x74, + 0x68, 0x52, 0x09, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x22, 0x20, 0x0a, 0x1e, + 0x43, 0x6c, 0x65, 0x61, 0x72, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x43, 0x6f, + 0x75, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xd2, + 0x02, 0x0a, 0x09, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x12, 0x64, 0x0a, 0x0f, + 0x53, 0x65, 0x74, 0x4c, 0x6f, 0x6f, 0x70, 0x62, 0x61, 0x63, 0x6b, 0x4d, 0x6f, 0x64, 0x65, 0x12, + 0x26, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, + 0x2e, 0x53, 0x65, 0x74, 0x4c, 0x6f, 0x6f, 0x70, 0x62, 0x61, 0x63, 0x6b, 0x4d, 0x6f, 0x64, 0x65, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x69, + 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x2e, 0x53, 0x65, 0x74, 0x4c, 0x6f, 0x6f, 0x70, + 0x62, 0x61, 0x63, 0x6b, 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x00, 0x12, 0x64, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x4c, 0x6f, 0x6f, 0x70, 0x62, 0x61, 0x63, + 0x6b, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x26, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x69, 0x6e, 0x74, + 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x2e, 0x47, 0x65, 0x74, 0x4c, 0x6f, 0x6f, 0x70, 0x62, 0x61, + 0x63, 0x6b, 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, + 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x2e, 0x47, + 0x65, 0x74, 0x4c, 0x6f, 0x6f, 0x70, 0x62, 0x61, 0x63, 0x6b, 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x79, 0x0a, 0x16, 0x43, 0x6c, 0x65, 0x61, + 0x72, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x65, + 0x72, 0x73, 0x12, 0x2d, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, + 0x61, 0x63, 0x65, 0x2e, 0x43, 0x6c, 0x65, 0x61, 0x72, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, + 0x63, 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x2e, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, + 0x63, 0x65, 0x2e, 0x43, 0x6c, 0x65, 0x61, 0x72, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, + 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x00, 0x42, 0x2e, 0x5a, 0x24, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, + 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x67, 0x6e, 0x6f, + 0x69, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0xd2, 0x3e, 0x05, 0x30, 0x2e, + 0x31, 0x2e, 0x30, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_interface_interface_proto_rawDescOnce sync.Once + file_interface_interface_proto_rawDescData = file_interface_interface_proto_rawDesc +) -func _Interface_ClearInterfaceCounters_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ClearInterfaceCountersRequest) - if err := dec(in); err != nil { - return nil, err +func file_interface_interface_proto_rawDescGZIP() []byte { + file_interface_interface_proto_rawDescOnce.Do(func() { + file_interface_interface_proto_rawDescData = protoimpl.X.CompressGZIP(file_interface_interface_proto_rawDescData) + }) + return file_interface_interface_proto_rawDescData +} + +var file_interface_interface_proto_msgTypes = make([]protoimpl.MessageInfo, 6) +var file_interface_interface_proto_goTypes = []interface{}{ + (*SetLoopbackModeRequest)(nil), // 0: gnoi.interface.SetLoopbackModeRequest + (*SetLoopbackModeResponse)(nil), // 1: gnoi.interface.SetLoopbackModeResponse + (*GetLoopbackModeRequest)(nil), // 2: gnoi.interface.GetLoopbackModeRequest + (*GetLoopbackModeResponse)(nil), // 3: gnoi.interface.GetLoopbackModeResponse + (*ClearInterfaceCountersRequest)(nil), // 4: gnoi.interface.ClearInterfaceCountersRequest + (*ClearInterfaceCountersResponse)(nil), // 5: gnoi.interface.ClearInterfaceCountersResponse + (*types.Path)(nil), // 6: gnoi.types.Path +} +var file_interface_interface_proto_depIdxs = []int32{ + 6, // 0: gnoi.interface.SetLoopbackModeRequest.interface:type_name -> gnoi.types.Path + 6, // 1: gnoi.interface.GetLoopbackModeRequest.interface:type_name -> gnoi.types.Path + 6, // 2: gnoi.interface.ClearInterfaceCountersRequest.interface:type_name -> gnoi.types.Path + 0, // 3: gnoi.interface.Interface.SetLoopbackMode:input_type -> gnoi.interface.SetLoopbackModeRequest + 2, // 4: gnoi.interface.Interface.GetLoopbackMode:input_type -> gnoi.interface.GetLoopbackModeRequest + 4, // 5: gnoi.interface.Interface.ClearInterfaceCounters:input_type -> gnoi.interface.ClearInterfaceCountersRequest + 1, // 6: gnoi.interface.Interface.SetLoopbackMode:output_type -> gnoi.interface.SetLoopbackModeResponse + 3, // 7: gnoi.interface.Interface.GetLoopbackMode:output_type -> gnoi.interface.GetLoopbackModeResponse + 5, // 8: gnoi.interface.Interface.ClearInterfaceCounters:output_type -> gnoi.interface.ClearInterfaceCountersResponse + 6, // [6:9] is the sub-list for method output_type + 3, // [3:6] is the sub-list for method input_type + 3, // [3:3] is the sub-list for extension type_name + 3, // [3:3] is the sub-list for extension extendee + 0, // [0:3] is the sub-list for field type_name +} + +func init() { file_interface_interface_proto_init() } +func file_interface_interface_proto_init() { + if File_interface_interface_proto != nil { + return } - if interceptor == nil { - return srv.(InterfaceServer).ClearInterfaceCounters(ctx, in) + if !protoimpl.UnsafeEnabled { + file_interface_interface_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SetLoopbackModeRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_interface_interface_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SetLoopbackModeResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_interface_interface_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetLoopbackModeRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_interface_interface_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetLoopbackModeResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_interface_interface_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ClearInterfaceCountersRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_interface_interface_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ClearInterfaceCountersResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.interface.Interface/ClearInterfaceCounters", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(InterfaceServer).ClearInterfaceCounters(ctx, req.(*ClearInterfaceCountersRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _Interface_serviceDesc = grpc.ServiceDesc{ - ServiceName: "gnoi.interface.Interface", - HandlerType: (*InterfaceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "SetLoopbackMode", - Handler: _Interface_SetLoopbackMode_Handler, - }, - { - MethodName: "GetLoopbackMode", - Handler: _Interface_GetLoopbackMode_Handler, - }, - { - MethodName: "ClearInterfaceCounters", - Handler: _Interface_ClearInterfaceCounters_Handler, + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_interface_interface_proto_rawDesc, + NumEnums: 0, + NumMessages: 6, + NumExtensions: 0, + NumServices: 1, }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "interface/interface.proto", + GoTypes: file_interface_interface_proto_goTypes, + DependencyIndexes: file_interface_interface_proto_depIdxs, + MessageInfos: file_interface_interface_proto_msgTypes, + }.Build() + File_interface_interface_proto = out.File + file_interface_interface_proto_rawDesc = nil + file_interface_interface_proto_goTypes = nil + file_interface_interface_proto_depIdxs = nil } diff --git a/interface/interface.proto b/interface/interface.proto index bff9f11a..b4530ce6 100644 --- a/interface/interface.proto +++ b/interface/interface.proto @@ -20,6 +20,8 @@ package gnoi.interface; import "github.com/openconfig/gnoi/types/types.proto"; +option go_package = "github.com/openconfig/gnoi/interface"; + option (types.gnoi_version) = "0.1.0"; service Interface { diff --git a/interface/interface_grpc.pb.go b/interface/interface_grpc.pb.go new file mode 100644 index 00000000..487487db --- /dev/null +++ b/interface/interface_grpc.pb.go @@ -0,0 +1,179 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. + +package _interface + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.32.0 or later. +const _ = grpc.SupportPackageIsVersion7 + +// InterfaceClient is the client API for Interface service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type InterfaceClient interface { + // SetLoopbackMode is used to set the mode of loopback on a interface. + SetLoopbackMode(ctx context.Context, in *SetLoopbackModeRequest, opts ...grpc.CallOption) (*SetLoopbackModeResponse, error) + // GetLoopbackMode is used to get the mode of loopback on a interface. + GetLoopbackMode(ctx context.Context, in *GetLoopbackModeRequest, opts ...grpc.CallOption) (*GetLoopbackModeResponse, error) + // ClearInterfaceCounters will reset the counters for the provided interface. + ClearInterfaceCounters(ctx context.Context, in *ClearInterfaceCountersRequest, opts ...grpc.CallOption) (*ClearInterfaceCountersResponse, error) +} + +type interfaceClient struct { + cc grpc.ClientConnInterface +} + +func NewInterfaceClient(cc grpc.ClientConnInterface) InterfaceClient { + return &interfaceClient{cc} +} + +func (c *interfaceClient) SetLoopbackMode(ctx context.Context, in *SetLoopbackModeRequest, opts ...grpc.CallOption) (*SetLoopbackModeResponse, error) { + out := new(SetLoopbackModeResponse) + err := c.cc.Invoke(ctx, "/gnoi.interface.Interface/SetLoopbackMode", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *interfaceClient) GetLoopbackMode(ctx context.Context, in *GetLoopbackModeRequest, opts ...grpc.CallOption) (*GetLoopbackModeResponse, error) { + out := new(GetLoopbackModeResponse) + err := c.cc.Invoke(ctx, "/gnoi.interface.Interface/GetLoopbackMode", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *interfaceClient) ClearInterfaceCounters(ctx context.Context, in *ClearInterfaceCountersRequest, opts ...grpc.CallOption) (*ClearInterfaceCountersResponse, error) { + out := new(ClearInterfaceCountersResponse) + err := c.cc.Invoke(ctx, "/gnoi.interface.Interface/ClearInterfaceCounters", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// InterfaceServer is the server API for Interface service. +// All implementations must embed UnimplementedInterfaceServer +// for forward compatibility +type InterfaceServer interface { + // SetLoopbackMode is used to set the mode of loopback on a interface. + SetLoopbackMode(context.Context, *SetLoopbackModeRequest) (*SetLoopbackModeResponse, error) + // GetLoopbackMode is used to get the mode of loopback on a interface. + GetLoopbackMode(context.Context, *GetLoopbackModeRequest) (*GetLoopbackModeResponse, error) + // ClearInterfaceCounters will reset the counters for the provided interface. + ClearInterfaceCounters(context.Context, *ClearInterfaceCountersRequest) (*ClearInterfaceCountersResponse, error) + mustEmbedUnimplementedInterfaceServer() +} + +// UnimplementedInterfaceServer must be embedded to have forward compatible implementations. +type UnimplementedInterfaceServer struct { +} + +func (UnimplementedInterfaceServer) SetLoopbackMode(context.Context, *SetLoopbackModeRequest) (*SetLoopbackModeResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SetLoopbackMode not implemented") +} +func (UnimplementedInterfaceServer) GetLoopbackMode(context.Context, *GetLoopbackModeRequest) (*GetLoopbackModeResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetLoopbackMode not implemented") +} +func (UnimplementedInterfaceServer) ClearInterfaceCounters(context.Context, *ClearInterfaceCountersRequest) (*ClearInterfaceCountersResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ClearInterfaceCounters not implemented") +} +func (UnimplementedInterfaceServer) mustEmbedUnimplementedInterfaceServer() {} + +// UnsafeInterfaceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to InterfaceServer will +// result in compilation errors. +type UnsafeInterfaceServer interface { + mustEmbedUnimplementedInterfaceServer() +} + +func RegisterInterfaceServer(s grpc.ServiceRegistrar, srv InterfaceServer) { + s.RegisterService(&Interface_ServiceDesc, srv) +} + +func _Interface_SetLoopbackMode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SetLoopbackModeRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(InterfaceServer).SetLoopbackMode(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gnoi.interface.Interface/SetLoopbackMode", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(InterfaceServer).SetLoopbackMode(ctx, req.(*SetLoopbackModeRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Interface_GetLoopbackMode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetLoopbackModeRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(InterfaceServer).GetLoopbackMode(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gnoi.interface.Interface/GetLoopbackMode", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(InterfaceServer).GetLoopbackMode(ctx, req.(*GetLoopbackModeRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Interface_ClearInterfaceCounters_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ClearInterfaceCountersRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(InterfaceServer).ClearInterfaceCounters(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gnoi.interface.Interface/ClearInterfaceCounters", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(InterfaceServer).ClearInterfaceCounters(ctx, req.(*ClearInterfaceCountersRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// Interface_ServiceDesc is the grpc.ServiceDesc for Interface service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var Interface_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "gnoi.interface.Interface", + HandlerType: (*InterfaceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "SetLoopbackMode", + Handler: _Interface_SetLoopbackMode_Handler, + }, + { + MethodName: "GetLoopbackMode", + Handler: _Interface_GetLoopbackMode_Handler, + }, + { + MethodName: "ClearInterfaceCounters", + Handler: _Interface_ClearInterfaceCounters_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "interface/interface.proto", +} diff --git a/layer2/layer2.pb.go b/layer2/layer2.pb.go index 4fdd0f30..32d2f93b 100644 --- a/layer2/layer2.pb.go +++ b/layer2/layer2.pb.go @@ -1,27 +1,41 @@ +// +// Copyright 2017 Google Inc. All Rights Reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.26.0 +// protoc v3.15.7 // source: layer2/layer2.proto -package gnoi_layer2 +package layer2 import ( - fmt "fmt" - proto "github.com/golang/protobuf/proto" types "github.com/openconfig/gnoi/types" - context "golang.org/x/net/context" - grpc "google.golang.org/grpc" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// 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 +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) type PerformBERTResponse_BERTState int32 @@ -33,774 +47,860 @@ const ( PerformBERTResponse_ERROR PerformBERTResponse_BERTState = 4 ) -var PerformBERTResponse_BERTState_name = map[int32]string{ - 0: "UNKNOWN", - 1: "DISABLED", - 2: "RUNNING", - 3: "COMPLETE", - 4: "ERROR", -} +// Enum value maps for PerformBERTResponse_BERTState. +var ( + PerformBERTResponse_BERTState_name = map[int32]string{ + 0: "UNKNOWN", + 1: "DISABLED", + 2: "RUNNING", + 3: "COMPLETE", + 4: "ERROR", + } + PerformBERTResponse_BERTState_value = map[string]int32{ + "UNKNOWN": 0, + "DISABLED": 1, + "RUNNING": 2, + "COMPLETE": 3, + "ERROR": 4, + } +) -var PerformBERTResponse_BERTState_value = map[string]int32{ - "UNKNOWN": 0, - "DISABLED": 1, - "RUNNING": 2, - "COMPLETE": 3, - "ERROR": 4, +func (x PerformBERTResponse_BERTState) Enum() *PerformBERTResponse_BERTState { + p := new(PerformBERTResponse_BERTState) + *p = x + return p } func (x PerformBERTResponse_BERTState) String() string { - return proto.EnumName(PerformBERTResponse_BERTState_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } -func (PerformBERTResponse_BERTState) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_dff9ec617d9e4348, []int{5, 0} +func (PerformBERTResponse_BERTState) Descriptor() protoreflect.EnumDescriptor { + return file_layer2_layer2_proto_enumTypes[0].Descriptor() } -type ClearNeighborDiscoveryRequest struct { - Protocol types.L3Protocol `protobuf:"varint,1,opt,name=protocol,proto3,enum=gnoi.types.L3Protocol" json:"protocol,omitempty"` - Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (PerformBERTResponse_BERTState) Type() protoreflect.EnumType { + return &file_layer2_layer2_proto_enumTypes[0] } -func (m *ClearNeighborDiscoveryRequest) Reset() { *m = ClearNeighborDiscoveryRequest{} } -func (m *ClearNeighborDiscoveryRequest) String() string { return proto.CompactTextString(m) } -func (*ClearNeighborDiscoveryRequest) ProtoMessage() {} -func (*ClearNeighborDiscoveryRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_dff9ec617d9e4348, []int{0} +func (x PerformBERTResponse_BERTState) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) } -func (m *ClearNeighborDiscoveryRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ClearNeighborDiscoveryRequest.Unmarshal(m, b) +// Deprecated: Use PerformBERTResponse_BERTState.Descriptor instead. +func (PerformBERTResponse_BERTState) EnumDescriptor() ([]byte, []int) { + return file_layer2_layer2_proto_rawDescGZIP(), []int{5, 0} } -func (m *ClearNeighborDiscoveryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ClearNeighborDiscoveryRequest.Marshal(b, m, deterministic) + +type ClearNeighborDiscoveryRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Protocol types.L3Protocol `protobuf:"varint,1,opt,name=protocol,proto3,enum=gnoi.types.L3Protocol" json:"protocol,omitempty"` + Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` } -func (m *ClearNeighborDiscoveryRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ClearNeighborDiscoveryRequest.Merge(m, src) + +func (x *ClearNeighborDiscoveryRequest) Reset() { + *x = ClearNeighborDiscoveryRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_layer2_layer2_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ClearNeighborDiscoveryRequest) XXX_Size() int { - return xxx_messageInfo_ClearNeighborDiscoveryRequest.Size(m) + +func (x *ClearNeighborDiscoveryRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ClearNeighborDiscoveryRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ClearNeighborDiscoveryRequest.DiscardUnknown(m) + +func (*ClearNeighborDiscoveryRequest) ProtoMessage() {} + +func (x *ClearNeighborDiscoveryRequest) ProtoReflect() protoreflect.Message { + mi := &file_layer2_layer2_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ClearNeighborDiscoveryRequest proto.InternalMessageInfo +// Deprecated: Use ClearNeighborDiscoveryRequest.ProtoReflect.Descriptor instead. +func (*ClearNeighborDiscoveryRequest) Descriptor() ([]byte, []int) { + return file_layer2_layer2_proto_rawDescGZIP(), []int{0} +} -func (m *ClearNeighborDiscoveryRequest) GetProtocol() types.L3Protocol { - if m != nil { - return m.Protocol +func (x *ClearNeighborDiscoveryRequest) GetProtocol() types.L3Protocol { + if x != nil { + return x.Protocol } return types.L3Protocol_UNSPECIFIED } -func (m *ClearNeighborDiscoveryRequest) GetAddress() string { - if m != nil { - return m.Address +func (x *ClearNeighborDiscoveryRequest) GetAddress() string { + if x != nil { + return x.Address } return "" } type ClearNeighborDiscoveryResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *ClearNeighborDiscoveryResponse) Reset() { *m = ClearNeighborDiscoveryResponse{} } -func (m *ClearNeighborDiscoveryResponse) String() string { return proto.CompactTextString(m) } -func (*ClearNeighborDiscoveryResponse) ProtoMessage() {} -func (*ClearNeighborDiscoveryResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_dff9ec617d9e4348, []int{1} +func (x *ClearNeighborDiscoveryResponse) Reset() { + *x = ClearNeighborDiscoveryResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_layer2_layer2_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ClearNeighborDiscoveryResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ClearNeighborDiscoveryResponse.Unmarshal(m, b) -} -func (m *ClearNeighborDiscoveryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ClearNeighborDiscoveryResponse.Marshal(b, m, deterministic) -} -func (m *ClearNeighborDiscoveryResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ClearNeighborDiscoveryResponse.Merge(m, src) -} -func (m *ClearNeighborDiscoveryResponse) XXX_Size() int { - return xxx_messageInfo_ClearNeighborDiscoveryResponse.Size(m) -} -func (m *ClearNeighborDiscoveryResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ClearNeighborDiscoveryResponse.DiscardUnknown(m) +func (x *ClearNeighborDiscoveryResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_ClearNeighborDiscoveryResponse proto.InternalMessageInfo +func (*ClearNeighborDiscoveryResponse) ProtoMessage() {} -type ClearSpanningTreeRequest struct { - Interface *types.Path `protobuf:"bytes,1,opt,name=interface,proto3" json:"interface,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *ClearNeighborDiscoveryResponse) ProtoReflect() protoreflect.Message { + mi := &file_layer2_layer2_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func (m *ClearSpanningTreeRequest) Reset() { *m = ClearSpanningTreeRequest{} } -func (m *ClearSpanningTreeRequest) String() string { return proto.CompactTextString(m) } -func (*ClearSpanningTreeRequest) ProtoMessage() {} -func (*ClearSpanningTreeRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_dff9ec617d9e4348, []int{2} +// Deprecated: Use ClearNeighborDiscoveryResponse.ProtoReflect.Descriptor instead. +func (*ClearNeighborDiscoveryResponse) Descriptor() ([]byte, []int) { + return file_layer2_layer2_proto_rawDescGZIP(), []int{1} } -func (m *ClearSpanningTreeRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ClearSpanningTreeRequest.Unmarshal(m, b) -} -func (m *ClearSpanningTreeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ClearSpanningTreeRequest.Marshal(b, m, deterministic) +type ClearSpanningTreeRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Interface *types.Path `protobuf:"bytes,1,opt,name=interface,proto3" json:"interface,omitempty"` } -func (m *ClearSpanningTreeRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ClearSpanningTreeRequest.Merge(m, src) + +func (x *ClearSpanningTreeRequest) Reset() { + *x = ClearSpanningTreeRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_layer2_layer2_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ClearSpanningTreeRequest) XXX_Size() int { - return xxx_messageInfo_ClearSpanningTreeRequest.Size(m) + +func (x *ClearSpanningTreeRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ClearSpanningTreeRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ClearSpanningTreeRequest.DiscardUnknown(m) + +func (*ClearSpanningTreeRequest) ProtoMessage() {} + +func (x *ClearSpanningTreeRequest) ProtoReflect() protoreflect.Message { + mi := &file_layer2_layer2_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ClearSpanningTreeRequest proto.InternalMessageInfo +// Deprecated: Use ClearSpanningTreeRequest.ProtoReflect.Descriptor instead. +func (*ClearSpanningTreeRequest) Descriptor() ([]byte, []int) { + return file_layer2_layer2_proto_rawDescGZIP(), []int{2} +} -func (m *ClearSpanningTreeRequest) GetInterface() *types.Path { - if m != nil { - return m.Interface +func (x *ClearSpanningTreeRequest) GetInterface() *types.Path { + if x != nil { + return x.Interface } return nil } type ClearSpanningTreeResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *ClearSpanningTreeResponse) Reset() { *m = ClearSpanningTreeResponse{} } -func (m *ClearSpanningTreeResponse) String() string { return proto.CompactTextString(m) } -func (*ClearSpanningTreeResponse) ProtoMessage() {} -func (*ClearSpanningTreeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_dff9ec617d9e4348, []int{3} +func (x *ClearSpanningTreeResponse) Reset() { + *x = ClearSpanningTreeResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_layer2_layer2_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ClearSpanningTreeResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ClearSpanningTreeResponse.Unmarshal(m, b) -} -func (m *ClearSpanningTreeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ClearSpanningTreeResponse.Marshal(b, m, deterministic) +func (x *ClearSpanningTreeResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ClearSpanningTreeResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ClearSpanningTreeResponse.Merge(m, src) -} -func (m *ClearSpanningTreeResponse) XXX_Size() int { - return xxx_messageInfo_ClearSpanningTreeResponse.Size(m) -} -func (m *ClearSpanningTreeResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ClearSpanningTreeResponse.DiscardUnknown(m) + +func (*ClearSpanningTreeResponse) ProtoMessage() {} + +func (x *ClearSpanningTreeResponse) ProtoReflect() protoreflect.Message { + mi := &file_layer2_layer2_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ClearSpanningTreeResponse proto.InternalMessageInfo +// Deprecated: Use ClearSpanningTreeResponse.ProtoReflect.Descriptor instead. +func (*ClearSpanningTreeResponse) Descriptor() ([]byte, []int) { + return file_layer2_layer2_proto_rawDescGZIP(), []int{3} +} type PerformBERTRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // ID for retrieving a previous BERT run data - optional. - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Interface *types.Path `protobuf:"bytes,2,opt,name=interface,proto3" json:"interface,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Interface *types.Path `protobuf:"bytes,2,opt,name=interface,proto3" json:"interface,omitempty"` } -func (m *PerformBERTRequest) Reset() { *m = PerformBERTRequest{} } -func (m *PerformBERTRequest) String() string { return proto.CompactTextString(m) } -func (*PerformBERTRequest) ProtoMessage() {} -func (*PerformBERTRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_dff9ec617d9e4348, []int{4} +func (x *PerformBERTRequest) Reset() { + *x = PerformBERTRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_layer2_layer2_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *PerformBERTRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PerformBERTRequest.Unmarshal(m, b) +func (x *PerformBERTRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *PerformBERTRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PerformBERTRequest.Marshal(b, m, deterministic) -} -func (m *PerformBERTRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_PerformBERTRequest.Merge(m, src) -} -func (m *PerformBERTRequest) XXX_Size() int { - return xxx_messageInfo_PerformBERTRequest.Size(m) -} -func (m *PerformBERTRequest) XXX_DiscardUnknown() { - xxx_messageInfo_PerformBERTRequest.DiscardUnknown(m) + +func (*PerformBERTRequest) ProtoMessage() {} + +func (x *PerformBERTRequest) ProtoReflect() protoreflect.Message { + mi := &file_layer2_layer2_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_PerformBERTRequest proto.InternalMessageInfo +// Deprecated: Use PerformBERTRequest.ProtoReflect.Descriptor instead. +func (*PerformBERTRequest) Descriptor() ([]byte, []int) { + return file_layer2_layer2_proto_rawDescGZIP(), []int{4} +} -func (m *PerformBERTRequest) GetId() string { - if m != nil { - return m.Id +func (x *PerformBERTRequest) GetId() string { + if x != nil { + return x.Id } return "" } -func (m *PerformBERTRequest) GetInterface() *types.Path { - if m != nil { - return m.Interface +func (x *PerformBERTRequest) GetInterface() *types.Path { + if x != nil { + return x.Interface } return nil } type PerformBERTResponse struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - State PerformBERTResponse_BERTState `protobuf:"varint,2,opt,name=state,proto3,enum=gnoi.layer2.PerformBERTResponse_BERTState" json:"state,omitempty"` - ElapsedPeriod int64 `protobuf:"varint,3,opt,name=elapsed_period,json=elapsedPeriod,proto3" json:"elapsed_period,omitempty"` - Pattern []byte `protobuf:"bytes,4,opt,name=pattern,proto3" json:"pattern,omitempty"` - Errors int64 `protobuf:"varint,5,opt,name=errors,proto3" json:"errors,omitempty"` - ReceivedBits int64 `protobuf:"varint,6,opt,name=received_bits,json=receivedBits,proto3" json:"received_bits,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *PerformBERTResponse) Reset() { *m = PerformBERTResponse{} } -func (m *PerformBERTResponse) String() string { return proto.CompactTextString(m) } -func (*PerformBERTResponse) ProtoMessage() {} -func (*PerformBERTResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_dff9ec617d9e4348, []int{5} -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *PerformBERTResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PerformBERTResponse.Unmarshal(m, b) + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + State PerformBERTResponse_BERTState `protobuf:"varint,2,opt,name=state,proto3,enum=gnoi.layer2.PerformBERTResponse_BERTState" json:"state,omitempty"` + ElapsedPeriod int64 `protobuf:"varint,3,opt,name=elapsed_period,json=elapsedPeriod,proto3" json:"elapsed_period,omitempty"` // BERT test length in nanoseconds. + Pattern []byte `protobuf:"bytes,4,opt,name=pattern,proto3" json:"pattern,omitempty"` // Pattern used for the BERT test. + // Number of errors experienced since the start of the BERT test. + Errors int64 `protobuf:"varint,5,opt,name=errors,proto3" json:"errors,omitempty"` + // Number of bits received since the start of the BERT test. + ReceivedBits int64 `protobuf:"varint,6,opt,name=received_bits,json=receivedBits,proto3" json:"received_bits,omitempty"` } -func (m *PerformBERTResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PerformBERTResponse.Marshal(b, m, deterministic) -} -func (m *PerformBERTResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_PerformBERTResponse.Merge(m, src) + +func (x *PerformBERTResponse) Reset() { + *x = PerformBERTResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_layer2_layer2_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *PerformBERTResponse) XXX_Size() int { - return xxx_messageInfo_PerformBERTResponse.Size(m) + +func (x *PerformBERTResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *PerformBERTResponse) XXX_DiscardUnknown() { - xxx_messageInfo_PerformBERTResponse.DiscardUnknown(m) + +func (*PerformBERTResponse) ProtoMessage() {} + +func (x *PerformBERTResponse) ProtoReflect() protoreflect.Message { + mi := &file_layer2_layer2_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_PerformBERTResponse proto.InternalMessageInfo +// Deprecated: Use PerformBERTResponse.ProtoReflect.Descriptor instead. +func (*PerformBERTResponse) Descriptor() ([]byte, []int) { + return file_layer2_layer2_proto_rawDescGZIP(), []int{5} +} -func (m *PerformBERTResponse) GetId() string { - if m != nil { - return m.Id +func (x *PerformBERTResponse) GetId() string { + if x != nil { + return x.Id } return "" } -func (m *PerformBERTResponse) GetState() PerformBERTResponse_BERTState { - if m != nil { - return m.State +func (x *PerformBERTResponse) GetState() PerformBERTResponse_BERTState { + if x != nil { + return x.State } return PerformBERTResponse_UNKNOWN } -func (m *PerformBERTResponse) GetElapsedPeriod() int64 { - if m != nil { - return m.ElapsedPeriod +func (x *PerformBERTResponse) GetElapsedPeriod() int64 { + if x != nil { + return x.ElapsedPeriod } return 0 } -func (m *PerformBERTResponse) GetPattern() []byte { - if m != nil { - return m.Pattern +func (x *PerformBERTResponse) GetPattern() []byte { + if x != nil { + return x.Pattern } return nil } -func (m *PerformBERTResponse) GetErrors() int64 { - if m != nil { - return m.Errors +func (x *PerformBERTResponse) GetErrors() int64 { + if x != nil { + return x.Errors } return 0 } -func (m *PerformBERTResponse) GetReceivedBits() int64 { - if m != nil { - return m.ReceivedBits +func (x *PerformBERTResponse) GetReceivedBits() int64 { + if x != nil { + return x.ReceivedBits } return 0 } type ClearLLDPInterfaceRequest struct { - Interface *types.Path `protobuf:"bytes,1,opt,name=interface,proto3" json:"interface,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *ClearLLDPInterfaceRequest) Reset() { *m = ClearLLDPInterfaceRequest{} } -func (m *ClearLLDPInterfaceRequest) String() string { return proto.CompactTextString(m) } -func (*ClearLLDPInterfaceRequest) ProtoMessage() {} -func (*ClearLLDPInterfaceRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_dff9ec617d9e4348, []int{6} -} - -func (m *ClearLLDPInterfaceRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ClearLLDPInterfaceRequest.Unmarshal(m, b) -} -func (m *ClearLLDPInterfaceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ClearLLDPInterfaceRequest.Marshal(b, m, deterministic) -} -func (m *ClearLLDPInterfaceRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ClearLLDPInterfaceRequest.Merge(m, src) + Interface *types.Path `protobuf:"bytes,1,opt,name=interface,proto3" json:"interface,omitempty"` } -func (m *ClearLLDPInterfaceRequest) XXX_Size() int { - return xxx_messageInfo_ClearLLDPInterfaceRequest.Size(m) -} -func (m *ClearLLDPInterfaceRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ClearLLDPInterfaceRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_ClearLLDPInterfaceRequest proto.InternalMessageInfo -func (m *ClearLLDPInterfaceRequest) GetInterface() *types.Path { - if m != nil { - return m.Interface +func (x *ClearLLDPInterfaceRequest) Reset() { + *x = ClearLLDPInterfaceRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_layer2_layer2_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil -} - -type ClearLLDPInterfaceResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ClearLLDPInterfaceResponse) Reset() { *m = ClearLLDPInterfaceResponse{} } -func (m *ClearLLDPInterfaceResponse) String() string { return proto.CompactTextString(m) } -func (*ClearLLDPInterfaceResponse) ProtoMessage() {} -func (*ClearLLDPInterfaceResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_dff9ec617d9e4348, []int{7} } -func (m *ClearLLDPInterfaceResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ClearLLDPInterfaceResponse.Unmarshal(m, b) +func (x *ClearLLDPInterfaceRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ClearLLDPInterfaceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ClearLLDPInterfaceResponse.Marshal(b, m, deterministic) -} -func (m *ClearLLDPInterfaceResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ClearLLDPInterfaceResponse.Merge(m, src) -} -func (m *ClearLLDPInterfaceResponse) XXX_Size() int { - return xxx_messageInfo_ClearLLDPInterfaceResponse.Size(m) -} -func (m *ClearLLDPInterfaceResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ClearLLDPInterfaceResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_ClearLLDPInterfaceResponse proto.InternalMessageInfo -type SendWakeOnLANRequest struct { - Interface *types.Path `protobuf:"bytes,1,opt,name=interface,proto3" json:"interface,omitempty"` - Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` - MacAddress []byte `protobuf:"bytes,3,opt,name=mac_address,json=macAddress,proto3" json:"mac_address,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} +func (*ClearLLDPInterfaceRequest) ProtoMessage() {} -func (m *SendWakeOnLANRequest) Reset() { *m = SendWakeOnLANRequest{} } -func (m *SendWakeOnLANRequest) String() string { return proto.CompactTextString(m) } -func (*SendWakeOnLANRequest) ProtoMessage() {} -func (*SendWakeOnLANRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_dff9ec617d9e4348, []int{8} +func (x *ClearLLDPInterfaceRequest) ProtoReflect() protoreflect.Message { + mi := &file_layer2_layer2_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func (m *SendWakeOnLANRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SendWakeOnLANRequest.Unmarshal(m, b) -} -func (m *SendWakeOnLANRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SendWakeOnLANRequest.Marshal(b, m, deterministic) -} -func (m *SendWakeOnLANRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_SendWakeOnLANRequest.Merge(m, src) -} -func (m *SendWakeOnLANRequest) XXX_Size() int { - return xxx_messageInfo_SendWakeOnLANRequest.Size(m) -} -func (m *SendWakeOnLANRequest) XXX_DiscardUnknown() { - xxx_messageInfo_SendWakeOnLANRequest.DiscardUnknown(m) +// Deprecated: Use ClearLLDPInterfaceRequest.ProtoReflect.Descriptor instead. +func (*ClearLLDPInterfaceRequest) Descriptor() ([]byte, []int) { + return file_layer2_layer2_proto_rawDescGZIP(), []int{6} } -var xxx_messageInfo_SendWakeOnLANRequest proto.InternalMessageInfo - -func (m *SendWakeOnLANRequest) GetInterface() *types.Path { - if m != nil { - return m.Interface +func (x *ClearLLDPInterfaceRequest) GetInterface() *types.Path { + if x != nil { + return x.Interface } return nil } -func (m *SendWakeOnLANRequest) GetAddress() string { - if m != nil { - return m.Address - } - return "" +type ClearLLDPInterfaceResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *SendWakeOnLANRequest) GetMacAddress() []byte { - if m != nil { - return m.MacAddress +func (x *ClearLLDPInterfaceResponse) Reset() { + *x = ClearLLDPInterfaceResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_layer2_layer2_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -type SendWakeOnLANResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *ClearLLDPInterfaceResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *SendWakeOnLANResponse) Reset() { *m = SendWakeOnLANResponse{} } -func (m *SendWakeOnLANResponse) String() string { return proto.CompactTextString(m) } -func (*SendWakeOnLANResponse) ProtoMessage() {} -func (*SendWakeOnLANResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_dff9ec617d9e4348, []int{9} -} - -func (m *SendWakeOnLANResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SendWakeOnLANResponse.Unmarshal(m, b) -} -func (m *SendWakeOnLANResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SendWakeOnLANResponse.Marshal(b, m, deterministic) -} -func (m *SendWakeOnLANResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_SendWakeOnLANResponse.Merge(m, src) -} -func (m *SendWakeOnLANResponse) XXX_Size() int { - return xxx_messageInfo_SendWakeOnLANResponse.Size(m) -} -func (m *SendWakeOnLANResponse) XXX_DiscardUnknown() { - xxx_messageInfo_SendWakeOnLANResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_SendWakeOnLANResponse proto.InternalMessageInfo - -func init() { - proto.RegisterEnum("gnoi.layer2.PerformBERTResponse_BERTState", PerformBERTResponse_BERTState_name, PerformBERTResponse_BERTState_value) - proto.RegisterType((*ClearNeighborDiscoveryRequest)(nil), "gnoi.layer2.ClearNeighborDiscoveryRequest") - proto.RegisterType((*ClearNeighborDiscoveryResponse)(nil), "gnoi.layer2.ClearNeighborDiscoveryResponse") - proto.RegisterType((*ClearSpanningTreeRequest)(nil), "gnoi.layer2.ClearSpanningTreeRequest") - proto.RegisterType((*ClearSpanningTreeResponse)(nil), "gnoi.layer2.ClearSpanningTreeResponse") - proto.RegisterType((*PerformBERTRequest)(nil), "gnoi.layer2.PerformBERTRequest") - proto.RegisterType((*PerformBERTResponse)(nil), "gnoi.layer2.PerformBERTResponse") - proto.RegisterType((*ClearLLDPInterfaceRequest)(nil), "gnoi.layer2.ClearLLDPInterfaceRequest") - proto.RegisterType((*ClearLLDPInterfaceResponse)(nil), "gnoi.layer2.ClearLLDPInterfaceResponse") - proto.RegisterType((*SendWakeOnLANRequest)(nil), "gnoi.layer2.SendWakeOnLANRequest") - proto.RegisterType((*SendWakeOnLANResponse)(nil), "gnoi.layer2.SendWakeOnLANResponse") -} - -func init() { proto.RegisterFile("layer2/layer2.proto", fileDescriptor_dff9ec617d9e4348) } - -var fileDescriptor_dff9ec617d9e4348 = []byte{ - // 617 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0xdd, 0x6e, 0xda, 0x4c, - 0x10, 0x8d, 0x21, 0x90, 0x30, 0x24, 0x88, 0x6f, 0xf3, 0x35, 0x75, 0xe9, 0x4f, 0xa8, 0xab, 0xb4, - 0xa8, 0xad, 0x4c, 0x4a, 0xee, 0xab, 0x86, 0x80, 0xaa, 0x34, 0xae, 0x41, 0x0b, 0x51, 0x7a, 0x17, - 0x19, 0x7b, 0x42, 0x56, 0x05, 0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 0xa8, 0x18, 0x7d, 0x4b, 0xf7, 0x7f, 0x07, 0x00, 0x00, 0xff, - 0xff, 0x08, 0x4f, 0xea, 0xf4, 0xef, 0x05, 0x00, 0x00, -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// Layer2Client is the client API for Layer2 service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type Layer2Client interface { - // ClearNeighborDiscovery will clear either a specific neighbor entry or - // clear the entire table based on parameters provided. - // TODO: This method is subject to deprecation once OpenConfig models this - // state. - ClearNeighborDiscovery(ctx context.Context, in *ClearNeighborDiscoveryRequest, opts ...grpc.CallOption) (*ClearNeighborDiscoveryResponse, error) - // ClearSpanningTree will reset a blocked spanning tree interface. - // TODO: This method is subject to deprecation once OpenConfig models this - // state. - ClearSpanningTree(ctx context.Context, in *ClearSpanningTreeRequest, opts ...grpc.CallOption) (*ClearSpanningTreeResponse, error) - // PerformBERT will perform a BERT operation on a port. The stream will - // return the current state of the operation as well as the ID for the - // operation. - PerformBERT(ctx context.Context, in *PerformBERTRequest, opts ...grpc.CallOption) (Layer2_PerformBERTClient, error) - // ClearLLDPInterface will clear all LLDP adjacencies on the provided - // interface. - ClearLLDPInterface(ctx context.Context, in *ClearLLDPInterfaceRequest, opts ...grpc.CallOption) (*ClearLLDPInterfaceResponse, error) - // SendWakeOnLAN will send a WOL event on the requested interface. - SendWakeOnLAN(ctx context.Context, in *SendWakeOnLANRequest, opts ...grpc.CallOption) (*SendWakeOnLANResponse, error) -} +func (*ClearLLDPInterfaceResponse) ProtoMessage() {} -type layer2Client struct { - cc *grpc.ClientConn +func (x *ClearLLDPInterfaceResponse) ProtoReflect() protoreflect.Message { + mi := &file_layer2_layer2_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func NewLayer2Client(cc *grpc.ClientConn) Layer2Client { - return &layer2Client{cc} +// Deprecated: Use ClearLLDPInterfaceResponse.ProtoReflect.Descriptor instead. +func (*ClearLLDPInterfaceResponse) Descriptor() ([]byte, []int) { + return file_layer2_layer2_proto_rawDescGZIP(), []int{7} } -func (c *layer2Client) ClearNeighborDiscovery(ctx context.Context, in *ClearNeighborDiscoveryRequest, opts ...grpc.CallOption) (*ClearNeighborDiscoveryResponse, error) { - out := new(ClearNeighborDiscoveryResponse) - err := c.cc.Invoke(ctx, "/gnoi.layer2.Layer2/ClearNeighborDiscovery", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} +type SendWakeOnLANRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (c *layer2Client) ClearSpanningTree(ctx context.Context, in *ClearSpanningTreeRequest, opts ...grpc.CallOption) (*ClearSpanningTreeResponse, error) { - out := new(ClearSpanningTreeResponse) - err := c.cc.Invoke(ctx, "/gnoi.layer2.Layer2/ClearSpanningTree", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil + Interface *types.Path `protobuf:"bytes,1,opt,name=interface,proto3" json:"interface,omitempty"` + Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` // IP address of the WOL target. + MacAddress []byte `protobuf:"bytes,3,opt,name=mac_address,json=macAddress,proto3" json:"mac_address,omitempty"` // MAC address of the target. } -func (c *layer2Client) PerformBERT(ctx context.Context, in *PerformBERTRequest, opts ...grpc.CallOption) (Layer2_PerformBERTClient, error) { - stream, err := c.cc.NewStream(ctx, &_Layer2_serviceDesc.Streams[0], "/gnoi.layer2.Layer2/PerformBERT", opts...) - if err != nil { - return nil, err - } - x := &layer2PerformBERTClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err +func (x *SendWakeOnLANRequest) Reset() { + *x = SendWakeOnLANRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_layer2_layer2_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil } -type Layer2_PerformBERTClient interface { - Recv() (*PerformBERTResponse, error) - grpc.ClientStream +func (x *SendWakeOnLANRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -type layer2PerformBERTClient struct { - grpc.ClientStream -} +func (*SendWakeOnLANRequest) ProtoMessage() {} -func (x *layer2PerformBERTClient) Recv() (*PerformBERTResponse, error) { - m := new(PerformBERTResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err +func (x *SendWakeOnLANRequest) ProtoReflect() protoreflect.Message { + mi := &file_layer2_layer2_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return m, nil + return mi.MessageOf(x) } -func (c *layer2Client) ClearLLDPInterface(ctx context.Context, in *ClearLLDPInterfaceRequest, opts ...grpc.CallOption) (*ClearLLDPInterfaceResponse, error) { - out := new(ClearLLDPInterfaceResponse) - err := c.cc.Invoke(ctx, "/gnoi.layer2.Layer2/ClearLLDPInterface", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +// Deprecated: Use SendWakeOnLANRequest.ProtoReflect.Descriptor instead. +func (*SendWakeOnLANRequest) Descriptor() ([]byte, []int) { + return file_layer2_layer2_proto_rawDescGZIP(), []int{8} } -func (c *layer2Client) SendWakeOnLAN(ctx context.Context, in *SendWakeOnLANRequest, opts ...grpc.CallOption) (*SendWakeOnLANResponse, error) { - out := new(SendWakeOnLANResponse) - err := c.cc.Invoke(ctx, "/gnoi.layer2.Layer2/SendWakeOnLAN", in, out, opts...) - if err != nil { - return nil, err +func (x *SendWakeOnLANRequest) GetInterface() *types.Path { + if x != nil { + return x.Interface } - return out, nil -} - -// Layer2Server is the server API for Layer2 service. -type Layer2Server interface { - // ClearNeighborDiscovery will clear either a specific neighbor entry or - // clear the entire table based on parameters provided. - // TODO: This method is subject to deprecation once OpenConfig models this - // state. - ClearNeighborDiscovery(context.Context, *ClearNeighborDiscoveryRequest) (*ClearNeighborDiscoveryResponse, error) - // ClearSpanningTree will reset a blocked spanning tree interface. - // TODO: This method is subject to deprecation once OpenConfig models this - // state. - ClearSpanningTree(context.Context, *ClearSpanningTreeRequest) (*ClearSpanningTreeResponse, error) - // PerformBERT will perform a BERT operation on a port. The stream will - // return the current state of the operation as well as the ID for the - // operation. - PerformBERT(*PerformBERTRequest, Layer2_PerformBERTServer) error - // ClearLLDPInterface will clear all LLDP adjacencies on the provided - // interface. - ClearLLDPInterface(context.Context, *ClearLLDPInterfaceRequest) (*ClearLLDPInterfaceResponse, error) - // SendWakeOnLAN will send a WOL event on the requested interface. - SendWakeOnLAN(context.Context, *SendWakeOnLANRequest) (*SendWakeOnLANResponse, error) -} - -func RegisterLayer2Server(s *grpc.Server, srv Layer2Server) { - s.RegisterService(&_Layer2_serviceDesc, srv) + return nil } -func _Layer2_ClearNeighborDiscovery_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ClearNeighborDiscoveryRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(Layer2Server).ClearNeighborDiscovery(ctx, in) +func (x *SendWakeOnLANRequest) GetAddress() string { + if x != nil { + return x.Address } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.layer2.Layer2/ClearNeighborDiscovery", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(Layer2Server).ClearNeighborDiscovery(ctx, req.(*ClearNeighborDiscoveryRequest)) - } - return interceptor(ctx, in, info, handler) + return "" } -func _Layer2_ClearSpanningTree_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ClearSpanningTreeRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(Layer2Server).ClearSpanningTree(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.layer2.Layer2/ClearSpanningTree", +func (x *SendWakeOnLANRequest) GetMacAddress() []byte { + if x != nil { + return x.MacAddress } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(Layer2Server).ClearSpanningTree(ctx, req.(*ClearSpanningTreeRequest)) - } - return interceptor(ctx, in, info, handler) + return nil } -func _Layer2_PerformBERT_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(PerformBERTRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(Layer2Server).PerformBERT(m, &layer2PerformBERTServer{stream}) +type SendWakeOnLANResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -type Layer2_PerformBERTServer interface { - Send(*PerformBERTResponse) error - grpc.ServerStream +func (x *SendWakeOnLANResponse) Reset() { + *x = SendWakeOnLANResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_layer2_layer2_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -type layer2PerformBERTServer struct { - grpc.ServerStream +func (x *SendWakeOnLANResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (x *layer2PerformBERTServer) Send(m *PerformBERTResponse) error { - return x.ServerStream.SendMsg(m) -} +func (*SendWakeOnLANResponse) ProtoMessage() {} -func _Layer2_ClearLLDPInterface_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ClearLLDPInterfaceRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(Layer2Server).ClearLLDPInterface(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.layer2.Layer2/ClearLLDPInterface", +func (x *SendWakeOnLANResponse) ProtoReflect() protoreflect.Message { + mi := &file_layer2_layer2_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(Layer2Server).ClearLLDPInterface(ctx, req.(*ClearLLDPInterfaceRequest)) - } - return interceptor(ctx, in, info, handler) + return mi.MessageOf(x) } -func _Layer2_SendWakeOnLAN_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SendWakeOnLANRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(Layer2Server).SendWakeOnLAN(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.layer2.Layer2/SendWakeOnLAN", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(Layer2Server).SendWakeOnLAN(ctx, req.(*SendWakeOnLANRequest)) - } - return interceptor(ctx, in, info, handler) -} +// Deprecated: Use SendWakeOnLANResponse.ProtoReflect.Descriptor instead. +func (*SendWakeOnLANResponse) Descriptor() ([]byte, []int) { + return file_layer2_layer2_proto_rawDescGZIP(), []int{9} +} + +var File_layer2_layer2_proto protoreflect.FileDescriptor + +var file_layer2_layer2_proto_rawDesc = []byte{ + 0x0a, 0x13, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x32, 0x2f, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x32, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0b, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6c, 0x61, 0x79, 0x65, + 0x72, 0x32, 0x1a, 0x2c, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, + 0x70, 0x65, 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x67, 0x6e, 0x6f, 0x69, 0x2f, 0x74, + 0x79, 0x70, 0x65, 0x73, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x22, 0x6d, 0x0a, 0x1d, 0x43, 0x6c, 0x65, 0x61, 0x72, 0x4e, 0x65, 0x69, 0x67, 0x68, 0x62, 0x6f, + 0x72, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x32, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, + 0x2e, 0x4c, 0x33, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x52, 0x08, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, + 0x20, 0x0a, 0x1e, 0x43, 0x6c, 0x65, 0x61, 0x72, 0x4e, 0x65, 0x69, 0x67, 0x68, 0x62, 0x6f, 0x72, + 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x4a, 0x0a, 0x18, 0x43, 0x6c, 0x65, 0x61, 0x72, 0x53, 0x70, 0x61, 0x6e, 0x6e, 0x69, + 0x6e, 0x67, 0x54, 0x72, 0x65, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2e, 0x0a, + 0x09, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x10, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x50, 0x61, + 0x74, 0x68, 0x52, 0x09, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x22, 0x1b, 0x0a, + 0x19, 0x43, 0x6c, 0x65, 0x61, 0x72, 0x53, 0x70, 0x61, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x54, 0x72, + 0x65, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x54, 0x0a, 0x12, 0x50, 0x65, + 0x72, 0x66, 0x6f, 0x72, 0x6d, 0x42, 0x45, 0x52, 0x54, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, + 0x12, 0x2e, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, + 0x2e, 0x50, 0x61, 0x74, 0x68, 0x52, 0x09, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, + 0x22, 0xb3, 0x02, 0x0a, 0x13, 0x50, 0x65, 0x72, 0x66, 0x6f, 0x72, 0x6d, 0x42, 0x45, 0x52, 0x54, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x40, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2a, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6c, + 0x61, 0x79, 0x65, 0x72, 0x32, 0x2e, 0x50, 0x65, 0x72, 0x66, 0x6f, 0x72, 0x6d, 0x42, 0x45, 0x52, + 0x54, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x42, 0x45, 0x52, 0x54, 0x53, 0x74, + 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x65, 0x6c, + 0x61, 0x70, 0x73, 0x65, 0x64, 0x5f, 0x70, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x03, 0x52, 0x0d, 0x65, 0x6c, 0x61, 0x70, 0x73, 0x65, 0x64, 0x50, 0x65, 0x72, 0x69, 0x6f, + 0x64, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, 0x74, 0x74, 0x65, 0x72, 0x6e, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x0c, 0x52, 0x07, 0x70, 0x61, 0x74, 0x74, 0x65, 0x72, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x65, + 0x72, 0x72, 0x6f, 0x72, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x65, 0x72, 0x72, + 0x6f, 0x72, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x5f, + 0x62, 0x69, 0x74, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x72, 0x65, 0x63, 0x65, + 0x69, 0x76, 0x65, 0x64, 0x42, 0x69, 0x74, 0x73, 0x22, 0x4c, 0x0a, 0x09, 0x42, 0x45, 0x52, 0x54, + 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, + 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x49, 0x53, 0x41, 0x42, 0x4c, 0x45, 0x44, 0x10, 0x01, + 0x12, 0x0b, 0x0a, 0x07, 0x52, 0x55, 0x4e, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x12, 0x0c, 0x0a, + 0x08, 0x43, 0x4f, 0x4d, 0x50, 0x4c, 0x45, 0x54, 0x45, 0x10, 0x03, 0x12, 0x09, 0x0a, 0x05, 0x45, + 0x52, 0x52, 0x4f, 0x52, 0x10, 0x04, 0x22, 0x4b, 0x0a, 0x19, 0x43, 0x6c, 0x65, 0x61, 0x72, 0x4c, + 0x4c, 0x44, 0x50, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x2e, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x74, 0x79, + 0x70, 0x65, 0x73, 0x2e, 0x50, 0x61, 0x74, 0x68, 0x52, 0x09, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, + 0x61, 0x63, 0x65, 0x22, 0x1c, 0x0a, 0x1a, 0x43, 0x6c, 0x65, 0x61, 0x72, 0x4c, 0x4c, 0x44, 0x50, + 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x81, 0x01, 0x0a, 0x14, 0x53, 0x65, 0x6e, 0x64, 0x57, 0x61, 0x6b, 0x65, 0x4f, 0x6e, + 0x4c, 0x41, 0x4e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2e, 0x0a, 0x09, 0x69, 0x6e, + 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, + 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x50, 0x61, 0x74, 0x68, 0x52, + 0x09, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x6d, 0x61, 0x63, 0x5f, 0x61, 0x64, 0x64, 0x72, + 0x65, 0x73, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0a, 0x6d, 0x61, 0x63, 0x41, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x17, 0x0a, 0x15, 0x53, 0x65, 0x6e, 0x64, 0x57, 0x61, 0x6b, + 0x65, 0x4f, 0x6e, 0x4c, 0x41, 0x4e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xfc, + 0x03, 0x0a, 0x06, 0x4c, 0x61, 0x79, 0x65, 0x72, 0x32, 0x12, 0x73, 0x0a, 0x16, 0x43, 0x6c, 0x65, + 0x61, 0x72, 0x4e, 0x65, 0x69, 0x67, 0x68, 0x62, 0x6f, 0x72, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, + 0x65, 0x72, 0x79, 0x12, 0x2a, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6c, 0x61, 0x79, 0x65, 0x72, + 0x32, 0x2e, 0x43, 0x6c, 0x65, 0x61, 0x72, 0x4e, 0x65, 0x69, 0x67, 0x68, 0x62, 0x6f, 0x72, 0x44, + 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x2b, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x32, 0x2e, 0x43, 0x6c, + 0x65, 0x61, 0x72, 0x4e, 0x65, 0x69, 0x67, 0x68, 0x62, 0x6f, 0x72, 0x44, 0x69, 0x73, 0x63, 0x6f, + 0x76, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x64, + 0x0a, 0x11, 0x43, 0x6c, 0x65, 0x61, 0x72, 0x53, 0x70, 0x61, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x54, + 0x72, 0x65, 0x65, 0x12, 0x25, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6c, 0x61, 0x79, 0x65, 0x72, + 0x32, 0x2e, 0x43, 0x6c, 0x65, 0x61, 0x72, 0x53, 0x70, 0x61, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x54, + 0x72, 0x65, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x67, 0x6e, 0x6f, + 0x69, 0x2e, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x32, 0x2e, 0x43, 0x6c, 0x65, 0x61, 0x72, 0x53, 0x70, + 0x61, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x54, 0x72, 0x65, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x00, 0x12, 0x54, 0x0a, 0x0b, 0x50, 0x65, 0x72, 0x66, 0x6f, 0x72, 0x6d, 0x42, + 0x45, 0x52, 0x54, 0x12, 0x1f, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6c, 0x61, 0x79, 0x65, 0x72, + 0x32, 0x2e, 0x50, 0x65, 0x72, 0x66, 0x6f, 0x72, 0x6d, 0x42, 0x45, 0x52, 0x54, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6c, 0x61, 0x79, 0x65, + 0x72, 0x32, 0x2e, 0x50, 0x65, 0x72, 0x66, 0x6f, 0x72, 0x6d, 0x42, 0x45, 0x52, 0x54, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x30, 0x01, 0x12, 0x67, 0x0a, 0x12, 0x43, 0x6c, + 0x65, 0x61, 0x72, 0x4c, 0x4c, 0x44, 0x50, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, + 0x12, 0x26, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x32, 0x2e, 0x43, + 0x6c, 0x65, 0x61, 0x72, 0x4c, 0x4c, 0x44, 0x50, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, + 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, + 0x6c, 0x61, 0x79, 0x65, 0x72, 0x32, 0x2e, 0x43, 0x6c, 0x65, 0x61, 0x72, 0x4c, 0x4c, 0x44, 0x50, + 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x00, 0x12, 0x58, 0x0a, 0x0d, 0x53, 0x65, 0x6e, 0x64, 0x57, 0x61, 0x6b, 0x65, 0x4f, + 0x6e, 0x4c, 0x41, 0x4e, 0x12, 0x21, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6c, 0x61, 0x79, 0x65, + 0x72, 0x32, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x57, 0x61, 0x6b, 0x65, 0x4f, 0x6e, 0x4c, 0x41, 0x4e, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6c, + 0x61, 0x79, 0x65, 0x72, 0x32, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x57, 0x61, 0x6b, 0x65, 0x4f, 0x6e, + 0x4c, 0x41, 0x4e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x2b, 0x5a, + 0x21, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, + 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x67, 0x6e, 0x6f, 0x69, 0x2f, 0x6c, 0x61, 0x79, 0x65, + 0x72, 0x32, 0xd2, 0x3e, 0x05, 0x30, 0x2e, 0x31, 0x2e, 0x30, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x33, +} + +var ( + file_layer2_layer2_proto_rawDescOnce sync.Once + file_layer2_layer2_proto_rawDescData = file_layer2_layer2_proto_rawDesc +) -var _Layer2_serviceDesc = grpc.ServiceDesc{ - ServiceName: "gnoi.layer2.Layer2", - HandlerType: (*Layer2Server)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "ClearNeighborDiscovery", - Handler: _Layer2_ClearNeighborDiscovery_Handler, - }, - { - MethodName: "ClearSpanningTree", - Handler: _Layer2_ClearSpanningTree_Handler, - }, - { - MethodName: "ClearLLDPInterface", - Handler: _Layer2_ClearLLDPInterface_Handler, - }, - { - MethodName: "SendWakeOnLAN", - Handler: _Layer2_SendWakeOnLAN_Handler, - }, - }, - Streams: []grpc.StreamDesc{ - { - StreamName: "PerformBERT", - Handler: _Layer2_PerformBERT_Handler, - ServerStreams: true, +func file_layer2_layer2_proto_rawDescGZIP() []byte { + file_layer2_layer2_proto_rawDescOnce.Do(func() { + file_layer2_layer2_proto_rawDescData = protoimpl.X.CompressGZIP(file_layer2_layer2_proto_rawDescData) + }) + return file_layer2_layer2_proto_rawDescData +} + +var file_layer2_layer2_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_layer2_layer2_proto_msgTypes = make([]protoimpl.MessageInfo, 10) +var file_layer2_layer2_proto_goTypes = []interface{}{ + (PerformBERTResponse_BERTState)(0), // 0: gnoi.layer2.PerformBERTResponse.BERTState + (*ClearNeighborDiscoveryRequest)(nil), // 1: gnoi.layer2.ClearNeighborDiscoveryRequest + (*ClearNeighborDiscoveryResponse)(nil), // 2: gnoi.layer2.ClearNeighborDiscoveryResponse + (*ClearSpanningTreeRequest)(nil), // 3: gnoi.layer2.ClearSpanningTreeRequest + (*ClearSpanningTreeResponse)(nil), // 4: gnoi.layer2.ClearSpanningTreeResponse + (*PerformBERTRequest)(nil), // 5: gnoi.layer2.PerformBERTRequest + (*PerformBERTResponse)(nil), // 6: gnoi.layer2.PerformBERTResponse + (*ClearLLDPInterfaceRequest)(nil), // 7: gnoi.layer2.ClearLLDPInterfaceRequest + (*ClearLLDPInterfaceResponse)(nil), // 8: gnoi.layer2.ClearLLDPInterfaceResponse + (*SendWakeOnLANRequest)(nil), // 9: gnoi.layer2.SendWakeOnLANRequest + (*SendWakeOnLANResponse)(nil), // 10: gnoi.layer2.SendWakeOnLANResponse + (types.L3Protocol)(0), // 11: gnoi.types.L3Protocol + (*types.Path)(nil), // 12: gnoi.types.Path +} +var file_layer2_layer2_proto_depIdxs = []int32{ + 11, // 0: gnoi.layer2.ClearNeighborDiscoveryRequest.protocol:type_name -> gnoi.types.L3Protocol + 12, // 1: gnoi.layer2.ClearSpanningTreeRequest.interface:type_name -> gnoi.types.Path + 12, // 2: gnoi.layer2.PerformBERTRequest.interface:type_name -> gnoi.types.Path + 0, // 3: gnoi.layer2.PerformBERTResponse.state:type_name -> gnoi.layer2.PerformBERTResponse.BERTState + 12, // 4: gnoi.layer2.ClearLLDPInterfaceRequest.interface:type_name -> gnoi.types.Path + 12, // 5: gnoi.layer2.SendWakeOnLANRequest.interface:type_name -> gnoi.types.Path + 1, // 6: gnoi.layer2.Layer2.ClearNeighborDiscovery:input_type -> gnoi.layer2.ClearNeighborDiscoveryRequest + 3, // 7: gnoi.layer2.Layer2.ClearSpanningTree:input_type -> gnoi.layer2.ClearSpanningTreeRequest + 5, // 8: gnoi.layer2.Layer2.PerformBERT:input_type -> gnoi.layer2.PerformBERTRequest + 7, // 9: gnoi.layer2.Layer2.ClearLLDPInterface:input_type -> gnoi.layer2.ClearLLDPInterfaceRequest + 9, // 10: gnoi.layer2.Layer2.SendWakeOnLAN:input_type -> gnoi.layer2.SendWakeOnLANRequest + 2, // 11: gnoi.layer2.Layer2.ClearNeighborDiscovery:output_type -> gnoi.layer2.ClearNeighborDiscoveryResponse + 4, // 12: gnoi.layer2.Layer2.ClearSpanningTree:output_type -> gnoi.layer2.ClearSpanningTreeResponse + 6, // 13: gnoi.layer2.Layer2.PerformBERT:output_type -> gnoi.layer2.PerformBERTResponse + 8, // 14: gnoi.layer2.Layer2.ClearLLDPInterface:output_type -> gnoi.layer2.ClearLLDPInterfaceResponse + 10, // 15: gnoi.layer2.Layer2.SendWakeOnLAN:output_type -> gnoi.layer2.SendWakeOnLANResponse + 11, // [11:16] is the sub-list for method output_type + 6, // [6:11] is the sub-list for method input_type + 6, // [6:6] is the sub-list for extension type_name + 6, // [6:6] is the sub-list for extension extendee + 0, // [0:6] is the sub-list for field type_name +} + +func init() { file_layer2_layer2_proto_init() } +func file_layer2_layer2_proto_init() { + if File_layer2_layer2_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_layer2_layer2_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ClearNeighborDiscoveryRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_layer2_layer2_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ClearNeighborDiscoveryResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_layer2_layer2_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ClearSpanningTreeRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_layer2_layer2_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ClearSpanningTreeResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_layer2_layer2_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PerformBERTRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_layer2_layer2_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PerformBERTResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_layer2_layer2_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ClearLLDPInterfaceRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_layer2_layer2_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ClearLLDPInterfaceResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_layer2_layer2_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SendWakeOnLANRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_layer2_layer2_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SendWakeOnLANResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_layer2_layer2_proto_rawDesc, + NumEnums: 1, + NumMessages: 10, + NumExtensions: 0, + NumServices: 1, }, - }, - Metadata: "layer2/layer2.proto", + GoTypes: file_layer2_layer2_proto_goTypes, + DependencyIndexes: file_layer2_layer2_proto_depIdxs, + EnumInfos: file_layer2_layer2_proto_enumTypes, + MessageInfos: file_layer2_layer2_proto_msgTypes, + }.Build() + File_layer2_layer2_proto = out.File + file_layer2_layer2_proto_rawDesc = nil + file_layer2_layer2_proto_goTypes = nil + file_layer2_layer2_proto_depIdxs = nil } diff --git a/layer2/layer2.proto b/layer2/layer2.proto index fe8725ec..552ac29c 100644 --- a/layer2/layer2.proto +++ b/layer2/layer2.proto @@ -20,6 +20,8 @@ package gnoi.layer2; import "github.com/openconfig/gnoi/types/types.proto"; +option go_package = "github.com/openconfig/gnoi/layer2"; + option (types.gnoi_version) = "0.1.0"; service Layer2 { diff --git a/layer2/layer2_grpc.pb.go b/layer2/layer2_grpc.pb.go new file mode 100644 index 00000000..21ae29d5 --- /dev/null +++ b/layer2/layer2_grpc.pb.go @@ -0,0 +1,299 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. + +package layer2 + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.32.0 or later. +const _ = grpc.SupportPackageIsVersion7 + +// Layer2Client is the client API for Layer2 service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type Layer2Client interface { + // ClearNeighborDiscovery will clear either a specific neighbor entry or + // clear the entire table based on parameters provided. + // TODO: This method is subject to deprecation once OpenConfig models this + // state. + ClearNeighborDiscovery(ctx context.Context, in *ClearNeighborDiscoveryRequest, opts ...grpc.CallOption) (*ClearNeighborDiscoveryResponse, error) + // ClearSpanningTree will reset a blocked spanning tree interface. + // TODO: This method is subject to deprecation once OpenConfig models this + // state. + ClearSpanningTree(ctx context.Context, in *ClearSpanningTreeRequest, opts ...grpc.CallOption) (*ClearSpanningTreeResponse, error) + // PerformBERT will perform a BERT operation on a port. The stream will + // return the current state of the operation as well as the ID for the + // operation. + PerformBERT(ctx context.Context, in *PerformBERTRequest, opts ...grpc.CallOption) (Layer2_PerformBERTClient, error) + // ClearLLDPInterface will clear all LLDP adjacencies on the provided + // interface. + ClearLLDPInterface(ctx context.Context, in *ClearLLDPInterfaceRequest, opts ...grpc.CallOption) (*ClearLLDPInterfaceResponse, error) + // SendWakeOnLAN will send a WOL event on the requested interface. + SendWakeOnLAN(ctx context.Context, in *SendWakeOnLANRequest, opts ...grpc.CallOption) (*SendWakeOnLANResponse, error) +} + +type layer2Client struct { + cc grpc.ClientConnInterface +} + +func NewLayer2Client(cc grpc.ClientConnInterface) Layer2Client { + return &layer2Client{cc} +} + +func (c *layer2Client) ClearNeighborDiscovery(ctx context.Context, in *ClearNeighborDiscoveryRequest, opts ...grpc.CallOption) (*ClearNeighborDiscoveryResponse, error) { + out := new(ClearNeighborDiscoveryResponse) + err := c.cc.Invoke(ctx, "/gnoi.layer2.Layer2/ClearNeighborDiscovery", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *layer2Client) ClearSpanningTree(ctx context.Context, in *ClearSpanningTreeRequest, opts ...grpc.CallOption) (*ClearSpanningTreeResponse, error) { + out := new(ClearSpanningTreeResponse) + err := c.cc.Invoke(ctx, "/gnoi.layer2.Layer2/ClearSpanningTree", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *layer2Client) PerformBERT(ctx context.Context, in *PerformBERTRequest, opts ...grpc.CallOption) (Layer2_PerformBERTClient, error) { + stream, err := c.cc.NewStream(ctx, &Layer2_ServiceDesc.Streams[0], "/gnoi.layer2.Layer2/PerformBERT", opts...) + if err != nil { + return nil, err + } + x := &layer2PerformBERTClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type Layer2_PerformBERTClient interface { + Recv() (*PerformBERTResponse, error) + grpc.ClientStream +} + +type layer2PerformBERTClient struct { + grpc.ClientStream +} + +func (x *layer2PerformBERTClient) Recv() (*PerformBERTResponse, error) { + m := new(PerformBERTResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *layer2Client) ClearLLDPInterface(ctx context.Context, in *ClearLLDPInterfaceRequest, opts ...grpc.CallOption) (*ClearLLDPInterfaceResponse, error) { + out := new(ClearLLDPInterfaceResponse) + err := c.cc.Invoke(ctx, "/gnoi.layer2.Layer2/ClearLLDPInterface", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *layer2Client) SendWakeOnLAN(ctx context.Context, in *SendWakeOnLANRequest, opts ...grpc.CallOption) (*SendWakeOnLANResponse, error) { + out := new(SendWakeOnLANResponse) + err := c.cc.Invoke(ctx, "/gnoi.layer2.Layer2/SendWakeOnLAN", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// Layer2Server is the server API for Layer2 service. +// All implementations must embed UnimplementedLayer2Server +// for forward compatibility +type Layer2Server interface { + // ClearNeighborDiscovery will clear either a specific neighbor entry or + // clear the entire table based on parameters provided. + // TODO: This method is subject to deprecation once OpenConfig models this + // state. + ClearNeighborDiscovery(context.Context, *ClearNeighborDiscoveryRequest) (*ClearNeighborDiscoveryResponse, error) + // ClearSpanningTree will reset a blocked spanning tree interface. + // TODO: This method is subject to deprecation once OpenConfig models this + // state. + ClearSpanningTree(context.Context, *ClearSpanningTreeRequest) (*ClearSpanningTreeResponse, error) + // PerformBERT will perform a BERT operation on a port. The stream will + // return the current state of the operation as well as the ID for the + // operation. + PerformBERT(*PerformBERTRequest, Layer2_PerformBERTServer) error + // ClearLLDPInterface will clear all LLDP adjacencies on the provided + // interface. + ClearLLDPInterface(context.Context, *ClearLLDPInterfaceRequest) (*ClearLLDPInterfaceResponse, error) + // SendWakeOnLAN will send a WOL event on the requested interface. + SendWakeOnLAN(context.Context, *SendWakeOnLANRequest) (*SendWakeOnLANResponse, error) + mustEmbedUnimplementedLayer2Server() +} + +// UnimplementedLayer2Server must be embedded to have forward compatible implementations. +type UnimplementedLayer2Server struct { +} + +func (UnimplementedLayer2Server) ClearNeighborDiscovery(context.Context, *ClearNeighborDiscoveryRequest) (*ClearNeighborDiscoveryResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ClearNeighborDiscovery not implemented") +} +func (UnimplementedLayer2Server) ClearSpanningTree(context.Context, *ClearSpanningTreeRequest) (*ClearSpanningTreeResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ClearSpanningTree not implemented") +} +func (UnimplementedLayer2Server) PerformBERT(*PerformBERTRequest, Layer2_PerformBERTServer) error { + return status.Errorf(codes.Unimplemented, "method PerformBERT not implemented") +} +func (UnimplementedLayer2Server) ClearLLDPInterface(context.Context, *ClearLLDPInterfaceRequest) (*ClearLLDPInterfaceResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ClearLLDPInterface not implemented") +} +func (UnimplementedLayer2Server) SendWakeOnLAN(context.Context, *SendWakeOnLANRequest) (*SendWakeOnLANResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SendWakeOnLAN not implemented") +} +func (UnimplementedLayer2Server) mustEmbedUnimplementedLayer2Server() {} + +// UnsafeLayer2Server may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to Layer2Server will +// result in compilation errors. +type UnsafeLayer2Server interface { + mustEmbedUnimplementedLayer2Server() +} + +func RegisterLayer2Server(s grpc.ServiceRegistrar, srv Layer2Server) { + s.RegisterService(&Layer2_ServiceDesc, srv) +} + +func _Layer2_ClearNeighborDiscovery_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ClearNeighborDiscoveryRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(Layer2Server).ClearNeighborDiscovery(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gnoi.layer2.Layer2/ClearNeighborDiscovery", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(Layer2Server).ClearNeighborDiscovery(ctx, req.(*ClearNeighborDiscoveryRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Layer2_ClearSpanningTree_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ClearSpanningTreeRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(Layer2Server).ClearSpanningTree(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gnoi.layer2.Layer2/ClearSpanningTree", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(Layer2Server).ClearSpanningTree(ctx, req.(*ClearSpanningTreeRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Layer2_PerformBERT_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(PerformBERTRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(Layer2Server).PerformBERT(m, &layer2PerformBERTServer{stream}) +} + +type Layer2_PerformBERTServer interface { + Send(*PerformBERTResponse) error + grpc.ServerStream +} + +type layer2PerformBERTServer struct { + grpc.ServerStream +} + +func (x *layer2PerformBERTServer) Send(m *PerformBERTResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _Layer2_ClearLLDPInterface_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ClearLLDPInterfaceRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(Layer2Server).ClearLLDPInterface(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gnoi.layer2.Layer2/ClearLLDPInterface", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(Layer2Server).ClearLLDPInterface(ctx, req.(*ClearLLDPInterfaceRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Layer2_SendWakeOnLAN_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SendWakeOnLANRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(Layer2Server).SendWakeOnLAN(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gnoi.layer2.Layer2/SendWakeOnLAN", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(Layer2Server).SendWakeOnLAN(ctx, req.(*SendWakeOnLANRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// Layer2_ServiceDesc is the grpc.ServiceDesc for Layer2 service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var Layer2_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "gnoi.layer2.Layer2", + HandlerType: (*Layer2Server)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "ClearNeighborDiscovery", + Handler: _Layer2_ClearNeighborDiscovery_Handler, + }, + { + MethodName: "ClearSpanningTree", + Handler: _Layer2_ClearSpanningTree_Handler, + }, + { + MethodName: "ClearLLDPInterface", + Handler: _Layer2_ClearLLDPInterface_Handler, + }, + { + MethodName: "SendWakeOnLAN", + Handler: _Layer2_SendWakeOnLAN_Handler, + }, + }, + Streams: []grpc.StreamDesc{ + { + StreamName: "PerformBERT", + Handler: _Layer2_PerformBERT_Handler, + ServerStreams: true, + }, + }, + Metadata: "layer2/layer2.proto", +} diff --git a/mpls/mpls.pb.go b/mpls/mpls.pb.go index 42f0fbb8..cc375050 100644 --- a/mpls/mpls.pb.go +++ b/mpls/mpls.pb.go @@ -1,32 +1,46 @@ +// +// Copyright 2017 Google Inc. All Rights Reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.26.0 +// protoc v3.15.7 // source: mpls/mpls.proto -package gnoi_mpls +package mpls import ( - fmt "fmt" - proto "github.com/golang/protobuf/proto" _ "github.com/openconfig/gnoi/types" - context "golang.org/x/net/context" - grpc "google.golang.org/grpc" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// 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 +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) type ClearLSPRequest_Mode int32 const ( - ClearLSPRequest_DEFAULT ClearLSPRequest_Mode = 0 + ClearLSPRequest_DEFAULT ClearLSPRequest_Mode = 0 // Same as NONAGGRESSIVE. // Reoptimize the LSP using the current bandwidth. ClearLSPRequest_NONAGGRESSIVE ClearLSPRequest_Mode = 0 // Reoptimize the LSP using the current bandwidth. Only use IGP metric in @@ -43,55 +57,99 @@ const ( ClearLSPRequest_AUTOBW_NONAGGRESSIVE ClearLSPRequest_Mode = 4 ) -var ClearLSPRequest_Mode_name = map[int32]string{ - 0: "DEFAULT", - // Duplicate value: 0: "NONAGGRESSIVE", - 1: "AGGRESSIVE", - 2: "RESET", - 3: "AUTOBW_AGGRESSIVE", - 4: "AUTOBW_NONAGGRESSIVE", -} +// Enum value maps for ClearLSPRequest_Mode. +var ( + ClearLSPRequest_Mode_name = map[int32]string{ + 0: "DEFAULT", + // Duplicate value: 0: "NONAGGRESSIVE", + 1: "AGGRESSIVE", + 2: "RESET", + 3: "AUTOBW_AGGRESSIVE", + 4: "AUTOBW_NONAGGRESSIVE", + } + ClearLSPRequest_Mode_value = map[string]int32{ + "DEFAULT": 0, + "NONAGGRESSIVE": 0, + "AGGRESSIVE": 1, + "RESET": 2, + "AUTOBW_AGGRESSIVE": 3, + "AUTOBW_NONAGGRESSIVE": 4, + } +) -var ClearLSPRequest_Mode_value = map[string]int32{ - "DEFAULT": 0, - "NONAGGRESSIVE": 0, - "AGGRESSIVE": 1, - "RESET": 2, - "AUTOBW_AGGRESSIVE": 3, - "AUTOBW_NONAGGRESSIVE": 4, +func (x ClearLSPRequest_Mode) Enum() *ClearLSPRequest_Mode { + p := new(ClearLSPRequest_Mode) + *p = x + return p } func (x ClearLSPRequest_Mode) String() string { - return proto.EnumName(ClearLSPRequest_Mode_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ClearLSPRequest_Mode) Descriptor() protoreflect.EnumDescriptor { + return file_mpls_mpls_proto_enumTypes[0].Descriptor() +} + +func (ClearLSPRequest_Mode) Type() protoreflect.EnumType { + return &file_mpls_mpls_proto_enumTypes[0] } +func (x ClearLSPRequest_Mode) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use ClearLSPRequest_Mode.Descriptor instead. func (ClearLSPRequest_Mode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_d4448d3521f3d4b5, []int{0, 0} + return file_mpls_mpls_proto_rawDescGZIP(), []int{0, 0} } type MPLSPingRequest_ReplyMode int32 const ( - MPLSPingRequest_IPV4 MPLSPingRequest_ReplyMode = 0 + // Reply via an IPv4 packet to this system. + MPLSPingRequest_IPV4 MPLSPingRequest_ReplyMode = 0 + // Reply with a labeled packet with the router alert bit set. MPLSPingRequest_ROUTER_ALERT MPLSPingRequest_ReplyMode = 1 ) -var MPLSPingRequest_ReplyMode_name = map[int32]string{ - 0: "IPV4", - 1: "ROUTER_ALERT", -} +// Enum value maps for MPLSPingRequest_ReplyMode. +var ( + MPLSPingRequest_ReplyMode_name = map[int32]string{ + 0: "IPV4", + 1: "ROUTER_ALERT", + } + MPLSPingRequest_ReplyMode_value = map[string]int32{ + "IPV4": 0, + "ROUTER_ALERT": 1, + } +) -var MPLSPingRequest_ReplyMode_value = map[string]int32{ - "IPV4": 0, - "ROUTER_ALERT": 1, +func (x MPLSPingRequest_ReplyMode) Enum() *MPLSPingRequest_ReplyMode { + p := new(MPLSPingRequest_ReplyMode) + *p = x + return p } func (x MPLSPingRequest_ReplyMode) String() string { - return proto.EnumName(MPLSPingRequest_ReplyMode_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (MPLSPingRequest_ReplyMode) Descriptor() protoreflect.EnumDescriptor { + return file_mpls_mpls_proto_enumTypes[1].Descriptor() } +func (MPLSPingRequest_ReplyMode) Type() protoreflect.EnumType { + return &file_mpls_mpls_proto_enumTypes[1] +} + +func (x MPLSPingRequest_ReplyMode) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use MPLSPingRequest_ReplyMode.Descriptor instead. func (MPLSPingRequest_ReplyMode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_d4448d3521f3d4b5, []int{6, 0} + return file_mpls_mpls_proto_rawDescGZIP(), []int{6, 0} } type MPLSPingResponse_EchoResponseCode int32 @@ -102,225 +160,284 @@ const ( // The MPLS ping packet was not sent, for an unknown reason. MPLSPingResponse_NOT_SENT MPLSPingResponse_EchoResponseCode = 1 // The local system timed out waiting for an LSP ping response. - MPLSPingResponse_TIMEOUT MPLSPingResponse_EchoResponseCode = 2 + MPLSPingResponse_TIMEOUT MPLSPingResponse_EchoResponseCode = 2 // TODO(robjs): Add additional error codes. ) -var MPLSPingResponse_EchoResponseCode_name = map[int32]string{ - 0: "SUCCESS", - 1: "NOT_SENT", - 2: "TIMEOUT", -} +// Enum value maps for MPLSPingResponse_EchoResponseCode. +var ( + MPLSPingResponse_EchoResponseCode_name = map[int32]string{ + 0: "SUCCESS", + 1: "NOT_SENT", + 2: "TIMEOUT", + } + MPLSPingResponse_EchoResponseCode_value = map[string]int32{ + "SUCCESS": 0, + "NOT_SENT": 1, + "TIMEOUT": 2, + } +) -var MPLSPingResponse_EchoResponseCode_value = map[string]int32{ - "SUCCESS": 0, - "NOT_SENT": 1, - "TIMEOUT": 2, +func (x MPLSPingResponse_EchoResponseCode) Enum() *MPLSPingResponse_EchoResponseCode { + p := new(MPLSPingResponse_EchoResponseCode) + *p = x + return p } func (x MPLSPingResponse_EchoResponseCode) String() string { - return proto.EnumName(MPLSPingResponse_EchoResponseCode_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } -func (MPLSPingResponse_EchoResponseCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_d4448d3521f3d4b5, []int{7, 0} +func (MPLSPingResponse_EchoResponseCode) Descriptor() protoreflect.EnumDescriptor { + return file_mpls_mpls_proto_enumTypes[2].Descriptor() } -// Request to clear a single tunnel on a target device. -type ClearLSPRequest struct { - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Mode ClearLSPRequest_Mode `protobuf:"varint,3,opt,name=mode,proto3,enum=gnoi.mpls.ClearLSPRequest_Mode" json:"mode,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (MPLSPingResponse_EchoResponseCode) Type() protoreflect.EnumType { + return &file_mpls_mpls_proto_enumTypes[2] } -func (m *ClearLSPRequest) Reset() { *m = ClearLSPRequest{} } -func (m *ClearLSPRequest) String() string { return proto.CompactTextString(m) } -func (*ClearLSPRequest) ProtoMessage() {} -func (*ClearLSPRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_d4448d3521f3d4b5, []int{0} +func (x MPLSPingResponse_EchoResponseCode) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) } -func (m *ClearLSPRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ClearLSPRequest.Unmarshal(m, b) +// Deprecated: Use MPLSPingResponse_EchoResponseCode.Descriptor instead. +func (MPLSPingResponse_EchoResponseCode) EnumDescriptor() ([]byte, []int) { + return file_mpls_mpls_proto_rawDescGZIP(), []int{7, 0} } -func (m *ClearLSPRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ClearLSPRequest.Marshal(b, m, deterministic) + +// Request to clear a single tunnel on a target device. +type ClearLSPRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // Name of the tunnel to clear. + Mode ClearLSPRequest_Mode `protobuf:"varint,3,opt,name=mode,proto3,enum=gnoi.mpls.ClearLSPRequest_Mode" json:"mode,omitempty"` // Tunnel clearing mode. } -func (m *ClearLSPRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ClearLSPRequest.Merge(m, src) + +func (x *ClearLSPRequest) Reset() { + *x = ClearLSPRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_mpls_mpls_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ClearLSPRequest) XXX_Size() int { - return xxx_messageInfo_ClearLSPRequest.Size(m) + +func (x *ClearLSPRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ClearLSPRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ClearLSPRequest.DiscardUnknown(m) + +func (*ClearLSPRequest) ProtoMessage() {} + +func (x *ClearLSPRequest) ProtoReflect() protoreflect.Message { + mi := &file_mpls_mpls_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ClearLSPRequest proto.InternalMessageInfo +// Deprecated: Use ClearLSPRequest.ProtoReflect.Descriptor instead. +func (*ClearLSPRequest) Descriptor() ([]byte, []int) { + return file_mpls_mpls_proto_rawDescGZIP(), []int{0} +} -func (m *ClearLSPRequest) GetName() string { - if m != nil { - return m.Name +func (x *ClearLSPRequest) GetName() string { + if x != nil { + return x.Name } return "" } -func (m *ClearLSPRequest) GetMode() ClearLSPRequest_Mode { - if m != nil { - return m.Mode +func (x *ClearLSPRequest) GetMode() ClearLSPRequest_Mode { + if x != nil { + return x.Mode } return ClearLSPRequest_DEFAULT } type ClearLSPResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *ClearLSPResponse) Reset() { *m = ClearLSPResponse{} } -func (m *ClearLSPResponse) String() string { return proto.CompactTextString(m) } -func (*ClearLSPResponse) ProtoMessage() {} -func (*ClearLSPResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_d4448d3521f3d4b5, []int{1} +func (x *ClearLSPResponse) Reset() { + *x = ClearLSPResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_mpls_mpls_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ClearLSPResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ClearLSPResponse.Unmarshal(m, b) -} -func (m *ClearLSPResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ClearLSPResponse.Marshal(b, m, deterministic) -} -func (m *ClearLSPResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ClearLSPResponse.Merge(m, src) -} -func (m *ClearLSPResponse) XXX_Size() int { - return xxx_messageInfo_ClearLSPResponse.Size(m) +func (x *ClearLSPResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ClearLSPResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ClearLSPResponse.DiscardUnknown(m) + +func (*ClearLSPResponse) ProtoMessage() {} + +func (x *ClearLSPResponse) ProtoReflect() protoreflect.Message { + mi := &file_mpls_mpls_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ClearLSPResponse proto.InternalMessageInfo +// Deprecated: Use ClearLSPResponse.ProtoReflect.Descriptor instead. +func (*ClearLSPResponse) Descriptor() ([]byte, []int) { + return file_mpls_mpls_proto_rawDescGZIP(), []int{1} +} // Request to clear a single tunnel counters on a target device. type ClearLSPCountersRequest struct { - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *ClearLSPCountersRequest) Reset() { *m = ClearLSPCountersRequest{} } -func (m *ClearLSPCountersRequest) String() string { return proto.CompactTextString(m) } -func (*ClearLSPCountersRequest) ProtoMessage() {} -func (*ClearLSPCountersRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_d4448d3521f3d4b5, []int{2} + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // Name of the tunnel to clear. } -func (m *ClearLSPCountersRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ClearLSPCountersRequest.Unmarshal(m, b) -} -func (m *ClearLSPCountersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ClearLSPCountersRequest.Marshal(b, m, deterministic) -} -func (m *ClearLSPCountersRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ClearLSPCountersRequest.Merge(m, src) +func (x *ClearLSPCountersRequest) Reset() { + *x = ClearLSPCountersRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_mpls_mpls_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ClearLSPCountersRequest) XXX_Size() int { - return xxx_messageInfo_ClearLSPCountersRequest.Size(m) + +func (x *ClearLSPCountersRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ClearLSPCountersRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ClearLSPCountersRequest.DiscardUnknown(m) + +func (*ClearLSPCountersRequest) ProtoMessage() {} + +func (x *ClearLSPCountersRequest) ProtoReflect() protoreflect.Message { + mi := &file_mpls_mpls_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ClearLSPCountersRequest proto.InternalMessageInfo +// Deprecated: Use ClearLSPCountersRequest.ProtoReflect.Descriptor instead. +func (*ClearLSPCountersRequest) Descriptor() ([]byte, []int) { + return file_mpls_mpls_proto_rawDescGZIP(), []int{2} +} -func (m *ClearLSPCountersRequest) GetName() string { - if m != nil { - return m.Name +func (x *ClearLSPCountersRequest) GetName() string { + if x != nil { + return x.Name } return "" } type ClearLSPCountersResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *ClearLSPCountersResponse) Reset() { *m = ClearLSPCountersResponse{} } -func (m *ClearLSPCountersResponse) String() string { return proto.CompactTextString(m) } -func (*ClearLSPCountersResponse) ProtoMessage() {} -func (*ClearLSPCountersResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_d4448d3521f3d4b5, []int{3} +func (x *ClearLSPCountersResponse) Reset() { + *x = ClearLSPCountersResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_mpls_mpls_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ClearLSPCountersResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ClearLSPCountersResponse.Unmarshal(m, b) +func (x *ClearLSPCountersResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ClearLSPCountersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ClearLSPCountersResponse.Marshal(b, m, deterministic) -} -func (m *ClearLSPCountersResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ClearLSPCountersResponse.Merge(m, src) -} -func (m *ClearLSPCountersResponse) XXX_Size() int { - return xxx_messageInfo_ClearLSPCountersResponse.Size(m) -} -func (m *ClearLSPCountersResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ClearLSPCountersResponse.DiscardUnknown(m) + +func (*ClearLSPCountersResponse) ProtoMessage() {} + +func (x *ClearLSPCountersResponse) ProtoReflect() protoreflect.Message { + mi := &file_mpls_mpls_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ClearLSPCountersResponse proto.InternalMessageInfo +// Deprecated: Use ClearLSPCountersResponse.ProtoReflect.Descriptor instead. +func (*ClearLSPCountersResponse) Descriptor() ([]byte, []int) { + return file_mpls_mpls_proto_rawDescGZIP(), []int{3} +} type MPLSPingPWEDestination struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // The address of the egress LER that the MPLS ping should be sent on when // destined to a PWE service. Eler string `protobuf:"bytes,1,opt,name=eler,proto3" json:"eler,omitempty"` // The virtual circuit ID for the PWE via which the ping should be sent. - Vcid uint32 `protobuf:"varint,2,opt,name=vcid,proto3" json:"vcid,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Vcid uint32 `protobuf:"varint,2,opt,name=vcid,proto3" json:"vcid,omitempty"` } -func (m *MPLSPingPWEDestination) Reset() { *m = MPLSPingPWEDestination{} } -func (m *MPLSPingPWEDestination) String() string { return proto.CompactTextString(m) } -func (*MPLSPingPWEDestination) ProtoMessage() {} -func (*MPLSPingPWEDestination) Descriptor() ([]byte, []int) { - return fileDescriptor_d4448d3521f3d4b5, []int{4} +func (x *MPLSPingPWEDestination) Reset() { + *x = MPLSPingPWEDestination{} + if protoimpl.UnsafeEnabled { + mi := &file_mpls_mpls_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *MPLSPingPWEDestination) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_MPLSPingPWEDestination.Unmarshal(m, b) +func (x *MPLSPingPWEDestination) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *MPLSPingPWEDestination) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_MPLSPingPWEDestination.Marshal(b, m, deterministic) -} -func (m *MPLSPingPWEDestination) XXX_Merge(src proto.Message) { - xxx_messageInfo_MPLSPingPWEDestination.Merge(m, src) -} -func (m *MPLSPingPWEDestination) XXX_Size() int { - return xxx_messageInfo_MPLSPingPWEDestination.Size(m) -} -func (m *MPLSPingPWEDestination) XXX_DiscardUnknown() { - xxx_messageInfo_MPLSPingPWEDestination.DiscardUnknown(m) + +func (*MPLSPingPWEDestination) ProtoMessage() {} + +func (x *MPLSPingPWEDestination) ProtoReflect() protoreflect.Message { + mi := &file_mpls_mpls_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_MPLSPingPWEDestination proto.InternalMessageInfo +// Deprecated: Use MPLSPingPWEDestination.ProtoReflect.Descriptor instead. +func (*MPLSPingPWEDestination) Descriptor() ([]byte, []int) { + return file_mpls_mpls_proto_rawDescGZIP(), []int{4} +} -func (m *MPLSPingPWEDestination) GetEler() string { - if m != nil { - return m.Eler +func (x *MPLSPingPWEDestination) GetEler() string { + if x != nil { + return x.Eler } return "" } -func (m *MPLSPingPWEDestination) GetVcid() uint32 { - if m != nil { - return m.Vcid +func (x *MPLSPingPWEDestination) GetVcid() uint32 { + if x != nil { + return x.Vcid } return 0 } @@ -329,6 +446,10 @@ func (m *MPLSPingPWEDestination) GetVcid() uint32 { // terms of an absolute specification of an RSVP-TE LSP. It can be used to // identify an individual RSVP-TE session via which a ping should be sent. type MPLSPingRSVPTEDestination struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // The IPv4 or IPv6 address used by the system initiating (acting as the // head-end) of the RSVP-TE LSP. Src string `protobuf:"bytes,1,opt,name=src,proto3" json:"src,omitempty"` @@ -337,54 +458,58 @@ type MPLSPingRSVPTEDestination struct { Dst string `protobuf:"bytes,2,opt,name=dst,proto3" json:"dst,omitempty"` // The extended tunnel ID of the RSVP-TE LSP, expressed as an unsigned, 32b // integer. - ExtendedTunnelId uint32 `protobuf:"varint,3,opt,name=extended_tunnel_id,json=extendedTunnelId,proto3" json:"extended_tunnel_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + ExtendedTunnelId uint32 `protobuf:"varint,3,opt,name=extended_tunnel_id,json=extendedTunnelId,proto3" json:"extended_tunnel_id,omitempty"` } -func (m *MPLSPingRSVPTEDestination) Reset() { *m = MPLSPingRSVPTEDestination{} } -func (m *MPLSPingRSVPTEDestination) String() string { return proto.CompactTextString(m) } -func (*MPLSPingRSVPTEDestination) ProtoMessage() {} -func (*MPLSPingRSVPTEDestination) Descriptor() ([]byte, []int) { - return fileDescriptor_d4448d3521f3d4b5, []int{5} +func (x *MPLSPingRSVPTEDestination) Reset() { + *x = MPLSPingRSVPTEDestination{} + if protoimpl.UnsafeEnabled { + mi := &file_mpls_mpls_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *MPLSPingRSVPTEDestination) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_MPLSPingRSVPTEDestination.Unmarshal(m, b) -} -func (m *MPLSPingRSVPTEDestination) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_MPLSPingRSVPTEDestination.Marshal(b, m, deterministic) -} -func (m *MPLSPingRSVPTEDestination) XXX_Merge(src proto.Message) { - xxx_messageInfo_MPLSPingRSVPTEDestination.Merge(m, src) +func (x *MPLSPingRSVPTEDestination) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *MPLSPingRSVPTEDestination) XXX_Size() int { - return xxx_messageInfo_MPLSPingRSVPTEDestination.Size(m) -} -func (m *MPLSPingRSVPTEDestination) XXX_DiscardUnknown() { - xxx_messageInfo_MPLSPingRSVPTEDestination.DiscardUnknown(m) + +func (*MPLSPingRSVPTEDestination) ProtoMessage() {} + +func (x *MPLSPingRSVPTEDestination) ProtoReflect() protoreflect.Message { + mi := &file_mpls_mpls_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_MPLSPingRSVPTEDestination proto.InternalMessageInfo +// Deprecated: Use MPLSPingRSVPTEDestination.ProtoReflect.Descriptor instead. +func (*MPLSPingRSVPTEDestination) Descriptor() ([]byte, []int) { + return file_mpls_mpls_proto_rawDescGZIP(), []int{5} +} -func (m *MPLSPingRSVPTEDestination) GetSrc() string { - if m != nil { - return m.Src +func (x *MPLSPingRSVPTEDestination) GetSrc() string { + if x != nil { + return x.Src } return "" } -func (m *MPLSPingRSVPTEDestination) GetDst() string { - if m != nil { - return m.Dst +func (x *MPLSPingRSVPTEDestination) GetDst() string { + if x != nil { + return x.Dst } return "" } -func (m *MPLSPingRSVPTEDestination) GetExtendedTunnelId() uint32 { - if m != nil { - return m.ExtendedTunnelId +func (x *MPLSPingRSVPTEDestination) GetExtendedTunnelId() uint32 { + if x != nil { + return x.ExtendedTunnelId } return 0 } @@ -392,85 +517,66 @@ func (m *MPLSPingRSVPTEDestination) GetExtendedTunnelId() uint32 { // MPLSPingRequest specifies the parameters that should be used as input from // the client, to a system that is initiating an RFC4379 MPLS ping request. type MPLSPingRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // One field within the destination field should be specified to determine // the destination of the LSP ping. // - // Types that are valid to be assigned to Destination: + // Types that are assignable to Destination: // *MPLSPingRequest_LdpFec // *MPLSPingRequest_Fec129Pwe // *MPLSPingRequest_RsvpteLspName // *MPLSPingRequest_RsvpteLsp Destination isMPLSPingRequest_Destination `protobuf_oneof:"destination"` - ReplyMode MPLSPingRequest_ReplyMode `protobuf:"varint,6,opt,name=reply_mode,json=replyMode,proto3,enum=gnoi.mpls.MPLSPingRequest_ReplyMode" json:"reply_mode,omitempty"` + // How the target LER should respond to the LSP ping. + ReplyMode MPLSPingRequest_ReplyMode `protobuf:"varint,6,opt,name=reply_mode,json=replyMode,proto3,enum=gnoi.mpls.MPLSPingRequest_ReplyMode" json:"reply_mode,omitempty"` // The number of MPLS echo request packets to send. - Count uint32 `protobuf:"varint,7,opt,name=count,proto3" json:"count,omitempty"` + Count uint32 `protobuf:"varint,7,opt,name=count,proto3" json:"count,omitempty"` // default=3 // The size (in bytes) of each MPLS echo request packet. - Size uint32 `protobuf:"varint,8,opt,name=size,proto3" json:"size,omitempty"` + Size uint32 `protobuf:"varint,8,opt,name=size,proto3" json:"size,omitempty"` // default=64 // The source IPv4 address that should be used in the request packet. SourceAddress string `protobuf:"bytes,9,opt,name=source_address,json=sourceAddress,proto3" json:"source_address,omitempty"` // The MPLS TTL that should be set in the packets sent. MplsTtl uint32 `protobuf:"varint,10,opt,name=mpls_ttl,json=mplsTtl,proto3" json:"mpls_ttl,omitempty"` // The value of the traffic class (TC, formerly known as EXP) bits that // should be set in the MPLS ping packets. - TrafficClass uint32 `protobuf:"varint,11,opt,name=traffic_class,json=trafficClass,proto3" json:"traffic_class,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *MPLSPingRequest) Reset() { *m = MPLSPingRequest{} } -func (m *MPLSPingRequest) String() string { return proto.CompactTextString(m) } -func (*MPLSPingRequest) ProtoMessage() {} -func (*MPLSPingRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_d4448d3521f3d4b5, []int{6} -} - -func (m *MPLSPingRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_MPLSPingRequest.Unmarshal(m, b) -} -func (m *MPLSPingRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_MPLSPingRequest.Marshal(b, m, deterministic) -} -func (m *MPLSPingRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_MPLSPingRequest.Merge(m, src) -} -func (m *MPLSPingRequest) XXX_Size() int { - return xxx_messageInfo_MPLSPingRequest.Size(m) -} -func (m *MPLSPingRequest) XXX_DiscardUnknown() { - xxx_messageInfo_MPLSPingRequest.DiscardUnknown(m) + TrafficClass uint32 `protobuf:"varint,11,opt,name=traffic_class,json=trafficClass,proto3" json:"traffic_class,omitempty"` } -var xxx_messageInfo_MPLSPingRequest proto.InternalMessageInfo - -type isMPLSPingRequest_Destination interface { - isMPLSPingRequest_Destination() +func (x *MPLSPingRequest) Reset() { + *x = MPLSPingRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_mpls_mpls_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -type MPLSPingRequest_LdpFec struct { - LdpFec string `protobuf:"bytes,1,opt,name=ldp_fec,json=ldpFec,proto3,oneof"` +func (x *MPLSPingRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -type MPLSPingRequest_Fec129Pwe struct { - Fec129Pwe *MPLSPingPWEDestination `protobuf:"bytes,2,opt,name=fec129_pwe,json=fec129Pwe,proto3,oneof"` -} +func (*MPLSPingRequest) ProtoMessage() {} -type MPLSPingRequest_RsvpteLspName struct { - RsvpteLspName string `protobuf:"bytes,4,opt,name=rsvpte_lsp_name,json=rsvpteLspName,proto3,oneof"` +func (x *MPLSPingRequest) ProtoReflect() protoreflect.Message { + mi := &file_mpls_mpls_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -type MPLSPingRequest_RsvpteLsp struct { - RsvpteLsp *MPLSPingRSVPTEDestination `protobuf:"bytes,5,opt,name=rsvpte_lsp,json=rsvpteLsp,proto3,oneof"` +// Deprecated: Use MPLSPingRequest.ProtoReflect.Descriptor instead. +func (*MPLSPingRequest) Descriptor() ([]byte, []int) { + return file_mpls_mpls_proto_rawDescGZIP(), []int{6} } -func (*MPLSPingRequest_LdpFec) isMPLSPingRequest_Destination() {} - -func (*MPLSPingRequest_Fec129Pwe) isMPLSPingRequest_Destination() {} - -func (*MPLSPingRequest_RsvpteLspName) isMPLSPingRequest_Destination() {} - -func (*MPLSPingRequest_RsvpteLsp) isMPLSPingRequest_Destination() {} - func (m *MPLSPingRequest) GetDestination() isMPLSPingRequest_Destination { if m != nil { return m.Destination @@ -478,480 +584,455 @@ func (m *MPLSPingRequest) GetDestination() isMPLSPingRequest_Destination { return nil } -func (m *MPLSPingRequest) GetLdpFec() string { - if x, ok := m.GetDestination().(*MPLSPingRequest_LdpFec); ok { +func (x *MPLSPingRequest) GetLdpFec() string { + if x, ok := x.GetDestination().(*MPLSPingRequest_LdpFec); ok { return x.LdpFec } return "" } -func (m *MPLSPingRequest) GetFec129Pwe() *MPLSPingPWEDestination { - if x, ok := m.GetDestination().(*MPLSPingRequest_Fec129Pwe); ok { +func (x *MPLSPingRequest) GetFec129Pwe() *MPLSPingPWEDestination { + if x, ok := x.GetDestination().(*MPLSPingRequest_Fec129Pwe); ok { return x.Fec129Pwe } return nil } -func (m *MPLSPingRequest) GetRsvpteLspName() string { - if x, ok := m.GetDestination().(*MPLSPingRequest_RsvpteLspName); ok { +func (x *MPLSPingRequest) GetRsvpteLspName() string { + if x, ok := x.GetDestination().(*MPLSPingRequest_RsvpteLspName); ok { return x.RsvpteLspName } return "" } -func (m *MPLSPingRequest) GetRsvpteLsp() *MPLSPingRSVPTEDestination { - if x, ok := m.GetDestination().(*MPLSPingRequest_RsvpteLsp); ok { +func (x *MPLSPingRequest) GetRsvpteLsp() *MPLSPingRSVPTEDestination { + if x, ok := x.GetDestination().(*MPLSPingRequest_RsvpteLsp); ok { return x.RsvpteLsp } return nil } -func (m *MPLSPingRequest) GetReplyMode() MPLSPingRequest_ReplyMode { - if m != nil { - return m.ReplyMode +func (x *MPLSPingRequest) GetReplyMode() MPLSPingRequest_ReplyMode { + if x != nil { + return x.ReplyMode } return MPLSPingRequest_IPV4 } -func (m *MPLSPingRequest) GetCount() uint32 { - if m != nil { - return m.Count +func (x *MPLSPingRequest) GetCount() uint32 { + if x != nil { + return x.Count } return 0 } -func (m *MPLSPingRequest) GetSize() uint32 { - if m != nil { - return m.Size +func (x *MPLSPingRequest) GetSize() uint32 { + if x != nil { + return x.Size } return 0 } -func (m *MPLSPingRequest) GetSourceAddress() string { - if m != nil { - return m.SourceAddress +func (x *MPLSPingRequest) GetSourceAddress() string { + if x != nil { + return x.SourceAddress } return "" } -func (m *MPLSPingRequest) GetMplsTtl() uint32 { - if m != nil { - return m.MplsTtl +func (x *MPLSPingRequest) GetMplsTtl() uint32 { + if x != nil { + return x.MplsTtl } return 0 } -func (m *MPLSPingRequest) GetTrafficClass() uint32 { - if m != nil { - return m.TrafficClass +func (x *MPLSPingRequest) GetTrafficClass() uint32 { + if x != nil { + return x.TrafficClass } return 0 } -// XXX_OneofFuncs is for the internal use of the proto package. -func (*MPLSPingRequest) 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 _MPLSPingRequest_OneofMarshaler, _MPLSPingRequest_OneofUnmarshaler, _MPLSPingRequest_OneofSizer, []interface{}{ - (*MPLSPingRequest_LdpFec)(nil), - (*MPLSPingRequest_Fec129Pwe)(nil), - (*MPLSPingRequest_RsvpteLspName)(nil), - (*MPLSPingRequest_RsvpteLsp)(nil), - } +type isMPLSPingRequest_Destination interface { + isMPLSPingRequest_Destination() } -func _MPLSPingRequest_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { - m := msg.(*MPLSPingRequest) - // destination - switch x := m.Destination.(type) { - case *MPLSPingRequest_LdpFec: - b.EncodeVarint(1<<3 | proto.WireBytes) - b.EncodeStringBytes(x.LdpFec) - case *MPLSPingRequest_Fec129Pwe: - b.EncodeVarint(2<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.Fec129Pwe); err != nil { - return err - } - case *MPLSPingRequest_RsvpteLspName: - b.EncodeVarint(4<<3 | proto.WireBytes) - b.EncodeStringBytes(x.RsvpteLspName) - case *MPLSPingRequest_RsvpteLsp: - b.EncodeVarint(5<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.RsvpteLsp); err != nil { - return err - } - case nil: - default: - return fmt.Errorf("MPLSPingRequest.Destination has unexpected type %T", x) - } - return nil +type MPLSPingRequest_LdpFec struct { + // The LDP forwarding equivalence class that the ping should be sent to + // expressed as an IPv4 or IPv6 prefix. + LdpFec string `protobuf:"bytes,1,opt,name=ldp_fec,json=ldpFec,proto3,oneof"` } -func _MPLSPingRequest_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { - m := msg.(*MPLSPingRequest) - switch tag { - case 1: // destination.ldp_fec - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - x, err := b.DecodeStringBytes() - m.Destination = &MPLSPingRequest_LdpFec{x} - return true, err - case 2: // destination.fec129_pwe - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(MPLSPingPWEDestination) - err := b.DecodeMessage(msg) - m.Destination = &MPLSPingRequest_Fec129Pwe{msg} - return true, err - case 4: // destination.rsvpte_lsp_name - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - x, err := b.DecodeStringBytes() - m.Destination = &MPLSPingRequest_RsvpteLspName{x} - return true, err - case 5: // destination.rsvpte_lsp - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(MPLSPingRSVPTEDestination) - err := b.DecodeMessage(msg) - m.Destination = &MPLSPingRequest_RsvpteLsp{msg} - return true, err - default: - return false, nil - } -} - -func _MPLSPingRequest_OneofSizer(msg proto.Message) (n int) { - m := msg.(*MPLSPingRequest) - // destination - switch x := m.Destination.(type) { - case *MPLSPingRequest_LdpFec: - n += 1 // tag and wire - n += proto.SizeVarint(uint64(len(x.LdpFec))) - n += len(x.LdpFec) - case *MPLSPingRequest_Fec129Pwe: - s := proto.Size(x.Fec129Pwe) - n += 1 // tag and wire - n += proto.SizeVarint(uint64(s)) - n += s - case *MPLSPingRequest_RsvpteLspName: - n += 1 // tag and wire - n += proto.SizeVarint(uint64(len(x.RsvpteLspName))) - n += len(x.RsvpteLspName) - case *MPLSPingRequest_RsvpteLsp: - s := proto.Size(x.RsvpteLsp) - n += 1 // tag and wire - n += proto.SizeVarint(uint64(s)) - n += s - case nil: - default: - panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) - } - return n +type MPLSPingRequest_Fec129Pwe struct { + // The FEC129 PWE to which the LSP ping should be sent. + Fec129Pwe *MPLSPingPWEDestination `protobuf:"bytes,2,opt,name=fec129_pwe,json=fec129Pwe,proto3,oneof"` +} + +type MPLSPingRequest_RsvpteLspName struct { + // The name of an RSVP-TE LSP via which the ping should be sent. The system + // should locally resolve the name to a particular RSVP-TE session. + RsvpteLspName string `protobuf:"bytes,4,opt,name=rsvpte_lsp_name,json=rsvpteLspName,proto3,oneof"` } +type MPLSPingRequest_RsvpteLsp struct { + // An exact specification of an RSVP-TE LSP to which the system should send + // an MPLS ping message. + RsvpteLsp *MPLSPingRSVPTEDestination `protobuf:"bytes,5,opt,name=rsvpte_lsp,json=rsvpteLsp,proto3,oneof"` // TODO(robjs): L3VPN, BGP-LU destination types. See RFC4379. +} + +func (*MPLSPingRequest_LdpFec) isMPLSPingRequest_Destination() {} + +func (*MPLSPingRequest_Fec129Pwe) isMPLSPingRequest_Destination() {} + +func (*MPLSPingRequest_RsvpteLspName) isMPLSPingRequest_Destination() {} + +func (*MPLSPingRequest_RsvpteLsp) isMPLSPingRequest_Destination() {} + // MPLSPingResponse (MPLSPong?) is sent from the target to the client based on // each MPLS Echo Response packet it receives associated with an input MPLSPing // RPC. type MPLSPingResponse struct { - Seq uint32 `protobuf:"varint,1,opt,name=seq,proto3" json:"seq,omitempty"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Seq uint32 `protobuf:"varint,1,opt,name=seq,proto3" json:"seq,omitempty"` // The sequence number of the MPLS Echo Reply. // The response that was received from the egress LER. Response MPLSPingResponse_EchoResponseCode `protobuf:"varint,2,opt,name=response,proto3,enum=gnoi.mpls.MPLSPingResponse_EchoResponseCode" json:"response,omitempty"` // The time (in nanoseconds) between transmission of the Echo Response, // and the echo reply. - ResponseTime uint64 `protobuf:"varint,3,opt,name=response_time,json=responseTime,proto3" json:"response_time,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + ResponseTime uint64 `protobuf:"varint,3,opt,name=response_time,json=responseTime,proto3" json:"response_time,omitempty"` } -func (m *MPLSPingResponse) Reset() { *m = MPLSPingResponse{} } -func (m *MPLSPingResponse) String() string { return proto.CompactTextString(m) } -func (*MPLSPingResponse) ProtoMessage() {} -func (*MPLSPingResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_d4448d3521f3d4b5, []int{7} +func (x *MPLSPingResponse) Reset() { + *x = MPLSPingResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_mpls_mpls_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *MPLSPingResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_MPLSPingResponse.Unmarshal(m, b) -} -func (m *MPLSPingResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_MPLSPingResponse.Marshal(b, m, deterministic) -} -func (m *MPLSPingResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MPLSPingResponse.Merge(m, src) -} -func (m *MPLSPingResponse) XXX_Size() int { - return xxx_messageInfo_MPLSPingResponse.Size(m) -} -func (m *MPLSPingResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MPLSPingResponse.DiscardUnknown(m) +func (x *MPLSPingResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_MPLSPingResponse proto.InternalMessageInfo +func (*MPLSPingResponse) ProtoMessage() {} -func (m *MPLSPingResponse) GetSeq() uint32 { - if m != nil { - return m.Seq +func (x *MPLSPingResponse) ProtoReflect() protoreflect.Message { + mi := &file_mpls_mpls_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return 0 + return mi.MessageOf(x) } -func (m *MPLSPingResponse) GetResponse() MPLSPingResponse_EchoResponseCode { - if m != nil { - return m.Response - } - return MPLSPingResponse_SUCCESS +// Deprecated: Use MPLSPingResponse.ProtoReflect.Descriptor instead. +func (*MPLSPingResponse) Descriptor() ([]byte, []int) { + return file_mpls_mpls_proto_rawDescGZIP(), []int{7} } -func (m *MPLSPingResponse) GetResponseTime() uint64 { - if m != nil { - return m.ResponseTime +func (x *MPLSPingResponse) GetSeq() uint32 { + if x != nil { + return x.Seq } return 0 } -func init() { - proto.RegisterEnum("gnoi.mpls.ClearLSPRequest_Mode", ClearLSPRequest_Mode_name, ClearLSPRequest_Mode_value) - proto.RegisterEnum("gnoi.mpls.MPLSPingRequest_ReplyMode", MPLSPingRequest_ReplyMode_name, MPLSPingRequest_ReplyMode_value) - proto.RegisterEnum("gnoi.mpls.MPLSPingResponse_EchoResponseCode", MPLSPingResponse_EchoResponseCode_name, MPLSPingResponse_EchoResponseCode_value) - proto.RegisterType((*ClearLSPRequest)(nil), "gnoi.mpls.ClearLSPRequest") - proto.RegisterType((*ClearLSPResponse)(nil), "gnoi.mpls.ClearLSPResponse") - proto.RegisterType((*ClearLSPCountersRequest)(nil), "gnoi.mpls.ClearLSPCountersRequest") - proto.RegisterType((*ClearLSPCountersResponse)(nil), "gnoi.mpls.ClearLSPCountersResponse") - proto.RegisterType((*MPLSPingPWEDestination)(nil), "gnoi.mpls.MPLSPingPWEDestination") - proto.RegisterType((*MPLSPingRSVPTEDestination)(nil), "gnoi.mpls.MPLSPingRSVPTEDestination") - proto.RegisterType((*MPLSPingRequest)(nil), "gnoi.mpls.MPLSPingRequest") - proto.RegisterType((*MPLSPingResponse)(nil), "gnoi.mpls.MPLSPingResponse") -} - -func init() { proto.RegisterFile("mpls/mpls.proto", fileDescriptor_d4448d3521f3d4b5) } - -var fileDescriptor_d4448d3521f3d4b5 = []byte{ - // 778 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x54, 0x4f, 0x8f, 0xda, 0x46, - 0x14, 0xb7, 0xc1, 0x2c, 0xe6, 0x81, 0xc1, 0x19, 0xa5, 0xad, 0x97, 0x1e, 0x9a, 0x3a, 0xad, 0xba, - 0x87, 0xad, 0xd9, 0x90, 0x5e, 0xda, 0x43, 0x55, 0x20, 0xce, 0x2e, 0x12, 0x0b, 0x68, 0x6c, 0x36, - 0xa7, 0xca, 0x22, 0xf6, 0x40, 0x2c, 0x19, 0xdb, 0xf1, 0x0c, 0x9b, 0xa6, 0x5f, 0xb2, 0x52, 0xbe, - 0x48, 0x4f, 0xbd, 0x57, 0x33, 0xb6, 0x61, 0x21, 0x64, 0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, 0x56, 0xcc, 0xb9, 0xdd, - 0xbf, 0x3c, 0xd9, 0xb2, 0xdc, 0xc4, 0xb2, 0xfd, 0x77, 0x49, 0xf9, 0x18, 0xf1, 0xd6, 0xed, 0xbc, - 0x79, 0x35, 0xa5, 0xec, 0xb1, 0x70, 0x93, 0x1f, 0x0a, 0x05, 0xb7, 0x4a, 0xd0, 0x0d, 0x37, 0xc4, - 0xfc, 0x0d, 0xf4, 0x63, 0x0a, 0x7e, 0x1b, 0x9c, 0xc5, 0x68, 0x64, 0x3b, 0x8e, 0x2e, 0xa1, 0x16, - 0xa8, 0xd3, 0x99, 0xeb, 0x39, 0xf6, 0xd4, 0xd5, 0x65, 0xae, 0x72, 0xc7, 0xb7, 0xf6, 0x6c, 0xe1, - 0xea, 0x95, 0xfe, 0x7f, 0x32, 0x28, 0x3c, 0x21, 0x64, 0x83, 0x5a, 0xfe, 0x99, 0xa8, 0xfb, 0xe5, - 0x3b, 0xd4, 0xfd, 0xf6, 0xa4, 0xae, 0xf8, 0x85, 0x25, 0xf4, 0xe7, 0xfe, 0x46, 0x94, 0x3f, 0x38, - 0x32, 0x4f, 0xb8, 0x1c, 0x1d, 0x8b, 0xee, 0xf3, 0x47, 0x6d, 0x76, 0xf4, 0xd7, 0xa0, 0x96, 0xed, - 0x3b, 0xc8, 0xf2, 0x68, 0x0d, 0x0f, 0xb2, 0x3c, 0xee, 0xb7, 0x29, 0x5d, 0xc9, 0x43, 0xf5, 0xd3, - 0xef, 0xb5, 0x2b, 0xeb, 0x85, 0x75, 0xf5, 0xf6, 0x4c, 0x5c, 0xec, 0x97, 0xff, 0x07, 0x00, 0x00, - 0xff, 0xff, 0x2b, 0x14, 0x01, 0x1f, 0xfd, 0x05, 0x00, 0x00, -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// MPLSClient is the client API for MPLS service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type MPLSClient interface { - // ClearLSP clears a single tunnel (requests for it's route to be - // recalculated). - ClearLSP(ctx context.Context, in *ClearLSPRequest, opts ...grpc.CallOption) (*ClearLSPResponse, error) - // ClearLSPCounters will clear the MPLS counters for the provided LSP. - ClearLSPCounters(ctx context.Context, in *ClearLSPCountersRequest, opts ...grpc.CallOption) (*ClearLSPCountersResponse, error) - // An MPLS ping, specified as per RFC4379. - MPLSPing(ctx context.Context, in *MPLSPingRequest, opts ...grpc.CallOption) (MPLS_MPLSPingClient, error) -} - -type mPLSClient struct { - cc *grpc.ClientConn -} - -func NewMPLSClient(cc *grpc.ClientConn) MPLSClient { - return &mPLSClient{cc} -} - -func (c *mPLSClient) ClearLSP(ctx context.Context, in *ClearLSPRequest, opts ...grpc.CallOption) (*ClearLSPResponse, error) { - out := new(ClearLSPResponse) - err := c.cc.Invoke(ctx, "/gnoi.mpls.MPLS/ClearLSP", in, out, opts...) - if err != nil { - return nil, err +func (x *MPLSPingResponse) GetResponse() MPLSPingResponse_EchoResponseCode { + if x != nil { + return x.Response } - return out, nil -} - -func (c *mPLSClient) ClearLSPCounters(ctx context.Context, in *ClearLSPCountersRequest, opts ...grpc.CallOption) (*ClearLSPCountersResponse, error) { - out := new(ClearLSPCountersResponse) - err := c.cc.Invoke(ctx, "/gnoi.mpls.MPLS/ClearLSPCounters", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *mPLSClient) MPLSPing(ctx context.Context, in *MPLSPingRequest, opts ...grpc.CallOption) (MPLS_MPLSPingClient, error) { - stream, err := c.cc.NewStream(ctx, &_MPLS_serviceDesc.Streams[0], "/gnoi.mpls.MPLS/MPLSPing", opts...) - if err != nil { - return nil, err - } - x := &mPLSMPLSPingClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type MPLS_MPLSPingClient interface { - Recv() (*MPLSPingResponse, error) - grpc.ClientStream -} - -type mPLSMPLSPingClient struct { - grpc.ClientStream + return MPLSPingResponse_SUCCESS } -func (x *mPLSMPLSPingClient) Recv() (*MPLSPingResponse, error) { - m := new(MPLSPingResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err +func (x *MPLSPingResponse) GetResponseTime() uint64 { + if x != nil { + return x.ResponseTime } - return m, nil -} - -// MPLSServer is the server API for MPLS service. -type MPLSServer interface { - // ClearLSP clears a single tunnel (requests for it's route to be - // recalculated). - ClearLSP(context.Context, *ClearLSPRequest) (*ClearLSPResponse, error) - // ClearLSPCounters will clear the MPLS counters for the provided LSP. - ClearLSPCounters(context.Context, *ClearLSPCountersRequest) (*ClearLSPCountersResponse, error) - // An MPLS ping, specified as per RFC4379. - MPLSPing(*MPLSPingRequest, MPLS_MPLSPingServer) error -} - -func RegisterMPLSServer(s *grpc.Server, srv MPLSServer) { - s.RegisterService(&_MPLS_serviceDesc, srv) + return 0 } -func _MPLS_ClearLSP_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ClearLSPRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MPLSServer).ClearLSP(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.mpls.MPLS/ClearLSP", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MPLSServer).ClearLSP(ctx, req.(*ClearLSPRequest)) - } - return interceptor(ctx, in, info, handler) -} +var File_mpls_mpls_proto protoreflect.FileDescriptor + +var file_mpls_mpls_proto_rawDesc = []byte{ + 0x0a, 0x0f, 0x6d, 0x70, 0x6c, 0x73, 0x2f, 0x6d, 0x70, 0x6c, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x12, 0x09, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6d, 0x70, 0x6c, 0x73, 0x1a, 0x2c, 0x67, 0x69, + 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x2f, 0x67, 0x6e, 0x6f, 0x69, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x74, + 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xd2, 0x01, 0x0a, 0x0f, 0x43, + 0x6c, 0x65, 0x61, 0x72, 0x4c, 0x53, 0x50, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, + 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x12, 0x33, 0x0a, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, + 0x32, 0x1f, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6d, 0x70, 0x6c, 0x73, 0x2e, 0x43, 0x6c, 0x65, + 0x61, 0x72, 0x4c, 0x53, 0x50, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x4d, 0x6f, 0x64, + 0x65, 0x52, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x22, 0x76, 0x0a, 0x04, 0x4d, 0x6f, 0x64, 0x65, 0x12, + 0x0b, 0x0a, 0x07, 0x44, 0x45, 0x46, 0x41, 0x55, 0x4c, 0x54, 0x10, 0x00, 0x12, 0x11, 0x0a, 0x0d, + 0x4e, 0x4f, 0x4e, 0x41, 0x47, 0x47, 0x52, 0x45, 0x53, 0x53, 0x49, 0x56, 0x45, 0x10, 0x00, 0x12, + 0x0e, 0x0a, 0x0a, 0x41, 0x47, 0x47, 0x52, 0x45, 0x53, 0x53, 0x49, 0x56, 0x45, 0x10, 0x01, 0x12, + 0x09, 0x0a, 0x05, 0x52, 0x45, 0x53, 0x45, 0x54, 0x10, 0x02, 0x12, 0x15, 0x0a, 0x11, 0x41, 0x55, + 0x54, 0x4f, 0x42, 0x57, 0x5f, 0x41, 0x47, 0x47, 0x52, 0x45, 0x53, 0x53, 0x49, 0x56, 0x45, 0x10, + 0x03, 0x12, 0x18, 0x0a, 0x14, 0x41, 0x55, 0x54, 0x4f, 0x42, 0x57, 0x5f, 0x4e, 0x4f, 0x4e, 0x41, + 0x47, 0x47, 0x52, 0x45, 0x53, 0x53, 0x49, 0x56, 0x45, 0x10, 0x04, 0x1a, 0x02, 0x10, 0x01, 0x22, + 0x12, 0x0a, 0x10, 0x43, 0x6c, 0x65, 0x61, 0x72, 0x4c, 0x53, 0x50, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x2d, 0x0a, 0x17, 0x43, 0x6c, 0x65, 0x61, 0x72, 0x4c, 0x53, 0x50, 0x43, + 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, + 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x22, 0x1a, 0x0a, 0x18, 0x43, 0x6c, 0x65, 0x61, 0x72, 0x4c, 0x53, 0x50, 0x43, 0x6f, + 0x75, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x40, + 0x0a, 0x16, 0x4d, 0x50, 0x4c, 0x53, 0x50, 0x69, 0x6e, 0x67, 0x50, 0x57, 0x45, 0x44, 0x65, 0x73, + 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x65, 0x6c, 0x65, 0x72, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x65, 0x6c, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, + 0x76, 0x63, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x76, 0x63, 0x69, 0x64, + 0x22, 0x6d, 0x0a, 0x19, 0x4d, 0x50, 0x4c, 0x53, 0x50, 0x69, 0x6e, 0x67, 0x52, 0x53, 0x56, 0x50, + 0x54, 0x45, 0x44, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x10, 0x0a, + 0x03, 0x73, 0x72, 0x63, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x73, 0x72, 0x63, 0x12, + 0x10, 0x0a, 0x03, 0x64, 0x73, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x64, 0x73, + 0x74, 0x12, 0x2c, 0x0a, 0x12, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x64, 0x5f, 0x74, 0x75, + 0x6e, 0x6e, 0x65, 0x6c, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x10, 0x65, + 0x78, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x64, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x49, 0x64, 0x22, + 0xef, 0x03, 0x0a, 0x0f, 0x4d, 0x50, 0x4c, 0x53, 0x50, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x07, 0x6c, 0x64, 0x70, 0x5f, 0x66, 0x65, 0x63, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x06, 0x6c, 0x64, 0x70, 0x46, 0x65, 0x63, 0x12, 0x42, + 0x0a, 0x0a, 0x66, 0x65, 0x63, 0x31, 0x32, 0x39, 0x5f, 0x70, 0x77, 0x65, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6d, 0x70, 0x6c, 0x73, 0x2e, 0x4d, + 0x50, 0x4c, 0x53, 0x50, 0x69, 0x6e, 0x67, 0x50, 0x57, 0x45, 0x44, 0x65, 0x73, 0x74, 0x69, 0x6e, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x09, 0x66, 0x65, 0x63, 0x31, 0x32, 0x39, 0x50, + 0x77, 0x65, 0x12, 0x28, 0x0a, 0x0f, 0x72, 0x73, 0x76, 0x70, 0x74, 0x65, 0x5f, 0x6c, 0x73, 0x70, + 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0d, 0x72, + 0x73, 0x76, 0x70, 0x74, 0x65, 0x4c, 0x73, 0x70, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x45, 0x0a, 0x0a, + 0x72, 0x73, 0x76, 0x70, 0x74, 0x65, 0x5f, 0x6c, 0x73, 0x70, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x24, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6d, 0x70, 0x6c, 0x73, 0x2e, 0x4d, 0x50, 0x4c, + 0x53, 0x50, 0x69, 0x6e, 0x67, 0x52, 0x53, 0x56, 0x50, 0x54, 0x45, 0x44, 0x65, 0x73, 0x74, 0x69, + 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x09, 0x72, 0x73, 0x76, 0x70, 0x74, 0x65, + 0x4c, 0x73, 0x70, 0x12, 0x43, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6c, 0x79, 0x5f, 0x6d, 0x6f, 0x64, + 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x24, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6d, + 0x70, 0x6c, 0x73, 0x2e, 0x4d, 0x50, 0x4c, 0x53, 0x50, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x09, 0x72, + 0x65, 0x70, 0x6c, 0x79, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, + 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x12, + 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x73, 0x69, + 0x7a, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x6d, 0x70, 0x6c, + 0x73, 0x5f, 0x74, 0x74, 0x6c, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x6d, 0x70, 0x6c, + 0x73, 0x54, 0x74, 0x6c, 0x12, 0x23, 0x0a, 0x0d, 0x74, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x5f, + 0x63, 0x6c, 0x61, 0x73, 0x73, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0c, 0x74, 0x72, 0x61, + 0x66, 0x66, 0x69, 0x63, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x22, 0x27, 0x0a, 0x09, 0x52, 0x65, 0x70, + 0x6c, 0x79, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x08, 0x0a, 0x04, 0x49, 0x50, 0x56, 0x34, 0x10, 0x00, + 0x12, 0x10, 0x0a, 0x0c, 0x52, 0x4f, 0x55, 0x54, 0x45, 0x52, 0x5f, 0x41, 0x4c, 0x45, 0x52, 0x54, + 0x10, 0x01, 0x42, 0x0d, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x22, 0xcf, 0x01, 0x0a, 0x10, 0x4d, 0x50, 0x4c, 0x53, 0x50, 0x69, 0x6e, 0x67, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x65, 0x71, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0d, 0x52, 0x03, 0x73, 0x65, 0x71, 0x12, 0x48, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2c, 0x2e, 0x67, 0x6e, 0x6f, + 0x69, 0x2e, 0x6d, 0x70, 0x6c, 0x73, 0x2e, 0x4d, 0x50, 0x4c, 0x53, 0x50, 0x69, 0x6e, 0x67, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x45, 0x63, 0x68, 0x6f, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x5f, 0x74, + 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x22, 0x3a, 0x0a, 0x10, 0x45, 0x63, 0x68, 0x6f, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x53, + 0x55, 0x43, 0x43, 0x45, 0x53, 0x53, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x4e, 0x4f, 0x54, 0x5f, + 0x53, 0x45, 0x4e, 0x54, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x54, 0x49, 0x4d, 0x45, 0x4f, 0x55, + 0x54, 0x10, 0x02, 0x32, 0xf5, 0x01, 0x0a, 0x04, 0x4d, 0x50, 0x4c, 0x53, 0x12, 0x45, 0x0a, 0x08, + 0x43, 0x6c, 0x65, 0x61, 0x72, 0x4c, 0x53, 0x50, 0x12, 0x1a, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, + 0x6d, 0x70, 0x6c, 0x73, 0x2e, 0x43, 0x6c, 0x65, 0x61, 0x72, 0x4c, 0x53, 0x50, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6d, 0x70, 0x6c, 0x73, + 0x2e, 0x43, 0x6c, 0x65, 0x61, 0x72, 0x4c, 0x53, 0x50, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x00, 0x12, 0x5d, 0x0a, 0x10, 0x43, 0x6c, 0x65, 0x61, 0x72, 0x4c, 0x53, 0x50, 0x43, + 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x12, 0x22, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6d, + 0x70, 0x6c, 0x73, 0x2e, 0x43, 0x6c, 0x65, 0x61, 0x72, 0x4c, 0x53, 0x50, 0x43, 0x6f, 0x75, 0x6e, + 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x67, 0x6e, + 0x6f, 0x69, 0x2e, 0x6d, 0x70, 0x6c, 0x73, 0x2e, 0x43, 0x6c, 0x65, 0x61, 0x72, 0x4c, 0x53, 0x50, + 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x00, 0x12, 0x47, 0x0a, 0x08, 0x4d, 0x50, 0x4c, 0x53, 0x50, 0x69, 0x6e, 0x67, 0x12, 0x1a, + 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6d, 0x70, 0x6c, 0x73, 0x2e, 0x4d, 0x50, 0x4c, 0x53, 0x50, + 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x67, 0x6e, 0x6f, + 0x69, 0x2e, 0x6d, 0x70, 0x6c, 0x73, 0x2e, 0x4d, 0x50, 0x4c, 0x53, 0x50, 0x69, 0x6e, 0x67, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x30, 0x01, 0x42, 0x29, 0x5a, 0x1f, 0x67, + 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x67, 0x6e, 0x6f, 0x69, 0x2f, 0x6d, 0x70, 0x6c, 0x73, 0xd2, 0x3e, + 0x05, 0x30, 0x2e, 0x31, 0x2e, 0x30, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_mpls_mpls_proto_rawDescOnce sync.Once + file_mpls_mpls_proto_rawDescData = file_mpls_mpls_proto_rawDesc +) -func _MPLS_ClearLSPCounters_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ClearLSPCountersRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MPLSServer).ClearLSPCounters(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.mpls.MPLS/ClearLSPCounters", +func file_mpls_mpls_proto_rawDescGZIP() []byte { + file_mpls_mpls_proto_rawDescOnce.Do(func() { + file_mpls_mpls_proto_rawDescData = protoimpl.X.CompressGZIP(file_mpls_mpls_proto_rawDescData) + }) + return file_mpls_mpls_proto_rawDescData +} + +var file_mpls_mpls_proto_enumTypes = make([]protoimpl.EnumInfo, 3) +var file_mpls_mpls_proto_msgTypes = make([]protoimpl.MessageInfo, 8) +var file_mpls_mpls_proto_goTypes = []interface{}{ + (ClearLSPRequest_Mode)(0), // 0: gnoi.mpls.ClearLSPRequest.Mode + (MPLSPingRequest_ReplyMode)(0), // 1: gnoi.mpls.MPLSPingRequest.ReplyMode + (MPLSPingResponse_EchoResponseCode)(0), // 2: gnoi.mpls.MPLSPingResponse.EchoResponseCode + (*ClearLSPRequest)(nil), // 3: gnoi.mpls.ClearLSPRequest + (*ClearLSPResponse)(nil), // 4: gnoi.mpls.ClearLSPResponse + (*ClearLSPCountersRequest)(nil), // 5: gnoi.mpls.ClearLSPCountersRequest + (*ClearLSPCountersResponse)(nil), // 6: gnoi.mpls.ClearLSPCountersResponse + (*MPLSPingPWEDestination)(nil), // 7: gnoi.mpls.MPLSPingPWEDestination + (*MPLSPingRSVPTEDestination)(nil), // 8: gnoi.mpls.MPLSPingRSVPTEDestination + (*MPLSPingRequest)(nil), // 9: gnoi.mpls.MPLSPingRequest + (*MPLSPingResponse)(nil), // 10: gnoi.mpls.MPLSPingResponse +} +var file_mpls_mpls_proto_depIdxs = []int32{ + 0, // 0: gnoi.mpls.ClearLSPRequest.mode:type_name -> gnoi.mpls.ClearLSPRequest.Mode + 7, // 1: gnoi.mpls.MPLSPingRequest.fec129_pwe:type_name -> gnoi.mpls.MPLSPingPWEDestination + 8, // 2: gnoi.mpls.MPLSPingRequest.rsvpte_lsp:type_name -> gnoi.mpls.MPLSPingRSVPTEDestination + 1, // 3: gnoi.mpls.MPLSPingRequest.reply_mode:type_name -> gnoi.mpls.MPLSPingRequest.ReplyMode + 2, // 4: gnoi.mpls.MPLSPingResponse.response:type_name -> gnoi.mpls.MPLSPingResponse.EchoResponseCode + 3, // 5: gnoi.mpls.MPLS.ClearLSP:input_type -> gnoi.mpls.ClearLSPRequest + 5, // 6: gnoi.mpls.MPLS.ClearLSPCounters:input_type -> gnoi.mpls.ClearLSPCountersRequest + 9, // 7: gnoi.mpls.MPLS.MPLSPing:input_type -> gnoi.mpls.MPLSPingRequest + 4, // 8: gnoi.mpls.MPLS.ClearLSP:output_type -> gnoi.mpls.ClearLSPResponse + 6, // 9: gnoi.mpls.MPLS.ClearLSPCounters:output_type -> gnoi.mpls.ClearLSPCountersResponse + 10, // 10: gnoi.mpls.MPLS.MPLSPing:output_type -> gnoi.mpls.MPLSPingResponse + 8, // [8:11] is the sub-list for method output_type + 5, // [5:8] is the sub-list for method input_type + 5, // [5:5] is the sub-list for extension type_name + 5, // [5:5] is the sub-list for extension extendee + 0, // [0:5] is the sub-list for field type_name +} + +func init() { file_mpls_mpls_proto_init() } +func file_mpls_mpls_proto_init() { + if File_mpls_mpls_proto != nil { + return } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MPLSServer).ClearLSPCounters(ctx, req.(*ClearLSPCountersRequest)) + if !protoimpl.UnsafeEnabled { + file_mpls_mpls_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ClearLSPRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_mpls_mpls_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ClearLSPResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_mpls_mpls_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ClearLSPCountersRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_mpls_mpls_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ClearLSPCountersResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_mpls_mpls_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MPLSPingPWEDestination); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_mpls_mpls_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MPLSPingRSVPTEDestination); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_mpls_mpls_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MPLSPingRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_mpls_mpls_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MPLSPingResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } } - return interceptor(ctx, in, info, handler) -} - -func _MPLS_MPLSPing_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(MPLSPingRequest) - if err := stream.RecvMsg(m); err != nil { - return err + file_mpls_mpls_proto_msgTypes[6].OneofWrappers = []interface{}{ + (*MPLSPingRequest_LdpFec)(nil), + (*MPLSPingRequest_Fec129Pwe)(nil), + (*MPLSPingRequest_RsvpteLspName)(nil), + (*MPLSPingRequest_RsvpteLsp)(nil), } - return srv.(MPLSServer).MPLSPing(m, &mPLSMPLSPingServer{stream}) -} - -type MPLS_MPLSPingServer interface { - Send(*MPLSPingResponse) error - grpc.ServerStream -} - -type mPLSMPLSPingServer struct { - grpc.ServerStream -} - -func (x *mPLSMPLSPingServer) Send(m *MPLSPingResponse) error { - return x.ServerStream.SendMsg(m) -} - -var _MPLS_serviceDesc = grpc.ServiceDesc{ - ServiceName: "gnoi.mpls.MPLS", - HandlerType: (*MPLSServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "ClearLSP", - Handler: _MPLS_ClearLSP_Handler, - }, - { - MethodName: "ClearLSPCounters", - Handler: _MPLS_ClearLSPCounters_Handler, - }, - }, - Streams: []grpc.StreamDesc{ - { - StreamName: "MPLSPing", - Handler: _MPLS_MPLSPing_Handler, - ServerStreams: true, + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_mpls_mpls_proto_rawDesc, + NumEnums: 3, + NumMessages: 8, + NumExtensions: 0, + NumServices: 1, }, - }, - Metadata: "mpls/mpls.proto", + GoTypes: file_mpls_mpls_proto_goTypes, + DependencyIndexes: file_mpls_mpls_proto_depIdxs, + EnumInfos: file_mpls_mpls_proto_enumTypes, + MessageInfos: file_mpls_mpls_proto_msgTypes, + }.Build() + File_mpls_mpls_proto = out.File + file_mpls_mpls_proto_rawDesc = nil + file_mpls_mpls_proto_goTypes = nil + file_mpls_mpls_proto_depIdxs = nil } diff --git a/mpls/mpls.proto b/mpls/mpls.proto index 6192a94b..0c3b308b 100644 --- a/mpls/mpls.proto +++ b/mpls/mpls.proto @@ -20,6 +20,8 @@ package gnoi.mpls; import "github.com/openconfig/gnoi/types/types.proto"; +option go_package = "github.com/openconfig/gnoi/mpls"; + option (types.gnoi_version) = "0.1.0"; service MPLS { diff --git a/mpls/mpls_grpc.pb.go b/mpls/mpls_grpc.pb.go new file mode 100644 index 00000000..a3730bd8 --- /dev/null +++ b/mpls/mpls_grpc.pb.go @@ -0,0 +1,209 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. + +package mpls + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.32.0 or later. +const _ = grpc.SupportPackageIsVersion7 + +// MPLSClient is the client API for MPLS service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type MPLSClient interface { + // ClearLSP clears a single tunnel (requests for it's route to be + // recalculated). + ClearLSP(ctx context.Context, in *ClearLSPRequest, opts ...grpc.CallOption) (*ClearLSPResponse, error) + // ClearLSPCounters will clear the MPLS counters for the provided LSP. + ClearLSPCounters(ctx context.Context, in *ClearLSPCountersRequest, opts ...grpc.CallOption) (*ClearLSPCountersResponse, error) + // An MPLS ping, specified as per RFC4379. + MPLSPing(ctx context.Context, in *MPLSPingRequest, opts ...grpc.CallOption) (MPLS_MPLSPingClient, error) +} + +type mPLSClient struct { + cc grpc.ClientConnInterface +} + +func NewMPLSClient(cc grpc.ClientConnInterface) MPLSClient { + return &mPLSClient{cc} +} + +func (c *mPLSClient) ClearLSP(ctx context.Context, in *ClearLSPRequest, opts ...grpc.CallOption) (*ClearLSPResponse, error) { + out := new(ClearLSPResponse) + err := c.cc.Invoke(ctx, "/gnoi.mpls.MPLS/ClearLSP", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *mPLSClient) ClearLSPCounters(ctx context.Context, in *ClearLSPCountersRequest, opts ...grpc.CallOption) (*ClearLSPCountersResponse, error) { + out := new(ClearLSPCountersResponse) + err := c.cc.Invoke(ctx, "/gnoi.mpls.MPLS/ClearLSPCounters", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *mPLSClient) MPLSPing(ctx context.Context, in *MPLSPingRequest, opts ...grpc.CallOption) (MPLS_MPLSPingClient, error) { + stream, err := c.cc.NewStream(ctx, &MPLS_ServiceDesc.Streams[0], "/gnoi.mpls.MPLS/MPLSPing", opts...) + if err != nil { + return nil, err + } + x := &mPLSMPLSPingClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type MPLS_MPLSPingClient interface { + Recv() (*MPLSPingResponse, error) + grpc.ClientStream +} + +type mPLSMPLSPingClient struct { + grpc.ClientStream +} + +func (x *mPLSMPLSPingClient) Recv() (*MPLSPingResponse, error) { + m := new(MPLSPingResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +// MPLSServer is the server API for MPLS service. +// All implementations must embed UnimplementedMPLSServer +// for forward compatibility +type MPLSServer interface { + // ClearLSP clears a single tunnel (requests for it's route to be + // recalculated). + ClearLSP(context.Context, *ClearLSPRequest) (*ClearLSPResponse, error) + // ClearLSPCounters will clear the MPLS counters for the provided LSP. + ClearLSPCounters(context.Context, *ClearLSPCountersRequest) (*ClearLSPCountersResponse, error) + // An MPLS ping, specified as per RFC4379. + MPLSPing(*MPLSPingRequest, MPLS_MPLSPingServer) error + mustEmbedUnimplementedMPLSServer() +} + +// UnimplementedMPLSServer must be embedded to have forward compatible implementations. +type UnimplementedMPLSServer struct { +} + +func (UnimplementedMPLSServer) ClearLSP(context.Context, *ClearLSPRequest) (*ClearLSPResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ClearLSP not implemented") +} +func (UnimplementedMPLSServer) ClearLSPCounters(context.Context, *ClearLSPCountersRequest) (*ClearLSPCountersResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ClearLSPCounters not implemented") +} +func (UnimplementedMPLSServer) MPLSPing(*MPLSPingRequest, MPLS_MPLSPingServer) error { + return status.Errorf(codes.Unimplemented, "method MPLSPing not implemented") +} +func (UnimplementedMPLSServer) mustEmbedUnimplementedMPLSServer() {} + +// UnsafeMPLSServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to MPLSServer will +// result in compilation errors. +type UnsafeMPLSServer interface { + mustEmbedUnimplementedMPLSServer() +} + +func RegisterMPLSServer(s grpc.ServiceRegistrar, srv MPLSServer) { + s.RegisterService(&MPLS_ServiceDesc, srv) +} + +func _MPLS_ClearLSP_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ClearLSPRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MPLSServer).ClearLSP(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gnoi.mpls.MPLS/ClearLSP", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MPLSServer).ClearLSP(ctx, req.(*ClearLSPRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _MPLS_ClearLSPCounters_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ClearLSPCountersRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MPLSServer).ClearLSPCounters(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gnoi.mpls.MPLS/ClearLSPCounters", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MPLSServer).ClearLSPCounters(ctx, req.(*ClearLSPCountersRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _MPLS_MPLSPing_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(MPLSPingRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(MPLSServer).MPLSPing(m, &mPLSMPLSPingServer{stream}) +} + +type MPLS_MPLSPingServer interface { + Send(*MPLSPingResponse) error + grpc.ServerStream +} + +type mPLSMPLSPingServer struct { + grpc.ServerStream +} + +func (x *mPLSMPLSPingServer) Send(m *MPLSPingResponse) error { + return x.ServerStream.SendMsg(m) +} + +// MPLS_ServiceDesc is the grpc.ServiceDesc for MPLS service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var MPLS_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "gnoi.mpls.MPLS", + HandlerType: (*MPLSServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "ClearLSP", + Handler: _MPLS_ClearLSP_Handler, + }, + { + MethodName: "ClearLSPCounters", + Handler: _MPLS_ClearLSPCounters_Handler, + }, + }, + Streams: []grpc.StreamDesc{ + { + StreamName: "MPLSPing", + Handler: _MPLS_MPLSPing_Handler, + ServerStreams: true, + }, + }, + Metadata: "mpls/mpls.proto", +} diff --git a/os/os.pb.go b/os/os.pb.go new file mode 100644 index 00000000..eeb74a30 --- /dev/null +++ b/os/os.pb.go @@ -0,0 +1,1845 @@ +// This file defines a gNOI API used for OS installation. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.26.0 +// protoc v3.15.7 +// source: os/os.proto + +package os + +import ( + _ "github.com/openconfig/gnoi/types" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type InstallError_Type int32 + +const ( + // An unspecified error. Must use the detail value to describe the issue. + InstallError_UNSPECIFIED InstallError_Type = 0 + // The newly transferred package is not compatible with the Target platform. + // The detail field MUST contain the detailed error message. + InstallError_INCOMPATIBLE InstallError_Type = 1 + // The OS package being transferred is larger than the available size the + // Target provisioned. This is unexpected since the Target MUST clear disk + // space for the new OS packages. The available space and the OS package + // size MUST be guaranteed by the platform maker, therefore the most likely + // cause of this error is that a wrong package is being transferred. + InstallError_TOO_LARGE InstallError_Type = 2 + // Used whenever the system is unable to parse the newly transferred + // package, like reading the OS version or the integrity checksums. + InstallError_PARSE_FAIL InstallError_Type = 3 + // The transferred OS package fails integrity check. + InstallError_INTEGRITY_FAIL InstallError_Type = 4 + // Attempting to force transfer an OS package with the same version as the + // currently running. + InstallError_INSTALL_RUN_PACKAGE InstallError_Type = 5 + // Another Install RPC to this Target is already in progress. + InstallError_INSTALL_IN_PROGRESS InstallError_Type = 6 + // A switchover happened during the Install RPC. + InstallError_UNEXPECTED_SWITCHOVER InstallError_Type = 7 + // Failed to sync the transferred OS package to the standby Supervisor. The + // detail value MUST have more information. + InstallError_SYNC_FAIL InstallError_Type = 8 +) + +// Enum value maps for InstallError_Type. +var ( + InstallError_Type_name = map[int32]string{ + 0: "UNSPECIFIED", + 1: "INCOMPATIBLE", + 2: "TOO_LARGE", + 3: "PARSE_FAIL", + 4: "INTEGRITY_FAIL", + 5: "INSTALL_RUN_PACKAGE", + 6: "INSTALL_IN_PROGRESS", + 7: "UNEXPECTED_SWITCHOVER", + 8: "SYNC_FAIL", + } + InstallError_Type_value = map[string]int32{ + "UNSPECIFIED": 0, + "INCOMPATIBLE": 1, + "TOO_LARGE": 2, + "PARSE_FAIL": 3, + "INTEGRITY_FAIL": 4, + "INSTALL_RUN_PACKAGE": 5, + "INSTALL_IN_PROGRESS": 6, + "UNEXPECTED_SWITCHOVER": 7, + "SYNC_FAIL": 8, + } +) + +func (x InstallError_Type) Enum() *InstallError_Type { + p := new(InstallError_Type) + *p = x + return p +} + +func (x InstallError_Type) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (InstallError_Type) Descriptor() protoreflect.EnumDescriptor { + return file_os_os_proto_enumTypes[0].Descriptor() +} + +func (InstallError_Type) Type() protoreflect.EnumType { + return &file_os_os_proto_enumTypes[0] +} + +func (x InstallError_Type) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use InstallError_Type.Descriptor instead. +func (InstallError_Type) EnumDescriptor() ([]byte, []int) { + return file_os_os_proto_rawDescGZIP(), []int{8, 0} +} + +type ActivateError_Type int32 + +const ( + // An unspecified error. Must use the detail value to describe the issue. + ActivateError_UNSPECIFIED ActivateError_Type = 0 + // There is no OS package with the version requested for activation. This is + // also used for an empty version string. + ActivateError_NON_EXISTENT_VERSION ActivateError_Type = 1 +) + +// Enum value maps for ActivateError_Type. +var ( + ActivateError_Type_name = map[int32]string{ + 0: "UNSPECIFIED", + 1: "NON_EXISTENT_VERSION", + } + ActivateError_Type_value = map[string]int32{ + "UNSPECIFIED": 0, + "NON_EXISTENT_VERSION": 1, + } +) + +func (x ActivateError_Type) Enum() *ActivateError_Type { + p := new(ActivateError_Type) + *p = x + return p +} + +func (x ActivateError_Type) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ActivateError_Type) Descriptor() protoreflect.EnumDescriptor { + return file_os_os_proto_enumTypes[1].Descriptor() +} + +func (ActivateError_Type) Type() protoreflect.EnumType { + return &file_os_os_proto_enumTypes[1] +} + +func (x ActivateError_Type) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use ActivateError_Type.Descriptor instead. +func (ActivateError_Type) EnumDescriptor() ([]byte, []int) { + return file_os_os_proto_rawDescGZIP(), []int{12, 0} +} + +type StandbyState_State int32 + +const ( + StandbyState_UNSPECIFIED StandbyState_State = 0 + // The Target does not support dual Supervisors. + StandbyState_UNSUPORTED StandbyState_State = 1 + // Standby Supervisor is supported but does not exist. + StandbyState_NON_EXISTENT StandbyState_State = 2 + // Standby Supervisor is supported but is not available, eg.: rebooting. + StandbyState_UNAVAILABLE StandbyState_State = 3 +) + +// Enum value maps for StandbyState_State. +var ( + StandbyState_State_name = map[int32]string{ + 0: "UNSPECIFIED", + 1: "UNSUPORTED", + 2: "NON_EXISTENT", + 3: "UNAVAILABLE", + } + StandbyState_State_value = map[string]int32{ + "UNSPECIFIED": 0, + "UNSUPORTED": 1, + "NON_EXISTENT": 2, + "UNAVAILABLE": 3, + } +) + +func (x StandbyState_State) Enum() *StandbyState_State { + p := new(StandbyState_State) + *p = x + return p +} + +func (x StandbyState_State) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (StandbyState_State) Descriptor() protoreflect.EnumDescriptor { + return file_os_os_proto_enumTypes[2].Descriptor() +} + +func (StandbyState_State) Type() protoreflect.EnumType { + return &file_os_os_proto_enumTypes[2] +} + +func (x StandbyState_State) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use StandbyState_State.Descriptor instead. +func (StandbyState_State) EnumDescriptor() ([]byte, []int) { + return file_os_os_proto_rawDescGZIP(), []int{16, 0} +} + +type InstallRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Types that are assignable to Request: + // *InstallRequest_TransferRequest + // *InstallRequest_TransferContent + // *InstallRequest_TransferEnd + Request isInstallRequest_Request `protobuf_oneof:"request"` +} + +func (x *InstallRequest) Reset() { + *x = InstallRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_os_os_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *InstallRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*InstallRequest) ProtoMessage() {} + +func (x *InstallRequest) ProtoReflect() protoreflect.Message { + mi := &file_os_os_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use InstallRequest.ProtoReflect.Descriptor instead. +func (*InstallRequest) Descriptor() ([]byte, []int) { + return file_os_os_proto_rawDescGZIP(), []int{0} +} + +func (m *InstallRequest) GetRequest() isInstallRequest_Request { + if m != nil { + return m.Request + } + return nil +} + +func (x *InstallRequest) GetTransferRequest() *TransferRequest { + if x, ok := x.GetRequest().(*InstallRequest_TransferRequest); ok { + return x.TransferRequest + } + return nil +} + +func (x *InstallRequest) GetTransferContent() []byte { + if x, ok := x.GetRequest().(*InstallRequest_TransferContent); ok { + return x.TransferContent + } + return nil +} + +func (x *InstallRequest) GetTransferEnd() *TransferEnd { + if x, ok := x.GetRequest().(*InstallRequest_TransferEnd); ok { + return x.TransferEnd + } + return nil +} + +type isInstallRequest_Request interface { + isInstallRequest_Request() +} + +type InstallRequest_TransferRequest struct { + TransferRequest *TransferRequest `protobuf:"bytes,1,opt,name=transfer_request,json=transferRequest,proto3,oneof"` +} + +type InstallRequest_TransferContent struct { + TransferContent []byte `protobuf:"bytes,2,opt,name=transfer_content,json=transferContent,proto3,oneof"` +} + +type InstallRequest_TransferEnd struct { + TransferEnd *TransferEnd `protobuf:"bytes,3,opt,name=transfer_end,json=transferEnd,proto3,oneof"` +} + +func (*InstallRequest_TransferRequest) isInstallRequest_Request() {} + +func (*InstallRequest_TransferContent) isInstallRequest_Request() {} + +func (*InstallRequest_TransferEnd) isInstallRequest_Request() {} + +type TransferRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The version string is a vendor defined string that identifies the OS + // version. It is provided by the vendor and embedded in the OS package. This + // value states the desired OS package version to transfer to the Target. If + // the Target already has the OS package version it will reply with + // InstallResponse->Validated. In the case that the target is a + // single Supervisor device, or the partner Supervisor does not have the OS + // image specified, it will respond with InstallResponse->TransferReady. In + // this case, the client MUST subsequently transfer the image. In the case + // that the image is available on the peer Supervisor of a dual Supervisor + // system, it will respond with InstallResponse->SyncProgress. In this, + // latter, case - the client does not need to transfer the OS image. This + // value can also be set empty, in which case the OS package is forced + // transferred to the Target. The Target MUST never validate that this value + // matches the one in the InstallResponse->Validated message, that is the + // Client's responsibility. + Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` + // For a Target with dual Supervisors setting this flag instructs the Target + // to perform the action on the Standby Supervisor. + StandbySupervisor bool `protobuf:"varint,2,opt,name=standby_supervisor,json=standbySupervisor,proto3" json:"standby_supervisor,omitempty"` +} + +func (x *TransferRequest) Reset() { + *x = TransferRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_os_os_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TransferRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TransferRequest) ProtoMessage() {} + +func (x *TransferRequest) ProtoReflect() protoreflect.Message { + mi := &file_os_os_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use TransferRequest.ProtoReflect.Descriptor instead. +func (*TransferRequest) Descriptor() ([]byte, []int) { + return file_os_os_proto_rawDescGZIP(), []int{1} +} + +func (x *TransferRequest) GetVersion() string { + if x != nil { + return x.Version + } + return "" +} + +func (x *TransferRequest) GetStandbySupervisor() bool { + if x != nil { + return x.StandbySupervisor + } + return false +} + +// The TransferEnd message is sent whenever the Client finishes transferring +// the OS package to the Target. At this point the Target MUST perform a general +// health check to the OS package. If the Target fails to parse the OS package +// it MUST immediately reply with an InstallError->type->PARSE_FAIL. If the +// integrity check of the OS package fails it MUST immediately reply with an +// InstallError->type->INTEGRITY_FAIL. If the identified OS version contained in +// the package is not compatible with the Target either because of the platform +// type or the running OS, it MUST immediately reply with an +// InstallError->type->INCOMPATIBLE. If the image is force transferred by +// omitting the InstallRequest->TransferRequest->version value, and the OS +// package is the same as the one running in the Target, the RPC MUST +// immediately abort and reply with an InstallError->type->INSTALL_RUN_PACKAGE. +type TransferEnd struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *TransferEnd) Reset() { + *x = TransferEnd{} + if protoimpl.UnsafeEnabled { + mi := &file_os_os_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TransferEnd) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TransferEnd) ProtoMessage() {} + +func (x *TransferEnd) ProtoReflect() protoreflect.Message { + mi := &file_os_os_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use TransferEnd.ProtoReflect.Descriptor instead. +func (*TransferEnd) Descriptor() ([]byte, []int) { + return file_os_os_proto_rawDescGZIP(), []int{2} +} + +// The InstallResponse is used by the Target to inform the Client about the +// state of the Install RPC. At any stage of the process the Target can reply +// with an Error message which MUST terminate the stream. +type InstallResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Types that are assignable to Response: + // *InstallResponse_TransferReady + // *InstallResponse_TransferProgress + // *InstallResponse_SyncProgress + // *InstallResponse_Validated + // *InstallResponse_InstallError + Response isInstallResponse_Response `protobuf_oneof:"response"` +} + +func (x *InstallResponse) Reset() { + *x = InstallResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_os_os_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *InstallResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*InstallResponse) ProtoMessage() {} + +func (x *InstallResponse) ProtoReflect() protoreflect.Message { + mi := &file_os_os_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use InstallResponse.ProtoReflect.Descriptor instead. +func (*InstallResponse) Descriptor() ([]byte, []int) { + return file_os_os_proto_rawDescGZIP(), []int{3} +} + +func (m *InstallResponse) GetResponse() isInstallResponse_Response { + if m != nil { + return m.Response + } + return nil +} + +func (x *InstallResponse) GetTransferReady() *TransferReady { + if x, ok := x.GetResponse().(*InstallResponse_TransferReady); ok { + return x.TransferReady + } + return nil +} + +func (x *InstallResponse) GetTransferProgress() *TransferProgress { + if x, ok := x.GetResponse().(*InstallResponse_TransferProgress); ok { + return x.TransferProgress + } + return nil +} + +func (x *InstallResponse) GetSyncProgress() *SyncProgress { + if x, ok := x.GetResponse().(*InstallResponse_SyncProgress); ok { + return x.SyncProgress + } + return nil +} + +func (x *InstallResponse) GetValidated() *Validated { + if x, ok := x.GetResponse().(*InstallResponse_Validated); ok { + return x.Validated + } + return nil +} + +func (x *InstallResponse) GetInstallError() *InstallError { + if x, ok := x.GetResponse().(*InstallResponse_InstallError); ok { + return x.InstallError + } + return nil +} + +type isInstallResponse_Response interface { + isInstallResponse_Response() +} + +type InstallResponse_TransferReady struct { + TransferReady *TransferReady `protobuf:"bytes,1,opt,name=transfer_ready,json=transferReady,proto3,oneof"` +} + +type InstallResponse_TransferProgress struct { + TransferProgress *TransferProgress `protobuf:"bytes,2,opt,name=transfer_progress,json=transferProgress,proto3,oneof"` +} + +type InstallResponse_SyncProgress struct { + SyncProgress *SyncProgress `protobuf:"bytes,3,opt,name=sync_progress,json=syncProgress,proto3,oneof"` +} + +type InstallResponse_Validated struct { + Validated *Validated `protobuf:"bytes,4,opt,name=validated,proto3,oneof"` +} + +type InstallResponse_InstallError struct { + InstallError *InstallError `protobuf:"bytes,5,opt,name=install_error,json=installError,proto3,oneof"` +} + +func (*InstallResponse_TransferReady) isInstallResponse_Response() {} + +func (*InstallResponse_TransferProgress) isInstallResponse_Response() {} + +func (*InstallResponse_SyncProgress) isInstallResponse_Response() {} + +func (*InstallResponse_Validated) isInstallResponse_Response() {} + +func (*InstallResponse_InstallError) isInstallResponse_Response() {} + +// The TransferReady message tells the Client that the Target is ready to accept +// the transfer of the OS package. At this stage the Target MUST have cleared +// enough space to accept the incoming OS package. +type TransferReady struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *TransferReady) Reset() { + *x = TransferReady{} + if protoimpl.UnsafeEnabled { + mi := &file_os_os_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TransferReady) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TransferReady) ProtoMessage() {} + +func (x *TransferReady) ProtoReflect() protoreflect.Message { + mi := &file_os_os_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use TransferReady.ProtoReflect.Descriptor instead. +func (*TransferReady) Descriptor() ([]byte, []int) { + return file_os_os_proto_rawDescGZIP(), []int{4} +} + +// The TransferProgress message is sent by the target asynchronously during a +// file transfer. The device SHOULD not respond to each input block received +// from the client, but rather determine reasonable intervals at which to send +// the message (e.g., 5MB). +type TransferProgress struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The number of bytes transferred. + BytesReceived uint64 `protobuf:"varint,1,opt,name=bytes_received,json=bytesReceived,proto3" json:"bytes_received,omitempty"` +} + +func (x *TransferProgress) Reset() { + *x = TransferProgress{} + if protoimpl.UnsafeEnabled { + mi := &file_os_os_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TransferProgress) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TransferProgress) ProtoMessage() {} + +func (x *TransferProgress) ProtoReflect() protoreflect.Message { + mi := &file_os_os_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use TransferProgress.ProtoReflect.Descriptor instead. +func (*TransferProgress) Descriptor() ([]byte, []int) { + return file_os_os_proto_rawDescGZIP(), []int{5} +} + +func (x *TransferProgress) GetBytesReceived() uint64 { + if x != nil { + return x.BytesReceived + } + return 0 +} + +// The SyncProgress message signals the Client about the progress of +// transferring the OS package between Supervisors. +type SyncProgress struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The percentage that has transferred between Supervisors. + PercentageTransferred uint32 `protobuf:"varint,1,opt,name=percentage_transferred,json=percentageTransferred,proto3" json:"percentage_transferred,omitempty"` +} + +func (x *SyncProgress) Reset() { + *x = SyncProgress{} + if protoimpl.UnsafeEnabled { + mi := &file_os_os_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SyncProgress) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SyncProgress) ProtoMessage() {} + +func (x *SyncProgress) ProtoReflect() protoreflect.Message { + mi := &file_os_os_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SyncProgress.ProtoReflect.Descriptor instead. +func (*SyncProgress) Descriptor() ([]byte, []int) { + return file_os_os_proto_rawDescGZIP(), []int{6} +} + +func (x *SyncProgress) GetPercentageTransferred() uint32 { + if x != nil { + return x.PercentageTransferred + } + return 0 +} + +// The Validated message asserts that the Target was able to parse the package +// and perform integrity checks to its contents. +type Validated struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The OS version string that identifies the OS version in the OS package. + Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` + // Informational field that SHOULD be used for providing more details about + // the OS package and its version. This MUST be strictly informational if + // used, and can contain information such as build date, target platform, + // developer, etc. + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (x *Validated) Reset() { + *x = Validated{} + if protoimpl.UnsafeEnabled { + mi := &file_os_os_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Validated) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Validated) ProtoMessage() {} + +func (x *Validated) ProtoReflect() protoreflect.Message { + mi := &file_os_os_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Validated.ProtoReflect.Descriptor instead. +func (*Validated) Descriptor() ([]byte, []int) { + return file_os_os_proto_rawDescGZIP(), []int{7} +} + +func (x *Validated) GetVersion() string { + if x != nil { + return x.Version + } + return "" +} + +func (x *Validated) GetDescription() string { + if x != nil { + return x.Description + } + return "" +} + +// The InstallError message MUST be sent by the Target to the Client whenever an +// issue occurs. The Target MUST immediately close the RPC without a gRPC error. +type InstallError struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Type InstallError_Type `protobuf:"varint,1,opt,name=type,proto3,enum=gnoi.os.InstallError_Type" json:"type,omitempty"` + Detail string `protobuf:"bytes,2,opt,name=detail,proto3" json:"detail,omitempty"` +} + +func (x *InstallError) Reset() { + *x = InstallError{} + if protoimpl.UnsafeEnabled { + mi := &file_os_os_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *InstallError) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*InstallError) ProtoMessage() {} + +func (x *InstallError) ProtoReflect() protoreflect.Message { + mi := &file_os_os_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use InstallError.ProtoReflect.Descriptor instead. +func (*InstallError) Descriptor() ([]byte, []int) { + return file_os_os_proto_rawDescGZIP(), []int{8} +} + +func (x *InstallError) GetType() InstallError_Type { + if x != nil { + return x.Type + } + return InstallError_UNSPECIFIED +} + +func (x *InstallError) GetDetail() string { + if x != nil { + return x.Detail + } + return "" +} + +// The ActivateRequest is sent by the Client to the Target to initiate a change +// in the next bootable OS version that is to be used on the Target. +type ActivateRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The version that is required to be activated and booted. + Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` + // For dual Supervisors setting this flag instructs the Target to perform the + // action on the Standby Supervisor. + StandbySupervisor bool `protobuf:"varint,2,opt,name=standby_supervisor,json=standbySupervisor,proto3" json:"standby_supervisor,omitempty"` +} + +func (x *ActivateRequest) Reset() { + *x = ActivateRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_os_os_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ActivateRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ActivateRequest) ProtoMessage() {} + +func (x *ActivateRequest) ProtoReflect() protoreflect.Message { + mi := &file_os_os_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ActivateRequest.ProtoReflect.Descriptor instead. +func (*ActivateRequest) Descriptor() ([]byte, []int) { + return file_os_os_proto_rawDescGZIP(), []int{9} +} + +func (x *ActivateRequest) GetVersion() string { + if x != nil { + return x.Version + } + return "" +} + +func (x *ActivateRequest) GetStandbySupervisor() bool { + if x != nil { + return x.StandbySupervisor + } + return false +} + +// The ActivateResponse is sent from the Target to the Client in response to the +// Activate RPC. It indicates the success of making the OS package version +// active. +type ActivateResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Types that are assignable to Response: + // *ActivateResponse_ActivateOk + // *ActivateResponse_ActivateError + Response isActivateResponse_Response `protobuf_oneof:"response"` +} + +func (x *ActivateResponse) Reset() { + *x = ActivateResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_os_os_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ActivateResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ActivateResponse) ProtoMessage() {} + +func (x *ActivateResponse) ProtoReflect() protoreflect.Message { + mi := &file_os_os_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ActivateResponse.ProtoReflect.Descriptor instead. +func (*ActivateResponse) Descriptor() ([]byte, []int) { + return file_os_os_proto_rawDescGZIP(), []int{10} +} + +func (m *ActivateResponse) GetResponse() isActivateResponse_Response { + if m != nil { + return m.Response + } + return nil +} + +func (x *ActivateResponse) GetActivateOk() *ActivateOK { + if x, ok := x.GetResponse().(*ActivateResponse_ActivateOk); ok { + return x.ActivateOk + } + return nil +} + +func (x *ActivateResponse) GetActivateError() *ActivateError { + if x, ok := x.GetResponse().(*ActivateResponse_ActivateError); ok { + return x.ActivateError + } + return nil +} + +type isActivateResponse_Response interface { + isActivateResponse_Response() +} + +type ActivateResponse_ActivateOk struct { + ActivateOk *ActivateOK `protobuf:"bytes,1,opt,name=activate_ok,json=activateOk,proto3,oneof"` +} + +type ActivateResponse_ActivateError struct { + ActivateError *ActivateError `protobuf:"bytes,2,opt,name=activate_error,json=activateError,proto3,oneof"` +} + +func (*ActivateResponse_ActivateOk) isActivateResponse_Response() {} + +func (*ActivateResponse_ActivateError) isActivateResponse_Response() {} + +// If the Target is already running the requested version in ActivateRequest, +// then it replies with ActivateOK. If the Target has the OS package version +// requested in ActivateRequest then it replies with ActivateOK and proceeds to +// boot. In a Target with dual Supervisor, performing this RPC on the Active +// Supervisor triggers a switchover before booting the (old)Active Supervisor. +// The Target should always perform a switchover with the least impact possible +// to forwarding. +type ActivateOK struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *ActivateOK) Reset() { + *x = ActivateOK{} + if protoimpl.UnsafeEnabled { + mi := &file_os_os_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ActivateOK) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ActivateOK) ProtoMessage() {} + +func (x *ActivateOK) ProtoReflect() protoreflect.Message { + mi := &file_os_os_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ActivateOK.ProtoReflect.Descriptor instead. +func (*ActivateOK) Descriptor() ([]byte, []int) { + return file_os_os_proto_rawDescGZIP(), []int{11} +} + +type ActivateError struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Type ActivateError_Type `protobuf:"varint,1,opt,name=type,proto3,enum=gnoi.os.ActivateError_Type" json:"type,omitempty"` + Detail string `protobuf:"bytes,2,opt,name=detail,proto3" json:"detail,omitempty"` +} + +func (x *ActivateError) Reset() { + *x = ActivateError{} + if protoimpl.UnsafeEnabled { + mi := &file_os_os_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ActivateError) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ActivateError) ProtoMessage() {} + +func (x *ActivateError) ProtoReflect() protoreflect.Message { + mi := &file_os_os_proto_msgTypes[12] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ActivateError.ProtoReflect.Descriptor instead. +func (*ActivateError) Descriptor() ([]byte, []int) { + return file_os_os_proto_rawDescGZIP(), []int{12} +} + +func (x *ActivateError) GetType() ActivateError_Type { + if x != nil { + return x.Type + } + return ActivateError_UNSPECIFIED +} + +func (x *ActivateError) GetDetail() string { + if x != nil { + return x.Detail + } + return "" +} + +type VerifyRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *VerifyRequest) Reset() { + *x = VerifyRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_os_os_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *VerifyRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*VerifyRequest) ProtoMessage() {} + +func (x *VerifyRequest) ProtoReflect() protoreflect.Message { + mi := &file_os_os_proto_msgTypes[13] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use VerifyRequest.ProtoReflect.Descriptor instead. +func (*VerifyRequest) Descriptor() ([]byte, []int) { + return file_os_os_proto_rawDescGZIP(), []int{13} +} + +type VerifyResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The OS version currently running. + Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` + // Informational message describing fail details of the last boot. This MUST + // be set when a newly transferred OS fails to boot and the system falls back + // to the previously running OS version. It MUST be cleared whenever the + // systems successfully boots the activated OS version. + ActivationFailMessage string `protobuf:"bytes,2,opt,name=activation_fail_message,json=activationFailMessage,proto3" json:"activation_fail_message,omitempty"` + VerifyStandby *VerifyStandby `protobuf:"bytes,3,opt,name=verify_standby,json=verifyStandby,proto3" json:"verify_standby,omitempty"` +} + +func (x *VerifyResponse) Reset() { + *x = VerifyResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_os_os_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *VerifyResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*VerifyResponse) ProtoMessage() {} + +func (x *VerifyResponse) ProtoReflect() protoreflect.Message { + mi := &file_os_os_proto_msgTypes[14] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use VerifyResponse.ProtoReflect.Descriptor instead. +func (*VerifyResponse) Descriptor() ([]byte, []int) { + return file_os_os_proto_rawDescGZIP(), []int{14} +} + +func (x *VerifyResponse) GetVersion() string { + if x != nil { + return x.Version + } + return "" +} + +func (x *VerifyResponse) GetActivationFailMessage() string { + if x != nil { + return x.ActivationFailMessage + } + return "" +} + +func (x *VerifyResponse) GetVerifyStandby() *VerifyStandby { + if x != nil { + return x.VerifyStandby + } + return nil +} + +type VerifyStandby struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Types that are assignable to State: + // *VerifyStandby_StandbyState + // *VerifyStandby_VerifyResponse + State isVerifyStandby_State `protobuf_oneof:"state"` +} + +func (x *VerifyStandby) Reset() { + *x = VerifyStandby{} + if protoimpl.UnsafeEnabled { + mi := &file_os_os_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *VerifyStandby) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*VerifyStandby) ProtoMessage() {} + +func (x *VerifyStandby) ProtoReflect() protoreflect.Message { + mi := &file_os_os_proto_msgTypes[15] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use VerifyStandby.ProtoReflect.Descriptor instead. +func (*VerifyStandby) Descriptor() ([]byte, []int) { + return file_os_os_proto_rawDescGZIP(), []int{15} +} + +func (m *VerifyStandby) GetState() isVerifyStandby_State { + if m != nil { + return m.State + } + return nil +} + +func (x *VerifyStandby) GetStandbyState() *StandbyState { + if x, ok := x.GetState().(*VerifyStandby_StandbyState); ok { + return x.StandbyState + } + return nil +} + +func (x *VerifyStandby) GetVerifyResponse() *StandbyResponse { + if x, ok := x.GetState().(*VerifyStandby_VerifyResponse); ok { + return x.VerifyResponse + } + return nil +} + +type isVerifyStandby_State interface { + isVerifyStandby_State() +} + +type VerifyStandby_StandbyState struct { + StandbyState *StandbyState `protobuf:"bytes,1,opt,name=standby_state,json=standbyState,proto3,oneof"` +} + +type VerifyStandby_VerifyResponse struct { + VerifyResponse *StandbyResponse `protobuf:"bytes,2,opt,name=verify_response,json=verifyResponse,proto3,oneof"` +} + +func (*VerifyStandby_StandbyState) isVerifyStandby_State() {} + +func (*VerifyStandby_VerifyResponse) isVerifyStandby_State() {} + +type StandbyState struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + State StandbyState_State `protobuf:"varint,1,opt,name=state,proto3,enum=gnoi.os.StandbyState_State" json:"state,omitempty"` +} + +func (x *StandbyState) Reset() { + *x = StandbyState{} + if protoimpl.UnsafeEnabled { + mi := &file_os_os_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *StandbyState) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StandbyState) ProtoMessage() {} + +func (x *StandbyState) ProtoReflect() protoreflect.Message { + mi := &file_os_os_proto_msgTypes[16] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use StandbyState.ProtoReflect.Descriptor instead. +func (*StandbyState) Descriptor() ([]byte, []int) { + return file_os_os_proto_rawDescGZIP(), []int{16} +} + +func (x *StandbyState) GetState() StandbyState_State { + if x != nil { + return x.State + } + return StandbyState_UNSPECIFIED +} + +type StandbyResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Standby Supervisor ID, usually the slot number. + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` + ActivationFailMessage string `protobuf:"bytes,3,opt,name=activation_fail_message,json=activationFailMessage,proto3" json:"activation_fail_message,omitempty"` +} + +func (x *StandbyResponse) Reset() { + *x = StandbyResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_os_os_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *StandbyResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StandbyResponse) ProtoMessage() {} + +func (x *StandbyResponse) ProtoReflect() protoreflect.Message { + mi := &file_os_os_proto_msgTypes[17] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use StandbyResponse.ProtoReflect.Descriptor instead. +func (*StandbyResponse) Descriptor() ([]byte, []int) { + return file_os_os_proto_rawDescGZIP(), []int{17} +} + +func (x *StandbyResponse) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *StandbyResponse) GetVersion() string { + if x != nil { + return x.Version + } + return "" +} + +func (x *StandbyResponse) GetActivationFailMessage() string { + if x != nil { + return x.ActivationFailMessage + } + return "" +} + +var File_os_os_proto protoreflect.FileDescriptor + +var file_os_os_proto_rawDesc = []byte{ + 0x0a, 0x0b, 0x6f, 0x73, 0x2f, 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x07, 0x67, + 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x73, 0x1a, 0x2c, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, + 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x67, 0x6e, + 0x6f, 0x69, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xca, 0x01, 0x0a, 0x0e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x45, 0x0a, 0x10, 0x74, 0x72, 0x61, 0x6e, 0x73, + 0x66, 0x65, 0x72, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x18, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x73, 0x2e, 0x54, 0x72, 0x61, 0x6e, + 0x73, 0x66, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x0f, 0x74, + 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2b, + 0x0a, 0x10, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, + 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x48, 0x00, 0x52, 0x0f, 0x74, 0x72, 0x61, 0x6e, + 0x73, 0x66, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x39, 0x0a, 0x0c, 0x74, + 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x5f, 0x65, 0x6e, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x73, 0x2e, 0x54, 0x72, 0x61, 0x6e, + 0x73, 0x66, 0x65, 0x72, 0x45, 0x6e, 0x64, 0x48, 0x00, 0x52, 0x0b, 0x74, 0x72, 0x61, 0x6e, 0x73, + 0x66, 0x65, 0x72, 0x45, 0x6e, 0x64, 0x42, 0x09, 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x22, 0x5a, 0x0a, 0x0f, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x2d, + 0x0a, 0x12, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x5f, 0x73, 0x75, 0x70, 0x65, 0x72, 0x76, + 0x69, 0x73, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x11, 0x73, 0x74, 0x61, 0x6e, + 0x64, 0x62, 0x79, 0x53, 0x75, 0x70, 0x65, 0x72, 0x76, 0x69, 0x73, 0x6f, 0x72, 0x22, 0x0d, 0x0a, + 0x0b, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x45, 0x6e, 0x64, 0x22, 0xd8, 0x02, 0x0a, + 0x0f, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x3f, 0x0a, 0x0e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x5f, 0x72, 0x65, 0x61, + 0x64, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, + 0x6f, 0x73, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x52, 0x65, 0x61, 0x64, 0x79, + 0x48, 0x00, 0x52, 0x0d, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x52, 0x65, 0x61, 0x64, + 0x79, 0x12, 0x48, 0x0a, 0x11, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x5f, 0x70, 0x72, + 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, + 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x73, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x50, + 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x48, 0x00, 0x52, 0x10, 0x74, 0x72, 0x61, 0x6e, 0x73, + 0x66, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x12, 0x3c, 0x0a, 0x0d, 0x73, + 0x79, 0x6e, 0x63, 0x5f, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x73, 0x2e, 0x53, 0x79, 0x6e, + 0x63, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x48, 0x00, 0x52, 0x0c, 0x73, 0x79, 0x6e, + 0x63, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x12, 0x32, 0x0a, 0x09, 0x76, 0x61, 0x6c, + 0x69, 0x64, 0x61, 0x74, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, + 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x73, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x64, + 0x48, 0x00, 0x52, 0x09, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x64, 0x12, 0x3c, 0x0a, + 0x0d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x5f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x73, 0x2e, 0x49, + 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x48, 0x00, 0x52, 0x0c, 0x69, + 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x42, 0x0a, 0x0a, 0x08, 0x72, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x0f, 0x0a, 0x0d, 0x54, 0x72, 0x61, 0x6e, 0x73, + 0x66, 0x65, 0x72, 0x52, 0x65, 0x61, 0x64, 0x79, 0x22, 0x39, 0x0a, 0x10, 0x54, 0x72, 0x61, 0x6e, + 0x73, 0x66, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x12, 0x25, 0x0a, 0x0e, + 0x62, 0x79, 0x74, 0x65, 0x73, 0x5f, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x62, 0x79, 0x74, 0x65, 0x73, 0x52, 0x65, 0x63, 0x65, 0x69, + 0x76, 0x65, 0x64, 0x22, 0x45, 0x0a, 0x0c, 0x53, 0x79, 0x6e, 0x63, 0x50, 0x72, 0x6f, 0x67, 0x72, + 0x65, 0x73, 0x73, 0x12, 0x35, 0x0a, 0x16, 0x70, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x61, 0x67, + 0x65, 0x5f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0d, 0x52, 0x15, 0x70, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x61, 0x67, 0x65, 0x54, + 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x22, 0x47, 0x0a, 0x09, 0x56, 0x61, + 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, + 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, + 0x6e, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x22, 0x91, 0x02, 0x0a, 0x0c, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x45, + 0x72, 0x72, 0x6f, 0x72, 0x12, 0x2e, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0e, 0x32, 0x1a, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x73, + 0x74, 0x61, 0x6c, 0x6c, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, + 0x74, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x22, 0xb8, 0x01, 0x0a, + 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0f, 0x0a, 0x0b, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, + 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x10, 0x0a, 0x0c, 0x49, 0x4e, 0x43, 0x4f, 0x4d, 0x50, + 0x41, 0x54, 0x49, 0x42, 0x4c, 0x45, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x54, 0x4f, 0x4f, 0x5f, + 0x4c, 0x41, 0x52, 0x47, 0x45, 0x10, 0x02, 0x12, 0x0e, 0x0a, 0x0a, 0x50, 0x41, 0x52, 0x53, 0x45, + 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x10, 0x03, 0x12, 0x12, 0x0a, 0x0e, 0x49, 0x4e, 0x54, 0x45, 0x47, + 0x52, 0x49, 0x54, 0x59, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x10, 0x04, 0x12, 0x17, 0x0a, 0x13, 0x49, + 0x4e, 0x53, 0x54, 0x41, 0x4c, 0x4c, 0x5f, 0x52, 0x55, 0x4e, 0x5f, 0x50, 0x41, 0x43, 0x4b, 0x41, + 0x47, 0x45, 0x10, 0x05, 0x12, 0x17, 0x0a, 0x13, 0x49, 0x4e, 0x53, 0x54, 0x41, 0x4c, 0x4c, 0x5f, + 0x49, 0x4e, 0x5f, 0x50, 0x52, 0x4f, 0x47, 0x52, 0x45, 0x53, 0x53, 0x10, 0x06, 0x12, 0x19, 0x0a, + 0x15, 0x55, 0x4e, 0x45, 0x58, 0x50, 0x45, 0x43, 0x54, 0x45, 0x44, 0x5f, 0x53, 0x57, 0x49, 0x54, + 0x43, 0x48, 0x4f, 0x56, 0x45, 0x52, 0x10, 0x07, 0x12, 0x0d, 0x0a, 0x09, 0x53, 0x59, 0x4e, 0x43, + 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x10, 0x08, 0x22, 0x5a, 0x0a, 0x0f, 0x41, 0x63, 0x74, 0x69, 0x76, + 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, + 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, + 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x2d, 0x0a, 0x12, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x5f, + 0x73, 0x75, 0x70, 0x65, 0x72, 0x76, 0x69, 0x73, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, + 0x52, 0x11, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x53, 0x75, 0x70, 0x65, 0x72, 0x76, 0x69, + 0x73, 0x6f, 0x72, 0x22, 0x97, 0x01, 0x0a, 0x10, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x36, 0x0a, 0x0b, 0x61, 0x63, 0x74, 0x69, + 0x76, 0x61, 0x74, 0x65, 0x5f, 0x6f, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, + 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x73, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, + 0x4f, 0x4b, 0x48, 0x00, 0x52, 0x0a, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4f, 0x6b, + 0x12, 0x3f, 0x0a, 0x0e, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x5f, 0x65, 0x72, 0x72, + 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, + 0x6f, 0x73, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x45, 0x72, 0x72, 0x6f, 0x72, + 0x48, 0x00, 0x52, 0x0d, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x45, 0x72, 0x72, 0x6f, + 0x72, 0x42, 0x0a, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x0c, 0x0a, + 0x0a, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4f, 0x4b, 0x22, 0x8b, 0x01, 0x0a, 0x0d, + 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x2f, 0x0a, + 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x67, 0x6e, + 0x6f, 0x69, 0x2e, 0x6f, 0x73, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x45, 0x72, + 0x72, 0x6f, 0x72, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x16, + 0x0a, 0x06, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, + 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x22, 0x31, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0f, + 0x0a, 0x0b, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, + 0x18, 0x0a, 0x14, 0x4e, 0x4f, 0x4e, 0x5f, 0x45, 0x58, 0x49, 0x53, 0x54, 0x45, 0x4e, 0x54, 0x5f, + 0x56, 0x45, 0x52, 0x53, 0x49, 0x4f, 0x4e, 0x10, 0x01, 0x22, 0x0f, 0x0a, 0x0d, 0x56, 0x65, 0x72, + 0x69, 0x66, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0xa1, 0x01, 0x0a, 0x0e, 0x56, + 0x65, 0x72, 0x69, 0x66, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, + 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, + 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x36, 0x0a, 0x17, 0x61, 0x63, 0x74, 0x69, 0x76, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x66, 0x61, 0x69, 0x6c, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, + 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x15, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x61, 0x69, 0x6c, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, + 0x3d, 0x0a, 0x0e, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x5f, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x62, + 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, + 0x73, 0x2e, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x53, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x52, + 0x0d, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x53, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x22, 0x9b, + 0x01, 0x0a, 0x0d, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x53, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, + 0x12, 0x3c, 0x0a, 0x0d, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x5f, 0x73, 0x74, 0x61, 0x74, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, + 0x73, 0x2e, 0x53, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x53, 0x74, 0x61, 0x74, 0x65, 0x48, 0x00, + 0x52, 0x0c, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x43, + 0x0a, 0x0f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, + 0x73, 0x2e, 0x53, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x48, 0x00, 0x52, 0x0e, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x42, 0x07, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x22, 0x8e, 0x01, 0x0a, + 0x0c, 0x53, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x31, 0x0a, + 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x67, + 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x73, 0x2e, 0x53, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x53, 0x74, + 0x61, 0x74, 0x65, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, + 0x22, 0x4b, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x0f, 0x0a, 0x0b, 0x55, 0x4e, 0x53, + 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0e, 0x0a, 0x0a, 0x55, 0x4e, + 0x53, 0x55, 0x50, 0x4f, 0x52, 0x54, 0x45, 0x44, 0x10, 0x01, 0x12, 0x10, 0x0a, 0x0c, 0x4e, 0x4f, + 0x4e, 0x5f, 0x45, 0x58, 0x49, 0x53, 0x54, 0x45, 0x4e, 0x54, 0x10, 0x02, 0x12, 0x0f, 0x0a, 0x0b, + 0x55, 0x4e, 0x41, 0x56, 0x41, 0x49, 0x4c, 0x41, 0x42, 0x4c, 0x45, 0x10, 0x03, 0x22, 0x73, 0x0a, + 0x0f, 0x53, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, + 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x36, 0x0a, 0x17, 0x61, 0x63, + 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x66, 0x61, 0x69, 0x6c, 0x5f, 0x6d, 0x65, + 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x15, 0x61, 0x63, 0x74, + 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x61, 0x69, 0x6c, 0x4d, 0x65, 0x73, 0x73, 0x61, + 0x67, 0x65, 0x32, 0xc2, 0x01, 0x0a, 0x02, 0x4f, 0x53, 0x12, 0x40, 0x0a, 0x07, 0x49, 0x6e, 0x73, + 0x74, 0x61, 0x6c, 0x6c, 0x12, 0x17, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x73, 0x2e, 0x49, + 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, + 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x28, 0x01, 0x30, 0x01, 0x12, 0x3f, 0x0a, 0x08, 0x41, + 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x12, 0x18, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, + 0x73, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x19, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x73, 0x2e, 0x41, 0x63, 0x74, 0x69, + 0x76, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x39, 0x0a, 0x06, + 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x12, 0x16, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x73, + 0x2e, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, + 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x73, 0x2e, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x27, 0x5a, 0x1d, 0x67, 0x69, 0x74, 0x68, 0x75, + 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x2f, 0x67, 0x6e, 0x6f, 0x69, 0x2f, 0x6f, 0x73, 0xd2, 0x3e, 0x05, 0x30, 0x2e, 0x31, 0x2e, 0x30, + 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_os_os_proto_rawDescOnce sync.Once + file_os_os_proto_rawDescData = file_os_os_proto_rawDesc +) + +func file_os_os_proto_rawDescGZIP() []byte { + file_os_os_proto_rawDescOnce.Do(func() { + file_os_os_proto_rawDescData = protoimpl.X.CompressGZIP(file_os_os_proto_rawDescData) + }) + return file_os_os_proto_rawDescData +} + +var file_os_os_proto_enumTypes = make([]protoimpl.EnumInfo, 3) +var file_os_os_proto_msgTypes = make([]protoimpl.MessageInfo, 18) +var file_os_os_proto_goTypes = []interface{}{ + (InstallError_Type)(0), // 0: gnoi.os.InstallError.Type + (ActivateError_Type)(0), // 1: gnoi.os.ActivateError.Type + (StandbyState_State)(0), // 2: gnoi.os.StandbyState.State + (*InstallRequest)(nil), // 3: gnoi.os.InstallRequest + (*TransferRequest)(nil), // 4: gnoi.os.TransferRequest + (*TransferEnd)(nil), // 5: gnoi.os.TransferEnd + (*InstallResponse)(nil), // 6: gnoi.os.InstallResponse + (*TransferReady)(nil), // 7: gnoi.os.TransferReady + (*TransferProgress)(nil), // 8: gnoi.os.TransferProgress + (*SyncProgress)(nil), // 9: gnoi.os.SyncProgress + (*Validated)(nil), // 10: gnoi.os.Validated + (*InstallError)(nil), // 11: gnoi.os.InstallError + (*ActivateRequest)(nil), // 12: gnoi.os.ActivateRequest + (*ActivateResponse)(nil), // 13: gnoi.os.ActivateResponse + (*ActivateOK)(nil), // 14: gnoi.os.ActivateOK + (*ActivateError)(nil), // 15: gnoi.os.ActivateError + (*VerifyRequest)(nil), // 16: gnoi.os.VerifyRequest + (*VerifyResponse)(nil), // 17: gnoi.os.VerifyResponse + (*VerifyStandby)(nil), // 18: gnoi.os.VerifyStandby + (*StandbyState)(nil), // 19: gnoi.os.StandbyState + (*StandbyResponse)(nil), // 20: gnoi.os.StandbyResponse +} +var file_os_os_proto_depIdxs = []int32{ + 4, // 0: gnoi.os.InstallRequest.transfer_request:type_name -> gnoi.os.TransferRequest + 5, // 1: gnoi.os.InstallRequest.transfer_end:type_name -> gnoi.os.TransferEnd + 7, // 2: gnoi.os.InstallResponse.transfer_ready:type_name -> gnoi.os.TransferReady + 8, // 3: gnoi.os.InstallResponse.transfer_progress:type_name -> gnoi.os.TransferProgress + 9, // 4: gnoi.os.InstallResponse.sync_progress:type_name -> gnoi.os.SyncProgress + 10, // 5: gnoi.os.InstallResponse.validated:type_name -> gnoi.os.Validated + 11, // 6: gnoi.os.InstallResponse.install_error:type_name -> gnoi.os.InstallError + 0, // 7: gnoi.os.InstallError.type:type_name -> gnoi.os.InstallError.Type + 14, // 8: gnoi.os.ActivateResponse.activate_ok:type_name -> gnoi.os.ActivateOK + 15, // 9: gnoi.os.ActivateResponse.activate_error:type_name -> gnoi.os.ActivateError + 1, // 10: gnoi.os.ActivateError.type:type_name -> gnoi.os.ActivateError.Type + 18, // 11: gnoi.os.VerifyResponse.verify_standby:type_name -> gnoi.os.VerifyStandby + 19, // 12: gnoi.os.VerifyStandby.standby_state:type_name -> gnoi.os.StandbyState + 20, // 13: gnoi.os.VerifyStandby.verify_response:type_name -> gnoi.os.StandbyResponse + 2, // 14: gnoi.os.StandbyState.state:type_name -> gnoi.os.StandbyState.State + 3, // 15: gnoi.os.OS.Install:input_type -> gnoi.os.InstallRequest + 12, // 16: gnoi.os.OS.Activate:input_type -> gnoi.os.ActivateRequest + 16, // 17: gnoi.os.OS.Verify:input_type -> gnoi.os.VerifyRequest + 6, // 18: gnoi.os.OS.Install:output_type -> gnoi.os.InstallResponse + 13, // 19: gnoi.os.OS.Activate:output_type -> gnoi.os.ActivateResponse + 17, // 20: gnoi.os.OS.Verify:output_type -> gnoi.os.VerifyResponse + 18, // [18:21] is the sub-list for method output_type + 15, // [15:18] is the sub-list for method input_type + 15, // [15:15] is the sub-list for extension type_name + 15, // [15:15] is the sub-list for extension extendee + 0, // [0:15] is the sub-list for field type_name +} + +func init() { file_os_os_proto_init() } +func file_os_os_proto_init() { + if File_os_os_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_os_os_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*InstallRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_os_os_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TransferRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_os_os_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TransferEnd); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_os_os_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*InstallResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_os_os_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TransferReady); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_os_os_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TransferProgress); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_os_os_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SyncProgress); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_os_os_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Validated); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_os_os_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*InstallError); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_os_os_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ActivateRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_os_os_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ActivateResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_os_os_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ActivateOK); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_os_os_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ActivateError); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_os_os_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*VerifyRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_os_os_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*VerifyResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_os_os_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*VerifyStandby); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_os_os_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StandbyState); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_os_os_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StandbyResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_os_os_proto_msgTypes[0].OneofWrappers = []interface{}{ + (*InstallRequest_TransferRequest)(nil), + (*InstallRequest_TransferContent)(nil), + (*InstallRequest_TransferEnd)(nil), + } + file_os_os_proto_msgTypes[3].OneofWrappers = []interface{}{ + (*InstallResponse_TransferReady)(nil), + (*InstallResponse_TransferProgress)(nil), + (*InstallResponse_SyncProgress)(nil), + (*InstallResponse_Validated)(nil), + (*InstallResponse_InstallError)(nil), + } + file_os_os_proto_msgTypes[10].OneofWrappers = []interface{}{ + (*ActivateResponse_ActivateOk)(nil), + (*ActivateResponse_ActivateError)(nil), + } + file_os_os_proto_msgTypes[15].OneofWrappers = []interface{}{ + (*VerifyStandby_StandbyState)(nil), + (*VerifyStandby_VerifyResponse)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_os_os_proto_rawDesc, + NumEnums: 3, + NumMessages: 18, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_os_os_proto_goTypes, + DependencyIndexes: file_os_os_proto_depIdxs, + EnumInfos: file_os_os_proto_enumTypes, + MessageInfos: file_os_os_proto_msgTypes, + }.Build() + File_os_os_proto = out.File + file_os_os_proto_rawDesc = nil + file_os_os_proto_goTypes = nil + file_os_os_proto_depIdxs = nil +} diff --git a/os/os.proto b/os/os.proto index af82ee23..56a24e05 100644 --- a/os/os.proto +++ b/os/os.proto @@ -5,6 +5,8 @@ package gnoi.os; import "github.com/openconfig/gnoi/types/types.proto"; +option go_package = "github.com/openconfig/gnoi/os"; + option (types.gnoi_version) = "0.1.0"; // The OS service provides an interface for OS installation on a Target. The diff --git a/os/os_grpc.pb.go b/os/os_grpc.pb.go new file mode 100644 index 00000000..2e8db9d3 --- /dev/null +++ b/os/os_grpc.pb.go @@ -0,0 +1,380 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. + +package os + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.32.0 or later. +const _ = grpc.SupportPackageIsVersion7 + +// OSClient is the client API for OS service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type OSClient interface { + // Install transfers an OS package into the Target. No concurrent Install RPCs + // MUST be allowed to the same Target. + // + // The OS package file format is platform dependent. The platform MUST + // validate that the OS package that is supplied is valid and bootable. This + // SHOULD include a hash check against a known good hash. It is recommended + // that the hash is embedded in the OS package. + // + // The Target manages its own persistent storage, and OS installation process. + // It stores a set of distinct OS packages, and always proactively frees up + // space for incoming new OS packages. It is guaranteed that the Target always + // has enough space for a valid incoming OS package. The currently running OS + // packages MUST never be removed. The Client MUST expect that the last + // successfully installed package is available. + // + // The Install RPC allows the Client to specify the OS package version. If + // the Target already has an OS package with the same version then there is no + // need to transfer the OS package to the Target. If the Target does not have + // an OS package with the same version, then the OS package is copied. + // + // Scenario 1 - When the Target already has the OS package: + // + // Client :--------------|--------------> Target + // TransferRequest --> + // <-- [Validated|InstallError] + // + // + // Scenario 2 - When the Target does not have the OS package: + // + // Client :--------------|--------------> Target + // TransferRequest --> + // <-- [TransferReady|InstallError] + // transfer_content --> + // ... + // <-- [TransferProgress|InstallError] + // ... + // TransferEnd --> + // <-- [Validated|InstallError] + // + // On a dual Supervisor Target, only the Active Supervisor runs this gNOI + // Service. The Install RPC applies to the Active Supervisor unless + // InstallRequest->TransferRequest->standby_supervisor is set, in which case + // it applies to the Standby Supervisor. One Install RPC is required for each + // Supervisor. The Supervisor order of package installation MUST not be fixed. + // + // The Target MUST always attempt to copy the OS package between Supervisors + // first before accepting the transfer from the Client. The syncing progress + // is reported to the client with InstallResponse->SyncProgress messages. + // + // If a switchover is triggered during the Install RPC, the RPC MUST + // immediately abort with Error->type->UNEXPECTED_SWITCHOVER. + // + // Scenario 3 - When both Supervisors already have the OS package, regardless + // of the value in Start.standby_supervisor: + // + // Client :--------------|--------------> Target + // TransferRequest --> + // <-- [Validated|InstallError] + // + // + // Scenario 4 - When one of the Supervisors already has the OS package but the + // other Supervisor is the target of the Install: + // + // Client :--------------|--------------> Target + // TransferRequest --> + // <-- [SyncProgress|InstallError] + // ... + // <-- [Validated|InstallError] + // + // + // Scenario 5 - When neither of the two Supervisors has the OS package: + // + // Client :--------------|--------------> Target + // TransferRequest --> + // <-- [TransferReady|InstallError] + // transfer_content --> + // ... + // <-- [TransferProgress|InstallError] + // ... + // TransferEnd --> + // <-- [Validated|InstallError] + // + Install(ctx context.Context, opts ...grpc.CallOption) (OS_InstallClient, error) + // Activate sets the requested OS version as the version which is used at the + // next reboot, and reboots the Target. When booting the requested OS version + // fails, the Target recovers by booting the previously running OS package. + Activate(ctx context.Context, in *ActivateRequest, opts ...grpc.CallOption) (*ActivateResponse, error) + // Verify checks the running OS version. This RPC may be called multiple times + // while the Target boots, until successful. + Verify(ctx context.Context, in *VerifyRequest, opts ...grpc.CallOption) (*VerifyResponse, error) +} + +type oSClient struct { + cc grpc.ClientConnInterface +} + +func NewOSClient(cc grpc.ClientConnInterface) OSClient { + return &oSClient{cc} +} + +func (c *oSClient) Install(ctx context.Context, opts ...grpc.CallOption) (OS_InstallClient, error) { + stream, err := c.cc.NewStream(ctx, &OS_ServiceDesc.Streams[0], "/gnoi.os.OS/Install", opts...) + if err != nil { + return nil, err + } + x := &oSInstallClient{stream} + return x, nil +} + +type OS_InstallClient interface { + Send(*InstallRequest) error + Recv() (*InstallResponse, error) + grpc.ClientStream +} + +type oSInstallClient struct { + grpc.ClientStream +} + +func (x *oSInstallClient) Send(m *InstallRequest) error { + return x.ClientStream.SendMsg(m) +} + +func (x *oSInstallClient) Recv() (*InstallResponse, error) { + m := new(InstallResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *oSClient) Activate(ctx context.Context, in *ActivateRequest, opts ...grpc.CallOption) (*ActivateResponse, error) { + out := new(ActivateResponse) + err := c.cc.Invoke(ctx, "/gnoi.os.OS/Activate", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *oSClient) Verify(ctx context.Context, in *VerifyRequest, opts ...grpc.CallOption) (*VerifyResponse, error) { + out := new(VerifyResponse) + err := c.cc.Invoke(ctx, "/gnoi.os.OS/Verify", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// OSServer is the server API for OS service. +// All implementations must embed UnimplementedOSServer +// for forward compatibility +type OSServer interface { + // Install transfers an OS package into the Target. No concurrent Install RPCs + // MUST be allowed to the same Target. + // + // The OS package file format is platform dependent. The platform MUST + // validate that the OS package that is supplied is valid and bootable. This + // SHOULD include a hash check against a known good hash. It is recommended + // that the hash is embedded in the OS package. + // + // The Target manages its own persistent storage, and OS installation process. + // It stores a set of distinct OS packages, and always proactively frees up + // space for incoming new OS packages. It is guaranteed that the Target always + // has enough space for a valid incoming OS package. The currently running OS + // packages MUST never be removed. The Client MUST expect that the last + // successfully installed package is available. + // + // The Install RPC allows the Client to specify the OS package version. If + // the Target already has an OS package with the same version then there is no + // need to transfer the OS package to the Target. If the Target does not have + // an OS package with the same version, then the OS package is copied. + // + // Scenario 1 - When the Target already has the OS package: + // + // Client :--------------|--------------> Target + // TransferRequest --> + // <-- [Validated|InstallError] + // + // + // Scenario 2 - When the Target does not have the OS package: + // + // Client :--------------|--------------> Target + // TransferRequest --> + // <-- [TransferReady|InstallError] + // transfer_content --> + // ... + // <-- [TransferProgress|InstallError] + // ... + // TransferEnd --> + // <-- [Validated|InstallError] + // + // On a dual Supervisor Target, only the Active Supervisor runs this gNOI + // Service. The Install RPC applies to the Active Supervisor unless + // InstallRequest->TransferRequest->standby_supervisor is set, in which case + // it applies to the Standby Supervisor. One Install RPC is required for each + // Supervisor. The Supervisor order of package installation MUST not be fixed. + // + // The Target MUST always attempt to copy the OS package between Supervisors + // first before accepting the transfer from the Client. The syncing progress + // is reported to the client with InstallResponse->SyncProgress messages. + // + // If a switchover is triggered during the Install RPC, the RPC MUST + // immediately abort with Error->type->UNEXPECTED_SWITCHOVER. + // + // Scenario 3 - When both Supervisors already have the OS package, regardless + // of the value in Start.standby_supervisor: + // + // Client :--------------|--------------> Target + // TransferRequest --> + // <-- [Validated|InstallError] + // + // + // Scenario 4 - When one of the Supervisors already has the OS package but the + // other Supervisor is the target of the Install: + // + // Client :--------------|--------------> Target + // TransferRequest --> + // <-- [SyncProgress|InstallError] + // ... + // <-- [Validated|InstallError] + // + // + // Scenario 5 - When neither of the two Supervisors has the OS package: + // + // Client :--------------|--------------> Target + // TransferRequest --> + // <-- [TransferReady|InstallError] + // transfer_content --> + // ... + // <-- [TransferProgress|InstallError] + // ... + // TransferEnd --> + // <-- [Validated|InstallError] + // + Install(OS_InstallServer) error + // Activate sets the requested OS version as the version which is used at the + // next reboot, and reboots the Target. When booting the requested OS version + // fails, the Target recovers by booting the previously running OS package. + Activate(context.Context, *ActivateRequest) (*ActivateResponse, error) + // Verify checks the running OS version. This RPC may be called multiple times + // while the Target boots, until successful. + Verify(context.Context, *VerifyRequest) (*VerifyResponse, error) + mustEmbedUnimplementedOSServer() +} + +// UnimplementedOSServer must be embedded to have forward compatible implementations. +type UnimplementedOSServer struct { +} + +func (UnimplementedOSServer) Install(OS_InstallServer) error { + return status.Errorf(codes.Unimplemented, "method Install not implemented") +} +func (UnimplementedOSServer) Activate(context.Context, *ActivateRequest) (*ActivateResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Activate not implemented") +} +func (UnimplementedOSServer) Verify(context.Context, *VerifyRequest) (*VerifyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Verify not implemented") +} +func (UnimplementedOSServer) mustEmbedUnimplementedOSServer() {} + +// UnsafeOSServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to OSServer will +// result in compilation errors. +type UnsafeOSServer interface { + mustEmbedUnimplementedOSServer() +} + +func RegisterOSServer(s grpc.ServiceRegistrar, srv OSServer) { + s.RegisterService(&OS_ServiceDesc, srv) +} + +func _OS_Install_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(OSServer).Install(&oSInstallServer{stream}) +} + +type OS_InstallServer interface { + Send(*InstallResponse) error + Recv() (*InstallRequest, error) + grpc.ServerStream +} + +type oSInstallServer struct { + grpc.ServerStream +} + +func (x *oSInstallServer) Send(m *InstallResponse) error { + return x.ServerStream.SendMsg(m) +} + +func (x *oSInstallServer) Recv() (*InstallRequest, error) { + m := new(InstallRequest) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func _OS_Activate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ActivateRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(OSServer).Activate(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gnoi.os.OS/Activate", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(OSServer).Activate(ctx, req.(*ActivateRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _OS_Verify_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(VerifyRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(OSServer).Verify(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gnoi.os.OS/Verify", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(OSServer).Verify(ctx, req.(*VerifyRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// OS_ServiceDesc is the grpc.ServiceDesc for OS service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var OS_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "gnoi.os.OS", + HandlerType: (*OSServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "Activate", + Handler: _OS_Activate_Handler, + }, + { + MethodName: "Verify", + Handler: _OS_Verify_Handler, + }, + }, + Streams: []grpc.StreamDesc{ + { + StreamName: "Install", + Handler: _OS_Install_Handler, + ServerStreams: true, + ClientStreams: true, + }, + }, + Metadata: "os/os.proto", +} diff --git a/otdr/otdr.pb.go b/otdr/otdr.pb.go index d336f681..221b8af8 100644 --- a/otdr/otdr.pb.go +++ b/otdr/otdr.pb.go @@ -1,45 +1,41 @@ -// Code generated by protoc-gen-go. +// +// Copyright 2019 Google LLC. All Rights Reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.26.0 +// protoc v3.15.7 // source: otdr/otdr.proto -// DO NOT EDIT! - -/* -Package gnoi_optical is a generated protocol buffer package. - -It is generated from these files: - otdr/otdr.proto - -It has these top-level messages: - InitiateRequest - OTDRConfiguration - InitiateProgress - InitiateResults - InitiateError - InitiateResponse - OTDRTrace - Event -*/ -package gnoi_optical - -import proto "github.com/golang/protobuf/proto" -import fmt "fmt" -import math "math" -import gnoi_types "github.com/openconfig/gnoi/types" + +package otdr import ( - context "golang.org/x/net/context" - grpc "google.golang.org/grpc" + types "github.com/openconfig/gnoi/types" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// 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 +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) // Type definition for different profiles of fiber types. These match what is // already defined in OpenConfig under the FIBER_TYPE_PROFILE identityref in @@ -48,68 +44,116 @@ type FiberTypeProfile int32 const ( FiberTypeProfile_FTP_UNKNOWN FiberTypeProfile = 0 - FiberTypeProfile_FTP_DSF FiberTypeProfile = 1 - FiberTypeProfile_FTP_LEAF FiberTypeProfile = 2 - FiberTypeProfile_FTP_SSMF FiberTypeProfile = 3 - FiberTypeProfile_FTP_TWC FiberTypeProfile = 4 - FiberTypeProfile_FTP_TWRS FiberTypeProfile = 5 - FiberTypeProfile_FTP_LS FiberTypeProfile = 6 - FiberTypeProfile_FTP_TERAWAVE FiberTypeProfile = 7 - FiberTypeProfile_FTP_TERALIGHT FiberTypeProfile = 8 + FiberTypeProfile_FTP_DSF FiberTypeProfile = 1 // Dispersion shifted fiber. + FiberTypeProfile_FTP_LEAF FiberTypeProfile = 2 // Large effective area fiber. + FiberTypeProfile_FTP_SSMF FiberTypeProfile = 3 // Standard single mode fiber. + FiberTypeProfile_FTP_TWC FiberTypeProfile = 4 // True wave classic fiber. + FiberTypeProfile_FTP_TWRS FiberTypeProfile = 5 // True wave reduced slope fiber. + FiberTypeProfile_FTP_LS FiberTypeProfile = 6 // LEAF Submarine fiber. + FiberTypeProfile_FTP_TERAWAVE FiberTypeProfile = 7 // TeraWave fiber. + FiberTypeProfile_FTP_TERALIGHT FiberTypeProfile = 8 // TeraLight fiber. +) + +// Enum value maps for FiberTypeProfile. +var ( + FiberTypeProfile_name = map[int32]string{ + 0: "FTP_UNKNOWN", + 1: "FTP_DSF", + 2: "FTP_LEAF", + 3: "FTP_SSMF", + 4: "FTP_TWC", + 5: "FTP_TWRS", + 6: "FTP_LS", + 7: "FTP_TERAWAVE", + 8: "FTP_TERALIGHT", + } + FiberTypeProfile_value = map[string]int32{ + "FTP_UNKNOWN": 0, + "FTP_DSF": 1, + "FTP_LEAF": 2, + "FTP_SSMF": 3, + "FTP_TWC": 4, + "FTP_TWRS": 5, + "FTP_LS": 6, + "FTP_TERAWAVE": 7, + "FTP_TERALIGHT": 8, + } ) -var FiberTypeProfile_name = map[int32]string{ - 0: "FTP_UNKNOWN", - 1: "FTP_DSF", - 2: "FTP_LEAF", - 3: "FTP_SSMF", - 4: "FTP_TWC", - 5: "FTP_TWRS", - 6: "FTP_LS", - 7: "FTP_TERAWAVE", - 8: "FTP_TERALIGHT", -} -var FiberTypeProfile_value = map[string]int32{ - "FTP_UNKNOWN": 0, - "FTP_DSF": 1, - "FTP_LEAF": 2, - "FTP_SSMF": 3, - "FTP_TWC": 4, - "FTP_TWRS": 5, - "FTP_LS": 6, - "FTP_TERAWAVE": 7, - "FTP_TERALIGHT": 8, +func (x FiberTypeProfile) Enum() *FiberTypeProfile { + p := new(FiberTypeProfile) + *p = x + return p } func (x FiberTypeProfile) String() string { - return proto.EnumName(FiberTypeProfile_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (FiberTypeProfile) Descriptor() protoreflect.EnumDescriptor { + return file_otdr_otdr_proto_enumTypes[0].Descriptor() +} + +func (FiberTypeProfile) Type() protoreflect.EnumType { + return &file_otdr_otdr_proto_enumTypes[0] +} + +func (x FiberTypeProfile) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use FiberTypeProfile.Descriptor instead. +func (FiberTypeProfile) EnumDescriptor() ([]byte, []int) { + return file_otdr_otdr_proto_rawDescGZIP(), []int{0} } -func (FiberTypeProfile) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } type InitiateRequest_ResultsMethod int32 const ( InitiateRequest_RESULTS_UNKNOWN InitiateRequest_ResultsMethod = 0 - InitiateRequest_RESULTS_TO_LOCAL_DISK InitiateRequest_ResultsMethod = 1 - InitiateRequest_RESULTS_IN_RESPONSE InitiateRequest_ResultsMethod = 2 + InitiateRequest_RESULTS_TO_LOCAL_DISK InitiateRequest_ResultsMethod = 1 // Results saved to a file on the device. + InitiateRequest_RESULTS_IN_RESPONSE InitiateRequest_ResultsMethod = 2 // Results sent back in the response. ) -var InitiateRequest_ResultsMethod_name = map[int32]string{ - 0: "RESULTS_UNKNOWN", - 1: "RESULTS_TO_LOCAL_DISK", - 2: "RESULTS_IN_RESPONSE", -} -var InitiateRequest_ResultsMethod_value = map[string]int32{ - "RESULTS_UNKNOWN": 0, - "RESULTS_TO_LOCAL_DISK": 1, - "RESULTS_IN_RESPONSE": 2, +// Enum value maps for InitiateRequest_ResultsMethod. +var ( + InitiateRequest_ResultsMethod_name = map[int32]string{ + 0: "RESULTS_UNKNOWN", + 1: "RESULTS_TO_LOCAL_DISK", + 2: "RESULTS_IN_RESPONSE", + } + InitiateRequest_ResultsMethod_value = map[string]int32{ + "RESULTS_UNKNOWN": 0, + "RESULTS_TO_LOCAL_DISK": 1, + "RESULTS_IN_RESPONSE": 2, + } +) + +func (x InitiateRequest_ResultsMethod) Enum() *InitiateRequest_ResultsMethod { + p := new(InitiateRequest_ResultsMethod) + *p = x + return p } func (x InitiateRequest_ResultsMethod) String() string { - return proto.EnumName(InitiateRequest_ResultsMethod_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (InitiateRequest_ResultsMethod) Descriptor() protoreflect.EnumDescriptor { + return file_otdr_otdr_proto_enumTypes[1].Descriptor() } + +func (InitiateRequest_ResultsMethod) Type() protoreflect.EnumType { + return &file_otdr_otdr_proto_enumTypes[1] +} + +func (x InitiateRequest_ResultsMethod) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use InitiateRequest_ResultsMethod.Descriptor instead. func (InitiateRequest_ResultsMethod) EnumDescriptor() ([]byte, []int) { - return fileDescriptor0, []int{0, 0} + return file_otdr_otdr_proto_rawDescGZIP(), []int{0, 0} } // The State enum defines possible states that the OTDR trace may be in @@ -118,28 +162,53 @@ type InitiateProgress_State int32 const ( InitiateProgress_UNKNOWN InitiateProgress_State = 0 - InitiateProgress_RUNNING InitiateProgress_State = 1 - InitiateProgress_PENDING InitiateProgress_State = 2 - InitiateProgress_COMPLETE InitiateProgress_State = 3 + InitiateProgress_RUNNING InitiateProgress_State = 1 // The OTDR is currently performing an OTDR trace. + InitiateProgress_PENDING InitiateProgress_State = 2 // The OTDR is pending underlying resources being available. + InitiateProgress_COMPLETE InitiateProgress_State = 3 // The OTDR trace was completed. ) -var InitiateProgress_State_name = map[int32]string{ - 0: "UNKNOWN", - 1: "RUNNING", - 2: "PENDING", - 3: "COMPLETE", -} -var InitiateProgress_State_value = map[string]int32{ - "UNKNOWN": 0, - "RUNNING": 1, - "PENDING": 2, - "COMPLETE": 3, +// Enum value maps for InitiateProgress_State. +var ( + InitiateProgress_State_name = map[int32]string{ + 0: "UNKNOWN", + 1: "RUNNING", + 2: "PENDING", + 3: "COMPLETE", + } + InitiateProgress_State_value = map[string]int32{ + "UNKNOWN": 0, + "RUNNING": 1, + "PENDING": 2, + "COMPLETE": 3, + } +) + +func (x InitiateProgress_State) Enum() *InitiateProgress_State { + p := new(InitiateProgress_State) + *p = x + return p } func (x InitiateProgress_State) String() string { - return proto.EnumName(InitiateProgress_State_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (InitiateProgress_State) Descriptor() protoreflect.EnumDescriptor { + return file_otdr_otdr_proto_enumTypes[2].Descriptor() +} + +func (InitiateProgress_State) Type() protoreflect.EnumType { + return &file_otdr_otdr_proto_enumTypes[2] +} + +func (x InitiateProgress_State) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use InitiateProgress_State.Descriptor instead. +func (InitiateProgress_State) EnumDescriptor() ([]byte, []int) { + return file_otdr_otdr_proto_rawDescGZIP(), []int{2, 0} } -func (InitiateProgress_State) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{2, 0} } type InitiateError_Type int32 @@ -152,123 +221,387 @@ const ( InitiateError_HARDWARE_FAILURE InitiateError_Type = 2 ) -var InitiateError_Type_name = map[int32]string{ - 0: "UNSPECIFIED", - 1: "ALREADY_IN_PROGRESS", - 2: "HARDWARE_FAILURE", -} -var InitiateError_Type_value = map[string]int32{ - "UNSPECIFIED": 0, - "ALREADY_IN_PROGRESS": 1, - "HARDWARE_FAILURE": 2, +// Enum value maps for InitiateError_Type. +var ( + InitiateError_Type_name = map[int32]string{ + 0: "UNSPECIFIED", + 1: "ALREADY_IN_PROGRESS", + 2: "HARDWARE_FAILURE", + } + InitiateError_Type_value = map[string]int32{ + "UNSPECIFIED": 0, + "ALREADY_IN_PROGRESS": 1, + "HARDWARE_FAILURE": 2, + } +) + +func (x InitiateError_Type) Enum() *InitiateError_Type { + p := new(InitiateError_Type) + *p = x + return p } func (x InitiateError_Type) String() string { - return proto.EnumName(InitiateError_Type_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (InitiateError_Type) Descriptor() protoreflect.EnumDescriptor { + return file_otdr_otdr_proto_enumTypes[3].Descriptor() +} + +func (InitiateError_Type) Type() protoreflect.EnumType { + return &file_otdr_otdr_proto_enumTypes[3] +} + +func (x InitiateError_Type) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use InitiateError_Type.Descriptor instead. +func (InitiateError_Type) EnumDescriptor() ([]byte, []int) { + return file_otdr_otdr_proto_rawDescGZIP(), []int{4, 0} } -func (InitiateError_Type) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{4, 0} } type InitiateRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // Absolute path to the /components/component list member in the OpenConfig // model corresponding to the port to perform the OTDR trace from. // (e.g., /components/component[name=otdr-1-1]) - Component *gnoi_types.Path `protobuf:"bytes,1,opt,name=component" json:"component,omitempty"` + Component *types.Path `protobuf:"bytes,1,opt,name=component,proto3" json:"component,omitempty"` // Describes how the results of the OTDR trace should be made available. More // than one option may be specified if desired. - ResultsMethod []InitiateRequest_ResultsMethod `protobuf:"varint,2,rep,packed,name=results_method,json=resultsMethod,enum=gnoi.optical.InitiateRequest_ResultsMethod" json:"results_method,omitempty"` + ResultsMethod []InitiateRequest_ResultsMethod `protobuf:"varint,2,rep,packed,name=results_method,json=resultsMethod,proto3,enum=gnoi.optical.InitiateRequest_ResultsMethod" json:"results_method,omitempty"` // Describes the configuration used to perform an OTDR trace. - Configuration *OTDRConfiguration `protobuf:"bytes,3,opt,name=configuration" json:"configuration,omitempty"` + Configuration *OTDRConfiguration `protobuf:"bytes,3,opt,name=configuration,proto3" json:"configuration,omitempty"` // If specified, the device will label the OTDR trace so it can be recalled // later. For example, the initial OTDR trace measured during span // commissioning might be labeled "baseline". - Label string `protobuf:"bytes,4,opt,name=label" json:"label,omitempty"` + Label string `protobuf:"bytes,4,opt,name=label,proto3" json:"label,omitempty"` } -func (m *InitiateRequest) Reset() { *m = InitiateRequest{} } -func (m *InitiateRequest) String() string { return proto.CompactTextString(m) } -func (*InitiateRequest) ProtoMessage() {} -func (*InitiateRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } +func (x *InitiateRequest) Reset() { + *x = InitiateRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_otdr_otdr_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} -func (m *InitiateRequest) GetComponent() *gnoi_types.Path { - if m != nil { - return m.Component +func (x *InitiateRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*InitiateRequest) ProtoMessage() {} + +func (x *InitiateRequest) ProtoReflect() protoreflect.Message { + mi := &file_otdr_otdr_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use InitiateRequest.ProtoReflect.Descriptor instead. +func (*InitiateRequest) Descriptor() ([]byte, []int) { + return file_otdr_otdr_proto_rawDescGZIP(), []int{0} +} + +func (x *InitiateRequest) GetComponent() *types.Path { + if x != nil { + return x.Component } return nil } -func (m *InitiateRequest) GetConfiguration() *OTDRConfiguration { - if m != nil { - return m.Configuration +func (x *InitiateRequest) GetResultsMethod() []InitiateRequest_ResultsMethod { + if x != nil { + return x.ResultsMethod + } + return nil +} + +func (x *InitiateRequest) GetConfiguration() *OTDRConfiguration { + if x != nil { + return x.Configuration } return nil } +func (x *InitiateRequest) GetLabel() string { + if x != nil { + return x.Label + } + return "" +} + // OTDR configuration options which can be set on the device. It is not required // that every field be set as some fields may not apply for a given // implementation. type OTDRConfiguration struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // The time in seconds in which the OTDR trace will run continuously to // collect data. - AcquisitionTimeS uint32 `protobuf:"varint,1,opt,name=acquisition_time_s,json=acquisitionTimeS" json:"acquisition_time_s,omitempty"` + AcquisitionTimeS uint32 `protobuf:"varint,1,opt,name=acquisition_time_s,json=acquisitionTimeS,proto3" json:"acquisition_time_s,omitempty"` // The pulse width in nanoseconds which defines how long pulses sent by the // OTDR will be during the test. - PulseWidthNs float32 `protobuf:"fixed32,2,opt,name=pulse_width_ns,json=pulseWidthNs" json:"pulse_width_ns,omitempty"` + PulseWidthNs float32 `protobuf:"fixed32,2,opt,name=pulse_width_ns,json=pulseWidthNs,proto3" json:"pulse_width_ns,omitempty"` // The wavelength in MHz that will be sent by the OTDR. This may be left blank // if the OTDR only supports one wavelength. - WavelengthMhz uint64 `protobuf:"varint,3,opt,name=wavelength_mhz,json=wavelengthMhz" json:"wavelength_mhz,omitempty"` + WavelengthMhz uint64 `protobuf:"varint,3,opt,name=wavelength_mhz,json=wavelengthMhz,proto3" json:"wavelength_mhz,omitempty"` // The maximum fiber distance range in meters that the OTDR trace will // support. - RangeM float32 `protobuf:"fixed32,4,opt,name=range_m,json=rangeM" json:"range_m,omitempty"` + RangeM float32 `protobuf:"fixed32,4,opt,name=range_m,json=rangeM,proto3" json:"range_m,omitempty"` // The type of fiber that is being measured. - FiberType FiberTypeProfile `protobuf:"varint,5,opt,name=fiber_type,json=fiberType,enum=gnoi.optical.FiberTypeProfile" json:"fiber_type,omitempty"` + FiberType FiberTypeProfile `protobuf:"varint,5,opt,name=fiber_type,json=fiberType,proto3,enum=gnoi.optical.FiberTypeProfile" json:"fiber_type,omitempty"` // The sampling resolution in meters. - SamplingResolutionM float32 `protobuf:"fixed32,6,opt,name=sampling_resolution_m,json=samplingResolutionM" json:"sampling_resolution_m,omitempty"` + SamplingResolutionM float32 `protobuf:"fixed32,6,opt,name=sampling_resolution_m,json=samplingResolutionM,proto3" json:"sampling_resolution_m,omitempty"` } -func (m *OTDRConfiguration) Reset() { *m = OTDRConfiguration{} } -func (m *OTDRConfiguration) String() string { return proto.CompactTextString(m) } -func (*OTDRConfiguration) ProtoMessage() {} -func (*OTDRConfiguration) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } +func (x *OTDRConfiguration) Reset() { + *x = OTDRConfiguration{} + if protoimpl.UnsafeEnabled { + mi := &file_otdr_otdr_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *OTDRConfiguration) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OTDRConfiguration) ProtoMessage() {} + +func (x *OTDRConfiguration) ProtoReflect() protoreflect.Message { + mi := &file_otdr_otdr_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use OTDRConfiguration.ProtoReflect.Descriptor instead. +func (*OTDRConfiguration) Descriptor() ([]byte, []int) { + return file_otdr_otdr_proto_rawDescGZIP(), []int{1} +} + +func (x *OTDRConfiguration) GetAcquisitionTimeS() uint32 { + if x != nil { + return x.AcquisitionTimeS + } + return 0 +} + +func (x *OTDRConfiguration) GetPulseWidthNs() float32 { + if x != nil { + return x.PulseWidthNs + } + return 0 +} + +func (x *OTDRConfiguration) GetWavelengthMhz() uint64 { + if x != nil { + return x.WavelengthMhz + } + return 0 +} + +func (x *OTDRConfiguration) GetRangeM() float32 { + if x != nil { + return x.RangeM + } + return 0 +} + +func (x *OTDRConfiguration) GetFiberType() FiberTypeProfile { + if x != nil { + return x.FiberType + } + return FiberTypeProfile_FTP_UNKNOWN +} + +func (x *OTDRConfiguration) GetSamplingResolutionM() float32 { + if x != nil { + return x.SamplingResolutionM + } + return 0 +} type InitiateProgress struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // The state of the OTDR trace requested. Note that this does not include // error states as these should be returned as a gRPC error. - State InitiateProgress_State `protobuf:"varint,1,opt,name=state,enum=gnoi.optical.InitiateProgress_State" json:"state,omitempty"` + State InitiateProgress_State `protobuf:"varint,1,opt,name=state,proto3,enum=gnoi.optical.InitiateProgress_State" json:"state,omitempty"` +} + +func (x *InitiateProgress) Reset() { + *x = InitiateProgress{} + if protoimpl.UnsafeEnabled { + mi := &file_otdr_otdr_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *InitiateProgress) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *InitiateProgress) Reset() { *m = InitiateProgress{} } -func (m *InitiateProgress) String() string { return proto.CompactTextString(m) } -func (*InitiateProgress) ProtoMessage() {} -func (*InitiateProgress) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} } +func (*InitiateProgress) ProtoMessage() {} + +func (x *InitiateProgress) ProtoReflect() protoreflect.Message { + mi := &file_otdr_otdr_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use InitiateProgress.ProtoReflect.Descriptor instead. +func (*InitiateProgress) Descriptor() ([]byte, []int) { + return file_otdr_otdr_proto_rawDescGZIP(), []int{2} +} + +func (x *InitiateProgress) GetState() InitiateProgress_State { + if x != nil { + return x.State + } + return InitiateProgress_UNKNOWN +} type InitiateResults struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // The local path in which the OTDR file is saved on the device. - LocalPath string `protobuf:"bytes,1,opt,name=local_path,json=localPath" json:"local_path,omitempty"` + LocalPath string `protobuf:"bytes,1,opt,name=local_path,json=localPath,proto3" json:"local_path,omitempty"` // The OTDR trace details in a structured format. - OtdrTrace *OTDRTrace `protobuf:"bytes,2,opt,name=otdr_trace,json=otdrTrace" json:"otdr_trace,omitempty"` + OtdrTrace *OTDRTrace `protobuf:"bytes,2,opt,name=otdr_trace,json=otdrTrace,proto3" json:"otdr_trace,omitempty"` } -func (m *InitiateResults) Reset() { *m = InitiateResults{} } -func (m *InitiateResults) String() string { return proto.CompactTextString(m) } -func (*InitiateResults) ProtoMessage() {} -func (*InitiateResults) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} } +func (x *InitiateResults) Reset() { + *x = InitiateResults{} + if protoimpl.UnsafeEnabled { + mi := &file_otdr_otdr_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} -func (m *InitiateResults) GetOtdrTrace() *OTDRTrace { - if m != nil { - return m.OtdrTrace +func (x *InitiateResults) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*InitiateResults) ProtoMessage() {} + +func (x *InitiateResults) ProtoReflect() protoreflect.Message { + mi := &file_otdr_otdr_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use InitiateResults.ProtoReflect.Descriptor instead. +func (*InitiateResults) Descriptor() ([]byte, []int) { + return file_otdr_otdr_proto_rawDescGZIP(), []int{3} +} + +func (x *InitiateResults) GetLocalPath() string { + if x != nil { + return x.LocalPath + } + return "" +} + +func (x *InitiateResults) GetOtdrTrace() *OTDRTrace { + if x != nil { + return x.OtdrTrace } return nil } type InitiateError struct { - Type InitiateError_Type `protobuf:"varint,1,opt,name=type,enum=gnoi.optical.InitiateError_Type" json:"type,omitempty"` - Detail string `protobuf:"bytes,2,opt,name=detail" json:"detail,omitempty"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Type InitiateError_Type `protobuf:"varint,1,opt,name=type,proto3,enum=gnoi.optical.InitiateError_Type" json:"type,omitempty"` + Detail string `protobuf:"bytes,2,opt,name=detail,proto3" json:"detail,omitempty"` } -func (m *InitiateError) Reset() { *m = InitiateError{} } -func (m *InitiateError) String() string { return proto.CompactTextString(m) } -func (*InitiateError) ProtoMessage() {} -func (*InitiateError) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} } +func (x *InitiateError) Reset() { + *x = InitiateError{} + if protoimpl.UnsafeEnabled { + mi := &file_otdr_otdr_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *InitiateError) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*InitiateError) ProtoMessage() {} + +func (x *InitiateError) ProtoReflect() protoreflect.Message { + mi := &file_otdr_otdr_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use InitiateError.ProtoReflect.Descriptor instead. +func (*InitiateError) Descriptor() ([]byte, []int) { + return file_otdr_otdr_proto_rawDescGZIP(), []int{4} +} + +func (x *InitiateError) GetType() InitiateError_Type { + if x != nil { + return x.Type + } + return InitiateError_UNSPECIFIED +} + +func (x *InitiateError) GetDetail() string { + if x != nil { + return x.Detail + } + return "" +} // IntitiateResponse describes the possible response messages that will be // streamed after the RPC is initiated. While the OTDR is running, "progress" @@ -276,35 +609,48 @@ func (*InitiateError) Descriptor() ([]byte, []int) { return fileDescriptor0, []i // completed, a final "results" or "error" message should be streamed before // the RPC is terminated. type InitiateResponse struct { - // Types that are valid to be assigned to Response: + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Types that are assignable to Response: // *InitiateResponse_Progress // *InitiateResponse_Results // *InitiateResponse_Error Response isInitiateResponse_Response `protobuf_oneof:"response"` } -func (m *InitiateResponse) Reset() { *m = InitiateResponse{} } -func (m *InitiateResponse) String() string { return proto.CompactTextString(m) } -func (*InitiateResponse) ProtoMessage() {} -func (*InitiateResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} } - -type isInitiateResponse_Response interface { - isInitiateResponse_Response() +func (x *InitiateResponse) Reset() { + *x = InitiateResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_otdr_otdr_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -type InitiateResponse_Progress struct { - Progress *InitiateProgress `protobuf:"bytes,1,opt,name=progress,oneof"` +func (x *InitiateResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -type InitiateResponse_Results struct { - Results *InitiateResults `protobuf:"bytes,2,opt,name=results,oneof"` -} -type InitiateResponse_Error struct { - Error *InitiateError `protobuf:"bytes,3,opt,name=error,oneof"` + +func (*InitiateResponse) ProtoMessage() {} + +func (x *InitiateResponse) ProtoReflect() protoreflect.Message { + mi := &file_otdr_otdr_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func (*InitiateResponse_Progress) isInitiateResponse_Response() {} -func (*InitiateResponse_Results) isInitiateResponse_Response() {} -func (*InitiateResponse_Error) isInitiateResponse_Response() {} +// Deprecated: Use InitiateResponse.ProtoReflect.Descriptor instead. +func (*InitiateResponse) Descriptor() ([]byte, []int) { + return file_otdr_otdr_proto_rawDescGZIP(), []int{5} +} func (m *InitiateResponse) GetResponse() isInitiateResponse_Response { if m != nil { @@ -313,358 +659,515 @@ func (m *InitiateResponse) GetResponse() isInitiateResponse_Response { return nil } -func (m *InitiateResponse) GetProgress() *InitiateProgress { - if x, ok := m.GetResponse().(*InitiateResponse_Progress); ok { +func (x *InitiateResponse) GetProgress() *InitiateProgress { + if x, ok := x.GetResponse().(*InitiateResponse_Progress); ok { return x.Progress } return nil } -func (m *InitiateResponse) GetResults() *InitiateResults { - if x, ok := m.GetResponse().(*InitiateResponse_Results); ok { +func (x *InitiateResponse) GetResults() *InitiateResults { + if x, ok := x.GetResponse().(*InitiateResponse_Results); ok { return x.Results } return nil } -func (m *InitiateResponse) GetError() *InitiateError { - if x, ok := m.GetResponse().(*InitiateResponse_Error); ok { +func (x *InitiateResponse) GetError() *InitiateError { + if x, ok := x.GetResponse().(*InitiateResponse_Error); ok { return x.Error } return nil } -// XXX_OneofFuncs is for the internal use of the proto package. -func (*InitiateResponse) 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 _InitiateResponse_OneofMarshaler, _InitiateResponse_OneofUnmarshaler, _InitiateResponse_OneofSizer, []interface{}{ - (*InitiateResponse_Progress)(nil), - (*InitiateResponse_Results)(nil), - (*InitiateResponse_Error)(nil), - } +type isInitiateResponse_Response interface { + isInitiateResponse_Response() } -func _InitiateResponse_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { - m := msg.(*InitiateResponse) - // response - switch x := m.Response.(type) { - case *InitiateResponse_Progress: - b.EncodeVarint(1<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.Progress); err != nil { - return err - } - case *InitiateResponse_Results: - b.EncodeVarint(2<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.Results); err != nil { - return err - } - case *InitiateResponse_Error: - b.EncodeVarint(3<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.Error); err != nil { - return err - } - case nil: - default: - return fmt.Errorf("InitiateResponse.Response has unexpected type %T", x) - } - return nil +type InitiateResponse_Progress struct { + Progress *InitiateProgress `protobuf:"bytes,1,opt,name=progress,proto3,oneof"` } -func _InitiateResponse_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { - m := msg.(*InitiateResponse) - switch tag { - case 1: // response.progress - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(InitiateProgress) - err := b.DecodeMessage(msg) - m.Response = &InitiateResponse_Progress{msg} - return true, err - case 2: // response.results - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(InitiateResults) - err := b.DecodeMessage(msg) - m.Response = &InitiateResponse_Results{msg} - return true, err - case 3: // response.error - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(InitiateError) - err := b.DecodeMessage(msg) - m.Response = &InitiateResponse_Error{msg} - return true, err - default: - return false, nil - } -} - -func _InitiateResponse_OneofSizer(msg proto.Message) (n int) { - m := msg.(*InitiateResponse) - // response - switch x := m.Response.(type) { - case *InitiateResponse_Progress: - s := proto.Size(x.Progress) - n += proto.SizeVarint(1<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *InitiateResponse_Results: - s := proto.Size(x.Results) - n += proto.SizeVarint(2<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *InitiateResponse_Error: - s := proto.Size(x.Error) - n += proto.SizeVarint(3<<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 +type InitiateResponse_Results struct { + Results *InitiateResults `protobuf:"bytes,2,opt,name=results,proto3,oneof"` +} + +type InitiateResponse_Error struct { + Error *InitiateError `protobuf:"bytes,3,opt,name=error,proto3,oneof"` } +func (*InitiateResponse_Progress) isInitiateResponse_Response() {} + +func (*InitiateResponse_Results) isInitiateResponse_Response() {} + +func (*InitiateResponse_Error) isInitiateResponse_Response() {} + type OTDRTrace struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // Total measured loss of the fiber. - TotalLossDb float32 `protobuf:"fixed32,1,opt,name=total_loss_db,json=totalLossDb" json:"total_loss_db,omitempty"` + TotalLossDb float32 `protobuf:"fixed32,1,opt,name=total_loss_db,json=totalLossDb,proto3" json:"total_loss_db,omitempty"` // Total measured length of the fiber in meters. - TotalLengthM float32 `protobuf:"fixed32,2,opt,name=total_length_m,json=totalLengthM" json:"total_length_m,omitempty"` + TotalLengthM float32 `protobuf:"fixed32,2,opt,name=total_length_m,json=totalLengthM,proto3" json:"total_length_m,omitempty"` // Optical return loss of the fiber in dB. - OpticalReturnLossDb float32 `protobuf:"fixed32,3,opt,name=optical_return_loss_db,json=opticalReturnLossDb" json:"optical_return_loss_db,omitempty"` + OpticalReturnLossDb float32 `protobuf:"fixed32,3,opt,name=optical_return_loss_db,json=opticalReturnLossDb,proto3" json:"optical_return_loss_db,omitempty"` // Average fiber loss (dB/km) - AverageLossDbKm float32 `protobuf:"fixed32,4,opt,name=average_loss_db_km,json=averageLossDbKm" json:"average_loss_db_km,omitempty"` + AverageLossDbKm float32 `protobuf:"fixed32,4,opt,name=average_loss_db_km,json=averageLossDbKm,proto3" json:"average_loss_db_km,omitempty"` // Discovered fiber type, if the OTDR can infer this information. - DiscoveredFiberType FiberTypeProfile `protobuf:"varint,5,opt,name=discovered_fiber_type,json=discoveredFiberType,enum=gnoi.optical.FiberTypeProfile" json:"discovered_fiber_type,omitempty"` - Events []*Event `protobuf:"bytes,6,rep,name=events" json:"events,omitempty"` + DiscoveredFiberType FiberTypeProfile `protobuf:"varint,5,opt,name=discovered_fiber_type,json=discoveredFiberType,proto3,enum=gnoi.optical.FiberTypeProfile" json:"discovered_fiber_type,omitempty"` + Events []*Event `protobuf:"bytes,6,rep,name=events,proto3" json:"events,omitempty"` } -func (m *OTDRTrace) Reset() { *m = OTDRTrace{} } -func (m *OTDRTrace) String() string { return proto.CompactTextString(m) } -func (*OTDRTrace) ProtoMessage() {} -func (*OTDRTrace) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} } - -func (m *OTDRTrace) GetEvents() []*Event { - if m != nil { - return m.Events +func (x *OTDRTrace) Reset() { + *x = OTDRTrace{} + if protoimpl.UnsafeEnabled { + mi := &file_otdr_otdr_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -type Event struct { - // Distance at which the event occurred in meters. - DistanceM float32 `protobuf:"fixed32,1,opt,name=distance_m,json=distanceM" json:"distance_m,omitempty"` - // The fiber loss that occurred at the event in dB. - LossDb float32 `protobuf:"fixed32,2,opt,name=loss_db,json=lossDb" json:"loss_db,omitempty"` - // The reflection that occurred at the event in dB. - ReflectionDb float32 `protobuf:"fixed32,3,opt,name=reflection_db,json=reflectionDb" json:"reflection_db,omitempty"` +func (x *OTDRTrace) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Event) Reset() { *m = Event{} } -func (m *Event) String() string { return proto.CompactTextString(m) } -func (*Event) ProtoMessage() {} -func (*Event) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} } +func (*OTDRTrace) ProtoMessage() {} -func init() { - proto.RegisterType((*InitiateRequest)(nil), "gnoi.optical.InitiateRequest") - proto.RegisterType((*OTDRConfiguration)(nil), "gnoi.optical.OTDRConfiguration") - proto.RegisterType((*InitiateProgress)(nil), "gnoi.optical.InitiateProgress") - proto.RegisterType((*InitiateResults)(nil), "gnoi.optical.InitiateResults") - proto.RegisterType((*InitiateError)(nil), "gnoi.optical.InitiateError") - proto.RegisterType((*InitiateResponse)(nil), "gnoi.optical.InitiateResponse") - proto.RegisterType((*OTDRTrace)(nil), "gnoi.optical.OTDRTrace") - proto.RegisterType((*Event)(nil), "gnoi.optical.Event") - proto.RegisterEnum("gnoi.optical.FiberTypeProfile", FiberTypeProfile_name, FiberTypeProfile_value) - proto.RegisterEnum("gnoi.optical.InitiateRequest_ResultsMethod", InitiateRequest_ResultsMethod_name, InitiateRequest_ResultsMethod_value) - proto.RegisterEnum("gnoi.optical.InitiateProgress_State", InitiateProgress_State_name, InitiateProgress_State_value) - proto.RegisterEnum("gnoi.optical.InitiateError_Type", InitiateError_Type_name, InitiateError_Type_value) +func (x *OTDRTrace) ProtoReflect() protoreflect.Message { + mi := &file_otdr_otdr_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion3 - -// Client API for OTDR service +// Deprecated: Use OTDRTrace.ProtoReflect.Descriptor instead. +func (*OTDRTrace) Descriptor() ([]byte, []int) { + return file_otdr_otdr_proto_rawDescGZIP(), []int{6} +} -type OTDRClient interface { - // Initiate triggers an optical time domain reflectometer (OTDR) trace to - // be run on a specified port. The results of the trace may be sent back in - // the response or saved on the device to be retrieved later. If the - // information is saved on the device a path to the file must be returned - // which can later be used by File.Get or File.TransferToRemote. The RPC - // should initiate the OTDR trace and wait until the OTDR trace has completed - // and the device has processed the results before returning. If the RPC is - // cancelled while in operation, the running OTDR trace should stop. - Initiate(ctx context.Context, in *InitiateRequest, opts ...grpc.CallOption) (OTDR_InitiateClient, error) +func (x *OTDRTrace) GetTotalLossDb() float32 { + if x != nil { + return x.TotalLossDb + } + return 0 } -type oTDRClient struct { - cc *grpc.ClientConn +func (x *OTDRTrace) GetTotalLengthM() float32 { + if x != nil { + return x.TotalLengthM + } + return 0 } -func NewOTDRClient(cc *grpc.ClientConn) OTDRClient { - return &oTDRClient{cc} +func (x *OTDRTrace) GetOpticalReturnLossDb() float32 { + if x != nil { + return x.OpticalReturnLossDb + } + return 0 } -func (c *oTDRClient) Initiate(ctx context.Context, in *InitiateRequest, opts ...grpc.CallOption) (OTDR_InitiateClient, error) { - stream, err := grpc.NewClientStream(ctx, &_OTDR_serviceDesc.Streams[0], c.cc, "/gnoi.optical.OTDR/Initiate", opts...) - if err != nil { - return nil, err +func (x *OTDRTrace) GetAverageLossDbKm() float32 { + if x != nil { + return x.AverageLossDbKm } - x := &oTDRInitiateClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err + return 0 +} + +func (x *OTDRTrace) GetDiscoveredFiberType() FiberTypeProfile { + if x != nil { + return x.DiscoveredFiberType } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err + return FiberTypeProfile_FTP_UNKNOWN +} + +func (x *OTDRTrace) GetEvents() []*Event { + if x != nil { + return x.Events } - return x, nil + return nil } -type OTDR_InitiateClient interface { - Recv() (*InitiateResponse, error) - grpc.ClientStream +type Event struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Distance at which the event occurred in meters. + DistanceM float32 `protobuf:"fixed32,1,opt,name=distance_m,json=distanceM,proto3" json:"distance_m,omitempty"` + // The fiber loss that occurred at the event in dB. + LossDb float32 `protobuf:"fixed32,2,opt,name=loss_db,json=lossDb,proto3" json:"loss_db,omitempty"` + // The reflection that occurred at the event in dB. + ReflectionDb float32 `protobuf:"fixed32,3,opt,name=reflection_db,json=reflectionDb,proto3" json:"reflection_db,omitempty"` +} + +func (x *Event) Reset() { + *x = Event{} + if protoimpl.UnsafeEnabled { + mi := &file_otdr_otdr_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -type oTDRInitiateClient struct { - grpc.ClientStream +func (x *Event) String() string { + return protoimpl.X.MessageStringOf(x) } -func (x *oTDRInitiateClient) Recv() (*InitiateResponse, error) { - m := new(InitiateResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err +func (*Event) ProtoMessage() {} + +func (x *Event) ProtoReflect() protoreflect.Message { + mi := &file_otdr_otdr_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return m, nil + return mi.MessageOf(x) } -// Server API for OTDR service +// Deprecated: Use Event.ProtoReflect.Descriptor instead. +func (*Event) Descriptor() ([]byte, []int) { + return file_otdr_otdr_proto_rawDescGZIP(), []int{7} +} -type OTDRServer interface { - // Initiate triggers an optical time domain reflectometer (OTDR) trace to - // be run on a specified port. The results of the trace may be sent back in - // the response or saved on the device to be retrieved later. If the - // information is saved on the device a path to the file must be returned - // which can later be used by File.Get or File.TransferToRemote. The RPC - // should initiate the OTDR trace and wait until the OTDR trace has completed - // and the device has processed the results before returning. If the RPC is - // cancelled while in operation, the running OTDR trace should stop. - Initiate(*InitiateRequest, OTDR_InitiateServer) error +func (x *Event) GetDistanceM() float32 { + if x != nil { + return x.DistanceM + } + return 0 } -func RegisterOTDRServer(s *grpc.Server, srv OTDRServer) { - s.RegisterService(&_OTDR_serviceDesc, srv) +func (x *Event) GetLossDb() float32 { + if x != nil { + return x.LossDb + } + return 0 } -func _OTDR_Initiate_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(InitiateRequest) - if err := stream.RecvMsg(m); err != nil { - return err +func (x *Event) GetReflectionDb() float32 { + if x != nil { + return x.ReflectionDb } - return srv.(OTDRServer).Initiate(m, &oTDRInitiateServer{stream}) + return 0 } -type OTDR_InitiateServer interface { - Send(*InitiateResponse) error - grpc.ServerStream +var File_otdr_otdr_proto protoreflect.FileDescriptor + +var file_otdr_otdr_proto_rawDesc = []byte{ + 0x0a, 0x0f, 0x6f, 0x74, 0x64, 0x72, 0x2f, 0x6f, 0x74, 0x64, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x12, 0x0c, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x70, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x1a, + 0x2c, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, + 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x67, 0x6e, 0x6f, 0x69, 0x2f, 0x74, 0x79, 0x70, 0x65, + 0x73, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xcc, 0x02, + 0x0a, 0x0f, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x2e, 0x0a, 0x09, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x74, 0x79, 0x70, 0x65, + 0x73, 0x2e, 0x50, 0x61, 0x74, 0x68, 0x52, 0x09, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, + 0x74, 0x12, 0x52, 0x0a, 0x0e, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x5f, 0x6d, 0x65, 0x74, + 0x68, 0x6f, 0x64, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x2b, 0x2e, 0x67, 0x6e, 0x6f, 0x69, + 0x2e, 0x6f, 0x70, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x2e, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, + 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, + 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x0d, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x4d, + 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x45, 0x0a, 0x0d, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, + 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x70, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x2e, 0x4f, 0x54, 0x44, 0x52, + 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0d, 0x63, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, + 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6c, 0x61, 0x62, + 0x65, 0x6c, 0x22, 0x58, 0x0a, 0x0d, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x4d, 0x65, 0x74, + 0x68, 0x6f, 0x64, 0x12, 0x13, 0x0a, 0x0f, 0x52, 0x45, 0x53, 0x55, 0x4c, 0x54, 0x53, 0x5f, 0x55, + 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x19, 0x0a, 0x15, 0x52, 0x45, 0x53, 0x55, + 0x4c, 0x54, 0x53, 0x5f, 0x54, 0x4f, 0x5f, 0x4c, 0x4f, 0x43, 0x41, 0x4c, 0x5f, 0x44, 0x49, 0x53, + 0x4b, 0x10, 0x01, 0x12, 0x17, 0x0a, 0x13, 0x52, 0x45, 0x53, 0x55, 0x4c, 0x54, 0x53, 0x5f, 0x49, + 0x4e, 0x5f, 0x52, 0x45, 0x53, 0x50, 0x4f, 0x4e, 0x53, 0x45, 0x10, 0x02, 0x22, 0x9a, 0x02, 0x0a, + 0x11, 0x4f, 0x54, 0x44, 0x52, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x12, 0x2c, 0x0a, 0x12, 0x61, 0x63, 0x71, 0x75, 0x69, 0x73, 0x69, 0x74, 0x69, 0x6f, + 0x6e, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x10, + 0x61, 0x63, 0x71, 0x75, 0x69, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x53, + 0x12, 0x24, 0x0a, 0x0e, 0x70, 0x75, 0x6c, 0x73, 0x65, 0x5f, 0x77, 0x69, 0x64, 0x74, 0x68, 0x5f, + 0x6e, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x02, 0x52, 0x0c, 0x70, 0x75, 0x6c, 0x73, 0x65, 0x57, + 0x69, 0x64, 0x74, 0x68, 0x4e, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x77, 0x61, 0x76, 0x65, 0x6c, 0x65, + 0x6e, 0x67, 0x74, 0x68, 0x5f, 0x6d, 0x68, 0x7a, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, + 0x77, 0x61, 0x76, 0x65, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x4d, 0x68, 0x7a, 0x12, 0x17, 0x0a, + 0x07, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x6d, 0x18, 0x04, 0x20, 0x01, 0x28, 0x02, 0x52, 0x06, + 0x72, 0x61, 0x6e, 0x67, 0x65, 0x4d, 0x12, 0x3d, 0x0a, 0x0a, 0x66, 0x69, 0x62, 0x65, 0x72, 0x5f, + 0x74, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x67, 0x6e, 0x6f, + 0x69, 0x2e, 0x6f, 0x70, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x2e, 0x46, 0x69, 0x62, 0x65, 0x72, 0x54, + 0x79, 0x70, 0x65, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x52, 0x09, 0x66, 0x69, 0x62, 0x65, + 0x72, 0x54, 0x79, 0x70, 0x65, 0x12, 0x32, 0x0a, 0x15, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x69, 0x6e, + 0x67, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6d, 0x18, 0x06, + 0x20, 0x01, 0x28, 0x02, 0x52, 0x13, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x69, 0x6e, 0x67, 0x52, 0x65, + 0x73, 0x6f, 0x6c, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x22, 0x8c, 0x01, 0x0a, 0x10, 0x49, 0x6e, + 0x69, 0x74, 0x69, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x12, 0x3a, + 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x24, 0x2e, + 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x70, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x2e, 0x49, 0x6e, 0x69, + 0x74, 0x69, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x2e, 0x53, 0x74, + 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x22, 0x3c, 0x0a, 0x05, 0x53, 0x74, + 0x61, 0x74, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, + 0x12, 0x0b, 0x0a, 0x07, 0x52, 0x55, 0x4e, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x0b, 0x0a, + 0x07, 0x50, 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x12, 0x0c, 0x0a, 0x08, 0x43, 0x4f, + 0x4d, 0x50, 0x4c, 0x45, 0x54, 0x45, 0x10, 0x03, 0x22, 0x68, 0x0a, 0x0f, 0x49, 0x6e, 0x69, 0x74, + 0x69, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x6c, + 0x6f, 0x63, 0x61, 0x6c, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x09, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x50, 0x61, 0x74, 0x68, 0x12, 0x36, 0x0a, 0x0a, 0x6f, 0x74, + 0x64, 0x72, 0x5f, 0x74, 0x72, 0x61, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, + 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x70, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x2e, 0x4f, 0x54, + 0x44, 0x52, 0x54, 0x72, 0x61, 0x63, 0x65, 0x52, 0x09, 0x6f, 0x74, 0x64, 0x72, 0x54, 0x72, 0x61, + 0x63, 0x65, 0x22, 0xa5, 0x01, 0x0a, 0x0d, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, 0x65, 0x45, + 0x72, 0x72, 0x6f, 0x72, 0x12, 0x34, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0e, 0x32, 0x20, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x70, 0x74, 0x69, 0x63, 0x61, + 0x6c, 0x2e, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, 0x65, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x2e, + 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x65, + 0x74, 0x61, 0x69, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x65, 0x74, 0x61, + 0x69, 0x6c, 0x22, 0x46, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0f, 0x0a, 0x0b, 0x55, 0x4e, + 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x17, 0x0a, 0x13, 0x41, + 0x4c, 0x52, 0x45, 0x41, 0x44, 0x59, 0x5f, 0x49, 0x4e, 0x5f, 0x50, 0x52, 0x4f, 0x47, 0x52, 0x45, + 0x53, 0x53, 0x10, 0x01, 0x12, 0x14, 0x0a, 0x10, 0x48, 0x41, 0x52, 0x44, 0x57, 0x41, 0x52, 0x45, + 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x55, 0x52, 0x45, 0x10, 0x02, 0x22, 0xcc, 0x01, 0x0a, 0x10, 0x49, + 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x3c, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x70, 0x74, 0x69, 0x63, 0x61, 0x6c, + 0x2e, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, + 0x73, 0x48, 0x00, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x12, 0x39, 0x0a, + 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, + 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x70, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x2e, 0x49, 0x6e, + 0x69, 0x74, 0x69, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x48, 0x00, 0x52, + 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x12, 0x33, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, + 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, + 0x70, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x2e, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, 0x65, 0x45, + 0x72, 0x72, 0x6f, 0x72, 0x48, 0x00, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x42, 0x0a, 0x0a, + 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xb8, 0x02, 0x0a, 0x09, 0x4f, 0x54, + 0x44, 0x52, 0x54, 0x72, 0x61, 0x63, 0x65, 0x12, 0x22, 0x0a, 0x0d, 0x74, 0x6f, 0x74, 0x61, 0x6c, + 0x5f, 0x6c, 0x6f, 0x73, 0x73, 0x5f, 0x64, 0x62, 0x18, 0x01, 0x20, 0x01, 0x28, 0x02, 0x52, 0x0b, + 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x4c, 0x6f, 0x73, 0x73, 0x44, 0x62, 0x12, 0x24, 0x0a, 0x0e, 0x74, + 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x5f, 0x6d, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x02, 0x52, 0x0c, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x4c, 0x65, 0x6e, 0x67, 0x74, 0x68, + 0x4d, 0x12, 0x33, 0x0a, 0x16, 0x6f, 0x70, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x5f, 0x72, 0x65, 0x74, + 0x75, 0x72, 0x6e, 0x5f, 0x6c, 0x6f, 0x73, 0x73, 0x5f, 0x64, 0x62, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x02, 0x52, 0x13, 0x6f, 0x70, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, + 0x4c, 0x6f, 0x73, 0x73, 0x44, 0x62, 0x12, 0x2b, 0x0a, 0x12, 0x61, 0x76, 0x65, 0x72, 0x61, 0x67, + 0x65, 0x5f, 0x6c, 0x6f, 0x73, 0x73, 0x5f, 0x64, 0x62, 0x5f, 0x6b, 0x6d, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x02, 0x52, 0x0f, 0x61, 0x76, 0x65, 0x72, 0x61, 0x67, 0x65, 0x4c, 0x6f, 0x73, 0x73, 0x44, + 0x62, 0x4b, 0x6d, 0x12, 0x52, 0x0a, 0x15, 0x64, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x65, + 0x64, 0x5f, 0x66, 0x69, 0x62, 0x65, 0x72, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x70, 0x74, 0x69, 0x63, 0x61, + 0x6c, 0x2e, 0x46, 0x69, 0x62, 0x65, 0x72, 0x54, 0x79, 0x70, 0x65, 0x50, 0x72, 0x6f, 0x66, 0x69, + 0x6c, 0x65, 0x52, 0x13, 0x64, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x65, 0x64, 0x46, 0x69, + 0x62, 0x65, 0x72, 0x54, 0x79, 0x70, 0x65, 0x12, 0x2b, 0x0a, 0x06, 0x65, 0x76, 0x65, 0x6e, 0x74, + 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, + 0x70, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x06, 0x65, 0x76, + 0x65, 0x6e, 0x74, 0x73, 0x22, 0x64, 0x0a, 0x05, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x1d, 0x0a, + 0x0a, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x02, 0x52, 0x09, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x4d, 0x12, 0x17, 0x0a, 0x07, + 0x6c, 0x6f, 0x73, 0x73, 0x5f, 0x64, 0x62, 0x18, 0x02, 0x20, 0x01, 0x28, 0x02, 0x52, 0x06, 0x6c, + 0x6f, 0x73, 0x73, 0x44, 0x62, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x62, 0x18, 0x03, 0x20, 0x01, 0x28, 0x02, 0x52, 0x0c, 0x72, 0x65, + 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x62, 0x2a, 0x98, 0x01, 0x0a, 0x10, 0x46, + 0x69, 0x62, 0x65, 0x72, 0x54, 0x79, 0x70, 0x65, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x12, + 0x0f, 0x0a, 0x0b, 0x46, 0x54, 0x50, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, + 0x12, 0x0b, 0x0a, 0x07, 0x46, 0x54, 0x50, 0x5f, 0x44, 0x53, 0x46, 0x10, 0x01, 0x12, 0x0c, 0x0a, + 0x08, 0x46, 0x54, 0x50, 0x5f, 0x4c, 0x45, 0x41, 0x46, 0x10, 0x02, 0x12, 0x0c, 0x0a, 0x08, 0x46, + 0x54, 0x50, 0x5f, 0x53, 0x53, 0x4d, 0x46, 0x10, 0x03, 0x12, 0x0b, 0x0a, 0x07, 0x46, 0x54, 0x50, + 0x5f, 0x54, 0x57, 0x43, 0x10, 0x04, 0x12, 0x0c, 0x0a, 0x08, 0x46, 0x54, 0x50, 0x5f, 0x54, 0x57, + 0x52, 0x53, 0x10, 0x05, 0x12, 0x0a, 0x0a, 0x06, 0x46, 0x54, 0x50, 0x5f, 0x4c, 0x53, 0x10, 0x06, + 0x12, 0x10, 0x0a, 0x0c, 0x46, 0x54, 0x50, 0x5f, 0x54, 0x45, 0x52, 0x41, 0x57, 0x41, 0x56, 0x45, + 0x10, 0x07, 0x12, 0x11, 0x0a, 0x0d, 0x46, 0x54, 0x50, 0x5f, 0x54, 0x45, 0x52, 0x41, 0x4c, 0x49, + 0x47, 0x48, 0x54, 0x10, 0x08, 0x32, 0x55, 0x0a, 0x04, 0x4f, 0x54, 0x44, 0x52, 0x12, 0x4d, 0x0a, + 0x08, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, 0x65, 0x12, 0x1d, 0x2e, 0x67, 0x6e, 0x6f, 0x69, + 0x2e, 0x6f, 0x70, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x2e, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, + 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, + 0x6f, 0x70, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x2e, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, 0x65, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x30, 0x01, 0x42, 0x29, 0x5a, 0x1f, + 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x63, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x67, 0x6e, 0x6f, 0x69, 0x2f, 0x6f, 0x74, 0x64, 0x72, 0xd2, + 0x3e, 0x05, 0x30, 0x2e, 0x31, 0x2e, 0x30, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } -type oTDRInitiateServer struct { - grpc.ServerStream +var ( + file_otdr_otdr_proto_rawDescOnce sync.Once + file_otdr_otdr_proto_rawDescData = file_otdr_otdr_proto_rawDesc +) + +func file_otdr_otdr_proto_rawDescGZIP() []byte { + file_otdr_otdr_proto_rawDescOnce.Do(func() { + file_otdr_otdr_proto_rawDescData = protoimpl.X.CompressGZIP(file_otdr_otdr_proto_rawDescData) + }) + return file_otdr_otdr_proto_rawDescData } -func (x *oTDRInitiateServer) Send(m *InitiateResponse) error { - return x.ServerStream.SendMsg(m) +var file_otdr_otdr_proto_enumTypes = make([]protoimpl.EnumInfo, 4) +var file_otdr_otdr_proto_msgTypes = make([]protoimpl.MessageInfo, 8) +var file_otdr_otdr_proto_goTypes = []interface{}{ + (FiberTypeProfile)(0), // 0: gnoi.optical.FiberTypeProfile + (InitiateRequest_ResultsMethod)(0), // 1: gnoi.optical.InitiateRequest.ResultsMethod + (InitiateProgress_State)(0), // 2: gnoi.optical.InitiateProgress.State + (InitiateError_Type)(0), // 3: gnoi.optical.InitiateError.Type + (*InitiateRequest)(nil), // 4: gnoi.optical.InitiateRequest + (*OTDRConfiguration)(nil), // 5: gnoi.optical.OTDRConfiguration + (*InitiateProgress)(nil), // 6: gnoi.optical.InitiateProgress + (*InitiateResults)(nil), // 7: gnoi.optical.InitiateResults + (*InitiateError)(nil), // 8: gnoi.optical.InitiateError + (*InitiateResponse)(nil), // 9: gnoi.optical.InitiateResponse + (*OTDRTrace)(nil), // 10: gnoi.optical.OTDRTrace + (*Event)(nil), // 11: gnoi.optical.Event + (*types.Path)(nil), // 12: gnoi.types.Path +} +var file_otdr_otdr_proto_depIdxs = []int32{ + 12, // 0: gnoi.optical.InitiateRequest.component:type_name -> gnoi.types.Path + 1, // 1: gnoi.optical.InitiateRequest.results_method:type_name -> gnoi.optical.InitiateRequest.ResultsMethod + 5, // 2: gnoi.optical.InitiateRequest.configuration:type_name -> gnoi.optical.OTDRConfiguration + 0, // 3: gnoi.optical.OTDRConfiguration.fiber_type:type_name -> gnoi.optical.FiberTypeProfile + 2, // 4: gnoi.optical.InitiateProgress.state:type_name -> gnoi.optical.InitiateProgress.State + 10, // 5: gnoi.optical.InitiateResults.otdr_trace:type_name -> gnoi.optical.OTDRTrace + 3, // 6: gnoi.optical.InitiateError.type:type_name -> gnoi.optical.InitiateError.Type + 6, // 7: gnoi.optical.InitiateResponse.progress:type_name -> gnoi.optical.InitiateProgress + 7, // 8: gnoi.optical.InitiateResponse.results:type_name -> gnoi.optical.InitiateResults + 8, // 9: gnoi.optical.InitiateResponse.error:type_name -> gnoi.optical.InitiateError + 0, // 10: gnoi.optical.OTDRTrace.discovered_fiber_type:type_name -> gnoi.optical.FiberTypeProfile + 11, // 11: gnoi.optical.OTDRTrace.events:type_name -> gnoi.optical.Event + 4, // 12: gnoi.optical.OTDR.Initiate:input_type -> gnoi.optical.InitiateRequest + 9, // 13: gnoi.optical.OTDR.Initiate:output_type -> gnoi.optical.InitiateResponse + 13, // [13:14] is the sub-list for method output_type + 12, // [12:13] is the sub-list for method input_type + 12, // [12:12] is the sub-list for extension type_name + 12, // [12:12] is the sub-list for extension extendee + 0, // [0:12] is the sub-list for field type_name } -var _OTDR_serviceDesc = grpc.ServiceDesc{ - ServiceName: "gnoi.optical.OTDR", - HandlerType: (*OTDRServer)(nil), - Methods: []grpc.MethodDesc{}, - Streams: []grpc.StreamDesc{ - { - StreamName: "Initiate", - Handler: _OTDR_Initiate_Handler, - ServerStreams: true, +func init() { file_otdr_otdr_proto_init() } +func file_otdr_otdr_proto_init() { + if File_otdr_otdr_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_otdr_otdr_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*InitiateRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_otdr_otdr_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*OTDRConfiguration); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_otdr_otdr_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*InitiateProgress); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_otdr_otdr_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*InitiateResults); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_otdr_otdr_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*InitiateError); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_otdr_otdr_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*InitiateResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_otdr_otdr_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*OTDRTrace); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_otdr_otdr_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Event); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_otdr_otdr_proto_msgTypes[5].OneofWrappers = []interface{}{ + (*InitiateResponse_Progress)(nil), + (*InitiateResponse_Results)(nil), + (*InitiateResponse_Error)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_otdr_otdr_proto_rawDesc, + NumEnums: 4, + NumMessages: 8, + NumExtensions: 0, + NumServices: 1, }, - }, - Metadata: fileDescriptor0, -} - -func init() { proto.RegisterFile("otdr/otdr.proto", fileDescriptor0) } - -var fileDescriptor0 = []byte{ - // 1046 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x94, 0x55, 0xed, 0x6e, 0xe2, 0x46, - 0x17, 0xc6, 0x7c, 0x05, 0x0e, 0x81, 0x78, 0x27, 0xbb, 0x1b, 0xde, 0x7d, 0x95, 0x14, 0xd1, 0xad, - 0x84, 0x9a, 0x95, 0x93, 0x92, 0xaa, 0x52, 0xab, 0x6d, 0x25, 0x36, 0x98, 0x04, 0x85, 0x2f, 0x8d, - 0x4d, 0x69, 0x7f, 0x8d, 0x0c, 0x4c, 0xc0, 0xaa, 0xf1, 0x78, 0x3d, 0x43, 0x56, 0xbb, 0xd7, 0xd0, - 0x0b, 0xa8, 0xfa, 0xbf, 0xf7, 0xd0, 0x8b, 0xd8, 0x5f, 0xbd, 0xa2, 0x6a, 0xc6, 0x36, 0x81, 0xfd, - 0x88, 0xd4, 0x3f, 0x88, 0x73, 0xce, 0x73, 0x66, 0xce, 0x3c, 0xf3, 0x3c, 0x63, 0x38, 0x60, 0x62, - 0x1e, 0x9e, 0xc9, 0x1f, 0x23, 0x08, 0x99, 0x60, 0x68, 0x7f, 0xe1, 0x33, 0xd7, 0x60, 0x81, 0x70, - 0x67, 0x8e, 0xf7, 0xec, 0xc5, 0xc2, 0x15, 0xcb, 0xf5, 0xd4, 0x98, 0xb1, 0xd5, 0x19, 0x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, 0xff, 0x11, 0x20, - 0x0f, 0x65, 0xce, 0x07, 0x00, 0x00, + GoTypes: file_otdr_otdr_proto_goTypes, + DependencyIndexes: file_otdr_otdr_proto_depIdxs, + EnumInfos: file_otdr_otdr_proto_enumTypes, + MessageInfos: file_otdr_otdr_proto_msgTypes, + }.Build() + File_otdr_otdr_proto = out.File + file_otdr_otdr_proto_rawDesc = nil + file_otdr_otdr_proto_goTypes = nil + file_otdr_otdr_proto_depIdxs = nil } diff --git a/otdr/otdr.proto b/otdr/otdr.proto index 79963212..f05cc212 100644 --- a/otdr/otdr.proto +++ b/otdr/otdr.proto @@ -20,6 +20,8 @@ package gnoi.optical; import "github.com/openconfig/gnoi/types/types.proto"; +option go_package = "github.com/openconfig/gnoi/otdr"; + option (types.gnoi_version) = "0.1.0"; service OTDR { diff --git a/otdr/otdr_grpc.pb.go b/otdr/otdr_grpc.pb.go new file mode 100644 index 00000000..2695b34e --- /dev/null +++ b/otdr/otdr_grpc.pb.go @@ -0,0 +1,144 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. + +package otdr + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.32.0 or later. +const _ = grpc.SupportPackageIsVersion7 + +// OTDRClient is the client API for OTDR service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type OTDRClient interface { + // Initiate triggers an optical time domain reflectometer (OTDR) trace to + // be run on a specified port. The results of the trace may be sent back in + // the response or saved on the device to be retrieved later. If the + // information is saved on the device a path to the file must be returned + // which can later be used by File.Get or File.TransferToRemote. The RPC + // should initiate the OTDR trace and wait until the OTDR trace has completed + // and the device has processed the results before returning. If the RPC is + // cancelled while in operation, the running OTDR trace should stop. + Initiate(ctx context.Context, in *InitiateRequest, opts ...grpc.CallOption) (OTDR_InitiateClient, error) +} + +type oTDRClient struct { + cc grpc.ClientConnInterface +} + +func NewOTDRClient(cc grpc.ClientConnInterface) OTDRClient { + return &oTDRClient{cc} +} + +func (c *oTDRClient) Initiate(ctx context.Context, in *InitiateRequest, opts ...grpc.CallOption) (OTDR_InitiateClient, error) { + stream, err := c.cc.NewStream(ctx, &OTDR_ServiceDesc.Streams[0], "/gnoi.optical.OTDR/Initiate", opts...) + if err != nil { + return nil, err + } + x := &oTDRInitiateClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type OTDR_InitiateClient interface { + Recv() (*InitiateResponse, error) + grpc.ClientStream +} + +type oTDRInitiateClient struct { + grpc.ClientStream +} + +func (x *oTDRInitiateClient) Recv() (*InitiateResponse, error) { + m := new(InitiateResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +// OTDRServer is the server API for OTDR service. +// All implementations must embed UnimplementedOTDRServer +// for forward compatibility +type OTDRServer interface { + // Initiate triggers an optical time domain reflectometer (OTDR) trace to + // be run on a specified port. The results of the trace may be sent back in + // the response or saved on the device to be retrieved later. If the + // information is saved on the device a path to the file must be returned + // which can later be used by File.Get or File.TransferToRemote. The RPC + // should initiate the OTDR trace and wait until the OTDR trace has completed + // and the device has processed the results before returning. If the RPC is + // cancelled while in operation, the running OTDR trace should stop. + Initiate(*InitiateRequest, OTDR_InitiateServer) error + mustEmbedUnimplementedOTDRServer() +} + +// UnimplementedOTDRServer must be embedded to have forward compatible implementations. +type UnimplementedOTDRServer struct { +} + +func (UnimplementedOTDRServer) Initiate(*InitiateRequest, OTDR_InitiateServer) error { + return status.Errorf(codes.Unimplemented, "method Initiate not implemented") +} +func (UnimplementedOTDRServer) mustEmbedUnimplementedOTDRServer() {} + +// UnsafeOTDRServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to OTDRServer will +// result in compilation errors. +type UnsafeOTDRServer interface { + mustEmbedUnimplementedOTDRServer() +} + +func RegisterOTDRServer(s grpc.ServiceRegistrar, srv OTDRServer) { + s.RegisterService(&OTDR_ServiceDesc, srv) +} + +func _OTDR_Initiate_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(InitiateRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(OTDRServer).Initiate(m, &oTDRInitiateServer{stream}) +} + +type OTDR_InitiateServer interface { + Send(*InitiateResponse) error + grpc.ServerStream +} + +type oTDRInitiateServer struct { + grpc.ServerStream +} + +func (x *oTDRInitiateServer) Send(m *InitiateResponse) error { + return x.ServerStream.SendMsg(m) +} + +// OTDR_ServiceDesc is the grpc.ServiceDesc for OTDR service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var OTDR_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "gnoi.optical.OTDR", + HandlerType: (*OTDRServer)(nil), + Methods: []grpc.MethodDesc{}, + Streams: []grpc.StreamDesc{ + { + StreamName: "Initiate", + Handler: _OTDR_Initiate_Handler, + ServerStreams: true, + }, + }, + Metadata: "otdr/otdr.proto", +} diff --git a/system/system.pb.go b/system/system.pb.go index 1d3da254..69ee9edc 100644 --- a/system/system.pb.go +++ b/system/system.pb.go @@ -1,28 +1,48 @@ +// +// Copyright 2017 Google Inc. All Rights Reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +// Generic Network Operation Interface, GNOI, defines a set of RPC's used for +// the operational aspects of network targets. These services are meant to be +// used in conjunction with GNMI for all target state and operational aspects +// of a network target. The gnoi.system.Service is the only mandatory vendor +// implementation. + // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.26.0 +// protoc v3.15.7 // source: system/system.proto -package gnoi_system +package system import ( - fmt "fmt" - proto "github.com/golang/protobuf/proto" common "github.com/openconfig/gnoi/common" types "github.com/openconfig/gnoi/types" - context "golang.org/x/net/context" - grpc "google.golang.org/grpc" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// 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 +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) // A RebootMethod determines what should be done with a target when a Reboot is // requested. Only the COLD method is required to be supported by all @@ -32,220 +52,296 @@ const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package type RebootMethod int32 const ( - RebootMethod_UNKNOWN RebootMethod = 0 - RebootMethod_COLD RebootMethod = 1 - RebootMethod_POWERDOWN RebootMethod = 2 - RebootMethod_HALT RebootMethod = 3 - RebootMethod_WARM RebootMethod = 4 - RebootMethod_NSF RebootMethod = 5 - RebootMethod_RESET RebootMethod = 6 - RebootMethod_POWERUP RebootMethod = 7 + RebootMethod_UNKNOWN RebootMethod = 0 // Invalid default method. + RebootMethod_COLD RebootMethod = 1 // Shutdown and restart OS and all hardware. + RebootMethod_POWERDOWN RebootMethod = 2 // Halt and power down, if possible. + RebootMethod_HALT RebootMethod = 3 // Halt, if possible. + RebootMethod_WARM RebootMethod = 4 // Reload configuration but not underlying hardware. + RebootMethod_NSF RebootMethod = 5 // Non-stop-forwarding reboot, if possible. + RebootMethod_POWERUP RebootMethod = 7 // Apply power, no-op if power is already on. ) -var RebootMethod_name = map[int32]string{ - 0: "UNKNOWN", - 1: "COLD", - 2: "POWERDOWN", - 3: "HALT", - 4: "WARM", - 5: "NSF", - 6: "RESET", - 7: "POWERUP", -} +// Enum value maps for RebootMethod. +var ( + RebootMethod_name = map[int32]string{ + 0: "UNKNOWN", + 1: "COLD", + 2: "POWERDOWN", + 3: "HALT", + 4: "WARM", + 5: "NSF", + 7: "POWERUP", + } + RebootMethod_value = map[string]int32{ + "UNKNOWN": 0, + "COLD": 1, + "POWERDOWN": 2, + "HALT": 3, + "WARM": 4, + "NSF": 5, + "POWERUP": 7, + } +) -var RebootMethod_value = map[string]int32{ - "UNKNOWN": 0, - "COLD": 1, - "POWERDOWN": 2, - "HALT": 3, - "WARM": 4, - "NSF": 5, - "RESET": 6, - "POWERUP": 7, +func (x RebootMethod) Enum() *RebootMethod { + p := new(RebootMethod) + *p = x + return p } func (x RebootMethod) String() string { - return proto.EnumName(RebootMethod_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (RebootMethod) Descriptor() protoreflect.EnumDescriptor { + return file_system_system_proto_enumTypes[0].Descriptor() } +func (RebootMethod) Type() protoreflect.EnumType { + return &file_system_system_proto_enumTypes[0] +} + +func (x RebootMethod) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use RebootMethod.Descriptor instead. func (RebootMethod) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_746080b643370b3b, []int{0} + return file_system_system_proto_rawDescGZIP(), []int{0} } type TracerouteRequest_L4Protocol int32 const ( - TracerouteRequest_ICMP TracerouteRequest_L4Protocol = 0 - TracerouteRequest_TCP TracerouteRequest_L4Protocol = 1 - TracerouteRequest_UDP TracerouteRequest_L4Protocol = 2 + TracerouteRequest_ICMP TracerouteRequest_L4Protocol = 0 // Use ICMP ECHO for probes. + TracerouteRequest_TCP TracerouteRequest_L4Protocol = 1 // Use TCP SYN for probes. + TracerouteRequest_UDP TracerouteRequest_L4Protocol = 2 // Use UDP for probes. ) -var TracerouteRequest_L4Protocol_name = map[int32]string{ - 0: "ICMP", - 1: "TCP", - 2: "UDP", -} +// Enum value maps for TracerouteRequest_L4Protocol. +var ( + TracerouteRequest_L4Protocol_name = map[int32]string{ + 0: "ICMP", + 1: "TCP", + 2: "UDP", + } + TracerouteRequest_L4Protocol_value = map[string]int32{ + "ICMP": 0, + "TCP": 1, + "UDP": 2, + } +) -var TracerouteRequest_L4Protocol_value = map[string]int32{ - "ICMP": 0, - "TCP": 1, - "UDP": 2, +func (x TracerouteRequest_L4Protocol) Enum() *TracerouteRequest_L4Protocol { + p := new(TracerouteRequest_L4Protocol) + *p = x + return p } func (x TracerouteRequest_L4Protocol) String() string { - return proto.EnumName(TracerouteRequest_L4Protocol_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (TracerouteRequest_L4Protocol) Descriptor() protoreflect.EnumDescriptor { + return file_system_system_proto_enumTypes[1].Descriptor() +} + +func (TracerouteRequest_L4Protocol) Type() protoreflect.EnumType { + return &file_system_system_proto_enumTypes[1] +} + +func (x TracerouteRequest_L4Protocol) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) } +// Deprecated: Use TracerouteRequest_L4Protocol.Descriptor instead. func (TracerouteRequest_L4Protocol) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_746080b643370b3b, []int{12, 0} + return file_system_system_proto_rawDescGZIP(), []int{12, 0} } // State is the resulting state of a single traceoroute packet. type TracerouteResponse_State int32 const ( - TracerouteResponse_DEFAULT TracerouteResponse_State = 0 - TracerouteResponse_NONE TracerouteResponse_State = 1 - TracerouteResponse_UNKNOWN TracerouteResponse_State = 2 - TracerouteResponse_ICMP TracerouteResponse_State = 3 - TracerouteResponse_HOST_UNREACHABLE TracerouteResponse_State = 4 - TracerouteResponse_NETWORK_UNREACHABLE TracerouteResponse_State = 5 - TracerouteResponse_PROTOCOL_UNREACHABLE TracerouteResponse_State = 6 - TracerouteResponse_SOURCE_ROUTE_FAILED TracerouteResponse_State = 7 - TracerouteResponse_FRAGMENTATION_NEEDED TracerouteResponse_State = 8 - TracerouteResponse_PROHIBITED TracerouteResponse_State = 9 - TracerouteResponse_PRECEDENCE_VIOLATION TracerouteResponse_State = 10 - TracerouteResponse_PRECEDENCE_CUTOFF TracerouteResponse_State = 11 + TracerouteResponse_DEFAULT TracerouteResponse_State = 0 // Normal hop response. + TracerouteResponse_NONE TracerouteResponse_State = 1 // No response. + TracerouteResponse_UNKNOWN TracerouteResponse_State = 2 // Unknown response state. + TracerouteResponse_ICMP TracerouteResponse_State = 3 // See icmp_code field. + TracerouteResponse_HOST_UNREACHABLE TracerouteResponse_State = 4 // Host unreachable. + TracerouteResponse_NETWORK_UNREACHABLE TracerouteResponse_State = 5 // Network unreachable. + TracerouteResponse_PROTOCOL_UNREACHABLE TracerouteResponse_State = 6 // Protocol unreachable. + TracerouteResponse_SOURCE_ROUTE_FAILED TracerouteResponse_State = 7 // Source route failed. + TracerouteResponse_FRAGMENTATION_NEEDED TracerouteResponse_State = 8 // Fragmentation needed. + TracerouteResponse_PROHIBITED TracerouteResponse_State = 9 // Communication administratively prohibited. + TracerouteResponse_PRECEDENCE_VIOLATION TracerouteResponse_State = 10 // Host precedence violation. + TracerouteResponse_PRECEDENCE_CUTOFF TracerouteResponse_State = 11 // Precedence cutoff in effect. ) -var TracerouteResponse_State_name = map[int32]string{ - 0: "DEFAULT", - 1: "NONE", - 2: "UNKNOWN", - 3: "ICMP", - 4: "HOST_UNREACHABLE", - 5: "NETWORK_UNREACHABLE", - 6: "PROTOCOL_UNREACHABLE", - 7: "SOURCE_ROUTE_FAILED", - 8: "FRAGMENTATION_NEEDED", - 9: "PROHIBITED", - 10: "PRECEDENCE_VIOLATION", - 11: "PRECEDENCE_CUTOFF", -} - -var TracerouteResponse_State_value = map[string]int32{ - "DEFAULT": 0, - "NONE": 1, - "UNKNOWN": 2, - "ICMP": 3, - "HOST_UNREACHABLE": 4, - "NETWORK_UNREACHABLE": 5, - "PROTOCOL_UNREACHABLE": 6, - "SOURCE_ROUTE_FAILED": 7, - "FRAGMENTATION_NEEDED": 8, - "PROHIBITED": 9, - "PRECEDENCE_VIOLATION": 10, - "PRECEDENCE_CUTOFF": 11, +// Enum value maps for TracerouteResponse_State. +var ( + TracerouteResponse_State_name = map[int32]string{ + 0: "DEFAULT", + 1: "NONE", + 2: "UNKNOWN", + 3: "ICMP", + 4: "HOST_UNREACHABLE", + 5: "NETWORK_UNREACHABLE", + 6: "PROTOCOL_UNREACHABLE", + 7: "SOURCE_ROUTE_FAILED", + 8: "FRAGMENTATION_NEEDED", + 9: "PROHIBITED", + 10: "PRECEDENCE_VIOLATION", + 11: "PRECEDENCE_CUTOFF", + } + TracerouteResponse_State_value = map[string]int32{ + "DEFAULT": 0, + "NONE": 1, + "UNKNOWN": 2, + "ICMP": 3, + "HOST_UNREACHABLE": 4, + "NETWORK_UNREACHABLE": 5, + "PROTOCOL_UNREACHABLE": 6, + "SOURCE_ROUTE_FAILED": 7, + "FRAGMENTATION_NEEDED": 8, + "PROHIBITED": 9, + "PRECEDENCE_VIOLATION": 10, + "PRECEDENCE_CUTOFF": 11, + } +) + +func (x TracerouteResponse_State) Enum() *TracerouteResponse_State { + p := new(TracerouteResponse_State) + *p = x + return p } func (x TracerouteResponse_State) String() string { - return proto.EnumName(TracerouteResponse_State_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } -func (TracerouteResponse_State) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_746080b643370b3b, []int{13, 0} +func (TracerouteResponse_State) Descriptor() protoreflect.EnumDescriptor { + return file_system_system_proto_enumTypes[2].Descriptor() } -type SwitchControlProcessorRequest struct { - ControlProcessor *types.Path `protobuf:"bytes,1,opt,name=control_processor,json=controlProcessor,proto3" json:"control_processor,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (TracerouteResponse_State) Type() protoreflect.EnumType { + return &file_system_system_proto_enumTypes[2] } -func (m *SwitchControlProcessorRequest) Reset() { *m = SwitchControlProcessorRequest{} } -func (m *SwitchControlProcessorRequest) String() string { return proto.CompactTextString(m) } -func (*SwitchControlProcessorRequest) ProtoMessage() {} -func (*SwitchControlProcessorRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_746080b643370b3b, []int{0} +func (x TracerouteResponse_State) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) } -func (m *SwitchControlProcessorRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SwitchControlProcessorRequest.Unmarshal(m, b) +// Deprecated: Use TracerouteResponse_State.Descriptor instead. +func (TracerouteResponse_State) EnumDescriptor() ([]byte, []int) { + return file_system_system_proto_rawDescGZIP(), []int{13, 0} } -func (m *SwitchControlProcessorRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SwitchControlProcessorRequest.Marshal(b, m, deterministic) + +type SwitchControlProcessorRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ControlProcessor *types.Path `protobuf:"bytes,1,opt,name=control_processor,json=controlProcessor,proto3" json:"control_processor,omitempty"` } -func (m *SwitchControlProcessorRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_SwitchControlProcessorRequest.Merge(m, src) + +func (x *SwitchControlProcessorRequest) Reset() { + *x = SwitchControlProcessorRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_system_system_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *SwitchControlProcessorRequest) XXX_Size() int { - return xxx_messageInfo_SwitchControlProcessorRequest.Size(m) + +func (x *SwitchControlProcessorRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *SwitchControlProcessorRequest) XXX_DiscardUnknown() { - xxx_messageInfo_SwitchControlProcessorRequest.DiscardUnknown(m) + +func (*SwitchControlProcessorRequest) ProtoMessage() {} + +func (x *SwitchControlProcessorRequest) ProtoReflect() protoreflect.Message { + mi := &file_system_system_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_SwitchControlProcessorRequest proto.InternalMessageInfo +// Deprecated: Use SwitchControlProcessorRequest.ProtoReflect.Descriptor instead. +func (*SwitchControlProcessorRequest) Descriptor() ([]byte, []int) { + return file_system_system_proto_rawDescGZIP(), []int{0} +} -func (m *SwitchControlProcessorRequest) GetControlProcessor() *types.Path { - if m != nil { - return m.ControlProcessor +func (x *SwitchControlProcessorRequest) GetControlProcessor() *types.Path { + if x != nil { + return x.ControlProcessor } return nil } type SwitchControlProcessorResponse struct { - ControlProcessor *types.Path `protobuf:"bytes,1,opt,name=control_processor,json=controlProcessor,proto3" json:"control_processor,omitempty"` - Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` - Uptime int64 `protobuf:"varint,3,opt,name=uptime,proto3" json:"uptime,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *SwitchControlProcessorResponse) Reset() { *m = SwitchControlProcessorResponse{} } -func (m *SwitchControlProcessorResponse) String() string { return proto.CompactTextString(m) } -func (*SwitchControlProcessorResponse) ProtoMessage() {} -func (*SwitchControlProcessorResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_746080b643370b3b, []int{1} + ControlProcessor *types.Path `protobuf:"bytes,1,opt,name=control_processor,json=controlProcessor,proto3" json:"control_processor,omitempty"` + Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` // Current software version. + Uptime int64 `protobuf:"varint,3,opt,name=uptime,proto3" json:"uptime,omitempty"` // Uptime in nanoseconds since epoch. } -func (m *SwitchControlProcessorResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SwitchControlProcessorResponse.Unmarshal(m, b) -} -func (m *SwitchControlProcessorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SwitchControlProcessorResponse.Marshal(b, m, deterministic) -} -func (m *SwitchControlProcessorResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_SwitchControlProcessorResponse.Merge(m, src) +func (x *SwitchControlProcessorResponse) Reset() { + *x = SwitchControlProcessorResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_system_system_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *SwitchControlProcessorResponse) XXX_Size() int { - return xxx_messageInfo_SwitchControlProcessorResponse.Size(m) + +func (x *SwitchControlProcessorResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *SwitchControlProcessorResponse) XXX_DiscardUnknown() { - xxx_messageInfo_SwitchControlProcessorResponse.DiscardUnknown(m) + +func (*SwitchControlProcessorResponse) ProtoMessage() {} + +func (x *SwitchControlProcessorResponse) ProtoReflect() protoreflect.Message { + mi := &file_system_system_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_SwitchControlProcessorResponse proto.InternalMessageInfo +// Deprecated: Use SwitchControlProcessorResponse.ProtoReflect.Descriptor instead. +func (*SwitchControlProcessorResponse) Descriptor() ([]byte, []int) { + return file_system_system_proto_rawDescGZIP(), []int{1} +} -func (m *SwitchControlProcessorResponse) GetControlProcessor() *types.Path { - if m != nil { - return m.ControlProcessor +func (x *SwitchControlProcessorResponse) GetControlProcessor() *types.Path { + if x != nil { + return x.ControlProcessor } return nil } -func (m *SwitchControlProcessorResponse) GetVersion() string { - if m != nil { - return m.Version +func (x *SwitchControlProcessorResponse) GetVersion() string { + if x != nil { + return x.Version } return "" } -func (m *SwitchControlProcessorResponse) GetUptime() int64 { - if m != nil { - return m.Uptime +func (x *SwitchControlProcessorResponse) GetUptime() int64 { + if x != nil { + return x.Uptime } return 0 } @@ -254,6 +350,10 @@ func (m *SwitchControlProcessorResponse) GetUptime() int64 { // method aftar the specified delay. Only the DEFAULT method with a delay of 0 // is guaranteed to be accepted for all target types. type RebootRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Method RebootMethod `protobuf:"varint,1,opt,name=method,proto3,enum=gnoi.system.RebootMethod" json:"method,omitempty"` // Delay in nanoseconds before issuing reboot. Delay uint64 `protobuf:"varint,2,opt,name=delay,proto3" json:"delay,omitempty"` @@ -262,360 +362,417 @@ type RebootRequest struct { // Optional sub-components to reboot. Subcomponents []*types.Path `protobuf:"bytes,4,rep,name=subcomponents,proto3" json:"subcomponents,omitempty"` // Force reboot if sanity checks fail. (ex. uncommited configuration) - Force bool `protobuf:"varint,5,opt,name=force,proto3" json:"force,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Force bool `protobuf:"varint,5,opt,name=force,proto3" json:"force,omitempty"` } -func (m *RebootRequest) Reset() { *m = RebootRequest{} } -func (m *RebootRequest) String() string { return proto.CompactTextString(m) } -func (*RebootRequest) ProtoMessage() {} -func (*RebootRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_746080b643370b3b, []int{2} +func (x *RebootRequest) Reset() { + *x = RebootRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_system_system_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *RebootRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RebootRequest.Unmarshal(m, b) -} -func (m *RebootRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RebootRequest.Marshal(b, m, deterministic) -} -func (m *RebootRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RebootRequest.Merge(m, src) -} -func (m *RebootRequest) XXX_Size() int { - return xxx_messageInfo_RebootRequest.Size(m) +func (x *RebootRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *RebootRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RebootRequest.DiscardUnknown(m) + +func (*RebootRequest) ProtoMessage() {} + +func (x *RebootRequest) ProtoReflect() protoreflect.Message { + mi := &file_system_system_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_RebootRequest proto.InternalMessageInfo +// Deprecated: Use RebootRequest.ProtoReflect.Descriptor instead. +func (*RebootRequest) Descriptor() ([]byte, []int) { + return file_system_system_proto_rawDescGZIP(), []int{2} +} -func (m *RebootRequest) GetMethod() RebootMethod { - if m != nil { - return m.Method +func (x *RebootRequest) GetMethod() RebootMethod { + if x != nil { + return x.Method } return RebootMethod_UNKNOWN } -func (m *RebootRequest) GetDelay() uint64 { - if m != nil { - return m.Delay +func (x *RebootRequest) GetDelay() uint64 { + if x != nil { + return x.Delay } return 0 } -func (m *RebootRequest) GetMessage() string { - if m != nil { - return m.Message +func (x *RebootRequest) GetMessage() string { + if x != nil { + return x.Message } return "" } -func (m *RebootRequest) GetSubcomponents() []*types.Path { - if m != nil { - return m.Subcomponents +func (x *RebootRequest) GetSubcomponents() []*types.Path { + if x != nil { + return x.Subcomponents } return nil } -func (m *RebootRequest) GetForce() bool { - if m != nil { - return m.Force +func (x *RebootRequest) GetForce() bool { + if x != nil { + return x.Force } return false } type RebootResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *RebootResponse) Reset() { *m = RebootResponse{} } -func (m *RebootResponse) String() string { return proto.CompactTextString(m) } -func (*RebootResponse) ProtoMessage() {} -func (*RebootResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_746080b643370b3b, []int{3} +func (x *RebootResponse) Reset() { + *x = RebootResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_system_system_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *RebootResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RebootResponse.Unmarshal(m, b) -} -func (m *RebootResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RebootResponse.Marshal(b, m, deterministic) +func (x *RebootResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *RebootResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RebootResponse.Merge(m, src) -} -func (m *RebootResponse) XXX_Size() int { - return xxx_messageInfo_RebootResponse.Size(m) -} -func (m *RebootResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RebootResponse.DiscardUnknown(m) + +func (*RebootResponse) ProtoMessage() {} + +func (x *RebootResponse) ProtoReflect() protoreflect.Message { + mi := &file_system_system_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_RebootResponse proto.InternalMessageInfo +// Deprecated: Use RebootResponse.ProtoReflect.Descriptor instead. +func (*RebootResponse) Descriptor() ([]byte, []int) { + return file_system_system_proto_rawDescGZIP(), []int{3} +} // A CancelRebootRequest requests the cancelation of any outstanding reboot // request. type CancelRebootRequest struct { - Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` - Subcomponents []*types.Path `protobuf:"bytes,2,rep,name=subcomponents,proto3" json:"subcomponents,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *CancelRebootRequest) Reset() { *m = CancelRebootRequest{} } -func (m *CancelRebootRequest) String() string { return proto.CompactTextString(m) } -func (*CancelRebootRequest) ProtoMessage() {} -func (*CancelRebootRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_746080b643370b3b, []int{4} + Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` // informational reason for the cancel + Subcomponents []*types.Path `protobuf:"bytes,2,rep,name=subcomponents,proto3" json:"subcomponents,omitempty"` // optional sub-components. } -func (m *CancelRebootRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CancelRebootRequest.Unmarshal(m, b) -} -func (m *CancelRebootRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CancelRebootRequest.Marshal(b, m, deterministic) -} -func (m *CancelRebootRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_CancelRebootRequest.Merge(m, src) +func (x *CancelRebootRequest) Reset() { + *x = CancelRebootRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_system_system_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *CancelRebootRequest) XXX_Size() int { - return xxx_messageInfo_CancelRebootRequest.Size(m) + +func (x *CancelRebootRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *CancelRebootRequest) XXX_DiscardUnknown() { - xxx_messageInfo_CancelRebootRequest.DiscardUnknown(m) + +func (*CancelRebootRequest) ProtoMessage() {} + +func (x *CancelRebootRequest) ProtoReflect() protoreflect.Message { + mi := &file_system_system_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_CancelRebootRequest proto.InternalMessageInfo +// Deprecated: Use CancelRebootRequest.ProtoReflect.Descriptor instead. +func (*CancelRebootRequest) Descriptor() ([]byte, []int) { + return file_system_system_proto_rawDescGZIP(), []int{4} +} -func (m *CancelRebootRequest) GetMessage() string { - if m != nil { - return m.Message +func (x *CancelRebootRequest) GetMessage() string { + if x != nil { + return x.Message } return "" } -func (m *CancelRebootRequest) GetSubcomponents() []*types.Path { - if m != nil { - return m.Subcomponents +func (x *CancelRebootRequest) GetSubcomponents() []*types.Path { + if x != nil { + return x.Subcomponents } return nil } type CancelRebootResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *CancelRebootResponse) Reset() { *m = CancelRebootResponse{} } -func (m *CancelRebootResponse) String() string { return proto.CompactTextString(m) } -func (*CancelRebootResponse) ProtoMessage() {} -func (*CancelRebootResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_746080b643370b3b, []int{5} +func (x *CancelRebootResponse) Reset() { + *x = CancelRebootResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_system_system_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *CancelRebootResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CancelRebootResponse.Unmarshal(m, b) -} -func (m *CancelRebootResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CancelRebootResponse.Marshal(b, m, deterministic) -} -func (m *CancelRebootResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_CancelRebootResponse.Merge(m, src) -} -func (m *CancelRebootResponse) XXX_Size() int { - return xxx_messageInfo_CancelRebootResponse.Size(m) -} -func (m *CancelRebootResponse) XXX_DiscardUnknown() { - xxx_messageInfo_CancelRebootResponse.DiscardUnknown(m) +func (x *CancelRebootResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_CancelRebootResponse proto.InternalMessageInfo +func (*CancelRebootResponse) ProtoMessage() {} -type RebootStatusRequest struct { - Subcomponents []*types.Path `protobuf:"bytes,1,rep,name=subcomponents,proto3" json:"subcomponents,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *CancelRebootResponse) ProtoReflect() protoreflect.Message { + mi := &file_system_system_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func (m *RebootStatusRequest) Reset() { *m = RebootStatusRequest{} } -func (m *RebootStatusRequest) String() string { return proto.CompactTextString(m) } -func (*RebootStatusRequest) ProtoMessage() {} -func (*RebootStatusRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_746080b643370b3b, []int{6} +// Deprecated: Use CancelRebootResponse.ProtoReflect.Descriptor instead. +func (*CancelRebootResponse) Descriptor() ([]byte, []int) { + return file_system_system_proto_rawDescGZIP(), []int{5} } -func (m *RebootStatusRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RebootStatusRequest.Unmarshal(m, b) -} -func (m *RebootStatusRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RebootStatusRequest.Marshal(b, m, deterministic) +type RebootStatusRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Subcomponents []*types.Path `protobuf:"bytes,1,rep,name=subcomponents,proto3" json:"subcomponents,omitempty"` // optional sub-component. } -func (m *RebootStatusRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RebootStatusRequest.Merge(m, src) + +func (x *RebootStatusRequest) Reset() { + *x = RebootStatusRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_system_system_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *RebootStatusRequest) XXX_Size() int { - return xxx_messageInfo_RebootStatusRequest.Size(m) + +func (x *RebootStatusRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *RebootStatusRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RebootStatusRequest.DiscardUnknown(m) + +func (*RebootStatusRequest) ProtoMessage() {} + +func (x *RebootStatusRequest) ProtoReflect() protoreflect.Message { + mi := &file_system_system_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_RebootStatusRequest proto.InternalMessageInfo +// Deprecated: Use RebootStatusRequest.ProtoReflect.Descriptor instead. +func (*RebootStatusRequest) Descriptor() ([]byte, []int) { + return file_system_system_proto_rawDescGZIP(), []int{6} +} -func (m *RebootStatusRequest) GetSubcomponents() []*types.Path { - if m != nil { - return m.Subcomponents +func (x *RebootStatusRequest) GetSubcomponents() []*types.Path { + if x != nil { + return x.Subcomponents } return nil } type RebootStatusResponse struct { - Active bool `protobuf:"varint,1,opt,name=active,proto3" json:"active,omitempty"` - Wait uint64 `protobuf:"varint,2,opt,name=wait,proto3" json:"wait,omitempty"` - When uint64 `protobuf:"varint,3,opt,name=when,proto3" json:"when,omitempty"` - Reason string `protobuf:"bytes,4,opt,name=reason,proto3" json:"reason,omitempty"` - Count uint32 `protobuf:"varint,5,opt,name=count,proto3" json:"count,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RebootStatusResponse) Reset() { *m = RebootStatusResponse{} } -func (m *RebootStatusResponse) String() string { return proto.CompactTextString(m) } -func (*RebootStatusResponse) ProtoMessage() {} -func (*RebootStatusResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_746080b643370b3b, []int{7} -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *RebootStatusResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RebootStatusResponse.Unmarshal(m, b) -} -func (m *RebootStatusResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RebootStatusResponse.Marshal(b, m, deterministic) + Active bool `protobuf:"varint,1,opt,name=active,proto3" json:"active,omitempty"` // If reboot is active. + Wait uint64 `protobuf:"varint,2,opt,name=wait,proto3" json:"wait,omitempty"` // Time left until reboot. + When uint64 `protobuf:"varint,3,opt,name=when,proto3" json:"when,omitempty"` // Time to reboot in nanoseconds since the epoch. + Reason string `protobuf:"bytes,4,opt,name=reason,proto3" json:"reason,omitempty"` // Reason for reboot. + Count uint32 `protobuf:"varint,5,opt,name=count,proto3" json:"count,omitempty"` // Number of reboots since active. } -func (m *RebootStatusResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RebootStatusResponse.Merge(m, src) + +func (x *RebootStatusResponse) Reset() { + *x = RebootStatusResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_system_system_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *RebootStatusResponse) XXX_Size() int { - return xxx_messageInfo_RebootStatusResponse.Size(m) + +func (x *RebootStatusResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *RebootStatusResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RebootStatusResponse.DiscardUnknown(m) + +func (*RebootStatusResponse) ProtoMessage() {} + +func (x *RebootStatusResponse) ProtoReflect() protoreflect.Message { + mi := &file_system_system_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_RebootStatusResponse proto.InternalMessageInfo +// Deprecated: Use RebootStatusResponse.ProtoReflect.Descriptor instead. +func (*RebootStatusResponse) Descriptor() ([]byte, []int) { + return file_system_system_proto_rawDescGZIP(), []int{7} +} -func (m *RebootStatusResponse) GetActive() bool { - if m != nil { - return m.Active +func (x *RebootStatusResponse) GetActive() bool { + if x != nil { + return x.Active } return false } -func (m *RebootStatusResponse) GetWait() uint64 { - if m != nil { - return m.Wait +func (x *RebootStatusResponse) GetWait() uint64 { + if x != nil { + return x.Wait } return 0 } -func (m *RebootStatusResponse) GetWhen() uint64 { - if m != nil { - return m.When +func (x *RebootStatusResponse) GetWhen() uint64 { + if x != nil { + return x.When } return 0 } -func (m *RebootStatusResponse) GetReason() string { - if m != nil { - return m.Reason +func (x *RebootStatusResponse) GetReason() string { + if x != nil { + return x.Reason } return "" } -func (m *RebootStatusResponse) GetCount() uint32 { - if m != nil { - return m.Count +func (x *RebootStatusResponse) GetCount() uint32 { + if x != nil { + return x.Count } return 0 } // A TimeRequest requests the current time accodring to the target. type TimeRequest struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *TimeRequest) Reset() { *m = TimeRequest{} } -func (m *TimeRequest) String() string { return proto.CompactTextString(m) } -func (*TimeRequest) ProtoMessage() {} -func (*TimeRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_746080b643370b3b, []int{8} +func (x *TimeRequest) Reset() { + *x = TimeRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_system_system_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *TimeRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TimeRequest.Unmarshal(m, b) -} -func (m *TimeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TimeRequest.Marshal(b, m, deterministic) -} -func (m *TimeRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_TimeRequest.Merge(m, src) -} -func (m *TimeRequest) XXX_Size() int { - return xxx_messageInfo_TimeRequest.Size(m) -} -func (m *TimeRequest) XXX_DiscardUnknown() { - xxx_messageInfo_TimeRequest.DiscardUnknown(m) +func (x *TimeRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_TimeRequest proto.InternalMessageInfo +func (*TimeRequest) ProtoMessage() {} -type TimeResponse struct { - Time uint64 `protobuf:"varint,1,opt,name=time,proto3" json:"time,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *TimeRequest) ProtoReflect() protoreflect.Message { + mi := &file_system_system_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func (m *TimeResponse) Reset() { *m = TimeResponse{} } -func (m *TimeResponse) String() string { return proto.CompactTextString(m) } -func (*TimeResponse) ProtoMessage() {} -func (*TimeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_746080b643370b3b, []int{9} +// Deprecated: Use TimeRequest.ProtoReflect.Descriptor instead. +func (*TimeRequest) Descriptor() ([]byte, []int) { + return file_system_system_proto_rawDescGZIP(), []int{8} } -func (m *TimeResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TimeResponse.Unmarshal(m, b) -} -func (m *TimeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TimeResponse.Marshal(b, m, deterministic) +type TimeResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Time uint64 `protobuf:"varint,1,opt,name=time,proto3" json:"time,omitempty"` // Current time in nanoseconds since epoch. } -func (m *TimeResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_TimeResponse.Merge(m, src) + +func (x *TimeResponse) Reset() { + *x = TimeResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_system_system_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *TimeResponse) XXX_Size() int { - return xxx_messageInfo_TimeResponse.Size(m) + +func (x *TimeResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *TimeResponse) XXX_DiscardUnknown() { - xxx_messageInfo_TimeResponse.DiscardUnknown(m) + +func (*TimeResponse) ProtoMessage() {} + +func (x *TimeResponse) ProtoReflect() protoreflect.Message { + mi := &file_system_system_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_TimeResponse proto.InternalMessageInfo +// Deprecated: Use TimeResponse.ProtoReflect.Descriptor instead. +func (*TimeResponse) Descriptor() ([]byte, []int) { + return file_system_system_proto_rawDescGZIP(), []int{9} +} -func (m *TimeResponse) GetTime() uint64 { - if m != nil { - return m.Time +func (x *TimeResponse) GetTime() uint64 { + if x != nil { + return x.Time } return 0 } @@ -631,104 +788,112 @@ func (m *TimeResponse) GetTime() uint64 { // // If the size is 0, the vendor default size will be used (typically 56 bytes). type PingRequest struct { - Destination string `protobuf:"bytes,1,opt,name=destination,proto3" json:"destination,omitempty"` - Source string `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"` - Count int32 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"` - Interval int64 `protobuf:"varint,4,opt,name=interval,proto3" json:"interval,omitempty"` - Wait int64 `protobuf:"varint,5,opt,name=wait,proto3" json:"wait,omitempty"` - Size int32 `protobuf:"varint,6,opt,name=size,proto3" json:"size,omitempty"` - DoNotFragment bool `protobuf:"varint,7,opt,name=do_not_fragment,json=doNotFragment,proto3" json:"do_not_fragment,omitempty"` - DoNotResolve bool `protobuf:"varint,8,opt,name=do_not_resolve,json=doNotResolve,proto3" json:"do_not_resolve,omitempty"` - L3Protocol types.L3Protocol `protobuf:"varint,9,opt,name=l3protocol,proto3,enum=gnoi.types.L3Protocol" json:"l3protocol,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *PingRequest) Reset() { *m = PingRequest{} } -func (m *PingRequest) String() string { return proto.CompactTextString(m) } -func (*PingRequest) ProtoMessage() {} -func (*PingRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_746080b643370b3b, []int{10} -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *PingRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PingRequest.Unmarshal(m, b) -} -func (m *PingRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PingRequest.Marshal(b, m, deterministic) + Destination string `protobuf:"bytes,1,opt,name=destination,proto3" json:"destination,omitempty"` // Destination address to ping. required. + Source string `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"` // Source address to ping from. + Count int32 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"` // Number of packets. + Interval int64 `protobuf:"varint,4,opt,name=interval,proto3" json:"interval,omitempty"` // Nanoseconds between requests. + Wait int64 `protobuf:"varint,5,opt,name=wait,proto3" json:"wait,omitempty"` // Nanoseconds to wait for a response. + Size int32 `protobuf:"varint,6,opt,name=size,proto3" json:"size,omitempty"` // Size of request packet. (excluding ICMP header) + DoNotFragment bool `protobuf:"varint,7,opt,name=do_not_fragment,json=doNotFragment,proto3" json:"do_not_fragment,omitempty"` // Set the do not fragment bit. (IPv4 destinations) + DoNotResolve bool `protobuf:"varint,8,opt,name=do_not_resolve,json=doNotResolve,proto3" json:"do_not_resolve,omitempty"` // Do not try resolve the address returned. + L3Protocol types.L3Protocol `protobuf:"varint,9,opt,name=l3protocol,proto3,enum=gnoi.types.L3Protocol" json:"l3protocol,omitempty"` // Layer3 protocol requested for the ping. } -func (m *PingRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_PingRequest.Merge(m, src) + +func (x *PingRequest) Reset() { + *x = PingRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_system_system_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *PingRequest) XXX_Size() int { - return xxx_messageInfo_PingRequest.Size(m) + +func (x *PingRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *PingRequest) XXX_DiscardUnknown() { - xxx_messageInfo_PingRequest.DiscardUnknown(m) + +func (*PingRequest) ProtoMessage() {} + +func (x *PingRequest) ProtoReflect() protoreflect.Message { + mi := &file_system_system_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_PingRequest proto.InternalMessageInfo +// Deprecated: Use PingRequest.ProtoReflect.Descriptor instead. +func (*PingRequest) Descriptor() ([]byte, []int) { + return file_system_system_proto_rawDescGZIP(), []int{10} +} -func (m *PingRequest) GetDestination() string { - if m != nil { - return m.Destination +func (x *PingRequest) GetDestination() string { + if x != nil { + return x.Destination } return "" } -func (m *PingRequest) GetSource() string { - if m != nil { - return m.Source +func (x *PingRequest) GetSource() string { + if x != nil { + return x.Source } return "" } -func (m *PingRequest) GetCount() int32 { - if m != nil { - return m.Count +func (x *PingRequest) GetCount() int32 { + if x != nil { + return x.Count } return 0 } -func (m *PingRequest) GetInterval() int64 { - if m != nil { - return m.Interval +func (x *PingRequest) GetInterval() int64 { + if x != nil { + return x.Interval } return 0 } -func (m *PingRequest) GetWait() int64 { - if m != nil { - return m.Wait +func (x *PingRequest) GetWait() int64 { + if x != nil { + return x.Wait } return 0 } -func (m *PingRequest) GetSize() int32 { - if m != nil { - return m.Size +func (x *PingRequest) GetSize() int32 { + if x != nil { + return x.Size } return 0 } -func (m *PingRequest) GetDoNotFragment() bool { - if m != nil { - return m.DoNotFragment +func (x *PingRequest) GetDoNotFragment() bool { + if x != nil { + return x.DoNotFragment } return false } -func (m *PingRequest) GetDoNotResolve() bool { - if m != nil { - return m.DoNotResolve +func (x *PingRequest) GetDoNotResolve() bool { + if x != nil { + return x.DoNotResolve } return false } -func (m *PingRequest) GetL3Protocol() types.L3Protocol { - if m != nil { - return m.L3Protocol +func (x *PingRequest) GetL3Protocol() types.L3Protocol { + if x != nil { + return x.L3Protocol } return types.L3Protocol_UNSPECIFIED } @@ -741,120 +906,128 @@ func (m *PingRequest) GetL3Protocol() types.L3Protocol { // not always present in summary statistics. The std_dev is not always present // in summary statistics. type PingResponse struct { - Source string `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"` - Time int64 `protobuf:"varint,2,opt,name=time,proto3" json:"time,omitempty"` - Sent int32 `protobuf:"varint,3,opt,name=sent,proto3" json:"sent,omitempty"` - Received int32 `protobuf:"varint,4,opt,name=received,proto3" json:"received,omitempty"` - MinTime int64 `protobuf:"varint,5,opt,name=min_time,json=minTime,proto3" json:"min_time,omitempty"` - AvgTime int64 `protobuf:"varint,6,opt,name=avg_time,json=avgTime,proto3" json:"avg_time,omitempty"` - MaxTime int64 `protobuf:"varint,7,opt,name=max_time,json=maxTime,proto3" json:"max_time,omitempty"` - StdDev int64 `protobuf:"varint,8,opt,name=std_dev,json=stdDev,proto3" json:"std_dev,omitempty"` - Bytes int32 `protobuf:"varint,11,opt,name=bytes,proto3" json:"bytes,omitempty"` - Sequence int32 `protobuf:"varint,12,opt,name=sequence,proto3" json:"sequence,omitempty"` - Ttl int32 `protobuf:"varint,13,opt,name=ttl,proto3" json:"ttl,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *PingResponse) Reset() { *m = PingResponse{} } -func (m *PingResponse) String() string { return proto.CompactTextString(m) } -func (*PingResponse) ProtoMessage() {} -func (*PingResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_746080b643370b3b, []int{11} -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *PingResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PingResponse.Unmarshal(m, b) -} -func (m *PingResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PingResponse.Marshal(b, m, deterministic) + Source string `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"` // Source of received bytes. + Time int64 `protobuf:"varint,2,opt,name=time,proto3" json:"time,omitempty"` + Sent int32 `protobuf:"varint,3,opt,name=sent,proto3" json:"sent,omitempty"` // Total packets sent. + Received int32 `protobuf:"varint,4,opt,name=received,proto3" json:"received,omitempty"` // Total packets received. + MinTime int64 `protobuf:"varint,5,opt,name=min_time,json=minTime,proto3" json:"min_time,omitempty"` // Minimum round trip time in nanoseconds. + AvgTime int64 `protobuf:"varint,6,opt,name=avg_time,json=avgTime,proto3" json:"avg_time,omitempty"` // Average round trip time in nanoseconds. + MaxTime int64 `protobuf:"varint,7,opt,name=max_time,json=maxTime,proto3" json:"max_time,omitempty"` // Maximum round trip time in nanoseconds. + StdDev int64 `protobuf:"varint,8,opt,name=std_dev,json=stdDev,proto3" json:"std_dev,omitempty"` // Standard deviation in round trip time. + Bytes int32 `protobuf:"varint,11,opt,name=bytes,proto3" json:"bytes,omitempty"` // Bytes received. + Sequence int32 `protobuf:"varint,12,opt,name=sequence,proto3" json:"sequence,omitempty"` // Sequence number of received packet. + Ttl int32 `protobuf:"varint,13,opt,name=ttl,proto3" json:"ttl,omitempty"` // Remaining time to live value. } -func (m *PingResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_PingResponse.Merge(m, src) + +func (x *PingResponse) Reset() { + *x = PingResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_system_system_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *PingResponse) XXX_Size() int { - return xxx_messageInfo_PingResponse.Size(m) + +func (x *PingResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *PingResponse) XXX_DiscardUnknown() { - xxx_messageInfo_PingResponse.DiscardUnknown(m) + +func (*PingResponse) ProtoMessage() {} + +func (x *PingResponse) ProtoReflect() protoreflect.Message { + mi := &file_system_system_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_PingResponse proto.InternalMessageInfo +// Deprecated: Use PingResponse.ProtoReflect.Descriptor instead. +func (*PingResponse) Descriptor() ([]byte, []int) { + return file_system_system_proto_rawDescGZIP(), []int{11} +} -func (m *PingResponse) GetSource() string { - if m != nil { - return m.Source +func (x *PingResponse) GetSource() string { + if x != nil { + return x.Source } return "" } -func (m *PingResponse) GetTime() int64 { - if m != nil { - return m.Time +func (x *PingResponse) GetTime() int64 { + if x != nil { + return x.Time } return 0 } -func (m *PingResponse) GetSent() int32 { - if m != nil { - return m.Sent +func (x *PingResponse) GetSent() int32 { + if x != nil { + return x.Sent } return 0 } -func (m *PingResponse) GetReceived() int32 { - if m != nil { - return m.Received +func (x *PingResponse) GetReceived() int32 { + if x != nil { + return x.Received } return 0 } -func (m *PingResponse) GetMinTime() int64 { - if m != nil { - return m.MinTime +func (x *PingResponse) GetMinTime() int64 { + if x != nil { + return x.MinTime } return 0 } -func (m *PingResponse) GetAvgTime() int64 { - if m != nil { - return m.AvgTime +func (x *PingResponse) GetAvgTime() int64 { + if x != nil { + return x.AvgTime } return 0 } -func (m *PingResponse) GetMaxTime() int64 { - if m != nil { - return m.MaxTime +func (x *PingResponse) GetMaxTime() int64 { + if x != nil { + return x.MaxTime } return 0 } -func (m *PingResponse) GetStdDev() int64 { - if m != nil { - return m.StdDev +func (x *PingResponse) GetStdDev() int64 { + if x != nil { + return x.StdDev } return 0 } -func (m *PingResponse) GetBytes() int32 { - if m != nil { - return m.Bytes +func (x *PingResponse) GetBytes() int32 { + if x != nil { + return x.Bytes } return 0 } -func (m *PingResponse) GetSequence() int32 { - if m != nil { - return m.Sequence +func (x *PingResponse) GetSequence() int32 { + if x != nil { + return x.Sequence } return 0 } -func (m *PingResponse) GetTtl() int32 { - if m != nil { - return m.Ttl +func (x *PingResponse) GetTtl() int32 { + if x != nil { + return x.Ttl } return 0 } @@ -867,104 +1040,112 @@ func (m *PingResponse) GetTtl() int32 { // If the hop_count is -1 the traceroute will continue forever. // type TracerouteRequest struct { - Source string `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"` - Destination string `protobuf:"bytes,2,opt,name=destination,proto3" json:"destination,omitempty"` - InitialTtl uint32 `protobuf:"varint,3,opt,name=initial_ttl,json=initialTtl,proto3" json:"initial_ttl,omitempty"` - MaxTtl int32 `protobuf:"varint,4,opt,name=max_ttl,json=maxTtl,proto3" json:"max_ttl,omitempty"` - Wait int64 `protobuf:"varint,5,opt,name=wait,proto3" json:"wait,omitempty"` - DoNotFragment bool `protobuf:"varint,6,opt,name=do_not_fragment,json=doNotFragment,proto3" json:"do_not_fragment,omitempty"` - DoNotResolve bool `protobuf:"varint,7,opt,name=do_not_resolve,json=doNotResolve,proto3" json:"do_not_resolve,omitempty"` - L3Protocol types.L3Protocol `protobuf:"varint,8,opt,name=l3protocol,proto3,enum=gnoi.types.L3Protocol" json:"l3protocol,omitempty"` - L4Protocol TracerouteRequest_L4Protocol `protobuf:"varint,9,opt,name=l4protocol,proto3,enum=gnoi.system.TracerouteRequest_L4Protocol" json:"l4protocol,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TracerouteRequest) Reset() { *m = TracerouteRequest{} } -func (m *TracerouteRequest) String() string { return proto.CompactTextString(m) } -func (*TracerouteRequest) ProtoMessage() {} -func (*TracerouteRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_746080b643370b3b, []int{12} -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *TracerouteRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TracerouteRequest.Unmarshal(m, b) + Source string `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"` // Source address to ping from. + Destination string `protobuf:"bytes,2,opt,name=destination,proto3" json:"destination,omitempty"` // Destination address to ping. + InitialTtl uint32 `protobuf:"varint,3,opt,name=initial_ttl,json=initialTtl,proto3" json:"initial_ttl,omitempty"` // Initial TTL. (default=1) + MaxTtl int32 `protobuf:"varint,4,opt,name=max_ttl,json=maxTtl,proto3" json:"max_ttl,omitempty"` // Maximum number of hops. (default=30) + Wait int64 `protobuf:"varint,5,opt,name=wait,proto3" json:"wait,omitempty"` // Nanoseconds to wait for a response. + DoNotFragment bool `protobuf:"varint,6,opt,name=do_not_fragment,json=doNotFragment,proto3" json:"do_not_fragment,omitempty"` // Set the do not fragment bit. (IPv4 destinations) + DoNotResolve bool `protobuf:"varint,7,opt,name=do_not_resolve,json=doNotResolve,proto3" json:"do_not_resolve,omitempty"` // Do not try resolve the address returned. + L3Protocol types.L3Protocol `protobuf:"varint,8,opt,name=l3protocol,proto3,enum=gnoi.types.L3Protocol" json:"l3protocol,omitempty"` // Layer-3 protocol requested for the ping. + L4Protocol TracerouteRequest_L4Protocol `protobuf:"varint,9,opt,name=l4protocol,proto3,enum=gnoi.system.TracerouteRequest_L4Protocol" json:"l4protocol,omitempty"` } -func (m *TracerouteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TracerouteRequest.Marshal(b, m, deterministic) -} -func (m *TracerouteRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_TracerouteRequest.Merge(m, src) + +func (x *TracerouteRequest) Reset() { + *x = TracerouteRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_system_system_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *TracerouteRequest) XXX_Size() int { - return xxx_messageInfo_TracerouteRequest.Size(m) + +func (x *TracerouteRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *TracerouteRequest) XXX_DiscardUnknown() { - xxx_messageInfo_TracerouteRequest.DiscardUnknown(m) + +func (*TracerouteRequest) ProtoMessage() {} + +func (x *TracerouteRequest) ProtoReflect() protoreflect.Message { + mi := &file_system_system_proto_msgTypes[12] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_TracerouteRequest proto.InternalMessageInfo +// Deprecated: Use TracerouteRequest.ProtoReflect.Descriptor instead. +func (*TracerouteRequest) Descriptor() ([]byte, []int) { + return file_system_system_proto_rawDescGZIP(), []int{12} +} -func (m *TracerouteRequest) GetSource() string { - if m != nil { - return m.Source +func (x *TracerouteRequest) GetSource() string { + if x != nil { + return x.Source } return "" } -func (m *TracerouteRequest) GetDestination() string { - if m != nil { - return m.Destination +func (x *TracerouteRequest) GetDestination() string { + if x != nil { + return x.Destination } return "" } -func (m *TracerouteRequest) GetInitialTtl() uint32 { - if m != nil { - return m.InitialTtl +func (x *TracerouteRequest) GetInitialTtl() uint32 { + if x != nil { + return x.InitialTtl } return 0 } -func (m *TracerouteRequest) GetMaxTtl() int32 { - if m != nil { - return m.MaxTtl +func (x *TracerouteRequest) GetMaxTtl() int32 { + if x != nil { + return x.MaxTtl } return 0 } -func (m *TracerouteRequest) GetWait() int64 { - if m != nil { - return m.Wait +func (x *TracerouteRequest) GetWait() int64 { + if x != nil { + return x.Wait } return 0 } -func (m *TracerouteRequest) GetDoNotFragment() bool { - if m != nil { - return m.DoNotFragment +func (x *TracerouteRequest) GetDoNotFragment() bool { + if x != nil { + return x.DoNotFragment } return false } -func (m *TracerouteRequest) GetDoNotResolve() bool { - if m != nil { - return m.DoNotResolve +func (x *TracerouteRequest) GetDoNotResolve() bool { + if x != nil { + return x.DoNotResolve } return false } -func (m *TracerouteRequest) GetL3Protocol() types.L3Protocol { - if m != nil { - return m.L3Protocol +func (x *TracerouteRequest) GetL3Protocol() types.L3Protocol { + if x != nil { + return x.L3Protocol } return types.L3Protocol_UNSPECIFIED } -func (m *TracerouteRequest) GetL4Protocol() TracerouteRequest_L4Protocol { - if m != nil { - return m.L4Protocol +func (x *TracerouteRequest) GetL4Protocol() TracerouteRequest_L4Protocol { + if x != nil { + return x.L4Protocol } return TracerouteRequest_ICMP } @@ -984,6 +1165,10 @@ func (m *TracerouteRequest) GetL4Protocol() TracerouteRequest_L4Protocol { // [Perhaps we should list the canonical names that must be used when // applicable]. type TracerouteResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // The following fields are only filled in for the first message. // If any of these fields are specified, all fields following this // block are left unspecified. @@ -993,130 +1178,138 @@ type TracerouteResponse struct { PacketSize int32 `protobuf:"varint,4,opt,name=packet_size,json=packetSize,proto3" json:"packet_size,omitempty"` // The following fields provide the disposition of a single traceroute // packet. - Hop int32 `protobuf:"varint,5,opt,name=hop,proto3" json:"hop,omitempty"` - Address string `protobuf:"bytes,6,opt,name=address,proto3" json:"address,omitempty"` - Name string `protobuf:"bytes,7,opt,name=name,proto3" json:"name,omitempty"` - Rtt int64 `protobuf:"varint,8,opt,name=rtt,proto3" json:"rtt,omitempty"` - State TracerouteResponse_State `protobuf:"varint,9,opt,name=state,proto3,enum=gnoi.system.TracerouteResponse_State" json:"state,omitempty"` - IcmpCode int32 `protobuf:"varint,10,opt,name=icmp_code,json=icmpCode,proto3" json:"icmp_code,omitempty"` - Mpls map[string]string `protobuf:"bytes,11,rep,name=mpls,proto3" json:"mpls,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - AsPath []int32 `protobuf:"varint,12,rep,packed,name=as_path,json=asPath,proto3" json:"as_path,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TracerouteResponse) Reset() { *m = TracerouteResponse{} } -func (m *TracerouteResponse) String() string { return proto.CompactTextString(m) } -func (*TracerouteResponse) ProtoMessage() {} -func (*TracerouteResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_746080b643370b3b, []int{13} + Hop int32 `protobuf:"varint,5,opt,name=hop,proto3" json:"hop,omitempty"` // Hop number. required. + Address string `protobuf:"bytes,6,opt,name=address,proto3" json:"address,omitempty"` // Address of responding hop. required. + Name string `protobuf:"bytes,7,opt,name=name,proto3" json:"name,omitempty"` // Name of responding hop. + Rtt int64 `protobuf:"varint,8,opt,name=rtt,proto3" json:"rtt,omitempty"` // Round trip time in nanoseconds. + State TracerouteResponse_State `protobuf:"varint,9,opt,name=state,proto3,enum=gnoi.system.TracerouteResponse_State" json:"state,omitempty"` // State of this hop. + IcmpCode int32 `protobuf:"varint,10,opt,name=icmp_code,json=icmpCode,proto3" json:"icmp_code,omitempty"` // Code terminating hop. + Mpls map[string]string `protobuf:"bytes,11,rep,name=mpls,proto3" json:"mpls,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // MPLS key/value pairs. + AsPath []int32 `protobuf:"varint,12,rep,packed,name=as_path,json=asPath,proto3" json:"as_path,omitempty"` // AS path. } -func (m *TracerouteResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TracerouteResponse.Unmarshal(m, b) -} -func (m *TracerouteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TracerouteResponse.Marshal(b, m, deterministic) -} -func (m *TracerouteResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_TracerouteResponse.Merge(m, src) +func (x *TracerouteResponse) Reset() { + *x = TracerouteResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_system_system_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *TracerouteResponse) XXX_Size() int { - return xxx_messageInfo_TracerouteResponse.Size(m) + +func (x *TracerouteResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *TracerouteResponse) XXX_DiscardUnknown() { - xxx_messageInfo_TracerouteResponse.DiscardUnknown(m) + +func (*TracerouteResponse) ProtoMessage() {} + +func (x *TracerouteResponse) ProtoReflect() protoreflect.Message { + mi := &file_system_system_proto_msgTypes[13] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_TracerouteResponse proto.InternalMessageInfo +// Deprecated: Use TracerouteResponse.ProtoReflect.Descriptor instead. +func (*TracerouteResponse) Descriptor() ([]byte, []int) { + return file_system_system_proto_rawDescGZIP(), []int{13} +} -func (m *TracerouteResponse) GetDestinationName() string { - if m != nil { - return m.DestinationName +func (x *TracerouteResponse) GetDestinationName() string { + if x != nil { + return x.DestinationName } return "" } -func (m *TracerouteResponse) GetDestinationAddress() string { - if m != nil { - return m.DestinationAddress +func (x *TracerouteResponse) GetDestinationAddress() string { + if x != nil { + return x.DestinationAddress } return "" } -func (m *TracerouteResponse) GetHops() int32 { - if m != nil { - return m.Hops +func (x *TracerouteResponse) GetHops() int32 { + if x != nil { + return x.Hops } return 0 } -func (m *TracerouteResponse) GetPacketSize() int32 { - if m != nil { - return m.PacketSize +func (x *TracerouteResponse) GetPacketSize() int32 { + if x != nil { + return x.PacketSize } return 0 } -func (m *TracerouteResponse) GetHop() int32 { - if m != nil { - return m.Hop +func (x *TracerouteResponse) GetHop() int32 { + if x != nil { + return x.Hop } return 0 } -func (m *TracerouteResponse) GetAddress() string { - if m != nil { - return m.Address +func (x *TracerouteResponse) GetAddress() string { + if x != nil { + return x.Address } return "" } -func (m *TracerouteResponse) GetName() string { - if m != nil { - return m.Name +func (x *TracerouteResponse) GetName() string { + if x != nil { + return x.Name } return "" } -func (m *TracerouteResponse) GetRtt() int64 { - if m != nil { - return m.Rtt +func (x *TracerouteResponse) GetRtt() int64 { + if x != nil { + return x.Rtt } return 0 } -func (m *TracerouteResponse) GetState() TracerouteResponse_State { - if m != nil { - return m.State +func (x *TracerouteResponse) GetState() TracerouteResponse_State { + if x != nil { + return x.State } return TracerouteResponse_DEFAULT } -func (m *TracerouteResponse) GetIcmpCode() int32 { - if m != nil { - return m.IcmpCode +func (x *TracerouteResponse) GetIcmpCode() int32 { + if x != nil { + return x.IcmpCode } return 0 } -func (m *TracerouteResponse) GetMpls() map[string]string { - if m != nil { - return m.Mpls +func (x *TracerouteResponse) GetMpls() map[string]string { + if x != nil { + return x.Mpls } return nil } -func (m *TracerouteResponse) GetAsPath() []int32 { - if m != nil { - return m.AsPath +func (x *TracerouteResponse) GetAsPath() []int32 { + if x != nil { + return x.AsPath } return nil } // Package defines a single package file to be placed on the target. type Package struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // Destination path and filename of the package. Filename string `protobuf:"bytes,1,opt,name=filename,proto3" json:"filename,omitempty"` // Version of the package. (vendor internal name) @@ -1126,61 +1319,65 @@ type Package struct { // be active after a reboot. Activate bool `protobuf:"varint,5,opt,name=activate,proto3" json:"activate,omitempty"` // Details for the device to download the package from a remote location. - RemoteDownload *common.RemoteDownload `protobuf:"bytes,6,opt,name=remote_download,json=remoteDownload,proto3" json:"remote_download,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + RemoteDownload *common.RemoteDownload `protobuf:"bytes,6,opt,name=remote_download,json=remoteDownload,proto3" json:"remote_download,omitempty"` } -func (m *Package) Reset() { *m = Package{} } -func (m *Package) String() string { return proto.CompactTextString(m) } -func (*Package) ProtoMessage() {} -func (*Package) Descriptor() ([]byte, []int) { - return fileDescriptor_746080b643370b3b, []int{14} +func (x *Package) Reset() { + *x = Package{} + if protoimpl.UnsafeEnabled { + mi := &file_system_system_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *Package) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Package.Unmarshal(m, b) -} -func (m *Package) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Package.Marshal(b, m, deterministic) +func (x *Package) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Package) XXX_Merge(src proto.Message) { - xxx_messageInfo_Package.Merge(m, src) -} -func (m *Package) XXX_Size() int { - return xxx_messageInfo_Package.Size(m) -} -func (m *Package) XXX_DiscardUnknown() { - xxx_messageInfo_Package.DiscardUnknown(m) + +func (*Package) ProtoMessage() {} + +func (x *Package) ProtoReflect() protoreflect.Message { + mi := &file_system_system_proto_msgTypes[14] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_Package proto.InternalMessageInfo +// Deprecated: Use Package.ProtoReflect.Descriptor instead. +func (*Package) Descriptor() ([]byte, []int) { + return file_system_system_proto_rawDescGZIP(), []int{14} +} -func (m *Package) GetFilename() string { - if m != nil { - return m.Filename +func (x *Package) GetFilename() string { + if x != nil { + return x.Filename } return "" } -func (m *Package) GetVersion() string { - if m != nil { - return m.Version +func (x *Package) GetVersion() string { + if x != nil { + return x.Version } return "" } -func (m *Package) GetActivate() bool { - if m != nil { - return m.Activate +func (x *Package) GetActivate() bool { + if x != nil { + return x.Activate } return false } -func (m *Package) GetRemoteDownload() *common.RemoteDownload { - if m != nil { - return m.RemoteDownload +func (x *Package) GetRemoteDownload() *common.RemoteDownload { + if x != nil { + return x.RemoteDownload } return nil } @@ -1191,63 +1388,49 @@ func (m *Package) GetRemoteDownload() *common.RemoteDownload { // initial message the contents are then streamed in maximum 64k chunks. The // final message must be a hash message contains the hash of the file contents. type SetPackageRequest struct { - // Types that are valid to be assigned to Request: + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Types that are assignable to Request: // *SetPackageRequest_Package // *SetPackageRequest_Contents // *SetPackageRequest_Hash - Request isSetPackageRequest_Request `protobuf_oneof:"request"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Request isSetPackageRequest_Request `protobuf_oneof:"request"` } -func (m *SetPackageRequest) Reset() { *m = SetPackageRequest{} } -func (m *SetPackageRequest) String() string { return proto.CompactTextString(m) } -func (*SetPackageRequest) ProtoMessage() {} -func (*SetPackageRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_746080b643370b3b, []int{15} -} - -func (m *SetPackageRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SetPackageRequest.Unmarshal(m, b) -} -func (m *SetPackageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SetPackageRequest.Marshal(b, m, deterministic) -} -func (m *SetPackageRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_SetPackageRequest.Merge(m, src) -} -func (m *SetPackageRequest) XXX_Size() int { - return xxx_messageInfo_SetPackageRequest.Size(m) -} -func (m *SetPackageRequest) XXX_DiscardUnknown() { - xxx_messageInfo_SetPackageRequest.DiscardUnknown(m) +func (x *SetPackageRequest) Reset() { + *x = SetPackageRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_system_system_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -var xxx_messageInfo_SetPackageRequest proto.InternalMessageInfo - -type isSetPackageRequest_Request interface { - isSetPackageRequest_Request() +func (x *SetPackageRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -type SetPackageRequest_Package struct { - Package *Package `protobuf:"bytes,1,opt,name=package,proto3,oneof"` -} +func (*SetPackageRequest) ProtoMessage() {} -type SetPackageRequest_Contents struct { - Contents []byte `protobuf:"bytes,2,opt,name=contents,proto3,oneof"` +func (x *SetPackageRequest) ProtoReflect() protoreflect.Message { + mi := &file_system_system_proto_msgTypes[15] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -type SetPackageRequest_Hash struct { - Hash *types.HashType `protobuf:"bytes,3,opt,name=hash,proto3,oneof"` +// Deprecated: Use SetPackageRequest.ProtoReflect.Descriptor instead. +func (*SetPackageRequest) Descriptor() ([]byte, []int) { + return file_system_system_proto_rawDescGZIP(), []int{15} } -func (*SetPackageRequest_Package) isSetPackageRequest_Request() {} - -func (*SetPackageRequest_Contents) isSetPackageRequest_Request() {} - -func (*SetPackageRequest_Hash) isSetPackageRequest_Request() {} - func (m *SetPackageRequest) GetRequest() isSetPackageRequest_Request { if m != nil { return m.Request @@ -1255,729 +1438,646 @@ func (m *SetPackageRequest) GetRequest() isSetPackageRequest_Request { return nil } -func (m *SetPackageRequest) GetPackage() *Package { - if x, ok := m.GetRequest().(*SetPackageRequest_Package); ok { +func (x *SetPackageRequest) GetPackage() *Package { + if x, ok := x.GetRequest().(*SetPackageRequest_Package); ok { return x.Package } return nil } -func (m *SetPackageRequest) GetContents() []byte { - if x, ok := m.GetRequest().(*SetPackageRequest_Contents); ok { +func (x *SetPackageRequest) GetContents() []byte { + if x, ok := x.GetRequest().(*SetPackageRequest_Contents); ok { return x.Contents } return nil } -func (m *SetPackageRequest) GetHash() *types.HashType { - if x, ok := m.GetRequest().(*SetPackageRequest_Hash); ok { +func (x *SetPackageRequest) GetHash() *types.HashType { + if x, ok := x.GetRequest().(*SetPackageRequest_Hash); ok { return x.Hash } return nil } -// XXX_OneofFuncs is for the internal use of the proto package. -func (*SetPackageRequest) 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 _SetPackageRequest_OneofMarshaler, _SetPackageRequest_OneofUnmarshaler, _SetPackageRequest_OneofSizer, []interface{}{ - (*SetPackageRequest_Package)(nil), - (*SetPackageRequest_Contents)(nil), - (*SetPackageRequest_Hash)(nil), - } -} - -func _SetPackageRequest_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { - m := msg.(*SetPackageRequest) - // request - switch x := m.Request.(type) { - case *SetPackageRequest_Package: - b.EncodeVarint(1<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.Package); err != nil { - return err - } - case *SetPackageRequest_Contents: - b.EncodeVarint(2<<3 | proto.WireBytes) - b.EncodeRawBytes(x.Contents) - case *SetPackageRequest_Hash: - b.EncodeVarint(3<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.Hash); err != nil { - return err - } - case nil: - default: - return fmt.Errorf("SetPackageRequest.Request has unexpected type %T", x) - } - return nil -} - -func _SetPackageRequest_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { - m := msg.(*SetPackageRequest) - switch tag { - case 1: // request.package - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(Package) - err := b.DecodeMessage(msg) - m.Request = &SetPackageRequest_Package{msg} - return true, err - case 2: // request.contents - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - x, err := b.DecodeRawBytes(true) - m.Request = &SetPackageRequest_Contents{x} - return true, err - case 3: // request.hash - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(types.HashType) - err := b.DecodeMessage(msg) - m.Request = &SetPackageRequest_Hash{msg} - return true, err - default: - return false, nil - } -} - -func _SetPackageRequest_OneofSizer(msg proto.Message) (n int) { - m := msg.(*SetPackageRequest) - // request - switch x := m.Request.(type) { - case *SetPackageRequest_Package: - s := proto.Size(x.Package) - n += 1 // tag and wire - n += proto.SizeVarint(uint64(s)) - n += s - case *SetPackageRequest_Contents: - n += 1 // tag and wire - n += proto.SizeVarint(uint64(len(x.Contents))) - n += len(x.Contents) - case *SetPackageRequest_Hash: - s := proto.Size(x.Hash) - n += 1 // tag and wire - n += proto.SizeVarint(uint64(s)) - n += s - case nil: - default: - panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) - } - return n -} - -type SetPackageResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *SetPackageResponse) Reset() { *m = SetPackageResponse{} } -func (m *SetPackageResponse) String() string { return proto.CompactTextString(m) } -func (*SetPackageResponse) ProtoMessage() {} -func (*SetPackageResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_746080b643370b3b, []int{16} -} - -func (m *SetPackageResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SetPackageResponse.Unmarshal(m, b) -} -func (m *SetPackageResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SetPackageResponse.Marshal(b, m, deterministic) -} -func (m *SetPackageResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_SetPackageResponse.Merge(m, src) -} -func (m *SetPackageResponse) XXX_Size() int { - return xxx_messageInfo_SetPackageResponse.Size(m) -} -func (m *SetPackageResponse) XXX_DiscardUnknown() { - xxx_messageInfo_SetPackageResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_SetPackageResponse proto.InternalMessageInfo - -func init() { - proto.RegisterEnum("gnoi.system.RebootMethod", RebootMethod_name, RebootMethod_value) - proto.RegisterEnum("gnoi.system.TracerouteRequest_L4Protocol", TracerouteRequest_L4Protocol_name, TracerouteRequest_L4Protocol_value) - proto.RegisterEnum("gnoi.system.TracerouteResponse_State", TracerouteResponse_State_name, TracerouteResponse_State_value) - proto.RegisterType((*SwitchControlProcessorRequest)(nil), "gnoi.system.SwitchControlProcessorRequest") - proto.RegisterType((*SwitchControlProcessorResponse)(nil), "gnoi.system.SwitchControlProcessorResponse") - proto.RegisterType((*RebootRequest)(nil), "gnoi.system.RebootRequest") - proto.RegisterType((*RebootResponse)(nil), "gnoi.system.RebootResponse") - proto.RegisterType((*CancelRebootRequest)(nil), "gnoi.system.CancelRebootRequest") - proto.RegisterType((*CancelRebootResponse)(nil), "gnoi.system.CancelRebootResponse") - proto.RegisterType((*RebootStatusRequest)(nil), "gnoi.system.RebootStatusRequest") - proto.RegisterType((*RebootStatusResponse)(nil), "gnoi.system.RebootStatusResponse") - proto.RegisterType((*TimeRequest)(nil), "gnoi.system.TimeRequest") - proto.RegisterType((*TimeResponse)(nil), "gnoi.system.TimeResponse") - proto.RegisterType((*PingRequest)(nil), "gnoi.system.PingRequest") - proto.RegisterType((*PingResponse)(nil), "gnoi.system.PingResponse") - proto.RegisterType((*TracerouteRequest)(nil), "gnoi.system.TracerouteRequest") - proto.RegisterType((*TracerouteResponse)(nil), "gnoi.system.TracerouteResponse") - proto.RegisterMapType((map[string]string)(nil), "gnoi.system.TracerouteResponse.MplsEntry") - proto.RegisterType((*Package)(nil), "gnoi.system.Package") - proto.RegisterType((*SetPackageRequest)(nil), "gnoi.system.SetPackageRequest") - proto.RegisterType((*SetPackageResponse)(nil), "gnoi.system.SetPackageResponse") -} - -func init() { proto.RegisterFile("system/system.proto", fileDescriptor_746080b643370b3b) } - -var fileDescriptor_746080b643370b3b = []byte{ - // 1596 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x57, 0xdb, 0x72, 0xe3, 0x48, - 0x19, 0x8e, 0x7c, 0xf6, 0xef, 0x24, 0xa3, 0xe9, 0x84, 0xac, 0xc6, 0x03, 0xbb, 0x41, 0x05, 0x54, - 0x66, 0xa0, 0x9c, 0xd9, 0x99, 0xad, 0x85, 0x82, 0x5a, 0x28, 0x8f, 0xad, 0x90, 0xd4, 0x3a, 0xb6, - 0x69, 0xcb, 0xcc, 0x1d, 0x2a, 0x45, 0xee, 0xb1, 0x55, 0x23, 0xa9, 0x85, 0xba, 0xed, 0xd9, 0x70, - 0xcd, 0x0b, 0x70, 0x33, 0x45, 0x71, 0xc7, 0x15, 0xaf, 0xc1, 0x33, 0x70, 0xc3, 0x7b, 0xf0, 0x04, - 0x54, 0x1f, 0xe4, 0xc8, 0x89, 0x67, 0x92, 0xaa, 0xbd, 0xb1, 0xfb, 0x3f, 0xf4, 0x7f, 0xfc, 0xba, - 0xfb, 0x17, 0x1c, 0xb0, 0x6b, 0xc6, 0x49, 0x7c, 0xaa, 0xfe, 0x3a, 0x69, 0x46, 0x39, 0x45, 0xad, - 0x79, 0x42, 0xc3, 0x8e, 0x62, 0xb5, 0x3b, 0xf3, 0x90, 0x2f, 0x96, 0x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2b, 0x9f, 0x4d, 0x9c, 0x93, 0xe8, 0x6b, 0xd8, 0x63, 0xcb, 0xab, 0x80, 0xc6, 0x29, - 0x4d, 0x48, 0xc2, 0x99, 0x55, 0x39, 0x2e, 0x6f, 0xcd, 0x70, 0x53, 0x4d, 0xf8, 0x79, 0x4b, 0xb3, - 0x80, 0x58, 0xd5, 0x63, 0xe3, 0xa4, 0x81, 0x15, 0x61, 0x9b, 0xb0, 0x9f, 0x67, 0xa0, 0xaa, 0x68, - 0xcf, 0xe1, 0xa0, 0xe7, 0x27, 0x01, 0x89, 0x36, 0x33, 0x2b, 0x04, 0x64, 0xdc, 0x13, 0x50, 0xe9, - 0x41, 0x01, 0xd9, 0x47, 0x70, 0xb8, 0xe9, 0x48, 0x07, 0x70, 0x09, 0x07, 0x8a, 0x33, 0xe1, 0x3e, - 0x5f, 0xb2, 0x3c, 0x80, 0x3b, 0x6e, 0x8c, 0x87, 0xb9, 0xf9, 0xab, 0x01, 0x87, 0x9b, 0xf6, 0x34, - 0x5c, 0x8e, 0xa0, 0xe6, 0x07, 0x3c, 0x5c, 0xa9, 0x84, 0x1a, 0x58, 0x53, 0x08, 0x41, 0xe5, 0xbd, - 0x1f, 0x72, 0xdd, 0x0f, 0xb9, 0x96, 0xbc, 0x05, 0x49, 0x64, 0x2f, 0x04, 0x6f, 0x41, 0x24, 0x2a, - 0x32, 0xe2, 0x33, 0x9a, 0x58, 0x15, 0x59, 0x10, 0x4d, 0x89, 0x42, 0x07, 0x74, 0x99, 0x70, 0x59, - 0xe8, 0x3d, 0xac, 0x08, 0x7b, 0x0f, 0x5a, 0x6e, 0x18, 0x13, 0x9d, 0x8d, 0x6d, 0xc3, 0xae, 0x22, - 0x75, 0x30, 0x08, 0x2a, 0x12, 0x60, 0x86, 0x72, 0x20, 0xe1, 0xf5, 0xaf, 0x12, 0xb4, 0xc6, 0x61, - 0x32, 0xcf, 0x2b, 0x70, 0x0c, 0xad, 0x19, 0x61, 0x3c, 0x4c, 0x7c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5, 0xff, 0x00, - 0x00, 0x00, 0xff, 0xff, 0x20, 0x36, 0x19, 0xc2, 0xf8, 0x0e, 0x00, 0x00, -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// SystemClient is the client API for System service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type SystemClient interface { - // Ping executes the ping command on the target and streams back - // the results. Some targets may not stream any results until all - // results are in. If a packet count is not explicitly provided, - // 5 is used. - Ping(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (System_PingClient, error) - // Traceroute executes the traceroute command on the target and streams back - // the results. Some targets may not stream any results until all - // results are in. If a hop count is not explicitly provided, - // 30 is used. - Traceroute(ctx context.Context, in *TracerouteRequest, opts ...grpc.CallOption) (System_TracerouteClient, error) - // Time returns the current time on the target. Time is typically used to - // test if a target is actually responding. - Time(ctx context.Context, in *TimeRequest, opts ...grpc.CallOption) (*TimeResponse, error) - // SetPackage places a software package (possibly including bootable images) - // on the target. The file is sent in sequential messages, each message - // up to 64KB of data. A final message must be sent that includes the hash - // of the data sent. An error is returned if the location does not exist or - // there is an error writing the data. If no checksum is received, the target - // must assume the operation is incomplete and remove the partially - // transmitted file. The target should initially write the file to a temporary - // location so a failure does not destroy the original file. - SetPackage(ctx context.Context, opts ...grpc.CallOption) (System_SetPackageClient, error) - // SwitchControlProcessor will switch from the current route processor to the - // provided route processor. If the current route processor is the same as the - // one provided it is a NOOP. If the target does not exist an error is - // returned. - SwitchControlProcessor(ctx context.Context, in *SwitchControlProcessorRequest, opts ...grpc.CallOption) (*SwitchControlProcessorResponse, error) - // Reboot causes the target to reboot, possibly at some point in the future. - // If the method of reboot is not supported then the Reboot RPC will fail. - // If the reboot is immediate the command will block until the subcomponents - // have restarted. - // If a reboot on the active control processor is pending the service must - // reject all other reboot requests. - // If a reboot request for active control processor is initiated with other - // pending reboot requests it must be rejected. - Reboot(ctx context.Context, in *RebootRequest, opts ...grpc.CallOption) (*RebootResponse, error) - // RebootStatus returns the status of reboot for the target. - RebootStatus(ctx context.Context, in *RebootStatusRequest, opts ...grpc.CallOption) (*RebootStatusResponse, error) - // CancelReboot cancels any pending reboot request. - CancelReboot(ctx context.Context, in *CancelRebootRequest, opts ...grpc.CallOption) (*CancelRebootResponse, error) -} - -type systemClient struct { - cc *grpc.ClientConn -} - -func NewSystemClient(cc *grpc.ClientConn) SystemClient { - return &systemClient{cc} -} - -func (c *systemClient) Ping(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (System_PingClient, error) { - stream, err := c.cc.NewStream(ctx, &_System_serviceDesc.Streams[0], "/gnoi.system.System/Ping", opts...) - if err != nil { - return nil, err - } - x := &systemPingClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type System_PingClient interface { - Recv() (*PingResponse, error) - grpc.ClientStream -} - -type systemPingClient struct { - grpc.ClientStream -} - -func (x *systemPingClient) Recv() (*PingResponse, error) { - m := new(PingResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *systemClient) Traceroute(ctx context.Context, in *TracerouteRequest, opts ...grpc.CallOption) (System_TracerouteClient, error) { - stream, err := c.cc.NewStream(ctx, &_System_serviceDesc.Streams[1], "/gnoi.system.System/Traceroute", opts...) - if err != nil { - return nil, err - } - x := &systemTracerouteClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type System_TracerouteClient interface { - Recv() (*TracerouteResponse, error) - grpc.ClientStream -} - -type systemTracerouteClient struct { - grpc.ClientStream -} - -func (x *systemTracerouteClient) Recv() (*TracerouteResponse, error) { - m := new(TracerouteResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *systemClient) Time(ctx context.Context, in *TimeRequest, opts ...grpc.CallOption) (*TimeResponse, error) { - out := new(TimeResponse) - err := c.cc.Invoke(ctx, "/gnoi.system.System/Time", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *systemClient) SetPackage(ctx context.Context, opts ...grpc.CallOption) (System_SetPackageClient, error) { - stream, err := c.cc.NewStream(ctx, &_System_serviceDesc.Streams[2], "/gnoi.system.System/SetPackage", opts...) - if err != nil { - return nil, err - } - x := &systemSetPackageClient{stream} - return x, nil -} - -type System_SetPackageClient interface { - Send(*SetPackageRequest) error - CloseAndRecv() (*SetPackageResponse, error) - grpc.ClientStream -} - -type systemSetPackageClient struct { - grpc.ClientStream -} - -func (x *systemSetPackageClient) Send(m *SetPackageRequest) error { - return x.ClientStream.SendMsg(m) -} - -func (x *systemSetPackageClient) CloseAndRecv() (*SetPackageResponse, error) { - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - m := new(SetPackageResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *systemClient) SwitchControlProcessor(ctx context.Context, in *SwitchControlProcessorRequest, opts ...grpc.CallOption) (*SwitchControlProcessorResponse, error) { - out := new(SwitchControlProcessorResponse) - err := c.cc.Invoke(ctx, "/gnoi.system.System/SwitchControlProcessor", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *systemClient) Reboot(ctx context.Context, in *RebootRequest, opts ...grpc.CallOption) (*RebootResponse, error) { - out := new(RebootResponse) - err := c.cc.Invoke(ctx, "/gnoi.system.System/Reboot", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *systemClient) RebootStatus(ctx context.Context, in *RebootStatusRequest, opts ...grpc.CallOption) (*RebootStatusResponse, error) { - out := new(RebootStatusResponse) - err := c.cc.Invoke(ctx, "/gnoi.system.System/RebootStatus", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +type isSetPackageRequest_Request interface { + isSetPackageRequest_Request() } -func (c *systemClient) CancelReboot(ctx context.Context, in *CancelRebootRequest, opts ...grpc.CallOption) (*CancelRebootResponse, error) { - out := new(CancelRebootResponse) - err := c.cc.Invoke(ctx, "/gnoi.system.System/CancelReboot", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +type SetPackageRequest_Package struct { + Package *Package `protobuf:"bytes,1,opt,name=package,proto3,oneof"` } -// SystemServer is the server API for System service. -type SystemServer interface { - // Ping executes the ping command on the target and streams back - // the results. Some targets may not stream any results until all - // results are in. If a packet count is not explicitly provided, - // 5 is used. - Ping(*PingRequest, System_PingServer) error - // Traceroute executes the traceroute command on the target and streams back - // the results. Some targets may not stream any results until all - // results are in. If a hop count is not explicitly provided, - // 30 is used. - Traceroute(*TracerouteRequest, System_TracerouteServer) error - // Time returns the current time on the target. Time is typically used to - // test if a target is actually responding. - Time(context.Context, *TimeRequest) (*TimeResponse, error) - // SetPackage places a software package (possibly including bootable images) - // on the target. The file is sent in sequential messages, each message - // up to 64KB of data. A final message must be sent that includes the hash - // of the data sent. An error is returned if the location does not exist or - // there is an error writing the data. If no checksum is received, the target - // must assume the operation is incomplete and remove the partially - // transmitted file. The target should initially write the file to a temporary - // location so a failure does not destroy the original file. - SetPackage(System_SetPackageServer) error - // SwitchControlProcessor will switch from the current route processor to the - // provided route processor. If the current route processor is the same as the - // one provided it is a NOOP. If the target does not exist an error is - // returned. - SwitchControlProcessor(context.Context, *SwitchControlProcessorRequest) (*SwitchControlProcessorResponse, error) - // Reboot causes the target to reboot, possibly at some point in the future. - // If the method of reboot is not supported then the Reboot RPC will fail. - // If the reboot is immediate the command will block until the subcomponents - // have restarted. - // If a reboot on the active control processor is pending the service must - // reject all other reboot requests. - // If a reboot request for active control processor is initiated with other - // pending reboot requests it must be rejected. - Reboot(context.Context, *RebootRequest) (*RebootResponse, error) - // RebootStatus returns the status of reboot for the target. - RebootStatus(context.Context, *RebootStatusRequest) (*RebootStatusResponse, error) - // CancelReboot cancels any pending reboot request. - CancelReboot(context.Context, *CancelRebootRequest) (*CancelRebootResponse, error) +type SetPackageRequest_Contents struct { + Contents []byte `protobuf:"bytes,2,opt,name=contents,proto3,oneof"` } -func RegisterSystemServer(s *grpc.Server, srv SystemServer) { - s.RegisterService(&_System_serviceDesc, srv) +type SetPackageRequest_Hash struct { + Hash *types.HashType `protobuf:"bytes,3,opt,name=hash,proto3,oneof"` // Verification hash of data. } -func _System_Ping_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(PingRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(SystemServer).Ping(m, &systemPingServer{stream}) -} +func (*SetPackageRequest_Package) isSetPackageRequest_Request() {} -type System_PingServer interface { - Send(*PingResponse) error - grpc.ServerStream -} +func (*SetPackageRequest_Contents) isSetPackageRequest_Request() {} -type systemPingServer struct { - grpc.ServerStream -} +func (*SetPackageRequest_Hash) isSetPackageRequest_Request() {} -func (x *systemPingServer) Send(m *PingResponse) error { - return x.ServerStream.SendMsg(m) +type SetPackageResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func _System_Traceroute_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(TracerouteRequest) - if err := stream.RecvMsg(m); err != nil { - return err +func (x *SetPackageResponse) Reset() { + *x = SetPackageResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_system_system_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return srv.(SystemServer).Traceroute(m, &systemTracerouteServer{stream}) -} - -type System_TracerouteServer interface { - Send(*TracerouteResponse) error - grpc.ServerStream -} - -type systemTracerouteServer struct { - grpc.ServerStream } -func (x *systemTracerouteServer) Send(m *TracerouteResponse) error { - return x.ServerStream.SendMsg(m) +func (x *SetPackageResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func _System_Time_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TimeRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(SystemServer).Time(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.system.System/Time", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(SystemServer).Time(ctx, req.(*TimeRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _System_SetPackage_Handler(srv interface{}, stream grpc.ServerStream) error { - return srv.(SystemServer).SetPackage(&systemSetPackageServer{stream}) -} +func (*SetPackageResponse) ProtoMessage() {} -type System_SetPackageServer interface { - SendAndClose(*SetPackageResponse) error - Recv() (*SetPackageRequest, error) - grpc.ServerStream -} - -type systemSetPackageServer struct { - grpc.ServerStream -} - -func (x *systemSetPackageServer) SendAndClose(m *SetPackageResponse) error { - return x.ServerStream.SendMsg(m) -} - -func (x *systemSetPackageServer) Recv() (*SetPackageRequest, error) { - m := new(SetPackageRequest) - if err := x.ServerStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func _System_SwitchControlProcessor_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SwitchControlProcessorRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(SystemServer).SwitchControlProcessor(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.system.System/SwitchControlProcessor", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(SystemServer).SwitchControlProcessor(ctx, req.(*SwitchControlProcessorRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _System_Reboot_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RebootRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(SystemServer).Reboot(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.system.System/Reboot", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(SystemServer).Reboot(ctx, req.(*RebootRequest)) +func (x *SetPackageResponse) ProtoReflect() protoreflect.Message { + mi := &file_system_system_proto_msgTypes[16] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return interceptor(ctx, in, info, handler) + return mi.MessageOf(x) } -func _System_RebootStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RebootStatusRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(SystemServer).RebootStatus(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.system.System/RebootStatus", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(SystemServer).RebootStatus(ctx, req.(*RebootStatusRequest)) - } - return interceptor(ctx, in, info, handler) -} +// Deprecated: Use SetPackageResponse.ProtoReflect.Descriptor instead. +func (*SetPackageResponse) Descriptor() ([]byte, []int) { + return file_system_system_proto_rawDescGZIP(), []int{16} +} + +var File_system_system_proto protoreflect.FileDescriptor + +var file_system_system_proto_rawDesc = []byte{ + 0x0a, 0x13, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2f, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0b, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, 0x73, 0x74, + 0x65, 0x6d, 0x1a, 0x2e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, + 0x70, 0x65, 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x67, 0x6e, 0x6f, 0x69, 0x2f, 0x63, + 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x1a, 0x2c, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, + 0x70, 0x65, 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x67, 0x6e, 0x6f, 0x69, 0x2f, 0x74, + 0x79, 0x70, 0x65, 0x73, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x22, 0x5e, 0x0a, 0x1d, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, + 0x6c, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x3d, 0x0a, 0x11, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x5f, 0x70, 0x72, 0x6f, + 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x67, + 0x6e, 0x6f, 0x69, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x50, 0x61, 0x74, 0x68, 0x52, 0x10, + 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, + 0x22, 0x91, 0x01, 0x0a, 0x1e, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x43, 0x6f, 0x6e, 0x74, 0x72, + 0x6f, 0x6c, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x3d, 0x0a, 0x11, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x5f, 0x70, + 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, + 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x50, 0x61, 0x74, 0x68, + 0x52, 0x10, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, + 0x6f, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, + 0x75, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x70, + 0x74, 0x69, 0x6d, 0x65, 0x22, 0xc0, 0x01, 0x0a, 0x0d, 0x52, 0x65, 0x62, 0x6f, 0x6f, 0x74, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, + 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x52, 0x65, 0x62, 0x6f, 0x6f, 0x74, 0x4d, 0x65, 0x74, 0x68, 0x6f, + 0x64, 0x52, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x64, 0x65, 0x6c, + 0x61, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x64, 0x65, 0x6c, 0x61, 0x79, 0x12, + 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x36, 0x0a, 0x0d, 0x73, 0x75, 0x62, + 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x10, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x50, 0x61, + 0x74, 0x68, 0x52, 0x0d, 0x73, 0x75, 0x62, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, + 0x73, 0x12, 0x14, 0x0a, 0x05, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, + 0x52, 0x05, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x22, 0x10, 0x0a, 0x0e, 0x52, 0x65, 0x62, 0x6f, 0x6f, + 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x67, 0x0a, 0x13, 0x43, 0x61, 0x6e, + 0x63, 0x65, 0x6c, 0x52, 0x65, 0x62, 0x6f, 0x6f, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x36, 0x0a, 0x0d, 0x73, 0x75, + 0x62, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x10, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x50, + 0x61, 0x74, 0x68, 0x52, 0x0d, 0x73, 0x75, 0x62, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, + 0x74, 0x73, 0x22, 0x16, 0x0a, 0x14, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x52, 0x65, 0x62, 0x6f, + 0x6f, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4d, 0x0a, 0x13, 0x52, 0x65, + 0x62, 0x6f, 0x6f, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x36, 0x0a, 0x0d, 0x73, 0x75, 0x62, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, + 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, + 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x50, 0x61, 0x74, 0x68, 0x52, 0x0d, 0x73, 0x75, 0x62, 0x63, + 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x22, 0x84, 0x01, 0x0a, 0x14, 0x52, 0x65, + 0x62, 0x6f, 0x6f, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x08, 0x52, 0x06, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x77, 0x61, + 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04, 0x77, 0x61, 0x69, 0x74, 0x12, 0x12, + 0x0a, 0x04, 0x77, 0x68, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04, 0x77, 0x68, + 0x65, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, + 0x75, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, + 0x22, 0x0d, 0x0a, 0x0b, 0x54, 0x69, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, + 0x22, 0x0a, 0x0c, 0x54, 0x69, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x12, 0x0a, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04, 0x74, + 0x69, 0x6d, 0x65, 0x22, 0xa7, 0x02, 0x0a, 0x0b, 0x50, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x14, 0x0a, + 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x63, 0x6f, + 0x75, 0x6e, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x12, + 0x12, 0x0a, 0x04, 0x77, 0x61, 0x69, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x77, + 0x61, 0x69, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, + 0x05, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x12, 0x26, 0x0a, 0x0f, 0x64, 0x6f, 0x5f, 0x6e, 0x6f, + 0x74, 0x5f, 0x66, 0x72, 0x61, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, + 0x52, 0x0d, 0x64, 0x6f, 0x4e, 0x6f, 0x74, 0x46, 0x72, 0x61, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x12, + 0x24, 0x0a, 0x0e, 0x64, 0x6f, 0x5f, 0x6e, 0x6f, 0x74, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, + 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x64, 0x6f, 0x4e, 0x6f, 0x74, 0x52, 0x65, + 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x12, 0x36, 0x0a, 0x0a, 0x6c, 0x33, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x63, 0x6f, 0x6c, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x67, 0x6e, 0x6f, 0x69, + 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x4c, 0x33, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, + 0x6c, 0x52, 0x0a, 0x6c, 0x33, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x22, 0x98, 0x02, + 0x0a, 0x0c, 0x50, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, + 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x65, + 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x73, 0x65, 0x6e, 0x74, 0x12, 0x1a, + 0x0a, 0x08, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, + 0x52, 0x08, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x6d, 0x69, + 0x6e, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x6d, 0x69, + 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x61, 0x76, 0x67, 0x5f, 0x74, 0x69, 0x6d, + 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x61, 0x76, 0x67, 0x54, 0x69, 0x6d, 0x65, + 0x12, 0x19, 0x0a, 0x08, 0x6d, 0x61, 0x78, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, + 0x28, 0x03, 0x52, 0x07, 0x6d, 0x61, 0x78, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x73, + 0x74, 0x64, 0x5f, 0x64, 0x65, 0x76, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x73, 0x74, + 0x64, 0x44, 0x65, 0x76, 0x12, 0x14, 0x0a, 0x05, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x0b, 0x20, + 0x01, 0x28, 0x05, 0x52, 0x05, 0x62, 0x79, 0x74, 0x65, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, + 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x73, 0x65, + 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x74, 0x6c, 0x18, 0x0d, 0x20, + 0x01, 0x28, 0x05, 0x52, 0x03, 0x74, 0x74, 0x6c, 0x22, 0x96, 0x03, 0x0a, 0x11, 0x54, 0x72, 0x61, + 0x63, 0x65, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, + 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, + 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1f, 0x0a, 0x0b, 0x69, 0x6e, 0x69, 0x74, + 0x69, 0x61, 0x6c, 0x5f, 0x74, 0x74, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x69, + 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x54, 0x74, 0x6c, 0x12, 0x17, 0x0a, 0x07, 0x6d, 0x61, 0x78, + 0x5f, 0x74, 0x74, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x6d, 0x61, 0x78, 0x54, + 0x74, 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x77, 0x61, 0x69, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, + 0x52, 0x04, 0x77, 0x61, 0x69, 0x74, 0x12, 0x26, 0x0a, 0x0f, 0x64, 0x6f, 0x5f, 0x6e, 0x6f, 0x74, + 0x5f, 0x66, 0x72, 0x61, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, + 0x0d, 0x64, 0x6f, 0x4e, 0x6f, 0x74, 0x46, 0x72, 0x61, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x24, + 0x0a, 0x0e, 0x64, 0x6f, 0x5f, 0x6e, 0x6f, 0x74, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, + 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x64, 0x6f, 0x4e, 0x6f, 0x74, 0x52, 0x65, 0x73, + 0x6f, 0x6c, 0x76, 0x65, 0x12, 0x36, 0x0a, 0x0a, 0x6c, 0x33, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, + 0x6f, 0x6c, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, + 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x4c, 0x33, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, + 0x52, 0x0a, 0x6c, 0x33, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x49, 0x0a, 0x0a, + 0x6c, 0x34, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0e, + 0x32, 0x29, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x54, + 0x72, 0x61, 0x63, 0x65, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x2e, 0x4c, 0x34, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x52, 0x0a, 0x6c, 0x34, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x22, 0x28, 0x0a, 0x0a, 0x4c, 0x34, 0x50, 0x72, 0x6f, + 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x08, 0x0a, 0x04, 0x49, 0x43, 0x4d, 0x50, 0x10, 0x00, 0x12, + 0x07, 0x0a, 0x03, 0x54, 0x43, 0x50, 0x10, 0x01, 0x12, 0x07, 0x0a, 0x03, 0x55, 0x44, 0x50, 0x10, + 0x02, 0x22, 0xd7, 0x05, 0x0a, 0x12, 0x54, 0x72, 0x61, 0x63, 0x65, 0x72, 0x6f, 0x75, 0x74, 0x65, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x29, 0x0a, 0x10, 0x64, 0x65, 0x73, 0x74, + 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0f, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4e, + 0x61, 0x6d, 0x65, 0x12, 0x2f, 0x0a, 0x13, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x12, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x41, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x6f, 0x70, 0x73, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x05, 0x52, 0x04, 0x68, 0x6f, 0x70, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x61, 0x63, 0x6b, + 0x65, 0x74, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x70, + 0x61, 0x63, 0x6b, 0x65, 0x74, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x68, 0x6f, 0x70, + 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x68, 0x6f, 0x70, 0x12, 0x18, 0x0a, 0x07, 0x61, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x07, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x72, 0x74, 0x74, + 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x72, 0x74, 0x74, 0x12, 0x3b, 0x0a, 0x05, 0x73, + 0x74, 0x61, 0x74, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x25, 0x2e, 0x67, 0x6e, 0x6f, + 0x69, 0x2e, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x54, 0x72, 0x61, 0x63, 0x65, 0x72, 0x6f, + 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x53, 0x74, 0x61, 0x74, + 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x69, 0x63, 0x6d, 0x70, + 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x69, 0x63, 0x6d, + 0x70, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x3d, 0x0a, 0x04, 0x6d, 0x70, 0x6c, 0x73, 0x18, 0x0b, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, 0x73, 0x74, 0x65, + 0x6d, 0x2e, 0x54, 0x72, 0x61, 0x63, 0x65, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x4d, 0x70, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x04, + 0x6d, 0x70, 0x6c, 0x73, 0x12, 0x17, 0x0a, 0x07, 0x61, 0x73, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, + 0x0c, 0x20, 0x03, 0x28, 0x05, 0x52, 0x06, 0x61, 0x73, 0x50, 0x61, 0x74, 0x68, 0x1a, 0x37, 0x0a, + 0x09, 0x4d, 0x70, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, + 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xf2, 0x01, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x65, + 0x12, 0x0b, 0x0a, 0x07, 0x44, 0x45, 0x46, 0x41, 0x55, 0x4c, 0x54, 0x10, 0x00, 0x12, 0x08, 0x0a, + 0x04, 0x4e, 0x4f, 0x4e, 0x45, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, + 0x57, 0x4e, 0x10, 0x02, 0x12, 0x08, 0x0a, 0x04, 0x49, 0x43, 0x4d, 0x50, 0x10, 0x03, 0x12, 0x14, + 0x0a, 0x10, 0x48, 0x4f, 0x53, 0x54, 0x5f, 0x55, 0x4e, 0x52, 0x45, 0x41, 0x43, 0x48, 0x41, 0x42, + 0x4c, 0x45, 0x10, 0x04, 0x12, 0x17, 0x0a, 0x13, 0x4e, 0x45, 0x54, 0x57, 0x4f, 0x52, 0x4b, 0x5f, + 0x55, 0x4e, 0x52, 0x45, 0x41, 0x43, 0x48, 0x41, 0x42, 0x4c, 0x45, 0x10, 0x05, 0x12, 0x18, 0x0a, + 0x14, 0x50, 0x52, 0x4f, 0x54, 0x4f, 0x43, 0x4f, 0x4c, 0x5f, 0x55, 0x4e, 0x52, 0x45, 0x41, 0x43, + 0x48, 0x41, 0x42, 0x4c, 0x45, 0x10, 0x06, 0x12, 0x17, 0x0a, 0x13, 0x53, 0x4f, 0x55, 0x52, 0x43, + 0x45, 0x5f, 0x52, 0x4f, 0x55, 0x54, 0x45, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, 0x07, + 0x12, 0x18, 0x0a, 0x14, 0x46, 0x52, 0x41, 0x47, 0x4d, 0x45, 0x4e, 0x54, 0x41, 0x54, 0x49, 0x4f, + 0x4e, 0x5f, 0x4e, 0x45, 0x45, 0x44, 0x45, 0x44, 0x10, 0x08, 0x12, 0x0e, 0x0a, 0x0a, 0x50, 0x52, + 0x4f, 0x48, 0x49, 0x42, 0x49, 0x54, 0x45, 0x44, 0x10, 0x09, 0x12, 0x18, 0x0a, 0x14, 0x50, 0x52, + 0x45, 0x43, 0x45, 0x44, 0x45, 0x4e, 0x43, 0x45, 0x5f, 0x56, 0x49, 0x4f, 0x4c, 0x41, 0x54, 0x49, + 0x4f, 0x4e, 0x10, 0x0a, 0x12, 0x15, 0x0a, 0x11, 0x50, 0x52, 0x45, 0x43, 0x45, 0x44, 0x45, 0x4e, + 0x43, 0x45, 0x5f, 0x43, 0x55, 0x54, 0x4f, 0x46, 0x46, 0x10, 0x0b, 0x22, 0xa1, 0x01, 0x0a, 0x07, + 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x6e, + 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x6e, + 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1a, 0x0a, + 0x08, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, + 0x08, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x12, 0x44, 0x0a, 0x0f, 0x72, 0x65, 0x6d, + 0x6f, 0x74, 0x65, 0x5f, 0x64, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x06, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, + 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x52, + 0x0e, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x22, + 0x9a, 0x01, 0x0a, 0x11, 0x53, 0x65, 0x74, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x30, 0x0a, 0x07, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, + 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x48, 0x00, 0x52, 0x07, + 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x12, 0x1c, 0x0a, 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x65, + 0x6e, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x48, 0x00, 0x52, 0x08, 0x63, 0x6f, 0x6e, + 0x74, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x2a, 0x0a, 0x04, 0x68, 0x61, 0x73, 0x68, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, + 0x2e, 0x48, 0x61, 0x73, 0x68, 0x54, 0x79, 0x70, 0x65, 0x48, 0x00, 0x52, 0x04, 0x68, 0x61, 0x73, + 0x68, 0x42, 0x09, 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x14, 0x0a, 0x12, + 0x53, 0x65, 0x74, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x2a, 0x64, 0x0a, 0x0c, 0x52, 0x65, 0x62, 0x6f, 0x6f, 0x74, 0x4d, 0x65, 0x74, 0x68, + 0x6f, 0x64, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, + 0x08, 0x0a, 0x04, 0x43, 0x4f, 0x4c, 0x44, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x50, 0x4f, 0x57, + 0x45, 0x52, 0x44, 0x4f, 0x57, 0x4e, 0x10, 0x02, 0x12, 0x08, 0x0a, 0x04, 0x48, 0x41, 0x4c, 0x54, + 0x10, 0x03, 0x12, 0x08, 0x0a, 0x04, 0x57, 0x41, 0x52, 0x4d, 0x10, 0x04, 0x12, 0x07, 0x0a, 0x03, + 0x4e, 0x53, 0x46, 0x10, 0x05, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x4f, 0x57, 0x45, 0x52, 0x55, 0x50, + 0x10, 0x07, 0x22, 0x04, 0x08, 0x06, 0x10, 0x06, 0x32, 0x96, 0x05, 0x0a, 0x06, 0x53, 0x79, 0x73, + 0x74, 0x65, 0x6d, 0x12, 0x3f, 0x0a, 0x04, 0x50, 0x69, 0x6e, 0x67, 0x12, 0x18, 0x2e, 0x67, 0x6e, + 0x6f, 0x69, 0x2e, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x50, 0x69, 0x6e, 0x67, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, 0x73, + 0x74, 0x65, 0x6d, 0x2e, 0x50, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x00, 0x30, 0x01, 0x12, 0x51, 0x0a, 0x0a, 0x54, 0x72, 0x61, 0x63, 0x65, 0x72, 0x6f, 0x75, + 0x74, 0x65, 0x12, 0x1e, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, + 0x2e, 0x54, 0x72, 0x61, 0x63, 0x65, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, + 0x2e, 0x54, 0x72, 0x61, 0x63, 0x65, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x00, 0x30, 0x01, 0x12, 0x3d, 0x0a, 0x04, 0x54, 0x69, 0x6d, 0x65, 0x12, + 0x18, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x54, 0x69, + 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x67, 0x6e, 0x6f, 0x69, + 0x2e, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x51, 0x0a, 0x0a, 0x53, 0x65, 0x74, 0x50, 0x61, 0x63, + 0x6b, 0x61, 0x67, 0x65, 0x12, 0x1e, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, 0x73, 0x74, + 0x65, 0x6d, 0x2e, 0x53, 0x65, 0x74, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, 0x73, 0x74, + 0x65, 0x6d, 0x2e, 0x53, 0x65, 0x74, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x28, 0x01, 0x12, 0x73, 0x0a, 0x16, 0x53, 0x77, 0x69, + 0x74, 0x63, 0x68, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, + 0x73, 0x6f, 0x72, 0x12, 0x2a, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, 0x73, 0x74, 0x65, + 0x6d, 0x2e, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x50, + 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x2b, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x53, 0x77, + 0x69, 0x74, 0x63, 0x68, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x50, 0x72, 0x6f, 0x63, 0x65, + 0x73, 0x73, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x43, + 0x0a, 0x06, 0x52, 0x65, 0x62, 0x6f, 0x6f, 0x74, 0x12, 0x1a, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, + 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x52, 0x65, 0x62, 0x6f, 0x6f, 0x74, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, 0x73, 0x74, + 0x65, 0x6d, 0x2e, 0x52, 0x65, 0x62, 0x6f, 0x6f, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x00, 0x12, 0x55, 0x0a, 0x0c, 0x52, 0x65, 0x62, 0x6f, 0x6f, 0x74, 0x53, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x12, 0x20, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, 0x73, 0x74, 0x65, + 0x6d, 0x2e, 0x52, 0x65, 0x62, 0x6f, 0x6f, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, 0x73, + 0x74, 0x65, 0x6d, 0x2e, 0x52, 0x65, 0x62, 0x6f, 0x6f, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x55, 0x0a, 0x0c, 0x43, 0x61, + 0x6e, 0x63, 0x65, 0x6c, 0x52, 0x65, 0x62, 0x6f, 0x6f, 0x74, 0x12, 0x20, 0x2e, 0x67, 0x6e, 0x6f, + 0x69, 0x2e, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x52, + 0x65, 0x62, 0x6f, 0x6f, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x67, + 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x43, 0x61, 0x6e, 0x63, 0x65, + 0x6c, 0x52, 0x65, 0x62, 0x6f, 0x6f, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x00, 0x42, 0x2b, 0x5a, 0x21, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, + 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x67, 0x6e, 0x6f, 0x69, 0x2f, + 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0xd2, 0x3e, 0x05, 0x31, 0x2e, 0x30, 0x2e, 0x30, 0x62, 0x06, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_system_system_proto_rawDescOnce sync.Once + file_system_system_proto_rawDescData = file_system_system_proto_rawDesc +) -func _System_CancelReboot_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CancelRebootRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(SystemServer).CancelReboot(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.system.System/CancelReboot", +func file_system_system_proto_rawDescGZIP() []byte { + file_system_system_proto_rawDescOnce.Do(func() { + file_system_system_proto_rawDescData = protoimpl.X.CompressGZIP(file_system_system_proto_rawDescData) + }) + return file_system_system_proto_rawDescData +} + +var file_system_system_proto_enumTypes = make([]protoimpl.EnumInfo, 3) +var file_system_system_proto_msgTypes = make([]protoimpl.MessageInfo, 18) +var file_system_system_proto_goTypes = []interface{}{ + (RebootMethod)(0), // 0: gnoi.system.RebootMethod + (TracerouteRequest_L4Protocol)(0), // 1: gnoi.system.TracerouteRequest.L4Protocol + (TracerouteResponse_State)(0), // 2: gnoi.system.TracerouteResponse.State + (*SwitchControlProcessorRequest)(nil), // 3: gnoi.system.SwitchControlProcessorRequest + (*SwitchControlProcessorResponse)(nil), // 4: gnoi.system.SwitchControlProcessorResponse + (*RebootRequest)(nil), // 5: gnoi.system.RebootRequest + (*RebootResponse)(nil), // 6: gnoi.system.RebootResponse + (*CancelRebootRequest)(nil), // 7: gnoi.system.CancelRebootRequest + (*CancelRebootResponse)(nil), // 8: gnoi.system.CancelRebootResponse + (*RebootStatusRequest)(nil), // 9: gnoi.system.RebootStatusRequest + (*RebootStatusResponse)(nil), // 10: gnoi.system.RebootStatusResponse + (*TimeRequest)(nil), // 11: gnoi.system.TimeRequest + (*TimeResponse)(nil), // 12: gnoi.system.TimeResponse + (*PingRequest)(nil), // 13: gnoi.system.PingRequest + (*PingResponse)(nil), // 14: gnoi.system.PingResponse + (*TracerouteRequest)(nil), // 15: gnoi.system.TracerouteRequest + (*TracerouteResponse)(nil), // 16: gnoi.system.TracerouteResponse + (*Package)(nil), // 17: gnoi.system.Package + (*SetPackageRequest)(nil), // 18: gnoi.system.SetPackageRequest + (*SetPackageResponse)(nil), // 19: gnoi.system.SetPackageResponse + nil, // 20: gnoi.system.TracerouteResponse.MplsEntry + (*types.Path)(nil), // 21: gnoi.types.Path + (types.L3Protocol)(0), // 22: gnoi.types.L3Protocol + (*common.RemoteDownload)(nil), // 23: gnoi.common.RemoteDownload + (*types.HashType)(nil), // 24: gnoi.types.HashType +} +var file_system_system_proto_depIdxs = []int32{ + 21, // 0: gnoi.system.SwitchControlProcessorRequest.control_processor:type_name -> gnoi.types.Path + 21, // 1: gnoi.system.SwitchControlProcessorResponse.control_processor:type_name -> gnoi.types.Path + 0, // 2: gnoi.system.RebootRequest.method:type_name -> gnoi.system.RebootMethod + 21, // 3: gnoi.system.RebootRequest.subcomponents:type_name -> gnoi.types.Path + 21, // 4: gnoi.system.CancelRebootRequest.subcomponents:type_name -> gnoi.types.Path + 21, // 5: gnoi.system.RebootStatusRequest.subcomponents:type_name -> gnoi.types.Path + 22, // 6: gnoi.system.PingRequest.l3protocol:type_name -> gnoi.types.L3Protocol + 22, // 7: gnoi.system.TracerouteRequest.l3protocol:type_name -> gnoi.types.L3Protocol + 1, // 8: gnoi.system.TracerouteRequest.l4protocol:type_name -> gnoi.system.TracerouteRequest.L4Protocol + 2, // 9: gnoi.system.TracerouteResponse.state:type_name -> gnoi.system.TracerouteResponse.State + 20, // 10: gnoi.system.TracerouteResponse.mpls:type_name -> gnoi.system.TracerouteResponse.MplsEntry + 23, // 11: gnoi.system.Package.remote_download:type_name -> gnoi.common.RemoteDownload + 17, // 12: gnoi.system.SetPackageRequest.package:type_name -> gnoi.system.Package + 24, // 13: gnoi.system.SetPackageRequest.hash:type_name -> gnoi.types.HashType + 13, // 14: gnoi.system.System.Ping:input_type -> gnoi.system.PingRequest + 15, // 15: gnoi.system.System.Traceroute:input_type -> gnoi.system.TracerouteRequest + 11, // 16: gnoi.system.System.Time:input_type -> gnoi.system.TimeRequest + 18, // 17: gnoi.system.System.SetPackage:input_type -> gnoi.system.SetPackageRequest + 3, // 18: gnoi.system.System.SwitchControlProcessor:input_type -> gnoi.system.SwitchControlProcessorRequest + 5, // 19: gnoi.system.System.Reboot:input_type -> gnoi.system.RebootRequest + 9, // 20: gnoi.system.System.RebootStatus:input_type -> gnoi.system.RebootStatusRequest + 7, // 21: gnoi.system.System.CancelReboot:input_type -> gnoi.system.CancelRebootRequest + 14, // 22: gnoi.system.System.Ping:output_type -> gnoi.system.PingResponse + 16, // 23: gnoi.system.System.Traceroute:output_type -> gnoi.system.TracerouteResponse + 12, // 24: gnoi.system.System.Time:output_type -> gnoi.system.TimeResponse + 19, // 25: gnoi.system.System.SetPackage:output_type -> gnoi.system.SetPackageResponse + 4, // 26: gnoi.system.System.SwitchControlProcessor:output_type -> gnoi.system.SwitchControlProcessorResponse + 6, // 27: gnoi.system.System.Reboot:output_type -> gnoi.system.RebootResponse + 10, // 28: gnoi.system.System.RebootStatus:output_type -> gnoi.system.RebootStatusResponse + 8, // 29: gnoi.system.System.CancelReboot:output_type -> gnoi.system.CancelRebootResponse + 22, // [22:30] is the sub-list for method output_type + 14, // [14:22] is the sub-list for method input_type + 14, // [14:14] is the sub-list for extension type_name + 14, // [14:14] is the sub-list for extension extendee + 0, // [0:14] is the sub-list for field type_name +} + +func init() { file_system_system_proto_init() } +func file_system_system_proto_init() { + if File_system_system_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_system_system_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SwitchControlProcessorRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_system_system_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SwitchControlProcessorResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_system_system_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RebootRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_system_system_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RebootResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_system_system_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CancelRebootRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_system_system_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CancelRebootResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_system_system_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RebootStatusRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_system_system_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RebootStatusResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_system_system_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TimeRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_system_system_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TimeResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_system_system_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PingRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_system_system_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PingResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_system_system_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TracerouteRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_system_system_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TracerouteResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_system_system_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Package); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_system_system_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SetPackageRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_system_system_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SetPackageResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(SystemServer).CancelReboot(ctx, req.(*CancelRebootRequest)) + file_system_system_proto_msgTypes[15].OneofWrappers = []interface{}{ + (*SetPackageRequest_Package)(nil), + (*SetPackageRequest_Contents)(nil), + (*SetPackageRequest_Hash)(nil), } - return interceptor(ctx, in, info, handler) -} - -var _System_serviceDesc = grpc.ServiceDesc{ - ServiceName: "gnoi.system.System", - HandlerType: (*SystemServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "Time", - Handler: _System_Time_Handler, - }, - { - MethodName: "SwitchControlProcessor", - Handler: _System_SwitchControlProcessor_Handler, - }, - { - MethodName: "Reboot", - Handler: _System_Reboot_Handler, - }, - { - MethodName: "RebootStatus", - Handler: _System_RebootStatus_Handler, - }, - { - MethodName: "CancelReboot", - Handler: _System_CancelReboot_Handler, - }, - }, - Streams: []grpc.StreamDesc{ - { - StreamName: "Ping", - Handler: _System_Ping_Handler, - ServerStreams: true, - }, - { - StreamName: "Traceroute", - Handler: _System_Traceroute_Handler, - ServerStreams: true, - }, - { - StreamName: "SetPackage", - Handler: _System_SetPackage_Handler, - ClientStreams: true, + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_system_system_proto_rawDesc, + NumEnums: 3, + NumMessages: 18, + NumExtensions: 0, + NumServices: 1, }, - }, - Metadata: "system/system.proto", + GoTypes: file_system_system_proto_goTypes, + DependencyIndexes: file_system_system_proto_depIdxs, + EnumInfos: file_system_system_proto_enumTypes, + MessageInfos: file_system_system_proto_msgTypes, + }.Build() + File_system_system_proto = out.File + file_system_system_proto_rawDesc = nil + file_system_system_proto_goTypes = nil + file_system_system_proto_depIdxs = nil } diff --git a/system/system.proto b/system/system.proto index 143c0111..e2e6ca91 100644 --- a/system/system.proto +++ b/system/system.proto @@ -27,6 +27,8 @@ package gnoi.system; import "github.com/openconfig/gnoi/common/common.proto"; import "github.com/openconfig/gnoi/types/types.proto"; +option go_package = "github.com/openconfig/gnoi/system"; + option (types.gnoi_version) = "1.0.0"; // The gNOI service is a collection of operational RPC's that allow for the diff --git a/system/system_grpc.pb.go b/system/system_grpc.pb.go new file mode 100644 index 00000000..91d347b7 --- /dev/null +++ b/system/system_grpc.pb.go @@ -0,0 +1,506 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. + +package system + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.32.0 or later. +const _ = grpc.SupportPackageIsVersion7 + +// SystemClient is the client API for System service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type SystemClient interface { + // Ping executes the ping command on the target and streams back + // the results. Some targets may not stream any results until all + // results are in. If a packet count is not explicitly provided, + // 5 is used. + Ping(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (System_PingClient, error) + // Traceroute executes the traceroute command on the target and streams back + // the results. Some targets may not stream any results until all + // results are in. If a hop count is not explicitly provided, + // 30 is used. + Traceroute(ctx context.Context, in *TracerouteRequest, opts ...grpc.CallOption) (System_TracerouteClient, error) + // Time returns the current time on the target. Time is typically used to + // test if a target is actually responding. + Time(ctx context.Context, in *TimeRequest, opts ...grpc.CallOption) (*TimeResponse, error) + // SetPackage places a software package (possibly including bootable images) + // on the target. The file is sent in sequential messages, each message + // up to 64KB of data. A final message must be sent that includes the hash + // of the data sent. An error is returned if the location does not exist or + // there is an error writing the data. If no checksum is received, the target + // must assume the operation is incomplete and remove the partially + // transmitted file. The target should initially write the file to a temporary + // location so a failure does not destroy the original file. + SetPackage(ctx context.Context, opts ...grpc.CallOption) (System_SetPackageClient, error) + // SwitchControlProcessor will switch from the current route processor to the + // provided route processor. If the current route processor is the same as the + // one provided it is a NOOP. If the target does not exist an error is + // returned. + SwitchControlProcessor(ctx context.Context, in *SwitchControlProcessorRequest, opts ...grpc.CallOption) (*SwitchControlProcessorResponse, error) + // Reboot causes the target to reboot, possibly at some point in the future. + // If the method of reboot is not supported then the Reboot RPC will fail. + // If the reboot is immediate the command will block until the subcomponents + // have restarted. + // If a reboot on the active control processor is pending the service must + // reject all other reboot requests. + // If a reboot request for active control processor is initiated with other + // pending reboot requests it must be rejected. + Reboot(ctx context.Context, in *RebootRequest, opts ...grpc.CallOption) (*RebootResponse, error) + // RebootStatus returns the status of reboot for the target. + RebootStatus(ctx context.Context, in *RebootStatusRequest, opts ...grpc.CallOption) (*RebootStatusResponse, error) + // CancelReboot cancels any pending reboot request. + CancelReboot(ctx context.Context, in *CancelRebootRequest, opts ...grpc.CallOption) (*CancelRebootResponse, error) +} + +type systemClient struct { + cc grpc.ClientConnInterface +} + +func NewSystemClient(cc grpc.ClientConnInterface) SystemClient { + return &systemClient{cc} +} + +func (c *systemClient) Ping(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (System_PingClient, error) { + stream, err := c.cc.NewStream(ctx, &System_ServiceDesc.Streams[0], "/gnoi.system.System/Ping", opts...) + if err != nil { + return nil, err + } + x := &systemPingClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type System_PingClient interface { + Recv() (*PingResponse, error) + grpc.ClientStream +} + +type systemPingClient struct { + grpc.ClientStream +} + +func (x *systemPingClient) Recv() (*PingResponse, error) { + m := new(PingResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *systemClient) Traceroute(ctx context.Context, in *TracerouteRequest, opts ...grpc.CallOption) (System_TracerouteClient, error) { + stream, err := c.cc.NewStream(ctx, &System_ServiceDesc.Streams[1], "/gnoi.system.System/Traceroute", opts...) + if err != nil { + return nil, err + } + x := &systemTracerouteClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type System_TracerouteClient interface { + Recv() (*TracerouteResponse, error) + grpc.ClientStream +} + +type systemTracerouteClient struct { + grpc.ClientStream +} + +func (x *systemTracerouteClient) Recv() (*TracerouteResponse, error) { + m := new(TracerouteResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *systemClient) Time(ctx context.Context, in *TimeRequest, opts ...grpc.CallOption) (*TimeResponse, error) { + out := new(TimeResponse) + err := c.cc.Invoke(ctx, "/gnoi.system.System/Time", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *systemClient) SetPackage(ctx context.Context, opts ...grpc.CallOption) (System_SetPackageClient, error) { + stream, err := c.cc.NewStream(ctx, &System_ServiceDesc.Streams[2], "/gnoi.system.System/SetPackage", opts...) + if err != nil { + return nil, err + } + x := &systemSetPackageClient{stream} + return x, nil +} + +type System_SetPackageClient interface { + Send(*SetPackageRequest) error + CloseAndRecv() (*SetPackageResponse, error) + grpc.ClientStream +} + +type systemSetPackageClient struct { + grpc.ClientStream +} + +func (x *systemSetPackageClient) Send(m *SetPackageRequest) error { + return x.ClientStream.SendMsg(m) +} + +func (x *systemSetPackageClient) CloseAndRecv() (*SetPackageResponse, error) { + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + m := new(SetPackageResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *systemClient) SwitchControlProcessor(ctx context.Context, in *SwitchControlProcessorRequest, opts ...grpc.CallOption) (*SwitchControlProcessorResponse, error) { + out := new(SwitchControlProcessorResponse) + err := c.cc.Invoke(ctx, "/gnoi.system.System/SwitchControlProcessor", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *systemClient) Reboot(ctx context.Context, in *RebootRequest, opts ...grpc.CallOption) (*RebootResponse, error) { + out := new(RebootResponse) + err := c.cc.Invoke(ctx, "/gnoi.system.System/Reboot", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *systemClient) RebootStatus(ctx context.Context, in *RebootStatusRequest, opts ...grpc.CallOption) (*RebootStatusResponse, error) { + out := new(RebootStatusResponse) + err := c.cc.Invoke(ctx, "/gnoi.system.System/RebootStatus", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *systemClient) CancelReboot(ctx context.Context, in *CancelRebootRequest, opts ...grpc.CallOption) (*CancelRebootResponse, error) { + out := new(CancelRebootResponse) + err := c.cc.Invoke(ctx, "/gnoi.system.System/CancelReboot", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// SystemServer is the server API for System service. +// All implementations must embed UnimplementedSystemServer +// for forward compatibility +type SystemServer interface { + // Ping executes the ping command on the target and streams back + // the results. Some targets may not stream any results until all + // results are in. If a packet count is not explicitly provided, + // 5 is used. + Ping(*PingRequest, System_PingServer) error + // Traceroute executes the traceroute command on the target and streams back + // the results. Some targets may not stream any results until all + // results are in. If a hop count is not explicitly provided, + // 30 is used. + Traceroute(*TracerouteRequest, System_TracerouteServer) error + // Time returns the current time on the target. Time is typically used to + // test if a target is actually responding. + Time(context.Context, *TimeRequest) (*TimeResponse, error) + // SetPackage places a software package (possibly including bootable images) + // on the target. The file is sent in sequential messages, each message + // up to 64KB of data. A final message must be sent that includes the hash + // of the data sent. An error is returned if the location does not exist or + // there is an error writing the data. If no checksum is received, the target + // must assume the operation is incomplete and remove the partially + // transmitted file. The target should initially write the file to a temporary + // location so a failure does not destroy the original file. + SetPackage(System_SetPackageServer) error + // SwitchControlProcessor will switch from the current route processor to the + // provided route processor. If the current route processor is the same as the + // one provided it is a NOOP. If the target does not exist an error is + // returned. + SwitchControlProcessor(context.Context, *SwitchControlProcessorRequest) (*SwitchControlProcessorResponse, error) + // Reboot causes the target to reboot, possibly at some point in the future. + // If the method of reboot is not supported then the Reboot RPC will fail. + // If the reboot is immediate the command will block until the subcomponents + // have restarted. + // If a reboot on the active control processor is pending the service must + // reject all other reboot requests. + // If a reboot request for active control processor is initiated with other + // pending reboot requests it must be rejected. + Reboot(context.Context, *RebootRequest) (*RebootResponse, error) + // RebootStatus returns the status of reboot for the target. + RebootStatus(context.Context, *RebootStatusRequest) (*RebootStatusResponse, error) + // CancelReboot cancels any pending reboot request. + CancelReboot(context.Context, *CancelRebootRequest) (*CancelRebootResponse, error) + mustEmbedUnimplementedSystemServer() +} + +// UnimplementedSystemServer must be embedded to have forward compatible implementations. +type UnimplementedSystemServer struct { +} + +func (UnimplementedSystemServer) Ping(*PingRequest, System_PingServer) error { + return status.Errorf(codes.Unimplemented, "method Ping not implemented") +} +func (UnimplementedSystemServer) Traceroute(*TracerouteRequest, System_TracerouteServer) error { + return status.Errorf(codes.Unimplemented, "method Traceroute not implemented") +} +func (UnimplementedSystemServer) Time(context.Context, *TimeRequest) (*TimeResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Time not implemented") +} +func (UnimplementedSystemServer) SetPackage(System_SetPackageServer) error { + return status.Errorf(codes.Unimplemented, "method SetPackage not implemented") +} +func (UnimplementedSystemServer) SwitchControlProcessor(context.Context, *SwitchControlProcessorRequest) (*SwitchControlProcessorResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SwitchControlProcessor not implemented") +} +func (UnimplementedSystemServer) Reboot(context.Context, *RebootRequest) (*RebootResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Reboot not implemented") +} +func (UnimplementedSystemServer) RebootStatus(context.Context, *RebootStatusRequest) (*RebootStatusResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RebootStatus not implemented") +} +func (UnimplementedSystemServer) CancelReboot(context.Context, *CancelRebootRequest) (*CancelRebootResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CancelReboot not implemented") +} +func (UnimplementedSystemServer) mustEmbedUnimplementedSystemServer() {} + +// UnsafeSystemServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to SystemServer will +// result in compilation errors. +type UnsafeSystemServer interface { + mustEmbedUnimplementedSystemServer() +} + +func RegisterSystemServer(s grpc.ServiceRegistrar, srv SystemServer) { + s.RegisterService(&System_ServiceDesc, srv) +} + +func _System_Ping_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(PingRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(SystemServer).Ping(m, &systemPingServer{stream}) +} + +type System_PingServer interface { + Send(*PingResponse) error + grpc.ServerStream +} + +type systemPingServer struct { + grpc.ServerStream +} + +func (x *systemPingServer) Send(m *PingResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _System_Traceroute_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(TracerouteRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(SystemServer).Traceroute(m, &systemTracerouteServer{stream}) +} + +type System_TracerouteServer interface { + Send(*TracerouteResponse) error + grpc.ServerStream +} + +type systemTracerouteServer struct { + grpc.ServerStream +} + +func (x *systemTracerouteServer) Send(m *TracerouteResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _System_Time_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TimeRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SystemServer).Time(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gnoi.system.System/Time", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SystemServer).Time(ctx, req.(*TimeRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _System_SetPackage_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(SystemServer).SetPackage(&systemSetPackageServer{stream}) +} + +type System_SetPackageServer interface { + SendAndClose(*SetPackageResponse) error + Recv() (*SetPackageRequest, error) + grpc.ServerStream +} + +type systemSetPackageServer struct { + grpc.ServerStream +} + +func (x *systemSetPackageServer) SendAndClose(m *SetPackageResponse) error { + return x.ServerStream.SendMsg(m) +} + +func (x *systemSetPackageServer) Recv() (*SetPackageRequest, error) { + m := new(SetPackageRequest) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func _System_SwitchControlProcessor_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SwitchControlProcessorRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SystemServer).SwitchControlProcessor(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gnoi.system.System/SwitchControlProcessor", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SystemServer).SwitchControlProcessor(ctx, req.(*SwitchControlProcessorRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _System_Reboot_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RebootRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SystemServer).Reboot(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gnoi.system.System/Reboot", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SystemServer).Reboot(ctx, req.(*RebootRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _System_RebootStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RebootStatusRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SystemServer).RebootStatus(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gnoi.system.System/RebootStatus", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SystemServer).RebootStatus(ctx, req.(*RebootStatusRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _System_CancelReboot_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CancelRebootRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SystemServer).CancelReboot(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gnoi.system.System/CancelReboot", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SystemServer).CancelReboot(ctx, req.(*CancelRebootRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// System_ServiceDesc is the grpc.ServiceDesc for System service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var System_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "gnoi.system.System", + HandlerType: (*SystemServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "Time", + Handler: _System_Time_Handler, + }, + { + MethodName: "SwitchControlProcessor", + Handler: _System_SwitchControlProcessor_Handler, + }, + { + MethodName: "Reboot", + Handler: _System_Reboot_Handler, + }, + { + MethodName: "RebootStatus", + Handler: _System_RebootStatus_Handler, + }, + { + MethodName: "CancelReboot", + Handler: _System_CancelReboot_Handler, + }, + }, + Streams: []grpc.StreamDesc{ + { + StreamName: "Ping", + Handler: _System_Ping_Handler, + ServerStreams: true, + }, + { + StreamName: "Traceroute", + Handler: _System_Traceroute_Handler, + ServerStreams: true, + }, + { + StreamName: "SetPackage", + Handler: _System_SetPackage_Handler, + ClientStreams: true, + }, + }, + Metadata: "system/system.proto", +} diff --git a/types/types.pb.go b/types/types.pb.go index 3b6efb58..55fb31a4 100644 --- a/types/types.pb.go +++ b/types/types.pb.go @@ -1,25 +1,41 @@ +// +// Copyright 2017 Google Inc. All Rights Reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.26.0 +// protoc v3.15.7 // source: types/types.proto -package gnoi_types +package types import ( - fmt "fmt" - proto "github.com/golang/protobuf/proto" - descriptor "github.com/golang/protobuf/protoc-gen-go/descriptor" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + descriptorpb "google.golang.org/protobuf/types/descriptorpb" + reflect "reflect" + sync "sync" ) -// 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 +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) // Generic Layer 3 Protocol enumeration. type L3Protocol int32 @@ -30,24 +46,45 @@ const ( L3Protocol_IPV6 L3Protocol = 2 ) -var L3Protocol_name = map[int32]string{ - 0: "UNSPECIFIED", - 1: "IPV4", - 2: "IPV6", -} +// Enum value maps for L3Protocol. +var ( + L3Protocol_name = map[int32]string{ + 0: "UNSPECIFIED", + 1: "IPV4", + 2: "IPV6", + } + L3Protocol_value = map[string]int32{ + "UNSPECIFIED": 0, + "IPV4": 1, + "IPV6": 2, + } +) -var L3Protocol_value = map[string]int32{ - "UNSPECIFIED": 0, - "IPV4": 1, - "IPV6": 2, +func (x L3Protocol) Enum() *L3Protocol { + p := new(L3Protocol) + *p = x + return p } func (x L3Protocol) String() string { - return proto.EnumName(L3Protocol_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } +func (L3Protocol) Descriptor() protoreflect.EnumDescriptor { + return file_types_types_proto_enumTypes[0].Descriptor() +} + +func (L3Protocol) Type() protoreflect.EnumType { + return &file_types_types_proto_enumTypes[0] +} + +func (x L3Protocol) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use L3Protocol.Descriptor instead. func (L3Protocol) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_2c0f90c600ad7e2e, []int{0} + return file_types_types_proto_rawDescGZIP(), []int{0} } type HashType_HashMethod int32 @@ -59,73 +96,102 @@ const ( HashType_MD5 HashType_HashMethod = 3 ) -var HashType_HashMethod_name = map[int32]string{ - 0: "UNSPECIFIED", - 1: "SHA256", - 2: "SHA512", - 3: "MD5", -} +// Enum value maps for HashType_HashMethod. +var ( + HashType_HashMethod_name = map[int32]string{ + 0: "UNSPECIFIED", + 1: "SHA256", + 2: "SHA512", + 3: "MD5", + } + HashType_HashMethod_value = map[string]int32{ + "UNSPECIFIED": 0, + "SHA256": 1, + "SHA512": 2, + "MD5": 3, + } +) -var HashType_HashMethod_value = map[string]int32{ - "UNSPECIFIED": 0, - "SHA256": 1, - "SHA512": 2, - "MD5": 3, +func (x HashType_HashMethod) Enum() *HashType_HashMethod { + p := new(HashType_HashMethod) + *p = x + return p } func (x HashType_HashMethod) String() string { - return proto.EnumName(HashType_HashMethod_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (HashType_HashMethod) Descriptor() protoreflect.EnumDescriptor { + return file_types_types_proto_enumTypes[1].Descriptor() +} + +func (HashType_HashMethod) Type() protoreflect.EnumType { + return &file_types_types_proto_enumTypes[1] } +func (x HashType_HashMethod) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use HashType_HashMethod.Descriptor instead. func (HashType_HashMethod) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_2c0f90c600ad7e2e, []int{0, 0} + return file_types_types_proto_rawDescGZIP(), []int{0, 0} } // HashType defines the valid hash methods for data verification. UNSPECIFIED // should be treated an error. type HashType struct { - Method HashType_HashMethod `protobuf:"varint,1,opt,name=method,proto3,enum=gnoi.types.HashType_HashMethod" json:"method,omitempty"` - Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *HashType) Reset() { *m = HashType{} } -func (m *HashType) String() string { return proto.CompactTextString(m) } -func (*HashType) ProtoMessage() {} -func (*HashType) Descriptor() ([]byte, []int) { - return fileDescriptor_2c0f90c600ad7e2e, []int{0} + Method HashType_HashMethod `protobuf:"varint,1,opt,name=method,proto3,enum=gnoi.types.HashType_HashMethod" json:"method,omitempty"` + Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` } -func (m *HashType) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_HashType.Unmarshal(m, b) -} -func (m *HashType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_HashType.Marshal(b, m, deterministic) -} -func (m *HashType) XXX_Merge(src proto.Message) { - xxx_messageInfo_HashType.Merge(m, src) +func (x *HashType) Reset() { + *x = HashType{} + if protoimpl.UnsafeEnabled { + mi := &file_types_types_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *HashType) XXX_Size() int { - return xxx_messageInfo_HashType.Size(m) + +func (x *HashType) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *HashType) XXX_DiscardUnknown() { - xxx_messageInfo_HashType.DiscardUnknown(m) + +func (*HashType) ProtoMessage() {} + +func (x *HashType) ProtoReflect() protoreflect.Message { + mi := &file_types_types_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_HashType proto.InternalMessageInfo +// Deprecated: Use HashType.ProtoReflect.Descriptor instead. +func (*HashType) Descriptor() ([]byte, []int) { + return file_types_types_proto_rawDescGZIP(), []int{0} +} -func (m *HashType) GetMethod() HashType_HashMethod { - if m != nil { - return m.Method +func (x *HashType) GetMethod() HashType_HashMethod { + if x != nil { + return x.Method } return HashType_UNSPECIFIED } -func (m *HashType) GetHash() []byte { - if m != nil { - return m.Hash +func (x *HashType) GetHash() []byte { + if x != nil { + return x.Hash } return nil } @@ -135,48 +201,56 @@ func (m *HashType) GetHash() []byte { // associated attributes. // Reference: gNMI Specification Section 2.2.2. type Path struct { - Origin string `protobuf:"bytes,2,opt,name=origin,proto3" json:"origin,omitempty"` - Elem []*PathElem `protobuf:"bytes,3,rep,name=elem,proto3" json:"elem,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *Path) Reset() { *m = Path{} } -func (m *Path) String() string { return proto.CompactTextString(m) } -func (*Path) ProtoMessage() {} -func (*Path) Descriptor() ([]byte, []int) { - return fileDescriptor_2c0f90c600ad7e2e, []int{1} + Origin string `protobuf:"bytes,2,opt,name=origin,proto3" json:"origin,omitempty"` // Label to disambiguate path. + Elem []*PathElem `protobuf:"bytes,3,rep,name=elem,proto3" json:"elem,omitempty"` // Elements of the path. } -func (m *Path) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Path.Unmarshal(m, b) -} -func (m *Path) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Path.Marshal(b, m, deterministic) -} -func (m *Path) XXX_Merge(src proto.Message) { - xxx_messageInfo_Path.Merge(m, src) +func (x *Path) Reset() { + *x = Path{} + if protoimpl.UnsafeEnabled { + mi := &file_types_types_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *Path) XXX_Size() int { - return xxx_messageInfo_Path.Size(m) + +func (x *Path) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Path) XXX_DiscardUnknown() { - xxx_messageInfo_Path.DiscardUnknown(m) + +func (*Path) ProtoMessage() {} + +func (x *Path) ProtoReflect() protoreflect.Message { + mi := &file_types_types_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_Path proto.InternalMessageInfo +// Deprecated: Use Path.ProtoReflect.Descriptor instead. +func (*Path) Descriptor() ([]byte, []int) { + return file_types_types_proto_rawDescGZIP(), []int{1} +} -func (m *Path) GetOrigin() string { - if m != nil { - return m.Origin +func (x *Path) GetOrigin() string { + if x != nil { + return x.Origin } return "" } -func (m *Path) GetElem() []*PathElem { - if m != nil { - return m.Elem +func (x *Path) GetElem() []*PathElem { + if x != nil { + return x.Elem } return nil } @@ -185,112 +259,112 @@ func (m *Path) GetElem() []*PathElem { // that may be associated with it. // Reference: gNMI Specification Section 2.2.2. type PathElem struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Key map[string]string `protobuf:"bytes,2,rep,name=key,proto3" json:"key,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *PathElem) Reset() { *m = PathElem{} } -func (m *PathElem) String() string { return proto.CompactTextString(m) } -func (*PathElem) ProtoMessage() {} -func (*PathElem) Descriptor() ([]byte, []int) { - return fileDescriptor_2c0f90c600ad7e2e, []int{2} + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The name of the element in the path. + Key map[string]string `protobuf:"bytes,2,rep,name=key,proto3" json:"key,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // Map of key (attribute) name to value. } -func (m *PathElem) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PathElem.Unmarshal(m, b) -} -func (m *PathElem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PathElem.Marshal(b, m, deterministic) -} -func (m *PathElem) XXX_Merge(src proto.Message) { - xxx_messageInfo_PathElem.Merge(m, src) +func (x *PathElem) Reset() { + *x = PathElem{} + if protoimpl.UnsafeEnabled { + mi := &file_types_types_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *PathElem) XXX_Size() int { - return xxx_messageInfo_PathElem.Size(m) + +func (x *PathElem) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *PathElem) XXX_DiscardUnknown() { - xxx_messageInfo_PathElem.DiscardUnknown(m) + +func (*PathElem) ProtoMessage() {} + +func (x *PathElem) ProtoReflect() protoreflect.Message { + mi := &file_types_types_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_PathElem proto.InternalMessageInfo +// Deprecated: Use PathElem.ProtoReflect.Descriptor instead. +func (*PathElem) Descriptor() ([]byte, []int) { + return file_types_types_proto_rawDescGZIP(), []int{2} +} -func (m *PathElem) GetName() string { - if m != nil { - return m.Name +func (x *PathElem) GetName() string { + if x != nil { + return x.Name } return "" } -func (m *PathElem) GetKey() map[string]string { - if m != nil { - return m.Key +func (x *PathElem) GetKey() map[string]string { + if x != nil { + return x.Key } return nil } // Credentials defines credentials needed to perform authentication on a device. type Credentials struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` - // Types that are valid to be assigned to Password: + // Types that are assignable to Password: // *Credentials_Cleartext // *Credentials_Hashed - Password isCredentials_Password `protobuf_oneof:"password"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Password isCredentials_Password `protobuf_oneof:"password"` } -func (m *Credentials) Reset() { *m = Credentials{} } -func (m *Credentials) String() string { return proto.CompactTextString(m) } -func (*Credentials) ProtoMessage() {} -func (*Credentials) Descriptor() ([]byte, []int) { - return fileDescriptor_2c0f90c600ad7e2e, []int{3} +func (x *Credentials) Reset() { + *x = Credentials{} + if protoimpl.UnsafeEnabled { + mi := &file_types_types_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *Credentials) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Credentials.Unmarshal(m, b) -} -func (m *Credentials) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Credentials.Marshal(b, m, deterministic) -} -func (m *Credentials) XXX_Merge(src proto.Message) { - xxx_messageInfo_Credentials.Merge(m, src) -} -func (m *Credentials) XXX_Size() int { - return xxx_messageInfo_Credentials.Size(m) -} -func (m *Credentials) XXX_DiscardUnknown() { - xxx_messageInfo_Credentials.DiscardUnknown(m) +func (x *Credentials) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_Credentials proto.InternalMessageInfo +func (*Credentials) ProtoMessage() {} -func (m *Credentials) GetUsername() string { - if m != nil { - return m.Username +func (x *Credentials) ProtoReflect() protoreflect.Message { + mi := &file_types_types_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return "" -} - -type isCredentials_Password interface { - isCredentials_Password() + return mi.MessageOf(x) } -type Credentials_Cleartext struct { - Cleartext string `protobuf:"bytes,2,opt,name=cleartext,proto3,oneof"` +// Deprecated: Use Credentials.ProtoReflect.Descriptor instead. +func (*Credentials) Descriptor() ([]byte, []int) { + return file_types_types_proto_rawDescGZIP(), []int{3} } -type Credentials_Hashed struct { - Hashed *HashType `protobuf:"bytes,3,opt,name=hashed,proto3,oneof"` +func (x *Credentials) GetUsername() string { + if x != nil { + return x.Username + } + return "" } -func (*Credentials_Cleartext) isCredentials_Password() {} - -func (*Credentials_Hashed) isCredentials_Password() {} - func (m *Credentials) GetPassword() isCredentials_Password { if m != nil { return m.Password @@ -298,140 +372,220 @@ func (m *Credentials) GetPassword() isCredentials_Password { return nil } -func (m *Credentials) GetCleartext() string { - if x, ok := m.GetPassword().(*Credentials_Cleartext); ok { +func (x *Credentials) GetCleartext() string { + if x, ok := x.GetPassword().(*Credentials_Cleartext); ok { return x.Cleartext } return "" } -func (m *Credentials) GetHashed() *HashType { - if x, ok := m.GetPassword().(*Credentials_Hashed); ok { +func (x *Credentials) GetHashed() *HashType { + if x, ok := x.GetPassword().(*Credentials_Hashed); ok { return x.Hashed } return nil } -// XXX_OneofFuncs is for the internal use of the proto package. -func (*Credentials) 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 _Credentials_OneofMarshaler, _Credentials_OneofUnmarshaler, _Credentials_OneofSizer, []interface{}{ - (*Credentials_Cleartext)(nil), - (*Credentials_Hashed)(nil), - } +type isCredentials_Password interface { + isCredentials_Password() } -func _Credentials_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { - m := msg.(*Credentials) - // password - switch x := m.Password.(type) { - case *Credentials_Cleartext: - b.EncodeVarint(2<<3 | proto.WireBytes) - b.EncodeStringBytes(x.Cleartext) - case *Credentials_Hashed: - b.EncodeVarint(3<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.Hashed); err != nil { - return err - } - case nil: - default: - return fmt.Errorf("Credentials.Password has unexpected type %T", x) - } - return nil +type Credentials_Cleartext struct { + Cleartext string `protobuf:"bytes,2,opt,name=cleartext,proto3,oneof"` +} + +type Credentials_Hashed struct { + Hashed *HashType `protobuf:"bytes,3,opt,name=hashed,proto3,oneof"` } -func _Credentials_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { - m := msg.(*Credentials) - switch tag { - case 2: // password.cleartext - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType +func (*Credentials_Cleartext) isCredentials_Password() {} + +func (*Credentials_Hashed) isCredentials_Password() {} + +var file_types_types_proto_extTypes = []protoimpl.ExtensionInfo{ + { + ExtendedType: (*descriptorpb.FileOptions)(nil), + ExtensionType: (*string)(nil), + Field: 1002, + Name: "gnoi.types.gnoi_version", + Tag: "bytes,1002,opt,name=gnoi_version", + Filename: "types/types.proto", + }, +} + +// Extension fields to descriptorpb.FileOptions. +var ( + // The gNOI service semantic version. + // + // optional string gnoi_version = 1002; + E_GnoiVersion = &file_types_types_proto_extTypes[0] +) + +var File_types_types_proto protoreflect.FileDescriptor + +var file_types_types_proto_rawDesc = []byte{ + 0x0a, 0x11, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x1a, + 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x22, 0x97, 0x01, 0x0a, 0x08, 0x48, 0x61, 0x73, 0x68, 0x54, 0x79, 0x70, 0x65, 0x12, 0x37, + 0x0a, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, + 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x48, 0x61, 0x73, 0x68, + 0x54, 0x79, 0x70, 0x65, 0x2e, 0x48, 0x61, 0x73, 0x68, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, + 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x61, 0x73, 0x68, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x68, 0x61, 0x73, 0x68, 0x22, 0x3e, 0x0a, 0x0a, 0x48, + 0x61, 0x73, 0x68, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x0f, 0x0a, 0x0b, 0x55, 0x4e, 0x53, + 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x48, + 0x41, 0x32, 0x35, 0x36, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x48, 0x41, 0x35, 0x31, 0x32, + 0x10, 0x02, 0x12, 0x07, 0x0a, 0x03, 0x4d, 0x44, 0x35, 0x10, 0x03, 0x22, 0x48, 0x0a, 0x04, 0x50, + 0x61, 0x74, 0x68, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x06, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x12, 0x28, 0x0a, 0x04, 0x65, + 0x6c, 0x65, 0x6d, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6e, 0x6f, 0x69, + 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x50, 0x61, 0x74, 0x68, 0x45, 0x6c, 0x65, 0x6d, 0x52, + 0x04, 0x65, 0x6c, 0x65, 0x6d, 0x22, 0x87, 0x01, 0x0a, 0x08, 0x50, 0x61, 0x74, 0x68, 0x45, 0x6c, + 0x65, 0x6d, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x2f, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, + 0x2e, 0x50, 0x61, 0x74, 0x68, 0x45, 0x6c, 0x65, 0x6d, 0x2e, 0x4b, 0x65, 0x79, 0x45, 0x6e, 0x74, + 0x72, 0x79, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x1a, 0x36, 0x0a, 0x08, 0x4b, 0x65, 0x79, 0x45, 0x6e, + 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, + 0x85, 0x01, 0x0a, 0x0b, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x12, + 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x09, 0x63, + 0x6c, 0x65, 0x61, 0x72, 0x74, 0x65, 0x78, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, + 0x52, 0x09, 0x63, 0x6c, 0x65, 0x61, 0x72, 0x74, 0x65, 0x78, 0x74, 0x12, 0x2e, 0x0a, 0x06, 0x68, + 0x61, 0x73, 0x68, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6e, + 0x6f, 0x69, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x48, 0x61, 0x73, 0x68, 0x54, 0x79, 0x70, + 0x65, 0x48, 0x00, 0x52, 0x06, 0x68, 0x61, 0x73, 0x68, 0x65, 0x64, 0x42, 0x0a, 0x0a, 0x08, 0x70, + 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x2a, 0x31, 0x0a, 0x0a, 0x4c, 0x33, 0x50, 0x72, 0x6f, + 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x0f, 0x0a, 0x0b, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, + 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x49, 0x50, 0x56, 0x34, 0x10, 0x01, + 0x12, 0x08, 0x0a, 0x04, 0x49, 0x50, 0x56, 0x36, 0x10, 0x02, 0x3a, 0x40, 0x0a, 0x0c, 0x67, 0x6e, + 0x6f, 0x69, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x6c, + 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0xea, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0b, 0x67, 0x6e, 0x6f, 0x69, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x42, 0x22, 0x5a, 0x20, + 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x63, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x67, 0x6e, 0x6f, 0x69, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, + 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_types_types_proto_rawDescOnce sync.Once + file_types_types_proto_rawDescData = file_types_types_proto_rawDesc +) + +func file_types_types_proto_rawDescGZIP() []byte { + file_types_types_proto_rawDescOnce.Do(func() { + file_types_types_proto_rawDescData = protoimpl.X.CompressGZIP(file_types_types_proto_rawDescData) + }) + return file_types_types_proto_rawDescData +} + +var file_types_types_proto_enumTypes = make([]protoimpl.EnumInfo, 2) +var file_types_types_proto_msgTypes = make([]protoimpl.MessageInfo, 5) +var file_types_types_proto_goTypes = []interface{}{ + (L3Protocol)(0), // 0: gnoi.types.L3Protocol + (HashType_HashMethod)(0), // 1: gnoi.types.HashType.HashMethod + (*HashType)(nil), // 2: gnoi.types.HashType + (*Path)(nil), // 3: gnoi.types.Path + (*PathElem)(nil), // 4: gnoi.types.PathElem + (*Credentials)(nil), // 5: gnoi.types.Credentials + nil, // 6: gnoi.types.PathElem.KeyEntry + (*descriptorpb.FileOptions)(nil), // 7: google.protobuf.FileOptions +} +var file_types_types_proto_depIdxs = []int32{ + 1, // 0: gnoi.types.HashType.method:type_name -> gnoi.types.HashType.HashMethod + 4, // 1: gnoi.types.Path.elem:type_name -> gnoi.types.PathElem + 6, // 2: gnoi.types.PathElem.key:type_name -> gnoi.types.PathElem.KeyEntry + 2, // 3: gnoi.types.Credentials.hashed:type_name -> gnoi.types.HashType + 7, // 4: gnoi.types.gnoi_version:extendee -> google.protobuf.FileOptions + 5, // [5:5] is the sub-list for method output_type + 5, // [5:5] is the sub-list for method input_type + 5, // [5:5] is the sub-list for extension type_name + 4, // [4:5] is the sub-list for extension extendee + 0, // [0:4] is the sub-list for field type_name +} + +func init() { file_types_types_proto_init() } +func file_types_types_proto_init() { + if File_types_types_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_types_types_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*HashType); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_types_types_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Path); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } } - x, err := b.DecodeStringBytes() - m.Password = &Credentials_Cleartext{x} - return true, err - case 3: // password.hashed - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType + file_types_types_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PathElem); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_types_types_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Credentials); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } } - msg := new(HashType) - err := b.DecodeMessage(msg) - m.Password = &Credentials_Hashed{msg} - return true, err - default: - return false, nil } -} - -func _Credentials_OneofSizer(msg proto.Message) (n int) { - m := msg.(*Credentials) - // password - switch x := m.Password.(type) { - case *Credentials_Cleartext: - n += 1 // tag and wire - n += proto.SizeVarint(uint64(len(x.Cleartext))) - n += len(x.Cleartext) - case *Credentials_Hashed: - s := proto.Size(x.Hashed) - n += 1 // tag and wire - n += proto.SizeVarint(uint64(s)) - n += s - case nil: - default: - panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + file_types_types_proto_msgTypes[3].OneofWrappers = []interface{}{ + (*Credentials_Cleartext)(nil), + (*Credentials_Hashed)(nil), } - return n -} - -var E_GnoiVersion = &proto.ExtensionDesc{ - ExtendedType: (*descriptor.FileOptions)(nil), - ExtensionType: (*string)(nil), - Field: 1002, - Name: "gnoi.types.gnoi_version", - Tag: "bytes,1002,opt,name=gnoi_version", - Filename: "types/types.proto", -} - -func init() { - proto.RegisterEnum("gnoi.types.L3Protocol", L3Protocol_name, L3Protocol_value) - proto.RegisterEnum("gnoi.types.HashType_HashMethod", HashType_HashMethod_name, HashType_HashMethod_value) - proto.RegisterType((*HashType)(nil), "gnoi.types.HashType") - proto.RegisterType((*Path)(nil), "gnoi.types.Path") - proto.RegisterType((*PathElem)(nil), "gnoi.types.PathElem") - proto.RegisterMapType((map[string]string)(nil), "gnoi.types.PathElem.KeyEntry") - proto.RegisterType((*Credentials)(nil), "gnoi.types.Credentials") - proto.RegisterExtension(E_GnoiVersion) -} - -func init() { proto.RegisterFile("types/types.proto", fileDescriptor_2c0f90c600ad7e2e) } - -var fileDescriptor_2c0f90c600ad7e2e = []byte{ - // 448 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x92, 0xdf, 0x6e, 0xd3, 0x30, - 0x14, 0xc6, 0xeb, 0xa4, 0x64, 0xe9, 0xe9, 0x04, 0xc1, 0x9a, 0x50, 0x54, 0xf1, 0x27, 0xca, 0x55, - 0xc5, 0x85, 0xab, 0x75, 0xb4, 0xa0, 0x5d, 0x20, 0x60, 0xeb, 0x94, 0x0a, 0x06, 0x55, 0x06, 0xbb, - 0x45, 0x59, 0x73, 0x68, 0x22, 0x92, 0x38, 0xb2, 0xdd, 0x41, 0x1e, 0x00, 0xf1, 0x08, 0xbc, 0x23, - 0x4f, 0x81, 0xe2, 0x24, 0x74, 0x82, 0xdd, 0x44, 0xdf, 0x39, 0xf9, 0x9d, 0x4f, 0x9f, 0xed, 0x03, - 0xf7, 0x55, 0x55, 0xa2, 0x9c, 0xe8, 0x2f, 0x2b, 0x05, 0x57, 0x9c, 0xc2, 0xa6, 0xe0, 0x29, 0xd3, - 0x9d, 0x91, 0xb7, 0xe1, 0x7c, 0x93, 0xe1, 0x44, 0xff, 0xb9, 0xda, 0x7e, 0x99, 0xc4, 0x28, 0xd7, - 0x22, 0x2d, 0x15, 0x17, 0x0d, 0xed, 0xff, 0x22, 0x60, 0x07, 0x91, 0x4c, 0x3e, 0x56, 0x25, 0xd2, - 0xe7, 0x60, 0xe5, 0xa8, 0x12, 0x1e, 0xbb, 0xc4, 0x23, 0xe3, 0xbb, 0xd3, 0x27, 0x6c, 0xe7, 0xc5, - 0x3a, 0x4a, 0x8b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0c, 0xd6, 0x19, 0x46, 0x42, 0xe1, 0x77, 0xd5, - 0x38, 0x05, 0xbd, 0x70, 0xd7, 0xa2, 0x0c, 0xac, 0xfa, 0x9e, 0x31, 0x76, 0x4d, 0x8f, 0xfc, 0x7b, - 0x03, 0xdd, 0x63, 0x05, 0xbd, 0xb0, 0xa5, 0xde, 0x00, 0xd8, 0x65, 0x24, 0xe5, 0x37, 0x2e, 0xe2, - 0xa7, 0x87, 0x00, 0xef, 0x8e, 0x56, 0xf5, 0x02, 0xac, 0x79, 0xf6, 0xff, 0xdb, 0xd8, 0xd0, 0x5f, - 0xae, 0x2e, 0x9f, 0x39, 0xa4, 0x55, 0x73, 0xc7, 0x38, 0x7e, 0x05, 0xfb, 0xb5, 0xff, 0xe7, 0x6b, - 0x14, 0x32, 0xe5, 0x05, 0x7d, 0xc8, 0x9a, 0xdd, 0x62, 0xdd, 0x6e, 0xb1, 0xb3, 0x34, 0xc3, 0x0f, - 0xa5, 0x4a, 0x79, 0x21, 0xdd, 0xdf, 0x7b, 0xfa, 0x34, 0xc3, 0x7a, 0xe4, 0xb2, 0x99, 0xb8, 0xb2, - 0x34, 0x79, 0xf4, 0x27, 0x00, 0x00, 0xff, 0xff, 0x3b, 0xfa, 0x7b, 0x5f, 0xb4, 0x02, 0x00, 0x00, + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_types_types_proto_rawDesc, + NumEnums: 2, + NumMessages: 5, + NumExtensions: 1, + NumServices: 0, + }, + GoTypes: file_types_types_proto_goTypes, + DependencyIndexes: file_types_types_proto_depIdxs, + EnumInfos: file_types_types_proto_enumTypes, + MessageInfos: file_types_types_proto_msgTypes, + ExtensionInfos: file_types_types_proto_extTypes, + }.Build() + File_types_types_proto = out.File + file_types_types_proto_rawDesc = nil + file_types_types_proto_goTypes = nil + file_types_types_proto_depIdxs = nil } diff --git a/types/types.proto b/types/types.proto index c36f7c82..6509f492 100644 --- a/types/types.proto +++ b/types/types.proto @@ -20,6 +20,8 @@ package gnoi.types; import "google/protobuf/descriptor.proto"; +option go_package = "github.com/openconfig/gnoi/types"; + // Define a protobuf FileOption that defines the gNOI service version. extend google.protobuf.FileOptions { // The gNOI service semantic version. diff --git a/wavelength_router/wavelength_router.pb.go b/wavelength_router/wavelength_router.pb.go index f814aedd..275b2ed7 100644 --- a/wavelength_router/wavelength_router.pb.go +++ b/wavelength_router/wavelength_router.pb.go @@ -1,29 +1,41 @@ +// +// Copyright 2019 Google LLC. All Rights Reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.26.0 +// protoc v3.15.7 // source: wavelength_router/wavelength_router.proto -package gnoi_optical +package wavelength_router import ( - context "context" - fmt "fmt" - proto "github.com/golang/protobuf/proto" types "github.com/openconfig/gnoi/types" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// 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.ProtoPackageIsVersion3 // please upgrade the proto package +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) type AdjustPSDRequest_SignalDirection int32 @@ -33,52 +45,94 @@ const ( AdjustPSDRequest_DIRECTION_OUTPUT AdjustPSDRequest_SignalDirection = 2 ) -var AdjustPSDRequest_SignalDirection_name = map[int32]string{ - 0: "DIRECTION_UNKNOWN", - 1: "DIRECTION_INPUT", - 2: "DIRECTION_OUTPUT", -} +// Enum value maps for AdjustPSDRequest_SignalDirection. +var ( + AdjustPSDRequest_SignalDirection_name = map[int32]string{ + 0: "DIRECTION_UNKNOWN", + 1: "DIRECTION_INPUT", + 2: "DIRECTION_OUTPUT", + } + AdjustPSDRequest_SignalDirection_value = map[string]int32{ + "DIRECTION_UNKNOWN": 0, + "DIRECTION_INPUT": 1, + "DIRECTION_OUTPUT": 2, + } +) -var AdjustPSDRequest_SignalDirection_value = map[string]int32{ - "DIRECTION_UNKNOWN": 0, - "DIRECTION_INPUT": 1, - "DIRECTION_OUTPUT": 2, +func (x AdjustPSDRequest_SignalDirection) Enum() *AdjustPSDRequest_SignalDirection { + p := new(AdjustPSDRequest_SignalDirection) + *p = x + return p } func (x AdjustPSDRequest_SignalDirection) String() string { - return proto.EnumName(AdjustPSDRequest_SignalDirection_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } +func (AdjustPSDRequest_SignalDirection) Descriptor() protoreflect.EnumDescriptor { + return file_wavelength_router_wavelength_router_proto_enumTypes[0].Descriptor() +} + +func (AdjustPSDRequest_SignalDirection) Type() protoreflect.EnumType { + return &file_wavelength_router_wavelength_router_proto_enumTypes[0] +} + +func (x AdjustPSDRequest_SignalDirection) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use AdjustPSDRequest_SignalDirection.Descriptor instead. func (AdjustPSDRequest_SignalDirection) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_cb8b6c17dc3d7490, []int{0, 0} + return file_wavelength_router_wavelength_router_proto_rawDescGZIP(), []int{0, 0} } type AdjustPSDProgress_State int32 const ( AdjustPSDProgress_UNKNOWN AdjustPSDProgress_State = 0 - AdjustPSDProgress_RUNNING AdjustPSDProgress_State = 1 - AdjustPSDProgress_COMPLETE AdjustPSDProgress_State = 2 + AdjustPSDProgress_RUNNING AdjustPSDProgress_State = 1 // The PSD adjustment is running. + AdjustPSDProgress_COMPLETE AdjustPSDProgress_State = 2 // The PSD adjustment completed successfully. ) -var AdjustPSDProgress_State_name = map[int32]string{ - 0: "UNKNOWN", - 1: "RUNNING", - 2: "COMPLETE", -} +// Enum value maps for AdjustPSDProgress_State. +var ( + AdjustPSDProgress_State_name = map[int32]string{ + 0: "UNKNOWN", + 1: "RUNNING", + 2: "COMPLETE", + } + AdjustPSDProgress_State_value = map[string]int32{ + "UNKNOWN": 0, + "RUNNING": 1, + "COMPLETE": 2, + } +) -var AdjustPSDProgress_State_value = map[string]int32{ - "UNKNOWN": 0, - "RUNNING": 1, - "COMPLETE": 2, +func (x AdjustPSDProgress_State) Enum() *AdjustPSDProgress_State { + p := new(AdjustPSDProgress_State) + *p = x + return p } func (x AdjustPSDProgress_State) String() string { - return proto.EnumName(AdjustPSDProgress_State_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (AdjustPSDProgress_State) Descriptor() protoreflect.EnumDescriptor { + return file_wavelength_router_wavelength_router_proto_enumTypes[1].Descriptor() +} + +func (AdjustPSDProgress_State) Type() protoreflect.EnumType { + return &file_wavelength_router_wavelength_router_proto_enumTypes[1] } +func (x AdjustPSDProgress_State) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use AdjustPSDProgress_State.Descriptor instead. func (AdjustPSDProgress_State) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_cb8b6c17dc3d7490, []int{1, 0} + return file_wavelength_router_wavelength_router_proto_rawDescGZIP(), []int{1, 0} } type AdjustPSDError_Type int32 @@ -94,24 +148,45 @@ const ( AdjustPSDError_HARDWARE_FAILURE AdjustPSDError_Type = 2 ) -var AdjustPSDError_Type_name = map[int32]string{ - 0: "UNSPECIFIED", - 1: "PORT_BUSY", - 2: "HARDWARE_FAILURE", -} +// Enum value maps for AdjustPSDError_Type. +var ( + AdjustPSDError_Type_name = map[int32]string{ + 0: "UNSPECIFIED", + 1: "PORT_BUSY", + 2: "HARDWARE_FAILURE", + } + AdjustPSDError_Type_value = map[string]int32{ + "UNSPECIFIED": 0, + "PORT_BUSY": 1, + "HARDWARE_FAILURE": 2, + } +) -var AdjustPSDError_Type_value = map[string]int32{ - "UNSPECIFIED": 0, - "PORT_BUSY": 1, - "HARDWARE_FAILURE": 2, +func (x AdjustPSDError_Type) Enum() *AdjustPSDError_Type { + p := new(AdjustPSDError_Type) + *p = x + return p } func (x AdjustPSDError_Type) String() string { - return proto.EnumName(AdjustPSDError_Type_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (AdjustPSDError_Type) Descriptor() protoreflect.EnumDescriptor { + return file_wavelength_router_wavelength_router_proto_enumTypes[2].Descriptor() } +func (AdjustPSDError_Type) Type() protoreflect.EnumType { + return &file_wavelength_router_wavelength_router_proto_enumTypes[2] +} + +func (x AdjustPSDError_Type) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use AdjustPSDError_Type.Descriptor instead. func (AdjustPSDError_Type) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_cb8b6c17dc3d7490, []int{2, 0} + return file_wavelength_router_wavelength_router_proto_rawDescGZIP(), []int{2, 0} } type AdjustSpectrumRequest_SignalDirection int32 @@ -122,52 +197,94 @@ const ( AdjustSpectrumRequest_DIRECTION_OUTPUT AdjustSpectrumRequest_SignalDirection = 2 ) -var AdjustSpectrumRequest_SignalDirection_name = map[int32]string{ - 0: "DIRECTION_UNKNOWN", - 1: "DIRECTION_INPUT", - 2: "DIRECTION_OUTPUT", -} +// Enum value maps for AdjustSpectrumRequest_SignalDirection. +var ( + AdjustSpectrumRequest_SignalDirection_name = map[int32]string{ + 0: "DIRECTION_UNKNOWN", + 1: "DIRECTION_INPUT", + 2: "DIRECTION_OUTPUT", + } + AdjustSpectrumRequest_SignalDirection_value = map[string]int32{ + "DIRECTION_UNKNOWN": 0, + "DIRECTION_INPUT": 1, + "DIRECTION_OUTPUT": 2, + } +) -var AdjustSpectrumRequest_SignalDirection_value = map[string]int32{ - "DIRECTION_UNKNOWN": 0, - "DIRECTION_INPUT": 1, - "DIRECTION_OUTPUT": 2, +func (x AdjustSpectrumRequest_SignalDirection) Enum() *AdjustSpectrumRequest_SignalDirection { + p := new(AdjustSpectrumRequest_SignalDirection) + *p = x + return p } func (x AdjustSpectrumRequest_SignalDirection) String() string { - return proto.EnumName(AdjustSpectrumRequest_SignalDirection_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (AdjustSpectrumRequest_SignalDirection) Descriptor() protoreflect.EnumDescriptor { + return file_wavelength_router_wavelength_router_proto_enumTypes[3].Descriptor() +} + +func (AdjustSpectrumRequest_SignalDirection) Type() protoreflect.EnumType { + return &file_wavelength_router_wavelength_router_proto_enumTypes[3] +} + +func (x AdjustSpectrumRequest_SignalDirection) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) } +// Deprecated: Use AdjustSpectrumRequest_SignalDirection.Descriptor instead. func (AdjustSpectrumRequest_SignalDirection) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_cb8b6c17dc3d7490, []int{5, 0} + return file_wavelength_router_wavelength_router_proto_rawDescGZIP(), []int{5, 0} } type AdjustSpectrumProgress_State int32 const ( AdjustSpectrumProgress_UNKNOWN AdjustSpectrumProgress_State = 0 - AdjustSpectrumProgress_RUNNING AdjustSpectrumProgress_State = 1 - AdjustSpectrumProgress_COMPLETE AdjustSpectrumProgress_State = 2 + AdjustSpectrumProgress_RUNNING AdjustSpectrumProgress_State = 1 // The spectrum adjustment is running. + AdjustSpectrumProgress_COMPLETE AdjustSpectrumProgress_State = 2 // The spectrum adjustment completed successfully. ) -var AdjustSpectrumProgress_State_name = map[int32]string{ - 0: "UNKNOWN", - 1: "RUNNING", - 2: "COMPLETE", -} +// Enum value maps for AdjustSpectrumProgress_State. +var ( + AdjustSpectrumProgress_State_name = map[int32]string{ + 0: "UNKNOWN", + 1: "RUNNING", + 2: "COMPLETE", + } + AdjustSpectrumProgress_State_value = map[string]int32{ + "UNKNOWN": 0, + "RUNNING": 1, + "COMPLETE": 2, + } +) -var AdjustSpectrumProgress_State_value = map[string]int32{ - "UNKNOWN": 0, - "RUNNING": 1, - "COMPLETE": 2, +func (x AdjustSpectrumProgress_State) Enum() *AdjustSpectrumProgress_State { + p := new(AdjustSpectrumProgress_State) + *p = x + return p } func (x AdjustSpectrumProgress_State) String() string { - return proto.EnumName(AdjustSpectrumProgress_State_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } +func (AdjustSpectrumProgress_State) Descriptor() protoreflect.EnumDescriptor { + return file_wavelength_router_wavelength_router_proto_enumTypes[4].Descriptor() +} + +func (AdjustSpectrumProgress_State) Type() protoreflect.EnumType { + return &file_wavelength_router_wavelength_router_proto_enumTypes[4] +} + +func (x AdjustSpectrumProgress_State) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use AdjustSpectrumProgress_State.Descriptor instead. func (AdjustSpectrumProgress_State) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_cb8b6c17dc3d7490, []int{6, 0} + return file_wavelength_router_wavelength_router_proto_rawDescGZIP(), []int{6, 0} } type AdjustSpectrumError_Type int32 @@ -183,28 +300,53 @@ const ( AdjustSpectrumError_HARDWARE_FAILURE AdjustSpectrumError_Type = 2 ) -var AdjustSpectrumError_Type_name = map[int32]string{ - 0: "UNSPECIFIED", - 1: "PORT_BUSY", - 2: "HARDWARE_FAILURE", -} +// Enum value maps for AdjustSpectrumError_Type. +var ( + AdjustSpectrumError_Type_name = map[int32]string{ + 0: "UNSPECIFIED", + 1: "PORT_BUSY", + 2: "HARDWARE_FAILURE", + } + AdjustSpectrumError_Type_value = map[string]int32{ + "UNSPECIFIED": 0, + "PORT_BUSY": 1, + "HARDWARE_FAILURE": 2, + } +) -var AdjustSpectrumError_Type_value = map[string]int32{ - "UNSPECIFIED": 0, - "PORT_BUSY": 1, - "HARDWARE_FAILURE": 2, +func (x AdjustSpectrumError_Type) Enum() *AdjustSpectrumError_Type { + p := new(AdjustSpectrumError_Type) + *p = x + return p } func (x AdjustSpectrumError_Type) String() string { - return proto.EnumName(AdjustSpectrumError_Type_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (AdjustSpectrumError_Type) Descriptor() protoreflect.EnumDescriptor { + return file_wavelength_router_wavelength_router_proto_enumTypes[5].Descriptor() +} + +func (AdjustSpectrumError_Type) Type() protoreflect.EnumType { + return &file_wavelength_router_wavelength_router_proto_enumTypes[5] +} + +func (x AdjustSpectrumError_Type) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) } +// Deprecated: Use AdjustSpectrumError_Type.Descriptor instead. func (AdjustSpectrumError_Type) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_cb8b6c17dc3d7490, []int{7, 0} + return file_wavelength_router_wavelength_router_proto_rawDescGZIP(), []int{7, 0} } // Deprecated: Do not use. type AdjustPSDRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // Absolute path to the /components/component list member in the OpenConfig // model corresponding to the port to perform the adjustment for. // (e.g., /components/component[name=amp-1-1]) @@ -212,137 +354,157 @@ type AdjustPSDRequest struct { // Describes the signal direction that should be adjusted relative to the // device. For example, "input" would be the signal entering into the device // from the far end device. - Direction AdjustPSDRequest_SignalDirection `protobuf:"varint,2,opt,name=direction,proto3,enum=gnoi.optical.AdjustPSDRequest_SignalDirection" json:"direction,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Direction AdjustPSDRequest_SignalDirection `protobuf:"varint,2,opt,name=direction,proto3,enum=gnoi.optical.AdjustPSDRequest_SignalDirection" json:"direction,omitempty"` } -func (m *AdjustPSDRequest) Reset() { *m = AdjustPSDRequest{} } -func (m *AdjustPSDRequest) String() string { return proto.CompactTextString(m) } -func (*AdjustPSDRequest) ProtoMessage() {} -func (*AdjustPSDRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_cb8b6c17dc3d7490, []int{0} +func (x *AdjustPSDRequest) Reset() { + *x = AdjustPSDRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_wavelength_router_wavelength_router_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *AdjustPSDRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_AdjustPSDRequest.Unmarshal(m, b) -} -func (m *AdjustPSDRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_AdjustPSDRequest.Marshal(b, m, deterministic) -} -func (m *AdjustPSDRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_AdjustPSDRequest.Merge(m, src) -} -func (m *AdjustPSDRequest) XXX_Size() int { - return xxx_messageInfo_AdjustPSDRequest.Size(m) +func (x *AdjustPSDRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *AdjustPSDRequest) XXX_DiscardUnknown() { - xxx_messageInfo_AdjustPSDRequest.DiscardUnknown(m) + +func (*AdjustPSDRequest) ProtoMessage() {} + +func (x *AdjustPSDRequest) ProtoReflect() protoreflect.Message { + mi := &file_wavelength_router_wavelength_router_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_AdjustPSDRequest proto.InternalMessageInfo +// Deprecated: Use AdjustPSDRequest.ProtoReflect.Descriptor instead. +func (*AdjustPSDRequest) Descriptor() ([]byte, []int) { + return file_wavelength_router_wavelength_router_proto_rawDescGZIP(), []int{0} +} -func (m *AdjustPSDRequest) GetComponent() *types.Path { - if m != nil { - return m.Component +func (x *AdjustPSDRequest) GetComponent() *types.Path { + if x != nil { + return x.Component } return nil } -func (m *AdjustPSDRequest) GetDirection() AdjustPSDRequest_SignalDirection { - if m != nil { - return m.Direction +func (x *AdjustPSDRequest) GetDirection() AdjustPSDRequest_SignalDirection { + if x != nil { + return x.Direction } return AdjustPSDRequest_DIRECTION_UNKNOWN } // Deprecated: Do not use. type AdjustPSDProgress struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // The state of the OTDR trace requested. Note that this does not include // error states as these should be returned as a gRPC error. - State AdjustPSDProgress_State `protobuf:"varint,1,opt,name=state,proto3,enum=gnoi.optical.AdjustPSDProgress_State" json:"state,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + State AdjustPSDProgress_State `protobuf:"varint,1,opt,name=state,proto3,enum=gnoi.optical.AdjustPSDProgress_State" json:"state,omitempty"` } -func (m *AdjustPSDProgress) Reset() { *m = AdjustPSDProgress{} } -func (m *AdjustPSDProgress) String() string { return proto.CompactTextString(m) } -func (*AdjustPSDProgress) ProtoMessage() {} -func (*AdjustPSDProgress) Descriptor() ([]byte, []int) { - return fileDescriptor_cb8b6c17dc3d7490, []int{1} +func (x *AdjustPSDProgress) Reset() { + *x = AdjustPSDProgress{} + if protoimpl.UnsafeEnabled { + mi := &file_wavelength_router_wavelength_router_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *AdjustPSDProgress) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_AdjustPSDProgress.Unmarshal(m, b) -} -func (m *AdjustPSDProgress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_AdjustPSDProgress.Marshal(b, m, deterministic) -} -func (m *AdjustPSDProgress) XXX_Merge(src proto.Message) { - xxx_messageInfo_AdjustPSDProgress.Merge(m, src) -} -func (m *AdjustPSDProgress) XXX_Size() int { - return xxx_messageInfo_AdjustPSDProgress.Size(m) +func (x *AdjustPSDProgress) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *AdjustPSDProgress) XXX_DiscardUnknown() { - xxx_messageInfo_AdjustPSDProgress.DiscardUnknown(m) + +func (*AdjustPSDProgress) ProtoMessage() {} + +func (x *AdjustPSDProgress) ProtoReflect() protoreflect.Message { + mi := &file_wavelength_router_wavelength_router_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_AdjustPSDProgress proto.InternalMessageInfo +// Deprecated: Use AdjustPSDProgress.ProtoReflect.Descriptor instead. +func (*AdjustPSDProgress) Descriptor() ([]byte, []int) { + return file_wavelength_router_wavelength_router_proto_rawDescGZIP(), []int{1} +} -func (m *AdjustPSDProgress) GetState() AdjustPSDProgress_State { - if m != nil { - return m.State +func (x *AdjustPSDProgress) GetState() AdjustPSDProgress_State { + if x != nil { + return x.State } return AdjustPSDProgress_UNKNOWN } // Deprecated: Do not use. type AdjustPSDError struct { - Type AdjustPSDError_Type `protobuf:"varint,1,opt,name=type,proto3,enum=gnoi.optical.AdjustPSDError_Type" json:"type,omitempty"` - Detail string `protobuf:"bytes,2,opt,name=detail,proto3" json:"detail,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *AdjustPSDError) Reset() { *m = AdjustPSDError{} } -func (m *AdjustPSDError) String() string { return proto.CompactTextString(m) } -func (*AdjustPSDError) ProtoMessage() {} -func (*AdjustPSDError) Descriptor() ([]byte, []int) { - return fileDescriptor_cb8b6c17dc3d7490, []int{2} + Type AdjustPSDError_Type `protobuf:"varint,1,opt,name=type,proto3,enum=gnoi.optical.AdjustPSDError_Type" json:"type,omitempty"` + Detail string `protobuf:"bytes,2,opt,name=detail,proto3" json:"detail,omitempty"` } -func (m *AdjustPSDError) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_AdjustPSDError.Unmarshal(m, b) -} -func (m *AdjustPSDError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_AdjustPSDError.Marshal(b, m, deterministic) -} -func (m *AdjustPSDError) XXX_Merge(src proto.Message) { - xxx_messageInfo_AdjustPSDError.Merge(m, src) +func (x *AdjustPSDError) Reset() { + *x = AdjustPSDError{} + if protoimpl.UnsafeEnabled { + mi := &file_wavelength_router_wavelength_router_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *AdjustPSDError) XXX_Size() int { - return xxx_messageInfo_AdjustPSDError.Size(m) + +func (x *AdjustPSDError) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *AdjustPSDError) XXX_DiscardUnknown() { - xxx_messageInfo_AdjustPSDError.DiscardUnknown(m) + +func (*AdjustPSDError) ProtoMessage() {} + +func (x *AdjustPSDError) ProtoReflect() protoreflect.Message { + mi := &file_wavelength_router_wavelength_router_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_AdjustPSDError proto.InternalMessageInfo +// Deprecated: Use AdjustPSDError.ProtoReflect.Descriptor instead. +func (*AdjustPSDError) Descriptor() ([]byte, []int) { + return file_wavelength_router_wavelength_router_proto_rawDescGZIP(), []int{2} +} -func (m *AdjustPSDError) GetType() AdjustPSDError_Type { - if m != nil { - return m.Type +func (x *AdjustPSDError) GetType() AdjustPSDError_Type { + if x != nil { + return x.Type } return AdjustPSDError_UNSPECIFIED } -func (m *AdjustPSDError) GetDetail() string { - if m != nil { - return m.Detail +func (x *AdjustPSDError) GetDetail() string { + if x != nil { + return x.Detail } return "" } @@ -355,56 +517,48 @@ func (m *AdjustPSDError) GetDetail() string { // // Deprecated: Do not use. type AdjustPSDResponse struct { - // Types that are valid to be assigned to Response: + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Types that are assignable to Response: // *AdjustPSDResponse_Progress // *AdjustPSDResponse_Error - Response isAdjustPSDResponse_Response `protobuf_oneof:"response"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Response isAdjustPSDResponse_Response `protobuf_oneof:"response"` } -func (m *AdjustPSDResponse) Reset() { *m = AdjustPSDResponse{} } -func (m *AdjustPSDResponse) String() string { return proto.CompactTextString(m) } -func (*AdjustPSDResponse) ProtoMessage() {} -func (*AdjustPSDResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_cb8b6c17dc3d7490, []int{3} +func (x *AdjustPSDResponse) Reset() { + *x = AdjustPSDResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_wavelength_router_wavelength_router_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *AdjustPSDResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_AdjustPSDResponse.Unmarshal(m, b) -} -func (m *AdjustPSDResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_AdjustPSDResponse.Marshal(b, m, deterministic) -} -func (m *AdjustPSDResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_AdjustPSDResponse.Merge(m, src) -} -func (m *AdjustPSDResponse) XXX_Size() int { - return xxx_messageInfo_AdjustPSDResponse.Size(m) -} -func (m *AdjustPSDResponse) XXX_DiscardUnknown() { - xxx_messageInfo_AdjustPSDResponse.DiscardUnknown(m) +func (x *AdjustPSDResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_AdjustPSDResponse proto.InternalMessageInfo +func (*AdjustPSDResponse) ProtoMessage() {} -type isAdjustPSDResponse_Response interface { - isAdjustPSDResponse_Response() -} - -type AdjustPSDResponse_Progress struct { - Progress *AdjustPSDProgress `protobuf:"bytes,1,opt,name=progress,proto3,oneof"` +func (x *AdjustPSDResponse) ProtoReflect() protoreflect.Message { + mi := &file_wavelength_router_wavelength_router_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -type AdjustPSDResponse_Error struct { - Error *AdjustPSDError `protobuf:"bytes,2,opt,name=error,proto3,oneof"` +// Deprecated: Use AdjustPSDResponse.ProtoReflect.Descriptor instead. +func (*AdjustPSDResponse) Descriptor() ([]byte, []int) { + return file_wavelength_router_wavelength_router_proto_rawDescGZIP(), []int{3} } -func (*AdjustPSDResponse_Progress) isAdjustPSDResponse_Response() {} - -func (*AdjustPSDResponse_Error) isAdjustPSDResponse_Response() {} - func (m *AdjustPSDResponse) GetResponse() isAdjustPSDResponse_Response { if m != nil { return m.Response @@ -412,61 +566,80 @@ func (m *AdjustPSDResponse) GetResponse() isAdjustPSDResponse_Response { return nil } -func (m *AdjustPSDResponse) GetProgress() *AdjustPSDProgress { - if x, ok := m.GetResponse().(*AdjustPSDResponse_Progress); ok { +func (x *AdjustPSDResponse) GetProgress() *AdjustPSDProgress { + if x, ok := x.GetResponse().(*AdjustPSDResponse_Progress); ok { return x.Progress } return nil } -func (m *AdjustPSDResponse) GetError() *AdjustPSDError { - if x, ok := m.GetResponse().(*AdjustPSDResponse_Error); ok { +func (x *AdjustPSDResponse) GetError() *AdjustPSDError { + if x, ok := x.GetResponse().(*AdjustPSDResponse_Error); ok { return x.Error } return nil } -// XXX_OneofWrappers is for the internal use of the proto package. -func (*AdjustPSDResponse) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*AdjustPSDResponse_Progress)(nil), - (*AdjustPSDResponse_Error)(nil), - } +type isAdjustPSDResponse_Response interface { + isAdjustPSDResponse_Response() } -// Deprecated: Do not use. -type CancelAdjustPSDResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type AdjustPSDResponse_Progress struct { + Progress *AdjustPSDProgress `protobuf:"bytes,1,opt,name=progress,proto3,oneof"` } -func (m *CancelAdjustPSDResponse) Reset() { *m = CancelAdjustPSDResponse{} } -func (m *CancelAdjustPSDResponse) String() string { return proto.CompactTextString(m) } -func (*CancelAdjustPSDResponse) ProtoMessage() {} -func (*CancelAdjustPSDResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_cb8b6c17dc3d7490, []int{4} +type AdjustPSDResponse_Error struct { + Error *AdjustPSDError `protobuf:"bytes,2,opt,name=error,proto3,oneof"` } -func (m *CancelAdjustPSDResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CancelAdjustPSDResponse.Unmarshal(m, b) -} -func (m *CancelAdjustPSDResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CancelAdjustPSDResponse.Marshal(b, m, deterministic) +func (*AdjustPSDResponse_Progress) isAdjustPSDResponse_Response() {} + +func (*AdjustPSDResponse_Error) isAdjustPSDResponse_Response() {} + +// Deprecated: Do not use. +type CancelAdjustPSDResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *CancelAdjustPSDResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_CancelAdjustPSDResponse.Merge(m, src) + +func (x *CancelAdjustPSDResponse) Reset() { + *x = CancelAdjustPSDResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_wavelength_router_wavelength_router_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *CancelAdjustPSDResponse) XXX_Size() int { - return xxx_messageInfo_CancelAdjustPSDResponse.Size(m) + +func (x *CancelAdjustPSDResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *CancelAdjustPSDResponse) XXX_DiscardUnknown() { - xxx_messageInfo_CancelAdjustPSDResponse.DiscardUnknown(m) + +func (*CancelAdjustPSDResponse) ProtoMessage() {} + +func (x *CancelAdjustPSDResponse) ProtoReflect() protoreflect.Message { + mi := &file_wavelength_router_wavelength_router_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_CancelAdjustPSDResponse proto.InternalMessageInfo +// Deprecated: Use CancelAdjustPSDResponse.ProtoReflect.Descriptor instead. +func (*CancelAdjustPSDResponse) Descriptor() ([]byte, []int) { + return file_wavelength_router_wavelength_router_proto_rawDescGZIP(), []int{4} +} type AdjustSpectrumRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // Absolute path to the /components/component list member in the OpenConfig // model corresponding to the port to perform the adjustment for. // (e.g., /components/component[name=wavelength-router-1-1]) @@ -474,135 +647,155 @@ type AdjustSpectrumRequest struct { // Describes the signal direction that should be adjusted relative to the // device. For example, "input" would be the signal entering into the device // from the far end device. - Direction AdjustSpectrumRequest_SignalDirection `protobuf:"varint,2,opt,name=direction,proto3,enum=gnoi.optical.AdjustSpectrumRequest_SignalDirection" json:"direction,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Direction AdjustSpectrumRequest_SignalDirection `protobuf:"varint,2,opt,name=direction,proto3,enum=gnoi.optical.AdjustSpectrumRequest_SignalDirection" json:"direction,omitempty"` } -func (m *AdjustSpectrumRequest) Reset() { *m = AdjustSpectrumRequest{} } -func (m *AdjustSpectrumRequest) String() string { return proto.CompactTextString(m) } -func (*AdjustSpectrumRequest) ProtoMessage() {} -func (*AdjustSpectrumRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_cb8b6c17dc3d7490, []int{5} +func (x *AdjustSpectrumRequest) Reset() { + *x = AdjustSpectrumRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_wavelength_router_wavelength_router_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *AdjustSpectrumRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_AdjustSpectrumRequest.Unmarshal(m, b) +func (x *AdjustSpectrumRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *AdjustSpectrumRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_AdjustSpectrumRequest.Marshal(b, m, deterministic) -} -func (m *AdjustSpectrumRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_AdjustSpectrumRequest.Merge(m, src) -} -func (m *AdjustSpectrumRequest) XXX_Size() int { - return xxx_messageInfo_AdjustSpectrumRequest.Size(m) -} -func (m *AdjustSpectrumRequest) XXX_DiscardUnknown() { - xxx_messageInfo_AdjustSpectrumRequest.DiscardUnknown(m) + +func (*AdjustSpectrumRequest) ProtoMessage() {} + +func (x *AdjustSpectrumRequest) ProtoReflect() protoreflect.Message { + mi := &file_wavelength_router_wavelength_router_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_AdjustSpectrumRequest proto.InternalMessageInfo +// Deprecated: Use AdjustSpectrumRequest.ProtoReflect.Descriptor instead. +func (*AdjustSpectrumRequest) Descriptor() ([]byte, []int) { + return file_wavelength_router_wavelength_router_proto_rawDescGZIP(), []int{5} +} -func (m *AdjustSpectrumRequest) GetComponent() *types.Path { - if m != nil { - return m.Component +func (x *AdjustSpectrumRequest) GetComponent() *types.Path { + if x != nil { + return x.Component } return nil } -func (m *AdjustSpectrumRequest) GetDirection() AdjustSpectrumRequest_SignalDirection { - if m != nil { - return m.Direction +func (x *AdjustSpectrumRequest) GetDirection() AdjustSpectrumRequest_SignalDirection { + if x != nil { + return x.Direction } return AdjustSpectrumRequest_DIRECTION_UNKNOWN } type AdjustSpectrumProgress struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // The state of the OTDR trace requested. Note that this does not include // error states as these should be returned as a gRPC error. - State AdjustSpectrumProgress_State `protobuf:"varint,1,opt,name=state,proto3,enum=gnoi.optical.AdjustSpectrumProgress_State" json:"state,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + State AdjustSpectrumProgress_State `protobuf:"varint,1,opt,name=state,proto3,enum=gnoi.optical.AdjustSpectrumProgress_State" json:"state,omitempty"` } -func (m *AdjustSpectrumProgress) Reset() { *m = AdjustSpectrumProgress{} } -func (m *AdjustSpectrumProgress) String() string { return proto.CompactTextString(m) } -func (*AdjustSpectrumProgress) ProtoMessage() {} -func (*AdjustSpectrumProgress) Descriptor() ([]byte, []int) { - return fileDescriptor_cb8b6c17dc3d7490, []int{6} +func (x *AdjustSpectrumProgress) Reset() { + *x = AdjustSpectrumProgress{} + if protoimpl.UnsafeEnabled { + mi := &file_wavelength_router_wavelength_router_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *AdjustSpectrumProgress) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_AdjustSpectrumProgress.Unmarshal(m, b) +func (x *AdjustSpectrumProgress) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *AdjustSpectrumProgress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_AdjustSpectrumProgress.Marshal(b, m, deterministic) -} -func (m *AdjustSpectrumProgress) XXX_Merge(src proto.Message) { - xxx_messageInfo_AdjustSpectrumProgress.Merge(m, src) -} -func (m *AdjustSpectrumProgress) XXX_Size() int { - return xxx_messageInfo_AdjustSpectrumProgress.Size(m) -} -func (m *AdjustSpectrumProgress) XXX_DiscardUnknown() { - xxx_messageInfo_AdjustSpectrumProgress.DiscardUnknown(m) + +func (*AdjustSpectrumProgress) ProtoMessage() {} + +func (x *AdjustSpectrumProgress) ProtoReflect() protoreflect.Message { + mi := &file_wavelength_router_wavelength_router_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_AdjustSpectrumProgress proto.InternalMessageInfo +// Deprecated: Use AdjustSpectrumProgress.ProtoReflect.Descriptor instead. +func (*AdjustSpectrumProgress) Descriptor() ([]byte, []int) { + return file_wavelength_router_wavelength_router_proto_rawDescGZIP(), []int{6} +} -func (m *AdjustSpectrumProgress) GetState() AdjustSpectrumProgress_State { - if m != nil { - return m.State +func (x *AdjustSpectrumProgress) GetState() AdjustSpectrumProgress_State { + if x != nil { + return x.State } return AdjustSpectrumProgress_UNKNOWN } type AdjustSpectrumError struct { - Type AdjustSpectrumError_Type `protobuf:"varint,1,opt,name=type,proto3,enum=gnoi.optical.AdjustSpectrumError_Type" json:"type,omitempty"` - Detail string `protobuf:"bytes,2,opt,name=detail,proto3" json:"detail,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *AdjustSpectrumError) Reset() { *m = AdjustSpectrumError{} } -func (m *AdjustSpectrumError) String() string { return proto.CompactTextString(m) } -func (*AdjustSpectrumError) ProtoMessage() {} -func (*AdjustSpectrumError) Descriptor() ([]byte, []int) { - return fileDescriptor_cb8b6c17dc3d7490, []int{7} + Type AdjustSpectrumError_Type `protobuf:"varint,1,opt,name=type,proto3,enum=gnoi.optical.AdjustSpectrumError_Type" json:"type,omitempty"` + Detail string `protobuf:"bytes,2,opt,name=detail,proto3" json:"detail,omitempty"` } -func (m *AdjustSpectrumError) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_AdjustSpectrumError.Unmarshal(m, b) -} -func (m *AdjustSpectrumError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_AdjustSpectrumError.Marshal(b, m, deterministic) -} -func (m *AdjustSpectrumError) XXX_Merge(src proto.Message) { - xxx_messageInfo_AdjustSpectrumError.Merge(m, src) +func (x *AdjustSpectrumError) Reset() { + *x = AdjustSpectrumError{} + if protoimpl.UnsafeEnabled { + mi := &file_wavelength_router_wavelength_router_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *AdjustSpectrumError) XXX_Size() int { - return xxx_messageInfo_AdjustSpectrumError.Size(m) + +func (x *AdjustSpectrumError) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *AdjustSpectrumError) XXX_DiscardUnknown() { - xxx_messageInfo_AdjustSpectrumError.DiscardUnknown(m) + +func (*AdjustSpectrumError) ProtoMessage() {} + +func (x *AdjustSpectrumError) ProtoReflect() protoreflect.Message { + mi := &file_wavelength_router_wavelength_router_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_AdjustSpectrumError proto.InternalMessageInfo +// Deprecated: Use AdjustSpectrumError.ProtoReflect.Descriptor instead. +func (*AdjustSpectrumError) Descriptor() ([]byte, []int) { + return file_wavelength_router_wavelength_router_proto_rawDescGZIP(), []int{7} +} -func (m *AdjustSpectrumError) GetType() AdjustSpectrumError_Type { - if m != nil { - return m.Type +func (x *AdjustSpectrumError) GetType() AdjustSpectrumError_Type { + if x != nil { + return x.Type } return AdjustSpectrumError_UNSPECIFIED } -func (m *AdjustSpectrumError) GetDetail() string { - if m != nil { - return m.Detail +func (x *AdjustSpectrumError) GetDetail() string { + if x != nil { + return x.Detail } return "" } @@ -613,56 +806,48 @@ func (m *AdjustSpectrumError) GetDetail() string { // adjustment is completed, an "error" message should be streamed if an // error is encountered or the RPC should be terminated on success. type AdjustSpectrumResponse struct { - // Types that are valid to be assigned to Response: + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Types that are assignable to Response: // *AdjustSpectrumResponse_Progress // *AdjustSpectrumResponse_Error - Response isAdjustSpectrumResponse_Response `protobuf_oneof:"response"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Response isAdjustSpectrumResponse_Response `protobuf_oneof:"response"` } -func (m *AdjustSpectrumResponse) Reset() { *m = AdjustSpectrumResponse{} } -func (m *AdjustSpectrumResponse) String() string { return proto.CompactTextString(m) } -func (*AdjustSpectrumResponse) ProtoMessage() {} -func (*AdjustSpectrumResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_cb8b6c17dc3d7490, []int{8} +func (x *AdjustSpectrumResponse) Reset() { + *x = AdjustSpectrumResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_wavelength_router_wavelength_router_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *AdjustSpectrumResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_AdjustSpectrumResponse.Unmarshal(m, b) -} -func (m *AdjustSpectrumResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_AdjustSpectrumResponse.Marshal(b, m, deterministic) -} -func (m *AdjustSpectrumResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_AdjustSpectrumResponse.Merge(m, src) -} -func (m *AdjustSpectrumResponse) XXX_Size() int { - return xxx_messageInfo_AdjustSpectrumResponse.Size(m) -} -func (m *AdjustSpectrumResponse) XXX_DiscardUnknown() { - xxx_messageInfo_AdjustSpectrumResponse.DiscardUnknown(m) +func (x *AdjustSpectrumResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_AdjustSpectrumResponse proto.InternalMessageInfo +func (*AdjustSpectrumResponse) ProtoMessage() {} -type isAdjustSpectrumResponse_Response interface { - isAdjustSpectrumResponse_Response() -} - -type AdjustSpectrumResponse_Progress struct { - Progress *AdjustSpectrumProgress `protobuf:"bytes,1,opt,name=progress,proto3,oneof"` +func (x *AdjustSpectrumResponse) ProtoReflect() protoreflect.Message { + mi := &file_wavelength_router_wavelength_router_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -type AdjustSpectrumResponse_Error struct { - Error *AdjustSpectrumError `protobuf:"bytes,2,opt,name=error,proto3,oneof"` +// Deprecated: Use AdjustSpectrumResponse.ProtoReflect.Descriptor instead. +func (*AdjustSpectrumResponse) Descriptor() ([]byte, []int) { + return file_wavelength_router_wavelength_router_proto_rawDescGZIP(), []int{8} } -func (*AdjustSpectrumResponse_Progress) isAdjustSpectrumResponse_Response() {} - -func (*AdjustSpectrumResponse_Error) isAdjustSpectrumResponse_Response() {} - func (m *AdjustSpectrumResponse) GetResponse() isAdjustSpectrumResponse_Response { if m != nil { return m.Response @@ -670,447 +855,420 @@ func (m *AdjustSpectrumResponse) GetResponse() isAdjustSpectrumResponse_Response return nil } -func (m *AdjustSpectrumResponse) GetProgress() *AdjustSpectrumProgress { - if x, ok := m.GetResponse().(*AdjustSpectrumResponse_Progress); ok { +func (x *AdjustSpectrumResponse) GetProgress() *AdjustSpectrumProgress { + if x, ok := x.GetResponse().(*AdjustSpectrumResponse_Progress); ok { return x.Progress } return nil } -func (m *AdjustSpectrumResponse) GetError() *AdjustSpectrumError { - if x, ok := m.GetResponse().(*AdjustSpectrumResponse_Error); ok { +func (x *AdjustSpectrumResponse) GetError() *AdjustSpectrumError { + if x, ok := x.GetResponse().(*AdjustSpectrumResponse_Error); ok { return x.Error } return nil } -// XXX_OneofWrappers is for the internal use of the proto package. -func (*AdjustSpectrumResponse) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*AdjustSpectrumResponse_Progress)(nil), - (*AdjustSpectrumResponse_Error)(nil), - } -} - -type CancelAdjustSpectrumResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CancelAdjustSpectrumResponse) Reset() { *m = CancelAdjustSpectrumResponse{} } -func (m *CancelAdjustSpectrumResponse) String() string { return proto.CompactTextString(m) } -func (*CancelAdjustSpectrumResponse) ProtoMessage() {} -func (*CancelAdjustSpectrumResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_cb8b6c17dc3d7490, []int{9} -} - -func (m *CancelAdjustSpectrumResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CancelAdjustSpectrumResponse.Unmarshal(m, b) -} -func (m *CancelAdjustSpectrumResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CancelAdjustSpectrumResponse.Marshal(b, m, deterministic) -} -func (m *CancelAdjustSpectrumResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_CancelAdjustSpectrumResponse.Merge(m, src) -} -func (m *CancelAdjustSpectrumResponse) XXX_Size() int { - return xxx_messageInfo_CancelAdjustSpectrumResponse.Size(m) -} -func (m *CancelAdjustSpectrumResponse) XXX_DiscardUnknown() { - xxx_messageInfo_CancelAdjustSpectrumResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_CancelAdjustSpectrumResponse proto.InternalMessageInfo - -func init() { - proto.RegisterEnum("gnoi.optical.AdjustPSDRequest_SignalDirection", AdjustPSDRequest_SignalDirection_name, AdjustPSDRequest_SignalDirection_value) - proto.RegisterEnum("gnoi.optical.AdjustPSDProgress_State", AdjustPSDProgress_State_name, AdjustPSDProgress_State_value) - proto.RegisterEnum("gnoi.optical.AdjustPSDError_Type", AdjustPSDError_Type_name, AdjustPSDError_Type_value) - proto.RegisterEnum("gnoi.optical.AdjustSpectrumRequest_SignalDirection", AdjustSpectrumRequest_SignalDirection_name, AdjustSpectrumRequest_SignalDirection_value) - proto.RegisterEnum("gnoi.optical.AdjustSpectrumProgress_State", AdjustSpectrumProgress_State_name, AdjustSpectrumProgress_State_value) - proto.RegisterEnum("gnoi.optical.AdjustSpectrumError_Type", AdjustSpectrumError_Type_name, AdjustSpectrumError_Type_value) - proto.RegisterType((*AdjustPSDRequest)(nil), "gnoi.optical.AdjustPSDRequest") - proto.RegisterType((*AdjustPSDProgress)(nil), "gnoi.optical.AdjustPSDProgress") - proto.RegisterType((*AdjustPSDError)(nil), "gnoi.optical.AdjustPSDError") - proto.RegisterType((*AdjustPSDResponse)(nil), "gnoi.optical.AdjustPSDResponse") - proto.RegisterType((*CancelAdjustPSDResponse)(nil), "gnoi.optical.CancelAdjustPSDResponse") - proto.RegisterType((*AdjustSpectrumRequest)(nil), "gnoi.optical.AdjustSpectrumRequest") - proto.RegisterType((*AdjustSpectrumProgress)(nil), "gnoi.optical.AdjustSpectrumProgress") - proto.RegisterType((*AdjustSpectrumError)(nil), "gnoi.optical.AdjustSpectrumError") - proto.RegisterType((*AdjustSpectrumResponse)(nil), "gnoi.optical.AdjustSpectrumResponse") - proto.RegisterType((*CancelAdjustSpectrumResponse)(nil), "gnoi.optical.CancelAdjustSpectrumResponse") -} - -func init() { - proto.RegisterFile("wavelength_router/wavelength_router.proto", fileDescriptor_cb8b6c17dc3d7490) -} - -var fileDescriptor_cb8b6c17dc3d7490 = []byte{ - // 697 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x95, 0xcb, 0x6e, 0xd3, 0x4a, - 0x18, 0xc7, 0x33, 0x69, 0xd3, 0x26, 0x5f, 0x7a, 0x1a, 0x77, 0x7a, 0x39, 0x55, 0xd5, 0xd3, 0x8b, - 0x4f, 0xcf, 0x51, 0xa9, 0x90, 0x13, 0xa5, 0xb0, 0xa0, 0x5c, 0x44, 0x6e, 0xa5, 0x11, 0xc5, 0x31, - 0xe3, 0x58, 0x15, 0x0b, 0x14, 0xb9, 0xee, 0x90, 0x1a, 0xa5, 0x1e, 0x63, 0x4f, 0x40, 0x7d, 0x00, - 0x24, 0x24, 0x76, 0xac, 0xd8, 0x22, 0x16, 0xbc, 0x0f, 0x6f, 0xc1, 0x8a, 0x57, 0x40, 0xbe, 0xc4, - 0xa9, 0x93, 0x26, 0xad, 0x10, 0xea, 0xc6, 0x92, 0x67, 0xfe, 0x33, 0xdf, 0xef, 0xfb, 0xeb, 0x3f, - 0x33, 0x70, 0xeb, 0x9d, 0xfe, 0x96, 0x76, 0xa8, 0xd5, 0xe6, 0xa7, 0x2d, 0x87, 0x75, 0x39, 0x75, - 0xf2, 0x43, 0x23, 0x92, 0xed, 0x30, 0xce, 0xf0, 0x4c, 0xdb, 0x62, 0xa6, 0x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8d, 0x00, 0xef, 0xe9, 0x25, 0xd5, 0x13, 0x93, 0x60, 0x8d, 0x98, 0x87, 0x94, 0xff, - 0x8f, 0xb3, 0x30, 0xdd, 0xe7, 0xca, 0xc2, 0x34, 0xd1, 0x64, 0xb9, 0x2e, 0x3f, 0x11, 0x10, 0x9e, - 0x81, 0x74, 0xa5, 0xf1, 0x4c, 0x39, 0xac, 0x35, 0x6b, 0x21, 0xc7, 0x17, 0x04, 0xb3, 0xd1, 0xbe, - 0x35, 0xc7, 0x61, 0x0e, 0xbe, 0x0b, 0x93, 0x9e, 0xb5, 0x21, 0xc3, 0xe6, 0x08, 0x06, 0x5f, 0x2b, - 0x35, 0xcf, 0x6d, 0x4a, 0x7c, 0x39, 0x5e, 0x82, 0xa9, 0x13, 0xca, 0x75, 0xb3, 0xe3, 0xbb, 0x9e, - 0x21, 0xe1, 0x9f, 0xf8, 0x00, 0x26, 0x3d, 0x15, 0xce, 0x41, 0x56, 0x93, 0x55, 0xa5, 0x56, 0xa9, - 0xef, 0xd7, 0x6b, 0x55, 0x21, 0x81, 0xff, 0x82, 0x8c, 0xd2, 0x20, 0xcd, 0x56, 0x59, 0x53, 0x5f, - 0x04, 0x5e, 0x1d, 0x94, 0x48, 0xf5, 0xa8, 0x44, 0x6a, 0xad, 0xfd, 0x52, 0xfd, 0x50, 0x23, 0x3d, - 0xc6, 0xcf, 0x17, 0xbd, 0x22, 0xd4, 0xb5, 0x99, 0xe5, 0x52, 0xfc, 0x10, 0xd2, 0x76, 0xe8, 0x43, - 0x98, 0x8b, 0xf5, 0x2b, 0xec, 0x3a, 0x48, 0x90, 0x68, 0x09, 0xbe, 0x03, 0x29, 0xea, 0xb5, 0xe0, - 0xd3, 0x66, 0x8b, 0xab, 0xe3, 0xda, 0x3c, 0x48, 0x90, 0x40, 0xec, 0xe1, 0x94, 0x01, 0xd2, 0x4e, - 0x08, 0x21, 0xfe, 0x03, 0x7f, 0x57, 0x74, 0xcb, 0xa0, 0x9d, 0x21, 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 0x05, 0xa9, 0x28, 0x15, 0x8e, 0xa7, 0xfc, 0x77, 0x76, 0xf7, 0x57, 0x00, 0x00, 0x00, 0xff, - 0xff, 0xe6, 0xd4, 0x57, 0x43, 0xd0, 0x07, 0x00, 0x00, -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// WavelengthRouterClient is the client API for WavelengthRouter service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type WavelengthRouterClient interface { - // AdjustPSD performs a power spectral density (PSD) adjustment on an optical - // DWDM line system port. - // - // This RPC's initial message triggers adjustments. The target should validate - // the request, and immediately begin the adjustment as long as another - // adjustment is not already running. As this RPC may take multiple minutes, - // the state should be regularly streamed to the client. The operation should - // be completed on the device regardless of the state of the RPC channel to - // the initiating client. A client that becomes disconnected during an - // operation can reconnect, requesting the same operation, and receive status - // updates this way. There is no means by which an adjustment that has been - // triggered by a client can be cancelled unless the CancelAdjustPSD RPC is - // used. - // DEPRECATED, use AdjustSpectrum. - // - // Deprecated: Do not use. - AdjustPSD(ctx context.Context, in *AdjustPSDRequest, opts ...grpc.CallOption) (WavelengthRouter_AdjustPSDClient, error) - // CancelAdjustPSD cancels an in-progress AdjustPSD request. If an - // adjustment is not being performed for the provided request, then the RPC - // should return successfully. - // DEPRECATED, use CancelAdjustSpectrum. - // - // Deprecated: Do not use. - CancelAdjustPSD(ctx context.Context, in *AdjustPSDRequest, opts ...grpc.CallOption) (*CancelAdjustPSDResponse, error) - // AdjustSpectrum performs a spectrum power adjustment on an optical - // DWDM line system port. - // - // This RPC's initial message triggers adjustments. The target should validate - // the request, and immediately begin the adjustment as long as another - // adjustment is not already running. As this RPC may take multiple minutes, - // the state should be regularly streamed to the client. The operation should - // be completed on the device regardless of the state of the RPC channel to - // the initiating client. A client that becomes disconnected during an - // operation can reconnect, requesting the same operation, and receive status - // updates this way. There is no means by which an adjustment that has been - // triggered by a client can be cancelled unless the CancelAdjustSpectrum - // RPC is used. - AdjustSpectrum(ctx context.Context, in *AdjustSpectrumRequest, opts ...grpc.CallOption) (WavelengthRouter_AdjustSpectrumClient, error) - // CancelAdjustSpectrum cancels an in-progress AdjustSpectrum request. If an - // adjustment is not being performed for the provided request, then the RPC - // should return successfully. - CancelAdjustSpectrum(ctx context.Context, in *AdjustSpectrumRequest, opts ...grpc.CallOption) (*CancelAdjustSpectrumResponse, error) -} - -type wavelengthRouterClient struct { - cc *grpc.ClientConn -} - -func NewWavelengthRouterClient(cc *grpc.ClientConn) WavelengthRouterClient { - return &wavelengthRouterClient{cc} -} - -// Deprecated: Do not use. -func (c *wavelengthRouterClient) AdjustPSD(ctx context.Context, in *AdjustPSDRequest, opts ...grpc.CallOption) (WavelengthRouter_AdjustPSDClient, error) { - stream, err := c.cc.NewStream(ctx, &_WavelengthRouter_serviceDesc.Streams[0], "/gnoi.optical.WavelengthRouter/AdjustPSD", opts...) - if err != nil { - return nil, err - } - x := &wavelengthRouterAdjustPSDClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type WavelengthRouter_AdjustPSDClient interface { - Recv() (*AdjustPSDResponse, error) - grpc.ClientStream -} - -type wavelengthRouterAdjustPSDClient struct { - grpc.ClientStream -} - -func (x *wavelengthRouterAdjustPSDClient) Recv() (*AdjustPSDResponse, error) { - m := new(AdjustPSDResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil +type isAdjustSpectrumResponse_Response interface { + isAdjustSpectrumResponse_Response() } -// Deprecated: Do not use. -func (c *wavelengthRouterClient) CancelAdjustPSD(ctx context.Context, in *AdjustPSDRequest, opts ...grpc.CallOption) (*CancelAdjustPSDResponse, error) { - out := new(CancelAdjustPSDResponse) - err := c.cc.Invoke(ctx, "/gnoi.optical.WavelengthRouter/CancelAdjustPSD", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil +type AdjustSpectrumResponse_Progress struct { + Progress *AdjustSpectrumProgress `protobuf:"bytes,1,opt,name=progress,proto3,oneof"` } -func (c *wavelengthRouterClient) AdjustSpectrum(ctx context.Context, in *AdjustSpectrumRequest, opts ...grpc.CallOption) (WavelengthRouter_AdjustSpectrumClient, error) { - stream, err := c.cc.NewStream(ctx, &_WavelengthRouter_serviceDesc.Streams[1], "/gnoi.optical.WavelengthRouter/AdjustSpectrum", opts...) - if err != nil { - return nil, err - } - x := &wavelengthRouterAdjustSpectrumClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil +type AdjustSpectrumResponse_Error struct { + Error *AdjustSpectrumError `protobuf:"bytes,2,opt,name=error,proto3,oneof"` } -type WavelengthRouter_AdjustSpectrumClient interface { - Recv() (*AdjustSpectrumResponse, error) - grpc.ClientStream -} +func (*AdjustSpectrumResponse_Progress) isAdjustSpectrumResponse_Response() {} -type wavelengthRouterAdjustSpectrumClient struct { - grpc.ClientStream -} +func (*AdjustSpectrumResponse_Error) isAdjustSpectrumResponse_Response() {} -func (x *wavelengthRouterAdjustSpectrumClient) Recv() (*AdjustSpectrumResponse, error) { - m := new(AdjustSpectrumResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil +type CancelAdjustSpectrumResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (c *wavelengthRouterClient) CancelAdjustSpectrum(ctx context.Context, in *AdjustSpectrumRequest, opts ...grpc.CallOption) (*CancelAdjustSpectrumResponse, error) { - out := new(CancelAdjustSpectrumResponse) - err := c.cc.Invoke(ctx, "/gnoi.optical.WavelengthRouter/CancelAdjustSpectrum", in, out, opts...) - if err != nil { - return nil, err +func (x *CancelAdjustSpectrumResponse) Reset() { + *x = CancelAdjustSpectrumResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_wavelength_router_wavelength_router_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return out, nil -} - -// WavelengthRouterServer is the server API for WavelengthRouter service. -type WavelengthRouterServer interface { - // AdjustPSD performs a power spectral density (PSD) adjustment on an optical - // DWDM line system port. - // - // This RPC's initial message triggers adjustments. The target should validate - // the request, and immediately begin the adjustment as long as another - // adjustment is not already running. As this RPC may take multiple minutes, - // the state should be regularly streamed to the client. The operation should - // be completed on the device regardless of the state of the RPC channel to - // the initiating client. A client that becomes disconnected during an - // operation can reconnect, requesting the same operation, and receive status - // updates this way. There is no means by which an adjustment that has been - // triggered by a client can be cancelled unless the CancelAdjustPSD RPC is - // used. - // DEPRECATED, use AdjustSpectrum. - // - // Deprecated: Do not use. - AdjustPSD(*AdjustPSDRequest, WavelengthRouter_AdjustPSDServer) error - // CancelAdjustPSD cancels an in-progress AdjustPSD request. If an - // adjustment is not being performed for the provided request, then the RPC - // should return successfully. - // DEPRECATED, use CancelAdjustSpectrum. - // - // Deprecated: Do not use. - CancelAdjustPSD(context.Context, *AdjustPSDRequest) (*CancelAdjustPSDResponse, error) - // AdjustSpectrum performs a spectrum power adjustment on an optical - // DWDM line system port. - // - // This RPC's initial message triggers adjustments. The target should validate - // the request, and immediately begin the adjustment as long as another - // adjustment is not already running. As this RPC may take multiple minutes, - // the state should be regularly streamed to the client. The operation should - // be completed on the device regardless of the state of the RPC channel to - // the initiating client. A client that becomes disconnected during an - // operation can reconnect, requesting the same operation, and receive status - // updates this way. There is no means by which an adjustment that has been - // triggered by a client can be cancelled unless the CancelAdjustSpectrum - // RPC is used. - AdjustSpectrum(*AdjustSpectrumRequest, WavelengthRouter_AdjustSpectrumServer) error - // CancelAdjustSpectrum cancels an in-progress AdjustSpectrum request. If an - // adjustment is not being performed for the provided request, then the RPC - // should return successfully. - CancelAdjustSpectrum(context.Context, *AdjustSpectrumRequest) (*CancelAdjustSpectrumResponse, error) -} - -// UnimplementedWavelengthRouterServer can be embedded to have forward compatible implementations. -type UnimplementedWavelengthRouterServer struct { -} - -func (*UnimplementedWavelengthRouterServer) AdjustPSD(req *AdjustPSDRequest, srv WavelengthRouter_AdjustPSDServer) error { - return status.Errorf(codes.Unimplemented, "method AdjustPSD not implemented") -} -func (*UnimplementedWavelengthRouterServer) CancelAdjustPSD(ctx context.Context, req *AdjustPSDRequest) (*CancelAdjustPSDResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CancelAdjustPSD not implemented") -} -func (*UnimplementedWavelengthRouterServer) AdjustSpectrum(req *AdjustSpectrumRequest, srv WavelengthRouter_AdjustSpectrumServer) error { - return status.Errorf(codes.Unimplemented, "method AdjustSpectrum not implemented") -} -func (*UnimplementedWavelengthRouterServer) CancelAdjustSpectrum(ctx context.Context, req *AdjustSpectrumRequest) (*CancelAdjustSpectrumResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CancelAdjustSpectrum not implemented") -} - -func RegisterWavelengthRouterServer(s *grpc.Server, srv WavelengthRouterServer) { - s.RegisterService(&_WavelengthRouter_serviceDesc, srv) -} - -func _WavelengthRouter_AdjustPSD_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(AdjustPSDRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(WavelengthRouterServer).AdjustPSD(m, &wavelengthRouterAdjustPSDServer{stream}) } -type WavelengthRouter_AdjustPSDServer interface { - Send(*AdjustPSDResponse) error - grpc.ServerStream +func (x *CancelAdjustSpectrumResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -type wavelengthRouterAdjustPSDServer struct { - grpc.ServerStream -} +func (*CancelAdjustSpectrumResponse) ProtoMessage() {} -func (x *wavelengthRouterAdjustPSDServer) Send(m *AdjustPSDResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _WavelengthRouter_CancelAdjustPSD_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(AdjustPSDRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(WavelengthRouterServer).CancelAdjustPSD(ctx, in) +func (x *CancelAdjustSpectrumResponse) ProtoReflect() protoreflect.Message { + mi := &file_wavelength_router_wavelength_router_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.optical.WavelengthRouter/CancelAdjustPSD", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(WavelengthRouterServer).CancelAdjustPSD(ctx, req.(*AdjustPSDRequest)) - } - return interceptor(ctx, in, info, handler) + return mi.MessageOf(x) } -func _WavelengthRouter_AdjustSpectrum_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(AdjustSpectrumRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(WavelengthRouterServer).AdjustSpectrum(m, &wavelengthRouterAdjustSpectrumServer{stream}) -} - -type WavelengthRouter_AdjustSpectrumServer interface { - Send(*AdjustSpectrumResponse) error - grpc.ServerStream -} - -type wavelengthRouterAdjustSpectrumServer struct { - grpc.ServerStream -} - -func (x *wavelengthRouterAdjustSpectrumServer) Send(m *AdjustSpectrumResponse) error { - return x.ServerStream.SendMsg(m) -} +// Deprecated: Use CancelAdjustSpectrumResponse.ProtoReflect.Descriptor instead. +func (*CancelAdjustSpectrumResponse) Descriptor() ([]byte, []int) { + return file_wavelength_router_wavelength_router_proto_rawDescGZIP(), []int{9} +} + +var File_wavelength_router_wavelength_router_proto protoreflect.FileDescriptor + +var file_wavelength_router_wavelength_router_proto_rawDesc = []byte{ + 0x0a, 0x29, 0x77, 0x61, 0x76, 0x65, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x5f, 0x72, 0x6f, 0x75, + 0x74, 0x65, 0x72, 0x2f, 0x77, 0x61, 0x76, 0x65, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x5f, 0x72, + 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x67, 0x6e, 0x6f, + 0x69, 0x2e, 0x6f, 0x70, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x1a, 0x2c, 0x67, 0x69, 0x74, 0x68, 0x75, + 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x2f, 0x67, 0x6e, 0x6f, 0x69, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x74, 0x79, 0x70, 0x65, + 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xe9, 0x01, 0x0a, 0x10, 0x41, 0x64, 0x6a, 0x75, + 0x73, 0x74, 0x50, 0x53, 0x44, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2e, 0x0a, 0x09, + 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x10, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x50, 0x61, 0x74, + 0x68, 0x52, 0x09, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x12, 0x4c, 0x0a, 0x09, + 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, + 0x2e, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x70, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x2e, 0x41, + 0x64, 0x6a, 0x75, 0x73, 0x74, 0x50, 0x53, 0x44, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, + 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, + 0x09, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x53, 0x0a, 0x0f, 0x53, 0x69, + 0x67, 0x6e, 0x61, 0x6c, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x15, 0x0a, + 0x11, 0x44, 0x49, 0x52, 0x45, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, + 0x57, 0x4e, 0x10, 0x00, 0x12, 0x13, 0x0a, 0x0f, 0x44, 0x49, 0x52, 0x45, 0x43, 0x54, 0x49, 0x4f, + 0x4e, 0x5f, 0x49, 0x4e, 0x50, 0x55, 0x54, 0x10, 0x01, 0x12, 0x14, 0x0a, 0x10, 0x44, 0x49, 0x52, + 0x45, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x4f, 0x55, 0x54, 0x50, 0x55, 0x54, 0x10, 0x02, 0x3a, + 0x02, 0x18, 0x01, 0x22, 0x85, 0x01, 0x0a, 0x11, 0x41, 0x64, 0x6a, 0x75, 0x73, 0x74, 0x50, 0x53, + 0x44, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x12, 0x3b, 0x0a, 0x05, 0x73, 0x74, 0x61, + 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x25, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, + 0x6f, 0x70, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x2e, 0x41, 0x64, 0x6a, 0x75, 0x73, 0x74, 0x50, 0x53, + 0x44, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, + 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x22, 0x2f, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, + 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, + 0x52, 0x55, 0x4e, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x43, 0x4f, 0x4d, + 0x50, 0x4c, 0x45, 0x54, 0x45, 0x10, 0x02, 0x3a, 0x02, 0x18, 0x01, 0x22, 0xa1, 0x01, 0x0a, 0x0e, + 0x41, 0x64, 0x6a, 0x75, 0x73, 0x74, 0x50, 0x53, 0x44, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x35, + 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x67, + 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x70, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x2e, 0x41, 0x64, 0x6a, 0x75, + 0x73, 0x74, 0x50, 0x53, 0x44, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, + 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x22, 0x3c, 0x0a, + 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0f, 0x0a, 0x0b, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, + 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x50, 0x4f, 0x52, 0x54, 0x5f, 0x42, + 0x55, 0x53, 0x59, 0x10, 0x01, 0x12, 0x14, 0x0a, 0x10, 0x48, 0x41, 0x52, 0x44, 0x57, 0x41, 0x52, + 0x45, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x55, 0x52, 0x45, 0x10, 0x02, 0x3a, 0x02, 0x18, 0x01, 0x22, + 0x98, 0x01, 0x0a, 0x11, 0x41, 0x64, 0x6a, 0x75, 0x73, 0x74, 0x50, 0x53, 0x44, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3d, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, + 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, + 0x70, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x2e, 0x41, 0x64, 0x6a, 0x75, 0x73, 0x74, 0x50, 0x53, 0x44, + 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x48, 0x00, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x67, + 0x72, 0x65, 0x73, 0x73, 0x12, 0x34, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x70, 0x74, 0x69, 0x63, + 0x61, 0x6c, 0x2e, 0x41, 0x64, 0x6a, 0x75, 0x73, 0x74, 0x50, 0x53, 0x44, 0x45, 0x72, 0x72, 0x6f, + 0x72, 0x48, 0x00, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x3a, 0x02, 0x18, 0x01, 0x42, 0x0a, + 0x0a, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1d, 0x0a, 0x17, 0x43, 0x61, + 0x6e, 0x63, 0x65, 0x6c, 0x41, 0x64, 0x6a, 0x75, 0x73, 0x74, 0x50, 0x53, 0x44, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x3a, 0x02, 0x18, 0x01, 0x22, 0xef, 0x01, 0x0a, 0x15, 0x41, 0x64, + 0x6a, 0x75, 0x73, 0x74, 0x53, 0x70, 0x65, 0x63, 0x74, 0x72, 0x75, 0x6d, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x2e, 0x0a, 0x09, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x74, 0x79, + 0x70, 0x65, 0x73, 0x2e, 0x50, 0x61, 0x74, 0x68, 0x52, 0x09, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, + 0x65, 0x6e, 0x74, 0x12, 0x51, 0x0a, 0x09, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x33, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x70, + 0x74, 0x69, 0x63, 0x61, 0x6c, 0x2e, 0x41, 0x64, 0x6a, 0x75, 0x73, 0x74, 0x53, 0x70, 0x65, 0x63, + 0x74, 0x72, 0x75, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x53, 0x69, 0x67, 0x6e, + 0x61, 0x6c, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x09, 0x64, 0x69, 0x72, + 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x53, 0x0a, 0x0f, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, + 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x15, 0x0a, 0x11, 0x44, 0x49, 0x52, + 0x45, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, + 0x12, 0x13, 0x0a, 0x0f, 0x44, 0x49, 0x52, 0x45, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x49, 0x4e, + 0x50, 0x55, 0x54, 0x10, 0x01, 0x12, 0x14, 0x0a, 0x10, 0x44, 0x49, 0x52, 0x45, 0x43, 0x54, 0x49, + 0x4f, 0x4e, 0x5f, 0x4f, 0x55, 0x54, 0x50, 0x55, 0x54, 0x10, 0x02, 0x22, 0x8b, 0x01, 0x0a, 0x16, + 0x41, 0x64, 0x6a, 0x75, 0x73, 0x74, 0x53, 0x70, 0x65, 0x63, 0x74, 0x72, 0x75, 0x6d, 0x50, 0x72, + 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x12, 0x40, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2a, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x70, 0x74, + 0x69, 0x63, 0x61, 0x6c, 0x2e, 0x41, 0x64, 0x6a, 0x75, 0x73, 0x74, 0x53, 0x70, 0x65, 0x63, 0x74, + 0x72, 0x75, 0x6d, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x2e, 0x53, 0x74, 0x61, 0x74, + 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x22, 0x2f, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, + 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x0b, + 0x0a, 0x07, 0x52, 0x55, 0x4e, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x43, + 0x4f, 0x4d, 0x50, 0x4c, 0x45, 0x54, 0x45, 0x10, 0x02, 0x22, 0xa7, 0x01, 0x0a, 0x13, 0x41, 0x64, + 0x6a, 0x75, 0x73, 0x74, 0x53, 0x70, 0x65, 0x63, 0x74, 0x72, 0x75, 0x6d, 0x45, 0x72, 0x72, 0x6f, + 0x72, 0x12, 0x3a, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, + 0x26, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x70, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x2e, 0x41, + 0x64, 0x6a, 0x75, 0x73, 0x74, 0x53, 0x70, 0x65, 0x63, 0x74, 0x72, 0x75, 0x6d, 0x45, 0x72, 0x72, + 0x6f, 0x72, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, + 0x06, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, + 0x65, 0x74, 0x61, 0x69, 0x6c, 0x22, 0x3c, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0f, 0x0a, + 0x0b, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0d, + 0x0a, 0x09, 0x50, 0x4f, 0x52, 0x54, 0x5f, 0x42, 0x55, 0x53, 0x59, 0x10, 0x01, 0x12, 0x14, 0x0a, + 0x10, 0x48, 0x41, 0x52, 0x44, 0x57, 0x41, 0x52, 0x45, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x55, 0x52, + 0x45, 0x10, 0x02, 0x22, 0xa3, 0x01, 0x0a, 0x16, 0x41, 0x64, 0x6a, 0x75, 0x73, 0x74, 0x53, 0x70, + 0x65, 0x63, 0x74, 0x72, 0x75, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x42, + 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x24, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x70, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x2e, + 0x41, 0x64, 0x6a, 0x75, 0x73, 0x74, 0x53, 0x70, 0x65, 0x63, 0x74, 0x72, 0x75, 0x6d, 0x50, 0x72, + 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x48, 0x00, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, + 0x73, 0x73, 0x12, 0x39, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x21, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x70, 0x74, 0x69, 0x63, 0x61, 0x6c, + 0x2e, 0x41, 0x64, 0x6a, 0x75, 0x73, 0x74, 0x53, 0x70, 0x65, 0x63, 0x74, 0x72, 0x75, 0x6d, 0x45, + 0x72, 0x72, 0x6f, 0x72, 0x48, 0x00, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x42, 0x0a, 0x0a, + 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1e, 0x0a, 0x1c, 0x43, 0x61, 0x6e, + 0x63, 0x65, 0x6c, 0x41, 0x64, 0x6a, 0x75, 0x73, 0x74, 0x53, 0x70, 0x65, 0x63, 0x74, 0x72, 0x75, + 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0x92, 0x03, 0x0a, 0x10, 0x57, 0x61, + 0x76, 0x65, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x12, 0x53, + 0x0a, 0x09, 0x41, 0x64, 0x6a, 0x75, 0x73, 0x74, 0x50, 0x53, 0x44, 0x12, 0x1e, 0x2e, 0x67, 0x6e, + 0x6f, 0x69, 0x2e, 0x6f, 0x70, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x2e, 0x41, 0x64, 0x6a, 0x75, 0x73, + 0x74, 0x50, 0x53, 0x44, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x67, 0x6e, + 0x6f, 0x69, 0x2e, 0x6f, 0x70, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x2e, 0x41, 0x64, 0x6a, 0x75, 0x73, + 0x74, 0x50, 0x53, 0x44, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x88, 0x02, + 0x01, 0x30, 0x01, 0x12, 0x5d, 0x0a, 0x0f, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x41, 0x64, 0x6a, + 0x75, 0x73, 0x74, 0x50, 0x53, 0x44, 0x12, 0x1e, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x70, + 0x74, 0x69, 0x63, 0x61, 0x6c, 0x2e, 0x41, 0x64, 0x6a, 0x75, 0x73, 0x74, 0x50, 0x53, 0x44, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x70, + 0x74, 0x69, 0x63, 0x61, 0x6c, 0x2e, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x41, 0x64, 0x6a, 0x75, + 0x73, 0x74, 0x50, 0x53, 0x44, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x88, + 0x02, 0x01, 0x12, 0x5f, 0x0a, 0x0e, 0x41, 0x64, 0x6a, 0x75, 0x73, 0x74, 0x53, 0x70, 0x65, 0x63, + 0x74, 0x72, 0x75, 0x6d, 0x12, 0x23, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x70, 0x74, 0x69, + 0x63, 0x61, 0x6c, 0x2e, 0x41, 0x64, 0x6a, 0x75, 0x73, 0x74, 0x53, 0x70, 0x65, 0x63, 0x74, 0x72, + 0x75, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x67, 0x6e, 0x6f, 0x69, + 0x2e, 0x6f, 0x70, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x2e, 0x41, 0x64, 0x6a, 0x75, 0x73, 0x74, 0x53, + 0x70, 0x65, 0x63, 0x74, 0x72, 0x75, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x00, 0x30, 0x01, 0x12, 0x69, 0x0a, 0x14, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x41, 0x64, 0x6a, + 0x75, 0x73, 0x74, 0x53, 0x70, 0x65, 0x63, 0x74, 0x72, 0x75, 0x6d, 0x12, 0x23, 0x2e, 0x67, 0x6e, + 0x6f, 0x69, 0x2e, 0x6f, 0x70, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x2e, 0x41, 0x64, 0x6a, 0x75, 0x73, + 0x74, 0x53, 0x70, 0x65, 0x63, 0x74, 0x72, 0x75, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x2a, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x70, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x2e, + 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x41, 0x64, 0x6a, 0x75, 0x73, 0x74, 0x53, 0x70, 0x65, 0x63, + 0x74, 0x72, 0x75, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x36, + 0x5a, 0x2c, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, + 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x67, 0x6e, 0x6f, 0x69, 0x2f, 0x77, 0x61, 0x76, + 0x65, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x5f, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0xd2, 0x3e, + 0x05, 0x30, 0x2e, 0x32, 0x2e, 0x30, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_wavelength_router_wavelength_router_proto_rawDescOnce sync.Once + file_wavelength_router_wavelength_router_proto_rawDescData = file_wavelength_router_wavelength_router_proto_rawDesc +) -func _WavelengthRouter_CancelAdjustSpectrum_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(AdjustSpectrumRequest) - if err := dec(in); err != nil { - return nil, err +func file_wavelength_router_wavelength_router_proto_rawDescGZIP() []byte { + file_wavelength_router_wavelength_router_proto_rawDescOnce.Do(func() { + file_wavelength_router_wavelength_router_proto_rawDescData = protoimpl.X.CompressGZIP(file_wavelength_router_wavelength_router_proto_rawDescData) + }) + return file_wavelength_router_wavelength_router_proto_rawDescData +} + +var file_wavelength_router_wavelength_router_proto_enumTypes = make([]protoimpl.EnumInfo, 6) +var file_wavelength_router_wavelength_router_proto_msgTypes = make([]protoimpl.MessageInfo, 10) +var file_wavelength_router_wavelength_router_proto_goTypes = []interface{}{ + (AdjustPSDRequest_SignalDirection)(0), // 0: gnoi.optical.AdjustPSDRequest.SignalDirection + (AdjustPSDProgress_State)(0), // 1: gnoi.optical.AdjustPSDProgress.State + (AdjustPSDError_Type)(0), // 2: gnoi.optical.AdjustPSDError.Type + (AdjustSpectrumRequest_SignalDirection)(0), // 3: gnoi.optical.AdjustSpectrumRequest.SignalDirection + (AdjustSpectrumProgress_State)(0), // 4: gnoi.optical.AdjustSpectrumProgress.State + (AdjustSpectrumError_Type)(0), // 5: gnoi.optical.AdjustSpectrumError.Type + (*AdjustPSDRequest)(nil), // 6: gnoi.optical.AdjustPSDRequest + (*AdjustPSDProgress)(nil), // 7: gnoi.optical.AdjustPSDProgress + (*AdjustPSDError)(nil), // 8: gnoi.optical.AdjustPSDError + (*AdjustPSDResponse)(nil), // 9: gnoi.optical.AdjustPSDResponse + (*CancelAdjustPSDResponse)(nil), // 10: gnoi.optical.CancelAdjustPSDResponse + (*AdjustSpectrumRequest)(nil), // 11: gnoi.optical.AdjustSpectrumRequest + (*AdjustSpectrumProgress)(nil), // 12: gnoi.optical.AdjustSpectrumProgress + (*AdjustSpectrumError)(nil), // 13: gnoi.optical.AdjustSpectrumError + (*AdjustSpectrumResponse)(nil), // 14: gnoi.optical.AdjustSpectrumResponse + (*CancelAdjustSpectrumResponse)(nil), // 15: gnoi.optical.CancelAdjustSpectrumResponse + (*types.Path)(nil), // 16: gnoi.types.Path +} +var file_wavelength_router_wavelength_router_proto_depIdxs = []int32{ + 16, // 0: gnoi.optical.AdjustPSDRequest.component:type_name -> gnoi.types.Path + 0, // 1: gnoi.optical.AdjustPSDRequest.direction:type_name -> gnoi.optical.AdjustPSDRequest.SignalDirection + 1, // 2: gnoi.optical.AdjustPSDProgress.state:type_name -> gnoi.optical.AdjustPSDProgress.State + 2, // 3: gnoi.optical.AdjustPSDError.type:type_name -> gnoi.optical.AdjustPSDError.Type + 7, // 4: gnoi.optical.AdjustPSDResponse.progress:type_name -> gnoi.optical.AdjustPSDProgress + 8, // 5: gnoi.optical.AdjustPSDResponse.error:type_name -> gnoi.optical.AdjustPSDError + 16, // 6: gnoi.optical.AdjustSpectrumRequest.component:type_name -> gnoi.types.Path + 3, // 7: gnoi.optical.AdjustSpectrumRequest.direction:type_name -> gnoi.optical.AdjustSpectrumRequest.SignalDirection + 4, // 8: gnoi.optical.AdjustSpectrumProgress.state:type_name -> gnoi.optical.AdjustSpectrumProgress.State + 5, // 9: gnoi.optical.AdjustSpectrumError.type:type_name -> gnoi.optical.AdjustSpectrumError.Type + 12, // 10: gnoi.optical.AdjustSpectrumResponse.progress:type_name -> gnoi.optical.AdjustSpectrumProgress + 13, // 11: gnoi.optical.AdjustSpectrumResponse.error:type_name -> gnoi.optical.AdjustSpectrumError + 6, // 12: gnoi.optical.WavelengthRouter.AdjustPSD:input_type -> gnoi.optical.AdjustPSDRequest + 6, // 13: gnoi.optical.WavelengthRouter.CancelAdjustPSD:input_type -> gnoi.optical.AdjustPSDRequest + 11, // 14: gnoi.optical.WavelengthRouter.AdjustSpectrum:input_type -> gnoi.optical.AdjustSpectrumRequest + 11, // 15: gnoi.optical.WavelengthRouter.CancelAdjustSpectrum:input_type -> gnoi.optical.AdjustSpectrumRequest + 9, // 16: gnoi.optical.WavelengthRouter.AdjustPSD:output_type -> gnoi.optical.AdjustPSDResponse + 10, // 17: gnoi.optical.WavelengthRouter.CancelAdjustPSD:output_type -> gnoi.optical.CancelAdjustPSDResponse + 14, // 18: gnoi.optical.WavelengthRouter.AdjustSpectrum:output_type -> gnoi.optical.AdjustSpectrumResponse + 15, // 19: gnoi.optical.WavelengthRouter.CancelAdjustSpectrum:output_type -> gnoi.optical.CancelAdjustSpectrumResponse + 16, // [16:20] is the sub-list for method output_type + 12, // [12:16] is the sub-list for method input_type + 12, // [12:12] is the sub-list for extension type_name + 12, // [12:12] is the sub-list for extension extendee + 0, // [0:12] is the sub-list for field type_name +} + +func init() { file_wavelength_router_wavelength_router_proto_init() } +func file_wavelength_router_wavelength_router_proto_init() { + if File_wavelength_router_wavelength_router_proto != nil { + return } - if interceptor == nil { - return srv.(WavelengthRouterServer).CancelAdjustSpectrum(ctx, in) + if !protoimpl.UnsafeEnabled { + file_wavelength_router_wavelength_router_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdjustPSDRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_wavelength_router_wavelength_router_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdjustPSDProgress); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_wavelength_router_wavelength_router_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdjustPSDError); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_wavelength_router_wavelength_router_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdjustPSDResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_wavelength_router_wavelength_router_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CancelAdjustPSDResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_wavelength_router_wavelength_router_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdjustSpectrumRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_wavelength_router_wavelength_router_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdjustSpectrumProgress); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_wavelength_router_wavelength_router_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdjustSpectrumError); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_wavelength_router_wavelength_router_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AdjustSpectrumResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_wavelength_router_wavelength_router_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CancelAdjustSpectrumResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.optical.WavelengthRouter/CancelAdjustSpectrum", + file_wavelength_router_wavelength_router_proto_msgTypes[3].OneofWrappers = []interface{}{ + (*AdjustPSDResponse_Progress)(nil), + (*AdjustPSDResponse_Error)(nil), } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(WavelengthRouterServer).CancelAdjustSpectrum(ctx, req.(*AdjustSpectrumRequest)) + file_wavelength_router_wavelength_router_proto_msgTypes[8].OneofWrappers = []interface{}{ + (*AdjustSpectrumResponse_Progress)(nil), + (*AdjustSpectrumResponse_Error)(nil), } - return interceptor(ctx, in, info, handler) -} - -var _WavelengthRouter_serviceDesc = grpc.ServiceDesc{ - ServiceName: "gnoi.optical.WavelengthRouter", - HandlerType: (*WavelengthRouterServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "CancelAdjustPSD", - Handler: _WavelengthRouter_CancelAdjustPSD_Handler, - }, - { - MethodName: "CancelAdjustSpectrum", - Handler: _WavelengthRouter_CancelAdjustSpectrum_Handler, - }, - }, - Streams: []grpc.StreamDesc{ - { - StreamName: "AdjustPSD", - Handler: _WavelengthRouter_AdjustPSD_Handler, - ServerStreams: true, - }, - { - StreamName: "AdjustSpectrum", - Handler: _WavelengthRouter_AdjustSpectrum_Handler, - ServerStreams: true, + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_wavelength_router_wavelength_router_proto_rawDesc, + NumEnums: 6, + NumMessages: 10, + NumExtensions: 0, + NumServices: 1, }, - }, - Metadata: "wavelength_router/wavelength_router.proto", + GoTypes: file_wavelength_router_wavelength_router_proto_goTypes, + DependencyIndexes: file_wavelength_router_wavelength_router_proto_depIdxs, + EnumInfos: file_wavelength_router_wavelength_router_proto_enumTypes, + MessageInfos: file_wavelength_router_wavelength_router_proto_msgTypes, + }.Build() + File_wavelength_router_wavelength_router_proto = out.File + file_wavelength_router_wavelength_router_proto_rawDesc = nil + file_wavelength_router_wavelength_router_proto_goTypes = nil + file_wavelength_router_wavelength_router_proto_depIdxs = nil } diff --git a/wavelength_router/wavelength_router.proto b/wavelength_router/wavelength_router.proto index 3ee85a37..17989aeb 100644 --- a/wavelength_router/wavelength_router.proto +++ b/wavelength_router/wavelength_router.proto @@ -20,6 +20,8 @@ package gnoi.optical; import "github.com/openconfig/gnoi/types/types.proto"; +option go_package = "github.com/openconfig/gnoi/wavelength_router"; + option (types.gnoi_version) = "0.2.0"; service WavelengthRouter { diff --git a/wavelength_router/wavelength_router_grpc.pb.go b/wavelength_router/wavelength_router_grpc.pb.go new file mode 100644 index 00000000..b8499013 --- /dev/null +++ b/wavelength_router/wavelength_router_grpc.pb.go @@ -0,0 +1,338 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. + +package wavelength_router + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.32.0 or later. +const _ = grpc.SupportPackageIsVersion7 + +// WavelengthRouterClient is the client API for WavelengthRouter service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type WavelengthRouterClient interface { + // Deprecated: Do not use. + // AdjustPSD performs a power spectral density (PSD) adjustment on an optical + // DWDM line system port. + // + // This RPC's initial message triggers adjustments. The target should validate + // the request, and immediately begin the adjustment as long as another + // adjustment is not already running. As this RPC may take multiple minutes, + // the state should be regularly streamed to the client. The operation should + // be completed on the device regardless of the state of the RPC channel to + // the initiating client. A client that becomes disconnected during an + // operation can reconnect, requesting the same operation, and receive status + // updates this way. There is no means by which an adjustment that has been + // triggered by a client can be cancelled unless the CancelAdjustPSD RPC is + // used. + // DEPRECATED, use AdjustSpectrum. + AdjustPSD(ctx context.Context, in *AdjustPSDRequest, opts ...grpc.CallOption) (WavelengthRouter_AdjustPSDClient, error) + // Deprecated: Do not use. + // CancelAdjustPSD cancels an in-progress AdjustPSD request. If an + // adjustment is not being performed for the provided request, then the RPC + // should return successfully. + // DEPRECATED, use CancelAdjustSpectrum. + CancelAdjustPSD(ctx context.Context, in *AdjustPSDRequest, opts ...grpc.CallOption) (*CancelAdjustPSDResponse, error) + // AdjustSpectrum performs a spectrum power adjustment on an optical + // DWDM line system port. + // + // This RPC's initial message triggers adjustments. The target should validate + // the request, and immediately begin the adjustment as long as another + // adjustment is not already running. As this RPC may take multiple minutes, + // the state should be regularly streamed to the client. The operation should + // be completed on the device regardless of the state of the RPC channel to + // the initiating client. A client that becomes disconnected during an + // operation can reconnect, requesting the same operation, and receive status + // updates this way. There is no means by which an adjustment that has been + // triggered by a client can be cancelled unless the CancelAdjustSpectrum + // RPC is used. + AdjustSpectrum(ctx context.Context, in *AdjustSpectrumRequest, opts ...grpc.CallOption) (WavelengthRouter_AdjustSpectrumClient, error) + // CancelAdjustSpectrum cancels an in-progress AdjustSpectrum request. If an + // adjustment is not being performed for the provided request, then the RPC + // should return successfully. + CancelAdjustSpectrum(ctx context.Context, in *AdjustSpectrumRequest, opts ...grpc.CallOption) (*CancelAdjustSpectrumResponse, error) +} + +type wavelengthRouterClient struct { + cc grpc.ClientConnInterface +} + +func NewWavelengthRouterClient(cc grpc.ClientConnInterface) WavelengthRouterClient { + return &wavelengthRouterClient{cc} +} + +// Deprecated: Do not use. +func (c *wavelengthRouterClient) AdjustPSD(ctx context.Context, in *AdjustPSDRequest, opts ...grpc.CallOption) (WavelengthRouter_AdjustPSDClient, error) { + stream, err := c.cc.NewStream(ctx, &WavelengthRouter_ServiceDesc.Streams[0], "/gnoi.optical.WavelengthRouter/AdjustPSD", opts...) + if err != nil { + return nil, err + } + x := &wavelengthRouterAdjustPSDClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type WavelengthRouter_AdjustPSDClient interface { + Recv() (*AdjustPSDResponse, error) + grpc.ClientStream +} + +type wavelengthRouterAdjustPSDClient struct { + grpc.ClientStream +} + +func (x *wavelengthRouterAdjustPSDClient) Recv() (*AdjustPSDResponse, error) { + m := new(AdjustPSDResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +// Deprecated: Do not use. +func (c *wavelengthRouterClient) CancelAdjustPSD(ctx context.Context, in *AdjustPSDRequest, opts ...grpc.CallOption) (*CancelAdjustPSDResponse, error) { + out := new(CancelAdjustPSDResponse) + err := c.cc.Invoke(ctx, "/gnoi.optical.WavelengthRouter/CancelAdjustPSD", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *wavelengthRouterClient) AdjustSpectrum(ctx context.Context, in *AdjustSpectrumRequest, opts ...grpc.CallOption) (WavelengthRouter_AdjustSpectrumClient, error) { + stream, err := c.cc.NewStream(ctx, &WavelengthRouter_ServiceDesc.Streams[1], "/gnoi.optical.WavelengthRouter/AdjustSpectrum", opts...) + if err != nil { + return nil, err + } + x := &wavelengthRouterAdjustSpectrumClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type WavelengthRouter_AdjustSpectrumClient interface { + Recv() (*AdjustSpectrumResponse, error) + grpc.ClientStream +} + +type wavelengthRouterAdjustSpectrumClient struct { + grpc.ClientStream +} + +func (x *wavelengthRouterAdjustSpectrumClient) Recv() (*AdjustSpectrumResponse, error) { + m := new(AdjustSpectrumResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *wavelengthRouterClient) CancelAdjustSpectrum(ctx context.Context, in *AdjustSpectrumRequest, opts ...grpc.CallOption) (*CancelAdjustSpectrumResponse, error) { + out := new(CancelAdjustSpectrumResponse) + err := c.cc.Invoke(ctx, "/gnoi.optical.WavelengthRouter/CancelAdjustSpectrum", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// WavelengthRouterServer is the server API for WavelengthRouter service. +// All implementations must embed UnimplementedWavelengthRouterServer +// for forward compatibility +type WavelengthRouterServer interface { + // Deprecated: Do not use. + // AdjustPSD performs a power spectral density (PSD) adjustment on an optical + // DWDM line system port. + // + // This RPC's initial message triggers adjustments. The target should validate + // the request, and immediately begin the adjustment as long as another + // adjustment is not already running. As this RPC may take multiple minutes, + // the state should be regularly streamed to the client. The operation should + // be completed on the device regardless of the state of the RPC channel to + // the initiating client. A client that becomes disconnected during an + // operation can reconnect, requesting the same operation, and receive status + // updates this way. There is no means by which an adjustment that has been + // triggered by a client can be cancelled unless the CancelAdjustPSD RPC is + // used. + // DEPRECATED, use AdjustSpectrum. + AdjustPSD(*AdjustPSDRequest, WavelengthRouter_AdjustPSDServer) error + // Deprecated: Do not use. + // CancelAdjustPSD cancels an in-progress AdjustPSD request. If an + // adjustment is not being performed for the provided request, then the RPC + // should return successfully. + // DEPRECATED, use CancelAdjustSpectrum. + CancelAdjustPSD(context.Context, *AdjustPSDRequest) (*CancelAdjustPSDResponse, error) + // AdjustSpectrum performs a spectrum power adjustment on an optical + // DWDM line system port. + // + // This RPC's initial message triggers adjustments. The target should validate + // the request, and immediately begin the adjustment as long as another + // adjustment is not already running. As this RPC may take multiple minutes, + // the state should be regularly streamed to the client. The operation should + // be completed on the device regardless of the state of the RPC channel to + // the initiating client. A client that becomes disconnected during an + // operation can reconnect, requesting the same operation, and receive status + // updates this way. There is no means by which an adjustment that has been + // triggered by a client can be cancelled unless the CancelAdjustSpectrum + // RPC is used. + AdjustSpectrum(*AdjustSpectrumRequest, WavelengthRouter_AdjustSpectrumServer) error + // CancelAdjustSpectrum cancels an in-progress AdjustSpectrum request. If an + // adjustment is not being performed for the provided request, then the RPC + // should return successfully. + CancelAdjustSpectrum(context.Context, *AdjustSpectrumRequest) (*CancelAdjustSpectrumResponse, error) + mustEmbedUnimplementedWavelengthRouterServer() +} + +// UnimplementedWavelengthRouterServer must be embedded to have forward compatible implementations. +type UnimplementedWavelengthRouterServer struct { +} + +func (UnimplementedWavelengthRouterServer) AdjustPSD(*AdjustPSDRequest, WavelengthRouter_AdjustPSDServer) error { + return status.Errorf(codes.Unimplemented, "method AdjustPSD not implemented") +} +func (UnimplementedWavelengthRouterServer) CancelAdjustPSD(context.Context, *AdjustPSDRequest) (*CancelAdjustPSDResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CancelAdjustPSD not implemented") +} +func (UnimplementedWavelengthRouterServer) AdjustSpectrum(*AdjustSpectrumRequest, WavelengthRouter_AdjustSpectrumServer) error { + return status.Errorf(codes.Unimplemented, "method AdjustSpectrum not implemented") +} +func (UnimplementedWavelengthRouterServer) CancelAdjustSpectrum(context.Context, *AdjustSpectrumRequest) (*CancelAdjustSpectrumResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CancelAdjustSpectrum not implemented") +} +func (UnimplementedWavelengthRouterServer) mustEmbedUnimplementedWavelengthRouterServer() {} + +// UnsafeWavelengthRouterServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to WavelengthRouterServer will +// result in compilation errors. +type UnsafeWavelengthRouterServer interface { + mustEmbedUnimplementedWavelengthRouterServer() +} + +func RegisterWavelengthRouterServer(s grpc.ServiceRegistrar, srv WavelengthRouterServer) { + s.RegisterService(&WavelengthRouter_ServiceDesc, srv) +} + +func _WavelengthRouter_AdjustPSD_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(AdjustPSDRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(WavelengthRouterServer).AdjustPSD(m, &wavelengthRouterAdjustPSDServer{stream}) +} + +type WavelengthRouter_AdjustPSDServer interface { + Send(*AdjustPSDResponse) error + grpc.ServerStream +} + +type wavelengthRouterAdjustPSDServer struct { + grpc.ServerStream +} + +func (x *wavelengthRouterAdjustPSDServer) Send(m *AdjustPSDResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _WavelengthRouter_CancelAdjustPSD_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AdjustPSDRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(WavelengthRouterServer).CancelAdjustPSD(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gnoi.optical.WavelengthRouter/CancelAdjustPSD", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(WavelengthRouterServer).CancelAdjustPSD(ctx, req.(*AdjustPSDRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _WavelengthRouter_AdjustSpectrum_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(AdjustSpectrumRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(WavelengthRouterServer).AdjustSpectrum(m, &wavelengthRouterAdjustSpectrumServer{stream}) +} + +type WavelengthRouter_AdjustSpectrumServer interface { + Send(*AdjustSpectrumResponse) error + grpc.ServerStream +} + +type wavelengthRouterAdjustSpectrumServer struct { + grpc.ServerStream +} + +func (x *wavelengthRouterAdjustSpectrumServer) Send(m *AdjustSpectrumResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _WavelengthRouter_CancelAdjustSpectrum_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AdjustSpectrumRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(WavelengthRouterServer).CancelAdjustSpectrum(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gnoi.optical.WavelengthRouter/CancelAdjustSpectrum", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(WavelengthRouterServer).CancelAdjustSpectrum(ctx, req.(*AdjustSpectrumRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// WavelengthRouter_ServiceDesc is the grpc.ServiceDesc for WavelengthRouter service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var WavelengthRouter_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "gnoi.optical.WavelengthRouter", + HandlerType: (*WavelengthRouterServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "CancelAdjustPSD", + Handler: _WavelengthRouter_CancelAdjustPSD_Handler, + }, + { + MethodName: "CancelAdjustSpectrum", + Handler: _WavelengthRouter_CancelAdjustSpectrum_Handler, + }, + }, + Streams: []grpc.StreamDesc{ + { + StreamName: "AdjustPSD", + Handler: _WavelengthRouter_AdjustPSD_Handler, + ServerStreams: true, + }, + { + StreamName: "AdjustSpectrum", + Handler: _WavelengthRouter_AdjustSpectrum_Handler, + ServerStreams: true, + }, + }, + Metadata: "wavelength_router/wavelength_router.proto", +} From aa82d47ea7e31fdfd870fe6faa9638526dd9add7 Mon Sep 17 00:00:00 2001 From: Rob Shakir Date: Mon, 5 Apr 2021 16:29:52 -0700 Subject: [PATCH 088/238] Bump linter version. --- .github/workflows/linter.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index 82f36ddc..fcce3369 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -19,7 +19,7 @@ jobs: fetch-depth: 0 - name: Lint protobuf - uses: robshakir/protolint-action@v0.3.0 + uses: robshakir/protolint-action@v0.3.1 with: configDirectory: .github env: From 2bd07f222873f0dfd2fcc8545122ec873f420706 Mon Sep 17 00:00:00 2001 From: Rob Shakir Date: Tue, 6 Apr 2021 11:49:32 -0700 Subject: [PATCH 089/238] Move away from using forked repo for protolint-action. --- .github/workflows/linter.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index fcce3369..48f5508f 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -19,8 +19,6 @@ jobs: fetch-depth: 0 - name: Lint protobuf - uses: robshakir/protolint-action@v0.3.1 + uses: plexsystems/protolint-action@v0.3.0 with: configDirectory: .github - env: - PROTOLINT_VERSION: 0.31.0 From b4c416b0ac676b83caf4f80823ba9e813ae5dc38 Mon Sep 17 00:00:00 2001 From: Tomek Madejski Date: Tue, 13 Apr 2021 13:55:52 -0700 Subject: [PATCH 090/238] Added the 'activate_and_reboot` flag to the ActivateRequest message. If this flag is set to 'False' then the Target will configure itself to boot next time with the requested version of the OS but will _not_ restart immediatelly. --- os/os.pb.go | 177 ++++++++++++++++++++++++++--------------------- os/os.proto | 16 +++-- os/os_grpc.pb.go | 10 +-- 3 files changed, 115 insertions(+), 88 deletions(-) diff --git a/os/os.pb.go b/os/os.pb.go index eeb74a30..5656cf24 100644 --- a/os/os.pb.go +++ b/os/os.pb.go @@ -821,11 +821,18 @@ type ActivateRequest struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // The version that is required to be activated and booted. + // The version that is required to be activated and optionally immediattely + // booted. Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` // For dual Supervisors setting this flag instructs the Target to perform the // action on the Standby Supervisor. StandbySupervisor bool `protobuf:"varint,2,opt,name=standby_supervisor,json=standbySupervisor,proto3" json:"standby_supervisor,omitempty"` + // If set to 'True' the Target will initiate the reboot process immediatelly + // after changing the next bootable OS version. + // If set to 'False' a separate action to reboot the Target and start using + // the activated OS version is required. This action CAN be executing + // the gNOI.system.Reboot() RPC. + ActivateAndReboot bool `protobuf:"varint,3,opt,name=activate_and_reboot,json=activateAndReboot,proto3" json:"activate_and_reboot,omitempty"` } func (x *ActivateRequest) Reset() { @@ -874,6 +881,13 @@ func (x *ActivateRequest) GetStandbySupervisor() bool { return false } +func (x *ActivateRequest) GetActivateAndReboot() bool { + if x != nil { + return x.ActivateAndReboot + } + return false +} + // The ActivateResponse is sent from the Target to the Client in response to the // Activate RPC. It indicates the success of making the OS package version // active. @@ -1433,85 +1447,88 @@ var file_os_os_proto_rawDesc = []byte{ 0x49, 0x4e, 0x5f, 0x50, 0x52, 0x4f, 0x47, 0x52, 0x45, 0x53, 0x53, 0x10, 0x06, 0x12, 0x19, 0x0a, 0x15, 0x55, 0x4e, 0x45, 0x58, 0x50, 0x45, 0x43, 0x54, 0x45, 0x44, 0x5f, 0x53, 0x57, 0x49, 0x54, 0x43, 0x48, 0x4f, 0x56, 0x45, 0x52, 0x10, 0x07, 0x12, 0x0d, 0x0a, 0x09, 0x53, 0x59, 0x4e, 0x43, - 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x10, 0x08, 0x22, 0x5a, 0x0a, 0x0f, 0x41, 0x63, 0x74, 0x69, 0x76, - 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, - 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, - 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x2d, 0x0a, 0x12, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x5f, - 0x73, 0x75, 0x70, 0x65, 0x72, 0x76, 0x69, 0x73, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, - 0x52, 0x11, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x53, 0x75, 0x70, 0x65, 0x72, 0x76, 0x69, - 0x73, 0x6f, 0x72, 0x22, 0x97, 0x01, 0x0a, 0x10, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x36, 0x0a, 0x0b, 0x61, 0x63, 0x74, 0x69, - 0x76, 0x61, 0x74, 0x65, 0x5f, 0x6f, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, - 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x73, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, - 0x4f, 0x4b, 0x48, 0x00, 0x52, 0x0a, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4f, 0x6b, - 0x12, 0x3f, 0x0a, 0x0e, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x5f, 0x65, 0x72, 0x72, - 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, - 0x6f, 0x73, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x45, 0x72, 0x72, 0x6f, 0x72, - 0x48, 0x00, 0x52, 0x0d, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x45, 0x72, 0x72, 0x6f, - 0x72, 0x42, 0x0a, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x0c, 0x0a, - 0x0a, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4f, 0x4b, 0x22, 0x8b, 0x01, 0x0a, 0x0d, - 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x2f, 0x0a, - 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x67, 0x6e, - 0x6f, 0x69, 0x2e, 0x6f, 0x73, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x45, 0x72, - 0x72, 0x6f, 0x72, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x16, - 0x0a, 0x06, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, - 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x22, 0x31, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0f, - 0x0a, 0x0b, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, - 0x18, 0x0a, 0x14, 0x4e, 0x4f, 0x4e, 0x5f, 0x45, 0x58, 0x49, 0x53, 0x54, 0x45, 0x4e, 0x54, 0x5f, - 0x56, 0x45, 0x52, 0x53, 0x49, 0x4f, 0x4e, 0x10, 0x01, 0x22, 0x0f, 0x0a, 0x0d, 0x56, 0x65, 0x72, - 0x69, 0x66, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0xa1, 0x01, 0x0a, 0x0e, 0x56, - 0x65, 0x72, 0x69, 0x66, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, - 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, - 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x36, 0x0a, 0x17, 0x61, 0x63, 0x74, 0x69, 0x76, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x66, 0x61, 0x69, 0x6c, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, - 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x15, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x61, 0x69, 0x6c, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, - 0x3d, 0x0a, 0x0e, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x5f, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x62, - 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, - 0x73, 0x2e, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x53, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x52, - 0x0d, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x53, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x22, 0x9b, - 0x01, 0x0a, 0x0d, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x53, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, - 0x12, 0x3c, 0x0a, 0x0d, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x5f, 0x73, 0x74, 0x61, 0x74, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, - 0x73, 0x2e, 0x53, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x53, 0x74, 0x61, 0x74, 0x65, 0x48, 0x00, - 0x52, 0x0c, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x43, - 0x0a, 0x0f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, - 0x73, 0x2e, 0x53, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x48, 0x00, 0x52, 0x0e, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x42, 0x07, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x22, 0x8e, 0x01, 0x0a, - 0x0c, 0x53, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x31, 0x0a, - 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x67, - 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x73, 0x2e, 0x53, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x53, 0x74, - 0x61, 0x74, 0x65, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, - 0x22, 0x4b, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x0f, 0x0a, 0x0b, 0x55, 0x4e, 0x53, - 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0e, 0x0a, 0x0a, 0x55, 0x4e, - 0x53, 0x55, 0x50, 0x4f, 0x52, 0x54, 0x45, 0x44, 0x10, 0x01, 0x12, 0x10, 0x0a, 0x0c, 0x4e, 0x4f, - 0x4e, 0x5f, 0x45, 0x58, 0x49, 0x53, 0x54, 0x45, 0x4e, 0x54, 0x10, 0x02, 0x12, 0x0f, 0x0a, 0x0b, - 0x55, 0x4e, 0x41, 0x56, 0x41, 0x49, 0x4c, 0x41, 0x42, 0x4c, 0x45, 0x10, 0x03, 0x22, 0x73, 0x0a, - 0x0f, 0x53, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, - 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x36, 0x0a, 0x17, 0x61, 0x63, - 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x66, 0x61, 0x69, 0x6c, 0x5f, 0x6d, 0x65, - 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x15, 0x61, 0x63, 0x74, - 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x61, 0x69, 0x6c, 0x4d, 0x65, 0x73, 0x73, 0x61, - 0x67, 0x65, 0x32, 0xc2, 0x01, 0x0a, 0x02, 0x4f, 0x53, 0x12, 0x40, 0x0a, 0x07, 0x49, 0x6e, 0x73, - 0x74, 0x61, 0x6c, 0x6c, 0x12, 0x17, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x73, 0x2e, 0x49, - 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, - 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x28, 0x01, 0x30, 0x01, 0x12, 0x3f, 0x0a, 0x08, 0x41, - 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x12, 0x18, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, - 0x73, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x19, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x73, 0x2e, 0x41, 0x63, 0x74, 0x69, - 0x76, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x39, 0x0a, 0x06, - 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x12, 0x16, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x73, - 0x2e, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, - 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x73, 0x2e, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x27, 0x5a, 0x1d, 0x67, 0x69, 0x74, 0x68, 0x75, - 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, - 0x2f, 0x67, 0x6e, 0x6f, 0x69, 0x2f, 0x6f, 0x73, 0xd2, 0x3e, 0x05, 0x30, 0x2e, 0x31, 0x2e, 0x30, - 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x10, 0x08, 0x22, 0x8a, 0x01, 0x0a, 0x0f, 0x41, 0x63, 0x74, 0x69, + 0x76, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x76, + 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, + 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x2d, 0x0a, 0x12, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, + 0x5f, 0x73, 0x75, 0x70, 0x65, 0x72, 0x76, 0x69, 0x73, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x08, 0x52, 0x11, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x53, 0x75, 0x70, 0x65, 0x72, 0x76, + 0x69, 0x73, 0x6f, 0x72, 0x12, 0x2e, 0x0a, 0x13, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, + 0x5f, 0x61, 0x6e, 0x64, 0x5f, 0x72, 0x65, 0x62, 0x6f, 0x6f, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x08, 0x52, 0x11, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x41, 0x6e, 0x64, 0x52, 0x65, + 0x62, 0x6f, 0x6f, 0x74, 0x22, 0x97, 0x01, 0x0a, 0x10, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, + 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x36, 0x0a, 0x0b, 0x61, 0x63, 0x74, + 0x69, 0x76, 0x61, 0x74, 0x65, 0x5f, 0x6f, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, + 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x73, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, + 0x65, 0x4f, 0x4b, 0x48, 0x00, 0x52, 0x0a, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4f, + 0x6b, 0x12, 0x3f, 0x0a, 0x0e, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x5f, 0x65, 0x72, + 0x72, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x6e, 0x6f, 0x69, + 0x2e, 0x6f, 0x73, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x45, 0x72, 0x72, 0x6f, + 0x72, 0x48, 0x00, 0x52, 0x0d, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x45, 0x72, 0x72, + 0x6f, 0x72, 0x42, 0x0a, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x0c, + 0x0a, 0x0a, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4f, 0x4b, 0x22, 0x8b, 0x01, 0x0a, + 0x0d, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x2f, + 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x67, + 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x73, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x45, + 0x72, 0x72, 0x6f, 0x72, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, + 0x16, 0x0a, 0x06, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x06, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x22, 0x31, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, + 0x0f, 0x0a, 0x0b, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, + 0x12, 0x18, 0x0a, 0x14, 0x4e, 0x4f, 0x4e, 0x5f, 0x45, 0x58, 0x49, 0x53, 0x54, 0x45, 0x4e, 0x54, + 0x5f, 0x56, 0x45, 0x52, 0x53, 0x49, 0x4f, 0x4e, 0x10, 0x01, 0x22, 0x0f, 0x0a, 0x0d, 0x56, 0x65, + 0x72, 0x69, 0x66, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0xa1, 0x01, 0x0a, 0x0e, + 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, + 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x36, 0x0a, 0x17, 0x61, 0x63, 0x74, 0x69, + 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x66, 0x61, 0x69, 0x6c, 0x5f, 0x6d, 0x65, 0x73, 0x73, + 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x15, 0x61, 0x63, 0x74, 0x69, 0x76, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x61, 0x69, 0x6c, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, + 0x12, 0x3d, 0x0a, 0x0e, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x5f, 0x73, 0x74, 0x61, 0x6e, 0x64, + 0x62, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, + 0x6f, 0x73, 0x2e, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x53, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, + 0x52, 0x0d, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x53, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x22, + 0x9b, 0x01, 0x0a, 0x0d, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x53, 0x74, 0x61, 0x6e, 0x64, 0x62, + 0x79, 0x12, 0x3c, 0x0a, 0x0d, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x5f, 0x73, 0x74, 0x61, + 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, + 0x6f, 0x73, 0x2e, 0x53, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x53, 0x74, 0x61, 0x74, 0x65, 0x48, + 0x00, 0x52, 0x0c, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, + 0x43, 0x0a, 0x0f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, + 0x6f, 0x73, 0x2e, 0x53, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x48, 0x00, 0x52, 0x0e, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x07, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x22, 0x8e, 0x01, + 0x0a, 0x0c, 0x53, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x31, + 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, + 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x73, 0x2e, 0x53, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x53, + 0x74, 0x61, 0x74, 0x65, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, + 0x65, 0x22, 0x4b, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x0f, 0x0a, 0x0b, 0x55, 0x4e, + 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0e, 0x0a, 0x0a, 0x55, + 0x4e, 0x53, 0x55, 0x50, 0x4f, 0x52, 0x54, 0x45, 0x44, 0x10, 0x01, 0x12, 0x10, 0x0a, 0x0c, 0x4e, + 0x4f, 0x4e, 0x5f, 0x45, 0x58, 0x49, 0x53, 0x54, 0x45, 0x4e, 0x54, 0x10, 0x02, 0x12, 0x0f, 0x0a, + 0x0b, 0x55, 0x4e, 0x41, 0x56, 0x41, 0x49, 0x4c, 0x41, 0x42, 0x4c, 0x45, 0x10, 0x03, 0x22, 0x73, + 0x0a, 0x0f, 0x53, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, + 0x64, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x36, 0x0a, 0x17, 0x61, + 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x66, 0x61, 0x69, 0x6c, 0x5f, 0x6d, + 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x15, 0x61, 0x63, + 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x61, 0x69, 0x6c, 0x4d, 0x65, 0x73, 0x73, + 0x61, 0x67, 0x65, 0x32, 0xc2, 0x01, 0x0a, 0x02, 0x4f, 0x53, 0x12, 0x40, 0x0a, 0x07, 0x49, 0x6e, + 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x12, 0x17, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x73, 0x2e, + 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, + 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x28, 0x01, 0x30, 0x01, 0x12, 0x3f, 0x0a, 0x08, + 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x12, 0x18, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, + 0x6f, 0x73, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x73, 0x2e, 0x41, 0x63, 0x74, + 0x69, 0x76, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x39, 0x0a, + 0x06, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x12, 0x16, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, + 0x73, 0x2e, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x17, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x73, 0x2e, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x27, 0x5a, 0x1d, 0x67, 0x69, 0x74, 0x68, + 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x2f, 0x67, 0x6e, 0x6f, 0x69, 0x2f, 0x6f, 0x73, 0xd2, 0x3e, 0x05, 0x30, 0x2e, 0x32, 0x2e, + 0x30, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/os/os.proto b/os/os.proto index 56a24e05..3cd58356 100644 --- a/os/os.proto +++ b/os/os.proto @@ -7,7 +7,7 @@ import "github.com/openconfig/gnoi/types/types.proto"; option go_package = "github.com/openconfig/gnoi/os"; -option (types.gnoi_version) = "0.1.0"; +option (types.gnoi_version) = "0.2.0"; // The OS service provides an interface for OS installation on a Target. The // Client progresses through 3 RPCs: @@ -110,8 +110,9 @@ service OS { rpc Install(stream InstallRequest) returns (stream InstallResponse); // Activate sets the requested OS version as the version which is used at the - // next reboot, and reboots the Target. When booting the requested OS version - // fails, the Target recovers by booting the previously running OS package. + // next reboot, and reboots the Target if the 'activate_and_reboot' flag is + // set. When booting the requested OS version fails, the Target recovers by + // booting the previously running OS package. rpc Activate(ActivateRequest) returns (ActivateResponse); // Verify checks the running OS version. This RPC may be called multiple times @@ -250,11 +251,18 @@ message InstallError { // The ActivateRequest is sent by the Client to the Target to initiate a change // in the next bootable OS version that is to be used on the Target. message ActivateRequest { - // The version that is required to be activated and booted. + // The version that is required to be activated and optionally immediattely + // booted. string version = 1; // For dual Supervisors setting this flag instructs the Target to perform the // action on the Standby Supervisor. bool standby_supervisor = 2; + // If set to 'True' the Target will initiate the reboot process immediatelly + // after changing the next bootable OS version. + // If set to 'False' a separate action to reboot the Target and start using + // the activated OS version is required. This action CAN be executing + // the gNOI.system.Reboot() RPC. + bool activate_and_reboot = 3; } // The ActivateResponse is sent from the Target to the Client in response to the diff --git a/os/os_grpc.pb.go b/os/os_grpc.pb.go index 2e8db9d3..0bcf3c1f 100644 --- a/os/os_grpc.pb.go +++ b/os/os_grpc.pb.go @@ -102,8 +102,9 @@ type OSClient interface { // Install(ctx context.Context, opts ...grpc.CallOption) (OS_InstallClient, error) // Activate sets the requested OS version as the version which is used at the - // next reboot, and reboots the Target. When booting the requested OS version - // fails, the Target recovers by booting the previously running OS package. + // next reboot, and reboots the Target if the 'activate_and_reboot' flag is + // set. When booting the requested OS version fails, the Target recovers by + // booting the previously running OS package. Activate(ctx context.Context, in *ActivateRequest, opts ...grpc.CallOption) (*ActivateResponse, error) // Verify checks the running OS version. This RPC may be called multiple times // while the Target boots, until successful. @@ -255,8 +256,9 @@ type OSServer interface { // Install(OS_InstallServer) error // Activate sets the requested OS version as the version which is used at the - // next reboot, and reboots the Target. When booting the requested OS version - // fails, the Target recovers by booting the previously running OS package. + // next reboot, and reboots the Target if the 'activate_and_reboot' flag is + // set. When booting the requested OS version fails, the Target recovers by + // booting the previously running OS package. Activate(context.Context, *ActivateRequest) (*ActivateResponse, error) // Verify checks the running OS version. This RPC may be called multiple times // while the Target boots, until successful. From 4326f369b4d33811bdb892ebc5d3536961a4d94f Mon Sep 17 00:00:00 2001 From: Tomek Madejski Date: Wed, 14 Apr 2021 16:13:42 +0000 Subject: [PATCH 091/238] Changed 'activate_and_reboot' into 'no_reboot'. --- os/os.pb.go | 171 +++++++++++++++++++++++------------------------ os/os.proto | 12 ++-- os/os_grpc.pb.go | 8 +-- 3 files changed, 95 insertions(+), 96 deletions(-) diff --git a/os/os.pb.go b/os/os.pb.go index 5656cf24..a1c6185c 100644 --- a/os/os.pb.go +++ b/os/os.pb.go @@ -827,12 +827,12 @@ type ActivateRequest struct { // For dual Supervisors setting this flag instructs the Target to perform the // action on the Standby Supervisor. StandbySupervisor bool `protobuf:"varint,2,opt,name=standby_supervisor,json=standbySupervisor,proto3" json:"standby_supervisor,omitempty"` - // If set to 'True' the Target will initiate the reboot process immediatelly + // If set to 'False' the Target will initiate the reboot process immediatelly // after changing the next bootable OS version. - // If set to 'False' a separate action to reboot the Target and start using + // If set to 'True' a separate action to reboot the Target and start using // the activated OS version is required. This action CAN be executing // the gNOI.system.Reboot() RPC. - ActivateAndReboot bool `protobuf:"varint,3,opt,name=activate_and_reboot,json=activateAndReboot,proto3" json:"activate_and_reboot,omitempty"` + NoReboot bool `protobuf:"varint,3,opt,name=no_reboot,json=noReboot,proto3" json:"no_reboot,omitempty"` } func (x *ActivateRequest) Reset() { @@ -881,9 +881,9 @@ func (x *ActivateRequest) GetStandbySupervisor() bool { return false } -func (x *ActivateRequest) GetActivateAndReboot() bool { +func (x *ActivateRequest) GetNoReboot() bool { if x != nil { - return x.ActivateAndReboot + return x.NoReboot } return false } @@ -1447,88 +1447,87 @@ var file_os_os_proto_rawDesc = []byte{ 0x49, 0x4e, 0x5f, 0x50, 0x52, 0x4f, 0x47, 0x52, 0x45, 0x53, 0x53, 0x10, 0x06, 0x12, 0x19, 0x0a, 0x15, 0x55, 0x4e, 0x45, 0x58, 0x50, 0x45, 0x43, 0x54, 0x45, 0x44, 0x5f, 0x53, 0x57, 0x49, 0x54, 0x43, 0x48, 0x4f, 0x56, 0x45, 0x52, 0x10, 0x07, 0x12, 0x0d, 0x0a, 0x09, 0x53, 0x59, 0x4e, 0x43, - 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x10, 0x08, 0x22, 0x8a, 0x01, 0x0a, 0x0f, 0x41, 0x63, 0x74, 0x69, - 0x76, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x76, - 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, - 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x2d, 0x0a, 0x12, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, - 0x5f, 0x73, 0x75, 0x70, 0x65, 0x72, 0x76, 0x69, 0x73, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x08, 0x52, 0x11, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x53, 0x75, 0x70, 0x65, 0x72, 0x76, - 0x69, 0x73, 0x6f, 0x72, 0x12, 0x2e, 0x0a, 0x13, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, - 0x5f, 0x61, 0x6e, 0x64, 0x5f, 0x72, 0x65, 0x62, 0x6f, 0x6f, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x08, 0x52, 0x11, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x41, 0x6e, 0x64, 0x52, 0x65, - 0x62, 0x6f, 0x6f, 0x74, 0x22, 0x97, 0x01, 0x0a, 0x10, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, - 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x36, 0x0a, 0x0b, 0x61, 0x63, 0x74, - 0x69, 0x76, 0x61, 0x74, 0x65, 0x5f, 0x6f, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, + 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x10, 0x08, 0x22, 0x77, 0x0a, 0x0f, 0x41, 0x63, 0x74, 0x69, 0x76, + 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, + 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, + 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x2d, 0x0a, 0x12, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x5f, + 0x73, 0x75, 0x70, 0x65, 0x72, 0x76, 0x69, 0x73, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, + 0x52, 0x11, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x53, 0x75, 0x70, 0x65, 0x72, 0x76, 0x69, + 0x73, 0x6f, 0x72, 0x12, 0x1b, 0x0a, 0x09, 0x6e, 0x6f, 0x5f, 0x72, 0x65, 0x62, 0x6f, 0x6f, 0x74, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x6e, 0x6f, 0x52, 0x65, 0x62, 0x6f, 0x6f, 0x74, + 0x22, 0x97, 0x01, 0x0a, 0x10, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x36, 0x0a, 0x0b, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, + 0x65, 0x5f, 0x6f, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x67, 0x6e, 0x6f, + 0x69, 0x2e, 0x6f, 0x73, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4f, 0x4b, 0x48, + 0x00, 0x52, 0x0a, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4f, 0x6b, 0x12, 0x3f, 0x0a, + 0x0e, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x5f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x73, 0x2e, + 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x48, 0x00, 0x52, + 0x0d, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x42, 0x0a, + 0x0a, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x0c, 0x0a, 0x0a, 0x41, 0x63, + 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4f, 0x4b, 0x22, 0x8b, 0x01, 0x0a, 0x0d, 0x41, 0x63, 0x74, + 0x69, 0x76, 0x61, 0x74, 0x65, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x2f, 0x0a, 0x04, 0x74, 0x79, + 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, + 0x6f, 0x73, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x45, 0x72, 0x72, 0x6f, 0x72, + 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x64, + 0x65, 0x74, 0x61, 0x69, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x65, 0x74, + 0x61, 0x69, 0x6c, 0x22, 0x31, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0f, 0x0a, 0x0b, 0x55, + 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x18, 0x0a, 0x14, + 0x4e, 0x4f, 0x4e, 0x5f, 0x45, 0x58, 0x49, 0x53, 0x54, 0x45, 0x4e, 0x54, 0x5f, 0x56, 0x45, 0x52, + 0x53, 0x49, 0x4f, 0x4e, 0x10, 0x01, 0x22, 0x0f, 0x0a, 0x0d, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0xa1, 0x01, 0x0a, 0x0e, 0x56, 0x65, 0x72, 0x69, + 0x66, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, + 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, + 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x36, 0x0a, 0x17, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x5f, 0x66, 0x61, 0x69, 0x6c, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x15, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x46, 0x61, 0x69, 0x6c, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x3d, 0x0a, 0x0e, + 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x5f, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x73, 0x2e, 0x56, + 0x65, 0x72, 0x69, 0x66, 0x79, 0x53, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x52, 0x0d, 0x76, 0x65, + 0x72, 0x69, 0x66, 0x79, 0x53, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x22, 0x9b, 0x01, 0x0a, 0x0d, + 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x53, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x12, 0x3c, 0x0a, + 0x0d, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x73, 0x2e, 0x53, + 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x53, 0x74, 0x61, 0x74, 0x65, 0x48, 0x00, 0x52, 0x0c, 0x73, + 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x43, 0x0a, 0x0f, 0x76, + 0x65, 0x72, 0x69, 0x66, 0x79, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x73, 0x2e, 0x53, + 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, + 0x52, 0x0e, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x42, 0x07, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x22, 0x8e, 0x01, 0x0a, 0x0c, 0x53, 0x74, + 0x61, 0x6e, 0x64, 0x62, 0x79, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x31, 0x0a, 0x05, 0x73, 0x74, + 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x67, 0x6e, 0x6f, 0x69, + 0x2e, 0x6f, 0x73, 0x2e, 0x53, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x53, 0x74, 0x61, 0x74, 0x65, + 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x22, 0x4b, 0x0a, + 0x05, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x0f, 0x0a, 0x0b, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, + 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0e, 0x0a, 0x0a, 0x55, 0x4e, 0x53, 0x55, 0x50, + 0x4f, 0x52, 0x54, 0x45, 0x44, 0x10, 0x01, 0x12, 0x10, 0x0a, 0x0c, 0x4e, 0x4f, 0x4e, 0x5f, 0x45, + 0x58, 0x49, 0x53, 0x54, 0x45, 0x4e, 0x54, 0x10, 0x02, 0x12, 0x0f, 0x0a, 0x0b, 0x55, 0x4e, 0x41, + 0x56, 0x41, 0x49, 0x4c, 0x41, 0x42, 0x4c, 0x45, 0x10, 0x03, 0x22, 0x73, 0x0a, 0x0f, 0x53, 0x74, + 0x61, 0x6e, 0x64, 0x62, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x0e, 0x0a, + 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x18, 0x0a, + 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, + 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x36, 0x0a, 0x17, 0x61, 0x63, 0x74, 0x69, 0x76, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x66, 0x61, 0x69, 0x6c, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, + 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x15, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x61, 0x69, 0x6c, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x32, + 0xc2, 0x01, 0x0a, 0x02, 0x4f, 0x53, 0x12, 0x40, 0x0a, 0x07, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, + 0x6c, 0x12, 0x17, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x73, 0x74, + 0x61, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x67, 0x6e, 0x6f, + 0x69, 0x2e, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x28, 0x01, 0x30, 0x01, 0x12, 0x3f, 0x0a, 0x08, 0x41, 0x63, 0x74, 0x69, + 0x76, 0x61, 0x74, 0x65, 0x12, 0x18, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x73, 0x2e, 0x41, + 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x73, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, - 0x65, 0x4f, 0x4b, 0x48, 0x00, 0x52, 0x0a, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4f, - 0x6b, 0x12, 0x3f, 0x0a, 0x0e, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x5f, 0x65, 0x72, - 0x72, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x6e, 0x6f, 0x69, - 0x2e, 0x6f, 0x73, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x45, 0x72, 0x72, 0x6f, - 0x72, 0x48, 0x00, 0x52, 0x0d, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x45, 0x72, 0x72, - 0x6f, 0x72, 0x42, 0x0a, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x0c, - 0x0a, 0x0a, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4f, 0x4b, 0x22, 0x8b, 0x01, 0x0a, - 0x0d, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x2f, - 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x67, - 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x73, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x45, - 0x72, 0x72, 0x6f, 0x72, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, - 0x16, 0x0a, 0x06, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x06, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x22, 0x31, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, - 0x0f, 0x0a, 0x0b, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, - 0x12, 0x18, 0x0a, 0x14, 0x4e, 0x4f, 0x4e, 0x5f, 0x45, 0x58, 0x49, 0x53, 0x54, 0x45, 0x4e, 0x54, - 0x5f, 0x56, 0x45, 0x52, 0x53, 0x49, 0x4f, 0x4e, 0x10, 0x01, 0x22, 0x0f, 0x0a, 0x0d, 0x56, 0x65, - 0x72, 0x69, 0x66, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0xa1, 0x01, 0x0a, 0x0e, - 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, - 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x36, 0x0a, 0x17, 0x61, 0x63, 0x74, 0x69, - 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x66, 0x61, 0x69, 0x6c, 0x5f, 0x6d, 0x65, 0x73, 0x73, - 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x15, 0x61, 0x63, 0x74, 0x69, 0x76, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x61, 0x69, 0x6c, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, - 0x12, 0x3d, 0x0a, 0x0e, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x5f, 0x73, 0x74, 0x61, 0x6e, 0x64, - 0x62, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, - 0x6f, 0x73, 0x2e, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x53, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, - 0x52, 0x0d, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x53, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x22, - 0x9b, 0x01, 0x0a, 0x0d, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x53, 0x74, 0x61, 0x6e, 0x64, 0x62, - 0x79, 0x12, 0x3c, 0x0a, 0x0d, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x5f, 0x73, 0x74, 0x61, - 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, - 0x6f, 0x73, 0x2e, 0x53, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x53, 0x74, 0x61, 0x74, 0x65, 0x48, - 0x00, 0x52, 0x0c, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, - 0x43, 0x0a, 0x0f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, - 0x6f, 0x73, 0x2e, 0x53, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x48, 0x00, 0x52, 0x0e, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x07, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x22, 0x8e, 0x01, - 0x0a, 0x0c, 0x53, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x31, - 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, - 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x73, 0x2e, 0x53, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x53, - 0x74, 0x61, 0x74, 0x65, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, - 0x65, 0x22, 0x4b, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x0f, 0x0a, 0x0b, 0x55, 0x4e, - 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0e, 0x0a, 0x0a, 0x55, - 0x4e, 0x53, 0x55, 0x50, 0x4f, 0x52, 0x54, 0x45, 0x44, 0x10, 0x01, 0x12, 0x10, 0x0a, 0x0c, 0x4e, - 0x4f, 0x4e, 0x5f, 0x45, 0x58, 0x49, 0x53, 0x54, 0x45, 0x4e, 0x54, 0x10, 0x02, 0x12, 0x0f, 0x0a, - 0x0b, 0x55, 0x4e, 0x41, 0x56, 0x41, 0x49, 0x4c, 0x41, 0x42, 0x4c, 0x45, 0x10, 0x03, 0x22, 0x73, - 0x0a, 0x0f, 0x53, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, - 0x64, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x36, 0x0a, 0x17, 0x61, - 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x66, 0x61, 0x69, 0x6c, 0x5f, 0x6d, - 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x15, 0x61, 0x63, - 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x61, 0x69, 0x6c, 0x4d, 0x65, 0x73, 0x73, - 0x61, 0x67, 0x65, 0x32, 0xc2, 0x01, 0x0a, 0x02, 0x4f, 0x53, 0x12, 0x40, 0x0a, 0x07, 0x49, 0x6e, - 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x12, 0x17, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x73, 0x2e, - 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, - 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x28, 0x01, 0x30, 0x01, 0x12, 0x3f, 0x0a, 0x08, - 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x12, 0x18, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, - 0x6f, 0x73, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x73, 0x2e, 0x41, 0x63, 0x74, - 0x69, 0x76, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x39, 0x0a, - 0x06, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x12, 0x16, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, - 0x73, 0x2e, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x17, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x73, 0x2e, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x27, 0x5a, 0x1d, 0x67, 0x69, 0x74, 0x68, - 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, - 0x67, 0x2f, 0x67, 0x6e, 0x6f, 0x69, 0x2f, 0x6f, 0x73, 0xd2, 0x3e, 0x05, 0x30, 0x2e, 0x32, 0x2e, - 0x30, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x39, 0x0a, 0x06, 0x56, 0x65, 0x72, + 0x69, 0x66, 0x79, 0x12, 0x16, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x73, 0x2e, 0x56, 0x65, + 0x72, 0x69, 0x66, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x67, 0x6e, + 0x6f, 0x69, 0x2e, 0x6f, 0x73, 0x2e, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x27, 0x5a, 0x1d, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, + 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x67, 0x6e, + 0x6f, 0x69, 0x2f, 0x6f, 0x73, 0xd2, 0x3e, 0x05, 0x30, 0x2e, 0x31, 0x2e, 0x31, 0x62, 0x06, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/os/os.proto b/os/os.proto index 3cd58356..760e4caa 100644 --- a/os/os.proto +++ b/os/os.proto @@ -7,7 +7,7 @@ import "github.com/openconfig/gnoi/types/types.proto"; option go_package = "github.com/openconfig/gnoi/os"; -option (types.gnoi_version) = "0.2.0"; +option (types.gnoi_version) = "0.1.1"; // The OS service provides an interface for OS installation on a Target. The // Client progresses through 3 RPCs: @@ -110,8 +110,8 @@ service OS { rpc Install(stream InstallRequest) returns (stream InstallResponse); // Activate sets the requested OS version as the version which is used at the - // next reboot, and reboots the Target if the 'activate_and_reboot' flag is - // set. When booting the requested OS version fails, the Target recovers by + // next reboot, and reboots the Target if the 'no_reboot' flag is not set. + // When booting the requested OS version fails, the Target recovers by // booting the previously running OS package. rpc Activate(ActivateRequest) returns (ActivateResponse); @@ -257,12 +257,12 @@ message ActivateRequest { // For dual Supervisors setting this flag instructs the Target to perform the // action on the Standby Supervisor. bool standby_supervisor = 2; - // If set to 'True' the Target will initiate the reboot process immediatelly + // If set to 'False' the Target will initiate the reboot process immediatelly // after changing the next bootable OS version. - // If set to 'False' a separate action to reboot the Target and start using + // If set to 'True' a separate action to reboot the Target and start using // the activated OS version is required. This action CAN be executing // the gNOI.system.Reboot() RPC. - bool activate_and_reboot = 3; + bool no_reboot = 3; } // The ActivateResponse is sent from the Target to the Client in response to the diff --git a/os/os_grpc.pb.go b/os/os_grpc.pb.go index 0bcf3c1f..f383fefa 100644 --- a/os/os_grpc.pb.go +++ b/os/os_grpc.pb.go @@ -102,8 +102,8 @@ type OSClient interface { // Install(ctx context.Context, opts ...grpc.CallOption) (OS_InstallClient, error) // Activate sets the requested OS version as the version which is used at the - // next reboot, and reboots the Target if the 'activate_and_reboot' flag is - // set. When booting the requested OS version fails, the Target recovers by + // next reboot, and reboots the Target if the 'no_reboot' flag is not set. + // When booting the requested OS version fails, the Target recovers by // booting the previously running OS package. Activate(ctx context.Context, in *ActivateRequest, opts ...grpc.CallOption) (*ActivateResponse, error) // Verify checks the running OS version. This RPC may be called multiple times @@ -256,8 +256,8 @@ type OSServer interface { // Install(OS_InstallServer) error // Activate sets the requested OS version as the version which is used at the - // next reboot, and reboots the Target if the 'activate_and_reboot' flag is - // set. When booting the requested OS version fails, the Target recovers by + // next reboot, and reboots the Target if the 'no_reboot' flag is not set. + // When booting the requested OS version fails, the Target recovers by // booting the previously running OS package. Activate(context.Context, *ActivateRequest) (*ActivateResponse, error) // Verify checks the running OS version. This RPC may be called multiple times From d8ecac0882a27aa43a9a9aed31d1b230e788932f Mon Sep 17 00:00:00 2001 From: Marcus Hines Date: Wed, 21 Apr 2021 15:52:01 +0000 Subject: [PATCH 092/238] Creation of healthz service for gNOI --- compile_protos.sh | 6 +- healthz/README.md | 47 ++++++ healthz/healthz.pb.go | 323 +++++++++++++++++++++++++++++++++++++ healthz/healthz.proto | 63 ++++++++ healthz/healthz_grpc.pb.go | 105 ++++++++++++ 5 files changed, 541 insertions(+), 3 deletions(-) create mode 100644 healthz/README.md create mode 100644 healthz/healthz.pb.go create mode 100644 healthz/healthz.proto create mode 100644 healthz/healthz_grpc.pb.go diff --git a/compile_protos.sh b/compile_protos.sh index bc4aa2ba..bf00e647 100755 --- a/compile_protos.sh +++ b/compile_protos.sh @@ -1,10 +1,10 @@ -#!/bin/sh +#!/bin/bash set -euo pipefail proto_imports=".:${GOPATH}/src/github.com/google/protobuf/src:${GOPATH}/src" # Go -for p in types common diag bgp cert file interface layer2 mpls system os otdr wavelength_router; do - protoc -I=$proto_imports --go_out=. --go_opt=paths=source_relative --go-grpc_out=. --go-grpc_opt=paths=source_relative $p/$p.proto +for p in types common diag bgp cert file healthz interface layer2 mpls system otdr wavelength_router; do + protoc -I="${proto_imports}" --go-grpc_out=. --go-grpc_opt=paths=source_relative --go_out=. --go_opt=paths=source_relative $p/$p.proto done diff --git a/healthz/README.md b/healthz/README.md new file mode 100644 index 00000000..cb5fec32 --- /dev/null +++ b/healthz/README.md @@ -0,0 +1,47 @@ +# Healthz Overview + +The purpose of Healthz is to allow a component inside of a system to report its +health. The concept of asking "Are you healthy?" is a general design principle +in distributed systems. + +The ability to also include "implementation specific" details about the health +of the system or component is very standard for network devices in the form for +"show tech", "diag" or "debug" commands. These are very useful for getting +useful diagnostics about the system state to the implementers. Healthz exposes +these interfaces as queriable endpoints to allow operators to validate "health" +on components and if "unhealthy" gather implementor specific data to help triage +or reproduce issues. + +## Design + +* The service definition provides a Get method which is correlated with a + /component in the OC tree. The Get method is responsible for getting the + current status of the requested component path. This will cause the system + to fetch the current state of component this may entail running specific + validations and gathering any relevant status of the component to reflect + the "health check" + +* The internal design details of the "health check" and the frequency of the + health check are up to the implementor to determine. This presentation of + the status in OC is proposed to be modeled as + +```yang +component/healthz/status = Enum +component/healthz/last-unhealthy = Timestamp +component/healthz/unhealthy_count = Int64 +``` + +## Use Cases + +### Evaluate the long term health of the component + +The health of a component is critical to overall system health. The ability to +monitor the status of the component in the system has traditionally been tracked +via 'show commands' and some form of alarms via syslog or snmptraps. + +Healthz provides the implementtor the ability to react to issues and "store" the +metadata then provide a signal via streaming telemetry that this component has +experienced an unhealthy segment. The operator can then perform a 'Get' on the +component to fetch associated metadata for the event. If the event is transient +in nature, the counter will continue to increment and allow for operator to +observe this component is consistently unhealthy. diff --git a/healthz/healthz.pb.go b/healthz/healthz.pb.go new file mode 100644 index 00000000..718d5276 --- /dev/null +++ b/healthz/healthz.pb.go @@ -0,0 +1,323 @@ +// +// Copyright 2017 Google Inc. All Rights Reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +// Generic Network Operation Interface, GNOI, defines a set of RPC's used for +// the operational aspects of network targets. These services are meant to be +// used in conjunction with GNMI for all target state and operational aspects +// of a network target. The gnoi.system.Service is the only mandatory vendor +// implementation. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.26.0 +// protoc v3.12.4 +// source: healthz/healthz.proto + +package healthz + +import ( + types "github.com/openconfig/gnoi/types" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + anypb "google.golang.org/protobuf/types/known/anypb" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type GetResponse_Status int32 + +const ( + GetResponse_UNSPECIFIED GetResponse_Status = 0 // The path doesn't support healthz or the status is unknown. + GetResponse_HEALTHLY GetResponse_Status = 1 // The path is healthy + GetResponse_UNHEALTHY GetResponse_Status = 2 // The path is unhealthy +) + +// Enum value maps for GetResponse_Status. +var ( + GetResponse_Status_name = map[int32]string{ + 0: "UNSPECIFIED", + 1: "HEALTHLY", + 2: "UNHEALTHY", + } + GetResponse_Status_value = map[string]int32{ + "UNSPECIFIED": 0, + "HEALTHLY": 1, + "UNHEALTHY": 2, + } +) + +func (x GetResponse_Status) Enum() *GetResponse_Status { + p := new(GetResponse_Status) + *p = x + return p +} + +func (x GetResponse_Status) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (GetResponse_Status) Descriptor() protoreflect.EnumDescriptor { + return file_healthz_healthz_proto_enumTypes[0].Descriptor() +} + +func (GetResponse_Status) Type() protoreflect.EnumType { + return &file_healthz_healthz_proto_enumTypes[0] +} + +func (x GetResponse_Status) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use GetResponse_Status.Descriptor instead. +func (GetResponse_Status) EnumDescriptor() ([]byte, []int) { + return file_healthz_healthz_proto_rawDescGZIP(), []int{1, 0} +} + +type GetRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Path defines the component to try to fetch healthz state for. This will + // perform a full health check cycle for the component and return the status + // as well as any associated healthz data. + Path *types.Path `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` +} + +func (x *GetRequest) Reset() { + *x = GetRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_healthz_healthz_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetRequest) ProtoMessage() {} + +func (x *GetRequest) ProtoReflect() protoreflect.Message { + mi := &file_healthz_healthz_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetRequest.ProtoReflect.Descriptor instead. +func (*GetRequest) Descriptor() ([]byte, []int) { + return file_healthz_healthz_proto_rawDescGZIP(), []int{0} +} + +func (x *GetRequest) GetPath() *types.Path { + if x != nil { + return x.Path + } + return nil +} + +type GetResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Status GetResponse_Status `protobuf:"varint,1,opt,name=status,proto3,enum=gnoi.healthz.GetResponse_Status" json:"status,omitempty"` // Status of the path. + // Opaque data for how the healthcheck is implemented. This can be any proto + // defined by the vendor. This could be the equivalent to outputs like + // "show tech" or core files or any other diagnostic data. + Healthz *anypb.Any `protobuf:"bytes,2,opt,name=healthz,proto3" json:"healthz,omitempty"` +} + +func (x *GetResponse) Reset() { + *x = GetResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_healthz_healthz_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetResponse) ProtoMessage() {} + +func (x *GetResponse) ProtoReflect() protoreflect.Message { + mi := &file_healthz_healthz_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetResponse.ProtoReflect.Descriptor instead. +func (*GetResponse) Descriptor() ([]byte, []int) { + return file_healthz_healthz_proto_rawDescGZIP(), []int{1} +} + +func (x *GetResponse) GetStatus() GetResponse_Status { + if x != nil { + return x.Status + } + return GetResponse_UNSPECIFIED +} + +func (x *GetResponse) GetHealthz() *anypb.Any { + if x != nil { + return x.Healthz + } + return nil +} + +var File_healthz_healthz_proto protoreflect.FileDescriptor + +var file_healthz_healthz_proto_rawDesc = []byte{ + 0x0a, 0x15, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x7a, 0x2f, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, + 0x7a, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x68, 0x65, + 0x61, 0x6c, 0x74, 0x68, 0x7a, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x1a, 0x2c, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, + 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x67, 0x6e, 0x6f, 0x69, 0x2f, 0x74, 0x79, 0x70, + 0x65, 0x73, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x32, + 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x24, 0x0a, 0x04, + 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x67, 0x6e, 0x6f, + 0x69, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x50, 0x61, 0x74, 0x68, 0x52, 0x04, 0x70, 0x61, + 0x74, 0x68, 0x22, 0xaf, 0x01, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x38, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0e, 0x32, 0x20, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, + 0x7a, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x53, 0x74, + 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x2e, 0x0a, 0x07, + 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x7a, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, + 0x41, 0x6e, 0x79, 0x52, 0x07, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x7a, 0x22, 0x36, 0x0a, 0x06, + 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x0f, 0x0a, 0x0b, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, + 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x48, 0x45, 0x41, 0x4c, 0x54, + 0x48, 0x4c, 0x59, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x55, 0x4e, 0x48, 0x45, 0x41, 0x4c, 0x54, + 0x48, 0x59, 0x10, 0x02, 0x32, 0x47, 0x0a, 0x07, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x7a, 0x12, + 0x3c, 0x0a, 0x03, 0x47, 0x65, 0x74, 0x12, 0x18, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x68, 0x65, + 0x61, 0x6c, 0x74, 0x68, 0x7a, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x19, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x7a, 0x2e, + 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x2c, 0x5a, + 0x22, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, + 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x67, 0x6e, 0x6f, 0x69, 0x2f, 0x68, 0x65, 0x61, 0x6c, + 0x74, 0x68, 0x7a, 0xd2, 0x3e, 0x05, 0x31, 0x2e, 0x30, 0x2e, 0x30, 0x62, 0x06, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x33, +} + +var ( + file_healthz_healthz_proto_rawDescOnce sync.Once + file_healthz_healthz_proto_rawDescData = file_healthz_healthz_proto_rawDesc +) + +func file_healthz_healthz_proto_rawDescGZIP() []byte { + file_healthz_healthz_proto_rawDescOnce.Do(func() { + file_healthz_healthz_proto_rawDescData = protoimpl.X.CompressGZIP(file_healthz_healthz_proto_rawDescData) + }) + return file_healthz_healthz_proto_rawDescData +} + +var file_healthz_healthz_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_healthz_healthz_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_healthz_healthz_proto_goTypes = []interface{}{ + (GetResponse_Status)(0), // 0: gnoi.healthz.GetResponse.Status + (*GetRequest)(nil), // 1: gnoi.healthz.GetRequest + (*GetResponse)(nil), // 2: gnoi.healthz.GetResponse + (*types.Path)(nil), // 3: gnoi.types.Path + (*anypb.Any)(nil), // 4: google.protobuf.Any +} +var file_healthz_healthz_proto_depIdxs = []int32{ + 3, // 0: gnoi.healthz.GetRequest.path:type_name -> gnoi.types.Path + 0, // 1: gnoi.healthz.GetResponse.status:type_name -> gnoi.healthz.GetResponse.Status + 4, // 2: gnoi.healthz.GetResponse.healthz:type_name -> google.protobuf.Any + 1, // 3: gnoi.healthz.Healthz.Get:input_type -> gnoi.healthz.GetRequest + 2, // 4: gnoi.healthz.Healthz.Get:output_type -> gnoi.healthz.GetResponse + 4, // [4:5] is the sub-list for method output_type + 3, // [3:4] is the sub-list for method input_type + 3, // [3:3] is the sub-list for extension type_name + 3, // [3:3] is the sub-list for extension extendee + 0, // [0:3] is the sub-list for field type_name +} + +func init() { file_healthz_healthz_proto_init() } +func file_healthz_healthz_proto_init() { + if File_healthz_healthz_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_healthz_healthz_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_healthz_healthz_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_healthz_healthz_proto_rawDesc, + NumEnums: 1, + NumMessages: 2, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_healthz_healthz_proto_goTypes, + DependencyIndexes: file_healthz_healthz_proto_depIdxs, + EnumInfos: file_healthz_healthz_proto_enumTypes, + MessageInfos: file_healthz_healthz_proto_msgTypes, + }.Build() + File_healthz_healthz_proto = out.File + file_healthz_healthz_proto_rawDesc = nil + file_healthz_healthz_proto_goTypes = nil + file_healthz_healthz_proto_depIdxs = nil +} diff --git a/healthz/healthz.proto b/healthz/healthz.proto new file mode 100644 index 00000000..bebeaddb --- /dev/null +++ b/healthz/healthz.proto @@ -0,0 +1,63 @@ +// +// Copyright 2017 Google Inc. All Rights Reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +// Generic Network Operation Interface, GNOI, defines a set of RPC's used for +// the operational aspects of network targets. These services are meant to be +// used in conjunction with GNMI for all target state and operational aspects +// of a network target. The gnoi.system.Service is the only mandatory vendor +// implementation. + +syntax = "proto3"; + +package gnoi.healthz; + +option go_package = "github.com/openconfig/gnoi/healthz"; + +import "github.com/openconfig/gnoi/types/types.proto"; +import "google/protobuf/any.proto"; + +option (types.gnoi_version) = "1.0.0"; + +// The Healthz service provides access to the status of a path on the +// system. Addtitionally it allows the implementor to provide path specific +// diagnositic data into the status return. +// +// Healthz is expected to work in conjunction with the component OC model. +service Healthz { + // Get will get health status for a gNMI path. If no status is available for + // the requested path an error will be returned. + rpc Get(GetRequest) returns (GetResponse) {} +} + +message GetRequest { + // Path defines the component to try to fetch healthz state for. This will + // perform a full health check cycle for the component and return the status + // as well as any associated healthz data. + types.Path path = 1; +} + +message GetResponse { + enum Status { + UNSPECIFIED = 0; // The path doesn't support healthz or unknown status. + HEALTHLY = 1; // The path is healthy + UNHEALTHY = 2; // The path is unhealthy + } + Status status = 1; // Status of the path. + // Opaque data for how the healthcheck is implemented. This can be any proto + // defined by the vendor. This could be the equivalent to outputs like + // "show tech" or core files or any other diagnostic data. + google.protobuf.Any healthz = 2; +} diff --git a/healthz/healthz_grpc.pb.go b/healthz/healthz_grpc.pb.go new file mode 100644 index 00000000..2c47252a --- /dev/null +++ b/healthz/healthz_grpc.pb.go @@ -0,0 +1,105 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. + +package healthz + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.32.0 or later. +const _ = grpc.SupportPackageIsVersion7 + +// HealthzClient is the client API for Healthz service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type HealthzClient interface { + // Get will get health status for a gNMI path. If no status is available for + // the requested path an error will be returned. + Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error) +} + +type healthzClient struct { + cc grpc.ClientConnInterface +} + +func NewHealthzClient(cc grpc.ClientConnInterface) HealthzClient { + return &healthzClient{cc} +} + +func (c *healthzClient) Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error) { + out := new(GetResponse) + err := c.cc.Invoke(ctx, "/gnoi.healthz.Healthz/Get", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// HealthzServer is the server API for Healthz service. +// All implementations must embed UnimplementedHealthzServer +// for forward compatibility +type HealthzServer interface { + // Get will get health status for a gNMI path. If no status is available for + // the requested path an error will be returned. + Get(context.Context, *GetRequest) (*GetResponse, error) + mustEmbedUnimplementedHealthzServer() +} + +// UnimplementedHealthzServer must be embedded to have forward compatible implementations. +type UnimplementedHealthzServer struct { +} + +func (UnimplementedHealthzServer) Get(context.Context, *GetRequest) (*GetResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Get not implemented") +} +func (UnimplementedHealthzServer) mustEmbedUnimplementedHealthzServer() {} + +// UnsafeHealthzServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to HealthzServer will +// result in compilation errors. +type UnsafeHealthzServer interface { + mustEmbedUnimplementedHealthzServer() +} + +func RegisterHealthzServer(s grpc.ServiceRegistrar, srv HealthzServer) { + s.RegisterService(&Healthz_ServiceDesc, srv) +} + +func _Healthz_Get_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(HealthzServer).Get(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gnoi.healthz.Healthz/Get", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(HealthzServer).Get(ctx, req.(*GetRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// Healthz_ServiceDesc is the grpc.ServiceDesc for Healthz service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var Healthz_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "gnoi.healthz.Healthz", + HandlerType: (*HealthzServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "Get", + Handler: _Healthz_Get_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "healthz/healthz.proto", +} From b00b295452175c767460bc81446629199887996e Mon Sep 17 00:00:00 2001 From: marcushines <80116818+marcushines@users.noreply.github.com> Date: Mon, 5 Apr 2021 10:39:38 -0700 Subject: [PATCH 093/238] Update README.md --- healthz/README.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/healthz/README.md b/healthz/README.md index cb5fec32..9719f52c 100644 --- a/healthz/README.md +++ b/healthz/README.md @@ -14,16 +14,16 @@ or reproduce issues. ## Design -* The service definition provides a Get method which is correlated with a - /component in the OC tree. The Get method is responsible for getting the - current status of the requested component path. This will cause the system - to fetch the current state of component this may entail running specific - validations and gathering any relevant status of the component to reflect - the "health check" - -* The internal design details of the "health check" and the frequency of the - health check are up to the implementor to determine. This presentation of - the status in OC is proposed to be modeled as +* The service definition provides a Get method which is correlated with a + /component in the OC tree. The Get method is responsible for getting the + current status of the requested component path. This will cause the system + to fetch the current state of component this may entail running specific + validations and gathering any relevant status of the component to reflect + the "health check" + +* The internal design details of the "health check" and the frequency of the + health check are up to the implementor to determine. This presentation of + the status in OC is proposed to be modeled as ```yang component/healthz/status = Enum From b59322f3d80c6a422d9f300e750203fab734ac9c Mon Sep 17 00:00:00 2001 From: Marcus Hines Date: Mon, 5 Apr 2021 17:59:13 +0000 Subject: [PATCH 094/238] update healthz proto --- healthz/healthz.proto | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/healthz/healthz.proto b/healthz/healthz.proto index bebeaddb..e8086919 100644 --- a/healthz/healthz.proto +++ b/healthz/healthz.proto @@ -22,13 +22,13 @@ syntax = "proto3"; +import "github.com/openconfig/gnoi/types/types.proto"; +import "google/protobuf/any.proto"; + package gnoi.healthz; option go_package = "github.com/openconfig/gnoi/healthz"; -import "github.com/openconfig/gnoi/types/types.proto"; -import "google/protobuf/any.proto"; - option (types.gnoi_version) = "1.0.0"; // The Healthz service provides access to the status of a path on the From f47a96504481897f71a1fdb5dbb1c8bee2e7fa6b Mon Sep 17 00:00:00 2001 From: Marcus Hines Date: Mon, 5 Apr 2021 18:37:02 +0000 Subject: [PATCH 095/238] update heatlhz to pass lint --- healthz/healthz.proto | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/healthz/healthz.proto b/healthz/healthz.proto index e8086919..fed984ae 100644 --- a/healthz/healthz.proto +++ b/healthz/healthz.proto @@ -22,11 +22,12 @@ syntax = "proto3"; -import "github.com/openconfig/gnoi/types/types.proto"; -import "google/protobuf/any.proto"; package gnoi.healthz; +import "github.com/openconfig/gnoi/types/types.proto"; +import "google/protobuf/any.proto"; + option go_package = "github.com/openconfig/gnoi/healthz"; option (types.gnoi_version) = "1.0.0"; @@ -49,12 +50,13 @@ message GetRequest { types.Path path = 1; } +enum Status { + STATUS_UNSPECIFIED = 0; // The path doesn't support healthz + STATUS_HEALTHLY = 1; // The path is healthy + STATUS_UNHEALTHY = 2; // The path is unhealthy +} + message GetResponse { - enum Status { - UNSPECIFIED = 0; // The path doesn't support healthz or unknown status. - HEALTHLY = 1; // The path is healthy - UNHEALTHY = 2; // The path is unhealthy - } Status status = 1; // Status of the path. // Opaque data for how the healthcheck is implemented. This can be any proto // defined by the vendor. This could be the equivalent to outputs like From 31d7aaa955b5ed46f317d2b6e34d411e4f69bebe Mon Sep 17 00:00:00 2001 From: Marcus Hines Date: Mon, 5 Apr 2021 21:36:10 +0000 Subject: [PATCH 096/238] Refine component status --- healthz/healthz.pb.go | 245 +++++++++++++++++++++++++++++------------- healthz/healthz.proto | 14 ++- 2 files changed, 180 insertions(+), 79 deletions(-) diff --git a/healthz/healthz.pb.go b/healthz/healthz.pb.go index 718d5276..32287339 100644 --- a/healthz/healthz.pb.go +++ b/healthz/healthz.pb.go @@ -44,53 +44,53 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) -type GetResponse_Status int32 +type Status int32 const ( - GetResponse_UNSPECIFIED GetResponse_Status = 0 // The path doesn't support healthz or the status is unknown. - GetResponse_HEALTHLY GetResponse_Status = 1 // The path is healthy - GetResponse_UNHEALTHY GetResponse_Status = 2 // The path is unhealthy + Status_STATUS_UNSPECIFIED Status = 0 // The path doesn't support healthz + Status_STATUS_HEALTHLY Status = 1 // The path is healthy + Status_STATUS_UNHEALTHY Status = 2 // The path is unhealthy ) -// Enum value maps for GetResponse_Status. +// Enum value maps for Status. var ( - GetResponse_Status_name = map[int32]string{ - 0: "UNSPECIFIED", - 1: "HEALTHLY", - 2: "UNHEALTHY", + Status_name = map[int32]string{ + 0: "STATUS_UNSPECIFIED", + 1: "STATUS_HEALTHLY", + 2: "STATUS_UNHEALTHY", } - GetResponse_Status_value = map[string]int32{ - "UNSPECIFIED": 0, - "HEALTHLY": 1, - "UNHEALTHY": 2, + Status_value = map[string]int32{ + "STATUS_UNSPECIFIED": 0, + "STATUS_HEALTHLY": 1, + "STATUS_UNHEALTHY": 2, } ) -func (x GetResponse_Status) Enum() *GetResponse_Status { - p := new(GetResponse_Status) +func (x Status) Enum() *Status { + p := new(Status) *p = x return p } -func (x GetResponse_Status) String() string { +func (x Status) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } -func (GetResponse_Status) Descriptor() protoreflect.EnumDescriptor { +func (Status) Descriptor() protoreflect.EnumDescriptor { return file_healthz_healthz_proto_enumTypes[0].Descriptor() } -func (GetResponse_Status) Type() protoreflect.EnumType { +func (Status) Type() protoreflect.EnumType { return &file_healthz_healthz_proto_enumTypes[0] } -func (x GetResponse_Status) Number() protoreflect.EnumNumber { +func (x Status) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } -// Deprecated: Use GetResponse_Status.Descriptor instead. -func (GetResponse_Status) EnumDescriptor() ([]byte, []int) { - return file_healthz_healthz_proto_rawDescGZIP(), []int{1, 0} +// Deprecated: Use Status.Descriptor instead. +func (Status) EnumDescriptor() ([]byte, []int) { + return file_healthz_healthz_proto_rawDescGZIP(), []int{0} } type GetRequest struct { @@ -143,20 +143,24 @@ func (x *GetRequest) GetPath() *types.Path { return nil } -type GetResponse struct { +type ComponentStatus struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Status GetResponse_Status `protobuf:"varint,1,opt,name=status,proto3,enum=gnoi.healthz.GetResponse_Status" json:"status,omitempty"` // Status of the path. + Path *types.Path `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` // path of subcomponent. + // Subcomponents that are aggregated by this status. + Subcomponents []*ComponentStatus `protobuf:"bytes,2,rep,name=subcomponents,proto3" json:"subcomponents,omitempty"` + // Status of this component. + Status Status `protobuf:"varint,3,opt,name=status,proto3,enum=gnoi.healthz.Status" json:"status,omitempty"` // Opaque data for how the healthcheck is implemented. This can be any proto // defined by the vendor. This could be the equivalent to outputs like // "show tech" or core files or any other diagnostic data. - Healthz *anypb.Any `protobuf:"bytes,2,opt,name=healthz,proto3" json:"healthz,omitempty"` + Healthz *anypb.Any `protobuf:"bytes,4,opt,name=healthz,proto3" json:"healthz,omitempty"` } -func (x *GetResponse) Reset() { - *x = GetResponse{} +func (x *ComponentStatus) Reset() { + *x = ComponentStatus{} if protoimpl.UnsafeEnabled { mi := &file_healthz_healthz_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -164,13 +168,13 @@ func (x *GetResponse) Reset() { } } -func (x *GetResponse) String() string { +func (x *ComponentStatus) String() string { return protoimpl.X.MessageStringOf(x) } -func (*GetResponse) ProtoMessage() {} +func (*ComponentStatus) ProtoMessage() {} -func (x *GetResponse) ProtoReflect() protoreflect.Message { +func (x *ComponentStatus) ProtoReflect() protoreflect.Message { mi := &file_healthz_healthz_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -182,58 +186,131 @@ func (x *GetResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetResponse.ProtoReflect.Descriptor instead. -func (*GetResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use ComponentStatus.ProtoReflect.Descriptor instead. +func (*ComponentStatus) Descriptor() ([]byte, []int) { return file_healthz_healthz_proto_rawDescGZIP(), []int{1} } -func (x *GetResponse) GetStatus() GetResponse_Status { +func (x *ComponentStatus) GetPath() *types.Path { + if x != nil { + return x.Path + } + return nil +} + +func (x *ComponentStatus) GetSubcomponents() []*ComponentStatus { + if x != nil { + return x.Subcomponents + } + return nil +} + +func (x *ComponentStatus) GetStatus() Status { if x != nil { return x.Status } - return GetResponse_UNSPECIFIED + return Status_STATUS_UNSPECIFIED } -func (x *GetResponse) GetHealthz() *anypb.Any { +func (x *ComponentStatus) GetHealthz() *anypb.Any { if x != nil { return x.Healthz } return nil } +type GetResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Component *ComponentStatus `protobuf:"bytes,1,opt,name=component,proto3" json:"component,omitempty"` +} + +func (x *GetResponse) Reset() { + *x = GetResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_healthz_healthz_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetResponse) ProtoMessage() {} + +func (x *GetResponse) ProtoReflect() protoreflect.Message { + mi := &file_healthz_healthz_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetResponse.ProtoReflect.Descriptor instead. +func (*GetResponse) Descriptor() ([]byte, []int) { + return file_healthz_healthz_proto_rawDescGZIP(), []int{2} +} + +func (x *GetResponse) GetComponent() *ComponentStatus { + if x != nil { + return x.Component + } + return nil +} + var File_healthz_healthz_proto protoreflect.FileDescriptor var file_healthz_healthz_proto_rawDesc = []byte{ 0x0a, 0x15, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x7a, 0x2f, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x7a, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x68, 0x65, - 0x61, 0x6c, 0x74, 0x68, 0x7a, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x1a, 0x2c, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, - 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x67, 0x6e, 0x6f, 0x69, 0x2f, 0x74, 0x79, 0x70, - 0x65, 0x73, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x32, + 0x61, 0x6c, 0x74, 0x68, 0x7a, 0x1a, 0x2c, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, + 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x67, 0x6e, 0x6f, + 0x69, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x32, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x24, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x50, 0x61, 0x74, 0x68, 0x52, 0x04, 0x70, 0x61, - 0x74, 0x68, 0x22, 0xaf, 0x01, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x38, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0e, 0x32, 0x20, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, - 0x7a, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x53, 0x74, - 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x2e, 0x0a, 0x07, - 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x7a, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x41, 0x6e, 0x79, 0x52, 0x07, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x7a, 0x22, 0x36, 0x0a, 0x06, - 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x0f, 0x0a, 0x0b, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, - 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x48, 0x45, 0x41, 0x4c, 0x54, - 0x48, 0x4c, 0x59, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x55, 0x4e, 0x48, 0x45, 0x41, 0x4c, 0x54, - 0x48, 0x59, 0x10, 0x02, 0x32, 0x47, 0x0a, 0x07, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x7a, 0x12, - 0x3c, 0x0a, 0x03, 0x47, 0x65, 0x74, 0x12, 0x18, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x68, 0x65, - 0x61, 0x6c, 0x74, 0x68, 0x7a, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x19, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x7a, 0x2e, - 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x2c, 0x5a, - 0x22, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, - 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x67, 0x6e, 0x6f, 0x69, 0x2f, 0x68, 0x65, 0x61, 0x6c, - 0x74, 0x68, 0x7a, 0xd2, 0x3e, 0x05, 0x31, 0x2e, 0x30, 0x2e, 0x30, 0x62, 0x06, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x33, + 0x74, 0x68, 0x22, 0xda, 0x01, 0x0a, 0x0f, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, + 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x24, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x74, 0x79, 0x70, 0x65, + 0x73, 0x2e, 0x50, 0x61, 0x74, 0x68, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x43, 0x0a, 0x0d, + 0x73, 0x75, 0x62, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x02, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x68, 0x65, 0x61, 0x6c, 0x74, + 0x68, 0x7a, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x53, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x52, 0x0d, 0x73, 0x75, 0x62, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, + 0x73, 0x12, 0x2c, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x0e, 0x32, 0x14, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x7a, + 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, + 0x2e, 0x0a, 0x07, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x7a, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x07, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x7a, 0x22, + 0x4a, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3b, + 0x0a, 0x09, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x7a, + 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x52, 0x09, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x2a, 0x4b, 0x0a, 0x06, 0x53, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x16, 0x0a, 0x12, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, + 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x13, 0x0a, + 0x0f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x48, 0x45, 0x41, 0x4c, 0x54, 0x48, 0x4c, 0x59, + 0x10, 0x01, 0x12, 0x14, 0x0a, 0x10, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x48, + 0x45, 0x41, 0x4c, 0x54, 0x48, 0x59, 0x10, 0x02, 0x32, 0x47, 0x0a, 0x07, 0x48, 0x65, 0x61, 0x6c, + 0x74, 0x68, 0x7a, 0x12, 0x3c, 0x0a, 0x03, 0x47, 0x65, 0x74, 0x12, 0x18, 0x2e, 0x67, 0x6e, 0x6f, + 0x69, 0x2e, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x7a, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x68, 0x65, 0x61, 0x6c, + 0x74, 0x68, 0x7a, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x00, 0x42, 0x2c, 0x5a, 0x22, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, + 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x67, 0x6e, 0x6f, 0x69, 0x2f, + 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x7a, 0xd2, 0x3e, 0x05, 0x31, 0x2e, 0x30, 0x2e, 0x30, 0x62, + 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -249,25 +326,29 @@ func file_healthz_healthz_proto_rawDescGZIP() []byte { } var file_healthz_healthz_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_healthz_healthz_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_healthz_healthz_proto_msgTypes = make([]protoimpl.MessageInfo, 3) var file_healthz_healthz_proto_goTypes = []interface{}{ - (GetResponse_Status)(0), // 0: gnoi.healthz.GetResponse.Status + (Status)(0), // 0: gnoi.healthz.Status (*GetRequest)(nil), // 1: gnoi.healthz.GetRequest - (*GetResponse)(nil), // 2: gnoi.healthz.GetResponse - (*types.Path)(nil), // 3: gnoi.types.Path - (*anypb.Any)(nil), // 4: google.protobuf.Any + (*ComponentStatus)(nil), // 2: gnoi.healthz.ComponentStatus + (*GetResponse)(nil), // 3: gnoi.healthz.GetResponse + (*types.Path)(nil), // 4: gnoi.types.Path + (*anypb.Any)(nil), // 5: google.protobuf.Any } var file_healthz_healthz_proto_depIdxs = []int32{ - 3, // 0: gnoi.healthz.GetRequest.path:type_name -> gnoi.types.Path - 0, // 1: gnoi.healthz.GetResponse.status:type_name -> gnoi.healthz.GetResponse.Status - 4, // 2: gnoi.healthz.GetResponse.healthz:type_name -> google.protobuf.Any - 1, // 3: gnoi.healthz.Healthz.Get:input_type -> gnoi.healthz.GetRequest - 2, // 4: gnoi.healthz.Healthz.Get:output_type -> gnoi.healthz.GetResponse - 4, // [4:5] is the sub-list for method output_type - 3, // [3:4] is the sub-list for method input_type - 3, // [3:3] is the sub-list for extension type_name - 3, // [3:3] is the sub-list for extension extendee - 0, // [0:3] is the sub-list for field type_name + 4, // 0: gnoi.healthz.GetRequest.path:type_name -> gnoi.types.Path + 4, // 1: gnoi.healthz.ComponentStatus.path:type_name -> gnoi.types.Path + 2, // 2: gnoi.healthz.ComponentStatus.subcomponents:type_name -> gnoi.healthz.ComponentStatus + 0, // 3: gnoi.healthz.ComponentStatus.status:type_name -> gnoi.healthz.Status + 5, // 4: gnoi.healthz.ComponentStatus.healthz:type_name -> google.protobuf.Any + 2, // 5: gnoi.healthz.GetResponse.component:type_name -> gnoi.healthz.ComponentStatus + 1, // 6: gnoi.healthz.Healthz.Get:input_type -> gnoi.healthz.GetRequest + 3, // 7: gnoi.healthz.Healthz.Get:output_type -> gnoi.healthz.GetResponse + 7, // [7:8] is the sub-list for method output_type + 6, // [6:7] is the sub-list for method input_type + 6, // [6:6] is the sub-list for extension type_name + 6, // [6:6] is the sub-list for extension extendee + 0, // [0:6] is the sub-list for field type_name } func init() { file_healthz_healthz_proto_init() } @@ -289,6 +370,18 @@ func file_healthz_healthz_proto_init() { } } file_healthz_healthz_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ComponentStatus); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_healthz_healthz_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetResponse); i { case 0: return &v.state @@ -307,7 +400,7 @@ func file_healthz_healthz_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_healthz_healthz_proto_rawDesc, NumEnums: 1, - NumMessages: 2, + NumMessages: 3, NumExtensions: 0, NumServices: 1, }, diff --git a/healthz/healthz.proto b/healthz/healthz.proto index fed984ae..8b529d64 100644 --- a/healthz/healthz.proto +++ b/healthz/healthz.proto @@ -56,10 +56,18 @@ enum Status { STATUS_UNHEALTHY = 2; // The path is unhealthy } -message GetResponse { - Status status = 1; // Status of the path. +message ComponentStatus { + types.Path path = 1; // path of subcomponent. + // Subcomponents that are aggregated by this status. + repeated ComponentStatus subcomponents = 2; + // Status of this component. + Status status = 3; // Opaque data for how the healthcheck is implemented. This can be any proto // defined by the vendor. This could be the equivalent to outputs like // "show tech" or core files or any other diagnostic data. - google.protobuf.Any healthz = 2; + google.protobuf.Any healthz = 4; +} + +message GetResponse { + ComponentStatus component = 1; } From 5ff593d37d42c813044c783b92556aa07599e442 Mon Sep 17 00:00:00 2001 From: Vamsi Punati Date: Fri, 7 May 2021 10:42:51 -0700 Subject: [PATCH 097/238] Fixing Copyright and update some of the repositories in bzl files --- BUILD | 11 +---------- WORKSPACE | 2 +- bazel-bin | 1 + bazel-gnoi | 1 + bazel-out | 1 + bazel-testlogs | 1 + bgp/BUILD | 2 +- cert/BUILD | 2 +- common/BUILD | 2 +- diag/BUILD | 2 +- factory_reset/BUILD | 2 +- file/BUILD | 2 +- gnoi_infra_deps.bzl | 44 +++++++++++++++++++++-------------------- interface/BUILD | 2 +- layer2/BUILD | 2 +- mpls/BUILD | 2 +- os/BUILD | 2 +- otdr/BUILD | 2 +- system/BUILD | 19 +++++++++++++++--- types/BUILD | 2 +- wavelength_router/BUILD | 2 +- 21 files changed, 58 insertions(+), 48 deletions(-) create mode 120000 bazel-bin create mode 120000 bazel-gnoi create mode 120000 bazel-out create mode 120000 bazel-testlogs diff --git a/BUILD b/BUILD index 7d097421..57616d15 100644 --- a/BUILD +++ b/BUILD @@ -1,4 +1,4 @@ -# Copyright 2020 Google LLC +# Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -20,12 +20,3 @@ package( ) exports_files(["LICENSE"]) - -# copybara:insert_begin(For format.sh script) -# load("@com_github_bazelbuild_buildtools//buildifier:def.bzl", "buildifier") -# -# buildifier( -# name = "buildifier", -# ) -# copybara:insert_end - diff --git a/WORKSPACE b/WORKSPACE index 8809456e..efad5d99 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -1,4 +1,4 @@ -# Copyright 2020 Google LLC +# Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/bazel-bin b/bazel-bin new file mode 120000 index 00000000..3fdbec68 --- /dev/null +++ b/bazel-bin @@ -0,0 +1 @@ +/usr/local/google/home/vpunati/.cache/bazel/_bazel_vpunati/74a6b93027ff75445a1a363a61de2133/execroot/gnoi/bazel-out/k8-fastbuild/bin \ No newline at end of file diff --git a/bazel-gnoi b/bazel-gnoi new file mode 120000 index 00000000..05758ff0 --- /dev/null +++ b/bazel-gnoi @@ -0,0 +1 @@ +/usr/local/google/home/vpunati/.cache/bazel/_bazel_vpunati/74a6b93027ff75445a1a363a61de2133/execroot/gnoi \ No newline at end of file diff --git a/bazel-out b/bazel-out new file mode 120000 index 00000000..8a5b93e2 --- /dev/null +++ b/bazel-out @@ -0,0 +1 @@ +/usr/local/google/home/vpunati/.cache/bazel/_bazel_vpunati/74a6b93027ff75445a1a363a61de2133/execroot/gnoi/bazel-out \ No newline at end of file diff --git a/bazel-testlogs b/bazel-testlogs new file mode 120000 index 00000000..4486c79a --- /dev/null +++ b/bazel-testlogs @@ -0,0 +1 @@ +/usr/local/google/home/vpunati/.cache/bazel/_bazel_vpunati/74a6b93027ff75445a1a363a61de2133/execroot/gnoi/bazel-out/k8-fastbuild/testlogs \ No newline at end of file diff --git a/bgp/BUILD b/bgp/BUILD index f4b9be16..cbf57259 100644 --- a/bgp/BUILD +++ b/bgp/BUILD @@ -1,4 +1,4 @@ -#Copyright 2020 Google LLC +#Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/cert/BUILD b/cert/BUILD index e6529956..db0fa9ae 100644 --- a/cert/BUILD +++ b/cert/BUILD @@ -1,4 +1,4 @@ -#Copyright 2020 Google LLC +#Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/common/BUILD b/common/BUILD index ea198e6d..44389503 100644 --- a/common/BUILD +++ b/common/BUILD @@ -1,4 +1,4 @@ -#Copyright 2020 Google LLC +#Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/diag/BUILD b/diag/BUILD index 7895d2f9..7a7b3745 100644 --- a/diag/BUILD +++ b/diag/BUILD @@ -1,4 +1,4 @@ -#Copyright 2020 Google LLC +#Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/factory_reset/BUILD b/factory_reset/BUILD index 7ee115c7..f7c9a7b5 100644 --- a/factory_reset/BUILD +++ b/factory_reset/BUILD @@ -1,4 +1,4 @@ -#Copyright 2020 Google LLC +#Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/file/BUILD b/file/BUILD index 59a15b6b..93bb504b 100644 --- a/file/BUILD +++ b/file/BUILD @@ -1,4 +1,4 @@ -#Copyright 2020 Google LLC +#Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/gnoi_infra_deps.bzl b/gnoi_infra_deps.bzl index b8949200..35f2f130 100644 --- a/gnoi_infra_deps.bzl +++ b/gnoi_infra_deps.bzl @@ -1,4 +1,4 @@ -# Copyright 2020 Google LLC +# Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -21,46 +21,48 @@ def gnoi_infra_deps(): """Declare the third-party dependencies necessary to build GNOI infrastructure""" if not native.existing_rule("com_github_grpc_grpc"): - git_repository( + http_archive( name = "com_github_grpc_grpc", - remote = "https://github.com/grpc/grpc", - commit = "638c34ceba0c050574f473745a1316b3a9cf4136", - shallow_since = "1606864594 -0800", - ) + # Move to newer commit to avoid the use of com_github_google_re2. + url = "https://github.com/grpc/grpc/archive/565520443bdbda0b8ac28337a4904f3f20276305.zip", + strip_prefix = "grpc-565520443bdbda0b8ac28337a4904f3f20276305", + sha256 = "7206cc8e4511620fe70da7234bc98d6a4cd2eb226a7914f68fdbd991ffe38d34", + ) if not native.existing_rule("com_google_absl"): http_archive( name = "com_google_absl", - sha256 = "f41868f7a938605c92936230081175d1eae87f6ea2c248f41077c8f88316f111", - strip_prefix = "abseil-cpp-20200225.2", - url = "https://github.com/abseil/abseil-cpp/archive/20200225.2.tar.gz", + url = "https://github.com/abseil/abseil-cpp/archive/refs/tags/20210324.rc1.tar.gz", + strip_prefix = "abseil-cpp-20210324.rc1", + sha256 = "7e0cf185ddd0459e8e55a9c51a548e859d98c0d7533de374bf038e4c7434f682", ) if not native.existing_rule("com_google_googletest"): http_archive( name = "com_google_googletest", - sha256 = "9dc9157a9a1551ec7a7e43daea9a694a0bb5fb8bec81235d8a1e6ef64c716dcb", - strip_prefix = "googletest-release-1.10.0", urls = ["https://github.com/google/googletest/archive/release-1.10.0.tar.gz"], + strip_prefix = "googletest-release-1.10.0", + sha256 = "9dc9157a9a1551ec7a7e43daea9a694a0bb5fb8bec81235d8a1e6ef64c716dcb", ) if not native.existing_rule("com_google_protobuf"): http_archive( name = "com_google_protobuf", - sha256 = "1a83f0525e5c8096b7b812181865da3c8637de88f9777056cefbf51a1eb0b83f", - strip_prefix = "protobuf-3.12.3", - url = "https://github.com/protocolbuffers/protobuf/releases/download/v3.12.3/protobuf-all-3.12.3.tar.gz", + url = "https://github.com/protocolbuffers/protobuf/releases/download/v3.14.0/protobuf-all-3.14.0.tar.gz", + strip_prefix = "protobuf-3.14.0", + sha256 = "6dd0f6b20094910fbb7f1f7908688df01af2d4f6c5c21331b9f636048674aebf", ) if not native.existing_rule("com_googlesource_code_re2"): http_archive( name = "com_googlesource_code_re2", - sha256 = "2e9489a31ae007c81e90e8ec8a15d62d58a9c18d4fd1603f6441ef248556b41f", - strip_prefix = "re2-2020-07-06", - url = "https://github.com/google/re2/archive/2020-07-06.tar.gz", + # Newest commit on "absl" branch as of 2021-03-25. + url = "https://github.com/google/re2/archive/72f110e82ccf3a9ae1c9418bfb447c3ba1cf95c2.zip", + strip_prefix = "re2-72f110e82ccf3a9ae1c9418bfb447c3ba1cf95c2", + sha256 = "146bf2e8796317843106a90543356c1baa4b48236a572e39971b839172f6270e", ) if not native.existing_rule("com_google_googleapis"): - git_repository( + http_archive( name = "com_google_googleapis", - commit = "dd244bb3a5023a4a9290b21dae6b99020c026123", - remote = "https://github.com/googleapis/googleapis", - shallow_since = "1591402163 -0700", + url = "https://github.com/googleapis/googleapis/archive/f405c718d60484124808adb7fb5963974d654bb4.zip", + strip_prefix = "googleapis-f405c718d60484124808adb7fb5963974d654bb4", + sha256 = "406b64643eede84ce3e0821a1d01f66eaf6254e79cb9c4f53be9054551935e79", ) if not native.existing_rule("rules_cc"): git_repository( diff --git a/interface/BUILD b/interface/BUILD index 9379161b..3ae12966 100644 --- a/interface/BUILD +++ b/interface/BUILD @@ -1,4 +1,4 @@ -#Copyright 2020 Google LLC +#Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/layer2/BUILD b/layer2/BUILD index 7df3b062..49b29e82 100644 --- a/layer2/BUILD +++ b/layer2/BUILD @@ -1,4 +1,4 @@ -#Copyright 2020 Google LLC +#Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/mpls/BUILD b/mpls/BUILD index a29ae4c8..94f7fd00 100644 --- a/mpls/BUILD +++ b/mpls/BUILD @@ -1,4 +1,4 @@ -#Copyright 2020 Google LLC +#Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/os/BUILD b/os/BUILD index fb9e80d2..8b2ad4f1 100644 --- a/os/BUILD +++ b/os/BUILD @@ -1,4 +1,4 @@ -#Copyright 2020 Google LLC +#Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/otdr/BUILD b/otdr/BUILD index 3cc40d6a..cef2ea25 100644 --- a/otdr/BUILD +++ b/otdr/BUILD @@ -1,4 +1,4 @@ -#Copyright 2020 Google LLC +#Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/system/BUILD b/system/BUILD index 0d083201..1d785e53 100644 --- a/system/BUILD +++ b/system/BUILD @@ -1,6 +1,19 @@ -# A generic network operational interface gRPC service for interacting with -# network devices based on OpenConfig models. This is for the gNOI APIs used -# to perform diagnostic operations on a network device. +#Copyright 2021 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Supporting infrastructure for implementing and testing PINS. +# load("@com_github_grpc_grpc//bazel:cc_grpc_library.bzl", "cc_grpc_library") diff --git a/types/BUILD b/types/BUILD index 3952806a..cf85486e 100644 --- a/types/BUILD +++ b/types/BUILD @@ -1,4 +1,4 @@ -#Copyright 2020 Google LLC +#Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/wavelength_router/BUILD b/wavelength_router/BUILD index 36440b59..2a5b5dc9 100644 --- a/wavelength_router/BUILD +++ b/wavelength_router/BUILD @@ -1,4 +1,4 @@ -#Copyright 2020 Google LLC +#Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. From 99cbb2cc89cb153262d3da124021984f17d3654b Mon Sep 17 00:00:00 2001 From: Vamsi Punati Date: Mon, 10 May 2021 09:20:59 -0700 Subject: [PATCH 098/238] [fixing build files and remove unnecessary dependencies] --- WORKSPACE | 54 ----------------------------------------- cert/BUILD | 1 - diag/BUILD | 1 - factory_reset/BUILD | 1 - file/BUILD | 1 - gnoi_infra_deps.bzl | 30 ----------------------- interface/BUILD | 1 - layer2/BUILD | 1 - mpls/BUILD | 1 - os/BUILD | 1 - otdr/BUILD | 1 - system/BUILD | 1 - wavelength_router/BUILD | 1 - 13 files changed, 95 deletions(-) diff --git a/WORKSPACE b/WORKSPACE index efad5d99..38b64f59 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -21,24 +21,6 @@ load("gnoi_infra_deps.bzl", "gnoi_infra_deps") gnoi_infra_deps() -# -- Load Protobuf ------------------------------------------------------------- -load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps") - -protobuf_deps() - -load("@rules_proto//proto:repositories.bzl", "rules_proto_dependencies", "rules_proto_toolchains") - -rules_proto_dependencies() - -rules_proto_toolchains() - -load("@com_google_googleapis//:repository_rules.bzl", "switched_rules_by_language") - -switched_rules_by_language( - name = "com_google_googleapis_imports", - cc = True, - grpc = True, -) load("@com_github_grpc_grpc//bazel:grpc_deps.bzl", "grpc_deps") @@ -57,39 +39,3 @@ bind( load("@com_github_grpc_grpc//bazel:grpc_extra_deps.bzl", "grpc_extra_deps") grpc_extra_deps() - -# -- Load buildifier ----------------------------------------------------------- -http_archive( - name = "io_bazel_rules_go", - sha256 = "9fb16af4d4836c8222142e54c9efa0bb5fc562ffc893ce2abeac3e25daead144", - urls = [ - "https://storage.googleapis.com/bazel-mirror/github.com/bazelbuild/rules_go/releases/download/0.19.0/rules_go-0.19.0.tar.gz", - "https://github.com/bazelbuild/rules_go/releases/download/0.19.0/rules_go-0.19.0.tar.gz", - ], -) - -load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies") - -go_rules_dependencies() - -go_register_toolchains() - -http_archive( - name = "bazel_gazelle", - sha256 = "be9296bfd64882e3c08e3283c58fcb461fa6dd3c171764fcc4cf322f60615a9b", - urls = [ - "https://storage.googleapis.com/bazel-mirror/github.com/bazelbuild/bazel-gazelle/releases/download/0.18.1/bazel-gazelle-0.18.1.tar.gz", - "https://github.com/bazelbuild/bazel-gazelle/releases/download/0.18.1/bazel-gazelle-0.18.1.tar.gz", - ], -) - -load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies") - -gazelle_dependencies() - -http_archive( - name = "com_github_bazelbuild_buildtools", - strip_prefix = "buildtools-master", - url = "https://github.com/bazelbuild/buildtools/archive/master.zip", -) - diff --git a/cert/BUILD b/cert/BUILD index db0fa9ae..da6bac86 100644 --- a/cert/BUILD +++ b/cert/BUILD @@ -30,7 +30,6 @@ filegroup( proto_library( name = "cert_proto", srcs = ["cert.proto"], - import_prefix = "github.com/openconfig/gnoi", deps = [ "@com_google_protobuf//:any_proto", "@com_google_protobuf//:descriptor_proto", diff --git a/diag/BUILD b/diag/BUILD index 7a7b3745..3a4a7df7 100644 --- a/diag/BUILD +++ b/diag/BUILD @@ -31,7 +31,6 @@ filegroup( proto_library( name = "diag_proto", srcs = ["diag.proto"], - import_prefix = "github.com/openconfig/gnoi", deps = [ "//types:types_proto", ], diff --git a/factory_reset/BUILD b/factory_reset/BUILD index f7c9a7b5..d7b0d606 100644 --- a/factory_reset/BUILD +++ b/factory_reset/BUILD @@ -30,7 +30,6 @@ filegroup( proto_library( name = "reset_proto", srcs = ["reset.proto"], - import_prefix = "github.com/openconfig/gnoi", deps = [ "//types:types_proto", ], diff --git a/file/BUILD b/file/BUILD index 93bb504b..72e8371a 100644 --- a/file/BUILD +++ b/file/BUILD @@ -29,7 +29,6 @@ filegroup( proto_library( name = "file_proto", srcs = ["file.proto"], - import_prefix = "github.com/openconfig/gnoi", deps = [ "//types:types_proto", "//common:common_proto", diff --git a/gnoi_infra_deps.bzl b/gnoi_infra_deps.bzl index 35f2f130..b1410e41 100644 --- a/gnoi_infra_deps.bzl +++ b/gnoi_infra_deps.bzl @@ -14,7 +14,6 @@ # """Dependencies to build PINS infra.""" -load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository", "new_git_repository") load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") def gnoi_infra_deps(): @@ -28,20 +27,6 @@ def gnoi_infra_deps(): strip_prefix = "grpc-565520443bdbda0b8ac28337a4904f3f20276305", sha256 = "7206cc8e4511620fe70da7234bc98d6a4cd2eb226a7914f68fdbd991ffe38d34", ) - if not native.existing_rule("com_google_absl"): - http_archive( - name = "com_google_absl", - url = "https://github.com/abseil/abseil-cpp/archive/refs/tags/20210324.rc1.tar.gz", - strip_prefix = "abseil-cpp-20210324.rc1", - sha256 = "7e0cf185ddd0459e8e55a9c51a548e859d98c0d7533de374bf038e4c7434f682", - ) - if not native.existing_rule("com_google_googletest"): - http_archive( - name = "com_google_googletest", - urls = ["https://github.com/google/googletest/archive/release-1.10.0.tar.gz"], - strip_prefix = "googletest-release-1.10.0", - sha256 = "9dc9157a9a1551ec7a7e43daea9a694a0bb5fb8bec81235d8a1e6ef64c716dcb", - ) if not native.existing_rule("com_google_protobuf"): http_archive( name = "com_google_protobuf", @@ -49,14 +34,6 @@ def gnoi_infra_deps(): strip_prefix = "protobuf-3.14.0", sha256 = "6dd0f6b20094910fbb7f1f7908688df01af2d4f6c5c21331b9f636048674aebf", ) - if not native.existing_rule("com_googlesource_code_re2"): - http_archive( - name = "com_googlesource_code_re2", - # Newest commit on "absl" branch as of 2021-03-25. - url = "https://github.com/google/re2/archive/72f110e82ccf3a9ae1c9418bfb447c3ba1cf95c2.zip", - strip_prefix = "re2-72f110e82ccf3a9ae1c9418bfb447c3ba1cf95c2", - sha256 = "146bf2e8796317843106a90543356c1baa4b48236a572e39971b839172f6270e", - ) if not native.existing_rule("com_google_googleapis"): http_archive( name = "com_google_googleapis", @@ -64,13 +41,6 @@ def gnoi_infra_deps(): strip_prefix = "googleapis-f405c718d60484124808adb7fb5963974d654bb4", sha256 = "406b64643eede84ce3e0821a1d01f66eaf6254e79cb9c4f53be9054551935e79", ) - if not native.existing_rule("rules_cc"): - git_repository( - name = "rules_cc", - commit = "1477dbab59b401daa94acedbeaefe79bf9112167", - remote = "https://github.com/bazelbuild/rules_cc.git", - shallow_since = "1595949469 -0700", - ) if not native.existing_rule("rules_proto"): http_archive( name = "rules_proto", diff --git a/interface/BUILD b/interface/BUILD index 3ae12966..1b0331be 100644 --- a/interface/BUILD +++ b/interface/BUILD @@ -29,7 +29,6 @@ filegroup( proto_library( name = "interface_proto", srcs = ["interface.proto"], - import_prefix = "github.com/openconfig/gnoi", deps = [ "//types:types_proto", "//common:common_proto", diff --git a/layer2/BUILD b/layer2/BUILD index 49b29e82..9d366efd 100644 --- a/layer2/BUILD +++ b/layer2/BUILD @@ -29,7 +29,6 @@ filegroup( proto_library( name = "layer2_proto", srcs = ["layer2.proto"], - import_prefix = "github.com/openconfig/gnoi", deps = [ "//types:types_proto", "//common:common_proto", diff --git a/mpls/BUILD b/mpls/BUILD index 94f7fd00..46fd670a 100644 --- a/mpls/BUILD +++ b/mpls/BUILD @@ -29,7 +29,6 @@ filegroup( proto_library( name = "mpls_proto", srcs = ["mpls.proto"], - import_prefix = "github.com/openconfig/gnoi", deps = [ "//types:types_proto", "//common:common_proto", diff --git a/os/BUILD b/os/BUILD index 8b2ad4f1..4e203137 100644 --- a/os/BUILD +++ b/os/BUILD @@ -31,7 +31,6 @@ filegroup( proto_library( name = "os_proto", srcs = ["os.proto"], - import_prefix = "github.com/openconfig/gnoi", deps = [ "//types:types_proto", "//common:common_proto", diff --git a/otdr/BUILD b/otdr/BUILD index cef2ea25..d3c6c15d 100644 --- a/otdr/BUILD +++ b/otdr/BUILD @@ -31,7 +31,6 @@ filegroup( proto_library( name = "otdr_proto", srcs = ["otdr.proto"], - import_prefix = "github.com/openconfig/gnoi", deps = [ "//types:types_proto", "//common:common_proto", diff --git a/system/BUILD b/system/BUILD index 1d785e53..0f5add6e 100644 --- a/system/BUILD +++ b/system/BUILD @@ -29,7 +29,6 @@ filegroup( proto_library( name = "system_proto", srcs = ["system.proto"], - import_prefix = "github.com/openconfig/gnoi", deps = [ "@com_google_protobuf//:any_proto", "@com_google_protobuf//:descriptor_proto", diff --git a/wavelength_router/BUILD b/wavelength_router/BUILD index 2a5b5dc9..f5c8588e 100644 --- a/wavelength_router/BUILD +++ b/wavelength_router/BUILD @@ -31,7 +31,6 @@ filegroup( proto_library( name = "wavelength_router_proto", srcs = ["wavelength_router.proto"], - import_prefix = "github.com/openconfig/gnoi", deps = [ "//common:common_proto", "//types:types_proto", From 204cc6a62404ab86a5ea37975af4b53167779d69 Mon Sep 17 00:00:00 2001 From: Vamsi Punati Date: Mon, 10 May 2021 09:26:47 -0700 Subject: [PATCH 099/238] Deleted unnecessary files --- bazel-bin | 1 - bazel-gnoi | 1 - bazel-out | 1 - bazel-testlogs | 1 - 4 files changed, 4 deletions(-) delete mode 120000 bazel-bin delete mode 120000 bazel-gnoi delete mode 120000 bazel-out delete mode 120000 bazel-testlogs diff --git a/bazel-bin b/bazel-bin deleted file mode 120000 index 3fdbec68..00000000 --- a/bazel-bin +++ /dev/null @@ -1 +0,0 @@ -/usr/local/google/home/vpunati/.cache/bazel/_bazel_vpunati/74a6b93027ff75445a1a363a61de2133/execroot/gnoi/bazel-out/k8-fastbuild/bin \ No newline at end of file diff --git a/bazel-gnoi b/bazel-gnoi deleted file mode 120000 index 05758ff0..00000000 --- a/bazel-gnoi +++ /dev/null @@ -1 +0,0 @@ -/usr/local/google/home/vpunati/.cache/bazel/_bazel_vpunati/74a6b93027ff75445a1a363a61de2133/execroot/gnoi \ No newline at end of file diff --git a/bazel-out b/bazel-out deleted file mode 120000 index 8a5b93e2..00000000 --- a/bazel-out +++ /dev/null @@ -1 +0,0 @@ -/usr/local/google/home/vpunati/.cache/bazel/_bazel_vpunati/74a6b93027ff75445a1a363a61de2133/execroot/gnoi/bazel-out \ No newline at end of file diff --git a/bazel-testlogs b/bazel-testlogs deleted file mode 120000 index 4486c79a..00000000 --- a/bazel-testlogs +++ /dev/null @@ -1 +0,0 @@ -/usr/local/google/home/vpunati/.cache/bazel/_bazel_vpunati/74a6b93027ff75445a1a363a61de2133/execroot/gnoi/bazel-out/k8-fastbuild/testlogs \ No newline at end of file From f661a82010d81aef2f9256c77409149002f6b5d9 Mon Sep 17 00:00:00 2001 From: Vamsi Punati Date: Mon, 17 May 2021 11:46:55 -0700 Subject: [PATCH 100/238] Fixing review comments --- BUILD => BUILD.bazel | 0 WORKSPACE => WORKSPACE.bazel | 17 +++-------------- bgp/{BUILD => BUILD.bazel} | 7 ------- cert/{BUILD => BUILD.bazel} | 6 ------ common/{BUILD => BUILD.bazel} | 6 ------ diag/{BUILD => BUILD.bazel} | 6 ------ factory_reset/{BUILD => BUILD.bazel} | 6 ------ file/{BUILD => BUILD.bazel} | 6 ------ gnoi_infra_deps.bzl => gnoi_deps.bzl | 19 +++++++++---------- interface/{BUILD => BUILD.bazel} | 6 ------ layer2/{BUILD => BUILD.bazel} | 6 ------ mpls/{BUILD => BUILD.bazel} | 6 ------ os/{BUILD => BUILD.bazel} | 6 ------ otdr/{BUILD => BUILD.bazel} | 6 ------ system/{BUILD => BUILD.bazel} | 10 +++------- types/{BUILD => BUILD.bazel} | 6 ------ wavelength_router/{BUILD => BUILD.bazel} | 6 ------ 17 files changed, 15 insertions(+), 110 deletions(-) rename BUILD => BUILD.bazel (100%) rename WORKSPACE => WORKSPACE.bazel (75%) rename bgp/{BUILD => BUILD.bazel} (85%) rename cert/{BUILD => BUILD.bazel} (89%) rename common/{BUILD => BUILD.bazel} (90%) rename diag/{BUILD => BUILD.bazel} (89%) rename factory_reset/{BUILD => BUILD.bazel} (89%) rename file/{BUILD => BUILD.bazel} (89%) rename gnoi_infra_deps.bzl => gnoi_deps.bzl (74%) rename interface/{BUILD => BUILD.bazel} (89%) rename layer2/{BUILD => BUILD.bazel} (89%) rename mpls/{BUILD => BUILD.bazel} (89%) rename os/{BUILD => BUILD.bazel} (89%) rename otdr/{BUILD => BUILD.bazel} (89%) rename system/{BUILD => BUILD.bazel} (85%) rename types/{BUILD => BUILD.bazel} (89%) rename wavelength_router/{BUILD => BUILD.bazel} (89%) diff --git a/BUILD b/BUILD.bazel similarity index 100% rename from BUILD rename to BUILD.bazel diff --git a/WORKSPACE b/WORKSPACE.bazel similarity index 75% rename from WORKSPACE rename to WORKSPACE.bazel index 38b64f59..75533b2f 100644 --- a/WORKSPACE +++ b/WORKSPACE.bazel @@ -12,30 +12,19 @@ # See the License for the specific language governing permissions and # limitations under the License. -workspace(name = "gnoi") +workspace(name = "com_github_openconfig_gnoi") load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") # -- Load Dependencies --------------------------------------------------------- -load("gnoi_infra_deps.bzl", "gnoi_infra_deps") - -gnoi_infra_deps() +load("gnoi_deps.bzl", "gnoi_deps") +gnoi_deps() load("@com_github_grpc_grpc//bazel:grpc_deps.bzl", "grpc_deps") grpc_deps() -bind( - name = "grpc_cpp_plugin", - actual = "@com_github_grpc_grpc//:grpc_cpp_plugin", -) - -bind( - name = "grpc++_codegen_proto", - actual = "@com_github_grpc_grpc//:grpc++_codegen_proto", -) - load("@com_github_grpc_grpc//bazel:grpc_extra_deps.bzl", "grpc_extra_deps") grpc_extra_deps() diff --git a/bgp/BUILD b/bgp/BUILD.bazel similarity index 85% rename from bgp/BUILD rename to bgp/BUILD.bazel index cbf57259..36031a6b 100644 --- a/bgp/BUILD +++ b/bgp/BUILD.bazel @@ -22,16 +22,9 @@ package( licenses = ["notice"], ) -filegroup( - name = "bgp_proto_srcs", - srcs = glob(["**/*.proto"]), - visibility = ["//third_party/pins_infra/thinkit:__pkg__"], -) - proto_library( name = "bgp_proto", srcs = ["bgp.proto"], - import_prefix = "github.com/openconfig/gnoi", deps = [ "//types:types_proto", ], diff --git a/cert/BUILD b/cert/BUILD.bazel similarity index 89% rename from cert/BUILD rename to cert/BUILD.bazel index da6bac86..c78c95a3 100644 --- a/cert/BUILD +++ b/cert/BUILD.bazel @@ -21,12 +21,6 @@ package( licenses = ["notice"], ) -filegroup( - name = "cert_proto_srcs", - srcs = glob(["**/*.proto"]), - visibility = ["//third_party/pins_infra/thinkit:__pkg__"], -) - proto_library( name = "cert_proto", srcs = ["cert.proto"], diff --git a/common/BUILD b/common/BUILD.bazel similarity index 90% rename from common/BUILD rename to common/BUILD.bazel index 44389503..9213284c 100644 --- a/common/BUILD +++ b/common/BUILD.bazel @@ -22,12 +22,6 @@ package( licenses = ["notice"], ) -filegroup( - name = "common_proto_srcs", - srcs = glob(["**/*.proto"]), - visibility = ["//third_party/pins_infra/thinkit:__pkg__"], -) - proto_library( name = "common_proto", srcs = ["common.proto"], diff --git a/diag/BUILD b/diag/BUILD.bazel similarity index 89% rename from diag/BUILD rename to diag/BUILD.bazel index 3a4a7df7..d616845a 100644 --- a/diag/BUILD +++ b/diag/BUILD.bazel @@ -22,12 +22,6 @@ package( licenses = ["notice"], ) -filegroup( - name = "diag_proto_srcs", - srcs = glob(["**/*.proto"]), - visibility = ["//third_party/pins_infra/thinkit:__pkg__"], -) - proto_library( name = "diag_proto", srcs = ["diag.proto"], diff --git a/factory_reset/BUILD b/factory_reset/BUILD.bazel similarity index 89% rename from factory_reset/BUILD rename to factory_reset/BUILD.bazel index d7b0d606..ea2d4f21 100644 --- a/factory_reset/BUILD +++ b/factory_reset/BUILD.bazel @@ -21,12 +21,6 @@ package( licenses = ["notice"], ) -filegroup( - name = "reset_proto_srcs", - srcs = glob(["**/*.proto"]), - visibility = ["//third_party/pins_infra/thinkit:__pkg__"], -) - proto_library( name = "reset_proto", srcs = ["reset.proto"], diff --git a/file/BUILD b/file/BUILD.bazel similarity index 89% rename from file/BUILD rename to file/BUILD.bazel index 72e8371a..03249dd4 100644 --- a/file/BUILD +++ b/file/BUILD.bazel @@ -20,12 +20,6 @@ package( licenses = ["notice"], ) -filegroup( - name = "file_proto_srcs", - srcs = glob(["**/*.proto"]), - visibility = ["//third_party/pins_infra/thinkit:__pkg__"], -) - proto_library( name = "file_proto", srcs = ["file.proto"], diff --git a/gnoi_infra_deps.bzl b/gnoi_deps.bzl similarity index 74% rename from gnoi_infra_deps.bzl rename to gnoi_deps.bzl index b1410e41..04514737 100644 --- a/gnoi_infra_deps.bzl +++ b/gnoi_deps.bzl @@ -12,27 +12,26 @@ # See the License for the specific language governing permissions and # limitations under the License. # -"""Dependencies to build PINS infra.""" +"""Dependencies to build gnoi.""" load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") -def gnoi_infra_deps(): - """Declare the third-party dependencies necessary to build GNOI infrastructure""" +def gnoi_deps(): + """Declare the third-party dependencies necessary to build gnoi""" if not native.existing_rule("com_github_grpc_grpc"): http_archive( name = "com_github_grpc_grpc", - # Move to newer commit to avoid the use of com_github_google_re2. - url = "https://github.com/grpc/grpc/archive/565520443bdbda0b8ac28337a4904f3f20276305.zip", - strip_prefix = "grpc-565520443bdbda0b8ac28337a4904f3f20276305", - sha256 = "7206cc8e4511620fe70da7234bc98d6a4cd2eb226a7914f68fdbd991ffe38d34", + url = "https://github.com/grpc/grpc/archive/refs/tags/v1.37.1.tar.gz", + strip_prefix = "grpc-1.37.1", + sha256 = "acf247ec3a52edaee5dee28644a4e485c5e5badf46bdb24a80ca1d76cb8f1174", ) if not native.existing_rule("com_google_protobuf"): http_archive( name = "com_google_protobuf", - url = "https://github.com/protocolbuffers/protobuf/releases/download/v3.14.0/protobuf-all-3.14.0.tar.gz", - strip_prefix = "protobuf-3.14.0", - sha256 = "6dd0f6b20094910fbb7f1f7908688df01af2d4f6c5c21331b9f636048674aebf", + url = "https://github.com/protocolbuffers/protobuf/releases/download/v3.16.0/protobuf-all-3.16.0.tar.gz", + strip_prefix = "protobuf-3.16.0", + sha256 = "d7371dc2d46fddac1af8cb27c0394554b068768fc79ecaf5be1a1863e8ff3392", ) if not native.existing_rule("com_google_googleapis"): http_archive( diff --git a/interface/BUILD b/interface/BUILD.bazel similarity index 89% rename from interface/BUILD rename to interface/BUILD.bazel index 1b0331be..80aa76ab 100644 --- a/interface/BUILD +++ b/interface/BUILD.bazel @@ -20,12 +20,6 @@ package( licenses = ["notice"], ) -filegroup( - name = "file_proto_srcs", - srcs = glob(["**/*.proto"]), - visibility = ["//third_party/pins_infra/thinkit:__pkg__"], -) - proto_library( name = "interface_proto", srcs = ["interface.proto"], diff --git a/layer2/BUILD b/layer2/BUILD.bazel similarity index 89% rename from layer2/BUILD rename to layer2/BUILD.bazel index 9d366efd..b194f26e 100644 --- a/layer2/BUILD +++ b/layer2/BUILD.bazel @@ -20,12 +20,6 @@ package( licenses = ["notice"], ) -filegroup( - name = "layer2_proto_srcs", - srcs = glob(["**/*.proto"]), - visibility = ["//third_party/pins_infra/thinkit:__pkg__"], -) - proto_library( name = "layer2_proto", srcs = ["layer2.proto"], diff --git a/mpls/BUILD b/mpls/BUILD.bazel similarity index 89% rename from mpls/BUILD rename to mpls/BUILD.bazel index 46fd670a..0da94ae7 100644 --- a/mpls/BUILD +++ b/mpls/BUILD.bazel @@ -20,12 +20,6 @@ package( licenses = ["notice"], ) -filegroup( - name = "mpls_proto_srcs", - srcs = glob(["**/*.proto"]), - visibility = ["//third_party/pins_infra/thinkit:__pkg__"], -) - proto_library( name = "mpls_proto", srcs = ["mpls.proto"], diff --git a/os/BUILD b/os/BUILD.bazel similarity index 89% rename from os/BUILD rename to os/BUILD.bazel index 4e203137..817309b4 100644 --- a/os/BUILD +++ b/os/BUILD.bazel @@ -22,12 +22,6 @@ package( licenses = ["notice"], ) -filegroup( - name = "os_proto_srcs", - srcs = glob(["**/*.proto"]), - visibility = ["//third_party/pins_infra/thinkit:__pkg__"], -) - proto_library( name = "os_proto", srcs = ["os.proto"], diff --git a/otdr/BUILD b/otdr/BUILD.bazel similarity index 89% rename from otdr/BUILD rename to otdr/BUILD.bazel index d3c6c15d..2c01a8da 100644 --- a/otdr/BUILD +++ b/otdr/BUILD.bazel @@ -22,12 +22,6 @@ package( licenses = ["notice"], ) -filegroup( - name = "otdr_proto_srcs", - srcs = glob(["**/*.proto"]), - visibility = ["//third_party/pins_infra/thinkit:__pkg__"], -) - proto_library( name = "otdr_proto", srcs = ["otdr.proto"], diff --git a/system/BUILD b/system/BUILD.bazel similarity index 85% rename from system/BUILD rename to system/BUILD.bazel index 0f5add6e..60015b8f 100644 --- a/system/BUILD +++ b/system/BUILD.bazel @@ -17,13 +17,9 @@ load("@com_github_grpc_grpc//bazel:cc_grpc_library.bzl", "cc_grpc_library") -package(default_visibility = ["//visibility:public"], - licenses = ["notice"],) - -filegroup( - name = "system_proto_srcs", - srcs = glob(["gnoi/common/*.proto", - "gnoi/types/*.proto"]), +package( + default_visibility = ["//visibility:public"], + licenses = ["notice"], ) proto_library( diff --git a/types/BUILD b/types/BUILD.bazel similarity index 89% rename from types/BUILD rename to types/BUILD.bazel index cf85486e..664eabdb 100644 --- a/types/BUILD +++ b/types/BUILD.bazel @@ -22,12 +22,6 @@ package( licenses = ["notice"], ) -filegroup( - name = "types_proto_srcs", - srcs = glob(["**/*.proto"]), - visibility = ["//third_party/pins_infra/thinkit:__pkg__"], -) - proto_library( name = "types_proto", srcs = ["types.proto"], diff --git a/wavelength_router/BUILD b/wavelength_router/BUILD.bazel similarity index 89% rename from wavelength_router/BUILD rename to wavelength_router/BUILD.bazel index f5c8588e..c1837181 100644 --- a/wavelength_router/BUILD +++ b/wavelength_router/BUILD.bazel @@ -22,12 +22,6 @@ package( licenses = ["notice"], ) -filegroup( - name = "wavelength_router_proto_srcs", - srcs = glob(["**/*.proto"]), - visibility = ["//third_party/pins_infra/thinkit:__pkg__"], -) - proto_library( name = "wavelength_router_proto", srcs = ["wavelength_router.proto"], From 62d01bd5e25e6b9ad0339d92f06a17f512c63f6b Mon Sep 17 00:00:00 2001 From: Vamsi Punati Date: Mon, 17 May 2021 14:53:10 -0700 Subject: [PATCH 101/238] Buildifier fixes --- BUILD.bazel | 2 +- WORKSPACE.bazel | 2 +- bgp/BUILD.bazel | 4 ++-- cert/BUILD.bazel | 6 +++--- common/BUILD.bazel | 4 ++-- diag/BUILD.bazel | 4 ++-- factory_reset/BUILD.bazel | 4 ++-- file/BUILD.bazel | 7 ++++--- gnoi_deps.bzl | 4 ++-- interface/BUILD.bazel | 7 ++++--- layer2/BUILD.bazel | 7 ++++--- mpls/BUILD.bazel | 7 ++++--- os/BUILD.bazel | 6 +++--- otdr/BUILD.bazel | 6 +++--- system/BUILD.bazel | 8 ++++---- types/BUILD.bazel | 4 ++-- wavelength_router/BUILD.bazel | 6 +++--- 17 files changed, 46 insertions(+), 42 deletions(-) diff --git a/BUILD.bazel b/BUILD.bazel index 57616d15..ca5484e5 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -1,5 +1,5 @@ # Copyright 2021 Google LLC -# +# # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at diff --git a/WORKSPACE.bazel b/WORKSPACE.bazel index 75533b2f..a1f7c20e 100644 --- a/WORKSPACE.bazel +++ b/WORKSPACE.bazel @@ -1,5 +1,5 @@ # Copyright 2021 Google LLC -# +# # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at diff --git a/bgp/BUILD.bazel b/bgp/BUILD.bazel index 36031a6b..7f4af003 100644 --- a/bgp/BUILD.bazel +++ b/bgp/BUILD.bazel @@ -1,5 +1,5 @@ #Copyright 2021 Google LLC -# +# # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at @@ -38,6 +38,6 @@ cc_proto_library( cc_grpc_library( name = "bgp_cc_grpc_proto", srcs = [":bgp_proto"], - deps = [":bgp_cc_proto"], grpc_only = True, + deps = [":bgp_cc_proto"], ) diff --git a/cert/BUILD.bazel b/cert/BUILD.bazel index c78c95a3..26e42eda 100644 --- a/cert/BUILD.bazel +++ b/cert/BUILD.bazel @@ -1,5 +1,5 @@ #Copyright 2021 Google LLC -# +# # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at @@ -25,9 +25,9 @@ proto_library( name = "cert_proto", srcs = ["cert.proto"], deps = [ + "//types:types_proto", "@com_google_protobuf//:any_proto", "@com_google_protobuf//:descriptor_proto", - "//types:types_proto", ], ) @@ -39,6 +39,6 @@ cc_proto_library( cc_grpc_library( name = "cert_cc_grpc_proto", srcs = [":cert_proto"], - deps = [":cert_cc_proto"], grpc_only = True, + deps = [":cert_cc_proto"], ) diff --git a/common/BUILD.bazel b/common/BUILD.bazel index 9213284c..99a50545 100644 --- a/common/BUILD.bazel +++ b/common/BUILD.bazel @@ -1,5 +1,5 @@ #Copyright 2021 Google LLC -# +# # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at @@ -41,6 +41,6 @@ cc_proto_library( cc_grpc_library( name = "common_cc_grpc_proto", srcs = [":common_proto"], - deps = [":common_cc_proto"], grpc_only = True, + deps = [":common_cc_proto"], ) diff --git a/diag/BUILD.bazel b/diag/BUILD.bazel index d616845a..fddb8c10 100644 --- a/diag/BUILD.bazel +++ b/diag/BUILD.bazel @@ -1,5 +1,5 @@ #Copyright 2021 Google LLC -# +# # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at @@ -38,6 +38,6 @@ cc_proto_library( cc_grpc_library( name = "diag_cc_grpc_proto", srcs = [":diag_proto"], - deps = [":diag_cc_proto"], grpc_only = True, + deps = [":diag_cc_proto"], ) diff --git a/factory_reset/BUILD.bazel b/factory_reset/BUILD.bazel index ea2d4f21..d3764a21 100644 --- a/factory_reset/BUILD.bazel +++ b/factory_reset/BUILD.bazel @@ -1,5 +1,5 @@ #Copyright 2021 Google LLC -# +# # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at @@ -37,6 +37,6 @@ cc_proto_library( cc_grpc_library( name = "reset_cc_grpc_proto", srcs = [":reset_proto"], - deps = [":reset_cc_proto"], grpc_only = True, + deps = [":reset_cc_proto"], ) diff --git a/file/BUILD.bazel b/file/BUILD.bazel index 03249dd4..e01b8310 100644 --- a/file/BUILD.bazel +++ b/file/BUILD.bazel @@ -1,5 +1,5 @@ #Copyright 2021 Google LLC -# +# # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at @@ -15,6 +15,7 @@ # Supporting infrastructure for implementing and testing PINS. # load("@com_github_grpc_grpc//bazel:cc_grpc_library.bzl", "cc_grpc_library") + package( default_visibility = ["//visibility:public"], licenses = ["notice"], @@ -24,8 +25,8 @@ proto_library( name = "file_proto", srcs = ["file.proto"], deps = [ - "//types:types_proto", "//common:common_proto", + "//types:types_proto", ], ) @@ -37,6 +38,6 @@ cc_proto_library( cc_grpc_library( name = "file_cc_grpc_proto", srcs = [":file_proto"], - deps = [":file_cc_proto"], grpc_only = True, + deps = [":file_cc_proto"], ) diff --git a/gnoi_deps.bzl b/gnoi_deps.bzl index 04514737..6d9f224b 100644 --- a/gnoi_deps.bzl +++ b/gnoi_deps.bzl @@ -1,5 +1,5 @@ # Copyright 2021 Google LLC -# +# # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at @@ -20,7 +20,7 @@ def gnoi_deps(): """Declare the third-party dependencies necessary to build gnoi""" if not native.existing_rule("com_github_grpc_grpc"): - http_archive( + http_archive( name = "com_github_grpc_grpc", url = "https://github.com/grpc/grpc/archive/refs/tags/v1.37.1.tar.gz", strip_prefix = "grpc-1.37.1", diff --git a/interface/BUILD.bazel b/interface/BUILD.bazel index 80aa76ab..57ef20b6 100644 --- a/interface/BUILD.bazel +++ b/interface/BUILD.bazel @@ -1,5 +1,5 @@ #Copyright 2021 Google LLC -# +# # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at @@ -15,6 +15,7 @@ # Supporting infrastructure for implementing and testing PINS. # load("@com_github_grpc_grpc//bazel:cc_grpc_library.bzl", "cc_grpc_library") + package( default_visibility = ["//visibility:public"], licenses = ["notice"], @@ -24,8 +25,8 @@ proto_library( name = "interface_proto", srcs = ["interface.proto"], deps = [ - "//types:types_proto", "//common:common_proto", + "//types:types_proto", ], ) @@ -37,6 +38,6 @@ cc_proto_library( cc_grpc_library( name = "interface_cc_grpc_proto", srcs = [":interface_proto"], - deps = [":interface_cc_proto"], grpc_only = True, + deps = [":interface_cc_proto"], ) diff --git a/layer2/BUILD.bazel b/layer2/BUILD.bazel index b194f26e..aeffa794 100644 --- a/layer2/BUILD.bazel +++ b/layer2/BUILD.bazel @@ -1,5 +1,5 @@ #Copyright 2021 Google LLC -# +# # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at @@ -15,6 +15,7 @@ # Supporting infrastructure for implementing and testing PINS. # load("@com_github_grpc_grpc//bazel:cc_grpc_library.bzl", "cc_grpc_library") + package( default_visibility = ["//visibility:public"], licenses = ["notice"], @@ -24,8 +25,8 @@ proto_library( name = "layer2_proto", srcs = ["layer2.proto"], deps = [ - "//types:types_proto", "//common:common_proto", + "//types:types_proto", ], ) @@ -37,6 +38,6 @@ cc_proto_library( cc_grpc_library( name = "layer2_cc_grpc_proto", srcs = [":layer2_proto"], - deps = [":layer2_cc_proto"], grpc_only = True, + deps = [":layer2_cc_proto"], ) diff --git a/mpls/BUILD.bazel b/mpls/BUILD.bazel index 0da94ae7..2d58f37b 100644 --- a/mpls/BUILD.bazel +++ b/mpls/BUILD.bazel @@ -1,5 +1,5 @@ #Copyright 2021 Google LLC -# +# # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at @@ -15,6 +15,7 @@ # Supporting infrastructure for implementing and testing PINS. # load("@com_github_grpc_grpc//bazel:cc_grpc_library.bzl", "cc_grpc_library") + package( default_visibility = ["//visibility:public"], licenses = ["notice"], @@ -24,8 +25,8 @@ proto_library( name = "mpls_proto", srcs = ["mpls.proto"], deps = [ - "//types:types_proto", "//common:common_proto", + "//types:types_proto", ], ) @@ -37,6 +38,6 @@ cc_proto_library( cc_grpc_library( name = "mpls_cc_grpc_proto", srcs = [":mpls_proto"], - deps = [":mpls_cc_proto"], grpc_only = True, + deps = [":mpls_cc_proto"], ) diff --git a/os/BUILD.bazel b/os/BUILD.bazel index 817309b4..c006ea46 100644 --- a/os/BUILD.bazel +++ b/os/BUILD.bazel @@ -1,5 +1,5 @@ #Copyright 2021 Google LLC -# +# # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at @@ -26,8 +26,8 @@ proto_library( name = "os_proto", srcs = ["os.proto"], deps = [ - "//types:types_proto", "//common:common_proto", + "//types:types_proto", ], ) @@ -39,6 +39,6 @@ cc_proto_library( cc_grpc_library( name = "os_cc_grpc_proto", srcs = [":os_proto"], - deps = [":os_cc_proto"], grpc_only = True, + deps = [":os_cc_proto"], ) diff --git a/otdr/BUILD.bazel b/otdr/BUILD.bazel index 2c01a8da..bc2a1342 100644 --- a/otdr/BUILD.bazel +++ b/otdr/BUILD.bazel @@ -1,5 +1,5 @@ #Copyright 2021 Google LLC -# +# # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at @@ -26,8 +26,8 @@ proto_library( name = "otdr_proto", srcs = ["otdr.proto"], deps = [ - "//types:types_proto", "//common:common_proto", + "//types:types_proto", ], ) @@ -39,6 +39,6 @@ cc_proto_library( cc_grpc_library( name = "otdr_cc_grpc_proto", srcs = [":otdr_proto"], - deps = [":otdr_cc_proto"], grpc_only = True, + deps = [":otdr_cc_proto"], ) diff --git a/system/BUILD.bazel b/system/BUILD.bazel index 60015b8f..e2b4d7bc 100644 --- a/system/BUILD.bazel +++ b/system/BUILD.bazel @@ -1,5 +1,5 @@ #Copyright 2021 Google LLC -# +# # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at @@ -26,10 +26,10 @@ proto_library( name = "system_proto", srcs = ["system.proto"], deps = [ - "@com_google_protobuf//:any_proto", - "@com_google_protobuf//:descriptor_proto", "//common:common_proto", "//types:types_proto", + "@com_google_protobuf//:any_proto", + "@com_google_protobuf//:descriptor_proto", ], ) @@ -41,6 +41,6 @@ cc_proto_library( cc_grpc_library( name = "system_cc_grpc_proto", srcs = [":system_proto"], - deps = [":system_cc_proto"], grpc_only = True, + deps = [":system_cc_proto"], ) diff --git a/types/BUILD.bazel b/types/BUILD.bazel index 664eabdb..88a1e3e1 100644 --- a/types/BUILD.bazel +++ b/types/BUILD.bazel @@ -1,5 +1,5 @@ #Copyright 2021 Google LLC -# +# # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at @@ -40,6 +40,6 @@ cc_proto_library( cc_grpc_library( name = "types_cc_grpc_proto", srcs = [":types_proto"], - deps = [":types_cc_proto"], grpc_only = True, + deps = [":types_cc_proto"], ) diff --git a/wavelength_router/BUILD.bazel b/wavelength_router/BUILD.bazel index c1837181..c26d2bf0 100644 --- a/wavelength_router/BUILD.bazel +++ b/wavelength_router/BUILD.bazel @@ -1,5 +1,5 @@ #Copyright 2021 Google LLC -# +# # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at @@ -26,7 +26,7 @@ proto_library( name = "wavelength_router_proto", srcs = ["wavelength_router.proto"], deps = [ - "//common:common_proto", + "//common:common_proto", "//types:types_proto", ], ) @@ -39,6 +39,6 @@ cc_proto_library( cc_grpc_library( name = "wavelength_router_cc_grpc_proto", srcs = [":wavelength_router_proto"], - deps = [":wavelength_router_cc_proto"], grpc_only = True, + deps = [":wavelength_router_cc_proto"], ) From 076bdf566b4954c277226757c660de612fd1f42a Mon Sep 17 00:00:00 2001 From: Vamsi Punati Date: Mon, 17 May 2021 16:59:25 -0700 Subject: [PATCH 102/238] Adding CI Build workflow --- .github/workflows/ci-build-gnoi.yml | 33 +++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/ci-build-gnoi.yml diff --git a/.github/workflows/ci-build-gnoi.yml b/.github/workflows/ci-build-gnoi.yml new file mode 100644 index 00000000..79456381 --- /dev/null +++ b/.github/workflows/ci-build-gnoi.yml @@ -0,0 +1,33 @@ +name: "bazel build" + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + schedule: + - cron: "0 0 * * *" + +jobs: + build: + runs-on: ubuntu-latest + env: + BAZEL: bazelisk-linux-amd64 + steps: + - uses: actions/checkout@v2 + with: + submodules: recursive + + - name: Mount bazel cache + uses: actions/cache@v2 + with: + # See https://docs.bazel.build/versions/master/output_directories.html + path: "~/.cache/bazel" + # Create a new cache entry whenever Bazel files change. + # See https://docs.github.com/en/actions/guides/caching-dependencies-to-speed-up-workflows + key: bazel-${{ runner.os }}-build-${{ hashFiles('**/*.bzl', '**/*.bazel') }} + restore-keys: | + bazel-${{ runner.os }}-build- + - name: Install bazelisk + run: | + curl -LO "https://github.com/bazelbuild/bazelisk/releases/download/v1.8.1/$BAZEL" From ee529cf89f547c3676079799cb66a879435446a6 Mon Sep 17 00:00:00 2001 From: Vamsi Punati Date: Mon, 17 May 2021 17:32:10 -0700 Subject: [PATCH 103/238] Deleted the file ci-build-gnoi.yml from the git repository --- .github/workflows/ci-build-gnoi.yml | 33 ----------------------------- 1 file changed, 33 deletions(-) delete mode 100644 .github/workflows/ci-build-gnoi.yml diff --git a/.github/workflows/ci-build-gnoi.yml b/.github/workflows/ci-build-gnoi.yml deleted file mode 100644 index 79456381..00000000 --- a/.github/workflows/ci-build-gnoi.yml +++ /dev/null @@ -1,33 +0,0 @@ -name: "bazel build" - -on: - push: - branches: [ main ] - pull_request: - branches: [ main ] - schedule: - - cron: "0 0 * * *" - -jobs: - build: - runs-on: ubuntu-latest - env: - BAZEL: bazelisk-linux-amd64 - steps: - - uses: actions/checkout@v2 - with: - submodules: recursive - - - name: Mount bazel cache - uses: actions/cache@v2 - with: - # See https://docs.bazel.build/versions/master/output_directories.html - path: "~/.cache/bazel" - # Create a new cache entry whenever Bazel files change. - # See https://docs.github.com/en/actions/guides/caching-dependencies-to-speed-up-workflows - key: bazel-${{ runner.os }}-build-${{ hashFiles('**/*.bzl', '**/*.bazel') }} - restore-keys: | - bazel-${{ runner.os }}-build- - - name: Install bazelisk - run: | - curl -LO "https://github.com/bazelbuild/bazelisk/releases/download/v1.8.1/$BAZEL" From 16b5309e55cf3ec0cc2cceb41c2e50fe8023f784 Mon Sep 17 00:00:00 2001 From: vamsipunati Date: Mon, 17 May 2021 12:42:44 -0700 Subject: [PATCH 104/238] Create ci-cpp-build-gnoi.yml --- .github/workflows/ci-cpp-build-gnoi.yml | 37 +++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/ci-cpp-build-gnoi.yml diff --git a/.github/workflows/ci-cpp-build-gnoi.yml b/.github/workflows/ci-cpp-build-gnoi.yml new file mode 100644 index 00000000..7d065402 --- /dev/null +++ b/.github/workflows/ci-cpp-build-gnoi.yml @@ -0,0 +1,37 @@ +name: "build gnoi" + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + schedule: + - cron: "0 0 * * *" + +jobs: + build: + runs-on: ubuntu-latest + env: + BAZEL: bazelisk-linux-amd64 + steps: + - uses: actions/checkout@v2 + with: + submodules: recursive + + - name: Mount bazel cache + uses: actions/cache@v2 + with: + # See https://docs.bazel.build/versions/master/output_directories.html + path: "~/.cache/bazel" + # Create a new cache entry whenever Bazel files change. + # See https://docs.github.com/en/actions/guides/caching-dependencies-to-speed-up-workflows + key: bazel-${{ runner.os }}-build-${{ hashFiles('**/*.bzl', '**/*.bazel') }} + restore-keys: | + bazel-${{ runner.os }}-build- + - name: Install bazelisk + run: | + curl -LO "https://github.com/bazelbuild/bazelisk/releases/download/v1.4.0/$BAZEL" + chmod +x $BAZEL + sudo mv $BAZEL /usr/local/bin/bazel + - name: Build gnoi/ + run: cd gnoi && bazel build //... From d8549a728c5b7ad4e0cc9c4434603a6b9cdb83e0 Mon Sep 17 00:00:00 2001 From: Vamsi Punati Date: Mon, 17 May 2021 22:25:41 -0700 Subject: [PATCH 105/238] Addressing review comments --- .github/workflows/ci-cpp-build-gnoi.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci-cpp-build-gnoi.yml b/.github/workflows/ci-cpp-build-gnoi.yml index 7d065402..38d076f3 100644 --- a/.github/workflows/ci-cpp-build-gnoi.yml +++ b/.github/workflows/ci-cpp-build-gnoi.yml @@ -1,4 +1,4 @@ -name: "build gnoi" +name: "bazel build" on: push: @@ -30,8 +30,4 @@ jobs: bazel-${{ runner.os }}-build- - name: Install bazelisk run: | - curl -LO "https://github.com/bazelbuild/bazelisk/releases/download/v1.4.0/$BAZEL" - chmod +x $BAZEL - sudo mv $BAZEL /usr/local/bin/bazel - - name: Build gnoi/ - run: cd gnoi && bazel build //... + curl -LO "https://github.com/bazelbuild/bazelisk/releases/download/v1.8.1/$BAZEL" From 746016b0e6c21c79a0f081d15b39f2796296296f Mon Sep 17 00:00:00 2001 From: Vamsi Punati Date: Tue, 18 May 2021 12:25:22 -0700 Subject: [PATCH 106/238] Addressing review comments --- .github/workflows/ci-cpp-build-gnoi.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/ci-cpp-build-gnoi.yml b/.github/workflows/ci-cpp-build-gnoi.yml index 38d076f3..102d03bf 100644 --- a/.github/workflows/ci-cpp-build-gnoi.yml +++ b/.github/workflows/ci-cpp-build-gnoi.yml @@ -31,3 +31,8 @@ jobs: - name: Install bazelisk run: | curl -LO "https://github.com/bazelbuild/bazelisk/releases/download/v1.8.1/$BAZEL" + chmod +x $BAZEL + sudo mv $BAZEL /usr/local/bin/bazel + + - name: Build + run: bazel build //... From d65a8696f84001678dab700e05d3a4562be08046 Mon Sep 17 00:00:00 2001 From: Vamsi Punati Date: Tue, 18 May 2021 22:10:52 -0700 Subject: [PATCH 107/238] Removing cc_grpc_library target from common and types proto as they don't have any associated rpc services --- common/BUILD.bazel | 7 ------- types/BUILD.bazel | 7 ------- 2 files changed, 14 deletions(-) diff --git a/common/BUILD.bazel b/common/BUILD.bazel index 99a50545..0de656b1 100644 --- a/common/BUILD.bazel +++ b/common/BUILD.bazel @@ -37,10 +37,3 @@ cc_proto_library( name = "common_cc_proto", deps = [":common_proto"], ) - -cc_grpc_library( - name = "common_cc_grpc_proto", - srcs = [":common_proto"], - grpc_only = True, - deps = [":common_cc_proto"], -) diff --git a/types/BUILD.bazel b/types/BUILD.bazel index 88a1e3e1..598cbc8e 100644 --- a/types/BUILD.bazel +++ b/types/BUILD.bazel @@ -36,10 +36,3 @@ cc_proto_library( name = "types_cc_proto", deps = [":types_proto"], ) - -cc_grpc_library( - name = "types_cc_grpc_proto", - srcs = [":types_proto"], - grpc_only = True, - deps = [":types_cc_proto"], -) From 6a47ec9d0ab10295e77963e031739c1d876f38a3 Mon Sep 17 00:00:00 2001 From: greg-dennis Date: Thu, 2 Sep 2021 10:56:55 -0400 Subject: [PATCH 108/238] compile protos with factory_reset included --- bgp/bgp.pb.go | 4 +- cert/cert.pb.go | 4 +- common/common.pb.go | 4 +- compile_protos.sh | 2 +- diag/diag.pb.go | 4 +- factory_reset/BUILD.bazel | 14 +- factory_reset/factory_reset.pb.go | 435 ++++++++++++++++++ .../{reset.proto => factory_reset.proto} | 0 factory_reset/factory_reset_grpc.pb.go | 129 ++++++ file/file.pb.go | 4 +- healthz/healthz.pb.go | 10 +- interface/interface.pb.go | 4 +- layer2/layer2.pb.go | 6 +- mpls/mpls.pb.go | 4 +- otdr/otdr.pb.go | 4 +- system/system.pb.go | 8 +- types/types.pb.go | 26 +- wavelength_router/wavelength_router.pb.go | 4 +- 18 files changed, 615 insertions(+), 51 deletions(-) create mode 100644 factory_reset/factory_reset.pb.go rename factory_reset/{reset.proto => factory_reset.proto} (100%) create mode 100644 factory_reset/factory_reset_grpc.pb.go diff --git a/bgp/bgp.pb.go b/bgp/bgp.pb.go index 67d68f83..acc1729f 100644 --- a/bgp/bgp.pb.go +++ b/bgp/bgp.pb.go @@ -16,8 +16,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.26.0 -// protoc v3.15.7 +// protoc-gen-go v1.27.1 +// protoc v3.12.4 // source: bgp/bgp.proto package bgp diff --git a/cert/cert.pb.go b/cert/cert.pb.go index edfc32c2..2204f07d 100644 --- a/cert/cert.pb.go +++ b/cert/cert.pb.go @@ -19,8 +19,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.26.0 -// protoc v3.15.7 +// protoc-gen-go v1.27.1 +// protoc v3.12.4 // source: cert/cert.proto package cert diff --git a/common/common.pb.go b/common/common.pb.go index 9d05d44a..06471e60 100644 --- a/common/common.pb.go +++ b/common/common.pb.go @@ -16,8 +16,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.26.0 -// protoc v3.15.7 +// protoc-gen-go v1.27.1 +// protoc v3.12.4 // source: common/common.proto package common diff --git a/compile_protos.sh b/compile_protos.sh index bf00e647..8a786b51 100755 --- a/compile_protos.sh +++ b/compile_protos.sh @@ -4,7 +4,7 @@ set -euo pipefail proto_imports=".:${GOPATH}/src/github.com/google/protobuf/src:${GOPATH}/src" # Go -for p in types common diag bgp cert file healthz interface layer2 mpls system otdr wavelength_router; do +for p in types common diag bgp cert factory_reset file healthz interface layer2 mpls system otdr wavelength_router; do protoc -I="${proto_imports}" --go-grpc_out=. --go-grpc_opt=paths=source_relative --go_out=. --go_opt=paths=source_relative $p/$p.proto done diff --git a/diag/diag.pb.go b/diag/diag.pb.go index 6ef8db9c..64630274 100644 --- a/diag/diag.pb.go +++ b/diag/diag.pb.go @@ -19,8 +19,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.26.0 -// protoc v3.15.7 +// protoc-gen-go v1.27.1 +// protoc v3.12.4 // source: diag/diag.proto package diag diff --git a/factory_reset/BUILD.bazel b/factory_reset/BUILD.bazel index d3764a21..e248fedb 100644 --- a/factory_reset/BUILD.bazel +++ b/factory_reset/BUILD.bazel @@ -22,21 +22,21 @@ package( ) proto_library( - name = "reset_proto", - srcs = ["reset.proto"], + name = "factory_reset_proto", + srcs = ["factory_reset.proto"], deps = [ "//types:types_proto", ], ) cc_proto_library( - name = "reset_cc_proto", - deps = [":reset_proto"], + name = "factory_reset_cc_proto", + deps = [":factory_reset_proto"], ) cc_grpc_library( - name = "reset_cc_grpc_proto", - srcs = [":reset_proto"], + name = "factory_reset_cc_grpc_proto", + srcs = [":factory_reset_proto"], grpc_only = True, - deps = [":reset_cc_proto"], + deps = [":factory_reset_cc_proto"], ) diff --git a/factory_reset/factory_reset.pb.go b/factory_reset/factory_reset.pb.go new file mode 100644 index 00000000..da22833a --- /dev/null +++ b/factory_reset/factory_reset.pb.go @@ -0,0 +1,435 @@ +// This file defines a gNOI API used for factory reseting a Target. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.1 +// protoc v3.12.4 +// source: factory_reset/factory_reset.proto + +package factory_reset + +import ( + _ "github.com/openconfig/gnoi/types" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type StartRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Instructs the Target to rollback the OS to the same version as it shipped + // from factory. + FactoryOs bool `protobuf:"varint,1,opt,name=factory_os,json=factoryOs,proto3" json:"factory_os,omitempty"` + // Instructs the Target to zero fill persistent storage state data. + ZeroFill bool `protobuf:"varint,2,opt,name=zero_fill,json=zeroFill,proto3" json:"zero_fill,omitempty"` +} + +func (x *StartRequest) Reset() { + *x = StartRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_factory_reset_factory_reset_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *StartRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StartRequest) ProtoMessage() {} + +func (x *StartRequest) ProtoReflect() protoreflect.Message { + mi := &file_factory_reset_factory_reset_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use StartRequest.ProtoReflect.Descriptor instead. +func (*StartRequest) Descriptor() ([]byte, []int) { + return file_factory_reset_factory_reset_proto_rawDescGZIP(), []int{0} +} + +func (x *StartRequest) GetFactoryOs() bool { + if x != nil { + return x.FactoryOs + } + return false +} + +func (x *StartRequest) GetZeroFill() bool { + if x != nil { + return x.ZeroFill + } + return false +} + +type ResetSuccess struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *ResetSuccess) Reset() { + *x = ResetSuccess{} + if protoimpl.UnsafeEnabled { + mi := &file_factory_reset_factory_reset_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ResetSuccess) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ResetSuccess) ProtoMessage() {} + +func (x *ResetSuccess) ProtoReflect() protoreflect.Message { + mi := &file_factory_reset_factory_reset_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ResetSuccess.ProtoReflect.Descriptor instead. +func (*ResetSuccess) Descriptor() ([]byte, []int) { + return file_factory_reset_factory_reset_proto_rawDescGZIP(), []int{1} +} + +// Message also used in gRPC status.details field. +type ResetError struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Factory OS reset is not supported. + FactoryOsUnsupported bool `protobuf:"varint,1,opt,name=factory_os_unsupported,json=factoryOsUnsupported,proto3" json:"factory_os_unsupported,omitempty"` + // Zero fill is not supported. + ZeroFillUnsupported bool `protobuf:"varint,2,opt,name=zero_fill_unsupported,json=zeroFillUnsupported,proto3" json:"zero_fill_unsupported,omitempty"` + // Unspecified error, must provide detail message. + Other bool `protobuf:"varint,3,opt,name=other,proto3" json:"other,omitempty"` + Detail string `protobuf:"bytes,4,opt,name=detail,proto3" json:"detail,omitempty"` +} + +func (x *ResetError) Reset() { + *x = ResetError{} + if protoimpl.UnsafeEnabled { + mi := &file_factory_reset_factory_reset_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ResetError) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ResetError) ProtoMessage() {} + +func (x *ResetError) ProtoReflect() protoreflect.Message { + mi := &file_factory_reset_factory_reset_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ResetError.ProtoReflect.Descriptor instead. +func (*ResetError) Descriptor() ([]byte, []int) { + return file_factory_reset_factory_reset_proto_rawDescGZIP(), []int{2} +} + +func (x *ResetError) GetFactoryOsUnsupported() bool { + if x != nil { + return x.FactoryOsUnsupported + } + return false +} + +func (x *ResetError) GetZeroFillUnsupported() bool { + if x != nil { + return x.ZeroFillUnsupported + } + return false +} + +func (x *ResetError) GetOther() bool { + if x != nil { + return x.Other + } + return false +} + +func (x *ResetError) GetDetail() string { + if x != nil { + return x.Detail + } + return "" +} + +type StartResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Types that are assignable to Response: + // *StartResponse_ResetSuccess + // *StartResponse_ResetError + Response isStartResponse_Response `protobuf_oneof:"response"` +} + +func (x *StartResponse) Reset() { + *x = StartResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_factory_reset_factory_reset_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *StartResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StartResponse) ProtoMessage() {} + +func (x *StartResponse) ProtoReflect() protoreflect.Message { + mi := &file_factory_reset_factory_reset_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use StartResponse.ProtoReflect.Descriptor instead. +func (*StartResponse) Descriptor() ([]byte, []int) { + return file_factory_reset_factory_reset_proto_rawDescGZIP(), []int{3} +} + +func (m *StartResponse) GetResponse() isStartResponse_Response { + if m != nil { + return m.Response + } + return nil +} + +func (x *StartResponse) GetResetSuccess() *ResetSuccess { + if x, ok := x.GetResponse().(*StartResponse_ResetSuccess); ok { + return x.ResetSuccess + } + return nil +} + +func (x *StartResponse) GetResetError() *ResetError { + if x, ok := x.GetResponse().(*StartResponse_ResetError); ok { + return x.ResetError + } + return nil +} + +type isStartResponse_Response interface { + isStartResponse_Response() +} + +type StartResponse_ResetSuccess struct { + // Reset will be executed. + ResetSuccess *ResetSuccess `protobuf:"bytes,1,opt,name=reset_success,json=resetSuccess,proto3,oneof"` +} + +type StartResponse_ResetError struct { + // Reset will not be executed. + ResetError *ResetError `protobuf:"bytes,2,opt,name=reset_error,json=resetError,proto3,oneof"` +} + +func (*StartResponse_ResetSuccess) isStartResponse_Response() {} + +func (*StartResponse_ResetError) isStartResponse_Response() {} + +var File_factory_reset_factory_reset_proto protoreflect.FileDescriptor + +var file_factory_reset_factory_reset_proto_rawDesc = []byte{ + 0x0a, 0x21, 0x66, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x72, 0x65, 0x73, 0x65, 0x74, 0x2f, + 0x66, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x72, 0x65, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x12, 0x12, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x66, 0x61, 0x63, 0x74, 0x6f, 0x72, + 0x79, 0x5f, 0x72, 0x65, 0x73, 0x65, 0x74, 0x1a, 0x2c, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, + 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x67, + 0x6e, 0x6f, 0x69, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x4a, 0x0a, 0x0c, 0x53, 0x74, 0x61, 0x72, 0x74, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x66, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x79, + 0x5f, 0x6f, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x66, 0x61, 0x63, 0x74, 0x6f, + 0x72, 0x79, 0x4f, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x7a, 0x65, 0x72, 0x6f, 0x5f, 0x66, 0x69, 0x6c, + 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x7a, 0x65, 0x72, 0x6f, 0x46, 0x69, 0x6c, + 0x6c, 0x22, 0x0e, 0x0a, 0x0c, 0x52, 0x65, 0x73, 0x65, 0x74, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, + 0x73, 0x22, 0xa4, 0x01, 0x0a, 0x0a, 0x52, 0x65, 0x73, 0x65, 0x74, 0x45, 0x72, 0x72, 0x6f, 0x72, + 0x12, 0x34, 0x0a, 0x16, 0x66, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x6f, 0x73, 0x5f, 0x75, + 0x6e, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, + 0x52, 0x14, 0x66, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x4f, 0x73, 0x55, 0x6e, 0x73, 0x75, 0x70, + 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x12, 0x32, 0x0a, 0x15, 0x7a, 0x65, 0x72, 0x6f, 0x5f, 0x66, + 0x69, 0x6c, 0x6c, 0x5f, 0x75, 0x6e, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x13, 0x7a, 0x65, 0x72, 0x6f, 0x46, 0x69, 0x6c, 0x6c, 0x55, + 0x6e, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x74, + 0x68, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x6f, 0x74, 0x68, 0x65, 0x72, + 0x12, 0x16, 0x0a, 0x06, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x06, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x22, 0xa7, 0x01, 0x0a, 0x0d, 0x53, 0x74, 0x61, + 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x47, 0x0a, 0x0d, 0x72, 0x65, + 0x73, 0x65, 0x74, 0x5f, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x66, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x79, + 0x5f, 0x72, 0x65, 0x73, 0x65, 0x74, 0x2e, 0x52, 0x65, 0x73, 0x65, 0x74, 0x53, 0x75, 0x63, 0x63, + 0x65, 0x73, 0x73, 0x48, 0x00, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x65, 0x74, 0x53, 0x75, 0x63, 0x63, + 0x65, 0x73, 0x73, 0x12, 0x41, 0x0a, 0x0b, 0x72, 0x65, 0x73, 0x65, 0x74, 0x5f, 0x65, 0x72, 0x72, + 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, + 0x66, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x72, 0x65, 0x73, 0x65, 0x74, 0x2e, 0x52, 0x65, + 0x73, 0x65, 0x74, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x48, 0x00, 0x52, 0x0a, 0x72, 0x65, 0x73, 0x65, + 0x74, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x42, 0x0a, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x32, 0x5c, 0x0a, 0x0c, 0x46, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x73, + 0x65, 0x74, 0x12, 0x4c, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x72, 0x74, 0x12, 0x20, 0x2e, 0x67, 0x6e, + 0x6f, 0x69, 0x2e, 0x66, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x72, 0x65, 0x73, 0x65, 0x74, + 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, + 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x66, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x72, 0x65, 0x73, + 0x65, 0x74, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x42, 0x32, 0x5a, 0x28, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, + 0x70, 0x65, 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x67, 0x6e, 0x6f, 0x69, 0x2f, 0x66, + 0x61, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x72, 0x65, 0x73, 0x65, 0x74, 0xd2, 0x3e, 0x05, 0x30, + 0x2e, 0x31, 0x2e, 0x30, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_factory_reset_factory_reset_proto_rawDescOnce sync.Once + file_factory_reset_factory_reset_proto_rawDescData = file_factory_reset_factory_reset_proto_rawDesc +) + +func file_factory_reset_factory_reset_proto_rawDescGZIP() []byte { + file_factory_reset_factory_reset_proto_rawDescOnce.Do(func() { + file_factory_reset_factory_reset_proto_rawDescData = protoimpl.X.CompressGZIP(file_factory_reset_factory_reset_proto_rawDescData) + }) + return file_factory_reset_factory_reset_proto_rawDescData +} + +var file_factory_reset_factory_reset_proto_msgTypes = make([]protoimpl.MessageInfo, 4) +var file_factory_reset_factory_reset_proto_goTypes = []interface{}{ + (*StartRequest)(nil), // 0: gnoi.factory_reset.StartRequest + (*ResetSuccess)(nil), // 1: gnoi.factory_reset.ResetSuccess + (*ResetError)(nil), // 2: gnoi.factory_reset.ResetError + (*StartResponse)(nil), // 3: gnoi.factory_reset.StartResponse +} +var file_factory_reset_factory_reset_proto_depIdxs = []int32{ + 1, // 0: gnoi.factory_reset.StartResponse.reset_success:type_name -> gnoi.factory_reset.ResetSuccess + 2, // 1: gnoi.factory_reset.StartResponse.reset_error:type_name -> gnoi.factory_reset.ResetError + 0, // 2: gnoi.factory_reset.FactoryReset.Start:input_type -> gnoi.factory_reset.StartRequest + 3, // 3: gnoi.factory_reset.FactoryReset.Start:output_type -> gnoi.factory_reset.StartResponse + 3, // [3:4] is the sub-list for method output_type + 2, // [2:3] is the sub-list for method input_type + 2, // [2:2] is the sub-list for extension type_name + 2, // [2:2] is the sub-list for extension extendee + 0, // [0:2] is the sub-list for field type_name +} + +func init() { file_factory_reset_factory_reset_proto_init() } +func file_factory_reset_factory_reset_proto_init() { + if File_factory_reset_factory_reset_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_factory_reset_factory_reset_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StartRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_factory_reset_factory_reset_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ResetSuccess); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_factory_reset_factory_reset_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ResetError); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_factory_reset_factory_reset_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StartResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_factory_reset_factory_reset_proto_msgTypes[3].OneofWrappers = []interface{}{ + (*StartResponse_ResetSuccess)(nil), + (*StartResponse_ResetError)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_factory_reset_factory_reset_proto_rawDesc, + NumEnums: 0, + NumMessages: 4, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_factory_reset_factory_reset_proto_goTypes, + DependencyIndexes: file_factory_reset_factory_reset_proto_depIdxs, + MessageInfos: file_factory_reset_factory_reset_proto_msgTypes, + }.Build() + File_factory_reset_factory_reset_proto = out.File + file_factory_reset_factory_reset_proto_rawDesc = nil + file_factory_reset_factory_reset_proto_goTypes = nil + file_factory_reset_factory_reset_proto_depIdxs = nil +} diff --git a/factory_reset/reset.proto b/factory_reset/factory_reset.proto similarity index 100% rename from factory_reset/reset.proto rename to factory_reset/factory_reset.proto diff --git a/factory_reset/factory_reset_grpc.pb.go b/factory_reset/factory_reset_grpc.pb.go new file mode 100644 index 00000000..eae5286e --- /dev/null +++ b/factory_reset/factory_reset_grpc.pb.go @@ -0,0 +1,129 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. + +package factory_reset + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.32.0 or later. +const _ = grpc.SupportPackageIsVersion7 + +// FactoryResetClient is the client API for FactoryReset service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type FactoryResetClient interface { + // The Start RPC allows the Client to instruct the Target to immediately + // clean all existing state and boot the Target in the same condition as it is + // shipped from factory. State includes storage, configuration, logs, + // certificates and licenses. + // + // Optionally allows rolling back the OS to the same version shipped from + // factory. + // + // Optionally allows for the Target to zero-fill permanent storage where state + // data is stored. + // + // If any of the optional flags is set but not supported, a gRPC Status with + // code INVALID_ARGUMENT must be returned with the details value set to a + // properly populated ResetError message. + Start(ctx context.Context, in *StartRequest, opts ...grpc.CallOption) (*StartResponse, error) +} + +type factoryResetClient struct { + cc grpc.ClientConnInterface +} + +func NewFactoryResetClient(cc grpc.ClientConnInterface) FactoryResetClient { + return &factoryResetClient{cc} +} + +func (c *factoryResetClient) Start(ctx context.Context, in *StartRequest, opts ...grpc.CallOption) (*StartResponse, error) { + out := new(StartResponse) + err := c.cc.Invoke(ctx, "/gnoi.factory_reset.FactoryReset/Start", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// FactoryResetServer is the server API for FactoryReset service. +// All implementations must embed UnimplementedFactoryResetServer +// for forward compatibility +type FactoryResetServer interface { + // The Start RPC allows the Client to instruct the Target to immediately + // clean all existing state and boot the Target in the same condition as it is + // shipped from factory. State includes storage, configuration, logs, + // certificates and licenses. + // + // Optionally allows rolling back the OS to the same version shipped from + // factory. + // + // Optionally allows for the Target to zero-fill permanent storage where state + // data is stored. + // + // If any of the optional flags is set but not supported, a gRPC Status with + // code INVALID_ARGUMENT must be returned with the details value set to a + // properly populated ResetError message. + Start(context.Context, *StartRequest) (*StartResponse, error) + mustEmbedUnimplementedFactoryResetServer() +} + +// UnimplementedFactoryResetServer must be embedded to have forward compatible implementations. +type UnimplementedFactoryResetServer struct { +} + +func (UnimplementedFactoryResetServer) Start(context.Context, *StartRequest) (*StartResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Start not implemented") +} +func (UnimplementedFactoryResetServer) mustEmbedUnimplementedFactoryResetServer() {} + +// UnsafeFactoryResetServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to FactoryResetServer will +// result in compilation errors. +type UnsafeFactoryResetServer interface { + mustEmbedUnimplementedFactoryResetServer() +} + +func RegisterFactoryResetServer(s grpc.ServiceRegistrar, srv FactoryResetServer) { + s.RegisterService(&FactoryReset_ServiceDesc, srv) +} + +func _FactoryReset_Start_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(StartRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(FactoryResetServer).Start(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gnoi.factory_reset.FactoryReset/Start", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(FactoryResetServer).Start(ctx, req.(*StartRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// FactoryReset_ServiceDesc is the grpc.ServiceDesc for FactoryReset service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var FactoryReset_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "gnoi.factory_reset.FactoryReset", + HandlerType: (*FactoryResetServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "Start", + Handler: _FactoryReset_Start_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "factory_reset/factory_reset.proto", +} diff --git a/file/file.pb.go b/file/file.pb.go index 41e47462..be82e0bc 100644 --- a/file/file.pb.go +++ b/file/file.pb.go @@ -16,8 +16,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.26.0 -// protoc v3.15.7 +// protoc-gen-go v1.27.1 +// protoc v3.12.4 // source: file/file.proto package file diff --git a/healthz/healthz.pb.go b/healthz/healthz.pb.go index 32287339..62342ecd 100644 --- a/healthz/healthz.pb.go +++ b/healthz/healthz.pb.go @@ -22,17 +22,17 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.26.0 +// protoc-gen-go v1.27.1 // protoc v3.12.4 // source: healthz/healthz.proto package healthz import ( + any "github.com/golang/protobuf/ptypes/any" types "github.com/openconfig/gnoi/types" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - anypb "google.golang.org/protobuf/types/known/anypb" reflect "reflect" sync "sync" ) @@ -156,7 +156,7 @@ type ComponentStatus struct { // Opaque data for how the healthcheck is implemented. This can be any proto // defined by the vendor. This could be the equivalent to outputs like // "show tech" or core files or any other diagnostic data. - Healthz *anypb.Any `protobuf:"bytes,4,opt,name=healthz,proto3" json:"healthz,omitempty"` + Healthz *any.Any `protobuf:"bytes,4,opt,name=healthz,proto3" json:"healthz,omitempty"` } func (x *ComponentStatus) Reset() { @@ -212,7 +212,7 @@ func (x *ComponentStatus) GetStatus() Status { return Status_STATUS_UNSPECIFIED } -func (x *ComponentStatus) GetHealthz() *anypb.Any { +func (x *ComponentStatus) GetHealthz() *any.Any { if x != nil { return x.Healthz } @@ -333,7 +333,7 @@ var file_healthz_healthz_proto_goTypes = []interface{}{ (*ComponentStatus)(nil), // 2: gnoi.healthz.ComponentStatus (*GetResponse)(nil), // 3: gnoi.healthz.GetResponse (*types.Path)(nil), // 4: gnoi.types.Path - (*anypb.Any)(nil), // 5: google.protobuf.Any + (*any.Any)(nil), // 5: google.protobuf.Any } var file_healthz_healthz_proto_depIdxs = []int32{ 4, // 0: gnoi.healthz.GetRequest.path:type_name -> gnoi.types.Path diff --git a/interface/interface.pb.go b/interface/interface.pb.go index 41986498..ab826a78 100644 --- a/interface/interface.pb.go +++ b/interface/interface.pb.go @@ -16,8 +16,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.26.0 -// protoc v3.15.7 +// protoc-gen-go v1.27.1 +// protoc v3.12.4 // source: interface/interface.proto package _interface diff --git a/layer2/layer2.pb.go b/layer2/layer2.pb.go index 32d2f93b..3b8e1363 100644 --- a/layer2/layer2.pb.go +++ b/layer2/layer2.pb.go @@ -16,8 +16,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.26.0 -// protoc v3.15.7 +// protoc-gen-go v1.27.1 +// protoc v3.12.4 // source: layer2/layer2.proto package layer2 @@ -137,7 +137,7 @@ func (x *ClearNeighborDiscoveryRequest) GetProtocol() types.L3Protocol { if x != nil { return x.Protocol } - return types.L3Protocol_UNSPECIFIED + return types.L3Protocol(0) } func (x *ClearNeighborDiscoveryRequest) GetAddress() string { diff --git a/mpls/mpls.pb.go b/mpls/mpls.pb.go index cc375050..fe53c736 100644 --- a/mpls/mpls.pb.go +++ b/mpls/mpls.pb.go @@ -16,8 +16,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.26.0 -// protoc v3.15.7 +// protoc-gen-go v1.27.1 +// protoc v3.12.4 // source: mpls/mpls.proto package mpls diff --git a/otdr/otdr.pb.go b/otdr/otdr.pb.go index 221b8af8..c8ff205d 100644 --- a/otdr/otdr.pb.go +++ b/otdr/otdr.pb.go @@ -16,8 +16,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.26.0 -// protoc v3.15.7 +// protoc-gen-go v1.27.1 +// protoc v3.12.4 // source: otdr/otdr.proto package otdr diff --git a/system/system.pb.go b/system/system.pb.go index 69ee9edc..6408c7fe 100644 --- a/system/system.pb.go +++ b/system/system.pb.go @@ -22,8 +22,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.26.0 -// protoc v3.15.7 +// protoc-gen-go v1.27.1 +// protoc v3.12.4 // source: system/system.proto package system @@ -895,7 +895,7 @@ func (x *PingRequest) GetL3Protocol() types.L3Protocol { if x != nil { return x.L3Protocol } - return types.L3Protocol_UNSPECIFIED + return types.L3Protocol(0) } // A PingResponse represents either the reponse to a single ping packet @@ -1140,7 +1140,7 @@ func (x *TracerouteRequest) GetL3Protocol() types.L3Protocol { if x != nil { return x.L3Protocol } - return types.L3Protocol_UNSPECIFIED + return types.L3Protocol(0) } func (x *TracerouteRequest) GetL4Protocol() TracerouteRequest_L4Protocol { diff --git a/types/types.pb.go b/types/types.pb.go index 55fb31a4..3a66cecb 100644 --- a/types/types.pb.go +++ b/types/types.pb.go @@ -16,16 +16,16 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.26.0 -// protoc v3.15.7 +// protoc-gen-go v1.27.1 +// protoc v3.12.4 // source: types/types.proto package types import ( + descriptor "github.com/golang/protobuf/protoc-gen-go/descriptor" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - descriptorpb "google.golang.org/protobuf/types/descriptorpb" reflect "reflect" sync "sync" ) @@ -404,7 +404,7 @@ func (*Credentials_Hashed) isCredentials_Password() {} var file_types_types_proto_extTypes = []protoimpl.ExtensionInfo{ { - ExtendedType: (*descriptorpb.FileOptions)(nil), + ExtendedType: (*descriptor.FileOptions)(nil), ExtensionType: (*string)(nil), Field: 1002, Name: "gnoi.types.gnoi_version", @@ -413,7 +413,7 @@ var file_types_types_proto_extTypes = []protoimpl.ExtensionInfo{ }, } -// Extension fields to descriptorpb.FileOptions. +// Extension fields to descriptor.FileOptions. var ( // The gNOI service semantic version. // @@ -487,14 +487,14 @@ func file_types_types_proto_rawDescGZIP() []byte { var file_types_types_proto_enumTypes = make([]protoimpl.EnumInfo, 2) var file_types_types_proto_msgTypes = make([]protoimpl.MessageInfo, 5) var file_types_types_proto_goTypes = []interface{}{ - (L3Protocol)(0), // 0: gnoi.types.L3Protocol - (HashType_HashMethod)(0), // 1: gnoi.types.HashType.HashMethod - (*HashType)(nil), // 2: gnoi.types.HashType - (*Path)(nil), // 3: gnoi.types.Path - (*PathElem)(nil), // 4: gnoi.types.PathElem - (*Credentials)(nil), // 5: gnoi.types.Credentials - nil, // 6: gnoi.types.PathElem.KeyEntry - (*descriptorpb.FileOptions)(nil), // 7: google.protobuf.FileOptions + (L3Protocol)(0), // 0: gnoi.types.L3Protocol + (HashType_HashMethod)(0), // 1: gnoi.types.HashType.HashMethod + (*HashType)(nil), // 2: gnoi.types.HashType + (*Path)(nil), // 3: gnoi.types.Path + (*PathElem)(nil), // 4: gnoi.types.PathElem + (*Credentials)(nil), // 5: gnoi.types.Credentials + nil, // 6: gnoi.types.PathElem.KeyEntry + (*descriptor.FileOptions)(nil), // 7: google.protobuf.FileOptions } var file_types_types_proto_depIdxs = []int32{ 1, // 0: gnoi.types.HashType.method:type_name -> gnoi.types.HashType.HashMethod diff --git a/wavelength_router/wavelength_router.pb.go b/wavelength_router/wavelength_router.pb.go index 275b2ed7..7f92679a 100644 --- a/wavelength_router/wavelength_router.pb.go +++ b/wavelength_router/wavelength_router.pb.go @@ -16,8 +16,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.26.0 -// protoc v3.15.7 +// protoc-gen-go v1.27.1 +// protoc v3.12.4 // source: wavelength_router/wavelength_router.proto package wavelength_router From 59585e5aaee383cd62a315ea2ff3a860759fa24a Mon Sep 17 00:00:00 2001 From: kefanman <34763233+kefanman@users.noreply.github.com> Date: Wed, 13 Oct 2021 11:17:00 -0700 Subject: [PATCH 109/238] Add source_address field per cmzhou@. Allows for passing a source address argument to the underlying curl/etc command. --- common/common.proto | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/common/common.proto b/common/common.proto index 2d8e44c4..d462cb20 100644 --- a/common/common.proto +++ b/common/common.proto @@ -41,4 +41,9 @@ message RemoteDownload { Protocol protocol = 2; types.Credentials credentials = 3; + + // Optional source address used to initiate connections from the device. + // It can be either an IPv4 address or an IPv6 address, depending on the + // connection's destination address. + string source_address = 4; } From 6f3570a7ef979423819244555594c7a5a8763ff3 Mon Sep 17 00:00:00 2001 From: greg-dennis Date: Fri, 24 Sep 2021 10:58:14 -0400 Subject: [PATCH 110/238] Add a gNOI operation to restart an OS process. --- system/system.proto | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/system/system.proto b/system/system.proto index e2e6ca91..59b669c1 100644 --- a/system/system.proto +++ b/system/system.proto @@ -83,6 +83,9 @@ service System { // CancelReboot cancels any pending reboot request. rpc CancelReboot(CancelRebootRequest) returns (CancelRebootResponse) {} + // RestartProcess restarts an OS process. + rpc RestartProcess(RestartProcessRequest) returns (RestartProcessResponse) {} + // TODO(hines): Add RotateCertificate workflow // TODO(hines): Add SetSSHPrivateKey } @@ -311,3 +314,19 @@ message SetPackageRequest { message SetPackageResponse { } + +// RestartProcessRequest describes the process restart operation. +message RestartProcessRequest { + // Name of the process to be restarted. + string name = 1; + // Mode of restarting. + enum Mode { + DEFAULT = 0; // Invalid default mode. + GRACEFUL = 1; + IMMEDIATE = 2; + } + Mode mode = 2; +} + +// RestartProcessResponse describes the result of the process restart operation. +message RestartProcessResponse {} From e49fa4bf01a11be351e84aac295adc9dda451ed9 Mon Sep 17 00:00:00 2001 From: greg-dennis Date: Fri, 24 Sep 2021 11:11:02 -0400 Subject: [PATCH 111/238] Add new line to comply with lint. --- system/system.proto | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/system/system.proto b/system/system.proto index 59b669c1..4aa5795b 100644 --- a/system/system.proto +++ b/system/system.proto @@ -329,4 +329,5 @@ message RestartProcessRequest { } // RestartProcessResponse describes the result of the process restart operation. -message RestartProcessResponse {} +message RestartProcessResponse { +} From 79cbfdda40269bf3243f3b0390529313417657f0 Mon Sep 17 00:00:00 2001 From: greg-dennis Date: Fri, 29 Oct 2021 01:21:38 -0400 Subject: [PATCH 112/238] Generalized to a KillProcess operation, with an optional restart. --- system/system.pb.go | 434 +++++++++++++++++++++++++++++---------- system/system.proto | 35 ++-- system/system_grpc.pb.go | 38 ++++ 3 files changed, 386 insertions(+), 121 deletions(-) diff --git a/system/system.pb.go b/system/system.pb.go index 6408c7fe..005424bf 100644 --- a/system/system.pb.go +++ b/system/system.pb.go @@ -236,6 +236,59 @@ func (TracerouteResponse_State) EnumDescriptor() ([]byte, []int) { return file_system_system_proto_rawDescGZIP(), []int{13, 0} } +// Termination signal sent to the process. +type KillProcessRequest_Signal int32 + +const ( + KillProcessRequest_SIGNAL_UNSPECIFIED KillProcessRequest_Signal = 0 // Invalid default. + KillProcessRequest_SIGNAL_TERM KillProcessRequest_Signal = 1 // Terminate the process gracefully. + KillProcessRequest_SIGNAL_KILL KillProcessRequest_Signal = 2 // Terminate the process immediately. + KillProcessRequest_SIGNAL_HUP KillProcessRequest_Signal = 3 // Reload the process configuration. +) + +// Enum value maps for KillProcessRequest_Signal. +var ( + KillProcessRequest_Signal_name = map[int32]string{ + 0: "SIGNAL_UNSPECIFIED", + 1: "SIGNAL_TERM", + 2: "SIGNAL_KILL", + 3: "SIGNAL_HUP", + } + KillProcessRequest_Signal_value = map[string]int32{ + "SIGNAL_UNSPECIFIED": 0, + "SIGNAL_TERM": 1, + "SIGNAL_KILL": 2, + "SIGNAL_HUP": 3, + } +) + +func (x KillProcessRequest_Signal) Enum() *KillProcessRequest_Signal { + p := new(KillProcessRequest_Signal) + *p = x + return p +} + +func (x KillProcessRequest_Signal) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (KillProcessRequest_Signal) Descriptor() protoreflect.EnumDescriptor { + return file_system_system_proto_enumTypes[3].Descriptor() +} + +func (KillProcessRequest_Signal) Type() protoreflect.EnumType { + return &file_system_system_proto_enumTypes[3] +} + +func (x KillProcessRequest_Signal) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use KillProcessRequest_Signal.Descriptor instead. +func (KillProcessRequest_Signal) EnumDescriptor() ([]byte, []int) { + return file_system_system_proto_rawDescGZIP(), []int{17, 0} +} + type SwitchControlProcessorRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1519,6 +1572,122 @@ func (*SetPackageResponse) Descriptor() ([]byte, []int) { return file_system_system_proto_rawDescGZIP(), []int{16} } +// KillProcessRequest describes the process kill operation. +// Either a pid or name of the procss must be specified. +type KillProcessRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Process ID of the process to be killed. + Pid uint32 `protobuf:"varint,1,opt,name=pid,proto3" json:"pid,omitempty"` + // Name of the process to be killed. + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Signal KillProcessRequest_Signal `protobuf:"varint,3,opt,name=signal,proto3,enum=gnoi.system.KillProcessRequest_Signal" json:"signal,omitempty"` + // Whether the process should be restarted after termination. + // This value is ignored when the termination signal is SIGHUP. + Restart bool `protobuf:"varint,4,opt,name=restart,proto3" json:"restart,omitempty"` +} + +func (x *KillProcessRequest) Reset() { + *x = KillProcessRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_system_system_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *KillProcessRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*KillProcessRequest) ProtoMessage() {} + +func (x *KillProcessRequest) ProtoReflect() protoreflect.Message { + mi := &file_system_system_proto_msgTypes[17] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use KillProcessRequest.ProtoReflect.Descriptor instead. +func (*KillProcessRequest) Descriptor() ([]byte, []int) { + return file_system_system_proto_rawDescGZIP(), []int{17} +} + +func (x *KillProcessRequest) GetPid() uint32 { + if x != nil { + return x.Pid + } + return 0 +} + +func (x *KillProcessRequest) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *KillProcessRequest) GetSignal() KillProcessRequest_Signal { + if x != nil { + return x.Signal + } + return KillProcessRequest_SIGNAL_UNSPECIFIED +} + +func (x *KillProcessRequest) GetRestart() bool { + if x != nil { + return x.Restart + } + return false +} + +// KillProcessResponse describes the result of the process kill operation. +type KillProcessResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *KillProcessResponse) Reset() { + *x = KillProcessResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_system_system_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *KillProcessResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*KillProcessResponse) ProtoMessage() {} + +func (x *KillProcessResponse) ProtoReflect() protoreflect.Message { + mi := &file_system_system_proto_msgTypes[18] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use KillProcessResponse.ProtoReflect.Descriptor instead. +func (*KillProcessResponse) Descriptor() ([]byte, []int) { + return file_system_system_proto_rawDescGZIP(), []int{18} +} + var File_system_system_proto protoreflect.FileDescriptor var file_system_system_proto_rawDesc = []byte{ @@ -1712,58 +1881,79 @@ var file_system_system_proto_rawDesc = []byte{ 0x2e, 0x48, 0x61, 0x73, 0x68, 0x54, 0x79, 0x70, 0x65, 0x48, 0x00, 0x52, 0x04, 0x68, 0x61, 0x73, 0x68, 0x42, 0x09, 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x14, 0x0a, 0x12, 0x53, 0x65, 0x74, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x2a, 0x64, 0x0a, 0x0c, 0x52, 0x65, 0x62, 0x6f, 0x6f, 0x74, 0x4d, 0x65, 0x74, 0x68, - 0x6f, 0x64, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, - 0x08, 0x0a, 0x04, 0x43, 0x4f, 0x4c, 0x44, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x50, 0x4f, 0x57, - 0x45, 0x52, 0x44, 0x4f, 0x57, 0x4e, 0x10, 0x02, 0x12, 0x08, 0x0a, 0x04, 0x48, 0x41, 0x4c, 0x54, - 0x10, 0x03, 0x12, 0x08, 0x0a, 0x04, 0x57, 0x41, 0x52, 0x4d, 0x10, 0x04, 0x12, 0x07, 0x0a, 0x03, - 0x4e, 0x53, 0x46, 0x10, 0x05, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x4f, 0x57, 0x45, 0x52, 0x55, 0x50, - 0x10, 0x07, 0x22, 0x04, 0x08, 0x06, 0x10, 0x06, 0x32, 0x96, 0x05, 0x0a, 0x06, 0x53, 0x79, 0x73, - 0x74, 0x65, 0x6d, 0x12, 0x3f, 0x0a, 0x04, 0x50, 0x69, 0x6e, 0x67, 0x12, 0x18, 0x2e, 0x67, 0x6e, - 0x6f, 0x69, 0x2e, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x50, 0x69, 0x6e, 0x67, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, 0x73, - 0x74, 0x65, 0x6d, 0x2e, 0x50, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x00, 0x30, 0x01, 0x12, 0x51, 0x0a, 0x0a, 0x54, 0x72, 0x61, 0x63, 0x65, 0x72, 0x6f, 0x75, - 0x74, 0x65, 0x12, 0x1e, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, - 0x2e, 0x54, 0x72, 0x61, 0x63, 0x65, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, - 0x2e, 0x54, 0x72, 0x61, 0x63, 0x65, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x00, 0x30, 0x01, 0x12, 0x3d, 0x0a, 0x04, 0x54, 0x69, 0x6d, 0x65, 0x12, - 0x18, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x54, 0x69, - 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x67, 0x6e, 0x6f, 0x69, - 0x2e, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x51, 0x0a, 0x0a, 0x53, 0x65, 0x74, 0x50, 0x61, 0x63, - 0x6b, 0x61, 0x67, 0x65, 0x12, 0x1e, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, 0x73, 0x74, - 0x65, 0x6d, 0x2e, 0x53, 0x65, 0x74, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, + 0x73, 0x65, 0x22, 0xe8, 0x01, 0x0a, 0x12, 0x4b, 0x69, 0x6c, 0x6c, 0x50, 0x72, 0x6f, 0x63, 0x65, + 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x70, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x03, 0x70, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, + 0x3e, 0x0a, 0x06, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, + 0x26, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x4b, 0x69, + 0x6c, 0x6c, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x52, 0x06, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x12, + 0x18, 0x0a, 0x07, 0x72, 0x65, 0x73, 0x74, 0x61, 0x72, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, + 0x52, 0x07, 0x72, 0x65, 0x73, 0x74, 0x61, 0x72, 0x74, 0x22, 0x52, 0x0a, 0x06, 0x53, 0x69, 0x67, + 0x6e, 0x61, 0x6c, 0x12, 0x16, 0x0a, 0x12, 0x53, 0x49, 0x47, 0x4e, 0x41, 0x4c, 0x5f, 0x55, 0x4e, + 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0f, 0x0a, 0x0b, 0x53, + 0x49, 0x47, 0x4e, 0x41, 0x4c, 0x5f, 0x54, 0x45, 0x52, 0x4d, 0x10, 0x01, 0x12, 0x0f, 0x0a, 0x0b, + 0x53, 0x49, 0x47, 0x4e, 0x41, 0x4c, 0x5f, 0x4b, 0x49, 0x4c, 0x4c, 0x10, 0x02, 0x12, 0x0e, 0x0a, + 0x0a, 0x53, 0x49, 0x47, 0x4e, 0x41, 0x4c, 0x5f, 0x48, 0x55, 0x50, 0x10, 0x03, 0x22, 0x15, 0x0a, + 0x13, 0x4b, 0x69, 0x6c, 0x6c, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x2a, 0x64, 0x0a, 0x0c, 0x52, 0x65, 0x62, 0x6f, 0x6f, 0x74, 0x4d, 0x65, + 0x74, 0x68, 0x6f, 0x64, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, + 0x00, 0x12, 0x08, 0x0a, 0x04, 0x43, 0x4f, 0x4c, 0x44, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x50, + 0x4f, 0x57, 0x45, 0x52, 0x44, 0x4f, 0x57, 0x4e, 0x10, 0x02, 0x12, 0x08, 0x0a, 0x04, 0x48, 0x41, + 0x4c, 0x54, 0x10, 0x03, 0x12, 0x08, 0x0a, 0x04, 0x57, 0x41, 0x52, 0x4d, 0x10, 0x04, 0x12, 0x07, + 0x0a, 0x03, 0x4e, 0x53, 0x46, 0x10, 0x05, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x4f, 0x57, 0x45, 0x52, + 0x55, 0x50, 0x10, 0x07, 0x22, 0x04, 0x08, 0x06, 0x10, 0x06, 0x32, 0xea, 0x05, 0x0a, 0x06, 0x53, + 0x79, 0x73, 0x74, 0x65, 0x6d, 0x12, 0x3f, 0x0a, 0x04, 0x50, 0x69, 0x6e, 0x67, 0x12, 0x18, 0x2e, + 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x50, 0x69, 0x6e, 0x67, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, + 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x50, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x00, 0x30, 0x01, 0x12, 0x51, 0x0a, 0x0a, 0x54, 0x72, 0x61, 0x63, 0x65, 0x72, + 0x6f, 0x75, 0x74, 0x65, 0x12, 0x1e, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, 0x73, 0x74, + 0x65, 0x6d, 0x2e, 0x54, 0x72, 0x61, 0x63, 0x65, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, 0x73, 0x74, - 0x65, 0x6d, 0x2e, 0x53, 0x65, 0x74, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x28, 0x01, 0x12, 0x73, 0x0a, 0x16, 0x53, 0x77, 0x69, - 0x74, 0x63, 0x68, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, - 0x73, 0x6f, 0x72, 0x12, 0x2a, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, 0x73, 0x74, 0x65, - 0x6d, 0x2e, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x50, - 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x2b, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x53, 0x77, - 0x69, 0x74, 0x63, 0x68, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x50, 0x72, 0x6f, 0x63, 0x65, - 0x73, 0x73, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x43, - 0x0a, 0x06, 0x52, 0x65, 0x62, 0x6f, 0x6f, 0x74, 0x12, 0x1a, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, - 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x52, 0x65, 0x62, 0x6f, 0x6f, 0x74, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, 0x73, 0x74, - 0x65, 0x6d, 0x2e, 0x52, 0x65, 0x62, 0x6f, 0x6f, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x00, 0x12, 0x55, 0x0a, 0x0c, 0x52, 0x65, 0x62, 0x6f, 0x6f, 0x74, 0x53, 0x74, 0x61, - 0x74, 0x75, 0x73, 0x12, 0x20, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, 0x73, 0x74, 0x65, - 0x6d, 0x2e, 0x52, 0x65, 0x62, 0x6f, 0x6f, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, 0x73, + 0x65, 0x6d, 0x2e, 0x54, 0x72, 0x61, 0x63, 0x65, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x30, 0x01, 0x12, 0x3d, 0x0a, 0x04, 0x54, 0x69, 0x6d, + 0x65, 0x12, 0x18, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, + 0x54, 0x69, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x67, 0x6e, + 0x6f, 0x69, 0x2e, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x51, 0x0a, 0x0a, 0x53, 0x65, 0x74, 0x50, + 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x12, 0x1e, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, + 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x53, 0x65, 0x74, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, + 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x53, 0x65, 0x74, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x28, 0x01, 0x12, 0x73, 0x0a, 0x16, 0x53, + 0x77, 0x69, 0x74, 0x63, 0x68, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x50, 0x72, 0x6f, 0x63, + 0x65, 0x73, 0x73, 0x6f, 0x72, 0x12, 0x2a, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, 0x73, + 0x74, 0x65, 0x6d, 0x2e, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, + 0x6c, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x2b, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, + 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x50, 0x72, 0x6f, + 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, + 0x12, 0x43, 0x0a, 0x06, 0x52, 0x65, 0x62, 0x6f, 0x6f, 0x74, 0x12, 0x1a, 0x2e, 0x67, 0x6e, 0x6f, + 0x69, 0x2e, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x52, 0x65, 0x62, 0x6f, 0x6f, 0x74, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, + 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x52, 0x65, 0x62, 0x6f, 0x6f, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x55, 0x0a, 0x0c, 0x52, 0x65, 0x62, 0x6f, 0x6f, 0x74, 0x53, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x20, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x52, 0x65, 0x62, 0x6f, 0x6f, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x55, 0x0a, 0x0c, 0x43, 0x61, - 0x6e, 0x63, 0x65, 0x6c, 0x52, 0x65, 0x62, 0x6f, 0x6f, 0x74, 0x12, 0x20, 0x2e, 0x67, 0x6e, 0x6f, - 0x69, 0x2e, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x52, - 0x65, 0x62, 0x6f, 0x6f, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x67, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, + 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x52, 0x65, 0x62, 0x6f, 0x6f, 0x74, 0x53, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x55, 0x0a, 0x0c, + 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x52, 0x65, 0x62, 0x6f, 0x6f, 0x74, 0x12, 0x20, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x43, 0x61, 0x6e, 0x63, 0x65, - 0x6c, 0x52, 0x65, 0x62, 0x6f, 0x6f, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x00, 0x42, 0x2b, 0x5a, 0x21, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, - 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x67, 0x6e, 0x6f, 0x69, 0x2f, - 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0xd2, 0x3e, 0x05, 0x31, 0x2e, 0x30, 0x2e, 0x30, 0x62, 0x06, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x6c, 0x52, 0x65, 0x62, 0x6f, 0x6f, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, + 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x43, 0x61, 0x6e, + 0x63, 0x65, 0x6c, 0x52, 0x65, 0x62, 0x6f, 0x6f, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x00, 0x12, 0x52, 0x0a, 0x0b, 0x4b, 0x69, 0x6c, 0x6c, 0x50, 0x72, 0x6f, 0x63, 0x65, + 0x73, 0x73, 0x12, 0x1f, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, + 0x2e, 0x4b, 0x69, 0x6c, 0x6c, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, 0x73, 0x74, 0x65, + 0x6d, 0x2e, 0x4b, 0x69, 0x6c, 0x6c, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x2b, 0x5a, 0x21, 0x67, 0x69, 0x74, 0x68, 0x75, + 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x2f, 0x67, 0x6e, 0x6f, 0x69, 0x2f, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0xd2, 0x3e, 0x05, 0x31, + 0x2e, 0x30, 0x2e, 0x30, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -1778,71 +1968,77 @@ func file_system_system_proto_rawDescGZIP() []byte { return file_system_system_proto_rawDescData } -var file_system_system_proto_enumTypes = make([]protoimpl.EnumInfo, 3) -var file_system_system_proto_msgTypes = make([]protoimpl.MessageInfo, 18) +var file_system_system_proto_enumTypes = make([]protoimpl.EnumInfo, 4) +var file_system_system_proto_msgTypes = make([]protoimpl.MessageInfo, 20) var file_system_system_proto_goTypes = []interface{}{ (RebootMethod)(0), // 0: gnoi.system.RebootMethod (TracerouteRequest_L4Protocol)(0), // 1: gnoi.system.TracerouteRequest.L4Protocol (TracerouteResponse_State)(0), // 2: gnoi.system.TracerouteResponse.State - (*SwitchControlProcessorRequest)(nil), // 3: gnoi.system.SwitchControlProcessorRequest - (*SwitchControlProcessorResponse)(nil), // 4: gnoi.system.SwitchControlProcessorResponse - (*RebootRequest)(nil), // 5: gnoi.system.RebootRequest - (*RebootResponse)(nil), // 6: gnoi.system.RebootResponse - (*CancelRebootRequest)(nil), // 7: gnoi.system.CancelRebootRequest - (*CancelRebootResponse)(nil), // 8: gnoi.system.CancelRebootResponse - (*RebootStatusRequest)(nil), // 9: gnoi.system.RebootStatusRequest - (*RebootStatusResponse)(nil), // 10: gnoi.system.RebootStatusResponse - (*TimeRequest)(nil), // 11: gnoi.system.TimeRequest - (*TimeResponse)(nil), // 12: gnoi.system.TimeResponse - (*PingRequest)(nil), // 13: gnoi.system.PingRequest - (*PingResponse)(nil), // 14: gnoi.system.PingResponse - (*TracerouteRequest)(nil), // 15: gnoi.system.TracerouteRequest - (*TracerouteResponse)(nil), // 16: gnoi.system.TracerouteResponse - (*Package)(nil), // 17: gnoi.system.Package - (*SetPackageRequest)(nil), // 18: gnoi.system.SetPackageRequest - (*SetPackageResponse)(nil), // 19: gnoi.system.SetPackageResponse - nil, // 20: gnoi.system.TracerouteResponse.MplsEntry - (*types.Path)(nil), // 21: gnoi.types.Path - (types.L3Protocol)(0), // 22: gnoi.types.L3Protocol - (*common.RemoteDownload)(nil), // 23: gnoi.common.RemoteDownload - (*types.HashType)(nil), // 24: gnoi.types.HashType + (KillProcessRequest_Signal)(0), // 3: gnoi.system.KillProcessRequest.Signal + (*SwitchControlProcessorRequest)(nil), // 4: gnoi.system.SwitchControlProcessorRequest + (*SwitchControlProcessorResponse)(nil), // 5: gnoi.system.SwitchControlProcessorResponse + (*RebootRequest)(nil), // 6: gnoi.system.RebootRequest + (*RebootResponse)(nil), // 7: gnoi.system.RebootResponse + (*CancelRebootRequest)(nil), // 8: gnoi.system.CancelRebootRequest + (*CancelRebootResponse)(nil), // 9: gnoi.system.CancelRebootResponse + (*RebootStatusRequest)(nil), // 10: gnoi.system.RebootStatusRequest + (*RebootStatusResponse)(nil), // 11: gnoi.system.RebootStatusResponse + (*TimeRequest)(nil), // 12: gnoi.system.TimeRequest + (*TimeResponse)(nil), // 13: gnoi.system.TimeResponse + (*PingRequest)(nil), // 14: gnoi.system.PingRequest + (*PingResponse)(nil), // 15: gnoi.system.PingResponse + (*TracerouteRequest)(nil), // 16: gnoi.system.TracerouteRequest + (*TracerouteResponse)(nil), // 17: gnoi.system.TracerouteResponse + (*Package)(nil), // 18: gnoi.system.Package + (*SetPackageRequest)(nil), // 19: gnoi.system.SetPackageRequest + (*SetPackageResponse)(nil), // 20: gnoi.system.SetPackageResponse + (*KillProcessRequest)(nil), // 21: gnoi.system.KillProcessRequest + (*KillProcessResponse)(nil), // 22: gnoi.system.KillProcessResponse + nil, // 23: gnoi.system.TracerouteResponse.MplsEntry + (*types.Path)(nil), // 24: gnoi.types.Path + (types.L3Protocol)(0), // 25: gnoi.types.L3Protocol + (*common.RemoteDownload)(nil), // 26: gnoi.common.RemoteDownload + (*types.HashType)(nil), // 27: gnoi.types.HashType } var file_system_system_proto_depIdxs = []int32{ - 21, // 0: gnoi.system.SwitchControlProcessorRequest.control_processor:type_name -> gnoi.types.Path - 21, // 1: gnoi.system.SwitchControlProcessorResponse.control_processor:type_name -> gnoi.types.Path + 24, // 0: gnoi.system.SwitchControlProcessorRequest.control_processor:type_name -> gnoi.types.Path + 24, // 1: gnoi.system.SwitchControlProcessorResponse.control_processor:type_name -> gnoi.types.Path 0, // 2: gnoi.system.RebootRequest.method:type_name -> gnoi.system.RebootMethod - 21, // 3: gnoi.system.RebootRequest.subcomponents:type_name -> gnoi.types.Path - 21, // 4: gnoi.system.CancelRebootRequest.subcomponents:type_name -> gnoi.types.Path - 21, // 5: gnoi.system.RebootStatusRequest.subcomponents:type_name -> gnoi.types.Path - 22, // 6: gnoi.system.PingRequest.l3protocol:type_name -> gnoi.types.L3Protocol - 22, // 7: gnoi.system.TracerouteRequest.l3protocol:type_name -> gnoi.types.L3Protocol + 24, // 3: gnoi.system.RebootRequest.subcomponents:type_name -> gnoi.types.Path + 24, // 4: gnoi.system.CancelRebootRequest.subcomponents:type_name -> gnoi.types.Path + 24, // 5: gnoi.system.RebootStatusRequest.subcomponents:type_name -> gnoi.types.Path + 25, // 6: gnoi.system.PingRequest.l3protocol:type_name -> gnoi.types.L3Protocol + 25, // 7: gnoi.system.TracerouteRequest.l3protocol:type_name -> gnoi.types.L3Protocol 1, // 8: gnoi.system.TracerouteRequest.l4protocol:type_name -> gnoi.system.TracerouteRequest.L4Protocol 2, // 9: gnoi.system.TracerouteResponse.state:type_name -> gnoi.system.TracerouteResponse.State - 20, // 10: gnoi.system.TracerouteResponse.mpls:type_name -> gnoi.system.TracerouteResponse.MplsEntry - 23, // 11: gnoi.system.Package.remote_download:type_name -> gnoi.common.RemoteDownload - 17, // 12: gnoi.system.SetPackageRequest.package:type_name -> gnoi.system.Package - 24, // 13: gnoi.system.SetPackageRequest.hash:type_name -> gnoi.types.HashType - 13, // 14: gnoi.system.System.Ping:input_type -> gnoi.system.PingRequest - 15, // 15: gnoi.system.System.Traceroute:input_type -> gnoi.system.TracerouteRequest - 11, // 16: gnoi.system.System.Time:input_type -> gnoi.system.TimeRequest - 18, // 17: gnoi.system.System.SetPackage:input_type -> gnoi.system.SetPackageRequest - 3, // 18: gnoi.system.System.SwitchControlProcessor:input_type -> gnoi.system.SwitchControlProcessorRequest - 5, // 19: gnoi.system.System.Reboot:input_type -> gnoi.system.RebootRequest - 9, // 20: gnoi.system.System.RebootStatus:input_type -> gnoi.system.RebootStatusRequest - 7, // 21: gnoi.system.System.CancelReboot:input_type -> gnoi.system.CancelRebootRequest - 14, // 22: gnoi.system.System.Ping:output_type -> gnoi.system.PingResponse - 16, // 23: gnoi.system.System.Traceroute:output_type -> gnoi.system.TracerouteResponse - 12, // 24: gnoi.system.System.Time:output_type -> gnoi.system.TimeResponse - 19, // 25: gnoi.system.System.SetPackage:output_type -> gnoi.system.SetPackageResponse - 4, // 26: gnoi.system.System.SwitchControlProcessor:output_type -> gnoi.system.SwitchControlProcessorResponse - 6, // 27: gnoi.system.System.Reboot:output_type -> gnoi.system.RebootResponse - 10, // 28: gnoi.system.System.RebootStatus:output_type -> gnoi.system.RebootStatusResponse - 8, // 29: gnoi.system.System.CancelReboot:output_type -> gnoi.system.CancelRebootResponse - 22, // [22:30] is the sub-list for method output_type - 14, // [14:22] is the sub-list for method input_type - 14, // [14:14] is the sub-list for extension type_name - 14, // [14:14] is the sub-list for extension extendee - 0, // [0:14] is the sub-list for field type_name + 23, // 10: gnoi.system.TracerouteResponse.mpls:type_name -> gnoi.system.TracerouteResponse.MplsEntry + 26, // 11: gnoi.system.Package.remote_download:type_name -> gnoi.common.RemoteDownload + 18, // 12: gnoi.system.SetPackageRequest.package:type_name -> gnoi.system.Package + 27, // 13: gnoi.system.SetPackageRequest.hash:type_name -> gnoi.types.HashType + 3, // 14: gnoi.system.KillProcessRequest.signal:type_name -> gnoi.system.KillProcessRequest.Signal + 14, // 15: gnoi.system.System.Ping:input_type -> gnoi.system.PingRequest + 16, // 16: gnoi.system.System.Traceroute:input_type -> gnoi.system.TracerouteRequest + 12, // 17: gnoi.system.System.Time:input_type -> gnoi.system.TimeRequest + 19, // 18: gnoi.system.System.SetPackage:input_type -> gnoi.system.SetPackageRequest + 4, // 19: gnoi.system.System.SwitchControlProcessor:input_type -> gnoi.system.SwitchControlProcessorRequest + 6, // 20: gnoi.system.System.Reboot:input_type -> gnoi.system.RebootRequest + 10, // 21: gnoi.system.System.RebootStatus:input_type -> gnoi.system.RebootStatusRequest + 8, // 22: gnoi.system.System.CancelReboot:input_type -> gnoi.system.CancelRebootRequest + 21, // 23: gnoi.system.System.KillProcess:input_type -> gnoi.system.KillProcessRequest + 15, // 24: gnoi.system.System.Ping:output_type -> gnoi.system.PingResponse + 17, // 25: gnoi.system.System.Traceroute:output_type -> gnoi.system.TracerouteResponse + 13, // 26: gnoi.system.System.Time:output_type -> gnoi.system.TimeResponse + 20, // 27: gnoi.system.System.SetPackage:output_type -> gnoi.system.SetPackageResponse + 5, // 28: gnoi.system.System.SwitchControlProcessor:output_type -> gnoi.system.SwitchControlProcessorResponse + 7, // 29: gnoi.system.System.Reboot:output_type -> gnoi.system.RebootResponse + 11, // 30: gnoi.system.System.RebootStatus:output_type -> gnoi.system.RebootStatusResponse + 9, // 31: gnoi.system.System.CancelReboot:output_type -> gnoi.system.CancelRebootResponse + 22, // 32: gnoi.system.System.KillProcess:output_type -> gnoi.system.KillProcessResponse + 24, // [24:33] is the sub-list for method output_type + 15, // [15:24] is the sub-list for method input_type + 15, // [15:15] is the sub-list for extension type_name + 15, // [15:15] is the sub-list for extension extendee + 0, // [0:15] is the sub-list for field type_name } func init() { file_system_system_proto_init() } @@ -2055,6 +2251,30 @@ func file_system_system_proto_init() { return nil } } + file_system_system_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*KillProcessRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_system_system_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*KillProcessResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } } file_system_system_proto_msgTypes[15].OneofWrappers = []interface{}{ (*SetPackageRequest_Package)(nil), @@ -2066,8 +2286,8 @@ func file_system_system_proto_init() { File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_system_system_proto_rawDesc, - NumEnums: 3, - NumMessages: 18, + NumEnums: 4, + NumMessages: 20, NumExtensions: 0, NumServices: 1, }, diff --git a/system/system.proto b/system/system.proto index 4aa5795b..af2b4644 100644 --- a/system/system.proto +++ b/system/system.proto @@ -83,8 +83,8 @@ service System { // CancelReboot cancels any pending reboot request. rpc CancelReboot(CancelRebootRequest) returns (CancelRebootResponse) {} - // RestartProcess restarts an OS process. - rpc RestartProcess(RestartProcessRequest) returns (RestartProcessResponse) {} + // KillProcess kills an OS process, and optionally restarts it. + rpc KillProcess(KillProcessRequest) returns (KillProcessResponse) {} // TODO(hines): Add RotateCertificate workflow // TODO(hines): Add SetSSHPrivateKey @@ -315,19 +315,26 @@ message SetPackageRequest { message SetPackageResponse { } -// RestartProcessRequest describes the process restart operation. -message RestartProcessRequest { - // Name of the process to be restarted. - string name = 1; - // Mode of restarting. - enum Mode { - DEFAULT = 0; // Invalid default mode. - GRACEFUL = 1; - IMMEDIATE = 2; +// KillProcessRequest describes the process kill operation. +// Either a pid or name of the procss must be specified. +message KillProcessRequest { + // Process ID of the process to be killed. + uint32 pid = 1; + // Name of the process to be killed. + string name = 2; + // Termination signal sent to the process. + enum Signal { + SIGNAL_UNSPECIFIED = 0; // Invalid default. + SIGNAL_TERM = 1; // Terminate the process gracefully. + SIGNAL_KILL = 2; // Terminate the process immediately. + SIGNAL_HUP = 3; // Reload the process configuration. } - Mode mode = 2; + Signal signal = 3; + // Whether the process should be restarted after termination. + // This value is ignored when the termination signal is SIGHUP. + bool restart = 4; } -// RestartProcessResponse describes the result of the process restart operation. -message RestartProcessResponse { +// KillProcessResponse describes the result of the process kill operation. +message KillProcessResponse { } diff --git a/system/system_grpc.pb.go b/system/system_grpc.pb.go index 91d347b7..cb15ae71 100644 --- a/system/system_grpc.pb.go +++ b/system/system_grpc.pb.go @@ -58,6 +58,8 @@ type SystemClient interface { RebootStatus(ctx context.Context, in *RebootStatusRequest, opts ...grpc.CallOption) (*RebootStatusResponse, error) // CancelReboot cancels any pending reboot request. CancelReboot(ctx context.Context, in *CancelRebootRequest, opts ...grpc.CallOption) (*CancelRebootResponse, error) + // KillProcess kills an OS process, and optionally restarts it. + KillProcess(ctx context.Context, in *KillProcessRequest, opts ...grpc.CallOption) (*KillProcessResponse, error) } type systemClient struct { @@ -211,6 +213,15 @@ func (c *systemClient) CancelReboot(ctx context.Context, in *CancelRebootRequest return out, nil } +func (c *systemClient) KillProcess(ctx context.Context, in *KillProcessRequest, opts ...grpc.CallOption) (*KillProcessResponse, error) { + out := new(KillProcessResponse) + err := c.cc.Invoke(ctx, "/gnoi.system.System/KillProcess", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + // SystemServer is the server API for System service. // All implementations must embed UnimplementedSystemServer // for forward compatibility @@ -255,6 +266,8 @@ type SystemServer interface { RebootStatus(context.Context, *RebootStatusRequest) (*RebootStatusResponse, error) // CancelReboot cancels any pending reboot request. CancelReboot(context.Context, *CancelRebootRequest) (*CancelRebootResponse, error) + // KillProcess kills an OS process, and optionally restarts it. + KillProcess(context.Context, *KillProcessRequest) (*KillProcessResponse, error) mustEmbedUnimplementedSystemServer() } @@ -286,6 +299,9 @@ func (UnimplementedSystemServer) RebootStatus(context.Context, *RebootStatusRequ func (UnimplementedSystemServer) CancelReboot(context.Context, *CancelRebootRequest) (*CancelRebootResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CancelReboot not implemented") } +func (UnimplementedSystemServer) KillProcess(context.Context, *KillProcessRequest) (*KillProcessResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method KillProcess not implemented") +} func (UnimplementedSystemServer) mustEmbedUnimplementedSystemServer() {} // UnsafeSystemServer may be embedded to opt out of forward compatibility for this service. @@ -457,6 +473,24 @@ func _System_CancelReboot_Handler(srv interface{}, ctx context.Context, dec func return interceptor(ctx, in, info, handler) } +func _System_KillProcess_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(KillProcessRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SystemServer).KillProcess(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gnoi.system.System/KillProcess", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SystemServer).KillProcess(ctx, req.(*KillProcessRequest)) + } + return interceptor(ctx, in, info, handler) +} + // System_ServiceDesc is the grpc.ServiceDesc for System service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) @@ -484,6 +518,10 @@ var System_ServiceDesc = grpc.ServiceDesc{ MethodName: "CancelReboot", Handler: _System_CancelReboot_Handler, }, + { + MethodName: "KillProcess", + Handler: _System_KillProcess_Handler, + }, }, Streams: []grpc.StreamDesc{ { From 67208c6eb4db6f605f5341d651992bbb41250512 Mon Sep 17 00:00:00 2001 From: greg-dennis Date: Mon, 1 Nov 2021 19:59:54 -0400 Subject: [PATCH 113/238] Clarify contract to require a termination signal must be specified. --- system/system.pb.go | 4 ++-- system/system.proto | 6 +++--- system/system_grpc.pb.go | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/system/system.pb.go b/system/system.pb.go index 005424bf..37fca6ce 100644 --- a/system/system.pb.go +++ b/system/system.pb.go @@ -1572,8 +1572,8 @@ func (*SetPackageResponse) Descriptor() ([]byte, []int) { return file_system_system_proto_rawDescGZIP(), []int{16} } -// KillProcessRequest describes the process kill operation. -// Either a pid or name of the procss must be specified. +// KillProcessRequest describes the process kill operation. Either a pid or +// process name must be specified, and a termination signal must be specified. type KillProcessRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache diff --git a/system/system.proto b/system/system.proto index af2b4644..71cef0f0 100644 --- a/system/system.proto +++ b/system/system.proto @@ -83,7 +83,7 @@ service System { // CancelReboot cancels any pending reboot request. rpc CancelReboot(CancelRebootRequest) returns (CancelRebootResponse) {} - // KillProcess kills an OS process, and optionally restarts it. + // KillProcess kills an OS process and optionally restarts it. rpc KillProcess(KillProcessRequest) returns (KillProcessResponse) {} // TODO(hines): Add RotateCertificate workflow @@ -315,8 +315,8 @@ message SetPackageRequest { message SetPackageResponse { } -// KillProcessRequest describes the process kill operation. -// Either a pid or name of the procss must be specified. +// KillProcessRequest describes the process kill operation. Either a pid or +// process name must be specified, and a termination signal must be specified. message KillProcessRequest { // Process ID of the process to be killed. uint32 pid = 1; diff --git a/system/system_grpc.pb.go b/system/system_grpc.pb.go index cb15ae71..28b76f29 100644 --- a/system/system_grpc.pb.go +++ b/system/system_grpc.pb.go @@ -58,7 +58,7 @@ type SystemClient interface { RebootStatus(ctx context.Context, in *RebootStatusRequest, opts ...grpc.CallOption) (*RebootStatusResponse, error) // CancelReboot cancels any pending reboot request. CancelReboot(ctx context.Context, in *CancelRebootRequest, opts ...grpc.CallOption) (*CancelRebootResponse, error) - // KillProcess kills an OS process, and optionally restarts it. + // KillProcess kills an OS process and optionally restarts it. KillProcess(ctx context.Context, in *KillProcessRequest, opts ...grpc.CallOption) (*KillProcessResponse, error) } @@ -266,7 +266,7 @@ type SystemServer interface { RebootStatus(context.Context, *RebootStatusRequest) (*RebootStatusResponse, error) // CancelReboot cancels any pending reboot request. CancelReboot(context.Context, *CancelRebootRequest) (*CancelRebootResponse, error) - // KillProcess kills an OS process, and optionally restarts it. + // KillProcess kills an OS process and optionally restarts it. KillProcess(context.Context, *KillProcessRequest) (*KillProcessResponse, error) mustEmbedUnimplementedSystemServer() } From 8d78ee3e658c1eca6d97848ce6947d87b4811314 Mon Sep 17 00:00:00 2001 From: marcushines <80116818+marcushines@users.noreply.github.com> Date: Fri, 14 Jan 2022 09:32:04 -0800 Subject: [PATCH 114/238] Update system proto to address (#61) https://github.com/openconfig/gnoi/issues/60 this removes the confusing comment in the rpc specification for Ping --- common/common.pb.go | 31 ++++++++++++++++++++++--------- healthz/healthz.pb.go | 8 ++++---- system/system.proto | 3 +-- system/system_grpc.pb.go | 6 ++---- types/types.pb.go | 22 +++++++++++----------- 5 files changed, 40 insertions(+), 30 deletions(-) diff --git a/common/common.pb.go b/common/common.pb.go index 06471e60..bdd4ab09 100644 --- a/common/common.pb.go +++ b/common/common.pb.go @@ -106,6 +106,10 @@ type RemoteDownload struct { Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` Protocol RemoteDownload_Protocol `protobuf:"varint,2,opt,name=protocol,proto3,enum=gnoi.common.RemoteDownload_Protocol" json:"protocol,omitempty"` Credentials *types.Credentials `protobuf:"bytes,3,opt,name=credentials,proto3" json:"credentials,omitempty"` + // Optional source address used to initiate connections from the device. + // It can be either an IPv4 address or an IPv6 address, depending on the + // connection's destination address. + SourceAddress string `protobuf:"bytes,4,opt,name=source_address,json=sourceAddress,proto3" json:"source_address,omitempty"` } func (x *RemoteDownload) Reset() { @@ -161,6 +165,13 @@ func (x *RemoteDownload) GetCredentials() *types.Credentials { return nil } +func (x *RemoteDownload) GetSourceAddress() string { + if x != nil { + return x.SourceAddress + } + return "" +} + var File_common_common_proto protoreflect.FileDescriptor var file_common_common_proto_rawDesc = []byte{ @@ -169,7 +180,7 @@ var file_common_common_proto_rawDesc = []byte{ 0x6f, 0x6e, 0x1a, 0x2c, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x67, 0x6e, 0x6f, 0x69, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x22, 0xe2, 0x01, 0x0a, 0x0e, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x44, 0x6f, 0x77, 0x6e, 0x6c, + 0x22, 0x89, 0x02, 0x0a, 0x0e, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x40, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x24, 0x2e, 0x67, 0x6e, 0x6f, 0x69, @@ -179,14 +190,16 @@ var file_common_common_proto_rawDesc = []byte{ 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x52, 0x0b, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, - 0x69, 0x61, 0x6c, 0x73, 0x22, 0x3f, 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, - 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x08, 0x0a, - 0x04, 0x53, 0x46, 0x54, 0x50, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x48, 0x54, 0x54, 0x50, 0x10, - 0x02, 0x12, 0x09, 0x0a, 0x05, 0x48, 0x54, 0x54, 0x50, 0x53, 0x10, 0x03, 0x12, 0x07, 0x0a, 0x03, - 0x53, 0x43, 0x50, 0x10, 0x04, 0x42, 0x23, 0x5a, 0x21, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, - 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x67, - 0x6e, 0x6f, 0x69, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x33, + 0x69, 0x61, 0x6c, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x3f, 0x0a, 0x08, 0x50, + 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, + 0x57, 0x4e, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x53, 0x46, 0x54, 0x50, 0x10, 0x01, 0x12, 0x08, + 0x0a, 0x04, 0x48, 0x54, 0x54, 0x50, 0x10, 0x02, 0x12, 0x09, 0x0a, 0x05, 0x48, 0x54, 0x54, 0x50, + 0x53, 0x10, 0x03, 0x12, 0x07, 0x0a, 0x03, 0x53, 0x43, 0x50, 0x10, 0x04, 0x42, 0x23, 0x5a, 0x21, + 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x63, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x67, 0x6e, 0x6f, 0x69, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, + 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/healthz/healthz.pb.go b/healthz/healthz.pb.go index 62342ecd..04bca8af 100644 --- a/healthz/healthz.pb.go +++ b/healthz/healthz.pb.go @@ -29,10 +29,10 @@ package healthz import ( - any "github.com/golang/protobuf/ptypes/any" types "github.com/openconfig/gnoi/types" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" + anypb "google.golang.org/protobuf/types/known/anypb" reflect "reflect" sync "sync" ) @@ -156,7 +156,7 @@ type ComponentStatus struct { // Opaque data for how the healthcheck is implemented. This can be any proto // defined by the vendor. This could be the equivalent to outputs like // "show tech" or core files or any other diagnostic data. - Healthz *any.Any `protobuf:"bytes,4,opt,name=healthz,proto3" json:"healthz,omitempty"` + Healthz *anypb.Any `protobuf:"bytes,4,opt,name=healthz,proto3" json:"healthz,omitempty"` } func (x *ComponentStatus) Reset() { @@ -212,7 +212,7 @@ func (x *ComponentStatus) GetStatus() Status { return Status_STATUS_UNSPECIFIED } -func (x *ComponentStatus) GetHealthz() *any.Any { +func (x *ComponentStatus) GetHealthz() *anypb.Any { if x != nil { return x.Healthz } @@ -333,7 +333,7 @@ var file_healthz_healthz_proto_goTypes = []interface{}{ (*ComponentStatus)(nil), // 2: gnoi.healthz.ComponentStatus (*GetResponse)(nil), // 3: gnoi.healthz.GetResponse (*types.Path)(nil), // 4: gnoi.types.Path - (*any.Any)(nil), // 5: google.protobuf.Any + (*anypb.Any)(nil), // 5: google.protobuf.Any } var file_healthz_healthz_proto_depIdxs = []int32{ 4, // 0: gnoi.healthz.GetRequest.path:type_name -> gnoi.types.Path diff --git a/system/system.proto b/system/system.proto index 71cef0f0..333cc3b8 100644 --- a/system/system.proto +++ b/system/system.proto @@ -36,8 +36,7 @@ option (types.gnoi_version) = "1.0.0"; service System { // Ping executes the ping command on the target and streams back // the results. Some targets may not stream any results until all - // results are in. If a packet count is not explicitly provided, - // 5 is used. + // results are in. rpc Ping(PingRequest) returns (stream PingResponse) {} // Traceroute executes the traceroute command on the target and streams back diff --git a/system/system_grpc.pb.go b/system/system_grpc.pb.go index 28b76f29..3180404b 100644 --- a/system/system_grpc.pb.go +++ b/system/system_grpc.pb.go @@ -20,8 +20,7 @@ const _ = grpc.SupportPackageIsVersion7 type SystemClient interface { // Ping executes the ping command on the target and streams back // the results. Some targets may not stream any results until all - // results are in. If a packet count is not explicitly provided, - // 5 is used. + // results are in. Ping(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (System_PingClient, error) // Traceroute executes the traceroute command on the target and streams back // the results. Some targets may not stream any results until all @@ -228,8 +227,7 @@ func (c *systemClient) KillProcess(ctx context.Context, in *KillProcessRequest, type SystemServer interface { // Ping executes the ping command on the target and streams back // the results. Some targets may not stream any results until all - // results are in. If a packet count is not explicitly provided, - // 5 is used. + // results are in. Ping(*PingRequest, System_PingServer) error // Traceroute executes the traceroute command on the target and streams back // the results. Some targets may not stream any results until all diff --git a/types/types.pb.go b/types/types.pb.go index 3a66cecb..58ec8358 100644 --- a/types/types.pb.go +++ b/types/types.pb.go @@ -23,9 +23,9 @@ package types import ( - descriptor "github.com/golang/protobuf/protoc-gen-go/descriptor" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" + descriptorpb "google.golang.org/protobuf/types/descriptorpb" reflect "reflect" sync "sync" ) @@ -404,7 +404,7 @@ func (*Credentials_Hashed) isCredentials_Password() {} var file_types_types_proto_extTypes = []protoimpl.ExtensionInfo{ { - ExtendedType: (*descriptor.FileOptions)(nil), + ExtendedType: (*descriptorpb.FileOptions)(nil), ExtensionType: (*string)(nil), Field: 1002, Name: "gnoi.types.gnoi_version", @@ -413,7 +413,7 @@ var file_types_types_proto_extTypes = []protoimpl.ExtensionInfo{ }, } -// Extension fields to descriptor.FileOptions. +// Extension fields to descriptorpb.FileOptions. var ( // The gNOI service semantic version. // @@ -487,14 +487,14 @@ func file_types_types_proto_rawDescGZIP() []byte { var file_types_types_proto_enumTypes = make([]protoimpl.EnumInfo, 2) var file_types_types_proto_msgTypes = make([]protoimpl.MessageInfo, 5) var file_types_types_proto_goTypes = []interface{}{ - (L3Protocol)(0), // 0: gnoi.types.L3Protocol - (HashType_HashMethod)(0), // 1: gnoi.types.HashType.HashMethod - (*HashType)(nil), // 2: gnoi.types.HashType - (*Path)(nil), // 3: gnoi.types.Path - (*PathElem)(nil), // 4: gnoi.types.PathElem - (*Credentials)(nil), // 5: gnoi.types.Credentials - nil, // 6: gnoi.types.PathElem.KeyEntry - (*descriptor.FileOptions)(nil), // 7: google.protobuf.FileOptions + (L3Protocol)(0), // 0: gnoi.types.L3Protocol + (HashType_HashMethod)(0), // 1: gnoi.types.HashType.HashMethod + (*HashType)(nil), // 2: gnoi.types.HashType + (*Path)(nil), // 3: gnoi.types.Path + (*PathElem)(nil), // 4: gnoi.types.PathElem + (*Credentials)(nil), // 5: gnoi.types.Credentials + nil, // 6: gnoi.types.PathElem.KeyEntry + (*descriptorpb.FileOptions)(nil), // 7: google.protobuf.FileOptions } var file_types_types_proto_depIdxs = []int32{ 1, // 0: gnoi.types.HashType.method:type_name -> gnoi.types.HashType.HashMethod From 6446a51c208198bf2ff09d92d7a868a48d88eead Mon Sep 17 00:00:00 2001 From: marcushines <80116818+marcushines@users.noreply.github.com> Date: Mon, 31 Jan 2022 09:55:40 -0800 Subject: [PATCH 115/238] update gnoi deps to fix build (#62) --- gnoi_deps.bzl | 34 ++++++++++++++++++++-------------- 1 file changed, 20 insertions(+), 14 deletions(-) diff --git a/gnoi_deps.bzl b/gnoi_deps.bzl index 6d9f224b..64f6417d 100644 --- a/gnoi_deps.bzl +++ b/gnoi_deps.bzl @@ -18,35 +18,41 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") def gnoi_deps(): """Declare the third-party dependencies necessary to build gnoi""" - if not native.existing_rule("com_github_grpc_grpc"): http_archive( name = "com_github_grpc_grpc", - url = "https://github.com/grpc/grpc/archive/refs/tags/v1.37.1.tar.gz", - strip_prefix = "grpc-1.37.1", - sha256 = "acf247ec3a52edaee5dee28644a4e485c5e5badf46bdb24a80ca1d76cb8f1174", + url = "https://github.com/grpc/grpc/archive/refs/tags/v1.43.2.tar.gz", + strip_prefix = "grpc-1.43.2", + sha256 = "b74ce7d26fe187970d1d8e2c06a5d3391122f7bc1fdce569aff5e435fb8fe780", + ) + if not native.existing_rule("rules_proto_grpc"): + http_archive( + name = "rules_proto_grpc", + sha256 = "507e38c8d95c7efa4f3b1c0595a8e8f139c885cb41a76cab7e20e4e67ae87731", + strip_prefix = "rules_proto_grpc-4.1.1", + urls = ["https://github.com/rules-proto-grpc/rules_proto_grpc/archive/4.1.1.tar.gz"], ) if not native.existing_rule("com_google_protobuf"): http_archive( name = "com_google_protobuf", - url = "https://github.com/protocolbuffers/protobuf/releases/download/v3.16.0/protobuf-all-3.16.0.tar.gz", - strip_prefix = "protobuf-3.16.0", - sha256 = "d7371dc2d46fddac1af8cb27c0394554b068768fc79ecaf5be1a1863e8ff3392", + url = "https://github.com/protocolbuffers/protobuf/releases/download/v3.19.4/protobuf-all-3.19.4.tar.gz", + strip_prefix = "protobuf-3.19.4", + sha256 = "ba0650be1b169d24908eeddbe6107f011d8df0da5b1a5a4449a913b10e578faf", ) if not native.existing_rule("com_google_googleapis"): http_archive( name = "com_google_googleapis", - url = "https://github.com/googleapis/googleapis/archive/f405c718d60484124808adb7fb5963974d654bb4.zip", - strip_prefix = "googleapis-f405c718d60484124808adb7fb5963974d654bb4", - sha256 = "406b64643eede84ce3e0821a1d01f66eaf6254e79cb9c4f53be9054551935e79", + url = "https://github.com/googleapis/googleapis/archive/ccb9d245ddac58b8d4ad918e6a914e841a64cc28.zip", + strip_prefix = "googleapis-ccb9d245ddac58b8d4ad918e6a914e841a64cc28", + sha256 = "feca5804fa0af2bc48d041a8b6e0356fb9e4848b3dd6ee74ab847022e90c69ff", ) if not native.existing_rule("rules_proto"): http_archive( name = "rules_proto", - sha256 = "602e7161d9195e50246177e7c55b2f39950a9cf7366f74ed5f22fd45750cd208", - strip_prefix = "rules_proto-97d8af4dc474595af3900dd85cb3a29ad28cc313", + sha256 = "66bfdf8782796239d3875d37e7de19b1d94301e8972b3cbd2446b332429b4df1", + strip_prefix = "rules_proto-4.0.0", urls = [ - "https://mirror.bazel.build/github.com/bazelbuild/rules_proto/archive/97d8af4dc474595af3900dd85cb3a29ad28cc313.tar.gz", - "https://github.com/bazelbuild/rules_proto/archive/97d8af4dc474595af3900dd85cb3a29ad28cc313.tar.gz", + "https://mirror.bazel.build/github.com/bazelbuild/rules_proto/archive/refs/tags/4.0.0.tar.gz", + "https://github.com/bazelbuild/rules_proto/archive/refs/tags/4.0.0.tar.gz", ], ) From 71775fb3e86c0be0692947f86bd0d37c10283549 Mon Sep 17 00:00:00 2001 From: marcushines <80116818+marcushines@users.noreply.github.com> Date: Mon, 31 Jan 2022 11:24:35 -0800 Subject: [PATCH 116/238] Update workflow to use 1.17 (#63) --- .github/workflows/go.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index a08c2859..1d9cdb3a 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - go: ['1.12', '1.13', '1.14', '1.15'] + go: ["1.16","1.17"] steps: - name: Set up Go ${{ matrix.go }} @@ -42,7 +42,7 @@ jobs: - name: Install Go uses: actions/setup-go@v2 with: - go-version: '1.14' + go-version: '1.17' id: go - name: Install required static analysis tools From bb488e10d7e28be7e881464e07179de9507b6b4c Mon Sep 17 00:00:00 2001 From: Raj998 Date: Thu, 14 Apr 2022 10:29:04 +0530 Subject: [PATCH 117/238] Create packet_capture.proto --- packet_capture/packet_capture.proto | 115 ++++++++++++++++++++++++++++ 1 file changed, 115 insertions(+) create mode 100644 packet_capture/packet_capture.proto diff --git a/packet_capture/packet_capture.proto b/packet_capture/packet_capture.proto new file mode 100644 index 00000000..97a73ab7 --- /dev/null +++ b/packet_capture/packet_capture.proto @@ -0,0 +1,115 @@ +syntax = "proto3"; + +package gnoi.pcap; + +option go_package = "github.com/openconfig/gnoi/pcap"; + +service PacketCapture { + rpc Pcap(PcapRequest) returns (stream PcapResponse) {} +} + +enum OperatingBand { + BAND_2G = 0; + BAND_5G = 1; + BAND_6G = 2; + BAND_ALL = 3; +} + +enum Protocol { + TCP = 0; + UDP = 1; +} + +enum Direction { + // When applied to an interface, the Direction of packets to capture, receive + // transmit, or both. + RX = 0; + TX = 1; + BOTH = 2; +} + +message AccessCaptureType { + // Operating band: 2.4G, 5G, 6G + repeated OperatingBand operating_band = 1; + oneof filter_type { + // Optional, SSID of a VAP + string ssid = 2; + // Optional, MAC addresss matching a BSSID or a client MAC + string mac = 3; + } + // Capture packets in promiscuous mode + bool promiscuous_mode = 4; +} + +message ScanCaptureType { + repeated BandChannelCombo combo = 1; +} + +message BandChannelCombo { + // Operating band: 2.4G, 5G, 6G + OperatingBand operating_band = 1; + // Channels + repeated string channel = 2; +} + +message Filter { + // Different types of filtering options. + + // filter_name can be a reference to a filter already configured on the device + // such as an ACL/class-map or other platform-specific abstraction that + // may allow for the configuration of other filtering not otherwise available. + string filter_name = 1; + // Source/destination net may be used to match traffic and should be specified + // using CIDR notation. eg. 1.1.1.1/32 + string src_net = 2; + string dest_net = 3; + repeated Protocol protocol = 4; + repeated uint32 port = 5; + repeated uint32 vlan = 6; +} + +message WiredRequest { + // Interface name + string ifname = 1; + // The Direction to capture from, if not specified defaults to BOTH. + Direction direction = 2; + // Filtering based on protocols. + oneof filter_type { + string tcpdump_expression = 3; + Filter filter = 4; + } +} + +message WirelessRequest { + oneof capture_type { + // Access radio + AccessCaptureType access_type = 1; + // Scan radio + ScanCaptureType scan_type = 2; + } +} + +message PcapRequest { + oneof request_type { + // Wired capture request + WiredRequest wired_request = 1; + // Wireless capture request + WirelessRequest wireless_request = 2; + } + // To trim the data during packet capture: 0 for entire packet + uint32 trim_payload = 3; + // The number of pakets to capture, after which the capture will end; 0 for + // for unlimited. + uint32 packet_count = 4; + // Capture duration in nanosec; 0 for indefinite + uint64 duration = 5; +} + +message Packet { + // Packets + bytes data = 1; +} + +message PcapResponse { + repeated Packet packets = 1; +} From 9be5abd245f800caeb4d0a5aa4deb12c89299687 Mon Sep 17 00:00:00 2001 From: Raj998 Date: Thu, 14 Apr 2022 11:52:41 +0530 Subject: [PATCH 118/238] Update packet_capture.proto --- packet_capture/packet_capture.proto | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packet_capture/packet_capture.proto b/packet_capture/packet_capture.proto index 97a73ab7..e1abace2 100644 --- a/packet_capture/packet_capture.proto +++ b/packet_capture/packet_capture.proto @@ -4,7 +4,10 @@ package gnoi.pcap; option go_package = "github.com/openconfig/gnoi/pcap"; +// The PacketCapture service exported by targets. service PacketCapture { + // Pcap starts packet capture on the target and streams back + // the results. rpc Pcap(PcapRequest) returns (stream PcapResponse) {} } From 36600d4b4a9cb0f54cb3a4ce95787fc80d278262 Mon Sep 17 00:00:00 2001 From: Raj998 Date: Thu, 14 Apr 2022 13:08:50 +0530 Subject: [PATCH 119/238] Add Protoc generated files --- packet_capture/packet_capture.pb.go | 1158 ++++++++++++++++++++++ packet_capture/packet_capture_grpc.pb.go | 136 +++ 2 files changed, 1294 insertions(+) create mode 100644 packet_capture/packet_capture.pb.go create mode 100644 packet_capture/packet_capture_grpc.pb.go diff --git a/packet_capture/packet_capture.pb.go b/packet_capture/packet_capture.pb.go new file mode 100644 index 00000000..a896dd98 --- /dev/null +++ b/packet_capture/packet_capture.pb.go @@ -0,0 +1,1158 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.1 +// protoc v3.12.3 +// source: packet_capture/packet_capture.proto + +package pcap + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type OperatingBand int32 + +const ( + OperatingBand_BAND_2G OperatingBand = 0 + OperatingBand_BAND_5G OperatingBand = 1 + OperatingBand_BAND_6G OperatingBand = 2 + OperatingBand_BAND_ALL OperatingBand = 3 +) + +// Enum value maps for OperatingBand. +var ( + OperatingBand_name = map[int32]string{ + 0: "BAND_2G", + 1: "BAND_5G", + 2: "BAND_6G", + 3: "BAND_ALL", + } + OperatingBand_value = map[string]int32{ + "BAND_2G": 0, + "BAND_5G": 1, + "BAND_6G": 2, + "BAND_ALL": 3, + } +) + +func (x OperatingBand) Enum() *OperatingBand { + p := new(OperatingBand) + *p = x + return p +} + +func (x OperatingBand) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (OperatingBand) Descriptor() protoreflect.EnumDescriptor { + return file_packet_capture_packet_capture_proto_enumTypes[0].Descriptor() +} + +func (OperatingBand) Type() protoreflect.EnumType { + return &file_packet_capture_packet_capture_proto_enumTypes[0] +} + +func (x OperatingBand) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use OperatingBand.Descriptor instead. +func (OperatingBand) EnumDescriptor() ([]byte, []int) { + return file_packet_capture_packet_capture_proto_rawDescGZIP(), []int{0} +} + +type Protocol int32 + +const ( + Protocol_TCP Protocol = 0 + Protocol_UDP Protocol = 1 +) + +// Enum value maps for Protocol. +var ( + Protocol_name = map[int32]string{ + 0: "TCP", + 1: "UDP", + } + Protocol_value = map[string]int32{ + "TCP": 0, + "UDP": 1, + } +) + +func (x Protocol) Enum() *Protocol { + p := new(Protocol) + *p = x + return p +} + +func (x Protocol) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (Protocol) Descriptor() protoreflect.EnumDescriptor { + return file_packet_capture_packet_capture_proto_enumTypes[1].Descriptor() +} + +func (Protocol) Type() protoreflect.EnumType { + return &file_packet_capture_packet_capture_proto_enumTypes[1] +} + +func (x Protocol) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use Protocol.Descriptor instead. +func (Protocol) EnumDescriptor() ([]byte, []int) { + return file_packet_capture_packet_capture_proto_rawDescGZIP(), []int{1} +} + +type Direction int32 + +const ( + // When applied to an interface, the Direction of packets to capture, receive + // transmit, or both. + Direction_RX Direction = 0 + Direction_TX Direction = 1 + Direction_BOTH Direction = 2 +) + +// Enum value maps for Direction. +var ( + Direction_name = map[int32]string{ + 0: "RX", + 1: "TX", + 2: "BOTH", + } + Direction_value = map[string]int32{ + "RX": 0, + "TX": 1, + "BOTH": 2, + } +) + +func (x Direction) Enum() *Direction { + p := new(Direction) + *p = x + return p +} + +func (x Direction) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (Direction) Descriptor() protoreflect.EnumDescriptor { + return file_packet_capture_packet_capture_proto_enumTypes[2].Descriptor() +} + +func (Direction) Type() protoreflect.EnumType { + return &file_packet_capture_packet_capture_proto_enumTypes[2] +} + +func (x Direction) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use Direction.Descriptor instead. +func (Direction) EnumDescriptor() ([]byte, []int) { + return file_packet_capture_packet_capture_proto_rawDescGZIP(), []int{2} +} + +type AccessCaptureType struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Operating band: 2.4G, 5G, 6G + OperatingBand []OperatingBand `protobuf:"varint,1,rep,packed,name=operating_band,json=operatingBand,proto3,enum=gnoi.pcap.OperatingBand" json:"operating_band,omitempty"` + // Types that are assignable to FilterType: + // *AccessCaptureType_Ssid + // *AccessCaptureType_Mac + FilterType isAccessCaptureType_FilterType `protobuf_oneof:"filter_type"` + // Capture packets in promiscuous mode + PromiscuousMode bool `protobuf:"varint,4,opt,name=promiscuous_mode,json=promiscuousMode,proto3" json:"promiscuous_mode,omitempty"` +} + +func (x *AccessCaptureType) Reset() { + *x = AccessCaptureType{} + if protoimpl.UnsafeEnabled { + mi := &file_packet_capture_packet_capture_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AccessCaptureType) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AccessCaptureType) ProtoMessage() {} + +func (x *AccessCaptureType) ProtoReflect() protoreflect.Message { + mi := &file_packet_capture_packet_capture_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use AccessCaptureType.ProtoReflect.Descriptor instead. +func (*AccessCaptureType) Descriptor() ([]byte, []int) { + return file_packet_capture_packet_capture_proto_rawDescGZIP(), []int{0} +} + +func (x *AccessCaptureType) GetOperatingBand() []OperatingBand { + if x != nil { + return x.OperatingBand + } + return nil +} + +func (m *AccessCaptureType) GetFilterType() isAccessCaptureType_FilterType { + if m != nil { + return m.FilterType + } + return nil +} + +func (x *AccessCaptureType) GetSsid() string { + if x, ok := x.GetFilterType().(*AccessCaptureType_Ssid); ok { + return x.Ssid + } + return "" +} + +func (x *AccessCaptureType) GetMac() string { + if x, ok := x.GetFilterType().(*AccessCaptureType_Mac); ok { + return x.Mac + } + return "" +} + +func (x *AccessCaptureType) GetPromiscuousMode() bool { + if x != nil { + return x.PromiscuousMode + } + return false +} + +type isAccessCaptureType_FilterType interface { + isAccessCaptureType_FilterType() +} + +type AccessCaptureType_Ssid struct { + // Optional, SSID of a VAP + Ssid string `protobuf:"bytes,2,opt,name=ssid,proto3,oneof"` +} + +type AccessCaptureType_Mac struct { + // Optional, MAC addresss matching a BSSID or a client MAC + Mac string `protobuf:"bytes,3,opt,name=mac,proto3,oneof"` +} + +func (*AccessCaptureType_Ssid) isAccessCaptureType_FilterType() {} + +func (*AccessCaptureType_Mac) isAccessCaptureType_FilterType() {} + +type ScanCaptureType struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Combo []*BandChannelCombo `protobuf:"bytes,1,rep,name=combo,proto3" json:"combo,omitempty"` +} + +func (x *ScanCaptureType) Reset() { + *x = ScanCaptureType{} + if protoimpl.UnsafeEnabled { + mi := &file_packet_capture_packet_capture_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ScanCaptureType) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ScanCaptureType) ProtoMessage() {} + +func (x *ScanCaptureType) ProtoReflect() protoreflect.Message { + mi := &file_packet_capture_packet_capture_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ScanCaptureType.ProtoReflect.Descriptor instead. +func (*ScanCaptureType) Descriptor() ([]byte, []int) { + return file_packet_capture_packet_capture_proto_rawDescGZIP(), []int{1} +} + +func (x *ScanCaptureType) GetCombo() []*BandChannelCombo { + if x != nil { + return x.Combo + } + return nil +} + +type BandChannelCombo struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Operating band: 2.4G, 5G, 6G + OperatingBand OperatingBand `protobuf:"varint,1,opt,name=operating_band,json=operatingBand,proto3,enum=gnoi.pcap.OperatingBand" json:"operating_band,omitempty"` + // Channels + Channel []string `protobuf:"bytes,2,rep,name=channel,proto3" json:"channel,omitempty"` +} + +func (x *BandChannelCombo) Reset() { + *x = BandChannelCombo{} + if protoimpl.UnsafeEnabled { + mi := &file_packet_capture_packet_capture_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BandChannelCombo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BandChannelCombo) ProtoMessage() {} + +func (x *BandChannelCombo) ProtoReflect() protoreflect.Message { + mi := &file_packet_capture_packet_capture_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use BandChannelCombo.ProtoReflect.Descriptor instead. +func (*BandChannelCombo) Descriptor() ([]byte, []int) { + return file_packet_capture_packet_capture_proto_rawDescGZIP(), []int{2} +} + +func (x *BandChannelCombo) GetOperatingBand() OperatingBand { + if x != nil { + return x.OperatingBand + } + return OperatingBand_BAND_2G +} + +func (x *BandChannelCombo) GetChannel() []string { + if x != nil { + return x.Channel + } + return nil +} + +type Filter struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // filter_name can be a reference to a filter already configured on the device + // such as an ACL/class-map or other platform-specific abstraction that + // may allow for the configuration of other filtering not otherwise available. + FilterName string `protobuf:"bytes,1,opt,name=filter_name,json=filterName,proto3" json:"filter_name,omitempty"` + // Source/destination net may be used to match traffic and should be specified + // using CIDR notation. eg. 1.1.1.1/32 + SrcNet string `protobuf:"bytes,2,opt,name=src_net,json=srcNet,proto3" json:"src_net,omitempty"` + DestNet string `protobuf:"bytes,3,opt,name=dest_net,json=destNet,proto3" json:"dest_net,omitempty"` + Protocol []Protocol `protobuf:"varint,4,rep,packed,name=protocol,proto3,enum=gnoi.pcap.Protocol" json:"protocol,omitempty"` + Port []uint32 `protobuf:"varint,5,rep,packed,name=port,proto3" json:"port,omitempty"` + Vlan []uint32 `protobuf:"varint,6,rep,packed,name=vlan,proto3" json:"vlan,omitempty"` +} + +func (x *Filter) Reset() { + *x = Filter{} + if protoimpl.UnsafeEnabled { + mi := &file_packet_capture_packet_capture_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Filter) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Filter) ProtoMessage() {} + +func (x *Filter) ProtoReflect() protoreflect.Message { + mi := &file_packet_capture_packet_capture_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Filter.ProtoReflect.Descriptor instead. +func (*Filter) Descriptor() ([]byte, []int) { + return file_packet_capture_packet_capture_proto_rawDescGZIP(), []int{3} +} + +func (x *Filter) GetFilterName() string { + if x != nil { + return x.FilterName + } + return "" +} + +func (x *Filter) GetSrcNet() string { + if x != nil { + return x.SrcNet + } + return "" +} + +func (x *Filter) GetDestNet() string { + if x != nil { + return x.DestNet + } + return "" +} + +func (x *Filter) GetProtocol() []Protocol { + if x != nil { + return x.Protocol + } + return nil +} + +func (x *Filter) GetPort() []uint32 { + if x != nil { + return x.Port + } + return nil +} + +func (x *Filter) GetVlan() []uint32 { + if x != nil { + return x.Vlan + } + return nil +} + +type WiredRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Interface name + Ifname string `protobuf:"bytes,1,opt,name=ifname,proto3" json:"ifname,omitempty"` + // The Direction to capture from, if not specified defaults to BOTH. + Direction Direction `protobuf:"varint,2,opt,name=direction,proto3,enum=gnoi.pcap.Direction" json:"direction,omitempty"` + // Filtering based on protocols. + // + // Types that are assignable to FilterType: + // *WiredRequest_TcpdumpExpression + // *WiredRequest_Filter + FilterType isWiredRequest_FilterType `protobuf_oneof:"filter_type"` +} + +func (x *WiredRequest) Reset() { + *x = WiredRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_packet_capture_packet_capture_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *WiredRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WiredRequest) ProtoMessage() {} + +func (x *WiredRequest) ProtoReflect() protoreflect.Message { + mi := &file_packet_capture_packet_capture_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use WiredRequest.ProtoReflect.Descriptor instead. +func (*WiredRequest) Descriptor() ([]byte, []int) { + return file_packet_capture_packet_capture_proto_rawDescGZIP(), []int{4} +} + +func (x *WiredRequest) GetIfname() string { + if x != nil { + return x.Ifname + } + return "" +} + +func (x *WiredRequest) GetDirection() Direction { + if x != nil { + return x.Direction + } + return Direction_RX +} + +func (m *WiredRequest) GetFilterType() isWiredRequest_FilterType { + if m != nil { + return m.FilterType + } + return nil +} + +func (x *WiredRequest) GetTcpdumpExpression() string { + if x, ok := x.GetFilterType().(*WiredRequest_TcpdumpExpression); ok { + return x.TcpdumpExpression + } + return "" +} + +func (x *WiredRequest) GetFilter() *Filter { + if x, ok := x.GetFilterType().(*WiredRequest_Filter); ok { + return x.Filter + } + return nil +} + +type isWiredRequest_FilterType interface { + isWiredRequest_FilterType() +} + +type WiredRequest_TcpdumpExpression struct { + TcpdumpExpression string `protobuf:"bytes,3,opt,name=tcpdump_expression,json=tcpdumpExpression,proto3,oneof"` +} + +type WiredRequest_Filter struct { + Filter *Filter `protobuf:"bytes,4,opt,name=filter,proto3,oneof"` +} + +func (*WiredRequest_TcpdumpExpression) isWiredRequest_FilterType() {} + +func (*WiredRequest_Filter) isWiredRequest_FilterType() {} + +type WirelessRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Types that are assignable to CaptureType: + // *WirelessRequest_AccessType + // *WirelessRequest_ScanType + CaptureType isWirelessRequest_CaptureType `protobuf_oneof:"capture_type"` +} + +func (x *WirelessRequest) Reset() { + *x = WirelessRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_packet_capture_packet_capture_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *WirelessRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WirelessRequest) ProtoMessage() {} + +func (x *WirelessRequest) ProtoReflect() protoreflect.Message { + mi := &file_packet_capture_packet_capture_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use WirelessRequest.ProtoReflect.Descriptor instead. +func (*WirelessRequest) Descriptor() ([]byte, []int) { + return file_packet_capture_packet_capture_proto_rawDescGZIP(), []int{5} +} + +func (m *WirelessRequest) GetCaptureType() isWirelessRequest_CaptureType { + if m != nil { + return m.CaptureType + } + return nil +} + +func (x *WirelessRequest) GetAccessType() *AccessCaptureType { + if x, ok := x.GetCaptureType().(*WirelessRequest_AccessType); ok { + return x.AccessType + } + return nil +} + +func (x *WirelessRequest) GetScanType() *ScanCaptureType { + if x, ok := x.GetCaptureType().(*WirelessRequest_ScanType); ok { + return x.ScanType + } + return nil +} + +type isWirelessRequest_CaptureType interface { + isWirelessRequest_CaptureType() +} + +type WirelessRequest_AccessType struct { + // Access radio + AccessType *AccessCaptureType `protobuf:"bytes,1,opt,name=access_type,json=accessType,proto3,oneof"` +} + +type WirelessRequest_ScanType struct { + // Scan radio + ScanType *ScanCaptureType `protobuf:"bytes,2,opt,name=scan_type,json=scanType,proto3,oneof"` +} + +func (*WirelessRequest_AccessType) isWirelessRequest_CaptureType() {} + +func (*WirelessRequest_ScanType) isWirelessRequest_CaptureType() {} + +type PcapRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Types that are assignable to RequestType: + // *PcapRequest_WiredRequest + // *PcapRequest_WirelessRequest + RequestType isPcapRequest_RequestType `protobuf_oneof:"request_type"` + // To trim the data during packet capture: 0 for entire packet + TrimPayload uint32 `protobuf:"varint,3,opt,name=trim_payload,json=trimPayload,proto3" json:"trim_payload,omitempty"` + // The number of pakets to capture, after which the capture will end; 0 for + // for unlimited. + PacketCount uint32 `protobuf:"varint,4,opt,name=packet_count,json=packetCount,proto3" json:"packet_count,omitempty"` + // Capture duration in nanosec; 0 for indefinite + Duration uint64 `protobuf:"varint,5,opt,name=duration,proto3" json:"duration,omitempty"` +} + +func (x *PcapRequest) Reset() { + *x = PcapRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_packet_capture_packet_capture_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PcapRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PcapRequest) ProtoMessage() {} + +func (x *PcapRequest) ProtoReflect() protoreflect.Message { + mi := &file_packet_capture_packet_capture_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use PcapRequest.ProtoReflect.Descriptor instead. +func (*PcapRequest) Descriptor() ([]byte, []int) { + return file_packet_capture_packet_capture_proto_rawDescGZIP(), []int{6} +} + +func (m *PcapRequest) GetRequestType() isPcapRequest_RequestType { + if m != nil { + return m.RequestType + } + return nil +} + +func (x *PcapRequest) GetWiredRequest() *WiredRequest { + if x, ok := x.GetRequestType().(*PcapRequest_WiredRequest); ok { + return x.WiredRequest + } + return nil +} + +func (x *PcapRequest) GetWirelessRequest() *WirelessRequest { + if x, ok := x.GetRequestType().(*PcapRequest_WirelessRequest); ok { + return x.WirelessRequest + } + return nil +} + +func (x *PcapRequest) GetTrimPayload() uint32 { + if x != nil { + return x.TrimPayload + } + return 0 +} + +func (x *PcapRequest) GetPacketCount() uint32 { + if x != nil { + return x.PacketCount + } + return 0 +} + +func (x *PcapRequest) GetDuration() uint64 { + if x != nil { + return x.Duration + } + return 0 +} + +type isPcapRequest_RequestType interface { + isPcapRequest_RequestType() +} + +type PcapRequest_WiredRequest struct { + // Wired capture request + WiredRequest *WiredRequest `protobuf:"bytes,1,opt,name=wired_request,json=wiredRequest,proto3,oneof"` +} + +type PcapRequest_WirelessRequest struct { + // Wireless capture request + WirelessRequest *WirelessRequest `protobuf:"bytes,2,opt,name=wireless_request,json=wirelessRequest,proto3,oneof"` +} + +func (*PcapRequest_WiredRequest) isPcapRequest_RequestType() {} + +func (*PcapRequest_WirelessRequest) isPcapRequest_RequestType() {} + +type Packet struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Packets + Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` +} + +func (x *Packet) Reset() { + *x = Packet{} + if protoimpl.UnsafeEnabled { + mi := &file_packet_capture_packet_capture_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Packet) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Packet) ProtoMessage() {} + +func (x *Packet) ProtoReflect() protoreflect.Message { + mi := &file_packet_capture_packet_capture_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Packet.ProtoReflect.Descriptor instead. +func (*Packet) Descriptor() ([]byte, []int) { + return file_packet_capture_packet_capture_proto_rawDescGZIP(), []int{7} +} + +func (x *Packet) GetData() []byte { + if x != nil { + return x.Data + } + return nil +} + +type PcapResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Packets []*Packet `protobuf:"bytes,1,rep,name=packets,proto3" json:"packets,omitempty"` +} + +func (x *PcapResponse) Reset() { + *x = PcapResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_packet_capture_packet_capture_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PcapResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PcapResponse) ProtoMessage() {} + +func (x *PcapResponse) ProtoReflect() protoreflect.Message { + mi := &file_packet_capture_packet_capture_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use PcapResponse.ProtoReflect.Descriptor instead. +func (*PcapResponse) Descriptor() ([]byte, []int) { + return file_packet_capture_packet_capture_proto_rawDescGZIP(), []int{8} +} + +func (x *PcapResponse) GetPackets() []*Packet { + if x != nil { + return x.Packets + } + return nil +} + +var File_packet_capture_packet_capture_proto protoreflect.FileDescriptor + +var file_packet_capture_packet_capture_proto_rawDesc = []byte{ + 0x0a, 0x23, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x63, 0x61, 0x70, 0x74, 0x75, 0x72, 0x65, + 0x2f, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x63, 0x61, 0x70, 0x74, 0x75, 0x72, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x09, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x70, 0x63, 0x61, 0x70, + 0x22, 0xb8, 0x01, 0x0a, 0x11, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x43, 0x61, 0x70, 0x74, 0x75, + 0x72, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x3f, 0x0a, 0x0e, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, + 0x69, 0x6e, 0x67, 0x5f, 0x62, 0x61, 0x6e, 0x64, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x18, + 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x70, 0x63, 0x61, 0x70, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, + 0x74, 0x69, 0x6e, 0x67, 0x42, 0x61, 0x6e, 0x64, 0x52, 0x0d, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, + 0x69, 0x6e, 0x67, 0x42, 0x61, 0x6e, 0x64, 0x12, 0x14, 0x0a, 0x04, 0x73, 0x73, 0x69, 0x64, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x04, 0x73, 0x73, 0x69, 0x64, 0x12, 0x12, 0x0a, + 0x03, 0x6d, 0x61, 0x63, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x03, 0x6d, 0x61, + 0x63, 0x12, 0x29, 0x0a, 0x10, 0x70, 0x72, 0x6f, 0x6d, 0x69, 0x73, 0x63, 0x75, 0x6f, 0x75, 0x73, + 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0f, 0x70, 0x72, 0x6f, + 0x6d, 0x69, 0x73, 0x63, 0x75, 0x6f, 0x75, 0x73, 0x4d, 0x6f, 0x64, 0x65, 0x42, 0x0d, 0x0a, 0x0b, + 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x22, 0x44, 0x0a, 0x0f, 0x53, + 0x63, 0x61, 0x6e, 0x43, 0x61, 0x70, 0x74, 0x75, 0x72, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x31, + 0x0a, 0x05, 0x63, 0x6f, 0x6d, 0x62, 0x6f, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, + 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x70, 0x63, 0x61, 0x70, 0x2e, 0x42, 0x61, 0x6e, 0x64, 0x43, 0x68, + 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x43, 0x6f, 0x6d, 0x62, 0x6f, 0x52, 0x05, 0x63, 0x6f, 0x6d, 0x62, + 0x6f, 0x22, 0x6d, 0x0a, 0x10, 0x42, 0x61, 0x6e, 0x64, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, + 0x43, 0x6f, 0x6d, 0x62, 0x6f, 0x12, 0x3f, 0x0a, 0x0e, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, + 0x6e, 0x67, 0x5f, 0x62, 0x61, 0x6e, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x18, 0x2e, + 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x70, 0x63, 0x61, 0x70, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, + 0x69, 0x6e, 0x67, 0x42, 0x61, 0x6e, 0x64, 0x52, 0x0d, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, + 0x6e, 0x67, 0x42, 0x61, 0x6e, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, + 0x6c, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, + 0x22, 0xb6, 0x01, 0x0a, 0x06, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x1f, 0x0a, 0x0b, 0x66, + 0x69, 0x6c, 0x74, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0a, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x17, 0x0a, 0x07, + 0x73, 0x72, 0x63, 0x5f, 0x6e, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, + 0x72, 0x63, 0x4e, 0x65, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x64, 0x65, 0x73, 0x74, 0x5f, 0x6e, 0x65, + 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x64, 0x65, 0x73, 0x74, 0x4e, 0x65, 0x74, + 0x12, 0x2f, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x04, 0x20, 0x03, + 0x28, 0x0e, 0x32, 0x13, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x70, 0x63, 0x61, 0x70, 0x2e, 0x50, + 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, + 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0d, 0x52, + 0x04, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x76, 0x6c, 0x61, 0x6e, 0x18, 0x06, 0x20, + 0x03, 0x28, 0x0d, 0x52, 0x04, 0x76, 0x6c, 0x61, 0x6e, 0x22, 0xc7, 0x01, 0x0a, 0x0c, 0x57, 0x69, + 0x72, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x69, 0x66, + 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x69, 0x66, 0x6e, 0x61, + 0x6d, 0x65, 0x12, 0x32, 0x0a, 0x09, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x14, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x70, 0x63, 0x61, + 0x70, 0x2e, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x09, 0x64, 0x69, 0x72, + 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2f, 0x0a, 0x12, 0x74, 0x63, 0x70, 0x64, 0x75, 0x6d, + 0x70, 0x5f, 0x65, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x09, 0x48, 0x00, 0x52, 0x11, 0x74, 0x63, 0x70, 0x64, 0x75, 0x6d, 0x70, 0x45, 0x78, 0x70, + 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x2b, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, + 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x70, + 0x63, 0x61, 0x70, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x48, 0x00, 0x52, 0x06, 0x66, 0x69, + 0x6c, 0x74, 0x65, 0x72, 0x42, 0x0d, 0x0a, 0x0b, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x5f, 0x74, + 0x79, 0x70, 0x65, 0x22, 0x9d, 0x01, 0x0a, 0x0f, 0x57, 0x69, 0x72, 0x65, 0x6c, 0x65, 0x73, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3f, 0x0a, 0x0b, 0x61, 0x63, 0x63, 0x65, 0x73, + 0x73, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, + 0x6e, 0x6f, 0x69, 0x2e, 0x70, 0x63, 0x61, 0x70, 0x2e, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x43, + 0x61, 0x70, 0x74, 0x75, 0x72, 0x65, 0x54, 0x79, 0x70, 0x65, 0x48, 0x00, 0x52, 0x0a, 0x61, 0x63, + 0x63, 0x65, 0x73, 0x73, 0x54, 0x79, 0x70, 0x65, 0x12, 0x39, 0x0a, 0x09, 0x73, 0x63, 0x61, 0x6e, + 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6e, + 0x6f, 0x69, 0x2e, 0x70, 0x63, 0x61, 0x70, 0x2e, 0x53, 0x63, 0x61, 0x6e, 0x43, 0x61, 0x70, 0x74, + 0x75, 0x72, 0x65, 0x54, 0x79, 0x70, 0x65, 0x48, 0x00, 0x52, 0x08, 0x73, 0x63, 0x61, 0x6e, 0x54, + 0x79, 0x70, 0x65, 0x42, 0x0e, 0x0a, 0x0c, 0x63, 0x61, 0x70, 0x74, 0x75, 0x72, 0x65, 0x5f, 0x74, + 0x79, 0x70, 0x65, 0x22, 0x88, 0x02, 0x0a, 0x0b, 0x50, 0x63, 0x61, 0x70, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x3e, 0x0a, 0x0d, 0x77, 0x69, 0x72, 0x65, 0x64, 0x5f, 0x72, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6e, 0x6f, + 0x69, 0x2e, 0x70, 0x63, 0x61, 0x70, 0x2e, 0x57, 0x69, 0x72, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x0c, 0x77, 0x69, 0x72, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x47, 0x0a, 0x10, 0x77, 0x69, 0x72, 0x65, 0x6c, 0x65, 0x73, 0x73, 0x5f, + 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, + 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x70, 0x63, 0x61, 0x70, 0x2e, 0x57, 0x69, 0x72, 0x65, 0x6c, 0x65, + 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x0f, 0x77, 0x69, 0x72, + 0x65, 0x6c, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x21, 0x0a, 0x0c, + 0x74, 0x72, 0x69, 0x6d, 0x5f, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x0d, 0x52, 0x0b, 0x74, 0x72, 0x69, 0x6d, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, + 0x21, 0x0a, 0x0c, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0b, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x6f, 0x75, + 0x6e, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x0e, + 0x0a, 0x0c, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x22, 0x1c, + 0x0a, 0x06, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x3b, 0x0a, 0x0c, + 0x50, 0x63, 0x61, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2b, 0x0a, 0x07, + 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, + 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x70, 0x63, 0x61, 0x70, 0x2e, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, + 0x52, 0x07, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x2a, 0x44, 0x0a, 0x0d, 0x4f, 0x70, 0x65, + 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x42, 0x61, 0x6e, 0x64, 0x12, 0x0b, 0x0a, 0x07, 0x42, 0x41, + 0x4e, 0x44, 0x5f, 0x32, 0x47, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x42, 0x41, 0x4e, 0x44, 0x5f, + 0x35, 0x47, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x42, 0x41, 0x4e, 0x44, 0x5f, 0x36, 0x47, 0x10, + 0x02, 0x12, 0x0c, 0x0a, 0x08, 0x42, 0x41, 0x4e, 0x44, 0x5f, 0x41, 0x4c, 0x4c, 0x10, 0x03, 0x2a, + 0x1c, 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x07, 0x0a, 0x03, 0x54, + 0x43, 0x50, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x55, 0x44, 0x50, 0x10, 0x01, 0x2a, 0x25, 0x0a, + 0x09, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x06, 0x0a, 0x02, 0x52, 0x58, + 0x10, 0x00, 0x12, 0x06, 0x0a, 0x02, 0x54, 0x58, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x42, 0x4f, + 0x54, 0x48, 0x10, 0x02, 0x32, 0x4c, 0x0a, 0x0d, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x61, + 0x70, 0x74, 0x75, 0x72, 0x65, 0x12, 0x3b, 0x0a, 0x04, 0x50, 0x63, 0x61, 0x70, 0x12, 0x16, 0x2e, + 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x70, 0x63, 0x61, 0x70, 0x2e, 0x50, 0x63, 0x61, 0x70, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x70, 0x63, 0x61, + 0x70, 0x2e, 0x50, 0x63, 0x61, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, + 0x30, 0x01, 0x42, 0x21, 0x5a, 0x1f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, + 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x67, 0x6e, 0x6f, 0x69, + 0x2f, 0x70, 0x63, 0x61, 0x70, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_packet_capture_packet_capture_proto_rawDescOnce sync.Once + file_packet_capture_packet_capture_proto_rawDescData = file_packet_capture_packet_capture_proto_rawDesc +) + +func file_packet_capture_packet_capture_proto_rawDescGZIP() []byte { + file_packet_capture_packet_capture_proto_rawDescOnce.Do(func() { + file_packet_capture_packet_capture_proto_rawDescData = protoimpl.X.CompressGZIP(file_packet_capture_packet_capture_proto_rawDescData) + }) + return file_packet_capture_packet_capture_proto_rawDescData +} + +var file_packet_capture_packet_capture_proto_enumTypes = make([]protoimpl.EnumInfo, 3) +var file_packet_capture_packet_capture_proto_msgTypes = make([]protoimpl.MessageInfo, 9) +var file_packet_capture_packet_capture_proto_goTypes = []interface{}{ + (OperatingBand)(0), // 0: gnoi.pcap.OperatingBand + (Protocol)(0), // 1: gnoi.pcap.Protocol + (Direction)(0), // 2: gnoi.pcap.Direction + (*AccessCaptureType)(nil), // 3: gnoi.pcap.AccessCaptureType + (*ScanCaptureType)(nil), // 4: gnoi.pcap.ScanCaptureType + (*BandChannelCombo)(nil), // 5: gnoi.pcap.BandChannelCombo + (*Filter)(nil), // 6: gnoi.pcap.Filter + (*WiredRequest)(nil), // 7: gnoi.pcap.WiredRequest + (*WirelessRequest)(nil), // 8: gnoi.pcap.WirelessRequest + (*PcapRequest)(nil), // 9: gnoi.pcap.PcapRequest + (*Packet)(nil), // 10: gnoi.pcap.Packet + (*PcapResponse)(nil), // 11: gnoi.pcap.PcapResponse +} +var file_packet_capture_packet_capture_proto_depIdxs = []int32{ + 0, // 0: gnoi.pcap.AccessCaptureType.operating_band:type_name -> gnoi.pcap.OperatingBand + 5, // 1: gnoi.pcap.ScanCaptureType.combo:type_name -> gnoi.pcap.BandChannelCombo + 0, // 2: gnoi.pcap.BandChannelCombo.operating_band:type_name -> gnoi.pcap.OperatingBand + 1, // 3: gnoi.pcap.Filter.protocol:type_name -> gnoi.pcap.Protocol + 2, // 4: gnoi.pcap.WiredRequest.direction:type_name -> gnoi.pcap.Direction + 6, // 5: gnoi.pcap.WiredRequest.filter:type_name -> gnoi.pcap.Filter + 3, // 6: gnoi.pcap.WirelessRequest.access_type:type_name -> gnoi.pcap.AccessCaptureType + 4, // 7: gnoi.pcap.WirelessRequest.scan_type:type_name -> gnoi.pcap.ScanCaptureType + 7, // 8: gnoi.pcap.PcapRequest.wired_request:type_name -> gnoi.pcap.WiredRequest + 8, // 9: gnoi.pcap.PcapRequest.wireless_request:type_name -> gnoi.pcap.WirelessRequest + 10, // 10: gnoi.pcap.PcapResponse.packets:type_name -> gnoi.pcap.Packet + 9, // 11: gnoi.pcap.PacketCapture.Pcap:input_type -> gnoi.pcap.PcapRequest + 11, // 12: gnoi.pcap.PacketCapture.Pcap:output_type -> gnoi.pcap.PcapResponse + 12, // [12:13] is the sub-list for method output_type + 11, // [11:12] is the sub-list for method input_type + 11, // [11:11] is the sub-list for extension type_name + 11, // [11:11] is the sub-list for extension extendee + 0, // [0:11] is the sub-list for field type_name +} + +func init() { file_packet_capture_packet_capture_proto_init() } +func file_packet_capture_packet_capture_proto_init() { + if File_packet_capture_packet_capture_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_packet_capture_packet_capture_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AccessCaptureType); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_packet_capture_packet_capture_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ScanCaptureType); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_packet_capture_packet_capture_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BandChannelCombo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_packet_capture_packet_capture_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Filter); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_packet_capture_packet_capture_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WiredRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_packet_capture_packet_capture_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WirelessRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_packet_capture_packet_capture_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PcapRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_packet_capture_packet_capture_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Packet); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_packet_capture_packet_capture_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PcapResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_packet_capture_packet_capture_proto_msgTypes[0].OneofWrappers = []interface{}{ + (*AccessCaptureType_Ssid)(nil), + (*AccessCaptureType_Mac)(nil), + } + file_packet_capture_packet_capture_proto_msgTypes[4].OneofWrappers = []interface{}{ + (*WiredRequest_TcpdumpExpression)(nil), + (*WiredRequest_Filter)(nil), + } + file_packet_capture_packet_capture_proto_msgTypes[5].OneofWrappers = []interface{}{ + (*WirelessRequest_AccessType)(nil), + (*WirelessRequest_ScanType)(nil), + } + file_packet_capture_packet_capture_proto_msgTypes[6].OneofWrappers = []interface{}{ + (*PcapRequest_WiredRequest)(nil), + (*PcapRequest_WirelessRequest)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_packet_capture_packet_capture_proto_rawDesc, + NumEnums: 3, + NumMessages: 9, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_packet_capture_packet_capture_proto_goTypes, + DependencyIndexes: file_packet_capture_packet_capture_proto_depIdxs, + EnumInfos: file_packet_capture_packet_capture_proto_enumTypes, + MessageInfos: file_packet_capture_packet_capture_proto_msgTypes, + }.Build() + File_packet_capture_packet_capture_proto = out.File + file_packet_capture_packet_capture_proto_rawDesc = nil + file_packet_capture_packet_capture_proto_goTypes = nil + file_packet_capture_packet_capture_proto_depIdxs = nil +} diff --git a/packet_capture/packet_capture_grpc.pb.go b/packet_capture/packet_capture_grpc.pb.go new file mode 100644 index 00000000..c2491228 --- /dev/null +++ b/packet_capture/packet_capture_grpc.pb.go @@ -0,0 +1,136 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.2.0 +// - protoc v3.12.3 +// source: packet_capture/packet_capture.proto + +package pcap + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.32.0 or later. +const _ = grpc.SupportPackageIsVersion7 + +// PacketCaptureClient is the client API for PacketCapture service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type PacketCaptureClient interface { + // Pcap starts packet capture on the target and streams back + // the results. + Pcap(ctx context.Context, in *PcapRequest, opts ...grpc.CallOption) (PacketCapture_PcapClient, error) +} + +type packetCaptureClient struct { + cc grpc.ClientConnInterface +} + +func NewPacketCaptureClient(cc grpc.ClientConnInterface) PacketCaptureClient { + return &packetCaptureClient{cc} +} + +func (c *packetCaptureClient) Pcap(ctx context.Context, in *PcapRequest, opts ...grpc.CallOption) (PacketCapture_PcapClient, error) { + stream, err := c.cc.NewStream(ctx, &PacketCapture_ServiceDesc.Streams[0], "/gnoi.pcap.PacketCapture/Pcap", opts...) + if err != nil { + return nil, err + } + x := &packetCapturePcapClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type PacketCapture_PcapClient interface { + Recv() (*PcapResponse, error) + grpc.ClientStream +} + +type packetCapturePcapClient struct { + grpc.ClientStream +} + +func (x *packetCapturePcapClient) Recv() (*PcapResponse, error) { + m := new(PcapResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +// PacketCaptureServer is the server API for PacketCapture service. +// All implementations must embed UnimplementedPacketCaptureServer +// for forward compatibility +type PacketCaptureServer interface { + // Pcap starts packet capture on the target and streams back + // the results. + Pcap(*PcapRequest, PacketCapture_PcapServer) error + mustEmbedUnimplementedPacketCaptureServer() +} + +// UnimplementedPacketCaptureServer must be embedded to have forward compatible implementations. +type UnimplementedPacketCaptureServer struct { +} + +func (UnimplementedPacketCaptureServer) Pcap(*PcapRequest, PacketCapture_PcapServer) error { + return status.Errorf(codes.Unimplemented, "method Pcap not implemented") +} +func (UnimplementedPacketCaptureServer) mustEmbedUnimplementedPacketCaptureServer() {} + +// UnsafePacketCaptureServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to PacketCaptureServer will +// result in compilation errors. +type UnsafePacketCaptureServer interface { + mustEmbedUnimplementedPacketCaptureServer() +} + +func RegisterPacketCaptureServer(s grpc.ServiceRegistrar, srv PacketCaptureServer) { + s.RegisterService(&PacketCapture_ServiceDesc, srv) +} + +func _PacketCapture_Pcap_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(PcapRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(PacketCaptureServer).Pcap(m, &packetCapturePcapServer{stream}) +} + +type PacketCapture_PcapServer interface { + Send(*PcapResponse) error + grpc.ServerStream +} + +type packetCapturePcapServer struct { + grpc.ServerStream +} + +func (x *packetCapturePcapServer) Send(m *PcapResponse) error { + return x.ServerStream.SendMsg(m) +} + +// PacketCapture_ServiceDesc is the grpc.ServiceDesc for PacketCapture service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var PacketCapture_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "gnoi.pcap.PacketCapture", + HandlerType: (*PacketCaptureServer)(nil), + Methods: []grpc.MethodDesc{}, + Streams: []grpc.StreamDesc{ + { + StreamName: "Pcap", + Handler: _PacketCapture_Pcap_Handler, + ServerStreams: true, + }, + }, + Metadata: "packet_capture/packet_capture.proto", +} From 05b9b1435d2d2891f8bc4dc1cd461ed408fdda54 Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 14:20:00 +0530 Subject: [PATCH 120/238] Add proto definiton and generated protoc files --- packet_capture/packet_capture.pb.go | 2 +- packet_capture/packet_capture.proto | 2 +- packet_capture/packet_capture_grpc.pb.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packet_capture/packet_capture.pb.go b/packet_capture/packet_capture.pb.go index a896dd98..9b428c43 100644 --- a/packet_capture/packet_capture.pb.go +++ b/packet_capture/packet_capture.pb.go @@ -1,4 +1,4 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. +// Code generated by protoc-gen-go. DO NOT EDIT // versions: // protoc-gen-go v1.27.1 // protoc v3.12.3 diff --git a/packet_capture/packet_capture.proto b/packet_capture/packet_capture.proto index e1abace2..786ef061 100644 --- a/packet_capture/packet_capture.proto +++ b/packet_capture/packet_capture.proto @@ -57,7 +57,7 @@ message BandChannelCombo { message Filter { // Different types of filtering options. - + // filter_name can be a reference to a filter already configured on the device // such as an ACL/class-map or other platform-specific abstraction that // may allow for the configuration of other filtering not otherwise available. diff --git a/packet_capture/packet_capture_grpc.pb.go b/packet_capture/packet_capture_grpc.pb.go index c2491228..2eb5dce8 100644 --- a/packet_capture/packet_capture_grpc.pb.go +++ b/packet_capture/packet_capture_grpc.pb.go @@ -1,4 +1,4 @@ -// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// Code generated by protoc-gen-go-grpc. DO NOT EDIT // versions: // - protoc-gen-go-grpc v1.2.0 // - protoc v3.12.3 From 3deaf398bcc72f4277b1b8d08bc5b2cc04a633ae Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 16:58:14 +0530 Subject: [PATCH 121/238] Revert "Update workflow to use 1.17 (#63)" This reverts commit 71775fb3e86c0be0692947f86bd0d37c10283549. --- .github/workflows/go.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 1d9cdb3a..a08c2859 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - go: ["1.16","1.17"] + go: ['1.12', '1.13', '1.14', '1.15'] steps: - name: Set up Go ${{ matrix.go }} @@ -42,7 +42,7 @@ jobs: - name: Install Go uses: actions/setup-go@v2 with: - go-version: '1.17' + go-version: '1.14' id: go - name: Install required static analysis tools From cce1ec0e8e46f1b43e3f8ac1b028116e6528a8f7 Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 16:58:28 +0530 Subject: [PATCH 122/238] Revert "update gnoi deps to fix build (#62)" This reverts commit 6446a51c208198bf2ff09d92d7a868a48d88eead. --- gnoi_deps.bzl | 34 ++++++++++++++-------------------- 1 file changed, 14 insertions(+), 20 deletions(-) diff --git a/gnoi_deps.bzl b/gnoi_deps.bzl index 64f6417d..6d9f224b 100644 --- a/gnoi_deps.bzl +++ b/gnoi_deps.bzl @@ -18,41 +18,35 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") def gnoi_deps(): """Declare the third-party dependencies necessary to build gnoi""" + if not native.existing_rule("com_github_grpc_grpc"): http_archive( name = "com_github_grpc_grpc", - url = "https://github.com/grpc/grpc/archive/refs/tags/v1.43.2.tar.gz", - strip_prefix = "grpc-1.43.2", - sha256 = "b74ce7d26fe187970d1d8e2c06a5d3391122f7bc1fdce569aff5e435fb8fe780", - ) - if not native.existing_rule("rules_proto_grpc"): - http_archive( - name = "rules_proto_grpc", - sha256 = "507e38c8d95c7efa4f3b1c0595a8e8f139c885cb41a76cab7e20e4e67ae87731", - strip_prefix = "rules_proto_grpc-4.1.1", - urls = ["https://github.com/rules-proto-grpc/rules_proto_grpc/archive/4.1.1.tar.gz"], + url = "https://github.com/grpc/grpc/archive/refs/tags/v1.37.1.tar.gz", + strip_prefix = "grpc-1.37.1", + sha256 = "acf247ec3a52edaee5dee28644a4e485c5e5badf46bdb24a80ca1d76cb8f1174", ) if not native.existing_rule("com_google_protobuf"): http_archive( name = "com_google_protobuf", - url = "https://github.com/protocolbuffers/protobuf/releases/download/v3.19.4/protobuf-all-3.19.4.tar.gz", - strip_prefix = "protobuf-3.19.4", - sha256 = "ba0650be1b169d24908eeddbe6107f011d8df0da5b1a5a4449a913b10e578faf", + url = "https://github.com/protocolbuffers/protobuf/releases/download/v3.16.0/protobuf-all-3.16.0.tar.gz", + strip_prefix = "protobuf-3.16.0", + sha256 = "d7371dc2d46fddac1af8cb27c0394554b068768fc79ecaf5be1a1863e8ff3392", ) if not native.existing_rule("com_google_googleapis"): http_archive( name = "com_google_googleapis", - url = "https://github.com/googleapis/googleapis/archive/ccb9d245ddac58b8d4ad918e6a914e841a64cc28.zip", - strip_prefix = "googleapis-ccb9d245ddac58b8d4ad918e6a914e841a64cc28", - sha256 = "feca5804fa0af2bc48d041a8b6e0356fb9e4848b3dd6ee74ab847022e90c69ff", + url = "https://github.com/googleapis/googleapis/archive/f405c718d60484124808adb7fb5963974d654bb4.zip", + strip_prefix = "googleapis-f405c718d60484124808adb7fb5963974d654bb4", + sha256 = "406b64643eede84ce3e0821a1d01f66eaf6254e79cb9c4f53be9054551935e79", ) if not native.existing_rule("rules_proto"): http_archive( name = "rules_proto", - sha256 = "66bfdf8782796239d3875d37e7de19b1d94301e8972b3cbd2446b332429b4df1", - strip_prefix = "rules_proto-4.0.0", + sha256 = "602e7161d9195e50246177e7c55b2f39950a9cf7366f74ed5f22fd45750cd208", + strip_prefix = "rules_proto-97d8af4dc474595af3900dd85cb3a29ad28cc313", urls = [ - "https://mirror.bazel.build/github.com/bazelbuild/rules_proto/archive/refs/tags/4.0.0.tar.gz", - "https://github.com/bazelbuild/rules_proto/archive/refs/tags/4.0.0.tar.gz", + "https://mirror.bazel.build/github.com/bazelbuild/rules_proto/archive/97d8af4dc474595af3900dd85cb3a29ad28cc313.tar.gz", + "https://github.com/bazelbuild/rules_proto/archive/97d8af4dc474595af3900dd85cb3a29ad28cc313.tar.gz", ], ) From 30878533ce35a8d88a66dd1d9d1e77e3788fa41b Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 16:58:33 +0530 Subject: [PATCH 123/238] Revert "Update system proto to address (#61)" This reverts commit 8d78ee3e658c1eca6d97848ce6947d87b4811314. --- common/common.pb.go | 31 +++++++++---------------------- healthz/healthz.pb.go | 8 ++++---- system/system.proto | 3 ++- system/system_grpc.pb.go | 6 ++++-- types/types.pb.go | 22 +++++++++++----------- 5 files changed, 30 insertions(+), 40 deletions(-) diff --git a/common/common.pb.go b/common/common.pb.go index bdd4ab09..06471e60 100644 --- a/common/common.pb.go +++ b/common/common.pb.go @@ -106,10 +106,6 @@ type RemoteDownload struct { Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` Protocol RemoteDownload_Protocol `protobuf:"varint,2,opt,name=protocol,proto3,enum=gnoi.common.RemoteDownload_Protocol" json:"protocol,omitempty"` Credentials *types.Credentials `protobuf:"bytes,3,opt,name=credentials,proto3" json:"credentials,omitempty"` - // Optional source address used to initiate connections from the device. - // It can be either an IPv4 address or an IPv6 address, depending on the - // connection's destination address. - SourceAddress string `protobuf:"bytes,4,opt,name=source_address,json=sourceAddress,proto3" json:"source_address,omitempty"` } func (x *RemoteDownload) Reset() { @@ -165,13 +161,6 @@ func (x *RemoteDownload) GetCredentials() *types.Credentials { return nil } -func (x *RemoteDownload) GetSourceAddress() string { - if x != nil { - return x.SourceAddress - } - return "" -} - var File_common_common_proto protoreflect.FileDescriptor var file_common_common_proto_rawDesc = []byte{ @@ -180,7 +169,7 @@ var file_common_common_proto_rawDesc = []byte{ 0x6f, 0x6e, 0x1a, 0x2c, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x67, 0x6e, 0x6f, 0x69, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x22, 0x89, 0x02, 0x0a, 0x0e, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x44, 0x6f, 0x77, 0x6e, 0x6c, + 0x22, 0xe2, 0x01, 0x0a, 0x0e, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x40, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x24, 0x2e, 0x67, 0x6e, 0x6f, 0x69, @@ -190,16 +179,14 @@ var file_common_common_proto_rawDesc = []byte{ 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x52, 0x0b, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, - 0x69, 0x61, 0x6c, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, - 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x73, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x3f, 0x0a, 0x08, 0x50, - 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, - 0x57, 0x4e, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x53, 0x46, 0x54, 0x50, 0x10, 0x01, 0x12, 0x08, - 0x0a, 0x04, 0x48, 0x54, 0x54, 0x50, 0x10, 0x02, 0x12, 0x09, 0x0a, 0x05, 0x48, 0x54, 0x54, 0x50, - 0x53, 0x10, 0x03, 0x12, 0x07, 0x0a, 0x03, 0x53, 0x43, 0x50, 0x10, 0x04, 0x42, 0x23, 0x5a, 0x21, - 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x63, - 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x67, 0x6e, 0x6f, 0x69, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, - 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x69, 0x61, 0x6c, 0x73, 0x22, 0x3f, 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, + 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x08, 0x0a, + 0x04, 0x53, 0x46, 0x54, 0x50, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x48, 0x54, 0x54, 0x50, 0x10, + 0x02, 0x12, 0x09, 0x0a, 0x05, 0x48, 0x54, 0x54, 0x50, 0x53, 0x10, 0x03, 0x12, 0x07, 0x0a, 0x03, + 0x53, 0x43, 0x50, 0x10, 0x04, 0x42, 0x23, 0x5a, 0x21, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, + 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x67, + 0x6e, 0x6f, 0x69, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x33, } var ( diff --git a/healthz/healthz.pb.go b/healthz/healthz.pb.go index 04bca8af..62342ecd 100644 --- a/healthz/healthz.pb.go +++ b/healthz/healthz.pb.go @@ -29,10 +29,10 @@ package healthz import ( + any "github.com/golang/protobuf/ptypes/any" types "github.com/openconfig/gnoi/types" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - anypb "google.golang.org/protobuf/types/known/anypb" reflect "reflect" sync "sync" ) @@ -156,7 +156,7 @@ type ComponentStatus struct { // Opaque data for how the healthcheck is implemented. This can be any proto // defined by the vendor. This could be the equivalent to outputs like // "show tech" or core files or any other diagnostic data. - Healthz *anypb.Any `protobuf:"bytes,4,opt,name=healthz,proto3" json:"healthz,omitempty"` + Healthz *any.Any `protobuf:"bytes,4,opt,name=healthz,proto3" json:"healthz,omitempty"` } func (x *ComponentStatus) Reset() { @@ -212,7 +212,7 @@ func (x *ComponentStatus) GetStatus() Status { return Status_STATUS_UNSPECIFIED } -func (x *ComponentStatus) GetHealthz() *anypb.Any { +func (x *ComponentStatus) GetHealthz() *any.Any { if x != nil { return x.Healthz } @@ -333,7 +333,7 @@ var file_healthz_healthz_proto_goTypes = []interface{}{ (*ComponentStatus)(nil), // 2: gnoi.healthz.ComponentStatus (*GetResponse)(nil), // 3: gnoi.healthz.GetResponse (*types.Path)(nil), // 4: gnoi.types.Path - (*anypb.Any)(nil), // 5: google.protobuf.Any + (*any.Any)(nil), // 5: google.protobuf.Any } var file_healthz_healthz_proto_depIdxs = []int32{ 4, // 0: gnoi.healthz.GetRequest.path:type_name -> gnoi.types.Path diff --git a/system/system.proto b/system/system.proto index 333cc3b8..71cef0f0 100644 --- a/system/system.proto +++ b/system/system.proto @@ -36,7 +36,8 @@ option (types.gnoi_version) = "1.0.0"; service System { // Ping executes the ping command on the target and streams back // the results. Some targets may not stream any results until all - // results are in. + // results are in. If a packet count is not explicitly provided, + // 5 is used. rpc Ping(PingRequest) returns (stream PingResponse) {} // Traceroute executes the traceroute command on the target and streams back diff --git a/system/system_grpc.pb.go b/system/system_grpc.pb.go index 3180404b..28b76f29 100644 --- a/system/system_grpc.pb.go +++ b/system/system_grpc.pb.go @@ -20,7 +20,8 @@ const _ = grpc.SupportPackageIsVersion7 type SystemClient interface { // Ping executes the ping command on the target and streams back // the results. Some targets may not stream any results until all - // results are in. + // results are in. If a packet count is not explicitly provided, + // 5 is used. Ping(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (System_PingClient, error) // Traceroute executes the traceroute command on the target and streams back // the results. Some targets may not stream any results until all @@ -227,7 +228,8 @@ func (c *systemClient) KillProcess(ctx context.Context, in *KillProcessRequest, type SystemServer interface { // Ping executes the ping command on the target and streams back // the results. Some targets may not stream any results until all - // results are in. + // results are in. If a packet count is not explicitly provided, + // 5 is used. Ping(*PingRequest, System_PingServer) error // Traceroute executes the traceroute command on the target and streams back // the results. Some targets may not stream any results until all diff --git a/types/types.pb.go b/types/types.pb.go index 58ec8358..3a66cecb 100644 --- a/types/types.pb.go +++ b/types/types.pb.go @@ -23,9 +23,9 @@ package types import ( + descriptor "github.com/golang/protobuf/protoc-gen-go/descriptor" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - descriptorpb "google.golang.org/protobuf/types/descriptorpb" reflect "reflect" sync "sync" ) @@ -404,7 +404,7 @@ func (*Credentials_Hashed) isCredentials_Password() {} var file_types_types_proto_extTypes = []protoimpl.ExtensionInfo{ { - ExtendedType: (*descriptorpb.FileOptions)(nil), + ExtendedType: (*descriptor.FileOptions)(nil), ExtensionType: (*string)(nil), Field: 1002, Name: "gnoi.types.gnoi_version", @@ -413,7 +413,7 @@ var file_types_types_proto_extTypes = []protoimpl.ExtensionInfo{ }, } -// Extension fields to descriptorpb.FileOptions. +// Extension fields to descriptor.FileOptions. var ( // The gNOI service semantic version. // @@ -487,14 +487,14 @@ func file_types_types_proto_rawDescGZIP() []byte { var file_types_types_proto_enumTypes = make([]protoimpl.EnumInfo, 2) var file_types_types_proto_msgTypes = make([]protoimpl.MessageInfo, 5) var file_types_types_proto_goTypes = []interface{}{ - (L3Protocol)(0), // 0: gnoi.types.L3Protocol - (HashType_HashMethod)(0), // 1: gnoi.types.HashType.HashMethod - (*HashType)(nil), // 2: gnoi.types.HashType - (*Path)(nil), // 3: gnoi.types.Path - (*PathElem)(nil), // 4: gnoi.types.PathElem - (*Credentials)(nil), // 5: gnoi.types.Credentials - nil, // 6: gnoi.types.PathElem.KeyEntry - (*descriptorpb.FileOptions)(nil), // 7: google.protobuf.FileOptions + (L3Protocol)(0), // 0: gnoi.types.L3Protocol + (HashType_HashMethod)(0), // 1: gnoi.types.HashType.HashMethod + (*HashType)(nil), // 2: gnoi.types.HashType + (*Path)(nil), // 3: gnoi.types.Path + (*PathElem)(nil), // 4: gnoi.types.PathElem + (*Credentials)(nil), // 5: gnoi.types.Credentials + nil, // 6: gnoi.types.PathElem.KeyEntry + (*descriptor.FileOptions)(nil), // 7: google.protobuf.FileOptions } var file_types_types_proto_depIdxs = []int32{ 1, // 0: gnoi.types.HashType.method:type_name -> gnoi.types.HashType.HashMethod From c635079b29ce6984cc2fb19c6aedb08f2a9cea9c Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 16:58:35 +0530 Subject: [PATCH 124/238] Revert "Clarify contract to require a termination signal must be specified." This reverts commit 67208c6eb4db6f605f5341d651992bbb41250512. --- system/system.pb.go | 4 ++-- system/system.proto | 6 +++--- system/system_grpc.pb.go | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/system/system.pb.go b/system/system.pb.go index 37fca6ce..005424bf 100644 --- a/system/system.pb.go +++ b/system/system.pb.go @@ -1572,8 +1572,8 @@ func (*SetPackageResponse) Descriptor() ([]byte, []int) { return file_system_system_proto_rawDescGZIP(), []int{16} } -// KillProcessRequest describes the process kill operation. Either a pid or -// process name must be specified, and a termination signal must be specified. +// KillProcessRequest describes the process kill operation. +// Either a pid or name of the procss must be specified. type KillProcessRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache diff --git a/system/system.proto b/system/system.proto index 71cef0f0..af2b4644 100644 --- a/system/system.proto +++ b/system/system.proto @@ -83,7 +83,7 @@ service System { // CancelReboot cancels any pending reboot request. rpc CancelReboot(CancelRebootRequest) returns (CancelRebootResponse) {} - // KillProcess kills an OS process and optionally restarts it. + // KillProcess kills an OS process, and optionally restarts it. rpc KillProcess(KillProcessRequest) returns (KillProcessResponse) {} // TODO(hines): Add RotateCertificate workflow @@ -315,8 +315,8 @@ message SetPackageRequest { message SetPackageResponse { } -// KillProcessRequest describes the process kill operation. Either a pid or -// process name must be specified, and a termination signal must be specified. +// KillProcessRequest describes the process kill operation. +// Either a pid or name of the procss must be specified. message KillProcessRequest { // Process ID of the process to be killed. uint32 pid = 1; diff --git a/system/system_grpc.pb.go b/system/system_grpc.pb.go index 28b76f29..cb15ae71 100644 --- a/system/system_grpc.pb.go +++ b/system/system_grpc.pb.go @@ -58,7 +58,7 @@ type SystemClient interface { RebootStatus(ctx context.Context, in *RebootStatusRequest, opts ...grpc.CallOption) (*RebootStatusResponse, error) // CancelReboot cancels any pending reboot request. CancelReboot(ctx context.Context, in *CancelRebootRequest, opts ...grpc.CallOption) (*CancelRebootResponse, error) - // KillProcess kills an OS process and optionally restarts it. + // KillProcess kills an OS process, and optionally restarts it. KillProcess(ctx context.Context, in *KillProcessRequest, opts ...grpc.CallOption) (*KillProcessResponse, error) } @@ -266,7 +266,7 @@ type SystemServer interface { RebootStatus(context.Context, *RebootStatusRequest) (*RebootStatusResponse, error) // CancelReboot cancels any pending reboot request. CancelReboot(context.Context, *CancelRebootRequest) (*CancelRebootResponse, error) - // KillProcess kills an OS process and optionally restarts it. + // KillProcess kills an OS process, and optionally restarts it. KillProcess(context.Context, *KillProcessRequest) (*KillProcessResponse, error) mustEmbedUnimplementedSystemServer() } From e1999c8e7d79b562711d1fb76502e47ce41c04f1 Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 16:58:36 +0530 Subject: [PATCH 125/238] Revert "Generalized to a KillProcess operation, with an optional restart." This reverts commit 79cbfdda40269bf3243f3b0390529313417657f0. --- system/system.pb.go | 434 ++++++++++----------------------------- system/system.proto | 35 ++-- system/system_grpc.pb.go | 38 ---- 3 files changed, 121 insertions(+), 386 deletions(-) diff --git a/system/system.pb.go b/system/system.pb.go index 005424bf..6408c7fe 100644 --- a/system/system.pb.go +++ b/system/system.pb.go @@ -236,59 +236,6 @@ func (TracerouteResponse_State) EnumDescriptor() ([]byte, []int) { return file_system_system_proto_rawDescGZIP(), []int{13, 0} } -// Termination signal sent to the process. -type KillProcessRequest_Signal int32 - -const ( - KillProcessRequest_SIGNAL_UNSPECIFIED KillProcessRequest_Signal = 0 // Invalid default. - KillProcessRequest_SIGNAL_TERM KillProcessRequest_Signal = 1 // Terminate the process gracefully. - KillProcessRequest_SIGNAL_KILL KillProcessRequest_Signal = 2 // Terminate the process immediately. - KillProcessRequest_SIGNAL_HUP KillProcessRequest_Signal = 3 // Reload the process configuration. -) - -// Enum value maps for KillProcessRequest_Signal. -var ( - KillProcessRequest_Signal_name = map[int32]string{ - 0: "SIGNAL_UNSPECIFIED", - 1: "SIGNAL_TERM", - 2: "SIGNAL_KILL", - 3: "SIGNAL_HUP", - } - KillProcessRequest_Signal_value = map[string]int32{ - "SIGNAL_UNSPECIFIED": 0, - "SIGNAL_TERM": 1, - "SIGNAL_KILL": 2, - "SIGNAL_HUP": 3, - } -) - -func (x KillProcessRequest_Signal) Enum() *KillProcessRequest_Signal { - p := new(KillProcessRequest_Signal) - *p = x - return p -} - -func (x KillProcessRequest_Signal) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (KillProcessRequest_Signal) Descriptor() protoreflect.EnumDescriptor { - return file_system_system_proto_enumTypes[3].Descriptor() -} - -func (KillProcessRequest_Signal) Type() protoreflect.EnumType { - return &file_system_system_proto_enumTypes[3] -} - -func (x KillProcessRequest_Signal) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use KillProcessRequest_Signal.Descriptor instead. -func (KillProcessRequest_Signal) EnumDescriptor() ([]byte, []int) { - return file_system_system_proto_rawDescGZIP(), []int{17, 0} -} - type SwitchControlProcessorRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1572,122 +1519,6 @@ func (*SetPackageResponse) Descriptor() ([]byte, []int) { return file_system_system_proto_rawDescGZIP(), []int{16} } -// KillProcessRequest describes the process kill operation. -// Either a pid or name of the procss must be specified. -type KillProcessRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Process ID of the process to be killed. - Pid uint32 `protobuf:"varint,1,opt,name=pid,proto3" json:"pid,omitempty"` - // Name of the process to be killed. - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Signal KillProcessRequest_Signal `protobuf:"varint,3,opt,name=signal,proto3,enum=gnoi.system.KillProcessRequest_Signal" json:"signal,omitempty"` - // Whether the process should be restarted after termination. - // This value is ignored when the termination signal is SIGHUP. - Restart bool `protobuf:"varint,4,opt,name=restart,proto3" json:"restart,omitempty"` -} - -func (x *KillProcessRequest) Reset() { - *x = KillProcessRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_system_system_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *KillProcessRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*KillProcessRequest) ProtoMessage() {} - -func (x *KillProcessRequest) ProtoReflect() protoreflect.Message { - mi := &file_system_system_proto_msgTypes[17] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use KillProcessRequest.ProtoReflect.Descriptor instead. -func (*KillProcessRequest) Descriptor() ([]byte, []int) { - return file_system_system_proto_rawDescGZIP(), []int{17} -} - -func (x *KillProcessRequest) GetPid() uint32 { - if x != nil { - return x.Pid - } - return 0 -} - -func (x *KillProcessRequest) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *KillProcessRequest) GetSignal() KillProcessRequest_Signal { - if x != nil { - return x.Signal - } - return KillProcessRequest_SIGNAL_UNSPECIFIED -} - -func (x *KillProcessRequest) GetRestart() bool { - if x != nil { - return x.Restart - } - return false -} - -// KillProcessResponse describes the result of the process kill operation. -type KillProcessResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *KillProcessResponse) Reset() { - *x = KillProcessResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_system_system_proto_msgTypes[18] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *KillProcessResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*KillProcessResponse) ProtoMessage() {} - -func (x *KillProcessResponse) ProtoReflect() protoreflect.Message { - mi := &file_system_system_proto_msgTypes[18] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use KillProcessResponse.ProtoReflect.Descriptor instead. -func (*KillProcessResponse) Descriptor() ([]byte, []int) { - return file_system_system_proto_rawDescGZIP(), []int{18} -} - var File_system_system_proto protoreflect.FileDescriptor var file_system_system_proto_rawDesc = []byte{ @@ -1881,79 +1712,58 @@ var file_system_system_proto_rawDesc = []byte{ 0x2e, 0x48, 0x61, 0x73, 0x68, 0x54, 0x79, 0x70, 0x65, 0x48, 0x00, 0x52, 0x04, 0x68, 0x61, 0x73, 0x68, 0x42, 0x09, 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x14, 0x0a, 0x12, 0x53, 0x65, 0x74, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0xe8, 0x01, 0x0a, 0x12, 0x4b, 0x69, 0x6c, 0x6c, 0x50, 0x72, 0x6f, 0x63, 0x65, - 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x70, 0x69, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x03, 0x70, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, - 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, - 0x3e, 0x0a, 0x06, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, - 0x26, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x4b, 0x69, - 0x6c, 0x6c, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x52, 0x06, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x12, - 0x18, 0x0a, 0x07, 0x72, 0x65, 0x73, 0x74, 0x61, 0x72, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, - 0x52, 0x07, 0x72, 0x65, 0x73, 0x74, 0x61, 0x72, 0x74, 0x22, 0x52, 0x0a, 0x06, 0x53, 0x69, 0x67, - 0x6e, 0x61, 0x6c, 0x12, 0x16, 0x0a, 0x12, 0x53, 0x49, 0x47, 0x4e, 0x41, 0x4c, 0x5f, 0x55, 0x4e, - 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0f, 0x0a, 0x0b, 0x53, - 0x49, 0x47, 0x4e, 0x41, 0x4c, 0x5f, 0x54, 0x45, 0x52, 0x4d, 0x10, 0x01, 0x12, 0x0f, 0x0a, 0x0b, - 0x53, 0x49, 0x47, 0x4e, 0x41, 0x4c, 0x5f, 0x4b, 0x49, 0x4c, 0x4c, 0x10, 0x02, 0x12, 0x0e, 0x0a, - 0x0a, 0x53, 0x49, 0x47, 0x4e, 0x41, 0x4c, 0x5f, 0x48, 0x55, 0x50, 0x10, 0x03, 0x22, 0x15, 0x0a, - 0x13, 0x4b, 0x69, 0x6c, 0x6c, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x2a, 0x64, 0x0a, 0x0c, 0x52, 0x65, 0x62, 0x6f, 0x6f, 0x74, 0x4d, 0x65, - 0x74, 0x68, 0x6f, 0x64, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, - 0x00, 0x12, 0x08, 0x0a, 0x04, 0x43, 0x4f, 0x4c, 0x44, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x50, - 0x4f, 0x57, 0x45, 0x52, 0x44, 0x4f, 0x57, 0x4e, 0x10, 0x02, 0x12, 0x08, 0x0a, 0x04, 0x48, 0x41, - 0x4c, 0x54, 0x10, 0x03, 0x12, 0x08, 0x0a, 0x04, 0x57, 0x41, 0x52, 0x4d, 0x10, 0x04, 0x12, 0x07, - 0x0a, 0x03, 0x4e, 0x53, 0x46, 0x10, 0x05, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x4f, 0x57, 0x45, 0x52, - 0x55, 0x50, 0x10, 0x07, 0x22, 0x04, 0x08, 0x06, 0x10, 0x06, 0x32, 0xea, 0x05, 0x0a, 0x06, 0x53, - 0x79, 0x73, 0x74, 0x65, 0x6d, 0x12, 0x3f, 0x0a, 0x04, 0x50, 0x69, 0x6e, 0x67, 0x12, 0x18, 0x2e, - 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x50, 0x69, 0x6e, 0x67, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, - 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x50, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x00, 0x30, 0x01, 0x12, 0x51, 0x0a, 0x0a, 0x54, 0x72, 0x61, 0x63, 0x65, 0x72, - 0x6f, 0x75, 0x74, 0x65, 0x12, 0x1e, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, 0x73, 0x74, - 0x65, 0x6d, 0x2e, 0x54, 0x72, 0x61, 0x63, 0x65, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x65, 0x71, + 0x73, 0x65, 0x2a, 0x64, 0x0a, 0x0c, 0x52, 0x65, 0x62, 0x6f, 0x6f, 0x74, 0x4d, 0x65, 0x74, 0x68, + 0x6f, 0x64, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, + 0x08, 0x0a, 0x04, 0x43, 0x4f, 0x4c, 0x44, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x50, 0x4f, 0x57, + 0x45, 0x52, 0x44, 0x4f, 0x57, 0x4e, 0x10, 0x02, 0x12, 0x08, 0x0a, 0x04, 0x48, 0x41, 0x4c, 0x54, + 0x10, 0x03, 0x12, 0x08, 0x0a, 0x04, 0x57, 0x41, 0x52, 0x4d, 0x10, 0x04, 0x12, 0x07, 0x0a, 0x03, + 0x4e, 0x53, 0x46, 0x10, 0x05, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x4f, 0x57, 0x45, 0x52, 0x55, 0x50, + 0x10, 0x07, 0x22, 0x04, 0x08, 0x06, 0x10, 0x06, 0x32, 0x96, 0x05, 0x0a, 0x06, 0x53, 0x79, 0x73, + 0x74, 0x65, 0x6d, 0x12, 0x3f, 0x0a, 0x04, 0x50, 0x69, 0x6e, 0x67, 0x12, 0x18, 0x2e, 0x67, 0x6e, + 0x6f, 0x69, 0x2e, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x50, 0x69, 0x6e, 0x67, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, 0x73, + 0x74, 0x65, 0x6d, 0x2e, 0x50, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x00, 0x30, 0x01, 0x12, 0x51, 0x0a, 0x0a, 0x54, 0x72, 0x61, 0x63, 0x65, 0x72, 0x6f, 0x75, + 0x74, 0x65, 0x12, 0x1e, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, + 0x2e, 0x54, 0x72, 0x61, 0x63, 0x65, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, + 0x2e, 0x54, 0x72, 0x61, 0x63, 0x65, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x00, 0x30, 0x01, 0x12, 0x3d, 0x0a, 0x04, 0x54, 0x69, 0x6d, 0x65, 0x12, + 0x18, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x54, 0x69, + 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x67, 0x6e, 0x6f, 0x69, + 0x2e, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x51, 0x0a, 0x0a, 0x53, 0x65, 0x74, 0x50, 0x61, 0x63, + 0x6b, 0x61, 0x67, 0x65, 0x12, 0x1e, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, 0x73, 0x74, + 0x65, 0x6d, 0x2e, 0x53, 0x65, 0x74, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, 0x73, 0x74, - 0x65, 0x6d, 0x2e, 0x54, 0x72, 0x61, 0x63, 0x65, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x30, 0x01, 0x12, 0x3d, 0x0a, 0x04, 0x54, 0x69, 0x6d, - 0x65, 0x12, 0x18, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, - 0x54, 0x69, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x67, 0x6e, - 0x6f, 0x69, 0x2e, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x51, 0x0a, 0x0a, 0x53, 0x65, 0x74, 0x50, - 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x12, 0x1e, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, - 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x53, 0x65, 0x74, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, - 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x53, 0x65, 0x74, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x28, 0x01, 0x12, 0x73, 0x0a, 0x16, 0x53, - 0x77, 0x69, 0x74, 0x63, 0x68, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x50, 0x72, 0x6f, 0x63, - 0x65, 0x73, 0x73, 0x6f, 0x72, 0x12, 0x2a, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, 0x73, - 0x74, 0x65, 0x6d, 0x2e, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, - 0x6c, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x2b, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, - 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x50, 0x72, 0x6f, - 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, - 0x12, 0x43, 0x0a, 0x06, 0x52, 0x65, 0x62, 0x6f, 0x6f, 0x74, 0x12, 0x1a, 0x2e, 0x67, 0x6e, 0x6f, - 0x69, 0x2e, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x52, 0x65, 0x62, 0x6f, 0x6f, 0x74, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, - 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x52, 0x65, 0x62, 0x6f, 0x6f, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x55, 0x0a, 0x0c, 0x52, 0x65, 0x62, 0x6f, 0x6f, 0x74, 0x53, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x20, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, 0x73, + 0x65, 0x6d, 0x2e, 0x53, 0x65, 0x74, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x28, 0x01, 0x12, 0x73, 0x0a, 0x16, 0x53, 0x77, 0x69, + 0x74, 0x63, 0x68, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, + 0x73, 0x6f, 0x72, 0x12, 0x2a, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, 0x73, 0x74, 0x65, + 0x6d, 0x2e, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x50, + 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x2b, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x53, 0x77, + 0x69, 0x74, 0x63, 0x68, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x50, 0x72, 0x6f, 0x63, 0x65, + 0x73, 0x73, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x43, + 0x0a, 0x06, 0x52, 0x65, 0x62, 0x6f, 0x6f, 0x74, 0x12, 0x1a, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, + 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x52, 0x65, 0x62, 0x6f, 0x6f, 0x74, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, 0x73, 0x74, + 0x65, 0x6d, 0x2e, 0x52, 0x65, 0x62, 0x6f, 0x6f, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x00, 0x12, 0x55, 0x0a, 0x0c, 0x52, 0x65, 0x62, 0x6f, 0x6f, 0x74, 0x53, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x12, 0x20, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, 0x73, 0x74, 0x65, + 0x6d, 0x2e, 0x52, 0x65, 0x62, 0x6f, 0x6f, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x52, 0x65, 0x62, 0x6f, 0x6f, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, - 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x52, 0x65, 0x62, 0x6f, 0x6f, 0x74, 0x53, 0x74, 0x61, 0x74, - 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x55, 0x0a, 0x0c, - 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x52, 0x65, 0x62, 0x6f, 0x6f, 0x74, 0x12, 0x20, 0x2e, 0x67, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x55, 0x0a, 0x0c, 0x43, 0x61, + 0x6e, 0x63, 0x65, 0x6c, 0x52, 0x65, 0x62, 0x6f, 0x6f, 0x74, 0x12, 0x20, 0x2e, 0x67, 0x6e, 0x6f, + 0x69, 0x2e, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x52, + 0x65, 0x62, 0x6f, 0x6f, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x43, 0x61, 0x6e, 0x63, 0x65, - 0x6c, 0x52, 0x65, 0x62, 0x6f, 0x6f, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, - 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x43, 0x61, 0x6e, - 0x63, 0x65, 0x6c, 0x52, 0x65, 0x62, 0x6f, 0x6f, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x00, 0x12, 0x52, 0x0a, 0x0b, 0x4b, 0x69, 0x6c, 0x6c, 0x50, 0x72, 0x6f, 0x63, 0x65, - 0x73, 0x73, 0x12, 0x1f, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, - 0x2e, 0x4b, 0x69, 0x6c, 0x6c, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, 0x73, 0x74, 0x65, - 0x6d, 0x2e, 0x4b, 0x69, 0x6c, 0x6c, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x2b, 0x5a, 0x21, 0x67, 0x69, 0x74, 0x68, 0x75, - 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, - 0x2f, 0x67, 0x6e, 0x6f, 0x69, 0x2f, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0xd2, 0x3e, 0x05, 0x31, - 0x2e, 0x30, 0x2e, 0x30, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x6c, 0x52, 0x65, 0x62, 0x6f, 0x6f, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x00, 0x42, 0x2b, 0x5a, 0x21, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, + 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x67, 0x6e, 0x6f, 0x69, 0x2f, + 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0xd2, 0x3e, 0x05, 0x31, 0x2e, 0x30, 0x2e, 0x30, 0x62, 0x06, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -1968,77 +1778,71 @@ func file_system_system_proto_rawDescGZIP() []byte { return file_system_system_proto_rawDescData } -var file_system_system_proto_enumTypes = make([]protoimpl.EnumInfo, 4) -var file_system_system_proto_msgTypes = make([]protoimpl.MessageInfo, 20) +var file_system_system_proto_enumTypes = make([]protoimpl.EnumInfo, 3) +var file_system_system_proto_msgTypes = make([]protoimpl.MessageInfo, 18) var file_system_system_proto_goTypes = []interface{}{ (RebootMethod)(0), // 0: gnoi.system.RebootMethod (TracerouteRequest_L4Protocol)(0), // 1: gnoi.system.TracerouteRequest.L4Protocol (TracerouteResponse_State)(0), // 2: gnoi.system.TracerouteResponse.State - (KillProcessRequest_Signal)(0), // 3: gnoi.system.KillProcessRequest.Signal - (*SwitchControlProcessorRequest)(nil), // 4: gnoi.system.SwitchControlProcessorRequest - (*SwitchControlProcessorResponse)(nil), // 5: gnoi.system.SwitchControlProcessorResponse - (*RebootRequest)(nil), // 6: gnoi.system.RebootRequest - (*RebootResponse)(nil), // 7: gnoi.system.RebootResponse - (*CancelRebootRequest)(nil), // 8: gnoi.system.CancelRebootRequest - (*CancelRebootResponse)(nil), // 9: gnoi.system.CancelRebootResponse - (*RebootStatusRequest)(nil), // 10: gnoi.system.RebootStatusRequest - (*RebootStatusResponse)(nil), // 11: gnoi.system.RebootStatusResponse - (*TimeRequest)(nil), // 12: gnoi.system.TimeRequest - (*TimeResponse)(nil), // 13: gnoi.system.TimeResponse - (*PingRequest)(nil), // 14: gnoi.system.PingRequest - (*PingResponse)(nil), // 15: gnoi.system.PingResponse - (*TracerouteRequest)(nil), // 16: gnoi.system.TracerouteRequest - (*TracerouteResponse)(nil), // 17: gnoi.system.TracerouteResponse - (*Package)(nil), // 18: gnoi.system.Package - (*SetPackageRequest)(nil), // 19: gnoi.system.SetPackageRequest - (*SetPackageResponse)(nil), // 20: gnoi.system.SetPackageResponse - (*KillProcessRequest)(nil), // 21: gnoi.system.KillProcessRequest - (*KillProcessResponse)(nil), // 22: gnoi.system.KillProcessResponse - nil, // 23: gnoi.system.TracerouteResponse.MplsEntry - (*types.Path)(nil), // 24: gnoi.types.Path - (types.L3Protocol)(0), // 25: gnoi.types.L3Protocol - (*common.RemoteDownload)(nil), // 26: gnoi.common.RemoteDownload - (*types.HashType)(nil), // 27: gnoi.types.HashType + (*SwitchControlProcessorRequest)(nil), // 3: gnoi.system.SwitchControlProcessorRequest + (*SwitchControlProcessorResponse)(nil), // 4: gnoi.system.SwitchControlProcessorResponse + (*RebootRequest)(nil), // 5: gnoi.system.RebootRequest + (*RebootResponse)(nil), // 6: gnoi.system.RebootResponse + (*CancelRebootRequest)(nil), // 7: gnoi.system.CancelRebootRequest + (*CancelRebootResponse)(nil), // 8: gnoi.system.CancelRebootResponse + (*RebootStatusRequest)(nil), // 9: gnoi.system.RebootStatusRequest + (*RebootStatusResponse)(nil), // 10: gnoi.system.RebootStatusResponse + (*TimeRequest)(nil), // 11: gnoi.system.TimeRequest + (*TimeResponse)(nil), // 12: gnoi.system.TimeResponse + (*PingRequest)(nil), // 13: gnoi.system.PingRequest + (*PingResponse)(nil), // 14: gnoi.system.PingResponse + (*TracerouteRequest)(nil), // 15: gnoi.system.TracerouteRequest + (*TracerouteResponse)(nil), // 16: gnoi.system.TracerouteResponse + (*Package)(nil), // 17: gnoi.system.Package + (*SetPackageRequest)(nil), // 18: gnoi.system.SetPackageRequest + (*SetPackageResponse)(nil), // 19: gnoi.system.SetPackageResponse + nil, // 20: gnoi.system.TracerouteResponse.MplsEntry + (*types.Path)(nil), // 21: gnoi.types.Path + (types.L3Protocol)(0), // 22: gnoi.types.L3Protocol + (*common.RemoteDownload)(nil), // 23: gnoi.common.RemoteDownload + (*types.HashType)(nil), // 24: gnoi.types.HashType } var file_system_system_proto_depIdxs = []int32{ - 24, // 0: gnoi.system.SwitchControlProcessorRequest.control_processor:type_name -> gnoi.types.Path - 24, // 1: gnoi.system.SwitchControlProcessorResponse.control_processor:type_name -> gnoi.types.Path + 21, // 0: gnoi.system.SwitchControlProcessorRequest.control_processor:type_name -> gnoi.types.Path + 21, // 1: gnoi.system.SwitchControlProcessorResponse.control_processor:type_name -> gnoi.types.Path 0, // 2: gnoi.system.RebootRequest.method:type_name -> gnoi.system.RebootMethod - 24, // 3: gnoi.system.RebootRequest.subcomponents:type_name -> gnoi.types.Path - 24, // 4: gnoi.system.CancelRebootRequest.subcomponents:type_name -> gnoi.types.Path - 24, // 5: gnoi.system.RebootStatusRequest.subcomponents:type_name -> gnoi.types.Path - 25, // 6: gnoi.system.PingRequest.l3protocol:type_name -> gnoi.types.L3Protocol - 25, // 7: gnoi.system.TracerouteRequest.l3protocol:type_name -> gnoi.types.L3Protocol + 21, // 3: gnoi.system.RebootRequest.subcomponents:type_name -> gnoi.types.Path + 21, // 4: gnoi.system.CancelRebootRequest.subcomponents:type_name -> gnoi.types.Path + 21, // 5: gnoi.system.RebootStatusRequest.subcomponents:type_name -> gnoi.types.Path + 22, // 6: gnoi.system.PingRequest.l3protocol:type_name -> gnoi.types.L3Protocol + 22, // 7: gnoi.system.TracerouteRequest.l3protocol:type_name -> gnoi.types.L3Protocol 1, // 8: gnoi.system.TracerouteRequest.l4protocol:type_name -> gnoi.system.TracerouteRequest.L4Protocol 2, // 9: gnoi.system.TracerouteResponse.state:type_name -> gnoi.system.TracerouteResponse.State - 23, // 10: gnoi.system.TracerouteResponse.mpls:type_name -> gnoi.system.TracerouteResponse.MplsEntry - 26, // 11: gnoi.system.Package.remote_download:type_name -> gnoi.common.RemoteDownload - 18, // 12: gnoi.system.SetPackageRequest.package:type_name -> gnoi.system.Package - 27, // 13: gnoi.system.SetPackageRequest.hash:type_name -> gnoi.types.HashType - 3, // 14: gnoi.system.KillProcessRequest.signal:type_name -> gnoi.system.KillProcessRequest.Signal - 14, // 15: gnoi.system.System.Ping:input_type -> gnoi.system.PingRequest - 16, // 16: gnoi.system.System.Traceroute:input_type -> gnoi.system.TracerouteRequest - 12, // 17: gnoi.system.System.Time:input_type -> gnoi.system.TimeRequest - 19, // 18: gnoi.system.System.SetPackage:input_type -> gnoi.system.SetPackageRequest - 4, // 19: gnoi.system.System.SwitchControlProcessor:input_type -> gnoi.system.SwitchControlProcessorRequest - 6, // 20: gnoi.system.System.Reboot:input_type -> gnoi.system.RebootRequest - 10, // 21: gnoi.system.System.RebootStatus:input_type -> gnoi.system.RebootStatusRequest - 8, // 22: gnoi.system.System.CancelReboot:input_type -> gnoi.system.CancelRebootRequest - 21, // 23: gnoi.system.System.KillProcess:input_type -> gnoi.system.KillProcessRequest - 15, // 24: gnoi.system.System.Ping:output_type -> gnoi.system.PingResponse - 17, // 25: gnoi.system.System.Traceroute:output_type -> gnoi.system.TracerouteResponse - 13, // 26: gnoi.system.System.Time:output_type -> gnoi.system.TimeResponse - 20, // 27: gnoi.system.System.SetPackage:output_type -> gnoi.system.SetPackageResponse - 5, // 28: gnoi.system.System.SwitchControlProcessor:output_type -> gnoi.system.SwitchControlProcessorResponse - 7, // 29: gnoi.system.System.Reboot:output_type -> gnoi.system.RebootResponse - 11, // 30: gnoi.system.System.RebootStatus:output_type -> gnoi.system.RebootStatusResponse - 9, // 31: gnoi.system.System.CancelReboot:output_type -> gnoi.system.CancelRebootResponse - 22, // 32: gnoi.system.System.KillProcess:output_type -> gnoi.system.KillProcessResponse - 24, // [24:33] is the sub-list for method output_type - 15, // [15:24] is the sub-list for method input_type - 15, // [15:15] is the sub-list for extension type_name - 15, // [15:15] is the sub-list for extension extendee - 0, // [0:15] is the sub-list for field type_name + 20, // 10: gnoi.system.TracerouteResponse.mpls:type_name -> gnoi.system.TracerouteResponse.MplsEntry + 23, // 11: gnoi.system.Package.remote_download:type_name -> gnoi.common.RemoteDownload + 17, // 12: gnoi.system.SetPackageRequest.package:type_name -> gnoi.system.Package + 24, // 13: gnoi.system.SetPackageRequest.hash:type_name -> gnoi.types.HashType + 13, // 14: gnoi.system.System.Ping:input_type -> gnoi.system.PingRequest + 15, // 15: gnoi.system.System.Traceroute:input_type -> gnoi.system.TracerouteRequest + 11, // 16: gnoi.system.System.Time:input_type -> gnoi.system.TimeRequest + 18, // 17: gnoi.system.System.SetPackage:input_type -> gnoi.system.SetPackageRequest + 3, // 18: gnoi.system.System.SwitchControlProcessor:input_type -> gnoi.system.SwitchControlProcessorRequest + 5, // 19: gnoi.system.System.Reboot:input_type -> gnoi.system.RebootRequest + 9, // 20: gnoi.system.System.RebootStatus:input_type -> gnoi.system.RebootStatusRequest + 7, // 21: gnoi.system.System.CancelReboot:input_type -> gnoi.system.CancelRebootRequest + 14, // 22: gnoi.system.System.Ping:output_type -> gnoi.system.PingResponse + 16, // 23: gnoi.system.System.Traceroute:output_type -> gnoi.system.TracerouteResponse + 12, // 24: gnoi.system.System.Time:output_type -> gnoi.system.TimeResponse + 19, // 25: gnoi.system.System.SetPackage:output_type -> gnoi.system.SetPackageResponse + 4, // 26: gnoi.system.System.SwitchControlProcessor:output_type -> gnoi.system.SwitchControlProcessorResponse + 6, // 27: gnoi.system.System.Reboot:output_type -> gnoi.system.RebootResponse + 10, // 28: gnoi.system.System.RebootStatus:output_type -> gnoi.system.RebootStatusResponse + 8, // 29: gnoi.system.System.CancelReboot:output_type -> gnoi.system.CancelRebootResponse + 22, // [22:30] is the sub-list for method output_type + 14, // [14:22] is the sub-list for method input_type + 14, // [14:14] is the sub-list for extension type_name + 14, // [14:14] is the sub-list for extension extendee + 0, // [0:14] is the sub-list for field type_name } func init() { file_system_system_proto_init() } @@ -2251,30 +2055,6 @@ func file_system_system_proto_init() { return nil } } - file_system_system_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*KillProcessRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_system_system_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*KillProcessResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } } file_system_system_proto_msgTypes[15].OneofWrappers = []interface{}{ (*SetPackageRequest_Package)(nil), @@ -2286,8 +2066,8 @@ func file_system_system_proto_init() { File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_system_system_proto_rawDesc, - NumEnums: 4, - NumMessages: 20, + NumEnums: 3, + NumMessages: 18, NumExtensions: 0, NumServices: 1, }, diff --git a/system/system.proto b/system/system.proto index af2b4644..4aa5795b 100644 --- a/system/system.proto +++ b/system/system.proto @@ -83,8 +83,8 @@ service System { // CancelReboot cancels any pending reboot request. rpc CancelReboot(CancelRebootRequest) returns (CancelRebootResponse) {} - // KillProcess kills an OS process, and optionally restarts it. - rpc KillProcess(KillProcessRequest) returns (KillProcessResponse) {} + // RestartProcess restarts an OS process. + rpc RestartProcess(RestartProcessRequest) returns (RestartProcessResponse) {} // TODO(hines): Add RotateCertificate workflow // TODO(hines): Add SetSSHPrivateKey @@ -315,26 +315,19 @@ message SetPackageRequest { message SetPackageResponse { } -// KillProcessRequest describes the process kill operation. -// Either a pid or name of the procss must be specified. -message KillProcessRequest { - // Process ID of the process to be killed. - uint32 pid = 1; - // Name of the process to be killed. - string name = 2; - // Termination signal sent to the process. - enum Signal { - SIGNAL_UNSPECIFIED = 0; // Invalid default. - SIGNAL_TERM = 1; // Terminate the process gracefully. - SIGNAL_KILL = 2; // Terminate the process immediately. - SIGNAL_HUP = 3; // Reload the process configuration. +// RestartProcessRequest describes the process restart operation. +message RestartProcessRequest { + // Name of the process to be restarted. + string name = 1; + // Mode of restarting. + enum Mode { + DEFAULT = 0; // Invalid default mode. + GRACEFUL = 1; + IMMEDIATE = 2; } - Signal signal = 3; - // Whether the process should be restarted after termination. - // This value is ignored when the termination signal is SIGHUP. - bool restart = 4; + Mode mode = 2; } -// KillProcessResponse describes the result of the process kill operation. -message KillProcessResponse { +// RestartProcessResponse describes the result of the process restart operation. +message RestartProcessResponse { } diff --git a/system/system_grpc.pb.go b/system/system_grpc.pb.go index cb15ae71..91d347b7 100644 --- a/system/system_grpc.pb.go +++ b/system/system_grpc.pb.go @@ -58,8 +58,6 @@ type SystemClient interface { RebootStatus(ctx context.Context, in *RebootStatusRequest, opts ...grpc.CallOption) (*RebootStatusResponse, error) // CancelReboot cancels any pending reboot request. CancelReboot(ctx context.Context, in *CancelRebootRequest, opts ...grpc.CallOption) (*CancelRebootResponse, error) - // KillProcess kills an OS process, and optionally restarts it. - KillProcess(ctx context.Context, in *KillProcessRequest, opts ...grpc.CallOption) (*KillProcessResponse, error) } type systemClient struct { @@ -213,15 +211,6 @@ func (c *systemClient) CancelReboot(ctx context.Context, in *CancelRebootRequest return out, nil } -func (c *systemClient) KillProcess(ctx context.Context, in *KillProcessRequest, opts ...grpc.CallOption) (*KillProcessResponse, error) { - out := new(KillProcessResponse) - err := c.cc.Invoke(ctx, "/gnoi.system.System/KillProcess", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - // SystemServer is the server API for System service. // All implementations must embed UnimplementedSystemServer // for forward compatibility @@ -266,8 +255,6 @@ type SystemServer interface { RebootStatus(context.Context, *RebootStatusRequest) (*RebootStatusResponse, error) // CancelReboot cancels any pending reboot request. CancelReboot(context.Context, *CancelRebootRequest) (*CancelRebootResponse, error) - // KillProcess kills an OS process, and optionally restarts it. - KillProcess(context.Context, *KillProcessRequest) (*KillProcessResponse, error) mustEmbedUnimplementedSystemServer() } @@ -299,9 +286,6 @@ func (UnimplementedSystemServer) RebootStatus(context.Context, *RebootStatusRequ func (UnimplementedSystemServer) CancelReboot(context.Context, *CancelRebootRequest) (*CancelRebootResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CancelReboot not implemented") } -func (UnimplementedSystemServer) KillProcess(context.Context, *KillProcessRequest) (*KillProcessResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method KillProcess not implemented") -} func (UnimplementedSystemServer) mustEmbedUnimplementedSystemServer() {} // UnsafeSystemServer may be embedded to opt out of forward compatibility for this service. @@ -473,24 +457,6 @@ func _System_CancelReboot_Handler(srv interface{}, ctx context.Context, dec func return interceptor(ctx, in, info, handler) } -func _System_KillProcess_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(KillProcessRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(SystemServer).KillProcess(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.system.System/KillProcess", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(SystemServer).KillProcess(ctx, req.(*KillProcessRequest)) - } - return interceptor(ctx, in, info, handler) -} - // System_ServiceDesc is the grpc.ServiceDesc for System service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) @@ -518,10 +484,6 @@ var System_ServiceDesc = grpc.ServiceDesc{ MethodName: "CancelReboot", Handler: _System_CancelReboot_Handler, }, - { - MethodName: "KillProcess", - Handler: _System_KillProcess_Handler, - }, }, Streams: []grpc.StreamDesc{ { From 4fbc830cd88c445b8a701e04e92679609d33f948 Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 16:58:37 +0530 Subject: [PATCH 126/238] Revert "Add new line to comply with lint." This reverts commit e49fa4bf01a11be351e84aac295adc9dda451ed9. --- system/system.proto | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/system/system.proto b/system/system.proto index 4aa5795b..59b669c1 100644 --- a/system/system.proto +++ b/system/system.proto @@ -329,5 +329,4 @@ message RestartProcessRequest { } // RestartProcessResponse describes the result of the process restart operation. -message RestartProcessResponse { -} +message RestartProcessResponse {} From 64f7c9d12f4cbd56111215ee2867cd2244770eda Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 16:58:37 +0530 Subject: [PATCH 127/238] Revert "Add a gNOI operation to restart an OS process." This reverts commit 6f3570a7ef979423819244555594c7a5a8763ff3. --- system/system.proto | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/system/system.proto b/system/system.proto index 59b669c1..e2e6ca91 100644 --- a/system/system.proto +++ b/system/system.proto @@ -83,9 +83,6 @@ service System { // CancelReboot cancels any pending reboot request. rpc CancelReboot(CancelRebootRequest) returns (CancelRebootResponse) {} - // RestartProcess restarts an OS process. - rpc RestartProcess(RestartProcessRequest) returns (RestartProcessResponse) {} - // TODO(hines): Add RotateCertificate workflow // TODO(hines): Add SetSSHPrivateKey } @@ -314,19 +311,3 @@ message SetPackageRequest { message SetPackageResponse { } - -// RestartProcessRequest describes the process restart operation. -message RestartProcessRequest { - // Name of the process to be restarted. - string name = 1; - // Mode of restarting. - enum Mode { - DEFAULT = 0; // Invalid default mode. - GRACEFUL = 1; - IMMEDIATE = 2; - } - Mode mode = 2; -} - -// RestartProcessResponse describes the result of the process restart operation. -message RestartProcessResponse {} From be4e322527310c9b6105095a027f90023dd5c630 Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 16:58:38 +0530 Subject: [PATCH 128/238] Revert "Add source_address field per cmzhou@." This reverts commit 59585e5aaee383cd62a315ea2ff3a860759fa24a. --- common/common.proto | 5 ----- 1 file changed, 5 deletions(-) diff --git a/common/common.proto b/common/common.proto index d462cb20..2d8e44c4 100644 --- a/common/common.proto +++ b/common/common.proto @@ -41,9 +41,4 @@ message RemoteDownload { Protocol protocol = 2; types.Credentials credentials = 3; - - // Optional source address used to initiate connections from the device. - // It can be either an IPv4 address or an IPv6 address, depending on the - // connection's destination address. - string source_address = 4; } From c2459e900ce5481622632041917858ec8a14df54 Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 16:58:39 +0530 Subject: [PATCH 129/238] Revert "compile protos with factory_reset included" This reverts commit 6a47ec9d0ab10295e77963e031739c1d876f38a3. --- bgp/bgp.pb.go | 4 +- cert/cert.pb.go | 4 +- common/common.pb.go | 4 +- compile_protos.sh | 2 +- diag/diag.pb.go | 4 +- factory_reset/BUILD.bazel | 14 +- factory_reset/factory_reset.pb.go | 435 ------------------ factory_reset/factory_reset_grpc.pb.go | 129 ------ .../{factory_reset.proto => reset.proto} | 0 file/file.pb.go | 4 +- healthz/healthz.pb.go | 10 +- interface/interface.pb.go | 4 +- layer2/layer2.pb.go | 6 +- mpls/mpls.pb.go | 4 +- otdr/otdr.pb.go | 4 +- system/system.pb.go | 8 +- types/types.pb.go | 26 +- wavelength_router/wavelength_router.pb.go | 4 +- 18 files changed, 51 insertions(+), 615 deletions(-) delete mode 100644 factory_reset/factory_reset.pb.go delete mode 100644 factory_reset/factory_reset_grpc.pb.go rename factory_reset/{factory_reset.proto => reset.proto} (100%) diff --git a/bgp/bgp.pb.go b/bgp/bgp.pb.go index acc1729f..67d68f83 100644 --- a/bgp/bgp.pb.go +++ b/bgp/bgp.pb.go @@ -16,8 +16,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.27.1 -// protoc v3.12.4 +// protoc-gen-go v1.26.0 +// protoc v3.15.7 // source: bgp/bgp.proto package bgp diff --git a/cert/cert.pb.go b/cert/cert.pb.go index 2204f07d..edfc32c2 100644 --- a/cert/cert.pb.go +++ b/cert/cert.pb.go @@ -19,8 +19,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.27.1 -// protoc v3.12.4 +// protoc-gen-go v1.26.0 +// protoc v3.15.7 // source: cert/cert.proto package cert diff --git a/common/common.pb.go b/common/common.pb.go index 06471e60..9d05d44a 100644 --- a/common/common.pb.go +++ b/common/common.pb.go @@ -16,8 +16,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.27.1 -// protoc v3.12.4 +// protoc-gen-go v1.26.0 +// protoc v3.15.7 // source: common/common.proto package common diff --git a/compile_protos.sh b/compile_protos.sh index 8a786b51..bf00e647 100755 --- a/compile_protos.sh +++ b/compile_protos.sh @@ -4,7 +4,7 @@ set -euo pipefail proto_imports=".:${GOPATH}/src/github.com/google/protobuf/src:${GOPATH}/src" # Go -for p in types common diag bgp cert factory_reset file healthz interface layer2 mpls system otdr wavelength_router; do +for p in types common diag bgp cert file healthz interface layer2 mpls system otdr wavelength_router; do protoc -I="${proto_imports}" --go-grpc_out=. --go-grpc_opt=paths=source_relative --go_out=. --go_opt=paths=source_relative $p/$p.proto done diff --git a/diag/diag.pb.go b/diag/diag.pb.go index 64630274..6ef8db9c 100644 --- a/diag/diag.pb.go +++ b/diag/diag.pb.go @@ -19,8 +19,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.27.1 -// protoc v3.12.4 +// protoc-gen-go v1.26.0 +// protoc v3.15.7 // source: diag/diag.proto package diag diff --git a/factory_reset/BUILD.bazel b/factory_reset/BUILD.bazel index e248fedb..d3764a21 100644 --- a/factory_reset/BUILD.bazel +++ b/factory_reset/BUILD.bazel @@ -22,21 +22,21 @@ package( ) proto_library( - name = "factory_reset_proto", - srcs = ["factory_reset.proto"], + name = "reset_proto", + srcs = ["reset.proto"], deps = [ "//types:types_proto", ], ) cc_proto_library( - name = "factory_reset_cc_proto", - deps = [":factory_reset_proto"], + name = "reset_cc_proto", + deps = [":reset_proto"], ) cc_grpc_library( - name = "factory_reset_cc_grpc_proto", - srcs = [":factory_reset_proto"], + name = "reset_cc_grpc_proto", + srcs = [":reset_proto"], grpc_only = True, - deps = [":factory_reset_cc_proto"], + deps = [":reset_cc_proto"], ) diff --git a/factory_reset/factory_reset.pb.go b/factory_reset/factory_reset.pb.go deleted file mode 100644 index da22833a..00000000 --- a/factory_reset/factory_reset.pb.go +++ /dev/null @@ -1,435 +0,0 @@ -// This file defines a gNOI API used for factory reseting a Target. - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.27.1 -// protoc v3.12.4 -// source: factory_reset/factory_reset.proto - -package factory_reset - -import ( - _ "github.com/openconfig/gnoi/types" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type StartRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Instructs the Target to rollback the OS to the same version as it shipped - // from factory. - FactoryOs bool `protobuf:"varint,1,opt,name=factory_os,json=factoryOs,proto3" json:"factory_os,omitempty"` - // Instructs the Target to zero fill persistent storage state data. - ZeroFill bool `protobuf:"varint,2,opt,name=zero_fill,json=zeroFill,proto3" json:"zero_fill,omitempty"` -} - -func (x *StartRequest) Reset() { - *x = StartRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_factory_reset_factory_reset_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *StartRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*StartRequest) ProtoMessage() {} - -func (x *StartRequest) ProtoReflect() protoreflect.Message { - mi := &file_factory_reset_factory_reset_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use StartRequest.ProtoReflect.Descriptor instead. -func (*StartRequest) Descriptor() ([]byte, []int) { - return file_factory_reset_factory_reset_proto_rawDescGZIP(), []int{0} -} - -func (x *StartRequest) GetFactoryOs() bool { - if x != nil { - return x.FactoryOs - } - return false -} - -func (x *StartRequest) GetZeroFill() bool { - if x != nil { - return x.ZeroFill - } - return false -} - -type ResetSuccess struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *ResetSuccess) Reset() { - *x = ResetSuccess{} - if protoimpl.UnsafeEnabled { - mi := &file_factory_reset_factory_reset_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ResetSuccess) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ResetSuccess) ProtoMessage() {} - -func (x *ResetSuccess) ProtoReflect() protoreflect.Message { - mi := &file_factory_reset_factory_reset_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ResetSuccess.ProtoReflect.Descriptor instead. -func (*ResetSuccess) Descriptor() ([]byte, []int) { - return file_factory_reset_factory_reset_proto_rawDescGZIP(), []int{1} -} - -// Message also used in gRPC status.details field. -type ResetError struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Factory OS reset is not supported. - FactoryOsUnsupported bool `protobuf:"varint,1,opt,name=factory_os_unsupported,json=factoryOsUnsupported,proto3" json:"factory_os_unsupported,omitempty"` - // Zero fill is not supported. - ZeroFillUnsupported bool `protobuf:"varint,2,opt,name=zero_fill_unsupported,json=zeroFillUnsupported,proto3" json:"zero_fill_unsupported,omitempty"` - // Unspecified error, must provide detail message. - Other bool `protobuf:"varint,3,opt,name=other,proto3" json:"other,omitempty"` - Detail string `protobuf:"bytes,4,opt,name=detail,proto3" json:"detail,omitempty"` -} - -func (x *ResetError) Reset() { - *x = ResetError{} - if protoimpl.UnsafeEnabled { - mi := &file_factory_reset_factory_reset_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ResetError) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ResetError) ProtoMessage() {} - -func (x *ResetError) ProtoReflect() protoreflect.Message { - mi := &file_factory_reset_factory_reset_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ResetError.ProtoReflect.Descriptor instead. -func (*ResetError) Descriptor() ([]byte, []int) { - return file_factory_reset_factory_reset_proto_rawDescGZIP(), []int{2} -} - -func (x *ResetError) GetFactoryOsUnsupported() bool { - if x != nil { - return x.FactoryOsUnsupported - } - return false -} - -func (x *ResetError) GetZeroFillUnsupported() bool { - if x != nil { - return x.ZeroFillUnsupported - } - return false -} - -func (x *ResetError) GetOther() bool { - if x != nil { - return x.Other - } - return false -} - -func (x *ResetError) GetDetail() string { - if x != nil { - return x.Detail - } - return "" -} - -type StartResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to Response: - // *StartResponse_ResetSuccess - // *StartResponse_ResetError - Response isStartResponse_Response `protobuf_oneof:"response"` -} - -func (x *StartResponse) Reset() { - *x = StartResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_factory_reset_factory_reset_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *StartResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*StartResponse) ProtoMessage() {} - -func (x *StartResponse) ProtoReflect() protoreflect.Message { - mi := &file_factory_reset_factory_reset_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use StartResponse.ProtoReflect.Descriptor instead. -func (*StartResponse) Descriptor() ([]byte, []int) { - return file_factory_reset_factory_reset_proto_rawDescGZIP(), []int{3} -} - -func (m *StartResponse) GetResponse() isStartResponse_Response { - if m != nil { - return m.Response - } - return nil -} - -func (x *StartResponse) GetResetSuccess() *ResetSuccess { - if x, ok := x.GetResponse().(*StartResponse_ResetSuccess); ok { - return x.ResetSuccess - } - return nil -} - -func (x *StartResponse) GetResetError() *ResetError { - if x, ok := x.GetResponse().(*StartResponse_ResetError); ok { - return x.ResetError - } - return nil -} - -type isStartResponse_Response interface { - isStartResponse_Response() -} - -type StartResponse_ResetSuccess struct { - // Reset will be executed. - ResetSuccess *ResetSuccess `protobuf:"bytes,1,opt,name=reset_success,json=resetSuccess,proto3,oneof"` -} - -type StartResponse_ResetError struct { - // Reset will not be executed. - ResetError *ResetError `protobuf:"bytes,2,opt,name=reset_error,json=resetError,proto3,oneof"` -} - -func (*StartResponse_ResetSuccess) isStartResponse_Response() {} - -func (*StartResponse_ResetError) isStartResponse_Response() {} - -var File_factory_reset_factory_reset_proto protoreflect.FileDescriptor - -var file_factory_reset_factory_reset_proto_rawDesc = []byte{ - 0x0a, 0x21, 0x66, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x72, 0x65, 0x73, 0x65, 0x74, 0x2f, - 0x66, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x72, 0x65, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x12, 0x12, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x66, 0x61, 0x63, 0x74, 0x6f, 0x72, - 0x79, 0x5f, 0x72, 0x65, 0x73, 0x65, 0x74, 0x1a, 0x2c, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, - 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x67, - 0x6e, 0x6f, 0x69, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x4a, 0x0a, 0x0c, 0x53, 0x74, 0x61, 0x72, 0x74, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x66, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x79, - 0x5f, 0x6f, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x66, 0x61, 0x63, 0x74, 0x6f, - 0x72, 0x79, 0x4f, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x7a, 0x65, 0x72, 0x6f, 0x5f, 0x66, 0x69, 0x6c, - 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x7a, 0x65, 0x72, 0x6f, 0x46, 0x69, 0x6c, - 0x6c, 0x22, 0x0e, 0x0a, 0x0c, 0x52, 0x65, 0x73, 0x65, 0x74, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, - 0x73, 0x22, 0xa4, 0x01, 0x0a, 0x0a, 0x52, 0x65, 0x73, 0x65, 0x74, 0x45, 0x72, 0x72, 0x6f, 0x72, - 0x12, 0x34, 0x0a, 0x16, 0x66, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x6f, 0x73, 0x5f, 0x75, - 0x6e, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, - 0x52, 0x14, 0x66, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x4f, 0x73, 0x55, 0x6e, 0x73, 0x75, 0x70, - 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x12, 0x32, 0x0a, 0x15, 0x7a, 0x65, 0x72, 0x6f, 0x5f, 0x66, - 0x69, 0x6c, 0x6c, 0x5f, 0x75, 0x6e, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x13, 0x7a, 0x65, 0x72, 0x6f, 0x46, 0x69, 0x6c, 0x6c, 0x55, - 0x6e, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x74, - 0x68, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x6f, 0x74, 0x68, 0x65, 0x72, - 0x12, 0x16, 0x0a, 0x06, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x06, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x22, 0xa7, 0x01, 0x0a, 0x0d, 0x53, 0x74, 0x61, - 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x47, 0x0a, 0x0d, 0x72, 0x65, - 0x73, 0x65, 0x74, 0x5f, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x66, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x79, - 0x5f, 0x72, 0x65, 0x73, 0x65, 0x74, 0x2e, 0x52, 0x65, 0x73, 0x65, 0x74, 0x53, 0x75, 0x63, 0x63, - 0x65, 0x73, 0x73, 0x48, 0x00, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x65, 0x74, 0x53, 0x75, 0x63, 0x63, - 0x65, 0x73, 0x73, 0x12, 0x41, 0x0a, 0x0b, 0x72, 0x65, 0x73, 0x65, 0x74, 0x5f, 0x65, 0x72, 0x72, - 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, - 0x66, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x72, 0x65, 0x73, 0x65, 0x74, 0x2e, 0x52, 0x65, - 0x73, 0x65, 0x74, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x48, 0x00, 0x52, 0x0a, 0x72, 0x65, 0x73, 0x65, - 0x74, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x42, 0x0a, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x32, 0x5c, 0x0a, 0x0c, 0x46, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x73, - 0x65, 0x74, 0x12, 0x4c, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x72, 0x74, 0x12, 0x20, 0x2e, 0x67, 0x6e, - 0x6f, 0x69, 0x2e, 0x66, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x72, 0x65, 0x73, 0x65, 0x74, - 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, - 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x66, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x72, 0x65, 0x73, - 0x65, 0x74, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x42, 0x32, 0x5a, 0x28, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, - 0x70, 0x65, 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x67, 0x6e, 0x6f, 0x69, 0x2f, 0x66, - 0x61, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x72, 0x65, 0x73, 0x65, 0x74, 0xd2, 0x3e, 0x05, 0x30, - 0x2e, 0x31, 0x2e, 0x30, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_factory_reset_factory_reset_proto_rawDescOnce sync.Once - file_factory_reset_factory_reset_proto_rawDescData = file_factory_reset_factory_reset_proto_rawDesc -) - -func file_factory_reset_factory_reset_proto_rawDescGZIP() []byte { - file_factory_reset_factory_reset_proto_rawDescOnce.Do(func() { - file_factory_reset_factory_reset_proto_rawDescData = protoimpl.X.CompressGZIP(file_factory_reset_factory_reset_proto_rawDescData) - }) - return file_factory_reset_factory_reset_proto_rawDescData -} - -var file_factory_reset_factory_reset_proto_msgTypes = make([]protoimpl.MessageInfo, 4) -var file_factory_reset_factory_reset_proto_goTypes = []interface{}{ - (*StartRequest)(nil), // 0: gnoi.factory_reset.StartRequest - (*ResetSuccess)(nil), // 1: gnoi.factory_reset.ResetSuccess - (*ResetError)(nil), // 2: gnoi.factory_reset.ResetError - (*StartResponse)(nil), // 3: gnoi.factory_reset.StartResponse -} -var file_factory_reset_factory_reset_proto_depIdxs = []int32{ - 1, // 0: gnoi.factory_reset.StartResponse.reset_success:type_name -> gnoi.factory_reset.ResetSuccess - 2, // 1: gnoi.factory_reset.StartResponse.reset_error:type_name -> gnoi.factory_reset.ResetError - 0, // 2: gnoi.factory_reset.FactoryReset.Start:input_type -> gnoi.factory_reset.StartRequest - 3, // 3: gnoi.factory_reset.FactoryReset.Start:output_type -> gnoi.factory_reset.StartResponse - 3, // [3:4] is the sub-list for method output_type - 2, // [2:3] is the sub-list for method input_type - 2, // [2:2] is the sub-list for extension type_name - 2, // [2:2] is the sub-list for extension extendee - 0, // [0:2] is the sub-list for field type_name -} - -func init() { file_factory_reset_factory_reset_proto_init() } -func file_factory_reset_factory_reset_proto_init() { - if File_factory_reset_factory_reset_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_factory_reset_factory_reset_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StartRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_factory_reset_factory_reset_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ResetSuccess); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_factory_reset_factory_reset_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ResetError); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_factory_reset_factory_reset_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StartResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_factory_reset_factory_reset_proto_msgTypes[3].OneofWrappers = []interface{}{ - (*StartResponse_ResetSuccess)(nil), - (*StartResponse_ResetError)(nil), - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_factory_reset_factory_reset_proto_rawDesc, - NumEnums: 0, - NumMessages: 4, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_factory_reset_factory_reset_proto_goTypes, - DependencyIndexes: file_factory_reset_factory_reset_proto_depIdxs, - MessageInfos: file_factory_reset_factory_reset_proto_msgTypes, - }.Build() - File_factory_reset_factory_reset_proto = out.File - file_factory_reset_factory_reset_proto_rawDesc = nil - file_factory_reset_factory_reset_proto_goTypes = nil - file_factory_reset_factory_reset_proto_depIdxs = nil -} diff --git a/factory_reset/factory_reset_grpc.pb.go b/factory_reset/factory_reset_grpc.pb.go deleted file mode 100644 index eae5286e..00000000 --- a/factory_reset/factory_reset_grpc.pb.go +++ /dev/null @@ -1,129 +0,0 @@ -// Code generated by protoc-gen-go-grpc. DO NOT EDIT. - -package factory_reset - -import ( - context "context" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" -) - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 - -// FactoryResetClient is the client API for FactoryReset service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. -type FactoryResetClient interface { - // The Start RPC allows the Client to instruct the Target to immediately - // clean all existing state and boot the Target in the same condition as it is - // shipped from factory. State includes storage, configuration, logs, - // certificates and licenses. - // - // Optionally allows rolling back the OS to the same version shipped from - // factory. - // - // Optionally allows for the Target to zero-fill permanent storage where state - // data is stored. - // - // If any of the optional flags is set but not supported, a gRPC Status with - // code INVALID_ARGUMENT must be returned with the details value set to a - // properly populated ResetError message. - Start(ctx context.Context, in *StartRequest, opts ...grpc.CallOption) (*StartResponse, error) -} - -type factoryResetClient struct { - cc grpc.ClientConnInterface -} - -func NewFactoryResetClient(cc grpc.ClientConnInterface) FactoryResetClient { - return &factoryResetClient{cc} -} - -func (c *factoryResetClient) Start(ctx context.Context, in *StartRequest, opts ...grpc.CallOption) (*StartResponse, error) { - out := new(StartResponse) - err := c.cc.Invoke(ctx, "/gnoi.factory_reset.FactoryReset/Start", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// FactoryResetServer is the server API for FactoryReset service. -// All implementations must embed UnimplementedFactoryResetServer -// for forward compatibility -type FactoryResetServer interface { - // The Start RPC allows the Client to instruct the Target to immediately - // clean all existing state and boot the Target in the same condition as it is - // shipped from factory. State includes storage, configuration, logs, - // certificates and licenses. - // - // Optionally allows rolling back the OS to the same version shipped from - // factory. - // - // Optionally allows for the Target to zero-fill permanent storage where state - // data is stored. - // - // If any of the optional flags is set but not supported, a gRPC Status with - // code INVALID_ARGUMENT must be returned with the details value set to a - // properly populated ResetError message. - Start(context.Context, *StartRequest) (*StartResponse, error) - mustEmbedUnimplementedFactoryResetServer() -} - -// UnimplementedFactoryResetServer must be embedded to have forward compatible implementations. -type UnimplementedFactoryResetServer struct { -} - -func (UnimplementedFactoryResetServer) Start(context.Context, *StartRequest) (*StartResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Start not implemented") -} -func (UnimplementedFactoryResetServer) mustEmbedUnimplementedFactoryResetServer() {} - -// UnsafeFactoryResetServer may be embedded to opt out of forward compatibility for this service. -// Use of this interface is not recommended, as added methods to FactoryResetServer will -// result in compilation errors. -type UnsafeFactoryResetServer interface { - mustEmbedUnimplementedFactoryResetServer() -} - -func RegisterFactoryResetServer(s grpc.ServiceRegistrar, srv FactoryResetServer) { - s.RegisterService(&FactoryReset_ServiceDesc, srv) -} - -func _FactoryReset_Start_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(StartRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(FactoryResetServer).Start(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.factory_reset.FactoryReset/Start", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(FactoryResetServer).Start(ctx, req.(*StartRequest)) - } - return interceptor(ctx, in, info, handler) -} - -// FactoryReset_ServiceDesc is the grpc.ServiceDesc for FactoryReset service. -// It's only intended for direct use with grpc.RegisterService, -// and not to be introspected or modified (even as a copy) -var FactoryReset_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "gnoi.factory_reset.FactoryReset", - HandlerType: (*FactoryResetServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "Start", - Handler: _FactoryReset_Start_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "factory_reset/factory_reset.proto", -} diff --git a/factory_reset/factory_reset.proto b/factory_reset/reset.proto similarity index 100% rename from factory_reset/factory_reset.proto rename to factory_reset/reset.proto diff --git a/file/file.pb.go b/file/file.pb.go index be82e0bc..41e47462 100644 --- a/file/file.pb.go +++ b/file/file.pb.go @@ -16,8 +16,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.27.1 -// protoc v3.12.4 +// protoc-gen-go v1.26.0 +// protoc v3.15.7 // source: file/file.proto package file diff --git a/healthz/healthz.pb.go b/healthz/healthz.pb.go index 62342ecd..32287339 100644 --- a/healthz/healthz.pb.go +++ b/healthz/healthz.pb.go @@ -22,17 +22,17 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.27.1 +// protoc-gen-go v1.26.0 // protoc v3.12.4 // source: healthz/healthz.proto package healthz import ( - any "github.com/golang/protobuf/ptypes/any" types "github.com/openconfig/gnoi/types" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" + anypb "google.golang.org/protobuf/types/known/anypb" reflect "reflect" sync "sync" ) @@ -156,7 +156,7 @@ type ComponentStatus struct { // Opaque data for how the healthcheck is implemented. This can be any proto // defined by the vendor. This could be the equivalent to outputs like // "show tech" or core files or any other diagnostic data. - Healthz *any.Any `protobuf:"bytes,4,opt,name=healthz,proto3" json:"healthz,omitempty"` + Healthz *anypb.Any `protobuf:"bytes,4,opt,name=healthz,proto3" json:"healthz,omitempty"` } func (x *ComponentStatus) Reset() { @@ -212,7 +212,7 @@ func (x *ComponentStatus) GetStatus() Status { return Status_STATUS_UNSPECIFIED } -func (x *ComponentStatus) GetHealthz() *any.Any { +func (x *ComponentStatus) GetHealthz() *anypb.Any { if x != nil { return x.Healthz } @@ -333,7 +333,7 @@ var file_healthz_healthz_proto_goTypes = []interface{}{ (*ComponentStatus)(nil), // 2: gnoi.healthz.ComponentStatus (*GetResponse)(nil), // 3: gnoi.healthz.GetResponse (*types.Path)(nil), // 4: gnoi.types.Path - (*any.Any)(nil), // 5: google.protobuf.Any + (*anypb.Any)(nil), // 5: google.protobuf.Any } var file_healthz_healthz_proto_depIdxs = []int32{ 4, // 0: gnoi.healthz.GetRequest.path:type_name -> gnoi.types.Path diff --git a/interface/interface.pb.go b/interface/interface.pb.go index ab826a78..41986498 100644 --- a/interface/interface.pb.go +++ b/interface/interface.pb.go @@ -16,8 +16,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.27.1 -// protoc v3.12.4 +// protoc-gen-go v1.26.0 +// protoc v3.15.7 // source: interface/interface.proto package _interface diff --git a/layer2/layer2.pb.go b/layer2/layer2.pb.go index 3b8e1363..32d2f93b 100644 --- a/layer2/layer2.pb.go +++ b/layer2/layer2.pb.go @@ -16,8 +16,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.27.1 -// protoc v3.12.4 +// protoc-gen-go v1.26.0 +// protoc v3.15.7 // source: layer2/layer2.proto package layer2 @@ -137,7 +137,7 @@ func (x *ClearNeighborDiscoveryRequest) GetProtocol() types.L3Protocol { if x != nil { return x.Protocol } - return types.L3Protocol(0) + return types.L3Protocol_UNSPECIFIED } func (x *ClearNeighborDiscoveryRequest) GetAddress() string { diff --git a/mpls/mpls.pb.go b/mpls/mpls.pb.go index fe53c736..cc375050 100644 --- a/mpls/mpls.pb.go +++ b/mpls/mpls.pb.go @@ -16,8 +16,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.27.1 -// protoc v3.12.4 +// protoc-gen-go v1.26.0 +// protoc v3.15.7 // source: mpls/mpls.proto package mpls diff --git a/otdr/otdr.pb.go b/otdr/otdr.pb.go index c8ff205d..221b8af8 100644 --- a/otdr/otdr.pb.go +++ b/otdr/otdr.pb.go @@ -16,8 +16,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.27.1 -// protoc v3.12.4 +// protoc-gen-go v1.26.0 +// protoc v3.15.7 // source: otdr/otdr.proto package otdr diff --git a/system/system.pb.go b/system/system.pb.go index 6408c7fe..69ee9edc 100644 --- a/system/system.pb.go +++ b/system/system.pb.go @@ -22,8 +22,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.27.1 -// protoc v3.12.4 +// protoc-gen-go v1.26.0 +// protoc v3.15.7 // source: system/system.proto package system @@ -895,7 +895,7 @@ func (x *PingRequest) GetL3Protocol() types.L3Protocol { if x != nil { return x.L3Protocol } - return types.L3Protocol(0) + return types.L3Protocol_UNSPECIFIED } // A PingResponse represents either the reponse to a single ping packet @@ -1140,7 +1140,7 @@ func (x *TracerouteRequest) GetL3Protocol() types.L3Protocol { if x != nil { return x.L3Protocol } - return types.L3Protocol(0) + return types.L3Protocol_UNSPECIFIED } func (x *TracerouteRequest) GetL4Protocol() TracerouteRequest_L4Protocol { diff --git a/types/types.pb.go b/types/types.pb.go index 3a66cecb..55fb31a4 100644 --- a/types/types.pb.go +++ b/types/types.pb.go @@ -16,16 +16,16 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.27.1 -// protoc v3.12.4 +// protoc-gen-go v1.26.0 +// protoc v3.15.7 // source: types/types.proto package types import ( - descriptor "github.com/golang/protobuf/protoc-gen-go/descriptor" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" + descriptorpb "google.golang.org/protobuf/types/descriptorpb" reflect "reflect" sync "sync" ) @@ -404,7 +404,7 @@ func (*Credentials_Hashed) isCredentials_Password() {} var file_types_types_proto_extTypes = []protoimpl.ExtensionInfo{ { - ExtendedType: (*descriptor.FileOptions)(nil), + ExtendedType: (*descriptorpb.FileOptions)(nil), ExtensionType: (*string)(nil), Field: 1002, Name: "gnoi.types.gnoi_version", @@ -413,7 +413,7 @@ var file_types_types_proto_extTypes = []protoimpl.ExtensionInfo{ }, } -// Extension fields to descriptor.FileOptions. +// Extension fields to descriptorpb.FileOptions. var ( // The gNOI service semantic version. // @@ -487,14 +487,14 @@ func file_types_types_proto_rawDescGZIP() []byte { var file_types_types_proto_enumTypes = make([]protoimpl.EnumInfo, 2) var file_types_types_proto_msgTypes = make([]protoimpl.MessageInfo, 5) var file_types_types_proto_goTypes = []interface{}{ - (L3Protocol)(0), // 0: gnoi.types.L3Protocol - (HashType_HashMethod)(0), // 1: gnoi.types.HashType.HashMethod - (*HashType)(nil), // 2: gnoi.types.HashType - (*Path)(nil), // 3: gnoi.types.Path - (*PathElem)(nil), // 4: gnoi.types.PathElem - (*Credentials)(nil), // 5: gnoi.types.Credentials - nil, // 6: gnoi.types.PathElem.KeyEntry - (*descriptor.FileOptions)(nil), // 7: google.protobuf.FileOptions + (L3Protocol)(0), // 0: gnoi.types.L3Protocol + (HashType_HashMethod)(0), // 1: gnoi.types.HashType.HashMethod + (*HashType)(nil), // 2: gnoi.types.HashType + (*Path)(nil), // 3: gnoi.types.Path + (*PathElem)(nil), // 4: gnoi.types.PathElem + (*Credentials)(nil), // 5: gnoi.types.Credentials + nil, // 6: gnoi.types.PathElem.KeyEntry + (*descriptorpb.FileOptions)(nil), // 7: google.protobuf.FileOptions } var file_types_types_proto_depIdxs = []int32{ 1, // 0: gnoi.types.HashType.method:type_name -> gnoi.types.HashType.HashMethod diff --git a/wavelength_router/wavelength_router.pb.go b/wavelength_router/wavelength_router.pb.go index 7f92679a..275b2ed7 100644 --- a/wavelength_router/wavelength_router.pb.go +++ b/wavelength_router/wavelength_router.pb.go @@ -16,8 +16,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.27.1 -// protoc v3.12.4 +// protoc-gen-go v1.26.0 +// protoc v3.15.7 // source: wavelength_router/wavelength_router.proto package wavelength_router From 0704252cb9ca277e223866701c188edab9fc3f1a Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 16:58:41 +0530 Subject: [PATCH 130/238] Revert "Removing cc_grpc_library target from common and types proto as they don't have any associated rpc services" This reverts commit d65a8696f84001678dab700e05d3a4562be08046. --- common/BUILD.bazel | 7 +++++++ types/BUILD.bazel | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/common/BUILD.bazel b/common/BUILD.bazel index 0de656b1..99a50545 100644 --- a/common/BUILD.bazel +++ b/common/BUILD.bazel @@ -37,3 +37,10 @@ cc_proto_library( name = "common_cc_proto", deps = [":common_proto"], ) + +cc_grpc_library( + name = "common_cc_grpc_proto", + srcs = [":common_proto"], + grpc_only = True, + deps = [":common_cc_proto"], +) diff --git a/types/BUILD.bazel b/types/BUILD.bazel index 598cbc8e..88a1e3e1 100644 --- a/types/BUILD.bazel +++ b/types/BUILD.bazel @@ -36,3 +36,10 @@ cc_proto_library( name = "types_cc_proto", deps = [":types_proto"], ) + +cc_grpc_library( + name = "types_cc_grpc_proto", + srcs = [":types_proto"], + grpc_only = True, + deps = [":types_cc_proto"], +) From 920c1aa2bfe276a9ed966f2a07505b0b77a62618 Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 16:58:41 +0530 Subject: [PATCH 131/238] Revert "Addressing review comments" This reverts commit 746016b0e6c21c79a0f081d15b39f2796296296f. --- .github/workflows/ci-cpp-build-gnoi.yml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.github/workflows/ci-cpp-build-gnoi.yml b/.github/workflows/ci-cpp-build-gnoi.yml index 102d03bf..38d076f3 100644 --- a/.github/workflows/ci-cpp-build-gnoi.yml +++ b/.github/workflows/ci-cpp-build-gnoi.yml @@ -31,8 +31,3 @@ jobs: - name: Install bazelisk run: | curl -LO "https://github.com/bazelbuild/bazelisk/releases/download/v1.8.1/$BAZEL" - chmod +x $BAZEL - sudo mv $BAZEL /usr/local/bin/bazel - - - name: Build - run: bazel build //... From 5c8f856d3079043883ea46782216aaeb8109db2c Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 16:58:42 +0530 Subject: [PATCH 132/238] Revert "Addressing review comments" This reverts commit d8549a728c5b7ad4e0cc9c4434603a6b9cdb83e0. --- .github/workflows/ci-cpp-build-gnoi.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci-cpp-build-gnoi.yml b/.github/workflows/ci-cpp-build-gnoi.yml index 38d076f3..7d065402 100644 --- a/.github/workflows/ci-cpp-build-gnoi.yml +++ b/.github/workflows/ci-cpp-build-gnoi.yml @@ -1,4 +1,4 @@ -name: "bazel build" +name: "build gnoi" on: push: @@ -30,4 +30,8 @@ jobs: bazel-${{ runner.os }}-build- - name: Install bazelisk run: | - curl -LO "https://github.com/bazelbuild/bazelisk/releases/download/v1.8.1/$BAZEL" + curl -LO "https://github.com/bazelbuild/bazelisk/releases/download/v1.4.0/$BAZEL" + chmod +x $BAZEL + sudo mv $BAZEL /usr/local/bin/bazel + - name: Build gnoi/ + run: cd gnoi && bazel build //... From 412528a9d522e32ccb7dba559e07cecb05a4b4eb Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 16:58:43 +0530 Subject: [PATCH 133/238] Revert "Create ci-cpp-build-gnoi.yml" This reverts commit 16b5309e55cf3ec0cc2cceb41c2e50fe8023f784. --- .github/workflows/ci-cpp-build-gnoi.yml | 37 ------------------------- 1 file changed, 37 deletions(-) delete mode 100644 .github/workflows/ci-cpp-build-gnoi.yml diff --git a/.github/workflows/ci-cpp-build-gnoi.yml b/.github/workflows/ci-cpp-build-gnoi.yml deleted file mode 100644 index 7d065402..00000000 --- a/.github/workflows/ci-cpp-build-gnoi.yml +++ /dev/null @@ -1,37 +0,0 @@ -name: "build gnoi" - -on: - push: - branches: [ main ] - pull_request: - branches: [ main ] - schedule: - - cron: "0 0 * * *" - -jobs: - build: - runs-on: ubuntu-latest - env: - BAZEL: bazelisk-linux-amd64 - steps: - - uses: actions/checkout@v2 - with: - submodules: recursive - - - name: Mount bazel cache - uses: actions/cache@v2 - with: - # See https://docs.bazel.build/versions/master/output_directories.html - path: "~/.cache/bazel" - # Create a new cache entry whenever Bazel files change. - # See https://docs.github.com/en/actions/guides/caching-dependencies-to-speed-up-workflows - key: bazel-${{ runner.os }}-build-${{ hashFiles('**/*.bzl', '**/*.bazel') }} - restore-keys: | - bazel-${{ runner.os }}-build- - - name: Install bazelisk - run: | - curl -LO "https://github.com/bazelbuild/bazelisk/releases/download/v1.4.0/$BAZEL" - chmod +x $BAZEL - sudo mv $BAZEL /usr/local/bin/bazel - - name: Build gnoi/ - run: cd gnoi && bazel build //... From 8db3a8bad329ae2f8b5c6d2417b50a0d6460d251 Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 16:58:44 +0530 Subject: [PATCH 134/238] Revert " Deleted the file ci-build-gnoi.yml from the git repository" This reverts commit ee529cf89f547c3676079799cb66a879435446a6. --- .github/workflows/ci-build-gnoi.yml | 33 +++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/ci-build-gnoi.yml diff --git a/.github/workflows/ci-build-gnoi.yml b/.github/workflows/ci-build-gnoi.yml new file mode 100644 index 00000000..79456381 --- /dev/null +++ b/.github/workflows/ci-build-gnoi.yml @@ -0,0 +1,33 @@ +name: "bazel build" + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + schedule: + - cron: "0 0 * * *" + +jobs: + build: + runs-on: ubuntu-latest + env: + BAZEL: bazelisk-linux-amd64 + steps: + - uses: actions/checkout@v2 + with: + submodules: recursive + + - name: Mount bazel cache + uses: actions/cache@v2 + with: + # See https://docs.bazel.build/versions/master/output_directories.html + path: "~/.cache/bazel" + # Create a new cache entry whenever Bazel files change. + # See https://docs.github.com/en/actions/guides/caching-dependencies-to-speed-up-workflows + key: bazel-${{ runner.os }}-build-${{ hashFiles('**/*.bzl', '**/*.bazel') }} + restore-keys: | + bazel-${{ runner.os }}-build- + - name: Install bazelisk + run: | + curl -LO "https://github.com/bazelbuild/bazelisk/releases/download/v1.8.1/$BAZEL" From 4fe665d311dcc24df9f7911d366aa3f324764a78 Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 16:58:45 +0530 Subject: [PATCH 135/238] Revert "Adding CI Build workflow" This reverts commit 076bdf566b4954c277226757c660de612fd1f42a. --- .github/workflows/ci-build-gnoi.yml | 33 ----------------------------- 1 file changed, 33 deletions(-) delete mode 100644 .github/workflows/ci-build-gnoi.yml diff --git a/.github/workflows/ci-build-gnoi.yml b/.github/workflows/ci-build-gnoi.yml deleted file mode 100644 index 79456381..00000000 --- a/.github/workflows/ci-build-gnoi.yml +++ /dev/null @@ -1,33 +0,0 @@ -name: "bazel build" - -on: - push: - branches: [ main ] - pull_request: - branches: [ main ] - schedule: - - cron: "0 0 * * *" - -jobs: - build: - runs-on: ubuntu-latest - env: - BAZEL: bazelisk-linux-amd64 - steps: - - uses: actions/checkout@v2 - with: - submodules: recursive - - - name: Mount bazel cache - uses: actions/cache@v2 - with: - # See https://docs.bazel.build/versions/master/output_directories.html - path: "~/.cache/bazel" - # Create a new cache entry whenever Bazel files change. - # See https://docs.github.com/en/actions/guides/caching-dependencies-to-speed-up-workflows - key: bazel-${{ runner.os }}-build-${{ hashFiles('**/*.bzl', '**/*.bazel') }} - restore-keys: | - bazel-${{ runner.os }}-build- - - name: Install bazelisk - run: | - curl -LO "https://github.com/bazelbuild/bazelisk/releases/download/v1.8.1/$BAZEL" From bba196790cee235b9ed567aec2680ee69d82c36d Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 16:58:45 +0530 Subject: [PATCH 136/238] Revert "Buildifier fixes" This reverts commit 62d01bd5e25e6b9ad0339d92f06a17f512c63f6b. --- BUILD.bazel | 2 +- WORKSPACE.bazel | 2 +- bgp/BUILD.bazel | 4 ++-- cert/BUILD.bazel | 6 +++--- common/BUILD.bazel | 4 ++-- diag/BUILD.bazel | 4 ++-- factory_reset/BUILD.bazel | 4 ++-- file/BUILD.bazel | 7 +++---- gnoi_deps.bzl | 4 ++-- interface/BUILD.bazel | 7 +++---- layer2/BUILD.bazel | 7 +++---- mpls/BUILD.bazel | 7 +++---- os/BUILD.bazel | 6 +++--- otdr/BUILD.bazel | 6 +++--- system/BUILD.bazel | 8 ++++---- types/BUILD.bazel | 4 ++-- wavelength_router/BUILD.bazel | 6 +++--- 17 files changed, 42 insertions(+), 46 deletions(-) diff --git a/BUILD.bazel b/BUILD.bazel index ca5484e5..57616d15 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -1,5 +1,5 @@ # Copyright 2021 Google LLC -# +# # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at diff --git a/WORKSPACE.bazel b/WORKSPACE.bazel index a1f7c20e..75533b2f 100644 --- a/WORKSPACE.bazel +++ b/WORKSPACE.bazel @@ -1,5 +1,5 @@ # Copyright 2021 Google LLC -# +# # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at diff --git a/bgp/BUILD.bazel b/bgp/BUILD.bazel index 7f4af003..36031a6b 100644 --- a/bgp/BUILD.bazel +++ b/bgp/BUILD.bazel @@ -1,5 +1,5 @@ #Copyright 2021 Google LLC -# +# # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at @@ -38,6 +38,6 @@ cc_proto_library( cc_grpc_library( name = "bgp_cc_grpc_proto", srcs = [":bgp_proto"], - grpc_only = True, deps = [":bgp_cc_proto"], + grpc_only = True, ) diff --git a/cert/BUILD.bazel b/cert/BUILD.bazel index 26e42eda..c78c95a3 100644 --- a/cert/BUILD.bazel +++ b/cert/BUILD.bazel @@ -1,5 +1,5 @@ #Copyright 2021 Google LLC -# +# # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at @@ -25,9 +25,9 @@ proto_library( name = "cert_proto", srcs = ["cert.proto"], deps = [ - "//types:types_proto", "@com_google_protobuf//:any_proto", "@com_google_protobuf//:descriptor_proto", + "//types:types_proto", ], ) @@ -39,6 +39,6 @@ cc_proto_library( cc_grpc_library( name = "cert_cc_grpc_proto", srcs = [":cert_proto"], - grpc_only = True, deps = [":cert_cc_proto"], + grpc_only = True, ) diff --git a/common/BUILD.bazel b/common/BUILD.bazel index 99a50545..9213284c 100644 --- a/common/BUILD.bazel +++ b/common/BUILD.bazel @@ -1,5 +1,5 @@ #Copyright 2021 Google LLC -# +# # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at @@ -41,6 +41,6 @@ cc_proto_library( cc_grpc_library( name = "common_cc_grpc_proto", srcs = [":common_proto"], - grpc_only = True, deps = [":common_cc_proto"], + grpc_only = True, ) diff --git a/diag/BUILD.bazel b/diag/BUILD.bazel index fddb8c10..d616845a 100644 --- a/diag/BUILD.bazel +++ b/diag/BUILD.bazel @@ -1,5 +1,5 @@ #Copyright 2021 Google LLC -# +# # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at @@ -38,6 +38,6 @@ cc_proto_library( cc_grpc_library( name = "diag_cc_grpc_proto", srcs = [":diag_proto"], - grpc_only = True, deps = [":diag_cc_proto"], + grpc_only = True, ) diff --git a/factory_reset/BUILD.bazel b/factory_reset/BUILD.bazel index d3764a21..ea2d4f21 100644 --- a/factory_reset/BUILD.bazel +++ b/factory_reset/BUILD.bazel @@ -1,5 +1,5 @@ #Copyright 2021 Google LLC -# +# # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at @@ -37,6 +37,6 @@ cc_proto_library( cc_grpc_library( name = "reset_cc_grpc_proto", srcs = [":reset_proto"], - grpc_only = True, deps = [":reset_cc_proto"], + grpc_only = True, ) diff --git a/file/BUILD.bazel b/file/BUILD.bazel index e01b8310..03249dd4 100644 --- a/file/BUILD.bazel +++ b/file/BUILD.bazel @@ -1,5 +1,5 @@ #Copyright 2021 Google LLC -# +# # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at @@ -15,7 +15,6 @@ # Supporting infrastructure for implementing and testing PINS. # load("@com_github_grpc_grpc//bazel:cc_grpc_library.bzl", "cc_grpc_library") - package( default_visibility = ["//visibility:public"], licenses = ["notice"], @@ -25,8 +24,8 @@ proto_library( name = "file_proto", srcs = ["file.proto"], deps = [ - "//common:common_proto", "//types:types_proto", + "//common:common_proto", ], ) @@ -38,6 +37,6 @@ cc_proto_library( cc_grpc_library( name = "file_cc_grpc_proto", srcs = [":file_proto"], - grpc_only = True, deps = [":file_cc_proto"], + grpc_only = True, ) diff --git a/gnoi_deps.bzl b/gnoi_deps.bzl index 6d9f224b..04514737 100644 --- a/gnoi_deps.bzl +++ b/gnoi_deps.bzl @@ -1,5 +1,5 @@ # Copyright 2021 Google LLC -# +# # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at @@ -20,7 +20,7 @@ def gnoi_deps(): """Declare the third-party dependencies necessary to build gnoi""" if not native.existing_rule("com_github_grpc_grpc"): - http_archive( + http_archive( name = "com_github_grpc_grpc", url = "https://github.com/grpc/grpc/archive/refs/tags/v1.37.1.tar.gz", strip_prefix = "grpc-1.37.1", diff --git a/interface/BUILD.bazel b/interface/BUILD.bazel index 57ef20b6..80aa76ab 100644 --- a/interface/BUILD.bazel +++ b/interface/BUILD.bazel @@ -1,5 +1,5 @@ #Copyright 2021 Google LLC -# +# # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at @@ -15,7 +15,6 @@ # Supporting infrastructure for implementing and testing PINS. # load("@com_github_grpc_grpc//bazel:cc_grpc_library.bzl", "cc_grpc_library") - package( default_visibility = ["//visibility:public"], licenses = ["notice"], @@ -25,8 +24,8 @@ proto_library( name = "interface_proto", srcs = ["interface.proto"], deps = [ - "//common:common_proto", "//types:types_proto", + "//common:common_proto", ], ) @@ -38,6 +37,6 @@ cc_proto_library( cc_grpc_library( name = "interface_cc_grpc_proto", srcs = [":interface_proto"], - grpc_only = True, deps = [":interface_cc_proto"], + grpc_only = True, ) diff --git a/layer2/BUILD.bazel b/layer2/BUILD.bazel index aeffa794..b194f26e 100644 --- a/layer2/BUILD.bazel +++ b/layer2/BUILD.bazel @@ -1,5 +1,5 @@ #Copyright 2021 Google LLC -# +# # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at @@ -15,7 +15,6 @@ # Supporting infrastructure for implementing and testing PINS. # load("@com_github_grpc_grpc//bazel:cc_grpc_library.bzl", "cc_grpc_library") - package( default_visibility = ["//visibility:public"], licenses = ["notice"], @@ -25,8 +24,8 @@ proto_library( name = "layer2_proto", srcs = ["layer2.proto"], deps = [ - "//common:common_proto", "//types:types_proto", + "//common:common_proto", ], ) @@ -38,6 +37,6 @@ cc_proto_library( cc_grpc_library( name = "layer2_cc_grpc_proto", srcs = [":layer2_proto"], - grpc_only = True, deps = [":layer2_cc_proto"], + grpc_only = True, ) diff --git a/mpls/BUILD.bazel b/mpls/BUILD.bazel index 2d58f37b..0da94ae7 100644 --- a/mpls/BUILD.bazel +++ b/mpls/BUILD.bazel @@ -1,5 +1,5 @@ #Copyright 2021 Google LLC -# +# # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at @@ -15,7 +15,6 @@ # Supporting infrastructure for implementing and testing PINS. # load("@com_github_grpc_grpc//bazel:cc_grpc_library.bzl", "cc_grpc_library") - package( default_visibility = ["//visibility:public"], licenses = ["notice"], @@ -25,8 +24,8 @@ proto_library( name = "mpls_proto", srcs = ["mpls.proto"], deps = [ - "//common:common_proto", "//types:types_proto", + "//common:common_proto", ], ) @@ -38,6 +37,6 @@ cc_proto_library( cc_grpc_library( name = "mpls_cc_grpc_proto", srcs = [":mpls_proto"], - grpc_only = True, deps = [":mpls_cc_proto"], + grpc_only = True, ) diff --git a/os/BUILD.bazel b/os/BUILD.bazel index c006ea46..817309b4 100644 --- a/os/BUILD.bazel +++ b/os/BUILD.bazel @@ -1,5 +1,5 @@ #Copyright 2021 Google LLC -# +# # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at @@ -26,8 +26,8 @@ proto_library( name = "os_proto", srcs = ["os.proto"], deps = [ - "//common:common_proto", "//types:types_proto", + "//common:common_proto", ], ) @@ -39,6 +39,6 @@ cc_proto_library( cc_grpc_library( name = "os_cc_grpc_proto", srcs = [":os_proto"], - grpc_only = True, deps = [":os_cc_proto"], + grpc_only = True, ) diff --git a/otdr/BUILD.bazel b/otdr/BUILD.bazel index bc2a1342..2c01a8da 100644 --- a/otdr/BUILD.bazel +++ b/otdr/BUILD.bazel @@ -1,5 +1,5 @@ #Copyright 2021 Google LLC -# +# # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at @@ -26,8 +26,8 @@ proto_library( name = "otdr_proto", srcs = ["otdr.proto"], deps = [ - "//common:common_proto", "//types:types_proto", + "//common:common_proto", ], ) @@ -39,6 +39,6 @@ cc_proto_library( cc_grpc_library( name = "otdr_cc_grpc_proto", srcs = [":otdr_proto"], - grpc_only = True, deps = [":otdr_cc_proto"], + grpc_only = True, ) diff --git a/system/BUILD.bazel b/system/BUILD.bazel index e2b4d7bc..60015b8f 100644 --- a/system/BUILD.bazel +++ b/system/BUILD.bazel @@ -1,5 +1,5 @@ #Copyright 2021 Google LLC -# +# # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at @@ -26,10 +26,10 @@ proto_library( name = "system_proto", srcs = ["system.proto"], deps = [ - "//common:common_proto", - "//types:types_proto", "@com_google_protobuf//:any_proto", "@com_google_protobuf//:descriptor_proto", + "//common:common_proto", + "//types:types_proto", ], ) @@ -41,6 +41,6 @@ cc_proto_library( cc_grpc_library( name = "system_cc_grpc_proto", srcs = [":system_proto"], - grpc_only = True, deps = [":system_cc_proto"], + grpc_only = True, ) diff --git a/types/BUILD.bazel b/types/BUILD.bazel index 88a1e3e1..664eabdb 100644 --- a/types/BUILD.bazel +++ b/types/BUILD.bazel @@ -1,5 +1,5 @@ #Copyright 2021 Google LLC -# +# # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at @@ -40,6 +40,6 @@ cc_proto_library( cc_grpc_library( name = "types_cc_grpc_proto", srcs = [":types_proto"], - grpc_only = True, deps = [":types_cc_proto"], + grpc_only = True, ) diff --git a/wavelength_router/BUILD.bazel b/wavelength_router/BUILD.bazel index c26d2bf0..c1837181 100644 --- a/wavelength_router/BUILD.bazel +++ b/wavelength_router/BUILD.bazel @@ -1,5 +1,5 @@ #Copyright 2021 Google LLC -# +# # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at @@ -26,7 +26,7 @@ proto_library( name = "wavelength_router_proto", srcs = ["wavelength_router.proto"], deps = [ - "//common:common_proto", + "//common:common_proto", "//types:types_proto", ], ) @@ -39,6 +39,6 @@ cc_proto_library( cc_grpc_library( name = "wavelength_router_cc_grpc_proto", srcs = [":wavelength_router_proto"], - grpc_only = True, deps = [":wavelength_router_cc_proto"], + grpc_only = True, ) From 5cf637a8d15b6d8af179c812b173c028e9e04933 Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 16:58:46 +0530 Subject: [PATCH 137/238] Revert "Fixing review comments" This reverts commit f661a82010d81aef2f9256c77409149002f6b5d9. --- BUILD.bazel => BUILD | 0 WORKSPACE.bazel => WORKSPACE | 17 ++++++++++++++--- bgp/{BUILD.bazel => BUILD} | 7 +++++++ cert/{BUILD.bazel => BUILD} | 6 ++++++ common/{BUILD.bazel => BUILD} | 6 ++++++ diag/{BUILD.bazel => BUILD} | 6 ++++++ factory_reset/{BUILD.bazel => BUILD} | 6 ++++++ file/{BUILD.bazel => BUILD} | 6 ++++++ gnoi_deps.bzl => gnoi_infra_deps.bzl | 19 ++++++++++--------- interface/{BUILD.bazel => BUILD} | 6 ++++++ layer2/{BUILD.bazel => BUILD} | 6 ++++++ mpls/{BUILD.bazel => BUILD} | 6 ++++++ os/{BUILD.bazel => BUILD} | 6 ++++++ otdr/{BUILD.bazel => BUILD} | 6 ++++++ system/{BUILD.bazel => BUILD} | 10 +++++++--- types/{BUILD.bazel => BUILD} | 6 ++++++ wavelength_router/{BUILD.bazel => BUILD} | 6 ++++++ 17 files changed, 110 insertions(+), 15 deletions(-) rename BUILD.bazel => BUILD (100%) rename WORKSPACE.bazel => WORKSPACE (75%) rename bgp/{BUILD.bazel => BUILD} (85%) rename cert/{BUILD.bazel => BUILD} (89%) rename common/{BUILD.bazel => BUILD} (90%) rename diag/{BUILD.bazel => BUILD} (89%) rename factory_reset/{BUILD.bazel => BUILD} (89%) rename file/{BUILD.bazel => BUILD} (89%) rename gnoi_deps.bzl => gnoi_infra_deps.bzl (74%) rename interface/{BUILD.bazel => BUILD} (89%) rename layer2/{BUILD.bazel => BUILD} (89%) rename mpls/{BUILD.bazel => BUILD} (89%) rename os/{BUILD.bazel => BUILD} (89%) rename otdr/{BUILD.bazel => BUILD} (89%) rename system/{BUILD.bazel => BUILD} (85%) rename types/{BUILD.bazel => BUILD} (89%) rename wavelength_router/{BUILD.bazel => BUILD} (89%) diff --git a/BUILD.bazel b/BUILD similarity index 100% rename from BUILD.bazel rename to BUILD diff --git a/WORKSPACE.bazel b/WORKSPACE similarity index 75% rename from WORKSPACE.bazel rename to WORKSPACE index 75533b2f..38b64f59 100644 --- a/WORKSPACE.bazel +++ b/WORKSPACE @@ -12,19 +12,30 @@ # See the License for the specific language governing permissions and # limitations under the License. -workspace(name = "com_github_openconfig_gnoi") +workspace(name = "gnoi") load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") # -- Load Dependencies --------------------------------------------------------- -load("gnoi_deps.bzl", "gnoi_deps") +load("gnoi_infra_deps.bzl", "gnoi_infra_deps") + +gnoi_infra_deps() -gnoi_deps() load("@com_github_grpc_grpc//bazel:grpc_deps.bzl", "grpc_deps") grpc_deps() +bind( + name = "grpc_cpp_plugin", + actual = "@com_github_grpc_grpc//:grpc_cpp_plugin", +) + +bind( + name = "grpc++_codegen_proto", + actual = "@com_github_grpc_grpc//:grpc++_codegen_proto", +) + load("@com_github_grpc_grpc//bazel:grpc_extra_deps.bzl", "grpc_extra_deps") grpc_extra_deps() diff --git a/bgp/BUILD.bazel b/bgp/BUILD similarity index 85% rename from bgp/BUILD.bazel rename to bgp/BUILD index 36031a6b..cbf57259 100644 --- a/bgp/BUILD.bazel +++ b/bgp/BUILD @@ -22,9 +22,16 @@ package( licenses = ["notice"], ) +filegroup( + name = "bgp_proto_srcs", + srcs = glob(["**/*.proto"]), + visibility = ["//third_party/pins_infra/thinkit:__pkg__"], +) + proto_library( name = "bgp_proto", srcs = ["bgp.proto"], + import_prefix = "github.com/openconfig/gnoi", deps = [ "//types:types_proto", ], diff --git a/cert/BUILD.bazel b/cert/BUILD similarity index 89% rename from cert/BUILD.bazel rename to cert/BUILD index c78c95a3..da6bac86 100644 --- a/cert/BUILD.bazel +++ b/cert/BUILD @@ -21,6 +21,12 @@ package( licenses = ["notice"], ) +filegroup( + name = "cert_proto_srcs", + srcs = glob(["**/*.proto"]), + visibility = ["//third_party/pins_infra/thinkit:__pkg__"], +) + proto_library( name = "cert_proto", srcs = ["cert.proto"], diff --git a/common/BUILD.bazel b/common/BUILD similarity index 90% rename from common/BUILD.bazel rename to common/BUILD index 9213284c..44389503 100644 --- a/common/BUILD.bazel +++ b/common/BUILD @@ -22,6 +22,12 @@ package( licenses = ["notice"], ) +filegroup( + name = "common_proto_srcs", + srcs = glob(["**/*.proto"]), + visibility = ["//third_party/pins_infra/thinkit:__pkg__"], +) + proto_library( name = "common_proto", srcs = ["common.proto"], diff --git a/diag/BUILD.bazel b/diag/BUILD similarity index 89% rename from diag/BUILD.bazel rename to diag/BUILD index d616845a..3a4a7df7 100644 --- a/diag/BUILD.bazel +++ b/diag/BUILD @@ -22,6 +22,12 @@ package( licenses = ["notice"], ) +filegroup( + name = "diag_proto_srcs", + srcs = glob(["**/*.proto"]), + visibility = ["//third_party/pins_infra/thinkit:__pkg__"], +) + proto_library( name = "diag_proto", srcs = ["diag.proto"], diff --git a/factory_reset/BUILD.bazel b/factory_reset/BUILD similarity index 89% rename from factory_reset/BUILD.bazel rename to factory_reset/BUILD index ea2d4f21..d7b0d606 100644 --- a/factory_reset/BUILD.bazel +++ b/factory_reset/BUILD @@ -21,6 +21,12 @@ package( licenses = ["notice"], ) +filegroup( + name = "reset_proto_srcs", + srcs = glob(["**/*.proto"]), + visibility = ["//third_party/pins_infra/thinkit:__pkg__"], +) + proto_library( name = "reset_proto", srcs = ["reset.proto"], diff --git a/file/BUILD.bazel b/file/BUILD similarity index 89% rename from file/BUILD.bazel rename to file/BUILD index 03249dd4..72e8371a 100644 --- a/file/BUILD.bazel +++ b/file/BUILD @@ -20,6 +20,12 @@ package( licenses = ["notice"], ) +filegroup( + name = "file_proto_srcs", + srcs = glob(["**/*.proto"]), + visibility = ["//third_party/pins_infra/thinkit:__pkg__"], +) + proto_library( name = "file_proto", srcs = ["file.proto"], diff --git a/gnoi_deps.bzl b/gnoi_infra_deps.bzl similarity index 74% rename from gnoi_deps.bzl rename to gnoi_infra_deps.bzl index 04514737..b1410e41 100644 --- a/gnoi_deps.bzl +++ b/gnoi_infra_deps.bzl @@ -12,26 +12,27 @@ # See the License for the specific language governing permissions and # limitations under the License. # -"""Dependencies to build gnoi.""" +"""Dependencies to build PINS infra.""" load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") -def gnoi_deps(): - """Declare the third-party dependencies necessary to build gnoi""" +def gnoi_infra_deps(): + """Declare the third-party dependencies necessary to build GNOI infrastructure""" if not native.existing_rule("com_github_grpc_grpc"): http_archive( name = "com_github_grpc_grpc", - url = "https://github.com/grpc/grpc/archive/refs/tags/v1.37.1.tar.gz", - strip_prefix = "grpc-1.37.1", - sha256 = "acf247ec3a52edaee5dee28644a4e485c5e5badf46bdb24a80ca1d76cb8f1174", + # Move to newer commit to avoid the use of com_github_google_re2. + url = "https://github.com/grpc/grpc/archive/565520443bdbda0b8ac28337a4904f3f20276305.zip", + strip_prefix = "grpc-565520443bdbda0b8ac28337a4904f3f20276305", + sha256 = "7206cc8e4511620fe70da7234bc98d6a4cd2eb226a7914f68fdbd991ffe38d34", ) if not native.existing_rule("com_google_protobuf"): http_archive( name = "com_google_protobuf", - url = "https://github.com/protocolbuffers/protobuf/releases/download/v3.16.0/protobuf-all-3.16.0.tar.gz", - strip_prefix = "protobuf-3.16.0", - sha256 = "d7371dc2d46fddac1af8cb27c0394554b068768fc79ecaf5be1a1863e8ff3392", + url = "https://github.com/protocolbuffers/protobuf/releases/download/v3.14.0/protobuf-all-3.14.0.tar.gz", + strip_prefix = "protobuf-3.14.0", + sha256 = "6dd0f6b20094910fbb7f1f7908688df01af2d4f6c5c21331b9f636048674aebf", ) if not native.existing_rule("com_google_googleapis"): http_archive( diff --git a/interface/BUILD.bazel b/interface/BUILD similarity index 89% rename from interface/BUILD.bazel rename to interface/BUILD index 80aa76ab..1b0331be 100644 --- a/interface/BUILD.bazel +++ b/interface/BUILD @@ -20,6 +20,12 @@ package( licenses = ["notice"], ) +filegroup( + name = "file_proto_srcs", + srcs = glob(["**/*.proto"]), + visibility = ["//third_party/pins_infra/thinkit:__pkg__"], +) + proto_library( name = "interface_proto", srcs = ["interface.proto"], diff --git a/layer2/BUILD.bazel b/layer2/BUILD similarity index 89% rename from layer2/BUILD.bazel rename to layer2/BUILD index b194f26e..9d366efd 100644 --- a/layer2/BUILD.bazel +++ b/layer2/BUILD @@ -20,6 +20,12 @@ package( licenses = ["notice"], ) +filegroup( + name = "layer2_proto_srcs", + srcs = glob(["**/*.proto"]), + visibility = ["//third_party/pins_infra/thinkit:__pkg__"], +) + proto_library( name = "layer2_proto", srcs = ["layer2.proto"], diff --git a/mpls/BUILD.bazel b/mpls/BUILD similarity index 89% rename from mpls/BUILD.bazel rename to mpls/BUILD index 0da94ae7..46fd670a 100644 --- a/mpls/BUILD.bazel +++ b/mpls/BUILD @@ -20,6 +20,12 @@ package( licenses = ["notice"], ) +filegroup( + name = "mpls_proto_srcs", + srcs = glob(["**/*.proto"]), + visibility = ["//third_party/pins_infra/thinkit:__pkg__"], +) + proto_library( name = "mpls_proto", srcs = ["mpls.proto"], diff --git a/os/BUILD.bazel b/os/BUILD similarity index 89% rename from os/BUILD.bazel rename to os/BUILD index 817309b4..4e203137 100644 --- a/os/BUILD.bazel +++ b/os/BUILD @@ -22,6 +22,12 @@ package( licenses = ["notice"], ) +filegroup( + name = "os_proto_srcs", + srcs = glob(["**/*.proto"]), + visibility = ["//third_party/pins_infra/thinkit:__pkg__"], +) + proto_library( name = "os_proto", srcs = ["os.proto"], diff --git a/otdr/BUILD.bazel b/otdr/BUILD similarity index 89% rename from otdr/BUILD.bazel rename to otdr/BUILD index 2c01a8da..d3c6c15d 100644 --- a/otdr/BUILD.bazel +++ b/otdr/BUILD @@ -22,6 +22,12 @@ package( licenses = ["notice"], ) +filegroup( + name = "otdr_proto_srcs", + srcs = glob(["**/*.proto"]), + visibility = ["//third_party/pins_infra/thinkit:__pkg__"], +) + proto_library( name = "otdr_proto", srcs = ["otdr.proto"], diff --git a/system/BUILD.bazel b/system/BUILD similarity index 85% rename from system/BUILD.bazel rename to system/BUILD index 60015b8f..0f5add6e 100644 --- a/system/BUILD.bazel +++ b/system/BUILD @@ -17,9 +17,13 @@ load("@com_github_grpc_grpc//bazel:cc_grpc_library.bzl", "cc_grpc_library") -package( - default_visibility = ["//visibility:public"], - licenses = ["notice"], +package(default_visibility = ["//visibility:public"], + licenses = ["notice"],) + +filegroup( + name = "system_proto_srcs", + srcs = glob(["gnoi/common/*.proto", + "gnoi/types/*.proto"]), ) proto_library( diff --git a/types/BUILD.bazel b/types/BUILD similarity index 89% rename from types/BUILD.bazel rename to types/BUILD index 664eabdb..cf85486e 100644 --- a/types/BUILD.bazel +++ b/types/BUILD @@ -22,6 +22,12 @@ package( licenses = ["notice"], ) +filegroup( + name = "types_proto_srcs", + srcs = glob(["**/*.proto"]), + visibility = ["//third_party/pins_infra/thinkit:__pkg__"], +) + proto_library( name = "types_proto", srcs = ["types.proto"], diff --git a/wavelength_router/BUILD.bazel b/wavelength_router/BUILD similarity index 89% rename from wavelength_router/BUILD.bazel rename to wavelength_router/BUILD index c1837181..f5c8588e 100644 --- a/wavelength_router/BUILD.bazel +++ b/wavelength_router/BUILD @@ -22,6 +22,12 @@ package( licenses = ["notice"], ) +filegroup( + name = "wavelength_router_proto_srcs", + srcs = glob(["**/*.proto"]), + visibility = ["//third_party/pins_infra/thinkit:__pkg__"], +) + proto_library( name = "wavelength_router_proto", srcs = ["wavelength_router.proto"], From ea698cfb6ba81e91f9d85deeaececdbbe3cd6d3b Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 16:58:47 +0530 Subject: [PATCH 138/238] Revert "Deleted unnecessary files" This reverts commit 204cc6a62404ab86a5ea37975af4b53167779d69. --- bazel-bin | 1 + bazel-gnoi | 1 + bazel-out | 1 + bazel-testlogs | 1 + 4 files changed, 4 insertions(+) create mode 120000 bazel-bin create mode 120000 bazel-gnoi create mode 120000 bazel-out create mode 120000 bazel-testlogs diff --git a/bazel-bin b/bazel-bin new file mode 120000 index 00000000..3fdbec68 --- /dev/null +++ b/bazel-bin @@ -0,0 +1 @@ +/usr/local/google/home/vpunati/.cache/bazel/_bazel_vpunati/74a6b93027ff75445a1a363a61de2133/execroot/gnoi/bazel-out/k8-fastbuild/bin \ No newline at end of file diff --git a/bazel-gnoi b/bazel-gnoi new file mode 120000 index 00000000..05758ff0 --- /dev/null +++ b/bazel-gnoi @@ -0,0 +1 @@ +/usr/local/google/home/vpunati/.cache/bazel/_bazel_vpunati/74a6b93027ff75445a1a363a61de2133/execroot/gnoi \ No newline at end of file diff --git a/bazel-out b/bazel-out new file mode 120000 index 00000000..8a5b93e2 --- /dev/null +++ b/bazel-out @@ -0,0 +1 @@ +/usr/local/google/home/vpunati/.cache/bazel/_bazel_vpunati/74a6b93027ff75445a1a363a61de2133/execroot/gnoi/bazel-out \ No newline at end of file diff --git a/bazel-testlogs b/bazel-testlogs new file mode 120000 index 00000000..4486c79a --- /dev/null +++ b/bazel-testlogs @@ -0,0 +1 @@ +/usr/local/google/home/vpunati/.cache/bazel/_bazel_vpunati/74a6b93027ff75445a1a363a61de2133/execroot/gnoi/bazel-out/k8-fastbuild/testlogs \ No newline at end of file From fa00302955fdfc8899ac57e6163445fdd96f6335 Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 16:58:48 +0530 Subject: [PATCH 139/238] Revert "[fixing build files and remove unnecessary dependencies]" This reverts commit 99cbb2cc89cb153262d3da124021984f17d3654b. --- WORKSPACE | 54 +++++++++++++++++++++++++++++++++++++++++ cert/BUILD | 1 + diag/BUILD | 1 + factory_reset/BUILD | 1 + file/BUILD | 1 + gnoi_infra_deps.bzl | 30 +++++++++++++++++++++++ interface/BUILD | 1 + layer2/BUILD | 1 + mpls/BUILD | 1 + os/BUILD | 1 + otdr/BUILD | 1 + system/BUILD | 1 + wavelength_router/BUILD | 1 + 13 files changed, 95 insertions(+) diff --git a/WORKSPACE b/WORKSPACE index 38b64f59..efad5d99 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -21,6 +21,24 @@ load("gnoi_infra_deps.bzl", "gnoi_infra_deps") gnoi_infra_deps() +# -- Load Protobuf ------------------------------------------------------------- +load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps") + +protobuf_deps() + +load("@rules_proto//proto:repositories.bzl", "rules_proto_dependencies", "rules_proto_toolchains") + +rules_proto_dependencies() + +rules_proto_toolchains() + +load("@com_google_googleapis//:repository_rules.bzl", "switched_rules_by_language") + +switched_rules_by_language( + name = "com_google_googleapis_imports", + cc = True, + grpc = True, +) load("@com_github_grpc_grpc//bazel:grpc_deps.bzl", "grpc_deps") @@ -39,3 +57,39 @@ bind( load("@com_github_grpc_grpc//bazel:grpc_extra_deps.bzl", "grpc_extra_deps") grpc_extra_deps() + +# -- Load buildifier ----------------------------------------------------------- +http_archive( + name = "io_bazel_rules_go", + sha256 = "9fb16af4d4836c8222142e54c9efa0bb5fc562ffc893ce2abeac3e25daead144", + urls = [ + "https://storage.googleapis.com/bazel-mirror/github.com/bazelbuild/rules_go/releases/download/0.19.0/rules_go-0.19.0.tar.gz", + "https://github.com/bazelbuild/rules_go/releases/download/0.19.0/rules_go-0.19.0.tar.gz", + ], +) + +load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies") + +go_rules_dependencies() + +go_register_toolchains() + +http_archive( + name = "bazel_gazelle", + sha256 = "be9296bfd64882e3c08e3283c58fcb461fa6dd3c171764fcc4cf322f60615a9b", + urls = [ + "https://storage.googleapis.com/bazel-mirror/github.com/bazelbuild/bazel-gazelle/releases/download/0.18.1/bazel-gazelle-0.18.1.tar.gz", + "https://github.com/bazelbuild/bazel-gazelle/releases/download/0.18.1/bazel-gazelle-0.18.1.tar.gz", + ], +) + +load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies") + +gazelle_dependencies() + +http_archive( + name = "com_github_bazelbuild_buildtools", + strip_prefix = "buildtools-master", + url = "https://github.com/bazelbuild/buildtools/archive/master.zip", +) + diff --git a/cert/BUILD b/cert/BUILD index da6bac86..db0fa9ae 100644 --- a/cert/BUILD +++ b/cert/BUILD @@ -30,6 +30,7 @@ filegroup( proto_library( name = "cert_proto", srcs = ["cert.proto"], + import_prefix = "github.com/openconfig/gnoi", deps = [ "@com_google_protobuf//:any_proto", "@com_google_protobuf//:descriptor_proto", diff --git a/diag/BUILD b/diag/BUILD index 3a4a7df7..7a7b3745 100644 --- a/diag/BUILD +++ b/diag/BUILD @@ -31,6 +31,7 @@ filegroup( proto_library( name = "diag_proto", srcs = ["diag.proto"], + import_prefix = "github.com/openconfig/gnoi", deps = [ "//types:types_proto", ], diff --git a/factory_reset/BUILD b/factory_reset/BUILD index d7b0d606..f7c9a7b5 100644 --- a/factory_reset/BUILD +++ b/factory_reset/BUILD @@ -30,6 +30,7 @@ filegroup( proto_library( name = "reset_proto", srcs = ["reset.proto"], + import_prefix = "github.com/openconfig/gnoi", deps = [ "//types:types_proto", ], diff --git a/file/BUILD b/file/BUILD index 72e8371a..93bb504b 100644 --- a/file/BUILD +++ b/file/BUILD @@ -29,6 +29,7 @@ filegroup( proto_library( name = "file_proto", srcs = ["file.proto"], + import_prefix = "github.com/openconfig/gnoi", deps = [ "//types:types_proto", "//common:common_proto", diff --git a/gnoi_infra_deps.bzl b/gnoi_infra_deps.bzl index b1410e41..35f2f130 100644 --- a/gnoi_infra_deps.bzl +++ b/gnoi_infra_deps.bzl @@ -14,6 +14,7 @@ # """Dependencies to build PINS infra.""" +load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository", "new_git_repository") load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") def gnoi_infra_deps(): @@ -27,6 +28,20 @@ def gnoi_infra_deps(): strip_prefix = "grpc-565520443bdbda0b8ac28337a4904f3f20276305", sha256 = "7206cc8e4511620fe70da7234bc98d6a4cd2eb226a7914f68fdbd991ffe38d34", ) + if not native.existing_rule("com_google_absl"): + http_archive( + name = "com_google_absl", + url = "https://github.com/abseil/abseil-cpp/archive/refs/tags/20210324.rc1.tar.gz", + strip_prefix = "abseil-cpp-20210324.rc1", + sha256 = "7e0cf185ddd0459e8e55a9c51a548e859d98c0d7533de374bf038e4c7434f682", + ) + if not native.existing_rule("com_google_googletest"): + http_archive( + name = "com_google_googletest", + urls = ["https://github.com/google/googletest/archive/release-1.10.0.tar.gz"], + strip_prefix = "googletest-release-1.10.0", + sha256 = "9dc9157a9a1551ec7a7e43daea9a694a0bb5fb8bec81235d8a1e6ef64c716dcb", + ) if not native.existing_rule("com_google_protobuf"): http_archive( name = "com_google_protobuf", @@ -34,6 +49,14 @@ def gnoi_infra_deps(): strip_prefix = "protobuf-3.14.0", sha256 = "6dd0f6b20094910fbb7f1f7908688df01af2d4f6c5c21331b9f636048674aebf", ) + if not native.existing_rule("com_googlesource_code_re2"): + http_archive( + name = "com_googlesource_code_re2", + # Newest commit on "absl" branch as of 2021-03-25. + url = "https://github.com/google/re2/archive/72f110e82ccf3a9ae1c9418bfb447c3ba1cf95c2.zip", + strip_prefix = "re2-72f110e82ccf3a9ae1c9418bfb447c3ba1cf95c2", + sha256 = "146bf2e8796317843106a90543356c1baa4b48236a572e39971b839172f6270e", + ) if not native.existing_rule("com_google_googleapis"): http_archive( name = "com_google_googleapis", @@ -41,6 +64,13 @@ def gnoi_infra_deps(): strip_prefix = "googleapis-f405c718d60484124808adb7fb5963974d654bb4", sha256 = "406b64643eede84ce3e0821a1d01f66eaf6254e79cb9c4f53be9054551935e79", ) + if not native.existing_rule("rules_cc"): + git_repository( + name = "rules_cc", + commit = "1477dbab59b401daa94acedbeaefe79bf9112167", + remote = "https://github.com/bazelbuild/rules_cc.git", + shallow_since = "1595949469 -0700", + ) if not native.existing_rule("rules_proto"): http_archive( name = "rules_proto", diff --git a/interface/BUILD b/interface/BUILD index 1b0331be..3ae12966 100644 --- a/interface/BUILD +++ b/interface/BUILD @@ -29,6 +29,7 @@ filegroup( proto_library( name = "interface_proto", srcs = ["interface.proto"], + import_prefix = "github.com/openconfig/gnoi", deps = [ "//types:types_proto", "//common:common_proto", diff --git a/layer2/BUILD b/layer2/BUILD index 9d366efd..49b29e82 100644 --- a/layer2/BUILD +++ b/layer2/BUILD @@ -29,6 +29,7 @@ filegroup( proto_library( name = "layer2_proto", srcs = ["layer2.proto"], + import_prefix = "github.com/openconfig/gnoi", deps = [ "//types:types_proto", "//common:common_proto", diff --git a/mpls/BUILD b/mpls/BUILD index 46fd670a..94f7fd00 100644 --- a/mpls/BUILD +++ b/mpls/BUILD @@ -29,6 +29,7 @@ filegroup( proto_library( name = "mpls_proto", srcs = ["mpls.proto"], + import_prefix = "github.com/openconfig/gnoi", deps = [ "//types:types_proto", "//common:common_proto", diff --git a/os/BUILD b/os/BUILD index 4e203137..8b2ad4f1 100644 --- a/os/BUILD +++ b/os/BUILD @@ -31,6 +31,7 @@ filegroup( proto_library( name = "os_proto", srcs = ["os.proto"], + import_prefix = "github.com/openconfig/gnoi", deps = [ "//types:types_proto", "//common:common_proto", diff --git a/otdr/BUILD b/otdr/BUILD index d3c6c15d..cef2ea25 100644 --- a/otdr/BUILD +++ b/otdr/BUILD @@ -31,6 +31,7 @@ filegroup( proto_library( name = "otdr_proto", srcs = ["otdr.proto"], + import_prefix = "github.com/openconfig/gnoi", deps = [ "//types:types_proto", "//common:common_proto", diff --git a/system/BUILD b/system/BUILD index 0f5add6e..1d785e53 100644 --- a/system/BUILD +++ b/system/BUILD @@ -29,6 +29,7 @@ filegroup( proto_library( name = "system_proto", srcs = ["system.proto"], + import_prefix = "github.com/openconfig/gnoi", deps = [ "@com_google_protobuf//:any_proto", "@com_google_protobuf//:descriptor_proto", diff --git a/wavelength_router/BUILD b/wavelength_router/BUILD index f5c8588e..2a5b5dc9 100644 --- a/wavelength_router/BUILD +++ b/wavelength_router/BUILD @@ -31,6 +31,7 @@ filegroup( proto_library( name = "wavelength_router_proto", srcs = ["wavelength_router.proto"], + import_prefix = "github.com/openconfig/gnoi", deps = [ "//common:common_proto", "//types:types_proto", From ee14ec8ba739761e8c4d2a91cde3428418006b8a Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 16:58:49 +0530 Subject: [PATCH 140/238] Revert "Fixing Copyright and update some of the repositories in bzl files" This reverts commit 5ff593d37d42c813044c783b92556aa07599e442. --- BUILD | 11 ++++++++++- WORKSPACE | 2 +- bazel-bin | 1 - bazel-gnoi | 1 - bazel-out | 1 - bazel-testlogs | 1 - bgp/BUILD | 2 +- cert/BUILD | 2 +- common/BUILD | 2 +- diag/BUILD | 2 +- factory_reset/BUILD | 2 +- file/BUILD | 2 +- gnoi_infra_deps.bzl | 44 ++++++++++++++++++++--------------------- interface/BUILD | 2 +- layer2/BUILD | 2 +- mpls/BUILD | 2 +- os/BUILD | 2 +- otdr/BUILD | 2 +- system/BUILD | 19 +++--------------- types/BUILD | 2 +- wavelength_router/BUILD | 2 +- 21 files changed, 48 insertions(+), 58 deletions(-) delete mode 120000 bazel-bin delete mode 120000 bazel-gnoi delete mode 120000 bazel-out delete mode 120000 bazel-testlogs diff --git a/BUILD b/BUILD index 57616d15..7d097421 100644 --- a/BUILD +++ b/BUILD @@ -1,4 +1,4 @@ -# Copyright 2021 Google LLC +# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -20,3 +20,12 @@ package( ) exports_files(["LICENSE"]) + +# copybara:insert_begin(For format.sh script) +# load("@com_github_bazelbuild_buildtools//buildifier:def.bzl", "buildifier") +# +# buildifier( +# name = "buildifier", +# ) +# copybara:insert_end + diff --git a/WORKSPACE b/WORKSPACE index efad5d99..8809456e 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -1,4 +1,4 @@ -# Copyright 2021 Google LLC +# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/bazel-bin b/bazel-bin deleted file mode 120000 index 3fdbec68..00000000 --- a/bazel-bin +++ /dev/null @@ -1 +0,0 @@ -/usr/local/google/home/vpunati/.cache/bazel/_bazel_vpunati/74a6b93027ff75445a1a363a61de2133/execroot/gnoi/bazel-out/k8-fastbuild/bin \ No newline at end of file diff --git a/bazel-gnoi b/bazel-gnoi deleted file mode 120000 index 05758ff0..00000000 --- a/bazel-gnoi +++ /dev/null @@ -1 +0,0 @@ -/usr/local/google/home/vpunati/.cache/bazel/_bazel_vpunati/74a6b93027ff75445a1a363a61de2133/execroot/gnoi \ No newline at end of file diff --git a/bazel-out b/bazel-out deleted file mode 120000 index 8a5b93e2..00000000 --- a/bazel-out +++ /dev/null @@ -1 +0,0 @@ -/usr/local/google/home/vpunati/.cache/bazel/_bazel_vpunati/74a6b93027ff75445a1a363a61de2133/execroot/gnoi/bazel-out \ No newline at end of file diff --git a/bazel-testlogs b/bazel-testlogs deleted file mode 120000 index 4486c79a..00000000 --- a/bazel-testlogs +++ /dev/null @@ -1 +0,0 @@ -/usr/local/google/home/vpunati/.cache/bazel/_bazel_vpunati/74a6b93027ff75445a1a363a61de2133/execroot/gnoi/bazel-out/k8-fastbuild/testlogs \ No newline at end of file diff --git a/bgp/BUILD b/bgp/BUILD index cbf57259..f4b9be16 100644 --- a/bgp/BUILD +++ b/bgp/BUILD @@ -1,4 +1,4 @@ -#Copyright 2021 Google LLC +#Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/cert/BUILD b/cert/BUILD index db0fa9ae..e6529956 100644 --- a/cert/BUILD +++ b/cert/BUILD @@ -1,4 +1,4 @@ -#Copyright 2021 Google LLC +#Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/common/BUILD b/common/BUILD index 44389503..ea198e6d 100644 --- a/common/BUILD +++ b/common/BUILD @@ -1,4 +1,4 @@ -#Copyright 2021 Google LLC +#Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/diag/BUILD b/diag/BUILD index 7a7b3745..7895d2f9 100644 --- a/diag/BUILD +++ b/diag/BUILD @@ -1,4 +1,4 @@ -#Copyright 2021 Google LLC +#Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/factory_reset/BUILD b/factory_reset/BUILD index f7c9a7b5..7ee115c7 100644 --- a/factory_reset/BUILD +++ b/factory_reset/BUILD @@ -1,4 +1,4 @@ -#Copyright 2021 Google LLC +#Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/file/BUILD b/file/BUILD index 93bb504b..59a15b6b 100644 --- a/file/BUILD +++ b/file/BUILD @@ -1,4 +1,4 @@ -#Copyright 2021 Google LLC +#Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/gnoi_infra_deps.bzl b/gnoi_infra_deps.bzl index 35f2f130..b8949200 100644 --- a/gnoi_infra_deps.bzl +++ b/gnoi_infra_deps.bzl @@ -1,4 +1,4 @@ -# Copyright 2021 Google LLC +# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -21,48 +21,46 @@ def gnoi_infra_deps(): """Declare the third-party dependencies necessary to build GNOI infrastructure""" if not native.existing_rule("com_github_grpc_grpc"): - http_archive( + git_repository( name = "com_github_grpc_grpc", - # Move to newer commit to avoid the use of com_github_google_re2. - url = "https://github.com/grpc/grpc/archive/565520443bdbda0b8ac28337a4904f3f20276305.zip", - strip_prefix = "grpc-565520443bdbda0b8ac28337a4904f3f20276305", - sha256 = "7206cc8e4511620fe70da7234bc98d6a4cd2eb226a7914f68fdbd991ffe38d34", - ) + remote = "https://github.com/grpc/grpc", + commit = "638c34ceba0c050574f473745a1316b3a9cf4136", + shallow_since = "1606864594 -0800", + ) if not native.existing_rule("com_google_absl"): http_archive( name = "com_google_absl", - url = "https://github.com/abseil/abseil-cpp/archive/refs/tags/20210324.rc1.tar.gz", - strip_prefix = "abseil-cpp-20210324.rc1", - sha256 = "7e0cf185ddd0459e8e55a9c51a548e859d98c0d7533de374bf038e4c7434f682", + sha256 = "f41868f7a938605c92936230081175d1eae87f6ea2c248f41077c8f88316f111", + strip_prefix = "abseil-cpp-20200225.2", + url = "https://github.com/abseil/abseil-cpp/archive/20200225.2.tar.gz", ) if not native.existing_rule("com_google_googletest"): http_archive( name = "com_google_googletest", - urls = ["https://github.com/google/googletest/archive/release-1.10.0.tar.gz"], - strip_prefix = "googletest-release-1.10.0", sha256 = "9dc9157a9a1551ec7a7e43daea9a694a0bb5fb8bec81235d8a1e6ef64c716dcb", + strip_prefix = "googletest-release-1.10.0", + urls = ["https://github.com/google/googletest/archive/release-1.10.0.tar.gz"], ) if not native.existing_rule("com_google_protobuf"): http_archive( name = "com_google_protobuf", - url = "https://github.com/protocolbuffers/protobuf/releases/download/v3.14.0/protobuf-all-3.14.0.tar.gz", - strip_prefix = "protobuf-3.14.0", - sha256 = "6dd0f6b20094910fbb7f1f7908688df01af2d4f6c5c21331b9f636048674aebf", + sha256 = "1a83f0525e5c8096b7b812181865da3c8637de88f9777056cefbf51a1eb0b83f", + strip_prefix = "protobuf-3.12.3", + url = "https://github.com/protocolbuffers/protobuf/releases/download/v3.12.3/protobuf-all-3.12.3.tar.gz", ) if not native.existing_rule("com_googlesource_code_re2"): http_archive( name = "com_googlesource_code_re2", - # Newest commit on "absl" branch as of 2021-03-25. - url = "https://github.com/google/re2/archive/72f110e82ccf3a9ae1c9418bfb447c3ba1cf95c2.zip", - strip_prefix = "re2-72f110e82ccf3a9ae1c9418bfb447c3ba1cf95c2", - sha256 = "146bf2e8796317843106a90543356c1baa4b48236a572e39971b839172f6270e", + sha256 = "2e9489a31ae007c81e90e8ec8a15d62d58a9c18d4fd1603f6441ef248556b41f", + strip_prefix = "re2-2020-07-06", + url = "https://github.com/google/re2/archive/2020-07-06.tar.gz", ) if not native.existing_rule("com_google_googleapis"): - http_archive( + git_repository( name = "com_google_googleapis", - url = "https://github.com/googleapis/googleapis/archive/f405c718d60484124808adb7fb5963974d654bb4.zip", - strip_prefix = "googleapis-f405c718d60484124808adb7fb5963974d654bb4", - sha256 = "406b64643eede84ce3e0821a1d01f66eaf6254e79cb9c4f53be9054551935e79", + commit = "dd244bb3a5023a4a9290b21dae6b99020c026123", + remote = "https://github.com/googleapis/googleapis", + shallow_since = "1591402163 -0700", ) if not native.existing_rule("rules_cc"): git_repository( diff --git a/interface/BUILD b/interface/BUILD index 3ae12966..9379161b 100644 --- a/interface/BUILD +++ b/interface/BUILD @@ -1,4 +1,4 @@ -#Copyright 2021 Google LLC +#Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/layer2/BUILD b/layer2/BUILD index 49b29e82..7df3b062 100644 --- a/layer2/BUILD +++ b/layer2/BUILD @@ -1,4 +1,4 @@ -#Copyright 2021 Google LLC +#Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/mpls/BUILD b/mpls/BUILD index 94f7fd00..a29ae4c8 100644 --- a/mpls/BUILD +++ b/mpls/BUILD @@ -1,4 +1,4 @@ -#Copyright 2021 Google LLC +#Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/os/BUILD b/os/BUILD index 8b2ad4f1..fb9e80d2 100644 --- a/os/BUILD +++ b/os/BUILD @@ -1,4 +1,4 @@ -#Copyright 2021 Google LLC +#Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/otdr/BUILD b/otdr/BUILD index cef2ea25..3cc40d6a 100644 --- a/otdr/BUILD +++ b/otdr/BUILD @@ -1,4 +1,4 @@ -#Copyright 2021 Google LLC +#Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/system/BUILD b/system/BUILD index 1d785e53..0d083201 100644 --- a/system/BUILD +++ b/system/BUILD @@ -1,19 +1,6 @@ -#Copyright 2021 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Supporting infrastructure for implementing and testing PINS. -# +# A generic network operational interface gRPC service for interacting with +# network devices based on OpenConfig models. This is for the gNOI APIs used +# to perform diagnostic operations on a network device. load("@com_github_grpc_grpc//bazel:cc_grpc_library.bzl", "cc_grpc_library") diff --git a/types/BUILD b/types/BUILD index cf85486e..3952806a 100644 --- a/types/BUILD +++ b/types/BUILD @@ -1,4 +1,4 @@ -#Copyright 2021 Google LLC +#Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/wavelength_router/BUILD b/wavelength_router/BUILD index 2a5b5dc9..36440b59 100644 --- a/wavelength_router/BUILD +++ b/wavelength_router/BUILD @@ -1,4 +1,4 @@ -#Copyright 2021 Google LLC +#Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. From 7b065e05334dcd62298c2aa593d16b4df3aa0b73 Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 16:58:50 +0530 Subject: [PATCH 141/238] Revert "Refine component status" This reverts commit 31d7aaa955b5ed46f317d2b6e34d411e4f69bebe. --- healthz/healthz.pb.go | 245 +++++++++++++----------------------------- healthz/healthz.proto | 14 +-- 2 files changed, 79 insertions(+), 180 deletions(-) diff --git a/healthz/healthz.pb.go b/healthz/healthz.pb.go index 32287339..718d5276 100644 --- a/healthz/healthz.pb.go +++ b/healthz/healthz.pb.go @@ -44,53 +44,53 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) -type Status int32 +type GetResponse_Status int32 const ( - Status_STATUS_UNSPECIFIED Status = 0 // The path doesn't support healthz - Status_STATUS_HEALTHLY Status = 1 // The path is healthy - Status_STATUS_UNHEALTHY Status = 2 // The path is unhealthy + GetResponse_UNSPECIFIED GetResponse_Status = 0 // The path doesn't support healthz or the status is unknown. + GetResponse_HEALTHLY GetResponse_Status = 1 // The path is healthy + GetResponse_UNHEALTHY GetResponse_Status = 2 // The path is unhealthy ) -// Enum value maps for Status. +// Enum value maps for GetResponse_Status. var ( - Status_name = map[int32]string{ - 0: "STATUS_UNSPECIFIED", - 1: "STATUS_HEALTHLY", - 2: "STATUS_UNHEALTHY", + GetResponse_Status_name = map[int32]string{ + 0: "UNSPECIFIED", + 1: "HEALTHLY", + 2: "UNHEALTHY", } - Status_value = map[string]int32{ - "STATUS_UNSPECIFIED": 0, - "STATUS_HEALTHLY": 1, - "STATUS_UNHEALTHY": 2, + GetResponse_Status_value = map[string]int32{ + "UNSPECIFIED": 0, + "HEALTHLY": 1, + "UNHEALTHY": 2, } ) -func (x Status) Enum() *Status { - p := new(Status) +func (x GetResponse_Status) Enum() *GetResponse_Status { + p := new(GetResponse_Status) *p = x return p } -func (x Status) String() string { +func (x GetResponse_Status) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } -func (Status) Descriptor() protoreflect.EnumDescriptor { +func (GetResponse_Status) Descriptor() protoreflect.EnumDescriptor { return file_healthz_healthz_proto_enumTypes[0].Descriptor() } -func (Status) Type() protoreflect.EnumType { +func (GetResponse_Status) Type() protoreflect.EnumType { return &file_healthz_healthz_proto_enumTypes[0] } -func (x Status) Number() protoreflect.EnumNumber { +func (x GetResponse_Status) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } -// Deprecated: Use Status.Descriptor instead. -func (Status) EnumDescriptor() ([]byte, []int) { - return file_healthz_healthz_proto_rawDescGZIP(), []int{0} +// Deprecated: Use GetResponse_Status.Descriptor instead. +func (GetResponse_Status) EnumDescriptor() ([]byte, []int) { + return file_healthz_healthz_proto_rawDescGZIP(), []int{1, 0} } type GetRequest struct { @@ -143,24 +143,20 @@ func (x *GetRequest) GetPath() *types.Path { return nil } -type ComponentStatus struct { +type GetResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Path *types.Path `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` // path of subcomponent. - // Subcomponents that are aggregated by this status. - Subcomponents []*ComponentStatus `protobuf:"bytes,2,rep,name=subcomponents,proto3" json:"subcomponents,omitempty"` - // Status of this component. - Status Status `protobuf:"varint,3,opt,name=status,proto3,enum=gnoi.healthz.Status" json:"status,omitempty"` + Status GetResponse_Status `protobuf:"varint,1,opt,name=status,proto3,enum=gnoi.healthz.GetResponse_Status" json:"status,omitempty"` // Status of the path. // Opaque data for how the healthcheck is implemented. This can be any proto // defined by the vendor. This could be the equivalent to outputs like // "show tech" or core files or any other diagnostic data. - Healthz *anypb.Any `protobuf:"bytes,4,opt,name=healthz,proto3" json:"healthz,omitempty"` + Healthz *anypb.Any `protobuf:"bytes,2,opt,name=healthz,proto3" json:"healthz,omitempty"` } -func (x *ComponentStatus) Reset() { - *x = ComponentStatus{} +func (x *GetResponse) Reset() { + *x = GetResponse{} if protoimpl.UnsafeEnabled { mi := &file_healthz_healthz_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -168,13 +164,13 @@ func (x *ComponentStatus) Reset() { } } -func (x *ComponentStatus) String() string { +func (x *GetResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ComponentStatus) ProtoMessage() {} +func (*GetResponse) ProtoMessage() {} -func (x *ComponentStatus) ProtoReflect() protoreflect.Message { +func (x *GetResponse) ProtoReflect() protoreflect.Message { mi := &file_healthz_healthz_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -186,131 +182,58 @@ func (x *ComponentStatus) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ComponentStatus.ProtoReflect.Descriptor instead. -func (*ComponentStatus) Descriptor() ([]byte, []int) { +// Deprecated: Use GetResponse.ProtoReflect.Descriptor instead. +func (*GetResponse) Descriptor() ([]byte, []int) { return file_healthz_healthz_proto_rawDescGZIP(), []int{1} } -func (x *ComponentStatus) GetPath() *types.Path { - if x != nil { - return x.Path - } - return nil -} - -func (x *ComponentStatus) GetSubcomponents() []*ComponentStatus { - if x != nil { - return x.Subcomponents - } - return nil -} - -func (x *ComponentStatus) GetStatus() Status { +func (x *GetResponse) GetStatus() GetResponse_Status { if x != nil { return x.Status } - return Status_STATUS_UNSPECIFIED + return GetResponse_UNSPECIFIED } -func (x *ComponentStatus) GetHealthz() *anypb.Any { +func (x *GetResponse) GetHealthz() *anypb.Any { if x != nil { return x.Healthz } return nil } -type GetResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Component *ComponentStatus `protobuf:"bytes,1,opt,name=component,proto3" json:"component,omitempty"` -} - -func (x *GetResponse) Reset() { - *x = GetResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_healthz_healthz_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetResponse) ProtoMessage() {} - -func (x *GetResponse) ProtoReflect() protoreflect.Message { - mi := &file_healthz_healthz_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetResponse.ProtoReflect.Descriptor instead. -func (*GetResponse) Descriptor() ([]byte, []int) { - return file_healthz_healthz_proto_rawDescGZIP(), []int{2} -} - -func (x *GetResponse) GetComponent() *ComponentStatus { - if x != nil { - return x.Component - } - return nil -} - var File_healthz_healthz_proto protoreflect.FileDescriptor var file_healthz_healthz_proto_rawDesc = []byte{ 0x0a, 0x15, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x7a, 0x2f, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x7a, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x68, 0x65, - 0x61, 0x6c, 0x74, 0x68, 0x7a, 0x1a, 0x2c, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, - 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x67, 0x6e, 0x6f, - 0x69, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x32, + 0x61, 0x6c, 0x74, 0x68, 0x7a, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x1a, 0x2c, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, + 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x67, 0x6e, 0x6f, 0x69, 0x2f, 0x74, 0x79, 0x70, + 0x65, 0x73, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x32, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x24, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x50, 0x61, 0x74, 0x68, 0x52, 0x04, 0x70, 0x61, - 0x74, 0x68, 0x22, 0xda, 0x01, 0x0a, 0x0f, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, - 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x24, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x74, 0x79, 0x70, 0x65, - 0x73, 0x2e, 0x50, 0x61, 0x74, 0x68, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x43, 0x0a, 0x0d, - 0x73, 0x75, 0x62, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x02, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x68, 0x65, 0x61, 0x6c, 0x74, - 0x68, 0x7a, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x53, 0x74, 0x61, 0x74, - 0x75, 0x73, 0x52, 0x0d, 0x73, 0x75, 0x62, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, - 0x73, 0x12, 0x2c, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x0e, 0x32, 0x14, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x7a, - 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, - 0x2e, 0x0a, 0x07, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x7a, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x07, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x7a, 0x22, - 0x4a, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3b, - 0x0a, 0x09, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x7a, - 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, - 0x52, 0x09, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x2a, 0x4b, 0x0a, 0x06, 0x53, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x16, 0x0a, 0x12, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, - 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x13, 0x0a, - 0x0f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x48, 0x45, 0x41, 0x4c, 0x54, 0x48, 0x4c, 0x59, - 0x10, 0x01, 0x12, 0x14, 0x0a, 0x10, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x48, - 0x45, 0x41, 0x4c, 0x54, 0x48, 0x59, 0x10, 0x02, 0x32, 0x47, 0x0a, 0x07, 0x48, 0x65, 0x61, 0x6c, - 0x74, 0x68, 0x7a, 0x12, 0x3c, 0x0a, 0x03, 0x47, 0x65, 0x74, 0x12, 0x18, 0x2e, 0x67, 0x6e, 0x6f, - 0x69, 0x2e, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x7a, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x68, 0x65, 0x61, 0x6c, - 0x74, 0x68, 0x7a, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x00, 0x42, 0x2c, 0x5a, 0x22, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, - 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x67, 0x6e, 0x6f, 0x69, 0x2f, - 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x7a, 0xd2, 0x3e, 0x05, 0x31, 0x2e, 0x30, 0x2e, 0x30, 0x62, - 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x74, 0x68, 0x22, 0xaf, 0x01, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x38, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0e, 0x32, 0x20, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, + 0x7a, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x53, 0x74, + 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x2e, 0x0a, 0x07, + 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x7a, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, + 0x41, 0x6e, 0x79, 0x52, 0x07, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x7a, 0x22, 0x36, 0x0a, 0x06, + 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x0f, 0x0a, 0x0b, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, + 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x48, 0x45, 0x41, 0x4c, 0x54, + 0x48, 0x4c, 0x59, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x55, 0x4e, 0x48, 0x45, 0x41, 0x4c, 0x54, + 0x48, 0x59, 0x10, 0x02, 0x32, 0x47, 0x0a, 0x07, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x7a, 0x12, + 0x3c, 0x0a, 0x03, 0x47, 0x65, 0x74, 0x12, 0x18, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x68, 0x65, + 0x61, 0x6c, 0x74, 0x68, 0x7a, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x19, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x7a, 0x2e, + 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x2c, 0x5a, + 0x22, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, + 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x67, 0x6e, 0x6f, 0x69, 0x2f, 0x68, 0x65, 0x61, 0x6c, + 0x74, 0x68, 0x7a, 0xd2, 0x3e, 0x05, 0x31, 0x2e, 0x30, 0x2e, 0x30, 0x62, 0x06, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x33, } var ( @@ -326,29 +249,25 @@ func file_healthz_healthz_proto_rawDescGZIP() []byte { } var file_healthz_healthz_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_healthz_healthz_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_healthz_healthz_proto_msgTypes = make([]protoimpl.MessageInfo, 2) var file_healthz_healthz_proto_goTypes = []interface{}{ - (Status)(0), // 0: gnoi.healthz.Status + (GetResponse_Status)(0), // 0: gnoi.healthz.GetResponse.Status (*GetRequest)(nil), // 1: gnoi.healthz.GetRequest - (*ComponentStatus)(nil), // 2: gnoi.healthz.ComponentStatus - (*GetResponse)(nil), // 3: gnoi.healthz.GetResponse - (*types.Path)(nil), // 4: gnoi.types.Path - (*anypb.Any)(nil), // 5: google.protobuf.Any + (*GetResponse)(nil), // 2: gnoi.healthz.GetResponse + (*types.Path)(nil), // 3: gnoi.types.Path + (*anypb.Any)(nil), // 4: google.protobuf.Any } var file_healthz_healthz_proto_depIdxs = []int32{ - 4, // 0: gnoi.healthz.GetRequest.path:type_name -> gnoi.types.Path - 4, // 1: gnoi.healthz.ComponentStatus.path:type_name -> gnoi.types.Path - 2, // 2: gnoi.healthz.ComponentStatus.subcomponents:type_name -> gnoi.healthz.ComponentStatus - 0, // 3: gnoi.healthz.ComponentStatus.status:type_name -> gnoi.healthz.Status - 5, // 4: gnoi.healthz.ComponentStatus.healthz:type_name -> google.protobuf.Any - 2, // 5: gnoi.healthz.GetResponse.component:type_name -> gnoi.healthz.ComponentStatus - 1, // 6: gnoi.healthz.Healthz.Get:input_type -> gnoi.healthz.GetRequest - 3, // 7: gnoi.healthz.Healthz.Get:output_type -> gnoi.healthz.GetResponse - 7, // [7:8] is the sub-list for method output_type - 6, // [6:7] is the sub-list for method input_type - 6, // [6:6] is the sub-list for extension type_name - 6, // [6:6] is the sub-list for extension extendee - 0, // [0:6] is the sub-list for field type_name + 3, // 0: gnoi.healthz.GetRequest.path:type_name -> gnoi.types.Path + 0, // 1: gnoi.healthz.GetResponse.status:type_name -> gnoi.healthz.GetResponse.Status + 4, // 2: gnoi.healthz.GetResponse.healthz:type_name -> google.protobuf.Any + 1, // 3: gnoi.healthz.Healthz.Get:input_type -> gnoi.healthz.GetRequest + 2, // 4: gnoi.healthz.Healthz.Get:output_type -> gnoi.healthz.GetResponse + 4, // [4:5] is the sub-list for method output_type + 3, // [3:4] is the sub-list for method input_type + 3, // [3:3] is the sub-list for extension type_name + 3, // [3:3] is the sub-list for extension extendee + 0, // [0:3] is the sub-list for field type_name } func init() { file_healthz_healthz_proto_init() } @@ -370,18 +289,6 @@ func file_healthz_healthz_proto_init() { } } file_healthz_healthz_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ComponentStatus); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_healthz_healthz_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetResponse); i { case 0: return &v.state @@ -400,7 +307,7 @@ func file_healthz_healthz_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_healthz_healthz_proto_rawDesc, NumEnums: 1, - NumMessages: 3, + NumMessages: 2, NumExtensions: 0, NumServices: 1, }, diff --git a/healthz/healthz.proto b/healthz/healthz.proto index 8b529d64..fed984ae 100644 --- a/healthz/healthz.proto +++ b/healthz/healthz.proto @@ -56,18 +56,10 @@ enum Status { STATUS_UNHEALTHY = 2; // The path is unhealthy } -message ComponentStatus { - types.Path path = 1; // path of subcomponent. - // Subcomponents that are aggregated by this status. - repeated ComponentStatus subcomponents = 2; - // Status of this component. - Status status = 3; +message GetResponse { + Status status = 1; // Status of the path. // Opaque data for how the healthcheck is implemented. This can be any proto // defined by the vendor. This could be the equivalent to outputs like // "show tech" or core files or any other diagnostic data. - google.protobuf.Any healthz = 4; -} - -message GetResponse { - ComponentStatus component = 1; + google.protobuf.Any healthz = 2; } From c9082a01002ae26c82ac80af5b39868a1e93d575 Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 16:58:50 +0530 Subject: [PATCH 142/238] Revert "update heatlhz to pass lint" This reverts commit f47a96504481897f71a1fdb5dbb1c8bee2e7fa6b. --- healthz/healthz.proto | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/healthz/healthz.proto b/healthz/healthz.proto index fed984ae..e8086919 100644 --- a/healthz/healthz.proto +++ b/healthz/healthz.proto @@ -22,12 +22,11 @@ syntax = "proto3"; - -package gnoi.healthz; - import "github.com/openconfig/gnoi/types/types.proto"; import "google/protobuf/any.proto"; +package gnoi.healthz; + option go_package = "github.com/openconfig/gnoi/healthz"; option (types.gnoi_version) = "1.0.0"; @@ -50,13 +49,12 @@ message GetRequest { types.Path path = 1; } -enum Status { - STATUS_UNSPECIFIED = 0; // The path doesn't support healthz - STATUS_HEALTHLY = 1; // The path is healthy - STATUS_UNHEALTHY = 2; // The path is unhealthy -} - message GetResponse { + enum Status { + UNSPECIFIED = 0; // The path doesn't support healthz or unknown status. + HEALTHLY = 1; // The path is healthy + UNHEALTHY = 2; // The path is unhealthy + } Status status = 1; // Status of the path. // Opaque data for how the healthcheck is implemented. This can be any proto // defined by the vendor. This could be the equivalent to outputs like From 5acff99d65b79eac0b4e39d3c4d1ac31c3290192 Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 16:58:51 +0530 Subject: [PATCH 143/238] Revert "update healthz proto" This reverts commit b59322f3d80c6a422d9f300e750203fab734ac9c. --- healthz/healthz.proto | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/healthz/healthz.proto b/healthz/healthz.proto index e8086919..bebeaddb 100644 --- a/healthz/healthz.proto +++ b/healthz/healthz.proto @@ -22,13 +22,13 @@ syntax = "proto3"; -import "github.com/openconfig/gnoi/types/types.proto"; -import "google/protobuf/any.proto"; - package gnoi.healthz; option go_package = "github.com/openconfig/gnoi/healthz"; +import "github.com/openconfig/gnoi/types/types.proto"; +import "google/protobuf/any.proto"; + option (types.gnoi_version) = "1.0.0"; // The Healthz service provides access to the status of a path on the From 419bb340f443686fadd56e59932543288464d066 Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 16:58:52 +0530 Subject: [PATCH 144/238] Revert "Update README.md" This reverts commit b00b295452175c767460bc81446629199887996e. --- healthz/README.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/healthz/README.md b/healthz/README.md index 9719f52c..cb5fec32 100644 --- a/healthz/README.md +++ b/healthz/README.md @@ -14,16 +14,16 @@ or reproduce issues. ## Design -* The service definition provides a Get method which is correlated with a - /component in the OC tree. The Get method is responsible for getting the - current status of the requested component path. This will cause the system - to fetch the current state of component this may entail running specific - validations and gathering any relevant status of the component to reflect - the "health check" - -* The internal design details of the "health check" and the frequency of the - health check are up to the implementor to determine. This presentation of - the status in OC is proposed to be modeled as +* The service definition provides a Get method which is correlated with a + /component in the OC tree. The Get method is responsible for getting the + current status of the requested component path. This will cause the system + to fetch the current state of component this may entail running specific + validations and gathering any relevant status of the component to reflect + the "health check" + +* The internal design details of the "health check" and the frequency of the + health check are up to the implementor to determine. This presentation of + the status in OC is proposed to be modeled as ```yang component/healthz/status = Enum From 86cb376ccdd01b920f0ce63787f7d0d70cf5d4b3 Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 16:58:53 +0530 Subject: [PATCH 145/238] Revert "Creation of healthz service for gNOI" This reverts commit d8ecac0882a27aa43a9a9aed31d1b230e788932f. --- compile_protos.sh | 6 +- healthz/README.md | 47 ------ healthz/healthz.pb.go | 323 ------------------------------------- healthz/healthz.proto | 63 -------- healthz/healthz_grpc.pb.go | 105 ------------ 5 files changed, 3 insertions(+), 541 deletions(-) delete mode 100644 healthz/README.md delete mode 100644 healthz/healthz.pb.go delete mode 100644 healthz/healthz.proto delete mode 100644 healthz/healthz_grpc.pb.go diff --git a/compile_protos.sh b/compile_protos.sh index bf00e647..bc4aa2ba 100755 --- a/compile_protos.sh +++ b/compile_protos.sh @@ -1,10 +1,10 @@ -#!/bin/bash +#!/bin/sh set -euo pipefail proto_imports=".:${GOPATH}/src/github.com/google/protobuf/src:${GOPATH}/src" # Go -for p in types common diag bgp cert file healthz interface layer2 mpls system otdr wavelength_router; do - protoc -I="${proto_imports}" --go-grpc_out=. --go-grpc_opt=paths=source_relative --go_out=. --go_opt=paths=source_relative $p/$p.proto +for p in types common diag bgp cert file interface layer2 mpls system os otdr wavelength_router; do + protoc -I=$proto_imports --go_out=. --go_opt=paths=source_relative --go-grpc_out=. --go-grpc_opt=paths=source_relative $p/$p.proto done diff --git a/healthz/README.md b/healthz/README.md deleted file mode 100644 index cb5fec32..00000000 --- a/healthz/README.md +++ /dev/null @@ -1,47 +0,0 @@ -# Healthz Overview - -The purpose of Healthz is to allow a component inside of a system to report its -health. The concept of asking "Are you healthy?" is a general design principle -in distributed systems. - -The ability to also include "implementation specific" details about the health -of the system or component is very standard for network devices in the form for -"show tech", "diag" or "debug" commands. These are very useful for getting -useful diagnostics about the system state to the implementers. Healthz exposes -these interfaces as queriable endpoints to allow operators to validate "health" -on components and if "unhealthy" gather implementor specific data to help triage -or reproduce issues. - -## Design - -* The service definition provides a Get method which is correlated with a - /component in the OC tree. The Get method is responsible for getting the - current status of the requested component path. This will cause the system - to fetch the current state of component this may entail running specific - validations and gathering any relevant status of the component to reflect - the "health check" - -* The internal design details of the "health check" and the frequency of the - health check are up to the implementor to determine. This presentation of - the status in OC is proposed to be modeled as - -```yang -component/healthz/status = Enum -component/healthz/last-unhealthy = Timestamp -component/healthz/unhealthy_count = Int64 -``` - -## Use Cases - -### Evaluate the long term health of the component - -The health of a component is critical to overall system health. The ability to -monitor the status of the component in the system has traditionally been tracked -via 'show commands' and some form of alarms via syslog or snmptraps. - -Healthz provides the implementtor the ability to react to issues and "store" the -metadata then provide a signal via streaming telemetry that this component has -experienced an unhealthy segment. The operator can then perform a 'Get' on the -component to fetch associated metadata for the event. If the event is transient -in nature, the counter will continue to increment and allow for operator to -observe this component is consistently unhealthy. diff --git a/healthz/healthz.pb.go b/healthz/healthz.pb.go deleted file mode 100644 index 718d5276..00000000 --- a/healthz/healthz.pb.go +++ /dev/null @@ -1,323 +0,0 @@ -// -// Copyright 2017 Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// - -// Generic Network Operation Interface, GNOI, defines a set of RPC's used for -// the operational aspects of network targets. These services are meant to be -// used in conjunction with GNMI for all target state and operational aspects -// of a network target. The gnoi.system.Service is the only mandatory vendor -// implementation. - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.26.0 -// protoc v3.12.4 -// source: healthz/healthz.proto - -package healthz - -import ( - types "github.com/openconfig/gnoi/types" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - anypb "google.golang.org/protobuf/types/known/anypb" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type GetResponse_Status int32 - -const ( - GetResponse_UNSPECIFIED GetResponse_Status = 0 // The path doesn't support healthz or the status is unknown. - GetResponse_HEALTHLY GetResponse_Status = 1 // The path is healthy - GetResponse_UNHEALTHY GetResponse_Status = 2 // The path is unhealthy -) - -// Enum value maps for GetResponse_Status. -var ( - GetResponse_Status_name = map[int32]string{ - 0: "UNSPECIFIED", - 1: "HEALTHLY", - 2: "UNHEALTHY", - } - GetResponse_Status_value = map[string]int32{ - "UNSPECIFIED": 0, - "HEALTHLY": 1, - "UNHEALTHY": 2, - } -) - -func (x GetResponse_Status) Enum() *GetResponse_Status { - p := new(GetResponse_Status) - *p = x - return p -} - -func (x GetResponse_Status) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (GetResponse_Status) Descriptor() protoreflect.EnumDescriptor { - return file_healthz_healthz_proto_enumTypes[0].Descriptor() -} - -func (GetResponse_Status) Type() protoreflect.EnumType { - return &file_healthz_healthz_proto_enumTypes[0] -} - -func (x GetResponse_Status) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use GetResponse_Status.Descriptor instead. -func (GetResponse_Status) EnumDescriptor() ([]byte, []int) { - return file_healthz_healthz_proto_rawDescGZIP(), []int{1, 0} -} - -type GetRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Path defines the component to try to fetch healthz state for. This will - // perform a full health check cycle for the component and return the status - // as well as any associated healthz data. - Path *types.Path `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` -} - -func (x *GetRequest) Reset() { - *x = GetRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_healthz_healthz_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetRequest) ProtoMessage() {} - -func (x *GetRequest) ProtoReflect() protoreflect.Message { - mi := &file_healthz_healthz_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetRequest.ProtoReflect.Descriptor instead. -func (*GetRequest) Descriptor() ([]byte, []int) { - return file_healthz_healthz_proto_rawDescGZIP(), []int{0} -} - -func (x *GetRequest) GetPath() *types.Path { - if x != nil { - return x.Path - } - return nil -} - -type GetResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Status GetResponse_Status `protobuf:"varint,1,opt,name=status,proto3,enum=gnoi.healthz.GetResponse_Status" json:"status,omitempty"` // Status of the path. - // Opaque data for how the healthcheck is implemented. This can be any proto - // defined by the vendor. This could be the equivalent to outputs like - // "show tech" or core files or any other diagnostic data. - Healthz *anypb.Any `protobuf:"bytes,2,opt,name=healthz,proto3" json:"healthz,omitempty"` -} - -func (x *GetResponse) Reset() { - *x = GetResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_healthz_healthz_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetResponse) ProtoMessage() {} - -func (x *GetResponse) ProtoReflect() protoreflect.Message { - mi := &file_healthz_healthz_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetResponse.ProtoReflect.Descriptor instead. -func (*GetResponse) Descriptor() ([]byte, []int) { - return file_healthz_healthz_proto_rawDescGZIP(), []int{1} -} - -func (x *GetResponse) GetStatus() GetResponse_Status { - if x != nil { - return x.Status - } - return GetResponse_UNSPECIFIED -} - -func (x *GetResponse) GetHealthz() *anypb.Any { - if x != nil { - return x.Healthz - } - return nil -} - -var File_healthz_healthz_proto protoreflect.FileDescriptor - -var file_healthz_healthz_proto_rawDesc = []byte{ - 0x0a, 0x15, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x7a, 0x2f, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, - 0x7a, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x68, 0x65, - 0x61, 0x6c, 0x74, 0x68, 0x7a, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x1a, 0x2c, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, - 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x67, 0x6e, 0x6f, 0x69, 0x2f, 0x74, 0x79, 0x70, - 0x65, 0x73, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x32, - 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x24, 0x0a, 0x04, - 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x67, 0x6e, 0x6f, - 0x69, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x50, 0x61, 0x74, 0x68, 0x52, 0x04, 0x70, 0x61, - 0x74, 0x68, 0x22, 0xaf, 0x01, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x38, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0e, 0x32, 0x20, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, - 0x7a, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x53, 0x74, - 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x2e, 0x0a, 0x07, - 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x7a, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x41, 0x6e, 0x79, 0x52, 0x07, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x7a, 0x22, 0x36, 0x0a, 0x06, - 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x0f, 0x0a, 0x0b, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, - 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x48, 0x45, 0x41, 0x4c, 0x54, - 0x48, 0x4c, 0x59, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x55, 0x4e, 0x48, 0x45, 0x41, 0x4c, 0x54, - 0x48, 0x59, 0x10, 0x02, 0x32, 0x47, 0x0a, 0x07, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x7a, 0x12, - 0x3c, 0x0a, 0x03, 0x47, 0x65, 0x74, 0x12, 0x18, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x68, 0x65, - 0x61, 0x6c, 0x74, 0x68, 0x7a, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x19, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x7a, 0x2e, - 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x2c, 0x5a, - 0x22, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, - 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x67, 0x6e, 0x6f, 0x69, 0x2f, 0x68, 0x65, 0x61, 0x6c, - 0x74, 0x68, 0x7a, 0xd2, 0x3e, 0x05, 0x31, 0x2e, 0x30, 0x2e, 0x30, 0x62, 0x06, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x33, -} - -var ( - file_healthz_healthz_proto_rawDescOnce sync.Once - file_healthz_healthz_proto_rawDescData = file_healthz_healthz_proto_rawDesc -) - -func file_healthz_healthz_proto_rawDescGZIP() []byte { - file_healthz_healthz_proto_rawDescOnce.Do(func() { - file_healthz_healthz_proto_rawDescData = protoimpl.X.CompressGZIP(file_healthz_healthz_proto_rawDescData) - }) - return file_healthz_healthz_proto_rawDescData -} - -var file_healthz_healthz_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_healthz_healthz_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_healthz_healthz_proto_goTypes = []interface{}{ - (GetResponse_Status)(0), // 0: gnoi.healthz.GetResponse.Status - (*GetRequest)(nil), // 1: gnoi.healthz.GetRequest - (*GetResponse)(nil), // 2: gnoi.healthz.GetResponse - (*types.Path)(nil), // 3: gnoi.types.Path - (*anypb.Any)(nil), // 4: google.protobuf.Any -} -var file_healthz_healthz_proto_depIdxs = []int32{ - 3, // 0: gnoi.healthz.GetRequest.path:type_name -> gnoi.types.Path - 0, // 1: gnoi.healthz.GetResponse.status:type_name -> gnoi.healthz.GetResponse.Status - 4, // 2: gnoi.healthz.GetResponse.healthz:type_name -> google.protobuf.Any - 1, // 3: gnoi.healthz.Healthz.Get:input_type -> gnoi.healthz.GetRequest - 2, // 4: gnoi.healthz.Healthz.Get:output_type -> gnoi.healthz.GetResponse - 4, // [4:5] is the sub-list for method output_type - 3, // [3:4] is the sub-list for method input_type - 3, // [3:3] is the sub-list for extension type_name - 3, // [3:3] is the sub-list for extension extendee - 0, // [0:3] is the sub-list for field type_name -} - -func init() { file_healthz_healthz_proto_init() } -func file_healthz_healthz_proto_init() { - if File_healthz_healthz_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_healthz_healthz_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_healthz_healthz_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_healthz_healthz_proto_rawDesc, - NumEnums: 1, - NumMessages: 2, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_healthz_healthz_proto_goTypes, - DependencyIndexes: file_healthz_healthz_proto_depIdxs, - EnumInfos: file_healthz_healthz_proto_enumTypes, - MessageInfos: file_healthz_healthz_proto_msgTypes, - }.Build() - File_healthz_healthz_proto = out.File - file_healthz_healthz_proto_rawDesc = nil - file_healthz_healthz_proto_goTypes = nil - file_healthz_healthz_proto_depIdxs = nil -} diff --git a/healthz/healthz.proto b/healthz/healthz.proto deleted file mode 100644 index bebeaddb..00000000 --- a/healthz/healthz.proto +++ /dev/null @@ -1,63 +0,0 @@ -// -// Copyright 2017 Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// - -// Generic Network Operation Interface, GNOI, defines a set of RPC's used for -// the operational aspects of network targets. These services are meant to be -// used in conjunction with GNMI for all target state and operational aspects -// of a network target. The gnoi.system.Service is the only mandatory vendor -// implementation. - -syntax = "proto3"; - -package gnoi.healthz; - -option go_package = "github.com/openconfig/gnoi/healthz"; - -import "github.com/openconfig/gnoi/types/types.proto"; -import "google/protobuf/any.proto"; - -option (types.gnoi_version) = "1.0.0"; - -// The Healthz service provides access to the status of a path on the -// system. Addtitionally it allows the implementor to provide path specific -// diagnositic data into the status return. -// -// Healthz is expected to work in conjunction with the component OC model. -service Healthz { - // Get will get health status for a gNMI path. If no status is available for - // the requested path an error will be returned. - rpc Get(GetRequest) returns (GetResponse) {} -} - -message GetRequest { - // Path defines the component to try to fetch healthz state for. This will - // perform a full health check cycle for the component and return the status - // as well as any associated healthz data. - types.Path path = 1; -} - -message GetResponse { - enum Status { - UNSPECIFIED = 0; // The path doesn't support healthz or unknown status. - HEALTHLY = 1; // The path is healthy - UNHEALTHY = 2; // The path is unhealthy - } - Status status = 1; // Status of the path. - // Opaque data for how the healthcheck is implemented. This can be any proto - // defined by the vendor. This could be the equivalent to outputs like - // "show tech" or core files or any other diagnostic data. - google.protobuf.Any healthz = 2; -} diff --git a/healthz/healthz_grpc.pb.go b/healthz/healthz_grpc.pb.go deleted file mode 100644 index 2c47252a..00000000 --- a/healthz/healthz_grpc.pb.go +++ /dev/null @@ -1,105 +0,0 @@ -// Code generated by protoc-gen-go-grpc. DO NOT EDIT. - -package healthz - -import ( - context "context" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" -) - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 - -// HealthzClient is the client API for Healthz service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. -type HealthzClient interface { - // Get will get health status for a gNMI path. If no status is available for - // the requested path an error will be returned. - Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error) -} - -type healthzClient struct { - cc grpc.ClientConnInterface -} - -func NewHealthzClient(cc grpc.ClientConnInterface) HealthzClient { - return &healthzClient{cc} -} - -func (c *healthzClient) Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error) { - out := new(GetResponse) - err := c.cc.Invoke(ctx, "/gnoi.healthz.Healthz/Get", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// HealthzServer is the server API for Healthz service. -// All implementations must embed UnimplementedHealthzServer -// for forward compatibility -type HealthzServer interface { - // Get will get health status for a gNMI path. If no status is available for - // the requested path an error will be returned. - Get(context.Context, *GetRequest) (*GetResponse, error) - mustEmbedUnimplementedHealthzServer() -} - -// UnimplementedHealthzServer must be embedded to have forward compatible implementations. -type UnimplementedHealthzServer struct { -} - -func (UnimplementedHealthzServer) Get(context.Context, *GetRequest) (*GetResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Get not implemented") -} -func (UnimplementedHealthzServer) mustEmbedUnimplementedHealthzServer() {} - -// UnsafeHealthzServer may be embedded to opt out of forward compatibility for this service. -// Use of this interface is not recommended, as added methods to HealthzServer will -// result in compilation errors. -type UnsafeHealthzServer interface { - mustEmbedUnimplementedHealthzServer() -} - -func RegisterHealthzServer(s grpc.ServiceRegistrar, srv HealthzServer) { - s.RegisterService(&Healthz_ServiceDesc, srv) -} - -func _Healthz_Get_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(HealthzServer).Get(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.healthz.Healthz/Get", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(HealthzServer).Get(ctx, req.(*GetRequest)) - } - return interceptor(ctx, in, info, handler) -} - -// Healthz_ServiceDesc is the grpc.ServiceDesc for Healthz service. -// It's only intended for direct use with grpc.RegisterService, -// and not to be introspected or modified (even as a copy) -var Healthz_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "gnoi.healthz.Healthz", - HandlerType: (*HealthzServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "Get", - Handler: _Healthz_Get_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "healthz/healthz.proto", -} From 48c668488972eb8f2fc27fe117b4fb5e0cbf4288 Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 16:58:54 +0530 Subject: [PATCH 146/238] Revert "Changed 'activate_and_reboot' into 'no_reboot'." This reverts commit 4326f369b4d33811bdb892ebc5d3536961a4d94f. --- os/os.pb.go | 171 ++++++++++++++++++++++++----------------------- os/os.proto | 12 ++-- os/os_grpc.pb.go | 8 +-- 3 files changed, 96 insertions(+), 95 deletions(-) diff --git a/os/os.pb.go b/os/os.pb.go index a1c6185c..5656cf24 100644 --- a/os/os.pb.go +++ b/os/os.pb.go @@ -827,12 +827,12 @@ type ActivateRequest struct { // For dual Supervisors setting this flag instructs the Target to perform the // action on the Standby Supervisor. StandbySupervisor bool `protobuf:"varint,2,opt,name=standby_supervisor,json=standbySupervisor,proto3" json:"standby_supervisor,omitempty"` - // If set to 'False' the Target will initiate the reboot process immediatelly + // If set to 'True' the Target will initiate the reboot process immediatelly // after changing the next bootable OS version. - // If set to 'True' a separate action to reboot the Target and start using + // If set to 'False' a separate action to reboot the Target and start using // the activated OS version is required. This action CAN be executing // the gNOI.system.Reboot() RPC. - NoReboot bool `protobuf:"varint,3,opt,name=no_reboot,json=noReboot,proto3" json:"no_reboot,omitempty"` + ActivateAndReboot bool `protobuf:"varint,3,opt,name=activate_and_reboot,json=activateAndReboot,proto3" json:"activate_and_reboot,omitempty"` } func (x *ActivateRequest) Reset() { @@ -881,9 +881,9 @@ func (x *ActivateRequest) GetStandbySupervisor() bool { return false } -func (x *ActivateRequest) GetNoReboot() bool { +func (x *ActivateRequest) GetActivateAndReboot() bool { if x != nil { - return x.NoReboot + return x.ActivateAndReboot } return false } @@ -1447,87 +1447,88 @@ var file_os_os_proto_rawDesc = []byte{ 0x49, 0x4e, 0x5f, 0x50, 0x52, 0x4f, 0x47, 0x52, 0x45, 0x53, 0x53, 0x10, 0x06, 0x12, 0x19, 0x0a, 0x15, 0x55, 0x4e, 0x45, 0x58, 0x50, 0x45, 0x43, 0x54, 0x45, 0x44, 0x5f, 0x53, 0x57, 0x49, 0x54, 0x43, 0x48, 0x4f, 0x56, 0x45, 0x52, 0x10, 0x07, 0x12, 0x0d, 0x0a, 0x09, 0x53, 0x59, 0x4e, 0x43, - 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x10, 0x08, 0x22, 0x77, 0x0a, 0x0f, 0x41, 0x63, 0x74, 0x69, 0x76, - 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, - 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, - 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x2d, 0x0a, 0x12, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x5f, - 0x73, 0x75, 0x70, 0x65, 0x72, 0x76, 0x69, 0x73, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, - 0x52, 0x11, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x53, 0x75, 0x70, 0x65, 0x72, 0x76, 0x69, - 0x73, 0x6f, 0x72, 0x12, 0x1b, 0x0a, 0x09, 0x6e, 0x6f, 0x5f, 0x72, 0x65, 0x62, 0x6f, 0x6f, 0x74, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x6e, 0x6f, 0x52, 0x65, 0x62, 0x6f, 0x6f, 0x74, - 0x22, 0x97, 0x01, 0x0a, 0x10, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x36, 0x0a, 0x0b, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, - 0x65, 0x5f, 0x6f, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x67, 0x6e, 0x6f, - 0x69, 0x2e, 0x6f, 0x73, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4f, 0x4b, 0x48, - 0x00, 0x52, 0x0a, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4f, 0x6b, 0x12, 0x3f, 0x0a, - 0x0e, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x5f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x73, 0x2e, - 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x48, 0x00, 0x52, - 0x0d, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x42, 0x0a, - 0x0a, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x0c, 0x0a, 0x0a, 0x41, 0x63, - 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4f, 0x4b, 0x22, 0x8b, 0x01, 0x0a, 0x0d, 0x41, 0x63, 0x74, - 0x69, 0x76, 0x61, 0x74, 0x65, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x2f, 0x0a, 0x04, 0x74, 0x79, - 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, - 0x6f, 0x73, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x45, 0x72, 0x72, 0x6f, 0x72, - 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x64, - 0x65, 0x74, 0x61, 0x69, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x65, 0x74, - 0x61, 0x69, 0x6c, 0x22, 0x31, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0f, 0x0a, 0x0b, 0x55, - 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x18, 0x0a, 0x14, - 0x4e, 0x4f, 0x4e, 0x5f, 0x45, 0x58, 0x49, 0x53, 0x54, 0x45, 0x4e, 0x54, 0x5f, 0x56, 0x45, 0x52, - 0x53, 0x49, 0x4f, 0x4e, 0x10, 0x01, 0x22, 0x0f, 0x0a, 0x0d, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0xa1, 0x01, 0x0a, 0x0e, 0x56, 0x65, 0x72, 0x69, - 0x66, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, - 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, - 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x36, 0x0a, 0x17, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x5f, 0x66, 0x61, 0x69, 0x6c, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x15, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x46, 0x61, 0x69, 0x6c, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x3d, 0x0a, 0x0e, - 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x5f, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x73, 0x2e, 0x56, - 0x65, 0x72, 0x69, 0x66, 0x79, 0x53, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x52, 0x0d, 0x76, 0x65, - 0x72, 0x69, 0x66, 0x79, 0x53, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x22, 0x9b, 0x01, 0x0a, 0x0d, - 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x53, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x12, 0x3c, 0x0a, - 0x0d, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x73, 0x2e, 0x53, - 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x53, 0x74, 0x61, 0x74, 0x65, 0x48, 0x00, 0x52, 0x0c, 0x73, - 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x43, 0x0a, 0x0f, 0x76, - 0x65, 0x72, 0x69, 0x66, 0x79, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x73, 0x2e, 0x53, - 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, - 0x52, 0x0e, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x42, 0x07, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x22, 0x8e, 0x01, 0x0a, 0x0c, 0x53, 0x74, - 0x61, 0x6e, 0x64, 0x62, 0x79, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x31, 0x0a, 0x05, 0x73, 0x74, - 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x67, 0x6e, 0x6f, 0x69, - 0x2e, 0x6f, 0x73, 0x2e, 0x53, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x53, 0x74, 0x61, 0x74, 0x65, - 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x22, 0x4b, 0x0a, - 0x05, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x0f, 0x0a, 0x0b, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, - 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0e, 0x0a, 0x0a, 0x55, 0x4e, 0x53, 0x55, 0x50, - 0x4f, 0x52, 0x54, 0x45, 0x44, 0x10, 0x01, 0x12, 0x10, 0x0a, 0x0c, 0x4e, 0x4f, 0x4e, 0x5f, 0x45, - 0x58, 0x49, 0x53, 0x54, 0x45, 0x4e, 0x54, 0x10, 0x02, 0x12, 0x0f, 0x0a, 0x0b, 0x55, 0x4e, 0x41, - 0x56, 0x41, 0x49, 0x4c, 0x41, 0x42, 0x4c, 0x45, 0x10, 0x03, 0x22, 0x73, 0x0a, 0x0f, 0x53, 0x74, - 0x61, 0x6e, 0x64, 0x62, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x0e, 0x0a, - 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x18, 0x0a, - 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, - 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x36, 0x0a, 0x17, 0x61, 0x63, 0x74, 0x69, 0x76, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x66, 0x61, 0x69, 0x6c, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, - 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x15, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x61, 0x69, 0x6c, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x32, - 0xc2, 0x01, 0x0a, 0x02, 0x4f, 0x53, 0x12, 0x40, 0x0a, 0x07, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, - 0x6c, 0x12, 0x17, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x73, 0x74, - 0x61, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x67, 0x6e, 0x6f, - 0x69, 0x2e, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x28, 0x01, 0x30, 0x01, 0x12, 0x3f, 0x0a, 0x08, 0x41, 0x63, 0x74, 0x69, - 0x76, 0x61, 0x74, 0x65, 0x12, 0x18, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x73, 0x2e, 0x41, - 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, + 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x10, 0x08, 0x22, 0x8a, 0x01, 0x0a, 0x0f, 0x41, 0x63, 0x74, 0x69, + 0x76, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x76, + 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, + 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x2d, 0x0a, 0x12, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, + 0x5f, 0x73, 0x75, 0x70, 0x65, 0x72, 0x76, 0x69, 0x73, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x08, 0x52, 0x11, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x53, 0x75, 0x70, 0x65, 0x72, 0x76, + 0x69, 0x73, 0x6f, 0x72, 0x12, 0x2e, 0x0a, 0x13, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, + 0x5f, 0x61, 0x6e, 0x64, 0x5f, 0x72, 0x65, 0x62, 0x6f, 0x6f, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x08, 0x52, 0x11, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x41, 0x6e, 0x64, 0x52, 0x65, + 0x62, 0x6f, 0x6f, 0x74, 0x22, 0x97, 0x01, 0x0a, 0x10, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, + 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x36, 0x0a, 0x0b, 0x61, 0x63, 0x74, + 0x69, 0x76, 0x61, 0x74, 0x65, 0x5f, 0x6f, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x73, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, - 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x39, 0x0a, 0x06, 0x56, 0x65, 0x72, - 0x69, 0x66, 0x79, 0x12, 0x16, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x73, 0x2e, 0x56, 0x65, - 0x72, 0x69, 0x66, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x67, 0x6e, - 0x6f, 0x69, 0x2e, 0x6f, 0x73, 0x2e, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x27, 0x5a, 0x1d, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, - 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x67, 0x6e, - 0x6f, 0x69, 0x2f, 0x6f, 0x73, 0xd2, 0x3e, 0x05, 0x30, 0x2e, 0x31, 0x2e, 0x31, 0x62, 0x06, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x65, 0x4f, 0x4b, 0x48, 0x00, 0x52, 0x0a, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4f, + 0x6b, 0x12, 0x3f, 0x0a, 0x0e, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x5f, 0x65, 0x72, + 0x72, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x6e, 0x6f, 0x69, + 0x2e, 0x6f, 0x73, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x45, 0x72, 0x72, 0x6f, + 0x72, 0x48, 0x00, 0x52, 0x0d, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x45, 0x72, 0x72, + 0x6f, 0x72, 0x42, 0x0a, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x0c, + 0x0a, 0x0a, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4f, 0x4b, 0x22, 0x8b, 0x01, 0x0a, + 0x0d, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x2f, + 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x67, + 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x73, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x45, + 0x72, 0x72, 0x6f, 0x72, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, + 0x16, 0x0a, 0x06, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x06, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x22, 0x31, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, + 0x0f, 0x0a, 0x0b, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, + 0x12, 0x18, 0x0a, 0x14, 0x4e, 0x4f, 0x4e, 0x5f, 0x45, 0x58, 0x49, 0x53, 0x54, 0x45, 0x4e, 0x54, + 0x5f, 0x56, 0x45, 0x52, 0x53, 0x49, 0x4f, 0x4e, 0x10, 0x01, 0x22, 0x0f, 0x0a, 0x0d, 0x56, 0x65, + 0x72, 0x69, 0x66, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0xa1, 0x01, 0x0a, 0x0e, + 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, + 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x36, 0x0a, 0x17, 0x61, 0x63, 0x74, 0x69, + 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x66, 0x61, 0x69, 0x6c, 0x5f, 0x6d, 0x65, 0x73, 0x73, + 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x15, 0x61, 0x63, 0x74, 0x69, 0x76, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x61, 0x69, 0x6c, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, + 0x12, 0x3d, 0x0a, 0x0e, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x5f, 0x73, 0x74, 0x61, 0x6e, 0x64, + 0x62, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, + 0x6f, 0x73, 0x2e, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x53, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, + 0x52, 0x0d, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x53, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x22, + 0x9b, 0x01, 0x0a, 0x0d, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x53, 0x74, 0x61, 0x6e, 0x64, 0x62, + 0x79, 0x12, 0x3c, 0x0a, 0x0d, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x5f, 0x73, 0x74, 0x61, + 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, + 0x6f, 0x73, 0x2e, 0x53, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x53, 0x74, 0x61, 0x74, 0x65, 0x48, + 0x00, 0x52, 0x0c, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, + 0x43, 0x0a, 0x0f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, + 0x6f, 0x73, 0x2e, 0x53, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x48, 0x00, 0x52, 0x0e, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x07, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x22, 0x8e, 0x01, + 0x0a, 0x0c, 0x53, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x31, + 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, + 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x73, 0x2e, 0x53, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x53, + 0x74, 0x61, 0x74, 0x65, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, + 0x65, 0x22, 0x4b, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x0f, 0x0a, 0x0b, 0x55, 0x4e, + 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0e, 0x0a, 0x0a, 0x55, + 0x4e, 0x53, 0x55, 0x50, 0x4f, 0x52, 0x54, 0x45, 0x44, 0x10, 0x01, 0x12, 0x10, 0x0a, 0x0c, 0x4e, + 0x4f, 0x4e, 0x5f, 0x45, 0x58, 0x49, 0x53, 0x54, 0x45, 0x4e, 0x54, 0x10, 0x02, 0x12, 0x0f, 0x0a, + 0x0b, 0x55, 0x4e, 0x41, 0x56, 0x41, 0x49, 0x4c, 0x41, 0x42, 0x4c, 0x45, 0x10, 0x03, 0x22, 0x73, + 0x0a, 0x0f, 0x53, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, + 0x64, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x36, 0x0a, 0x17, 0x61, + 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x66, 0x61, 0x69, 0x6c, 0x5f, 0x6d, + 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x15, 0x61, 0x63, + 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x61, 0x69, 0x6c, 0x4d, 0x65, 0x73, 0x73, + 0x61, 0x67, 0x65, 0x32, 0xc2, 0x01, 0x0a, 0x02, 0x4f, 0x53, 0x12, 0x40, 0x0a, 0x07, 0x49, 0x6e, + 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x12, 0x17, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x73, 0x2e, + 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, + 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x28, 0x01, 0x30, 0x01, 0x12, 0x3f, 0x0a, 0x08, + 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x12, 0x18, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, + 0x6f, 0x73, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x73, 0x2e, 0x41, 0x63, 0x74, + 0x69, 0x76, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x39, 0x0a, + 0x06, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x12, 0x16, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, + 0x73, 0x2e, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x17, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x73, 0x2e, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x27, 0x5a, 0x1d, 0x67, 0x69, 0x74, 0x68, + 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x2f, 0x67, 0x6e, 0x6f, 0x69, 0x2f, 0x6f, 0x73, 0xd2, 0x3e, 0x05, 0x30, 0x2e, 0x32, 0x2e, + 0x30, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/os/os.proto b/os/os.proto index 760e4caa..3cd58356 100644 --- a/os/os.proto +++ b/os/os.proto @@ -7,7 +7,7 @@ import "github.com/openconfig/gnoi/types/types.proto"; option go_package = "github.com/openconfig/gnoi/os"; -option (types.gnoi_version) = "0.1.1"; +option (types.gnoi_version) = "0.2.0"; // The OS service provides an interface for OS installation on a Target. The // Client progresses through 3 RPCs: @@ -110,8 +110,8 @@ service OS { rpc Install(stream InstallRequest) returns (stream InstallResponse); // Activate sets the requested OS version as the version which is used at the - // next reboot, and reboots the Target if the 'no_reboot' flag is not set. - // When booting the requested OS version fails, the Target recovers by + // next reboot, and reboots the Target if the 'activate_and_reboot' flag is + // set. When booting the requested OS version fails, the Target recovers by // booting the previously running OS package. rpc Activate(ActivateRequest) returns (ActivateResponse); @@ -257,12 +257,12 @@ message ActivateRequest { // For dual Supervisors setting this flag instructs the Target to perform the // action on the Standby Supervisor. bool standby_supervisor = 2; - // If set to 'False' the Target will initiate the reboot process immediatelly + // If set to 'True' the Target will initiate the reboot process immediatelly // after changing the next bootable OS version. - // If set to 'True' a separate action to reboot the Target and start using + // If set to 'False' a separate action to reboot the Target and start using // the activated OS version is required. This action CAN be executing // the gNOI.system.Reboot() RPC. - bool no_reboot = 3; + bool activate_and_reboot = 3; } // The ActivateResponse is sent from the Target to the Client in response to the diff --git a/os/os_grpc.pb.go b/os/os_grpc.pb.go index f383fefa..0bcf3c1f 100644 --- a/os/os_grpc.pb.go +++ b/os/os_grpc.pb.go @@ -102,8 +102,8 @@ type OSClient interface { // Install(ctx context.Context, opts ...grpc.CallOption) (OS_InstallClient, error) // Activate sets the requested OS version as the version which is used at the - // next reboot, and reboots the Target if the 'no_reboot' flag is not set. - // When booting the requested OS version fails, the Target recovers by + // next reboot, and reboots the Target if the 'activate_and_reboot' flag is + // set. When booting the requested OS version fails, the Target recovers by // booting the previously running OS package. Activate(ctx context.Context, in *ActivateRequest, opts ...grpc.CallOption) (*ActivateResponse, error) // Verify checks the running OS version. This RPC may be called multiple times @@ -256,8 +256,8 @@ type OSServer interface { // Install(OS_InstallServer) error // Activate sets the requested OS version as the version which is used at the - // next reboot, and reboots the Target if the 'no_reboot' flag is not set. - // When booting the requested OS version fails, the Target recovers by + // next reboot, and reboots the Target if the 'activate_and_reboot' flag is + // set. When booting the requested OS version fails, the Target recovers by // booting the previously running OS package. Activate(context.Context, *ActivateRequest) (*ActivateResponse, error) // Verify checks the running OS version. This RPC may be called multiple times From dce72c53c8968537b65f37f068fdfa5d93e65aea Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 16:58:55 +0530 Subject: [PATCH 147/238] Revert "Added the 'activate_and_reboot` flag to the ActivateRequest message." This reverts commit b4c416b0ac676b83caf4f80823ba9e813ae5dc38. --- os/os.pb.go | 177 +++++++++++++++++++++-------------------------- os/os.proto | 16 ++--- os/os_grpc.pb.go | 10 ++- 3 files changed, 88 insertions(+), 115 deletions(-) diff --git a/os/os.pb.go b/os/os.pb.go index 5656cf24..eeb74a30 100644 --- a/os/os.pb.go +++ b/os/os.pb.go @@ -821,18 +821,11 @@ type ActivateRequest struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // The version that is required to be activated and optionally immediattely - // booted. + // The version that is required to be activated and booted. Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` // For dual Supervisors setting this flag instructs the Target to perform the // action on the Standby Supervisor. StandbySupervisor bool `protobuf:"varint,2,opt,name=standby_supervisor,json=standbySupervisor,proto3" json:"standby_supervisor,omitempty"` - // If set to 'True' the Target will initiate the reboot process immediatelly - // after changing the next bootable OS version. - // If set to 'False' a separate action to reboot the Target and start using - // the activated OS version is required. This action CAN be executing - // the gNOI.system.Reboot() RPC. - ActivateAndReboot bool `protobuf:"varint,3,opt,name=activate_and_reboot,json=activateAndReboot,proto3" json:"activate_and_reboot,omitempty"` } func (x *ActivateRequest) Reset() { @@ -881,13 +874,6 @@ func (x *ActivateRequest) GetStandbySupervisor() bool { return false } -func (x *ActivateRequest) GetActivateAndReboot() bool { - if x != nil { - return x.ActivateAndReboot - } - return false -} - // The ActivateResponse is sent from the Target to the Client in response to the // Activate RPC. It indicates the success of making the OS package version // active. @@ -1447,88 +1433,85 @@ var file_os_os_proto_rawDesc = []byte{ 0x49, 0x4e, 0x5f, 0x50, 0x52, 0x4f, 0x47, 0x52, 0x45, 0x53, 0x53, 0x10, 0x06, 0x12, 0x19, 0x0a, 0x15, 0x55, 0x4e, 0x45, 0x58, 0x50, 0x45, 0x43, 0x54, 0x45, 0x44, 0x5f, 0x53, 0x57, 0x49, 0x54, 0x43, 0x48, 0x4f, 0x56, 0x45, 0x52, 0x10, 0x07, 0x12, 0x0d, 0x0a, 0x09, 0x53, 0x59, 0x4e, 0x43, - 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x10, 0x08, 0x22, 0x8a, 0x01, 0x0a, 0x0f, 0x41, 0x63, 0x74, 0x69, - 0x76, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x76, - 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, - 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x2d, 0x0a, 0x12, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, - 0x5f, 0x73, 0x75, 0x70, 0x65, 0x72, 0x76, 0x69, 0x73, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x08, 0x52, 0x11, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x53, 0x75, 0x70, 0x65, 0x72, 0x76, - 0x69, 0x73, 0x6f, 0x72, 0x12, 0x2e, 0x0a, 0x13, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, - 0x5f, 0x61, 0x6e, 0x64, 0x5f, 0x72, 0x65, 0x62, 0x6f, 0x6f, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x08, 0x52, 0x11, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x41, 0x6e, 0x64, 0x52, 0x65, - 0x62, 0x6f, 0x6f, 0x74, 0x22, 0x97, 0x01, 0x0a, 0x10, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, - 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x36, 0x0a, 0x0b, 0x61, 0x63, 0x74, - 0x69, 0x76, 0x61, 0x74, 0x65, 0x5f, 0x6f, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, - 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x73, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, - 0x65, 0x4f, 0x4b, 0x48, 0x00, 0x52, 0x0a, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4f, - 0x6b, 0x12, 0x3f, 0x0a, 0x0e, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x5f, 0x65, 0x72, - 0x72, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x6e, 0x6f, 0x69, - 0x2e, 0x6f, 0x73, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x45, 0x72, 0x72, 0x6f, - 0x72, 0x48, 0x00, 0x52, 0x0d, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x45, 0x72, 0x72, - 0x6f, 0x72, 0x42, 0x0a, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x0c, - 0x0a, 0x0a, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4f, 0x4b, 0x22, 0x8b, 0x01, 0x0a, - 0x0d, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x2f, - 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x67, - 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x73, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x45, - 0x72, 0x72, 0x6f, 0x72, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, - 0x16, 0x0a, 0x06, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x06, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x22, 0x31, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, - 0x0f, 0x0a, 0x0b, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, - 0x12, 0x18, 0x0a, 0x14, 0x4e, 0x4f, 0x4e, 0x5f, 0x45, 0x58, 0x49, 0x53, 0x54, 0x45, 0x4e, 0x54, - 0x5f, 0x56, 0x45, 0x52, 0x53, 0x49, 0x4f, 0x4e, 0x10, 0x01, 0x22, 0x0f, 0x0a, 0x0d, 0x56, 0x65, - 0x72, 0x69, 0x66, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0xa1, 0x01, 0x0a, 0x0e, - 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, - 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x36, 0x0a, 0x17, 0x61, 0x63, 0x74, 0x69, - 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x66, 0x61, 0x69, 0x6c, 0x5f, 0x6d, 0x65, 0x73, 0x73, - 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x15, 0x61, 0x63, 0x74, 0x69, 0x76, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x61, 0x69, 0x6c, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, - 0x12, 0x3d, 0x0a, 0x0e, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x5f, 0x73, 0x74, 0x61, 0x6e, 0x64, - 0x62, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, - 0x6f, 0x73, 0x2e, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x53, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, - 0x52, 0x0d, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x53, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x22, - 0x9b, 0x01, 0x0a, 0x0d, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x53, 0x74, 0x61, 0x6e, 0x64, 0x62, - 0x79, 0x12, 0x3c, 0x0a, 0x0d, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x5f, 0x73, 0x74, 0x61, - 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, - 0x6f, 0x73, 0x2e, 0x53, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x53, 0x74, 0x61, 0x74, 0x65, 0x48, - 0x00, 0x52, 0x0c, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, - 0x43, 0x0a, 0x0f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, - 0x6f, 0x73, 0x2e, 0x53, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x48, 0x00, 0x52, 0x0e, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x07, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x22, 0x8e, 0x01, - 0x0a, 0x0c, 0x53, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x31, - 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, - 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x73, 0x2e, 0x53, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x53, - 0x74, 0x61, 0x74, 0x65, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, - 0x65, 0x22, 0x4b, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x0f, 0x0a, 0x0b, 0x55, 0x4e, - 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0e, 0x0a, 0x0a, 0x55, - 0x4e, 0x53, 0x55, 0x50, 0x4f, 0x52, 0x54, 0x45, 0x44, 0x10, 0x01, 0x12, 0x10, 0x0a, 0x0c, 0x4e, - 0x4f, 0x4e, 0x5f, 0x45, 0x58, 0x49, 0x53, 0x54, 0x45, 0x4e, 0x54, 0x10, 0x02, 0x12, 0x0f, 0x0a, - 0x0b, 0x55, 0x4e, 0x41, 0x56, 0x41, 0x49, 0x4c, 0x41, 0x42, 0x4c, 0x45, 0x10, 0x03, 0x22, 0x73, - 0x0a, 0x0f, 0x53, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, - 0x64, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x36, 0x0a, 0x17, 0x61, - 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x66, 0x61, 0x69, 0x6c, 0x5f, 0x6d, - 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x15, 0x61, 0x63, - 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x61, 0x69, 0x6c, 0x4d, 0x65, 0x73, 0x73, - 0x61, 0x67, 0x65, 0x32, 0xc2, 0x01, 0x0a, 0x02, 0x4f, 0x53, 0x12, 0x40, 0x0a, 0x07, 0x49, 0x6e, - 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x12, 0x17, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x73, 0x2e, - 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, - 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x28, 0x01, 0x30, 0x01, 0x12, 0x3f, 0x0a, 0x08, - 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x12, 0x18, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, - 0x6f, 0x73, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x73, 0x2e, 0x41, 0x63, 0x74, - 0x69, 0x76, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x39, 0x0a, - 0x06, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x12, 0x16, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, - 0x73, 0x2e, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x17, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x73, 0x2e, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x27, 0x5a, 0x1d, 0x67, 0x69, 0x74, 0x68, - 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, - 0x67, 0x2f, 0x67, 0x6e, 0x6f, 0x69, 0x2f, 0x6f, 0x73, 0xd2, 0x3e, 0x05, 0x30, 0x2e, 0x32, 0x2e, - 0x30, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x10, 0x08, 0x22, 0x5a, 0x0a, 0x0f, 0x41, 0x63, 0x74, 0x69, 0x76, + 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, + 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, + 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x2d, 0x0a, 0x12, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x5f, + 0x73, 0x75, 0x70, 0x65, 0x72, 0x76, 0x69, 0x73, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, + 0x52, 0x11, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x53, 0x75, 0x70, 0x65, 0x72, 0x76, 0x69, + 0x73, 0x6f, 0x72, 0x22, 0x97, 0x01, 0x0a, 0x10, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x36, 0x0a, 0x0b, 0x61, 0x63, 0x74, 0x69, + 0x76, 0x61, 0x74, 0x65, 0x5f, 0x6f, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, + 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x73, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, + 0x4f, 0x4b, 0x48, 0x00, 0x52, 0x0a, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4f, 0x6b, + 0x12, 0x3f, 0x0a, 0x0e, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x5f, 0x65, 0x72, 0x72, + 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, + 0x6f, 0x73, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x45, 0x72, 0x72, 0x6f, 0x72, + 0x48, 0x00, 0x52, 0x0d, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x45, 0x72, 0x72, 0x6f, + 0x72, 0x42, 0x0a, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x0c, 0x0a, + 0x0a, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4f, 0x4b, 0x22, 0x8b, 0x01, 0x0a, 0x0d, + 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x2f, 0x0a, + 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x67, 0x6e, + 0x6f, 0x69, 0x2e, 0x6f, 0x73, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x45, 0x72, + 0x72, 0x6f, 0x72, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x16, + 0x0a, 0x06, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, + 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x22, 0x31, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0f, + 0x0a, 0x0b, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, + 0x18, 0x0a, 0x14, 0x4e, 0x4f, 0x4e, 0x5f, 0x45, 0x58, 0x49, 0x53, 0x54, 0x45, 0x4e, 0x54, 0x5f, + 0x56, 0x45, 0x52, 0x53, 0x49, 0x4f, 0x4e, 0x10, 0x01, 0x22, 0x0f, 0x0a, 0x0d, 0x56, 0x65, 0x72, + 0x69, 0x66, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0xa1, 0x01, 0x0a, 0x0e, 0x56, + 0x65, 0x72, 0x69, 0x66, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, + 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, + 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x36, 0x0a, 0x17, 0x61, 0x63, 0x74, 0x69, 0x76, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x66, 0x61, 0x69, 0x6c, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, + 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x15, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x61, 0x69, 0x6c, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, + 0x3d, 0x0a, 0x0e, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x5f, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x62, + 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, + 0x73, 0x2e, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x53, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x52, + 0x0d, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x53, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x22, 0x9b, + 0x01, 0x0a, 0x0d, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x53, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, + 0x12, 0x3c, 0x0a, 0x0d, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x5f, 0x73, 0x74, 0x61, 0x74, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, + 0x73, 0x2e, 0x53, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x53, 0x74, 0x61, 0x74, 0x65, 0x48, 0x00, + 0x52, 0x0c, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x43, + 0x0a, 0x0f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, + 0x73, 0x2e, 0x53, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x48, 0x00, 0x52, 0x0e, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x42, 0x07, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x22, 0x8e, 0x01, 0x0a, + 0x0c, 0x53, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x31, 0x0a, + 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x67, + 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x73, 0x2e, 0x53, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x53, 0x74, + 0x61, 0x74, 0x65, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, + 0x22, 0x4b, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x0f, 0x0a, 0x0b, 0x55, 0x4e, 0x53, + 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0e, 0x0a, 0x0a, 0x55, 0x4e, + 0x53, 0x55, 0x50, 0x4f, 0x52, 0x54, 0x45, 0x44, 0x10, 0x01, 0x12, 0x10, 0x0a, 0x0c, 0x4e, 0x4f, + 0x4e, 0x5f, 0x45, 0x58, 0x49, 0x53, 0x54, 0x45, 0x4e, 0x54, 0x10, 0x02, 0x12, 0x0f, 0x0a, 0x0b, + 0x55, 0x4e, 0x41, 0x56, 0x41, 0x49, 0x4c, 0x41, 0x42, 0x4c, 0x45, 0x10, 0x03, 0x22, 0x73, 0x0a, + 0x0f, 0x53, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, + 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x36, 0x0a, 0x17, 0x61, 0x63, + 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x66, 0x61, 0x69, 0x6c, 0x5f, 0x6d, 0x65, + 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x15, 0x61, 0x63, 0x74, + 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x61, 0x69, 0x6c, 0x4d, 0x65, 0x73, 0x73, 0x61, + 0x67, 0x65, 0x32, 0xc2, 0x01, 0x0a, 0x02, 0x4f, 0x53, 0x12, 0x40, 0x0a, 0x07, 0x49, 0x6e, 0x73, + 0x74, 0x61, 0x6c, 0x6c, 0x12, 0x17, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x73, 0x2e, 0x49, + 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, + 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x28, 0x01, 0x30, 0x01, 0x12, 0x3f, 0x0a, 0x08, 0x41, + 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x12, 0x18, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, + 0x73, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x19, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x73, 0x2e, 0x41, 0x63, 0x74, 0x69, + 0x76, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x39, 0x0a, 0x06, + 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x12, 0x16, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x73, + 0x2e, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, + 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x73, 0x2e, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x27, 0x5a, 0x1d, 0x67, 0x69, 0x74, 0x68, 0x75, + 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x2f, 0x67, 0x6e, 0x6f, 0x69, 0x2f, 0x6f, 0x73, 0xd2, 0x3e, 0x05, 0x30, 0x2e, 0x31, 0x2e, 0x30, + 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/os/os.proto b/os/os.proto index 3cd58356..56a24e05 100644 --- a/os/os.proto +++ b/os/os.proto @@ -7,7 +7,7 @@ import "github.com/openconfig/gnoi/types/types.proto"; option go_package = "github.com/openconfig/gnoi/os"; -option (types.gnoi_version) = "0.2.0"; +option (types.gnoi_version) = "0.1.0"; // The OS service provides an interface for OS installation on a Target. The // Client progresses through 3 RPCs: @@ -110,9 +110,8 @@ service OS { rpc Install(stream InstallRequest) returns (stream InstallResponse); // Activate sets the requested OS version as the version which is used at the - // next reboot, and reboots the Target if the 'activate_and_reboot' flag is - // set. When booting the requested OS version fails, the Target recovers by - // booting the previously running OS package. + // next reboot, and reboots the Target. When booting the requested OS version + // fails, the Target recovers by booting the previously running OS package. rpc Activate(ActivateRequest) returns (ActivateResponse); // Verify checks the running OS version. This RPC may be called multiple times @@ -251,18 +250,11 @@ message InstallError { // The ActivateRequest is sent by the Client to the Target to initiate a change // in the next bootable OS version that is to be used on the Target. message ActivateRequest { - // The version that is required to be activated and optionally immediattely - // booted. + // The version that is required to be activated and booted. string version = 1; // For dual Supervisors setting this flag instructs the Target to perform the // action on the Standby Supervisor. bool standby_supervisor = 2; - // If set to 'True' the Target will initiate the reboot process immediatelly - // after changing the next bootable OS version. - // If set to 'False' a separate action to reboot the Target and start using - // the activated OS version is required. This action CAN be executing - // the gNOI.system.Reboot() RPC. - bool activate_and_reboot = 3; } // The ActivateResponse is sent from the Target to the Client in response to the diff --git a/os/os_grpc.pb.go b/os/os_grpc.pb.go index 0bcf3c1f..2e8db9d3 100644 --- a/os/os_grpc.pb.go +++ b/os/os_grpc.pb.go @@ -102,9 +102,8 @@ type OSClient interface { // Install(ctx context.Context, opts ...grpc.CallOption) (OS_InstallClient, error) // Activate sets the requested OS version as the version which is used at the - // next reboot, and reboots the Target if the 'activate_and_reboot' flag is - // set. When booting the requested OS version fails, the Target recovers by - // booting the previously running OS package. + // next reboot, and reboots the Target. When booting the requested OS version + // fails, the Target recovers by booting the previously running OS package. Activate(ctx context.Context, in *ActivateRequest, opts ...grpc.CallOption) (*ActivateResponse, error) // Verify checks the running OS version. This RPC may be called multiple times // while the Target boots, until successful. @@ -256,9 +255,8 @@ type OSServer interface { // Install(OS_InstallServer) error // Activate sets the requested OS version as the version which is used at the - // next reboot, and reboots the Target if the 'activate_and_reboot' flag is - // set. When booting the requested OS version fails, the Target recovers by - // booting the previously running OS package. + // next reboot, and reboots the Target. When booting the requested OS version + // fails, the Target recovers by booting the previously running OS package. Activate(context.Context, *ActivateRequest) (*ActivateResponse, error) // Verify checks the running OS version. This RPC may be called multiple times // while the Target boots, until successful. From 636413d308c6a7e76976b85f4aa421df3bc2a8ec Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 16:58:56 +0530 Subject: [PATCH 148/238] Revert "Move away from using forked repo for protolint-action." This reverts commit 2bd07f222873f0dfd2fcc8545122ec873f420706. --- .github/workflows/linter.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index 48f5508f..fcce3369 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -19,6 +19,8 @@ jobs: fetch-depth: 0 - name: Lint protobuf - uses: plexsystems/protolint-action@v0.3.0 + uses: robshakir/protolint-action@v0.3.1 with: configDirectory: .github + env: + PROTOLINT_VERSION: 0.31.0 From e23b3f9bac1e20eaafb25338037e1c8fef09fe0a Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 16:58:57 +0530 Subject: [PATCH 149/238] Revert "Bump linter version." This reverts commit aa82d47ea7e31fdfd870fe6faa9638526dd9add7. --- .github/workflows/linter.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index fcce3369..82f36ddc 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -19,7 +19,7 @@ jobs: fetch-depth: 0 - name: Lint protobuf - uses: robshakir/protolint-action@v0.3.1 + uses: robshakir/protolint-action@v0.3.0 with: configDirectory: .github env: From a944a15697aea67d835b979096944f8b15e73900 Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 16:58:57 +0530 Subject: [PATCH 150/238] Revert "Update protobuf generation, add go_package option." This reverts commit c8062e090a8031d42180fad7465d77632ff235ae. --- bgp/bgp.pb.go | 409 +- bgp/bgp.proto | 2 - bgp/bgp_grpc.pb.go | 103 - cert/cert.pb.go | 3398 ++++++++--------- cert/cert.proto | 2 - cert/cert_grpc.pb.go | 632 --- common/common.pb.go | 291 +- common/common.proto | 2 - compile_protos.sh | 2 +- diag/diag.pb.go | 1869 ++++----- diag/diag.proto | 2 - diag/diag_grpc.pb.go | 251 -- factory_reset/reset.proto | 2 - file/file.pb.go | 1655 ++++---- file/file.proto | 2 - file/file_grpc.pb.go | 353 -- go.mod | 3 +- go.sum | 12 +- interface/interface.pb.go | 752 ++-- interface/interface.proto | 2 - interface/interface_grpc.pb.go | 179 - layer2/layer2.pb.go | 1326 +++---- layer2/layer2.proto | 2 - layer2/layer2_grpc.pb.go | 299 -- mpls/mpls.pb.go | 1401 ++++--- mpls/mpls.proto | 2 - mpls/mpls_grpc.pb.go | 209 - os/os.pb.go | 1845 --------- os/os.proto | 2 - os/os_grpc.pb.go | 380 -- otdr/otdr.pb.go | 1409 +++---- otdr/otdr.proto | 2 - otdr/otdr_grpc.pb.go | 144 - system/system.pb.go | 2906 +++++++------- system/system.proto | 2 - system/system_grpc.pb.go | 506 --- types/types.pb.go | 730 ++-- types/types.proto | 2 - wavelength_router/wavelength_router.pb.go | 1702 ++++----- wavelength_router/wavelength_router.proto | 2 - .../wavelength_router_grpc.pb.go | 338 -- 41 files changed, 8078 insertions(+), 15054 deletions(-) delete mode 100644 bgp/bgp_grpc.pb.go delete mode 100644 cert/cert_grpc.pb.go delete mode 100644 diag/diag_grpc.pb.go delete mode 100644 file/file_grpc.pb.go delete mode 100644 interface/interface_grpc.pb.go delete mode 100644 layer2/layer2_grpc.pb.go delete mode 100644 mpls/mpls_grpc.pb.go delete mode 100644 os/os.pb.go delete mode 100644 os/os_grpc.pb.go delete mode 100644 otdr/otdr_grpc.pb.go delete mode 100644 system/system_grpc.pb.go delete mode 100644 wavelength_router/wavelength_router_grpc.pb.go diff --git a/bgp/bgp.pb.go b/bgp/bgp.pb.go index 67d68f83..47523b58 100644 --- a/bgp/bgp.pb.go +++ b/bgp/bgp.pb.go @@ -1,305 +1,244 @@ -// -// Copyright 2017 Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// - // Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.26.0 -// protoc v3.15.7 // source: bgp/bgp.proto -package bgp +package gnoi_bgp import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" _ "github.com/openconfig/gnoi/types" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" + context "golang.org/x/net/context" + grpc "google.golang.org/grpc" + math "math" ) -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) +// 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 type ClearBGPNeighborRequest_Mode int32 const ( - ClearBGPNeighborRequest_SOFT ClearBGPNeighborRequest_Mode = 0 // Send route-refresh and reapply policy. - ClearBGPNeighborRequest_SOFTIN ClearBGPNeighborRequest_Mode = 1 // Re-apply inbound policy on stored Adj-RIB-In. - ClearBGPNeighborRequest_HARD ClearBGPNeighborRequest_Mode = 2 // Teardown and restart TCP connection. -) - -// Enum value maps for ClearBGPNeighborRequest_Mode. -var ( - ClearBGPNeighborRequest_Mode_name = map[int32]string{ - 0: "SOFT", - 1: "SOFTIN", - 2: "HARD", - } - ClearBGPNeighborRequest_Mode_value = map[string]int32{ - "SOFT": 0, - "SOFTIN": 1, - "HARD": 2, - } + ClearBGPNeighborRequest_SOFT ClearBGPNeighborRequest_Mode = 0 + ClearBGPNeighborRequest_SOFTIN ClearBGPNeighborRequest_Mode = 1 + ClearBGPNeighborRequest_HARD ClearBGPNeighborRequest_Mode = 2 ) -func (x ClearBGPNeighborRequest_Mode) Enum() *ClearBGPNeighborRequest_Mode { - p := new(ClearBGPNeighborRequest_Mode) - *p = x - return p +var ClearBGPNeighborRequest_Mode_name = map[int32]string{ + 0: "SOFT", + 1: "SOFTIN", + 2: "HARD", } -func (x ClearBGPNeighborRequest_Mode) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (ClearBGPNeighborRequest_Mode) Descriptor() protoreflect.EnumDescriptor { - return file_bgp_bgp_proto_enumTypes[0].Descriptor() +var ClearBGPNeighborRequest_Mode_value = map[string]int32{ + "SOFT": 0, + "SOFTIN": 1, + "HARD": 2, } -func (ClearBGPNeighborRequest_Mode) Type() protoreflect.EnumType { - return &file_bgp_bgp_proto_enumTypes[0] -} - -func (x ClearBGPNeighborRequest_Mode) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) +func (x ClearBGPNeighborRequest_Mode) String() string { + return proto.EnumName(ClearBGPNeighborRequest_Mode_name, int32(x)) } -// Deprecated: Use ClearBGPNeighborRequest_Mode.Descriptor instead. func (ClearBGPNeighborRequest_Mode) EnumDescriptor() ([]byte, []int) { - return file_bgp_bgp_proto_rawDescGZIP(), []int{0, 0} + return fileDescriptor_dd5905d96efb1c39, []int{0, 0} } type ClearBGPNeighborRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // IPv4 or IPv6 BGP neighbor address to clear. + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // Routing instance containing the neighbor. Defaults to the global routing // table. - RoutingInstance string `protobuf:"bytes,2,opt,name=routing_instance,json=routingInstance,proto3" json:"routing_instance,omitempty"` - Mode ClearBGPNeighborRequest_Mode `protobuf:"varint,3,opt,name=mode,proto3,enum=gnoi.bgp.ClearBGPNeighborRequest_Mode" json:"mode,omitempty"` // Which mode to use for the clear operation. + RoutingInstance string `protobuf:"bytes,2,opt,name=routing_instance,json=routingInstance,proto3" json:"routing_instance,omitempty"` + Mode ClearBGPNeighborRequest_Mode `protobuf:"varint,3,opt,name=mode,proto3,enum=gnoi.bgp.ClearBGPNeighborRequest_Mode" json:"mode,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *ClearBGPNeighborRequest) Reset() { - *x = ClearBGPNeighborRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_bgp_bgp_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *ClearBGPNeighborRequest) Reset() { *m = ClearBGPNeighborRequest{} } +func (m *ClearBGPNeighborRequest) String() string { return proto.CompactTextString(m) } +func (*ClearBGPNeighborRequest) ProtoMessage() {} +func (*ClearBGPNeighborRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_dd5905d96efb1c39, []int{0} } -func (x *ClearBGPNeighborRequest) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *ClearBGPNeighborRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ClearBGPNeighborRequest.Unmarshal(m, b) } - -func (*ClearBGPNeighborRequest) ProtoMessage() {} - -func (x *ClearBGPNeighborRequest) ProtoReflect() protoreflect.Message { - mi := &file_bgp_bgp_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *ClearBGPNeighborRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ClearBGPNeighborRequest.Marshal(b, m, deterministic) } - -// Deprecated: Use ClearBGPNeighborRequest.ProtoReflect.Descriptor instead. -func (*ClearBGPNeighborRequest) Descriptor() ([]byte, []int) { - return file_bgp_bgp_proto_rawDescGZIP(), []int{0} +func (m *ClearBGPNeighborRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ClearBGPNeighborRequest.Merge(m, src) +} +func (m *ClearBGPNeighborRequest) XXX_Size() int { + return xxx_messageInfo_ClearBGPNeighborRequest.Size(m) } +func (m *ClearBGPNeighborRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ClearBGPNeighborRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ClearBGPNeighborRequest proto.InternalMessageInfo -func (x *ClearBGPNeighborRequest) GetAddress() string { - if x != nil { - return x.Address +func (m *ClearBGPNeighborRequest) GetAddress() string { + if m != nil { + return m.Address } return "" } -func (x *ClearBGPNeighborRequest) GetRoutingInstance() string { - if x != nil { - return x.RoutingInstance +func (m *ClearBGPNeighborRequest) GetRoutingInstance() string { + if m != nil { + return m.RoutingInstance } return "" } -func (x *ClearBGPNeighborRequest) GetMode() ClearBGPNeighborRequest_Mode { - if x != nil { - return x.Mode +func (m *ClearBGPNeighborRequest) GetMode() ClearBGPNeighborRequest_Mode { + if m != nil { + return m.Mode } return ClearBGPNeighborRequest_SOFT } type ClearBGPNeighborResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *ClearBGPNeighborResponse) Reset() { - *x = ClearBGPNeighborResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_bgp_bgp_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *ClearBGPNeighborResponse) Reset() { *m = ClearBGPNeighborResponse{} } +func (m *ClearBGPNeighborResponse) String() string { return proto.CompactTextString(m) } +func (*ClearBGPNeighborResponse) ProtoMessage() {} +func (*ClearBGPNeighborResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_dd5905d96efb1c39, []int{1} } -func (x *ClearBGPNeighborResponse) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *ClearBGPNeighborResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ClearBGPNeighborResponse.Unmarshal(m, b) +} +func (m *ClearBGPNeighborResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ClearBGPNeighborResponse.Marshal(b, m, deterministic) +} +func (m *ClearBGPNeighborResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ClearBGPNeighborResponse.Merge(m, src) +} +func (m *ClearBGPNeighborResponse) XXX_Size() int { + return xxx_messageInfo_ClearBGPNeighborResponse.Size(m) +} +func (m *ClearBGPNeighborResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ClearBGPNeighborResponse.DiscardUnknown(m) } -func (*ClearBGPNeighborResponse) ProtoMessage() {} +var xxx_messageInfo_ClearBGPNeighborResponse proto.InternalMessageInfo -func (x *ClearBGPNeighborResponse) ProtoReflect() protoreflect.Message { - mi := &file_bgp_bgp_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func init() { + proto.RegisterEnum("gnoi.bgp.ClearBGPNeighborRequest_Mode", ClearBGPNeighborRequest_Mode_name, ClearBGPNeighborRequest_Mode_value) + proto.RegisterType((*ClearBGPNeighborRequest)(nil), "gnoi.bgp.ClearBGPNeighborRequest") + proto.RegisterType((*ClearBGPNeighborResponse)(nil), "gnoi.bgp.ClearBGPNeighborResponse") } -// Deprecated: Use ClearBGPNeighborResponse.ProtoReflect.Descriptor instead. -func (*ClearBGPNeighborResponse) Descriptor() ([]byte, []int) { - return file_bgp_bgp_proto_rawDescGZIP(), []int{1} +func init() { proto.RegisterFile("bgp/bgp.proto", fileDescriptor_dd5905d96efb1c39) } + +var fileDescriptor_dd5905d96efb1c39 = []byte{ + // 277 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x50, 0xb1, 0x4e, 0xc3, 0x30, + 0x14, 0x6c, 0xda, 0x50, 0xc2, 0x93, 0x80, 0xc8, 0x0b, 0x51, 0xa6, 0x92, 0xa1, 0x2a, 0x12, 0x72, + 0x4a, 0xd9, 0x18, 0x90, 0x08, 0x88, 0xd2, 0x81, 0x52, 0x05, 0x36, 0x06, 0x14, 0x27, 0xc6, 0xb5, + 0x44, 0xfd, 0x4c, 0xec, 0x0c, 0xfc, 0x1e, 0x9f, 0xc0, 0x17, 0xa1, 0x24, 0xed, 0x02, 0x82, 0x2e, + 0x96, 0xef, 0xde, 0xdd, 0xbb, 0xd3, 0x83, 0x7d, 0x26, 0x74, 0xcc, 0x84, 0xa6, 0xba, 0x44, 0x8b, + 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x7a, 0xfe, 0x1d, 0x00, 0x00, 0xff, 0xff, 0x05, 0x3c, 0x32, + 0x2b, 0x9e, 0x01, 0x00, 0x00, } -var File_bgp_bgp_proto protoreflect.FileDescriptor - -var file_bgp_bgp_proto_rawDesc = []byte{ - 0x0a, 0x0d, 0x62, 0x67, 0x70, 0x2f, 0x62, 0x67, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, - 0x08, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x62, 0x67, 0x70, 0x1a, 0x2c, 0x67, 0x69, 0x74, 0x68, 0x75, - 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, - 0x2f, 0x67, 0x6e, 0x6f, 0x69, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x74, 0x79, 0x70, 0x65, - 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc2, 0x01, 0x0a, 0x17, 0x43, 0x6c, 0x65, 0x61, - 0x72, 0x42, 0x47, 0x50, 0x4e, 0x65, 0x69, 0x67, 0x68, 0x62, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x29, 0x0a, - 0x10, 0x72, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x72, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, - 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x3a, 0x0a, 0x04, 0x6d, 0x6f, 0x64, 0x65, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x26, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x62, 0x67, - 0x70, 0x2e, 0x43, 0x6c, 0x65, 0x61, 0x72, 0x42, 0x47, 0x50, 0x4e, 0x65, 0x69, 0x67, 0x68, 0x62, - 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x04, - 0x6d, 0x6f, 0x64, 0x65, 0x22, 0x26, 0x0a, 0x04, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x08, 0x0a, 0x04, - 0x53, 0x4f, 0x46, 0x54, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x4f, 0x46, 0x54, 0x49, 0x4e, - 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x48, 0x41, 0x52, 0x44, 0x10, 0x02, 0x22, 0x1a, 0x0a, 0x18, - 0x43, 0x6c, 0x65, 0x61, 0x72, 0x42, 0x47, 0x50, 0x4e, 0x65, 0x69, 0x67, 0x68, 0x62, 0x6f, 0x72, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0x62, 0x0a, 0x03, 0x42, 0x47, 0x50, 0x12, - 0x5b, 0x0a, 0x10, 0x43, 0x6c, 0x65, 0x61, 0x72, 0x42, 0x47, 0x50, 0x4e, 0x65, 0x69, 0x67, 0x68, - 0x62, 0x6f, 0x72, 0x12, 0x21, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x62, 0x67, 0x70, 0x2e, 0x43, - 0x6c, 0x65, 0x61, 0x72, 0x42, 0x47, 0x50, 0x4e, 0x65, 0x69, 0x67, 0x68, 0x62, 0x6f, 0x72, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x62, 0x67, - 0x70, 0x2e, 0x43, 0x6c, 0x65, 0x61, 0x72, 0x42, 0x47, 0x50, 0x4e, 0x65, 0x69, 0x67, 0x68, 0x62, - 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x28, 0x5a, 0x1e, - 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x63, - 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x67, 0x6e, 0x6f, 0x69, 0x2f, 0x62, 0x67, 0x70, 0xd2, 0x3e, - 0x05, 0x30, 0x2e, 0x31, 0x2e, 0x30, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion4 + +// BGPClient is the client API for BGP service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type BGPClient interface { + // ClearBGPNeighbor clears a BGP session. + ClearBGPNeighbor(ctx context.Context, in *ClearBGPNeighborRequest, opts ...grpc.CallOption) (*ClearBGPNeighborResponse, error) } -var ( - file_bgp_bgp_proto_rawDescOnce sync.Once - file_bgp_bgp_proto_rawDescData = file_bgp_bgp_proto_rawDesc -) +type bGPClient struct { + cc *grpc.ClientConn +} -func file_bgp_bgp_proto_rawDescGZIP() []byte { - file_bgp_bgp_proto_rawDescOnce.Do(func() { - file_bgp_bgp_proto_rawDescData = protoimpl.X.CompressGZIP(file_bgp_bgp_proto_rawDescData) - }) - return file_bgp_bgp_proto_rawDescData +func NewBGPClient(cc *grpc.ClientConn) BGPClient { + return &bGPClient{cc} } -var file_bgp_bgp_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_bgp_bgp_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_bgp_bgp_proto_goTypes = []interface{}{ - (ClearBGPNeighborRequest_Mode)(0), // 0: gnoi.bgp.ClearBGPNeighborRequest.Mode - (*ClearBGPNeighborRequest)(nil), // 1: gnoi.bgp.ClearBGPNeighborRequest - (*ClearBGPNeighborResponse)(nil), // 2: gnoi.bgp.ClearBGPNeighborResponse +func (c *bGPClient) ClearBGPNeighbor(ctx context.Context, in *ClearBGPNeighborRequest, opts ...grpc.CallOption) (*ClearBGPNeighborResponse, error) { + out := new(ClearBGPNeighborResponse) + err := c.cc.Invoke(ctx, "/gnoi.bgp.BGP/ClearBGPNeighbor", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil } -var file_bgp_bgp_proto_depIdxs = []int32{ - 0, // 0: gnoi.bgp.ClearBGPNeighborRequest.mode:type_name -> gnoi.bgp.ClearBGPNeighborRequest.Mode - 1, // 1: gnoi.bgp.BGP.ClearBGPNeighbor:input_type -> gnoi.bgp.ClearBGPNeighborRequest - 2, // 2: gnoi.bgp.BGP.ClearBGPNeighbor:output_type -> gnoi.bgp.ClearBGPNeighborResponse - 2, // [2:3] is the sub-list for method output_type - 1, // [1:2] is the sub-list for method input_type - 1, // [1:1] is the sub-list for extension type_name - 1, // [1:1] is the sub-list for extension extendee - 0, // [0:1] is the sub-list for field type_name + +// BGPServer is the server API for BGP service. +type BGPServer interface { + // ClearBGPNeighbor clears a BGP session. + ClearBGPNeighbor(context.Context, *ClearBGPNeighborRequest) (*ClearBGPNeighborResponse, error) } -func init() { file_bgp_bgp_proto_init() } -func file_bgp_bgp_proto_init() { - if File_bgp_bgp_proto != nil { - return +func RegisterBGPServer(s *grpc.Server, srv BGPServer) { + s.RegisterService(&_BGP_serviceDesc, srv) +} + +func _BGP_ClearBGPNeighbor_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ClearBGPNeighborRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(BGPServer).ClearBGPNeighbor(ctx, in) } - if !protoimpl.UnsafeEnabled { - file_bgp_bgp_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ClearBGPNeighborRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_bgp_bgp_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ClearBGPNeighborResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gnoi.bgp.BGP/ClearBGPNeighbor", } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_bgp_bgp_proto_rawDesc, - NumEnums: 1, - NumMessages: 2, - NumExtensions: 0, - NumServices: 1, + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(BGPServer).ClearBGPNeighbor(ctx, req.(*ClearBGPNeighborRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _BGP_serviceDesc = grpc.ServiceDesc{ + ServiceName: "gnoi.bgp.BGP", + HandlerType: (*BGPServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "ClearBGPNeighbor", + Handler: _BGP_ClearBGPNeighbor_Handler, }, - GoTypes: file_bgp_bgp_proto_goTypes, - DependencyIndexes: file_bgp_bgp_proto_depIdxs, - EnumInfos: file_bgp_bgp_proto_enumTypes, - MessageInfos: file_bgp_bgp_proto_msgTypes, - }.Build() - File_bgp_bgp_proto = out.File - file_bgp_bgp_proto_rawDesc = nil - file_bgp_bgp_proto_goTypes = nil - file_bgp_bgp_proto_depIdxs = nil + }, + Streams: []grpc.StreamDesc{}, + Metadata: "bgp/bgp.proto", } diff --git a/bgp/bgp.proto b/bgp/bgp.proto index 8f8a8c72..77d46cd9 100644 --- a/bgp/bgp.proto +++ b/bgp/bgp.proto @@ -20,8 +20,6 @@ package gnoi.bgp; import "github.com/openconfig/gnoi/types/types.proto"; -option go_package = "github.com/openconfig/gnoi/bgp"; - // The current semantic version of the gNOI BGP service. option (types.gnoi_version) = "0.1.0"; diff --git a/bgp/bgp_grpc.pb.go b/bgp/bgp_grpc.pb.go deleted file mode 100644 index 86676828..00000000 --- a/bgp/bgp_grpc.pb.go +++ /dev/null @@ -1,103 +0,0 @@ -// Code generated by protoc-gen-go-grpc. DO NOT EDIT. - -package bgp - -import ( - context "context" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" -) - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 - -// BGPClient is the client API for BGP service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. -type BGPClient interface { - // ClearBGPNeighbor clears a BGP session. - ClearBGPNeighbor(ctx context.Context, in *ClearBGPNeighborRequest, opts ...grpc.CallOption) (*ClearBGPNeighborResponse, error) -} - -type bGPClient struct { - cc grpc.ClientConnInterface -} - -func NewBGPClient(cc grpc.ClientConnInterface) BGPClient { - return &bGPClient{cc} -} - -func (c *bGPClient) ClearBGPNeighbor(ctx context.Context, in *ClearBGPNeighborRequest, opts ...grpc.CallOption) (*ClearBGPNeighborResponse, error) { - out := new(ClearBGPNeighborResponse) - err := c.cc.Invoke(ctx, "/gnoi.bgp.BGP/ClearBGPNeighbor", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// BGPServer is the server API for BGP service. -// All implementations must embed UnimplementedBGPServer -// for forward compatibility -type BGPServer interface { - // ClearBGPNeighbor clears a BGP session. - ClearBGPNeighbor(context.Context, *ClearBGPNeighborRequest) (*ClearBGPNeighborResponse, error) - mustEmbedUnimplementedBGPServer() -} - -// UnimplementedBGPServer must be embedded to have forward compatible implementations. -type UnimplementedBGPServer struct { -} - -func (UnimplementedBGPServer) ClearBGPNeighbor(context.Context, *ClearBGPNeighborRequest) (*ClearBGPNeighborResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ClearBGPNeighbor not implemented") -} -func (UnimplementedBGPServer) mustEmbedUnimplementedBGPServer() {} - -// UnsafeBGPServer may be embedded to opt out of forward compatibility for this service. -// Use of this interface is not recommended, as added methods to BGPServer will -// result in compilation errors. -type UnsafeBGPServer interface { - mustEmbedUnimplementedBGPServer() -} - -func RegisterBGPServer(s grpc.ServiceRegistrar, srv BGPServer) { - s.RegisterService(&BGP_ServiceDesc, srv) -} - -func _BGP_ClearBGPNeighbor_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ClearBGPNeighborRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(BGPServer).ClearBGPNeighbor(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.bgp.BGP/ClearBGPNeighbor", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(BGPServer).ClearBGPNeighbor(ctx, req.(*ClearBGPNeighborRequest)) - } - return interceptor(ctx, in, info, handler) -} - -// BGP_ServiceDesc is the grpc.ServiceDesc for BGP service. -// It's only intended for direct use with grpc.RegisterService, -// and not to be introspected or modified (even as a copy) -var BGP_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "gnoi.bgp.BGP", - HandlerType: (*BGPServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "ClearBGPNeighbor", - Handler: _BGP_ClearBGPNeighbor_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "bgp/bgp.proto", -} diff --git a/cert/cert.pb.go b/cert/cert.pb.go index edfc32c2..b13e3f9f 100644 --- a/cert/cert.pb.go +++ b/cert/cert.pb.go @@ -1,44 +1,27 @@ -// -// Copyright 2017 Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// - -// This file defines the gNOI API to be used for certificate installation and -// rotation. - // Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.26.0 -// protoc v3.15.7 // source: cert/cert.proto -package cert +package gnoi_certificate import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" _ "github.com/openconfig/gnoi/types" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" + context "golang.org/x/net/context" + grpc "google.golang.org/grpc" + math "math" ) -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) +// 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 // Types of certificates. type CertificateType int32 @@ -50,43 +33,22 @@ const ( CertificateType_CT_X509 CertificateType = 1 ) -// Enum value maps for CertificateType. -var ( - CertificateType_name = map[int32]string{ - 0: "CT_UNKNOWN", - 1: "CT_X509", - } - CertificateType_value = map[string]int32{ - "CT_UNKNOWN": 0, - "CT_X509": 1, - } -) - -func (x CertificateType) Enum() *CertificateType { - p := new(CertificateType) - *p = x - return p -} - -func (x CertificateType) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (CertificateType) Descriptor() protoreflect.EnumDescriptor { - return file_cert_cert_proto_enumTypes[0].Descriptor() +var CertificateType_name = map[int32]string{ + 0: "CT_UNKNOWN", + 1: "CT_X509", } -func (CertificateType) Type() protoreflect.EnumType { - return &file_cert_cert_proto_enumTypes[0] +var CertificateType_value = map[string]int32{ + "CT_UNKNOWN": 0, + "CT_X509": 1, } -func (x CertificateType) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) +func (x CertificateType) String() string { + return proto.EnumName(CertificateType_name, int32(x)) } -// Deprecated: Use CertificateType.Descriptor instead. func (CertificateType) EnumDescriptor() ([]byte, []int) { - return file_cert_cert_proto_rawDescGZIP(), []int{0} + return fileDescriptor_cc7c7ec7dcc94e18, []int{0} } // Algorithm to be used for generation the key pair. @@ -99,43 +61,22 @@ const ( KeyType_KT_RSA KeyType = 1 ) -// Enum value maps for KeyType. -var ( - KeyType_name = map[int32]string{ - 0: "KT_UNKNOWN", - 1: "KT_RSA", - } - KeyType_value = map[string]int32{ - "KT_UNKNOWN": 0, - "KT_RSA": 1, - } -) - -func (x KeyType) Enum() *KeyType { - p := new(KeyType) - *p = x - return p +var KeyType_name = map[int32]string{ + 0: "KT_UNKNOWN", + 1: "KT_RSA", } -func (x KeyType) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (KeyType) Descriptor() protoreflect.EnumDescriptor { - return file_cert_cert_proto_enumTypes[1].Descriptor() -} - -func (KeyType) Type() protoreflect.EnumType { - return &file_cert_cert_proto_enumTypes[1] +var KeyType_value = map[string]int32{ + "KT_UNKNOWN": 0, + "KT_RSA": 1, } -func (x KeyType) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) +func (x KeyType) String() string { + return proto.EnumName(KeyType_name, int32(x)) } -// Deprecated: Use KeyType.Descriptor instead. func (KeyType) EnumDescriptor() ([]byte, []int) { - return file_cert_cert_proto_rawDescGZIP(), []int{1} + return fileDescriptor_cc7c7ec7dcc94e18, []int{1} } // Type of endpoint that can use a cert. This list is to be extended based on @@ -148,94 +89,87 @@ const ( Endpoint_EP_DAEMON Endpoint_Type = 2 ) -// Enum value maps for Endpoint_Type. -var ( - Endpoint_Type_name = map[int32]string{ - 0: "EP_UNSPECIFIED", - 1: "EP_IPSEC_TUNNEL", - 2: "EP_DAEMON", - } - Endpoint_Type_value = map[string]int32{ - "EP_UNSPECIFIED": 0, - "EP_IPSEC_TUNNEL": 1, - "EP_DAEMON": 2, - } -) - -func (x Endpoint_Type) Enum() *Endpoint_Type { - p := new(Endpoint_Type) - *p = x - return p -} - -func (x Endpoint_Type) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (Endpoint_Type) Descriptor() protoreflect.EnumDescriptor { - return file_cert_cert_proto_enumTypes[2].Descriptor() +var Endpoint_Type_name = map[int32]string{ + 0: "EP_UNSPECIFIED", + 1: "EP_IPSEC_TUNNEL", + 2: "EP_DAEMON", } -func (Endpoint_Type) Type() protoreflect.EnumType { - return &file_cert_cert_proto_enumTypes[2] +var Endpoint_Type_value = map[string]int32{ + "EP_UNSPECIFIED": 0, + "EP_IPSEC_TUNNEL": 1, + "EP_DAEMON": 2, } -func (x Endpoint_Type) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) +func (x Endpoint_Type) String() string { + return proto.EnumName(Endpoint_Type_name, int32(x)) } -// Deprecated: Use Endpoint_Type.Descriptor instead. func (Endpoint_Type) EnumDescriptor() ([]byte, []int) { - return file_cert_cert_proto_rawDescGZIP(), []int{23, 0} + return fileDescriptor_cc7c7ec7dcc94e18, []int{21, 0} } // Request messages to rotate existing certificates on the target. type RotateCertificateRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - // Request Messages. // - // Types that are assignable to RotateRequest: + // Types that are valid to be assigned to RotateRequest: // *RotateCertificateRequest_GenerateCsr // *RotateCertificateRequest_LoadCertificate // *RotateCertificateRequest_FinalizeRotation - RotateRequest isRotateCertificateRequest_RotateRequest `protobuf_oneof:"rotate_request"` + RotateRequest isRotateCertificateRequest_RotateRequest `protobuf_oneof:"rotate_request"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *RotateCertificateRequest) Reset() { - *x = RotateCertificateRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cert_cert_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *RotateCertificateRequest) Reset() { *m = RotateCertificateRequest{} } +func (m *RotateCertificateRequest) String() string { return proto.CompactTextString(m) } +func (*RotateCertificateRequest) ProtoMessage() {} +func (*RotateCertificateRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_cc7c7ec7dcc94e18, []int{0} } -func (x *RotateCertificateRequest) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *RotateCertificateRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RotateCertificateRequest.Unmarshal(m, b) +} +func (m *RotateCertificateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RotateCertificateRequest.Marshal(b, m, deterministic) +} +func (m *RotateCertificateRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RotateCertificateRequest.Merge(m, src) +} +func (m *RotateCertificateRequest) XXX_Size() int { + return xxx_messageInfo_RotateCertificateRequest.Size(m) +} +func (m *RotateCertificateRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RotateCertificateRequest.DiscardUnknown(m) } -func (*RotateCertificateRequest) ProtoMessage() {} +var xxx_messageInfo_RotateCertificateRequest proto.InternalMessageInfo -func (x *RotateCertificateRequest) ProtoReflect() protoreflect.Message { - mi := &file_cert_cert_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +type isRotateCertificateRequest_RotateRequest interface { + isRotateCertificateRequest_RotateRequest() } -// Deprecated: Use RotateCertificateRequest.ProtoReflect.Descriptor instead. -func (*RotateCertificateRequest) Descriptor() ([]byte, []int) { - return file_cert_cert_proto_rawDescGZIP(), []int{0} +type RotateCertificateRequest_GenerateCsr struct { + GenerateCsr *GenerateCSRRequest `protobuf:"bytes,1,opt,name=generate_csr,json=generateCsr,proto3,oneof"` +} + +type RotateCertificateRequest_LoadCertificate struct { + LoadCertificate *LoadCertificateRequest `protobuf:"bytes,2,opt,name=load_certificate,json=loadCertificate,proto3,oneof"` +} + +type RotateCertificateRequest_FinalizeRotation struct { + FinalizeRotation *FinalizeRequest `protobuf:"bytes,3,opt,name=finalize_rotation,json=finalizeRotation,proto3,oneof"` } +func (*RotateCertificateRequest_GenerateCsr) isRotateCertificateRequest_RotateRequest() {} + +func (*RotateCertificateRequest_LoadCertificate) isRotateCertificateRequest_RotateRequest() {} + +func (*RotateCertificateRequest_FinalizeRotation) isRotateCertificateRequest_RotateRequest() {} + func (m *RotateCertificateRequest) GetRotateRequest() isRotateCertificateRequest_RotateRequest { if m != nil { return m.RotateRequest @@ -243,95 +177,174 @@ func (m *RotateCertificateRequest) GetRotateRequest() isRotateCertificateRequest return nil } -func (x *RotateCertificateRequest) GetGenerateCsr() *GenerateCSRRequest { - if x, ok := x.GetRotateRequest().(*RotateCertificateRequest_GenerateCsr); ok { +func (m *RotateCertificateRequest) GetGenerateCsr() *GenerateCSRRequest { + if x, ok := m.GetRotateRequest().(*RotateCertificateRequest_GenerateCsr); ok { return x.GenerateCsr } return nil } -func (x *RotateCertificateRequest) GetLoadCertificate() *LoadCertificateRequest { - if x, ok := x.GetRotateRequest().(*RotateCertificateRequest_LoadCertificate); ok { +func (m *RotateCertificateRequest) GetLoadCertificate() *LoadCertificateRequest { + if x, ok := m.GetRotateRequest().(*RotateCertificateRequest_LoadCertificate); ok { return x.LoadCertificate } return nil } -func (x *RotateCertificateRequest) GetFinalizeRotation() *FinalizeRequest { - if x, ok := x.GetRotateRequest().(*RotateCertificateRequest_FinalizeRotation); ok { +func (m *RotateCertificateRequest) GetFinalizeRotation() *FinalizeRequest { + if x, ok := m.GetRotateRequest().(*RotateCertificateRequest_FinalizeRotation); ok { return x.FinalizeRotation } return nil } -type isRotateCertificateRequest_RotateRequest interface { - isRotateCertificateRequest_RotateRequest() -} - -type RotateCertificateRequest_GenerateCsr struct { - GenerateCsr *GenerateCSRRequest `protobuf:"bytes,1,opt,name=generate_csr,json=generateCsr,proto3,oneof"` +// XXX_OneofFuncs is for the internal use of the proto package. +func (*RotateCertificateRequest) 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 _RotateCertificateRequest_OneofMarshaler, _RotateCertificateRequest_OneofUnmarshaler, _RotateCertificateRequest_OneofSizer, []interface{}{ + (*RotateCertificateRequest_GenerateCsr)(nil), + (*RotateCertificateRequest_LoadCertificate)(nil), + (*RotateCertificateRequest_FinalizeRotation)(nil), + } } -type RotateCertificateRequest_LoadCertificate struct { - LoadCertificate *LoadCertificateRequest `protobuf:"bytes,2,opt,name=load_certificate,json=loadCertificate,proto3,oneof"` +func _RotateCertificateRequest_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*RotateCertificateRequest) + // rotate_request + switch x := m.RotateRequest.(type) { + case *RotateCertificateRequest_GenerateCsr: + b.EncodeVarint(1<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.GenerateCsr); err != nil { + return err + } + case *RotateCertificateRequest_LoadCertificate: + b.EncodeVarint(2<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.LoadCertificate); err != nil { + return err + } + case *RotateCertificateRequest_FinalizeRotation: + b.EncodeVarint(3<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.FinalizeRotation); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("RotateCertificateRequest.RotateRequest has unexpected type %T", x) + } + return nil } -type RotateCertificateRequest_FinalizeRotation struct { - FinalizeRotation *FinalizeRequest `protobuf:"bytes,3,opt,name=finalize_rotation,json=finalizeRotation,proto3,oneof"` +func _RotateCertificateRequest_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*RotateCertificateRequest) + switch tag { + case 1: // rotate_request.generate_csr + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(GenerateCSRRequest) + err := b.DecodeMessage(msg) + m.RotateRequest = &RotateCertificateRequest_GenerateCsr{msg} + return true, err + case 2: // rotate_request.load_certificate + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(LoadCertificateRequest) + err := b.DecodeMessage(msg) + m.RotateRequest = &RotateCertificateRequest_LoadCertificate{msg} + return true, err + case 3: // rotate_request.finalize_rotation + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(FinalizeRequest) + err := b.DecodeMessage(msg) + m.RotateRequest = &RotateCertificateRequest_FinalizeRotation{msg} + return true, err + default: + return false, nil + } +} + +func _RotateCertificateRequest_OneofSizer(msg proto.Message) (n int) { + m := msg.(*RotateCertificateRequest) + // rotate_request + switch x := m.RotateRequest.(type) { + case *RotateCertificateRequest_GenerateCsr: + s := proto.Size(x.GenerateCsr) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *RotateCertificateRequest_LoadCertificate: + s := proto.Size(x.LoadCertificate) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *RotateCertificateRequest_FinalizeRotation: + s := proto.Size(x.FinalizeRotation) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n } -func (*RotateCertificateRequest_GenerateCsr) isRotateCertificateRequest_RotateRequest() {} - -func (*RotateCertificateRequest_LoadCertificate) isRotateCertificateRequest_RotateRequest() {} - -func (*RotateCertificateRequest_FinalizeRotation) isRotateCertificateRequest_RotateRequest() {} - // Response Messages from the target. type RotateCertificateResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - // Response messages. // - // Types that are assignable to RotateResponse: + // Types that are valid to be assigned to RotateResponse: // *RotateCertificateResponse_GeneratedCsr // *RotateCertificateResponse_LoadCertificate - RotateResponse isRotateCertificateResponse_RotateResponse `protobuf_oneof:"rotate_response"` + RotateResponse isRotateCertificateResponse_RotateResponse `protobuf_oneof:"rotate_response"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *RotateCertificateResponse) Reset() { - *x = RotateCertificateResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cert_cert_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *RotateCertificateResponse) Reset() { *m = RotateCertificateResponse{} } +func (m *RotateCertificateResponse) String() string { return proto.CompactTextString(m) } +func (*RotateCertificateResponse) ProtoMessage() {} +func (*RotateCertificateResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_cc7c7ec7dcc94e18, []int{1} } -func (x *RotateCertificateResponse) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *RotateCertificateResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RotateCertificateResponse.Unmarshal(m, b) +} +func (m *RotateCertificateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RotateCertificateResponse.Marshal(b, m, deterministic) +} +func (m *RotateCertificateResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RotateCertificateResponse.Merge(m, src) +} +func (m *RotateCertificateResponse) XXX_Size() int { + return xxx_messageInfo_RotateCertificateResponse.Size(m) +} +func (m *RotateCertificateResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RotateCertificateResponse.DiscardUnknown(m) } -func (*RotateCertificateResponse) ProtoMessage() {} +var xxx_messageInfo_RotateCertificateResponse proto.InternalMessageInfo -func (x *RotateCertificateResponse) ProtoReflect() protoreflect.Message { - mi := &file_cert_cert_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +type isRotateCertificateResponse_RotateResponse interface { + isRotateCertificateResponse_RotateResponse() } -// Deprecated: Use RotateCertificateResponse.ProtoReflect.Descriptor instead. -func (*RotateCertificateResponse) Descriptor() ([]byte, []int) { - return file_cert_cert_proto_rawDescGZIP(), []int{1} +type RotateCertificateResponse_GeneratedCsr struct { + GeneratedCsr *GenerateCSRResponse `protobuf:"bytes,1,opt,name=generated_csr,json=generatedCsr,proto3,oneof"` +} + +type RotateCertificateResponse_LoadCertificate struct { + LoadCertificate *LoadCertificateResponse `protobuf:"bytes,2,opt,name=load_certificate,json=loadCertificate,proto3,oneof"` } +func (*RotateCertificateResponse_GeneratedCsr) isRotateCertificateResponse_RotateResponse() {} + +func (*RotateCertificateResponse_LoadCertificate) isRotateCertificateResponse_RotateResponse() {} + func (m *RotateCertificateResponse) GetRotateResponse() isRotateCertificateResponse_RotateResponse { if m != nil { return m.RotateResponse @@ -339,82 +352,148 @@ func (m *RotateCertificateResponse) GetRotateResponse() isRotateCertificateRespo return nil } -func (x *RotateCertificateResponse) GetGeneratedCsr() *GenerateCSRResponse { - if x, ok := x.GetRotateResponse().(*RotateCertificateResponse_GeneratedCsr); ok { +func (m *RotateCertificateResponse) GetGeneratedCsr() *GenerateCSRResponse { + if x, ok := m.GetRotateResponse().(*RotateCertificateResponse_GeneratedCsr); ok { return x.GeneratedCsr } return nil } -func (x *RotateCertificateResponse) GetLoadCertificate() *LoadCertificateResponse { - if x, ok := x.GetRotateResponse().(*RotateCertificateResponse_LoadCertificate); ok { +func (m *RotateCertificateResponse) GetLoadCertificate() *LoadCertificateResponse { + if x, ok := m.GetRotateResponse().(*RotateCertificateResponse_LoadCertificate); ok { return x.LoadCertificate } return nil } -type isRotateCertificateResponse_RotateResponse interface { - isRotateCertificateResponse_RotateResponse() +// XXX_OneofFuncs is for the internal use of the proto package. +func (*RotateCertificateResponse) 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 _RotateCertificateResponse_OneofMarshaler, _RotateCertificateResponse_OneofUnmarshaler, _RotateCertificateResponse_OneofSizer, []interface{}{ + (*RotateCertificateResponse_GeneratedCsr)(nil), + (*RotateCertificateResponse_LoadCertificate)(nil), + } } -type RotateCertificateResponse_GeneratedCsr struct { - GeneratedCsr *GenerateCSRResponse `protobuf:"bytes,1,opt,name=generated_csr,json=generatedCsr,proto3,oneof"` +func _RotateCertificateResponse_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*RotateCertificateResponse) + // rotate_response + switch x := m.RotateResponse.(type) { + case *RotateCertificateResponse_GeneratedCsr: + b.EncodeVarint(1<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.GeneratedCsr); err != nil { + return err + } + case *RotateCertificateResponse_LoadCertificate: + b.EncodeVarint(2<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.LoadCertificate); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("RotateCertificateResponse.RotateResponse has unexpected type %T", x) + } + return nil } -type RotateCertificateResponse_LoadCertificate struct { - LoadCertificate *LoadCertificateResponse `protobuf:"bytes,2,opt,name=load_certificate,json=loadCertificate,proto3,oneof"` +func _RotateCertificateResponse_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*RotateCertificateResponse) + switch tag { + case 1: // rotate_response.generated_csr + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(GenerateCSRResponse) + err := b.DecodeMessage(msg) + m.RotateResponse = &RotateCertificateResponse_GeneratedCsr{msg} + return true, err + case 2: // rotate_response.load_certificate + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(LoadCertificateResponse) + err := b.DecodeMessage(msg) + m.RotateResponse = &RotateCertificateResponse_LoadCertificate{msg} + return true, err + default: + return false, nil + } +} + +func _RotateCertificateResponse_OneofSizer(msg proto.Message) (n int) { + m := msg.(*RotateCertificateResponse) + // rotate_response + switch x := m.RotateResponse.(type) { + case *RotateCertificateResponse_GeneratedCsr: + s := proto.Size(x.GeneratedCsr) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *RotateCertificateResponse_LoadCertificate: + s := proto.Size(x.LoadCertificate) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n } -func (*RotateCertificateResponse_GeneratedCsr) isRotateCertificateResponse_RotateResponse() {} - -func (*RotateCertificateResponse_LoadCertificate) isRotateCertificateResponse_RotateResponse() {} - // Request messages to install new certificates on the target. type InstallCertificateRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - // Request Messages. // - // Types that are assignable to InstallRequest: + // Types that are valid to be assigned to InstallRequest: // *InstallCertificateRequest_GenerateCsr // *InstallCertificateRequest_LoadCertificate - InstallRequest isInstallCertificateRequest_InstallRequest `protobuf_oneof:"install_request"` + InstallRequest isInstallCertificateRequest_InstallRequest `protobuf_oneof:"install_request"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *InstallCertificateRequest) Reset() { - *x = InstallCertificateRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cert_cert_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *InstallCertificateRequest) Reset() { *m = InstallCertificateRequest{} } +func (m *InstallCertificateRequest) String() string { return proto.CompactTextString(m) } +func (*InstallCertificateRequest) ProtoMessage() {} +func (*InstallCertificateRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_cc7c7ec7dcc94e18, []int{2} } -func (x *InstallCertificateRequest) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *InstallCertificateRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_InstallCertificateRequest.Unmarshal(m, b) +} +func (m *InstallCertificateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_InstallCertificateRequest.Marshal(b, m, deterministic) +} +func (m *InstallCertificateRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_InstallCertificateRequest.Merge(m, src) +} +func (m *InstallCertificateRequest) XXX_Size() int { + return xxx_messageInfo_InstallCertificateRequest.Size(m) +} +func (m *InstallCertificateRequest) XXX_DiscardUnknown() { + xxx_messageInfo_InstallCertificateRequest.DiscardUnknown(m) } -func (*InstallCertificateRequest) ProtoMessage() {} +var xxx_messageInfo_InstallCertificateRequest proto.InternalMessageInfo -func (x *InstallCertificateRequest) ProtoReflect() protoreflect.Message { - mi := &file_cert_cert_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +type isInstallCertificateRequest_InstallRequest interface { + isInstallCertificateRequest_InstallRequest() } -// Deprecated: Use InstallCertificateRequest.ProtoReflect.Descriptor instead. -func (*InstallCertificateRequest) Descriptor() ([]byte, []int) { - return file_cert_cert_proto_rawDescGZIP(), []int{2} +type InstallCertificateRequest_GenerateCsr struct { + GenerateCsr *GenerateCSRRequest `protobuf:"bytes,1,opt,name=generate_csr,json=generateCsr,proto3,oneof"` +} + +type InstallCertificateRequest_LoadCertificate struct { + LoadCertificate *LoadCertificateRequest `protobuf:"bytes,2,opt,name=load_certificate,json=loadCertificate,proto3,oneof"` } +func (*InstallCertificateRequest_GenerateCsr) isInstallCertificateRequest_InstallRequest() {} + +func (*InstallCertificateRequest_LoadCertificate) isInstallCertificateRequest_InstallRequest() {} + func (m *InstallCertificateRequest) GetInstallRequest() isInstallCertificateRequest_InstallRequest { if m != nil { return m.InstallRequest @@ -422,82 +501,148 @@ func (m *InstallCertificateRequest) GetInstallRequest() isInstallCertificateRequ return nil } -func (x *InstallCertificateRequest) GetGenerateCsr() *GenerateCSRRequest { - if x, ok := x.GetInstallRequest().(*InstallCertificateRequest_GenerateCsr); ok { +func (m *InstallCertificateRequest) GetGenerateCsr() *GenerateCSRRequest { + if x, ok := m.GetInstallRequest().(*InstallCertificateRequest_GenerateCsr); ok { return x.GenerateCsr } return nil } -func (x *InstallCertificateRequest) GetLoadCertificate() *LoadCertificateRequest { - if x, ok := x.GetInstallRequest().(*InstallCertificateRequest_LoadCertificate); ok { +func (m *InstallCertificateRequest) GetLoadCertificate() *LoadCertificateRequest { + if x, ok := m.GetInstallRequest().(*InstallCertificateRequest_LoadCertificate); ok { return x.LoadCertificate } return nil } -type isInstallCertificateRequest_InstallRequest interface { - isInstallCertificateRequest_InstallRequest() +// XXX_OneofFuncs is for the internal use of the proto package. +func (*InstallCertificateRequest) 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 _InstallCertificateRequest_OneofMarshaler, _InstallCertificateRequest_OneofUnmarshaler, _InstallCertificateRequest_OneofSizer, []interface{}{ + (*InstallCertificateRequest_GenerateCsr)(nil), + (*InstallCertificateRequest_LoadCertificate)(nil), + } } -type InstallCertificateRequest_GenerateCsr struct { - GenerateCsr *GenerateCSRRequest `protobuf:"bytes,1,opt,name=generate_csr,json=generateCsr,proto3,oneof"` +func _InstallCertificateRequest_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*InstallCertificateRequest) + // install_request + switch x := m.InstallRequest.(type) { + case *InstallCertificateRequest_GenerateCsr: + b.EncodeVarint(1<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.GenerateCsr); err != nil { + return err + } + case *InstallCertificateRequest_LoadCertificate: + b.EncodeVarint(2<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.LoadCertificate); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("InstallCertificateRequest.InstallRequest has unexpected type %T", x) + } + return nil } -type InstallCertificateRequest_LoadCertificate struct { - LoadCertificate *LoadCertificateRequest `protobuf:"bytes,2,opt,name=load_certificate,json=loadCertificate,proto3,oneof"` +func _InstallCertificateRequest_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*InstallCertificateRequest) + switch tag { + case 1: // install_request.generate_csr + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(GenerateCSRRequest) + err := b.DecodeMessage(msg) + m.InstallRequest = &InstallCertificateRequest_GenerateCsr{msg} + return true, err + case 2: // install_request.load_certificate + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(LoadCertificateRequest) + err := b.DecodeMessage(msg) + m.InstallRequest = &InstallCertificateRequest_LoadCertificate{msg} + return true, err + default: + return false, nil + } +} + +func _InstallCertificateRequest_OneofSizer(msg proto.Message) (n int) { + m := msg.(*InstallCertificateRequest) + // install_request + switch x := m.InstallRequest.(type) { + case *InstallCertificateRequest_GenerateCsr: + s := proto.Size(x.GenerateCsr) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *InstallCertificateRequest_LoadCertificate: + s := proto.Size(x.LoadCertificate) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n } -func (*InstallCertificateRequest_GenerateCsr) isInstallCertificateRequest_InstallRequest() {} - -func (*InstallCertificateRequest_LoadCertificate) isInstallCertificateRequest_InstallRequest() {} - // Response Messages from the target for the InstallCertificateRequest. type InstallCertificateResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - // Response messages. // - // Types that are assignable to InstallResponse: + // Types that are valid to be assigned to InstallResponse: // *InstallCertificateResponse_GeneratedCsr // *InstallCertificateResponse_LoadCertificate - InstallResponse isInstallCertificateResponse_InstallResponse `protobuf_oneof:"install_response"` + InstallResponse isInstallCertificateResponse_InstallResponse `protobuf_oneof:"install_response"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *InstallCertificateResponse) Reset() { - *x = InstallCertificateResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cert_cert_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *InstallCertificateResponse) Reset() { *m = InstallCertificateResponse{} } +func (m *InstallCertificateResponse) String() string { return proto.CompactTextString(m) } +func (*InstallCertificateResponse) ProtoMessage() {} +func (*InstallCertificateResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_cc7c7ec7dcc94e18, []int{3} } -func (x *InstallCertificateResponse) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *InstallCertificateResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_InstallCertificateResponse.Unmarshal(m, b) +} +func (m *InstallCertificateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_InstallCertificateResponse.Marshal(b, m, deterministic) +} +func (m *InstallCertificateResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_InstallCertificateResponse.Merge(m, src) +} +func (m *InstallCertificateResponse) XXX_Size() int { + return xxx_messageInfo_InstallCertificateResponse.Size(m) +} +func (m *InstallCertificateResponse) XXX_DiscardUnknown() { + xxx_messageInfo_InstallCertificateResponse.DiscardUnknown(m) } -func (*InstallCertificateResponse) ProtoMessage() {} +var xxx_messageInfo_InstallCertificateResponse proto.InternalMessageInfo -func (x *InstallCertificateResponse) ProtoReflect() protoreflect.Message { - mi := &file_cert_cert_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +type isInstallCertificateResponse_InstallResponse interface { + isInstallCertificateResponse_InstallResponse() } -// Deprecated: Use InstallCertificateResponse.ProtoReflect.Descriptor instead. -func (*InstallCertificateResponse) Descriptor() ([]byte, []int) { - return file_cert_cert_proto_rawDescGZIP(), []int{3} +type InstallCertificateResponse_GeneratedCsr struct { + GeneratedCsr *GenerateCSRResponse `protobuf:"bytes,1,opt,name=generated_csr,json=generatedCsr,proto3,oneof"` } +type InstallCertificateResponse_LoadCertificate struct { + LoadCertificate *LoadCertificateResponse `protobuf:"bytes,2,opt,name=load_certificate,json=loadCertificate,proto3,oneof"` +} + +func (*InstallCertificateResponse_GeneratedCsr) isInstallCertificateResponse_InstallResponse() {} + +func (*InstallCertificateResponse_LoadCertificate) isInstallCertificateResponse_InstallResponse() {} + func (m *InstallCertificateResponse) GetInstallResponse() isInstallCertificateResponse_InstallResponse { if m != nil { return m.InstallResponse @@ -505,36 +650,94 @@ func (m *InstallCertificateResponse) GetInstallResponse() isInstallCertificateRe return nil } -func (x *InstallCertificateResponse) GetGeneratedCsr() *GenerateCSRResponse { - if x, ok := x.GetInstallResponse().(*InstallCertificateResponse_GeneratedCsr); ok { +func (m *InstallCertificateResponse) GetGeneratedCsr() *GenerateCSRResponse { + if x, ok := m.GetInstallResponse().(*InstallCertificateResponse_GeneratedCsr); ok { return x.GeneratedCsr } return nil } -func (x *InstallCertificateResponse) GetLoadCertificate() *LoadCertificateResponse { - if x, ok := x.GetInstallResponse().(*InstallCertificateResponse_LoadCertificate); ok { +func (m *InstallCertificateResponse) GetLoadCertificate() *LoadCertificateResponse { + if x, ok := m.GetInstallResponse().(*InstallCertificateResponse_LoadCertificate); ok { return x.LoadCertificate } return nil } -type isInstallCertificateResponse_InstallResponse interface { - isInstallCertificateResponse_InstallResponse() +// XXX_OneofFuncs is for the internal use of the proto package. +func (*InstallCertificateResponse) 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 _InstallCertificateResponse_OneofMarshaler, _InstallCertificateResponse_OneofUnmarshaler, _InstallCertificateResponse_OneofSizer, []interface{}{ + (*InstallCertificateResponse_GeneratedCsr)(nil), + (*InstallCertificateResponse_LoadCertificate)(nil), + } } -type InstallCertificateResponse_GeneratedCsr struct { - GeneratedCsr *GenerateCSRResponse `protobuf:"bytes,1,opt,name=generated_csr,json=generatedCsr,proto3,oneof"` +func _InstallCertificateResponse_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*InstallCertificateResponse) + // install_response + switch x := m.InstallResponse.(type) { + case *InstallCertificateResponse_GeneratedCsr: + b.EncodeVarint(1<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.GeneratedCsr); err != nil { + return err + } + case *InstallCertificateResponse_LoadCertificate: + b.EncodeVarint(2<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.LoadCertificate); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("InstallCertificateResponse.InstallResponse has unexpected type %T", x) + } + return nil } -type InstallCertificateResponse_LoadCertificate struct { - LoadCertificate *LoadCertificateResponse `protobuf:"bytes,2,opt,name=load_certificate,json=loadCertificate,proto3,oneof"` +func _InstallCertificateResponse_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*InstallCertificateResponse) + switch tag { + case 1: // install_response.generated_csr + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(GenerateCSRResponse) + err := b.DecodeMessage(msg) + m.InstallResponse = &InstallCertificateResponse_GeneratedCsr{msg} + return true, err + case 2: // install_response.load_certificate + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(LoadCertificateResponse) + err := b.DecodeMessage(msg) + m.InstallResponse = &InstallCertificateResponse_LoadCertificate{msg} + return true, err + default: + return false, nil + } +} + +func _InstallCertificateResponse_OneofSizer(msg proto.Message) (n int) { + m := msg.(*InstallCertificateResponse) + // install_response + switch x := m.InstallResponse.(type) { + case *InstallCertificateResponse_GeneratedCsr: + s := proto.Size(x.GeneratedCsr) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *InstallCertificateResponse_LoadCertificate: + s := proto.Size(x.LoadCertificate) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n } -func (*InstallCertificateResponse_GeneratedCsr) isInstallCertificateResponse_InstallResponse() {} - -func (*InstallCertificateResponse_LoadCertificate) isInstallCertificateResponse_InstallResponse() {} - // Request to generate the CSR. // When this request is made for rotating an existing certificate as part of the // Rotate() RPC, then the target must ensure that the "certificate_id" is @@ -551,70 +754,58 @@ func (*InstallCertificateResponse_LoadCertificate) isInstallCertificateResponse_ // If there is another ongoing Rotate/Install RPC with the same certificate_id, // the GenerateCSRRequest should fail. type GenerateCSRRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - // Parameters for creating a CSR. CsrParams *CSRParams `protobuf:"bytes,1,opt,name=csr_params,json=csrParams,proto3" json:"csr_params,omitempty"` // The certificate id with which this CSR will be associated. The target // configuration should bind an entity which wants to use a certificate to // the certificate_id it should use. - CertificateId string `protobuf:"bytes,2,opt,name=certificate_id,json=certificateId,proto3" json:"certificate_id,omitempty"` + CertificateId string `protobuf:"bytes,2,opt,name=certificate_id,json=certificateId,proto3" json:"certificate_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *GenerateCSRRequest) Reset() { - *x = GenerateCSRRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cert_cert_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *GenerateCSRRequest) Reset() { *m = GenerateCSRRequest{} } +func (m *GenerateCSRRequest) String() string { return proto.CompactTextString(m) } +func (*GenerateCSRRequest) ProtoMessage() {} +func (*GenerateCSRRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_cc7c7ec7dcc94e18, []int{4} } -func (x *GenerateCSRRequest) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *GenerateCSRRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GenerateCSRRequest.Unmarshal(m, b) } - -func (*GenerateCSRRequest) ProtoMessage() {} - -func (x *GenerateCSRRequest) ProtoReflect() protoreflect.Message { - mi := &file_cert_cert_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *GenerateCSRRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GenerateCSRRequest.Marshal(b, m, deterministic) } - -// Deprecated: Use GenerateCSRRequest.ProtoReflect.Descriptor instead. -func (*GenerateCSRRequest) Descriptor() ([]byte, []int) { - return file_cert_cert_proto_rawDescGZIP(), []int{4} +func (m *GenerateCSRRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GenerateCSRRequest.Merge(m, src) +} +func (m *GenerateCSRRequest) XXX_Size() int { + return xxx_messageInfo_GenerateCSRRequest.Size(m) +} +func (m *GenerateCSRRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GenerateCSRRequest.DiscardUnknown(m) } -func (x *GenerateCSRRequest) GetCsrParams() *CSRParams { - if x != nil { - return x.CsrParams +var xxx_messageInfo_GenerateCSRRequest proto.InternalMessageInfo + +func (m *GenerateCSRRequest) GetCsrParams() *CSRParams { + if m != nil { + return m.CsrParams } return nil } -func (x *GenerateCSRRequest) GetCertificateId() string { - if x != nil { - return x.CertificateId +func (m *GenerateCSRRequest) GetCertificateId() string { + if m != nil { + return m.CertificateId } return "" } // Parameters to be used when generating a Certificate Signing Request. type CSRParams struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - // The type of certificate which will be associated for this CSR. Type CertificateType `protobuf:"varint,1,opt,name=type,proto3,enum=gnoi.certificate.CertificateType" json:"type,omitempty"` // Minimum size of the key to be used by the target when generating a @@ -625,121 +816,117 @@ type CSRParams struct { // stream with an Unimplemented error. KeyType KeyType `protobuf:"varint,3,opt,name=key_type,json=keyType,proto3,enum=gnoi.certificate.KeyType" json:"key_type,omitempty"` // --- common set of parameters applicable for any type of certificate --- // - CommonName string `protobuf:"bytes,4,opt,name=common_name,json=commonName,proto3" json:"common_name,omitempty"` // e.g "device.corp.google.com" - Country string `protobuf:"bytes,5,opt,name=country,proto3" json:"country,omitempty"` // e.g "US" - State string `protobuf:"bytes,6,opt,name=state,proto3" json:"state,omitempty"` // e.g "CA" - City string `protobuf:"bytes,7,opt,name=city,proto3" json:"city,omitempty"` // e.g "Mountain View" - Organization string `protobuf:"bytes,8,opt,name=organization,proto3" json:"organization,omitempty"` // e.g "Google" - OrganizationalUnit string `protobuf:"bytes,9,opt,name=organizational_unit,json=organizationalUnit,proto3" json:"organizational_unit,omitempty"` // e.g "Security" - IpAddress string `protobuf:"bytes,10,opt,name=ip_address,json=ipAddress,proto3" json:"ip_address,omitempty"` - EmailId string `protobuf:"bytes,11,opt,name=email_id,json=emailId,proto3" json:"email_id,omitempty"` + CommonName string `protobuf:"bytes,4,opt,name=common_name,json=commonName,proto3" json:"common_name,omitempty"` + Country string `protobuf:"bytes,5,opt,name=country,proto3" json:"country,omitempty"` + State string `protobuf:"bytes,6,opt,name=state,proto3" json:"state,omitempty"` + City string `protobuf:"bytes,7,opt,name=city,proto3" json:"city,omitempty"` + Organization string `protobuf:"bytes,8,opt,name=organization,proto3" json:"organization,omitempty"` + OrganizationalUnit string `protobuf:"bytes,9,opt,name=organizational_unit,json=organizationalUnit,proto3" json:"organizational_unit,omitempty"` + IpAddress string `protobuf:"bytes,10,opt,name=ip_address,json=ipAddress,proto3" json:"ip_address,omitempty"` + EmailId string `protobuf:"bytes,11,opt,name=email_id,json=emailId,proto3" json:"email_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CSRParams) Reset() { *m = CSRParams{} } +func (m *CSRParams) String() string { return proto.CompactTextString(m) } +func (*CSRParams) ProtoMessage() {} +func (*CSRParams) Descriptor() ([]byte, []int) { + return fileDescriptor_cc7c7ec7dcc94e18, []int{5} } -func (x *CSRParams) Reset() { - *x = CSRParams{} - if protoimpl.UnsafeEnabled { - mi := &file_cert_cert_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *CSRParams) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CSRParams.Unmarshal(m, b) } - -func (x *CSRParams) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *CSRParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CSRParams.Marshal(b, m, deterministic) } - -func (*CSRParams) ProtoMessage() {} - -func (x *CSRParams) ProtoReflect() protoreflect.Message { - mi := &file_cert_cert_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *CSRParams) XXX_Merge(src proto.Message) { + xxx_messageInfo_CSRParams.Merge(m, src) } - -// Deprecated: Use CSRParams.ProtoReflect.Descriptor instead. -func (*CSRParams) Descriptor() ([]byte, []int) { - return file_cert_cert_proto_rawDescGZIP(), []int{5} +func (m *CSRParams) XXX_Size() int { + return xxx_messageInfo_CSRParams.Size(m) +} +func (m *CSRParams) XXX_DiscardUnknown() { + xxx_messageInfo_CSRParams.DiscardUnknown(m) } -func (x *CSRParams) GetType() CertificateType { - if x != nil { - return x.Type +var xxx_messageInfo_CSRParams proto.InternalMessageInfo + +func (m *CSRParams) GetType() CertificateType { + if m != nil { + return m.Type } return CertificateType_CT_UNKNOWN } -func (x *CSRParams) GetMinKeySize() uint32 { - if x != nil { - return x.MinKeySize +func (m *CSRParams) GetMinKeySize() uint32 { + if m != nil { + return m.MinKeySize } return 0 } -func (x *CSRParams) GetKeyType() KeyType { - if x != nil { - return x.KeyType +func (m *CSRParams) GetKeyType() KeyType { + if m != nil { + return m.KeyType } return KeyType_KT_UNKNOWN } -func (x *CSRParams) GetCommonName() string { - if x != nil { - return x.CommonName +func (m *CSRParams) GetCommonName() string { + if m != nil { + return m.CommonName } return "" } -func (x *CSRParams) GetCountry() string { - if x != nil { - return x.Country +func (m *CSRParams) GetCountry() string { + if m != nil { + return m.Country } return "" } -func (x *CSRParams) GetState() string { - if x != nil { - return x.State +func (m *CSRParams) GetState() string { + if m != nil { + return m.State } return "" } -func (x *CSRParams) GetCity() string { - if x != nil { - return x.City +func (m *CSRParams) GetCity() string { + if m != nil { + return m.City } return "" } -func (x *CSRParams) GetOrganization() string { - if x != nil { - return x.Organization +func (m *CSRParams) GetOrganization() string { + if m != nil { + return m.Organization } return "" } -func (x *CSRParams) GetOrganizationalUnit() string { - if x != nil { - return x.OrganizationalUnit +func (m *CSRParams) GetOrganizationalUnit() string { + if m != nil { + return m.OrganizationalUnit } return "" } -func (x *CSRParams) GetIpAddress() string { - if x != nil { - return x.IpAddress +func (m *CSRParams) GetIpAddress() string { + if m != nil { + return m.IpAddress } return "" } -func (x *CSRParams) GetEmailId() string { - if x != nil { - return x.EmailId +func (m *CSRParams) GetEmailId() string { + if m != nil { + return m.EmailId } return "" } @@ -752,48 +939,40 @@ func (x *CSRParams) GetEmailId() string { // An Unimplemented error will be returned if the target cannot generate a CSR // as per the request. In this case, the caller must generate its own key pair. type GenerateCSRResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Csr *CSR `protobuf:"bytes,1,opt,name=csr,proto3" json:"csr,omitempty"` + Csr *CSR `protobuf:"bytes,1,opt,name=csr,proto3" json:"csr,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *GenerateCSRResponse) Reset() { - *x = GenerateCSRResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cert_cert_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *GenerateCSRResponse) Reset() { *m = GenerateCSRResponse{} } +func (m *GenerateCSRResponse) String() string { return proto.CompactTextString(m) } +func (*GenerateCSRResponse) ProtoMessage() {} +func (*GenerateCSRResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_cc7c7ec7dcc94e18, []int{6} } -func (x *GenerateCSRResponse) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *GenerateCSRResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GenerateCSRResponse.Unmarshal(m, b) } - -func (*GenerateCSRResponse) ProtoMessage() {} - -func (x *GenerateCSRResponse) ProtoReflect() protoreflect.Message { - mi := &file_cert_cert_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *GenerateCSRResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GenerateCSRResponse.Marshal(b, m, deterministic) } - -// Deprecated: Use GenerateCSRResponse.ProtoReflect.Descriptor instead. -func (*GenerateCSRResponse) Descriptor() ([]byte, []int) { - return file_cert_cert_proto_rawDescGZIP(), []int{6} +func (m *GenerateCSRResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GenerateCSRResponse.Merge(m, src) +} +func (m *GenerateCSRResponse) XXX_Size() int { + return xxx_messageInfo_GenerateCSRResponse.Size(m) } +func (m *GenerateCSRResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GenerateCSRResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_GenerateCSRResponse proto.InternalMessageInfo -func (x *GenerateCSRResponse) GetCsr() *CSR { - if x != nil { - return x.Csr +func (m *GenerateCSRResponse) GetCsr() *CSR { + if m != nil { + return m.Csr } return nil } @@ -813,10 +992,6 @@ func (x *GenerateCSRResponse) GetCsr() *CSR { // If there is another ongoing Rotate/Install RPC with the same certificate_id, // the LoadCertificateRequest must fail. type LoadCertificateRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - // The certificate to be Loaded on the target. Certificate *Certificate `protobuf:"bytes,1,opt,name=certificate,proto3" json:"certificate,omitempty"` // The key pair to be used with the certificate. This is provided in the event @@ -830,69 +1005,61 @@ type LoadCertificateRequest struct { // certificates should squash the existing bundle. This field provides a // simplified means to provision a CA bundle that can be used to validate // other peer's certificates. - // To improve performance in the Target, certificates can be ordered. - // Groups of chained certificates should be last, where within, the root - // certificate is the last one. E.g.: - // CertA, CertB, CertB-Root, CertC, CertC-Intermediate, CertC-Root - CaCertificates []*Certificate `protobuf:"bytes,4,rep,name=ca_certificates,json=caCertificates,proto3" json:"ca_certificates,omitempty"` + CaCertificates []*Certificate `protobuf:"bytes,4,rep,name=ca_certificates,json=caCertificates,proto3" json:"ca_certificates,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *LoadCertificateRequest) Reset() { - *x = LoadCertificateRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cert_cert_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *LoadCertificateRequest) Reset() { *m = LoadCertificateRequest{} } +func (m *LoadCertificateRequest) String() string { return proto.CompactTextString(m) } +func (*LoadCertificateRequest) ProtoMessage() {} +func (*LoadCertificateRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_cc7c7ec7dcc94e18, []int{7} } -func (x *LoadCertificateRequest) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *LoadCertificateRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_LoadCertificateRequest.Unmarshal(m, b) } - -func (*LoadCertificateRequest) ProtoMessage() {} - -func (x *LoadCertificateRequest) ProtoReflect() protoreflect.Message { - mi := &file_cert_cert_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *LoadCertificateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_LoadCertificateRequest.Marshal(b, m, deterministic) } - -// Deprecated: Use LoadCertificateRequest.ProtoReflect.Descriptor instead. -func (*LoadCertificateRequest) Descriptor() ([]byte, []int) { - return file_cert_cert_proto_rawDescGZIP(), []int{7} +func (m *LoadCertificateRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_LoadCertificateRequest.Merge(m, src) } +func (m *LoadCertificateRequest) XXX_Size() int { + return xxx_messageInfo_LoadCertificateRequest.Size(m) +} +func (m *LoadCertificateRequest) XXX_DiscardUnknown() { + xxx_messageInfo_LoadCertificateRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_LoadCertificateRequest proto.InternalMessageInfo -func (x *LoadCertificateRequest) GetCertificate() *Certificate { - if x != nil { - return x.Certificate +func (m *LoadCertificateRequest) GetCertificate() *Certificate { + if m != nil { + return m.Certificate } return nil } -func (x *LoadCertificateRequest) GetKeyPair() *KeyPair { - if x != nil { - return x.KeyPair +func (m *LoadCertificateRequest) GetKeyPair() *KeyPair { + if m != nil { + return m.KeyPair } return nil } -func (x *LoadCertificateRequest) GetCertificateId() string { - if x != nil { - return x.CertificateId +func (m *LoadCertificateRequest) GetCertificateId() string { + if m != nil { + return m.CertificateId } return "" } -func (x *LoadCertificateRequest) GetCaCertificates() []*Certificate { - if x != nil { - return x.CaCertificates +func (m *LoadCertificateRequest) GetCaCertificates() []*Certificate { + if m != nil { + return m.CaCertificates } return nil } @@ -901,562 +1068,399 @@ func (x *LoadCertificateRequest) GetCaCertificates() []*Certificate { // If the target could not load the certificate, it must end the RPC stream with // a suitable RPC error about why the Certificate was not loaded. type LoadCertificateResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *LoadCertificateResponse) Reset() { - *x = LoadCertificateResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cert_cert_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *LoadCertificateResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*LoadCertificateResponse) ProtoMessage() {} - -func (x *LoadCertificateResponse) ProtoReflect() protoreflect.Message { - mi := &file_cert_cert_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use LoadCertificateResponse.ProtoReflect.Descriptor instead. +func (m *LoadCertificateResponse) Reset() { *m = LoadCertificateResponse{} } +func (m *LoadCertificateResponse) String() string { return proto.CompactTextString(m) } +func (*LoadCertificateResponse) ProtoMessage() {} func (*LoadCertificateResponse) Descriptor() ([]byte, []int) { - return file_cert_cert_proto_rawDescGZIP(), []int{8} -} - -// Bundle of CA certificates. Same as LoadCertificateRequest::ca_certificates. -type LoadCertificateAuthorityBundleRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Squashes the existing certificate bundle. - // To improve performance in the Target, certificates can be ordered. - // Groups of chained certificates should be last, where within, the root - // certificate is the last one. E.g.: - // CertA, CertB, CertB-Root, CertC, CertC-Intermediate, CertC-Root - CaCertificates []*Certificate `protobuf:"bytes,1,rep,name=ca_certificates,json=caCertificates,proto3" json:"ca_certificates,omitempty"` -} - -func (x *LoadCertificateAuthorityBundleRequest) Reset() { - *x = LoadCertificateAuthorityBundleRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cert_cert_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *LoadCertificateAuthorityBundleRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*LoadCertificateAuthorityBundleRequest) ProtoMessage() {} - -func (x *LoadCertificateAuthorityBundleRequest) ProtoReflect() protoreflect.Message { - mi := &file_cert_cert_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) + return fileDescriptor_cc7c7ec7dcc94e18, []int{8} } -// Deprecated: Use LoadCertificateAuthorityBundleRequest.ProtoReflect.Descriptor instead. -func (*LoadCertificateAuthorityBundleRequest) Descriptor() ([]byte, []int) { - return file_cert_cert_proto_rawDescGZIP(), []int{9} +func (m *LoadCertificateResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_LoadCertificateResponse.Unmarshal(m, b) } - -func (x *LoadCertificateAuthorityBundleRequest) GetCaCertificates() []*Certificate { - if x != nil { - return x.CaCertificates - } - return nil +func (m *LoadCertificateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_LoadCertificateResponse.Marshal(b, m, deterministic) } - -// Response from target after Loading a certificate authority bundle. -// If the target could not load the certificates, it must end the RPC stream -// with a suitable RPC error about why the Certificate was not loaded. -type LoadCertificateAuthorityBundleResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields +func (m *LoadCertificateResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_LoadCertificateResponse.Merge(m, src) } - -func (x *LoadCertificateAuthorityBundleResponse) Reset() { - *x = LoadCertificateAuthorityBundleResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cert_cert_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *LoadCertificateResponse) XXX_Size() int { + return xxx_messageInfo_LoadCertificateResponse.Size(m) } - -func (x *LoadCertificateAuthorityBundleResponse) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *LoadCertificateResponse) XXX_DiscardUnknown() { + xxx_messageInfo_LoadCertificateResponse.DiscardUnknown(m) } -func (*LoadCertificateAuthorityBundleResponse) ProtoMessage() {} - -func (x *LoadCertificateAuthorityBundleResponse) ProtoReflect() protoreflect.Message { - mi := &file_cert_cert_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use LoadCertificateAuthorityBundleResponse.ProtoReflect.Descriptor instead. -func (*LoadCertificateAuthorityBundleResponse) Descriptor() ([]byte, []int) { - return file_cert_cert_proto_rawDescGZIP(), []int{10} -} +var xxx_messageInfo_LoadCertificateResponse proto.InternalMessageInfo // A Finalize message is sent to the target to confirm the Rotation of // the certificate and that the certificate should not be rolled back when // the RPC concludes. The certificate must be rolled back if the target returns // an error after receiving a Finalize message. type FinalizeRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *FinalizeRequest) Reset() { - *x = FinalizeRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cert_cert_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *FinalizeRequest) Reset() { *m = FinalizeRequest{} } +func (m *FinalizeRequest) String() string { return proto.CompactTextString(m) } +func (*FinalizeRequest) ProtoMessage() {} +func (*FinalizeRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_cc7c7ec7dcc94e18, []int{9} } -func (x *FinalizeRequest) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *FinalizeRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_FinalizeRequest.Unmarshal(m, b) } - -func (*FinalizeRequest) ProtoMessage() {} - -func (x *FinalizeRequest) ProtoReflect() protoreflect.Message { - mi := &file_cert_cert_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *FinalizeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_FinalizeRequest.Marshal(b, m, deterministic) } - -// Deprecated: Use FinalizeRequest.ProtoReflect.Descriptor instead. -func (*FinalizeRequest) Descriptor() ([]byte, []int) { - return file_cert_cert_proto_rawDescGZIP(), []int{11} +func (m *FinalizeRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_FinalizeRequest.Merge(m, src) +} +func (m *FinalizeRequest) XXX_Size() int { + return xxx_messageInfo_FinalizeRequest.Size(m) +} +func (m *FinalizeRequest) XXX_DiscardUnknown() { + xxx_messageInfo_FinalizeRequest.DiscardUnknown(m) } +var xxx_messageInfo_FinalizeRequest proto.InternalMessageInfo + // The request to query all the certificates on the target. type GetCertificatesRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *GetCertificatesRequest) Reset() { - *x = GetCertificatesRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cert_cert_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *GetCertificatesRequest) Reset() { *m = GetCertificatesRequest{} } +func (m *GetCertificatesRequest) String() string { return proto.CompactTextString(m) } +func (*GetCertificatesRequest) ProtoMessage() {} +func (*GetCertificatesRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_cc7c7ec7dcc94e18, []int{10} } -func (x *GetCertificatesRequest) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *GetCertificatesRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetCertificatesRequest.Unmarshal(m, b) } - -func (*GetCertificatesRequest) ProtoMessage() {} - -func (x *GetCertificatesRequest) ProtoReflect() protoreflect.Message { - mi := &file_cert_cert_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *GetCertificatesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetCertificatesRequest.Marshal(b, m, deterministic) } - -// Deprecated: Use GetCertificatesRequest.ProtoReflect.Descriptor instead. -func (*GetCertificatesRequest) Descriptor() ([]byte, []int) { - return file_cert_cert_proto_rawDescGZIP(), []int{12} +func (m *GetCertificatesRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetCertificatesRequest.Merge(m, src) +} +func (m *GetCertificatesRequest) XXX_Size() int { + return xxx_messageInfo_GetCertificatesRequest.Size(m) } +func (m *GetCertificatesRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetCertificatesRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_GetCertificatesRequest proto.InternalMessageInfo // Response from the target about the certificates that exist on the target what // what is using them. type GetCertificatesResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - CertificateInfo []*CertificateInfo `protobuf:"bytes,1,rep,name=certificate_info,json=certificateInfo,proto3" json:"certificate_info,omitempty"` + CertificateInfo []*CertificateInfo `protobuf:"bytes,1,rep,name=certificate_info,json=certificateInfo,proto3" json:"certificate_info,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *GetCertificatesResponse) Reset() { - *x = GetCertificatesResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cert_cert_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *GetCertificatesResponse) Reset() { *m = GetCertificatesResponse{} } +func (m *GetCertificatesResponse) String() string { return proto.CompactTextString(m) } +func (*GetCertificatesResponse) ProtoMessage() {} +func (*GetCertificatesResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_cc7c7ec7dcc94e18, []int{11} } -func (x *GetCertificatesResponse) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *GetCertificatesResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetCertificatesResponse.Unmarshal(m, b) } - -func (*GetCertificatesResponse) ProtoMessage() {} - -func (x *GetCertificatesResponse) ProtoReflect() protoreflect.Message { - mi := &file_cert_cert_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *GetCertificatesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetCertificatesResponse.Marshal(b, m, deterministic) } - -// Deprecated: Use GetCertificatesResponse.ProtoReflect.Descriptor instead. -func (*GetCertificatesResponse) Descriptor() ([]byte, []int) { - return file_cert_cert_proto_rawDescGZIP(), []int{13} +func (m *GetCertificatesResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetCertificatesResponse.Merge(m, src) +} +func (m *GetCertificatesResponse) XXX_Size() int { + return xxx_messageInfo_GetCertificatesResponse.Size(m) } +func (m *GetCertificatesResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetCertificatesResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_GetCertificatesResponse proto.InternalMessageInfo -func (x *GetCertificatesResponse) GetCertificateInfo() []*CertificateInfo { - if x != nil { - return x.CertificateInfo +func (m *GetCertificatesResponse) GetCertificateInfo() []*CertificateInfo { + if m != nil { + return m.CertificateInfo } return nil } type CertificateInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - CertificateId string `protobuf:"bytes,1,opt,name=certificate_id,json=certificateId,proto3" json:"certificate_id,omitempty"` Certificate *Certificate `protobuf:"bytes,2,opt,name=certificate,proto3" json:"certificate,omitempty"` // List of endpoints using this certificate. Endpoints []*Endpoint `protobuf:"bytes,3,rep,name=endpoints,proto3" json:"endpoints,omitempty"` // System modification time when the certificate was installed/rotated in // nanoseconds since epoch. - ModificationTime int64 `protobuf:"varint,4,opt,name=modification_time,json=modificationTime,proto3" json:"modification_time,omitempty"` + ModificationTime int64 `protobuf:"varint,4,opt,name=modification_time,json=modificationTime,proto3" json:"modification_time,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *CertificateInfo) Reset() { - *x = CertificateInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_cert_cert_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *CertificateInfo) Reset() { *m = CertificateInfo{} } +func (m *CertificateInfo) String() string { return proto.CompactTextString(m) } +func (*CertificateInfo) ProtoMessage() {} +func (*CertificateInfo) Descriptor() ([]byte, []int) { + return fileDescriptor_cc7c7ec7dcc94e18, []int{12} } -func (x *CertificateInfo) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *CertificateInfo) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CertificateInfo.Unmarshal(m, b) } - -func (*CertificateInfo) ProtoMessage() {} - -func (x *CertificateInfo) ProtoReflect() protoreflect.Message { - mi := &file_cert_cert_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *CertificateInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CertificateInfo.Marshal(b, m, deterministic) } - -// Deprecated: Use CertificateInfo.ProtoReflect.Descriptor instead. -func (*CertificateInfo) Descriptor() ([]byte, []int) { - return file_cert_cert_proto_rawDescGZIP(), []int{14} +func (m *CertificateInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_CertificateInfo.Merge(m, src) +} +func (m *CertificateInfo) XXX_Size() int { + return xxx_messageInfo_CertificateInfo.Size(m) } +func (m *CertificateInfo) XXX_DiscardUnknown() { + xxx_messageInfo_CertificateInfo.DiscardUnknown(m) +} + +var xxx_messageInfo_CertificateInfo proto.InternalMessageInfo -func (x *CertificateInfo) GetCertificateId() string { - if x != nil { - return x.CertificateId +func (m *CertificateInfo) GetCertificateId() string { + if m != nil { + return m.CertificateId } return "" } -func (x *CertificateInfo) GetCertificate() *Certificate { - if x != nil { - return x.Certificate +func (m *CertificateInfo) GetCertificate() *Certificate { + if m != nil { + return m.Certificate } return nil } -func (x *CertificateInfo) GetEndpoints() []*Endpoint { - if x != nil { - return x.Endpoints +func (m *CertificateInfo) GetEndpoints() []*Endpoint { + if m != nil { + return m.Endpoints } return nil } -func (x *CertificateInfo) GetModificationTime() int64 { - if x != nil { - return x.ModificationTime +func (m *CertificateInfo) GetModificationTime() int64 { + if m != nil { + return m.ModificationTime } return 0 } type RevokeCertificatesRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - // Certificates to revoke. - CertificateId []string `protobuf:"bytes,1,rep,name=certificate_id,json=certificateId,proto3" json:"certificate_id,omitempty"` + CertificateId []string `protobuf:"bytes,1,rep,name=certificate_id,json=certificateId,proto3" json:"certificate_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *RevokeCertificatesRequest) Reset() { - *x = RevokeCertificatesRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cert_cert_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *RevokeCertificatesRequest) Reset() { *m = RevokeCertificatesRequest{} } +func (m *RevokeCertificatesRequest) String() string { return proto.CompactTextString(m) } +func (*RevokeCertificatesRequest) ProtoMessage() {} +func (*RevokeCertificatesRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_cc7c7ec7dcc94e18, []int{13} } -func (x *RevokeCertificatesRequest) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *RevokeCertificatesRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RevokeCertificatesRequest.Unmarshal(m, b) } - -func (*RevokeCertificatesRequest) ProtoMessage() {} - -func (x *RevokeCertificatesRequest) ProtoReflect() protoreflect.Message { - mi := &file_cert_cert_proto_msgTypes[15] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *RevokeCertificatesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RevokeCertificatesRequest.Marshal(b, m, deterministic) } - -// Deprecated: Use RevokeCertificatesRequest.ProtoReflect.Descriptor instead. -func (*RevokeCertificatesRequest) Descriptor() ([]byte, []int) { - return file_cert_cert_proto_rawDescGZIP(), []int{15} +func (m *RevokeCertificatesRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RevokeCertificatesRequest.Merge(m, src) +} +func (m *RevokeCertificatesRequest) XXX_Size() int { + return xxx_messageInfo_RevokeCertificatesRequest.Size(m) +} +func (m *RevokeCertificatesRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RevokeCertificatesRequest.DiscardUnknown(m) } -func (x *RevokeCertificatesRequest) GetCertificateId() []string { - if x != nil { - return x.CertificateId +var xxx_messageInfo_RevokeCertificatesRequest proto.InternalMessageInfo + +func (m *RevokeCertificatesRequest) GetCertificateId() []string { + if m != nil { + return m.CertificateId } return nil } type RevokeCertificatesResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - // List of certificates successfully revoked. RevokedCertificateId []string `protobuf:"bytes,1,rep,name=revoked_certificate_id,json=revokedCertificateId,proto3" json:"revoked_certificate_id,omitempty"` // List of errors why certain certificates could not be revoked. CertificateRevocationError []*CertificateRevocationError `protobuf:"bytes,2,rep,name=certificate_revocation_error,json=certificateRevocationError,proto3" json:"certificate_revocation_error,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *RevokeCertificatesResponse) Reset() { - *x = RevokeCertificatesResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cert_cert_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *RevokeCertificatesResponse) Reset() { *m = RevokeCertificatesResponse{} } +func (m *RevokeCertificatesResponse) String() string { return proto.CompactTextString(m) } +func (*RevokeCertificatesResponse) ProtoMessage() {} +func (*RevokeCertificatesResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_cc7c7ec7dcc94e18, []int{14} } -func (x *RevokeCertificatesResponse) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *RevokeCertificatesResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RevokeCertificatesResponse.Unmarshal(m, b) } - -func (*RevokeCertificatesResponse) ProtoMessage() {} - -func (x *RevokeCertificatesResponse) ProtoReflect() protoreflect.Message { - mi := &file_cert_cert_proto_msgTypes[16] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *RevokeCertificatesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RevokeCertificatesResponse.Marshal(b, m, deterministic) } - -// Deprecated: Use RevokeCertificatesResponse.ProtoReflect.Descriptor instead. -func (*RevokeCertificatesResponse) Descriptor() ([]byte, []int) { - return file_cert_cert_proto_rawDescGZIP(), []int{16} +func (m *RevokeCertificatesResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RevokeCertificatesResponse.Merge(m, src) } +func (m *RevokeCertificatesResponse) XXX_Size() int { + return xxx_messageInfo_RevokeCertificatesResponse.Size(m) +} +func (m *RevokeCertificatesResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RevokeCertificatesResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RevokeCertificatesResponse proto.InternalMessageInfo -func (x *RevokeCertificatesResponse) GetRevokedCertificateId() []string { - if x != nil { - return x.RevokedCertificateId +func (m *RevokeCertificatesResponse) GetRevokedCertificateId() []string { + if m != nil { + return m.RevokedCertificateId } return nil } -func (x *RevokeCertificatesResponse) GetCertificateRevocationError() []*CertificateRevocationError { - if x != nil { - return x.CertificateRevocationError +func (m *RevokeCertificatesResponse) GetCertificateRevocationError() []*CertificateRevocationError { + if m != nil { + return m.CertificateRevocationError } return nil } // An error message indicating why a certificate id could not be revoked. type CertificateRevocationError struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - CertificateId string `protobuf:"bytes,1,opt,name=certificate_id,json=certificateId,proto3" json:"certificate_id,omitempty"` - ErrorMessage string `protobuf:"bytes,2,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"` + CertificateId string `protobuf:"bytes,1,opt,name=certificate_id,json=certificateId,proto3" json:"certificate_id,omitempty"` + ErrorMessage string `protobuf:"bytes,2,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *CertificateRevocationError) Reset() { - *x = CertificateRevocationError{} - if protoimpl.UnsafeEnabled { - mi := &file_cert_cert_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *CertificateRevocationError) Reset() { *m = CertificateRevocationError{} } +func (m *CertificateRevocationError) String() string { return proto.CompactTextString(m) } +func (*CertificateRevocationError) ProtoMessage() {} +func (*CertificateRevocationError) Descriptor() ([]byte, []int) { + return fileDescriptor_cc7c7ec7dcc94e18, []int{15} } -func (x *CertificateRevocationError) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *CertificateRevocationError) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CertificateRevocationError.Unmarshal(m, b) } - -func (*CertificateRevocationError) ProtoMessage() {} - -func (x *CertificateRevocationError) ProtoReflect() protoreflect.Message { - mi := &file_cert_cert_proto_msgTypes[17] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *CertificateRevocationError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CertificateRevocationError.Marshal(b, m, deterministic) } - -// Deprecated: Use CertificateRevocationError.ProtoReflect.Descriptor instead. -func (*CertificateRevocationError) Descriptor() ([]byte, []int) { - return file_cert_cert_proto_rawDescGZIP(), []int{17} +func (m *CertificateRevocationError) XXX_Merge(src proto.Message) { + xxx_messageInfo_CertificateRevocationError.Merge(m, src) +} +func (m *CertificateRevocationError) XXX_Size() int { + return xxx_messageInfo_CertificateRevocationError.Size(m) +} +func (m *CertificateRevocationError) XXX_DiscardUnknown() { + xxx_messageInfo_CertificateRevocationError.DiscardUnknown(m) } -func (x *CertificateRevocationError) GetCertificateId() string { - if x != nil { - return x.CertificateId +var xxx_messageInfo_CertificateRevocationError proto.InternalMessageInfo + +func (m *CertificateRevocationError) GetCertificateId() string { + if m != nil { + return m.CertificateId } return "" } -func (x *CertificateRevocationError) GetErrorMessage() string { - if x != nil { - return x.ErrorMessage +func (m *CertificateRevocationError) GetErrorMessage() string { + if m != nil { + return m.ErrorMessage } return "" } // A request to ask the target if it can generate key pairs. type CanGenerateCSRRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - KeyType KeyType `protobuf:"varint,1,opt,name=key_type,json=keyType,proto3,enum=gnoi.certificate.KeyType" json:"key_type,omitempty"` - CertificateType CertificateType `protobuf:"varint,2,opt,name=certificate_type,json=certificateType,proto3,enum=gnoi.certificate.CertificateType" json:"certificate_type,omitempty"` - KeySize uint32 `protobuf:"varint,3,opt,name=key_size,json=keySize,proto3" json:"key_size,omitempty"` + KeyType KeyType `protobuf:"varint,1,opt,name=key_type,json=keyType,proto3,enum=gnoi.certificate.KeyType" json:"key_type,omitempty"` + CertificateType CertificateType `protobuf:"varint,2,opt,name=certificate_type,json=certificateType,proto3,enum=gnoi.certificate.CertificateType" json:"certificate_type,omitempty"` + KeySize uint32 `protobuf:"varint,3,opt,name=key_size,json=keySize,proto3" json:"key_size,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *CanGenerateCSRRequest) Reset() { - *x = CanGenerateCSRRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_cert_cert_proto_msgTypes[18] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *CanGenerateCSRRequest) Reset() { *m = CanGenerateCSRRequest{} } +func (m *CanGenerateCSRRequest) String() string { return proto.CompactTextString(m) } +func (*CanGenerateCSRRequest) ProtoMessage() {} +func (*CanGenerateCSRRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_cc7c7ec7dcc94e18, []int{16} } -func (x *CanGenerateCSRRequest) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *CanGenerateCSRRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CanGenerateCSRRequest.Unmarshal(m, b) } - -func (*CanGenerateCSRRequest) ProtoMessage() {} - -func (x *CanGenerateCSRRequest) ProtoReflect() protoreflect.Message { - mi := &file_cert_cert_proto_msgTypes[18] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *CanGenerateCSRRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CanGenerateCSRRequest.Marshal(b, m, deterministic) } - -// Deprecated: Use CanGenerateCSRRequest.ProtoReflect.Descriptor instead. -func (*CanGenerateCSRRequest) Descriptor() ([]byte, []int) { - return file_cert_cert_proto_rawDescGZIP(), []int{18} +func (m *CanGenerateCSRRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_CanGenerateCSRRequest.Merge(m, src) } +func (m *CanGenerateCSRRequest) XXX_Size() int { + return xxx_messageInfo_CanGenerateCSRRequest.Size(m) +} +func (m *CanGenerateCSRRequest) XXX_DiscardUnknown() { + xxx_messageInfo_CanGenerateCSRRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_CanGenerateCSRRequest proto.InternalMessageInfo -func (x *CanGenerateCSRRequest) GetKeyType() KeyType { - if x != nil { - return x.KeyType +func (m *CanGenerateCSRRequest) GetKeyType() KeyType { + if m != nil { + return m.KeyType } return KeyType_KT_UNKNOWN } -func (x *CanGenerateCSRRequest) GetCertificateType() CertificateType { - if x != nil { - return x.CertificateType +func (m *CanGenerateCSRRequest) GetCertificateType() CertificateType { + if m != nil { + return m.CertificateType } return CertificateType_CT_UNKNOWN } -func (x *CanGenerateCSRRequest) GetKeySize() uint32 { - if x != nil { - return x.KeySize +func (m *CanGenerateCSRRequest) GetKeySize() uint32 { + if m != nil { + return m.KeySize } return 0 } @@ -1464,993 +1468,827 @@ func (x *CanGenerateCSRRequest) GetKeySize() uint32 { // Response from the target about whether it can generate a CSR with the given // parameters. type CanGenerateCSRResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - CanGenerate bool `protobuf:"varint,4,opt,name=can_generate,json=canGenerate,proto3" json:"can_generate,omitempty"` + CanGenerate bool `protobuf:"varint,4,opt,name=can_generate,json=canGenerate,proto3" json:"can_generate,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *CanGenerateCSRResponse) Reset() { - *x = CanGenerateCSRResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_cert_cert_proto_msgTypes[19] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *CanGenerateCSRResponse) Reset() { *m = CanGenerateCSRResponse{} } +func (m *CanGenerateCSRResponse) String() string { return proto.CompactTextString(m) } +func (*CanGenerateCSRResponse) ProtoMessage() {} +func (*CanGenerateCSRResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_cc7c7ec7dcc94e18, []int{17} } -func (x *CanGenerateCSRResponse) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *CanGenerateCSRResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CanGenerateCSRResponse.Unmarshal(m, b) } - -func (*CanGenerateCSRResponse) ProtoMessage() {} - -func (x *CanGenerateCSRResponse) ProtoReflect() protoreflect.Message { - mi := &file_cert_cert_proto_msgTypes[19] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *CanGenerateCSRResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CanGenerateCSRResponse.Marshal(b, m, deterministic) } - -// Deprecated: Use CanGenerateCSRResponse.ProtoReflect.Descriptor instead. -func (*CanGenerateCSRResponse) Descriptor() ([]byte, []int) { - return file_cert_cert_proto_rawDescGZIP(), []int{19} +func (m *CanGenerateCSRResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_CanGenerateCSRResponse.Merge(m, src) +} +func (m *CanGenerateCSRResponse) XXX_Size() int { + return xxx_messageInfo_CanGenerateCSRResponse.Size(m) } +func (m *CanGenerateCSRResponse) XXX_DiscardUnknown() { + xxx_messageInfo_CanGenerateCSRResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_CanGenerateCSRResponse proto.InternalMessageInfo -func (x *CanGenerateCSRResponse) GetCanGenerate() bool { - if x != nil { - return x.CanGenerate +func (m *CanGenerateCSRResponse) GetCanGenerate() bool { + if m != nil { + return m.CanGenerate } return false } // A certificate. type Certificate struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - // Type of certificate. Type CertificateType `protobuf:"varint,1,opt,name=type,proto3,enum=gnoi.certificate.CertificateType" json:"type,omitempty"` // Actual certificate. // The exact encoding depends upon the type of certificate. // for X509, this should be a PEM encoded Certificate. - Certificate []byte `protobuf:"bytes,2,opt,name=certificate,proto3" json:"certificate,omitempty"` + Certificate []byte `protobuf:"bytes,2,opt,name=certificate,proto3" json:"certificate,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *Certificate) Reset() { - *x = Certificate{} - if protoimpl.UnsafeEnabled { - mi := &file_cert_cert_proto_msgTypes[20] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *Certificate) Reset() { *m = Certificate{} } +func (m *Certificate) String() string { return proto.CompactTextString(m) } +func (*Certificate) ProtoMessage() {} +func (*Certificate) Descriptor() ([]byte, []int) { + return fileDescriptor_cc7c7ec7dcc94e18, []int{18} } -func (x *Certificate) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *Certificate) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Certificate.Unmarshal(m, b) } - -func (*Certificate) ProtoMessage() {} - -func (x *Certificate) ProtoReflect() protoreflect.Message { - mi := &file_cert_cert_proto_msgTypes[20] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *Certificate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Certificate.Marshal(b, m, deterministic) } - -// Deprecated: Use Certificate.ProtoReflect.Descriptor instead. -func (*Certificate) Descriptor() ([]byte, []int) { - return file_cert_cert_proto_rawDescGZIP(), []int{20} +func (m *Certificate) XXX_Merge(src proto.Message) { + xxx_messageInfo_Certificate.Merge(m, src) } +func (m *Certificate) XXX_Size() int { + return xxx_messageInfo_Certificate.Size(m) +} +func (m *Certificate) XXX_DiscardUnknown() { + xxx_messageInfo_Certificate.DiscardUnknown(m) +} + +var xxx_messageInfo_Certificate proto.InternalMessageInfo -func (x *Certificate) GetType() CertificateType { - if x != nil { - return x.Type +func (m *Certificate) GetType() CertificateType { + if m != nil { + return m.Type } return CertificateType_CT_UNKNOWN } -func (x *Certificate) GetCertificate() []byte { - if x != nil { - return x.Certificate +func (m *Certificate) GetCertificate() []byte { + if m != nil { + return m.Certificate } return nil } // A Certificate Signing Request. type CSR struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - // Type of certificate. Type CertificateType `protobuf:"varint,1,opt,name=type,proto3,enum=gnoi.certificate.CertificateType" json:"type,omitempty"` // Bytes representing the CSR. // The exact encoding depends upon the type of certificate requested. // for X509: This should be the PEM encoded CSR. - Csr []byte `protobuf:"bytes,2,opt,name=csr,proto3" json:"csr,omitempty"` + Csr []byte `protobuf:"bytes,2,opt,name=csr,proto3" json:"csr,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *CSR) Reset() { - *x = CSR{} - if protoimpl.UnsafeEnabled { - mi := &file_cert_cert_proto_msgTypes[21] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *CSR) Reset() { *m = CSR{} } +func (m *CSR) String() string { return proto.CompactTextString(m) } +func (*CSR) ProtoMessage() {} +func (*CSR) Descriptor() ([]byte, []int) { + return fileDescriptor_cc7c7ec7dcc94e18, []int{19} } -func (x *CSR) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *CSR) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CSR.Unmarshal(m, b) +} +func (m *CSR) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CSR.Marshal(b, m, deterministic) +} +func (m *CSR) XXX_Merge(src proto.Message) { + xxx_messageInfo_CSR.Merge(m, src) +} +func (m *CSR) XXX_Size() int { + return xxx_messageInfo_CSR.Size(m) +} +func (m *CSR) XXX_DiscardUnknown() { + xxx_messageInfo_CSR.DiscardUnknown(m) } -func (*CSR) ProtoMessage() {} +var xxx_messageInfo_CSR proto.InternalMessageInfo -func (x *CSR) ProtoReflect() protoreflect.Message { - mi := &file_cert_cert_proto_msgTypes[21] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms +func (m *CSR) GetType() CertificateType { + if m != nil { + return m.Type } - return mi.MessageOf(x) + return CertificateType_CT_UNKNOWN } -// Deprecated: Use CSR.ProtoReflect.Descriptor instead. -func (*CSR) Descriptor() ([]byte, []int) { - return file_cert_cert_proto_rawDescGZIP(), []int{21} +func (m *CSR) GetCsr() []byte { + if m != nil { + return m.Csr + } + return nil +} + +// A message representing a pair of public/private keys. +type KeyPair struct { + PrivateKey []byte `protobuf:"bytes,1,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"` + PublicKey []byte `protobuf:"bytes,2,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *KeyPair) Reset() { *m = KeyPair{} } +func (m *KeyPair) String() string { return proto.CompactTextString(m) } +func (*KeyPair) ProtoMessage() {} +func (*KeyPair) Descriptor() ([]byte, []int) { + return fileDescriptor_cc7c7ec7dcc94e18, []int{20} +} + +func (m *KeyPair) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_KeyPair.Unmarshal(m, b) +} +func (m *KeyPair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_KeyPair.Marshal(b, m, deterministic) +} +func (m *KeyPair) XXX_Merge(src proto.Message) { + xxx_messageInfo_KeyPair.Merge(m, src) +} +func (m *KeyPair) XXX_Size() int { + return xxx_messageInfo_KeyPair.Size(m) } +func (m *KeyPair) XXX_DiscardUnknown() { + xxx_messageInfo_KeyPair.DiscardUnknown(m) +} + +var xxx_messageInfo_KeyPair proto.InternalMessageInfo -func (x *CSR) GetType() CertificateType { - if x != nil { - return x.Type +func (m *KeyPair) GetPrivateKey() []byte { + if m != nil { + return m.PrivateKey } - return CertificateType_CT_UNKNOWN + return nil } -func (x *CSR) GetCsr() []byte { - if x != nil { - return x.Csr +func (m *KeyPair) GetPublicKey() []byte { + if m != nil { + return m.PublicKey } return nil } -// A message representing a pair of public/private keys. -type KeyPair struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields +// An endpoint represents an entity on the target which can use a certificate. +type Endpoint struct { + Type Endpoint_Type `protobuf:"varint,1,opt,name=type,proto3,enum=gnoi.certificate.Endpoint_Type" json:"type,omitempty"` + // Human readable identifier for an endpoint. + Endpoint string `protobuf:"bytes,2,opt,name=endpoint,proto3" json:"endpoint,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} - PrivateKey []byte `protobuf:"bytes,1,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"` - PublicKey []byte `protobuf:"bytes,2,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` +func (m *Endpoint) Reset() { *m = Endpoint{} } +func (m *Endpoint) String() string { return proto.CompactTextString(m) } +func (*Endpoint) ProtoMessage() {} +func (*Endpoint) Descriptor() ([]byte, []int) { + return fileDescriptor_cc7c7ec7dcc94e18, []int{21} +} + +func (m *Endpoint) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Endpoint.Unmarshal(m, b) +} +func (m *Endpoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Endpoint.Marshal(b, m, deterministic) +} +func (m *Endpoint) XXX_Merge(src proto.Message) { + xxx_messageInfo_Endpoint.Merge(m, src) +} +func (m *Endpoint) XXX_Size() int { + return xxx_messageInfo_Endpoint.Size(m) +} +func (m *Endpoint) XXX_DiscardUnknown() { + xxx_messageInfo_Endpoint.DiscardUnknown(m) +} + +var xxx_messageInfo_Endpoint proto.InternalMessageInfo + +func (m *Endpoint) GetType() Endpoint_Type { + if m != nil { + return m.Type + } + return Endpoint_EP_UNSPECIFIED } -func (x *KeyPair) Reset() { - *x = KeyPair{} - if protoimpl.UnsafeEnabled { - mi := &file_cert_cert_proto_msgTypes[22] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (m *Endpoint) GetEndpoint() string { + if m != nil { + return m.Endpoint } + return "" +} + +func init() { + proto.RegisterEnum("gnoi.certificate.CertificateType", CertificateType_name, CertificateType_value) + proto.RegisterEnum("gnoi.certificate.KeyType", KeyType_name, KeyType_value) + proto.RegisterEnum("gnoi.certificate.Endpoint_Type", Endpoint_Type_name, Endpoint_Type_value) + proto.RegisterType((*RotateCertificateRequest)(nil), "gnoi.certificate.RotateCertificateRequest") + proto.RegisterType((*RotateCertificateResponse)(nil), "gnoi.certificate.RotateCertificateResponse") + proto.RegisterType((*InstallCertificateRequest)(nil), "gnoi.certificate.InstallCertificateRequest") + proto.RegisterType((*InstallCertificateResponse)(nil), "gnoi.certificate.InstallCertificateResponse") + proto.RegisterType((*GenerateCSRRequest)(nil), "gnoi.certificate.GenerateCSRRequest") + proto.RegisterType((*CSRParams)(nil), "gnoi.certificate.CSRParams") + proto.RegisterType((*GenerateCSRResponse)(nil), "gnoi.certificate.GenerateCSRResponse") + proto.RegisterType((*LoadCertificateRequest)(nil), "gnoi.certificate.LoadCertificateRequest") + proto.RegisterType((*LoadCertificateResponse)(nil), "gnoi.certificate.LoadCertificateResponse") + proto.RegisterType((*FinalizeRequest)(nil), "gnoi.certificate.FinalizeRequest") + proto.RegisterType((*GetCertificatesRequest)(nil), "gnoi.certificate.GetCertificatesRequest") + proto.RegisterType((*GetCertificatesResponse)(nil), "gnoi.certificate.GetCertificatesResponse") + proto.RegisterType((*CertificateInfo)(nil), "gnoi.certificate.CertificateInfo") + proto.RegisterType((*RevokeCertificatesRequest)(nil), "gnoi.certificate.RevokeCertificatesRequest") + proto.RegisterType((*RevokeCertificatesResponse)(nil), "gnoi.certificate.RevokeCertificatesResponse") + proto.RegisterType((*CertificateRevocationError)(nil), "gnoi.certificate.CertificateRevocationError") + proto.RegisterType((*CanGenerateCSRRequest)(nil), "gnoi.certificate.CanGenerateCSRRequest") + proto.RegisterType((*CanGenerateCSRResponse)(nil), "gnoi.certificate.CanGenerateCSRResponse") + proto.RegisterType((*Certificate)(nil), "gnoi.certificate.Certificate") + proto.RegisterType((*CSR)(nil), "gnoi.certificate.CSR") + proto.RegisterType((*KeyPair)(nil), "gnoi.certificate.KeyPair") + proto.RegisterType((*Endpoint)(nil), "gnoi.certificate.Endpoint") +} + +func init() { proto.RegisterFile("cert/cert.proto", fileDescriptor_cc7c7ec7dcc94e18) } + +var fileDescriptor_cc7c7ec7dcc94e18 = []byte{ + // 1254 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x57, 0xdd, 0x72, 0xda, 0xc6, + 0x17, 0xb7, 0x0c, 0x31, 0x70, 0xc0, 0x20, 0x6f, 0x12, 0x47, 0xf0, 0xff, 0x67, 0x92, 0xa8, 0xcd, + 0xc4, 0x49, 0x3c, 0xd8, 0xcd, 0xc7, 0x4c, 0x3f, 0x66, 0xdc, 0xb1, 0x09, 0x8e, 0x19, 0x6c, 0xc2, + 0x08, 0xd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0x48, 0x42, 0xa0, 0x13, 0x7d, 0x4d, + 0xc5, 0x27, 0xd5, 0x6f, 0x0a, 0x54, 0x92, 0x48, 0xc2, 0x9c, 0xbc, 0x82, 0x4d, 0x57, 0x68, 0x67, + 0x06, 0xf6, 0x94, 0xed, 0x4e, 0xa8, 0xad, 0xcd, 0x04, 0x90, 0xc1, 0xff, 0xa3, 0xe8, 0x00, 0x13, + 0xfa, 0x43, 0x5c, 0x97, 0x07, 0x55, 0x1e, 0x84, 0x64, 0xfb, 0xfa, 0x88, 0x4e, 0x8c, 0xea, 0x81, + 0x8d, 0x51, 0xb1, 0x16, 0xea, 0xf4, 0x73, 0xa8, 0x2c, 0xb6, 0x5c, 0x36, 0xeb, 0x9f, 0xc0, 0xba, + 0xb8, 0x9d, 0x69, 0x13, 0xcf, 0xc3, 0x03, 0x12, 0x4e, 0xf6, 0x82, 0x10, 0x9e, 0x48, 0x99, 0xfe, + 0xab, 0x02, 0x77, 0x6b, 0x98, 0x25, 0x6c, 0x95, 0xe8, 0x2c, 0x56, 0x96, 0x9e, 0xc5, 0x73, 0x35, + 0x2f, 0xac, 0x57, 0x97, 0x5d, 0x13, 0xd1, 0x9a, 0x17, 0x6c, 0x65, 0x79, 0x07, 0xb1, 0x2d, 0x52, + 0x62, 0x5b, 0x04, 0x07, 0x05, 0xab, 0x42, 0xff, 0x0a, 0x36, 0xe7, 0xef, 0x1d, 0xa6, 0xf8, 0x11, + 0x14, 0x2c, 0xcc, 0xcc, 0xf1, 0x92, 0x16, 0xd5, 0x96, 0x35, 0xf2, 0xd6, 0x14, 0xad, 0xf7, 0x21, + 0x1f, 0xfd, 0x7a, 0xfc, 0xe0, 0x7d, 0x16, 0x6b, 0xab, 0xc2, 0x4c, 0xdf, 0xe8, 0x2d, 0x48, 0xd5, + 0x3a, 0xc6, 0x87, 0xf2, 0xab, 0x72, 0x98, 0x4b, 0x5e, 0x31, 0xb5, 0x1b, 0x90, 0x09, 0xe7, 0x66, + 0xb0, 0xf4,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 0x45, 0x7f, 0x8c, 0x2a, 0xcf, 0x97, 0xc2, 0xca, 0xba, + 0xdc, 0x52, 0x76, 0x15, 0x74, 0x0e, 0x99, 0xf0, 0xc3, 0x14, 0x25, 0xd8, 0x2e, 0xfc, 0x0c, 0xaf, + 0x6c, 0x2f, 0x07, 0x8e, 0x9c, 0xd4, 0x87, 0xd2, 0xdc, 0x5e, 0x42, 0x5b, 0x49, 0x1f, 0xb8, 0x49, + 0x4b, 0xad, 0xf2, 0x74, 0x09, 0x64, 0xd8, 0x6d, 0x1c, 0x50, 0x7c, 0xdc, 0x26, 0x39, 0xb7, 0x70, + 0xb2, 0x27, 0x39, 0x77, 0xcd, 0x04, 0xb7, 0xa0, 0x38, 0xdb, 0xf8, 0xe8, 0x49, 0x42, 0x43, 0x25, + 0x8d, 0xb4, 0xca, 0xd6, 0xcd, 0x40, 0x79, 0xc8, 0x41, 0xf6, 0x8f, 0xbd, 0x5b, 0xbb, 0xd5, 0xcf, + 0xaa, 0xbb, 0x67, 0x6b, 0xe2, 0xff, 0xf1, 0xcb, 0x7f, 0x03, 0x00, 0x00, 0xff, 0xff, 0x12, 0x6e, + 0xeb, 0x1d, 0x72, 0x0f, 0x00, 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion4 + +// CertificateManagementClient is the client API for CertificateManagement service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type CertificateManagementClient interface { + // Rotate will replace an existing Certificate on the target by creating a + // new CSR request and placing the new Certificate based on the CSR on the + // target. If the stream is broken or any steps in the process fail the + // target must rollback to the original Certificate. + // + // The following describes the sequence of messages that must be exchanged + // in the Rotate() RPC. + // + // Sequence of expected messages: + // Case 1: When Target generates the CSR. + // + // Step 1: Start the stream + // Client <---- Rotate() RPC stream begin ------> Target + // + // Step 2: CSR + // Client -----> GenerateCSRRequest----> Target + // Client <----- GenerateCSRResponse <--- Target + // + // Step 3: Certificate Signing + // Client gets the certificate signed by the CA. + // + // Step 4: Send Certificate to Target. + // Client --> LoadCertificateRequest ----> Target + // Client <-- LoadCertificateResponse <--- Target + // + // Step 5: Test/Validation by the client. + // This step should be to create a new connection to the target using + // The new certificate and validate that the certificate works. + // Once verfied, the client will then proceed to finalize the rotation. + // If the new connection cannot be completed the client will cancel the + // RPC thereby forcing the target to rollback the certificate. + // + // Step 6: Final commit. + // Client ---> FinalizeRequest ----> Target + // + // + // Case 2: When Client generates the CSR. + // Step 1: Start the stream + // Client <---- Rotate() RPC stream begin ----> Target + // + // Step 2: CSR + // Client generates its own certificate. + // + // Step 3: Certificate Signing + // Client gets the certificate signed by the CA. + // + // Step 4: Send Certificate to Target. + // Client ---> LoadCertificateRequest ----> Target + // Client <--- LoadCertificateResponse <--- Target + // + // Step 5: Test/Validation by the client. + // + // Step 6: Final commit. + // Client ---> FinalizeRequest ----> Target + Rotate(ctx context.Context, opts ...grpc.CallOption) (CertificateManagement_RotateClient, error) + // Install will put a new Certificate on the target by creating a new CSR + // request and placing the new Certificate based on the CSR on the target.The + // new Certificate will be associated with a new Certificate Id on the target. + // If the target has a pre existing Certificate with the given Certificate Id, + // the operation should fail. + // If the stream is broken or any steps in the process fail the target must + // revert any changes in state. + // + // The following describes the sequence of messages that must be exchanged + // in the Install() RPC. + // + // Sequence of expected messages: + // Case 1: When Target generates the CSR-------------------------: + // + // Step 1: Start the stream + // Client <---- Install() RPC stream begin ------> Target + // + // Step 2: CSR + // Client -----> GenerateCSRRequest() ----> Target + // Client <---- GenerateCSRResponse() <---- Target + // + // Step 3: Certificate Signing + // Client gets the certificate signed by the CA. + // + // Step 4: Send Certificate to Target. + // Client -> LoadCertificateRequest() ----> Target + // Client <- LoadCertificateResponse() <--- Target + // + // Case 2: When Client generates the CSR-------------------------: + // Step 1: Start the stream + // Client <---- Install() RPC stream begin ------> Target + // + // Step 2: CSR + // Client generates its own certificate. + // + // Step 3: Certificate Signing + // Client gets the certificate signed by the CA. + // + // Step 4: Send Certificate to Target. + // Client -> LoadCertificateRequest() ----> Target + // Client <- LoadCertificateResponse() <--- Target + // + Install(ctx context.Context, opts ...grpc.CallOption) (CertificateManagement_InstallClient, error) + // An RPC to get the certificates on the target. + GetCertificates(ctx context.Context, in *GetCertificatesRequest, opts ...grpc.CallOption) (*GetCertificatesResponse, error) + // An RPC to revoke specific certificates. + // If a certificate is not present on the target, the request should silently + // succeed. Revoking a certificate should render the existing certificate + // unusable by any endpoints. + RevokeCertificates(ctx context.Context, in *RevokeCertificatesRequest, opts ...grpc.CallOption) (*RevokeCertificatesResponse, error) + // An RPC to ask a target if it can generate a Certificate. + CanGenerateCSR(ctx context.Context, in *CanGenerateCSRRequest, opts ...grpc.CallOption) (*CanGenerateCSRResponse, error) } -func (x *KeyPair) String() string { - return protoimpl.X.MessageStringOf(x) +type certificateManagementClient struct { + cc *grpc.ClientConn } -func (*KeyPair) ProtoMessage() {} +func NewCertificateManagementClient(cc *grpc.ClientConn) CertificateManagementClient { + return &certificateManagementClient{cc} +} -func (x *KeyPair) ProtoReflect() protoreflect.Message { - mi := &file_cert_cert_proto_msgTypes[22] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms +func (c *certificateManagementClient) Rotate(ctx context.Context, opts ...grpc.CallOption) (CertificateManagement_RotateClient, error) { + stream, err := c.cc.NewStream(ctx, &_CertificateManagement_serviceDesc.Streams[0], "/gnoi.certificate.CertificateManagement/Rotate", opts...) + if err != nil { + return nil, err } - return mi.MessageOf(x) + x := &certificateManagementRotateClient{stream} + return x, nil } -// Deprecated: Use KeyPair.ProtoReflect.Descriptor instead. -func (*KeyPair) Descriptor() ([]byte, []int) { - return file_cert_cert_proto_rawDescGZIP(), []int{22} +type CertificateManagement_RotateClient interface { + Send(*RotateCertificateRequest) error + Recv() (*RotateCertificateResponse, error) + grpc.ClientStream } -func (x *KeyPair) GetPrivateKey() []byte { - if x != nil { - return x.PrivateKey +type certificateManagementRotateClient struct { + grpc.ClientStream +} + +func (x *certificateManagementRotateClient) Send(m *RotateCertificateRequest) error { + return x.ClientStream.SendMsg(m) +} + +func (x *certificateManagementRotateClient) Recv() (*RotateCertificateResponse, error) { + m := new(RotateCertificateResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err } - return nil + return m, nil } -func (x *KeyPair) GetPublicKey() []byte { - if x != nil { - return x.PublicKey +func (c *certificateManagementClient) Install(ctx context.Context, opts ...grpc.CallOption) (CertificateManagement_InstallClient, error) { + stream, err := c.cc.NewStream(ctx, &_CertificateManagement_serviceDesc.Streams[1], "/gnoi.certificate.CertificateManagement/Install", opts...) + if err != nil { + return nil, err } - return nil + x := &certificateManagementInstallClient{stream} + return x, nil } -// An endpoint represents an entity on the target which can use a certificate. -type Endpoint struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields +type CertificateManagement_InstallClient interface { + Send(*InstallCertificateRequest) error + Recv() (*InstallCertificateResponse, error) + grpc.ClientStream +} - Type Endpoint_Type `protobuf:"varint,1,opt,name=type,proto3,enum=gnoi.certificate.Endpoint_Type" json:"type,omitempty"` - // Human readable identifier for an endpoint. - Endpoint string `protobuf:"bytes,2,opt,name=endpoint,proto3" json:"endpoint,omitempty"` +type certificateManagementInstallClient struct { + grpc.ClientStream +} + +func (x *certificateManagementInstallClient) Send(m *InstallCertificateRequest) error { + return x.ClientStream.SendMsg(m) } -func (x *Endpoint) Reset() { - *x = Endpoint{} - if protoimpl.UnsafeEnabled { - mi := &file_cert_cert_proto_msgTypes[23] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (x *certificateManagementInstallClient) Recv() (*InstallCertificateResponse, error) { + m := new(InstallCertificateResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err } + return m, nil } -func (x *Endpoint) String() string { - return protoimpl.X.MessageStringOf(x) +func (c *certificateManagementClient) GetCertificates(ctx context.Context, in *GetCertificatesRequest, opts ...grpc.CallOption) (*GetCertificatesResponse, error) { + out := new(GetCertificatesResponse) + err := c.cc.Invoke(ctx, "/gnoi.certificate.CertificateManagement/GetCertificates", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil } -func (*Endpoint) ProtoMessage() {} +func (c *certificateManagementClient) RevokeCertificates(ctx context.Context, in *RevokeCertificatesRequest, opts ...grpc.CallOption) (*RevokeCertificatesResponse, error) { + out := new(RevokeCertificatesResponse) + err := c.cc.Invoke(ctx, "/gnoi.certificate.CertificateManagement/RevokeCertificates", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} -func (x *Endpoint) ProtoReflect() protoreflect.Message { - mi := &file_cert_cert_proto_msgTypes[23] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms +func (c *certificateManagementClient) CanGenerateCSR(ctx context.Context, in *CanGenerateCSRRequest, opts ...grpc.CallOption) (*CanGenerateCSRResponse, error) { + out := new(CanGenerateCSRResponse) + err := c.cc.Invoke(ctx, "/gnoi.certificate.CertificateManagement/CanGenerateCSR", in, out, opts...) + if err != nil { + return nil, err } - return mi.MessageOf(x) + return out, nil } -// Deprecated: Use Endpoint.ProtoReflect.Descriptor instead. -func (*Endpoint) Descriptor() ([]byte, []int) { - return file_cert_cert_proto_rawDescGZIP(), []int{23} +// CertificateManagementServer is the server API for CertificateManagement service. +type CertificateManagementServer interface { + // Rotate will replace an existing Certificate on the target by creating a + // new CSR request and placing the new Certificate based on the CSR on the + // target. If the stream is broken or any steps in the process fail the + // target must rollback to the original Certificate. + // + // The following describes the sequence of messages that must be exchanged + // in the Rotate() RPC. + // + // Sequence of expected messages: + // Case 1: When Target generates the CSR. + // + // Step 1: Start the stream + // Client <---- Rotate() RPC stream begin ------> Target + // + // Step 2: CSR + // Client -----> GenerateCSRRequest----> Target + // Client <----- GenerateCSRResponse <--- Target + // + // Step 3: Certificate Signing + // Client gets the certificate signed by the CA. + // + // Step 4: Send Certificate to Target. + // Client --> LoadCertificateRequest ----> Target + // Client <-- LoadCertificateResponse <--- Target + // + // Step 5: Test/Validation by the client. + // This step should be to create a new connection to the target using + // The new certificate and validate that the certificate works. + // Once verfied, the client will then proceed to finalize the rotation. + // If the new connection cannot be completed the client will cancel the + // RPC thereby forcing the target to rollback the certificate. + // + // Step 6: Final commit. + // Client ---> FinalizeRequest ----> Target + // + // + // Case 2: When Client generates the CSR. + // Step 1: Start the stream + // Client <---- Rotate() RPC stream begin ----> Target + // + // Step 2: CSR + // Client generates its own certificate. + // + // Step 3: Certificate Signing + // Client gets the certificate signed by the CA. + // + // Step 4: Send Certificate to Target. + // Client ---> LoadCertificateRequest ----> Target + // Client <--- LoadCertificateResponse <--- Target + // + // Step 5: Test/Validation by the client. + // + // Step 6: Final commit. + // Client ---> FinalizeRequest ----> Target + Rotate(CertificateManagement_RotateServer) error + // Install will put a new Certificate on the target by creating a new CSR + // request and placing the new Certificate based on the CSR on the target.The + // new Certificate will be associated with a new Certificate Id on the target. + // If the target has a pre existing Certificate with the given Certificate Id, + // the operation should fail. + // If the stream is broken or any steps in the process fail the target must + // revert any changes in state. + // + // The following describes the sequence of messages that must be exchanged + // in the Install() RPC. + // + // Sequence of expected messages: + // Case 1: When Target generates the CSR-------------------------: + // + // Step 1: Start the stream + // Client <---- Install() RPC stream begin ------> Target + // + // Step 2: CSR + // Client -----> GenerateCSRRequest() ----> Target + // Client <---- GenerateCSRResponse() <---- Target + // + // Step 3: Certificate Signing + // Client gets the certificate signed by the CA. + // + // Step 4: Send Certificate to Target. + // Client -> LoadCertificateRequest() ----> Target + // Client <- LoadCertificateResponse() <--- Target + // + // Case 2: When Client generates the CSR-------------------------: + // Step 1: Start the stream + // Client <---- Install() RPC stream begin ------> Target + // + // Step 2: CSR + // Client generates its own certificate. + // + // Step 3: Certificate Signing + // Client gets the certificate signed by the CA. + // + // Step 4: Send Certificate to Target. + // Client -> LoadCertificateRequest() ----> Target + // Client <- LoadCertificateResponse() <--- Target + // + Install(CertificateManagement_InstallServer) error + // An RPC to get the certificates on the target. + GetCertificates(context.Context, *GetCertificatesRequest) (*GetCertificatesResponse, error) + // An RPC to revoke specific certificates. + // If a certificate is not present on the target, the request should silently + // succeed. Revoking a certificate should render the existing certificate + // unusable by any endpoints. + RevokeCertificates(context.Context, *RevokeCertificatesRequest) (*RevokeCertificatesResponse, error) + // An RPC to ask a target if it can generate a Certificate. + CanGenerateCSR(context.Context, *CanGenerateCSRRequest) (*CanGenerateCSRResponse, error) } -func (x *Endpoint) GetType() Endpoint_Type { - if x != nil { - return x.Type +func RegisterCertificateManagementServer(s *grpc.Server, srv CertificateManagementServer) { + s.RegisterService(&_CertificateManagement_serviceDesc, srv) +} + +func _CertificateManagement_Rotate_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(CertificateManagementServer).Rotate(&certificateManagementRotateServer{stream}) +} + +type CertificateManagement_RotateServer interface { + Send(*RotateCertificateResponse) error + Recv() (*RotateCertificateRequest, error) + grpc.ServerStream +} + +type certificateManagementRotateServer struct { + grpc.ServerStream +} + +func (x *certificateManagementRotateServer) Send(m *RotateCertificateResponse) error { + return x.ServerStream.SendMsg(m) +} + +func (x *certificateManagementRotateServer) Recv() (*RotateCertificateRequest, error) { + m := new(RotateCertificateRequest) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err } - return Endpoint_EP_UNSPECIFIED + return m, nil +} + +func _CertificateManagement_Install_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(CertificateManagementServer).Install(&certificateManagementInstallServer{stream}) +} + +type CertificateManagement_InstallServer interface { + Send(*InstallCertificateResponse) error + Recv() (*InstallCertificateRequest, error) + grpc.ServerStream } -func (x *Endpoint) GetEndpoint() string { - if x != nil { - return x.Endpoint +type certificateManagementInstallServer struct { + grpc.ServerStream +} + +func (x *certificateManagementInstallServer) Send(m *InstallCertificateResponse) error { + return x.ServerStream.SendMsg(m) +} + +func (x *certificateManagementInstallServer) Recv() (*InstallCertificateRequest, error) { + m := new(InstallCertificateRequest) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err } - return "" + return m, nil } -var File_cert_cert_proto protoreflect.FileDescriptor - -var file_cert_cert_proto_rawDesc = []byte{ - 0x0a, 0x0f, 0x63, 0x65, 0x72, 0x74, 0x2f, 0x63, 0x65, 0x72, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x12, 0x10, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, - 0x61, 0x74, 0x65, 0x1a, 0x2c, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, - 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x67, 0x6e, 0x6f, 0x69, 0x2f, - 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x22, 0xa0, 0x02, 0x0a, 0x18, 0x52, 0x6f, 0x74, 0x61, 0x74, 0x65, 0x43, 0x65, 0x72, 0x74, - 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x49, - 0x0a, 0x0c, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x5f, 0x63, 0x73, 0x72, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x65, 0x72, 0x74, - 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, - 0x43, 0x53, 0x52, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x0b, 0x67, 0x65, - 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x43, 0x73, 0x72, 0x12, 0x55, 0x0a, 0x10, 0x6c, 0x6f, 0x61, - 0x64, 0x5f, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x65, 0x72, 0x74, 0x69, - 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x2e, 0x4c, 0x6f, 0x61, 0x64, 0x43, 0x65, 0x72, 0x74, 0x69, - 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, - 0x0f, 0x6c, 0x6f, 0x61, 0x64, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, - 0x12, 0x50, 0x0a, 0x11, 0x66, 0x69, 0x6e, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x5f, 0x72, 0x6f, 0x74, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67, 0x6e, - 0x6f, 0x69, 0x2e, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x2e, 0x46, - 0x69, 0x6e, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, - 0x52, 0x10, 0x66, 0x69, 0x6e, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x52, 0x6f, 0x74, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x42, 0x10, 0x0a, 0x0e, 0x72, 0x6f, 0x74, 0x61, 0x74, 0x65, 0x5f, 0x72, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x22, 0xd4, 0x01, 0x0a, 0x19, 0x52, 0x6f, 0x74, 0x61, 0x74, 0x65, 0x43, - 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x4c, 0x0a, 0x0d, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x5f, - 0x63, 0x73, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x67, 0x6e, 0x6f, 0x69, - 0x2e, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x2e, 0x47, 0x65, 0x6e, - 0x65, 0x72, 0x61, 0x74, 0x65, 0x43, 0x53, 0x52, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x48, 0x00, 0x52, 0x0c, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x43, 0x73, 0x72, - 0x12, 0x56, 0x0a, 0x10, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, - 0x63, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x67, 0x6e, 0x6f, - 0x69, 0x2e, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x2e, 0x4c, 0x6f, - 0x61, 0x64, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x0f, 0x6c, 0x6f, 0x61, 0x64, 0x43, 0x65, 0x72, - 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x42, 0x11, 0x0a, 0x0f, 0x72, 0x6f, 0x74, 0x61, - 0x74, 0x65, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xd0, 0x01, 0x0a, 0x19, - 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, - 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x49, 0x0a, 0x0c, 0x67, 0x65, 0x6e, - 0x65, 0x72, 0x61, 0x74, 0x65, 0x5f, 0x63, 0x73, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x24, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, - 0x74, 0x65, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x43, 0x53, 0x52, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x0b, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, - 0x65, 0x43, 0x73, 0x72, 0x12, 0x55, 0x0a, 0x10, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x63, 0x65, 0x72, - 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, - 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, - 0x65, 0x2e, 0x4c, 0x6f, 0x61, 0x64, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, - 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x0f, 0x6c, 0x6f, 0x61, 0x64, - 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x42, 0x11, 0x0a, 0x0f, 0x69, - 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0xd6, - 0x01, 0x0a, 0x1a, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, - 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4c, 0x0a, - 0x0d, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x63, 0x73, 0x72, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x65, 0x72, 0x74, - 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, - 0x43, 0x53, 0x52, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x0c, 0x67, - 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x43, 0x73, 0x72, 0x12, 0x56, 0x0a, 0x10, 0x6c, - 0x6f, 0x61, 0x64, 0x5f, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x65, 0x72, - 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x2e, 0x4c, 0x6f, 0x61, 0x64, 0x43, 0x65, 0x72, - 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x48, 0x00, 0x52, 0x0f, 0x6c, 0x6f, 0x61, 0x64, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, - 0x61, 0x74, 0x65, 0x42, 0x12, 0x0a, 0x10, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x5f, 0x72, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x77, 0x0a, 0x12, 0x47, 0x65, 0x6e, 0x65, 0x72, - 0x61, 0x74, 0x65, 0x43, 0x53, 0x52, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3a, 0x0a, - 0x0a, 0x63, 0x73, 0x72, 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, - 0x63, 0x61, 0x74, 0x65, 0x2e, 0x43, 0x53, 0x52, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x09, - 0x63, 0x73, 0x72, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x63, 0x65, 0x72, - 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0d, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x49, 0x64, - 0x22, 0x8e, 0x03, 0x0a, 0x09, 0x43, 0x53, 0x52, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x35, - 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x67, - 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x2e, - 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, - 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x20, 0x0a, 0x0c, 0x6d, 0x69, 0x6e, 0x5f, 0x6b, 0x65, 0x79, - 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x6d, 0x69, 0x6e, - 0x4b, 0x65, 0x79, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x34, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x5f, 0x74, - 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x67, 0x6e, 0x6f, 0x69, - 0x2e, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x2e, 0x4b, 0x65, 0x79, - 0x54, 0x79, 0x70, 0x65, 0x52, 0x07, 0x6b, 0x65, 0x79, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1f, 0x0a, - 0x0b, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x18, - 0x0a, 0x07, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x07, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, - 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x12, - 0x0a, 0x04, 0x63, 0x69, 0x74, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x69, - 0x74, 0x79, 0x12, 0x22, 0x0a, 0x0c, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, - 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2f, 0x0a, 0x13, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, - 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x18, 0x09, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x12, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x61, 0x6c, 0x55, 0x6e, 0x69, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x69, 0x70, 0x5f, 0x61, 0x64, - 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x69, 0x70, 0x41, - 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x5f, - 0x69, 0x64, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x49, - 0x64, 0x22, 0x3e, 0x0a, 0x13, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x43, 0x53, 0x52, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x27, 0x0a, 0x03, 0x63, 0x73, 0x72, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x65, 0x72, - 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x2e, 0x43, 0x53, 0x52, 0x52, 0x03, 0x63, 0x73, - 0x72, 0x22, 0xfe, 0x01, 0x0a, 0x16, 0x4c, 0x6f, 0x61, 0x64, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, - 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3f, 0x0a, 0x0b, - 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, - 0x63, 0x61, 0x74, 0x65, 0x2e, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, - 0x52, 0x0b, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x12, 0x34, 0x0a, - 0x08, 0x6b, 0x65, 0x79, 0x5f, 0x70, 0x61, 0x69, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x19, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, - 0x74, 0x65, 0x2e, 0x4b, 0x65, 0x79, 0x50, 0x61, 0x69, 0x72, 0x52, 0x07, 0x6b, 0x65, 0x79, 0x50, - 0x61, 0x69, 0x72, 0x12, 0x25, 0x0a, 0x0e, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, - 0x74, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x63, 0x65, 0x72, - 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x49, 0x64, 0x12, 0x46, 0x0a, 0x0f, 0x63, 0x61, - 0x5f, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x73, 0x18, 0x04, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x65, 0x72, 0x74, 0x69, - 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x2e, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, - 0x74, 0x65, 0x52, 0x0e, 0x63, 0x61, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, - 0x65, 0x73, 0x22, 0x19, 0x0a, 0x17, 0x4c, 0x6f, 0x61, 0x64, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, - 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x6f, 0x0a, - 0x25, 0x4c, 0x6f, 0x61, 0x64, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, - 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x46, 0x0a, 0x0f, 0x63, 0x61, 0x5f, 0x63, 0x65, 0x72, - 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x1d, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, - 0x74, 0x65, 0x2e, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 0x0e, - 0x63, 0x61, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x73, 0x22, 0x28, - 0x0a, 0x26, 0x4c, 0x6f, 0x61, 0x64, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, - 0x65, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x11, 0x0a, 0x0f, 0x46, 0x69, 0x6e, 0x61, - 0x6c, 0x69, 0x7a, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x18, 0x0a, 0x16, 0x47, - 0x65, 0x74, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x73, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x67, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x43, 0x65, 0x72, 0x74, - 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x4c, 0x0a, 0x10, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x5f, - 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67, 0x6e, 0x6f, - 0x69, 0x2e, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x2e, 0x43, 0x65, - 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0f, 0x63, - 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0xe0, - 0x01, 0x0a, 0x0f, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x49, 0x6e, - 0x66, 0x6f, 0x12, 0x25, 0x0a, 0x0e, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, - 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x63, 0x65, 0x72, 0x74, - 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x49, 0x64, 0x12, 0x3f, 0x0a, 0x0b, 0x63, 0x65, 0x72, - 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, - 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, - 0x65, 0x2e, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 0x0b, 0x63, - 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x12, 0x38, 0x0a, 0x09, 0x65, 0x6e, - 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, - 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, - 0x2e, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x09, 0x65, 0x6e, 0x64, 0x70, 0x6f, - 0x69, 0x6e, 0x74, 0x73, 0x12, 0x2b, 0x0a, 0x11, 0x6d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x63, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, - 0x10, 0x6d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x69, 0x6d, - 0x65, 0x22, 0x42, 0x0a, 0x19, 0x52, 0x65, 0x76, 0x6f, 0x6b, 0x65, 0x43, 0x65, 0x72, 0x74, 0x69, - 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x25, - 0x0a, 0x0e, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x5f, 0x69, 0x64, - 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0d, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, - 0x61, 0x74, 0x65, 0x49, 0x64, 0x22, 0xc2, 0x01, 0x0a, 0x1a, 0x52, 0x65, 0x76, 0x6f, 0x6b, 0x65, - 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x34, 0x0a, 0x16, 0x72, 0x65, 0x76, 0x6f, 0x6b, 0x65, 0x64, 0x5f, - 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x03, 0x28, 0x09, 0x52, 0x14, 0x72, 0x65, 0x76, 0x6f, 0x6b, 0x65, 0x64, 0x43, 0x65, 0x72, - 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x49, 0x64, 0x12, 0x6e, 0x0a, 0x1c, 0x63, 0x65, - 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x5f, 0x72, 0x65, 0x76, 0x6f, 0x63, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x2c, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, - 0x61, 0x74, 0x65, 0x2e, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, - 0x65, 0x76, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x1a, - 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 0x65, 0x76, 0x6f, 0x63, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x22, 0x68, 0x0a, 0x1a, 0x43, 0x65, - 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 0x65, 0x76, 0x6f, 0x63, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x25, 0x0a, 0x0e, 0x63, 0x65, 0x72, 0x74, - 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x0d, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x49, 0x64, 0x12, - 0x23, 0x0a, 0x0d, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x4d, 0x65, 0x73, - 0x73, 0x61, 0x67, 0x65, 0x22, 0xb6, 0x01, 0x0a, 0x15, 0x43, 0x61, 0x6e, 0x47, 0x65, 0x6e, 0x65, - 0x72, 0x61, 0x74, 0x65, 0x43, 0x53, 0x52, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x34, - 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, - 0x32, 0x19, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, - 0x61, 0x74, 0x65, 0x2e, 0x4b, 0x65, 0x79, 0x54, 0x79, 0x70, 0x65, 0x52, 0x07, 0x6b, 0x65, 0x79, - 0x54, 0x79, 0x70, 0x65, 0x12, 0x4c, 0x0a, 0x10, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, - 0x61, 0x74, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21, - 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, - 0x65, 0x2e, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x54, 0x79, 0x70, - 0x65, 0x52, 0x0f, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x54, 0x79, - 0x70, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x6b, 0x65, 0x79, 0x53, 0x69, 0x7a, 0x65, 0x22, 0x3b, 0x0a, - 0x16, 0x43, 0x61, 0x6e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x43, 0x53, 0x52, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x61, 0x6e, 0x5f, 0x67, - 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x63, - 0x61, 0x6e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x22, 0x66, 0x0a, 0x0b, 0x43, 0x65, - 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x12, 0x35, 0x0a, 0x04, 0x74, 0x79, 0x70, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, - 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x2e, 0x43, 0x65, 0x72, 0x74, 0x69, - 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, - 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, - 0x74, 0x65, 0x22, 0x4e, 0x0a, 0x03, 0x43, 0x53, 0x52, 0x12, 0x35, 0x0a, 0x04, 0x74, 0x79, 0x70, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, - 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x2e, 0x43, 0x65, 0x72, 0x74, 0x69, - 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, - 0x12, 0x10, 0x0a, 0x03, 0x63, 0x73, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x63, - 0x73, 0x72, 0x22, 0x49, 0x0a, 0x07, 0x4b, 0x65, 0x79, 0x50, 0x61, 0x69, 0x72, 0x12, 0x1f, 0x0a, - 0x0b, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0c, 0x52, 0x0a, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x12, 0x1d, - 0x0a, 0x0a, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x0c, 0x52, 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x22, 0x9b, 0x01, - 0x0a, 0x08, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x33, 0x0a, 0x04, 0x74, 0x79, - 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, - 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x2e, 0x45, 0x6e, 0x64, 0x70, - 0x6f, 0x69, 0x6e, 0x74, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, - 0x1a, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x22, 0x3e, 0x0a, 0x04, 0x54, - 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x0e, 0x45, 0x50, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, - 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x13, 0x0a, 0x0f, 0x45, 0x50, 0x5f, 0x49, 0x50, - 0x53, 0x45, 0x43, 0x5f, 0x54, 0x55, 0x4e, 0x4e, 0x45, 0x4c, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, - 0x45, 0x50, 0x5f, 0x44, 0x41, 0x45, 0x4d, 0x4f, 0x4e, 0x10, 0x02, 0x2a, 0x2e, 0x0a, 0x0f, 0x43, - 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0e, - 0x0a, 0x0a, 0x43, 0x54, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x0b, - 0x0a, 0x07, 0x43, 0x54, 0x5f, 0x58, 0x35, 0x30, 0x39, 0x10, 0x01, 0x2a, 0x25, 0x0a, 0x07, 0x4b, - 0x65, 0x79, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0e, 0x0a, 0x0a, 0x4b, 0x54, 0x5f, 0x55, 0x4e, 0x4b, - 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x4b, 0x54, 0x5f, 0x52, 0x53, 0x41, - 0x10, 0x01, 0x32, 0x80, 0x07, 0x0a, 0x15, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, - 0x74, 0x65, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x65, 0x0a, 0x06, - 0x52, 0x6f, 0x74, 0x61, 0x74, 0x65, 0x12, 0x2a, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x65, - 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x2e, 0x52, 0x6f, 0x74, 0x61, 0x74, 0x65, - 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, - 0x69, 0x63, 0x61, 0x74, 0x65, 0x2e, 0x52, 0x6f, 0x74, 0x61, 0x74, 0x65, 0x43, 0x65, 0x72, 0x74, - 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x28, - 0x01, 0x30, 0x01, 0x12, 0x68, 0x0a, 0x07, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x12, 0x2b, - 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, - 0x65, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, - 0x63, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x67, 0x6e, - 0x6f, 0x69, 0x2e, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x2e, 0x49, - 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, - 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x28, 0x01, 0x30, 0x01, 0x12, 0x5a, 0x0a, - 0x0b, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x43, 0x53, 0x52, 0x12, 0x24, 0x2e, 0x67, - 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x2e, - 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x43, 0x53, 0x52, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, - 0x69, 0x63, 0x61, 0x74, 0x65, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x43, 0x53, - 0x52, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x66, 0x0a, 0x0f, 0x4c, 0x6f, 0x61, - 0x64, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x12, 0x28, 0x2e, 0x67, - 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x2e, - 0x4c, 0x6f, 0x61, 0x64, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x65, - 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x2e, 0x4c, 0x6f, 0x61, 0x64, 0x43, 0x65, - 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x93, 0x01, 0x0a, 0x1e, 0x4c, 0x6f, 0x61, 0x64, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, - 0x69, 0x63, 0x61, 0x74, 0x65, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x42, 0x75, - 0x6e, 0x64, 0x6c, 0x65, 0x12, 0x37, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x65, 0x72, 0x74, - 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x2e, 0x4c, 0x6f, 0x61, 0x64, 0x43, 0x65, 0x72, 0x74, - 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, - 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x38, 0x2e, - 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, - 0x2e, 0x4c, 0x6f, 0x61, 0x64, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, - 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x66, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x43, 0x65, - 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x73, 0x12, 0x28, 0x2e, 0x67, 0x6e, 0x6f, - 0x69, 0x2e, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x2e, 0x47, 0x65, - 0x74, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x73, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x65, 0x72, 0x74, - 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x65, 0x72, 0x74, 0x69, - 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x6f, 0x0a, 0x12, 0x52, 0x65, 0x76, 0x6f, 0x6b, 0x65, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, - 0x63, 0x61, 0x74, 0x65, 0x73, 0x12, 0x2b, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x65, 0x72, - 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x2e, 0x52, 0x65, 0x76, 0x6f, 0x6b, 0x65, 0x43, - 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, - 0x69, 0x63, 0x61, 0x74, 0x65, 0x2e, 0x52, 0x65, 0x76, 0x6f, 0x6b, 0x65, 0x43, 0x65, 0x72, 0x74, - 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x63, 0x0a, 0x0e, 0x43, 0x61, 0x6e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x43, - 0x53, 0x52, 0x12, 0x27, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, - 0x69, 0x63, 0x61, 0x74, 0x65, 0x2e, 0x43, 0x61, 0x6e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, - 0x65, 0x43, 0x53, 0x52, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x67, 0x6e, - 0x6f, 0x69, 0x2e, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x2e, 0x43, - 0x61, 0x6e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x43, 0x53, 0x52, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x29, 0x5a, 0x1f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, - 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x67, - 0x6e, 0x6f, 0x69, 0x2f, 0x63, 0x65, 0x72, 0x74, 0xd2, 0x3e, 0x05, 0x30, 0x2e, 0x32, 0x2e, 0x30, - 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_cert_cert_proto_rawDescOnce sync.Once - file_cert_cert_proto_rawDescData = file_cert_cert_proto_rawDesc -) +func _CertificateManagement_GetCertificates_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetCertificatesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CertificateManagementServer).GetCertificates(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gnoi.certificate.CertificateManagement/GetCertificates", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CertificateManagementServer).GetCertificates(ctx, req.(*GetCertificatesRequest)) + } + return interceptor(ctx, in, info, handler) +} -func file_cert_cert_proto_rawDescGZIP() []byte { - file_cert_cert_proto_rawDescOnce.Do(func() { - file_cert_cert_proto_rawDescData = protoimpl.X.CompressGZIP(file_cert_cert_proto_rawDescData) - }) - return file_cert_cert_proto_rawDescData -} - -var file_cert_cert_proto_enumTypes = make([]protoimpl.EnumInfo, 3) -var file_cert_cert_proto_msgTypes = make([]protoimpl.MessageInfo, 24) -var file_cert_cert_proto_goTypes = []interface{}{ - (CertificateType)(0), // 0: gnoi.certificate.CertificateType - (KeyType)(0), // 1: gnoi.certificate.KeyType - (Endpoint_Type)(0), // 2: gnoi.certificate.Endpoint.Type - (*RotateCertificateRequest)(nil), // 3: gnoi.certificate.RotateCertificateRequest - (*RotateCertificateResponse)(nil), // 4: gnoi.certificate.RotateCertificateResponse - (*InstallCertificateRequest)(nil), // 5: gnoi.certificate.InstallCertificateRequest - (*InstallCertificateResponse)(nil), // 6: gnoi.certificate.InstallCertificateResponse - (*GenerateCSRRequest)(nil), // 7: gnoi.certificate.GenerateCSRRequest - (*CSRParams)(nil), // 8: gnoi.certificate.CSRParams - (*GenerateCSRResponse)(nil), // 9: gnoi.certificate.GenerateCSRResponse - (*LoadCertificateRequest)(nil), // 10: gnoi.certificate.LoadCertificateRequest - (*LoadCertificateResponse)(nil), // 11: gnoi.certificate.LoadCertificateResponse - (*LoadCertificateAuthorityBundleRequest)(nil), // 12: gnoi.certificate.LoadCertificateAuthorityBundleRequest - (*LoadCertificateAuthorityBundleResponse)(nil), // 13: gnoi.certificate.LoadCertificateAuthorityBundleResponse - (*FinalizeRequest)(nil), // 14: gnoi.certificate.FinalizeRequest - (*GetCertificatesRequest)(nil), // 15: gnoi.certificate.GetCertificatesRequest - (*GetCertificatesResponse)(nil), // 16: gnoi.certificate.GetCertificatesResponse - (*CertificateInfo)(nil), // 17: gnoi.certificate.CertificateInfo - (*RevokeCertificatesRequest)(nil), // 18: gnoi.certificate.RevokeCertificatesRequest - (*RevokeCertificatesResponse)(nil), // 19: gnoi.certificate.RevokeCertificatesResponse - (*CertificateRevocationError)(nil), // 20: gnoi.certificate.CertificateRevocationError - (*CanGenerateCSRRequest)(nil), // 21: gnoi.certificate.CanGenerateCSRRequest - (*CanGenerateCSRResponse)(nil), // 22: gnoi.certificate.CanGenerateCSRResponse - (*Certificate)(nil), // 23: gnoi.certificate.Certificate - (*CSR)(nil), // 24: gnoi.certificate.CSR - (*KeyPair)(nil), // 25: gnoi.certificate.KeyPair - (*Endpoint)(nil), // 26: gnoi.certificate.Endpoint -} -var file_cert_cert_proto_depIdxs = []int32{ - 7, // 0: gnoi.certificate.RotateCertificateRequest.generate_csr:type_name -> gnoi.certificate.GenerateCSRRequest - 10, // 1: gnoi.certificate.RotateCertificateRequest.load_certificate:type_name -> gnoi.certificate.LoadCertificateRequest - 14, // 2: gnoi.certificate.RotateCertificateRequest.finalize_rotation:type_name -> gnoi.certificate.FinalizeRequest - 9, // 3: gnoi.certificate.RotateCertificateResponse.generated_csr:type_name -> gnoi.certificate.GenerateCSRResponse - 11, // 4: gnoi.certificate.RotateCertificateResponse.load_certificate:type_name -> gnoi.certificate.LoadCertificateResponse - 7, // 5: gnoi.certificate.InstallCertificateRequest.generate_csr:type_name -> gnoi.certificate.GenerateCSRRequest - 10, // 6: gnoi.certificate.InstallCertificateRequest.load_certificate:type_name -> gnoi.certificate.LoadCertificateRequest - 9, // 7: gnoi.certificate.InstallCertificateResponse.generated_csr:type_name -> gnoi.certificate.GenerateCSRResponse - 11, // 8: gnoi.certificate.InstallCertificateResponse.load_certificate:type_name -> gnoi.certificate.LoadCertificateResponse - 8, // 9: gnoi.certificate.GenerateCSRRequest.csr_params:type_name -> gnoi.certificate.CSRParams - 0, // 10: gnoi.certificate.CSRParams.type:type_name -> gnoi.certificate.CertificateType - 1, // 11: gnoi.certificate.CSRParams.key_type:type_name -> gnoi.certificate.KeyType - 24, // 12: gnoi.certificate.GenerateCSRResponse.csr:type_name -> gnoi.certificate.CSR - 23, // 13: gnoi.certificate.LoadCertificateRequest.certificate:type_name -> gnoi.certificate.Certificate - 25, // 14: gnoi.certificate.LoadCertificateRequest.key_pair:type_name -> gnoi.certificate.KeyPair - 23, // 15: gnoi.certificate.LoadCertificateRequest.ca_certificates:type_name -> gnoi.certificate.Certificate - 23, // 16: gnoi.certificate.LoadCertificateAuthorityBundleRequest.ca_certificates:type_name -> gnoi.certificate.Certificate - 17, // 17: gnoi.certificate.GetCertificatesResponse.certificate_info:type_name -> gnoi.certificate.CertificateInfo - 23, // 18: gnoi.certificate.CertificateInfo.certificate:type_name -> gnoi.certificate.Certificate - 26, // 19: gnoi.certificate.CertificateInfo.endpoints:type_name -> gnoi.certificate.Endpoint - 20, // 20: gnoi.certificate.RevokeCertificatesResponse.certificate_revocation_error:type_name -> gnoi.certificate.CertificateRevocationError - 1, // 21: gnoi.certificate.CanGenerateCSRRequest.key_type:type_name -> gnoi.certificate.KeyType - 0, // 22: gnoi.certificate.CanGenerateCSRRequest.certificate_type:type_name -> gnoi.certificate.CertificateType - 0, // 23: gnoi.certificate.Certificate.type:type_name -> gnoi.certificate.CertificateType - 0, // 24: gnoi.certificate.CSR.type:type_name -> gnoi.certificate.CertificateType - 2, // 25: gnoi.certificate.Endpoint.type:type_name -> gnoi.certificate.Endpoint.Type - 3, // 26: gnoi.certificate.CertificateManagement.Rotate:input_type -> gnoi.certificate.RotateCertificateRequest - 5, // 27: gnoi.certificate.CertificateManagement.Install:input_type -> gnoi.certificate.InstallCertificateRequest - 7, // 28: gnoi.certificate.CertificateManagement.GenerateCSR:input_type -> gnoi.certificate.GenerateCSRRequest - 10, // 29: gnoi.certificate.CertificateManagement.LoadCertificate:input_type -> gnoi.certificate.LoadCertificateRequest - 12, // 30: gnoi.certificate.CertificateManagement.LoadCertificateAuthorityBundle:input_type -> gnoi.certificate.LoadCertificateAuthorityBundleRequest - 15, // 31: gnoi.certificate.CertificateManagement.GetCertificates:input_type -> gnoi.certificate.GetCertificatesRequest - 18, // 32: gnoi.certificate.CertificateManagement.RevokeCertificates:input_type -> gnoi.certificate.RevokeCertificatesRequest - 21, // 33: gnoi.certificate.CertificateManagement.CanGenerateCSR:input_type -> gnoi.certificate.CanGenerateCSRRequest - 4, // 34: gnoi.certificate.CertificateManagement.Rotate:output_type -> gnoi.certificate.RotateCertificateResponse - 6, // 35: gnoi.certificate.CertificateManagement.Install:output_type -> gnoi.certificate.InstallCertificateResponse - 9, // 36: gnoi.certificate.CertificateManagement.GenerateCSR:output_type -> gnoi.certificate.GenerateCSRResponse - 11, // 37: gnoi.certificate.CertificateManagement.LoadCertificate:output_type -> gnoi.certificate.LoadCertificateResponse - 13, // 38: gnoi.certificate.CertificateManagement.LoadCertificateAuthorityBundle:output_type -> gnoi.certificate.LoadCertificateAuthorityBundleResponse - 16, // 39: gnoi.certificate.CertificateManagement.GetCertificates:output_type -> gnoi.certificate.GetCertificatesResponse - 19, // 40: gnoi.certificate.CertificateManagement.RevokeCertificates:output_type -> gnoi.certificate.RevokeCertificatesResponse - 22, // 41: gnoi.certificate.CertificateManagement.CanGenerateCSR:output_type -> gnoi.certificate.CanGenerateCSRResponse - 34, // [34:42] is the sub-list for method output_type - 26, // [26:34] is the sub-list for method input_type - 26, // [26:26] is the sub-list for extension type_name - 26, // [26:26] is the sub-list for extension extendee - 0, // [0:26] is the sub-list for field type_name -} - -func init() { file_cert_cert_proto_init() } -func file_cert_cert_proto_init() { - if File_cert_cert_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_cert_cert_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RotateCertificateRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cert_cert_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RotateCertificateResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cert_cert_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*InstallCertificateRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cert_cert_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*InstallCertificateResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cert_cert_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GenerateCSRRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cert_cert_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CSRParams); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cert_cert_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GenerateCSRResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cert_cert_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LoadCertificateRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cert_cert_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LoadCertificateResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cert_cert_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LoadCertificateAuthorityBundleRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cert_cert_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LoadCertificateAuthorityBundleResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cert_cert_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FinalizeRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cert_cert_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetCertificatesRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cert_cert_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetCertificatesResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cert_cert_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CertificateInfo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cert_cert_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RevokeCertificatesRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cert_cert_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RevokeCertificatesResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cert_cert_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CertificateRevocationError); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cert_cert_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CanGenerateCSRRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cert_cert_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CanGenerateCSRResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cert_cert_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Certificate); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cert_cert_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CSR); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cert_cert_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*KeyPair); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cert_cert_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Endpoint); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } +func _CertificateManagement_RevokeCertificates_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RevokeCertificatesRequest) + if err := dec(in); err != nil { + return nil, err } - file_cert_cert_proto_msgTypes[0].OneofWrappers = []interface{}{ - (*RotateCertificateRequest_GenerateCsr)(nil), - (*RotateCertificateRequest_LoadCertificate)(nil), - (*RotateCertificateRequest_FinalizeRotation)(nil), + if interceptor == nil { + return srv.(CertificateManagementServer).RevokeCertificates(ctx, in) } - file_cert_cert_proto_msgTypes[1].OneofWrappers = []interface{}{ - (*RotateCertificateResponse_GeneratedCsr)(nil), - (*RotateCertificateResponse_LoadCertificate)(nil), + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gnoi.certificate.CertificateManagement/RevokeCertificates", } - file_cert_cert_proto_msgTypes[2].OneofWrappers = []interface{}{ - (*InstallCertificateRequest_GenerateCsr)(nil), - (*InstallCertificateRequest_LoadCertificate)(nil), + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CertificateManagementServer).RevokeCertificates(ctx, req.(*RevokeCertificatesRequest)) } - file_cert_cert_proto_msgTypes[3].OneofWrappers = []interface{}{ - (*InstallCertificateResponse_GeneratedCsr)(nil), - (*InstallCertificateResponse_LoadCertificate)(nil), + return interceptor(ctx, in, info, handler) +} + +func _CertificateManagement_CanGenerateCSR_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CanGenerateCSRRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CertificateManagementServer).CanGenerateCSR(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gnoi.certificate.CertificateManagement/CanGenerateCSR", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CertificateManagementServer).CanGenerateCSR(ctx, req.(*CanGenerateCSRRequest)) } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_cert_cert_proto_rawDesc, - NumEnums: 3, - NumMessages: 24, - NumExtensions: 0, - NumServices: 1, + return interceptor(ctx, in, info, handler) +} + +var _CertificateManagement_serviceDesc = grpc.ServiceDesc{ + ServiceName: "gnoi.certificate.CertificateManagement", + HandlerType: (*CertificateManagementServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "GetCertificates", + Handler: _CertificateManagement_GetCertificates_Handler, + }, + { + MethodName: "RevokeCertificates", + Handler: _CertificateManagement_RevokeCertificates_Handler, + }, + { + MethodName: "CanGenerateCSR", + Handler: _CertificateManagement_CanGenerateCSR_Handler, + }, + }, + Streams: []grpc.StreamDesc{ + { + StreamName: "Rotate", + Handler: _CertificateManagement_Rotate_Handler, + ServerStreams: true, + ClientStreams: true, + }, + { + StreamName: "Install", + Handler: _CertificateManagement_Install_Handler, + ServerStreams: true, + ClientStreams: true, }, - GoTypes: file_cert_cert_proto_goTypes, - DependencyIndexes: file_cert_cert_proto_depIdxs, - EnumInfos: file_cert_cert_proto_enumTypes, - MessageInfos: file_cert_cert_proto_msgTypes, - }.Build() - File_cert_cert_proto = out.File - file_cert_cert_proto_rawDesc = nil - file_cert_cert_proto_goTypes = nil - file_cert_cert_proto_depIdxs = nil + }, + Metadata: "cert/cert.proto", } diff --git a/cert/cert.proto b/cert/cert.proto index 952a700b..e9da3ecf 100644 --- a/cert/cert.proto +++ b/cert/cert.proto @@ -22,8 +22,6 @@ package gnoi.certificate; import "github.com/openconfig/gnoi/types/types.proto"; -option go_package = "github.com/openconfig/gnoi/cert"; - option (types.gnoi_version) = "0.2.0"; // The Certificate Management Service exported by targets. diff --git a/cert/cert_grpc.pb.go b/cert/cert_grpc.pb.go deleted file mode 100644 index 1f3754b3..00000000 --- a/cert/cert_grpc.pb.go +++ /dev/null @@ -1,632 +0,0 @@ -// Code generated by protoc-gen-go-grpc. DO NOT EDIT. - -package cert - -import ( - context "context" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" -) - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 - -// CertificateManagementClient is the client API for CertificateManagement service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. -type CertificateManagementClient interface { - // Rotate will replace an existing Certificate on the target by creating a - // new CSR request and placing the new Certificate based on the CSR on the - // target. If the stream is broken or any steps in the process fail the - // target must rollback to the original Certificate. - // - // The following describes the sequence of messages that must be exchanged - // in the Rotate() RPC. - // - // Sequence of expected messages: - // Case 1: When Target generates the CSR. - // - // Step 1: Start the stream - // Client <---- Rotate() RPC stream begin ------> Target - // - // Step 2: CSR - // Client -----> GenerateCSRRequest----> Target - // Client <----- GenerateCSRResponse <--- Target - // - // Step 3: Certificate Signing - // Client gets the certificate signed by the CA. - // - // Step 4: Send Certificate to Target. - // Client --> LoadCertificateRequest ----> Target - // Client <-- LoadCertificateResponse <--- Target - // - // Step 5: Test/Validation by the client. - // This step should be to create a new connection to the target using - // The new certificate and validate that the certificate works. - // Once verfied, the client will then proceed to finalize the rotation. - // If the new connection cannot be completed the client will cancel the - // RPC thereby forcing the target to rollback the certificate. - // - // Step 6: Final commit. - // Client ---> FinalizeRequest ----> Target - // - // - // Case 2: When Client generates the CSR. - // Step 1: Start the stream - // Client <---- Rotate() RPC stream begin ----> Target - // - // Step 2: CSR - // Client generates its own certificate. - // - // Step 3: Certificate Signing - // Client gets the certificate signed by the CA. - // - // Step 4: Send Certificate to Target. - // Client ---> LoadCertificateRequest ----> Target - // Client <--- LoadCertificateResponse <--- Target - // - // Step 5: Test/Validation by the client. - // - // Step 6: Final commit. - // Client ---> FinalizeRequest ----> Target - Rotate(ctx context.Context, opts ...grpc.CallOption) (CertificateManagement_RotateClient, error) - // Install will put a new Certificate on the target by creating a new CSR - // request and placing the new Certificate based on the CSR on the target.The - // new Certificate will be associated with a new Certificate Id on the target. - // If the target has a pre existing Certificate with the given Certificate Id, - // the operation should fail. - // If the stream is broken or any steps in the process fail the target must - // revert any changes in state. - // - // The following describes the sequence of messages that must be exchanged - // in the Install() RPC. - // - // Sequence of expected messages: - // Case 1: When Target generates the CSR-------------------------: - // - // Step 1: Start the stream - // Client <---- Install() RPC stream begin ------> Target - // - // Step 2: CSR - // Client -----> GenerateCSRRequest() ----> Target - // Client <---- GenerateCSRResponse() <---- Target - // - // Step 3: Certificate Signing - // Client gets the certificate signed by the CA. - // - // Step 4: Send Certificate to Target. - // Client -> LoadCertificateRequest() ----> Target - // Client <- LoadCertificateResponse() <--- Target - // - // Case 2: When Client generates the CSR-------------------------: - // Step 1: Start the stream - // Client <---- Install() RPC stream begin ------> Target - // - // Step 2: CSR - // Client generates its own certificate. - // - // Step 3: Certificate Signing - // Client gets the certificate signed by the CA. - // - // Step 4: Send Certificate to Target. - // Client -> LoadCertificateRequest() ----> Target - // Client <- LoadCertificateResponse() <--- Target - // - Install(ctx context.Context, opts ...grpc.CallOption) (CertificateManagement_InstallClient, error) - // When credentials are generated on the device, generates a keypair and - // returns the Certificate Signing Request (CSR). The CSR has the public key, - // which when signed by the CA, becomes the Certificate. - GenerateCSR(ctx context.Context, in *GenerateCSRRequest, opts ...grpc.CallOption) (*GenerateCSRResponse, error) - // Loads a certificate signed by a Certificate Authority (CA). - LoadCertificate(ctx context.Context, in *LoadCertificateRequest, opts ...grpc.CallOption) (*LoadCertificateResponse, error) - // Loads a bundle of CA certificates. - LoadCertificateAuthorityBundle(ctx context.Context, in *LoadCertificateAuthorityBundleRequest, opts ...grpc.CallOption) (*LoadCertificateAuthorityBundleResponse, error) - // An RPC to get the certificates on the target. - GetCertificates(ctx context.Context, in *GetCertificatesRequest, opts ...grpc.CallOption) (*GetCertificatesResponse, error) - // An RPC to revoke specific certificates. - // If a certificate is not present on the target, the request should silently - // succeed. Revoking a certificate should render the existing certificate - // unusable by any endpoints. - RevokeCertificates(ctx context.Context, in *RevokeCertificatesRequest, opts ...grpc.CallOption) (*RevokeCertificatesResponse, error) - // An RPC to ask a target if it can generate a Certificate. - CanGenerateCSR(ctx context.Context, in *CanGenerateCSRRequest, opts ...grpc.CallOption) (*CanGenerateCSRResponse, error) -} - -type certificateManagementClient struct { - cc grpc.ClientConnInterface -} - -func NewCertificateManagementClient(cc grpc.ClientConnInterface) CertificateManagementClient { - return &certificateManagementClient{cc} -} - -func (c *certificateManagementClient) Rotate(ctx context.Context, opts ...grpc.CallOption) (CertificateManagement_RotateClient, error) { - stream, err := c.cc.NewStream(ctx, &CertificateManagement_ServiceDesc.Streams[0], "/gnoi.certificate.CertificateManagement/Rotate", opts...) - if err != nil { - return nil, err - } - x := &certificateManagementRotateClient{stream} - return x, nil -} - -type CertificateManagement_RotateClient interface { - Send(*RotateCertificateRequest) error - Recv() (*RotateCertificateResponse, error) - grpc.ClientStream -} - -type certificateManagementRotateClient struct { - grpc.ClientStream -} - -func (x *certificateManagementRotateClient) Send(m *RotateCertificateRequest) error { - return x.ClientStream.SendMsg(m) -} - -func (x *certificateManagementRotateClient) Recv() (*RotateCertificateResponse, error) { - m := new(RotateCertificateResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *certificateManagementClient) Install(ctx context.Context, opts ...grpc.CallOption) (CertificateManagement_InstallClient, error) { - stream, err := c.cc.NewStream(ctx, &CertificateManagement_ServiceDesc.Streams[1], "/gnoi.certificate.CertificateManagement/Install", opts...) - if err != nil { - return nil, err - } - x := &certificateManagementInstallClient{stream} - return x, nil -} - -type CertificateManagement_InstallClient interface { - Send(*InstallCertificateRequest) error - Recv() (*InstallCertificateResponse, error) - grpc.ClientStream -} - -type certificateManagementInstallClient struct { - grpc.ClientStream -} - -func (x *certificateManagementInstallClient) Send(m *InstallCertificateRequest) error { - return x.ClientStream.SendMsg(m) -} - -func (x *certificateManagementInstallClient) Recv() (*InstallCertificateResponse, error) { - m := new(InstallCertificateResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *certificateManagementClient) GenerateCSR(ctx context.Context, in *GenerateCSRRequest, opts ...grpc.CallOption) (*GenerateCSRResponse, error) { - out := new(GenerateCSRResponse) - err := c.cc.Invoke(ctx, "/gnoi.certificate.CertificateManagement/GenerateCSR", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *certificateManagementClient) LoadCertificate(ctx context.Context, in *LoadCertificateRequest, opts ...grpc.CallOption) (*LoadCertificateResponse, error) { - out := new(LoadCertificateResponse) - err := c.cc.Invoke(ctx, "/gnoi.certificate.CertificateManagement/LoadCertificate", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *certificateManagementClient) LoadCertificateAuthorityBundle(ctx context.Context, in *LoadCertificateAuthorityBundleRequest, opts ...grpc.CallOption) (*LoadCertificateAuthorityBundleResponse, error) { - out := new(LoadCertificateAuthorityBundleResponse) - err := c.cc.Invoke(ctx, "/gnoi.certificate.CertificateManagement/LoadCertificateAuthorityBundle", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *certificateManagementClient) GetCertificates(ctx context.Context, in *GetCertificatesRequest, opts ...grpc.CallOption) (*GetCertificatesResponse, error) { - out := new(GetCertificatesResponse) - err := c.cc.Invoke(ctx, "/gnoi.certificate.CertificateManagement/GetCertificates", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *certificateManagementClient) RevokeCertificates(ctx context.Context, in *RevokeCertificatesRequest, opts ...grpc.CallOption) (*RevokeCertificatesResponse, error) { - out := new(RevokeCertificatesResponse) - err := c.cc.Invoke(ctx, "/gnoi.certificate.CertificateManagement/RevokeCertificates", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *certificateManagementClient) CanGenerateCSR(ctx context.Context, in *CanGenerateCSRRequest, opts ...grpc.CallOption) (*CanGenerateCSRResponse, error) { - out := new(CanGenerateCSRResponse) - err := c.cc.Invoke(ctx, "/gnoi.certificate.CertificateManagement/CanGenerateCSR", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// CertificateManagementServer is the server API for CertificateManagement service. -// All implementations must embed UnimplementedCertificateManagementServer -// for forward compatibility -type CertificateManagementServer interface { - // Rotate will replace an existing Certificate on the target by creating a - // new CSR request and placing the new Certificate based on the CSR on the - // target. If the stream is broken or any steps in the process fail the - // target must rollback to the original Certificate. - // - // The following describes the sequence of messages that must be exchanged - // in the Rotate() RPC. - // - // Sequence of expected messages: - // Case 1: When Target generates the CSR. - // - // Step 1: Start the stream - // Client <---- Rotate() RPC stream begin ------> Target - // - // Step 2: CSR - // Client -----> GenerateCSRRequest----> Target - // Client <----- GenerateCSRResponse <--- Target - // - // Step 3: Certificate Signing - // Client gets the certificate signed by the CA. - // - // Step 4: Send Certificate to Target. - // Client --> LoadCertificateRequest ----> Target - // Client <-- LoadCertificateResponse <--- Target - // - // Step 5: Test/Validation by the client. - // This step should be to create a new connection to the target using - // The new certificate and validate that the certificate works. - // Once verfied, the client will then proceed to finalize the rotation. - // If the new connection cannot be completed the client will cancel the - // RPC thereby forcing the target to rollback the certificate. - // - // Step 6: Final commit. - // Client ---> FinalizeRequest ----> Target - // - // - // Case 2: When Client generates the CSR. - // Step 1: Start the stream - // Client <---- Rotate() RPC stream begin ----> Target - // - // Step 2: CSR - // Client generates its own certificate. - // - // Step 3: Certificate Signing - // Client gets the certificate signed by the CA. - // - // Step 4: Send Certificate to Target. - // Client ---> LoadCertificateRequest ----> Target - // Client <--- LoadCertificateResponse <--- Target - // - // Step 5: Test/Validation by the client. - // - // Step 6: Final commit. - // Client ---> FinalizeRequest ----> Target - Rotate(CertificateManagement_RotateServer) error - // Install will put a new Certificate on the target by creating a new CSR - // request and placing the new Certificate based on the CSR on the target.The - // new Certificate will be associated with a new Certificate Id on the target. - // If the target has a pre existing Certificate with the given Certificate Id, - // the operation should fail. - // If the stream is broken or any steps in the process fail the target must - // revert any changes in state. - // - // The following describes the sequence of messages that must be exchanged - // in the Install() RPC. - // - // Sequence of expected messages: - // Case 1: When Target generates the CSR-------------------------: - // - // Step 1: Start the stream - // Client <---- Install() RPC stream begin ------> Target - // - // Step 2: CSR - // Client -----> GenerateCSRRequest() ----> Target - // Client <---- GenerateCSRResponse() <---- Target - // - // Step 3: Certificate Signing - // Client gets the certificate signed by the CA. - // - // Step 4: Send Certificate to Target. - // Client -> LoadCertificateRequest() ----> Target - // Client <- LoadCertificateResponse() <--- Target - // - // Case 2: When Client generates the CSR-------------------------: - // Step 1: Start the stream - // Client <---- Install() RPC stream begin ------> Target - // - // Step 2: CSR - // Client generates its own certificate. - // - // Step 3: Certificate Signing - // Client gets the certificate signed by the CA. - // - // Step 4: Send Certificate to Target. - // Client -> LoadCertificateRequest() ----> Target - // Client <- LoadCertificateResponse() <--- Target - // - Install(CertificateManagement_InstallServer) error - // When credentials are generated on the device, generates a keypair and - // returns the Certificate Signing Request (CSR). The CSR has the public key, - // which when signed by the CA, becomes the Certificate. - GenerateCSR(context.Context, *GenerateCSRRequest) (*GenerateCSRResponse, error) - // Loads a certificate signed by a Certificate Authority (CA). - LoadCertificate(context.Context, *LoadCertificateRequest) (*LoadCertificateResponse, error) - // Loads a bundle of CA certificates. - LoadCertificateAuthorityBundle(context.Context, *LoadCertificateAuthorityBundleRequest) (*LoadCertificateAuthorityBundleResponse, error) - // An RPC to get the certificates on the target. - GetCertificates(context.Context, *GetCertificatesRequest) (*GetCertificatesResponse, error) - // An RPC to revoke specific certificates. - // If a certificate is not present on the target, the request should silently - // succeed. Revoking a certificate should render the existing certificate - // unusable by any endpoints. - RevokeCertificates(context.Context, *RevokeCertificatesRequest) (*RevokeCertificatesResponse, error) - // An RPC to ask a target if it can generate a Certificate. - CanGenerateCSR(context.Context, *CanGenerateCSRRequest) (*CanGenerateCSRResponse, error) - mustEmbedUnimplementedCertificateManagementServer() -} - -// UnimplementedCertificateManagementServer must be embedded to have forward compatible implementations. -type UnimplementedCertificateManagementServer struct { -} - -func (UnimplementedCertificateManagementServer) Rotate(CertificateManagement_RotateServer) error { - return status.Errorf(codes.Unimplemented, "method Rotate not implemented") -} -func (UnimplementedCertificateManagementServer) Install(CertificateManagement_InstallServer) error { - return status.Errorf(codes.Unimplemented, "method Install not implemented") -} -func (UnimplementedCertificateManagementServer) GenerateCSR(context.Context, *GenerateCSRRequest) (*GenerateCSRResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GenerateCSR not implemented") -} -func (UnimplementedCertificateManagementServer) LoadCertificate(context.Context, *LoadCertificateRequest) (*LoadCertificateResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method LoadCertificate not implemented") -} -func (UnimplementedCertificateManagementServer) LoadCertificateAuthorityBundle(context.Context, *LoadCertificateAuthorityBundleRequest) (*LoadCertificateAuthorityBundleResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method LoadCertificateAuthorityBundle not implemented") -} -func (UnimplementedCertificateManagementServer) GetCertificates(context.Context, *GetCertificatesRequest) (*GetCertificatesResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetCertificates not implemented") -} -func (UnimplementedCertificateManagementServer) RevokeCertificates(context.Context, *RevokeCertificatesRequest) (*RevokeCertificatesResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RevokeCertificates not implemented") -} -func (UnimplementedCertificateManagementServer) CanGenerateCSR(context.Context, *CanGenerateCSRRequest) (*CanGenerateCSRResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CanGenerateCSR not implemented") -} -func (UnimplementedCertificateManagementServer) mustEmbedUnimplementedCertificateManagementServer() {} - -// UnsafeCertificateManagementServer may be embedded to opt out of forward compatibility for this service. -// Use of this interface is not recommended, as added methods to CertificateManagementServer will -// result in compilation errors. -type UnsafeCertificateManagementServer interface { - mustEmbedUnimplementedCertificateManagementServer() -} - -func RegisterCertificateManagementServer(s grpc.ServiceRegistrar, srv CertificateManagementServer) { - s.RegisterService(&CertificateManagement_ServiceDesc, srv) -} - -func _CertificateManagement_Rotate_Handler(srv interface{}, stream grpc.ServerStream) error { - return srv.(CertificateManagementServer).Rotate(&certificateManagementRotateServer{stream}) -} - -type CertificateManagement_RotateServer interface { - Send(*RotateCertificateResponse) error - Recv() (*RotateCertificateRequest, error) - grpc.ServerStream -} - -type certificateManagementRotateServer struct { - grpc.ServerStream -} - -func (x *certificateManagementRotateServer) Send(m *RotateCertificateResponse) error { - return x.ServerStream.SendMsg(m) -} - -func (x *certificateManagementRotateServer) Recv() (*RotateCertificateRequest, error) { - m := new(RotateCertificateRequest) - if err := x.ServerStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func _CertificateManagement_Install_Handler(srv interface{}, stream grpc.ServerStream) error { - return srv.(CertificateManagementServer).Install(&certificateManagementInstallServer{stream}) -} - -type CertificateManagement_InstallServer interface { - Send(*InstallCertificateResponse) error - Recv() (*InstallCertificateRequest, error) - grpc.ServerStream -} - -type certificateManagementInstallServer struct { - grpc.ServerStream -} - -func (x *certificateManagementInstallServer) Send(m *InstallCertificateResponse) error { - return x.ServerStream.SendMsg(m) -} - -func (x *certificateManagementInstallServer) Recv() (*InstallCertificateRequest, error) { - m := new(InstallCertificateRequest) - if err := x.ServerStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func _CertificateManagement_GenerateCSR_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GenerateCSRRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(CertificateManagementServer).GenerateCSR(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.certificate.CertificateManagement/GenerateCSR", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(CertificateManagementServer).GenerateCSR(ctx, req.(*GenerateCSRRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _CertificateManagement_LoadCertificate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(LoadCertificateRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(CertificateManagementServer).LoadCertificate(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.certificate.CertificateManagement/LoadCertificate", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(CertificateManagementServer).LoadCertificate(ctx, req.(*LoadCertificateRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _CertificateManagement_LoadCertificateAuthorityBundle_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(LoadCertificateAuthorityBundleRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(CertificateManagementServer).LoadCertificateAuthorityBundle(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.certificate.CertificateManagement/LoadCertificateAuthorityBundle", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(CertificateManagementServer).LoadCertificateAuthorityBundle(ctx, req.(*LoadCertificateAuthorityBundleRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _CertificateManagement_GetCertificates_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetCertificatesRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(CertificateManagementServer).GetCertificates(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.certificate.CertificateManagement/GetCertificates", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(CertificateManagementServer).GetCertificates(ctx, req.(*GetCertificatesRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _CertificateManagement_RevokeCertificates_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RevokeCertificatesRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(CertificateManagementServer).RevokeCertificates(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.certificate.CertificateManagement/RevokeCertificates", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(CertificateManagementServer).RevokeCertificates(ctx, req.(*RevokeCertificatesRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _CertificateManagement_CanGenerateCSR_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CanGenerateCSRRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(CertificateManagementServer).CanGenerateCSR(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.certificate.CertificateManagement/CanGenerateCSR", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(CertificateManagementServer).CanGenerateCSR(ctx, req.(*CanGenerateCSRRequest)) - } - return interceptor(ctx, in, info, handler) -} - -// CertificateManagement_ServiceDesc is the grpc.ServiceDesc for CertificateManagement service. -// It's only intended for direct use with grpc.RegisterService, -// and not to be introspected or modified (even as a copy) -var CertificateManagement_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "gnoi.certificate.CertificateManagement", - HandlerType: (*CertificateManagementServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "GenerateCSR", - Handler: _CertificateManagement_GenerateCSR_Handler, - }, - { - MethodName: "LoadCertificate", - Handler: _CertificateManagement_LoadCertificate_Handler, - }, - { - MethodName: "LoadCertificateAuthorityBundle", - Handler: _CertificateManagement_LoadCertificateAuthorityBundle_Handler, - }, - { - MethodName: "GetCertificates", - Handler: _CertificateManagement_GetCertificates_Handler, - }, - { - MethodName: "RevokeCertificates", - Handler: _CertificateManagement_RevokeCertificates_Handler, - }, - { - MethodName: "CanGenerateCSR", - Handler: _CertificateManagement_CanGenerateCSR_Handler, - }, - }, - Streams: []grpc.StreamDesc{ - { - StreamName: "Rotate", - Handler: _CertificateManagement_Rotate_Handler, - ServerStreams: true, - ClientStreams: true, - }, - { - StreamName: "Install", - Handler: _CertificateManagement_Install_Handler, - ServerStreams: true, - ClientStreams: true, - }, - }, - Metadata: "cert/cert.proto", -} diff --git a/common/common.pb.go b/common/common.pb.go index 9d05d44a..0955e27b 100644 --- a/common/common.pb.go +++ b/common/common.pb.go @@ -1,41 +1,25 @@ -// -// Copyright 2018 Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// - // Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.26.0 -// protoc v3.15.7 // source: common/common.proto -package common +package gnoi_common import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" types "github.com/openconfig/gnoi/types" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" + math "math" ) -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) +// 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 type RemoteDownload_Protocol int32 @@ -47,213 +31,114 @@ const ( RemoteDownload_SCP RemoteDownload_Protocol = 4 ) -// Enum value maps for RemoteDownload_Protocol. -var ( - RemoteDownload_Protocol_name = map[int32]string{ - 0: "UNKNOWN", - 1: "SFTP", - 2: "HTTP", - 3: "HTTPS", - 4: "SCP", - } - RemoteDownload_Protocol_value = map[string]int32{ - "UNKNOWN": 0, - "SFTP": 1, - "HTTP": 2, - "HTTPS": 3, - "SCP": 4, - } -) - -func (x RemoteDownload_Protocol) Enum() *RemoteDownload_Protocol { - p := new(RemoteDownload_Protocol) - *p = x - return p +var RemoteDownload_Protocol_name = map[int32]string{ + 0: "UNKNOWN", + 1: "SFTP", + 2: "HTTP", + 3: "HTTPS", + 4: "SCP", } -func (x RemoteDownload_Protocol) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +var RemoteDownload_Protocol_value = map[string]int32{ + "UNKNOWN": 0, + "SFTP": 1, + "HTTP": 2, + "HTTPS": 3, + "SCP": 4, } -func (RemoteDownload_Protocol) Descriptor() protoreflect.EnumDescriptor { - return file_common_common_proto_enumTypes[0].Descriptor() -} - -func (RemoteDownload_Protocol) Type() protoreflect.EnumType { - return &file_common_common_proto_enumTypes[0] -} - -func (x RemoteDownload_Protocol) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) +func (x RemoteDownload_Protocol) String() string { + return proto.EnumName(RemoteDownload_Protocol_name, int32(x)) } -// Deprecated: Use RemoteDownload_Protocol.Descriptor instead. func (RemoteDownload_Protocol) EnumDescriptor() ([]byte, []int) { - return file_common_common_proto_rawDescGZIP(), []int{0, 0} + return fileDescriptor_8f954d82c0b891f6, []int{0, 0} } // RemoteDownload defines the details for a device to initiate a file transfer // from or to a remote location. type RemoteDownload struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - // The path information containing where to download the data from or to. // For HTTP(S), this will be the URL (i.e. foo.com/file.tbz2). // For SFTP and SCP, this will be the address:/path/to/file // (i.e. host.foo.com:/bar/baz). - Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` - Protocol RemoteDownload_Protocol `protobuf:"varint,2,opt,name=protocol,proto3,enum=gnoi.common.RemoteDownload_Protocol" json:"protocol,omitempty"` - Credentials *types.Credentials `protobuf:"bytes,3,opt,name=credentials,proto3" json:"credentials,omitempty"` + Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` + Protocol RemoteDownload_Protocol `protobuf:"varint,2,opt,name=protocol,proto3,enum=gnoi.common.RemoteDownload_Protocol" json:"protocol,omitempty"` + Credentials *types.Credentials `protobuf:"bytes,3,opt,name=credentials,proto3" json:"credentials,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *RemoteDownload) Reset() { - *x = RemoteDownload{} - if protoimpl.UnsafeEnabled { - mi := &file_common_common_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *RemoteDownload) Reset() { *m = RemoteDownload{} } +func (m *RemoteDownload) String() string { return proto.CompactTextString(m) } +func (*RemoteDownload) ProtoMessage() {} +func (*RemoteDownload) Descriptor() ([]byte, []int) { + return fileDescriptor_8f954d82c0b891f6, []int{0} } -func (x *RemoteDownload) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *RemoteDownload) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RemoteDownload.Unmarshal(m, b) } - -func (*RemoteDownload) ProtoMessage() {} - -func (x *RemoteDownload) ProtoReflect() protoreflect.Message { - mi := &file_common_common_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *RemoteDownload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RemoteDownload.Marshal(b, m, deterministic) } - -// Deprecated: Use RemoteDownload.ProtoReflect.Descriptor instead. -func (*RemoteDownload) Descriptor() ([]byte, []int) { - return file_common_common_proto_rawDescGZIP(), []int{0} +func (m *RemoteDownload) XXX_Merge(src proto.Message) { + xxx_messageInfo_RemoteDownload.Merge(m, src) +} +func (m *RemoteDownload) XXX_Size() int { + return xxx_messageInfo_RemoteDownload.Size(m) +} +func (m *RemoteDownload) XXX_DiscardUnknown() { + xxx_messageInfo_RemoteDownload.DiscardUnknown(m) } -func (x *RemoteDownload) GetPath() string { - if x != nil { - return x.Path +var xxx_messageInfo_RemoteDownload proto.InternalMessageInfo + +func (m *RemoteDownload) GetPath() string { + if m != nil { + return m.Path } return "" } -func (x *RemoteDownload) GetProtocol() RemoteDownload_Protocol { - if x != nil { - return x.Protocol +func (m *RemoteDownload) GetProtocol() RemoteDownload_Protocol { + if m != nil { + return m.Protocol } return RemoteDownload_UNKNOWN } -func (x *RemoteDownload) GetCredentials() *types.Credentials { - if x != nil { - return x.Credentials +func (m *RemoteDownload) GetCredentials() *types.Credentials { + if m != nil { + return m.Credentials } return nil } -var File_common_common_proto protoreflect.FileDescriptor - -var file_common_common_proto_rawDesc = []byte{ - 0x0a, 0x13, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0b, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, - 0x6f, 0x6e, 0x1a, 0x2c, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, - 0x70, 0x65, 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x67, 0x6e, 0x6f, 0x69, 0x2f, 0x74, - 0x79, 0x70, 0x65, 0x73, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x22, 0xe2, 0x01, 0x0a, 0x0e, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x44, 0x6f, 0x77, 0x6e, 0x6c, - 0x6f, 0x61, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x40, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x63, 0x6f, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x24, 0x2e, 0x67, 0x6e, 0x6f, 0x69, - 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x44, 0x6f, - 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x52, - 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x39, 0x0a, 0x0b, 0x63, 0x72, 0x65, - 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, - 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x43, 0x72, 0x65, 0x64, - 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x52, 0x0b, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, - 0x69, 0x61, 0x6c, 0x73, 0x22, 0x3f, 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, - 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x08, 0x0a, - 0x04, 0x53, 0x46, 0x54, 0x50, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x48, 0x54, 0x54, 0x50, 0x10, - 0x02, 0x12, 0x09, 0x0a, 0x05, 0x48, 0x54, 0x54, 0x50, 0x53, 0x10, 0x03, 0x12, 0x07, 0x0a, 0x03, - 0x53, 0x43, 0x50, 0x10, 0x04, 0x42, 0x23, 0x5a, 0x21, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, - 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x67, - 0x6e, 0x6f, 0x69, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x33, -} - -var ( - file_common_common_proto_rawDescOnce sync.Once - file_common_common_proto_rawDescData = file_common_common_proto_rawDesc -) - -func file_common_common_proto_rawDescGZIP() []byte { - file_common_common_proto_rawDescOnce.Do(func() { - file_common_common_proto_rawDescData = protoimpl.X.CompressGZIP(file_common_common_proto_rawDescData) - }) - return file_common_common_proto_rawDescData -} - -var file_common_common_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_common_common_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_common_common_proto_goTypes = []interface{}{ - (RemoteDownload_Protocol)(0), // 0: gnoi.common.RemoteDownload.Protocol - (*RemoteDownload)(nil), // 1: gnoi.common.RemoteDownload - (*types.Credentials)(nil), // 2: gnoi.types.Credentials -} -var file_common_common_proto_depIdxs = []int32{ - 0, // 0: gnoi.common.RemoteDownload.protocol:type_name -> gnoi.common.RemoteDownload.Protocol - 2, // 1: gnoi.common.RemoteDownload.credentials:type_name -> gnoi.types.Credentials - 2, // [2:2] is the sub-list for method output_type - 2, // [2:2] is the sub-list for method input_type - 2, // [2:2] is the sub-list for extension type_name - 2, // [2:2] is the sub-list for extension extendee - 0, // [0:2] is the sub-list for field type_name -} - -func init() { file_common_common_proto_init() } -func file_common_common_proto_init() { - if File_common_common_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_common_common_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RemoteDownload); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_common_common_proto_rawDesc, - NumEnums: 1, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_common_common_proto_goTypes, - DependencyIndexes: file_common_common_proto_depIdxs, - EnumInfos: file_common_common_proto_enumTypes, - MessageInfos: file_common_common_proto_msgTypes, - }.Build() - File_common_common_proto = out.File - file_common_common_proto_rawDesc = nil - file_common_common_proto_goTypes = nil - file_common_common_proto_depIdxs = nil +func init() { + proto.RegisterEnum("gnoi.common.RemoteDownload_Protocol", RemoteDownload_Protocol_name, RemoteDownload_Protocol_value) + proto.RegisterType((*RemoteDownload)(nil), "gnoi.common.RemoteDownload") +} + +func init() { proto.RegisterFile("common/common.proto", fileDescriptor_8f954d82c0b891f6) } + +var fileDescriptor_8f954d82c0b891f6 = []byte{ + // 243 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x4e, 0xce, 0xcf, 0xcd, + 0xcd, 0xcf, 0xd3, 0x87, 0x50, 0x7a, 0x05, 0x45, 0xf9, 0x25, 0xf9, 0x42, 0xdc, 0xe9, 0x79, 0xf9, + 0x99, 0x7a, 0x10, 0x21, 0x29, 0x9d, 0xf4, 0xcc, 0x92, 0x8c, 0xd2, 0x24, 0x10, 0x57, 0x3f, 0xbf, + 0x20, 0x35, 0x2f, 0x39, 0x3f, 0x2f, 0x2d, 0x33, 0x5d, 0x1f, 0xa4, 0x44, 0xbf, 0xa4, 0xb2, 0x20, + 0xb5, 0x18, 0x42, 0x42, 0xb4, 0x2a, 0x3d, 0x62, 0xe4, 0xe2, 0x0b, 0x4a, 0xcd, 0xcd, 0x2f, 0x49, + 0x75, 0xc9, 0x2f, 0xcf, 0xcb, 0xc9, 0x4f, 0x4c, 0x11, 0x12, 0xe2, 0x62, 0x29, 0x48, 0x2c, 0xc9, + 0x90, 0x60, 0x54, 0x60, 0xd4, 0xe0, 0x0c, 0x02, 0xb3, 0x85, 0x1c, 0xb8, 0x38, 0xc0, 0xea, 0x93, + 0xf3, 0x73, 0x24, 0x98, 0x14, 0x18, 0x35, 0xf8, 0x8c, 0x54, 0xf4, 0x90, 0x2c, 0xd5, 0x43, 0x35, + 0x42, 0x2f, 0x00, 0xaa, 0x36, 0x08, 0xae, 0x4b, 0xc8, 0x92, 0x8b, 0x3b, 0xb9, 0x28, 0x35, 0x25, + 0x35, 0xaf, 0x24, 0x33, 0x31, 0xa7, 0x58, 0x82, 0x59, 0x81, 0x51, 0x83, 0xdb, 0x48, 0x1c, 0x62, + 0x08, 0xc4, 0x41, 0xce, 0x08, 0xe9, 0x20, 0x64, 0xb5, 0x4a, 0xf6, 0x5c, 0x1c, 0x30, 0x03, 0x85, + 0xb8, 0xb9, 0xd8, 0x43, 0xfd, 0xbc, 0xfd, 0xfc, 0xc3, 0xfd, 0x04, 0x18, 0x84, 0x38, 0xb8, 0x58, + 0x82, 0xdd, 0x42, 0x02, 0x04, 0x18, 0x41, 0x2c, 0x8f, 0x90, 0x90, 0x00, 0x01, 0x26, 0x21, 0x4e, + 0x2e, 0x56, 0x10, 0x2b, 0x58, 0x80, 0x59, 0x88, 0x9d, 0x8b, 0x39, 0xd8, 0x39, 0x40, 0x80, 0x25, + 0x89, 0x0d, 0xec, 0x0a, 0x63, 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0x6f, 0xdb, 0xfe, 0xf8, 0x3d, + 0x01, 0x00, 0x00, } diff --git a/common/common.proto b/common/common.proto index 2d8e44c4..f2928fca 100644 --- a/common/common.proto +++ b/common/common.proto @@ -20,8 +20,6 @@ package gnoi.common; import "github.com/openconfig/gnoi/types/types.proto"; -option go_package = "github.com/openconfig/gnoi/common"; - // RemoteDownload defines the details for a device to initiate a file transfer // from or to a remote location. message RemoteDownload { diff --git a/compile_protos.sh b/compile_protos.sh index bc4aa2ba..1685a180 100755 --- a/compile_protos.sh +++ b/compile_protos.sh @@ -5,6 +5,6 @@ proto_imports=".:${GOPATH}/src/github.com/google/protobuf/src:${GOPATH}/src" # Go for p in types common diag bgp cert file interface layer2 mpls system os otdr wavelength_router; do - protoc -I=$proto_imports --go_out=. --go_opt=paths=source_relative --go-grpc_out=. --go-grpc_opt=paths=source_relative $p/$p.proto + protoc -I=$proto_imports --go_out=plugins=grpc:. $p/$p.proto done diff --git a/diag/diag.pb.go b/diag/diag.pb.go index 6ef8db9c..e511386d 100644 --- a/diag/diag.pb.go +++ b/diag/diag.pb.go @@ -1,50 +1,33 @@ -// -// Copyright 2017 Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// - -// This file defines the gNOI APIs used to perform diagnostic operations on a -// network device. - // Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.26.0 -// protoc v3.15.7 // source: diag/diag.proto -package diag +package gnoi_diag import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" types "github.com/openconfig/gnoi/types" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" + context "golang.org/x/net/context" + grpc "google.golang.org/grpc" + math "math" ) -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) +// 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 // Common sequence generating monic polynomials used for PRBS. type PrbsPolynomial int32 const ( - PrbsPolynomial_PRBS_POLYNOMIAL_UNKNOWN PrbsPolynomial = 0 // default invalid choice. + PrbsPolynomial_PRBS_POLYNOMIAL_UNKNOWN PrbsPolynomial = 0 PrbsPolynomial_PRBS_POLYNOMIAL_PRBS7 PrbsPolynomial = 1 PrbsPolynomial_PRBS_POLYNOMIAL_PRBS9 PrbsPolynomial = 2 PrbsPolynomial_PRBS_POLYNOMIAL_PRBS15 PrbsPolynomial = 3 @@ -53,53 +36,32 @@ const ( PrbsPolynomial_PRBS_POLYNOMIAL_PRBS31 PrbsPolynomial = 6 ) -// Enum value maps for PrbsPolynomial. -var ( - PrbsPolynomial_name = map[int32]string{ - 0: "PRBS_POLYNOMIAL_UNKNOWN", - 1: "PRBS_POLYNOMIAL_PRBS7", - 2: "PRBS_POLYNOMIAL_PRBS9", - 3: "PRBS_POLYNOMIAL_PRBS15", - 4: "PRBS_POLYNOMIAL_PRBS20", - 5: "PRBS_POLYNOMIAL_PRBS23", - 6: "PRBS_POLYNOMIAL_PRBS31", - } - PrbsPolynomial_value = map[string]int32{ - "PRBS_POLYNOMIAL_UNKNOWN": 0, - "PRBS_POLYNOMIAL_PRBS7": 1, - "PRBS_POLYNOMIAL_PRBS9": 2, - "PRBS_POLYNOMIAL_PRBS15": 3, - "PRBS_POLYNOMIAL_PRBS20": 4, - "PRBS_POLYNOMIAL_PRBS23": 5, - "PRBS_POLYNOMIAL_PRBS31": 6, - } -) - -func (x PrbsPolynomial) Enum() *PrbsPolynomial { - p := new(PrbsPolynomial) - *p = x - return p -} - -func (x PrbsPolynomial) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (PrbsPolynomial) Descriptor() protoreflect.EnumDescriptor { - return file_diag_diag_proto_enumTypes[0].Descriptor() +var PrbsPolynomial_name = map[int32]string{ + 0: "PRBS_POLYNOMIAL_UNKNOWN", + 1: "PRBS_POLYNOMIAL_PRBS7", + 2: "PRBS_POLYNOMIAL_PRBS9", + 3: "PRBS_POLYNOMIAL_PRBS15", + 4: "PRBS_POLYNOMIAL_PRBS20", + 5: "PRBS_POLYNOMIAL_PRBS23", + 6: "PRBS_POLYNOMIAL_PRBS31", } -func (PrbsPolynomial) Type() protoreflect.EnumType { - return &file_diag_diag_proto_enumTypes[0] +var PrbsPolynomial_value = map[string]int32{ + "PRBS_POLYNOMIAL_UNKNOWN": 0, + "PRBS_POLYNOMIAL_PRBS7": 1, + "PRBS_POLYNOMIAL_PRBS9": 2, + "PRBS_POLYNOMIAL_PRBS15": 3, + "PRBS_POLYNOMIAL_PRBS20": 4, + "PRBS_POLYNOMIAL_PRBS23": 5, + "PRBS_POLYNOMIAL_PRBS31": 6, } -func (x PrbsPolynomial) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) +func (x PrbsPolynomial) String() string { + return proto.EnumName(PrbsPolynomial_name, int32(x)) } -// Deprecated: Use PrbsPolynomial.Descriptor instead. func (PrbsPolynomial) EnumDescriptor() ([]byte, []int) { - return file_diag_diag_proto_rawDescGZIP(), []int{0} + return fileDescriptor_c2372dae051d1d7a, []int{0} } // Status returned for each per-port BERT request. @@ -141,74 +103,49 @@ const ( BertStatus_BERT_STATUS_INTERNAL_ERROR BertStatus = 13 ) -// Enum value maps for BertStatus. -var ( - BertStatus_name = map[int32]string{ - 0: "BERT_STATUS_UNKNOWN", - 1: "BERT_STATUS_OK", - 2: "BERT_STATUS_NON_EXISTENT_PORT", - 3: "BERT_STATUS_HARDWARE_ACCESS_ERROR", - 4: "BERT_STATUS_UNSUPPORTED_PRBS_POLYNOMIAL", - 5: "BERT_STATUS_PORT_ALREADY_IN_BERT", - 6: "BERT_STATUS_PORT_NOT_RUNNING_BERT", - 7: "BERT_STATUS_TEST_DURATION_TOO_SHORT", - 8: "BERT_STATUS_TEST_DURATION_TOO_LONG", - 9: "BERT_STATUS_OPERATION_ID_NOT_FOUND", - 10: "BERT_STATUS_OPERATION_ID_IN_USE", - 11: "BERT_STATUS_PEER_LOCK_FAILURE", - 12: "BERT_STATUS_PEER_LOCK_LOST", - 13: "BERT_STATUS_INTERNAL_ERROR", - } - BertStatus_value = map[string]int32{ - "BERT_STATUS_UNKNOWN": 0, - "BERT_STATUS_OK": 1, - "BERT_STATUS_NON_EXISTENT_PORT": 2, - "BERT_STATUS_HARDWARE_ACCESS_ERROR": 3, - "BERT_STATUS_UNSUPPORTED_PRBS_POLYNOMIAL": 4, - "BERT_STATUS_PORT_ALREADY_IN_BERT": 5, - "BERT_STATUS_PORT_NOT_RUNNING_BERT": 6, - "BERT_STATUS_TEST_DURATION_TOO_SHORT": 7, - "BERT_STATUS_TEST_DURATION_TOO_LONG": 8, - "BERT_STATUS_OPERATION_ID_NOT_FOUND": 9, - "BERT_STATUS_OPERATION_ID_IN_USE": 10, - "BERT_STATUS_PEER_LOCK_FAILURE": 11, - "BERT_STATUS_PEER_LOCK_LOST": 12, - "BERT_STATUS_INTERNAL_ERROR": 13, - } -) - -func (x BertStatus) Enum() *BertStatus { - p := new(BertStatus) - *p = x - return p +var BertStatus_name = map[int32]string{ + 0: "BERT_STATUS_UNKNOWN", + 1: "BERT_STATUS_OK", + 2: "BERT_STATUS_NON_EXISTENT_PORT", + 3: "BERT_STATUS_HARDWARE_ACCESS_ERROR", + 4: "BERT_STATUS_UNSUPPORTED_PRBS_POLYNOMIAL", + 5: "BERT_STATUS_PORT_ALREADY_IN_BERT", + 6: "BERT_STATUS_PORT_NOT_RUNNING_BERT", + 7: "BERT_STATUS_TEST_DURATION_TOO_SHORT", + 8: "BERT_STATUS_TEST_DURATION_TOO_LONG", + 9: "BERT_STATUS_OPERATION_ID_NOT_FOUND", + 10: "BERT_STATUS_OPERATION_ID_IN_USE", + 11: "BERT_STATUS_PEER_LOCK_FAILURE", + 12: "BERT_STATUS_PEER_LOCK_LOST", + 13: "BERT_STATUS_INTERNAL_ERROR", +} + +var BertStatus_value = map[string]int32{ + "BERT_STATUS_UNKNOWN": 0, + "BERT_STATUS_OK": 1, + "BERT_STATUS_NON_EXISTENT_PORT": 2, + "BERT_STATUS_HARDWARE_ACCESS_ERROR": 3, + "BERT_STATUS_UNSUPPORTED_PRBS_POLYNOMIAL": 4, + "BERT_STATUS_PORT_ALREADY_IN_BERT": 5, + "BERT_STATUS_PORT_NOT_RUNNING_BERT": 6, + "BERT_STATUS_TEST_DURATION_TOO_SHORT": 7, + "BERT_STATUS_TEST_DURATION_TOO_LONG": 8, + "BERT_STATUS_OPERATION_ID_NOT_FOUND": 9, + "BERT_STATUS_OPERATION_ID_IN_USE": 10, + "BERT_STATUS_PEER_LOCK_FAILURE": 11, + "BERT_STATUS_PEER_LOCK_LOST": 12, + "BERT_STATUS_INTERNAL_ERROR": 13, } func (x BertStatus) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) + return proto.EnumName(BertStatus_name, int32(x)) } -func (BertStatus) Descriptor() protoreflect.EnumDescriptor { - return file_diag_diag_proto_enumTypes[1].Descriptor() -} - -func (BertStatus) Type() protoreflect.EnumType { - return &file_diag_diag_proto_enumTypes[1] -} - -func (x BertStatus) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use BertStatus.Descriptor instead. func (BertStatus) EnumDescriptor() ([]byte, []int) { - return file_diag_diag_proto_rawDescGZIP(), []int{1} + return fileDescriptor_c2372dae051d1d7a, []int{1} } type StartBERTRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - // Unique BERT operation ID specified by the client. Multiple BERTs run on // different ports can have the same BERT operation ID. This ID will be used // later to stop the operation and/or get its results. @@ -216,634 +153,546 @@ type StartBERTRequest struct { BertOperationId string `protobuf:"bytes,1,opt,name=bert_operation_id,json=bertOperationId,proto3" json:"bert_operation_id,omitempty"` // All the per-port BERTs that are considered one BERT operation and have the // same BERT operation ID. - PerPortRequests []*StartBERTRequest_PerPortRequest `protobuf:"bytes,2,rep,name=per_port_requests,json=perPortRequests,proto3" json:"per_port_requests,omitempty"` + PerPortRequests []*StartBERTRequest_PerPortRequest `protobuf:"bytes,2,rep,name=per_port_requests,json=perPortRequests,proto3" json:"per_port_requests,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *StartBERTRequest) Reset() { - *x = StartBERTRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_diag_diag_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *StartBERTRequest) Reset() { *m = StartBERTRequest{} } +func (m *StartBERTRequest) String() string { return proto.CompactTextString(m) } +func (*StartBERTRequest) ProtoMessage() {} +func (*StartBERTRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_c2372dae051d1d7a, []int{0} } -func (x *StartBERTRequest) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *StartBERTRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StartBERTRequest.Unmarshal(m, b) } - -func (*StartBERTRequest) ProtoMessage() {} - -func (x *StartBERTRequest) ProtoReflect() protoreflect.Message { - mi := &file_diag_diag_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *StartBERTRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StartBERTRequest.Marshal(b, m, deterministic) } - -// Deprecated: Use StartBERTRequest.ProtoReflect.Descriptor instead. -func (*StartBERTRequest) Descriptor() ([]byte, []int) { - return file_diag_diag_proto_rawDescGZIP(), []int{0} +func (m *StartBERTRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_StartBERTRequest.Merge(m, src) } +func (m *StartBERTRequest) XXX_Size() int { + return xxx_messageInfo_StartBERTRequest.Size(m) +} +func (m *StartBERTRequest) XXX_DiscardUnknown() { + xxx_messageInfo_StartBERTRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_StartBERTRequest proto.InternalMessageInfo -func (x *StartBERTRequest) GetBertOperationId() string { - if x != nil { - return x.BertOperationId +func (m *StartBERTRequest) GetBertOperationId() string { + if m != nil { + return m.BertOperationId } return "" } -func (x *StartBERTRequest) GetPerPortRequests() []*StartBERTRequest_PerPortRequest { - if x != nil { - return x.PerPortRequests +func (m *StartBERTRequest) GetPerPortRequests() []*StartBERTRequest_PerPortRequest { + if m != nil { + return m.PerPortRequests } return nil } -type StartBERTResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The same BERT operation ID given by the request. - BertOperationId string `protobuf:"bytes,1,opt,name=bert_operation_id,json=bertOperationId,proto3" json:"bert_operation_id,omitempty"` - // Captures the results of starting BERT on a per-port basis. - PerPortResponses []*StartBERTResponse_PerPortResponse `protobuf:"bytes,2,rep,name=per_port_responses,json=perPortResponses,proto3" json:"per_port_responses,omitempty"` +// Per port BERT start requests. +type StartBERTRequest_PerPortRequest struct { + // Path to the interface corresponding to the port. + Interface *types.Path `protobuf:"bytes,1,opt,name=interface,proto3" json:"interface,omitempty"` + // The selected PRBS generating polynomial for BERT. + PrbsPolynomial PrbsPolynomial `protobuf:"varint,2,opt,name=prbs_polynomial,json=prbsPolynomial,proto3,enum=gnoi.diag.PrbsPolynomial" json:"prbs_polynomial,omitempty"` + // BERT duration in seconds. Must be a positive number. + TestDurationInSecs uint32 `protobuf:"varint,3,opt,name=test_duration_in_secs,json=testDurationInSecs,proto3" json:"test_duration_in_secs,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *StartBERTResponse) Reset() { - *x = StartBERTResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_diag_diag_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *StartBERTRequest_PerPortRequest) Reset() { *m = StartBERTRequest_PerPortRequest{} } +func (m *StartBERTRequest_PerPortRequest) String() string { return proto.CompactTextString(m) } +func (*StartBERTRequest_PerPortRequest) ProtoMessage() {} +func (*StartBERTRequest_PerPortRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_c2372dae051d1d7a, []int{0, 0} } -func (x *StartBERTResponse) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *StartBERTRequest_PerPortRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StartBERTRequest_PerPortRequest.Unmarshal(m, b) +} +func (m *StartBERTRequest_PerPortRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StartBERTRequest_PerPortRequest.Marshal(b, m, deterministic) +} +func (m *StartBERTRequest_PerPortRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_StartBERTRequest_PerPortRequest.Merge(m, src) +} +func (m *StartBERTRequest_PerPortRequest) XXX_Size() int { + return xxx_messageInfo_StartBERTRequest_PerPortRequest.Size(m) +} +func (m *StartBERTRequest_PerPortRequest) XXX_DiscardUnknown() { + xxx_messageInfo_StartBERTRequest_PerPortRequest.DiscardUnknown(m) } -func (*StartBERTResponse) ProtoMessage() {} +var xxx_messageInfo_StartBERTRequest_PerPortRequest proto.InternalMessageInfo -func (x *StartBERTResponse) ProtoReflect() protoreflect.Message { - mi := &file_diag_diag_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms +func (m *StartBERTRequest_PerPortRequest) GetInterface() *types.Path { + if m != nil { + return m.Interface } - return mi.MessageOf(x) -} - -// Deprecated: Use StartBERTResponse.ProtoReflect.Descriptor instead. -func (*StartBERTResponse) Descriptor() ([]byte, []int) { - return file_diag_diag_proto_rawDescGZIP(), []int{1} + return nil } -func (x *StartBERTResponse) GetBertOperationId() string { - if x != nil { - return x.BertOperationId +func (m *StartBERTRequest_PerPortRequest) GetPrbsPolynomial() PrbsPolynomial { + if m != nil { + return m.PrbsPolynomial } - return "" + return PrbsPolynomial_PRBS_POLYNOMIAL_UNKNOWN } -func (x *StartBERTResponse) GetPerPortResponses() []*StartBERTResponse_PerPortResponse { - if x != nil { - return x.PerPortResponses +func (m *StartBERTRequest_PerPortRequest) GetTestDurationInSecs() uint32 { + if m != nil { + return m.TestDurationInSecs } - return nil + return 0 } -type StopBERTRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The same BERT operation ID given when BERT operation was started. +type StartBERTResponse struct { + // The same BERT operation ID given by the request. BertOperationId string `protobuf:"bytes,1,opt,name=bert_operation_id,json=bertOperationId,proto3" json:"bert_operation_id,omitempty"` - // All the per-port BERTs that need to be stopped. Must be part of the BERT - // operation specified by the `bert_operation_id` above. - PerPortRequests []*StopBERTRequest_PerPortRequest `protobuf:"bytes,2,rep,name=per_port_requests,json=perPortRequests,proto3" json:"per_port_requests,omitempty"` + // Captures the results of starting BERT on a per-port basis. + PerPortResponses []*StartBERTResponse_PerPortResponse `protobuf:"bytes,2,rep,name=per_port_responses,json=perPortResponses,proto3" json:"per_port_responses,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *StopBERTRequest) Reset() { - *x = StopBERTRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_diag_diag_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *StartBERTResponse) Reset() { *m = StartBERTResponse{} } +func (m *StartBERTResponse) String() string { return proto.CompactTextString(m) } +func (*StartBERTResponse) ProtoMessage() {} +func (*StartBERTResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_c2372dae051d1d7a, []int{1} } -func (x *StopBERTRequest) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *StartBERTResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StartBERTResponse.Unmarshal(m, b) } - -func (*StopBERTRequest) ProtoMessage() {} - -func (x *StopBERTRequest) ProtoReflect() protoreflect.Message { - mi := &file_diag_diag_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *StartBERTResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StartBERTResponse.Marshal(b, m, deterministic) } - -// Deprecated: Use StopBERTRequest.ProtoReflect.Descriptor instead. -func (*StopBERTRequest) Descriptor() ([]byte, []int) { - return file_diag_diag_proto_rawDescGZIP(), []int{2} +func (m *StartBERTResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_StartBERTResponse.Merge(m, src) +} +func (m *StartBERTResponse) XXX_Size() int { + return xxx_messageInfo_StartBERTResponse.Size(m) +} +func (m *StartBERTResponse) XXX_DiscardUnknown() { + xxx_messageInfo_StartBERTResponse.DiscardUnknown(m) } -func (x *StopBERTRequest) GetBertOperationId() string { - if x != nil { - return x.BertOperationId +var xxx_messageInfo_StartBERTResponse proto.InternalMessageInfo + +func (m *StartBERTResponse) GetBertOperationId() string { + if m != nil { + return m.BertOperationId } return "" } -func (x *StopBERTRequest) GetPerPortRequests() []*StopBERTRequest_PerPortRequest { - if x != nil { - return x.PerPortRequests +func (m *StartBERTResponse) GetPerPortResponses() []*StartBERTResponse_PerPortResponse { + if m != nil { + return m.PerPortResponses } return nil } -type StopBERTResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The same BERT operation ID given by the request. - BertOperationId string `protobuf:"bytes,1,opt,name=bert_operation_id,json=bertOperationId,proto3" json:"bert_operation_id,omitempty"` - // Captures the results of stopping BERT on a per-port basis. - PerPortResponses []*StopBERTResponse_PerPortResponse `protobuf:"bytes,2,rep,name=per_port_responses,json=perPortResponses,proto3" json:"per_port_responses,omitempty"` +// Per-port BERT start responses. +type StartBERTResponse_PerPortResponse struct { + // Path to the interface corresponding to the port. + Interface *types.Path `protobuf:"bytes,1,opt,name=interface,proto3" json:"interface,omitempty"` + // BERT start status for this port. + Status BertStatus `protobuf:"varint,2,opt,name=status,proto3,enum=gnoi.diag.BertStatus" json:"status,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *StopBERTResponse) Reset() { - *x = StopBERTResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_diag_diag_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *StartBERTResponse_PerPortResponse) Reset() { *m = StartBERTResponse_PerPortResponse{} } +func (m *StartBERTResponse_PerPortResponse) String() string { return proto.CompactTextString(m) } +func (*StartBERTResponse_PerPortResponse) ProtoMessage() {} +func (*StartBERTResponse_PerPortResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_c2372dae051d1d7a, []int{1, 0} } -func (x *StopBERTResponse) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *StartBERTResponse_PerPortResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StartBERTResponse_PerPortResponse.Unmarshal(m, b) } - -func (*StopBERTResponse) ProtoMessage() {} - -func (x *StopBERTResponse) ProtoReflect() protoreflect.Message { - mi := &file_diag_diag_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *StartBERTResponse_PerPortResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StartBERTResponse_PerPortResponse.Marshal(b, m, deterministic) } - -// Deprecated: Use StopBERTResponse.ProtoReflect.Descriptor instead. -func (*StopBERTResponse) Descriptor() ([]byte, []int) { - return file_diag_diag_proto_rawDescGZIP(), []int{3} +func (m *StartBERTResponse_PerPortResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_StartBERTResponse_PerPortResponse.Merge(m, src) } - -func (x *StopBERTResponse) GetBertOperationId() string { - if x != nil { - return x.BertOperationId - } - return "" +func (m *StartBERTResponse_PerPortResponse) XXX_Size() int { + return xxx_messageInfo_StartBERTResponse_PerPortResponse.Size(m) +} +func (m *StartBERTResponse_PerPortResponse) XXX_DiscardUnknown() { + xxx_messageInfo_StartBERTResponse_PerPortResponse.DiscardUnknown(m) } -func (x *StopBERTResponse) GetPerPortResponses() []*StopBERTResponse_PerPortResponse { - if x != nil { - return x.PerPortResponses +var xxx_messageInfo_StartBERTResponse_PerPortResponse proto.InternalMessageInfo + +func (m *StartBERTResponse_PerPortResponse) GetInterface() *types.Path { + if m != nil { + return m.Interface } return nil } -// TODO: If there is no use case to get the BERT results for all the ports -// independent of the bert_operation_id, we can simplify this message and -// return the results for all the ports associated with an operation ID. -type GetBERTResultRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields +func (m *StartBERTResponse_PerPortResponse) GetStatus() BertStatus { + if m != nil { + return m.Status + } + return BertStatus_BERT_STATUS_UNKNOWN +} +type StopBERTRequest struct { // The same BERT operation ID given when BERT operation was started. BertOperationId string `protobuf:"bytes,1,opt,name=bert_operation_id,json=bertOperationId,proto3" json:"bert_operation_id,omitempty"` - // All the per-port BERTs result of which we want to query. Must be part of - // the BERT operation specified by the `bert_operation_id` above. - PerPortRequests []*GetBERTResultRequest_PerPortRequest `protobuf:"bytes,2,rep,name=per_port_requests,json=perPortRequests,proto3" json:"per_port_requests,omitempty"` - // If set to true, the results for all the per-port BERTs will be returned. - // `bert_operation_id` and `per_port_requests` will be ignored will be - // ignored in that case. - ResultFromAllPorts bool `protobuf:"varint,3,opt,name=result_from_all_ports,json=resultFromAllPorts,proto3" json:"result_from_all_ports,omitempty"` + // All the per-port BERTs that need to be stopped. Must be part of the BERT + // operation specified by the `bert_operation_id` above. + PerPortRequests []*StopBERTRequest_PerPortRequest `protobuf:"bytes,2,rep,name=per_port_requests,json=perPortRequests,proto3" json:"per_port_requests,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *GetBERTResultRequest) Reset() { - *x = GetBERTResultRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_diag_diag_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *StopBERTRequest) Reset() { *m = StopBERTRequest{} } +func (m *StopBERTRequest) String() string { return proto.CompactTextString(m) } +func (*StopBERTRequest) ProtoMessage() {} +func (*StopBERTRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_c2372dae051d1d7a, []int{2} } -func (x *GetBERTResultRequest) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *StopBERTRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StopBERTRequest.Unmarshal(m, b) } - -func (*GetBERTResultRequest) ProtoMessage() {} - -func (x *GetBERTResultRequest) ProtoReflect() protoreflect.Message { - mi := &file_diag_diag_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *StopBERTRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StopBERTRequest.Marshal(b, m, deterministic) } - -// Deprecated: Use GetBERTResultRequest.ProtoReflect.Descriptor instead. -func (*GetBERTResultRequest) Descriptor() ([]byte, []int) { - return file_diag_diag_proto_rawDescGZIP(), []int{4} +func (m *StopBERTRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_StopBERTRequest.Merge(m, src) +} +func (m *StopBERTRequest) XXX_Size() int { + return xxx_messageInfo_StopBERTRequest.Size(m) +} +func (m *StopBERTRequest) XXX_DiscardUnknown() { + xxx_messageInfo_StopBERTRequest.DiscardUnknown(m) } -func (x *GetBERTResultRequest) GetBertOperationId() string { - if x != nil { - return x.BertOperationId +var xxx_messageInfo_StopBERTRequest proto.InternalMessageInfo + +func (m *StopBERTRequest) GetBertOperationId() string { + if m != nil { + return m.BertOperationId } return "" } -func (x *GetBERTResultRequest) GetPerPortRequests() []*GetBERTResultRequest_PerPortRequest { - if x != nil { - return x.PerPortRequests +func (m *StopBERTRequest) GetPerPortRequests() []*StopBERTRequest_PerPortRequest { + if m != nil { + return m.PerPortRequests } return nil } -func (x *GetBERTResultRequest) GetResultFromAllPorts() bool { - if x != nil { - return x.ResultFromAllPorts - } - return false +// Per-port BERT stop requests. +type StopBERTRequest_PerPortRequest struct { + // Path to the interface corresponding to the port. + Interface *types.Path `protobuf:"bytes,1,opt,name=interface,proto3" json:"interface,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -type GetBERTResultResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Captures the BERT results on a per-port basis. - PerPortResponses []*GetBERTResultResponse_PerPortResponse `protobuf:"bytes,1,rep,name=per_port_responses,json=perPortResponses,proto3" json:"per_port_responses,omitempty"` +func (m *StopBERTRequest_PerPortRequest) Reset() { *m = StopBERTRequest_PerPortRequest{} } +func (m *StopBERTRequest_PerPortRequest) String() string { return proto.CompactTextString(m) } +func (*StopBERTRequest_PerPortRequest) ProtoMessage() {} +func (*StopBERTRequest_PerPortRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_c2372dae051d1d7a, []int{2, 0} } -func (x *GetBERTResultResponse) Reset() { - *x = GetBERTResultResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_diag_diag_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *StopBERTRequest_PerPortRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StopBERTRequest_PerPortRequest.Unmarshal(m, b) } - -func (x *GetBERTResultResponse) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *StopBERTRequest_PerPortRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StopBERTRequest_PerPortRequest.Marshal(b, m, deterministic) } - -func (*GetBERTResultResponse) ProtoMessage() {} - -func (x *GetBERTResultResponse) ProtoReflect() protoreflect.Message { - mi := &file_diag_diag_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *StopBERTRequest_PerPortRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_StopBERTRequest_PerPortRequest.Merge(m, src) } - -// Deprecated: Use GetBERTResultResponse.ProtoReflect.Descriptor instead. -func (*GetBERTResultResponse) Descriptor() ([]byte, []int) { - return file_diag_diag_proto_rawDescGZIP(), []int{5} +func (m *StopBERTRequest_PerPortRequest) XXX_Size() int { + return xxx_messageInfo_StopBERTRequest_PerPortRequest.Size(m) +} +func (m *StopBERTRequest_PerPortRequest) XXX_DiscardUnknown() { + xxx_messageInfo_StopBERTRequest_PerPortRequest.DiscardUnknown(m) } -func (x *GetBERTResultResponse) GetPerPortResponses() []*GetBERTResultResponse_PerPortResponse { - if x != nil { - return x.PerPortResponses +var xxx_messageInfo_StopBERTRequest_PerPortRequest proto.InternalMessageInfo + +func (m *StopBERTRequest_PerPortRequest) GetInterface() *types.Path { + if m != nil { + return m.Interface } return nil } -// Per port BERT start requests. -type StartBERTRequest_PerPortRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Path to the interface corresponding to the port. - Interface *types.Path `protobuf:"bytes,1,opt,name=interface,proto3" json:"interface,omitempty"` // required - // The selected PRBS generating polynomial for BERT. - PrbsPolynomial PrbsPolynomial `protobuf:"varint,2,opt,name=prbs_polynomial,json=prbsPolynomial,proto3,enum=gnoi.diag.PrbsPolynomial" json:"prbs_polynomial,omitempty"` // required - // BERT duration in seconds. Must be a positive number. - TestDurationInSecs uint32 `protobuf:"varint,3,opt,name=test_duration_in_secs,json=testDurationInSecs,proto3" json:"test_duration_in_secs,omitempty"` // required +type StopBERTResponse struct { + // The same BERT operation ID given by the request. + BertOperationId string `protobuf:"bytes,1,opt,name=bert_operation_id,json=bertOperationId,proto3" json:"bert_operation_id,omitempty"` + // Captures the results of stopping BERT on a per-port basis. + PerPortResponses []*StopBERTResponse_PerPortResponse `protobuf:"bytes,2,rep,name=per_port_responses,json=perPortResponses,proto3" json:"per_port_responses,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *StartBERTRequest_PerPortRequest) Reset() { - *x = StartBERTRequest_PerPortRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_diag_diag_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *StopBERTResponse) Reset() { *m = StopBERTResponse{} } +func (m *StopBERTResponse) String() string { return proto.CompactTextString(m) } +func (*StopBERTResponse) ProtoMessage() {} +func (*StopBERTResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_c2372dae051d1d7a, []int{3} } -func (x *StartBERTRequest_PerPortRequest) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *StopBERTResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StopBERTResponse.Unmarshal(m, b) } - -func (*StartBERTRequest_PerPortRequest) ProtoMessage() {} - -func (x *StartBERTRequest_PerPortRequest) ProtoReflect() protoreflect.Message { - mi := &file_diag_diag_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *StopBERTResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StopBERTResponse.Marshal(b, m, deterministic) } - -// Deprecated: Use StartBERTRequest_PerPortRequest.ProtoReflect.Descriptor instead. -func (*StartBERTRequest_PerPortRequest) Descriptor() ([]byte, []int) { - return file_diag_diag_proto_rawDescGZIP(), []int{0, 0} +func (m *StopBERTResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_StopBERTResponse.Merge(m, src) } - -func (x *StartBERTRequest_PerPortRequest) GetInterface() *types.Path { - if x != nil { - return x.Interface - } - return nil +func (m *StopBERTResponse) XXX_Size() int { + return xxx_messageInfo_StopBERTResponse.Size(m) +} +func (m *StopBERTResponse) XXX_DiscardUnknown() { + xxx_messageInfo_StopBERTResponse.DiscardUnknown(m) } -func (x *StartBERTRequest_PerPortRequest) GetPrbsPolynomial() PrbsPolynomial { - if x != nil { - return x.PrbsPolynomial +var xxx_messageInfo_StopBERTResponse proto.InternalMessageInfo + +func (m *StopBERTResponse) GetBertOperationId() string { + if m != nil { + return m.BertOperationId } - return PrbsPolynomial_PRBS_POLYNOMIAL_UNKNOWN + return "" } -func (x *StartBERTRequest_PerPortRequest) GetTestDurationInSecs() uint32 { - if x != nil { - return x.TestDurationInSecs +func (m *StopBERTResponse) GetPerPortResponses() []*StopBERTResponse_PerPortResponse { + if m != nil { + return m.PerPortResponses } - return 0 + return nil } -// Per-port BERT start responses. -type StartBERTResponse_PerPortResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - +// Per-port BERT stop responses. +type StopBERTResponse_PerPortResponse struct { // Path to the interface corresponding to the port. Interface *types.Path `protobuf:"bytes,1,opt,name=interface,proto3" json:"interface,omitempty"` - // BERT start status for this port. - Status BertStatus `protobuf:"varint,2,opt,name=status,proto3,enum=gnoi.diag.BertStatus" json:"status,omitempty"` + // BERT stop status for this port. + Status BertStatus `protobuf:"varint,2,opt,name=status,proto3,enum=gnoi.diag.BertStatus" json:"status,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *StartBERTResponse_PerPortResponse) Reset() { - *x = StartBERTResponse_PerPortResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_diag_diag_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *StopBERTResponse_PerPortResponse) Reset() { *m = StopBERTResponse_PerPortResponse{} } +func (m *StopBERTResponse_PerPortResponse) String() string { return proto.CompactTextString(m) } +func (*StopBERTResponse_PerPortResponse) ProtoMessage() {} +func (*StopBERTResponse_PerPortResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_c2372dae051d1d7a, []int{3, 0} } -func (x *StartBERTResponse_PerPortResponse) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *StopBERTResponse_PerPortResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StopBERTResponse_PerPortResponse.Unmarshal(m, b) } - -func (*StartBERTResponse_PerPortResponse) ProtoMessage() {} - -func (x *StartBERTResponse_PerPortResponse) ProtoReflect() protoreflect.Message { - mi := &file_diag_diag_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *StopBERTResponse_PerPortResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StopBERTResponse_PerPortResponse.Marshal(b, m, deterministic) } - -// Deprecated: Use StartBERTResponse_PerPortResponse.ProtoReflect.Descriptor instead. -func (*StartBERTResponse_PerPortResponse) Descriptor() ([]byte, []int) { - return file_diag_diag_proto_rawDescGZIP(), []int{1, 0} +func (m *StopBERTResponse_PerPortResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_StopBERTResponse_PerPortResponse.Merge(m, src) } +func (m *StopBERTResponse_PerPortResponse) XXX_Size() int { + return xxx_messageInfo_StopBERTResponse_PerPortResponse.Size(m) +} +func (m *StopBERTResponse_PerPortResponse) XXX_DiscardUnknown() { + xxx_messageInfo_StopBERTResponse_PerPortResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_StopBERTResponse_PerPortResponse proto.InternalMessageInfo -func (x *StartBERTResponse_PerPortResponse) GetInterface() *types.Path { - if x != nil { - return x.Interface +func (m *StopBERTResponse_PerPortResponse) GetInterface() *types.Path { + if m != nil { + return m.Interface } return nil } -func (x *StartBERTResponse_PerPortResponse) GetStatus() BertStatus { - if x != nil { - return x.Status +func (m *StopBERTResponse_PerPortResponse) GetStatus() BertStatus { + if m != nil { + return m.Status } return BertStatus_BERT_STATUS_UNKNOWN } -// Per-port BERT stop requests. -type StopBERTRequest_PerPortRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Path to the interface corresponding to the port. - Interface *types.Path `protobuf:"bytes,1,opt,name=interface,proto3" json:"interface,omitempty"` +// TODO: If there is no use case to get the BERT results for all the ports +// independent of the bert_operation_id, we can simplify this message and +// return the results for all the ports associated with an operation ID. +type GetBERTResultRequest struct { + // The same BERT operation ID given when BERT operation was started. + BertOperationId string `protobuf:"bytes,1,opt,name=bert_operation_id,json=bertOperationId,proto3" json:"bert_operation_id,omitempty"` + // All the per-port BERTs result of which we want to query. Must be part of + // the BERT operation specified by the `bert_operation_id` above. + PerPortRequests []*GetBERTResultRequest_PerPortRequest `protobuf:"bytes,2,rep,name=per_port_requests,json=perPortRequests,proto3" json:"per_port_requests,omitempty"` + // If set to true, the results for all the per-port BERTs will be returned. + // `bert_operation_id` and `per_port_requests` will be ignored will be + // ignored in that case. + ResultFromAllPorts bool `protobuf:"varint,3,opt,name=result_from_all_ports,json=resultFromAllPorts,proto3" json:"result_from_all_ports,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *StopBERTRequest_PerPortRequest) Reset() { - *x = StopBERTRequest_PerPortRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_diag_diag_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *GetBERTResultRequest) Reset() { *m = GetBERTResultRequest{} } +func (m *GetBERTResultRequest) String() string { return proto.CompactTextString(m) } +func (*GetBERTResultRequest) ProtoMessage() {} +func (*GetBERTResultRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_c2372dae051d1d7a, []int{4} } -func (x *StopBERTRequest_PerPortRequest) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *GetBERTResultRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetBERTResultRequest.Unmarshal(m, b) +} +func (m *GetBERTResultRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetBERTResultRequest.Marshal(b, m, deterministic) +} +func (m *GetBERTResultRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetBERTResultRequest.Merge(m, src) +} +func (m *GetBERTResultRequest) XXX_Size() int { + return xxx_messageInfo_GetBERTResultRequest.Size(m) +} +func (m *GetBERTResultRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetBERTResultRequest.DiscardUnknown(m) } -func (*StopBERTRequest_PerPortRequest) ProtoMessage() {} +var xxx_messageInfo_GetBERTResultRequest proto.InternalMessageInfo -func (x *StopBERTRequest_PerPortRequest) ProtoReflect() protoreflect.Message { - mi := &file_diag_diag_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms +func (m *GetBERTResultRequest) GetBertOperationId() string { + if m != nil { + return m.BertOperationId } - return mi.MessageOf(x) -} - -// Deprecated: Use StopBERTRequest_PerPortRequest.ProtoReflect.Descriptor instead. -func (*StopBERTRequest_PerPortRequest) Descriptor() ([]byte, []int) { - return file_diag_diag_proto_rawDescGZIP(), []int{2, 0} + return "" } -func (x *StopBERTRequest_PerPortRequest) GetInterface() *types.Path { - if x != nil { - return x.Interface +func (m *GetBERTResultRequest) GetPerPortRequests() []*GetBERTResultRequest_PerPortRequest { + if m != nil { + return m.PerPortRequests } return nil } -// Per-port BERT stop responses. -type StopBERTResponse_PerPortResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields +func (m *GetBERTResultRequest) GetResultFromAllPorts() bool { + if m != nil { + return m.ResultFromAllPorts + } + return false +} +// Per-port BERT get result requests. +type GetBERTResultRequest_PerPortRequest struct { // Path to the interface corresponding to the port. - Interface *types.Path `protobuf:"bytes,1,opt,name=interface,proto3" json:"interface,omitempty"` - // BERT stop status for this port. - Status BertStatus `protobuf:"varint,2,opt,name=status,proto3,enum=gnoi.diag.BertStatus" json:"status,omitempty"` + Interface *types.Path `protobuf:"bytes,1,opt,name=interface,proto3" json:"interface,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *StopBERTResponse_PerPortResponse) Reset() { - *x = StopBERTResponse_PerPortResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_diag_diag_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *GetBERTResultRequest_PerPortRequest) Reset() { *m = GetBERTResultRequest_PerPortRequest{} } +func (m *GetBERTResultRequest_PerPortRequest) String() string { return proto.CompactTextString(m) } +func (*GetBERTResultRequest_PerPortRequest) ProtoMessage() {} +func (*GetBERTResultRequest_PerPortRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_c2372dae051d1d7a, []int{4, 0} } -func (x *StopBERTResponse_PerPortResponse) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *GetBERTResultRequest_PerPortRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetBERTResultRequest_PerPortRequest.Unmarshal(m, b) } - -func (*StopBERTResponse_PerPortResponse) ProtoMessage() {} - -func (x *StopBERTResponse_PerPortResponse) ProtoReflect() protoreflect.Message { - mi := &file_diag_diag_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *GetBERTResultRequest_PerPortRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetBERTResultRequest_PerPortRequest.Marshal(b, m, deterministic) } - -// Deprecated: Use StopBERTResponse_PerPortResponse.ProtoReflect.Descriptor instead. -func (*StopBERTResponse_PerPortResponse) Descriptor() ([]byte, []int) { - return file_diag_diag_proto_rawDescGZIP(), []int{3, 0} +func (m *GetBERTResultRequest_PerPortRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetBERTResultRequest_PerPortRequest.Merge(m, src) +} +func (m *GetBERTResultRequest_PerPortRequest) XXX_Size() int { + return xxx_messageInfo_GetBERTResultRequest_PerPortRequest.Size(m) +} +func (m *GetBERTResultRequest_PerPortRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetBERTResultRequest_PerPortRequest.DiscardUnknown(m) } -func (x *StopBERTResponse_PerPortResponse) GetInterface() *types.Path { - if x != nil { - return x.Interface +var xxx_messageInfo_GetBERTResultRequest_PerPortRequest proto.InternalMessageInfo + +func (m *GetBERTResultRequest_PerPortRequest) GetInterface() *types.Path { + if m != nil { + return m.Interface } return nil } -func (x *StopBERTResponse_PerPortResponse) GetStatus() BertStatus { - if x != nil { - return x.Status - } - return BertStatus_BERT_STATUS_UNKNOWN +type GetBERTResultResponse struct { + // Captures the BERT results on a per-port basis. + PerPortResponses []*GetBERTResultResponse_PerPortResponse `protobuf:"bytes,1,rep,name=per_port_responses,json=perPortResponses,proto3" json:"per_port_responses,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -// Per-port BERT get result requests. -type GetBERTResultRequest_PerPortRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Path to the interface corresponding to the port. - Interface *types.Path `protobuf:"bytes,1,opt,name=interface,proto3" json:"interface,omitempty"` +func (m *GetBERTResultResponse) Reset() { *m = GetBERTResultResponse{} } +func (m *GetBERTResultResponse) String() string { return proto.CompactTextString(m) } +func (*GetBERTResultResponse) ProtoMessage() {} +func (*GetBERTResultResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_c2372dae051d1d7a, []int{5} } -func (x *GetBERTResultRequest_PerPortRequest) Reset() { - *x = GetBERTResultRequest_PerPortRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_diag_diag_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *GetBERTResultResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetBERTResultResponse.Unmarshal(m, b) } - -func (x *GetBERTResultRequest_PerPortRequest) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *GetBERTResultResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetBERTResultResponse.Marshal(b, m, deterministic) } - -func (*GetBERTResultRequest_PerPortRequest) ProtoMessage() {} - -func (x *GetBERTResultRequest_PerPortRequest) ProtoReflect() protoreflect.Message { - mi := &file_diag_diag_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *GetBERTResultResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetBERTResultResponse.Merge(m, src) } - -// Deprecated: Use GetBERTResultRequest_PerPortRequest.ProtoReflect.Descriptor instead. -func (*GetBERTResultRequest_PerPortRequest) Descriptor() ([]byte, []int) { - return file_diag_diag_proto_rawDescGZIP(), []int{4, 0} +func (m *GetBERTResultResponse) XXX_Size() int { + return xxx_messageInfo_GetBERTResultResponse.Size(m) } +func (m *GetBERTResultResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetBERTResultResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_GetBERTResultResponse proto.InternalMessageInfo -func (x *GetBERTResultRequest_PerPortRequest) GetInterface() *types.Path { - if x != nil { - return x.Interface +func (m *GetBERTResultResponse) GetPerPortResponses() []*GetBERTResultResponse_PerPortResponse { + if m != nil { + return m.PerPortResponses } return nil } // Per-port BERT results/status. type GetBERTResultResponse_PerPortResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - // Path to the interface corresponding to the port. Interface *types.Path `protobuf:"bytes,1,opt,name=interface,proto3" json:"interface,omitempty"` // BERT result get status for this port. Only if the status is @@ -869,542 +718,408 @@ type GetBERTResultResponse_PerPortResponse struct { // Sequence of bit errors per min since lock was established. ErrorCountPerMinute []uint32 `protobuf:"varint,9,rep,packed,name=error_count_per_minute,json=errorCountPerMinute,proto3" json:"error_count_per_minute,omitempty"` // Total number of bit errors accumulated since lock was established. - TotalErrors uint64 `protobuf:"varint,10,opt,name=total_errors,json=totalErrors,proto3" json:"total_errors,omitempty"` + TotalErrors uint64 `protobuf:"varint,10,opt,name=total_errors,json=totalErrors,proto3" json:"total_errors,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *GetBERTResultResponse_PerPortResponse) Reset() { - *x = GetBERTResultResponse_PerPortResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_diag_diag_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *GetBERTResultResponse_PerPortResponse) Reset() { *m = GetBERTResultResponse_PerPortResponse{} } +func (m *GetBERTResultResponse_PerPortResponse) String() string { return proto.CompactTextString(m) } +func (*GetBERTResultResponse_PerPortResponse) ProtoMessage() {} +func (*GetBERTResultResponse_PerPortResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_c2372dae051d1d7a, []int{5, 0} } -func (x *GetBERTResultResponse_PerPortResponse) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *GetBERTResultResponse_PerPortResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetBERTResultResponse_PerPortResponse.Unmarshal(m, b) } - -func (*GetBERTResultResponse_PerPortResponse) ProtoMessage() {} - -func (x *GetBERTResultResponse_PerPortResponse) ProtoReflect() protoreflect.Message { - mi := &file_diag_diag_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *GetBERTResultResponse_PerPortResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetBERTResultResponse_PerPortResponse.Marshal(b, m, deterministic) } - -// Deprecated: Use GetBERTResultResponse_PerPortResponse.ProtoReflect.Descriptor instead. -func (*GetBERTResultResponse_PerPortResponse) Descriptor() ([]byte, []int) { - return file_diag_diag_proto_rawDescGZIP(), []int{5, 0} +func (m *GetBERTResultResponse_PerPortResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetBERTResultResponse_PerPortResponse.Merge(m, src) +} +func (m *GetBERTResultResponse_PerPortResponse) XXX_Size() int { + return xxx_messageInfo_GetBERTResultResponse_PerPortResponse.Size(m) +} +func (m *GetBERTResultResponse_PerPortResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetBERTResultResponse_PerPortResponse.DiscardUnknown(m) } -func (x *GetBERTResultResponse_PerPortResponse) GetInterface() *types.Path { - if x != nil { - return x.Interface +var xxx_messageInfo_GetBERTResultResponse_PerPortResponse proto.InternalMessageInfo + +func (m *GetBERTResultResponse_PerPortResponse) GetInterface() *types.Path { + if m != nil { + return m.Interface } return nil } -func (x *GetBERTResultResponse_PerPortResponse) GetStatus() BertStatus { - if x != nil { - return x.Status +func (m *GetBERTResultResponse_PerPortResponse) GetStatus() BertStatus { + if m != nil { + return m.Status } return BertStatus_BERT_STATUS_UNKNOWN } -func (x *GetBERTResultResponse_PerPortResponse) GetBertOperationId() string { - if x != nil { - return x.BertOperationId +func (m *GetBERTResultResponse_PerPortResponse) GetBertOperationId() string { + if m != nil { + return m.BertOperationId } return "" } -func (x *GetBERTResultResponse_PerPortResponse) GetPrbsPolynomial() PrbsPolynomial { - if x != nil { - return x.PrbsPolynomial +func (m *GetBERTResultResponse_PerPortResponse) GetPrbsPolynomial() PrbsPolynomial { + if m != nil { + return m.PrbsPolynomial } return PrbsPolynomial_PRBS_POLYNOMIAL_UNKNOWN } -func (x *GetBERTResultResponse_PerPortResponse) GetLastBertStartTimestamp() uint64 { - if x != nil { - return x.LastBertStartTimestamp +func (m *GetBERTResultResponse_PerPortResponse) GetLastBertStartTimestamp() uint64 { + if m != nil { + return m.LastBertStartTimestamp } return 0 } -func (x *GetBERTResultResponse_PerPortResponse) GetLastBertGetResultTimestamp() uint64 { - if x != nil { - return x.LastBertGetResultTimestamp +func (m *GetBERTResultResponse_PerPortResponse) GetLastBertGetResultTimestamp() uint64 { + if m != nil { + return m.LastBertGetResultTimestamp } return 0 } -func (x *GetBERTResultResponse_PerPortResponse) GetPeerLockEstablished() bool { - if x != nil { - return x.PeerLockEstablished +func (m *GetBERTResultResponse_PerPortResponse) GetPeerLockEstablished() bool { + if m != nil { + return m.PeerLockEstablished } return false } -func (x *GetBERTResultResponse_PerPortResponse) GetPeerLockLost() bool { - if x != nil { - return x.PeerLockLost +func (m *GetBERTResultResponse_PerPortResponse) GetPeerLockLost() bool { + if m != nil { + return m.PeerLockLost } return false } -func (x *GetBERTResultResponse_PerPortResponse) GetErrorCountPerMinute() []uint32 { - if x != nil { - return x.ErrorCountPerMinute +func (m *GetBERTResultResponse_PerPortResponse) GetErrorCountPerMinute() []uint32 { + if m != nil { + return m.ErrorCountPerMinute } return nil } -func (x *GetBERTResultResponse_PerPortResponse) GetTotalErrors() uint64 { - if x != nil { - return x.TotalErrors +func (m *GetBERTResultResponse_PerPortResponse) GetTotalErrors() uint64 { + if m != nil { + return m.TotalErrors } return 0 } -var File_diag_diag_proto protoreflect.FileDescriptor - -var file_diag_diag_proto_rawDesc = []byte{ - 0x0a, 0x0f, 0x64, 0x69, 0x61, 0x67, 0x2f, 0x64, 0x69, 0x61, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x12, 0x09, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x64, 0x69, 0x61, 0x67, 0x1a, 0x2c, 0x67, 0x69, - 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x6f, 0x6e, - 0x66, 0x69, 0x67, 0x2f, 0x67, 0x6e, 0x6f, 0x69, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x74, - 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xd0, 0x02, 0x0a, 0x10, 0x53, - 0x74, 0x61, 0x72, 0x74, 0x42, 0x45, 0x52, 0x54, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x2a, 0x0a, 0x11, 0x62, 0x65, 0x72, 0x74, 0x5f, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x62, 0x65, 0x72, 0x74, - 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x56, 0x0a, 0x11, 0x70, - 0x65, 0x72, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, - 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x64, 0x69, - 0x61, 0x67, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x42, 0x45, 0x52, 0x54, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x2e, 0x50, 0x65, 0x72, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x52, 0x0f, 0x70, 0x65, 0x72, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x73, 0x1a, 0xb7, 0x01, 0x0a, 0x0e, 0x50, 0x65, 0x72, 0x50, 0x6f, 0x72, 0x74, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2e, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, - 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x67, 0x6e, 0x6f, 0x69, - 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x50, 0x61, 0x74, 0x68, 0x52, 0x09, 0x69, 0x6e, 0x74, - 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x12, 0x42, 0x0a, 0x0f, 0x70, 0x72, 0x62, 0x73, 0x5f, 0x70, - 0x6f, 0x6c, 0x79, 0x6e, 0x6f, 0x6d, 0x69, 0x61, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, - 0x19, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x64, 0x69, 0x61, 0x67, 0x2e, 0x50, 0x72, 0x62, 0x73, - 0x50, 0x6f, 0x6c, 0x79, 0x6e, 0x6f, 0x6d, 0x69, 0x61, 0x6c, 0x52, 0x0e, 0x70, 0x72, 0x62, 0x73, - 0x50, 0x6f, 0x6c, 0x79, 0x6e, 0x6f, 0x6d, 0x69, 0x61, 0x6c, 0x12, 0x31, 0x0a, 0x15, 0x74, 0x65, - 0x73, 0x74, 0x5f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x6e, 0x5f, 0x73, - 0x65, 0x63, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x12, 0x74, 0x65, 0x73, 0x74, 0x44, - 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x53, 0x65, 0x63, 0x73, 0x22, 0x8d, 0x02, - 0x0a, 0x11, 0x53, 0x74, 0x61, 0x72, 0x74, 0x42, 0x45, 0x52, 0x54, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x2a, 0x0a, 0x11, 0x62, 0x65, 0x72, 0x74, 0x5f, 0x6f, 0x70, 0x65, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, - 0x62, 0x65, 0x72, 0x74, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, - 0x5a, 0x0a, 0x12, 0x70, 0x65, 0x72, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x72, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x67, 0x6e, - 0x6f, 0x69, 0x2e, 0x64, 0x69, 0x61, 0x67, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x42, 0x45, 0x52, - 0x54, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x50, 0x65, 0x72, 0x50, 0x6f, 0x72, - 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x10, 0x70, 0x65, 0x72, 0x50, 0x6f, - 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x73, 0x1a, 0x70, 0x0a, 0x0f, 0x50, - 0x65, 0x72, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2e, - 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x10, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x50, - 0x61, 0x74, 0x68, 0x52, 0x09, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x12, 0x2d, - 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, - 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x64, 0x69, 0x61, 0x67, 0x2e, 0x42, 0x65, 0x72, 0x74, 0x53, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0xd6, 0x01, - 0x0a, 0x0f, 0x53, 0x74, 0x6f, 0x70, 0x42, 0x45, 0x52, 0x54, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x2a, 0x0a, 0x11, 0x62, 0x65, 0x72, 0x74, 0x5f, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x62, 0x65, - 0x72, 0x74, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x55, 0x0a, - 0x11, 0x70, 0x65, 0x72, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, - 0x64, 0x69, 0x61, 0x67, 0x2e, 0x53, 0x74, 0x6f, 0x70, 0x42, 0x45, 0x52, 0x54, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x2e, 0x50, 0x65, 0x72, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x52, 0x0f, 0x70, 0x65, 0x72, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x73, 0x1a, 0x40, 0x0a, 0x0e, 0x50, 0x65, 0x72, 0x50, 0x6f, 0x72, 0x74, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2e, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, - 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x67, 0x6e, 0x6f, 0x69, - 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x50, 0x61, 0x74, 0x68, 0x52, 0x09, 0x69, 0x6e, 0x74, - 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x22, 0x8b, 0x02, 0x0a, 0x10, 0x53, 0x74, 0x6f, 0x70, 0x42, - 0x45, 0x52, 0x54, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2a, 0x0a, 0x11, 0x62, - 0x65, 0x72, 0x74, 0x5f, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x62, 0x65, 0x72, 0x74, 0x4f, 0x70, 0x65, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x59, 0x0a, 0x12, 0x70, 0x65, 0x72, 0x5f, 0x70, - 0x6f, 0x72, 0x74, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x73, 0x18, 0x02, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x64, 0x69, 0x61, 0x67, 0x2e, - 0x53, 0x74, 0x6f, 0x70, 0x42, 0x45, 0x52, 0x54, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x2e, 0x50, 0x65, 0x72, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x52, 0x10, 0x70, 0x65, 0x72, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x73, 0x1a, 0x70, 0x0a, 0x0f, 0x50, 0x65, 0x72, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2e, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, - 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, - 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x50, 0x61, 0x74, 0x68, 0x52, 0x09, 0x69, 0x6e, 0x74, 0x65, - 0x72, 0x66, 0x61, 0x63, 0x65, 0x12, 0x2d, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x64, 0x69, 0x61, - 0x67, 0x2e, 0x42, 0x65, 0x72, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, - 0x61, 0x74, 0x75, 0x73, 0x22, 0x93, 0x02, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x42, 0x45, 0x52, 0x54, - 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2a, 0x0a, - 0x11, 0x62, 0x65, 0x72, 0x74, 0x5f, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, - 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x62, 0x65, 0x72, 0x74, 0x4f, 0x70, - 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x5a, 0x0a, 0x11, 0x70, 0x65, 0x72, - 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x18, 0x02, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x64, 0x69, 0x61, 0x67, - 0x2e, 0x47, 0x65, 0x74, 0x42, 0x45, 0x52, 0x54, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x50, 0x65, 0x72, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x52, 0x0f, 0x70, 0x65, 0x72, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x73, 0x12, 0x31, 0x0a, 0x15, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x5f, - 0x66, 0x72, 0x6f, 0x6d, 0x5f, 0x61, 0x6c, 0x6c, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x08, 0x52, 0x12, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x46, 0x72, 0x6f, 0x6d, - 0x41, 0x6c, 0x6c, 0x50, 0x6f, 0x72, 0x74, 0x73, 0x1a, 0x40, 0x0a, 0x0e, 0x50, 0x65, 0x72, 0x50, - 0x6f, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2e, 0x0a, 0x09, 0x69, 0x6e, - 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, - 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x50, 0x61, 0x74, 0x68, 0x52, - 0x09, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x22, 0x8b, 0x05, 0x0a, 0x15, 0x47, - 0x65, 0x74, 0x42, 0x45, 0x52, 0x54, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5e, 0x0a, 0x12, 0x70, 0x65, 0x72, 0x5f, 0x70, 0x6f, 0x72, 0x74, - 0x5f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x30, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x64, 0x69, 0x61, 0x67, 0x2e, 0x47, 0x65, 0x74, - 0x42, 0x45, 0x52, 0x54, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x2e, 0x50, 0x65, 0x72, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x52, 0x10, 0x70, 0x65, 0x72, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x73, 0x1a, 0x91, 0x04, 0x0a, 0x0f, 0x50, 0x65, 0x72, 0x50, 0x6f, 0x72, 0x74, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2e, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x65, - 0x72, 0x66, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x67, 0x6e, - 0x6f, 0x69, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x50, 0x61, 0x74, 0x68, 0x52, 0x09, 0x69, - 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x12, 0x2d, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, - 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, - 0x64, 0x69, 0x61, 0x67, 0x2e, 0x42, 0x65, 0x72, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, - 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x2a, 0x0a, 0x11, 0x62, 0x65, 0x72, 0x74, 0x5f, - 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x0f, 0x62, 0x65, 0x72, 0x74, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x49, 0x64, 0x12, 0x42, 0x0a, 0x0f, 0x70, 0x72, 0x62, 0x73, 0x5f, 0x70, 0x6f, 0x6c, 0x79, - 0x6e, 0x6f, 0x6d, 0x69, 0x61, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x67, - 0x6e, 0x6f, 0x69, 0x2e, 0x64, 0x69, 0x61, 0x67, 0x2e, 0x50, 0x72, 0x62, 0x73, 0x50, 0x6f, 0x6c, - 0x79, 0x6e, 0x6f, 0x6d, 0x69, 0x61, 0x6c, 0x52, 0x0e, 0x70, 0x72, 0x62, 0x73, 0x50, 0x6f, 0x6c, - 0x79, 0x6e, 0x6f, 0x6d, 0x69, 0x61, 0x6c, 0x12, 0x39, 0x0a, 0x19, 0x6c, 0x61, 0x73, 0x74, 0x5f, - 0x62, 0x65, 0x72, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x73, - 0x74, 0x61, 0x6d, 0x70, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x16, 0x6c, 0x61, 0x73, 0x74, - 0x42, 0x65, 0x72, 0x74, 0x53, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, - 0x6d, 0x70, 0x12, 0x42, 0x0a, 0x1e, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x62, 0x65, 0x72, 0x74, 0x5f, - 0x67, 0x65, 0x74, 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x73, - 0x74, 0x61, 0x6d, 0x70, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x1a, 0x6c, 0x61, 0x73, 0x74, - 0x42, 0x65, 0x72, 0x74, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x54, 0x69, 0x6d, - 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x32, 0x0a, 0x15, 0x70, 0x65, 0x65, 0x72, 0x5f, 0x6c, - 0x6f, 0x63, 0x6b, 0x5f, 0x65, 0x73, 0x74, 0x61, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x64, 0x18, - 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x13, 0x70, 0x65, 0x65, 0x72, 0x4c, 0x6f, 0x63, 0x6b, 0x45, - 0x73, 0x74, 0x61, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x64, 0x12, 0x24, 0x0a, 0x0e, 0x70, 0x65, - 0x65, 0x72, 0x5f, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x6c, 0x6f, 0x73, 0x74, 0x18, 0x08, 0x20, 0x01, - 0x28, 0x08, 0x52, 0x0c, 0x70, 0x65, 0x65, 0x72, 0x4c, 0x6f, 0x63, 0x6b, 0x4c, 0x6f, 0x73, 0x74, - 0x12, 0x33, 0x0a, 0x16, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, - 0x70, 0x65, 0x72, 0x5f, 0x6d, 0x69, 0x6e, 0x75, 0x74, 0x65, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0d, - 0x52, 0x13, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x50, 0x65, 0x72, 0x4d, - 0x69, 0x6e, 0x75, 0x74, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x65, - 0x72, 0x72, 0x6f, 0x72, 0x73, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x74, 0x6f, 0x74, - 0x61, 0x6c, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x2a, 0xd3, 0x01, 0x0a, 0x0e, 0x50, 0x72, 0x62, - 0x73, 0x50, 0x6f, 0x6c, 0x79, 0x6e, 0x6f, 0x6d, 0x69, 0x61, 0x6c, 0x12, 0x1b, 0x0a, 0x17, 0x50, - 0x52, 0x42, 0x53, 0x5f, 0x50, 0x4f, 0x4c, 0x59, 0x4e, 0x4f, 0x4d, 0x49, 0x41, 0x4c, 0x5f, 0x55, - 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x19, 0x0a, 0x15, 0x50, 0x52, 0x42, 0x53, - 0x5f, 0x50, 0x4f, 0x4c, 0x59, 0x4e, 0x4f, 0x4d, 0x49, 0x41, 0x4c, 0x5f, 0x50, 0x52, 0x42, 0x53, - 0x37, 0x10, 0x01, 0x12, 0x19, 0x0a, 0x15, 0x50, 0x52, 0x42, 0x53, 0x5f, 0x50, 0x4f, 0x4c, 0x59, - 0x4e, 0x4f, 0x4d, 0x49, 0x41, 0x4c, 0x5f, 0x50, 0x52, 0x42, 0x53, 0x39, 0x10, 0x02, 0x12, 0x1a, - 0x0a, 0x16, 0x50, 0x52, 0x42, 0x53, 0x5f, 0x50, 0x4f, 0x4c, 0x59, 0x4e, 0x4f, 0x4d, 0x49, 0x41, - 0x4c, 0x5f, 0x50, 0x52, 0x42, 0x53, 0x31, 0x35, 0x10, 0x03, 0x12, 0x1a, 0x0a, 0x16, 0x50, 0x52, - 0x42, 0x53, 0x5f, 0x50, 0x4f, 0x4c, 0x59, 0x4e, 0x4f, 0x4d, 0x49, 0x41, 0x4c, 0x5f, 0x50, 0x52, - 0x42, 0x53, 0x32, 0x30, 0x10, 0x04, 0x12, 0x1a, 0x0a, 0x16, 0x50, 0x52, 0x42, 0x53, 0x5f, 0x50, - 0x4f, 0x4c, 0x59, 0x4e, 0x4f, 0x4d, 0x49, 0x41, 0x4c, 0x5f, 0x50, 0x52, 0x42, 0x53, 0x32, 0x33, - 0x10, 0x05, 0x12, 0x1a, 0x0a, 0x16, 0x50, 0x52, 0x42, 0x53, 0x5f, 0x50, 0x4f, 0x4c, 0x59, 0x4e, - 0x4f, 0x4d, 0x49, 0x41, 0x4c, 0x5f, 0x50, 0x52, 0x42, 0x53, 0x33, 0x31, 0x10, 0x06, 0x2a, 0xfe, - 0x03, 0x0a, 0x0a, 0x42, 0x65, 0x72, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x17, 0x0a, - 0x13, 0x42, 0x45, 0x52, 0x54, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x4b, - 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x12, 0x0a, 0x0e, 0x42, 0x45, 0x52, 0x54, 0x5f, 0x53, - 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x4f, 0x4b, 0x10, 0x01, 0x12, 0x21, 0x0a, 0x1d, 0x42, 0x45, - 0x52, 0x54, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x4e, 0x4f, 0x4e, 0x5f, 0x45, 0x58, - 0x49, 0x53, 0x54, 0x45, 0x4e, 0x54, 0x5f, 0x50, 0x4f, 0x52, 0x54, 0x10, 0x02, 0x12, 0x25, 0x0a, - 0x21, 0x42, 0x45, 0x52, 0x54, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x48, 0x41, 0x52, - 0x44, 0x57, 0x41, 0x52, 0x45, 0x5f, 0x41, 0x43, 0x43, 0x45, 0x53, 0x53, 0x5f, 0x45, 0x52, 0x52, - 0x4f, 0x52, 0x10, 0x03, 0x12, 0x2b, 0x0a, 0x27, 0x42, 0x45, 0x52, 0x54, 0x5f, 0x53, 0x54, 0x41, - 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x53, 0x55, 0x50, 0x50, 0x4f, 0x52, 0x54, 0x45, 0x44, 0x5f, - 0x50, 0x52, 0x42, 0x53, 0x5f, 0x50, 0x4f, 0x4c, 0x59, 0x4e, 0x4f, 0x4d, 0x49, 0x41, 0x4c, 0x10, - 0x04, 0x12, 0x24, 0x0a, 0x20, 0x42, 0x45, 0x52, 0x54, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, - 0x5f, 0x50, 0x4f, 0x52, 0x54, 0x5f, 0x41, 0x4c, 0x52, 0x45, 0x41, 0x44, 0x59, 0x5f, 0x49, 0x4e, - 0x5f, 0x42, 0x45, 0x52, 0x54, 0x10, 0x05, 0x12, 0x25, 0x0a, 0x21, 0x42, 0x45, 0x52, 0x54, 0x5f, - 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x50, 0x4f, 0x52, 0x54, 0x5f, 0x4e, 0x4f, 0x54, 0x5f, - 0x52, 0x55, 0x4e, 0x4e, 0x49, 0x4e, 0x47, 0x5f, 0x42, 0x45, 0x52, 0x54, 0x10, 0x06, 0x12, 0x27, - 0x0a, 0x23, 0x42, 0x45, 0x52, 0x54, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x54, 0x45, - 0x53, 0x54, 0x5f, 0x44, 0x55, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x4f, 0x4f, 0x5f, - 0x53, 0x48, 0x4f, 0x52, 0x54, 0x10, 0x07, 0x12, 0x26, 0x0a, 0x22, 0x42, 0x45, 0x52, 0x54, 0x5f, - 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x54, 0x45, 0x53, 0x54, 0x5f, 0x44, 0x55, 0x52, 0x41, - 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x4f, 0x4f, 0x5f, 0x4c, 0x4f, 0x4e, 0x47, 0x10, 0x08, 0x12, - 0x26, 0x0a, 0x22, 0x42, 0x45, 0x52, 0x54, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x4f, - 0x50, 0x45, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x49, 0x44, 0x5f, 0x4e, 0x4f, 0x54, 0x5f, - 0x46, 0x4f, 0x55, 0x4e, 0x44, 0x10, 0x09, 0x12, 0x23, 0x0a, 0x1f, 0x42, 0x45, 0x52, 0x54, 0x5f, - 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x4f, 0x50, 0x45, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, - 0x5f, 0x49, 0x44, 0x5f, 0x49, 0x4e, 0x5f, 0x55, 0x53, 0x45, 0x10, 0x0a, 0x12, 0x21, 0x0a, 0x1d, - 0x42, 0x45, 0x52, 0x54, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x50, 0x45, 0x45, 0x52, - 0x5f, 0x4c, 0x4f, 0x43, 0x4b, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x55, 0x52, 0x45, 0x10, 0x0b, 0x12, - 0x1e, 0x0a, 0x1a, 0x42, 0x45, 0x52, 0x54, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x50, - 0x45, 0x45, 0x52, 0x5f, 0x4c, 0x4f, 0x43, 0x4b, 0x5f, 0x4c, 0x4f, 0x53, 0x54, 0x10, 0x0c, 0x12, - 0x1e, 0x0a, 0x1a, 0x42, 0x45, 0x52, 0x54, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x49, - 0x4e, 0x54, 0x45, 0x52, 0x4e, 0x41, 0x4c, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x0d, 0x32, - 0xed, 0x01, 0x0a, 0x04, 0x44, 0x69, 0x61, 0x67, 0x12, 0x48, 0x0a, 0x09, 0x53, 0x74, 0x61, 0x72, - 0x74, 0x42, 0x45, 0x52, 0x54, 0x12, 0x1b, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x64, 0x69, 0x61, - 0x67, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x42, 0x45, 0x52, 0x54, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x64, 0x69, 0x61, 0x67, 0x2e, 0x53, - 0x74, 0x61, 0x72, 0x74, 0x42, 0x45, 0x52, 0x54, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x00, 0x12, 0x45, 0x0a, 0x08, 0x53, 0x74, 0x6f, 0x70, 0x42, 0x45, 0x52, 0x54, 0x12, 0x1a, - 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x64, 0x69, 0x61, 0x67, 0x2e, 0x53, 0x74, 0x6f, 0x70, 0x42, - 0x45, 0x52, 0x54, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x67, 0x6e, 0x6f, - 0x69, 0x2e, 0x64, 0x69, 0x61, 0x67, 0x2e, 0x53, 0x74, 0x6f, 0x70, 0x42, 0x45, 0x52, 0x54, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x54, 0x0a, 0x0d, 0x47, 0x65, 0x74, - 0x42, 0x45, 0x52, 0x54, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x1f, 0x2e, 0x67, 0x6e, 0x6f, - 0x69, 0x2e, 0x64, 0x69, 0x61, 0x67, 0x2e, 0x47, 0x65, 0x74, 0x42, 0x45, 0x52, 0x54, 0x52, 0x65, - 0x73, 0x75, 0x6c, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x67, 0x6e, - 0x6f, 0x69, 0x2e, 0x64, 0x69, 0x61, 0x67, 0x2e, 0x47, 0x65, 0x74, 0x42, 0x45, 0x52, 0x54, 0x52, - 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, - 0x29, 0x5a, 0x1f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, - 0x65, 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x67, 0x6e, 0x6f, 0x69, 0x2f, 0x64, 0x69, - 0x61, 0x67, 0xd2, 0x3e, 0x05, 0x30, 0x2e, 0x31, 0x2e, 0x30, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x33, -} - -var ( - file_diag_diag_proto_rawDescOnce sync.Once - file_diag_diag_proto_rawDescData = file_diag_diag_proto_rawDesc -) +func init() { + proto.RegisterEnum("gnoi.diag.PrbsPolynomial", PrbsPolynomial_name, PrbsPolynomial_value) + proto.RegisterEnum("gnoi.diag.BertStatus", BertStatus_name, BertStatus_value) + proto.RegisterType((*StartBERTRequest)(nil), "gnoi.diag.StartBERTRequest") + proto.RegisterType((*StartBERTRequest_PerPortRequest)(nil), "gnoi.diag.StartBERTRequest.PerPortRequest") + proto.RegisterType((*StartBERTResponse)(nil), "gnoi.diag.StartBERTResponse") + proto.RegisterType((*StartBERTResponse_PerPortResponse)(nil), "gnoi.diag.StartBERTResponse.PerPortResponse") + proto.RegisterType((*StopBERTRequest)(nil), "gnoi.diag.StopBERTRequest") + proto.RegisterType((*StopBERTRequest_PerPortRequest)(nil), "gnoi.diag.StopBERTRequest.PerPortRequest") + proto.RegisterType((*StopBERTResponse)(nil), "gnoi.diag.StopBERTResponse") + proto.RegisterType((*StopBERTResponse_PerPortResponse)(nil), "gnoi.diag.StopBERTResponse.PerPortResponse") + proto.RegisterType((*GetBERTResultRequest)(nil), "gnoi.diag.GetBERTResultRequest") + proto.RegisterType((*GetBERTResultRequest_PerPortRequest)(nil), "gnoi.diag.GetBERTResultRequest.PerPortRequest") + proto.RegisterType((*GetBERTResultResponse)(nil), "gnoi.diag.GetBERTResultResponse") + proto.RegisterType((*GetBERTResultResponse_PerPortResponse)(nil), "gnoi.diag.GetBERTResultResponse.PerPortResponse") +} + +func init() { proto.RegisterFile("diag/diag.proto", fileDescriptor_c2372dae051d1d7a) } + +var fileDescriptor_c2372dae051d1d7a = []byte{ + // 1050 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x56, 0x6f, 0x6f, 0xdb, 0x44, + 0x18, 0xaf, 0x93, 0xb4, 0x6b, 0xae, 0x6b, 0xe3, 0xdd, 0x68, 0x97, 0xa6, 0xb0, 0xa5, 0xd9, 0x60, + 0xa1, 0x1b, 0x69, 0x9b, 0x0a, 0xa1, 0xbd, 0x41, 0x38, 0x8d, 0xdb, 0x5a, 0xcd, 0x6c, 0xeb, 0xec, + 0x30, 0xba, 0x17, 0x9c, 0x9c, 0xf4, 0x9a, 0x5a, 0x73, 0x7c, 0xe6, 0xee, 0xf2, 0x62, 0x9f, 0x01, + 0xf1, 0x02, 0xf1, 0x61, 0xf8, 0x1a, 0x08, 0x24, 0xbe, 0x05, 0x5f, 0x01, 0xa1, 0xb3, 0x93, 0xc6, + 0x89, 0x92, 0x96, 0x16, 0x84, 0x78, 0x63, 0xe9, 0x9e, 0xdf, 0xef, 0xf1, 0xf3, 0xef, 0x77, 0x7f, + 0x40, 0xe1, 0xdc, 0xf7, 0x7a, 0xbb, 0xf2, 0x53, 0x8b, 0x18, 0x15, 0x14, 0xe6, 0x7b, 0x21, 0xf5, + 0x6b, 0xd2, 0x50, 0x7a, 0xd9, 0xf3, 0xc5, 0xe5, 0xa0, 0x53, 0xeb, 0xd2, 0xfe, 0x2e, 0x8d, 0x48, + 0xd8, 0xa5, 0xe1, 0x85, 0xdf, 0xdb, 0x95, 0x84, 0x5d, 0xf1, 0x3e, 0x22, 0x3c, 0xf9, 0x26, 0x8e, + 0x95, 0x5f, 0x32, 0x40, 0x75, 0x84, 0xc7, 0x44, 0x43, 0x47, 0x2e, 0x22, 0xdf, 0x0d, 0x08, 0x17, + 0x70, 0x07, 0x3c, 0xe8, 0x10, 0x26, 0x30, 0x8d, 0x08, 0xf3, 0x84, 0x4f, 0x43, 0xec, 0x9f, 0x17, + 0x95, 0xb2, 0x52, 0xcd, 0xa3, 0x82, 0x04, 0xac, 0x91, 0xdd, 0x38, 0x87, 0x5f, 0x83, 0x07, 0x11, + 0x61, 0x38, 0xa2, 0x4c, 0x60, 0x96, 0xf8, 0xf3, 0x62, 0xa6, 0x9c, 0xad, 0xae, 0xd4, 0x77, 0x6a, + 0x57, 0x59, 0xd5, 0xa6, 0x63, 0xd4, 0x6c, 0xc2, 0x6c, 0xca, 0xc4, 0x70, 0x89, 0x0a, 0xd1, 0xc4, + 0x9a, 0x97, 0x7e, 0x56, 0xc0, 0xda, 0x24, 0x07, 0xd6, 0x40, 0xde, 0x0f, 0x05, 0x61, 0x17, 0x5e, + 0x97, 0xc4, 0xe9, 0xac, 0xd4, 0xd5, 0x24, 0x44, 0x52, 0x91, 0xed, 0x89, 0x4b, 0x34, 0xa6, 0xc0, + 0x06, 0x28, 0x44, 0xac, 0xc3, 0x71, 0x44, 0x83, 0xf7, 0x21, 0xed, 0xfb, 0x5e, 0x50, 0xcc, 0x94, + 0x95, 0xea, 0x5a, 0x7d, 0x33, 0x95, 0x98, 0xcd, 0x3a, 0xdc, 0xbe, 0x22, 0xa0, 0xb5, 0x68, 0x62, + 0x0d, 0xf7, 0xc1, 0xba, 0x20, 0x5c, 0xe0, 0xf3, 0xc1, 0xa8, 0x13, 0x21, 0xe6, 0xa4, 0xcb, 0x8b, + 0xd9, 0xb2, 0x52, 0x5d, 0x45, 0x50, 0x82, 0xcd, 0x21, 0x66, 0x84, 0x0e, 0xe9, 0xf2, 0xca, 0x0f, + 0x19, 0xf0, 0x20, 0x55, 0x2e, 0x8f, 0x68, 0xc8, 0xc9, 0xad, 0x7a, 0xfa, 0x16, 0xc0, 0x54, 0x4f, + 0x93,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, 0x02, 0x2a, 0xd7, 0x13, 0x5b, 0x96, 0x79, 0xac, 0x2e, 0x4f, + 0xf3, 0x2c, 0x5b, 0x1f, 0x72, 0x8c, 0x66, 0x1c, 0xff, 0xc8, 0x6a, 0x9b, 0x4d, 0x35, 0x0f, 0x9f, + 0x82, 0x27, 0x73, 0x79, 0x86, 0x89, 0xdb, 0x8e, 0xae, 0x82, 0xe9, 0x0e, 0xdb, 0xba, 0x8e, 0x70, + 0xcb, 0x3a, 0x3c, 0xc5, 0x47, 0x9a, 0xd1, 0x6a, 0x23, 0x5d, 0x5d, 0x81, 0x8f, 0x41, 0x69, 0x36, + 0xa5, 0x65, 0x39, 0xae, 0x7a, 0x7f, 0x1a, 0x37, 0x4c, 0x57, 0x47, 0xa6, 0xd6, 0x1a, 0xb6, 0x7e, + 0xb5, 0xfe, 0x87, 0x02, 0x72, 0x4d, 0xdf, 0xeb, 0xc1, 0x13, 0x90, 0xbf, 0x7a, 0x13, 0xc1, 0xad, + 0x6b, 0x9e, 0x9f, 0xa5, 0x0f, 0xaf, 0x7b, 0x46, 0x55, 0x16, 0xa0, 0x0e, 0x96, 0x47, 0xb7, 0x2e, + 0x2c, 0xcd, 0x7f, 0x65, 0x94, 0xb6, 0xae, 0xb9, 0xa6, 0x2b, 0x0b, 0xd0, 0x05, 0xab, 0x13, 0xe7, + 0x37, 0x7c, 0x72, 0xc3, 0x2d, 0x56, 0x2a, 0xdf, 0x74, 0xf4, 0x57, 0x16, 0x1a, 0xcb, 0xbf, 0x7e, + 0xb9, 0xb8, 0x57, 0xdb, 0xaf, 0xed, 0x75, 0x96, 0xe2, 0x57, 0xfc, 0xc1, 0x5f, 0x01, 0x00, 0x00, + 0xff, 0xff, 0x01, 0x94, 0x0f, 0x66, 0x11, 0x0c, 0x00, 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion4 + +// DiagClient is the client API for Diag service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type DiagClient interface { + // Starts BERT operation on a set of ports. Each BERT operation is uniquely + // identified by an ID, which is given by the caller. The caller can then + // use this ID (as well as the list of the ports) to stop the BERT operation + // and/or get the BERT results. This RPC is expected to return an error status + // in the following situations: + // - When BERT operation is supported on none of the ports specified by + // the request. + // - When BERT is already in progress on any port specified by the request. + // - In case of any low-level HW/SW internal errors. + // The RPC returns an OK status of none of these situations is encountered. + StartBERT(ctx context.Context, in *StartBERTRequest, opts ...grpc.CallOption) (*StartBERTResponse, error) + // Stops an already in-progress BERT operation on a set of ports. The caller + // uses the BERT operation ID it previously used when starting the operation + // to stop it. The RPC is expected to return an error status in the following + // situations: + // - When there is at least one BERT operation in progress on a port which + // cannot be stopped in the middle of the operation (either due to lack of + // support or internal problems). + // - When no BERT operation, which matches the given BERT operation ID, is in + // progress or completed on any of the ports specified by the request. + // - When the BERT operation ID does not match the in progress or completed + // BERT operation on any of the ports specified by the request. + // The RPC returns an OK status of none of these situations is encountered. + // Note that a BERT operation is considered completed if the device has a + // record/history of it. Also note that it is OK to receive a stop request for + // a port which has completed BERT, as long as the recorded BERT operation ID + // matches the one specified by the request. + StopBERT(ctx context.Context, in *StopBERTRequest, opts ...grpc.CallOption) (*StopBERTResponse, error) + // Gets BERT results during the BERT operation or after it completes. The + // caller uses the BERT operation ID it previously used when starting the + // operation to query it. The device is expected to keep the results for + // last N BERT operations for some amount of time, as specified by the + // product requirement. This RPC is expected to return error status in the + // following situations: + // - When no BERT operation, which matches the given BERT operation ID, is in + // progress or completed on any of the ports specified by the request. + // - When the BERT operation ID does not match the in progress or completed + // BERT operation on any of the ports specified by the request. + // The RPC returns an OK status of none of these situations is encountered. + // Note that a BERT operation is considered completed if device has a + // record of it. + GetBERTResult(ctx context.Context, in *GetBERTResultRequest, opts ...grpc.CallOption) (*GetBERTResultResponse, error) +} + +type diagClient struct { + cc *grpc.ClientConn +} + +func NewDiagClient(cc *grpc.ClientConn) DiagClient { + return &diagClient{cc} +} + +func (c *diagClient) StartBERT(ctx context.Context, in *StartBERTRequest, opts ...grpc.CallOption) (*StartBERTResponse, error) { + out := new(StartBERTResponse) + err := c.cc.Invoke(ctx, "/gnoi.diag.Diag/StartBERT", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} -func file_diag_diag_proto_rawDescGZIP() []byte { - file_diag_diag_proto_rawDescOnce.Do(func() { - file_diag_diag_proto_rawDescData = protoimpl.X.CompressGZIP(file_diag_diag_proto_rawDescData) - }) - return file_diag_diag_proto_rawDescData -} - -var file_diag_diag_proto_enumTypes = make([]protoimpl.EnumInfo, 2) -var file_diag_diag_proto_msgTypes = make([]protoimpl.MessageInfo, 12) -var file_diag_diag_proto_goTypes = []interface{}{ - (PrbsPolynomial)(0), // 0: gnoi.diag.PrbsPolynomial - (BertStatus)(0), // 1: gnoi.diag.BertStatus - (*StartBERTRequest)(nil), // 2: gnoi.diag.StartBERTRequest - (*StartBERTResponse)(nil), // 3: gnoi.diag.StartBERTResponse - (*StopBERTRequest)(nil), // 4: gnoi.diag.StopBERTRequest - (*StopBERTResponse)(nil), // 5: gnoi.diag.StopBERTResponse - (*GetBERTResultRequest)(nil), // 6: gnoi.diag.GetBERTResultRequest - (*GetBERTResultResponse)(nil), // 7: gnoi.diag.GetBERTResultResponse - (*StartBERTRequest_PerPortRequest)(nil), // 8: gnoi.diag.StartBERTRequest.PerPortRequest - (*StartBERTResponse_PerPortResponse)(nil), // 9: gnoi.diag.StartBERTResponse.PerPortResponse - (*StopBERTRequest_PerPortRequest)(nil), // 10: gnoi.diag.StopBERTRequest.PerPortRequest - (*StopBERTResponse_PerPortResponse)(nil), // 11: gnoi.diag.StopBERTResponse.PerPortResponse - (*GetBERTResultRequest_PerPortRequest)(nil), // 12: gnoi.diag.GetBERTResultRequest.PerPortRequest - (*GetBERTResultResponse_PerPortResponse)(nil), // 13: gnoi.diag.GetBERTResultResponse.PerPortResponse - (*types.Path)(nil), // 14: gnoi.types.Path -} -var file_diag_diag_proto_depIdxs = []int32{ - 8, // 0: gnoi.diag.StartBERTRequest.per_port_requests:type_name -> gnoi.diag.StartBERTRequest.PerPortRequest - 9, // 1: gnoi.diag.StartBERTResponse.per_port_responses:type_name -> gnoi.diag.StartBERTResponse.PerPortResponse - 10, // 2: gnoi.diag.StopBERTRequest.per_port_requests:type_name -> gnoi.diag.StopBERTRequest.PerPortRequest - 11, // 3: gnoi.diag.StopBERTResponse.per_port_responses:type_name -> gnoi.diag.StopBERTResponse.PerPortResponse - 12, // 4: gnoi.diag.GetBERTResultRequest.per_port_requests:type_name -> gnoi.diag.GetBERTResultRequest.PerPortRequest - 13, // 5: gnoi.diag.GetBERTResultResponse.per_port_responses:type_name -> gnoi.diag.GetBERTResultResponse.PerPortResponse - 14, // 6: gnoi.diag.StartBERTRequest.PerPortRequest.interface:type_name -> gnoi.types.Path - 0, // 7: gnoi.diag.StartBERTRequest.PerPortRequest.prbs_polynomial:type_name -> gnoi.diag.PrbsPolynomial - 14, // 8: gnoi.diag.StartBERTResponse.PerPortResponse.interface:type_name -> gnoi.types.Path - 1, // 9: gnoi.diag.StartBERTResponse.PerPortResponse.status:type_name -> gnoi.diag.BertStatus - 14, // 10: gnoi.diag.StopBERTRequest.PerPortRequest.interface:type_name -> gnoi.types.Path - 14, // 11: gnoi.diag.StopBERTResponse.PerPortResponse.interface:type_name -> gnoi.types.Path - 1, // 12: gnoi.diag.StopBERTResponse.PerPortResponse.status:type_name -> gnoi.diag.BertStatus - 14, // 13: gnoi.diag.GetBERTResultRequest.PerPortRequest.interface:type_name -> gnoi.types.Path - 14, // 14: gnoi.diag.GetBERTResultResponse.PerPortResponse.interface:type_name -> gnoi.types.Path - 1, // 15: gnoi.diag.GetBERTResultResponse.PerPortResponse.status:type_name -> gnoi.diag.BertStatus - 0, // 16: gnoi.diag.GetBERTResultResponse.PerPortResponse.prbs_polynomial:type_name -> gnoi.diag.PrbsPolynomial - 2, // 17: gnoi.diag.Diag.StartBERT:input_type -> gnoi.diag.StartBERTRequest - 4, // 18: gnoi.diag.Diag.StopBERT:input_type -> gnoi.diag.StopBERTRequest - 6, // 19: gnoi.diag.Diag.GetBERTResult:input_type -> gnoi.diag.GetBERTResultRequest - 3, // 20: gnoi.diag.Diag.StartBERT:output_type -> gnoi.diag.StartBERTResponse - 5, // 21: gnoi.diag.Diag.StopBERT:output_type -> gnoi.diag.StopBERTResponse - 7, // 22: gnoi.diag.Diag.GetBERTResult:output_type -> gnoi.diag.GetBERTResultResponse - 20, // [20:23] is the sub-list for method output_type - 17, // [17:20] is the sub-list for method input_type - 17, // [17:17] is the sub-list for extension type_name - 17, // [17:17] is the sub-list for extension extendee - 0, // [0:17] is the sub-list for field type_name -} - -func init() { file_diag_diag_proto_init() } -func file_diag_diag_proto_init() { - if File_diag_diag_proto != nil { - return +func (c *diagClient) StopBERT(ctx context.Context, in *StopBERTRequest, opts ...grpc.CallOption) (*StopBERTResponse, error) { + out := new(StopBERTResponse) + err := c.cc.Invoke(ctx, "/gnoi.diag.Diag/StopBERT", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *diagClient) GetBERTResult(ctx context.Context, in *GetBERTResultRequest, opts ...grpc.CallOption) (*GetBERTResultResponse, error) { + out := new(GetBERTResultResponse) + err := c.cc.Invoke(ctx, "/gnoi.diag.Diag/GetBERTResult", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// DiagServer is the server API for Diag service. +type DiagServer interface { + // Starts BERT operation on a set of ports. Each BERT operation is uniquely + // identified by an ID, which is given by the caller. The caller can then + // use this ID (as well as the list of the ports) to stop the BERT operation + // and/or get the BERT results. This RPC is expected to return an error status + // in the following situations: + // - When BERT operation is supported on none of the ports specified by + // the request. + // - When BERT is already in progress on any port specified by the request. + // - In case of any low-level HW/SW internal errors. + // The RPC returns an OK status of none of these situations is encountered. + StartBERT(context.Context, *StartBERTRequest) (*StartBERTResponse, error) + // Stops an already in-progress BERT operation on a set of ports. The caller + // uses the BERT operation ID it previously used when starting the operation + // to stop it. The RPC is expected to return an error status in the following + // situations: + // - When there is at least one BERT operation in progress on a port which + // cannot be stopped in the middle of the operation (either due to lack of + // support or internal problems). + // - When no BERT operation, which matches the given BERT operation ID, is in + // progress or completed on any of the ports specified by the request. + // - When the BERT operation ID does not match the in progress or completed + // BERT operation on any of the ports specified by the request. + // The RPC returns an OK status of none of these situations is encountered. + // Note that a BERT operation is considered completed if the device has a + // record/history of it. Also note that it is OK to receive a stop request for + // a port which has completed BERT, as long as the recorded BERT operation ID + // matches the one specified by the request. + StopBERT(context.Context, *StopBERTRequest) (*StopBERTResponse, error) + // Gets BERT results during the BERT operation or after it completes. The + // caller uses the BERT operation ID it previously used when starting the + // operation to query it. The device is expected to keep the results for + // last N BERT operations for some amount of time, as specified by the + // product requirement. This RPC is expected to return error status in the + // following situations: + // - When no BERT operation, which matches the given BERT operation ID, is in + // progress or completed on any of the ports specified by the request. + // - When the BERT operation ID does not match the in progress or completed + // BERT operation on any of the ports specified by the request. + // The RPC returns an OK status of none of these situations is encountered. + // Note that a BERT operation is considered completed if device has a + // record of it. + GetBERTResult(context.Context, *GetBERTResultRequest) (*GetBERTResultResponse, error) +} + +func RegisterDiagServer(s *grpc.Server, srv DiagServer) { + s.RegisterService(&_Diag_serviceDesc, srv) +} + +func _Diag_StartBERT_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(StartBERTRequest) + if err := dec(in); err != nil { + return nil, err } - if !protoimpl.UnsafeEnabled { - file_diag_diag_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StartBERTRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_diag_diag_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StartBERTResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_diag_diag_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StopBERTRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_diag_diag_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StopBERTResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_diag_diag_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetBERTResultRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_diag_diag_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetBERTResultResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_diag_diag_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StartBERTRequest_PerPortRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_diag_diag_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StartBERTResponse_PerPortResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_diag_diag_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StopBERTRequest_PerPortRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_diag_diag_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StopBERTResponse_PerPortResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_diag_diag_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetBERTResultRequest_PerPortRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_diag_diag_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetBERTResultResponse_PerPortResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } + if interceptor == nil { + return srv.(DiagServer).StartBERT(ctx, in) } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_diag_diag_proto_rawDesc, - NumEnums: 2, - NumMessages: 12, - NumExtensions: 0, - NumServices: 1, + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gnoi.diag.Diag/StartBERT", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DiagServer).StartBERT(ctx, req.(*StartBERTRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Diag_StopBERT_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(StopBERTRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DiagServer).StopBERT(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gnoi.diag.Diag/StopBERT", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DiagServer).StopBERT(ctx, req.(*StopBERTRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Diag_GetBERTResult_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetBERTResultRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DiagServer).GetBERTResult(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gnoi.diag.Diag/GetBERTResult", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DiagServer).GetBERTResult(ctx, req.(*GetBERTResultRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _Diag_serviceDesc = grpc.ServiceDesc{ + ServiceName: "gnoi.diag.Diag", + HandlerType: (*DiagServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "StartBERT", + Handler: _Diag_StartBERT_Handler, + }, + { + MethodName: "StopBERT", + Handler: _Diag_StopBERT_Handler, + }, + { + MethodName: "GetBERTResult", + Handler: _Diag_GetBERTResult_Handler, }, - GoTypes: file_diag_diag_proto_goTypes, - DependencyIndexes: file_diag_diag_proto_depIdxs, - EnumInfos: file_diag_diag_proto_enumTypes, - MessageInfos: file_diag_diag_proto_msgTypes, - }.Build() - File_diag_diag_proto = out.File - file_diag_diag_proto_rawDesc = nil - file_diag_diag_proto_goTypes = nil - file_diag_diag_proto_depIdxs = nil + }, + Streams: []grpc.StreamDesc{}, + Metadata: "diag/diag.proto", } diff --git a/diag/diag.proto b/diag/diag.proto index 5ca592fb..84592d6a 100644 --- a/diag/diag.proto +++ b/diag/diag.proto @@ -22,8 +22,6 @@ package gnoi.diag; import "github.com/openconfig/gnoi/types/types.proto"; -option go_package = "github.com/openconfig/gnoi/diag"; - option (types.gnoi_version) = "0.1.0"; // The Diag service exports to main set of RPCs: diff --git a/diag/diag_grpc.pb.go b/diag/diag_grpc.pb.go deleted file mode 100644 index 50bffe38..00000000 --- a/diag/diag_grpc.pb.go +++ /dev/null @@ -1,251 +0,0 @@ -// Code generated by protoc-gen-go-grpc. DO NOT EDIT. - -package diag - -import ( - context "context" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" -) - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 - -// DiagClient is the client API for Diag service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. -type DiagClient interface { - // Starts BERT operation on a set of ports. Each BERT operation is uniquely - // identified by an ID, which is given by the caller. The caller can then - // use this ID (as well as the list of the ports) to stop the BERT operation - // and/or get the BERT results. This RPC is expected to return an error status - // in the following situations: - // - When BERT operation is supported on none of the ports specified by - // the request. - // - When BERT is already in progress on any port specified by the request. - // - In case of any low-level HW/SW internal errors. - // The RPC returns an OK status of none of these situations is encountered. - StartBERT(ctx context.Context, in *StartBERTRequest, opts ...grpc.CallOption) (*StartBERTResponse, error) - // Stops an already in-progress BERT operation on a set of ports. The caller - // uses the BERT operation ID it previously used when starting the operation - // to stop it. The RPC is expected to return an error status in the following - // situations: - // - When there is at least one BERT operation in progress on a port which - // cannot be stopped in the middle of the operation (either due to lack of - // support or internal problems). - // - When no BERT operation, which matches the given BERT operation ID, is in - // progress or completed on any of the ports specified by the request. - // - When the BERT operation ID does not match the in progress or completed - // BERT operation on any of the ports specified by the request. - // The RPC returns an OK status of none of these situations is encountered. - // Note that a BERT operation is considered completed if the device has a - // record/history of it. Also note that it is OK to receive a stop request for - // a port which has completed BERT, as long as the recorded BERT operation ID - // matches the one specified by the request. - StopBERT(ctx context.Context, in *StopBERTRequest, opts ...grpc.CallOption) (*StopBERTResponse, error) - // Gets BERT results during the BERT operation or after it completes. The - // caller uses the BERT operation ID it previously used when starting the - // operation to query it. The device is expected to keep the results for - // last N BERT operations for some amount of time, as specified by the - // product requirement. This RPC is expected to return error status in the - // following situations: - // - When no BERT operation, which matches the given BERT operation ID, is in - // progress or completed on any of the ports specified by the request. - // - When the BERT operation ID does not match the in progress or completed - // BERT operation on any of the ports specified by the request. - // The RPC returns an OK status of none of these situations is encountered. - // Note that a BERT operation is considered completed if device has a - // record of it. - GetBERTResult(ctx context.Context, in *GetBERTResultRequest, opts ...grpc.CallOption) (*GetBERTResultResponse, error) -} - -type diagClient struct { - cc grpc.ClientConnInterface -} - -func NewDiagClient(cc grpc.ClientConnInterface) DiagClient { - return &diagClient{cc} -} - -func (c *diagClient) StartBERT(ctx context.Context, in *StartBERTRequest, opts ...grpc.CallOption) (*StartBERTResponse, error) { - out := new(StartBERTResponse) - err := c.cc.Invoke(ctx, "/gnoi.diag.Diag/StartBERT", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *diagClient) StopBERT(ctx context.Context, in *StopBERTRequest, opts ...grpc.CallOption) (*StopBERTResponse, error) { - out := new(StopBERTResponse) - err := c.cc.Invoke(ctx, "/gnoi.diag.Diag/StopBERT", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *diagClient) GetBERTResult(ctx context.Context, in *GetBERTResultRequest, opts ...grpc.CallOption) (*GetBERTResultResponse, error) { - out := new(GetBERTResultResponse) - err := c.cc.Invoke(ctx, "/gnoi.diag.Diag/GetBERTResult", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// DiagServer is the server API for Diag service. -// All implementations must embed UnimplementedDiagServer -// for forward compatibility -type DiagServer interface { - // Starts BERT operation on a set of ports. Each BERT operation is uniquely - // identified by an ID, which is given by the caller. The caller can then - // use this ID (as well as the list of the ports) to stop the BERT operation - // and/or get the BERT results. This RPC is expected to return an error status - // in the following situations: - // - When BERT operation is supported on none of the ports specified by - // the request. - // - When BERT is already in progress on any port specified by the request. - // - In case of any low-level HW/SW internal errors. - // The RPC returns an OK status of none of these situations is encountered. - StartBERT(context.Context, *StartBERTRequest) (*StartBERTResponse, error) - // Stops an already in-progress BERT operation on a set of ports. The caller - // uses the BERT operation ID it previously used when starting the operation - // to stop it. The RPC is expected to return an error status in the following - // situations: - // - When there is at least one BERT operation in progress on a port which - // cannot be stopped in the middle of the operation (either due to lack of - // support or internal problems). - // - When no BERT operation, which matches the given BERT operation ID, is in - // progress or completed on any of the ports specified by the request. - // - When the BERT operation ID does not match the in progress or completed - // BERT operation on any of the ports specified by the request. - // The RPC returns an OK status of none of these situations is encountered. - // Note that a BERT operation is considered completed if the device has a - // record/history of it. Also note that it is OK to receive a stop request for - // a port which has completed BERT, as long as the recorded BERT operation ID - // matches the one specified by the request. - StopBERT(context.Context, *StopBERTRequest) (*StopBERTResponse, error) - // Gets BERT results during the BERT operation or after it completes. The - // caller uses the BERT operation ID it previously used when starting the - // operation to query it. The device is expected to keep the results for - // last N BERT operations for some amount of time, as specified by the - // product requirement. This RPC is expected to return error status in the - // following situations: - // - When no BERT operation, which matches the given BERT operation ID, is in - // progress or completed on any of the ports specified by the request. - // - When the BERT operation ID does not match the in progress or completed - // BERT operation on any of the ports specified by the request. - // The RPC returns an OK status of none of these situations is encountered. - // Note that a BERT operation is considered completed if device has a - // record of it. - GetBERTResult(context.Context, *GetBERTResultRequest) (*GetBERTResultResponse, error) - mustEmbedUnimplementedDiagServer() -} - -// UnimplementedDiagServer must be embedded to have forward compatible implementations. -type UnimplementedDiagServer struct { -} - -func (UnimplementedDiagServer) StartBERT(context.Context, *StartBERTRequest) (*StartBERTResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method StartBERT not implemented") -} -func (UnimplementedDiagServer) StopBERT(context.Context, *StopBERTRequest) (*StopBERTResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method StopBERT not implemented") -} -func (UnimplementedDiagServer) GetBERTResult(context.Context, *GetBERTResultRequest) (*GetBERTResultResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetBERTResult not implemented") -} -func (UnimplementedDiagServer) mustEmbedUnimplementedDiagServer() {} - -// UnsafeDiagServer may be embedded to opt out of forward compatibility for this service. -// Use of this interface is not recommended, as added methods to DiagServer will -// result in compilation errors. -type UnsafeDiagServer interface { - mustEmbedUnimplementedDiagServer() -} - -func RegisterDiagServer(s grpc.ServiceRegistrar, srv DiagServer) { - s.RegisterService(&Diag_ServiceDesc, srv) -} - -func _Diag_StartBERT_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(StartBERTRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(DiagServer).StartBERT(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.diag.Diag/StartBERT", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(DiagServer).StartBERT(ctx, req.(*StartBERTRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Diag_StopBERT_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(StopBERTRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(DiagServer).StopBERT(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.diag.Diag/StopBERT", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(DiagServer).StopBERT(ctx, req.(*StopBERTRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Diag_GetBERTResult_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetBERTResultRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(DiagServer).GetBERTResult(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.diag.Diag/GetBERTResult", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(DiagServer).GetBERTResult(ctx, req.(*GetBERTResultRequest)) - } - return interceptor(ctx, in, info, handler) -} - -// Diag_ServiceDesc is the grpc.ServiceDesc for Diag service. -// It's only intended for direct use with grpc.RegisterService, -// and not to be introspected or modified (even as a copy) -var Diag_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "gnoi.diag.Diag", - HandlerType: (*DiagServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "StartBERT", - Handler: _Diag_StartBERT_Handler, - }, - { - MethodName: "StopBERT", - Handler: _Diag_StopBERT_Handler, - }, - { - MethodName: "GetBERTResult", - Handler: _Diag_GetBERTResult_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "diag/diag.proto", -} diff --git a/factory_reset/reset.proto b/factory_reset/reset.proto index 39e98f87..19feff67 100644 --- a/factory_reset/reset.proto +++ b/factory_reset/reset.proto @@ -5,8 +5,6 @@ package gnoi.factory_reset; import "github.com/openconfig/gnoi/types/types.proto"; -option go_package = "github.com/openconfig/gnoi/factory_reset"; - option (types.gnoi_version) = "0.1.0"; // The FactoryReset service exported by Targets. diff --git a/file/file.pb.go b/file/file.pb.go index 41e47462..c38247cf 100644 --- a/file/file.pb.go +++ b/file/file.pb.go @@ -1,42 +1,28 @@ -// -// Copyright 2017 Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// - // Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.26.0 -// protoc v3.15.7 // source: file/file.proto -package file +package gnoi_file import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" common "github.com/openconfig/gnoi/common" types "github.com/openconfig/gnoi/types" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" + context "golang.org/x/net/context" + grpc "google.golang.org/grpc" + math "math" ) -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) +// 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 // A PutRequest is used to send data to be written on a file on the target. // @@ -52,49 +38,63 @@ const ( // // The final message of the RPC contains the hash of the file contents. type PutRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to Request: + // Types that are valid to be assigned to Request: // *PutRequest_Open // *PutRequest_Contents // *PutRequest_Hash - Request isPutRequest_Request `protobuf_oneof:"request"` + Request isPutRequest_Request `protobuf_oneof:"request"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *PutRequest) Reset() { - *x = PutRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_file_file_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *PutRequest) Reset() { *m = PutRequest{} } +func (m *PutRequest) String() string { return proto.CompactTextString(m) } +func (*PutRequest) ProtoMessage() {} +func (*PutRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_ad806f8986a0c3f6, []int{0} } -func (x *PutRequest) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *PutRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PutRequest.Unmarshal(m, b) +} +func (m *PutRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PutRequest.Marshal(b, m, deterministic) +} +func (m *PutRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_PutRequest.Merge(m, src) +} +func (m *PutRequest) XXX_Size() int { + return xxx_messageInfo_PutRequest.Size(m) +} +func (m *PutRequest) XXX_DiscardUnknown() { + xxx_messageInfo_PutRequest.DiscardUnknown(m) } -func (*PutRequest) ProtoMessage() {} +var xxx_messageInfo_PutRequest proto.InternalMessageInfo -func (x *PutRequest) ProtoReflect() protoreflect.Message { - mi := &file_file_file_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +type isPutRequest_Request interface { + isPutRequest_Request() } -// Deprecated: Use PutRequest.ProtoReflect.Descriptor instead. -func (*PutRequest) Descriptor() ([]byte, []int) { - return file_file_file_proto_rawDescGZIP(), []int{0} +type PutRequest_Open struct { + Open *PutRequest_Details `protobuf:"bytes,1,opt,name=open,proto3,oneof"` +} + +type PutRequest_Contents struct { + Contents []byte `protobuf:"bytes,2,opt,name=contents,proto3,oneof"` +} + +type PutRequest_Hash struct { + Hash *types.HashType `protobuf:"bytes,3,opt,name=hash,proto3,oneof"` } +func (*PutRequest_Open) isPutRequest_Request() {} + +func (*PutRequest_Contents) isPutRequest_Request() {} + +func (*PutRequest_Hash) isPutRequest_Request() {} + func (m *PutRequest) GetRequest() isPutRequest_Request { if m != nil { return m.Request @@ -102,133 +102,236 @@ func (m *PutRequest) GetRequest() isPutRequest_Request { return nil } -func (x *PutRequest) GetOpen() *PutRequest_Details { - if x, ok := x.GetRequest().(*PutRequest_Open); ok { +func (m *PutRequest) GetOpen() *PutRequest_Details { + if x, ok := m.GetRequest().(*PutRequest_Open); ok { return x.Open } return nil } -func (x *PutRequest) GetContents() []byte { - if x, ok := x.GetRequest().(*PutRequest_Contents); ok { +func (m *PutRequest) GetContents() []byte { + if x, ok := m.GetRequest().(*PutRequest_Contents); ok { return x.Contents } return nil } -func (x *PutRequest) GetHash() *types.HashType { - if x, ok := x.GetRequest().(*PutRequest_Hash); ok { +func (m *PutRequest) GetHash() *types.HashType { + if x, ok := m.GetRequest().(*PutRequest_Hash); ok { return x.Hash } return nil } -type isPutRequest_Request interface { - isPutRequest_Request() +// XXX_OneofFuncs is for the internal use of the proto package. +func (*PutRequest) 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 _PutRequest_OneofMarshaler, _PutRequest_OneofUnmarshaler, _PutRequest_OneofSizer, []interface{}{ + (*PutRequest_Open)(nil), + (*PutRequest_Contents)(nil), + (*PutRequest_Hash)(nil), + } } -type PutRequest_Open struct { - Open *PutRequest_Details `protobuf:"bytes,1,opt,name=open,proto3,oneof"` +func _PutRequest_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*PutRequest) + // request + switch x := m.Request.(type) { + case *PutRequest_Open: + b.EncodeVarint(1<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Open); err != nil { + return err + } + case *PutRequest_Contents: + b.EncodeVarint(2<<3 | proto.WireBytes) + b.EncodeRawBytes(x.Contents) + case *PutRequest_Hash: + b.EncodeVarint(3<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Hash); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("PutRequest.Request has unexpected type %T", x) + } + return nil } -type PutRequest_Contents struct { - Contents []byte `protobuf:"bytes,2,opt,name=contents,proto3,oneof"` +func _PutRequest_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*PutRequest) + switch tag { + case 1: // request.open + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(PutRequest_Details) + err := b.DecodeMessage(msg) + m.Request = &PutRequest_Open{msg} + return true, err + case 2: // request.contents + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + x, err := b.DecodeRawBytes(true) + m.Request = &PutRequest_Contents{x} + return true, err + case 3: // request.hash + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(types.HashType) + err := b.DecodeMessage(msg) + m.Request = &PutRequest_Hash{msg} + return true, err + default: + return false, nil + } } -type PutRequest_Hash struct { - Hash *types.HashType `protobuf:"bytes,3,opt,name=hash,proto3,oneof"` // hash of the file. +func _PutRequest_OneofSizer(msg proto.Message) (n int) { + m := msg.(*PutRequest) + // request + switch x := m.Request.(type) { + case *PutRequest_Open: + s := proto.Size(x.Open) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *PutRequest_Contents: + n += 1 // tag and wire + n += proto.SizeVarint(uint64(len(x.Contents))) + n += len(x.Contents) + case *PutRequest_Hash: + s := proto.Size(x.Hash) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n } -func (*PutRequest_Open) isPutRequest_Request() {} - -func (*PutRequest_Contents) isPutRequest_Request() {} +type PutRequest_Details struct { + RemoteFile string `protobuf:"bytes,1,opt,name=remote_file,json=remoteFile,proto3" json:"remote_file,omitempty"` + // Permissions are represented as the octal format of standard UNIX + // file permissions. + // ex. 775: user read/write/execute, group read/write/execute, + // global read/execute. + Permissions uint32 `protobuf:"varint,2,opt,name=permissions,proto3" json:"permissions,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} -func (*PutRequest_Hash) isPutRequest_Request() {} +func (m *PutRequest_Details) Reset() { *m = PutRequest_Details{} } +func (m *PutRequest_Details) String() string { return proto.CompactTextString(m) } +func (*PutRequest_Details) ProtoMessage() {} +func (*PutRequest_Details) Descriptor() ([]byte, []int) { + return fileDescriptor_ad806f8986a0c3f6, []int{0, 0} +} -type PutResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields +func (m *PutRequest_Details) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PutRequest_Details.Unmarshal(m, b) +} +func (m *PutRequest_Details) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PutRequest_Details.Marshal(b, m, deterministic) +} +func (m *PutRequest_Details) XXX_Merge(src proto.Message) { + xxx_messageInfo_PutRequest_Details.Merge(m, src) +} +func (m *PutRequest_Details) XXX_Size() int { + return xxx_messageInfo_PutRequest_Details.Size(m) +} +func (m *PutRequest_Details) XXX_DiscardUnknown() { + xxx_messageInfo_PutRequest_Details.DiscardUnknown(m) } -func (x *PutResponse) Reset() { - *x = PutResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_file_file_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +var xxx_messageInfo_PutRequest_Details proto.InternalMessageInfo + +func (m *PutRequest_Details) GetRemoteFile() string { + if m != nil { + return m.RemoteFile } + return "" } -func (x *PutResponse) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *PutRequest_Details) GetPermissions() uint32 { + if m != nil { + return m.Permissions + } + return 0 } -func (*PutResponse) ProtoMessage() {} - -func (x *PutResponse) ProtoReflect() protoreflect.Message { - mi := &file_file_file_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +type PutResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -// Deprecated: Use PutResponse.ProtoReflect.Descriptor instead. +func (m *PutResponse) Reset() { *m = PutResponse{} } +func (m *PutResponse) String() string { return proto.CompactTextString(m) } +func (*PutResponse) ProtoMessage() {} func (*PutResponse) Descriptor() ([]byte, []int) { - return file_file_file_proto_rawDescGZIP(), []int{1} + return fileDescriptor_ad806f8986a0c3f6, []int{1} } +func (m *PutResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PutResponse.Unmarshal(m, b) +} +func (m *PutResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PutResponse.Marshal(b, m, deterministic) +} +func (m *PutResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_PutResponse.Merge(m, src) +} +func (m *PutResponse) XXX_Size() int { + return xxx_messageInfo_PutResponse.Size(m) +} +func (m *PutResponse) XXX_DiscardUnknown() { + xxx_messageInfo_PutResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_PutResponse proto.InternalMessageInfo + // A GetRequest specifies the remote_file to be streamed back // to the caller. The remote_file must be an absolute path to an // existing file. type GetRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - RemoteFile string `protobuf:"bytes,1,opt,name=remote_file,json=remoteFile,proto3" json:"remote_file,omitempty"` + RemoteFile string `protobuf:"bytes,1,opt,name=remote_file,json=remoteFile,proto3" json:"remote_file,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *GetRequest) Reset() { - *x = GetRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_file_file_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *GetRequest) Reset() { *m = GetRequest{} } +func (m *GetRequest) String() string { return proto.CompactTextString(m) } +func (*GetRequest) ProtoMessage() {} +func (*GetRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_ad806f8986a0c3f6, []int{2} } -func (x *GetRequest) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *GetRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetRequest.Unmarshal(m, b) } - -func (*GetRequest) ProtoMessage() {} - -func (x *GetRequest) ProtoReflect() protoreflect.Message { - mi := &file_file_file_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *GetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetRequest.Marshal(b, m, deterministic) } - -// Deprecated: Use GetRequest.ProtoReflect.Descriptor instead. -func (*GetRequest) Descriptor() ([]byte, []int) { - return file_file_file_proto_rawDescGZIP(), []int{2} +func (m *GetRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetRequest.Merge(m, src) +} +func (m *GetRequest) XXX_Size() int { + return xxx_messageInfo_GetRequest.Size(m) } +func (m *GetRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_GetRequest proto.InternalMessageInfo -func (x *GetRequest) GetRemoteFile() string { - if x != nil { - return x.RemoteFile +func (m *GetRequest) GetRemoteFile() string { + if m != nil { + return m.RemoteFile } return "" } @@ -236,48 +339,56 @@ func (x *GetRequest) GetRemoteFile() string { // A GetResponse either contains the next set of bytes read from the // file or, as the last message, the hash of the data. type GetResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to Response: + // Types that are valid to be assigned to Response: // *GetResponse_Contents // *GetResponse_Hash - Response isGetResponse_Response `protobuf_oneof:"response"` + Response isGetResponse_Response `protobuf_oneof:"response"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *GetResponse) Reset() { - *x = GetResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_file_file_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *GetResponse) Reset() { *m = GetResponse{} } +func (m *GetResponse) String() string { return proto.CompactTextString(m) } +func (*GetResponse) ProtoMessage() {} +func (*GetResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_ad806f8986a0c3f6, []int{3} } -func (x *GetResponse) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *GetResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetResponse.Unmarshal(m, b) +} +func (m *GetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetResponse.Marshal(b, m, deterministic) +} +func (m *GetResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetResponse.Merge(m, src) +} +func (m *GetResponse) XXX_Size() int { + return xxx_messageInfo_GetResponse.Size(m) +} +func (m *GetResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetResponse.DiscardUnknown(m) } -func (*GetResponse) ProtoMessage() {} +var xxx_messageInfo_GetResponse proto.InternalMessageInfo -func (x *GetResponse) ProtoReflect() protoreflect.Message { - mi := &file_file_file_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +type isGetResponse_Response interface { + isGetResponse_Response() } -// Deprecated: Use GetResponse.ProtoReflect.Descriptor instead. -func (*GetResponse) Descriptor() ([]byte, []int) { - return file_file_file_proto_rawDescGZIP(), []int{3} +type GetResponse_Contents struct { + Contents []byte `protobuf:"bytes,1,opt,name=contents,proto3,oneof"` } +type GetResponse_Hash struct { + Hash *types.HashType `protobuf:"bytes,2,opt,name=hash,proto3,oneof"` +} + +func (*GetResponse_Contents) isGetResponse_Response() {} + +func (*GetResponse_Hash) isGetResponse_Response() {} + func (m *GetResponse) GetResponse() isGetResponse_Response { if m != nil { return m.Response @@ -285,247 +396,265 @@ func (m *GetResponse) GetResponse() isGetResponse_Response { return nil } -func (x *GetResponse) GetContents() []byte { - if x, ok := x.GetResponse().(*GetResponse_Contents); ok { +func (m *GetResponse) GetContents() []byte { + if x, ok := m.GetResponse().(*GetResponse_Contents); ok { return x.Contents } return nil } -func (x *GetResponse) GetHash() *types.HashType { - if x, ok := x.GetResponse().(*GetResponse_Hash); ok { +func (m *GetResponse) GetHash() *types.HashType { + if x, ok := m.GetResponse().(*GetResponse_Hash); ok { return x.Hash } return nil } -type isGetResponse_Response interface { - isGetResponse_Response() +// XXX_OneofFuncs is for the internal use of the proto package. +func (*GetResponse) 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 _GetResponse_OneofMarshaler, _GetResponse_OneofUnmarshaler, _GetResponse_OneofSizer, []interface{}{ + (*GetResponse_Contents)(nil), + (*GetResponse_Hash)(nil), + } } -type GetResponse_Contents struct { - Contents []byte `protobuf:"bytes,1,opt,name=contents,proto3,oneof"` +func _GetResponse_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*GetResponse) + // response + switch x := m.Response.(type) { + case *GetResponse_Contents: + b.EncodeVarint(1<<3 | proto.WireBytes) + b.EncodeRawBytes(x.Contents) + case *GetResponse_Hash: + b.EncodeVarint(2<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Hash); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("GetResponse.Response has unexpected type %T", x) + } + return nil } -type GetResponse_Hash struct { - Hash *types.HashType `protobuf:"bytes,2,opt,name=hash,proto3,oneof"` // hash of the file. +func _GetResponse_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*GetResponse) + switch tag { + case 1: // response.contents + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + x, err := b.DecodeRawBytes(true) + m.Response = &GetResponse_Contents{x} + return true, err + case 2: // response.hash + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(types.HashType) + err := b.DecodeMessage(msg) + m.Response = &GetResponse_Hash{msg} + return true, err + default: + return false, nil + } } -func (*GetResponse_Contents) isGetResponse_Response() {} - -func (*GetResponse_Hash) isGetResponse_Response() {} +func _GetResponse_OneofSizer(msg proto.Message) (n int) { + m := msg.(*GetResponse) + // response + switch x := m.Response.(type) { + case *GetResponse_Contents: + n += 1 // tag and wire + n += proto.SizeVarint(uint64(len(x.Contents))) + n += len(x.Contents) + case *GetResponse_Hash: + s := proto.Size(x.Hash) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n +} // A TransferToRemoteRequest specifies the local path to transfer to and the // details on where to transfer the data from. The local_path must be an // absolute path to the file. type TransferToRemoteRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - LocalPath string `protobuf:"bytes,1,opt,name=local_path,json=localPath,proto3" json:"local_path,omitempty"` // Details to download the remote_file being requested to a remote location. - RemoteDownload *common.RemoteDownload `protobuf:"bytes,2,opt,name=remote_download,json=remoteDownload,proto3" json:"remote_download,omitempty"` + RemoteDownload *common.RemoteDownload `protobuf:"bytes,2,opt,name=remote_download,json=remoteDownload,proto3" json:"remote_download,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *TransferToRemoteRequest) Reset() { - *x = TransferToRemoteRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_file_file_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *TransferToRemoteRequest) Reset() { *m = TransferToRemoteRequest{} } +func (m *TransferToRemoteRequest) String() string { return proto.CompactTextString(m) } +func (*TransferToRemoteRequest) ProtoMessage() {} +func (*TransferToRemoteRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_ad806f8986a0c3f6, []int{4} } -func (x *TransferToRemoteRequest) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *TransferToRemoteRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TransferToRemoteRequest.Unmarshal(m, b) } - -func (*TransferToRemoteRequest) ProtoMessage() {} - -func (x *TransferToRemoteRequest) ProtoReflect() protoreflect.Message { - mi := &file_file_file_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *TransferToRemoteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TransferToRemoteRequest.Marshal(b, m, deterministic) } - -// Deprecated: Use TransferToRemoteRequest.ProtoReflect.Descriptor instead. -func (*TransferToRemoteRequest) Descriptor() ([]byte, []int) { - return file_file_file_proto_rawDescGZIP(), []int{4} +func (m *TransferToRemoteRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_TransferToRemoteRequest.Merge(m, src) +} +func (m *TransferToRemoteRequest) XXX_Size() int { + return xxx_messageInfo_TransferToRemoteRequest.Size(m) } +func (m *TransferToRemoteRequest) XXX_DiscardUnknown() { + xxx_messageInfo_TransferToRemoteRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_TransferToRemoteRequest proto.InternalMessageInfo -func (x *TransferToRemoteRequest) GetLocalPath() string { - if x != nil { - return x.LocalPath +func (m *TransferToRemoteRequest) GetLocalPath() string { + if m != nil { + return m.LocalPath } return "" } -func (x *TransferToRemoteRequest) GetRemoteDownload() *common.RemoteDownload { - if x != nil { - return x.RemoteDownload +func (m *TransferToRemoteRequest) GetRemoteDownload() *common.RemoteDownload { + if m != nil { + return m.RemoteDownload } return nil } // A TransferToRemoteResponse contains the hash of the data transferred. type TransferToRemoteResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Hash *types.HashType `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` // hash of the file. + Hash *types.HashType `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *TransferToRemoteResponse) Reset() { - *x = TransferToRemoteResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_file_file_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *TransferToRemoteResponse) Reset() { *m = TransferToRemoteResponse{} } +func (m *TransferToRemoteResponse) String() string { return proto.CompactTextString(m) } +func (*TransferToRemoteResponse) ProtoMessage() {} +func (*TransferToRemoteResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_ad806f8986a0c3f6, []int{5} } -func (x *TransferToRemoteResponse) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *TransferToRemoteResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TransferToRemoteResponse.Unmarshal(m, b) } - -func (*TransferToRemoteResponse) ProtoMessage() {} - -func (x *TransferToRemoteResponse) ProtoReflect() protoreflect.Message { - mi := &file_file_file_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *TransferToRemoteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TransferToRemoteResponse.Marshal(b, m, deterministic) } - -// Deprecated: Use TransferToRemoteResponse.ProtoReflect.Descriptor instead. -func (*TransferToRemoteResponse) Descriptor() ([]byte, []int) { - return file_file_file_proto_rawDescGZIP(), []int{5} +func (m *TransferToRemoteResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_TransferToRemoteResponse.Merge(m, src) +} +func (m *TransferToRemoteResponse) XXX_Size() int { + return xxx_messageInfo_TransferToRemoteResponse.Size(m) +} +func (m *TransferToRemoteResponse) XXX_DiscardUnknown() { + xxx_messageInfo_TransferToRemoteResponse.DiscardUnknown(m) } -func (x *TransferToRemoteResponse) GetHash() *types.HashType { - if x != nil { - return x.Hash +var xxx_messageInfo_TransferToRemoteResponse proto.InternalMessageInfo + +func (m *TransferToRemoteResponse) GetHash() *types.HashType { + if m != nil { + return m.Hash } return nil } // StatRequest will list files at the provided path. type StatRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` + Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *StatRequest) Reset() { - *x = StatRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_file_file_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *StatRequest) Reset() { *m = StatRequest{} } +func (m *StatRequest) String() string { return proto.CompactTextString(m) } +func (*StatRequest) ProtoMessage() {} +func (*StatRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_ad806f8986a0c3f6, []int{6} } -func (x *StatRequest) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *StatRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StatRequest.Unmarshal(m, b) } - -func (*StatRequest) ProtoMessage() {} - -func (x *StatRequest) ProtoReflect() protoreflect.Message { - mi := &file_file_file_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *StatRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StatRequest.Marshal(b, m, deterministic) } - -// Deprecated: Use StatRequest.ProtoReflect.Descriptor instead. -func (*StatRequest) Descriptor() ([]byte, []int) { - return file_file_file_proto_rawDescGZIP(), []int{6} +func (m *StatRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_StatRequest.Merge(m, src) +} +func (m *StatRequest) XXX_Size() int { + return xxx_messageInfo_StatRequest.Size(m) } +func (m *StatRequest) XXX_DiscardUnknown() { + xxx_messageInfo_StatRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_StatRequest proto.InternalMessageInfo -func (x *StatRequest) GetPath() string { - if x != nil { - return x.Path +func (m *StatRequest) GetPath() string { + if m != nil { + return m.Path } return "" } // StatResponse contains list of stat info of the provided path. type StatResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Stats []*StatInfo `protobuf:"bytes,1,rep,name=stats,proto3" json:"stats,omitempty"` + Stats []*StatInfo `protobuf:"bytes,1,rep,name=stats,proto3" json:"stats,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *StatResponse) Reset() { - *x = StatResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_file_file_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *StatResponse) Reset() { *m = StatResponse{} } +func (m *StatResponse) String() string { return proto.CompactTextString(m) } +func (*StatResponse) ProtoMessage() {} +func (*StatResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_ad806f8986a0c3f6, []int{7} } -func (x *StatResponse) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *StatResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StatResponse.Unmarshal(m, b) } - -func (*StatResponse) ProtoMessage() {} - -func (x *StatResponse) ProtoReflect() protoreflect.Message { - mi := &file_file_file_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *StatResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StatResponse.Marshal(b, m, deterministic) } - -// Deprecated: Use StatResponse.ProtoReflect.Descriptor instead. -func (*StatResponse) Descriptor() ([]byte, []int) { - return file_file_file_proto_rawDescGZIP(), []int{7} +func (m *StatResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_StatResponse.Merge(m, src) +} +func (m *StatResponse) XXX_Size() int { + return xxx_messageInfo_StatResponse.Size(m) +} +func (m *StatResponse) XXX_DiscardUnknown() { + xxx_messageInfo_StatResponse.DiscardUnknown(m) } -func (x *StatResponse) GetStats() []*StatInfo { - if x != nil { - return x.Stats +var xxx_messageInfo_StatResponse proto.InternalMessageInfo + +func (m *StatResponse) GetStats() []*StatInfo { + if m != nil { + return m.Stats } return nil } // StatInfo provides a file system information about a particular path. type StatInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` - LastModified uint64 `protobuf:"varint,2,opt,name=last_modified,json=lastModified,proto3" json:"last_modified,omitempty"` // Nanoseconds since epoch. + LastModified uint64 `protobuf:"varint,2,opt,name=last_modified,json=lastModified,proto3" json:"last_modified,omitempty"` // Permissions are represented as the octal format of standard UNIX // file permissions. // ex. 775: user read/write/execute, group read/write/execute, @@ -534,544 +663,510 @@ type StatInfo struct { Size uint64 `protobuf:"varint,4,opt,name=size,proto3" json:"size,omitempty"` // Default file creation mask. Represented as the octal format of // standard UNIX mask. - Umask uint32 `protobuf:"varint,5,opt,name=umask,proto3" json:"umask,omitempty"` + Umask uint32 `protobuf:"varint,5,opt,name=umask,proto3" json:"umask,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *StatInfo) Reset() { - *x = StatInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_file_file_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *StatInfo) Reset() { *m = StatInfo{} } +func (m *StatInfo) String() string { return proto.CompactTextString(m) } +func (*StatInfo) ProtoMessage() {} +func (*StatInfo) Descriptor() ([]byte, []int) { + return fileDescriptor_ad806f8986a0c3f6, []int{8} } -func (x *StatInfo) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *StatInfo) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StatInfo.Unmarshal(m, b) } - -func (*StatInfo) ProtoMessage() {} - -func (x *StatInfo) ProtoReflect() protoreflect.Message { - mi := &file_file_file_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *StatInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StatInfo.Marshal(b, m, deterministic) } - -// Deprecated: Use StatInfo.ProtoReflect.Descriptor instead. -func (*StatInfo) Descriptor() ([]byte, []int) { - return file_file_file_proto_rawDescGZIP(), []int{8} +func (m *StatInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_StatInfo.Merge(m, src) +} +func (m *StatInfo) XXX_Size() int { + return xxx_messageInfo_StatInfo.Size(m) } +func (m *StatInfo) XXX_DiscardUnknown() { + xxx_messageInfo_StatInfo.DiscardUnknown(m) +} + +var xxx_messageInfo_StatInfo proto.InternalMessageInfo -func (x *StatInfo) GetPath() string { - if x != nil { - return x.Path +func (m *StatInfo) GetPath() string { + if m != nil { + return m.Path } return "" } -func (x *StatInfo) GetLastModified() uint64 { - if x != nil { - return x.LastModified +func (m *StatInfo) GetLastModified() uint64 { + if m != nil { + return m.LastModified } return 0 } -func (x *StatInfo) GetPermissions() uint32 { - if x != nil { - return x.Permissions +func (m *StatInfo) GetPermissions() uint32 { + if m != nil { + return m.Permissions } return 0 } -func (x *StatInfo) GetSize() uint64 { - if x != nil { - return x.Size +func (m *StatInfo) GetSize() uint64 { + if m != nil { + return m.Size } return 0 } -func (x *StatInfo) GetUmask() uint32 { - if x != nil { - return x.Umask +func (m *StatInfo) GetUmask() uint32 { + if m != nil { + return m.Umask } return 0 } // A RemoveRequest specifies a file to be removed from the target. type RemoveRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields + RemoteFile string `protobuf:"bytes,1,opt,name=remote_file,json=remoteFile,proto3" json:"remote_file,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} - RemoteFile string `protobuf:"bytes,1,opt,name=remote_file,json=remoteFile,proto3" json:"remote_file,omitempty"` +func (m *RemoveRequest) Reset() { *m = RemoveRequest{} } +func (m *RemoveRequest) String() string { return proto.CompactTextString(m) } +func (*RemoveRequest) ProtoMessage() {} +func (*RemoveRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_ad806f8986a0c3f6, []int{9} } -func (x *RemoveRequest) Reset() { - *x = RemoveRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_file_file_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *RemoveRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RemoveRequest.Unmarshal(m, b) +} +func (m *RemoveRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RemoveRequest.Marshal(b, m, deterministic) +} +func (m *RemoveRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RemoveRequest.Merge(m, src) +} +func (m *RemoveRequest) XXX_Size() int { + return xxx_messageInfo_RemoveRequest.Size(m) +} +func (m *RemoveRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RemoveRequest.DiscardUnknown(m) } -func (x *RemoveRequest) String() string { - return protoimpl.X.MessageStringOf(x) +var xxx_messageInfo_RemoveRequest proto.InternalMessageInfo + +func (m *RemoveRequest) GetRemoteFile() string { + if m != nil { + return m.RemoteFile + } + return "" } -func (*RemoveRequest) ProtoMessage() {} +type RemoveResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} -func (x *RemoveRequest) ProtoReflect() protoreflect.Message { - mi := &file_file_file_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms +func (m *RemoveResponse) Reset() { *m = RemoveResponse{} } +func (m *RemoveResponse) String() string { return proto.CompactTextString(m) } +func (*RemoveResponse) ProtoMessage() {} +func (*RemoveResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_ad806f8986a0c3f6, []int{10} +} + +func (m *RemoveResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RemoveResponse.Unmarshal(m, b) +} +func (m *RemoveResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RemoveResponse.Marshal(b, m, deterministic) +} +func (m *RemoveResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RemoveResponse.Merge(m, src) +} +func (m *RemoveResponse) XXX_Size() int { + return xxx_messageInfo_RemoveResponse.Size(m) +} +func (m *RemoveResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RemoveResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RemoveResponse proto.InternalMessageInfo + +func init() { + proto.RegisterType((*PutRequest)(nil), "gnoi.file.PutRequest") + proto.RegisterType((*PutRequest_Details)(nil), "gnoi.file.PutRequest.Details") + proto.RegisterType((*PutResponse)(nil), "gnoi.file.PutResponse") + proto.RegisterType((*GetRequest)(nil), "gnoi.file.GetRequest") + proto.RegisterType((*GetResponse)(nil), "gnoi.file.GetResponse") + proto.RegisterType((*TransferToRemoteRequest)(nil), "gnoi.file.TransferToRemoteRequest") + proto.RegisterType((*TransferToRemoteResponse)(nil), "gnoi.file.TransferToRemoteResponse") + proto.RegisterType((*StatRequest)(nil), "gnoi.file.StatRequest") + proto.RegisterType((*StatResponse)(nil), "gnoi.file.StatResponse") + proto.RegisterType((*StatInfo)(nil), "gnoi.file.StatInfo") + proto.RegisterType((*RemoveRequest)(nil), "gnoi.file.RemoveRequest") + proto.RegisterType((*RemoveResponse)(nil), "gnoi.file.RemoveResponse") +} + +func init() { proto.RegisterFile("file/file.proto", fileDescriptor_ad806f8986a0c3f6) } + +var fileDescriptor_ad806f8986a0c3f6 = []byte{ + // 600 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x54, 0xcd, 0x6e, 0xd3, 0x4c, + 0x14, 0x8d, 0x1b, 0xa7, 0x4d, 0xae, 0x9b, 0xb6, 0x9a, 0xaf, 0x5f, 0x6b, 0x0c, 0x15, 0xc5, 0xdd, + 0x04, 0x04, 0x4e, 0x68, 0x37, 0x74, 0x03, 0x52, 0x14, 0xd1, 0x20, 0x81, 0x14, 0x99, 0x6c, 0x51, + 0x34, 0x75, 0x26, 0xb1, 0x85, 0xed, 0x31, 0x9e, 0x09, 0xa8, 0x2c, 0x78, 0x05, 0xde, 0x0d, 0x89, + 0x37, 0xe0, 0x41, 0xd0, 0xfc, 0x38, 0x71, 0x92, 0xa6, 0x65, 0xe3, 0xd8, 0x27, 0xe7, 0xde, 0x73, + 0xce, 0x9d, 0x6b, 0xc3, 0xfe, 0x24, 0x8a, 0x49, 0x5b, 0x5c, 0xbc, 0x2c, 0xa7, 0x9c, 0xa2, 0xc6, + 0x34, 0xa5, 0x91, 0x27, 0x00, 0xe7, 0xf9, 0x34, 0xe2, 0xe1, 0xec, 0xda, 0x0b, 0x68, 0xd2, 0xa6, + 0x19, 0x49, 0x03, 0x9a, 0x4e, 0xa2, 0x69, 0x5b, 0x10, 0xda, 0xfc, 0x26, 0x23, 0x4c, 0x5d, 0x55, + 0xa1, 0xe3, 0xdd, 0xc1, 0x0e, 0x68, 0x92, 0xd0, 0x54, 0xff, 0x28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 0xc5, 0xa9, 0x74, 0x0c, 0xf4, 0x09, 0x0e, 0x56, 0x0f, + 0x0f, 0xb9, 0x25, 0xfe, 0x86, 0xcd, 0x72, 0xce, 0xee, 0xe4, 0x14, 0x02, 0xc2, 0xd8, 0x60, 0xb6, + 0x6c, 0x6c, 0xf1, 0x3d, 0x58, 0x32, 0x56, 0x7e, 0xcb, 0x2a, 0x2d, 0x03, 0x5d, 0x82, 0x29, 0x0e, + 0x0c, 0x1d, 0xad, 0x9c, 0x6a, 0x51, 0x7b, 0xbc, 0x86, 0xcf, 0x45, 0xdf, 0xc0, 0xb6, 0x1a, 0x14, + 0xb2, 0x4b, 0xa4, 0xa5, 0x69, 0x3b, 0x0f, 0x6e, 0xf9, 0xa7, 0x68, 0xd0, 0xad, 0xff, 0x7a, 0x5d, + 0xeb, 0x78, 0x2f, 0xbd, 0xce, 0xf5, 0xb6, 0xfc, 0xd8, 0x5d, 0xfc, 0x0d, 0x00, 0x00, 0xff, 0xff, + 0xdf, 0xe7, 0xb5, 0x47, 0x68, 0x05, 0x00, 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion4 + +// FileClient is the client API for File service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type FileClient interface { + // Get reads and streams the contents of a file from the target. + // The file is streamed by sequential messages, each containing up to + // 64KB of data. A final message is sent prior to closing the stream + // that contains the hash of the data sent. An error is returned + // if the file does not exist or there was an error reading the file. + Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (File_GetClient, error) + // TransferToRemote transfers the contents of a file from the target to a + // specified remote location. The response contains the hash of the data + // transferred. An error is returned if the file does not exist, the file + // transfer fails, or if there was an error reading the file. This is a + // blocking call until the file transfer is complete. + TransferToRemote(ctx context.Context, in *TransferToRemoteRequest, opts ...grpc.CallOption) (*TransferToRemoteResponse, error) + // Put streams data into a file on the target. The file is sent in + // sequential messages, each message containing up to 64KB of data. A final + // message must be sent that includes the hash of the data sent. An + // error is returned if the location does not exist or there is an error + // writing the data. If no checksum is received, the target must assume the + // operation is incomplete and remove the partially transmitted file. The + // target should initially write the file to a temporary location so a failure + // does not destroy the original file. + Put(ctx context.Context, opts ...grpc.CallOption) (File_PutClient, error) + // Stat returns metadata about a file on the target. An error is returned + // if the file does not exist of there is an error in accessing the metadata. + Stat(ctx context.Context, in *StatRequest, opts ...grpc.CallOption) (*StatResponse, error) + // Remove removes the specified file from the target. An error is + // returned if the file does not exist, is a directory, or the remove + // operation encounters an error (e.g., permission denied). + Remove(ctx context.Context, in *RemoveRequest, opts ...grpc.CallOption) (*RemoveResponse, error) +} + +type fileClient struct { + cc *grpc.ClientConn +} + +func NewFileClient(cc *grpc.ClientConn) FileClient { + return &fileClient{cc} +} + +func (c *fileClient) Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (File_GetClient, error) { + stream, err := c.cc.NewStream(ctx, &_File_serviceDesc.Streams[0], "/gnoi.file.File/Get", opts...) + if err != nil { + return nil, err + } + x := &fileGetClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err } - return mi.MessageOf(x) + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil } -// Deprecated: Use RemoveRequest.ProtoReflect.Descriptor instead. -func (*RemoveRequest) Descriptor() ([]byte, []int) { - return file_file_file_proto_rawDescGZIP(), []int{9} +type File_GetClient interface { + Recv() (*GetResponse, error) + grpc.ClientStream } -func (x *RemoveRequest) GetRemoteFile() string { - if x != nil { - return x.RemoteFile +type fileGetClient struct { + grpc.ClientStream +} + +func (x *fileGetClient) Recv() (*GetResponse, error) { + m := new(GetResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err } - return "" + return m, nil } -type RemoveResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields +func (c *fileClient) TransferToRemote(ctx context.Context, in *TransferToRemoteRequest, opts ...grpc.CallOption) (*TransferToRemoteResponse, error) { + out := new(TransferToRemoteResponse) + err := c.cc.Invoke(ctx, "/gnoi.file.File/TransferToRemote", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil } -func (x *RemoveResponse) Reset() { - *x = RemoveResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_file_file_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (c *fileClient) Put(ctx context.Context, opts ...grpc.CallOption) (File_PutClient, error) { + stream, err := c.cc.NewStream(ctx, &_File_serviceDesc.Streams[1], "/gnoi.file.File/Put", opts...) + if err != nil { + return nil, err } + x := &filePutClient{stream} + return x, nil } -func (x *RemoveResponse) String() string { - return protoimpl.X.MessageStringOf(x) +type File_PutClient interface { + Send(*PutRequest) error + CloseAndRecv() (*PutResponse, error) + grpc.ClientStream } -func (*RemoveResponse) ProtoMessage() {} +type filePutClient struct { + grpc.ClientStream +} -func (x *RemoveResponse) ProtoReflect() protoreflect.Message { - mi := &file_file_file_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms +func (x *filePutClient) Send(m *PutRequest) error { + return x.ClientStream.SendMsg(m) +} + +func (x *filePutClient) CloseAndRecv() (*PutResponse, error) { + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + m := new(PutResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err } - return mi.MessageOf(x) + return m, nil } -// Deprecated: Use RemoveResponse.ProtoReflect.Descriptor instead. -func (*RemoveResponse) Descriptor() ([]byte, []int) { - return file_file_file_proto_rawDescGZIP(), []int{10} +func (c *fileClient) Stat(ctx context.Context, in *StatRequest, opts ...grpc.CallOption) (*StatResponse, error) { + out := new(StatResponse) + err := c.cc.Invoke(ctx, "/gnoi.file.File/Stat", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil } -type PutRequest_Details struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields +func (c *fileClient) Remove(ctx context.Context, in *RemoveRequest, opts ...grpc.CallOption) (*RemoveResponse, error) { + out := new(RemoveResponse) + err := c.cc.Invoke(ctx, "/gnoi.file.File/Remove", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// FileServer is the server API for File service. +type FileServer interface { + // Get reads and streams the contents of a file from the target. + // The file is streamed by sequential messages, each containing up to + // 64KB of data. A final message is sent prior to closing the stream + // that contains the hash of the data sent. An error is returned + // if the file does not exist or there was an error reading the file. + Get(*GetRequest, File_GetServer) error + // TransferToRemote transfers the contents of a file from the target to a + // specified remote location. The response contains the hash of the data + // transferred. An error is returned if the file does not exist, the file + // transfer fails, or if there was an error reading the file. This is a + // blocking call until the file transfer is complete. + TransferToRemote(context.Context, *TransferToRemoteRequest) (*TransferToRemoteResponse, error) + // Put streams data into a file on the target. The file is sent in + // sequential messages, each message containing up to 64KB of data. A final + // message must be sent that includes the hash of the data sent. An + // error is returned if the location does not exist or there is an error + // writing the data. If no checksum is received, the target must assume the + // operation is incomplete and remove the partially transmitted file. The + // target should initially write the file to a temporary location so a failure + // does not destroy the original file. + Put(File_PutServer) error + // Stat returns metadata about a file on the target. An error is returned + // if the file does not exist of there is an error in accessing the metadata. + Stat(context.Context, *StatRequest) (*StatResponse, error) + // Remove removes the specified file from the target. An error is + // returned if the file does not exist, is a directory, or the remove + // operation encounters an error (e.g., permission denied). + Remove(context.Context, *RemoveRequest) (*RemoveResponse, error) +} + +func RegisterFileServer(s *grpc.Server, srv FileServer) { + s.RegisterService(&_File_serviceDesc, srv) +} + +func _File_Get_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(GetRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(FileServer).Get(m, &fileGetServer{stream}) +} - RemoteFile string `protobuf:"bytes,1,opt,name=remote_file,json=remoteFile,proto3" json:"remote_file,omitempty"` - // Permissions are represented as the octal format of standard UNIX - // file permissions. - // ex. 775: user read/write/execute, group read/write/execute, - // global read/execute. - Permissions uint32 `protobuf:"varint,2,opt,name=permissions,proto3" json:"permissions,omitempty"` +type File_GetServer interface { + Send(*GetResponse) error + grpc.ServerStream +} + +type fileGetServer struct { + grpc.ServerStream +} + +func (x *fileGetServer) Send(m *GetResponse) error { + return x.ServerStream.SendMsg(m) } -func (x *PutRequest_Details) Reset() { - *x = PutRequest_Details{} - if protoimpl.UnsafeEnabled { - mi := &file_file_file_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func _File_TransferToRemote_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TransferToRemoteRequest) + if err := dec(in); err != nil { + return nil, err } + if interceptor == nil { + return srv.(FileServer).TransferToRemote(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gnoi.file.File/TransferToRemote", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(FileServer).TransferToRemote(ctx, req.(*TransferToRemoteRequest)) + } + return interceptor(ctx, in, info, handler) } -func (x *PutRequest_Details) String() string { - return protoimpl.X.MessageStringOf(x) +func _File_Put_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(FileServer).Put(&filePutServer{stream}) } -func (*PutRequest_Details) ProtoMessage() {} +type File_PutServer interface { + SendAndClose(*PutResponse) error + Recv() (*PutRequest, error) + grpc.ServerStream +} -func (x *PutRequest_Details) ProtoReflect() protoreflect.Message { - mi := &file_file_file_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +type filePutServer struct { + grpc.ServerStream } -// Deprecated: Use PutRequest_Details.ProtoReflect.Descriptor instead. -func (*PutRequest_Details) Descriptor() ([]byte, []int) { - return file_file_file_proto_rawDescGZIP(), []int{0, 0} +func (x *filePutServer) SendAndClose(m *PutResponse) error { + return x.ServerStream.SendMsg(m) } -func (x *PutRequest_Details) GetRemoteFile() string { - if x != nil { - return x.RemoteFile +func (x *filePutServer) Recv() (*PutRequest, error) { + m := new(PutRequest) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err } - return "" + return m, nil } -func (x *PutRequest_Details) GetPermissions() uint32 { - if x != nil { - return x.Permissions +func _File_Stat_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(StatRequest) + if err := dec(in); err != nil { + return nil, err } - return 0 + if interceptor == nil { + return srv.(FileServer).Stat(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gnoi.file.File/Stat", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(FileServer).Stat(ctx, req.(*StatRequest)) + } + return interceptor(ctx, in, info, handler) } -var File_file_file_proto protoreflect.FileDescriptor - -var file_file_file_proto_rawDesc = []byte{ - 0x0a, 0x0f, 0x66, 0x69, 0x6c, 0x65, 0x2f, 0x66, 0x69, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x12, 0x09, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x1a, 0x2e, 0x67, 0x69, - 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x6f, 0x6e, - 0x66, 0x69, 0x67, 0x2f, 0x67, 0x6e, 0x6f, 0x69, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, - 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2c, 0x67, 0x69, - 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x6f, 0x6e, - 0x66, 0x69, 0x67, 0x2f, 0x67, 0x6e, 0x6f, 0x69, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x74, - 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xe4, 0x01, 0x0a, 0x0a, 0x50, - 0x75, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x33, 0x0a, 0x04, 0x6f, 0x70, 0x65, - 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x66, - 0x69, 0x6c, 0x65, 0x2e, 0x50, 0x75, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x44, - 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x48, 0x00, 0x52, 0x04, 0x6f, 0x70, 0x65, 0x6e, 0x12, 0x1c, - 0x0a, 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, - 0x48, 0x00, 0x52, 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x2a, 0x0a, 0x04, - 0x68, 0x61, 0x73, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6e, 0x6f, - 0x69, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x48, 0x61, 0x73, 0x68, 0x54, 0x79, 0x70, 0x65, - 0x48, 0x00, 0x52, 0x04, 0x68, 0x61, 0x73, 0x68, 0x1a, 0x4c, 0x0a, 0x07, 0x44, 0x65, 0x74, 0x61, - 0x69, 0x6c, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x5f, 0x66, 0x69, - 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, - 0x46, 0x69, 0x6c, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, - 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0b, 0x70, 0x65, 0x72, 0x6d, 0x69, - 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x42, 0x09, 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x22, 0x0d, 0x0a, 0x0b, 0x50, 0x75, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x2d, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, - 0x0a, 0x0b, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x0a, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x22, - 0x63, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1c, - 0x0a, 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, - 0x48, 0x00, 0x52, 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x2a, 0x0a, 0x04, - 0x68, 0x61, 0x73, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6e, 0x6f, - 0x69, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x48, 0x61, 0x73, 0x68, 0x54, 0x79, 0x70, 0x65, - 0x48, 0x00, 0x52, 0x04, 0x68, 0x61, 0x73, 0x68, 0x42, 0x0a, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x7e, 0x0a, 0x17, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, - 0x54, 0x6f, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x1d, 0x0a, 0x0a, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x09, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x50, 0x61, 0x74, 0x68, 0x12, 0x44, - 0x0a, 0x0f, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x5f, 0x64, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, - 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, - 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x44, 0x6f, 0x77, 0x6e, - 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x0e, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x44, 0x6f, 0x77, 0x6e, - 0x6c, 0x6f, 0x61, 0x64, 0x22, 0x44, 0x0a, 0x18, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, - 0x54, 0x6f, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x28, 0x0a, 0x04, 0x68, 0x61, 0x73, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, - 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x48, 0x61, 0x73, 0x68, - 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x68, 0x61, 0x73, 0x68, 0x22, 0x21, 0x0a, 0x0b, 0x53, 0x74, - 0x61, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, - 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x22, 0x39, 0x0a, - 0x0c, 0x53, 0x74, 0x61, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x29, 0x0a, - 0x05, 0x73, 0x74, 0x61, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x67, - 0x6e, 0x6f, 0x69, 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x49, 0x6e, 0x66, - 0x6f, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x73, 0x22, 0x8f, 0x01, 0x0a, 0x08, 0x53, 0x74, 0x61, - 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x23, 0x0a, 0x0d, 0x6c, 0x61, 0x73, - 0x74, 0x5f, 0x6d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, - 0x52, 0x0c, 0x6c, 0x61, 0x73, 0x74, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x64, 0x12, 0x20, - 0x0a, 0x0b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x0d, 0x52, 0x0b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, - 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04, - 0x73, 0x69, 0x7a, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x75, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x05, 0x20, - 0x01, 0x28, 0x0d, 0x52, 0x05, 0x75, 0x6d, 0x61, 0x73, 0x6b, 0x22, 0x30, 0x0a, 0x0d, 0x52, 0x65, - 0x6d, 0x6f, 0x76, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x72, - 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x0a, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x22, 0x10, 0x0a, 0x0e, - 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xd5, - 0x02, 0x0a, 0x04, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x38, 0x0a, 0x03, 0x47, 0x65, 0x74, 0x12, 0x15, - 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x66, 0x69, 0x6c, - 0x65, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x30, - 0x01, 0x12, 0x5d, 0x0a, 0x10, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x54, 0x6f, 0x52, - 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x12, 0x22, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x66, 0x69, 0x6c, - 0x65, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x54, 0x6f, 0x52, 0x65, 0x6d, 0x6f, - 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x67, 0x6e, 0x6f, 0x69, - 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x54, 0x6f, - 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, - 0x12, 0x38, 0x0a, 0x03, 0x50, 0x75, 0x74, 0x12, 0x15, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x66, - 0x69, 0x6c, 0x65, 0x2e, 0x50, 0x75, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, - 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x2e, 0x50, 0x75, 0x74, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x28, 0x01, 0x12, 0x39, 0x0a, 0x04, 0x53, 0x74, - 0x61, 0x74, 0x12, 0x16, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x2e, 0x53, - 0x74, 0x61, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x67, 0x6e, 0x6f, - 0x69, 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x3f, 0x0a, 0x06, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x12, - 0x18, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x2e, 0x52, 0x65, 0x6d, 0x6f, - 0x76, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x67, 0x6e, 0x6f, 0x69, - 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x29, 0x5a, 0x1f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, - 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, - 0x67, 0x6e, 0x6f, 0x69, 0x2f, 0x66, 0x69, 0x6c, 0x65, 0xd2, 0x3e, 0x05, 0x30, 0x2e, 0x31, 0x2e, - 0x30, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_file_file_proto_rawDescOnce sync.Once - file_file_file_proto_rawDescData = file_file_file_proto_rawDesc -) - -func file_file_file_proto_rawDescGZIP() []byte { - file_file_file_proto_rawDescOnce.Do(func() { - file_file_file_proto_rawDescData = protoimpl.X.CompressGZIP(file_file_file_proto_rawDescData) - }) - return file_file_file_proto_rawDescData -} - -var file_file_file_proto_msgTypes = make([]protoimpl.MessageInfo, 12) -var file_file_file_proto_goTypes = []interface{}{ - (*PutRequest)(nil), // 0: gnoi.file.PutRequest - (*PutResponse)(nil), // 1: gnoi.file.PutResponse - (*GetRequest)(nil), // 2: gnoi.file.GetRequest - (*GetResponse)(nil), // 3: gnoi.file.GetResponse - (*TransferToRemoteRequest)(nil), // 4: gnoi.file.TransferToRemoteRequest - (*TransferToRemoteResponse)(nil), // 5: gnoi.file.TransferToRemoteResponse - (*StatRequest)(nil), // 6: gnoi.file.StatRequest - (*StatResponse)(nil), // 7: gnoi.file.StatResponse - (*StatInfo)(nil), // 8: gnoi.file.StatInfo - (*RemoveRequest)(nil), // 9: gnoi.file.RemoveRequest - (*RemoveResponse)(nil), // 10: gnoi.file.RemoveResponse - (*PutRequest_Details)(nil), // 11: gnoi.file.PutRequest.Details - (*types.HashType)(nil), // 12: gnoi.types.HashType - (*common.RemoteDownload)(nil), // 13: gnoi.common.RemoteDownload -} -var file_file_file_proto_depIdxs = []int32{ - 11, // 0: gnoi.file.PutRequest.open:type_name -> gnoi.file.PutRequest.Details - 12, // 1: gnoi.file.PutRequest.hash:type_name -> gnoi.types.HashType - 12, // 2: gnoi.file.GetResponse.hash:type_name -> gnoi.types.HashType - 13, // 3: gnoi.file.TransferToRemoteRequest.remote_download:type_name -> gnoi.common.RemoteDownload - 12, // 4: gnoi.file.TransferToRemoteResponse.hash:type_name -> gnoi.types.HashType - 8, // 5: gnoi.file.StatResponse.stats:type_name -> gnoi.file.StatInfo - 2, // 6: gnoi.file.File.Get:input_type -> gnoi.file.GetRequest - 4, // 7: gnoi.file.File.TransferToRemote:input_type -> gnoi.file.TransferToRemoteRequest - 0, // 8: gnoi.file.File.Put:input_type -> gnoi.file.PutRequest - 6, // 9: gnoi.file.File.Stat:input_type -> gnoi.file.StatRequest - 9, // 10: gnoi.file.File.Remove:input_type -> gnoi.file.RemoveRequest - 3, // 11: gnoi.file.File.Get:output_type -> gnoi.file.GetResponse - 5, // 12: gnoi.file.File.TransferToRemote:output_type -> gnoi.file.TransferToRemoteResponse - 1, // 13: gnoi.file.File.Put:output_type -> gnoi.file.PutResponse - 7, // 14: gnoi.file.File.Stat:output_type -> gnoi.file.StatResponse - 10, // 15: gnoi.file.File.Remove:output_type -> gnoi.file.RemoveResponse - 11, // [11:16] is the sub-list for method output_type - 6, // [6:11] is the sub-list for method input_type - 6, // [6:6] is the sub-list for extension type_name - 6, // [6:6] is the sub-list for extension extendee - 0, // [0:6] is the sub-list for field type_name -} - -func init() { file_file_file_proto_init() } -func file_file_file_proto_init() { - if File_file_file_proto != nil { - return +func _File_Remove_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RemoveRequest) + if err := dec(in); err != nil { + return nil, err } - if !protoimpl.UnsafeEnabled { - file_file_file_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PutRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_file_file_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PutResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_file_file_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_file_file_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_file_file_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TransferToRemoteRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_file_file_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TransferToRemoteResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_file_file_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StatRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_file_file_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StatResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_file_file_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StatInfo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_file_file_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RemoveRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_file_file_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RemoveResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_file_file_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PutRequest_Details); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } + if interceptor == nil { + return srv.(FileServer).Remove(ctx, in) } - file_file_file_proto_msgTypes[0].OneofWrappers = []interface{}{ - (*PutRequest_Open)(nil), - (*PutRequest_Contents)(nil), - (*PutRequest_Hash)(nil), + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gnoi.file.File/Remove", } - file_file_file_proto_msgTypes[3].OneofWrappers = []interface{}{ - (*GetResponse_Contents)(nil), - (*GetResponse_Hash)(nil), + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(FileServer).Remove(ctx, req.(*RemoveRequest)) } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_file_file_proto_rawDesc, - NumEnums: 0, - NumMessages: 12, - NumExtensions: 0, - NumServices: 1, + return interceptor(ctx, in, info, handler) +} + +var _File_serviceDesc = grpc.ServiceDesc{ + ServiceName: "gnoi.file.File", + HandlerType: (*FileServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "TransferToRemote", + Handler: _File_TransferToRemote_Handler, + }, + { + MethodName: "Stat", + Handler: _File_Stat_Handler, + }, + { + MethodName: "Remove", + Handler: _File_Remove_Handler, + }, + }, + Streams: []grpc.StreamDesc{ + { + StreamName: "Get", + Handler: _File_Get_Handler, + ServerStreams: true, + }, + { + StreamName: "Put", + Handler: _File_Put_Handler, + ClientStreams: true, }, - GoTypes: file_file_file_proto_goTypes, - DependencyIndexes: file_file_file_proto_depIdxs, - MessageInfos: file_file_file_proto_msgTypes, - }.Build() - File_file_file_proto = out.File - file_file_file_proto_rawDesc = nil - file_file_file_proto_goTypes = nil - file_file_file_proto_depIdxs = nil + }, + Metadata: "file/file.proto", } diff --git a/file/file.proto b/file/file.proto index 119f7fcf..5897d025 100644 --- a/file/file.proto +++ b/file/file.proto @@ -21,8 +21,6 @@ package gnoi.file; import "github.com/openconfig/gnoi/common/common.proto"; import "github.com/openconfig/gnoi/types/types.proto"; -option go_package = "github.com/openconfig/gnoi/file"; - option (types.gnoi_version) = "0.1.0"; service File { diff --git a/file/file_grpc.pb.go b/file/file_grpc.pb.go deleted file mode 100644 index 5b339b0e..00000000 --- a/file/file_grpc.pb.go +++ /dev/null @@ -1,353 +0,0 @@ -// Code generated by protoc-gen-go-grpc. DO NOT EDIT. - -package file - -import ( - context "context" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" -) - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 - -// FileClient is the client API for File service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. -type FileClient interface { - // Get reads and streams the contents of a file from the target. - // The file is streamed by sequential messages, each containing up to - // 64KB of data. A final message is sent prior to closing the stream - // that contains the hash of the data sent. An error is returned - // if the file does not exist or there was an error reading the file. - Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (File_GetClient, error) - // TransferToRemote transfers the contents of a file from the target to a - // specified remote location. The response contains the hash of the data - // transferred. An error is returned if the file does not exist, the file - // transfer fails, or if there was an error reading the file. This is a - // blocking call until the file transfer is complete. - TransferToRemote(ctx context.Context, in *TransferToRemoteRequest, opts ...grpc.CallOption) (*TransferToRemoteResponse, error) - // Put streams data into a file on the target. The file is sent in - // sequential messages, each message containing up to 64KB of data. A final - // message must be sent that includes the hash of the data sent. An - // error is returned if the location does not exist or there is an error - // writing the data. If no checksum is received, the target must assume the - // operation is incomplete and remove the partially transmitted file. The - // target should initially write the file to a temporary location so a failure - // does not destroy the original file. - Put(ctx context.Context, opts ...grpc.CallOption) (File_PutClient, error) - // Stat returns metadata about a file on the target. An error is returned - // if the file does not exist of there is an error in accessing the metadata. - Stat(ctx context.Context, in *StatRequest, opts ...grpc.CallOption) (*StatResponse, error) - // Remove removes the specified file from the target. An error is - // returned if the file does not exist, is a directory, or the remove - // operation encounters an error (e.g., permission denied). - Remove(ctx context.Context, in *RemoveRequest, opts ...grpc.CallOption) (*RemoveResponse, error) -} - -type fileClient struct { - cc grpc.ClientConnInterface -} - -func NewFileClient(cc grpc.ClientConnInterface) FileClient { - return &fileClient{cc} -} - -func (c *fileClient) Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (File_GetClient, error) { - stream, err := c.cc.NewStream(ctx, &File_ServiceDesc.Streams[0], "/gnoi.file.File/Get", opts...) - if err != nil { - return nil, err - } - x := &fileGetClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type File_GetClient interface { - Recv() (*GetResponse, error) - grpc.ClientStream -} - -type fileGetClient struct { - grpc.ClientStream -} - -func (x *fileGetClient) Recv() (*GetResponse, error) { - m := new(GetResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *fileClient) TransferToRemote(ctx context.Context, in *TransferToRemoteRequest, opts ...grpc.CallOption) (*TransferToRemoteResponse, error) { - out := new(TransferToRemoteResponse) - err := c.cc.Invoke(ctx, "/gnoi.file.File/TransferToRemote", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *fileClient) Put(ctx context.Context, opts ...grpc.CallOption) (File_PutClient, error) { - stream, err := c.cc.NewStream(ctx, &File_ServiceDesc.Streams[1], "/gnoi.file.File/Put", opts...) - if err != nil { - return nil, err - } - x := &filePutClient{stream} - return x, nil -} - -type File_PutClient interface { - Send(*PutRequest) error - CloseAndRecv() (*PutResponse, error) - grpc.ClientStream -} - -type filePutClient struct { - grpc.ClientStream -} - -func (x *filePutClient) Send(m *PutRequest) error { - return x.ClientStream.SendMsg(m) -} - -func (x *filePutClient) CloseAndRecv() (*PutResponse, error) { - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - m := new(PutResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *fileClient) Stat(ctx context.Context, in *StatRequest, opts ...grpc.CallOption) (*StatResponse, error) { - out := new(StatResponse) - err := c.cc.Invoke(ctx, "/gnoi.file.File/Stat", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *fileClient) Remove(ctx context.Context, in *RemoveRequest, opts ...grpc.CallOption) (*RemoveResponse, error) { - out := new(RemoveResponse) - err := c.cc.Invoke(ctx, "/gnoi.file.File/Remove", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// FileServer is the server API for File service. -// All implementations must embed UnimplementedFileServer -// for forward compatibility -type FileServer interface { - // Get reads and streams the contents of a file from the target. - // The file is streamed by sequential messages, each containing up to - // 64KB of data. A final message is sent prior to closing the stream - // that contains the hash of the data sent. An error is returned - // if the file does not exist or there was an error reading the file. - Get(*GetRequest, File_GetServer) error - // TransferToRemote transfers the contents of a file from the target to a - // specified remote location. The response contains the hash of the data - // transferred. An error is returned if the file does not exist, the file - // transfer fails, or if there was an error reading the file. This is a - // blocking call until the file transfer is complete. - TransferToRemote(context.Context, *TransferToRemoteRequest) (*TransferToRemoteResponse, error) - // Put streams data into a file on the target. The file is sent in - // sequential messages, each message containing up to 64KB of data. A final - // message must be sent that includes the hash of the data sent. An - // error is returned if the location does not exist or there is an error - // writing the data. If no checksum is received, the target must assume the - // operation is incomplete and remove the partially transmitted file. The - // target should initially write the file to a temporary location so a failure - // does not destroy the original file. - Put(File_PutServer) error - // Stat returns metadata about a file on the target. An error is returned - // if the file does not exist of there is an error in accessing the metadata. - Stat(context.Context, *StatRequest) (*StatResponse, error) - // Remove removes the specified file from the target. An error is - // returned if the file does not exist, is a directory, or the remove - // operation encounters an error (e.g., permission denied). - Remove(context.Context, *RemoveRequest) (*RemoveResponse, error) - mustEmbedUnimplementedFileServer() -} - -// UnimplementedFileServer must be embedded to have forward compatible implementations. -type UnimplementedFileServer struct { -} - -func (UnimplementedFileServer) Get(*GetRequest, File_GetServer) error { - return status.Errorf(codes.Unimplemented, "method Get not implemented") -} -func (UnimplementedFileServer) TransferToRemote(context.Context, *TransferToRemoteRequest) (*TransferToRemoteResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method TransferToRemote not implemented") -} -func (UnimplementedFileServer) Put(File_PutServer) error { - return status.Errorf(codes.Unimplemented, "method Put not implemented") -} -func (UnimplementedFileServer) Stat(context.Context, *StatRequest) (*StatResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Stat not implemented") -} -func (UnimplementedFileServer) Remove(context.Context, *RemoveRequest) (*RemoveResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Remove not implemented") -} -func (UnimplementedFileServer) mustEmbedUnimplementedFileServer() {} - -// UnsafeFileServer may be embedded to opt out of forward compatibility for this service. -// Use of this interface is not recommended, as added methods to FileServer will -// result in compilation errors. -type UnsafeFileServer interface { - mustEmbedUnimplementedFileServer() -} - -func RegisterFileServer(s grpc.ServiceRegistrar, srv FileServer) { - s.RegisterService(&File_ServiceDesc, srv) -} - -func _File_Get_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(GetRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(FileServer).Get(m, &fileGetServer{stream}) -} - -type File_GetServer interface { - Send(*GetResponse) error - grpc.ServerStream -} - -type fileGetServer struct { - grpc.ServerStream -} - -func (x *fileGetServer) Send(m *GetResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _File_TransferToRemote_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TransferToRemoteRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(FileServer).TransferToRemote(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.file.File/TransferToRemote", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(FileServer).TransferToRemote(ctx, req.(*TransferToRemoteRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _File_Put_Handler(srv interface{}, stream grpc.ServerStream) error { - return srv.(FileServer).Put(&filePutServer{stream}) -} - -type File_PutServer interface { - SendAndClose(*PutResponse) error - Recv() (*PutRequest, error) - grpc.ServerStream -} - -type filePutServer struct { - grpc.ServerStream -} - -func (x *filePutServer) SendAndClose(m *PutResponse) error { - return x.ServerStream.SendMsg(m) -} - -func (x *filePutServer) Recv() (*PutRequest, error) { - m := new(PutRequest) - if err := x.ServerStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func _File_Stat_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(StatRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(FileServer).Stat(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.file.File/Stat", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(FileServer).Stat(ctx, req.(*StatRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _File_Remove_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RemoveRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(FileServer).Remove(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.file.File/Remove", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(FileServer).Remove(ctx, req.(*RemoveRequest)) - } - return interceptor(ctx, in, info, handler) -} - -// File_ServiceDesc is the grpc.ServiceDesc for File service. -// It's only intended for direct use with grpc.RegisterService, -// and not to be introspected or modified (even as a copy) -var File_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "gnoi.file.File", - HandlerType: (*FileServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "TransferToRemote", - Handler: _File_TransferToRemote_Handler, - }, - { - MethodName: "Stat", - Handler: _File_Stat_Handler, - }, - { - MethodName: "Remove", - Handler: _File_Remove_Handler, - }, - }, - Streams: []grpc.StreamDesc{ - { - StreamName: "Get", - Handler: _File_Get_Handler, - ServerStreams: true, - }, - { - StreamName: "Put", - Handler: _File_Put_Handler, - ClientStreams: true, - }, - }, - Metadata: "file/file.proto", -} diff --git a/go.mod b/go.mod index 8331392f..b084997e 100644 --- a/go.mod +++ b/go.mod @@ -3,8 +3,7 @@ module github.com/openconfig/gnoi go 1.15 require ( - github.com/golang/protobuf v1.5.0 + github.com/golang/protobuf v1.4.3 golang.org/x/net v0.0.0-20201110031124-69a78807bb2b google.golang.org/grpc v1.33.2 - google.golang.org/protobuf v1.26.0 ) diff --git a/go.sum b/go.sum index dee70a0f..0b6e5e08 100644 --- a/go.sum +++ b/go.sum @@ -17,15 +17,13 @@ github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrU github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w= github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0= github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8= -github.com/golang/protobuf v1.5.0 h1:LUVKkCeviFUMKqHa4tXIIij/lbhnMbP7Fn5wKdKkRh4= -github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= +github.com/golang/protobuf v1.4.3 h1:JjCZWpVbqXDqFVmTfYWEVTMIYrL/NPdPSCHPJ0T/raM= +github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.5 h1:Khx7svrCpmxxtHBq5j2mp/xVjsi8hQMfNLvJFAlrGgU= -github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= @@ -48,7 +46,6 @@ golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJ golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f h1:+Nyd8tzPX9R7BWHguqsrbFdRx3WQ/1ib8I44HXV5yTA= golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.3 h1:cokOdA+Jmi5PJGXLlLllQSgYigAEfHXJAERHVMaCc2k= @@ -58,7 +55,6 @@ golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGm golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= -golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= @@ -78,11 +74,9 @@ google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQ google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE= google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo= google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= google.golang.org/protobuf v1.25.0 h1:Ejskq+SyPohKW+1uil0JJMtmHCgJPJ/qWTxr8qp+R4c= google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c= -google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= -google.golang.org/protobuf v1.26.0 h1:bxAC2xTBsZGibn2RTntX0oH50xLsqy1OxA9tTL3p/lk= -google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= diff --git a/interface/interface.pb.go b/interface/interface.pb.go index 41986498..09a5c64e 100644 --- a/interface/interface.pb.go +++ b/interface/interface.pb.go @@ -1,510 +1,432 @@ -// -// Copyright 2017 Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// - // Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.26.0 -// protoc v3.15.7 // source: interface/interface.proto -package _interface +package gnoi_interface import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" types "github.com/openconfig/gnoi/types" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" + context "golang.org/x/net/context" + grpc "google.golang.org/grpc" + math "math" ) -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// SetLoopbackModeRequest requests the provide interface be have its loopback -// mode set to the specified mode. The mode may be vendor specific. For example, -// on a transport device, available modes are "none", "mac", "phy", -// "phy_remote", "framer_facility", and "framer_terminal". +// 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 + +// SetLoopbackModeRequest requests the provide interface be have its loopback mode +// set to mode. Mode may be vendor specific. For example, on a transport +// device, available modes are "none", "mac", "phy", "phy_remote", +// "framer_facility", and "framer_terminal". type SetLoopbackModeRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Interface *types.Path `protobuf:"bytes,1,opt,name=interface,proto3" json:"interface,omitempty"` - Mode string `protobuf:"bytes,2,opt,name=mode,proto3" json:"mode,omitempty"` + Interface *types.Path `protobuf:"bytes,1,opt,name=interface,proto3" json:"interface,omitempty"` + Mode string `protobuf:"bytes,2,opt,name=mode,proto3" json:"mode,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *SetLoopbackModeRequest) Reset() { - *x = SetLoopbackModeRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_interface_interface_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *SetLoopbackModeRequest) Reset() { *m = SetLoopbackModeRequest{} } +func (m *SetLoopbackModeRequest) String() string { return proto.CompactTextString(m) } +func (*SetLoopbackModeRequest) ProtoMessage() {} +func (*SetLoopbackModeRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_460c38aebb3cb2d6, []int{0} } -func (x *SetLoopbackModeRequest) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *SetLoopbackModeRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SetLoopbackModeRequest.Unmarshal(m, b) } - -func (*SetLoopbackModeRequest) ProtoMessage() {} - -func (x *SetLoopbackModeRequest) ProtoReflect() protoreflect.Message { - mi := &file_interface_interface_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *SetLoopbackModeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SetLoopbackModeRequest.Marshal(b, m, deterministic) } - -// Deprecated: Use SetLoopbackModeRequest.ProtoReflect.Descriptor instead. -func (*SetLoopbackModeRequest) Descriptor() ([]byte, []int) { - return file_interface_interface_proto_rawDescGZIP(), []int{0} +func (m *SetLoopbackModeRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_SetLoopbackModeRequest.Merge(m, src) } +func (m *SetLoopbackModeRequest) XXX_Size() int { + return xxx_messageInfo_SetLoopbackModeRequest.Size(m) +} +func (m *SetLoopbackModeRequest) XXX_DiscardUnknown() { + xxx_messageInfo_SetLoopbackModeRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_SetLoopbackModeRequest proto.InternalMessageInfo -func (x *SetLoopbackModeRequest) GetInterface() *types.Path { - if x != nil { - return x.Interface +func (m *SetLoopbackModeRequest) GetInterface() *types.Path { + if m != nil { + return m.Interface } return nil } -func (x *SetLoopbackModeRequest) GetMode() string { - if x != nil { - return x.Mode +func (m *SetLoopbackModeRequest) GetMode() string { + if m != nil { + return m.Mode } return "" } type SetLoopbackModeResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *SetLoopbackModeResponse) Reset() { - *x = SetLoopbackModeResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_interface_interface_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *SetLoopbackModeResponse) Reset() { *m = SetLoopbackModeResponse{} } +func (m *SetLoopbackModeResponse) String() string { return proto.CompactTextString(m) } +func (*SetLoopbackModeResponse) ProtoMessage() {} +func (*SetLoopbackModeResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_460c38aebb3cb2d6, []int{1} } -func (x *SetLoopbackModeResponse) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *SetLoopbackModeResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SetLoopbackModeResponse.Unmarshal(m, b) +} +func (m *SetLoopbackModeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SetLoopbackModeResponse.Marshal(b, m, deterministic) +} +func (m *SetLoopbackModeResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_SetLoopbackModeResponse.Merge(m, src) +} +func (m *SetLoopbackModeResponse) XXX_Size() int { + return xxx_messageInfo_SetLoopbackModeResponse.Size(m) +} +func (m *SetLoopbackModeResponse) XXX_DiscardUnknown() { + xxx_messageInfo_SetLoopbackModeResponse.DiscardUnknown(m) } -func (*SetLoopbackModeResponse) ProtoMessage() {} +var xxx_messageInfo_SetLoopbackModeResponse proto.InternalMessageInfo -func (x *SetLoopbackModeResponse) ProtoReflect() protoreflect.Message { - mi := &file_interface_interface_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +type GetLoopbackModeRequest struct { + Interface *types.Path `protobuf:"bytes,1,opt,name=interface,proto3" json:"interface,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -// Deprecated: Use SetLoopbackModeResponse.ProtoReflect.Descriptor instead. -func (*SetLoopbackModeResponse) Descriptor() ([]byte, []int) { - return file_interface_interface_proto_rawDescGZIP(), []int{1} +func (m *GetLoopbackModeRequest) Reset() { *m = GetLoopbackModeRequest{} } +func (m *GetLoopbackModeRequest) String() string { return proto.CompactTextString(m) } +func (*GetLoopbackModeRequest) ProtoMessage() {} +func (*GetLoopbackModeRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_460c38aebb3cb2d6, []int{2} } -type GetLoopbackModeRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Interface *types.Path `protobuf:"bytes,1,opt,name=interface,proto3" json:"interface,omitempty"` +func (m *GetLoopbackModeRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetLoopbackModeRequest.Unmarshal(m, b) +} +func (m *GetLoopbackModeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetLoopbackModeRequest.Marshal(b, m, deterministic) +} +func (m *GetLoopbackModeRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetLoopbackModeRequest.Merge(m, src) +} +func (m *GetLoopbackModeRequest) XXX_Size() int { + return xxx_messageInfo_GetLoopbackModeRequest.Size(m) +} +func (m *GetLoopbackModeRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetLoopbackModeRequest.DiscardUnknown(m) } -func (x *GetLoopbackModeRequest) Reset() { - *x = GetLoopbackModeRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_interface_interface_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +var xxx_messageInfo_GetLoopbackModeRequest proto.InternalMessageInfo + +func (m *GetLoopbackModeRequest) GetInterface() *types.Path { + if m != nil { + return m.Interface } + return nil } -func (x *GetLoopbackModeRequest) String() string { - return protoimpl.X.MessageStringOf(x) +type GetLoopbackModeResponse struct { + Mode string `protobuf:"bytes,1,opt,name=mode,proto3" json:"mode,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (*GetLoopbackModeRequest) ProtoMessage() {} - -func (x *GetLoopbackModeRequest) ProtoReflect() protoreflect.Message { - mi := &file_interface_interface_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *GetLoopbackModeResponse) Reset() { *m = GetLoopbackModeResponse{} } +func (m *GetLoopbackModeResponse) String() string { return proto.CompactTextString(m) } +func (*GetLoopbackModeResponse) ProtoMessage() {} +func (*GetLoopbackModeResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_460c38aebb3cb2d6, []int{3} } -// Deprecated: Use GetLoopbackModeRequest.ProtoReflect.Descriptor instead. -func (*GetLoopbackModeRequest) Descriptor() ([]byte, []int) { - return file_interface_interface_proto_rawDescGZIP(), []int{2} +func (m *GetLoopbackModeResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetLoopbackModeResponse.Unmarshal(m, b) +} +func (m *GetLoopbackModeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetLoopbackModeResponse.Marshal(b, m, deterministic) +} +func (m *GetLoopbackModeResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetLoopbackModeResponse.Merge(m, src) } +func (m *GetLoopbackModeResponse) XXX_Size() int { + return xxx_messageInfo_GetLoopbackModeResponse.Size(m) +} +func (m *GetLoopbackModeResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetLoopbackModeResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_GetLoopbackModeResponse proto.InternalMessageInfo -func (x *GetLoopbackModeRequest) GetInterface() *types.Path { - if x != nil { - return x.Interface +func (m *GetLoopbackModeResponse) GetMode() string { + if m != nil { + return m.Mode } - return nil + return "" } -type GetLoopbackModeResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Mode string `protobuf:"bytes,1,opt,name=mode,proto3" json:"mode,omitempty"` +type ClearInterfaceCountersRequest struct { + Interface []*types.Path `protobuf:"bytes,1,rep,name=interface,proto3" json:"interface,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *GetLoopbackModeResponse) Reset() { - *x = GetLoopbackModeResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_interface_interface_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *ClearInterfaceCountersRequest) Reset() { *m = ClearInterfaceCountersRequest{} } +func (m *ClearInterfaceCountersRequest) String() string { return proto.CompactTextString(m) } +func (*ClearInterfaceCountersRequest) ProtoMessage() {} +func (*ClearInterfaceCountersRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_460c38aebb3cb2d6, []int{4} } -func (x *GetLoopbackModeResponse) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *ClearInterfaceCountersRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ClearInterfaceCountersRequest.Unmarshal(m, b) +} +func (m *ClearInterfaceCountersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ClearInterfaceCountersRequest.Marshal(b, m, deterministic) +} +func (m *ClearInterfaceCountersRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ClearInterfaceCountersRequest.Merge(m, src) +} +func (m *ClearInterfaceCountersRequest) XXX_Size() int { + return xxx_messageInfo_ClearInterfaceCountersRequest.Size(m) +} +func (m *ClearInterfaceCountersRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ClearInterfaceCountersRequest.DiscardUnknown(m) } -func (*GetLoopbackModeResponse) ProtoMessage() {} +var xxx_messageInfo_ClearInterfaceCountersRequest proto.InternalMessageInfo -func (x *GetLoopbackModeResponse) ProtoReflect() protoreflect.Message { - mi := &file_interface_interface_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms +func (m *ClearInterfaceCountersRequest) GetInterface() []*types.Path { + if m != nil { + return m.Interface } - return mi.MessageOf(x) + return nil } -// Deprecated: Use GetLoopbackModeResponse.ProtoReflect.Descriptor instead. -func (*GetLoopbackModeResponse) Descriptor() ([]byte, []int) { - return file_interface_interface_proto_rawDescGZIP(), []int{3} +type ClearInterfaceCountersResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *GetLoopbackModeResponse) GetMode() string { - if x != nil { - return x.Mode - } - return "" +func (m *ClearInterfaceCountersResponse) Reset() { *m = ClearInterfaceCountersResponse{} } +func (m *ClearInterfaceCountersResponse) String() string { return proto.CompactTextString(m) } +func (*ClearInterfaceCountersResponse) ProtoMessage() {} +func (*ClearInterfaceCountersResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_460c38aebb3cb2d6, []int{5} } -type ClearInterfaceCountersRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Interface []*types.Path `protobuf:"bytes,1,rep,name=interface,proto3" json:"interface,omitempty"` +func (m *ClearInterfaceCountersResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ClearInterfaceCountersResponse.Unmarshal(m, b) +} +func (m *ClearInterfaceCountersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ClearInterfaceCountersResponse.Marshal(b, m, deterministic) +} +func (m *ClearInterfaceCountersResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ClearInterfaceCountersResponse.Merge(m, src) +} +func (m *ClearInterfaceCountersResponse) XXX_Size() int { + return xxx_messageInfo_ClearInterfaceCountersResponse.Size(m) +} +func (m *ClearInterfaceCountersResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ClearInterfaceCountersResponse.DiscardUnknown(m) } -func (x *ClearInterfaceCountersRequest) Reset() { - *x = ClearInterfaceCountersRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_interface_interface_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +var xxx_messageInfo_ClearInterfaceCountersResponse proto.InternalMessageInfo + +func init() { + proto.RegisterType((*SetLoopbackModeRequest)(nil), "gnoi.interface.SetLoopbackModeRequest") + proto.RegisterType((*SetLoopbackModeResponse)(nil), "gnoi.interface.SetLoopbackModeResponse") + proto.RegisterType((*GetLoopbackModeRequest)(nil), "gnoi.interface.GetLoopbackModeRequest") + proto.RegisterType((*GetLoopbackModeResponse)(nil), "gnoi.interface.GetLoopbackModeResponse") + proto.RegisterType((*ClearInterfaceCountersRequest)(nil), "gnoi.interface.ClearInterfaceCountersRequest") + proto.RegisterType((*ClearInterfaceCountersResponse)(nil), "gnoi.interface.ClearInterfaceCountersResponse") } -func (x *ClearInterfaceCountersRequest) String() string { - return protoimpl.X.MessageStringOf(x) +func init() { proto.RegisterFile("interface/interface.proto", fileDescriptor_460c38aebb3cb2d6) } + +var fileDescriptor_460c38aebb3cb2d6 = []byte{ + // 298 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xcc, 0xcc, 0x2b, 0x49, + 0x2d, 0x4a, 0x4b, 0x4c, 0x4e, 0xd5, 0x87, 0xb3, 0xf4, 0x0a, 0x8a, 0xf2, 0x4b, 0xf2, 0x85, 0xf8, + 0xd2, 0xf3, 0xf2, 0x33, 0xf5, 0xe0, 0xa2, 0x52, 0x3a, 0xe9, 0x99, 0x25, 0x19, 0xa5, 0x49, 0x7a, + 0xc9, 0xf9, 0xb9, 0xfa, 0xf9, 0x05, 0xa9, 0x79, 0xc9, 0xf9, 0x79, 0x69, 0x99, 0xe9, 0xfa, 0x20, + 0x55, 0xfa, 0x25, 0x95, 0x05, 0xa9, 0xc5, 0x10, 0x12, 0xa2, 0x5b, 0x29, 0x86, 0x4b, 0x2c, 0x38, + 0xb5, 0xc4, 0x27, 0x3f, 0xbf, 0x20, 0x29, 0x31, 0x39, 0xdb, 0x37, 0x3f, 0x25, 0x35, 0x28, 0xb5, + 0xb0, 0x34, 0xb5, 0xb8, 0x44, 0x48, 0x8f, 0x8b, 0x13, 0x6e, 0xa8, 0x04, 0xa3, 0x02, 0xa3, 0x06, + 0xb7, 0x91, 0x80, 0x1e, 0xd8, 0x2e, 0x88, 0xfe, 0x80, 0xc4, 0x92, 0x8c, 0x20, 0x84, 0x12, 0x21, + 0x21, 0x2e, 0x96, 0xdc, 0xfc, 0x94, 0x54, 0x09, 0x26, 0x05, 0x46, 0x0d, 0xce, 0x20, 0x30, 0x5b, + 0x49, 0x92, 0x4b, 0x1c, 0xc3, 0xf4, 0xe2, 0x82, 0xfc, 0xbc, 0xe2, 0x54, 0x25, 0x0f, 0x2e, 0x31, + 0x77, 0xaa, 0x58, 0xac, 0xa4, 0xcb, 0x25, 0xee, 0x8e, 0xdd, 0x12, 0xb8, 0x9b, 0x18, 0x91, 0xdc, + 0xe4, 0xcf, 0x25, 0xeb, 0x9c, 0x93, 0x9a, 0x58, 0xe4, 0x09, 0x33, 0xc0, 0x39, 0xbf, 0x14, 0xc4, + 0x2c, 0xc6, 0x61, 0x3f, 0x33, 0x21, 0xfb, 0x15, 0xb8, 0xe4, 0x70, 0x19, 0x08, 0x71, 0x86, 0xd1, + 0x25, 0x26, 0x2e, 0x4e, 0xb8, 0xac, 0x50, 0x0a, 0x17, 0x3f, 0x5a, 0xa0, 0x08, 0xa9, 0xe9, 0xa1, + 0x46, 0xa2, 0x1e, 0xf6, 0x38, 0x91, 0x52, 0x27, 0xa8, 0x0e, 0x1a, 0xba, 0x0c, 0x20, 0x5b, 0xdc, + 0x09, 0xd9, 0xe2, 0x4e, 0xa4, 0x2d, 0xee, 0x38, 0x6d, 0xa9, 0xe4, 0x12, 0xc3, 0xee, 0x77, 0x21, + 0x5d, 0x74, 0x43, 0xf0, 0x06, 0xba, 0x94, 0x1e, 0xb1, 0xca, 0x61, 0x56, 0x3b, 0x71, 0x5c, 0xb2, + 0x63, 0x35, 0xd0, 0x33, 0xd4, 0x33, 0x48, 0x62, 0x03, 0x27, 0x65, 0x63, 0x40, 0x00, 0x00, 0x00, + 0xff, 0xff, 0x00, 0x88, 0x3f, 0x97, 0x25, 0x03, 0x00, 0x00, } -func (*ClearInterfaceCountersRequest) ProtoMessage() {} +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn -func (x *ClearInterfaceCountersRequest) ProtoReflect() protoreflect.Message { - mi := &file_interface_interface_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion4 + +// InterfaceClient is the client API for Interface service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type InterfaceClient interface { + // SetLoopbackMode is used to set the mode of loopback on a interface. + SetLoopbackMode(ctx context.Context, in *SetLoopbackModeRequest, opts ...grpc.CallOption) (*SetLoopbackModeResponse, error) + // GetLoopbackMode is used to get the mode of loopback on a interface. + GetLoopbackMode(ctx context.Context, in *GetLoopbackModeRequest, opts ...grpc.CallOption) (*GetLoopbackModeResponse, error) + // ClearInterfaceCounters will reset the counters for the provided interface. + ClearInterfaceCounters(ctx context.Context, in *ClearInterfaceCountersRequest, opts ...grpc.CallOption) (*ClearInterfaceCountersResponse, error) } -// Deprecated: Use ClearInterfaceCountersRequest.ProtoReflect.Descriptor instead. -func (*ClearInterfaceCountersRequest) Descriptor() ([]byte, []int) { - return file_interface_interface_proto_rawDescGZIP(), []int{4} +type interfaceClient struct { + cc *grpc.ClientConn +} + +func NewInterfaceClient(cc *grpc.ClientConn) InterfaceClient { + return &interfaceClient{cc} } -func (x *ClearInterfaceCountersRequest) GetInterface() []*types.Path { - if x != nil { - return x.Interface +func (c *interfaceClient) SetLoopbackMode(ctx context.Context, in *SetLoopbackModeRequest, opts ...grpc.CallOption) (*SetLoopbackModeResponse, error) { + out := new(SetLoopbackModeResponse) + err := c.cc.Invoke(ctx, "/gnoi.interface.Interface/SetLoopbackMode", in, out, opts...) + if err != nil { + return nil, err } - return nil + return out, nil } -type ClearInterfaceCountersResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields +func (c *interfaceClient) GetLoopbackMode(ctx context.Context, in *GetLoopbackModeRequest, opts ...grpc.CallOption) (*GetLoopbackModeResponse, error) { + out := new(GetLoopbackModeResponse) + err := c.cc.Invoke(ctx, "/gnoi.interface.Interface/GetLoopbackMode", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil } -func (x *ClearInterfaceCountersResponse) Reset() { - *x = ClearInterfaceCountersResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_interface_interface_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (c *interfaceClient) ClearInterfaceCounters(ctx context.Context, in *ClearInterfaceCountersRequest, opts ...grpc.CallOption) (*ClearInterfaceCountersResponse, error) { + out := new(ClearInterfaceCountersResponse) + err := c.cc.Invoke(ctx, "/gnoi.interface.Interface/ClearInterfaceCounters", in, out, opts...) + if err != nil { + return nil, err } + return out, nil } -func (x *ClearInterfaceCountersResponse) String() string { - return protoimpl.X.MessageStringOf(x) +// InterfaceServer is the server API for Interface service. +type InterfaceServer interface { + // SetLoopbackMode is used to set the mode of loopback on a interface. + SetLoopbackMode(context.Context, *SetLoopbackModeRequest) (*SetLoopbackModeResponse, error) + // GetLoopbackMode is used to get the mode of loopback on a interface. + GetLoopbackMode(context.Context, *GetLoopbackModeRequest) (*GetLoopbackModeResponse, error) + // ClearInterfaceCounters will reset the counters for the provided interface. + ClearInterfaceCounters(context.Context, *ClearInterfaceCountersRequest) (*ClearInterfaceCountersResponse, error) } -func (*ClearInterfaceCountersResponse) ProtoMessage() {} +func RegisterInterfaceServer(s *grpc.Server, srv InterfaceServer) { + s.RegisterService(&_Interface_serviceDesc, srv) +} -func (x *ClearInterfaceCountersResponse) ProtoReflect() protoreflect.Message { - mi := &file_interface_interface_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms +func _Interface_SetLoopbackMode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SetLoopbackModeRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(InterfaceServer).SetLoopbackMode(ctx, in) } - return mi.MessageOf(x) + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gnoi.interface.Interface/SetLoopbackMode", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(InterfaceServer).SetLoopbackMode(ctx, req.(*SetLoopbackModeRequest)) + } + return interceptor(ctx, in, info, handler) } -// Deprecated: Use ClearInterfaceCountersResponse.ProtoReflect.Descriptor instead. -func (*ClearInterfaceCountersResponse) Descriptor() ([]byte, []int) { - return file_interface_interface_proto_rawDescGZIP(), []int{5} -} - -var File_interface_interface_proto protoreflect.FileDescriptor - -var file_interface_interface_proto_rawDesc = []byte{ - 0x0a, 0x19, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x2f, 0x69, 0x6e, 0x74, 0x65, - 0x72, 0x66, 0x61, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x67, 0x6e, 0x6f, - 0x69, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x1a, 0x2c, 0x67, 0x69, 0x74, - 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x6f, 0x6e, 0x66, - 0x69, 0x67, 0x2f, 0x67, 0x6e, 0x6f, 0x69, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x74, 0x79, - 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x5c, 0x0a, 0x16, 0x53, 0x65, 0x74, - 0x4c, 0x6f, 0x6f, 0x70, 0x62, 0x61, 0x63, 0x6b, 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x2e, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x74, 0x79, - 0x70, 0x65, 0x73, 0x2e, 0x50, 0x61, 0x74, 0x68, 0x52, 0x09, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, - 0x61, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x22, 0x19, 0x0a, 0x17, 0x53, 0x65, 0x74, 0x4c, 0x6f, - 0x6f, 0x70, 0x62, 0x61, 0x63, 0x6b, 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x48, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x4c, 0x6f, 0x6f, 0x70, 0x62, 0x61, 0x63, - 0x6b, 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2e, 0x0a, 0x09, - 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x10, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x50, 0x61, 0x74, - 0x68, 0x52, 0x09, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x22, 0x2d, 0x0a, 0x17, - 0x47, 0x65, 0x74, 0x4c, 0x6f, 0x6f, 0x70, 0x62, 0x61, 0x63, 0x6b, 0x4d, 0x6f, 0x64, 0x65, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x22, 0x4f, 0x0a, 0x1d, 0x43, - 0x6c, 0x65, 0x61, 0x72, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x43, 0x6f, 0x75, - 0x6e, 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2e, 0x0a, 0x09, - 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x10, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x50, 0x61, 0x74, - 0x68, 0x52, 0x09, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x22, 0x20, 0x0a, 0x1e, - 0x43, 0x6c, 0x65, 0x61, 0x72, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x43, 0x6f, - 0x75, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xd2, - 0x02, 0x0a, 0x09, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x12, 0x64, 0x0a, 0x0f, - 0x53, 0x65, 0x74, 0x4c, 0x6f, 0x6f, 0x70, 0x62, 0x61, 0x63, 0x6b, 0x4d, 0x6f, 0x64, 0x65, 0x12, - 0x26, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, - 0x2e, 0x53, 0x65, 0x74, 0x4c, 0x6f, 0x6f, 0x70, 0x62, 0x61, 0x63, 0x6b, 0x4d, 0x6f, 0x64, 0x65, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x69, - 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x2e, 0x53, 0x65, 0x74, 0x4c, 0x6f, 0x6f, 0x70, - 0x62, 0x61, 0x63, 0x6b, 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x00, 0x12, 0x64, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x4c, 0x6f, 0x6f, 0x70, 0x62, 0x61, 0x63, - 0x6b, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x26, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x69, 0x6e, 0x74, - 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x2e, 0x47, 0x65, 0x74, 0x4c, 0x6f, 0x6f, 0x70, 0x62, 0x61, - 0x63, 0x6b, 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, - 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x2e, 0x47, - 0x65, 0x74, 0x4c, 0x6f, 0x6f, 0x70, 0x62, 0x61, 0x63, 0x6b, 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x79, 0x0a, 0x16, 0x43, 0x6c, 0x65, 0x61, - 0x72, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x65, - 0x72, 0x73, 0x12, 0x2d, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, - 0x61, 0x63, 0x65, 0x2e, 0x43, 0x6c, 0x65, 0x61, 0x72, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, - 0x63, 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x2e, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, - 0x63, 0x65, 0x2e, 0x43, 0x6c, 0x65, 0x61, 0x72, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, - 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x00, 0x42, 0x2e, 0x5a, 0x24, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, - 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x67, 0x6e, 0x6f, - 0x69, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0xd2, 0x3e, 0x05, 0x30, 0x2e, - 0x31, 0x2e, 0x30, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_interface_interface_proto_rawDescOnce sync.Once - file_interface_interface_proto_rawDescData = file_interface_interface_proto_rawDesc -) +func _Interface_GetLoopbackMode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetLoopbackModeRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(InterfaceServer).GetLoopbackMode(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gnoi.interface.Interface/GetLoopbackMode", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(InterfaceServer).GetLoopbackMode(ctx, req.(*GetLoopbackModeRequest)) + } + return interceptor(ctx, in, info, handler) +} -func file_interface_interface_proto_rawDescGZIP() []byte { - file_interface_interface_proto_rawDescOnce.Do(func() { - file_interface_interface_proto_rawDescData = protoimpl.X.CompressGZIP(file_interface_interface_proto_rawDescData) - }) - return file_interface_interface_proto_rawDescData -} - -var file_interface_interface_proto_msgTypes = make([]protoimpl.MessageInfo, 6) -var file_interface_interface_proto_goTypes = []interface{}{ - (*SetLoopbackModeRequest)(nil), // 0: gnoi.interface.SetLoopbackModeRequest - (*SetLoopbackModeResponse)(nil), // 1: gnoi.interface.SetLoopbackModeResponse - (*GetLoopbackModeRequest)(nil), // 2: gnoi.interface.GetLoopbackModeRequest - (*GetLoopbackModeResponse)(nil), // 3: gnoi.interface.GetLoopbackModeResponse - (*ClearInterfaceCountersRequest)(nil), // 4: gnoi.interface.ClearInterfaceCountersRequest - (*ClearInterfaceCountersResponse)(nil), // 5: gnoi.interface.ClearInterfaceCountersResponse - (*types.Path)(nil), // 6: gnoi.types.Path -} -var file_interface_interface_proto_depIdxs = []int32{ - 6, // 0: gnoi.interface.SetLoopbackModeRequest.interface:type_name -> gnoi.types.Path - 6, // 1: gnoi.interface.GetLoopbackModeRequest.interface:type_name -> gnoi.types.Path - 6, // 2: gnoi.interface.ClearInterfaceCountersRequest.interface:type_name -> gnoi.types.Path - 0, // 3: gnoi.interface.Interface.SetLoopbackMode:input_type -> gnoi.interface.SetLoopbackModeRequest - 2, // 4: gnoi.interface.Interface.GetLoopbackMode:input_type -> gnoi.interface.GetLoopbackModeRequest - 4, // 5: gnoi.interface.Interface.ClearInterfaceCounters:input_type -> gnoi.interface.ClearInterfaceCountersRequest - 1, // 6: gnoi.interface.Interface.SetLoopbackMode:output_type -> gnoi.interface.SetLoopbackModeResponse - 3, // 7: gnoi.interface.Interface.GetLoopbackMode:output_type -> gnoi.interface.GetLoopbackModeResponse - 5, // 8: gnoi.interface.Interface.ClearInterfaceCounters:output_type -> gnoi.interface.ClearInterfaceCountersResponse - 6, // [6:9] is the sub-list for method output_type - 3, // [3:6] is the sub-list for method input_type - 3, // [3:3] is the sub-list for extension type_name - 3, // [3:3] is the sub-list for extension extendee - 0, // [0:3] is the sub-list for field type_name -} - -func init() { file_interface_interface_proto_init() } -func file_interface_interface_proto_init() { - if File_interface_interface_proto != nil { - return +func _Interface_ClearInterfaceCounters_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ClearInterfaceCountersRequest) + if err := dec(in); err != nil { + return nil, err } - if !protoimpl.UnsafeEnabled { - file_interface_interface_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SetLoopbackModeRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_interface_interface_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SetLoopbackModeResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_interface_interface_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetLoopbackModeRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_interface_interface_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetLoopbackModeResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_interface_interface_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ClearInterfaceCountersRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_interface_interface_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ClearInterfaceCountersResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } + if interceptor == nil { + return srv.(InterfaceServer).ClearInterfaceCounters(ctx, in) } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_interface_interface_proto_rawDesc, - NumEnums: 0, - NumMessages: 6, - NumExtensions: 0, - NumServices: 1, + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gnoi.interface.Interface/ClearInterfaceCounters", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(InterfaceServer).ClearInterfaceCounters(ctx, req.(*ClearInterfaceCountersRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _Interface_serviceDesc = grpc.ServiceDesc{ + ServiceName: "gnoi.interface.Interface", + HandlerType: (*InterfaceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "SetLoopbackMode", + Handler: _Interface_SetLoopbackMode_Handler, + }, + { + MethodName: "GetLoopbackMode", + Handler: _Interface_GetLoopbackMode_Handler, + }, + { + MethodName: "ClearInterfaceCounters", + Handler: _Interface_ClearInterfaceCounters_Handler, }, - GoTypes: file_interface_interface_proto_goTypes, - DependencyIndexes: file_interface_interface_proto_depIdxs, - MessageInfos: file_interface_interface_proto_msgTypes, - }.Build() - File_interface_interface_proto = out.File - file_interface_interface_proto_rawDesc = nil - file_interface_interface_proto_goTypes = nil - file_interface_interface_proto_depIdxs = nil + }, + Streams: []grpc.StreamDesc{}, + Metadata: "interface/interface.proto", } diff --git a/interface/interface.proto b/interface/interface.proto index b4530ce6..bff9f11a 100644 --- a/interface/interface.proto +++ b/interface/interface.proto @@ -20,8 +20,6 @@ package gnoi.interface; import "github.com/openconfig/gnoi/types/types.proto"; -option go_package = "github.com/openconfig/gnoi/interface"; - option (types.gnoi_version) = "0.1.0"; service Interface { diff --git a/interface/interface_grpc.pb.go b/interface/interface_grpc.pb.go deleted file mode 100644 index 487487db..00000000 --- a/interface/interface_grpc.pb.go +++ /dev/null @@ -1,179 +0,0 @@ -// Code generated by protoc-gen-go-grpc. DO NOT EDIT. - -package _interface - -import ( - context "context" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" -) - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 - -// InterfaceClient is the client API for Interface service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. -type InterfaceClient interface { - // SetLoopbackMode is used to set the mode of loopback on a interface. - SetLoopbackMode(ctx context.Context, in *SetLoopbackModeRequest, opts ...grpc.CallOption) (*SetLoopbackModeResponse, error) - // GetLoopbackMode is used to get the mode of loopback on a interface. - GetLoopbackMode(ctx context.Context, in *GetLoopbackModeRequest, opts ...grpc.CallOption) (*GetLoopbackModeResponse, error) - // ClearInterfaceCounters will reset the counters for the provided interface. - ClearInterfaceCounters(ctx context.Context, in *ClearInterfaceCountersRequest, opts ...grpc.CallOption) (*ClearInterfaceCountersResponse, error) -} - -type interfaceClient struct { - cc grpc.ClientConnInterface -} - -func NewInterfaceClient(cc grpc.ClientConnInterface) InterfaceClient { - return &interfaceClient{cc} -} - -func (c *interfaceClient) SetLoopbackMode(ctx context.Context, in *SetLoopbackModeRequest, opts ...grpc.CallOption) (*SetLoopbackModeResponse, error) { - out := new(SetLoopbackModeResponse) - err := c.cc.Invoke(ctx, "/gnoi.interface.Interface/SetLoopbackMode", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *interfaceClient) GetLoopbackMode(ctx context.Context, in *GetLoopbackModeRequest, opts ...grpc.CallOption) (*GetLoopbackModeResponse, error) { - out := new(GetLoopbackModeResponse) - err := c.cc.Invoke(ctx, "/gnoi.interface.Interface/GetLoopbackMode", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *interfaceClient) ClearInterfaceCounters(ctx context.Context, in *ClearInterfaceCountersRequest, opts ...grpc.CallOption) (*ClearInterfaceCountersResponse, error) { - out := new(ClearInterfaceCountersResponse) - err := c.cc.Invoke(ctx, "/gnoi.interface.Interface/ClearInterfaceCounters", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// InterfaceServer is the server API for Interface service. -// All implementations must embed UnimplementedInterfaceServer -// for forward compatibility -type InterfaceServer interface { - // SetLoopbackMode is used to set the mode of loopback on a interface. - SetLoopbackMode(context.Context, *SetLoopbackModeRequest) (*SetLoopbackModeResponse, error) - // GetLoopbackMode is used to get the mode of loopback on a interface. - GetLoopbackMode(context.Context, *GetLoopbackModeRequest) (*GetLoopbackModeResponse, error) - // ClearInterfaceCounters will reset the counters for the provided interface. - ClearInterfaceCounters(context.Context, *ClearInterfaceCountersRequest) (*ClearInterfaceCountersResponse, error) - mustEmbedUnimplementedInterfaceServer() -} - -// UnimplementedInterfaceServer must be embedded to have forward compatible implementations. -type UnimplementedInterfaceServer struct { -} - -func (UnimplementedInterfaceServer) SetLoopbackMode(context.Context, *SetLoopbackModeRequest) (*SetLoopbackModeResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SetLoopbackMode not implemented") -} -func (UnimplementedInterfaceServer) GetLoopbackMode(context.Context, *GetLoopbackModeRequest) (*GetLoopbackModeResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetLoopbackMode not implemented") -} -func (UnimplementedInterfaceServer) ClearInterfaceCounters(context.Context, *ClearInterfaceCountersRequest) (*ClearInterfaceCountersResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ClearInterfaceCounters not implemented") -} -func (UnimplementedInterfaceServer) mustEmbedUnimplementedInterfaceServer() {} - -// UnsafeInterfaceServer may be embedded to opt out of forward compatibility for this service. -// Use of this interface is not recommended, as added methods to InterfaceServer will -// result in compilation errors. -type UnsafeInterfaceServer interface { - mustEmbedUnimplementedInterfaceServer() -} - -func RegisterInterfaceServer(s grpc.ServiceRegistrar, srv InterfaceServer) { - s.RegisterService(&Interface_ServiceDesc, srv) -} - -func _Interface_SetLoopbackMode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SetLoopbackModeRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(InterfaceServer).SetLoopbackMode(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.interface.Interface/SetLoopbackMode", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(InterfaceServer).SetLoopbackMode(ctx, req.(*SetLoopbackModeRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Interface_GetLoopbackMode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetLoopbackModeRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(InterfaceServer).GetLoopbackMode(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.interface.Interface/GetLoopbackMode", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(InterfaceServer).GetLoopbackMode(ctx, req.(*GetLoopbackModeRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Interface_ClearInterfaceCounters_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ClearInterfaceCountersRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(InterfaceServer).ClearInterfaceCounters(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.interface.Interface/ClearInterfaceCounters", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(InterfaceServer).ClearInterfaceCounters(ctx, req.(*ClearInterfaceCountersRequest)) - } - return interceptor(ctx, in, info, handler) -} - -// Interface_ServiceDesc is the grpc.ServiceDesc for Interface service. -// It's only intended for direct use with grpc.RegisterService, -// and not to be introspected or modified (even as a copy) -var Interface_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "gnoi.interface.Interface", - HandlerType: (*InterfaceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "SetLoopbackMode", - Handler: _Interface_SetLoopbackMode_Handler, - }, - { - MethodName: "GetLoopbackMode", - Handler: _Interface_GetLoopbackMode_Handler, - }, - { - MethodName: "ClearInterfaceCounters", - Handler: _Interface_ClearInterfaceCounters_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "interface/interface.proto", -} diff --git a/layer2/layer2.pb.go b/layer2/layer2.pb.go index 32d2f93b..4fdd0f30 100644 --- a/layer2/layer2.pb.go +++ b/layer2/layer2.pb.go @@ -1,41 +1,27 @@ -// -// Copyright 2017 Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// - // Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.26.0 -// protoc v3.15.7 // source: layer2/layer2.proto -package layer2 +package gnoi_layer2 import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" types "github.com/openconfig/gnoi/types" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" + context "golang.org/x/net/context" + grpc "google.golang.org/grpc" + math "math" ) -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) +// 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 type PerformBERTResponse_BERTState int32 @@ -47,860 +33,774 @@ const ( PerformBERTResponse_ERROR PerformBERTResponse_BERTState = 4 ) -// Enum value maps for PerformBERTResponse_BERTState. -var ( - PerformBERTResponse_BERTState_name = map[int32]string{ - 0: "UNKNOWN", - 1: "DISABLED", - 2: "RUNNING", - 3: "COMPLETE", - 4: "ERROR", - } - PerformBERTResponse_BERTState_value = map[string]int32{ - "UNKNOWN": 0, - "DISABLED": 1, - "RUNNING": 2, - "COMPLETE": 3, - "ERROR": 4, - } -) +var PerformBERTResponse_BERTState_name = map[int32]string{ + 0: "UNKNOWN", + 1: "DISABLED", + 2: "RUNNING", + 3: "COMPLETE", + 4: "ERROR", +} -func (x PerformBERTResponse_BERTState) Enum() *PerformBERTResponse_BERTState { - p := new(PerformBERTResponse_BERTState) - *p = x - return p +var PerformBERTResponse_BERTState_value = map[string]int32{ + "UNKNOWN": 0, + "DISABLED": 1, + "RUNNING": 2, + "COMPLETE": 3, + "ERROR": 4, } func (x PerformBERTResponse_BERTState) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) + return proto.EnumName(PerformBERTResponse_BERTState_name, int32(x)) } -func (PerformBERTResponse_BERTState) Descriptor() protoreflect.EnumDescriptor { - return file_layer2_layer2_proto_enumTypes[0].Descriptor() +func (PerformBERTResponse_BERTState) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_dff9ec617d9e4348, []int{5, 0} } -func (PerformBERTResponse_BERTState) Type() protoreflect.EnumType { - return &file_layer2_layer2_proto_enumTypes[0] +type ClearNeighborDiscoveryRequest struct { + Protocol types.L3Protocol `protobuf:"varint,1,opt,name=protocol,proto3,enum=gnoi.types.L3Protocol" json:"protocol,omitempty"` + Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x PerformBERTResponse_BERTState) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) +func (m *ClearNeighborDiscoveryRequest) Reset() { *m = ClearNeighborDiscoveryRequest{} } +func (m *ClearNeighborDiscoveryRequest) String() string { return proto.CompactTextString(m) } +func (*ClearNeighborDiscoveryRequest) ProtoMessage() {} +func (*ClearNeighborDiscoveryRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_dff9ec617d9e4348, []int{0} } -// Deprecated: Use PerformBERTResponse_BERTState.Descriptor instead. -func (PerformBERTResponse_BERTState) EnumDescriptor() ([]byte, []int) { - return file_layer2_layer2_proto_rawDescGZIP(), []int{5, 0} +func (m *ClearNeighborDiscoveryRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ClearNeighborDiscoveryRequest.Unmarshal(m, b) } - -type ClearNeighborDiscoveryRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Protocol types.L3Protocol `protobuf:"varint,1,opt,name=protocol,proto3,enum=gnoi.types.L3Protocol" json:"protocol,omitempty"` - Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` +func (m *ClearNeighborDiscoveryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ClearNeighborDiscoveryRequest.Marshal(b, m, deterministic) } - -func (x *ClearNeighborDiscoveryRequest) Reset() { - *x = ClearNeighborDiscoveryRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_layer2_layer2_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *ClearNeighborDiscoveryRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ClearNeighborDiscoveryRequest.Merge(m, src) } - -func (x *ClearNeighborDiscoveryRequest) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *ClearNeighborDiscoveryRequest) XXX_Size() int { + return xxx_messageInfo_ClearNeighborDiscoveryRequest.Size(m) } - -func (*ClearNeighborDiscoveryRequest) ProtoMessage() {} - -func (x *ClearNeighborDiscoveryRequest) ProtoReflect() protoreflect.Message { - mi := &file_layer2_layer2_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *ClearNeighborDiscoveryRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ClearNeighborDiscoveryRequest.DiscardUnknown(m) } -// Deprecated: Use ClearNeighborDiscoveryRequest.ProtoReflect.Descriptor instead. -func (*ClearNeighborDiscoveryRequest) Descriptor() ([]byte, []int) { - return file_layer2_layer2_proto_rawDescGZIP(), []int{0} -} +var xxx_messageInfo_ClearNeighborDiscoveryRequest proto.InternalMessageInfo -func (x *ClearNeighborDiscoveryRequest) GetProtocol() types.L3Protocol { - if x != nil { - return x.Protocol +func (m *ClearNeighborDiscoveryRequest) GetProtocol() types.L3Protocol { + if m != nil { + return m.Protocol } return types.L3Protocol_UNSPECIFIED } -func (x *ClearNeighborDiscoveryRequest) GetAddress() string { - if x != nil { - return x.Address +func (m *ClearNeighborDiscoveryRequest) GetAddress() string { + if m != nil { + return m.Address } return "" } type ClearNeighborDiscoveryResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *ClearNeighborDiscoveryResponse) Reset() { - *x = ClearNeighborDiscoveryResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_layer2_layer2_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *ClearNeighborDiscoveryResponse) Reset() { *m = ClearNeighborDiscoveryResponse{} } +func (m *ClearNeighborDiscoveryResponse) String() string { return proto.CompactTextString(m) } +func (*ClearNeighborDiscoveryResponse) ProtoMessage() {} +func (*ClearNeighborDiscoveryResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_dff9ec617d9e4348, []int{1} } -func (x *ClearNeighborDiscoveryResponse) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *ClearNeighborDiscoveryResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ClearNeighborDiscoveryResponse.Unmarshal(m, b) } - -func (*ClearNeighborDiscoveryResponse) ProtoMessage() {} - -func (x *ClearNeighborDiscoveryResponse) ProtoReflect() protoreflect.Message { - mi := &file_layer2_layer2_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *ClearNeighborDiscoveryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ClearNeighborDiscoveryResponse.Marshal(b, m, deterministic) } - -// Deprecated: Use ClearNeighborDiscoveryResponse.ProtoReflect.Descriptor instead. -func (*ClearNeighborDiscoveryResponse) Descriptor() ([]byte, []int) { - return file_layer2_layer2_proto_rawDescGZIP(), []int{1} +func (m *ClearNeighborDiscoveryResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ClearNeighborDiscoveryResponse.Merge(m, src) +} +func (m *ClearNeighborDiscoveryResponse) XXX_Size() int { + return xxx_messageInfo_ClearNeighborDiscoveryResponse.Size(m) +} +func (m *ClearNeighborDiscoveryResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ClearNeighborDiscoveryResponse.DiscardUnknown(m) } -type ClearSpanningTreeRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields +var xxx_messageInfo_ClearNeighborDiscoveryResponse proto.InternalMessageInfo - Interface *types.Path `protobuf:"bytes,1,opt,name=interface,proto3" json:"interface,omitempty"` +type ClearSpanningTreeRequest struct { + Interface *types.Path `protobuf:"bytes,1,opt,name=interface,proto3" json:"interface,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *ClearSpanningTreeRequest) Reset() { - *x = ClearSpanningTreeRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_layer2_layer2_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *ClearSpanningTreeRequest) Reset() { *m = ClearSpanningTreeRequest{} } +func (m *ClearSpanningTreeRequest) String() string { return proto.CompactTextString(m) } +func (*ClearSpanningTreeRequest) ProtoMessage() {} +func (*ClearSpanningTreeRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_dff9ec617d9e4348, []int{2} } -func (x *ClearSpanningTreeRequest) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *ClearSpanningTreeRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ClearSpanningTreeRequest.Unmarshal(m, b) } - -func (*ClearSpanningTreeRequest) ProtoMessage() {} - -func (x *ClearSpanningTreeRequest) ProtoReflect() protoreflect.Message { - mi := &file_layer2_layer2_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *ClearSpanningTreeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ClearSpanningTreeRequest.Marshal(b, m, deterministic) } - -// Deprecated: Use ClearSpanningTreeRequest.ProtoReflect.Descriptor instead. -func (*ClearSpanningTreeRequest) Descriptor() ([]byte, []int) { - return file_layer2_layer2_proto_rawDescGZIP(), []int{2} +func (m *ClearSpanningTreeRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ClearSpanningTreeRequest.Merge(m, src) +} +func (m *ClearSpanningTreeRequest) XXX_Size() int { + return xxx_messageInfo_ClearSpanningTreeRequest.Size(m) } +func (m *ClearSpanningTreeRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ClearSpanningTreeRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ClearSpanningTreeRequest proto.InternalMessageInfo -func (x *ClearSpanningTreeRequest) GetInterface() *types.Path { - if x != nil { - return x.Interface +func (m *ClearSpanningTreeRequest) GetInterface() *types.Path { + if m != nil { + return m.Interface } return nil } type ClearSpanningTreeResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *ClearSpanningTreeResponse) Reset() { - *x = ClearSpanningTreeResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_layer2_layer2_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *ClearSpanningTreeResponse) Reset() { *m = ClearSpanningTreeResponse{} } +func (m *ClearSpanningTreeResponse) String() string { return proto.CompactTextString(m) } +func (*ClearSpanningTreeResponse) ProtoMessage() {} +func (*ClearSpanningTreeResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_dff9ec617d9e4348, []int{3} } -func (x *ClearSpanningTreeResponse) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *ClearSpanningTreeResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ClearSpanningTreeResponse.Unmarshal(m, b) } - -func (*ClearSpanningTreeResponse) ProtoMessage() {} - -func (x *ClearSpanningTreeResponse) ProtoReflect() protoreflect.Message { - mi := &file_layer2_layer2_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *ClearSpanningTreeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ClearSpanningTreeResponse.Marshal(b, m, deterministic) } - -// Deprecated: Use ClearSpanningTreeResponse.ProtoReflect.Descriptor instead. -func (*ClearSpanningTreeResponse) Descriptor() ([]byte, []int) { - return file_layer2_layer2_proto_rawDescGZIP(), []int{3} +func (m *ClearSpanningTreeResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ClearSpanningTreeResponse.Merge(m, src) +} +func (m *ClearSpanningTreeResponse) XXX_Size() int { + return xxx_messageInfo_ClearSpanningTreeResponse.Size(m) +} +func (m *ClearSpanningTreeResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ClearSpanningTreeResponse.DiscardUnknown(m) } -type PerformBERTRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields +var xxx_messageInfo_ClearSpanningTreeResponse proto.InternalMessageInfo +type PerformBERTRequest struct { // ID for retrieving a previous BERT run data - optional. - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Interface *types.Path `protobuf:"bytes,2,opt,name=interface,proto3" json:"interface,omitempty"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Interface *types.Path `protobuf:"bytes,2,opt,name=interface,proto3" json:"interface,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *PerformBERTRequest) Reset() { - *x = PerformBERTRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_layer2_layer2_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *PerformBERTRequest) Reset() { *m = PerformBERTRequest{} } +func (m *PerformBERTRequest) String() string { return proto.CompactTextString(m) } +func (*PerformBERTRequest) ProtoMessage() {} +func (*PerformBERTRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_dff9ec617d9e4348, []int{4} } -func (x *PerformBERTRequest) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *PerformBERTRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PerformBERTRequest.Unmarshal(m, b) } - -func (*PerformBERTRequest) ProtoMessage() {} - -func (x *PerformBERTRequest) ProtoReflect() protoreflect.Message { - mi := &file_layer2_layer2_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *PerformBERTRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PerformBERTRequest.Marshal(b, m, deterministic) } - -// Deprecated: Use PerformBERTRequest.ProtoReflect.Descriptor instead. -func (*PerformBERTRequest) Descriptor() ([]byte, []int) { - return file_layer2_layer2_proto_rawDescGZIP(), []int{4} +func (m *PerformBERTRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_PerformBERTRequest.Merge(m, src) } +func (m *PerformBERTRequest) XXX_Size() int { + return xxx_messageInfo_PerformBERTRequest.Size(m) +} +func (m *PerformBERTRequest) XXX_DiscardUnknown() { + xxx_messageInfo_PerformBERTRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_PerformBERTRequest proto.InternalMessageInfo -func (x *PerformBERTRequest) GetId() string { - if x != nil { - return x.Id +func (m *PerformBERTRequest) GetId() string { + if m != nil { + return m.Id } return "" } -func (x *PerformBERTRequest) GetInterface() *types.Path { - if x != nil { - return x.Interface +func (m *PerformBERTRequest) GetInterface() *types.Path { + if m != nil { + return m.Interface } return nil } type PerformBERTResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - State PerformBERTResponse_BERTState `protobuf:"varint,2,opt,name=state,proto3,enum=gnoi.layer2.PerformBERTResponse_BERTState" json:"state,omitempty"` - ElapsedPeriod int64 `protobuf:"varint,3,opt,name=elapsed_period,json=elapsedPeriod,proto3" json:"elapsed_period,omitempty"` // BERT test length in nanoseconds. - Pattern []byte `protobuf:"bytes,4,opt,name=pattern,proto3" json:"pattern,omitempty"` // Pattern used for the BERT test. - // Number of errors experienced since the start of the BERT test. - Errors int64 `protobuf:"varint,5,opt,name=errors,proto3" json:"errors,omitempty"` - // Number of bits received since the start of the BERT test. - ReceivedBits int64 `protobuf:"varint,6,opt,name=received_bits,json=receivedBits,proto3" json:"received_bits,omitempty"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + State PerformBERTResponse_BERTState `protobuf:"varint,2,opt,name=state,proto3,enum=gnoi.layer2.PerformBERTResponse_BERTState" json:"state,omitempty"` + ElapsedPeriod int64 `protobuf:"varint,3,opt,name=elapsed_period,json=elapsedPeriod,proto3" json:"elapsed_period,omitempty"` + Pattern []byte `protobuf:"bytes,4,opt,name=pattern,proto3" json:"pattern,omitempty"` + Errors int64 `protobuf:"varint,5,opt,name=errors,proto3" json:"errors,omitempty"` + ReceivedBits int64 `protobuf:"varint,6,opt,name=received_bits,json=receivedBits,proto3" json:"received_bits,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *PerformBERTResponse) Reset() { *m = PerformBERTResponse{} } +func (m *PerformBERTResponse) String() string { return proto.CompactTextString(m) } +func (*PerformBERTResponse) ProtoMessage() {} +func (*PerformBERTResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_dff9ec617d9e4348, []int{5} } -func (x *PerformBERTResponse) Reset() { - *x = PerformBERTResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_layer2_layer2_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *PerformBERTResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PerformBERTResponse.Unmarshal(m, b) } - -func (x *PerformBERTResponse) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *PerformBERTResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PerformBERTResponse.Marshal(b, m, deterministic) } - -func (*PerformBERTResponse) ProtoMessage() {} - -func (x *PerformBERTResponse) ProtoReflect() protoreflect.Message { - mi := &file_layer2_layer2_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *PerformBERTResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_PerformBERTResponse.Merge(m, src) } - -// Deprecated: Use PerformBERTResponse.ProtoReflect.Descriptor instead. -func (*PerformBERTResponse) Descriptor() ([]byte, []int) { - return file_layer2_layer2_proto_rawDescGZIP(), []int{5} +func (m *PerformBERTResponse) XXX_Size() int { + return xxx_messageInfo_PerformBERTResponse.Size(m) +} +func (m *PerformBERTResponse) XXX_DiscardUnknown() { + xxx_messageInfo_PerformBERTResponse.DiscardUnknown(m) } -func (x *PerformBERTResponse) GetId() string { - if x != nil { - return x.Id +var xxx_messageInfo_PerformBERTResponse proto.InternalMessageInfo + +func (m *PerformBERTResponse) GetId() string { + if m != nil { + return m.Id } return "" } -func (x *PerformBERTResponse) GetState() PerformBERTResponse_BERTState { - if x != nil { - return x.State +func (m *PerformBERTResponse) GetState() PerformBERTResponse_BERTState { + if m != nil { + return m.State } return PerformBERTResponse_UNKNOWN } -func (x *PerformBERTResponse) GetElapsedPeriod() int64 { - if x != nil { - return x.ElapsedPeriod +func (m *PerformBERTResponse) GetElapsedPeriod() int64 { + if m != nil { + return m.ElapsedPeriod } return 0 } -func (x *PerformBERTResponse) GetPattern() []byte { - if x != nil { - return x.Pattern +func (m *PerformBERTResponse) GetPattern() []byte { + if m != nil { + return m.Pattern } return nil } -func (x *PerformBERTResponse) GetErrors() int64 { - if x != nil { - return x.Errors +func (m *PerformBERTResponse) GetErrors() int64 { + if m != nil { + return m.Errors } return 0 } -func (x *PerformBERTResponse) GetReceivedBits() int64 { - if x != nil { - return x.ReceivedBits +func (m *PerformBERTResponse) GetReceivedBits() int64 { + if m != nil { + return m.ReceivedBits } return 0 } type ClearLLDPInterfaceRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields + Interface *types.Path `protobuf:"bytes,1,opt,name=interface,proto3" json:"interface,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} - Interface *types.Path `protobuf:"bytes,1,opt,name=interface,proto3" json:"interface,omitempty"` +func (m *ClearLLDPInterfaceRequest) Reset() { *m = ClearLLDPInterfaceRequest{} } +func (m *ClearLLDPInterfaceRequest) String() string { return proto.CompactTextString(m) } +func (*ClearLLDPInterfaceRequest) ProtoMessage() {} +func (*ClearLLDPInterfaceRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_dff9ec617d9e4348, []int{6} +} + +func (m *ClearLLDPInterfaceRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ClearLLDPInterfaceRequest.Unmarshal(m, b) +} +func (m *ClearLLDPInterfaceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ClearLLDPInterfaceRequest.Marshal(b, m, deterministic) +} +func (m *ClearLLDPInterfaceRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ClearLLDPInterfaceRequest.Merge(m, src) } +func (m *ClearLLDPInterfaceRequest) XXX_Size() int { + return xxx_messageInfo_ClearLLDPInterfaceRequest.Size(m) +} +func (m *ClearLLDPInterfaceRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ClearLLDPInterfaceRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ClearLLDPInterfaceRequest proto.InternalMessageInfo -func (x *ClearLLDPInterfaceRequest) Reset() { - *x = ClearLLDPInterfaceRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_layer2_layer2_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (m *ClearLLDPInterfaceRequest) GetInterface() *types.Path { + if m != nil { + return m.Interface } + return nil } -func (x *ClearLLDPInterfaceRequest) String() string { - return protoimpl.X.MessageStringOf(x) +type ClearLLDPInterfaceResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (*ClearLLDPInterfaceRequest) ProtoMessage() {} +func (m *ClearLLDPInterfaceResponse) Reset() { *m = ClearLLDPInterfaceResponse{} } +func (m *ClearLLDPInterfaceResponse) String() string { return proto.CompactTextString(m) } +func (*ClearLLDPInterfaceResponse) ProtoMessage() {} +func (*ClearLLDPInterfaceResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_dff9ec617d9e4348, []int{7} +} -func (x *ClearLLDPInterfaceRequest) ProtoReflect() protoreflect.Message { - mi := &file_layer2_layer2_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *ClearLLDPInterfaceResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ClearLLDPInterfaceResponse.Unmarshal(m, b) +} +func (m *ClearLLDPInterfaceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ClearLLDPInterfaceResponse.Marshal(b, m, deterministic) +} +func (m *ClearLLDPInterfaceResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ClearLLDPInterfaceResponse.Merge(m, src) +} +func (m *ClearLLDPInterfaceResponse) XXX_Size() int { + return xxx_messageInfo_ClearLLDPInterfaceResponse.Size(m) +} +func (m *ClearLLDPInterfaceResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ClearLLDPInterfaceResponse.DiscardUnknown(m) } -// Deprecated: Use ClearLLDPInterfaceRequest.ProtoReflect.Descriptor instead. -func (*ClearLLDPInterfaceRequest) Descriptor() ([]byte, []int) { - return file_layer2_layer2_proto_rawDescGZIP(), []int{6} +var xxx_messageInfo_ClearLLDPInterfaceResponse proto.InternalMessageInfo + +type SendWakeOnLANRequest struct { + Interface *types.Path `protobuf:"bytes,1,opt,name=interface,proto3" json:"interface,omitempty"` + Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` + MacAddress []byte `protobuf:"bytes,3,opt,name=mac_address,json=macAddress,proto3" json:"mac_address,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *ClearLLDPInterfaceRequest) GetInterface() *types.Path { - if x != nil { - return x.Interface +func (m *SendWakeOnLANRequest) Reset() { *m = SendWakeOnLANRequest{} } +func (m *SendWakeOnLANRequest) String() string { return proto.CompactTextString(m) } +func (*SendWakeOnLANRequest) ProtoMessage() {} +func (*SendWakeOnLANRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_dff9ec617d9e4348, []int{8} +} + +func (m *SendWakeOnLANRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SendWakeOnLANRequest.Unmarshal(m, b) +} +func (m *SendWakeOnLANRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SendWakeOnLANRequest.Marshal(b, m, deterministic) +} +func (m *SendWakeOnLANRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_SendWakeOnLANRequest.Merge(m, src) +} +func (m *SendWakeOnLANRequest) XXX_Size() int { + return xxx_messageInfo_SendWakeOnLANRequest.Size(m) +} +func (m *SendWakeOnLANRequest) XXX_DiscardUnknown() { + xxx_messageInfo_SendWakeOnLANRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_SendWakeOnLANRequest proto.InternalMessageInfo + +func (m *SendWakeOnLANRequest) GetInterface() *types.Path { + if m != nil { + return m.Interface } return nil } -type ClearLLDPInterfaceResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields +func (m *SendWakeOnLANRequest) GetAddress() string { + if m != nil { + return m.Address + } + return "" } -func (x *ClearLLDPInterfaceResponse) Reset() { - *x = ClearLLDPInterfaceResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_layer2_layer2_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (m *SendWakeOnLANRequest) GetMacAddress() []byte { + if m != nil { + return m.MacAddress } + return nil } -func (x *ClearLLDPInterfaceResponse) String() string { - return protoimpl.X.MessageStringOf(x) +type SendWakeOnLANResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (*ClearLLDPInterfaceResponse) ProtoMessage() {} +func (m *SendWakeOnLANResponse) Reset() { *m = SendWakeOnLANResponse{} } +func (m *SendWakeOnLANResponse) String() string { return proto.CompactTextString(m) } +func (*SendWakeOnLANResponse) ProtoMessage() {} +func (*SendWakeOnLANResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_dff9ec617d9e4348, []int{9} +} + +func (m *SendWakeOnLANResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SendWakeOnLANResponse.Unmarshal(m, b) +} +func (m *SendWakeOnLANResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SendWakeOnLANResponse.Marshal(b, m, deterministic) +} +func (m *SendWakeOnLANResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_SendWakeOnLANResponse.Merge(m, src) +} +func (m *SendWakeOnLANResponse) XXX_Size() int { + return xxx_messageInfo_SendWakeOnLANResponse.Size(m) +} +func (m *SendWakeOnLANResponse) XXX_DiscardUnknown() { + xxx_messageInfo_SendWakeOnLANResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_SendWakeOnLANResponse proto.InternalMessageInfo + +func init() { + proto.RegisterEnum("gnoi.layer2.PerformBERTResponse_BERTState", PerformBERTResponse_BERTState_name, PerformBERTResponse_BERTState_value) + proto.RegisterType((*ClearNeighborDiscoveryRequest)(nil), "gnoi.layer2.ClearNeighborDiscoveryRequest") + proto.RegisterType((*ClearNeighborDiscoveryResponse)(nil), "gnoi.layer2.ClearNeighborDiscoveryResponse") + proto.RegisterType((*ClearSpanningTreeRequest)(nil), "gnoi.layer2.ClearSpanningTreeRequest") + proto.RegisterType((*ClearSpanningTreeResponse)(nil), "gnoi.layer2.ClearSpanningTreeResponse") + proto.RegisterType((*PerformBERTRequest)(nil), "gnoi.layer2.PerformBERTRequest") + proto.RegisterType((*PerformBERTResponse)(nil), "gnoi.layer2.PerformBERTResponse") + proto.RegisterType((*ClearLLDPInterfaceRequest)(nil), "gnoi.layer2.ClearLLDPInterfaceRequest") + proto.RegisterType((*ClearLLDPInterfaceResponse)(nil), "gnoi.layer2.ClearLLDPInterfaceResponse") + proto.RegisterType((*SendWakeOnLANRequest)(nil), "gnoi.layer2.SendWakeOnLANRequest") + proto.RegisterType((*SendWakeOnLANResponse)(nil), "gnoi.layer2.SendWakeOnLANResponse") +} + +func init() { proto.RegisterFile("layer2/layer2.proto", fileDescriptor_dff9ec617d9e4348) } + +var fileDescriptor_dff9ec617d9e4348 = []byte{ + // 617 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0xdd, 0x6e, 0xda, 0x4c, + 0x10, 0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 0xac, 0x25, 0xab, 0xbd, 0x5a, 0x8a, 0x9b, 0xd9, 0xff, 0x02, 0x9b, 0x73, 0xd3, + 0x23, 0xcf, 0xe7, 0x7a, 0xb3, 0x96, 0xab, 0x66, 0xdc, 0x05, 0x49, 0x99, 0xdb, 0xeb, 0x3f, 0xdf, + 0x17, 0xf6, 0xcc, 0x77, 0xe6, 0xde, 0xa8, 0x18, 0x7d, 0x4b, 0xf7, 0x7f, 0x07, 0x00, 0x00, 0xff, + 0xff, 0x08, 0x4f, 0xea, 0xf4, 0xef, 0x05, 0x00, 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion4 + +// Layer2Client is the client API for Layer2 service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type Layer2Client interface { + // ClearNeighborDiscovery will clear either a specific neighbor entry or + // clear the entire table based on parameters provided. + // TODO: This method is subject to deprecation once OpenConfig models this + // state. + ClearNeighborDiscovery(ctx context.Context, in *ClearNeighborDiscoveryRequest, opts ...grpc.CallOption) (*ClearNeighborDiscoveryResponse, error) + // ClearSpanningTree will reset a blocked spanning tree interface. + // TODO: This method is subject to deprecation once OpenConfig models this + // state. + ClearSpanningTree(ctx context.Context, in *ClearSpanningTreeRequest, opts ...grpc.CallOption) (*ClearSpanningTreeResponse, error) + // PerformBERT will perform a BERT operation on a port. The stream will + // return the current state of the operation as well as the ID for the + // operation. + PerformBERT(ctx context.Context, in *PerformBERTRequest, opts ...grpc.CallOption) (Layer2_PerformBERTClient, error) + // ClearLLDPInterface will clear all LLDP adjacencies on the provided + // interface. + ClearLLDPInterface(ctx context.Context, in *ClearLLDPInterfaceRequest, opts ...grpc.CallOption) (*ClearLLDPInterfaceResponse, error) + // SendWakeOnLAN will send a WOL event on the requested interface. + SendWakeOnLAN(ctx context.Context, in *SendWakeOnLANRequest, opts ...grpc.CallOption) (*SendWakeOnLANResponse, error) +} -func (x *ClearLLDPInterfaceResponse) ProtoReflect() protoreflect.Message { - mi := &file_layer2_layer2_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +type layer2Client struct { + cc *grpc.ClientConn } -// Deprecated: Use ClearLLDPInterfaceResponse.ProtoReflect.Descriptor instead. -func (*ClearLLDPInterfaceResponse) Descriptor() ([]byte, []int) { - return file_layer2_layer2_proto_rawDescGZIP(), []int{7} +func NewLayer2Client(cc *grpc.ClientConn) Layer2Client { + return &layer2Client{cc} } -type SendWakeOnLANRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields +func (c *layer2Client) ClearNeighborDiscovery(ctx context.Context, in *ClearNeighborDiscoveryRequest, opts ...grpc.CallOption) (*ClearNeighborDiscoveryResponse, error) { + out := new(ClearNeighborDiscoveryResponse) + err := c.cc.Invoke(ctx, "/gnoi.layer2.Layer2/ClearNeighborDiscovery", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} - Interface *types.Path `protobuf:"bytes,1,opt,name=interface,proto3" json:"interface,omitempty"` - Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` // IP address of the WOL target. - MacAddress []byte `protobuf:"bytes,3,opt,name=mac_address,json=macAddress,proto3" json:"mac_address,omitempty"` // MAC address of the target. +func (c *layer2Client) ClearSpanningTree(ctx context.Context, in *ClearSpanningTreeRequest, opts ...grpc.CallOption) (*ClearSpanningTreeResponse, error) { + out := new(ClearSpanningTreeResponse) + err := c.cc.Invoke(ctx, "/gnoi.layer2.Layer2/ClearSpanningTree", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil } -func (x *SendWakeOnLANRequest) Reset() { - *x = SendWakeOnLANRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_layer2_layer2_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (c *layer2Client) PerformBERT(ctx context.Context, in *PerformBERTRequest, opts ...grpc.CallOption) (Layer2_PerformBERTClient, error) { + stream, err := c.cc.NewStream(ctx, &_Layer2_serviceDesc.Streams[0], "/gnoi.layer2.Layer2/PerformBERT", opts...) + if err != nil { + return nil, err + } + x := &layer2PerformBERTClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil } -func (x *SendWakeOnLANRequest) String() string { - return protoimpl.X.MessageStringOf(x) +type Layer2_PerformBERTClient interface { + Recv() (*PerformBERTResponse, error) + grpc.ClientStream } -func (*SendWakeOnLANRequest) ProtoMessage() {} +type layer2PerformBERTClient struct { + grpc.ClientStream +} -func (x *SendWakeOnLANRequest) ProtoReflect() protoreflect.Message { - mi := &file_layer2_layer2_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms +func (x *layer2PerformBERTClient) Recv() (*PerformBERTResponse, error) { + m := new(PerformBERTResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err } - return mi.MessageOf(x) + return m, nil } -// Deprecated: Use SendWakeOnLANRequest.ProtoReflect.Descriptor instead. -func (*SendWakeOnLANRequest) Descriptor() ([]byte, []int) { - return file_layer2_layer2_proto_rawDescGZIP(), []int{8} +func (c *layer2Client) ClearLLDPInterface(ctx context.Context, in *ClearLLDPInterfaceRequest, opts ...grpc.CallOption) (*ClearLLDPInterfaceResponse, error) { + out := new(ClearLLDPInterfaceResponse) + err := c.cc.Invoke(ctx, "/gnoi.layer2.Layer2/ClearLLDPInterface", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil } -func (x *SendWakeOnLANRequest) GetInterface() *types.Path { - if x != nil { - return x.Interface +func (c *layer2Client) SendWakeOnLAN(ctx context.Context, in *SendWakeOnLANRequest, opts ...grpc.CallOption) (*SendWakeOnLANResponse, error) { + out := new(SendWakeOnLANResponse) + err := c.cc.Invoke(ctx, "/gnoi.layer2.Layer2/SendWakeOnLAN", in, out, opts...) + if err != nil { + return nil, err } - return nil + return out, nil } -func (x *SendWakeOnLANRequest) GetAddress() string { - if x != nil { - return x.Address - } - return "" +// Layer2Server is the server API for Layer2 service. +type Layer2Server interface { + // ClearNeighborDiscovery will clear either a specific neighbor entry or + // clear the entire table based on parameters provided. + // TODO: This method is subject to deprecation once OpenConfig models this + // state. + ClearNeighborDiscovery(context.Context, *ClearNeighborDiscoveryRequest) (*ClearNeighborDiscoveryResponse, error) + // ClearSpanningTree will reset a blocked spanning tree interface. + // TODO: This method is subject to deprecation once OpenConfig models this + // state. + ClearSpanningTree(context.Context, *ClearSpanningTreeRequest) (*ClearSpanningTreeResponse, error) + // PerformBERT will perform a BERT operation on a port. The stream will + // return the current state of the operation as well as the ID for the + // operation. + PerformBERT(*PerformBERTRequest, Layer2_PerformBERTServer) error + // ClearLLDPInterface will clear all LLDP adjacencies on the provided + // interface. + ClearLLDPInterface(context.Context, *ClearLLDPInterfaceRequest) (*ClearLLDPInterfaceResponse, error) + // SendWakeOnLAN will send a WOL event on the requested interface. + SendWakeOnLAN(context.Context, *SendWakeOnLANRequest) (*SendWakeOnLANResponse, error) } -func (x *SendWakeOnLANRequest) GetMacAddress() []byte { - if x != nil { - return x.MacAddress +func RegisterLayer2Server(s *grpc.Server, srv Layer2Server) { + s.RegisterService(&_Layer2_serviceDesc, srv) +} + +func _Layer2_ClearNeighborDiscovery_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ClearNeighborDiscoveryRequest) + if err := dec(in); err != nil { + return nil, err } - return nil + if interceptor == nil { + return srv.(Layer2Server).ClearNeighborDiscovery(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gnoi.layer2.Layer2/ClearNeighborDiscovery", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(Layer2Server).ClearNeighborDiscovery(ctx, req.(*ClearNeighborDiscoveryRequest)) + } + return interceptor(ctx, in, info, handler) } -type SendWakeOnLANResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields +func _Layer2_ClearSpanningTree_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ClearSpanningTreeRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(Layer2Server).ClearSpanningTree(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gnoi.layer2.Layer2/ClearSpanningTree", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(Layer2Server).ClearSpanningTree(ctx, req.(*ClearSpanningTreeRequest)) + } + return interceptor(ctx, in, info, handler) } -func (x *SendWakeOnLANResponse) Reset() { - *x = SendWakeOnLANResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_layer2_layer2_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func _Layer2_PerformBERT_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(PerformBERTRequest) + if err := stream.RecvMsg(m); err != nil { + return err } + return srv.(Layer2Server).PerformBERT(m, &layer2PerformBERTServer{stream}) +} + +type Layer2_PerformBERTServer interface { + Send(*PerformBERTResponse) error + grpc.ServerStream } -func (x *SendWakeOnLANResponse) String() string { - return protoimpl.X.MessageStringOf(x) +type layer2PerformBERTServer struct { + grpc.ServerStream } -func (*SendWakeOnLANResponse) ProtoMessage() {} +func (x *layer2PerformBERTServer) Send(m *PerformBERTResponse) error { + return x.ServerStream.SendMsg(m) +} -func (x *SendWakeOnLANResponse) ProtoReflect() protoreflect.Message { - mi := &file_layer2_layer2_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms +func _Layer2_ClearLLDPInterface_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ClearLLDPInterfaceRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(Layer2Server).ClearLLDPInterface(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gnoi.layer2.Layer2/ClearLLDPInterface", } - return mi.MessageOf(x) + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(Layer2Server).ClearLLDPInterface(ctx, req.(*ClearLLDPInterfaceRequest)) + } + return interceptor(ctx, in, info, handler) } -// Deprecated: Use SendWakeOnLANResponse.ProtoReflect.Descriptor instead. -func (*SendWakeOnLANResponse) Descriptor() ([]byte, []int) { - return file_layer2_layer2_proto_rawDescGZIP(), []int{9} -} - -var File_layer2_layer2_proto protoreflect.FileDescriptor - -var file_layer2_layer2_proto_rawDesc = []byte{ - 0x0a, 0x13, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x32, 0x2f, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x32, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0b, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6c, 0x61, 0x79, 0x65, - 0x72, 0x32, 0x1a, 0x2c, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, - 0x70, 0x65, 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x67, 0x6e, 0x6f, 0x69, 0x2f, 0x74, - 0x79, 0x70, 0x65, 0x73, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x22, 0x6d, 0x0a, 0x1d, 0x43, 0x6c, 0x65, 0x61, 0x72, 0x4e, 0x65, 0x69, 0x67, 0x68, 0x62, 0x6f, - 0x72, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x32, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, - 0x2e, 0x4c, 0x33, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x52, 0x08, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, - 0x20, 0x0a, 0x1e, 0x43, 0x6c, 0x65, 0x61, 0x72, 0x4e, 0x65, 0x69, 0x67, 0x68, 0x62, 0x6f, 0x72, - 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x4a, 0x0a, 0x18, 0x43, 0x6c, 0x65, 0x61, 0x72, 0x53, 0x70, 0x61, 0x6e, 0x6e, 0x69, - 0x6e, 0x67, 0x54, 0x72, 0x65, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2e, 0x0a, - 0x09, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x10, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x50, 0x61, - 0x74, 0x68, 0x52, 0x09, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x22, 0x1b, 0x0a, - 0x19, 0x43, 0x6c, 0x65, 0x61, 0x72, 0x53, 0x70, 0x61, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x54, 0x72, - 0x65, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x54, 0x0a, 0x12, 0x50, 0x65, - 0x72, 0x66, 0x6f, 0x72, 0x6d, 0x42, 0x45, 0x52, 0x54, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, - 0x12, 0x2e, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, - 0x2e, 0x50, 0x61, 0x74, 0x68, 0x52, 0x09, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, - 0x22, 0xb3, 0x02, 0x0a, 0x13, 0x50, 0x65, 0x72, 0x66, 0x6f, 0x72, 0x6d, 0x42, 0x45, 0x52, 0x54, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x40, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2a, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6c, - 0x61, 0x79, 0x65, 0x72, 0x32, 0x2e, 0x50, 0x65, 0x72, 0x66, 0x6f, 0x72, 0x6d, 0x42, 0x45, 0x52, - 0x54, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x42, 0x45, 0x52, 0x54, 0x53, 0x74, - 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x65, 0x6c, - 0x61, 0x70, 0x73, 0x65, 0x64, 0x5f, 0x70, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x03, 0x52, 0x0d, 0x65, 0x6c, 0x61, 0x70, 0x73, 0x65, 0x64, 0x50, 0x65, 0x72, 0x69, 0x6f, - 0x64, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, 0x74, 0x74, 0x65, 0x72, 0x6e, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x0c, 0x52, 0x07, 0x70, 0x61, 0x74, 0x74, 0x65, 0x72, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x65, - 0x72, 0x72, 0x6f, 0x72, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x65, 0x72, 0x72, - 0x6f, 0x72, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x5f, - 0x62, 0x69, 0x74, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x72, 0x65, 0x63, 0x65, - 0x69, 0x76, 0x65, 0x64, 0x42, 0x69, 0x74, 0x73, 0x22, 0x4c, 0x0a, 0x09, 0x42, 0x45, 0x52, 0x54, - 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, - 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x49, 0x53, 0x41, 0x42, 0x4c, 0x45, 0x44, 0x10, 0x01, - 0x12, 0x0b, 0x0a, 0x07, 0x52, 0x55, 0x4e, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x12, 0x0c, 0x0a, - 0x08, 0x43, 0x4f, 0x4d, 0x50, 0x4c, 0x45, 0x54, 0x45, 0x10, 0x03, 0x12, 0x09, 0x0a, 0x05, 0x45, - 0x52, 0x52, 0x4f, 0x52, 0x10, 0x04, 0x22, 0x4b, 0x0a, 0x19, 0x43, 0x6c, 0x65, 0x61, 0x72, 0x4c, - 0x4c, 0x44, 0x50, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x2e, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x74, 0x79, - 0x70, 0x65, 0x73, 0x2e, 0x50, 0x61, 0x74, 0x68, 0x52, 0x09, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, - 0x61, 0x63, 0x65, 0x22, 0x1c, 0x0a, 0x1a, 0x43, 0x6c, 0x65, 0x61, 0x72, 0x4c, 0x4c, 0x44, 0x50, - 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x81, 0x01, 0x0a, 0x14, 0x53, 0x65, 0x6e, 0x64, 0x57, 0x61, 0x6b, 0x65, 0x4f, 0x6e, - 0x4c, 0x41, 0x4e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2e, 0x0a, 0x09, 0x69, 0x6e, - 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, - 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x50, 0x61, 0x74, 0x68, 0x52, - 0x09, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, - 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, - 0x72, 0x65, 0x73, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x6d, 0x61, 0x63, 0x5f, 0x61, 0x64, 0x64, 0x72, - 0x65, 0x73, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0a, 0x6d, 0x61, 0x63, 0x41, 0x64, - 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x17, 0x0a, 0x15, 0x53, 0x65, 0x6e, 0x64, 0x57, 0x61, 0x6b, - 0x65, 0x4f, 0x6e, 0x4c, 0x41, 0x4e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xfc, - 0x03, 0x0a, 0x06, 0x4c, 0x61, 0x79, 0x65, 0x72, 0x32, 0x12, 0x73, 0x0a, 0x16, 0x43, 0x6c, 0x65, - 0x61, 0x72, 0x4e, 0x65, 0x69, 0x67, 0x68, 0x62, 0x6f, 0x72, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, - 0x65, 0x72, 0x79, 0x12, 0x2a, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6c, 0x61, 0x79, 0x65, 0x72, - 0x32, 0x2e, 0x43, 0x6c, 0x65, 0x61, 0x72, 0x4e, 0x65, 0x69, 0x67, 0x68, 0x62, 0x6f, 0x72, 0x44, - 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x2b, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x32, 0x2e, 0x43, 0x6c, - 0x65, 0x61, 0x72, 0x4e, 0x65, 0x69, 0x67, 0x68, 0x62, 0x6f, 0x72, 0x44, 0x69, 0x73, 0x63, 0x6f, - 0x76, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x64, - 0x0a, 0x11, 0x43, 0x6c, 0x65, 0x61, 0x72, 0x53, 0x70, 0x61, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x54, - 0x72, 0x65, 0x65, 0x12, 0x25, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6c, 0x61, 0x79, 0x65, 0x72, - 0x32, 0x2e, 0x43, 0x6c, 0x65, 0x61, 0x72, 0x53, 0x70, 0x61, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x54, - 0x72, 0x65, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x67, 0x6e, 0x6f, - 0x69, 0x2e, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x32, 0x2e, 0x43, 0x6c, 0x65, 0x61, 0x72, 0x53, 0x70, - 0x61, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x54, 0x72, 0x65, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x00, 0x12, 0x54, 0x0a, 0x0b, 0x50, 0x65, 0x72, 0x66, 0x6f, 0x72, 0x6d, 0x42, - 0x45, 0x52, 0x54, 0x12, 0x1f, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6c, 0x61, 0x79, 0x65, 0x72, - 0x32, 0x2e, 0x50, 0x65, 0x72, 0x66, 0x6f, 0x72, 0x6d, 0x42, 0x45, 0x52, 0x54, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6c, 0x61, 0x79, 0x65, - 0x72, 0x32, 0x2e, 0x50, 0x65, 0x72, 0x66, 0x6f, 0x72, 0x6d, 0x42, 0x45, 0x52, 0x54, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x30, 0x01, 0x12, 0x67, 0x0a, 0x12, 0x43, 0x6c, - 0x65, 0x61, 0x72, 0x4c, 0x4c, 0x44, 0x50, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, - 0x12, 0x26, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x32, 0x2e, 0x43, - 0x6c, 0x65, 0x61, 0x72, 0x4c, 0x4c, 0x44, 0x50, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, - 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, - 0x6c, 0x61, 0x79, 0x65, 0x72, 0x32, 0x2e, 0x43, 0x6c, 0x65, 0x61, 0x72, 0x4c, 0x4c, 0x44, 0x50, - 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x00, 0x12, 0x58, 0x0a, 0x0d, 0x53, 0x65, 0x6e, 0x64, 0x57, 0x61, 0x6b, 0x65, 0x4f, - 0x6e, 0x4c, 0x41, 0x4e, 0x12, 0x21, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6c, 0x61, 0x79, 0x65, - 0x72, 0x32, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x57, 0x61, 0x6b, 0x65, 0x4f, 0x6e, 0x4c, 0x41, 0x4e, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6c, - 0x61, 0x79, 0x65, 0x72, 0x32, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x57, 0x61, 0x6b, 0x65, 0x4f, 0x6e, - 0x4c, 0x41, 0x4e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x2b, 0x5a, - 0x21, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, - 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x67, 0x6e, 0x6f, 0x69, 0x2f, 0x6c, 0x61, 0x79, 0x65, - 0x72, 0x32, 0xd2, 0x3e, 0x05, 0x30, 0x2e, 0x31, 0x2e, 0x30, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x33, -} - -var ( - file_layer2_layer2_proto_rawDescOnce sync.Once - file_layer2_layer2_proto_rawDescData = file_layer2_layer2_proto_rawDesc -) +func _Layer2_SendWakeOnLAN_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SendWakeOnLANRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(Layer2Server).SendWakeOnLAN(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gnoi.layer2.Layer2/SendWakeOnLAN", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(Layer2Server).SendWakeOnLAN(ctx, req.(*SendWakeOnLANRequest)) + } + return interceptor(ctx, in, info, handler) +} -func file_layer2_layer2_proto_rawDescGZIP() []byte { - file_layer2_layer2_proto_rawDescOnce.Do(func() { - file_layer2_layer2_proto_rawDescData = protoimpl.X.CompressGZIP(file_layer2_layer2_proto_rawDescData) - }) - return file_layer2_layer2_proto_rawDescData -} - -var file_layer2_layer2_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_layer2_layer2_proto_msgTypes = make([]protoimpl.MessageInfo, 10) -var file_layer2_layer2_proto_goTypes = []interface{}{ - (PerformBERTResponse_BERTState)(0), // 0: gnoi.layer2.PerformBERTResponse.BERTState - (*ClearNeighborDiscoveryRequest)(nil), // 1: gnoi.layer2.ClearNeighborDiscoveryRequest - (*ClearNeighborDiscoveryResponse)(nil), // 2: gnoi.layer2.ClearNeighborDiscoveryResponse - (*ClearSpanningTreeRequest)(nil), // 3: gnoi.layer2.ClearSpanningTreeRequest - (*ClearSpanningTreeResponse)(nil), // 4: gnoi.layer2.ClearSpanningTreeResponse - (*PerformBERTRequest)(nil), // 5: gnoi.layer2.PerformBERTRequest - (*PerformBERTResponse)(nil), // 6: gnoi.layer2.PerformBERTResponse - (*ClearLLDPInterfaceRequest)(nil), // 7: gnoi.layer2.ClearLLDPInterfaceRequest - (*ClearLLDPInterfaceResponse)(nil), // 8: gnoi.layer2.ClearLLDPInterfaceResponse - (*SendWakeOnLANRequest)(nil), // 9: gnoi.layer2.SendWakeOnLANRequest - (*SendWakeOnLANResponse)(nil), // 10: gnoi.layer2.SendWakeOnLANResponse - (types.L3Protocol)(0), // 11: gnoi.types.L3Protocol - (*types.Path)(nil), // 12: gnoi.types.Path -} -var file_layer2_layer2_proto_depIdxs = []int32{ - 11, // 0: gnoi.layer2.ClearNeighborDiscoveryRequest.protocol:type_name -> gnoi.types.L3Protocol - 12, // 1: gnoi.layer2.ClearSpanningTreeRequest.interface:type_name -> gnoi.types.Path - 12, // 2: gnoi.layer2.PerformBERTRequest.interface:type_name -> gnoi.types.Path - 0, // 3: gnoi.layer2.PerformBERTResponse.state:type_name -> gnoi.layer2.PerformBERTResponse.BERTState - 12, // 4: gnoi.layer2.ClearLLDPInterfaceRequest.interface:type_name -> gnoi.types.Path - 12, // 5: gnoi.layer2.SendWakeOnLANRequest.interface:type_name -> gnoi.types.Path - 1, // 6: gnoi.layer2.Layer2.ClearNeighborDiscovery:input_type -> gnoi.layer2.ClearNeighborDiscoveryRequest - 3, // 7: gnoi.layer2.Layer2.ClearSpanningTree:input_type -> gnoi.layer2.ClearSpanningTreeRequest - 5, // 8: gnoi.layer2.Layer2.PerformBERT:input_type -> gnoi.layer2.PerformBERTRequest - 7, // 9: gnoi.layer2.Layer2.ClearLLDPInterface:input_type -> gnoi.layer2.ClearLLDPInterfaceRequest - 9, // 10: gnoi.layer2.Layer2.SendWakeOnLAN:input_type -> gnoi.layer2.SendWakeOnLANRequest - 2, // 11: gnoi.layer2.Layer2.ClearNeighborDiscovery:output_type -> gnoi.layer2.ClearNeighborDiscoveryResponse - 4, // 12: gnoi.layer2.Layer2.ClearSpanningTree:output_type -> gnoi.layer2.ClearSpanningTreeResponse - 6, // 13: gnoi.layer2.Layer2.PerformBERT:output_type -> gnoi.layer2.PerformBERTResponse - 8, // 14: gnoi.layer2.Layer2.ClearLLDPInterface:output_type -> gnoi.layer2.ClearLLDPInterfaceResponse - 10, // 15: gnoi.layer2.Layer2.SendWakeOnLAN:output_type -> gnoi.layer2.SendWakeOnLANResponse - 11, // [11:16] is the sub-list for method output_type - 6, // [6:11] is the sub-list for method input_type - 6, // [6:6] is the sub-list for extension type_name - 6, // [6:6] is the sub-list for extension extendee - 0, // [0:6] is the sub-list for field type_name -} - -func init() { file_layer2_layer2_proto_init() } -func file_layer2_layer2_proto_init() { - if File_layer2_layer2_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_layer2_layer2_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ClearNeighborDiscoveryRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_layer2_layer2_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ClearNeighborDiscoveryResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_layer2_layer2_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ClearSpanningTreeRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_layer2_layer2_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ClearSpanningTreeResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_layer2_layer2_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PerformBERTRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_layer2_layer2_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PerformBERTResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_layer2_layer2_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ClearLLDPInterfaceRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_layer2_layer2_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ClearLLDPInterfaceResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_layer2_layer2_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SendWakeOnLANRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_layer2_layer2_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SendWakeOnLANResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_layer2_layer2_proto_rawDesc, - NumEnums: 1, - NumMessages: 10, - NumExtensions: 0, - NumServices: 1, +var _Layer2_serviceDesc = grpc.ServiceDesc{ + ServiceName: "gnoi.layer2.Layer2", + HandlerType: (*Layer2Server)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "ClearNeighborDiscovery", + Handler: _Layer2_ClearNeighborDiscovery_Handler, + }, + { + MethodName: "ClearSpanningTree", + Handler: _Layer2_ClearSpanningTree_Handler, + }, + { + MethodName: "ClearLLDPInterface", + Handler: _Layer2_ClearLLDPInterface_Handler, + }, + { + MethodName: "SendWakeOnLAN", + Handler: _Layer2_SendWakeOnLAN_Handler, + }, + }, + Streams: []grpc.StreamDesc{ + { + StreamName: "PerformBERT", + Handler: _Layer2_PerformBERT_Handler, + ServerStreams: true, }, - GoTypes: file_layer2_layer2_proto_goTypes, - DependencyIndexes: file_layer2_layer2_proto_depIdxs, - EnumInfos: file_layer2_layer2_proto_enumTypes, - MessageInfos: file_layer2_layer2_proto_msgTypes, - }.Build() - File_layer2_layer2_proto = out.File - file_layer2_layer2_proto_rawDesc = nil - file_layer2_layer2_proto_goTypes = nil - file_layer2_layer2_proto_depIdxs = nil + }, + Metadata: "layer2/layer2.proto", } diff --git a/layer2/layer2.proto b/layer2/layer2.proto index 552ac29c..fe8725ec 100644 --- a/layer2/layer2.proto +++ b/layer2/layer2.proto @@ -20,8 +20,6 @@ package gnoi.layer2; import "github.com/openconfig/gnoi/types/types.proto"; -option go_package = "github.com/openconfig/gnoi/layer2"; - option (types.gnoi_version) = "0.1.0"; service Layer2 { diff --git a/layer2/layer2_grpc.pb.go b/layer2/layer2_grpc.pb.go deleted file mode 100644 index 21ae29d5..00000000 --- a/layer2/layer2_grpc.pb.go +++ /dev/null @@ -1,299 +0,0 @@ -// Code generated by protoc-gen-go-grpc. DO NOT EDIT. - -package layer2 - -import ( - context "context" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" -) - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 - -// Layer2Client is the client API for Layer2 service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. -type Layer2Client interface { - // ClearNeighborDiscovery will clear either a specific neighbor entry or - // clear the entire table based on parameters provided. - // TODO: This method is subject to deprecation once OpenConfig models this - // state. - ClearNeighborDiscovery(ctx context.Context, in *ClearNeighborDiscoveryRequest, opts ...grpc.CallOption) (*ClearNeighborDiscoveryResponse, error) - // ClearSpanningTree will reset a blocked spanning tree interface. - // TODO: This method is subject to deprecation once OpenConfig models this - // state. - ClearSpanningTree(ctx context.Context, in *ClearSpanningTreeRequest, opts ...grpc.CallOption) (*ClearSpanningTreeResponse, error) - // PerformBERT will perform a BERT operation on a port. The stream will - // return the current state of the operation as well as the ID for the - // operation. - PerformBERT(ctx context.Context, in *PerformBERTRequest, opts ...grpc.CallOption) (Layer2_PerformBERTClient, error) - // ClearLLDPInterface will clear all LLDP adjacencies on the provided - // interface. - ClearLLDPInterface(ctx context.Context, in *ClearLLDPInterfaceRequest, opts ...grpc.CallOption) (*ClearLLDPInterfaceResponse, error) - // SendWakeOnLAN will send a WOL event on the requested interface. - SendWakeOnLAN(ctx context.Context, in *SendWakeOnLANRequest, opts ...grpc.CallOption) (*SendWakeOnLANResponse, error) -} - -type layer2Client struct { - cc grpc.ClientConnInterface -} - -func NewLayer2Client(cc grpc.ClientConnInterface) Layer2Client { - return &layer2Client{cc} -} - -func (c *layer2Client) ClearNeighborDiscovery(ctx context.Context, in *ClearNeighborDiscoveryRequest, opts ...grpc.CallOption) (*ClearNeighborDiscoveryResponse, error) { - out := new(ClearNeighborDiscoveryResponse) - err := c.cc.Invoke(ctx, "/gnoi.layer2.Layer2/ClearNeighborDiscovery", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *layer2Client) ClearSpanningTree(ctx context.Context, in *ClearSpanningTreeRequest, opts ...grpc.CallOption) (*ClearSpanningTreeResponse, error) { - out := new(ClearSpanningTreeResponse) - err := c.cc.Invoke(ctx, "/gnoi.layer2.Layer2/ClearSpanningTree", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *layer2Client) PerformBERT(ctx context.Context, in *PerformBERTRequest, opts ...grpc.CallOption) (Layer2_PerformBERTClient, error) { - stream, err := c.cc.NewStream(ctx, &Layer2_ServiceDesc.Streams[0], "/gnoi.layer2.Layer2/PerformBERT", opts...) - if err != nil { - return nil, err - } - x := &layer2PerformBERTClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type Layer2_PerformBERTClient interface { - Recv() (*PerformBERTResponse, error) - grpc.ClientStream -} - -type layer2PerformBERTClient struct { - grpc.ClientStream -} - -func (x *layer2PerformBERTClient) Recv() (*PerformBERTResponse, error) { - m := new(PerformBERTResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *layer2Client) ClearLLDPInterface(ctx context.Context, in *ClearLLDPInterfaceRequest, opts ...grpc.CallOption) (*ClearLLDPInterfaceResponse, error) { - out := new(ClearLLDPInterfaceResponse) - err := c.cc.Invoke(ctx, "/gnoi.layer2.Layer2/ClearLLDPInterface", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *layer2Client) SendWakeOnLAN(ctx context.Context, in *SendWakeOnLANRequest, opts ...grpc.CallOption) (*SendWakeOnLANResponse, error) { - out := new(SendWakeOnLANResponse) - err := c.cc.Invoke(ctx, "/gnoi.layer2.Layer2/SendWakeOnLAN", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// Layer2Server is the server API for Layer2 service. -// All implementations must embed UnimplementedLayer2Server -// for forward compatibility -type Layer2Server interface { - // ClearNeighborDiscovery will clear either a specific neighbor entry or - // clear the entire table based on parameters provided. - // TODO: This method is subject to deprecation once OpenConfig models this - // state. - ClearNeighborDiscovery(context.Context, *ClearNeighborDiscoveryRequest) (*ClearNeighborDiscoveryResponse, error) - // ClearSpanningTree will reset a blocked spanning tree interface. - // TODO: This method is subject to deprecation once OpenConfig models this - // state. - ClearSpanningTree(context.Context, *ClearSpanningTreeRequest) (*ClearSpanningTreeResponse, error) - // PerformBERT will perform a BERT operation on a port. The stream will - // return the current state of the operation as well as the ID for the - // operation. - PerformBERT(*PerformBERTRequest, Layer2_PerformBERTServer) error - // ClearLLDPInterface will clear all LLDP adjacencies on the provided - // interface. - ClearLLDPInterface(context.Context, *ClearLLDPInterfaceRequest) (*ClearLLDPInterfaceResponse, error) - // SendWakeOnLAN will send a WOL event on the requested interface. - SendWakeOnLAN(context.Context, *SendWakeOnLANRequest) (*SendWakeOnLANResponse, error) - mustEmbedUnimplementedLayer2Server() -} - -// UnimplementedLayer2Server must be embedded to have forward compatible implementations. -type UnimplementedLayer2Server struct { -} - -func (UnimplementedLayer2Server) ClearNeighborDiscovery(context.Context, *ClearNeighborDiscoveryRequest) (*ClearNeighborDiscoveryResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ClearNeighborDiscovery not implemented") -} -func (UnimplementedLayer2Server) ClearSpanningTree(context.Context, *ClearSpanningTreeRequest) (*ClearSpanningTreeResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ClearSpanningTree not implemented") -} -func (UnimplementedLayer2Server) PerformBERT(*PerformBERTRequest, Layer2_PerformBERTServer) error { - return status.Errorf(codes.Unimplemented, "method PerformBERT not implemented") -} -func (UnimplementedLayer2Server) ClearLLDPInterface(context.Context, *ClearLLDPInterfaceRequest) (*ClearLLDPInterfaceResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ClearLLDPInterface not implemented") -} -func (UnimplementedLayer2Server) SendWakeOnLAN(context.Context, *SendWakeOnLANRequest) (*SendWakeOnLANResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SendWakeOnLAN not implemented") -} -func (UnimplementedLayer2Server) mustEmbedUnimplementedLayer2Server() {} - -// UnsafeLayer2Server may be embedded to opt out of forward compatibility for this service. -// Use of this interface is not recommended, as added methods to Layer2Server will -// result in compilation errors. -type UnsafeLayer2Server interface { - mustEmbedUnimplementedLayer2Server() -} - -func RegisterLayer2Server(s grpc.ServiceRegistrar, srv Layer2Server) { - s.RegisterService(&Layer2_ServiceDesc, srv) -} - -func _Layer2_ClearNeighborDiscovery_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ClearNeighborDiscoveryRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(Layer2Server).ClearNeighborDiscovery(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.layer2.Layer2/ClearNeighborDiscovery", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(Layer2Server).ClearNeighborDiscovery(ctx, req.(*ClearNeighborDiscoveryRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Layer2_ClearSpanningTree_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ClearSpanningTreeRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(Layer2Server).ClearSpanningTree(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.layer2.Layer2/ClearSpanningTree", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(Layer2Server).ClearSpanningTree(ctx, req.(*ClearSpanningTreeRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Layer2_PerformBERT_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(PerformBERTRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(Layer2Server).PerformBERT(m, &layer2PerformBERTServer{stream}) -} - -type Layer2_PerformBERTServer interface { - Send(*PerformBERTResponse) error - grpc.ServerStream -} - -type layer2PerformBERTServer struct { - grpc.ServerStream -} - -func (x *layer2PerformBERTServer) Send(m *PerformBERTResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _Layer2_ClearLLDPInterface_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ClearLLDPInterfaceRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(Layer2Server).ClearLLDPInterface(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.layer2.Layer2/ClearLLDPInterface", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(Layer2Server).ClearLLDPInterface(ctx, req.(*ClearLLDPInterfaceRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Layer2_SendWakeOnLAN_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SendWakeOnLANRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(Layer2Server).SendWakeOnLAN(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.layer2.Layer2/SendWakeOnLAN", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(Layer2Server).SendWakeOnLAN(ctx, req.(*SendWakeOnLANRequest)) - } - return interceptor(ctx, in, info, handler) -} - -// Layer2_ServiceDesc is the grpc.ServiceDesc for Layer2 service. -// It's only intended for direct use with grpc.RegisterService, -// and not to be introspected or modified (even as a copy) -var Layer2_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "gnoi.layer2.Layer2", - HandlerType: (*Layer2Server)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "ClearNeighborDiscovery", - Handler: _Layer2_ClearNeighborDiscovery_Handler, - }, - { - MethodName: "ClearSpanningTree", - Handler: _Layer2_ClearSpanningTree_Handler, - }, - { - MethodName: "ClearLLDPInterface", - Handler: _Layer2_ClearLLDPInterface_Handler, - }, - { - MethodName: "SendWakeOnLAN", - Handler: _Layer2_SendWakeOnLAN_Handler, - }, - }, - Streams: []grpc.StreamDesc{ - { - StreamName: "PerformBERT", - Handler: _Layer2_PerformBERT_Handler, - ServerStreams: true, - }, - }, - Metadata: "layer2/layer2.proto", -} diff --git a/mpls/mpls.pb.go b/mpls/mpls.pb.go index cc375050..42f0fbb8 100644 --- a/mpls/mpls.pb.go +++ b/mpls/mpls.pb.go @@ -1,46 +1,32 @@ -// -// Copyright 2017 Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// - // Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.26.0 -// protoc v3.15.7 // source: mpls/mpls.proto -package mpls +package gnoi_mpls import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" _ "github.com/openconfig/gnoi/types" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" + context "golang.org/x/net/context" + grpc "google.golang.org/grpc" + math "math" ) -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) +// 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 type ClearLSPRequest_Mode int32 const ( - ClearLSPRequest_DEFAULT ClearLSPRequest_Mode = 0 // Same as NONAGGRESSIVE. + ClearLSPRequest_DEFAULT ClearLSPRequest_Mode = 0 // Reoptimize the LSP using the current bandwidth. ClearLSPRequest_NONAGGRESSIVE ClearLSPRequest_Mode = 0 // Reoptimize the LSP using the current bandwidth. Only use IGP metric in @@ -57,99 +43,55 @@ const ( ClearLSPRequest_AUTOBW_NONAGGRESSIVE ClearLSPRequest_Mode = 4 ) -// Enum value maps for ClearLSPRequest_Mode. -var ( - ClearLSPRequest_Mode_name = map[int32]string{ - 0: "DEFAULT", - // Duplicate value: 0: "NONAGGRESSIVE", - 1: "AGGRESSIVE", - 2: "RESET", - 3: "AUTOBW_AGGRESSIVE", - 4: "AUTOBW_NONAGGRESSIVE", - } - ClearLSPRequest_Mode_value = map[string]int32{ - "DEFAULT": 0, - "NONAGGRESSIVE": 0, - "AGGRESSIVE": 1, - "RESET": 2, - "AUTOBW_AGGRESSIVE": 3, - "AUTOBW_NONAGGRESSIVE": 4, - } -) - -func (x ClearLSPRequest_Mode) Enum() *ClearLSPRequest_Mode { - p := new(ClearLSPRequest_Mode) - *p = x - return p +var ClearLSPRequest_Mode_name = map[int32]string{ + 0: "DEFAULT", + // Duplicate value: 0: "NONAGGRESSIVE", + 1: "AGGRESSIVE", + 2: "RESET", + 3: "AUTOBW_AGGRESSIVE", + 4: "AUTOBW_NONAGGRESSIVE", } -func (x ClearLSPRequest_Mode) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (ClearLSPRequest_Mode) Descriptor() protoreflect.EnumDescriptor { - return file_mpls_mpls_proto_enumTypes[0].Descriptor() +var ClearLSPRequest_Mode_value = map[string]int32{ + "DEFAULT": 0, + "NONAGGRESSIVE": 0, + "AGGRESSIVE": 1, + "RESET": 2, + "AUTOBW_AGGRESSIVE": 3, + "AUTOBW_NONAGGRESSIVE": 4, } -func (ClearLSPRequest_Mode) Type() protoreflect.EnumType { - return &file_mpls_mpls_proto_enumTypes[0] -} - -func (x ClearLSPRequest_Mode) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) +func (x ClearLSPRequest_Mode) String() string { + return proto.EnumName(ClearLSPRequest_Mode_name, int32(x)) } -// Deprecated: Use ClearLSPRequest_Mode.Descriptor instead. func (ClearLSPRequest_Mode) EnumDescriptor() ([]byte, []int) { - return file_mpls_mpls_proto_rawDescGZIP(), []int{0, 0} + return fileDescriptor_d4448d3521f3d4b5, []int{0, 0} } type MPLSPingRequest_ReplyMode int32 const ( - // Reply via an IPv4 packet to this system. - MPLSPingRequest_IPV4 MPLSPingRequest_ReplyMode = 0 - // Reply with a labeled packet with the router alert bit set. + MPLSPingRequest_IPV4 MPLSPingRequest_ReplyMode = 0 MPLSPingRequest_ROUTER_ALERT MPLSPingRequest_ReplyMode = 1 ) -// Enum value maps for MPLSPingRequest_ReplyMode. -var ( - MPLSPingRequest_ReplyMode_name = map[int32]string{ - 0: "IPV4", - 1: "ROUTER_ALERT", - } - MPLSPingRequest_ReplyMode_value = map[string]int32{ - "IPV4": 0, - "ROUTER_ALERT": 1, - } -) - -func (x MPLSPingRequest_ReplyMode) Enum() *MPLSPingRequest_ReplyMode { - p := new(MPLSPingRequest_ReplyMode) - *p = x - return p -} - -func (x MPLSPingRequest_ReplyMode) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (MPLSPingRequest_ReplyMode) Descriptor() protoreflect.EnumDescriptor { - return file_mpls_mpls_proto_enumTypes[1].Descriptor() +var MPLSPingRequest_ReplyMode_name = map[int32]string{ + 0: "IPV4", + 1: "ROUTER_ALERT", } -func (MPLSPingRequest_ReplyMode) Type() protoreflect.EnumType { - return &file_mpls_mpls_proto_enumTypes[1] +var MPLSPingRequest_ReplyMode_value = map[string]int32{ + "IPV4": 0, + "ROUTER_ALERT": 1, } -func (x MPLSPingRequest_ReplyMode) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) +func (x MPLSPingRequest_ReplyMode) String() string { + return proto.EnumName(MPLSPingRequest_ReplyMode_name, int32(x)) } -// Deprecated: Use MPLSPingRequest_ReplyMode.Descriptor instead. func (MPLSPingRequest_ReplyMode) EnumDescriptor() ([]byte, []int) { - return file_mpls_mpls_proto_rawDescGZIP(), []int{6, 0} + return fileDescriptor_d4448d3521f3d4b5, []int{6, 0} } type MPLSPingResponse_EchoResponseCode int32 @@ -160,284 +102,225 @@ const ( // The MPLS ping packet was not sent, for an unknown reason. MPLSPingResponse_NOT_SENT MPLSPingResponse_EchoResponseCode = 1 // The local system timed out waiting for an LSP ping response. - MPLSPingResponse_TIMEOUT MPLSPingResponse_EchoResponseCode = 2 // TODO(robjs): Add additional error codes. -) - -// Enum value maps for MPLSPingResponse_EchoResponseCode. -var ( - MPLSPingResponse_EchoResponseCode_name = map[int32]string{ - 0: "SUCCESS", - 1: "NOT_SENT", - 2: "TIMEOUT", - } - MPLSPingResponse_EchoResponseCode_value = map[string]int32{ - "SUCCESS": 0, - "NOT_SENT": 1, - "TIMEOUT": 2, - } + MPLSPingResponse_TIMEOUT MPLSPingResponse_EchoResponseCode = 2 ) -func (x MPLSPingResponse_EchoResponseCode) Enum() *MPLSPingResponse_EchoResponseCode { - p := new(MPLSPingResponse_EchoResponseCode) - *p = x - return p +var MPLSPingResponse_EchoResponseCode_name = map[int32]string{ + 0: "SUCCESS", + 1: "NOT_SENT", + 2: "TIMEOUT", } -func (x MPLSPingResponse_EchoResponseCode) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (MPLSPingResponse_EchoResponseCode) Descriptor() protoreflect.EnumDescriptor { - return file_mpls_mpls_proto_enumTypes[2].Descriptor() -} - -func (MPLSPingResponse_EchoResponseCode) Type() protoreflect.EnumType { - return &file_mpls_mpls_proto_enumTypes[2] +var MPLSPingResponse_EchoResponseCode_value = map[string]int32{ + "SUCCESS": 0, + "NOT_SENT": 1, + "TIMEOUT": 2, } -func (x MPLSPingResponse_EchoResponseCode) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) +func (x MPLSPingResponse_EchoResponseCode) String() string { + return proto.EnumName(MPLSPingResponse_EchoResponseCode_name, int32(x)) } -// Deprecated: Use MPLSPingResponse_EchoResponseCode.Descriptor instead. func (MPLSPingResponse_EchoResponseCode) EnumDescriptor() ([]byte, []int) { - return file_mpls_mpls_proto_rawDescGZIP(), []int{7, 0} + return fileDescriptor_d4448d3521f3d4b5, []int{7, 0} } // Request to clear a single tunnel on a target device. type ClearLSPRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // Name of the tunnel to clear. - Mode ClearLSPRequest_Mode `protobuf:"varint,3,opt,name=mode,proto3,enum=gnoi.mpls.ClearLSPRequest_Mode" json:"mode,omitempty"` // Tunnel clearing mode. + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Mode ClearLSPRequest_Mode `protobuf:"varint,3,opt,name=mode,proto3,enum=gnoi.mpls.ClearLSPRequest_Mode" json:"mode,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *ClearLSPRequest) Reset() { - *x = ClearLSPRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_mpls_mpls_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *ClearLSPRequest) Reset() { *m = ClearLSPRequest{} } +func (m *ClearLSPRequest) String() string { return proto.CompactTextString(m) } +func (*ClearLSPRequest) ProtoMessage() {} +func (*ClearLSPRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_d4448d3521f3d4b5, []int{0} } -func (x *ClearLSPRequest) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *ClearLSPRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ClearLSPRequest.Unmarshal(m, b) } - -func (*ClearLSPRequest) ProtoMessage() {} - -func (x *ClearLSPRequest) ProtoReflect() protoreflect.Message { - mi := &file_mpls_mpls_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *ClearLSPRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ClearLSPRequest.Marshal(b, m, deterministic) } - -// Deprecated: Use ClearLSPRequest.ProtoReflect.Descriptor instead. -func (*ClearLSPRequest) Descriptor() ([]byte, []int) { - return file_mpls_mpls_proto_rawDescGZIP(), []int{0} +func (m *ClearLSPRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ClearLSPRequest.Merge(m, src) +} +func (m *ClearLSPRequest) XXX_Size() int { + return xxx_messageInfo_ClearLSPRequest.Size(m) +} +func (m *ClearLSPRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ClearLSPRequest.DiscardUnknown(m) } -func (x *ClearLSPRequest) GetName() string { - if x != nil { - return x.Name +var xxx_messageInfo_ClearLSPRequest proto.InternalMessageInfo + +func (m *ClearLSPRequest) GetName() string { + if m != nil { + return m.Name } return "" } -func (x *ClearLSPRequest) GetMode() ClearLSPRequest_Mode { - if x != nil { - return x.Mode +func (m *ClearLSPRequest) GetMode() ClearLSPRequest_Mode { + if m != nil { + return m.Mode } return ClearLSPRequest_DEFAULT } type ClearLSPResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *ClearLSPResponse) Reset() { - *x = ClearLSPResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_mpls_mpls_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *ClearLSPResponse) Reset() { *m = ClearLSPResponse{} } +func (m *ClearLSPResponse) String() string { return proto.CompactTextString(m) } +func (*ClearLSPResponse) ProtoMessage() {} +func (*ClearLSPResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_d4448d3521f3d4b5, []int{1} } -func (x *ClearLSPResponse) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *ClearLSPResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ClearLSPResponse.Unmarshal(m, b) } - -func (*ClearLSPResponse) ProtoMessage() {} - -func (x *ClearLSPResponse) ProtoReflect() protoreflect.Message { - mi := &file_mpls_mpls_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *ClearLSPResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ClearLSPResponse.Marshal(b, m, deterministic) } - -// Deprecated: Use ClearLSPResponse.ProtoReflect.Descriptor instead. -func (*ClearLSPResponse) Descriptor() ([]byte, []int) { - return file_mpls_mpls_proto_rawDescGZIP(), []int{1} +func (m *ClearLSPResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ClearLSPResponse.Merge(m, src) +} +func (m *ClearLSPResponse) XXX_Size() int { + return xxx_messageInfo_ClearLSPResponse.Size(m) } +func (m *ClearLSPResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ClearLSPResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ClearLSPResponse proto.InternalMessageInfo // Request to clear a single tunnel counters on a target device. type ClearLSPCountersRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // Name of the tunnel to clear. + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *ClearLSPCountersRequest) Reset() { - *x = ClearLSPCountersRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_mpls_mpls_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *ClearLSPCountersRequest) Reset() { *m = ClearLSPCountersRequest{} } +func (m *ClearLSPCountersRequest) String() string { return proto.CompactTextString(m) } +func (*ClearLSPCountersRequest) ProtoMessage() {} +func (*ClearLSPCountersRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_d4448d3521f3d4b5, []int{2} } -func (x *ClearLSPCountersRequest) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *ClearLSPCountersRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ClearLSPCountersRequest.Unmarshal(m, b) } - -func (*ClearLSPCountersRequest) ProtoMessage() {} - -func (x *ClearLSPCountersRequest) ProtoReflect() protoreflect.Message { - mi := &file_mpls_mpls_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *ClearLSPCountersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ClearLSPCountersRequest.Marshal(b, m, deterministic) } - -// Deprecated: Use ClearLSPCountersRequest.ProtoReflect.Descriptor instead. -func (*ClearLSPCountersRequest) Descriptor() ([]byte, []int) { - return file_mpls_mpls_proto_rawDescGZIP(), []int{2} +func (m *ClearLSPCountersRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ClearLSPCountersRequest.Merge(m, src) +} +func (m *ClearLSPCountersRequest) XXX_Size() int { + return xxx_messageInfo_ClearLSPCountersRequest.Size(m) +} +func (m *ClearLSPCountersRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ClearLSPCountersRequest.DiscardUnknown(m) } -func (x *ClearLSPCountersRequest) GetName() string { - if x != nil { - return x.Name +var xxx_messageInfo_ClearLSPCountersRequest proto.InternalMessageInfo + +func (m *ClearLSPCountersRequest) GetName() string { + if m != nil { + return m.Name } return "" } type ClearLSPCountersResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *ClearLSPCountersResponse) Reset() { - *x = ClearLSPCountersResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_mpls_mpls_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *ClearLSPCountersResponse) Reset() { *m = ClearLSPCountersResponse{} } +func (m *ClearLSPCountersResponse) String() string { return proto.CompactTextString(m) } +func (*ClearLSPCountersResponse) ProtoMessage() {} +func (*ClearLSPCountersResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_d4448d3521f3d4b5, []int{3} } -func (x *ClearLSPCountersResponse) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *ClearLSPCountersResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ClearLSPCountersResponse.Unmarshal(m, b) } - -func (*ClearLSPCountersResponse) ProtoMessage() {} - -func (x *ClearLSPCountersResponse) ProtoReflect() protoreflect.Message { - mi := &file_mpls_mpls_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *ClearLSPCountersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ClearLSPCountersResponse.Marshal(b, m, deterministic) } - -// Deprecated: Use ClearLSPCountersResponse.ProtoReflect.Descriptor instead. -func (*ClearLSPCountersResponse) Descriptor() ([]byte, []int) { - return file_mpls_mpls_proto_rawDescGZIP(), []int{3} +func (m *ClearLSPCountersResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ClearLSPCountersResponse.Merge(m, src) +} +func (m *ClearLSPCountersResponse) XXX_Size() int { + return xxx_messageInfo_ClearLSPCountersResponse.Size(m) +} +func (m *ClearLSPCountersResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ClearLSPCountersResponse.DiscardUnknown(m) } -type MPLSPingPWEDestination struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields +var xxx_messageInfo_ClearLSPCountersResponse proto.InternalMessageInfo +type MPLSPingPWEDestination struct { // The address of the egress LER that the MPLS ping should be sent on when // destined to a PWE service. Eler string `protobuf:"bytes,1,opt,name=eler,proto3" json:"eler,omitempty"` // The virtual circuit ID for the PWE via which the ping should be sent. - Vcid uint32 `protobuf:"varint,2,opt,name=vcid,proto3" json:"vcid,omitempty"` + Vcid uint32 `protobuf:"varint,2,opt,name=vcid,proto3" json:"vcid,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *MPLSPingPWEDestination) Reset() { - *x = MPLSPingPWEDestination{} - if protoimpl.UnsafeEnabled { - mi := &file_mpls_mpls_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *MPLSPingPWEDestination) Reset() { *m = MPLSPingPWEDestination{} } +func (m *MPLSPingPWEDestination) String() string { return proto.CompactTextString(m) } +func (*MPLSPingPWEDestination) ProtoMessage() {} +func (*MPLSPingPWEDestination) Descriptor() ([]byte, []int) { + return fileDescriptor_d4448d3521f3d4b5, []int{4} } -func (x *MPLSPingPWEDestination) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *MPLSPingPWEDestination) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_MPLSPingPWEDestination.Unmarshal(m, b) } - -func (*MPLSPingPWEDestination) ProtoMessage() {} - -func (x *MPLSPingPWEDestination) ProtoReflect() protoreflect.Message { - mi := &file_mpls_mpls_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *MPLSPingPWEDestination) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_MPLSPingPWEDestination.Marshal(b, m, deterministic) } - -// Deprecated: Use MPLSPingPWEDestination.ProtoReflect.Descriptor instead. -func (*MPLSPingPWEDestination) Descriptor() ([]byte, []int) { - return file_mpls_mpls_proto_rawDescGZIP(), []int{4} +func (m *MPLSPingPWEDestination) XXX_Merge(src proto.Message) { + xxx_messageInfo_MPLSPingPWEDestination.Merge(m, src) +} +func (m *MPLSPingPWEDestination) XXX_Size() int { + return xxx_messageInfo_MPLSPingPWEDestination.Size(m) +} +func (m *MPLSPingPWEDestination) XXX_DiscardUnknown() { + xxx_messageInfo_MPLSPingPWEDestination.DiscardUnknown(m) } -func (x *MPLSPingPWEDestination) GetEler() string { - if x != nil { - return x.Eler +var xxx_messageInfo_MPLSPingPWEDestination proto.InternalMessageInfo + +func (m *MPLSPingPWEDestination) GetEler() string { + if m != nil { + return m.Eler } return "" } -func (x *MPLSPingPWEDestination) GetVcid() uint32 { - if x != nil { - return x.Vcid +func (m *MPLSPingPWEDestination) GetVcid() uint32 { + if m != nil { + return m.Vcid } return 0 } @@ -446,10 +329,6 @@ func (x *MPLSPingPWEDestination) GetVcid() uint32 { // terms of an absolute specification of an RSVP-TE LSP. It can be used to // identify an individual RSVP-TE session via which a ping should be sent. type MPLSPingRSVPTEDestination struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - // The IPv4 or IPv6 address used by the system initiating (acting as the // head-end) of the RSVP-TE LSP. Src string `protobuf:"bytes,1,opt,name=src,proto3" json:"src,omitempty"` @@ -458,58 +337,54 @@ type MPLSPingRSVPTEDestination struct { Dst string `protobuf:"bytes,2,opt,name=dst,proto3" json:"dst,omitempty"` // The extended tunnel ID of the RSVP-TE LSP, expressed as an unsigned, 32b // integer. - ExtendedTunnelId uint32 `protobuf:"varint,3,opt,name=extended_tunnel_id,json=extendedTunnelId,proto3" json:"extended_tunnel_id,omitempty"` + ExtendedTunnelId uint32 `protobuf:"varint,3,opt,name=extended_tunnel_id,json=extendedTunnelId,proto3" json:"extended_tunnel_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *MPLSPingRSVPTEDestination) Reset() { - *x = MPLSPingRSVPTEDestination{} - if protoimpl.UnsafeEnabled { - mi := &file_mpls_mpls_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *MPLSPingRSVPTEDestination) Reset() { *m = MPLSPingRSVPTEDestination{} } +func (m *MPLSPingRSVPTEDestination) String() string { return proto.CompactTextString(m) } +func (*MPLSPingRSVPTEDestination) ProtoMessage() {} +func (*MPLSPingRSVPTEDestination) Descriptor() ([]byte, []int) { + return fileDescriptor_d4448d3521f3d4b5, []int{5} } -func (x *MPLSPingRSVPTEDestination) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *MPLSPingRSVPTEDestination) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_MPLSPingRSVPTEDestination.Unmarshal(m, b) } - -func (*MPLSPingRSVPTEDestination) ProtoMessage() {} - -func (x *MPLSPingRSVPTEDestination) ProtoReflect() protoreflect.Message { - mi := &file_mpls_mpls_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *MPLSPingRSVPTEDestination) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_MPLSPingRSVPTEDestination.Marshal(b, m, deterministic) } - -// Deprecated: Use MPLSPingRSVPTEDestination.ProtoReflect.Descriptor instead. -func (*MPLSPingRSVPTEDestination) Descriptor() ([]byte, []int) { - return file_mpls_mpls_proto_rawDescGZIP(), []int{5} +func (m *MPLSPingRSVPTEDestination) XXX_Merge(src proto.Message) { + xxx_messageInfo_MPLSPingRSVPTEDestination.Merge(m, src) +} +func (m *MPLSPingRSVPTEDestination) XXX_Size() int { + return xxx_messageInfo_MPLSPingRSVPTEDestination.Size(m) +} +func (m *MPLSPingRSVPTEDestination) XXX_DiscardUnknown() { + xxx_messageInfo_MPLSPingRSVPTEDestination.DiscardUnknown(m) } -func (x *MPLSPingRSVPTEDestination) GetSrc() string { - if x != nil { - return x.Src +var xxx_messageInfo_MPLSPingRSVPTEDestination proto.InternalMessageInfo + +func (m *MPLSPingRSVPTEDestination) GetSrc() string { + if m != nil { + return m.Src } return "" } -func (x *MPLSPingRSVPTEDestination) GetDst() string { - if x != nil { - return x.Dst +func (m *MPLSPingRSVPTEDestination) GetDst() string { + if m != nil { + return m.Dst } return "" } -func (x *MPLSPingRSVPTEDestination) GetExtendedTunnelId() uint32 { - if x != nil { - return x.ExtendedTunnelId +func (m *MPLSPingRSVPTEDestination) GetExtendedTunnelId() uint32 { + if m != nil { + return m.ExtendedTunnelId } return 0 } @@ -517,66 +392,85 @@ func (x *MPLSPingRSVPTEDestination) GetExtendedTunnelId() uint32 { // MPLSPingRequest specifies the parameters that should be used as input from // the client, to a system that is initiating an RFC4379 MPLS ping request. type MPLSPingRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - // One field within the destination field should be specified to determine // the destination of the LSP ping. // - // Types that are assignable to Destination: + // Types that are valid to be assigned to Destination: // *MPLSPingRequest_LdpFec // *MPLSPingRequest_Fec129Pwe // *MPLSPingRequest_RsvpteLspName // *MPLSPingRequest_RsvpteLsp Destination isMPLSPingRequest_Destination `protobuf_oneof:"destination"` - // How the target LER should respond to the LSP ping. - ReplyMode MPLSPingRequest_ReplyMode `protobuf:"varint,6,opt,name=reply_mode,json=replyMode,proto3,enum=gnoi.mpls.MPLSPingRequest_ReplyMode" json:"reply_mode,omitempty"` + ReplyMode MPLSPingRequest_ReplyMode `protobuf:"varint,6,opt,name=reply_mode,json=replyMode,proto3,enum=gnoi.mpls.MPLSPingRequest_ReplyMode" json:"reply_mode,omitempty"` // The number of MPLS echo request packets to send. - Count uint32 `protobuf:"varint,7,opt,name=count,proto3" json:"count,omitempty"` // default=3 + Count uint32 `protobuf:"varint,7,opt,name=count,proto3" json:"count,omitempty"` // The size (in bytes) of each MPLS echo request packet. - Size uint32 `protobuf:"varint,8,opt,name=size,proto3" json:"size,omitempty"` // default=64 + Size uint32 `protobuf:"varint,8,opt,name=size,proto3" json:"size,omitempty"` // The source IPv4 address that should be used in the request packet. SourceAddress string `protobuf:"bytes,9,opt,name=source_address,json=sourceAddress,proto3" json:"source_address,omitempty"` // The MPLS TTL that should be set in the packets sent. MplsTtl uint32 `protobuf:"varint,10,opt,name=mpls_ttl,json=mplsTtl,proto3" json:"mpls_ttl,omitempty"` // The value of the traffic class (TC, formerly known as EXP) bits that // should be set in the MPLS ping packets. - TrafficClass uint32 `protobuf:"varint,11,opt,name=traffic_class,json=trafficClass,proto3" json:"traffic_class,omitempty"` + TrafficClass uint32 `protobuf:"varint,11,opt,name=traffic_class,json=trafficClass,proto3" json:"traffic_class,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *MPLSPingRequest) Reset() { - *x = MPLSPingRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_mpls_mpls_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *MPLSPingRequest) Reset() { *m = MPLSPingRequest{} } +func (m *MPLSPingRequest) String() string { return proto.CompactTextString(m) } +func (*MPLSPingRequest) ProtoMessage() {} +func (*MPLSPingRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_d4448d3521f3d4b5, []int{6} } -func (x *MPLSPingRequest) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *MPLSPingRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_MPLSPingRequest.Unmarshal(m, b) +} +func (m *MPLSPingRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_MPLSPingRequest.Marshal(b, m, deterministic) +} +func (m *MPLSPingRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_MPLSPingRequest.Merge(m, src) +} +func (m *MPLSPingRequest) XXX_Size() int { + return xxx_messageInfo_MPLSPingRequest.Size(m) +} +func (m *MPLSPingRequest) XXX_DiscardUnknown() { + xxx_messageInfo_MPLSPingRequest.DiscardUnknown(m) } -func (*MPLSPingRequest) ProtoMessage() {} +var xxx_messageInfo_MPLSPingRequest proto.InternalMessageInfo -func (x *MPLSPingRequest) ProtoReflect() protoreflect.Message { - mi := &file_mpls_mpls_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +type isMPLSPingRequest_Destination interface { + isMPLSPingRequest_Destination() } -// Deprecated: Use MPLSPingRequest.ProtoReflect.Descriptor instead. -func (*MPLSPingRequest) Descriptor() ([]byte, []int) { - return file_mpls_mpls_proto_rawDescGZIP(), []int{6} +type MPLSPingRequest_LdpFec struct { + LdpFec string `protobuf:"bytes,1,opt,name=ldp_fec,json=ldpFec,proto3,oneof"` } +type MPLSPingRequest_Fec129Pwe struct { + Fec129Pwe *MPLSPingPWEDestination `protobuf:"bytes,2,opt,name=fec129_pwe,json=fec129Pwe,proto3,oneof"` +} + +type MPLSPingRequest_RsvpteLspName struct { + RsvpteLspName string `protobuf:"bytes,4,opt,name=rsvpte_lsp_name,json=rsvpteLspName,proto3,oneof"` +} + +type MPLSPingRequest_RsvpteLsp struct { + RsvpteLsp *MPLSPingRSVPTEDestination `protobuf:"bytes,5,opt,name=rsvpte_lsp,json=rsvpteLsp,proto3,oneof"` +} + +func (*MPLSPingRequest_LdpFec) isMPLSPingRequest_Destination() {} + +func (*MPLSPingRequest_Fec129Pwe) isMPLSPingRequest_Destination() {} + +func (*MPLSPingRequest_RsvpteLspName) isMPLSPingRequest_Destination() {} + +func (*MPLSPingRequest_RsvpteLsp) isMPLSPingRequest_Destination() {} + func (m *MPLSPingRequest) GetDestination() isMPLSPingRequest_Destination { if m != nil { return m.Destination @@ -584,455 +478,480 @@ func (m *MPLSPingRequest) GetDestination() isMPLSPingRequest_Destination { return nil } -func (x *MPLSPingRequest) GetLdpFec() string { - if x, ok := x.GetDestination().(*MPLSPingRequest_LdpFec); ok { +func (m *MPLSPingRequest) GetLdpFec() string { + if x, ok := m.GetDestination().(*MPLSPingRequest_LdpFec); ok { return x.LdpFec } return "" } -func (x *MPLSPingRequest) GetFec129Pwe() *MPLSPingPWEDestination { - if x, ok := x.GetDestination().(*MPLSPingRequest_Fec129Pwe); ok { +func (m *MPLSPingRequest) GetFec129Pwe() *MPLSPingPWEDestination { + if x, ok := m.GetDestination().(*MPLSPingRequest_Fec129Pwe); ok { return x.Fec129Pwe } return nil } -func (x *MPLSPingRequest) GetRsvpteLspName() string { - if x, ok := x.GetDestination().(*MPLSPingRequest_RsvpteLspName); ok { +func (m *MPLSPingRequest) GetRsvpteLspName() string { + if x, ok := m.GetDestination().(*MPLSPingRequest_RsvpteLspName); ok { return x.RsvpteLspName } return "" } -func (x *MPLSPingRequest) GetRsvpteLsp() *MPLSPingRSVPTEDestination { - if x, ok := x.GetDestination().(*MPLSPingRequest_RsvpteLsp); ok { +func (m *MPLSPingRequest) GetRsvpteLsp() *MPLSPingRSVPTEDestination { + if x, ok := m.GetDestination().(*MPLSPingRequest_RsvpteLsp); ok { return x.RsvpteLsp } return nil } -func (x *MPLSPingRequest) GetReplyMode() MPLSPingRequest_ReplyMode { - if x != nil { - return x.ReplyMode +func (m *MPLSPingRequest) GetReplyMode() MPLSPingRequest_ReplyMode { + if m != nil { + return m.ReplyMode } return MPLSPingRequest_IPV4 } -func (x *MPLSPingRequest) GetCount() uint32 { - if x != nil { - return x.Count +func (m *MPLSPingRequest) GetCount() uint32 { + if m != nil { + return m.Count } return 0 } -func (x *MPLSPingRequest) GetSize() uint32 { - if x != nil { - return x.Size +func (m *MPLSPingRequest) GetSize() uint32 { + if m != nil { + return m.Size } return 0 } -func (x *MPLSPingRequest) GetSourceAddress() string { - if x != nil { - return x.SourceAddress +func (m *MPLSPingRequest) GetSourceAddress() string { + if m != nil { + return m.SourceAddress } return "" } -func (x *MPLSPingRequest) GetMplsTtl() uint32 { - if x != nil { - return x.MplsTtl +func (m *MPLSPingRequest) GetMplsTtl() uint32 { + if m != nil { + return m.MplsTtl } return 0 } -func (x *MPLSPingRequest) GetTrafficClass() uint32 { - if x != nil { - return x.TrafficClass +func (m *MPLSPingRequest) GetTrafficClass() uint32 { + if m != nil { + return m.TrafficClass } return 0 } -type isMPLSPingRequest_Destination interface { - isMPLSPingRequest_Destination() -} - -type MPLSPingRequest_LdpFec struct { - // The LDP forwarding equivalence class that the ping should be sent to - // expressed as an IPv4 or IPv6 prefix. - LdpFec string `protobuf:"bytes,1,opt,name=ldp_fec,json=ldpFec,proto3,oneof"` -} - -type MPLSPingRequest_Fec129Pwe struct { - // The FEC129 PWE to which the LSP ping should be sent. - Fec129Pwe *MPLSPingPWEDestination `protobuf:"bytes,2,opt,name=fec129_pwe,json=fec129Pwe,proto3,oneof"` +// XXX_OneofFuncs is for the internal use of the proto package. +func (*MPLSPingRequest) 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 _MPLSPingRequest_OneofMarshaler, _MPLSPingRequest_OneofUnmarshaler, _MPLSPingRequest_OneofSizer, []interface{}{ + (*MPLSPingRequest_LdpFec)(nil), + (*MPLSPingRequest_Fec129Pwe)(nil), + (*MPLSPingRequest_RsvpteLspName)(nil), + (*MPLSPingRequest_RsvpteLsp)(nil), + } } -type MPLSPingRequest_RsvpteLspName struct { - // The name of an RSVP-TE LSP via which the ping should be sent. The system - // should locally resolve the name to a particular RSVP-TE session. - RsvpteLspName string `protobuf:"bytes,4,opt,name=rsvpte_lsp_name,json=rsvpteLspName,proto3,oneof"` +func _MPLSPingRequest_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*MPLSPingRequest) + // destination + switch x := m.Destination.(type) { + case *MPLSPingRequest_LdpFec: + b.EncodeVarint(1<<3 | proto.WireBytes) + b.EncodeStringBytes(x.LdpFec) + case *MPLSPingRequest_Fec129Pwe: + b.EncodeVarint(2<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Fec129Pwe); err != nil { + return err + } + case *MPLSPingRequest_RsvpteLspName: + b.EncodeVarint(4<<3 | proto.WireBytes) + b.EncodeStringBytes(x.RsvpteLspName) + case *MPLSPingRequest_RsvpteLsp: + b.EncodeVarint(5<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.RsvpteLsp); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("MPLSPingRequest.Destination has unexpected type %T", x) + } + return nil } -type MPLSPingRequest_RsvpteLsp struct { - // An exact specification of an RSVP-TE LSP to which the system should send - // an MPLS ping message. - RsvpteLsp *MPLSPingRSVPTEDestination `protobuf:"bytes,5,opt,name=rsvpte_lsp,json=rsvpteLsp,proto3,oneof"` // TODO(robjs): L3VPN, BGP-LU destination types. See RFC4379. +func _MPLSPingRequest_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*MPLSPingRequest) + switch tag { + case 1: // destination.ldp_fec + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + x, err := b.DecodeStringBytes() + m.Destination = &MPLSPingRequest_LdpFec{x} + return true, err + case 2: // destination.fec129_pwe + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(MPLSPingPWEDestination) + err := b.DecodeMessage(msg) + m.Destination = &MPLSPingRequest_Fec129Pwe{msg} + return true, err + case 4: // destination.rsvpte_lsp_name + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + x, err := b.DecodeStringBytes() + m.Destination = &MPLSPingRequest_RsvpteLspName{x} + return true, err + case 5: // destination.rsvpte_lsp + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(MPLSPingRSVPTEDestination) + err := b.DecodeMessage(msg) + m.Destination = &MPLSPingRequest_RsvpteLsp{msg} + return true, err + default: + return false, nil + } +} + +func _MPLSPingRequest_OneofSizer(msg proto.Message) (n int) { + m := msg.(*MPLSPingRequest) + // destination + switch x := m.Destination.(type) { + case *MPLSPingRequest_LdpFec: + n += 1 // tag and wire + n += proto.SizeVarint(uint64(len(x.LdpFec))) + n += len(x.LdpFec) + case *MPLSPingRequest_Fec129Pwe: + s := proto.Size(x.Fec129Pwe) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *MPLSPingRequest_RsvpteLspName: + n += 1 // tag and wire + n += proto.SizeVarint(uint64(len(x.RsvpteLspName))) + n += len(x.RsvpteLspName) + case *MPLSPingRequest_RsvpteLsp: + s := proto.Size(x.RsvpteLsp) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n } -func (*MPLSPingRequest_LdpFec) isMPLSPingRequest_Destination() {} - -func (*MPLSPingRequest_Fec129Pwe) isMPLSPingRequest_Destination() {} - -func (*MPLSPingRequest_RsvpteLspName) isMPLSPingRequest_Destination() {} - -func (*MPLSPingRequest_RsvpteLsp) isMPLSPingRequest_Destination() {} - // MPLSPingResponse (MPLSPong?) is sent from the target to the client based on // each MPLS Echo Response packet it receives associated with an input MPLSPing // RPC. type MPLSPingResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Seq uint32 `protobuf:"varint,1,opt,name=seq,proto3" json:"seq,omitempty"` // The sequence number of the MPLS Echo Reply. + Seq uint32 `protobuf:"varint,1,opt,name=seq,proto3" json:"seq,omitempty"` // The response that was received from the egress LER. Response MPLSPingResponse_EchoResponseCode `protobuf:"varint,2,opt,name=response,proto3,enum=gnoi.mpls.MPLSPingResponse_EchoResponseCode" json:"response,omitempty"` // The time (in nanoseconds) between transmission of the Echo Response, // and the echo reply. - ResponseTime uint64 `protobuf:"varint,3,opt,name=response_time,json=responseTime,proto3" json:"response_time,omitempty"` + ResponseTime uint64 `protobuf:"varint,3,opt,name=response_time,json=responseTime,proto3" json:"response_time,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *MPLSPingResponse) Reset() { - *x = MPLSPingResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_mpls_mpls_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *MPLSPingResponse) Reset() { *m = MPLSPingResponse{} } +func (m *MPLSPingResponse) String() string { return proto.CompactTextString(m) } +func (*MPLSPingResponse) ProtoMessage() {} +func (*MPLSPingResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_d4448d3521f3d4b5, []int{7} } -func (x *MPLSPingResponse) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *MPLSPingResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_MPLSPingResponse.Unmarshal(m, b) +} +func (m *MPLSPingResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_MPLSPingResponse.Marshal(b, m, deterministic) +} +func (m *MPLSPingResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MPLSPingResponse.Merge(m, src) +} +func (m *MPLSPingResponse) XXX_Size() int { + return xxx_messageInfo_MPLSPingResponse.Size(m) +} +func (m *MPLSPingResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MPLSPingResponse.DiscardUnknown(m) } -func (*MPLSPingResponse) ProtoMessage() {} +var xxx_messageInfo_MPLSPingResponse proto.InternalMessageInfo -func (x *MPLSPingResponse) ProtoReflect() protoreflect.Message { - mi := &file_mpls_mpls_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms +func (m *MPLSPingResponse) GetSeq() uint32 { + if m != nil { + return m.Seq } - return mi.MessageOf(x) + return 0 } -// Deprecated: Use MPLSPingResponse.ProtoReflect.Descriptor instead. -func (*MPLSPingResponse) Descriptor() ([]byte, []int) { - return file_mpls_mpls_proto_rawDescGZIP(), []int{7} +func (m *MPLSPingResponse) GetResponse() MPLSPingResponse_EchoResponseCode { + if m != nil { + return m.Response + } + return MPLSPingResponse_SUCCESS } -func (x *MPLSPingResponse) GetSeq() uint32 { - if x != nil { - return x.Seq +func (m *MPLSPingResponse) GetResponseTime() uint64 { + if m != nil { + return m.ResponseTime } return 0 } -func (x *MPLSPingResponse) GetResponse() MPLSPingResponse_EchoResponseCode { - if x != nil { - return x.Response +func init() { + proto.RegisterEnum("gnoi.mpls.ClearLSPRequest_Mode", ClearLSPRequest_Mode_name, ClearLSPRequest_Mode_value) + proto.RegisterEnum("gnoi.mpls.MPLSPingRequest_ReplyMode", MPLSPingRequest_ReplyMode_name, MPLSPingRequest_ReplyMode_value) + proto.RegisterEnum("gnoi.mpls.MPLSPingResponse_EchoResponseCode", MPLSPingResponse_EchoResponseCode_name, MPLSPingResponse_EchoResponseCode_value) + proto.RegisterType((*ClearLSPRequest)(nil), "gnoi.mpls.ClearLSPRequest") + proto.RegisterType((*ClearLSPResponse)(nil), "gnoi.mpls.ClearLSPResponse") + proto.RegisterType((*ClearLSPCountersRequest)(nil), "gnoi.mpls.ClearLSPCountersRequest") + proto.RegisterType((*ClearLSPCountersResponse)(nil), "gnoi.mpls.ClearLSPCountersResponse") + proto.RegisterType((*MPLSPingPWEDestination)(nil), "gnoi.mpls.MPLSPingPWEDestination") + proto.RegisterType((*MPLSPingRSVPTEDestination)(nil), "gnoi.mpls.MPLSPingRSVPTEDestination") + proto.RegisterType((*MPLSPingRequest)(nil), "gnoi.mpls.MPLSPingRequest") + proto.RegisterType((*MPLSPingResponse)(nil), "gnoi.mpls.MPLSPingResponse") +} + +func init() { proto.RegisterFile("mpls/mpls.proto", fileDescriptor_d4448d3521f3d4b5) } + +var fileDescriptor_d4448d3521f3d4b5 = []byte{ + // 778 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x54, 0x4f, 0x8f, 0xda, 0x46, + 0x14, 0xb7, 0xc1, 0x2c, 0xe6, 0x81, 0xc1, 0x19, 0xa5, 0xad, 0x97, 0x1e, 0x9a, 0x3a, 0xad, 0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xf5, 0xf6, 0x4c, 0x5c, 0xec, 0x97, 0xff, 0x07, 0x00, 0x00, + 0xff, 0xff, 0x2b, 0x14, 0x01, 0x1f, 0xfd, 0x05, 0x00, 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion4 + +// MPLSClient is the client API for MPLS service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type MPLSClient interface { + // ClearLSP clears a single tunnel (requests for it's route to be + // recalculated). + ClearLSP(ctx context.Context, in *ClearLSPRequest, opts ...grpc.CallOption) (*ClearLSPResponse, error) + // ClearLSPCounters will clear the MPLS counters for the provided LSP. + ClearLSPCounters(ctx context.Context, in *ClearLSPCountersRequest, opts ...grpc.CallOption) (*ClearLSPCountersResponse, error) + // An MPLS ping, specified as per RFC4379. + MPLSPing(ctx context.Context, in *MPLSPingRequest, opts ...grpc.CallOption) (MPLS_MPLSPingClient, error) +} + +type mPLSClient struct { + cc *grpc.ClientConn +} + +func NewMPLSClient(cc *grpc.ClientConn) MPLSClient { + return &mPLSClient{cc} +} + +func (c *mPLSClient) ClearLSP(ctx context.Context, in *ClearLSPRequest, opts ...grpc.CallOption) (*ClearLSPResponse, error) { + out := new(ClearLSPResponse) + err := c.cc.Invoke(ctx, "/gnoi.mpls.MPLS/ClearLSP", in, out, opts...) + if err != nil { + return nil, err } - return MPLSPingResponse_SUCCESS + return out, nil } -func (x *MPLSPingResponse) GetResponseTime() uint64 { - if x != nil { - return x.ResponseTime +func (c *mPLSClient) ClearLSPCounters(ctx context.Context, in *ClearLSPCountersRequest, opts ...grpc.CallOption) (*ClearLSPCountersResponse, error) { + out := new(ClearLSPCountersResponse) + err := c.cc.Invoke(ctx, "/gnoi.mpls.MPLS/ClearLSPCounters", in, out, opts...) + if err != nil { + return nil, err } - return 0 + return out, nil } -var File_mpls_mpls_proto protoreflect.FileDescriptor - -var file_mpls_mpls_proto_rawDesc = []byte{ - 0x0a, 0x0f, 0x6d, 0x70, 0x6c, 0x73, 0x2f, 0x6d, 0x70, 0x6c, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x12, 0x09, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6d, 0x70, 0x6c, 0x73, 0x1a, 0x2c, 0x67, 0x69, - 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x6f, 0x6e, - 0x66, 0x69, 0x67, 0x2f, 0x67, 0x6e, 0x6f, 0x69, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x74, - 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xd2, 0x01, 0x0a, 0x0f, 0x43, - 0x6c, 0x65, 0x61, 0x72, 0x4c, 0x53, 0x50, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, - 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, - 0x6d, 0x65, 0x12, 0x33, 0x0a, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, - 0x32, 0x1f, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6d, 0x70, 0x6c, 0x73, 0x2e, 0x43, 0x6c, 0x65, - 0x61, 0x72, 0x4c, 0x53, 0x50, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x4d, 0x6f, 0x64, - 0x65, 0x52, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x22, 0x76, 0x0a, 0x04, 0x4d, 0x6f, 0x64, 0x65, 0x12, - 0x0b, 0x0a, 0x07, 0x44, 0x45, 0x46, 0x41, 0x55, 0x4c, 0x54, 0x10, 0x00, 0x12, 0x11, 0x0a, 0x0d, - 0x4e, 0x4f, 0x4e, 0x41, 0x47, 0x47, 0x52, 0x45, 0x53, 0x53, 0x49, 0x56, 0x45, 0x10, 0x00, 0x12, - 0x0e, 0x0a, 0x0a, 0x41, 0x47, 0x47, 0x52, 0x45, 0x53, 0x53, 0x49, 0x56, 0x45, 0x10, 0x01, 0x12, - 0x09, 0x0a, 0x05, 0x52, 0x45, 0x53, 0x45, 0x54, 0x10, 0x02, 0x12, 0x15, 0x0a, 0x11, 0x41, 0x55, - 0x54, 0x4f, 0x42, 0x57, 0x5f, 0x41, 0x47, 0x47, 0x52, 0x45, 0x53, 0x53, 0x49, 0x56, 0x45, 0x10, - 0x03, 0x12, 0x18, 0x0a, 0x14, 0x41, 0x55, 0x54, 0x4f, 0x42, 0x57, 0x5f, 0x4e, 0x4f, 0x4e, 0x41, - 0x47, 0x47, 0x52, 0x45, 0x53, 0x53, 0x49, 0x56, 0x45, 0x10, 0x04, 0x1a, 0x02, 0x10, 0x01, 0x22, - 0x12, 0x0a, 0x10, 0x43, 0x6c, 0x65, 0x61, 0x72, 0x4c, 0x53, 0x50, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x2d, 0x0a, 0x17, 0x43, 0x6c, 0x65, 0x61, 0x72, 0x4c, 0x53, 0x50, 0x43, - 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, - 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, - 0x6d, 0x65, 0x22, 0x1a, 0x0a, 0x18, 0x43, 0x6c, 0x65, 0x61, 0x72, 0x4c, 0x53, 0x50, 0x43, 0x6f, - 0x75, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x40, - 0x0a, 0x16, 0x4d, 0x50, 0x4c, 0x53, 0x50, 0x69, 0x6e, 0x67, 0x50, 0x57, 0x45, 0x44, 0x65, 0x73, - 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x65, 0x6c, 0x65, 0x72, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x65, 0x6c, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, - 0x76, 0x63, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x76, 0x63, 0x69, 0x64, - 0x22, 0x6d, 0x0a, 0x19, 0x4d, 0x50, 0x4c, 0x53, 0x50, 0x69, 0x6e, 0x67, 0x52, 0x53, 0x56, 0x50, - 0x54, 0x45, 0x44, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x10, 0x0a, - 0x03, 0x73, 0x72, 0x63, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x73, 0x72, 0x63, 0x12, - 0x10, 0x0a, 0x03, 0x64, 0x73, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x64, 0x73, - 0x74, 0x12, 0x2c, 0x0a, 0x12, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x64, 0x5f, 0x74, 0x75, - 0x6e, 0x6e, 0x65, 0x6c, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x10, 0x65, - 0x78, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x64, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x49, 0x64, 0x22, - 0xef, 0x03, 0x0a, 0x0f, 0x4d, 0x50, 0x4c, 0x53, 0x50, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x07, 0x6c, 0x64, 0x70, 0x5f, 0x66, 0x65, 0x63, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x06, 0x6c, 0x64, 0x70, 0x46, 0x65, 0x63, 0x12, 0x42, - 0x0a, 0x0a, 0x66, 0x65, 0x63, 0x31, 0x32, 0x39, 0x5f, 0x70, 0x77, 0x65, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6d, 0x70, 0x6c, 0x73, 0x2e, 0x4d, - 0x50, 0x4c, 0x53, 0x50, 0x69, 0x6e, 0x67, 0x50, 0x57, 0x45, 0x44, 0x65, 0x73, 0x74, 0x69, 0x6e, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x09, 0x66, 0x65, 0x63, 0x31, 0x32, 0x39, 0x50, - 0x77, 0x65, 0x12, 0x28, 0x0a, 0x0f, 0x72, 0x73, 0x76, 0x70, 0x74, 0x65, 0x5f, 0x6c, 0x73, 0x70, - 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0d, 0x72, - 0x73, 0x76, 0x70, 0x74, 0x65, 0x4c, 0x73, 0x70, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x45, 0x0a, 0x0a, - 0x72, 0x73, 0x76, 0x70, 0x74, 0x65, 0x5f, 0x6c, 0x73, 0x70, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x24, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6d, 0x70, 0x6c, 0x73, 0x2e, 0x4d, 0x50, 0x4c, - 0x53, 0x50, 0x69, 0x6e, 0x67, 0x52, 0x53, 0x56, 0x50, 0x54, 0x45, 0x44, 0x65, 0x73, 0x74, 0x69, - 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x09, 0x72, 0x73, 0x76, 0x70, 0x74, 0x65, - 0x4c, 0x73, 0x70, 0x12, 0x43, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6c, 0x79, 0x5f, 0x6d, 0x6f, 0x64, - 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x24, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6d, - 0x70, 0x6c, 0x73, 0x2e, 0x4d, 0x50, 0x4c, 0x53, 0x50, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x09, 0x72, - 0x65, 0x70, 0x6c, 0x79, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, - 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x12, - 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x73, 0x69, - 0x7a, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x64, 0x64, - 0x72, 0x65, 0x73, 0x73, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x73, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x6d, 0x70, 0x6c, - 0x73, 0x5f, 0x74, 0x74, 0x6c, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x6d, 0x70, 0x6c, - 0x73, 0x54, 0x74, 0x6c, 0x12, 0x23, 0x0a, 0x0d, 0x74, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x5f, - 0x63, 0x6c, 0x61, 0x73, 0x73, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0c, 0x74, 0x72, 0x61, - 0x66, 0x66, 0x69, 0x63, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x22, 0x27, 0x0a, 0x09, 0x52, 0x65, 0x70, - 0x6c, 0x79, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x08, 0x0a, 0x04, 0x49, 0x50, 0x56, 0x34, 0x10, 0x00, - 0x12, 0x10, 0x0a, 0x0c, 0x52, 0x4f, 0x55, 0x54, 0x45, 0x52, 0x5f, 0x41, 0x4c, 0x45, 0x52, 0x54, - 0x10, 0x01, 0x42, 0x0d, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x22, 0xcf, 0x01, 0x0a, 0x10, 0x4d, 0x50, 0x4c, 0x53, 0x50, 0x69, 0x6e, 0x67, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x65, 0x71, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0d, 0x52, 0x03, 0x73, 0x65, 0x71, 0x12, 0x48, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2c, 0x2e, 0x67, 0x6e, 0x6f, - 0x69, 0x2e, 0x6d, 0x70, 0x6c, 0x73, 0x2e, 0x4d, 0x50, 0x4c, 0x53, 0x50, 0x69, 0x6e, 0x67, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x45, 0x63, 0x68, 0x6f, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x5f, 0x74, - 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x22, 0x3a, 0x0a, 0x10, 0x45, 0x63, 0x68, 0x6f, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x53, - 0x55, 0x43, 0x43, 0x45, 0x53, 0x53, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x4e, 0x4f, 0x54, 0x5f, - 0x53, 0x45, 0x4e, 0x54, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x54, 0x49, 0x4d, 0x45, 0x4f, 0x55, - 0x54, 0x10, 0x02, 0x32, 0xf5, 0x01, 0x0a, 0x04, 0x4d, 0x50, 0x4c, 0x53, 0x12, 0x45, 0x0a, 0x08, - 0x43, 0x6c, 0x65, 0x61, 0x72, 0x4c, 0x53, 0x50, 0x12, 0x1a, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, - 0x6d, 0x70, 0x6c, 0x73, 0x2e, 0x43, 0x6c, 0x65, 0x61, 0x72, 0x4c, 0x53, 0x50, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6d, 0x70, 0x6c, 0x73, - 0x2e, 0x43, 0x6c, 0x65, 0x61, 0x72, 0x4c, 0x53, 0x50, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x00, 0x12, 0x5d, 0x0a, 0x10, 0x43, 0x6c, 0x65, 0x61, 0x72, 0x4c, 0x53, 0x50, 0x43, - 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x12, 0x22, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6d, - 0x70, 0x6c, 0x73, 0x2e, 0x43, 0x6c, 0x65, 0x61, 0x72, 0x4c, 0x53, 0x50, 0x43, 0x6f, 0x75, 0x6e, - 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x67, 0x6e, - 0x6f, 0x69, 0x2e, 0x6d, 0x70, 0x6c, 0x73, 0x2e, 0x43, 0x6c, 0x65, 0x61, 0x72, 0x4c, 0x53, 0x50, - 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x00, 0x12, 0x47, 0x0a, 0x08, 0x4d, 0x50, 0x4c, 0x53, 0x50, 0x69, 0x6e, 0x67, 0x12, 0x1a, - 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6d, 0x70, 0x6c, 0x73, 0x2e, 0x4d, 0x50, 0x4c, 0x53, 0x50, - 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x67, 0x6e, 0x6f, - 0x69, 0x2e, 0x6d, 0x70, 0x6c, 0x73, 0x2e, 0x4d, 0x50, 0x4c, 0x53, 0x50, 0x69, 0x6e, 0x67, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x30, 0x01, 0x42, 0x29, 0x5a, 0x1f, 0x67, - 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x67, 0x6e, 0x6f, 0x69, 0x2f, 0x6d, 0x70, 0x6c, 0x73, 0xd2, 0x3e, - 0x05, 0x30, 0x2e, 0x31, 0x2e, 0x30, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_mpls_mpls_proto_rawDescOnce sync.Once - file_mpls_mpls_proto_rawDescData = file_mpls_mpls_proto_rawDesc -) +func (c *mPLSClient) MPLSPing(ctx context.Context, in *MPLSPingRequest, opts ...grpc.CallOption) (MPLS_MPLSPingClient, error) { + stream, err := c.cc.NewStream(ctx, &_MPLS_serviceDesc.Streams[0], "/gnoi.mpls.MPLS/MPLSPing", opts...) + if err != nil { + return nil, err + } + x := &mPLSMPLSPingClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type MPLS_MPLSPingClient interface { + Recv() (*MPLSPingResponse, error) + grpc.ClientStream +} + +type mPLSMPLSPingClient struct { + grpc.ClientStream +} -func file_mpls_mpls_proto_rawDescGZIP() []byte { - file_mpls_mpls_proto_rawDescOnce.Do(func() { - file_mpls_mpls_proto_rawDescData = protoimpl.X.CompressGZIP(file_mpls_mpls_proto_rawDescData) - }) - return file_mpls_mpls_proto_rawDescData -} - -var file_mpls_mpls_proto_enumTypes = make([]protoimpl.EnumInfo, 3) -var file_mpls_mpls_proto_msgTypes = make([]protoimpl.MessageInfo, 8) -var file_mpls_mpls_proto_goTypes = []interface{}{ - (ClearLSPRequest_Mode)(0), // 0: gnoi.mpls.ClearLSPRequest.Mode - (MPLSPingRequest_ReplyMode)(0), // 1: gnoi.mpls.MPLSPingRequest.ReplyMode - (MPLSPingResponse_EchoResponseCode)(0), // 2: gnoi.mpls.MPLSPingResponse.EchoResponseCode - (*ClearLSPRequest)(nil), // 3: gnoi.mpls.ClearLSPRequest - (*ClearLSPResponse)(nil), // 4: gnoi.mpls.ClearLSPResponse - (*ClearLSPCountersRequest)(nil), // 5: gnoi.mpls.ClearLSPCountersRequest - (*ClearLSPCountersResponse)(nil), // 6: gnoi.mpls.ClearLSPCountersResponse - (*MPLSPingPWEDestination)(nil), // 7: gnoi.mpls.MPLSPingPWEDestination - (*MPLSPingRSVPTEDestination)(nil), // 8: gnoi.mpls.MPLSPingRSVPTEDestination - (*MPLSPingRequest)(nil), // 9: gnoi.mpls.MPLSPingRequest - (*MPLSPingResponse)(nil), // 10: gnoi.mpls.MPLSPingResponse -} -var file_mpls_mpls_proto_depIdxs = []int32{ - 0, // 0: gnoi.mpls.ClearLSPRequest.mode:type_name -> gnoi.mpls.ClearLSPRequest.Mode - 7, // 1: gnoi.mpls.MPLSPingRequest.fec129_pwe:type_name -> gnoi.mpls.MPLSPingPWEDestination - 8, // 2: gnoi.mpls.MPLSPingRequest.rsvpte_lsp:type_name -> gnoi.mpls.MPLSPingRSVPTEDestination - 1, // 3: gnoi.mpls.MPLSPingRequest.reply_mode:type_name -> gnoi.mpls.MPLSPingRequest.ReplyMode - 2, // 4: gnoi.mpls.MPLSPingResponse.response:type_name -> gnoi.mpls.MPLSPingResponse.EchoResponseCode - 3, // 5: gnoi.mpls.MPLS.ClearLSP:input_type -> gnoi.mpls.ClearLSPRequest - 5, // 6: gnoi.mpls.MPLS.ClearLSPCounters:input_type -> gnoi.mpls.ClearLSPCountersRequest - 9, // 7: gnoi.mpls.MPLS.MPLSPing:input_type -> gnoi.mpls.MPLSPingRequest - 4, // 8: gnoi.mpls.MPLS.ClearLSP:output_type -> gnoi.mpls.ClearLSPResponse - 6, // 9: gnoi.mpls.MPLS.ClearLSPCounters:output_type -> gnoi.mpls.ClearLSPCountersResponse - 10, // 10: gnoi.mpls.MPLS.MPLSPing:output_type -> gnoi.mpls.MPLSPingResponse - 8, // [8:11] is the sub-list for method output_type - 5, // [5:8] is the sub-list for method input_type - 5, // [5:5] is the sub-list for extension type_name - 5, // [5:5] is the sub-list for extension extendee - 0, // [0:5] is the sub-list for field type_name -} - -func init() { file_mpls_mpls_proto_init() } -func file_mpls_mpls_proto_init() { - if File_mpls_mpls_proto != nil { - return +func (x *mPLSMPLSPingClient) Recv() (*MPLSPingResponse, error) { + m := new(MPLSPingResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err } - if !protoimpl.UnsafeEnabled { - file_mpls_mpls_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ClearLSPRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_mpls_mpls_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ClearLSPResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_mpls_mpls_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ClearLSPCountersRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_mpls_mpls_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ClearLSPCountersResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_mpls_mpls_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MPLSPingPWEDestination); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_mpls_mpls_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MPLSPingRSVPTEDestination); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_mpls_mpls_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MPLSPingRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_mpls_mpls_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MPLSPingResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } + return m, nil +} + +// MPLSServer is the server API for MPLS service. +type MPLSServer interface { + // ClearLSP clears a single tunnel (requests for it's route to be + // recalculated). + ClearLSP(context.Context, *ClearLSPRequest) (*ClearLSPResponse, error) + // ClearLSPCounters will clear the MPLS counters for the provided LSP. + ClearLSPCounters(context.Context, *ClearLSPCountersRequest) (*ClearLSPCountersResponse, error) + // An MPLS ping, specified as per RFC4379. + MPLSPing(*MPLSPingRequest, MPLS_MPLSPingServer) error +} + +func RegisterMPLSServer(s *grpc.Server, srv MPLSServer) { + s.RegisterService(&_MPLS_serviceDesc, srv) +} + +func _MPLS_ClearLSP_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ClearLSPRequest) + if err := dec(in); err != nil { + return nil, err } - file_mpls_mpls_proto_msgTypes[6].OneofWrappers = []interface{}{ - (*MPLSPingRequest_LdpFec)(nil), - (*MPLSPingRequest_Fec129Pwe)(nil), - (*MPLSPingRequest_RsvpteLspName)(nil), - (*MPLSPingRequest_RsvpteLsp)(nil), + if interceptor == nil { + return srv.(MPLSServer).ClearLSP(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gnoi.mpls.MPLS/ClearLSP", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MPLSServer).ClearLSP(ctx, req.(*ClearLSPRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _MPLS_ClearLSPCounters_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ClearLSPCountersRequest) + if err := dec(in); err != nil { + return nil, err } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_mpls_mpls_proto_rawDesc, - NumEnums: 3, - NumMessages: 8, - NumExtensions: 0, - NumServices: 1, + if interceptor == nil { + return srv.(MPLSServer).ClearLSPCounters(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gnoi.mpls.MPLS/ClearLSPCounters", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MPLSServer).ClearLSPCounters(ctx, req.(*ClearLSPCountersRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _MPLS_MPLSPing_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(MPLSPingRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(MPLSServer).MPLSPing(m, &mPLSMPLSPingServer{stream}) +} + +type MPLS_MPLSPingServer interface { + Send(*MPLSPingResponse) error + grpc.ServerStream +} + +type mPLSMPLSPingServer struct { + grpc.ServerStream +} + +func (x *mPLSMPLSPingServer) Send(m *MPLSPingResponse) error { + return x.ServerStream.SendMsg(m) +} + +var _MPLS_serviceDesc = grpc.ServiceDesc{ + ServiceName: "gnoi.mpls.MPLS", + HandlerType: (*MPLSServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "ClearLSP", + Handler: _MPLS_ClearLSP_Handler, + }, + { + MethodName: "ClearLSPCounters", + Handler: _MPLS_ClearLSPCounters_Handler, + }, + }, + Streams: []grpc.StreamDesc{ + { + StreamName: "MPLSPing", + Handler: _MPLS_MPLSPing_Handler, + ServerStreams: true, }, - GoTypes: file_mpls_mpls_proto_goTypes, - DependencyIndexes: file_mpls_mpls_proto_depIdxs, - EnumInfos: file_mpls_mpls_proto_enumTypes, - MessageInfos: file_mpls_mpls_proto_msgTypes, - }.Build() - File_mpls_mpls_proto = out.File - file_mpls_mpls_proto_rawDesc = nil - file_mpls_mpls_proto_goTypes = nil - file_mpls_mpls_proto_depIdxs = nil + }, + Metadata: "mpls/mpls.proto", } diff --git a/mpls/mpls.proto b/mpls/mpls.proto index 0c3b308b..6192a94b 100644 --- a/mpls/mpls.proto +++ b/mpls/mpls.proto @@ -20,8 +20,6 @@ package gnoi.mpls; import "github.com/openconfig/gnoi/types/types.proto"; -option go_package = "github.com/openconfig/gnoi/mpls"; - option (types.gnoi_version) = "0.1.0"; service MPLS { diff --git a/mpls/mpls_grpc.pb.go b/mpls/mpls_grpc.pb.go deleted file mode 100644 index a3730bd8..00000000 --- a/mpls/mpls_grpc.pb.go +++ /dev/null @@ -1,209 +0,0 @@ -// Code generated by protoc-gen-go-grpc. DO NOT EDIT. - -package mpls - -import ( - context "context" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" -) - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 - -// MPLSClient is the client API for MPLS service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. -type MPLSClient interface { - // ClearLSP clears a single tunnel (requests for it's route to be - // recalculated). - ClearLSP(ctx context.Context, in *ClearLSPRequest, opts ...grpc.CallOption) (*ClearLSPResponse, error) - // ClearLSPCounters will clear the MPLS counters for the provided LSP. - ClearLSPCounters(ctx context.Context, in *ClearLSPCountersRequest, opts ...grpc.CallOption) (*ClearLSPCountersResponse, error) - // An MPLS ping, specified as per RFC4379. - MPLSPing(ctx context.Context, in *MPLSPingRequest, opts ...grpc.CallOption) (MPLS_MPLSPingClient, error) -} - -type mPLSClient struct { - cc grpc.ClientConnInterface -} - -func NewMPLSClient(cc grpc.ClientConnInterface) MPLSClient { - return &mPLSClient{cc} -} - -func (c *mPLSClient) ClearLSP(ctx context.Context, in *ClearLSPRequest, opts ...grpc.CallOption) (*ClearLSPResponse, error) { - out := new(ClearLSPResponse) - err := c.cc.Invoke(ctx, "/gnoi.mpls.MPLS/ClearLSP", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *mPLSClient) ClearLSPCounters(ctx context.Context, in *ClearLSPCountersRequest, opts ...grpc.CallOption) (*ClearLSPCountersResponse, error) { - out := new(ClearLSPCountersResponse) - err := c.cc.Invoke(ctx, "/gnoi.mpls.MPLS/ClearLSPCounters", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *mPLSClient) MPLSPing(ctx context.Context, in *MPLSPingRequest, opts ...grpc.CallOption) (MPLS_MPLSPingClient, error) { - stream, err := c.cc.NewStream(ctx, &MPLS_ServiceDesc.Streams[0], "/gnoi.mpls.MPLS/MPLSPing", opts...) - if err != nil { - return nil, err - } - x := &mPLSMPLSPingClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type MPLS_MPLSPingClient interface { - Recv() (*MPLSPingResponse, error) - grpc.ClientStream -} - -type mPLSMPLSPingClient struct { - grpc.ClientStream -} - -func (x *mPLSMPLSPingClient) Recv() (*MPLSPingResponse, error) { - m := new(MPLSPingResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -// MPLSServer is the server API for MPLS service. -// All implementations must embed UnimplementedMPLSServer -// for forward compatibility -type MPLSServer interface { - // ClearLSP clears a single tunnel (requests for it's route to be - // recalculated). - ClearLSP(context.Context, *ClearLSPRequest) (*ClearLSPResponse, error) - // ClearLSPCounters will clear the MPLS counters for the provided LSP. - ClearLSPCounters(context.Context, *ClearLSPCountersRequest) (*ClearLSPCountersResponse, error) - // An MPLS ping, specified as per RFC4379. - MPLSPing(*MPLSPingRequest, MPLS_MPLSPingServer) error - mustEmbedUnimplementedMPLSServer() -} - -// UnimplementedMPLSServer must be embedded to have forward compatible implementations. -type UnimplementedMPLSServer struct { -} - -func (UnimplementedMPLSServer) ClearLSP(context.Context, *ClearLSPRequest) (*ClearLSPResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ClearLSP not implemented") -} -func (UnimplementedMPLSServer) ClearLSPCounters(context.Context, *ClearLSPCountersRequest) (*ClearLSPCountersResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ClearLSPCounters not implemented") -} -func (UnimplementedMPLSServer) MPLSPing(*MPLSPingRequest, MPLS_MPLSPingServer) error { - return status.Errorf(codes.Unimplemented, "method MPLSPing not implemented") -} -func (UnimplementedMPLSServer) mustEmbedUnimplementedMPLSServer() {} - -// UnsafeMPLSServer may be embedded to opt out of forward compatibility for this service. -// Use of this interface is not recommended, as added methods to MPLSServer will -// result in compilation errors. -type UnsafeMPLSServer interface { - mustEmbedUnimplementedMPLSServer() -} - -func RegisterMPLSServer(s grpc.ServiceRegistrar, srv MPLSServer) { - s.RegisterService(&MPLS_ServiceDesc, srv) -} - -func _MPLS_ClearLSP_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ClearLSPRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MPLSServer).ClearLSP(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.mpls.MPLS/ClearLSP", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MPLSServer).ClearLSP(ctx, req.(*ClearLSPRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _MPLS_ClearLSPCounters_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ClearLSPCountersRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MPLSServer).ClearLSPCounters(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.mpls.MPLS/ClearLSPCounters", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MPLSServer).ClearLSPCounters(ctx, req.(*ClearLSPCountersRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _MPLS_MPLSPing_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(MPLSPingRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(MPLSServer).MPLSPing(m, &mPLSMPLSPingServer{stream}) -} - -type MPLS_MPLSPingServer interface { - Send(*MPLSPingResponse) error - grpc.ServerStream -} - -type mPLSMPLSPingServer struct { - grpc.ServerStream -} - -func (x *mPLSMPLSPingServer) Send(m *MPLSPingResponse) error { - return x.ServerStream.SendMsg(m) -} - -// MPLS_ServiceDesc is the grpc.ServiceDesc for MPLS service. -// It's only intended for direct use with grpc.RegisterService, -// and not to be introspected or modified (even as a copy) -var MPLS_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "gnoi.mpls.MPLS", - HandlerType: (*MPLSServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "ClearLSP", - Handler: _MPLS_ClearLSP_Handler, - }, - { - MethodName: "ClearLSPCounters", - Handler: _MPLS_ClearLSPCounters_Handler, - }, - }, - Streams: []grpc.StreamDesc{ - { - StreamName: "MPLSPing", - Handler: _MPLS_MPLSPing_Handler, - ServerStreams: true, - }, - }, - Metadata: "mpls/mpls.proto", -} diff --git a/os/os.pb.go b/os/os.pb.go deleted file mode 100644 index eeb74a30..00000000 --- a/os/os.pb.go +++ /dev/null @@ -1,1845 +0,0 @@ -// This file defines a gNOI API used for OS installation. - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.26.0 -// protoc v3.15.7 -// source: os/os.proto - -package os - -import ( - _ "github.com/openconfig/gnoi/types" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type InstallError_Type int32 - -const ( - // An unspecified error. Must use the detail value to describe the issue. - InstallError_UNSPECIFIED InstallError_Type = 0 - // The newly transferred package is not compatible with the Target platform. - // The detail field MUST contain the detailed error message. - InstallError_INCOMPATIBLE InstallError_Type = 1 - // The OS package being transferred is larger than the available size the - // Target provisioned. This is unexpected since the Target MUST clear disk - // space for the new OS packages. The available space and the OS package - // size MUST be guaranteed by the platform maker, therefore the most likely - // cause of this error is that a wrong package is being transferred. - InstallError_TOO_LARGE InstallError_Type = 2 - // Used whenever the system is unable to parse the newly transferred - // package, like reading the OS version or the integrity checksums. - InstallError_PARSE_FAIL InstallError_Type = 3 - // The transferred OS package fails integrity check. - InstallError_INTEGRITY_FAIL InstallError_Type = 4 - // Attempting to force transfer an OS package with the same version as the - // currently running. - InstallError_INSTALL_RUN_PACKAGE InstallError_Type = 5 - // Another Install RPC to this Target is already in progress. - InstallError_INSTALL_IN_PROGRESS InstallError_Type = 6 - // A switchover happened during the Install RPC. - InstallError_UNEXPECTED_SWITCHOVER InstallError_Type = 7 - // Failed to sync the transferred OS package to the standby Supervisor. The - // detail value MUST have more information. - InstallError_SYNC_FAIL InstallError_Type = 8 -) - -// Enum value maps for InstallError_Type. -var ( - InstallError_Type_name = map[int32]string{ - 0: "UNSPECIFIED", - 1: "INCOMPATIBLE", - 2: "TOO_LARGE", - 3: "PARSE_FAIL", - 4: "INTEGRITY_FAIL", - 5: "INSTALL_RUN_PACKAGE", - 6: "INSTALL_IN_PROGRESS", - 7: "UNEXPECTED_SWITCHOVER", - 8: "SYNC_FAIL", - } - InstallError_Type_value = map[string]int32{ - "UNSPECIFIED": 0, - "INCOMPATIBLE": 1, - "TOO_LARGE": 2, - "PARSE_FAIL": 3, - "INTEGRITY_FAIL": 4, - "INSTALL_RUN_PACKAGE": 5, - "INSTALL_IN_PROGRESS": 6, - "UNEXPECTED_SWITCHOVER": 7, - "SYNC_FAIL": 8, - } -) - -func (x InstallError_Type) Enum() *InstallError_Type { - p := new(InstallError_Type) - *p = x - return p -} - -func (x InstallError_Type) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (InstallError_Type) Descriptor() protoreflect.EnumDescriptor { - return file_os_os_proto_enumTypes[0].Descriptor() -} - -func (InstallError_Type) Type() protoreflect.EnumType { - return &file_os_os_proto_enumTypes[0] -} - -func (x InstallError_Type) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use InstallError_Type.Descriptor instead. -func (InstallError_Type) EnumDescriptor() ([]byte, []int) { - return file_os_os_proto_rawDescGZIP(), []int{8, 0} -} - -type ActivateError_Type int32 - -const ( - // An unspecified error. Must use the detail value to describe the issue. - ActivateError_UNSPECIFIED ActivateError_Type = 0 - // There is no OS package with the version requested for activation. This is - // also used for an empty version string. - ActivateError_NON_EXISTENT_VERSION ActivateError_Type = 1 -) - -// Enum value maps for ActivateError_Type. -var ( - ActivateError_Type_name = map[int32]string{ - 0: "UNSPECIFIED", - 1: "NON_EXISTENT_VERSION", - } - ActivateError_Type_value = map[string]int32{ - "UNSPECIFIED": 0, - "NON_EXISTENT_VERSION": 1, - } -) - -func (x ActivateError_Type) Enum() *ActivateError_Type { - p := new(ActivateError_Type) - *p = x - return p -} - -func (x ActivateError_Type) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (ActivateError_Type) Descriptor() protoreflect.EnumDescriptor { - return file_os_os_proto_enumTypes[1].Descriptor() -} - -func (ActivateError_Type) Type() protoreflect.EnumType { - return &file_os_os_proto_enumTypes[1] -} - -func (x ActivateError_Type) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use ActivateError_Type.Descriptor instead. -func (ActivateError_Type) EnumDescriptor() ([]byte, []int) { - return file_os_os_proto_rawDescGZIP(), []int{12, 0} -} - -type StandbyState_State int32 - -const ( - StandbyState_UNSPECIFIED StandbyState_State = 0 - // The Target does not support dual Supervisors. - StandbyState_UNSUPORTED StandbyState_State = 1 - // Standby Supervisor is supported but does not exist. - StandbyState_NON_EXISTENT StandbyState_State = 2 - // Standby Supervisor is supported but is not available, eg.: rebooting. - StandbyState_UNAVAILABLE StandbyState_State = 3 -) - -// Enum value maps for StandbyState_State. -var ( - StandbyState_State_name = map[int32]string{ - 0: "UNSPECIFIED", - 1: "UNSUPORTED", - 2: "NON_EXISTENT", - 3: "UNAVAILABLE", - } - StandbyState_State_value = map[string]int32{ - "UNSPECIFIED": 0, - "UNSUPORTED": 1, - "NON_EXISTENT": 2, - "UNAVAILABLE": 3, - } -) - -func (x StandbyState_State) Enum() *StandbyState_State { - p := new(StandbyState_State) - *p = x - return p -} - -func (x StandbyState_State) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (StandbyState_State) Descriptor() protoreflect.EnumDescriptor { - return file_os_os_proto_enumTypes[2].Descriptor() -} - -func (StandbyState_State) Type() protoreflect.EnumType { - return &file_os_os_proto_enumTypes[2] -} - -func (x StandbyState_State) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use StandbyState_State.Descriptor instead. -func (StandbyState_State) EnumDescriptor() ([]byte, []int) { - return file_os_os_proto_rawDescGZIP(), []int{16, 0} -} - -type InstallRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to Request: - // *InstallRequest_TransferRequest - // *InstallRequest_TransferContent - // *InstallRequest_TransferEnd - Request isInstallRequest_Request `protobuf_oneof:"request"` -} - -func (x *InstallRequest) Reset() { - *x = InstallRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_os_os_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *InstallRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*InstallRequest) ProtoMessage() {} - -func (x *InstallRequest) ProtoReflect() protoreflect.Message { - mi := &file_os_os_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use InstallRequest.ProtoReflect.Descriptor instead. -func (*InstallRequest) Descriptor() ([]byte, []int) { - return file_os_os_proto_rawDescGZIP(), []int{0} -} - -func (m *InstallRequest) GetRequest() isInstallRequest_Request { - if m != nil { - return m.Request - } - return nil -} - -func (x *InstallRequest) GetTransferRequest() *TransferRequest { - if x, ok := x.GetRequest().(*InstallRequest_TransferRequest); ok { - return x.TransferRequest - } - return nil -} - -func (x *InstallRequest) GetTransferContent() []byte { - if x, ok := x.GetRequest().(*InstallRequest_TransferContent); ok { - return x.TransferContent - } - return nil -} - -func (x *InstallRequest) GetTransferEnd() *TransferEnd { - if x, ok := x.GetRequest().(*InstallRequest_TransferEnd); ok { - return x.TransferEnd - } - return nil -} - -type isInstallRequest_Request interface { - isInstallRequest_Request() -} - -type InstallRequest_TransferRequest struct { - TransferRequest *TransferRequest `protobuf:"bytes,1,opt,name=transfer_request,json=transferRequest,proto3,oneof"` -} - -type InstallRequest_TransferContent struct { - TransferContent []byte `protobuf:"bytes,2,opt,name=transfer_content,json=transferContent,proto3,oneof"` -} - -type InstallRequest_TransferEnd struct { - TransferEnd *TransferEnd `protobuf:"bytes,3,opt,name=transfer_end,json=transferEnd,proto3,oneof"` -} - -func (*InstallRequest_TransferRequest) isInstallRequest_Request() {} - -func (*InstallRequest_TransferContent) isInstallRequest_Request() {} - -func (*InstallRequest_TransferEnd) isInstallRequest_Request() {} - -type TransferRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The version string is a vendor defined string that identifies the OS - // version. It is provided by the vendor and embedded in the OS package. This - // value states the desired OS package version to transfer to the Target. If - // the Target already has the OS package version it will reply with - // InstallResponse->Validated. In the case that the target is a - // single Supervisor device, or the partner Supervisor does not have the OS - // image specified, it will respond with InstallResponse->TransferReady. In - // this case, the client MUST subsequently transfer the image. In the case - // that the image is available on the peer Supervisor of a dual Supervisor - // system, it will respond with InstallResponse->SyncProgress. In this, - // latter, case - the client does not need to transfer the OS image. This - // value can also be set empty, in which case the OS package is forced - // transferred to the Target. The Target MUST never validate that this value - // matches the one in the InstallResponse->Validated message, that is the - // Client's responsibility. - Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` - // For a Target with dual Supervisors setting this flag instructs the Target - // to perform the action on the Standby Supervisor. - StandbySupervisor bool `protobuf:"varint,2,opt,name=standby_supervisor,json=standbySupervisor,proto3" json:"standby_supervisor,omitempty"` -} - -func (x *TransferRequest) Reset() { - *x = TransferRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_os_os_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TransferRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TransferRequest) ProtoMessage() {} - -func (x *TransferRequest) ProtoReflect() protoreflect.Message { - mi := &file_os_os_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TransferRequest.ProtoReflect.Descriptor instead. -func (*TransferRequest) Descriptor() ([]byte, []int) { - return file_os_os_proto_rawDescGZIP(), []int{1} -} - -func (x *TransferRequest) GetVersion() string { - if x != nil { - return x.Version - } - return "" -} - -func (x *TransferRequest) GetStandbySupervisor() bool { - if x != nil { - return x.StandbySupervisor - } - return false -} - -// The TransferEnd message is sent whenever the Client finishes transferring -// the OS package to the Target. At this point the Target MUST perform a general -// health check to the OS package. If the Target fails to parse the OS package -// it MUST immediately reply with an InstallError->type->PARSE_FAIL. If the -// integrity check of the OS package fails it MUST immediately reply with an -// InstallError->type->INTEGRITY_FAIL. If the identified OS version contained in -// the package is not compatible with the Target either because of the platform -// type or the running OS, it MUST immediately reply with an -// InstallError->type->INCOMPATIBLE. If the image is force transferred by -// omitting the InstallRequest->TransferRequest->version value, and the OS -// package is the same as the one running in the Target, the RPC MUST -// immediately abort and reply with an InstallError->type->INSTALL_RUN_PACKAGE. -type TransferEnd struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *TransferEnd) Reset() { - *x = TransferEnd{} - if protoimpl.UnsafeEnabled { - mi := &file_os_os_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TransferEnd) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TransferEnd) ProtoMessage() {} - -func (x *TransferEnd) ProtoReflect() protoreflect.Message { - mi := &file_os_os_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TransferEnd.ProtoReflect.Descriptor instead. -func (*TransferEnd) Descriptor() ([]byte, []int) { - return file_os_os_proto_rawDescGZIP(), []int{2} -} - -// The InstallResponse is used by the Target to inform the Client about the -// state of the Install RPC. At any stage of the process the Target can reply -// with an Error message which MUST terminate the stream. -type InstallResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to Response: - // *InstallResponse_TransferReady - // *InstallResponse_TransferProgress - // *InstallResponse_SyncProgress - // *InstallResponse_Validated - // *InstallResponse_InstallError - Response isInstallResponse_Response `protobuf_oneof:"response"` -} - -func (x *InstallResponse) Reset() { - *x = InstallResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_os_os_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *InstallResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*InstallResponse) ProtoMessage() {} - -func (x *InstallResponse) ProtoReflect() protoreflect.Message { - mi := &file_os_os_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use InstallResponse.ProtoReflect.Descriptor instead. -func (*InstallResponse) Descriptor() ([]byte, []int) { - return file_os_os_proto_rawDescGZIP(), []int{3} -} - -func (m *InstallResponse) GetResponse() isInstallResponse_Response { - if m != nil { - return m.Response - } - return nil -} - -func (x *InstallResponse) GetTransferReady() *TransferReady { - if x, ok := x.GetResponse().(*InstallResponse_TransferReady); ok { - return x.TransferReady - } - return nil -} - -func (x *InstallResponse) GetTransferProgress() *TransferProgress { - if x, ok := x.GetResponse().(*InstallResponse_TransferProgress); ok { - return x.TransferProgress - } - return nil -} - -func (x *InstallResponse) GetSyncProgress() *SyncProgress { - if x, ok := x.GetResponse().(*InstallResponse_SyncProgress); ok { - return x.SyncProgress - } - return nil -} - -func (x *InstallResponse) GetValidated() *Validated { - if x, ok := x.GetResponse().(*InstallResponse_Validated); ok { - return x.Validated - } - return nil -} - -func (x *InstallResponse) GetInstallError() *InstallError { - if x, ok := x.GetResponse().(*InstallResponse_InstallError); ok { - return x.InstallError - } - return nil -} - -type isInstallResponse_Response interface { - isInstallResponse_Response() -} - -type InstallResponse_TransferReady struct { - TransferReady *TransferReady `protobuf:"bytes,1,opt,name=transfer_ready,json=transferReady,proto3,oneof"` -} - -type InstallResponse_TransferProgress struct { - TransferProgress *TransferProgress `protobuf:"bytes,2,opt,name=transfer_progress,json=transferProgress,proto3,oneof"` -} - -type InstallResponse_SyncProgress struct { - SyncProgress *SyncProgress `protobuf:"bytes,3,opt,name=sync_progress,json=syncProgress,proto3,oneof"` -} - -type InstallResponse_Validated struct { - Validated *Validated `protobuf:"bytes,4,opt,name=validated,proto3,oneof"` -} - -type InstallResponse_InstallError struct { - InstallError *InstallError `protobuf:"bytes,5,opt,name=install_error,json=installError,proto3,oneof"` -} - -func (*InstallResponse_TransferReady) isInstallResponse_Response() {} - -func (*InstallResponse_TransferProgress) isInstallResponse_Response() {} - -func (*InstallResponse_SyncProgress) isInstallResponse_Response() {} - -func (*InstallResponse_Validated) isInstallResponse_Response() {} - -func (*InstallResponse_InstallError) isInstallResponse_Response() {} - -// The TransferReady message tells the Client that the Target is ready to accept -// the transfer of the OS package. At this stage the Target MUST have cleared -// enough space to accept the incoming OS package. -type TransferReady struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *TransferReady) Reset() { - *x = TransferReady{} - if protoimpl.UnsafeEnabled { - mi := &file_os_os_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TransferReady) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TransferReady) ProtoMessage() {} - -func (x *TransferReady) ProtoReflect() protoreflect.Message { - mi := &file_os_os_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TransferReady.ProtoReflect.Descriptor instead. -func (*TransferReady) Descriptor() ([]byte, []int) { - return file_os_os_proto_rawDescGZIP(), []int{4} -} - -// The TransferProgress message is sent by the target asynchronously during a -// file transfer. The device SHOULD not respond to each input block received -// from the client, but rather determine reasonable intervals at which to send -// the message (e.g., 5MB). -type TransferProgress struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The number of bytes transferred. - BytesReceived uint64 `protobuf:"varint,1,opt,name=bytes_received,json=bytesReceived,proto3" json:"bytes_received,omitempty"` -} - -func (x *TransferProgress) Reset() { - *x = TransferProgress{} - if protoimpl.UnsafeEnabled { - mi := &file_os_os_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TransferProgress) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TransferProgress) ProtoMessage() {} - -func (x *TransferProgress) ProtoReflect() protoreflect.Message { - mi := &file_os_os_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TransferProgress.ProtoReflect.Descriptor instead. -func (*TransferProgress) Descriptor() ([]byte, []int) { - return file_os_os_proto_rawDescGZIP(), []int{5} -} - -func (x *TransferProgress) GetBytesReceived() uint64 { - if x != nil { - return x.BytesReceived - } - return 0 -} - -// The SyncProgress message signals the Client about the progress of -// transferring the OS package between Supervisors. -type SyncProgress struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The percentage that has transferred between Supervisors. - PercentageTransferred uint32 `protobuf:"varint,1,opt,name=percentage_transferred,json=percentageTransferred,proto3" json:"percentage_transferred,omitempty"` -} - -func (x *SyncProgress) Reset() { - *x = SyncProgress{} - if protoimpl.UnsafeEnabled { - mi := &file_os_os_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *SyncProgress) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SyncProgress) ProtoMessage() {} - -func (x *SyncProgress) ProtoReflect() protoreflect.Message { - mi := &file_os_os_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SyncProgress.ProtoReflect.Descriptor instead. -func (*SyncProgress) Descriptor() ([]byte, []int) { - return file_os_os_proto_rawDescGZIP(), []int{6} -} - -func (x *SyncProgress) GetPercentageTransferred() uint32 { - if x != nil { - return x.PercentageTransferred - } - return 0 -} - -// The Validated message asserts that the Target was able to parse the package -// and perform integrity checks to its contents. -type Validated struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The OS version string that identifies the OS version in the OS package. - Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` - // Informational field that SHOULD be used for providing more details about - // the OS package and its version. This MUST be strictly informational if - // used, and can contain information such as build date, target platform, - // developer, etc. - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (x *Validated) Reset() { - *x = Validated{} - if protoimpl.UnsafeEnabled { - mi := &file_os_os_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Validated) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Validated) ProtoMessage() {} - -func (x *Validated) ProtoReflect() protoreflect.Message { - mi := &file_os_os_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Validated.ProtoReflect.Descriptor instead. -func (*Validated) Descriptor() ([]byte, []int) { - return file_os_os_proto_rawDescGZIP(), []int{7} -} - -func (x *Validated) GetVersion() string { - if x != nil { - return x.Version - } - return "" -} - -func (x *Validated) GetDescription() string { - if x != nil { - return x.Description - } - return "" -} - -// The InstallError message MUST be sent by the Target to the Client whenever an -// issue occurs. The Target MUST immediately close the RPC without a gRPC error. -type InstallError struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Type InstallError_Type `protobuf:"varint,1,opt,name=type,proto3,enum=gnoi.os.InstallError_Type" json:"type,omitempty"` - Detail string `protobuf:"bytes,2,opt,name=detail,proto3" json:"detail,omitempty"` -} - -func (x *InstallError) Reset() { - *x = InstallError{} - if protoimpl.UnsafeEnabled { - mi := &file_os_os_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *InstallError) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*InstallError) ProtoMessage() {} - -func (x *InstallError) ProtoReflect() protoreflect.Message { - mi := &file_os_os_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use InstallError.ProtoReflect.Descriptor instead. -func (*InstallError) Descriptor() ([]byte, []int) { - return file_os_os_proto_rawDescGZIP(), []int{8} -} - -func (x *InstallError) GetType() InstallError_Type { - if x != nil { - return x.Type - } - return InstallError_UNSPECIFIED -} - -func (x *InstallError) GetDetail() string { - if x != nil { - return x.Detail - } - return "" -} - -// The ActivateRequest is sent by the Client to the Target to initiate a change -// in the next bootable OS version that is to be used on the Target. -type ActivateRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The version that is required to be activated and booted. - Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` - // For dual Supervisors setting this flag instructs the Target to perform the - // action on the Standby Supervisor. - StandbySupervisor bool `protobuf:"varint,2,opt,name=standby_supervisor,json=standbySupervisor,proto3" json:"standby_supervisor,omitempty"` -} - -func (x *ActivateRequest) Reset() { - *x = ActivateRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_os_os_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ActivateRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ActivateRequest) ProtoMessage() {} - -func (x *ActivateRequest) ProtoReflect() protoreflect.Message { - mi := &file_os_os_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ActivateRequest.ProtoReflect.Descriptor instead. -func (*ActivateRequest) Descriptor() ([]byte, []int) { - return file_os_os_proto_rawDescGZIP(), []int{9} -} - -func (x *ActivateRequest) GetVersion() string { - if x != nil { - return x.Version - } - return "" -} - -func (x *ActivateRequest) GetStandbySupervisor() bool { - if x != nil { - return x.StandbySupervisor - } - return false -} - -// The ActivateResponse is sent from the Target to the Client in response to the -// Activate RPC. It indicates the success of making the OS package version -// active. -type ActivateResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to Response: - // *ActivateResponse_ActivateOk - // *ActivateResponse_ActivateError - Response isActivateResponse_Response `protobuf_oneof:"response"` -} - -func (x *ActivateResponse) Reset() { - *x = ActivateResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_os_os_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ActivateResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ActivateResponse) ProtoMessage() {} - -func (x *ActivateResponse) ProtoReflect() protoreflect.Message { - mi := &file_os_os_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ActivateResponse.ProtoReflect.Descriptor instead. -func (*ActivateResponse) Descriptor() ([]byte, []int) { - return file_os_os_proto_rawDescGZIP(), []int{10} -} - -func (m *ActivateResponse) GetResponse() isActivateResponse_Response { - if m != nil { - return m.Response - } - return nil -} - -func (x *ActivateResponse) GetActivateOk() *ActivateOK { - if x, ok := x.GetResponse().(*ActivateResponse_ActivateOk); ok { - return x.ActivateOk - } - return nil -} - -func (x *ActivateResponse) GetActivateError() *ActivateError { - if x, ok := x.GetResponse().(*ActivateResponse_ActivateError); ok { - return x.ActivateError - } - return nil -} - -type isActivateResponse_Response interface { - isActivateResponse_Response() -} - -type ActivateResponse_ActivateOk struct { - ActivateOk *ActivateOK `protobuf:"bytes,1,opt,name=activate_ok,json=activateOk,proto3,oneof"` -} - -type ActivateResponse_ActivateError struct { - ActivateError *ActivateError `protobuf:"bytes,2,opt,name=activate_error,json=activateError,proto3,oneof"` -} - -func (*ActivateResponse_ActivateOk) isActivateResponse_Response() {} - -func (*ActivateResponse_ActivateError) isActivateResponse_Response() {} - -// If the Target is already running the requested version in ActivateRequest, -// then it replies with ActivateOK. If the Target has the OS package version -// requested in ActivateRequest then it replies with ActivateOK and proceeds to -// boot. In a Target with dual Supervisor, performing this RPC on the Active -// Supervisor triggers a switchover before booting the (old)Active Supervisor. -// The Target should always perform a switchover with the least impact possible -// to forwarding. -type ActivateOK struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *ActivateOK) Reset() { - *x = ActivateOK{} - if protoimpl.UnsafeEnabled { - mi := &file_os_os_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ActivateOK) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ActivateOK) ProtoMessage() {} - -func (x *ActivateOK) ProtoReflect() protoreflect.Message { - mi := &file_os_os_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ActivateOK.ProtoReflect.Descriptor instead. -func (*ActivateOK) Descriptor() ([]byte, []int) { - return file_os_os_proto_rawDescGZIP(), []int{11} -} - -type ActivateError struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Type ActivateError_Type `protobuf:"varint,1,opt,name=type,proto3,enum=gnoi.os.ActivateError_Type" json:"type,omitempty"` - Detail string `protobuf:"bytes,2,opt,name=detail,proto3" json:"detail,omitempty"` -} - -func (x *ActivateError) Reset() { - *x = ActivateError{} - if protoimpl.UnsafeEnabled { - mi := &file_os_os_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ActivateError) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ActivateError) ProtoMessage() {} - -func (x *ActivateError) ProtoReflect() protoreflect.Message { - mi := &file_os_os_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ActivateError.ProtoReflect.Descriptor instead. -func (*ActivateError) Descriptor() ([]byte, []int) { - return file_os_os_proto_rawDescGZIP(), []int{12} -} - -func (x *ActivateError) GetType() ActivateError_Type { - if x != nil { - return x.Type - } - return ActivateError_UNSPECIFIED -} - -func (x *ActivateError) GetDetail() string { - if x != nil { - return x.Detail - } - return "" -} - -type VerifyRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *VerifyRequest) Reset() { - *x = VerifyRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_os_os_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *VerifyRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*VerifyRequest) ProtoMessage() {} - -func (x *VerifyRequest) ProtoReflect() protoreflect.Message { - mi := &file_os_os_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use VerifyRequest.ProtoReflect.Descriptor instead. -func (*VerifyRequest) Descriptor() ([]byte, []int) { - return file_os_os_proto_rawDescGZIP(), []int{13} -} - -type VerifyResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The OS version currently running. - Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` - // Informational message describing fail details of the last boot. This MUST - // be set when a newly transferred OS fails to boot and the system falls back - // to the previously running OS version. It MUST be cleared whenever the - // systems successfully boots the activated OS version. - ActivationFailMessage string `protobuf:"bytes,2,opt,name=activation_fail_message,json=activationFailMessage,proto3" json:"activation_fail_message,omitempty"` - VerifyStandby *VerifyStandby `protobuf:"bytes,3,opt,name=verify_standby,json=verifyStandby,proto3" json:"verify_standby,omitempty"` -} - -func (x *VerifyResponse) Reset() { - *x = VerifyResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_os_os_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *VerifyResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*VerifyResponse) ProtoMessage() {} - -func (x *VerifyResponse) ProtoReflect() protoreflect.Message { - mi := &file_os_os_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use VerifyResponse.ProtoReflect.Descriptor instead. -func (*VerifyResponse) Descriptor() ([]byte, []int) { - return file_os_os_proto_rawDescGZIP(), []int{14} -} - -func (x *VerifyResponse) GetVersion() string { - if x != nil { - return x.Version - } - return "" -} - -func (x *VerifyResponse) GetActivationFailMessage() string { - if x != nil { - return x.ActivationFailMessage - } - return "" -} - -func (x *VerifyResponse) GetVerifyStandby() *VerifyStandby { - if x != nil { - return x.VerifyStandby - } - return nil -} - -type VerifyStandby struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to State: - // *VerifyStandby_StandbyState - // *VerifyStandby_VerifyResponse - State isVerifyStandby_State `protobuf_oneof:"state"` -} - -func (x *VerifyStandby) Reset() { - *x = VerifyStandby{} - if protoimpl.UnsafeEnabled { - mi := &file_os_os_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *VerifyStandby) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*VerifyStandby) ProtoMessage() {} - -func (x *VerifyStandby) ProtoReflect() protoreflect.Message { - mi := &file_os_os_proto_msgTypes[15] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use VerifyStandby.ProtoReflect.Descriptor instead. -func (*VerifyStandby) Descriptor() ([]byte, []int) { - return file_os_os_proto_rawDescGZIP(), []int{15} -} - -func (m *VerifyStandby) GetState() isVerifyStandby_State { - if m != nil { - return m.State - } - return nil -} - -func (x *VerifyStandby) GetStandbyState() *StandbyState { - if x, ok := x.GetState().(*VerifyStandby_StandbyState); ok { - return x.StandbyState - } - return nil -} - -func (x *VerifyStandby) GetVerifyResponse() *StandbyResponse { - if x, ok := x.GetState().(*VerifyStandby_VerifyResponse); ok { - return x.VerifyResponse - } - return nil -} - -type isVerifyStandby_State interface { - isVerifyStandby_State() -} - -type VerifyStandby_StandbyState struct { - StandbyState *StandbyState `protobuf:"bytes,1,opt,name=standby_state,json=standbyState,proto3,oneof"` -} - -type VerifyStandby_VerifyResponse struct { - VerifyResponse *StandbyResponse `protobuf:"bytes,2,opt,name=verify_response,json=verifyResponse,proto3,oneof"` -} - -func (*VerifyStandby_StandbyState) isVerifyStandby_State() {} - -func (*VerifyStandby_VerifyResponse) isVerifyStandby_State() {} - -type StandbyState struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - State StandbyState_State `protobuf:"varint,1,opt,name=state,proto3,enum=gnoi.os.StandbyState_State" json:"state,omitempty"` -} - -func (x *StandbyState) Reset() { - *x = StandbyState{} - if protoimpl.UnsafeEnabled { - mi := &file_os_os_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *StandbyState) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*StandbyState) ProtoMessage() {} - -func (x *StandbyState) ProtoReflect() protoreflect.Message { - mi := &file_os_os_proto_msgTypes[16] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use StandbyState.ProtoReflect.Descriptor instead. -func (*StandbyState) Descriptor() ([]byte, []int) { - return file_os_os_proto_rawDescGZIP(), []int{16} -} - -func (x *StandbyState) GetState() StandbyState_State { - if x != nil { - return x.State - } - return StandbyState_UNSPECIFIED -} - -type StandbyResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Standby Supervisor ID, usually the slot number. - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` - ActivationFailMessage string `protobuf:"bytes,3,opt,name=activation_fail_message,json=activationFailMessage,proto3" json:"activation_fail_message,omitempty"` -} - -func (x *StandbyResponse) Reset() { - *x = StandbyResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_os_os_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *StandbyResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*StandbyResponse) ProtoMessage() {} - -func (x *StandbyResponse) ProtoReflect() protoreflect.Message { - mi := &file_os_os_proto_msgTypes[17] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use StandbyResponse.ProtoReflect.Descriptor instead. -func (*StandbyResponse) Descriptor() ([]byte, []int) { - return file_os_os_proto_rawDescGZIP(), []int{17} -} - -func (x *StandbyResponse) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *StandbyResponse) GetVersion() string { - if x != nil { - return x.Version - } - return "" -} - -func (x *StandbyResponse) GetActivationFailMessage() string { - if x != nil { - return x.ActivationFailMessage - } - return "" -} - -var File_os_os_proto protoreflect.FileDescriptor - -var file_os_os_proto_rawDesc = []byte{ - 0x0a, 0x0b, 0x6f, 0x73, 0x2f, 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x07, 0x67, - 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x73, 0x1a, 0x2c, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, - 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x67, 0x6e, - 0x6f, 0x69, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xca, 0x01, 0x0a, 0x0e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x45, 0x0a, 0x10, 0x74, 0x72, 0x61, 0x6e, 0x73, - 0x66, 0x65, 0x72, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x18, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x73, 0x2e, 0x54, 0x72, 0x61, 0x6e, - 0x73, 0x66, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x0f, 0x74, - 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2b, - 0x0a, 0x10, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, - 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x48, 0x00, 0x52, 0x0f, 0x74, 0x72, 0x61, 0x6e, - 0x73, 0x66, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x39, 0x0a, 0x0c, 0x74, - 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x5f, 0x65, 0x6e, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x73, 0x2e, 0x54, 0x72, 0x61, 0x6e, - 0x73, 0x66, 0x65, 0x72, 0x45, 0x6e, 0x64, 0x48, 0x00, 0x52, 0x0b, 0x74, 0x72, 0x61, 0x6e, 0x73, - 0x66, 0x65, 0x72, 0x45, 0x6e, 0x64, 0x42, 0x09, 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x22, 0x5a, 0x0a, 0x0f, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x2d, - 0x0a, 0x12, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x5f, 0x73, 0x75, 0x70, 0x65, 0x72, 0x76, - 0x69, 0x73, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x11, 0x73, 0x74, 0x61, 0x6e, - 0x64, 0x62, 0x79, 0x53, 0x75, 0x70, 0x65, 0x72, 0x76, 0x69, 0x73, 0x6f, 0x72, 0x22, 0x0d, 0x0a, - 0x0b, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x45, 0x6e, 0x64, 0x22, 0xd8, 0x02, 0x0a, - 0x0f, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x3f, 0x0a, 0x0e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x5f, 0x72, 0x65, 0x61, - 0x64, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, - 0x6f, 0x73, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x52, 0x65, 0x61, 0x64, 0x79, - 0x48, 0x00, 0x52, 0x0d, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x52, 0x65, 0x61, 0x64, - 0x79, 0x12, 0x48, 0x0a, 0x11, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x5f, 0x70, 0x72, - 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, - 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x73, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x50, - 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x48, 0x00, 0x52, 0x10, 0x74, 0x72, 0x61, 0x6e, 0x73, - 0x66, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x12, 0x3c, 0x0a, 0x0d, 0x73, - 0x79, 0x6e, 0x63, 0x5f, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x73, 0x2e, 0x53, 0x79, 0x6e, - 0x63, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x48, 0x00, 0x52, 0x0c, 0x73, 0x79, 0x6e, - 0x63, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x12, 0x32, 0x0a, 0x09, 0x76, 0x61, 0x6c, - 0x69, 0x64, 0x61, 0x74, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, - 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x73, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x64, - 0x48, 0x00, 0x52, 0x09, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x64, 0x12, 0x3c, 0x0a, - 0x0d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x5f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x05, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x73, 0x2e, 0x49, - 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x48, 0x00, 0x52, 0x0c, 0x69, - 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x42, 0x0a, 0x0a, 0x08, 0x72, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x0f, 0x0a, 0x0d, 0x54, 0x72, 0x61, 0x6e, 0x73, - 0x66, 0x65, 0x72, 0x52, 0x65, 0x61, 0x64, 0x79, 0x22, 0x39, 0x0a, 0x10, 0x54, 0x72, 0x61, 0x6e, - 0x73, 0x66, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x12, 0x25, 0x0a, 0x0e, - 0x62, 0x79, 0x74, 0x65, 0x73, 0x5f, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x62, 0x79, 0x74, 0x65, 0x73, 0x52, 0x65, 0x63, 0x65, 0x69, - 0x76, 0x65, 0x64, 0x22, 0x45, 0x0a, 0x0c, 0x53, 0x79, 0x6e, 0x63, 0x50, 0x72, 0x6f, 0x67, 0x72, - 0x65, 0x73, 0x73, 0x12, 0x35, 0x0a, 0x16, 0x70, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x61, 0x67, - 0x65, 0x5f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0d, 0x52, 0x15, 0x70, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x61, 0x67, 0x65, 0x54, - 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x22, 0x47, 0x0a, 0x09, 0x56, 0x61, - 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, - 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, - 0x6e, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, - 0x69, 0x6f, 0x6e, 0x22, 0x91, 0x02, 0x0a, 0x0c, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x45, - 0x72, 0x72, 0x6f, 0x72, 0x12, 0x2e, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0e, 0x32, 0x1a, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x73, - 0x74, 0x61, 0x6c, 0x6c, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, - 0x74, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x22, 0xb8, 0x01, 0x0a, - 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0f, 0x0a, 0x0b, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, - 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x10, 0x0a, 0x0c, 0x49, 0x4e, 0x43, 0x4f, 0x4d, 0x50, - 0x41, 0x54, 0x49, 0x42, 0x4c, 0x45, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x54, 0x4f, 0x4f, 0x5f, - 0x4c, 0x41, 0x52, 0x47, 0x45, 0x10, 0x02, 0x12, 0x0e, 0x0a, 0x0a, 0x50, 0x41, 0x52, 0x53, 0x45, - 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x10, 0x03, 0x12, 0x12, 0x0a, 0x0e, 0x49, 0x4e, 0x54, 0x45, 0x47, - 0x52, 0x49, 0x54, 0x59, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x10, 0x04, 0x12, 0x17, 0x0a, 0x13, 0x49, - 0x4e, 0x53, 0x54, 0x41, 0x4c, 0x4c, 0x5f, 0x52, 0x55, 0x4e, 0x5f, 0x50, 0x41, 0x43, 0x4b, 0x41, - 0x47, 0x45, 0x10, 0x05, 0x12, 0x17, 0x0a, 0x13, 0x49, 0x4e, 0x53, 0x54, 0x41, 0x4c, 0x4c, 0x5f, - 0x49, 0x4e, 0x5f, 0x50, 0x52, 0x4f, 0x47, 0x52, 0x45, 0x53, 0x53, 0x10, 0x06, 0x12, 0x19, 0x0a, - 0x15, 0x55, 0x4e, 0x45, 0x58, 0x50, 0x45, 0x43, 0x54, 0x45, 0x44, 0x5f, 0x53, 0x57, 0x49, 0x54, - 0x43, 0x48, 0x4f, 0x56, 0x45, 0x52, 0x10, 0x07, 0x12, 0x0d, 0x0a, 0x09, 0x53, 0x59, 0x4e, 0x43, - 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x10, 0x08, 0x22, 0x5a, 0x0a, 0x0f, 0x41, 0x63, 0x74, 0x69, 0x76, - 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, - 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, - 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x2d, 0x0a, 0x12, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x5f, - 0x73, 0x75, 0x70, 0x65, 0x72, 0x76, 0x69, 0x73, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, - 0x52, 0x11, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x53, 0x75, 0x70, 0x65, 0x72, 0x76, 0x69, - 0x73, 0x6f, 0x72, 0x22, 0x97, 0x01, 0x0a, 0x10, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x36, 0x0a, 0x0b, 0x61, 0x63, 0x74, 0x69, - 0x76, 0x61, 0x74, 0x65, 0x5f, 0x6f, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, - 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x73, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, - 0x4f, 0x4b, 0x48, 0x00, 0x52, 0x0a, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4f, 0x6b, - 0x12, 0x3f, 0x0a, 0x0e, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x5f, 0x65, 0x72, 0x72, - 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, - 0x6f, 0x73, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x45, 0x72, 0x72, 0x6f, 0x72, - 0x48, 0x00, 0x52, 0x0d, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x45, 0x72, 0x72, 0x6f, - 0x72, 0x42, 0x0a, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x0c, 0x0a, - 0x0a, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4f, 0x4b, 0x22, 0x8b, 0x01, 0x0a, 0x0d, - 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x2f, 0x0a, - 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x67, 0x6e, - 0x6f, 0x69, 0x2e, 0x6f, 0x73, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x45, 0x72, - 0x72, 0x6f, 0x72, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x16, - 0x0a, 0x06, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, - 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x22, 0x31, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0f, - 0x0a, 0x0b, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, - 0x18, 0x0a, 0x14, 0x4e, 0x4f, 0x4e, 0x5f, 0x45, 0x58, 0x49, 0x53, 0x54, 0x45, 0x4e, 0x54, 0x5f, - 0x56, 0x45, 0x52, 0x53, 0x49, 0x4f, 0x4e, 0x10, 0x01, 0x22, 0x0f, 0x0a, 0x0d, 0x56, 0x65, 0x72, - 0x69, 0x66, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0xa1, 0x01, 0x0a, 0x0e, 0x56, - 0x65, 0x72, 0x69, 0x66, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, - 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, - 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x36, 0x0a, 0x17, 0x61, 0x63, 0x74, 0x69, 0x76, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x66, 0x61, 0x69, 0x6c, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, - 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x15, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x61, 0x69, 0x6c, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, - 0x3d, 0x0a, 0x0e, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x5f, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x62, - 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, - 0x73, 0x2e, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x53, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x52, - 0x0d, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x53, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x22, 0x9b, - 0x01, 0x0a, 0x0d, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x53, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, - 0x12, 0x3c, 0x0a, 0x0d, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x5f, 0x73, 0x74, 0x61, 0x74, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, - 0x73, 0x2e, 0x53, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x53, 0x74, 0x61, 0x74, 0x65, 0x48, 0x00, - 0x52, 0x0c, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x43, - 0x0a, 0x0f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, - 0x73, 0x2e, 0x53, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x48, 0x00, 0x52, 0x0e, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x42, 0x07, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x22, 0x8e, 0x01, 0x0a, - 0x0c, 0x53, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x31, 0x0a, - 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x67, - 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x73, 0x2e, 0x53, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x53, 0x74, - 0x61, 0x74, 0x65, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, - 0x22, 0x4b, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x0f, 0x0a, 0x0b, 0x55, 0x4e, 0x53, - 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0e, 0x0a, 0x0a, 0x55, 0x4e, - 0x53, 0x55, 0x50, 0x4f, 0x52, 0x54, 0x45, 0x44, 0x10, 0x01, 0x12, 0x10, 0x0a, 0x0c, 0x4e, 0x4f, - 0x4e, 0x5f, 0x45, 0x58, 0x49, 0x53, 0x54, 0x45, 0x4e, 0x54, 0x10, 0x02, 0x12, 0x0f, 0x0a, 0x0b, - 0x55, 0x4e, 0x41, 0x56, 0x41, 0x49, 0x4c, 0x41, 0x42, 0x4c, 0x45, 0x10, 0x03, 0x22, 0x73, 0x0a, - 0x0f, 0x53, 0x74, 0x61, 0x6e, 0x64, 0x62, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, - 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x36, 0x0a, 0x17, 0x61, 0x63, - 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x66, 0x61, 0x69, 0x6c, 0x5f, 0x6d, 0x65, - 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x15, 0x61, 0x63, 0x74, - 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x61, 0x69, 0x6c, 0x4d, 0x65, 0x73, 0x73, 0x61, - 0x67, 0x65, 0x32, 0xc2, 0x01, 0x0a, 0x02, 0x4f, 0x53, 0x12, 0x40, 0x0a, 0x07, 0x49, 0x6e, 0x73, - 0x74, 0x61, 0x6c, 0x6c, 0x12, 0x17, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x73, 0x2e, 0x49, - 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, - 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x28, 0x01, 0x30, 0x01, 0x12, 0x3f, 0x0a, 0x08, 0x41, - 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x12, 0x18, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, - 0x73, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x19, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x73, 0x2e, 0x41, 0x63, 0x74, 0x69, - 0x76, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x39, 0x0a, 0x06, - 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x12, 0x16, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x73, - 0x2e, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, - 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x73, 0x2e, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x27, 0x5a, 0x1d, 0x67, 0x69, 0x74, 0x68, 0x75, - 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, - 0x2f, 0x67, 0x6e, 0x6f, 0x69, 0x2f, 0x6f, 0x73, 0xd2, 0x3e, 0x05, 0x30, 0x2e, 0x31, 0x2e, 0x30, - 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_os_os_proto_rawDescOnce sync.Once - file_os_os_proto_rawDescData = file_os_os_proto_rawDesc -) - -func file_os_os_proto_rawDescGZIP() []byte { - file_os_os_proto_rawDescOnce.Do(func() { - file_os_os_proto_rawDescData = protoimpl.X.CompressGZIP(file_os_os_proto_rawDescData) - }) - return file_os_os_proto_rawDescData -} - -var file_os_os_proto_enumTypes = make([]protoimpl.EnumInfo, 3) -var file_os_os_proto_msgTypes = make([]protoimpl.MessageInfo, 18) -var file_os_os_proto_goTypes = []interface{}{ - (InstallError_Type)(0), // 0: gnoi.os.InstallError.Type - (ActivateError_Type)(0), // 1: gnoi.os.ActivateError.Type - (StandbyState_State)(0), // 2: gnoi.os.StandbyState.State - (*InstallRequest)(nil), // 3: gnoi.os.InstallRequest - (*TransferRequest)(nil), // 4: gnoi.os.TransferRequest - (*TransferEnd)(nil), // 5: gnoi.os.TransferEnd - (*InstallResponse)(nil), // 6: gnoi.os.InstallResponse - (*TransferReady)(nil), // 7: gnoi.os.TransferReady - (*TransferProgress)(nil), // 8: gnoi.os.TransferProgress - (*SyncProgress)(nil), // 9: gnoi.os.SyncProgress - (*Validated)(nil), // 10: gnoi.os.Validated - (*InstallError)(nil), // 11: gnoi.os.InstallError - (*ActivateRequest)(nil), // 12: gnoi.os.ActivateRequest - (*ActivateResponse)(nil), // 13: gnoi.os.ActivateResponse - (*ActivateOK)(nil), // 14: gnoi.os.ActivateOK - (*ActivateError)(nil), // 15: gnoi.os.ActivateError - (*VerifyRequest)(nil), // 16: gnoi.os.VerifyRequest - (*VerifyResponse)(nil), // 17: gnoi.os.VerifyResponse - (*VerifyStandby)(nil), // 18: gnoi.os.VerifyStandby - (*StandbyState)(nil), // 19: gnoi.os.StandbyState - (*StandbyResponse)(nil), // 20: gnoi.os.StandbyResponse -} -var file_os_os_proto_depIdxs = []int32{ - 4, // 0: gnoi.os.InstallRequest.transfer_request:type_name -> gnoi.os.TransferRequest - 5, // 1: gnoi.os.InstallRequest.transfer_end:type_name -> gnoi.os.TransferEnd - 7, // 2: gnoi.os.InstallResponse.transfer_ready:type_name -> gnoi.os.TransferReady - 8, // 3: gnoi.os.InstallResponse.transfer_progress:type_name -> gnoi.os.TransferProgress - 9, // 4: gnoi.os.InstallResponse.sync_progress:type_name -> gnoi.os.SyncProgress - 10, // 5: gnoi.os.InstallResponse.validated:type_name -> gnoi.os.Validated - 11, // 6: gnoi.os.InstallResponse.install_error:type_name -> gnoi.os.InstallError - 0, // 7: gnoi.os.InstallError.type:type_name -> gnoi.os.InstallError.Type - 14, // 8: gnoi.os.ActivateResponse.activate_ok:type_name -> gnoi.os.ActivateOK - 15, // 9: gnoi.os.ActivateResponse.activate_error:type_name -> gnoi.os.ActivateError - 1, // 10: gnoi.os.ActivateError.type:type_name -> gnoi.os.ActivateError.Type - 18, // 11: gnoi.os.VerifyResponse.verify_standby:type_name -> gnoi.os.VerifyStandby - 19, // 12: gnoi.os.VerifyStandby.standby_state:type_name -> gnoi.os.StandbyState - 20, // 13: gnoi.os.VerifyStandby.verify_response:type_name -> gnoi.os.StandbyResponse - 2, // 14: gnoi.os.StandbyState.state:type_name -> gnoi.os.StandbyState.State - 3, // 15: gnoi.os.OS.Install:input_type -> gnoi.os.InstallRequest - 12, // 16: gnoi.os.OS.Activate:input_type -> gnoi.os.ActivateRequest - 16, // 17: gnoi.os.OS.Verify:input_type -> gnoi.os.VerifyRequest - 6, // 18: gnoi.os.OS.Install:output_type -> gnoi.os.InstallResponse - 13, // 19: gnoi.os.OS.Activate:output_type -> gnoi.os.ActivateResponse - 17, // 20: gnoi.os.OS.Verify:output_type -> gnoi.os.VerifyResponse - 18, // [18:21] is the sub-list for method output_type - 15, // [15:18] is the sub-list for method input_type - 15, // [15:15] is the sub-list for extension type_name - 15, // [15:15] is the sub-list for extension extendee - 0, // [0:15] is the sub-list for field type_name -} - -func init() { file_os_os_proto_init() } -func file_os_os_proto_init() { - if File_os_os_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_os_os_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*InstallRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_os_os_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TransferRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_os_os_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TransferEnd); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_os_os_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*InstallResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_os_os_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TransferReady); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_os_os_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TransferProgress); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_os_os_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SyncProgress); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_os_os_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Validated); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_os_os_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*InstallError); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_os_os_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ActivateRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_os_os_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ActivateResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_os_os_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ActivateOK); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_os_os_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ActivateError); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_os_os_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*VerifyRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_os_os_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*VerifyResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_os_os_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*VerifyStandby); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_os_os_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StandbyState); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_os_os_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StandbyResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_os_os_proto_msgTypes[0].OneofWrappers = []interface{}{ - (*InstallRequest_TransferRequest)(nil), - (*InstallRequest_TransferContent)(nil), - (*InstallRequest_TransferEnd)(nil), - } - file_os_os_proto_msgTypes[3].OneofWrappers = []interface{}{ - (*InstallResponse_TransferReady)(nil), - (*InstallResponse_TransferProgress)(nil), - (*InstallResponse_SyncProgress)(nil), - (*InstallResponse_Validated)(nil), - (*InstallResponse_InstallError)(nil), - } - file_os_os_proto_msgTypes[10].OneofWrappers = []interface{}{ - (*ActivateResponse_ActivateOk)(nil), - (*ActivateResponse_ActivateError)(nil), - } - file_os_os_proto_msgTypes[15].OneofWrappers = []interface{}{ - (*VerifyStandby_StandbyState)(nil), - (*VerifyStandby_VerifyResponse)(nil), - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_os_os_proto_rawDesc, - NumEnums: 3, - NumMessages: 18, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_os_os_proto_goTypes, - DependencyIndexes: file_os_os_proto_depIdxs, - EnumInfos: file_os_os_proto_enumTypes, - MessageInfos: file_os_os_proto_msgTypes, - }.Build() - File_os_os_proto = out.File - file_os_os_proto_rawDesc = nil - file_os_os_proto_goTypes = nil - file_os_os_proto_depIdxs = nil -} diff --git a/os/os.proto b/os/os.proto index 56a24e05..af82ee23 100644 --- a/os/os.proto +++ b/os/os.proto @@ -5,8 +5,6 @@ package gnoi.os; import "github.com/openconfig/gnoi/types/types.proto"; -option go_package = "github.com/openconfig/gnoi/os"; - option (types.gnoi_version) = "0.1.0"; // The OS service provides an interface for OS installation on a Target. The diff --git a/os/os_grpc.pb.go b/os/os_grpc.pb.go deleted file mode 100644 index 2e8db9d3..00000000 --- a/os/os_grpc.pb.go +++ /dev/null @@ -1,380 +0,0 @@ -// Code generated by protoc-gen-go-grpc. DO NOT EDIT. - -package os - -import ( - context "context" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" -) - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 - -// OSClient is the client API for OS service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. -type OSClient interface { - // Install transfers an OS package into the Target. No concurrent Install RPCs - // MUST be allowed to the same Target. - // - // The OS package file format is platform dependent. The platform MUST - // validate that the OS package that is supplied is valid and bootable. This - // SHOULD include a hash check against a known good hash. It is recommended - // that the hash is embedded in the OS package. - // - // The Target manages its own persistent storage, and OS installation process. - // It stores a set of distinct OS packages, and always proactively frees up - // space for incoming new OS packages. It is guaranteed that the Target always - // has enough space for a valid incoming OS package. The currently running OS - // packages MUST never be removed. The Client MUST expect that the last - // successfully installed package is available. - // - // The Install RPC allows the Client to specify the OS package version. If - // the Target already has an OS package with the same version then there is no - // need to transfer the OS package to the Target. If the Target does not have - // an OS package with the same version, then the OS package is copied. - // - // Scenario 1 - When the Target already has the OS package: - // - // Client :--------------|--------------> Target - // TransferRequest --> - // <-- [Validated|InstallError] - // - // - // Scenario 2 - When the Target does not have the OS package: - // - // Client :--------------|--------------> Target - // TransferRequest --> - // <-- [TransferReady|InstallError] - // transfer_content --> - // ... - // <-- [TransferProgress|InstallError] - // ... - // TransferEnd --> - // <-- [Validated|InstallError] - // - // On a dual Supervisor Target, only the Active Supervisor runs this gNOI - // Service. The Install RPC applies to the Active Supervisor unless - // InstallRequest->TransferRequest->standby_supervisor is set, in which case - // it applies to the Standby Supervisor. One Install RPC is required for each - // Supervisor. The Supervisor order of package installation MUST not be fixed. - // - // The Target MUST always attempt to copy the OS package between Supervisors - // first before accepting the transfer from the Client. The syncing progress - // is reported to the client with InstallResponse->SyncProgress messages. - // - // If a switchover is triggered during the Install RPC, the RPC MUST - // immediately abort with Error->type->UNEXPECTED_SWITCHOVER. - // - // Scenario 3 - When both Supervisors already have the OS package, regardless - // of the value in Start.standby_supervisor: - // - // Client :--------------|--------------> Target - // TransferRequest --> - // <-- [Validated|InstallError] - // - // - // Scenario 4 - When one of the Supervisors already has the OS package but the - // other Supervisor is the target of the Install: - // - // Client :--------------|--------------> Target - // TransferRequest --> - // <-- [SyncProgress|InstallError] - // ... - // <-- [Validated|InstallError] - // - // - // Scenario 5 - When neither of the two Supervisors has the OS package: - // - // Client :--------------|--------------> Target - // TransferRequest --> - // <-- [TransferReady|InstallError] - // transfer_content --> - // ... - // <-- [TransferProgress|InstallError] - // ... - // TransferEnd --> - // <-- [Validated|InstallError] - // - Install(ctx context.Context, opts ...grpc.CallOption) (OS_InstallClient, error) - // Activate sets the requested OS version as the version which is used at the - // next reboot, and reboots the Target. When booting the requested OS version - // fails, the Target recovers by booting the previously running OS package. - Activate(ctx context.Context, in *ActivateRequest, opts ...grpc.CallOption) (*ActivateResponse, error) - // Verify checks the running OS version. This RPC may be called multiple times - // while the Target boots, until successful. - Verify(ctx context.Context, in *VerifyRequest, opts ...grpc.CallOption) (*VerifyResponse, error) -} - -type oSClient struct { - cc grpc.ClientConnInterface -} - -func NewOSClient(cc grpc.ClientConnInterface) OSClient { - return &oSClient{cc} -} - -func (c *oSClient) Install(ctx context.Context, opts ...grpc.CallOption) (OS_InstallClient, error) { - stream, err := c.cc.NewStream(ctx, &OS_ServiceDesc.Streams[0], "/gnoi.os.OS/Install", opts...) - if err != nil { - return nil, err - } - x := &oSInstallClient{stream} - return x, nil -} - -type OS_InstallClient interface { - Send(*InstallRequest) error - Recv() (*InstallResponse, error) - grpc.ClientStream -} - -type oSInstallClient struct { - grpc.ClientStream -} - -func (x *oSInstallClient) Send(m *InstallRequest) error { - return x.ClientStream.SendMsg(m) -} - -func (x *oSInstallClient) Recv() (*InstallResponse, error) { - m := new(InstallResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *oSClient) Activate(ctx context.Context, in *ActivateRequest, opts ...grpc.CallOption) (*ActivateResponse, error) { - out := new(ActivateResponse) - err := c.cc.Invoke(ctx, "/gnoi.os.OS/Activate", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *oSClient) Verify(ctx context.Context, in *VerifyRequest, opts ...grpc.CallOption) (*VerifyResponse, error) { - out := new(VerifyResponse) - err := c.cc.Invoke(ctx, "/gnoi.os.OS/Verify", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// OSServer is the server API for OS service. -// All implementations must embed UnimplementedOSServer -// for forward compatibility -type OSServer interface { - // Install transfers an OS package into the Target. No concurrent Install RPCs - // MUST be allowed to the same Target. - // - // The OS package file format is platform dependent. The platform MUST - // validate that the OS package that is supplied is valid and bootable. This - // SHOULD include a hash check against a known good hash. It is recommended - // that the hash is embedded in the OS package. - // - // The Target manages its own persistent storage, and OS installation process. - // It stores a set of distinct OS packages, and always proactively frees up - // space for incoming new OS packages. It is guaranteed that the Target always - // has enough space for a valid incoming OS package. The currently running OS - // packages MUST never be removed. The Client MUST expect that the last - // successfully installed package is available. - // - // The Install RPC allows the Client to specify the OS package version. If - // the Target already has an OS package with the same version then there is no - // need to transfer the OS package to the Target. If the Target does not have - // an OS package with the same version, then the OS package is copied. - // - // Scenario 1 - When the Target already has the OS package: - // - // Client :--------------|--------------> Target - // TransferRequest --> - // <-- [Validated|InstallError] - // - // - // Scenario 2 - When the Target does not have the OS package: - // - // Client :--------------|--------------> Target - // TransferRequest --> - // <-- [TransferReady|InstallError] - // transfer_content --> - // ... - // <-- [TransferProgress|InstallError] - // ... - // TransferEnd --> - // <-- [Validated|InstallError] - // - // On a dual Supervisor Target, only the Active Supervisor runs this gNOI - // Service. The Install RPC applies to the Active Supervisor unless - // InstallRequest->TransferRequest->standby_supervisor is set, in which case - // it applies to the Standby Supervisor. One Install RPC is required for each - // Supervisor. The Supervisor order of package installation MUST not be fixed. - // - // The Target MUST always attempt to copy the OS package between Supervisors - // first before accepting the transfer from the Client. The syncing progress - // is reported to the client with InstallResponse->SyncProgress messages. - // - // If a switchover is triggered during the Install RPC, the RPC MUST - // immediately abort with Error->type->UNEXPECTED_SWITCHOVER. - // - // Scenario 3 - When both Supervisors already have the OS package, regardless - // of the value in Start.standby_supervisor: - // - // Client :--------------|--------------> Target - // TransferRequest --> - // <-- [Validated|InstallError] - // - // - // Scenario 4 - When one of the Supervisors already has the OS package but the - // other Supervisor is the target of the Install: - // - // Client :--------------|--------------> Target - // TransferRequest --> - // <-- [SyncProgress|InstallError] - // ... - // <-- [Validated|InstallError] - // - // - // Scenario 5 - When neither of the two Supervisors has the OS package: - // - // Client :--------------|--------------> Target - // TransferRequest --> - // <-- [TransferReady|InstallError] - // transfer_content --> - // ... - // <-- [TransferProgress|InstallError] - // ... - // TransferEnd --> - // <-- [Validated|InstallError] - // - Install(OS_InstallServer) error - // Activate sets the requested OS version as the version which is used at the - // next reboot, and reboots the Target. When booting the requested OS version - // fails, the Target recovers by booting the previously running OS package. - Activate(context.Context, *ActivateRequest) (*ActivateResponse, error) - // Verify checks the running OS version. This RPC may be called multiple times - // while the Target boots, until successful. - Verify(context.Context, *VerifyRequest) (*VerifyResponse, error) - mustEmbedUnimplementedOSServer() -} - -// UnimplementedOSServer must be embedded to have forward compatible implementations. -type UnimplementedOSServer struct { -} - -func (UnimplementedOSServer) Install(OS_InstallServer) error { - return status.Errorf(codes.Unimplemented, "method Install not implemented") -} -func (UnimplementedOSServer) Activate(context.Context, *ActivateRequest) (*ActivateResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Activate not implemented") -} -func (UnimplementedOSServer) Verify(context.Context, *VerifyRequest) (*VerifyResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Verify not implemented") -} -func (UnimplementedOSServer) mustEmbedUnimplementedOSServer() {} - -// UnsafeOSServer may be embedded to opt out of forward compatibility for this service. -// Use of this interface is not recommended, as added methods to OSServer will -// result in compilation errors. -type UnsafeOSServer interface { - mustEmbedUnimplementedOSServer() -} - -func RegisterOSServer(s grpc.ServiceRegistrar, srv OSServer) { - s.RegisterService(&OS_ServiceDesc, srv) -} - -func _OS_Install_Handler(srv interface{}, stream grpc.ServerStream) error { - return srv.(OSServer).Install(&oSInstallServer{stream}) -} - -type OS_InstallServer interface { - Send(*InstallResponse) error - Recv() (*InstallRequest, error) - grpc.ServerStream -} - -type oSInstallServer struct { - grpc.ServerStream -} - -func (x *oSInstallServer) Send(m *InstallResponse) error { - return x.ServerStream.SendMsg(m) -} - -func (x *oSInstallServer) Recv() (*InstallRequest, error) { - m := new(InstallRequest) - if err := x.ServerStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func _OS_Activate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ActivateRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(OSServer).Activate(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.os.OS/Activate", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(OSServer).Activate(ctx, req.(*ActivateRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _OS_Verify_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(VerifyRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(OSServer).Verify(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.os.OS/Verify", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(OSServer).Verify(ctx, req.(*VerifyRequest)) - } - return interceptor(ctx, in, info, handler) -} - -// OS_ServiceDesc is the grpc.ServiceDesc for OS service. -// It's only intended for direct use with grpc.RegisterService, -// and not to be introspected or modified (even as a copy) -var OS_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "gnoi.os.OS", - HandlerType: (*OSServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "Activate", - Handler: _OS_Activate_Handler, - }, - { - MethodName: "Verify", - Handler: _OS_Verify_Handler, - }, - }, - Streams: []grpc.StreamDesc{ - { - StreamName: "Install", - Handler: _OS_Install_Handler, - ServerStreams: true, - ClientStreams: true, - }, - }, - Metadata: "os/os.proto", -} diff --git a/otdr/otdr.pb.go b/otdr/otdr.pb.go index 221b8af8..d336f681 100644 --- a/otdr/otdr.pb.go +++ b/otdr/otdr.pb.go @@ -1,41 +1,45 @@ -// -// Copyright 2019 Google LLC. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.26.0 -// protoc v3.15.7 +// Code generated by protoc-gen-go. // source: otdr/otdr.proto - -package otdr +// DO NOT EDIT! + +/* +Package gnoi_optical is a generated protocol buffer package. + +It is generated from these files: + otdr/otdr.proto + +It has these top-level messages: + InitiateRequest + OTDRConfiguration + InitiateProgress + InitiateResults + InitiateError + InitiateResponse + OTDRTrace + Event +*/ +package gnoi_optical + +import proto "github.com/golang/protobuf/proto" +import fmt "fmt" +import math "math" +import gnoi_types "github.com/openconfig/gnoi/types" import ( - types "github.com/openconfig/gnoi/types" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" + context "golang.org/x/net/context" + grpc "google.golang.org/grpc" ) -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) +// 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 // Type definition for different profiles of fiber types. These match what is // already defined in OpenConfig under the FIBER_TYPE_PROFILE identityref in @@ -44,116 +48,68 @@ type FiberTypeProfile int32 const ( FiberTypeProfile_FTP_UNKNOWN FiberTypeProfile = 0 - FiberTypeProfile_FTP_DSF FiberTypeProfile = 1 // Dispersion shifted fiber. - FiberTypeProfile_FTP_LEAF FiberTypeProfile = 2 // Large effective area fiber. - FiberTypeProfile_FTP_SSMF FiberTypeProfile = 3 // Standard single mode fiber. - FiberTypeProfile_FTP_TWC FiberTypeProfile = 4 // True wave classic fiber. - FiberTypeProfile_FTP_TWRS FiberTypeProfile = 5 // True wave reduced slope fiber. - FiberTypeProfile_FTP_LS FiberTypeProfile = 6 // LEAF Submarine fiber. - FiberTypeProfile_FTP_TERAWAVE FiberTypeProfile = 7 // TeraWave fiber. - FiberTypeProfile_FTP_TERALIGHT FiberTypeProfile = 8 // TeraLight fiber. -) - -// Enum value maps for FiberTypeProfile. -var ( - FiberTypeProfile_name = map[int32]string{ - 0: "FTP_UNKNOWN", - 1: "FTP_DSF", - 2: "FTP_LEAF", - 3: "FTP_SSMF", - 4: "FTP_TWC", - 5: "FTP_TWRS", - 6: "FTP_LS", - 7: "FTP_TERAWAVE", - 8: "FTP_TERALIGHT", - } - FiberTypeProfile_value = map[string]int32{ - "FTP_UNKNOWN": 0, - "FTP_DSF": 1, - "FTP_LEAF": 2, - "FTP_SSMF": 3, - "FTP_TWC": 4, - "FTP_TWRS": 5, - "FTP_LS": 6, - "FTP_TERAWAVE": 7, - "FTP_TERALIGHT": 8, - } + FiberTypeProfile_FTP_DSF FiberTypeProfile = 1 + FiberTypeProfile_FTP_LEAF FiberTypeProfile = 2 + FiberTypeProfile_FTP_SSMF FiberTypeProfile = 3 + FiberTypeProfile_FTP_TWC FiberTypeProfile = 4 + FiberTypeProfile_FTP_TWRS FiberTypeProfile = 5 + FiberTypeProfile_FTP_LS FiberTypeProfile = 6 + FiberTypeProfile_FTP_TERAWAVE FiberTypeProfile = 7 + FiberTypeProfile_FTP_TERALIGHT FiberTypeProfile = 8 ) -func (x FiberTypeProfile) Enum() *FiberTypeProfile { - p := new(FiberTypeProfile) - *p = x - return p +var FiberTypeProfile_name = map[int32]string{ + 0: "FTP_UNKNOWN", + 1: "FTP_DSF", + 2: "FTP_LEAF", + 3: "FTP_SSMF", + 4: "FTP_TWC", + 5: "FTP_TWRS", + 6: "FTP_LS", + 7: "FTP_TERAWAVE", + 8: "FTP_TERALIGHT", +} +var FiberTypeProfile_value = map[string]int32{ + "FTP_UNKNOWN": 0, + "FTP_DSF": 1, + "FTP_LEAF": 2, + "FTP_SSMF": 3, + "FTP_TWC": 4, + "FTP_TWRS": 5, + "FTP_LS": 6, + "FTP_TERAWAVE": 7, + "FTP_TERALIGHT": 8, } func (x FiberTypeProfile) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (FiberTypeProfile) Descriptor() protoreflect.EnumDescriptor { - return file_otdr_otdr_proto_enumTypes[0].Descriptor() -} - -func (FiberTypeProfile) Type() protoreflect.EnumType { - return &file_otdr_otdr_proto_enumTypes[0] -} - -func (x FiberTypeProfile) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use FiberTypeProfile.Descriptor instead. -func (FiberTypeProfile) EnumDescriptor() ([]byte, []int) { - return file_otdr_otdr_proto_rawDescGZIP(), []int{0} + return proto.EnumName(FiberTypeProfile_name, int32(x)) } +func (FiberTypeProfile) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } type InitiateRequest_ResultsMethod int32 const ( InitiateRequest_RESULTS_UNKNOWN InitiateRequest_ResultsMethod = 0 - InitiateRequest_RESULTS_TO_LOCAL_DISK InitiateRequest_ResultsMethod = 1 // Results saved to a file on the device. - InitiateRequest_RESULTS_IN_RESPONSE InitiateRequest_ResultsMethod = 2 // Results sent back in the response. + InitiateRequest_RESULTS_TO_LOCAL_DISK InitiateRequest_ResultsMethod = 1 + InitiateRequest_RESULTS_IN_RESPONSE InitiateRequest_ResultsMethod = 2 ) -// Enum value maps for InitiateRequest_ResultsMethod. -var ( - InitiateRequest_ResultsMethod_name = map[int32]string{ - 0: "RESULTS_UNKNOWN", - 1: "RESULTS_TO_LOCAL_DISK", - 2: "RESULTS_IN_RESPONSE", - } - InitiateRequest_ResultsMethod_value = map[string]int32{ - "RESULTS_UNKNOWN": 0, - "RESULTS_TO_LOCAL_DISK": 1, - "RESULTS_IN_RESPONSE": 2, - } -) - -func (x InitiateRequest_ResultsMethod) Enum() *InitiateRequest_ResultsMethod { - p := new(InitiateRequest_ResultsMethod) - *p = x - return p +var InitiateRequest_ResultsMethod_name = map[int32]string{ + 0: "RESULTS_UNKNOWN", + 1: "RESULTS_TO_LOCAL_DISK", + 2: "RESULTS_IN_RESPONSE", } - -func (x InitiateRequest_ResultsMethod) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (InitiateRequest_ResultsMethod) Descriptor() protoreflect.EnumDescriptor { - return file_otdr_otdr_proto_enumTypes[1].Descriptor() +var InitiateRequest_ResultsMethod_value = map[string]int32{ + "RESULTS_UNKNOWN": 0, + "RESULTS_TO_LOCAL_DISK": 1, + "RESULTS_IN_RESPONSE": 2, } -func (InitiateRequest_ResultsMethod) Type() protoreflect.EnumType { - return &file_otdr_otdr_proto_enumTypes[1] -} - -func (x InitiateRequest_ResultsMethod) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) +func (x InitiateRequest_ResultsMethod) String() string { + return proto.EnumName(InitiateRequest_ResultsMethod_name, int32(x)) } - -// Deprecated: Use InitiateRequest_ResultsMethod.Descriptor instead. func (InitiateRequest_ResultsMethod) EnumDescriptor() ([]byte, []int) { - return file_otdr_otdr_proto_rawDescGZIP(), []int{0, 0} + return fileDescriptor0, []int{0, 0} } // The State enum defines possible states that the OTDR trace may be in @@ -162,53 +118,28 @@ type InitiateProgress_State int32 const ( InitiateProgress_UNKNOWN InitiateProgress_State = 0 - InitiateProgress_RUNNING InitiateProgress_State = 1 // The OTDR is currently performing an OTDR trace. - InitiateProgress_PENDING InitiateProgress_State = 2 // The OTDR is pending underlying resources being available. - InitiateProgress_COMPLETE InitiateProgress_State = 3 // The OTDR trace was completed. + InitiateProgress_RUNNING InitiateProgress_State = 1 + InitiateProgress_PENDING InitiateProgress_State = 2 + InitiateProgress_COMPLETE InitiateProgress_State = 3 ) -// Enum value maps for InitiateProgress_State. -var ( - InitiateProgress_State_name = map[int32]string{ - 0: "UNKNOWN", - 1: "RUNNING", - 2: "PENDING", - 3: "COMPLETE", - } - InitiateProgress_State_value = map[string]int32{ - "UNKNOWN": 0, - "RUNNING": 1, - "PENDING": 2, - "COMPLETE": 3, - } -) - -func (x InitiateProgress_State) Enum() *InitiateProgress_State { - p := new(InitiateProgress_State) - *p = x - return p -} - -func (x InitiateProgress_State) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +var InitiateProgress_State_name = map[int32]string{ + 0: "UNKNOWN", + 1: "RUNNING", + 2: "PENDING", + 3: "COMPLETE", } - -func (InitiateProgress_State) Descriptor() protoreflect.EnumDescriptor { - return file_otdr_otdr_proto_enumTypes[2].Descriptor() -} - -func (InitiateProgress_State) Type() protoreflect.EnumType { - return &file_otdr_otdr_proto_enumTypes[2] +var InitiateProgress_State_value = map[string]int32{ + "UNKNOWN": 0, + "RUNNING": 1, + "PENDING": 2, + "COMPLETE": 3, } -func (x InitiateProgress_State) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use InitiateProgress_State.Descriptor instead. -func (InitiateProgress_State) EnumDescriptor() ([]byte, []int) { - return file_otdr_otdr_proto_rawDescGZIP(), []int{2, 0} +func (x InitiateProgress_State) String() string { + return proto.EnumName(InitiateProgress_State_name, int32(x)) } +func (InitiateProgress_State) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{2, 0} } type InitiateError_Type int32 @@ -221,387 +152,123 @@ const ( InitiateError_HARDWARE_FAILURE InitiateError_Type = 2 ) -// Enum value maps for InitiateError_Type. -var ( - InitiateError_Type_name = map[int32]string{ - 0: "UNSPECIFIED", - 1: "ALREADY_IN_PROGRESS", - 2: "HARDWARE_FAILURE", - } - InitiateError_Type_value = map[string]int32{ - "UNSPECIFIED": 0, - "ALREADY_IN_PROGRESS": 1, - "HARDWARE_FAILURE": 2, - } -) - -func (x InitiateError_Type) Enum() *InitiateError_Type { - p := new(InitiateError_Type) - *p = x - return p -} - -func (x InitiateError_Type) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (InitiateError_Type) Descriptor() protoreflect.EnumDescriptor { - return file_otdr_otdr_proto_enumTypes[3].Descriptor() +var InitiateError_Type_name = map[int32]string{ + 0: "UNSPECIFIED", + 1: "ALREADY_IN_PROGRESS", + 2: "HARDWARE_FAILURE", } - -func (InitiateError_Type) Type() protoreflect.EnumType { - return &file_otdr_otdr_proto_enumTypes[3] -} - -func (x InitiateError_Type) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) +var InitiateError_Type_value = map[string]int32{ + "UNSPECIFIED": 0, + "ALREADY_IN_PROGRESS": 1, + "HARDWARE_FAILURE": 2, } -// Deprecated: Use InitiateError_Type.Descriptor instead. -func (InitiateError_Type) EnumDescriptor() ([]byte, []int) { - return file_otdr_otdr_proto_rawDescGZIP(), []int{4, 0} +func (x InitiateError_Type) String() string { + return proto.EnumName(InitiateError_Type_name, int32(x)) } +func (InitiateError_Type) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{4, 0} } type InitiateRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - // Absolute path to the /components/component list member in the OpenConfig // model corresponding to the port to perform the OTDR trace from. // (e.g., /components/component[name=otdr-1-1]) - Component *types.Path `protobuf:"bytes,1,opt,name=component,proto3" json:"component,omitempty"` + Component *gnoi_types.Path `protobuf:"bytes,1,opt,name=component" json:"component,omitempty"` // Describes how the results of the OTDR trace should be made available. More // than one option may be specified if desired. - ResultsMethod []InitiateRequest_ResultsMethod `protobuf:"varint,2,rep,packed,name=results_method,json=resultsMethod,proto3,enum=gnoi.optical.InitiateRequest_ResultsMethod" json:"results_method,omitempty"` + ResultsMethod []InitiateRequest_ResultsMethod `protobuf:"varint,2,rep,packed,name=results_method,json=resultsMethod,enum=gnoi.optical.InitiateRequest_ResultsMethod" json:"results_method,omitempty"` // Describes the configuration used to perform an OTDR trace. - Configuration *OTDRConfiguration `protobuf:"bytes,3,opt,name=configuration,proto3" json:"configuration,omitempty"` + Configuration *OTDRConfiguration `protobuf:"bytes,3,opt,name=configuration" json:"configuration,omitempty"` // If specified, the device will label the OTDR trace so it can be recalled // later. For example, the initial OTDR trace measured during span // commissioning might be labeled "baseline". - Label string `protobuf:"bytes,4,opt,name=label,proto3" json:"label,omitempty"` -} - -func (x *InitiateRequest) Reset() { - *x = InitiateRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_otdr_otdr_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *InitiateRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*InitiateRequest) ProtoMessage() {} - -func (x *InitiateRequest) ProtoReflect() protoreflect.Message { - mi := &file_otdr_otdr_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) + Label string `protobuf:"bytes,4,opt,name=label" json:"label,omitempty"` } -// Deprecated: Use InitiateRequest.ProtoReflect.Descriptor instead. -func (*InitiateRequest) Descriptor() ([]byte, []int) { - return file_otdr_otdr_proto_rawDescGZIP(), []int{0} -} - -func (x *InitiateRequest) GetComponent() *types.Path { - if x != nil { - return x.Component - } - return nil -} +func (m *InitiateRequest) Reset() { *m = InitiateRequest{} } +func (m *InitiateRequest) String() string { return proto.CompactTextString(m) } +func (*InitiateRequest) ProtoMessage() {} +func (*InitiateRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } -func (x *InitiateRequest) GetResultsMethod() []InitiateRequest_ResultsMethod { - if x != nil { - return x.ResultsMethod +func (m *InitiateRequest) GetComponent() *gnoi_types.Path { + if m != nil { + return m.Component } return nil } -func (x *InitiateRequest) GetConfiguration() *OTDRConfiguration { - if x != nil { - return x.Configuration +func (m *InitiateRequest) GetConfiguration() *OTDRConfiguration { + if m != nil { + return m.Configuration } return nil } -func (x *InitiateRequest) GetLabel() string { - if x != nil { - return x.Label - } - return "" -} - // OTDR configuration options which can be set on the device. It is not required // that every field be set as some fields may not apply for a given // implementation. type OTDRConfiguration struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - // The time in seconds in which the OTDR trace will run continuously to // collect data. - AcquisitionTimeS uint32 `protobuf:"varint,1,opt,name=acquisition_time_s,json=acquisitionTimeS,proto3" json:"acquisition_time_s,omitempty"` + AcquisitionTimeS uint32 `protobuf:"varint,1,opt,name=acquisition_time_s,json=acquisitionTimeS" json:"acquisition_time_s,omitempty"` // The pulse width in nanoseconds which defines how long pulses sent by the // OTDR will be during the test. - PulseWidthNs float32 `protobuf:"fixed32,2,opt,name=pulse_width_ns,json=pulseWidthNs,proto3" json:"pulse_width_ns,omitempty"` + PulseWidthNs float32 `protobuf:"fixed32,2,opt,name=pulse_width_ns,json=pulseWidthNs" json:"pulse_width_ns,omitempty"` // The wavelength in MHz that will be sent by the OTDR. This may be left blank // if the OTDR only supports one wavelength. - WavelengthMhz uint64 `protobuf:"varint,3,opt,name=wavelength_mhz,json=wavelengthMhz,proto3" json:"wavelength_mhz,omitempty"` + WavelengthMhz uint64 `protobuf:"varint,3,opt,name=wavelength_mhz,json=wavelengthMhz" json:"wavelength_mhz,omitempty"` // The maximum fiber distance range in meters that the OTDR trace will // support. - RangeM float32 `protobuf:"fixed32,4,opt,name=range_m,json=rangeM,proto3" json:"range_m,omitempty"` + RangeM float32 `protobuf:"fixed32,4,opt,name=range_m,json=rangeM" json:"range_m,omitempty"` // The type of fiber that is being measured. - FiberType FiberTypeProfile `protobuf:"varint,5,opt,name=fiber_type,json=fiberType,proto3,enum=gnoi.optical.FiberTypeProfile" json:"fiber_type,omitempty"` + FiberType FiberTypeProfile `protobuf:"varint,5,opt,name=fiber_type,json=fiberType,enum=gnoi.optical.FiberTypeProfile" json:"fiber_type,omitempty"` // The sampling resolution in meters. - SamplingResolutionM float32 `protobuf:"fixed32,6,opt,name=sampling_resolution_m,json=samplingResolutionM,proto3" json:"sampling_resolution_m,omitempty"` + SamplingResolutionM float32 `protobuf:"fixed32,6,opt,name=sampling_resolution_m,json=samplingResolutionM" json:"sampling_resolution_m,omitempty"` } -func (x *OTDRConfiguration) Reset() { - *x = OTDRConfiguration{} - if protoimpl.UnsafeEnabled { - mi := &file_otdr_otdr_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OTDRConfiguration) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OTDRConfiguration) ProtoMessage() {} - -func (x *OTDRConfiguration) ProtoReflect() protoreflect.Message { - mi := &file_otdr_otdr_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use OTDRConfiguration.ProtoReflect.Descriptor instead. -func (*OTDRConfiguration) Descriptor() ([]byte, []int) { - return file_otdr_otdr_proto_rawDescGZIP(), []int{1} -} - -func (x *OTDRConfiguration) GetAcquisitionTimeS() uint32 { - if x != nil { - return x.AcquisitionTimeS - } - return 0 -} - -func (x *OTDRConfiguration) GetPulseWidthNs() float32 { - if x != nil { - return x.PulseWidthNs - } - return 0 -} - -func (x *OTDRConfiguration) GetWavelengthMhz() uint64 { - if x != nil { - return x.WavelengthMhz - } - return 0 -} - -func (x *OTDRConfiguration) GetRangeM() float32 { - if x != nil { - return x.RangeM - } - return 0 -} - -func (x *OTDRConfiguration) GetFiberType() FiberTypeProfile { - if x != nil { - return x.FiberType - } - return FiberTypeProfile_FTP_UNKNOWN -} - -func (x *OTDRConfiguration) GetSamplingResolutionM() float32 { - if x != nil { - return x.SamplingResolutionM - } - return 0 -} +func (m *OTDRConfiguration) Reset() { *m = OTDRConfiguration{} } +func (m *OTDRConfiguration) String() string { return proto.CompactTextString(m) } +func (*OTDRConfiguration) ProtoMessage() {} +func (*OTDRConfiguration) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } type InitiateProgress struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - // The state of the OTDR trace requested. Note that this does not include // error states as these should be returned as a gRPC error. - State InitiateProgress_State `protobuf:"varint,1,opt,name=state,proto3,enum=gnoi.optical.InitiateProgress_State" json:"state,omitempty"` -} - -func (x *InitiateProgress) Reset() { - *x = InitiateProgress{} - if protoimpl.UnsafeEnabled { - mi := &file_otdr_otdr_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *InitiateProgress) String() string { - return protoimpl.X.MessageStringOf(x) + State InitiateProgress_State `protobuf:"varint,1,opt,name=state,enum=gnoi.optical.InitiateProgress_State" json:"state,omitempty"` } -func (*InitiateProgress) ProtoMessage() {} - -func (x *InitiateProgress) ProtoReflect() protoreflect.Message { - mi := &file_otdr_otdr_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use InitiateProgress.ProtoReflect.Descriptor instead. -func (*InitiateProgress) Descriptor() ([]byte, []int) { - return file_otdr_otdr_proto_rawDescGZIP(), []int{2} -} - -func (x *InitiateProgress) GetState() InitiateProgress_State { - if x != nil { - return x.State - } - return InitiateProgress_UNKNOWN -} +func (m *InitiateProgress) Reset() { *m = InitiateProgress{} } +func (m *InitiateProgress) String() string { return proto.CompactTextString(m) } +func (*InitiateProgress) ProtoMessage() {} +func (*InitiateProgress) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} } type InitiateResults struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - // The local path in which the OTDR file is saved on the device. - LocalPath string `protobuf:"bytes,1,opt,name=local_path,json=localPath,proto3" json:"local_path,omitempty"` + LocalPath string `protobuf:"bytes,1,opt,name=local_path,json=localPath" json:"local_path,omitempty"` // The OTDR trace details in a structured format. - OtdrTrace *OTDRTrace `protobuf:"bytes,2,opt,name=otdr_trace,json=otdrTrace,proto3" json:"otdr_trace,omitempty"` + OtdrTrace *OTDRTrace `protobuf:"bytes,2,opt,name=otdr_trace,json=otdrTrace" json:"otdr_trace,omitempty"` } -func (x *InitiateResults) Reset() { - *x = InitiateResults{} - if protoimpl.UnsafeEnabled { - mi := &file_otdr_otdr_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *InitiateResults) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*InitiateResults) ProtoMessage() {} - -func (x *InitiateResults) ProtoReflect() protoreflect.Message { - mi := &file_otdr_otdr_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} +func (m *InitiateResults) Reset() { *m = InitiateResults{} } +func (m *InitiateResults) String() string { return proto.CompactTextString(m) } +func (*InitiateResults) ProtoMessage() {} +func (*InitiateResults) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} } -// Deprecated: Use InitiateResults.ProtoReflect.Descriptor instead. -func (*InitiateResults) Descriptor() ([]byte, []int) { - return file_otdr_otdr_proto_rawDescGZIP(), []int{3} -} - -func (x *InitiateResults) GetLocalPath() string { - if x != nil { - return x.LocalPath - } - return "" -} - -func (x *InitiateResults) GetOtdrTrace() *OTDRTrace { - if x != nil { - return x.OtdrTrace +func (m *InitiateResults) GetOtdrTrace() *OTDRTrace { + if m != nil { + return m.OtdrTrace } return nil } type InitiateError struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Type InitiateError_Type `protobuf:"varint,1,opt,name=type,proto3,enum=gnoi.optical.InitiateError_Type" json:"type,omitempty"` - Detail string `protobuf:"bytes,2,opt,name=detail,proto3" json:"detail,omitempty"` + Type InitiateError_Type `protobuf:"varint,1,opt,name=type,enum=gnoi.optical.InitiateError_Type" json:"type,omitempty"` + Detail string `protobuf:"bytes,2,opt,name=detail" json:"detail,omitempty"` } -func (x *InitiateError) Reset() { - *x = InitiateError{} - if protoimpl.UnsafeEnabled { - mi := &file_otdr_otdr_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *InitiateError) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*InitiateError) ProtoMessage() {} - -func (x *InitiateError) ProtoReflect() protoreflect.Message { - mi := &file_otdr_otdr_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use InitiateError.ProtoReflect.Descriptor instead. -func (*InitiateError) Descriptor() ([]byte, []int) { - return file_otdr_otdr_proto_rawDescGZIP(), []int{4} -} - -func (x *InitiateError) GetType() InitiateError_Type { - if x != nil { - return x.Type - } - return InitiateError_UNSPECIFIED -} - -func (x *InitiateError) GetDetail() string { - if x != nil { - return x.Detail - } - return "" -} +func (m *InitiateError) Reset() { *m = InitiateError{} } +func (m *InitiateError) String() string { return proto.CompactTextString(m) } +func (*InitiateError) ProtoMessage() {} +func (*InitiateError) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} } // IntitiateResponse describes the possible response messages that will be // streamed after the RPC is initiated. While the OTDR is running, "progress" @@ -609,48 +276,35 @@ func (x *InitiateError) GetDetail() string { // completed, a final "results" or "error" message should be streamed before // the RPC is terminated. type InitiateResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to Response: + // Types that are valid to be assigned to Response: // *InitiateResponse_Progress // *InitiateResponse_Results // *InitiateResponse_Error Response isInitiateResponse_Response `protobuf_oneof:"response"` } -func (x *InitiateResponse) Reset() { - *x = InitiateResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_otdr_otdr_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} +func (m *InitiateResponse) Reset() { *m = InitiateResponse{} } +func (m *InitiateResponse) String() string { return proto.CompactTextString(m) } +func (*InitiateResponse) ProtoMessage() {} +func (*InitiateResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} } -func (x *InitiateResponse) String() string { - return protoimpl.X.MessageStringOf(x) +type isInitiateResponse_Response interface { + isInitiateResponse_Response() } -func (*InitiateResponse) ProtoMessage() {} - -func (x *InitiateResponse) ProtoReflect() protoreflect.Message { - mi := &file_otdr_otdr_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +type InitiateResponse_Progress struct { + Progress *InitiateProgress `protobuf:"bytes,1,opt,name=progress,oneof"` } - -// Deprecated: Use InitiateResponse.ProtoReflect.Descriptor instead. -func (*InitiateResponse) Descriptor() ([]byte, []int) { - return file_otdr_otdr_proto_rawDescGZIP(), []int{5} +type InitiateResponse_Results struct { + Results *InitiateResults `protobuf:"bytes,2,opt,name=results,oneof"` } +type InitiateResponse_Error struct { + Error *InitiateError `protobuf:"bytes,3,opt,name=error,oneof"` +} + +func (*InitiateResponse_Progress) isInitiateResponse_Response() {} +func (*InitiateResponse_Results) isInitiateResponse_Response() {} +func (*InitiateResponse_Error) isInitiateResponse_Response() {} func (m *InitiateResponse) GetResponse() isInitiateResponse_Response { if m != nil { @@ -659,515 +313,358 @@ func (m *InitiateResponse) GetResponse() isInitiateResponse_Response { return nil } -func (x *InitiateResponse) GetProgress() *InitiateProgress { - if x, ok := x.GetResponse().(*InitiateResponse_Progress); ok { +func (m *InitiateResponse) GetProgress() *InitiateProgress { + if x, ok := m.GetResponse().(*InitiateResponse_Progress); ok { return x.Progress } return nil } -func (x *InitiateResponse) GetResults() *InitiateResults { - if x, ok := x.GetResponse().(*InitiateResponse_Results); ok { +func (m *InitiateResponse) GetResults() *InitiateResults { + if x, ok := m.GetResponse().(*InitiateResponse_Results); ok { return x.Results } return nil } -func (x *InitiateResponse) GetError() *InitiateError { - if x, ok := x.GetResponse().(*InitiateResponse_Error); ok { +func (m *InitiateResponse) GetError() *InitiateError { + if x, ok := m.GetResponse().(*InitiateResponse_Error); ok { return x.Error } return nil } -type isInitiateResponse_Response interface { - isInitiateResponse_Response() -} - -type InitiateResponse_Progress struct { - Progress *InitiateProgress `protobuf:"bytes,1,opt,name=progress,proto3,oneof"` +// XXX_OneofFuncs is for the internal use of the proto package. +func (*InitiateResponse) 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 _InitiateResponse_OneofMarshaler, _InitiateResponse_OneofUnmarshaler, _InitiateResponse_OneofSizer, []interface{}{ + (*InitiateResponse_Progress)(nil), + (*InitiateResponse_Results)(nil), + (*InitiateResponse_Error)(nil), + } } -type InitiateResponse_Results struct { - Results *InitiateResults `protobuf:"bytes,2,opt,name=results,proto3,oneof"` +func _InitiateResponse_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*InitiateResponse) + // response + switch x := m.Response.(type) { + case *InitiateResponse_Progress: + b.EncodeVarint(1<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Progress); err != nil { + return err + } + case *InitiateResponse_Results: + b.EncodeVarint(2<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Results); err != nil { + return err + } + case *InitiateResponse_Error: + b.EncodeVarint(3<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Error); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("InitiateResponse.Response has unexpected type %T", x) + } + return nil } -type InitiateResponse_Error struct { - Error *InitiateError `protobuf:"bytes,3,opt,name=error,proto3,oneof"` +func _InitiateResponse_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*InitiateResponse) + switch tag { + case 1: // response.progress + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(InitiateProgress) + err := b.DecodeMessage(msg) + m.Response = &InitiateResponse_Progress{msg} + return true, err + case 2: // response.results + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(InitiateResults) + err := b.DecodeMessage(msg) + m.Response = &InitiateResponse_Results{msg} + return true, err + case 3: // response.error + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(InitiateError) + err := b.DecodeMessage(msg) + m.Response = &InitiateResponse_Error{msg} + return true, err + default: + return false, nil + } +} + +func _InitiateResponse_OneofSizer(msg proto.Message) (n int) { + m := msg.(*InitiateResponse) + // response + switch x := m.Response.(type) { + case *InitiateResponse_Progress: + s := proto.Size(x.Progress) + n += proto.SizeVarint(1<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *InitiateResponse_Results: + s := proto.Size(x.Results) + n += proto.SizeVarint(2<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *InitiateResponse_Error: + s := proto.Size(x.Error) + n += proto.SizeVarint(3<<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 } -func (*InitiateResponse_Progress) isInitiateResponse_Response() {} - -func (*InitiateResponse_Results) isInitiateResponse_Response() {} - -func (*InitiateResponse_Error) isInitiateResponse_Response() {} - type OTDRTrace struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - // Total measured loss of the fiber. - TotalLossDb float32 `protobuf:"fixed32,1,opt,name=total_loss_db,json=totalLossDb,proto3" json:"total_loss_db,omitempty"` + TotalLossDb float32 `protobuf:"fixed32,1,opt,name=total_loss_db,json=totalLossDb" json:"total_loss_db,omitempty"` // Total measured length of the fiber in meters. - TotalLengthM float32 `protobuf:"fixed32,2,opt,name=total_length_m,json=totalLengthM,proto3" json:"total_length_m,omitempty"` + TotalLengthM float32 `protobuf:"fixed32,2,opt,name=total_length_m,json=totalLengthM" json:"total_length_m,omitempty"` // Optical return loss of the fiber in dB. - OpticalReturnLossDb float32 `protobuf:"fixed32,3,opt,name=optical_return_loss_db,json=opticalReturnLossDb,proto3" json:"optical_return_loss_db,omitempty"` + OpticalReturnLossDb float32 `protobuf:"fixed32,3,opt,name=optical_return_loss_db,json=opticalReturnLossDb" json:"optical_return_loss_db,omitempty"` // Average fiber loss (dB/km) - AverageLossDbKm float32 `protobuf:"fixed32,4,opt,name=average_loss_db_km,json=averageLossDbKm,proto3" json:"average_loss_db_km,omitempty"` + AverageLossDbKm float32 `protobuf:"fixed32,4,opt,name=average_loss_db_km,json=averageLossDbKm" json:"average_loss_db_km,omitempty"` // Discovered fiber type, if the OTDR can infer this information. - DiscoveredFiberType FiberTypeProfile `protobuf:"varint,5,opt,name=discovered_fiber_type,json=discoveredFiberType,proto3,enum=gnoi.optical.FiberTypeProfile" json:"discovered_fiber_type,omitempty"` - Events []*Event `protobuf:"bytes,6,rep,name=events,proto3" json:"events,omitempty"` + DiscoveredFiberType FiberTypeProfile `protobuf:"varint,5,opt,name=discovered_fiber_type,json=discoveredFiberType,enum=gnoi.optical.FiberTypeProfile" json:"discovered_fiber_type,omitempty"` + Events []*Event `protobuf:"bytes,6,rep,name=events" json:"events,omitempty"` } -func (x *OTDRTrace) Reset() { - *x = OTDRTrace{} - if protoimpl.UnsafeEnabled { - mi := &file_otdr_otdr_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (m *OTDRTrace) Reset() { *m = OTDRTrace{} } +func (m *OTDRTrace) String() string { return proto.CompactTextString(m) } +func (*OTDRTrace) ProtoMessage() {} +func (*OTDRTrace) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} } + +func (m *OTDRTrace) GetEvents() []*Event { + if m != nil { + return m.Events } + return nil } -func (x *OTDRTrace) String() string { - return protoimpl.X.MessageStringOf(x) +type Event struct { + // Distance at which the event occurred in meters. + DistanceM float32 `protobuf:"fixed32,1,opt,name=distance_m,json=distanceM" json:"distance_m,omitempty"` + // The fiber loss that occurred at the event in dB. + LossDb float32 `protobuf:"fixed32,2,opt,name=loss_db,json=lossDb" json:"loss_db,omitempty"` + // The reflection that occurred at the event in dB. + ReflectionDb float32 `protobuf:"fixed32,3,opt,name=reflection_db,json=reflectionDb" json:"reflection_db,omitempty"` } -func (*OTDRTrace) ProtoMessage() {} +func (m *Event) Reset() { *m = Event{} } +func (m *Event) String() string { return proto.CompactTextString(m) } +func (*Event) ProtoMessage() {} +func (*Event) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} } -func (x *OTDRTrace) ProtoReflect() protoreflect.Message { - mi := &file_otdr_otdr_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func init() { + proto.RegisterType((*InitiateRequest)(nil), "gnoi.optical.InitiateRequest") + proto.RegisterType((*OTDRConfiguration)(nil), "gnoi.optical.OTDRConfiguration") + proto.RegisterType((*InitiateProgress)(nil), "gnoi.optical.InitiateProgress") + proto.RegisterType((*InitiateResults)(nil), "gnoi.optical.InitiateResults") + proto.RegisterType((*InitiateError)(nil), "gnoi.optical.InitiateError") + proto.RegisterType((*InitiateResponse)(nil), "gnoi.optical.InitiateResponse") + proto.RegisterType((*OTDRTrace)(nil), "gnoi.optical.OTDRTrace") + proto.RegisterType((*Event)(nil), "gnoi.optical.Event") + proto.RegisterEnum("gnoi.optical.FiberTypeProfile", FiberTypeProfile_name, FiberTypeProfile_value) + proto.RegisterEnum("gnoi.optical.InitiateRequest_ResultsMethod", InitiateRequest_ResultsMethod_name, InitiateRequest_ResultsMethod_value) + proto.RegisterEnum("gnoi.optical.InitiateProgress_State", InitiateProgress_State_name, InitiateProgress_State_value) + proto.RegisterEnum("gnoi.optical.InitiateError_Type", InitiateError_Type_name, InitiateError_Type_value) } -// Deprecated: Use OTDRTrace.ProtoReflect.Descriptor instead. -func (*OTDRTrace) Descriptor() ([]byte, []int) { - return file_otdr_otdr_proto_rawDescGZIP(), []int{6} -} +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn -func (x *OTDRTrace) GetTotalLossDb() float32 { - if x != nil { - return x.TotalLossDb - } - return 0 -} +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion3 -func (x *OTDRTrace) GetTotalLengthM() float32 { - if x != nil { - return x.TotalLengthM - } - return 0 -} +// Client API for OTDR service -func (x *OTDRTrace) GetOpticalReturnLossDb() float32 { - if x != nil { - return x.OpticalReturnLossDb - } - return 0 +type OTDRClient interface { + // Initiate triggers an optical time domain reflectometer (OTDR) trace to + // be run on a specified port. The results of the trace may be sent back in + // the response or saved on the device to be retrieved later. If the + // information is saved on the device a path to the file must be returned + // which can later be used by File.Get or File.TransferToRemote. The RPC + // should initiate the OTDR trace and wait until the OTDR trace has completed + // and the device has processed the results before returning. If the RPC is + // cancelled while in operation, the running OTDR trace should stop. + Initiate(ctx context.Context, in *InitiateRequest, opts ...grpc.CallOption) (OTDR_InitiateClient, error) } -func (x *OTDRTrace) GetAverageLossDbKm() float32 { - if x != nil { - return x.AverageLossDbKm - } - return 0 +type oTDRClient struct { + cc *grpc.ClientConn } -func (x *OTDRTrace) GetDiscoveredFiberType() FiberTypeProfile { - if x != nil { - return x.DiscoveredFiberType - } - return FiberTypeProfile_FTP_UNKNOWN +func NewOTDRClient(cc *grpc.ClientConn) OTDRClient { + return &oTDRClient{cc} } -func (x *OTDRTrace) GetEvents() []*Event { - if x != nil { - return x.Events +func (c *oTDRClient) Initiate(ctx context.Context, in *InitiateRequest, opts ...grpc.CallOption) (OTDR_InitiateClient, error) { + stream, err := grpc.NewClientStream(ctx, &_OTDR_serviceDesc.Streams[0], c.cc, "/gnoi.optical.OTDR/Initiate", opts...) + if err != nil { + return nil, err } - return nil -} - -type Event struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Distance at which the event occurred in meters. - DistanceM float32 `protobuf:"fixed32,1,opt,name=distance_m,json=distanceM,proto3" json:"distance_m,omitempty"` - // The fiber loss that occurred at the event in dB. - LossDb float32 `protobuf:"fixed32,2,opt,name=loss_db,json=lossDb,proto3" json:"loss_db,omitempty"` - // The reflection that occurred at the event in dB. - ReflectionDb float32 `protobuf:"fixed32,3,opt,name=reflection_db,json=reflectionDb,proto3" json:"reflection_db,omitempty"` -} - -func (x *Event) Reset() { - *x = Event{} - if protoimpl.UnsafeEnabled { - mi := &file_otdr_otdr_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + x := &oTDRInitiateClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err } + return x, nil } -func (x *Event) String() string { - return protoimpl.X.MessageStringOf(x) +type OTDR_InitiateClient interface { + Recv() (*InitiateResponse, error) + grpc.ClientStream } -func (*Event) ProtoMessage() {} +type oTDRInitiateClient struct { + grpc.ClientStream +} -func (x *Event) ProtoReflect() protoreflect.Message { - mi := &file_otdr_otdr_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms +func (x *oTDRInitiateClient) Recv() (*InitiateResponse, error) { + m := new(InitiateResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err } - return mi.MessageOf(x) + return m, nil } -// Deprecated: Use Event.ProtoReflect.Descriptor instead. -func (*Event) Descriptor() ([]byte, []int) { - return file_otdr_otdr_proto_rawDescGZIP(), []int{7} -} +// Server API for OTDR service -func (x *Event) GetDistanceM() float32 { - if x != nil { - return x.DistanceM - } - return 0 +type OTDRServer interface { + // Initiate triggers an optical time domain reflectometer (OTDR) trace to + // be run on a specified port. The results of the trace may be sent back in + // the response or saved on the device to be retrieved later. If the + // information is saved on the device a path to the file must be returned + // which can later be used by File.Get or File.TransferToRemote. The RPC + // should initiate the OTDR trace and wait until the OTDR trace has completed + // and the device has processed the results before returning. If the RPC is + // cancelled while in operation, the running OTDR trace should stop. + Initiate(*InitiateRequest, OTDR_InitiateServer) error } -func (x *Event) GetLossDb() float32 { - if x != nil { - return x.LossDb - } - return 0 +func RegisterOTDRServer(s *grpc.Server, srv OTDRServer) { + s.RegisterService(&_OTDR_serviceDesc, srv) } -func (x *Event) GetReflectionDb() float32 { - if x != nil { - return x.ReflectionDb +func _OTDR_Initiate_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(InitiateRequest) + if err := stream.RecvMsg(m); err != nil { + return err } - return 0 + return srv.(OTDRServer).Initiate(m, &oTDRInitiateServer{stream}) } -var File_otdr_otdr_proto protoreflect.FileDescriptor - -var file_otdr_otdr_proto_rawDesc = []byte{ - 0x0a, 0x0f, 0x6f, 0x74, 0x64, 0x72, 0x2f, 0x6f, 0x74, 0x64, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x12, 0x0c, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x70, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x1a, - 0x2c, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, - 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x67, 0x6e, 0x6f, 0x69, 0x2f, 0x74, 0x79, 0x70, 0x65, - 0x73, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xcc, 0x02, - 0x0a, 0x0f, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x2e, 0x0a, 0x09, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x74, 0x79, 0x70, 0x65, - 0x73, 0x2e, 0x50, 0x61, 0x74, 0x68, 0x52, 0x09, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, - 0x74, 0x12, 0x52, 0x0a, 0x0e, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x5f, 0x6d, 0x65, 0x74, - 0x68, 0x6f, 0x64, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x2b, 0x2e, 0x67, 0x6e, 0x6f, 0x69, - 0x2e, 0x6f, 0x70, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x2e, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, - 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, - 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x0d, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x4d, - 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x45, 0x0a, 0x0d, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, - 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x70, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x2e, 0x4f, 0x54, 0x44, 0x52, - 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0d, 0x63, - 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, - 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6c, 0x61, 0x62, - 0x65, 0x6c, 0x22, 0x58, 0x0a, 0x0d, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x4d, 0x65, 0x74, - 0x68, 0x6f, 0x64, 0x12, 0x13, 0x0a, 0x0f, 0x52, 0x45, 0x53, 0x55, 0x4c, 0x54, 0x53, 0x5f, 0x55, - 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x19, 0x0a, 0x15, 0x52, 0x45, 0x53, 0x55, - 0x4c, 0x54, 0x53, 0x5f, 0x54, 0x4f, 0x5f, 0x4c, 0x4f, 0x43, 0x41, 0x4c, 0x5f, 0x44, 0x49, 0x53, - 0x4b, 0x10, 0x01, 0x12, 0x17, 0x0a, 0x13, 0x52, 0x45, 0x53, 0x55, 0x4c, 0x54, 0x53, 0x5f, 0x49, - 0x4e, 0x5f, 0x52, 0x45, 0x53, 0x50, 0x4f, 0x4e, 0x53, 0x45, 0x10, 0x02, 0x22, 0x9a, 0x02, 0x0a, - 0x11, 0x4f, 0x54, 0x44, 0x52, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x12, 0x2c, 0x0a, 0x12, 0x61, 0x63, 0x71, 0x75, 0x69, 0x73, 0x69, 0x74, 0x69, 0x6f, - 0x6e, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x10, - 0x61, 0x63, 0x71, 0x75, 0x69, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x53, - 0x12, 0x24, 0x0a, 0x0e, 0x70, 0x75, 0x6c, 0x73, 0x65, 0x5f, 0x77, 0x69, 0x64, 0x74, 0x68, 0x5f, - 0x6e, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x02, 0x52, 0x0c, 0x70, 0x75, 0x6c, 0x73, 0x65, 0x57, - 0x69, 0x64, 0x74, 0x68, 0x4e, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x77, 0x61, 0x76, 0x65, 0x6c, 0x65, - 0x6e, 0x67, 0x74, 0x68, 0x5f, 0x6d, 0x68, 0x7a, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, - 0x77, 0x61, 0x76, 0x65, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x4d, 0x68, 0x7a, 0x12, 0x17, 0x0a, - 0x07, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x6d, 0x18, 0x04, 0x20, 0x01, 0x28, 0x02, 0x52, 0x06, - 0x72, 0x61, 0x6e, 0x67, 0x65, 0x4d, 0x12, 0x3d, 0x0a, 0x0a, 0x66, 0x69, 0x62, 0x65, 0x72, 0x5f, - 0x74, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x67, 0x6e, 0x6f, - 0x69, 0x2e, 0x6f, 0x70, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x2e, 0x46, 0x69, 0x62, 0x65, 0x72, 0x54, - 0x79, 0x70, 0x65, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x52, 0x09, 0x66, 0x69, 0x62, 0x65, - 0x72, 0x54, 0x79, 0x70, 0x65, 0x12, 0x32, 0x0a, 0x15, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x69, 0x6e, - 0x67, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6d, 0x18, 0x06, - 0x20, 0x01, 0x28, 0x02, 0x52, 0x13, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x69, 0x6e, 0x67, 0x52, 0x65, - 0x73, 0x6f, 0x6c, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x22, 0x8c, 0x01, 0x0a, 0x10, 0x49, 0x6e, - 0x69, 0x74, 0x69, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x12, 0x3a, - 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x24, 0x2e, - 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x70, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x2e, 0x49, 0x6e, 0x69, - 0x74, 0x69, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x2e, 0x53, 0x74, - 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x22, 0x3c, 0x0a, 0x05, 0x53, 0x74, - 0x61, 0x74, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, - 0x12, 0x0b, 0x0a, 0x07, 0x52, 0x55, 0x4e, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x0b, 0x0a, - 0x07, 0x50, 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x12, 0x0c, 0x0a, 0x08, 0x43, 0x4f, - 0x4d, 0x50, 0x4c, 0x45, 0x54, 0x45, 0x10, 0x03, 0x22, 0x68, 0x0a, 0x0f, 0x49, 0x6e, 0x69, 0x74, - 0x69, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x6c, - 0x6f, 0x63, 0x61, 0x6c, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x09, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x50, 0x61, 0x74, 0x68, 0x12, 0x36, 0x0a, 0x0a, 0x6f, 0x74, - 0x64, 0x72, 0x5f, 0x74, 0x72, 0x61, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, - 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x70, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x2e, 0x4f, 0x54, - 0x44, 0x52, 0x54, 0x72, 0x61, 0x63, 0x65, 0x52, 0x09, 0x6f, 0x74, 0x64, 0x72, 0x54, 0x72, 0x61, - 0x63, 0x65, 0x22, 0xa5, 0x01, 0x0a, 0x0d, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, 0x65, 0x45, - 0x72, 0x72, 0x6f, 0x72, 0x12, 0x34, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0e, 0x32, 0x20, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x70, 0x74, 0x69, 0x63, 0x61, - 0x6c, 0x2e, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, 0x65, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x2e, - 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x65, - 0x74, 0x61, 0x69, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x65, 0x74, 0x61, - 0x69, 0x6c, 0x22, 0x46, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0f, 0x0a, 0x0b, 0x55, 0x4e, - 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x17, 0x0a, 0x13, 0x41, - 0x4c, 0x52, 0x45, 0x41, 0x44, 0x59, 0x5f, 0x49, 0x4e, 0x5f, 0x50, 0x52, 0x4f, 0x47, 0x52, 0x45, - 0x53, 0x53, 0x10, 0x01, 0x12, 0x14, 0x0a, 0x10, 0x48, 0x41, 0x52, 0x44, 0x57, 0x41, 0x52, 0x45, - 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x55, 0x52, 0x45, 0x10, 0x02, 0x22, 0xcc, 0x01, 0x0a, 0x10, 0x49, - 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x3c, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x70, 0x74, 0x69, 0x63, 0x61, 0x6c, - 0x2e, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, - 0x73, 0x48, 0x00, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x12, 0x39, 0x0a, - 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, - 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x70, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x2e, 0x49, 0x6e, - 0x69, 0x74, 0x69, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x48, 0x00, 0x52, - 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x12, 0x33, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, - 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, - 0x70, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x2e, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, 0x65, 0x45, - 0x72, 0x72, 0x6f, 0x72, 0x48, 0x00, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x42, 0x0a, 0x0a, - 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xb8, 0x02, 0x0a, 0x09, 0x4f, 0x54, - 0x44, 0x52, 0x54, 0x72, 0x61, 0x63, 0x65, 0x12, 0x22, 0x0a, 0x0d, 0x74, 0x6f, 0x74, 0x61, 0x6c, - 0x5f, 0x6c, 0x6f, 0x73, 0x73, 0x5f, 0x64, 0x62, 0x18, 0x01, 0x20, 0x01, 0x28, 0x02, 0x52, 0x0b, - 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x4c, 0x6f, 0x73, 0x73, 0x44, 0x62, 0x12, 0x24, 0x0a, 0x0e, 0x74, - 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x5f, 0x6d, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x02, 0x52, 0x0c, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x4c, 0x65, 0x6e, 0x67, 0x74, 0x68, - 0x4d, 0x12, 0x33, 0x0a, 0x16, 0x6f, 0x70, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x5f, 0x72, 0x65, 0x74, - 0x75, 0x72, 0x6e, 0x5f, 0x6c, 0x6f, 0x73, 0x73, 0x5f, 0x64, 0x62, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x02, 0x52, 0x13, 0x6f, 0x70, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, - 0x4c, 0x6f, 0x73, 0x73, 0x44, 0x62, 0x12, 0x2b, 0x0a, 0x12, 0x61, 0x76, 0x65, 0x72, 0x61, 0x67, - 0x65, 0x5f, 0x6c, 0x6f, 0x73, 0x73, 0x5f, 0x64, 0x62, 0x5f, 0x6b, 0x6d, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x02, 0x52, 0x0f, 0x61, 0x76, 0x65, 0x72, 0x61, 0x67, 0x65, 0x4c, 0x6f, 0x73, 0x73, 0x44, - 0x62, 0x4b, 0x6d, 0x12, 0x52, 0x0a, 0x15, 0x64, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x65, - 0x64, 0x5f, 0x66, 0x69, 0x62, 0x65, 0x72, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, - 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x70, 0x74, 0x69, 0x63, 0x61, - 0x6c, 0x2e, 0x46, 0x69, 0x62, 0x65, 0x72, 0x54, 0x79, 0x70, 0x65, 0x50, 0x72, 0x6f, 0x66, 0x69, - 0x6c, 0x65, 0x52, 0x13, 0x64, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x65, 0x64, 0x46, 0x69, - 0x62, 0x65, 0x72, 0x54, 0x79, 0x70, 0x65, 0x12, 0x2b, 0x0a, 0x06, 0x65, 0x76, 0x65, 0x6e, 0x74, - 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, - 0x70, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x06, 0x65, 0x76, - 0x65, 0x6e, 0x74, 0x73, 0x22, 0x64, 0x0a, 0x05, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x1d, 0x0a, - 0x0a, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x02, 0x52, 0x09, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x4d, 0x12, 0x17, 0x0a, 0x07, - 0x6c, 0x6f, 0x73, 0x73, 0x5f, 0x64, 0x62, 0x18, 0x02, 0x20, 0x01, 0x28, 0x02, 0x52, 0x06, 0x6c, - 0x6f, 0x73, 0x73, 0x44, 0x62, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x62, 0x18, 0x03, 0x20, 0x01, 0x28, 0x02, 0x52, 0x0c, 0x72, 0x65, - 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x62, 0x2a, 0x98, 0x01, 0x0a, 0x10, 0x46, - 0x69, 0x62, 0x65, 0x72, 0x54, 0x79, 0x70, 0x65, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x12, - 0x0f, 0x0a, 0x0b, 0x46, 0x54, 0x50, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, - 0x12, 0x0b, 0x0a, 0x07, 0x46, 0x54, 0x50, 0x5f, 0x44, 0x53, 0x46, 0x10, 0x01, 0x12, 0x0c, 0x0a, - 0x08, 0x46, 0x54, 0x50, 0x5f, 0x4c, 0x45, 0x41, 0x46, 0x10, 0x02, 0x12, 0x0c, 0x0a, 0x08, 0x46, - 0x54, 0x50, 0x5f, 0x53, 0x53, 0x4d, 0x46, 0x10, 0x03, 0x12, 0x0b, 0x0a, 0x07, 0x46, 0x54, 0x50, - 0x5f, 0x54, 0x57, 0x43, 0x10, 0x04, 0x12, 0x0c, 0x0a, 0x08, 0x46, 0x54, 0x50, 0x5f, 0x54, 0x57, - 0x52, 0x53, 0x10, 0x05, 0x12, 0x0a, 0x0a, 0x06, 0x46, 0x54, 0x50, 0x5f, 0x4c, 0x53, 0x10, 0x06, - 0x12, 0x10, 0x0a, 0x0c, 0x46, 0x54, 0x50, 0x5f, 0x54, 0x45, 0x52, 0x41, 0x57, 0x41, 0x56, 0x45, - 0x10, 0x07, 0x12, 0x11, 0x0a, 0x0d, 0x46, 0x54, 0x50, 0x5f, 0x54, 0x45, 0x52, 0x41, 0x4c, 0x49, - 0x47, 0x48, 0x54, 0x10, 0x08, 0x32, 0x55, 0x0a, 0x04, 0x4f, 0x54, 0x44, 0x52, 0x12, 0x4d, 0x0a, - 0x08, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, 0x65, 0x12, 0x1d, 0x2e, 0x67, 0x6e, 0x6f, 0x69, - 0x2e, 0x6f, 0x70, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x2e, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, - 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, - 0x6f, 0x70, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x2e, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, 0x65, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x30, 0x01, 0x42, 0x29, 0x5a, 0x1f, - 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x63, - 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x67, 0x6e, 0x6f, 0x69, 0x2f, 0x6f, 0x74, 0x64, 0x72, 0xd2, - 0x3e, 0x05, 0x30, 0x2e, 0x31, 0x2e, 0x30, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +type OTDR_InitiateServer interface { + Send(*InitiateResponse) error + grpc.ServerStream } -var ( - file_otdr_otdr_proto_rawDescOnce sync.Once - file_otdr_otdr_proto_rawDescData = file_otdr_otdr_proto_rawDesc -) - -func file_otdr_otdr_proto_rawDescGZIP() []byte { - file_otdr_otdr_proto_rawDescOnce.Do(func() { - file_otdr_otdr_proto_rawDescData = protoimpl.X.CompressGZIP(file_otdr_otdr_proto_rawDescData) - }) - return file_otdr_otdr_proto_rawDescData +type oTDRInitiateServer struct { + grpc.ServerStream } -var file_otdr_otdr_proto_enumTypes = make([]protoimpl.EnumInfo, 4) -var file_otdr_otdr_proto_msgTypes = make([]protoimpl.MessageInfo, 8) -var file_otdr_otdr_proto_goTypes = []interface{}{ - (FiberTypeProfile)(0), // 0: gnoi.optical.FiberTypeProfile - (InitiateRequest_ResultsMethod)(0), // 1: gnoi.optical.InitiateRequest.ResultsMethod - (InitiateProgress_State)(0), // 2: gnoi.optical.InitiateProgress.State - (InitiateError_Type)(0), // 3: gnoi.optical.InitiateError.Type - (*InitiateRequest)(nil), // 4: gnoi.optical.InitiateRequest - (*OTDRConfiguration)(nil), // 5: gnoi.optical.OTDRConfiguration - (*InitiateProgress)(nil), // 6: gnoi.optical.InitiateProgress - (*InitiateResults)(nil), // 7: gnoi.optical.InitiateResults - (*InitiateError)(nil), // 8: gnoi.optical.InitiateError - (*InitiateResponse)(nil), // 9: gnoi.optical.InitiateResponse - (*OTDRTrace)(nil), // 10: gnoi.optical.OTDRTrace - (*Event)(nil), // 11: gnoi.optical.Event - (*types.Path)(nil), // 12: gnoi.types.Path -} -var file_otdr_otdr_proto_depIdxs = []int32{ - 12, // 0: gnoi.optical.InitiateRequest.component:type_name -> gnoi.types.Path - 1, // 1: gnoi.optical.InitiateRequest.results_method:type_name -> gnoi.optical.InitiateRequest.ResultsMethod - 5, // 2: gnoi.optical.InitiateRequest.configuration:type_name -> gnoi.optical.OTDRConfiguration - 0, // 3: gnoi.optical.OTDRConfiguration.fiber_type:type_name -> gnoi.optical.FiberTypeProfile - 2, // 4: gnoi.optical.InitiateProgress.state:type_name -> gnoi.optical.InitiateProgress.State - 10, // 5: gnoi.optical.InitiateResults.otdr_trace:type_name -> gnoi.optical.OTDRTrace - 3, // 6: gnoi.optical.InitiateError.type:type_name -> gnoi.optical.InitiateError.Type - 6, // 7: gnoi.optical.InitiateResponse.progress:type_name -> gnoi.optical.InitiateProgress - 7, // 8: gnoi.optical.InitiateResponse.results:type_name -> gnoi.optical.InitiateResults - 8, // 9: gnoi.optical.InitiateResponse.error:type_name -> gnoi.optical.InitiateError - 0, // 10: gnoi.optical.OTDRTrace.discovered_fiber_type:type_name -> gnoi.optical.FiberTypeProfile - 11, // 11: gnoi.optical.OTDRTrace.events:type_name -> gnoi.optical.Event - 4, // 12: gnoi.optical.OTDR.Initiate:input_type -> gnoi.optical.InitiateRequest - 9, // 13: gnoi.optical.OTDR.Initiate:output_type -> gnoi.optical.InitiateResponse - 13, // [13:14] is the sub-list for method output_type - 12, // [12:13] is the sub-list for method input_type - 12, // [12:12] is the sub-list for extension type_name - 12, // [12:12] is the sub-list for extension extendee - 0, // [0:12] is the sub-list for field type_name +func (x *oTDRInitiateServer) Send(m *InitiateResponse) error { + return x.ServerStream.SendMsg(m) } -func init() { file_otdr_otdr_proto_init() } -func file_otdr_otdr_proto_init() { - if File_otdr_otdr_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_otdr_otdr_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*InitiateRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_otdr_otdr_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OTDRConfiguration); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_otdr_otdr_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*InitiateProgress); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_otdr_otdr_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*InitiateResults); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_otdr_otdr_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*InitiateError); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_otdr_otdr_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*InitiateResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_otdr_otdr_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OTDRTrace); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_otdr_otdr_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Event); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_otdr_otdr_proto_msgTypes[5].OneofWrappers = []interface{}{ - (*InitiateResponse_Progress)(nil), - (*InitiateResponse_Results)(nil), - (*InitiateResponse_Error)(nil), - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_otdr_otdr_proto_rawDesc, - NumEnums: 4, - NumMessages: 8, - NumExtensions: 0, - NumServices: 1, +var _OTDR_serviceDesc = grpc.ServiceDesc{ + ServiceName: "gnoi.optical.OTDR", + HandlerType: (*OTDRServer)(nil), + Methods: []grpc.MethodDesc{}, + Streams: []grpc.StreamDesc{ + { + StreamName: "Initiate", + Handler: _OTDR_Initiate_Handler, + ServerStreams: true, }, - GoTypes: file_otdr_otdr_proto_goTypes, - DependencyIndexes: file_otdr_otdr_proto_depIdxs, - EnumInfos: file_otdr_otdr_proto_enumTypes, - MessageInfos: file_otdr_otdr_proto_msgTypes, - }.Build() - File_otdr_otdr_proto = out.File - file_otdr_otdr_proto_rawDesc = nil - file_otdr_otdr_proto_goTypes = nil - file_otdr_otdr_proto_depIdxs = nil + }, + Metadata: fileDescriptor0, +} + +func init() { proto.RegisterFile("otdr/otdr.proto", fileDescriptor0) } + +var fileDescriptor0 = []byte{ + // 1046 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x94, 0x55, 0xed, 0x6e, 0xe2, 0x46, + 0x17, 0xc6, 0x7c, 0x05, 0x0e, 0x81, 0x78, 0x27, 0xbb, 0x1b, 0xde, 0x7d, 0x95, 0x14, 0xd1, 0xad, + 0x84, 0x9a, 0x95, 0x93, 0x92, 0xaa, 0x52, 0xab, 0x6d, 0x25, 0x36, 0x98, 0x04, 0x85, 0x2f, 0x8d, + 0x4d, 0x69, 0x7f, 0x8d, 0x0c, 0x4c, 0xc0, 0xaa, 0xf1, 0x78, 0x3d, 0x43, 0x56, 0xbb, 0xd7, 0xd0, + 0x0b, 0xa8, 0xfa, 0xbf, 0xf7, 0xd0, 0x8b, 0xd8, 0x5f, 0xbd, 0xa2, 0x6a, 0xc6, 0x36, 0x81, 0xfd, + 0x88, 0xd4, 0x3f, 0x88, 0x73, 0xce, 0x73, 0x66, 0xce, 0x3c, 0xf3, 0x3c, 0x63, 0x38, 0x60, 0x62, + 0x1e, 0x9e, 0xc9, 0x1f, 0x23, 0x08, 0x99, 0x60, 0x68, 0x7f, 0xe1, 0x33, 0xd7, 0x60, 0x81, 0x70, + 0x67, 0x8e, 0xf7, 0xec, 0xc5, 0xc2, 0x15, 0xcb, 0xf5, 0xd4, 0x98, 0xb1, 0xd5, 0x19, 0x0b, 0xa8, + 0x3f, 0x63, 0xfe, 0xad, 0xbb, 0x38, 0x93, 0x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--git a/otdr/otdr.proto b/otdr/otdr.proto index f05cc212..79963212 100644 --- a/otdr/otdr.proto +++ b/otdr/otdr.proto @@ -20,8 +20,6 @@ package gnoi.optical; import "github.com/openconfig/gnoi/types/types.proto"; -option go_package = "github.com/openconfig/gnoi/otdr"; - option (types.gnoi_version) = "0.1.0"; service OTDR { diff --git a/otdr/otdr_grpc.pb.go b/otdr/otdr_grpc.pb.go deleted file mode 100644 index 2695b34e..00000000 --- a/otdr/otdr_grpc.pb.go +++ /dev/null @@ -1,144 +0,0 @@ -// Code generated by protoc-gen-go-grpc. DO NOT EDIT. - -package otdr - -import ( - context "context" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" -) - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 - -// OTDRClient is the client API for OTDR service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. -type OTDRClient interface { - // Initiate triggers an optical time domain reflectometer (OTDR) trace to - // be run on a specified port. The results of the trace may be sent back in - // the response or saved on the device to be retrieved later. If the - // information is saved on the device a path to the file must be returned - // which can later be used by File.Get or File.TransferToRemote. The RPC - // should initiate the OTDR trace and wait until the OTDR trace has completed - // and the device has processed the results before returning. If the RPC is - // cancelled while in operation, the running OTDR trace should stop. - Initiate(ctx context.Context, in *InitiateRequest, opts ...grpc.CallOption) (OTDR_InitiateClient, error) -} - -type oTDRClient struct { - cc grpc.ClientConnInterface -} - -func NewOTDRClient(cc grpc.ClientConnInterface) OTDRClient { - return &oTDRClient{cc} -} - -func (c *oTDRClient) Initiate(ctx context.Context, in *InitiateRequest, opts ...grpc.CallOption) (OTDR_InitiateClient, error) { - stream, err := c.cc.NewStream(ctx, &OTDR_ServiceDesc.Streams[0], "/gnoi.optical.OTDR/Initiate", opts...) - if err != nil { - return nil, err - } - x := &oTDRInitiateClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type OTDR_InitiateClient interface { - Recv() (*InitiateResponse, error) - grpc.ClientStream -} - -type oTDRInitiateClient struct { - grpc.ClientStream -} - -func (x *oTDRInitiateClient) Recv() (*InitiateResponse, error) { - m := new(InitiateResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -// OTDRServer is the server API for OTDR service. -// All implementations must embed UnimplementedOTDRServer -// for forward compatibility -type OTDRServer interface { - // Initiate triggers an optical time domain reflectometer (OTDR) trace to - // be run on a specified port. The results of the trace may be sent back in - // the response or saved on the device to be retrieved later. If the - // information is saved on the device a path to the file must be returned - // which can later be used by File.Get or File.TransferToRemote. The RPC - // should initiate the OTDR trace and wait until the OTDR trace has completed - // and the device has processed the results before returning. If the RPC is - // cancelled while in operation, the running OTDR trace should stop. - Initiate(*InitiateRequest, OTDR_InitiateServer) error - mustEmbedUnimplementedOTDRServer() -} - -// UnimplementedOTDRServer must be embedded to have forward compatible implementations. -type UnimplementedOTDRServer struct { -} - -func (UnimplementedOTDRServer) Initiate(*InitiateRequest, OTDR_InitiateServer) error { - return status.Errorf(codes.Unimplemented, "method Initiate not implemented") -} -func (UnimplementedOTDRServer) mustEmbedUnimplementedOTDRServer() {} - -// UnsafeOTDRServer may be embedded to opt out of forward compatibility for this service. -// Use of this interface is not recommended, as added methods to OTDRServer will -// result in compilation errors. -type UnsafeOTDRServer interface { - mustEmbedUnimplementedOTDRServer() -} - -func RegisterOTDRServer(s grpc.ServiceRegistrar, srv OTDRServer) { - s.RegisterService(&OTDR_ServiceDesc, srv) -} - -func _OTDR_Initiate_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(InitiateRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(OTDRServer).Initiate(m, &oTDRInitiateServer{stream}) -} - -type OTDR_InitiateServer interface { - Send(*InitiateResponse) error - grpc.ServerStream -} - -type oTDRInitiateServer struct { - grpc.ServerStream -} - -func (x *oTDRInitiateServer) Send(m *InitiateResponse) error { - return x.ServerStream.SendMsg(m) -} - -// OTDR_ServiceDesc is the grpc.ServiceDesc for OTDR service. -// It's only intended for direct use with grpc.RegisterService, -// and not to be introspected or modified (even as a copy) -var OTDR_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "gnoi.optical.OTDR", - HandlerType: (*OTDRServer)(nil), - Methods: []grpc.MethodDesc{}, - Streams: []grpc.StreamDesc{ - { - StreamName: "Initiate", - Handler: _OTDR_Initiate_Handler, - ServerStreams: true, - }, - }, - Metadata: "otdr/otdr.proto", -} diff --git a/system/system.pb.go b/system/system.pb.go index 69ee9edc..1d3da254 100644 --- a/system/system.pb.go +++ b/system/system.pb.go @@ -1,48 +1,28 @@ -// -// Copyright 2017 Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// - -// Generic Network Operation Interface, GNOI, defines a set of RPC's used for -// the operational aspects of network targets. These services are meant to be -// used in conjunction with GNMI for all target state and operational aspects -// of a network target. The gnoi.system.Service is the only mandatory vendor -// implementation. - // Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.26.0 -// protoc v3.15.7 // source: system/system.proto -package system +package gnoi_system import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" common "github.com/openconfig/gnoi/common" types "github.com/openconfig/gnoi/types" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" + context "golang.org/x/net/context" + grpc "google.golang.org/grpc" + math "math" ) -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) +// 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 // A RebootMethod determines what should be done with a target when a Reboot is // requested. Only the COLD method is required to be supported by all @@ -52,296 +32,220 @@ const ( type RebootMethod int32 const ( - RebootMethod_UNKNOWN RebootMethod = 0 // Invalid default method. - RebootMethod_COLD RebootMethod = 1 // Shutdown and restart OS and all hardware. - RebootMethod_POWERDOWN RebootMethod = 2 // Halt and power down, if possible. - RebootMethod_HALT RebootMethod = 3 // Halt, if possible. - RebootMethod_WARM RebootMethod = 4 // Reload configuration but not underlying hardware. - RebootMethod_NSF RebootMethod = 5 // Non-stop-forwarding reboot, if possible. - RebootMethod_POWERUP RebootMethod = 7 // Apply power, no-op if power is already on. + RebootMethod_UNKNOWN RebootMethod = 0 + RebootMethod_COLD RebootMethod = 1 + RebootMethod_POWERDOWN RebootMethod = 2 + RebootMethod_HALT RebootMethod = 3 + RebootMethod_WARM RebootMethod = 4 + RebootMethod_NSF RebootMethod = 5 + RebootMethod_RESET RebootMethod = 6 + RebootMethod_POWERUP RebootMethod = 7 ) -// Enum value maps for RebootMethod. -var ( - RebootMethod_name = map[int32]string{ - 0: "UNKNOWN", - 1: "COLD", - 2: "POWERDOWN", - 3: "HALT", - 4: "WARM", - 5: "NSF", - 7: "POWERUP", - } - RebootMethod_value = map[string]int32{ - "UNKNOWN": 0, - "COLD": 1, - "POWERDOWN": 2, - "HALT": 3, - "WARM": 4, - "NSF": 5, - "POWERUP": 7, - } -) - -func (x RebootMethod) Enum() *RebootMethod { - p := new(RebootMethod) - *p = x - return p +var RebootMethod_name = map[int32]string{ + 0: "UNKNOWN", + 1: "COLD", + 2: "POWERDOWN", + 3: "HALT", + 4: "WARM", + 5: "NSF", + 6: "RESET", + 7: "POWERUP", } -func (x RebootMethod) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +var RebootMethod_value = map[string]int32{ + "UNKNOWN": 0, + "COLD": 1, + "POWERDOWN": 2, + "HALT": 3, + "WARM": 4, + "NSF": 5, + "RESET": 6, + "POWERUP": 7, } -func (RebootMethod) Descriptor() protoreflect.EnumDescriptor { - return file_system_system_proto_enumTypes[0].Descriptor() -} - -func (RebootMethod) Type() protoreflect.EnumType { - return &file_system_system_proto_enumTypes[0] -} - -func (x RebootMethod) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) +func (x RebootMethod) String() string { + return proto.EnumName(RebootMethod_name, int32(x)) } -// Deprecated: Use RebootMethod.Descriptor instead. func (RebootMethod) EnumDescriptor() ([]byte, []int) { - return file_system_system_proto_rawDescGZIP(), []int{0} + return fileDescriptor_746080b643370b3b, []int{0} } type TracerouteRequest_L4Protocol int32 const ( - TracerouteRequest_ICMP TracerouteRequest_L4Protocol = 0 // Use ICMP ECHO for probes. - TracerouteRequest_TCP TracerouteRequest_L4Protocol = 1 // Use TCP SYN for probes. - TracerouteRequest_UDP TracerouteRequest_L4Protocol = 2 // Use UDP for probes. -) - -// Enum value maps for TracerouteRequest_L4Protocol. -var ( - TracerouteRequest_L4Protocol_name = map[int32]string{ - 0: "ICMP", - 1: "TCP", - 2: "UDP", - } - TracerouteRequest_L4Protocol_value = map[string]int32{ - "ICMP": 0, - "TCP": 1, - "UDP": 2, - } + TracerouteRequest_ICMP TracerouteRequest_L4Protocol = 0 + TracerouteRequest_TCP TracerouteRequest_L4Protocol = 1 + TracerouteRequest_UDP TracerouteRequest_L4Protocol = 2 ) -func (x TracerouteRequest_L4Protocol) Enum() *TracerouteRequest_L4Protocol { - p := new(TracerouteRequest_L4Protocol) - *p = x - return p -} - -func (x TracerouteRequest_L4Protocol) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +var TracerouteRequest_L4Protocol_name = map[int32]string{ + 0: "ICMP", + 1: "TCP", + 2: "UDP", } -func (TracerouteRequest_L4Protocol) Descriptor() protoreflect.EnumDescriptor { - return file_system_system_proto_enumTypes[1].Descriptor() +var TracerouteRequest_L4Protocol_value = map[string]int32{ + "ICMP": 0, + "TCP": 1, + "UDP": 2, } -func (TracerouteRequest_L4Protocol) Type() protoreflect.EnumType { - return &file_system_system_proto_enumTypes[1] -} - -func (x TracerouteRequest_L4Protocol) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) +func (x TracerouteRequest_L4Protocol) String() string { + return proto.EnumName(TracerouteRequest_L4Protocol_name, int32(x)) } -// Deprecated: Use TracerouteRequest_L4Protocol.Descriptor instead. func (TracerouteRequest_L4Protocol) EnumDescriptor() ([]byte, []int) { - return file_system_system_proto_rawDescGZIP(), []int{12, 0} + return fileDescriptor_746080b643370b3b, []int{12, 0} } // State is the resulting state of a single traceoroute packet. type TracerouteResponse_State int32 const ( - TracerouteResponse_DEFAULT TracerouteResponse_State = 0 // Normal hop response. - TracerouteResponse_NONE TracerouteResponse_State = 1 // No response. - TracerouteResponse_UNKNOWN TracerouteResponse_State = 2 // Unknown response state. - TracerouteResponse_ICMP TracerouteResponse_State = 3 // See icmp_code field. - TracerouteResponse_HOST_UNREACHABLE TracerouteResponse_State = 4 // Host unreachable. - TracerouteResponse_NETWORK_UNREACHABLE TracerouteResponse_State = 5 // Network unreachable. - TracerouteResponse_PROTOCOL_UNREACHABLE TracerouteResponse_State = 6 // Protocol unreachable. - TracerouteResponse_SOURCE_ROUTE_FAILED TracerouteResponse_State = 7 // Source route failed. - TracerouteResponse_FRAGMENTATION_NEEDED TracerouteResponse_State = 8 // Fragmentation needed. - TracerouteResponse_PROHIBITED TracerouteResponse_State = 9 // Communication administratively prohibited. - TracerouteResponse_PRECEDENCE_VIOLATION TracerouteResponse_State = 10 // Host precedence violation. - TracerouteResponse_PRECEDENCE_CUTOFF TracerouteResponse_State = 11 // Precedence cutoff in effect. + TracerouteResponse_DEFAULT TracerouteResponse_State = 0 + TracerouteResponse_NONE TracerouteResponse_State = 1 + TracerouteResponse_UNKNOWN TracerouteResponse_State = 2 + TracerouteResponse_ICMP TracerouteResponse_State = 3 + TracerouteResponse_HOST_UNREACHABLE TracerouteResponse_State = 4 + TracerouteResponse_NETWORK_UNREACHABLE TracerouteResponse_State = 5 + TracerouteResponse_PROTOCOL_UNREACHABLE TracerouteResponse_State = 6 + TracerouteResponse_SOURCE_ROUTE_FAILED TracerouteResponse_State = 7 + TracerouteResponse_FRAGMENTATION_NEEDED TracerouteResponse_State = 8 + TracerouteResponse_PROHIBITED TracerouteResponse_State = 9 + TracerouteResponse_PRECEDENCE_VIOLATION TracerouteResponse_State = 10 + TracerouteResponse_PRECEDENCE_CUTOFF TracerouteResponse_State = 11 ) -// Enum value maps for TracerouteResponse_State. -var ( - TracerouteResponse_State_name = map[int32]string{ - 0: "DEFAULT", - 1: "NONE", - 2: "UNKNOWN", - 3: "ICMP", - 4: "HOST_UNREACHABLE", - 5: "NETWORK_UNREACHABLE", - 6: "PROTOCOL_UNREACHABLE", - 7: "SOURCE_ROUTE_FAILED", - 8: "FRAGMENTATION_NEEDED", - 9: "PROHIBITED", - 10: "PRECEDENCE_VIOLATION", - 11: "PRECEDENCE_CUTOFF", - } - TracerouteResponse_State_value = map[string]int32{ - "DEFAULT": 0, - "NONE": 1, - "UNKNOWN": 2, - "ICMP": 3, - "HOST_UNREACHABLE": 4, - "NETWORK_UNREACHABLE": 5, - "PROTOCOL_UNREACHABLE": 6, - "SOURCE_ROUTE_FAILED": 7, - "FRAGMENTATION_NEEDED": 8, - "PROHIBITED": 9, - "PRECEDENCE_VIOLATION": 10, - "PRECEDENCE_CUTOFF": 11, - } -) - -func (x TracerouteResponse_State) Enum() *TracerouteResponse_State { - p := new(TracerouteResponse_State) - *p = x - return p +var TracerouteResponse_State_name = map[int32]string{ + 0: "DEFAULT", + 1: "NONE", + 2: "UNKNOWN", + 3: "ICMP", + 4: "HOST_UNREACHABLE", + 5: "NETWORK_UNREACHABLE", + 6: "PROTOCOL_UNREACHABLE", + 7: "SOURCE_ROUTE_FAILED", + 8: "FRAGMENTATION_NEEDED", + 9: "PROHIBITED", + 10: "PRECEDENCE_VIOLATION", + 11: "PRECEDENCE_CUTOFF", +} + +var TracerouteResponse_State_value = map[string]int32{ + "DEFAULT": 0, + "NONE": 1, + "UNKNOWN": 2, + "ICMP": 3, + "HOST_UNREACHABLE": 4, + "NETWORK_UNREACHABLE": 5, + "PROTOCOL_UNREACHABLE": 6, + "SOURCE_ROUTE_FAILED": 7, + "FRAGMENTATION_NEEDED": 8, + "PROHIBITED": 9, + "PRECEDENCE_VIOLATION": 10, + "PRECEDENCE_CUTOFF": 11, } func (x TracerouteResponse_State) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) + return proto.EnumName(TracerouteResponse_State_name, int32(x)) } -func (TracerouteResponse_State) Descriptor() protoreflect.EnumDescriptor { - return file_system_system_proto_enumTypes[2].Descriptor() +func (TracerouteResponse_State) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_746080b643370b3b, []int{13, 0} } -func (TracerouteResponse_State) Type() protoreflect.EnumType { - return &file_system_system_proto_enumTypes[2] +type SwitchControlProcessorRequest struct { + ControlProcessor *types.Path `protobuf:"bytes,1,opt,name=control_processor,json=controlProcessor,proto3" json:"control_processor,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x TracerouteResponse_State) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) +func (m *SwitchControlProcessorRequest) Reset() { *m = SwitchControlProcessorRequest{} } +func (m *SwitchControlProcessorRequest) String() string { return proto.CompactTextString(m) } +func (*SwitchControlProcessorRequest) ProtoMessage() {} +func (*SwitchControlProcessorRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_746080b643370b3b, []int{0} } -// Deprecated: Use TracerouteResponse_State.Descriptor instead. -func (TracerouteResponse_State) EnumDescriptor() ([]byte, []int) { - return file_system_system_proto_rawDescGZIP(), []int{13, 0} +func (m *SwitchControlProcessorRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SwitchControlProcessorRequest.Unmarshal(m, b) } - -type SwitchControlProcessorRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ControlProcessor *types.Path `protobuf:"bytes,1,opt,name=control_processor,json=controlProcessor,proto3" json:"control_processor,omitempty"` +func (m *SwitchControlProcessorRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SwitchControlProcessorRequest.Marshal(b, m, deterministic) } - -func (x *SwitchControlProcessorRequest) Reset() { - *x = SwitchControlProcessorRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_system_system_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *SwitchControlProcessorRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_SwitchControlProcessorRequest.Merge(m, src) } - -func (x *SwitchControlProcessorRequest) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *SwitchControlProcessorRequest) XXX_Size() int { + return xxx_messageInfo_SwitchControlProcessorRequest.Size(m) } - -func (*SwitchControlProcessorRequest) ProtoMessage() {} - -func (x *SwitchControlProcessorRequest) ProtoReflect() protoreflect.Message { - mi := &file_system_system_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *SwitchControlProcessorRequest) XXX_DiscardUnknown() { + xxx_messageInfo_SwitchControlProcessorRequest.DiscardUnknown(m) } -// Deprecated: Use SwitchControlProcessorRequest.ProtoReflect.Descriptor instead. -func (*SwitchControlProcessorRequest) Descriptor() ([]byte, []int) { - return file_system_system_proto_rawDescGZIP(), []int{0} -} +var xxx_messageInfo_SwitchControlProcessorRequest proto.InternalMessageInfo -func (x *SwitchControlProcessorRequest) GetControlProcessor() *types.Path { - if x != nil { - return x.ControlProcessor +func (m *SwitchControlProcessorRequest) GetControlProcessor() *types.Path { + if m != nil { + return m.ControlProcessor } return nil } type SwitchControlProcessorResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ControlProcessor *types.Path `protobuf:"bytes,1,opt,name=control_processor,json=controlProcessor,proto3" json:"control_processor,omitempty"` - Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` // Current software version. - Uptime int64 `protobuf:"varint,3,opt,name=uptime,proto3" json:"uptime,omitempty"` // Uptime in nanoseconds since epoch. + ControlProcessor *types.Path `protobuf:"bytes,1,opt,name=control_processor,json=controlProcessor,proto3" json:"control_processor,omitempty"` + Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` + Uptime int64 `protobuf:"varint,3,opt,name=uptime,proto3" json:"uptime,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *SwitchControlProcessorResponse) Reset() { - *x = SwitchControlProcessorResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_system_system_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *SwitchControlProcessorResponse) Reset() { *m = SwitchControlProcessorResponse{} } +func (m *SwitchControlProcessorResponse) String() string { return proto.CompactTextString(m) } +func (*SwitchControlProcessorResponse) ProtoMessage() {} +func (*SwitchControlProcessorResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_746080b643370b3b, []int{1} } -func (x *SwitchControlProcessorResponse) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *SwitchControlProcessorResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SwitchControlProcessorResponse.Unmarshal(m, b) } - -func (*SwitchControlProcessorResponse) ProtoMessage() {} - -func (x *SwitchControlProcessorResponse) ProtoReflect() protoreflect.Message { - mi := &file_system_system_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *SwitchControlProcessorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SwitchControlProcessorResponse.Marshal(b, m, deterministic) } - -// Deprecated: Use SwitchControlProcessorResponse.ProtoReflect.Descriptor instead. -func (*SwitchControlProcessorResponse) Descriptor() ([]byte, []int) { - return file_system_system_proto_rawDescGZIP(), []int{1} +func (m *SwitchControlProcessorResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_SwitchControlProcessorResponse.Merge(m, src) +} +func (m *SwitchControlProcessorResponse) XXX_Size() int { + return xxx_messageInfo_SwitchControlProcessorResponse.Size(m) +} +func (m *SwitchControlProcessorResponse) XXX_DiscardUnknown() { + xxx_messageInfo_SwitchControlProcessorResponse.DiscardUnknown(m) } -func (x *SwitchControlProcessorResponse) GetControlProcessor() *types.Path { - if x != nil { - return x.ControlProcessor +var xxx_messageInfo_SwitchControlProcessorResponse proto.InternalMessageInfo + +func (m *SwitchControlProcessorResponse) GetControlProcessor() *types.Path { + if m != nil { + return m.ControlProcessor } return nil } -func (x *SwitchControlProcessorResponse) GetVersion() string { - if x != nil { - return x.Version +func (m *SwitchControlProcessorResponse) GetVersion() string { + if m != nil { + return m.Version } return "" } -func (x *SwitchControlProcessorResponse) GetUptime() int64 { - if x != nil { - return x.Uptime +func (m *SwitchControlProcessorResponse) GetUptime() int64 { + if m != nil { + return m.Uptime } return 0 } @@ -350,10 +254,6 @@ func (x *SwitchControlProcessorResponse) GetUptime() int64 { // method aftar the specified delay. Only the DEFAULT method with a delay of 0 // is guaranteed to be accepted for all target types. type RebootRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - Method RebootMethod `protobuf:"varint,1,opt,name=method,proto3,enum=gnoi.system.RebootMethod" json:"method,omitempty"` // Delay in nanoseconds before issuing reboot. Delay uint64 `protobuf:"varint,2,opt,name=delay,proto3" json:"delay,omitempty"` @@ -362,417 +262,360 @@ type RebootRequest struct { // Optional sub-components to reboot. Subcomponents []*types.Path `protobuf:"bytes,4,rep,name=subcomponents,proto3" json:"subcomponents,omitempty"` // Force reboot if sanity checks fail. (ex. uncommited configuration) - Force bool `protobuf:"varint,5,opt,name=force,proto3" json:"force,omitempty"` + Force bool `protobuf:"varint,5,opt,name=force,proto3" json:"force,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *RebootRequest) Reset() { - *x = RebootRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_system_system_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *RebootRequest) Reset() { *m = RebootRequest{} } +func (m *RebootRequest) String() string { return proto.CompactTextString(m) } +func (*RebootRequest) ProtoMessage() {} +func (*RebootRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_746080b643370b3b, []int{2} } -func (x *RebootRequest) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *RebootRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RebootRequest.Unmarshal(m, b) } - -func (*RebootRequest) ProtoMessage() {} - -func (x *RebootRequest) ProtoReflect() protoreflect.Message { - mi := &file_system_system_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *RebootRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RebootRequest.Marshal(b, m, deterministic) } - -// Deprecated: Use RebootRequest.ProtoReflect.Descriptor instead. -func (*RebootRequest) Descriptor() ([]byte, []int) { - return file_system_system_proto_rawDescGZIP(), []int{2} +func (m *RebootRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RebootRequest.Merge(m, src) +} +func (m *RebootRequest) XXX_Size() int { + return xxx_messageInfo_RebootRequest.Size(m) +} +func (m *RebootRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RebootRequest.DiscardUnknown(m) } -func (x *RebootRequest) GetMethod() RebootMethod { - if x != nil { - return x.Method +var xxx_messageInfo_RebootRequest proto.InternalMessageInfo + +func (m *RebootRequest) GetMethod() RebootMethod { + if m != nil { + return m.Method } return RebootMethod_UNKNOWN } -func (x *RebootRequest) GetDelay() uint64 { - if x != nil { - return x.Delay +func (m *RebootRequest) GetDelay() uint64 { + if m != nil { + return m.Delay } return 0 } -func (x *RebootRequest) GetMessage() string { - if x != nil { - return x.Message +func (m *RebootRequest) GetMessage() string { + if m != nil { + return m.Message } return "" } -func (x *RebootRequest) GetSubcomponents() []*types.Path { - if x != nil { - return x.Subcomponents +func (m *RebootRequest) GetSubcomponents() []*types.Path { + if m != nil { + return m.Subcomponents } return nil } -func (x *RebootRequest) GetForce() bool { - if x != nil { - return x.Force +func (m *RebootRequest) GetForce() bool { + if m != nil { + return m.Force } return false } type RebootResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *RebootResponse) Reset() { - *x = RebootResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_system_system_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *RebootResponse) Reset() { *m = RebootResponse{} } +func (m *RebootResponse) String() string { return proto.CompactTextString(m) } +func (*RebootResponse) ProtoMessage() {} +func (*RebootResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_746080b643370b3b, []int{3} } -func (x *RebootResponse) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *RebootResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RebootResponse.Unmarshal(m, b) } - -func (*RebootResponse) ProtoMessage() {} - -func (x *RebootResponse) ProtoReflect() protoreflect.Message { - mi := &file_system_system_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *RebootResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RebootResponse.Marshal(b, m, deterministic) } - -// Deprecated: Use RebootResponse.ProtoReflect.Descriptor instead. -func (*RebootResponse) Descriptor() ([]byte, []int) { - return file_system_system_proto_rawDescGZIP(), []int{3} +func (m *RebootResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RebootResponse.Merge(m, src) +} +func (m *RebootResponse) XXX_Size() int { + return xxx_messageInfo_RebootResponse.Size(m) +} +func (m *RebootResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RebootResponse.DiscardUnknown(m) } +var xxx_messageInfo_RebootResponse proto.InternalMessageInfo + // A CancelRebootRequest requests the cancelation of any outstanding reboot // request. type CancelRebootRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` // informational reason for the cancel - Subcomponents []*types.Path `protobuf:"bytes,2,rep,name=subcomponents,proto3" json:"subcomponents,omitempty"` // optional sub-components. + Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` + Subcomponents []*types.Path `protobuf:"bytes,2,rep,name=subcomponents,proto3" json:"subcomponents,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *CancelRebootRequest) Reset() { - *x = CancelRebootRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_system_system_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *CancelRebootRequest) Reset() { *m = CancelRebootRequest{} } +func (m *CancelRebootRequest) String() string { return proto.CompactTextString(m) } +func (*CancelRebootRequest) ProtoMessage() {} +func (*CancelRebootRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_746080b643370b3b, []int{4} } -func (x *CancelRebootRequest) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *CancelRebootRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CancelRebootRequest.Unmarshal(m, b) } - -func (*CancelRebootRequest) ProtoMessage() {} - -func (x *CancelRebootRequest) ProtoReflect() protoreflect.Message { - mi := &file_system_system_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *CancelRebootRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CancelRebootRequest.Marshal(b, m, deterministic) } - -// Deprecated: Use CancelRebootRequest.ProtoReflect.Descriptor instead. -func (*CancelRebootRequest) Descriptor() ([]byte, []int) { - return file_system_system_proto_rawDescGZIP(), []int{4} +func (m *CancelRebootRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_CancelRebootRequest.Merge(m, src) +} +func (m *CancelRebootRequest) XXX_Size() int { + return xxx_messageInfo_CancelRebootRequest.Size(m) } +func (m *CancelRebootRequest) XXX_DiscardUnknown() { + xxx_messageInfo_CancelRebootRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_CancelRebootRequest proto.InternalMessageInfo -func (x *CancelRebootRequest) GetMessage() string { - if x != nil { - return x.Message +func (m *CancelRebootRequest) GetMessage() string { + if m != nil { + return m.Message } return "" } -func (x *CancelRebootRequest) GetSubcomponents() []*types.Path { - if x != nil { - return x.Subcomponents +func (m *CancelRebootRequest) GetSubcomponents() []*types.Path { + if m != nil { + return m.Subcomponents } return nil } type CancelRebootResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *CancelRebootResponse) Reset() { - *x = CancelRebootResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_system_system_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *CancelRebootResponse) Reset() { *m = CancelRebootResponse{} } +func (m *CancelRebootResponse) String() string { return proto.CompactTextString(m) } +func (*CancelRebootResponse) ProtoMessage() {} +func (*CancelRebootResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_746080b643370b3b, []int{5} } -func (x *CancelRebootResponse) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *CancelRebootResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CancelRebootResponse.Unmarshal(m, b) } - -func (*CancelRebootResponse) ProtoMessage() {} - -func (x *CancelRebootResponse) ProtoReflect() protoreflect.Message { - mi := &file_system_system_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *CancelRebootResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CancelRebootResponse.Marshal(b, m, deterministic) } - -// Deprecated: Use CancelRebootResponse.ProtoReflect.Descriptor instead. -func (*CancelRebootResponse) Descriptor() ([]byte, []int) { - return file_system_system_proto_rawDescGZIP(), []int{5} +func (m *CancelRebootResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_CancelRebootResponse.Merge(m, src) +} +func (m *CancelRebootResponse) XXX_Size() int { + return xxx_messageInfo_CancelRebootResponse.Size(m) +} +func (m *CancelRebootResponse) XXX_DiscardUnknown() { + xxx_messageInfo_CancelRebootResponse.DiscardUnknown(m) } -type RebootStatusRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields +var xxx_messageInfo_CancelRebootResponse proto.InternalMessageInfo - Subcomponents []*types.Path `protobuf:"bytes,1,rep,name=subcomponents,proto3" json:"subcomponents,omitempty"` // optional sub-component. +type RebootStatusRequest struct { + Subcomponents []*types.Path `protobuf:"bytes,1,rep,name=subcomponents,proto3" json:"subcomponents,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *RebootStatusRequest) Reset() { - *x = RebootStatusRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_system_system_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *RebootStatusRequest) Reset() { *m = RebootStatusRequest{} } +func (m *RebootStatusRequest) String() string { return proto.CompactTextString(m) } +func (*RebootStatusRequest) ProtoMessage() {} +func (*RebootStatusRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_746080b643370b3b, []int{6} } -func (x *RebootStatusRequest) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *RebootStatusRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RebootStatusRequest.Unmarshal(m, b) } - -func (*RebootStatusRequest) ProtoMessage() {} - -func (x *RebootStatusRequest) ProtoReflect() protoreflect.Message { - mi := &file_system_system_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *RebootStatusRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RebootStatusRequest.Marshal(b, m, deterministic) } - -// Deprecated: Use RebootStatusRequest.ProtoReflect.Descriptor instead. -func (*RebootStatusRequest) Descriptor() ([]byte, []int) { - return file_system_system_proto_rawDescGZIP(), []int{6} +func (m *RebootStatusRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RebootStatusRequest.Merge(m, src) +} +func (m *RebootStatusRequest) XXX_Size() int { + return xxx_messageInfo_RebootStatusRequest.Size(m) +} +func (m *RebootStatusRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RebootStatusRequest.DiscardUnknown(m) } -func (x *RebootStatusRequest) GetSubcomponents() []*types.Path { - if x != nil { - return x.Subcomponents +var xxx_messageInfo_RebootStatusRequest proto.InternalMessageInfo + +func (m *RebootStatusRequest) GetSubcomponents() []*types.Path { + if m != nil { + return m.Subcomponents } return nil } type RebootStatusResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Active bool `protobuf:"varint,1,opt,name=active,proto3" json:"active,omitempty"` // If reboot is active. - Wait uint64 `protobuf:"varint,2,opt,name=wait,proto3" json:"wait,omitempty"` // Time left until reboot. - When uint64 `protobuf:"varint,3,opt,name=when,proto3" json:"when,omitempty"` // Time to reboot in nanoseconds since the epoch. - Reason string `protobuf:"bytes,4,opt,name=reason,proto3" json:"reason,omitempty"` // Reason for reboot. - Count uint32 `protobuf:"varint,5,opt,name=count,proto3" json:"count,omitempty"` // Number of reboots since active. + Active bool `protobuf:"varint,1,opt,name=active,proto3" json:"active,omitempty"` + Wait uint64 `protobuf:"varint,2,opt,name=wait,proto3" json:"wait,omitempty"` + When uint64 `protobuf:"varint,3,opt,name=when,proto3" json:"when,omitempty"` + Reason string `protobuf:"bytes,4,opt,name=reason,proto3" json:"reason,omitempty"` + Count uint32 `protobuf:"varint,5,opt,name=count,proto3" json:"count,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RebootStatusResponse) Reset() { *m = RebootStatusResponse{} } +func (m *RebootStatusResponse) String() string { return proto.CompactTextString(m) } +func (*RebootStatusResponse) ProtoMessage() {} +func (*RebootStatusResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_746080b643370b3b, []int{7} } -func (x *RebootStatusResponse) Reset() { - *x = RebootStatusResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_system_system_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *RebootStatusResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RebootStatusResponse.Unmarshal(m, b) } - -func (x *RebootStatusResponse) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *RebootStatusResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RebootStatusResponse.Marshal(b, m, deterministic) } - -func (*RebootStatusResponse) ProtoMessage() {} - -func (x *RebootStatusResponse) ProtoReflect() protoreflect.Message { - mi := &file_system_system_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *RebootStatusResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RebootStatusResponse.Merge(m, src) } - -// Deprecated: Use RebootStatusResponse.ProtoReflect.Descriptor instead. -func (*RebootStatusResponse) Descriptor() ([]byte, []int) { - return file_system_system_proto_rawDescGZIP(), []int{7} +func (m *RebootStatusResponse) XXX_Size() int { + return xxx_messageInfo_RebootStatusResponse.Size(m) } +func (m *RebootStatusResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RebootStatusResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RebootStatusResponse proto.InternalMessageInfo -func (x *RebootStatusResponse) GetActive() bool { - if x != nil { - return x.Active +func (m *RebootStatusResponse) GetActive() bool { + if m != nil { + return m.Active } return false } -func (x *RebootStatusResponse) GetWait() uint64 { - if x != nil { - return x.Wait +func (m *RebootStatusResponse) GetWait() uint64 { + if m != nil { + return m.Wait } return 0 } -func (x *RebootStatusResponse) GetWhen() uint64 { - if x != nil { - return x.When +func (m *RebootStatusResponse) GetWhen() uint64 { + if m != nil { + return m.When } return 0 } -func (x *RebootStatusResponse) GetReason() string { - if x != nil { - return x.Reason +func (m *RebootStatusResponse) GetReason() string { + if m != nil { + return m.Reason } return "" } -func (x *RebootStatusResponse) GetCount() uint32 { - if x != nil { - return x.Count +func (m *RebootStatusResponse) GetCount() uint32 { + if m != nil { + return m.Count } return 0 } // A TimeRequest requests the current time accodring to the target. type TimeRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *TimeRequest) Reset() { - *x = TimeRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_system_system_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *TimeRequest) Reset() { *m = TimeRequest{} } +func (m *TimeRequest) String() string { return proto.CompactTextString(m) } +func (*TimeRequest) ProtoMessage() {} +func (*TimeRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_746080b643370b3b, []int{8} } -func (x *TimeRequest) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *TimeRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TimeRequest.Unmarshal(m, b) } - -func (*TimeRequest) ProtoMessage() {} - -func (x *TimeRequest) ProtoReflect() protoreflect.Message { - mi := &file_system_system_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *TimeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TimeRequest.Marshal(b, m, deterministic) } - -// Deprecated: Use TimeRequest.ProtoReflect.Descriptor instead. -func (*TimeRequest) Descriptor() ([]byte, []int) { - return file_system_system_proto_rawDescGZIP(), []int{8} +func (m *TimeRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_TimeRequest.Merge(m, src) +} +func (m *TimeRequest) XXX_Size() int { + return xxx_messageInfo_TimeRequest.Size(m) +} +func (m *TimeRequest) XXX_DiscardUnknown() { + xxx_messageInfo_TimeRequest.DiscardUnknown(m) } -type TimeResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields +var xxx_messageInfo_TimeRequest proto.InternalMessageInfo - Time uint64 `protobuf:"varint,1,opt,name=time,proto3" json:"time,omitempty"` // Current time in nanoseconds since epoch. +type TimeResponse struct { + Time uint64 `protobuf:"varint,1,opt,name=time,proto3" json:"time,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *TimeResponse) Reset() { - *x = TimeResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_system_system_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *TimeResponse) Reset() { *m = TimeResponse{} } +func (m *TimeResponse) String() string { return proto.CompactTextString(m) } +func (*TimeResponse) ProtoMessage() {} +func (*TimeResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_746080b643370b3b, []int{9} } -func (x *TimeResponse) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *TimeResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TimeResponse.Unmarshal(m, b) } - -func (*TimeResponse) ProtoMessage() {} - -func (x *TimeResponse) ProtoReflect() protoreflect.Message { - mi := &file_system_system_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *TimeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TimeResponse.Marshal(b, m, deterministic) } - -// Deprecated: Use TimeResponse.ProtoReflect.Descriptor instead. -func (*TimeResponse) Descriptor() ([]byte, []int) { - return file_system_system_proto_rawDescGZIP(), []int{9} +func (m *TimeResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_TimeResponse.Merge(m, src) +} +func (m *TimeResponse) XXX_Size() int { + return xxx_messageInfo_TimeResponse.Size(m) +} +func (m *TimeResponse) XXX_DiscardUnknown() { + xxx_messageInfo_TimeResponse.DiscardUnknown(m) } -func (x *TimeResponse) GetTime() uint64 { - if x != nil { - return x.Time +var xxx_messageInfo_TimeResponse proto.InternalMessageInfo + +func (m *TimeResponse) GetTime() uint64 { + if m != nil { + return m.Time } return 0 } @@ -788,112 +631,104 @@ func (x *TimeResponse) GetTime() uint64 { // // If the size is 0, the vendor default size will be used (typically 56 bytes). type PingRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Destination string `protobuf:"bytes,1,opt,name=destination,proto3" json:"destination,omitempty"` // Destination address to ping. required. - Source string `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"` // Source address to ping from. - Count int32 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"` // Number of packets. - Interval int64 `protobuf:"varint,4,opt,name=interval,proto3" json:"interval,omitempty"` // Nanoseconds between requests. - Wait int64 `protobuf:"varint,5,opt,name=wait,proto3" json:"wait,omitempty"` // Nanoseconds to wait for a response. - Size int32 `protobuf:"varint,6,opt,name=size,proto3" json:"size,omitempty"` // Size of request packet. (excluding ICMP header) - DoNotFragment bool `protobuf:"varint,7,opt,name=do_not_fragment,json=doNotFragment,proto3" json:"do_not_fragment,omitempty"` // Set the do not fragment bit. (IPv4 destinations) - DoNotResolve bool `protobuf:"varint,8,opt,name=do_not_resolve,json=doNotResolve,proto3" json:"do_not_resolve,omitempty"` // Do not try resolve the address returned. - L3Protocol types.L3Protocol `protobuf:"varint,9,opt,name=l3protocol,proto3,enum=gnoi.types.L3Protocol" json:"l3protocol,omitempty"` // Layer3 protocol requested for the ping. + Destination string `protobuf:"bytes,1,opt,name=destination,proto3" json:"destination,omitempty"` + Source string `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"` + Count int32 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"` + Interval int64 `protobuf:"varint,4,opt,name=interval,proto3" json:"interval,omitempty"` + Wait int64 `protobuf:"varint,5,opt,name=wait,proto3" json:"wait,omitempty"` + Size int32 `protobuf:"varint,6,opt,name=size,proto3" json:"size,omitempty"` + DoNotFragment bool `protobuf:"varint,7,opt,name=do_not_fragment,json=doNotFragment,proto3" json:"do_not_fragment,omitempty"` + DoNotResolve bool `protobuf:"varint,8,opt,name=do_not_resolve,json=doNotResolve,proto3" json:"do_not_resolve,omitempty"` + L3Protocol types.L3Protocol `protobuf:"varint,9,opt,name=l3protocol,proto3,enum=gnoi.types.L3Protocol" json:"l3protocol,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *PingRequest) Reset() { *m = PingRequest{} } +func (m *PingRequest) String() string { return proto.CompactTextString(m) } +func (*PingRequest) ProtoMessage() {} +func (*PingRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_746080b643370b3b, []int{10} } -func (x *PingRequest) Reset() { - *x = PingRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_system_system_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *PingRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PingRequest.Unmarshal(m, b) } - -func (x *PingRequest) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *PingRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PingRequest.Marshal(b, m, deterministic) } - -func (*PingRequest) ProtoMessage() {} - -func (x *PingRequest) ProtoReflect() protoreflect.Message { - mi := &file_system_system_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *PingRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_PingRequest.Merge(m, src) } - -// Deprecated: Use PingRequest.ProtoReflect.Descriptor instead. -func (*PingRequest) Descriptor() ([]byte, []int) { - return file_system_system_proto_rawDescGZIP(), []int{10} +func (m *PingRequest) XXX_Size() int { + return xxx_messageInfo_PingRequest.Size(m) +} +func (m *PingRequest) XXX_DiscardUnknown() { + xxx_messageInfo_PingRequest.DiscardUnknown(m) } -func (x *PingRequest) GetDestination() string { - if x != nil { - return x.Destination +var xxx_messageInfo_PingRequest proto.InternalMessageInfo + +func (m *PingRequest) GetDestination() string { + if m != nil { + return m.Destination } return "" } -func (x *PingRequest) GetSource() string { - if x != nil { - return x.Source +func (m *PingRequest) GetSource() string { + if m != nil { + return m.Source } return "" } -func (x *PingRequest) GetCount() int32 { - if x != nil { - return x.Count +func (m *PingRequest) GetCount() int32 { + if m != nil { + return m.Count } return 0 } -func (x *PingRequest) GetInterval() int64 { - if x != nil { - return x.Interval +func (m *PingRequest) GetInterval() int64 { + if m != nil { + return m.Interval } return 0 } -func (x *PingRequest) GetWait() int64 { - if x != nil { - return x.Wait +func (m *PingRequest) GetWait() int64 { + if m != nil { + return m.Wait } return 0 } -func (x *PingRequest) GetSize() int32 { - if x != nil { - return x.Size +func (m *PingRequest) GetSize() int32 { + if m != nil { + return m.Size } return 0 } -func (x *PingRequest) GetDoNotFragment() bool { - if x != nil { - return x.DoNotFragment +func (m *PingRequest) GetDoNotFragment() bool { + if m != nil { + return m.DoNotFragment } return false } -func (x *PingRequest) GetDoNotResolve() bool { - if x != nil { - return x.DoNotResolve +func (m *PingRequest) GetDoNotResolve() bool { + if m != nil { + return m.DoNotResolve } return false } -func (x *PingRequest) GetL3Protocol() types.L3Protocol { - if x != nil { - return x.L3Protocol +func (m *PingRequest) GetL3Protocol() types.L3Protocol { + if m != nil { + return m.L3Protocol } return types.L3Protocol_UNSPECIFIED } @@ -906,128 +741,120 @@ func (x *PingRequest) GetL3Protocol() types.L3Protocol { // not always present in summary statistics. The std_dev is not always present // in summary statistics. type PingResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Source string `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"` // Source of received bytes. - Time int64 `protobuf:"varint,2,opt,name=time,proto3" json:"time,omitempty"` - Sent int32 `protobuf:"varint,3,opt,name=sent,proto3" json:"sent,omitempty"` // Total packets sent. - Received int32 `protobuf:"varint,4,opt,name=received,proto3" json:"received,omitempty"` // Total packets received. - MinTime int64 `protobuf:"varint,5,opt,name=min_time,json=minTime,proto3" json:"min_time,omitempty"` // Minimum round trip time in nanoseconds. - AvgTime int64 `protobuf:"varint,6,opt,name=avg_time,json=avgTime,proto3" json:"avg_time,omitempty"` // Average round trip time in nanoseconds. - MaxTime int64 `protobuf:"varint,7,opt,name=max_time,json=maxTime,proto3" json:"max_time,omitempty"` // Maximum round trip time in nanoseconds. - StdDev int64 `protobuf:"varint,8,opt,name=std_dev,json=stdDev,proto3" json:"std_dev,omitempty"` // Standard deviation in round trip time. - Bytes int32 `protobuf:"varint,11,opt,name=bytes,proto3" json:"bytes,omitempty"` // Bytes received. - Sequence int32 `protobuf:"varint,12,opt,name=sequence,proto3" json:"sequence,omitempty"` // Sequence number of received packet. - Ttl int32 `protobuf:"varint,13,opt,name=ttl,proto3" json:"ttl,omitempty"` // Remaining time to live value. + Source string `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"` + Time int64 `protobuf:"varint,2,opt,name=time,proto3" json:"time,omitempty"` + Sent int32 `protobuf:"varint,3,opt,name=sent,proto3" json:"sent,omitempty"` + Received int32 `protobuf:"varint,4,opt,name=received,proto3" json:"received,omitempty"` + MinTime int64 `protobuf:"varint,5,opt,name=min_time,json=minTime,proto3" json:"min_time,omitempty"` + AvgTime int64 `protobuf:"varint,6,opt,name=avg_time,json=avgTime,proto3" json:"avg_time,omitempty"` + MaxTime int64 `protobuf:"varint,7,opt,name=max_time,json=maxTime,proto3" json:"max_time,omitempty"` + StdDev int64 `protobuf:"varint,8,opt,name=std_dev,json=stdDev,proto3" json:"std_dev,omitempty"` + Bytes int32 `protobuf:"varint,11,opt,name=bytes,proto3" json:"bytes,omitempty"` + Sequence int32 `protobuf:"varint,12,opt,name=sequence,proto3" json:"sequence,omitempty"` + Ttl int32 `protobuf:"varint,13,opt,name=ttl,proto3" json:"ttl,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *PingResponse) Reset() { *m = PingResponse{} } +func (m *PingResponse) String() string { return proto.CompactTextString(m) } +func (*PingResponse) ProtoMessage() {} +func (*PingResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_746080b643370b3b, []int{11} } -func (x *PingResponse) Reset() { - *x = PingResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_system_system_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *PingResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PingResponse.Unmarshal(m, b) } - -func (x *PingResponse) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *PingResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PingResponse.Marshal(b, m, deterministic) } - -func (*PingResponse) ProtoMessage() {} - -func (x *PingResponse) ProtoReflect() protoreflect.Message { - mi := &file_system_system_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *PingResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_PingResponse.Merge(m, src) } - -// Deprecated: Use PingResponse.ProtoReflect.Descriptor instead. -func (*PingResponse) Descriptor() ([]byte, []int) { - return file_system_system_proto_rawDescGZIP(), []int{11} +func (m *PingResponse) XXX_Size() int { + return xxx_messageInfo_PingResponse.Size(m) +} +func (m *PingResponse) XXX_DiscardUnknown() { + xxx_messageInfo_PingResponse.DiscardUnknown(m) } -func (x *PingResponse) GetSource() string { - if x != nil { - return x.Source +var xxx_messageInfo_PingResponse proto.InternalMessageInfo + +func (m *PingResponse) GetSource() string { + if m != nil { + return m.Source } return "" } -func (x *PingResponse) GetTime() int64 { - if x != nil { - return x.Time +func (m *PingResponse) GetTime() int64 { + if m != nil { + return m.Time } return 0 } -func (x *PingResponse) GetSent() int32 { - if x != nil { - return x.Sent +func (m *PingResponse) GetSent() int32 { + if m != nil { + return m.Sent } return 0 } -func (x *PingResponse) GetReceived() int32 { - if x != nil { - return x.Received +func (m *PingResponse) GetReceived() int32 { + if m != nil { + return m.Received } return 0 } -func (x *PingResponse) GetMinTime() int64 { - if x != nil { - return x.MinTime +func (m *PingResponse) GetMinTime() int64 { + if m != nil { + return m.MinTime } return 0 } -func (x *PingResponse) GetAvgTime() int64 { - if x != nil { - return x.AvgTime +func (m *PingResponse) GetAvgTime() int64 { + if m != nil { + return m.AvgTime } return 0 } -func (x *PingResponse) GetMaxTime() int64 { - if x != nil { - return x.MaxTime +func (m *PingResponse) GetMaxTime() int64 { + if m != nil { + return m.MaxTime } return 0 } -func (x *PingResponse) GetStdDev() int64 { - if x != nil { - return x.StdDev +func (m *PingResponse) GetStdDev() int64 { + if m != nil { + return m.StdDev } return 0 } -func (x *PingResponse) GetBytes() int32 { - if x != nil { - return x.Bytes +func (m *PingResponse) GetBytes() int32 { + if m != nil { + return m.Bytes } return 0 } -func (x *PingResponse) GetSequence() int32 { - if x != nil { - return x.Sequence +func (m *PingResponse) GetSequence() int32 { + if m != nil { + return m.Sequence } return 0 } -func (x *PingResponse) GetTtl() int32 { - if x != nil { - return x.Ttl +func (m *PingResponse) GetTtl() int32 { + if m != nil { + return m.Ttl } return 0 } @@ -1040,112 +867,104 @@ func (x *PingResponse) GetTtl() int32 { // If the hop_count is -1 the traceroute will continue forever. // type TracerouteRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Source string `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"` // Source address to ping from. - Destination string `protobuf:"bytes,2,opt,name=destination,proto3" json:"destination,omitempty"` // Destination address to ping. - InitialTtl uint32 `protobuf:"varint,3,opt,name=initial_ttl,json=initialTtl,proto3" json:"initial_ttl,omitempty"` // Initial TTL. (default=1) - MaxTtl int32 `protobuf:"varint,4,opt,name=max_ttl,json=maxTtl,proto3" json:"max_ttl,omitempty"` // Maximum number of hops. (default=30) - Wait int64 `protobuf:"varint,5,opt,name=wait,proto3" json:"wait,omitempty"` // Nanoseconds to wait for a response. - DoNotFragment bool `protobuf:"varint,6,opt,name=do_not_fragment,json=doNotFragment,proto3" json:"do_not_fragment,omitempty"` // Set the do not fragment bit. (IPv4 destinations) - DoNotResolve bool `protobuf:"varint,7,opt,name=do_not_resolve,json=doNotResolve,proto3" json:"do_not_resolve,omitempty"` // Do not try resolve the address returned. - L3Protocol types.L3Protocol `protobuf:"varint,8,opt,name=l3protocol,proto3,enum=gnoi.types.L3Protocol" json:"l3protocol,omitempty"` // Layer-3 protocol requested for the ping. - L4Protocol TracerouteRequest_L4Protocol `protobuf:"varint,9,opt,name=l4protocol,proto3,enum=gnoi.system.TracerouteRequest_L4Protocol" json:"l4protocol,omitempty"` + Source string `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"` + Destination string `protobuf:"bytes,2,opt,name=destination,proto3" json:"destination,omitempty"` + InitialTtl uint32 `protobuf:"varint,3,opt,name=initial_ttl,json=initialTtl,proto3" json:"initial_ttl,omitempty"` + MaxTtl int32 `protobuf:"varint,4,opt,name=max_ttl,json=maxTtl,proto3" json:"max_ttl,omitempty"` + Wait int64 `protobuf:"varint,5,opt,name=wait,proto3" json:"wait,omitempty"` + DoNotFragment bool `protobuf:"varint,6,opt,name=do_not_fragment,json=doNotFragment,proto3" json:"do_not_fragment,omitempty"` + DoNotResolve bool `protobuf:"varint,7,opt,name=do_not_resolve,json=doNotResolve,proto3" json:"do_not_resolve,omitempty"` + L3Protocol types.L3Protocol `protobuf:"varint,8,opt,name=l3protocol,proto3,enum=gnoi.types.L3Protocol" json:"l3protocol,omitempty"` + L4Protocol TracerouteRequest_L4Protocol `protobuf:"varint,9,opt,name=l4protocol,proto3,enum=gnoi.system.TracerouteRequest_L4Protocol" json:"l4protocol,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TracerouteRequest) Reset() { *m = TracerouteRequest{} } +func (m *TracerouteRequest) String() string { return proto.CompactTextString(m) } +func (*TracerouteRequest) ProtoMessage() {} +func (*TracerouteRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_746080b643370b3b, []int{12} } -func (x *TracerouteRequest) Reset() { - *x = TracerouteRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_system_system_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *TracerouteRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TracerouteRequest.Unmarshal(m, b) } - -func (x *TracerouteRequest) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *TracerouteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TracerouteRequest.Marshal(b, m, deterministic) } - -func (*TracerouteRequest) ProtoMessage() {} - -func (x *TracerouteRequest) ProtoReflect() protoreflect.Message { - mi := &file_system_system_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *TracerouteRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_TracerouteRequest.Merge(m, src) } - -// Deprecated: Use TracerouteRequest.ProtoReflect.Descriptor instead. -func (*TracerouteRequest) Descriptor() ([]byte, []int) { - return file_system_system_proto_rawDescGZIP(), []int{12} +func (m *TracerouteRequest) XXX_Size() int { + return xxx_messageInfo_TracerouteRequest.Size(m) +} +func (m *TracerouteRequest) XXX_DiscardUnknown() { + xxx_messageInfo_TracerouteRequest.DiscardUnknown(m) } -func (x *TracerouteRequest) GetSource() string { - if x != nil { - return x.Source +var xxx_messageInfo_TracerouteRequest proto.InternalMessageInfo + +func (m *TracerouteRequest) GetSource() string { + if m != nil { + return m.Source } return "" } -func (x *TracerouteRequest) GetDestination() string { - if x != nil { - return x.Destination +func (m *TracerouteRequest) GetDestination() string { + if m != nil { + return m.Destination } return "" } -func (x *TracerouteRequest) GetInitialTtl() uint32 { - if x != nil { - return x.InitialTtl +func (m *TracerouteRequest) GetInitialTtl() uint32 { + if m != nil { + return m.InitialTtl } return 0 } -func (x *TracerouteRequest) GetMaxTtl() int32 { - if x != nil { - return x.MaxTtl +func (m *TracerouteRequest) GetMaxTtl() int32 { + if m != nil { + return m.MaxTtl } return 0 } -func (x *TracerouteRequest) GetWait() int64 { - if x != nil { - return x.Wait +func (m *TracerouteRequest) GetWait() int64 { + if m != nil { + return m.Wait } return 0 } -func (x *TracerouteRequest) GetDoNotFragment() bool { - if x != nil { - return x.DoNotFragment +func (m *TracerouteRequest) GetDoNotFragment() bool { + if m != nil { + return m.DoNotFragment } return false } -func (x *TracerouteRequest) GetDoNotResolve() bool { - if x != nil { - return x.DoNotResolve +func (m *TracerouteRequest) GetDoNotResolve() bool { + if m != nil { + return m.DoNotResolve } return false } -func (x *TracerouteRequest) GetL3Protocol() types.L3Protocol { - if x != nil { - return x.L3Protocol +func (m *TracerouteRequest) GetL3Protocol() types.L3Protocol { + if m != nil { + return m.L3Protocol } return types.L3Protocol_UNSPECIFIED } -func (x *TracerouteRequest) GetL4Protocol() TracerouteRequest_L4Protocol { - if x != nil { - return x.L4Protocol +func (m *TracerouteRequest) GetL4Protocol() TracerouteRequest_L4Protocol { + if m != nil { + return m.L4Protocol } return TracerouteRequest_ICMP } @@ -1165,10 +984,6 @@ func (x *TracerouteRequest) GetL4Protocol() TracerouteRequest_L4Protocol { // [Perhaps we should list the canonical names that must be used when // applicable]. type TracerouteResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - // The following fields are only filled in for the first message. // If any of these fields are specified, all fields following this // block are left unspecified. @@ -1178,138 +993,130 @@ type TracerouteResponse struct { PacketSize int32 `protobuf:"varint,4,opt,name=packet_size,json=packetSize,proto3" json:"packet_size,omitempty"` // The following fields provide the disposition of a single traceroute // packet. - Hop int32 `protobuf:"varint,5,opt,name=hop,proto3" json:"hop,omitempty"` // Hop number. required. - Address string `protobuf:"bytes,6,opt,name=address,proto3" json:"address,omitempty"` // Address of responding hop. required. - Name string `protobuf:"bytes,7,opt,name=name,proto3" json:"name,omitempty"` // Name of responding hop. - Rtt int64 `protobuf:"varint,8,opt,name=rtt,proto3" json:"rtt,omitempty"` // Round trip time in nanoseconds. - State TracerouteResponse_State `protobuf:"varint,9,opt,name=state,proto3,enum=gnoi.system.TracerouteResponse_State" json:"state,omitempty"` // State of this hop. - IcmpCode int32 `protobuf:"varint,10,opt,name=icmp_code,json=icmpCode,proto3" json:"icmp_code,omitempty"` // Code terminating hop. - Mpls map[string]string `protobuf:"bytes,11,rep,name=mpls,proto3" json:"mpls,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // MPLS key/value pairs. - AsPath []int32 `protobuf:"varint,12,rep,packed,name=as_path,json=asPath,proto3" json:"as_path,omitempty"` // AS path. + Hop int32 `protobuf:"varint,5,opt,name=hop,proto3" json:"hop,omitempty"` + Address string `protobuf:"bytes,6,opt,name=address,proto3" json:"address,omitempty"` + Name string `protobuf:"bytes,7,opt,name=name,proto3" json:"name,omitempty"` + Rtt int64 `protobuf:"varint,8,opt,name=rtt,proto3" json:"rtt,omitempty"` + State TracerouteResponse_State `protobuf:"varint,9,opt,name=state,proto3,enum=gnoi.system.TracerouteResponse_State" json:"state,omitempty"` + IcmpCode int32 `protobuf:"varint,10,opt,name=icmp_code,json=icmpCode,proto3" json:"icmp_code,omitempty"` + Mpls map[string]string `protobuf:"bytes,11,rep,name=mpls,proto3" json:"mpls,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + AsPath []int32 `protobuf:"varint,12,rep,packed,name=as_path,json=asPath,proto3" json:"as_path,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TracerouteResponse) Reset() { *m = TracerouteResponse{} } +func (m *TracerouteResponse) String() string { return proto.CompactTextString(m) } +func (*TracerouteResponse) ProtoMessage() {} +func (*TracerouteResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_746080b643370b3b, []int{13} } -func (x *TracerouteResponse) Reset() { - *x = TracerouteResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_system_system_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *TracerouteResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TracerouteResponse.Unmarshal(m, b) } - -func (x *TracerouteResponse) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *TracerouteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TracerouteResponse.Marshal(b, m, deterministic) } - -func (*TracerouteResponse) ProtoMessage() {} - -func (x *TracerouteResponse) ProtoReflect() protoreflect.Message { - mi := &file_system_system_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *TracerouteResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_TracerouteResponse.Merge(m, src) } - -// Deprecated: Use TracerouteResponse.ProtoReflect.Descriptor instead. -func (*TracerouteResponse) Descriptor() ([]byte, []int) { - return file_system_system_proto_rawDescGZIP(), []int{13} +func (m *TracerouteResponse) XXX_Size() int { + return xxx_messageInfo_TracerouteResponse.Size(m) } +func (m *TracerouteResponse) XXX_DiscardUnknown() { + xxx_messageInfo_TracerouteResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_TracerouteResponse proto.InternalMessageInfo -func (x *TracerouteResponse) GetDestinationName() string { - if x != nil { - return x.DestinationName +func (m *TracerouteResponse) GetDestinationName() string { + if m != nil { + return m.DestinationName } return "" } -func (x *TracerouteResponse) GetDestinationAddress() string { - if x != nil { - return x.DestinationAddress +func (m *TracerouteResponse) GetDestinationAddress() string { + if m != nil { + return m.DestinationAddress } return "" } -func (x *TracerouteResponse) GetHops() int32 { - if x != nil { - return x.Hops +func (m *TracerouteResponse) GetHops() int32 { + if m != nil { + return m.Hops } return 0 } -func (x *TracerouteResponse) GetPacketSize() int32 { - if x != nil { - return x.PacketSize +func (m *TracerouteResponse) GetPacketSize() int32 { + if m != nil { + return m.PacketSize } return 0 } -func (x *TracerouteResponse) GetHop() int32 { - if x != nil { - return x.Hop +func (m *TracerouteResponse) GetHop() int32 { + if m != nil { + return m.Hop } return 0 } -func (x *TracerouteResponse) GetAddress() string { - if x != nil { - return x.Address +func (m *TracerouteResponse) GetAddress() string { + if m != nil { + return m.Address } return "" } -func (x *TracerouteResponse) GetName() string { - if x != nil { - return x.Name +func (m *TracerouteResponse) GetName() string { + if m != nil { + return m.Name } return "" } -func (x *TracerouteResponse) GetRtt() int64 { - if x != nil { - return x.Rtt +func (m *TracerouteResponse) GetRtt() int64 { + if m != nil { + return m.Rtt } return 0 } -func (x *TracerouteResponse) GetState() TracerouteResponse_State { - if x != nil { - return x.State +func (m *TracerouteResponse) GetState() TracerouteResponse_State { + if m != nil { + return m.State } return TracerouteResponse_DEFAULT } -func (x *TracerouteResponse) GetIcmpCode() int32 { - if x != nil { - return x.IcmpCode +func (m *TracerouteResponse) GetIcmpCode() int32 { + if m != nil { + return m.IcmpCode } return 0 } -func (x *TracerouteResponse) GetMpls() map[string]string { - if x != nil { - return x.Mpls +func (m *TracerouteResponse) GetMpls() map[string]string { + if m != nil { + return m.Mpls } return nil } -func (x *TracerouteResponse) GetAsPath() []int32 { - if x != nil { - return x.AsPath +func (m *TracerouteResponse) GetAsPath() []int32 { + if m != nil { + return m.AsPath } return nil } // Package defines a single package file to be placed on the target. type Package struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - // Destination path and filename of the package. Filename string `protobuf:"bytes,1,opt,name=filename,proto3" json:"filename,omitempty"` // Version of the package. (vendor internal name) @@ -1319,65 +1126,61 @@ type Package struct { // be active after a reboot. Activate bool `protobuf:"varint,5,opt,name=activate,proto3" json:"activate,omitempty"` // Details for the device to download the package from a remote location. - RemoteDownload *common.RemoteDownload `protobuf:"bytes,6,opt,name=remote_download,json=remoteDownload,proto3" json:"remote_download,omitempty"` + RemoteDownload *common.RemoteDownload `protobuf:"bytes,6,opt,name=remote_download,json=remoteDownload,proto3" json:"remote_download,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *Package) Reset() { - *x = Package{} - if protoimpl.UnsafeEnabled { - mi := &file_system_system_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *Package) Reset() { *m = Package{} } +func (m *Package) String() string { return proto.CompactTextString(m) } +func (*Package) ProtoMessage() {} +func (*Package) Descriptor() ([]byte, []int) { + return fileDescriptor_746080b643370b3b, []int{14} } -func (x *Package) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *Package) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Package.Unmarshal(m, b) } - -func (*Package) ProtoMessage() {} - -func (x *Package) ProtoReflect() protoreflect.Message { - mi := &file_system_system_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *Package) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Package.Marshal(b, m, deterministic) } - -// Deprecated: Use Package.ProtoReflect.Descriptor instead. -func (*Package) Descriptor() ([]byte, []int) { - return file_system_system_proto_rawDescGZIP(), []int{14} +func (m *Package) XXX_Merge(src proto.Message) { + xxx_messageInfo_Package.Merge(m, src) +} +func (m *Package) XXX_Size() int { + return xxx_messageInfo_Package.Size(m) } +func (m *Package) XXX_DiscardUnknown() { + xxx_messageInfo_Package.DiscardUnknown(m) +} + +var xxx_messageInfo_Package proto.InternalMessageInfo -func (x *Package) GetFilename() string { - if x != nil { - return x.Filename +func (m *Package) GetFilename() string { + if m != nil { + return m.Filename } return "" } -func (x *Package) GetVersion() string { - if x != nil { - return x.Version +func (m *Package) GetVersion() string { + if m != nil { + return m.Version } return "" } -func (x *Package) GetActivate() bool { - if x != nil { - return x.Activate +func (m *Package) GetActivate() bool { + if m != nil { + return m.Activate } return false } -func (x *Package) GetRemoteDownload() *common.RemoteDownload { - if x != nil { - return x.RemoteDownload +func (m *Package) GetRemoteDownload() *common.RemoteDownload { + if m != nil { + return m.RemoteDownload } return nil } @@ -1388,49 +1191,63 @@ func (x *Package) GetRemoteDownload() *common.RemoteDownload { // initial message the contents are then streamed in maximum 64k chunks. The // final message must be a hash message contains the hash of the file contents. type SetPackageRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to Request: + // Types that are valid to be assigned to Request: // *SetPackageRequest_Package // *SetPackageRequest_Contents // *SetPackageRequest_Hash - Request isSetPackageRequest_Request `protobuf_oneof:"request"` + Request isSetPackageRequest_Request `protobuf_oneof:"request"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *SetPackageRequest) Reset() { - *x = SetPackageRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_system_system_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *SetPackageRequest) Reset() { *m = SetPackageRequest{} } +func (m *SetPackageRequest) String() string { return proto.CompactTextString(m) } +func (*SetPackageRequest) ProtoMessage() {} +func (*SetPackageRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_746080b643370b3b, []int{15} } -func (x *SetPackageRequest) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *SetPackageRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SetPackageRequest.Unmarshal(m, b) +} +func (m *SetPackageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SetPackageRequest.Marshal(b, m, deterministic) +} +func (m *SetPackageRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_SetPackageRequest.Merge(m, src) +} +func (m *SetPackageRequest) XXX_Size() int { + return xxx_messageInfo_SetPackageRequest.Size(m) +} +func (m *SetPackageRequest) XXX_DiscardUnknown() { + xxx_messageInfo_SetPackageRequest.DiscardUnknown(m) } -func (*SetPackageRequest) ProtoMessage() {} +var xxx_messageInfo_SetPackageRequest proto.InternalMessageInfo -func (x *SetPackageRequest) ProtoReflect() protoreflect.Message { - mi := &file_system_system_proto_msgTypes[15] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +type isSetPackageRequest_Request interface { + isSetPackageRequest_Request() } -// Deprecated: Use SetPackageRequest.ProtoReflect.Descriptor instead. -func (*SetPackageRequest) Descriptor() ([]byte, []int) { - return file_system_system_proto_rawDescGZIP(), []int{15} +type SetPackageRequest_Package struct { + Package *Package `protobuf:"bytes,1,opt,name=package,proto3,oneof"` +} + +type SetPackageRequest_Contents struct { + Contents []byte `protobuf:"bytes,2,opt,name=contents,proto3,oneof"` +} + +type SetPackageRequest_Hash struct { + Hash *types.HashType `protobuf:"bytes,3,opt,name=hash,proto3,oneof"` } +func (*SetPackageRequest_Package) isSetPackageRequest_Request() {} + +func (*SetPackageRequest_Contents) isSetPackageRequest_Request() {} + +func (*SetPackageRequest_Hash) isSetPackageRequest_Request() {} + func (m *SetPackageRequest) GetRequest() isSetPackageRequest_Request { if m != nil { return m.Request @@ -1438,646 +1255,729 @@ func (m *SetPackageRequest) GetRequest() isSetPackageRequest_Request { return nil } -func (x *SetPackageRequest) GetPackage() *Package { - if x, ok := x.GetRequest().(*SetPackageRequest_Package); ok { +func (m *SetPackageRequest) GetPackage() *Package { + if x, ok := m.GetRequest().(*SetPackageRequest_Package); ok { return x.Package } return nil } -func (x *SetPackageRequest) GetContents() []byte { - if x, ok := x.GetRequest().(*SetPackageRequest_Contents); ok { +func (m *SetPackageRequest) GetContents() []byte { + if x, ok := m.GetRequest().(*SetPackageRequest_Contents); ok { return x.Contents } return nil } -func (x *SetPackageRequest) GetHash() *types.HashType { - if x, ok := x.GetRequest().(*SetPackageRequest_Hash); ok { +func (m *SetPackageRequest) GetHash() *types.HashType { + if x, ok := m.GetRequest().(*SetPackageRequest_Hash); ok { return x.Hash } return nil } -type isSetPackageRequest_Request interface { - isSetPackageRequest_Request() +// XXX_OneofFuncs is for the internal use of the proto package. +func (*SetPackageRequest) 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 _SetPackageRequest_OneofMarshaler, _SetPackageRequest_OneofUnmarshaler, _SetPackageRequest_OneofSizer, []interface{}{ + (*SetPackageRequest_Package)(nil), + (*SetPackageRequest_Contents)(nil), + (*SetPackageRequest_Hash)(nil), + } } -type SetPackageRequest_Package struct { - Package *Package `protobuf:"bytes,1,opt,name=package,proto3,oneof"` +func _SetPackageRequest_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*SetPackageRequest) + // request + switch x := m.Request.(type) { + case *SetPackageRequest_Package: + b.EncodeVarint(1<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Package); err != nil { + return err + } + case *SetPackageRequest_Contents: + b.EncodeVarint(2<<3 | proto.WireBytes) + b.EncodeRawBytes(x.Contents) + case *SetPackageRequest_Hash: + b.EncodeVarint(3<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Hash); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("SetPackageRequest.Request has unexpected type %T", x) + } + return nil } -type SetPackageRequest_Contents struct { - Contents []byte `protobuf:"bytes,2,opt,name=contents,proto3,oneof"` +func _SetPackageRequest_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*SetPackageRequest) + switch tag { + case 1: // request.package + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(Package) + err := b.DecodeMessage(msg) + m.Request = &SetPackageRequest_Package{msg} + return true, err + case 2: // request.contents + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + x, err := b.DecodeRawBytes(true) + m.Request = &SetPackageRequest_Contents{x} + return true, err + case 3: // request.hash + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(types.HashType) + err := b.DecodeMessage(msg) + m.Request = &SetPackageRequest_Hash{msg} + return true, err + default: + return false, nil + } +} + +func _SetPackageRequest_OneofSizer(msg proto.Message) (n int) { + m := msg.(*SetPackageRequest) + // request + switch x := m.Request.(type) { + case *SetPackageRequest_Package: + s := proto.Size(x.Package) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *SetPackageRequest_Contents: + n += 1 // tag and wire + n += proto.SizeVarint(uint64(len(x.Contents))) + n += len(x.Contents) + case *SetPackageRequest_Hash: + s := proto.Size(x.Hash) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n } -type SetPackageRequest_Hash struct { - Hash *types.HashType `protobuf:"bytes,3,opt,name=hash,proto3,oneof"` // Verification hash of data. +type SetPackageResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (*SetPackageRequest_Package) isSetPackageRequest_Request() {} +func (m *SetPackageResponse) Reset() { *m = SetPackageResponse{} } +func (m *SetPackageResponse) String() string { return proto.CompactTextString(m) } +func (*SetPackageResponse) ProtoMessage() {} +func (*SetPackageResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_746080b643370b3b, []int{16} +} + +func (m *SetPackageResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SetPackageResponse.Unmarshal(m, b) +} +func (m *SetPackageResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SetPackageResponse.Marshal(b, m, deterministic) +} +func (m *SetPackageResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_SetPackageResponse.Merge(m, src) +} +func (m *SetPackageResponse) XXX_Size() int { + return xxx_messageInfo_SetPackageResponse.Size(m) +} +func (m *SetPackageResponse) XXX_DiscardUnknown() { + xxx_messageInfo_SetPackageResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_SetPackageResponse proto.InternalMessageInfo + +func init() { + proto.RegisterEnum("gnoi.system.RebootMethod", RebootMethod_name, RebootMethod_value) + proto.RegisterEnum("gnoi.system.TracerouteRequest_L4Protocol", TracerouteRequest_L4Protocol_name, TracerouteRequest_L4Protocol_value) + proto.RegisterEnum("gnoi.system.TracerouteResponse_State", TracerouteResponse_State_name, TracerouteResponse_State_value) + proto.RegisterType((*SwitchControlProcessorRequest)(nil), "gnoi.system.SwitchControlProcessorRequest") + proto.RegisterType((*SwitchControlProcessorResponse)(nil), "gnoi.system.SwitchControlProcessorResponse") + proto.RegisterType((*RebootRequest)(nil), "gnoi.system.RebootRequest") + proto.RegisterType((*RebootResponse)(nil), "gnoi.system.RebootResponse") + proto.RegisterType((*CancelRebootRequest)(nil), "gnoi.system.CancelRebootRequest") + proto.RegisterType((*CancelRebootResponse)(nil), "gnoi.system.CancelRebootResponse") + proto.RegisterType((*RebootStatusRequest)(nil), "gnoi.system.RebootStatusRequest") + proto.RegisterType((*RebootStatusResponse)(nil), "gnoi.system.RebootStatusResponse") + proto.RegisterType((*TimeRequest)(nil), "gnoi.system.TimeRequest") + proto.RegisterType((*TimeResponse)(nil), "gnoi.system.TimeResponse") + proto.RegisterType((*PingRequest)(nil), "gnoi.system.PingRequest") + proto.RegisterType((*PingResponse)(nil), "gnoi.system.PingResponse") + proto.RegisterType((*TracerouteRequest)(nil), "gnoi.system.TracerouteRequest") + proto.RegisterType((*TracerouteResponse)(nil), "gnoi.system.TracerouteResponse") + proto.RegisterMapType((map[string]string)(nil), "gnoi.system.TracerouteResponse.MplsEntry") + proto.RegisterType((*Package)(nil), "gnoi.system.Package") + proto.RegisterType((*SetPackageRequest)(nil), "gnoi.system.SetPackageRequest") + proto.RegisterType((*SetPackageResponse)(nil), "gnoi.system.SetPackageResponse") +} + +func init() { proto.RegisterFile("system/system.proto", fileDescriptor_746080b643370b3b) } + +var fileDescriptor_746080b643370b3b = []byte{ + // 1596 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x57, 0xdb, 0x72, 0xe3, 0x48, + 0x19, 0x8e, 0x7c, 0xf6, 0xef, 0x24, 0xa3, 0xe9, 0x84, 0xac, 0xc6, 0x03, 0xbb, 0x41, 0x05, 0x54, + 0x66, 0xa0, 0x9c, 0xd9, 0x99, 0xad, 0x85, 0x82, 0x5a, 0x28, 0x8f, 0xad, 0x90, 0xd4, 0x3a, 0xb6, + 0x69, 0xcb, 0xcc, 0x1d, 0x2a, 0x45, 0xee, 0xb1, 0x55, 0x23, 0xa9, 0x85, 0xba, 0xed, 0xd9, 0x70, + 0xcd, 0x0b, 0x70, 0x33, 0x45, 0x71, 0xc7, 0x15, 0xaf, 0xc1, 0x33, 0x70, 0xc3, 0x7b, 0xf0, 0x04, + 0x54, 0x1f, 0xe4, 0xc8, 0x89, 0x67, 0x92, 0xaa, 0xbd, 0xb1, 0xfb, 0x3f, 0xf4, 0x7f, 0xfc, 0xba, + 0xfb, 0x17, 0x1c, 0xb0, 0x6b, 0xc6, 0x49, 0x7c, 0xaa, 0xfe, 0x3a, 0x69, 0x46, 0x39, 0x45, 0xad, + 0x79, 0x42, 0xc3, 0x8e, 0x62, 0xb5, 0x3b, 0xf3, 0x90, 0x2f, 0x96, 0x57, 0x9d, 0x80, 0xc6, 0xa7,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, 0xe8, 0x6b, 0xd8, 0x63, 0xcb, 0xab, 0x80, 0xc6, 0x29, + 0x4d, 0x48, 0xc2, 0x99, 0x55, 0x39, 0x2e, 0x6f, 0xcd, 0x70, 0x53, 0x4d, 0xf8, 0x79, 0x4b, 0xb3, + 0x80, 0x58, 0xd5, 0x63, 0xe3, 0xa4, 0x81, 0x15, 0x61, 0x9b, 0xb0, 0x9f, 0x67, 0xa0, 0xaa, 0x68, + 0xcf, 0xe1, 0xa0, 0xe7, 0x27, 0x01, 0x89, 0x36, 0x33, 0x2b, 0x04, 0x64, 0xdc, 0x13, 0x50, 0xe9, + 0x41, 0x01, 0xd9, 0x47, 0x70, 0xb8, 0xe9, 0x48, 0x07, 0x70, 0x09, 0x07, 0x8a, 0x33, 0xe1, 0x3e, + 0x5f, 0xb2, 0x3c, 0x80, 0x3b, 0x6e, 0x8c, 0x87, 0xb9, 0xf9, 0xab, 0x01, 0x87, 0x9b, 0xf6, 0x34, + 0x5c, 0x8e, 0xa0, 0xe6, 0x07, 0x3c, 0x5c, 0xa9, 0x84, 0x1a, 0x58, 0x53, 0x08, 0x41, 0xe5, 0xbd, + 0x1f, 0x72, 0xdd, 0x0f, 0xb9, 0x96, 0xbc, 0x05, 0x49, 0x64, 0x2f, 0x04, 0x6f, 0x41, 0x24, 0x2a, + 0x32, 0xe2, 0x33, 0x9a, 0x58, 0x15, 0x59, 0x10, 0x4d, 0x89, 0x42, 0x07, 0x74, 0x99, 0x70, 0x59, + 0xe8, 0x3d, 0xac, 0x08, 0x7b, 0x0f, 0x5a, 0x6e, 0x18, 0x13, 0x9d, 0x8d, 0x6d, 0xc3, 0xae, 0x22, + 0x75, 0x30, 0x08, 0x2a, 0x12, 0x60, 0x86, 0x72, 0x20, 0xe1, 0xf5, 0xaf, 0x12, 0xb4, 0xc6, 0x61, + 0x32, 0xcf, 0x2b, 0x70, 0x0c, 0xad, 0x19, 0x61, 0x3c, 0x4c, 0x7c, 0x2e, 0x40, 0xaa, 0xda, 0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xff, 0xff, 0x20, 0x36, 0x19, 0xc2, 0xf8, 0x0e, 0x00, 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion4 + +// SystemClient is the client API for System service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type SystemClient interface { + // Ping executes the ping command on the target and streams back + // the results. Some targets may not stream any results until all + // results are in. If a packet count is not explicitly provided, + // 5 is used. + Ping(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (System_PingClient, error) + // Traceroute executes the traceroute command on the target and streams back + // the results. Some targets may not stream any results until all + // results are in. If a hop count is not explicitly provided, + // 30 is used. + Traceroute(ctx context.Context, in *TracerouteRequest, opts ...grpc.CallOption) (System_TracerouteClient, error) + // Time returns the current time on the target. Time is typically used to + // test if a target is actually responding. + Time(ctx context.Context, in *TimeRequest, opts ...grpc.CallOption) (*TimeResponse, error) + // SetPackage places a software package (possibly including bootable images) + // on the target. The file is sent in sequential messages, each message + // up to 64KB of data. A final message must be sent that includes the hash + // of the data sent. An error is returned if the location does not exist or + // there is an error writing the data. If no checksum is received, the target + // must assume the operation is incomplete and remove the partially + // transmitted file. The target should initially write the file to a temporary + // location so a failure does not destroy the original file. + SetPackage(ctx context.Context, opts ...grpc.CallOption) (System_SetPackageClient, error) + // SwitchControlProcessor will switch from the current route processor to the + // provided route processor. If the current route processor is the same as the + // one provided it is a NOOP. If the target does not exist an error is + // returned. + SwitchControlProcessor(ctx context.Context, in *SwitchControlProcessorRequest, opts ...grpc.CallOption) (*SwitchControlProcessorResponse, error) + // Reboot causes the target to reboot, possibly at some point in the future. + // If the method of reboot is not supported then the Reboot RPC will fail. + // If the reboot is immediate the command will block until the subcomponents + // have restarted. + // If a reboot on the active control processor is pending the service must + // reject all other reboot requests. + // If a reboot request for active control processor is initiated with other + // pending reboot requests it must be rejected. + Reboot(ctx context.Context, in *RebootRequest, opts ...grpc.CallOption) (*RebootResponse, error) + // RebootStatus returns the status of reboot for the target. + RebootStatus(ctx context.Context, in *RebootStatusRequest, opts ...grpc.CallOption) (*RebootStatusResponse, error) + // CancelReboot cancels any pending reboot request. + CancelReboot(ctx context.Context, in *CancelRebootRequest, opts ...grpc.CallOption) (*CancelRebootResponse, error) +} -func (*SetPackageRequest_Contents) isSetPackageRequest_Request() {} +type systemClient struct { + cc *grpc.ClientConn +} -func (*SetPackageRequest_Hash) isSetPackageRequest_Request() {} +func NewSystemClient(cc *grpc.ClientConn) SystemClient { + return &systemClient{cc} +} -type SetPackageResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields +func (c *systemClient) Ping(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (System_PingClient, error) { + stream, err := c.cc.NewStream(ctx, &_System_serviceDesc.Streams[0], "/gnoi.system.System/Ping", opts...) + if err != nil { + return nil, err + } + x := &systemPingClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type System_PingClient interface { + Recv() (*PingResponse, error) + grpc.ClientStream +} + +type systemPingClient struct { + grpc.ClientStream +} + +func (x *systemPingClient) Recv() (*PingResponse, error) { + m := new(PingResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil } -func (x *SetPackageResponse) Reset() { - *x = SetPackageResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_system_system_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (c *systemClient) Traceroute(ctx context.Context, in *TracerouteRequest, opts ...grpc.CallOption) (System_TracerouteClient, error) { + stream, err := c.cc.NewStream(ctx, &_System_serviceDesc.Streams[1], "/gnoi.system.System/Traceroute", opts...) + if err != nil { + return nil, err + } + x := &systemTracerouteClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil } -func (x *SetPackageResponse) String() string { - return protoimpl.X.MessageStringOf(x) +type System_TracerouteClient interface { + Recv() (*TracerouteResponse, error) + grpc.ClientStream } -func (*SetPackageResponse) ProtoMessage() {} +type systemTracerouteClient struct { + grpc.ClientStream +} -func (x *SetPackageResponse) ProtoReflect() protoreflect.Message { - mi := &file_system_system_proto_msgTypes[16] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms +func (x *systemTracerouteClient) Recv() (*TracerouteResponse, error) { + m := new(TracerouteResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err } - return mi.MessageOf(x) + return m, nil } -// Deprecated: Use SetPackageResponse.ProtoReflect.Descriptor instead. -func (*SetPackageResponse) Descriptor() ([]byte, []int) { - return file_system_system_proto_rawDescGZIP(), []int{16} -} - -var File_system_system_proto protoreflect.FileDescriptor - -var file_system_system_proto_rawDesc = []byte{ - 0x0a, 0x13, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2f, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0b, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, 0x73, 0x74, - 0x65, 0x6d, 0x1a, 0x2e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, - 0x70, 0x65, 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x67, 0x6e, 0x6f, 0x69, 0x2f, 0x63, - 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x1a, 0x2c, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, - 0x70, 0x65, 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x67, 0x6e, 0x6f, 0x69, 0x2f, 0x74, - 0x79, 0x70, 0x65, 0x73, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x22, 0x5e, 0x0a, 0x1d, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, - 0x6c, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x3d, 0x0a, 0x11, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x5f, 0x70, 0x72, 0x6f, - 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x67, - 0x6e, 0x6f, 0x69, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x50, 0x61, 0x74, 0x68, 0x52, 0x10, - 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, - 0x22, 0x91, 0x01, 0x0a, 0x1e, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x43, 0x6f, 0x6e, 0x74, 0x72, - 0x6f, 0x6c, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x3d, 0x0a, 0x11, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x5f, 0x70, - 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, - 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x50, 0x61, 0x74, 0x68, - 0x52, 0x10, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, - 0x6f, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, - 0x75, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x70, - 0x74, 0x69, 0x6d, 0x65, 0x22, 0xc0, 0x01, 0x0a, 0x0d, 0x52, 0x65, 0x62, 0x6f, 0x6f, 0x74, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, - 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x52, 0x65, 0x62, 0x6f, 0x6f, 0x74, 0x4d, 0x65, 0x74, 0x68, 0x6f, - 0x64, 0x52, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x64, 0x65, 0x6c, - 0x61, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x64, 0x65, 0x6c, 0x61, 0x79, 0x12, - 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x36, 0x0a, 0x0d, 0x73, 0x75, 0x62, - 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x10, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x50, 0x61, - 0x74, 0x68, 0x52, 0x0d, 0x73, 0x75, 0x62, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, - 0x73, 0x12, 0x14, 0x0a, 0x05, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, - 0x52, 0x05, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x22, 0x10, 0x0a, 0x0e, 0x52, 0x65, 0x62, 0x6f, 0x6f, - 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x67, 0x0a, 0x13, 0x43, 0x61, 0x6e, - 0x63, 0x65, 0x6c, 0x52, 0x65, 0x62, 0x6f, 0x6f, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x36, 0x0a, 0x0d, 0x73, 0x75, - 0x62, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x10, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x50, - 0x61, 0x74, 0x68, 0x52, 0x0d, 0x73, 0x75, 0x62, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, - 0x74, 0x73, 0x22, 0x16, 0x0a, 0x14, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x52, 0x65, 0x62, 0x6f, - 0x6f, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4d, 0x0a, 0x13, 0x52, 0x65, - 0x62, 0x6f, 0x6f, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x36, 0x0a, 0x0d, 0x73, 0x75, 0x62, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, - 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, - 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x50, 0x61, 0x74, 0x68, 0x52, 0x0d, 0x73, 0x75, 0x62, 0x63, - 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x22, 0x84, 0x01, 0x0a, 0x14, 0x52, 0x65, - 0x62, 0x6f, 0x6f, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x08, 0x52, 0x06, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x77, 0x61, - 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04, 0x77, 0x61, 0x69, 0x74, 0x12, 0x12, - 0x0a, 0x04, 0x77, 0x68, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04, 0x77, 0x68, - 0x65, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, - 0x75, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, - 0x22, 0x0d, 0x0a, 0x0b, 0x54, 0x69, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, - 0x22, 0x0a, 0x0c, 0x54, 0x69, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x12, 0x0a, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04, 0x74, - 0x69, 0x6d, 0x65, 0x22, 0xa7, 0x02, 0x0a, 0x0b, 0x50, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x14, 0x0a, - 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x63, 0x6f, - 0x75, 0x6e, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x18, - 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x12, - 0x12, 0x0a, 0x04, 0x77, 0x61, 0x69, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x77, - 0x61, 0x69, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, - 0x05, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x12, 0x26, 0x0a, 0x0f, 0x64, 0x6f, 0x5f, 0x6e, 0x6f, - 0x74, 0x5f, 0x66, 0x72, 0x61, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, - 0x52, 0x0d, 0x64, 0x6f, 0x4e, 0x6f, 0x74, 0x46, 0x72, 0x61, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x12, - 0x24, 0x0a, 0x0e, 0x64, 0x6f, 0x5f, 0x6e, 0x6f, 0x74, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, - 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x64, 0x6f, 0x4e, 0x6f, 0x74, 0x52, 0x65, - 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x12, 0x36, 0x0a, 0x0a, 0x6c, 0x33, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x63, 0x6f, 0x6c, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x67, 0x6e, 0x6f, 0x69, - 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x4c, 0x33, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, - 0x6c, 0x52, 0x0a, 0x6c, 0x33, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x22, 0x98, 0x02, - 0x0a, 0x0c, 0x50, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, - 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, - 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x65, - 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x73, 0x65, 0x6e, 0x74, 0x12, 0x1a, - 0x0a, 0x08, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, - 0x52, 0x08, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x6d, 0x69, - 0x6e, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x6d, 0x69, - 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x61, 0x76, 0x67, 0x5f, 0x74, 0x69, 0x6d, - 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x61, 0x76, 0x67, 0x54, 0x69, 0x6d, 0x65, - 0x12, 0x19, 0x0a, 0x08, 0x6d, 0x61, 0x78, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, - 0x28, 0x03, 0x52, 0x07, 0x6d, 0x61, 0x78, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x73, - 0x74, 0x64, 0x5f, 0x64, 0x65, 0x76, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x73, 0x74, - 0x64, 0x44, 0x65, 0x76, 0x12, 0x14, 0x0a, 0x05, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x0b, 0x20, - 0x01, 0x28, 0x05, 0x52, 0x05, 0x62, 0x79, 0x74, 0x65, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, - 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x73, 0x65, - 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x74, 0x6c, 0x18, 0x0d, 0x20, - 0x01, 0x28, 0x05, 0x52, 0x03, 0x74, 0x74, 0x6c, 0x22, 0x96, 0x03, 0x0a, 0x11, 0x54, 0x72, 0x61, - 0x63, 0x65, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, - 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, - 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, - 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1f, 0x0a, 0x0b, 0x69, 0x6e, 0x69, 0x74, - 0x69, 0x61, 0x6c, 0x5f, 0x74, 0x74, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x69, - 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x54, 0x74, 0x6c, 0x12, 0x17, 0x0a, 0x07, 0x6d, 0x61, 0x78, - 0x5f, 0x74, 0x74, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x6d, 0x61, 0x78, 0x54, - 0x74, 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x77, 0x61, 0x69, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, - 0x52, 0x04, 0x77, 0x61, 0x69, 0x74, 0x12, 0x26, 0x0a, 0x0f, 0x64, 0x6f, 0x5f, 0x6e, 0x6f, 0x74, - 0x5f, 0x66, 0x72, 0x61, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, - 0x0d, 0x64, 0x6f, 0x4e, 0x6f, 0x74, 0x46, 0x72, 0x61, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x24, - 0x0a, 0x0e, 0x64, 0x6f, 0x5f, 0x6e, 0x6f, 0x74, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, - 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x64, 0x6f, 0x4e, 0x6f, 0x74, 0x52, 0x65, 0x73, - 0x6f, 0x6c, 0x76, 0x65, 0x12, 0x36, 0x0a, 0x0a, 0x6c, 0x33, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, - 0x6f, 0x6c, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, - 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x4c, 0x33, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, - 0x52, 0x0a, 0x6c, 0x33, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x49, 0x0a, 0x0a, - 0x6c, 0x34, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0e, - 0x32, 0x29, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x54, - 0x72, 0x61, 0x63, 0x65, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x2e, 0x4c, 0x34, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x52, 0x0a, 0x6c, 0x34, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x22, 0x28, 0x0a, 0x0a, 0x4c, 0x34, 0x50, 0x72, 0x6f, - 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x08, 0x0a, 0x04, 0x49, 0x43, 0x4d, 0x50, 0x10, 0x00, 0x12, - 0x07, 0x0a, 0x03, 0x54, 0x43, 0x50, 0x10, 0x01, 0x12, 0x07, 0x0a, 0x03, 0x55, 0x44, 0x50, 0x10, - 0x02, 0x22, 0xd7, 0x05, 0x0a, 0x12, 0x54, 0x72, 0x61, 0x63, 0x65, 0x72, 0x6f, 0x75, 0x74, 0x65, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x29, 0x0a, 0x10, 0x64, 0x65, 0x73, 0x74, - 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x0f, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4e, - 0x61, 0x6d, 0x65, 0x12, 0x2f, 0x0a, 0x13, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x12, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x41, 0x64, 0x64, - 0x72, 0x65, 0x73, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x6f, 0x70, 0x73, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x05, 0x52, 0x04, 0x68, 0x6f, 0x70, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x61, 0x63, 0x6b, - 0x65, 0x74, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x70, - 0x61, 0x63, 0x6b, 0x65, 0x74, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x68, 0x6f, 0x70, - 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x68, 0x6f, 0x70, 0x12, 0x18, 0x0a, 0x07, 0x61, - 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, - 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x07, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x72, 0x74, 0x74, - 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x72, 0x74, 0x74, 0x12, 0x3b, 0x0a, 0x05, 0x73, - 0x74, 0x61, 0x74, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x25, 0x2e, 0x67, 0x6e, 0x6f, - 0x69, 0x2e, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x54, 0x72, 0x61, 0x63, 0x65, 0x72, 0x6f, - 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x53, 0x74, 0x61, 0x74, - 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x69, 0x63, 0x6d, 0x70, - 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x69, 0x63, 0x6d, - 0x70, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x3d, 0x0a, 0x04, 0x6d, 0x70, 0x6c, 0x73, 0x18, 0x0b, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, 0x73, 0x74, 0x65, - 0x6d, 0x2e, 0x54, 0x72, 0x61, 0x63, 0x65, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x4d, 0x70, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x04, - 0x6d, 0x70, 0x6c, 0x73, 0x12, 0x17, 0x0a, 0x07, 0x61, 0x73, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, - 0x0c, 0x20, 0x03, 0x28, 0x05, 0x52, 0x06, 0x61, 0x73, 0x50, 0x61, 0x74, 0x68, 0x1a, 0x37, 0x0a, - 0x09, 0x4d, 0x70, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, - 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, - 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, - 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xf2, 0x01, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x65, - 0x12, 0x0b, 0x0a, 0x07, 0x44, 0x45, 0x46, 0x41, 0x55, 0x4c, 0x54, 0x10, 0x00, 0x12, 0x08, 0x0a, - 0x04, 0x4e, 0x4f, 0x4e, 0x45, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, - 0x57, 0x4e, 0x10, 0x02, 0x12, 0x08, 0x0a, 0x04, 0x49, 0x43, 0x4d, 0x50, 0x10, 0x03, 0x12, 0x14, - 0x0a, 0x10, 0x48, 0x4f, 0x53, 0x54, 0x5f, 0x55, 0x4e, 0x52, 0x45, 0x41, 0x43, 0x48, 0x41, 0x42, - 0x4c, 0x45, 0x10, 0x04, 0x12, 0x17, 0x0a, 0x13, 0x4e, 0x45, 0x54, 0x57, 0x4f, 0x52, 0x4b, 0x5f, - 0x55, 0x4e, 0x52, 0x45, 0x41, 0x43, 0x48, 0x41, 0x42, 0x4c, 0x45, 0x10, 0x05, 0x12, 0x18, 0x0a, - 0x14, 0x50, 0x52, 0x4f, 0x54, 0x4f, 0x43, 0x4f, 0x4c, 0x5f, 0x55, 0x4e, 0x52, 0x45, 0x41, 0x43, - 0x48, 0x41, 0x42, 0x4c, 0x45, 0x10, 0x06, 0x12, 0x17, 0x0a, 0x13, 0x53, 0x4f, 0x55, 0x52, 0x43, - 0x45, 0x5f, 0x52, 0x4f, 0x55, 0x54, 0x45, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, 0x07, - 0x12, 0x18, 0x0a, 0x14, 0x46, 0x52, 0x41, 0x47, 0x4d, 0x45, 0x4e, 0x54, 0x41, 0x54, 0x49, 0x4f, - 0x4e, 0x5f, 0x4e, 0x45, 0x45, 0x44, 0x45, 0x44, 0x10, 0x08, 0x12, 0x0e, 0x0a, 0x0a, 0x50, 0x52, - 0x4f, 0x48, 0x49, 0x42, 0x49, 0x54, 0x45, 0x44, 0x10, 0x09, 0x12, 0x18, 0x0a, 0x14, 0x50, 0x52, - 0x45, 0x43, 0x45, 0x44, 0x45, 0x4e, 0x43, 0x45, 0x5f, 0x56, 0x49, 0x4f, 0x4c, 0x41, 0x54, 0x49, - 0x4f, 0x4e, 0x10, 0x0a, 0x12, 0x15, 0x0a, 0x11, 0x50, 0x52, 0x45, 0x43, 0x45, 0x44, 0x45, 0x4e, - 0x43, 0x45, 0x5f, 0x43, 0x55, 0x54, 0x4f, 0x46, 0x46, 0x10, 0x0b, 0x22, 0xa1, 0x01, 0x0a, 0x07, - 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x6e, - 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x6e, - 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x04, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1a, 0x0a, - 0x08, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, - 0x08, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x12, 0x44, 0x0a, 0x0f, 0x72, 0x65, 0x6d, - 0x6f, 0x74, 0x65, 0x5f, 0x64, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x06, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, - 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x52, - 0x0e, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x22, - 0x9a, 0x01, 0x0a, 0x11, 0x53, 0x65, 0x74, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x30, 0x0a, 0x07, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, - 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x48, 0x00, 0x52, 0x07, - 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x12, 0x1c, 0x0a, 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x65, - 0x6e, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x48, 0x00, 0x52, 0x08, 0x63, 0x6f, 0x6e, - 0x74, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x2a, 0x0a, 0x04, 0x68, 0x61, 0x73, 0x68, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, - 0x2e, 0x48, 0x61, 0x73, 0x68, 0x54, 0x79, 0x70, 0x65, 0x48, 0x00, 0x52, 0x04, 0x68, 0x61, 0x73, - 0x68, 0x42, 0x09, 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x14, 0x0a, 0x12, - 0x53, 0x65, 0x74, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x2a, 0x64, 0x0a, 0x0c, 0x52, 0x65, 0x62, 0x6f, 0x6f, 0x74, 0x4d, 0x65, 0x74, 0x68, - 0x6f, 0x64, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, - 0x08, 0x0a, 0x04, 0x43, 0x4f, 0x4c, 0x44, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x50, 0x4f, 0x57, - 0x45, 0x52, 0x44, 0x4f, 0x57, 0x4e, 0x10, 0x02, 0x12, 0x08, 0x0a, 0x04, 0x48, 0x41, 0x4c, 0x54, - 0x10, 0x03, 0x12, 0x08, 0x0a, 0x04, 0x57, 0x41, 0x52, 0x4d, 0x10, 0x04, 0x12, 0x07, 0x0a, 0x03, - 0x4e, 0x53, 0x46, 0x10, 0x05, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x4f, 0x57, 0x45, 0x52, 0x55, 0x50, - 0x10, 0x07, 0x22, 0x04, 0x08, 0x06, 0x10, 0x06, 0x32, 0x96, 0x05, 0x0a, 0x06, 0x53, 0x79, 0x73, - 0x74, 0x65, 0x6d, 0x12, 0x3f, 0x0a, 0x04, 0x50, 0x69, 0x6e, 0x67, 0x12, 0x18, 0x2e, 0x67, 0x6e, - 0x6f, 0x69, 0x2e, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x50, 0x69, 0x6e, 0x67, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, 0x73, - 0x74, 0x65, 0x6d, 0x2e, 0x50, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x00, 0x30, 0x01, 0x12, 0x51, 0x0a, 0x0a, 0x54, 0x72, 0x61, 0x63, 0x65, 0x72, 0x6f, 0x75, - 0x74, 0x65, 0x12, 0x1e, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, - 0x2e, 0x54, 0x72, 0x61, 0x63, 0x65, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, - 0x2e, 0x54, 0x72, 0x61, 0x63, 0x65, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x00, 0x30, 0x01, 0x12, 0x3d, 0x0a, 0x04, 0x54, 0x69, 0x6d, 0x65, 0x12, - 0x18, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x54, 0x69, - 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x67, 0x6e, 0x6f, 0x69, - 0x2e, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x51, 0x0a, 0x0a, 0x53, 0x65, 0x74, 0x50, 0x61, 0x63, - 0x6b, 0x61, 0x67, 0x65, 0x12, 0x1e, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, 0x73, 0x74, - 0x65, 0x6d, 0x2e, 0x53, 0x65, 0x74, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, 0x73, 0x74, - 0x65, 0x6d, 0x2e, 0x53, 0x65, 0x74, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x28, 0x01, 0x12, 0x73, 0x0a, 0x16, 0x53, 0x77, 0x69, - 0x74, 0x63, 0x68, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, - 0x73, 0x6f, 0x72, 0x12, 0x2a, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, 0x73, 0x74, 0x65, - 0x6d, 0x2e, 0x53, 0x77, 0x69, 0x74, 0x63, 0x68, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x50, - 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x2b, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x53, 0x77, - 0x69, 0x74, 0x63, 0x68, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x50, 0x72, 0x6f, 0x63, 0x65, - 0x73, 0x73, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x43, - 0x0a, 0x06, 0x52, 0x65, 0x62, 0x6f, 0x6f, 0x74, 0x12, 0x1a, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, - 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x52, 0x65, 0x62, 0x6f, 0x6f, 0x74, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, 0x73, 0x74, - 0x65, 0x6d, 0x2e, 0x52, 0x65, 0x62, 0x6f, 0x6f, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x00, 0x12, 0x55, 0x0a, 0x0c, 0x52, 0x65, 0x62, 0x6f, 0x6f, 0x74, 0x53, 0x74, 0x61, - 0x74, 0x75, 0x73, 0x12, 0x20, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, 0x73, 0x74, 0x65, - 0x6d, 0x2e, 0x52, 0x65, 0x62, 0x6f, 0x6f, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, 0x73, - 0x74, 0x65, 0x6d, 0x2e, 0x52, 0x65, 0x62, 0x6f, 0x6f, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x55, 0x0a, 0x0c, 0x43, 0x61, - 0x6e, 0x63, 0x65, 0x6c, 0x52, 0x65, 0x62, 0x6f, 0x6f, 0x74, 0x12, 0x20, 0x2e, 0x67, 0x6e, 0x6f, - 0x69, 0x2e, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x52, - 0x65, 0x62, 0x6f, 0x6f, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x67, - 0x6e, 0x6f, 0x69, 0x2e, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x43, 0x61, 0x6e, 0x63, 0x65, - 0x6c, 0x52, 0x65, 0x62, 0x6f, 0x6f, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x00, 0x42, 0x2b, 0x5a, 0x21, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, - 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x67, 0x6e, 0x6f, 0x69, 0x2f, - 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0xd2, 0x3e, 0x05, 0x31, 0x2e, 0x30, 0x2e, 0x30, 0x62, 0x06, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_system_system_proto_rawDescOnce sync.Once - file_system_system_proto_rawDescData = file_system_system_proto_rawDesc -) +func (c *systemClient) Time(ctx context.Context, in *TimeRequest, opts ...grpc.CallOption) (*TimeResponse, error) { + out := new(TimeResponse) + err := c.cc.Invoke(ctx, "/gnoi.system.System/Time", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} -func file_system_system_proto_rawDescGZIP() []byte { - file_system_system_proto_rawDescOnce.Do(func() { - file_system_system_proto_rawDescData = protoimpl.X.CompressGZIP(file_system_system_proto_rawDescData) - }) - return file_system_system_proto_rawDescData -} - -var file_system_system_proto_enumTypes = make([]protoimpl.EnumInfo, 3) -var file_system_system_proto_msgTypes = make([]protoimpl.MessageInfo, 18) -var file_system_system_proto_goTypes = []interface{}{ - (RebootMethod)(0), // 0: gnoi.system.RebootMethod - (TracerouteRequest_L4Protocol)(0), // 1: gnoi.system.TracerouteRequest.L4Protocol - (TracerouteResponse_State)(0), // 2: gnoi.system.TracerouteResponse.State - (*SwitchControlProcessorRequest)(nil), // 3: gnoi.system.SwitchControlProcessorRequest - (*SwitchControlProcessorResponse)(nil), // 4: gnoi.system.SwitchControlProcessorResponse - (*RebootRequest)(nil), // 5: gnoi.system.RebootRequest - (*RebootResponse)(nil), // 6: gnoi.system.RebootResponse - (*CancelRebootRequest)(nil), // 7: gnoi.system.CancelRebootRequest - (*CancelRebootResponse)(nil), // 8: gnoi.system.CancelRebootResponse - (*RebootStatusRequest)(nil), // 9: gnoi.system.RebootStatusRequest - (*RebootStatusResponse)(nil), // 10: gnoi.system.RebootStatusResponse - (*TimeRequest)(nil), // 11: gnoi.system.TimeRequest - (*TimeResponse)(nil), // 12: gnoi.system.TimeResponse - (*PingRequest)(nil), // 13: gnoi.system.PingRequest - (*PingResponse)(nil), // 14: gnoi.system.PingResponse - (*TracerouteRequest)(nil), // 15: gnoi.system.TracerouteRequest - (*TracerouteResponse)(nil), // 16: gnoi.system.TracerouteResponse - (*Package)(nil), // 17: gnoi.system.Package - (*SetPackageRequest)(nil), // 18: gnoi.system.SetPackageRequest - (*SetPackageResponse)(nil), // 19: gnoi.system.SetPackageResponse - nil, // 20: gnoi.system.TracerouteResponse.MplsEntry - (*types.Path)(nil), // 21: gnoi.types.Path - (types.L3Protocol)(0), // 22: gnoi.types.L3Protocol - (*common.RemoteDownload)(nil), // 23: gnoi.common.RemoteDownload - (*types.HashType)(nil), // 24: gnoi.types.HashType -} -var file_system_system_proto_depIdxs = []int32{ - 21, // 0: gnoi.system.SwitchControlProcessorRequest.control_processor:type_name -> gnoi.types.Path - 21, // 1: gnoi.system.SwitchControlProcessorResponse.control_processor:type_name -> gnoi.types.Path - 0, // 2: gnoi.system.RebootRequest.method:type_name -> gnoi.system.RebootMethod - 21, // 3: gnoi.system.RebootRequest.subcomponents:type_name -> gnoi.types.Path - 21, // 4: gnoi.system.CancelRebootRequest.subcomponents:type_name -> gnoi.types.Path - 21, // 5: gnoi.system.RebootStatusRequest.subcomponents:type_name -> gnoi.types.Path - 22, // 6: gnoi.system.PingRequest.l3protocol:type_name -> gnoi.types.L3Protocol - 22, // 7: gnoi.system.TracerouteRequest.l3protocol:type_name -> gnoi.types.L3Protocol - 1, // 8: gnoi.system.TracerouteRequest.l4protocol:type_name -> gnoi.system.TracerouteRequest.L4Protocol - 2, // 9: gnoi.system.TracerouteResponse.state:type_name -> gnoi.system.TracerouteResponse.State - 20, // 10: gnoi.system.TracerouteResponse.mpls:type_name -> gnoi.system.TracerouteResponse.MplsEntry - 23, // 11: gnoi.system.Package.remote_download:type_name -> gnoi.common.RemoteDownload - 17, // 12: gnoi.system.SetPackageRequest.package:type_name -> gnoi.system.Package - 24, // 13: gnoi.system.SetPackageRequest.hash:type_name -> gnoi.types.HashType - 13, // 14: gnoi.system.System.Ping:input_type -> gnoi.system.PingRequest - 15, // 15: gnoi.system.System.Traceroute:input_type -> gnoi.system.TracerouteRequest - 11, // 16: gnoi.system.System.Time:input_type -> gnoi.system.TimeRequest - 18, // 17: gnoi.system.System.SetPackage:input_type -> gnoi.system.SetPackageRequest - 3, // 18: gnoi.system.System.SwitchControlProcessor:input_type -> gnoi.system.SwitchControlProcessorRequest - 5, // 19: gnoi.system.System.Reboot:input_type -> gnoi.system.RebootRequest - 9, // 20: gnoi.system.System.RebootStatus:input_type -> gnoi.system.RebootStatusRequest - 7, // 21: gnoi.system.System.CancelReboot:input_type -> gnoi.system.CancelRebootRequest - 14, // 22: gnoi.system.System.Ping:output_type -> gnoi.system.PingResponse - 16, // 23: gnoi.system.System.Traceroute:output_type -> gnoi.system.TracerouteResponse - 12, // 24: gnoi.system.System.Time:output_type -> gnoi.system.TimeResponse - 19, // 25: gnoi.system.System.SetPackage:output_type -> gnoi.system.SetPackageResponse - 4, // 26: gnoi.system.System.SwitchControlProcessor:output_type -> gnoi.system.SwitchControlProcessorResponse - 6, // 27: gnoi.system.System.Reboot:output_type -> gnoi.system.RebootResponse - 10, // 28: gnoi.system.System.RebootStatus:output_type -> gnoi.system.RebootStatusResponse - 8, // 29: gnoi.system.System.CancelReboot:output_type -> gnoi.system.CancelRebootResponse - 22, // [22:30] is the sub-list for method output_type - 14, // [14:22] is the sub-list for method input_type - 14, // [14:14] is the sub-list for extension type_name - 14, // [14:14] is the sub-list for extension extendee - 0, // [0:14] is the sub-list for field type_name -} - -func init() { file_system_system_proto_init() } -func file_system_system_proto_init() { - if File_system_system_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_system_system_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SwitchControlProcessorRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_system_system_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SwitchControlProcessorResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_system_system_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RebootRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_system_system_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RebootResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_system_system_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CancelRebootRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_system_system_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CancelRebootResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_system_system_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RebootStatusRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_system_system_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RebootStatusResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_system_system_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TimeRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_system_system_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TimeResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_system_system_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PingRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_system_system_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PingResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_system_system_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TracerouteRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_system_system_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TracerouteResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_system_system_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Package); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_system_system_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SetPackageRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_system_system_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SetPackageResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } +func (c *systemClient) SetPackage(ctx context.Context, opts ...grpc.CallOption) (System_SetPackageClient, error) { + stream, err := c.cc.NewStream(ctx, &_System_serviceDesc.Streams[2], "/gnoi.system.System/SetPackage", opts...) + if err != nil { + return nil, err } - file_system_system_proto_msgTypes[15].OneofWrappers = []interface{}{ - (*SetPackageRequest_Package)(nil), - (*SetPackageRequest_Contents)(nil), - (*SetPackageRequest_Hash)(nil), + x := &systemSetPackageClient{stream} + return x, nil +} + +type System_SetPackageClient interface { + Send(*SetPackageRequest) error + CloseAndRecv() (*SetPackageResponse, error) + grpc.ClientStream +} + +type systemSetPackageClient struct { + grpc.ClientStream +} + +func (x *systemSetPackageClient) Send(m *SetPackageRequest) error { + return x.ClientStream.SendMsg(m) +} + +func (x *systemSetPackageClient) CloseAndRecv() (*SetPackageResponse, error) { + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + m := new(SetPackageResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *systemClient) SwitchControlProcessor(ctx context.Context, in *SwitchControlProcessorRequest, opts ...grpc.CallOption) (*SwitchControlProcessorResponse, error) { + out := new(SwitchControlProcessorResponse) + err := c.cc.Invoke(ctx, "/gnoi.system.System/SwitchControlProcessor", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *systemClient) Reboot(ctx context.Context, in *RebootRequest, opts ...grpc.CallOption) (*RebootResponse, error) { + out := new(RebootResponse) + err := c.cc.Invoke(ctx, "/gnoi.system.System/Reboot", in, out, opts...) + if err != nil { + return nil, err } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_system_system_proto_rawDesc, - NumEnums: 3, - NumMessages: 18, - NumExtensions: 0, - NumServices: 1, + return out, nil +} + +func (c *systemClient) RebootStatus(ctx context.Context, in *RebootStatusRequest, opts ...grpc.CallOption) (*RebootStatusResponse, error) { + out := new(RebootStatusResponse) + err := c.cc.Invoke(ctx, "/gnoi.system.System/RebootStatus", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *systemClient) CancelReboot(ctx context.Context, in *CancelRebootRequest, opts ...grpc.CallOption) (*CancelRebootResponse, error) { + out := new(CancelRebootResponse) + err := c.cc.Invoke(ctx, "/gnoi.system.System/CancelReboot", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// SystemServer is the server API for System service. +type SystemServer interface { + // Ping executes the ping command on the target and streams back + // the results. Some targets may not stream any results until all + // results are in. If a packet count is not explicitly provided, + // 5 is used. + Ping(*PingRequest, System_PingServer) error + // Traceroute executes the traceroute command on the target and streams back + // the results. Some targets may not stream any results until all + // results are in. If a hop count is not explicitly provided, + // 30 is used. + Traceroute(*TracerouteRequest, System_TracerouteServer) error + // Time returns the current time on the target. Time is typically used to + // test if a target is actually responding. + Time(context.Context, *TimeRequest) (*TimeResponse, error) + // SetPackage places a software package (possibly including bootable images) + // on the target. The file is sent in sequential messages, each message + // up to 64KB of data. A final message must be sent that includes the hash + // of the data sent. An error is returned if the location does not exist or + // there is an error writing the data. If no checksum is received, the target + // must assume the operation is incomplete and remove the partially + // transmitted file. The target should initially write the file to a temporary + // location so a failure does not destroy the original file. + SetPackage(System_SetPackageServer) error + // SwitchControlProcessor will switch from the current route processor to the + // provided route processor. If the current route processor is the same as the + // one provided it is a NOOP. If the target does not exist an error is + // returned. + SwitchControlProcessor(context.Context, *SwitchControlProcessorRequest) (*SwitchControlProcessorResponse, error) + // Reboot causes the target to reboot, possibly at some point in the future. + // If the method of reboot is not supported then the Reboot RPC will fail. + // If the reboot is immediate the command will block until the subcomponents + // have restarted. + // If a reboot on the active control processor is pending the service must + // reject all other reboot requests. + // If a reboot request for active control processor is initiated with other + // pending reboot requests it must be rejected. + Reboot(context.Context, *RebootRequest) (*RebootResponse, error) + // RebootStatus returns the status of reboot for the target. + RebootStatus(context.Context, *RebootStatusRequest) (*RebootStatusResponse, error) + // CancelReboot cancels any pending reboot request. + CancelReboot(context.Context, *CancelRebootRequest) (*CancelRebootResponse, error) +} + +func RegisterSystemServer(s *grpc.Server, srv SystemServer) { + s.RegisterService(&_System_serviceDesc, srv) +} + +func _System_Ping_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(PingRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(SystemServer).Ping(m, &systemPingServer{stream}) +} + +type System_PingServer interface { + Send(*PingResponse) error + grpc.ServerStream +} + +type systemPingServer struct { + grpc.ServerStream +} + +func (x *systemPingServer) Send(m *PingResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _System_Traceroute_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(TracerouteRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(SystemServer).Traceroute(m, &systemTracerouteServer{stream}) +} + +type System_TracerouteServer interface { + Send(*TracerouteResponse) error + grpc.ServerStream +} + +type systemTracerouteServer struct { + grpc.ServerStream +} + +func (x *systemTracerouteServer) Send(m *TracerouteResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _System_Time_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TimeRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SystemServer).Time(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gnoi.system.System/Time", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SystemServer).Time(ctx, req.(*TimeRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _System_SetPackage_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(SystemServer).SetPackage(&systemSetPackageServer{stream}) +} + +type System_SetPackageServer interface { + SendAndClose(*SetPackageResponse) error + Recv() (*SetPackageRequest, error) + grpc.ServerStream +} + +type systemSetPackageServer struct { + grpc.ServerStream +} + +func (x *systemSetPackageServer) SendAndClose(m *SetPackageResponse) error { + return x.ServerStream.SendMsg(m) +} + +func (x *systemSetPackageServer) Recv() (*SetPackageRequest, error) { + m := new(SetPackageRequest) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func _System_SwitchControlProcessor_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SwitchControlProcessorRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SystemServer).SwitchControlProcessor(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gnoi.system.System/SwitchControlProcessor", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SystemServer).SwitchControlProcessor(ctx, req.(*SwitchControlProcessorRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _System_Reboot_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RebootRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SystemServer).Reboot(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gnoi.system.System/Reboot", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SystemServer).Reboot(ctx, req.(*RebootRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _System_RebootStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RebootStatusRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SystemServer).RebootStatus(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gnoi.system.System/RebootStatus", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SystemServer).RebootStatus(ctx, req.(*RebootStatusRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _System_CancelReboot_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CancelRebootRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SystemServer).CancelReboot(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gnoi.system.System/CancelReboot", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SystemServer).CancelReboot(ctx, req.(*CancelRebootRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _System_serviceDesc = grpc.ServiceDesc{ + ServiceName: "gnoi.system.System", + HandlerType: (*SystemServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "Time", + Handler: _System_Time_Handler, + }, + { + MethodName: "SwitchControlProcessor", + Handler: _System_SwitchControlProcessor_Handler, + }, + { + MethodName: "Reboot", + Handler: _System_Reboot_Handler, + }, + { + MethodName: "RebootStatus", + Handler: _System_RebootStatus_Handler, + }, + { + MethodName: "CancelReboot", + Handler: _System_CancelReboot_Handler, + }, + }, + Streams: []grpc.StreamDesc{ + { + StreamName: "Ping", + Handler: _System_Ping_Handler, + ServerStreams: true, + }, + { + StreamName: "Traceroute", + Handler: _System_Traceroute_Handler, + ServerStreams: true, + }, + { + StreamName: "SetPackage", + Handler: _System_SetPackage_Handler, + ClientStreams: true, }, - GoTypes: file_system_system_proto_goTypes, - DependencyIndexes: file_system_system_proto_depIdxs, - EnumInfos: file_system_system_proto_enumTypes, - MessageInfos: file_system_system_proto_msgTypes, - }.Build() - File_system_system_proto = out.File - file_system_system_proto_rawDesc = nil - file_system_system_proto_goTypes = nil - file_system_system_proto_depIdxs = nil + }, + Metadata: "system/system.proto", } diff --git a/system/system.proto b/system/system.proto index e2e6ca91..143c0111 100644 --- a/system/system.proto +++ b/system/system.proto @@ -27,8 +27,6 @@ package gnoi.system; import "github.com/openconfig/gnoi/common/common.proto"; import "github.com/openconfig/gnoi/types/types.proto"; -option go_package = "github.com/openconfig/gnoi/system"; - option (types.gnoi_version) = "1.0.0"; // The gNOI service is a collection of operational RPC's that allow for the diff --git a/system/system_grpc.pb.go b/system/system_grpc.pb.go deleted file mode 100644 index 91d347b7..00000000 --- a/system/system_grpc.pb.go +++ /dev/null @@ -1,506 +0,0 @@ -// Code generated by protoc-gen-go-grpc. DO NOT EDIT. - -package system - -import ( - context "context" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" -) - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 - -// SystemClient is the client API for System service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. -type SystemClient interface { - // Ping executes the ping command on the target and streams back - // the results. Some targets may not stream any results until all - // results are in. If a packet count is not explicitly provided, - // 5 is used. - Ping(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (System_PingClient, error) - // Traceroute executes the traceroute command on the target and streams back - // the results. Some targets may not stream any results until all - // results are in. If a hop count is not explicitly provided, - // 30 is used. - Traceroute(ctx context.Context, in *TracerouteRequest, opts ...grpc.CallOption) (System_TracerouteClient, error) - // Time returns the current time on the target. Time is typically used to - // test if a target is actually responding. - Time(ctx context.Context, in *TimeRequest, opts ...grpc.CallOption) (*TimeResponse, error) - // SetPackage places a software package (possibly including bootable images) - // on the target. The file is sent in sequential messages, each message - // up to 64KB of data. A final message must be sent that includes the hash - // of the data sent. An error is returned if the location does not exist or - // there is an error writing the data. If no checksum is received, the target - // must assume the operation is incomplete and remove the partially - // transmitted file. The target should initially write the file to a temporary - // location so a failure does not destroy the original file. - SetPackage(ctx context.Context, opts ...grpc.CallOption) (System_SetPackageClient, error) - // SwitchControlProcessor will switch from the current route processor to the - // provided route processor. If the current route processor is the same as the - // one provided it is a NOOP. If the target does not exist an error is - // returned. - SwitchControlProcessor(ctx context.Context, in *SwitchControlProcessorRequest, opts ...grpc.CallOption) (*SwitchControlProcessorResponse, error) - // Reboot causes the target to reboot, possibly at some point in the future. - // If the method of reboot is not supported then the Reboot RPC will fail. - // If the reboot is immediate the command will block until the subcomponents - // have restarted. - // If a reboot on the active control processor is pending the service must - // reject all other reboot requests. - // If a reboot request for active control processor is initiated with other - // pending reboot requests it must be rejected. - Reboot(ctx context.Context, in *RebootRequest, opts ...grpc.CallOption) (*RebootResponse, error) - // RebootStatus returns the status of reboot for the target. - RebootStatus(ctx context.Context, in *RebootStatusRequest, opts ...grpc.CallOption) (*RebootStatusResponse, error) - // CancelReboot cancels any pending reboot request. - CancelReboot(ctx context.Context, in *CancelRebootRequest, opts ...grpc.CallOption) (*CancelRebootResponse, error) -} - -type systemClient struct { - cc grpc.ClientConnInterface -} - -func NewSystemClient(cc grpc.ClientConnInterface) SystemClient { - return &systemClient{cc} -} - -func (c *systemClient) Ping(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (System_PingClient, error) { - stream, err := c.cc.NewStream(ctx, &System_ServiceDesc.Streams[0], "/gnoi.system.System/Ping", opts...) - if err != nil { - return nil, err - } - x := &systemPingClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type System_PingClient interface { - Recv() (*PingResponse, error) - grpc.ClientStream -} - -type systemPingClient struct { - grpc.ClientStream -} - -func (x *systemPingClient) Recv() (*PingResponse, error) { - m := new(PingResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *systemClient) Traceroute(ctx context.Context, in *TracerouteRequest, opts ...grpc.CallOption) (System_TracerouteClient, error) { - stream, err := c.cc.NewStream(ctx, &System_ServiceDesc.Streams[1], "/gnoi.system.System/Traceroute", opts...) - if err != nil { - return nil, err - } - x := &systemTracerouteClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type System_TracerouteClient interface { - Recv() (*TracerouteResponse, error) - grpc.ClientStream -} - -type systemTracerouteClient struct { - grpc.ClientStream -} - -func (x *systemTracerouteClient) Recv() (*TracerouteResponse, error) { - m := new(TracerouteResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *systemClient) Time(ctx context.Context, in *TimeRequest, opts ...grpc.CallOption) (*TimeResponse, error) { - out := new(TimeResponse) - err := c.cc.Invoke(ctx, "/gnoi.system.System/Time", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *systemClient) SetPackage(ctx context.Context, opts ...grpc.CallOption) (System_SetPackageClient, error) { - stream, err := c.cc.NewStream(ctx, &System_ServiceDesc.Streams[2], "/gnoi.system.System/SetPackage", opts...) - if err != nil { - return nil, err - } - x := &systemSetPackageClient{stream} - return x, nil -} - -type System_SetPackageClient interface { - Send(*SetPackageRequest) error - CloseAndRecv() (*SetPackageResponse, error) - grpc.ClientStream -} - -type systemSetPackageClient struct { - grpc.ClientStream -} - -func (x *systemSetPackageClient) Send(m *SetPackageRequest) error { - return x.ClientStream.SendMsg(m) -} - -func (x *systemSetPackageClient) CloseAndRecv() (*SetPackageResponse, error) { - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - m := new(SetPackageResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *systemClient) SwitchControlProcessor(ctx context.Context, in *SwitchControlProcessorRequest, opts ...grpc.CallOption) (*SwitchControlProcessorResponse, error) { - out := new(SwitchControlProcessorResponse) - err := c.cc.Invoke(ctx, "/gnoi.system.System/SwitchControlProcessor", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *systemClient) Reboot(ctx context.Context, in *RebootRequest, opts ...grpc.CallOption) (*RebootResponse, error) { - out := new(RebootResponse) - err := c.cc.Invoke(ctx, "/gnoi.system.System/Reboot", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *systemClient) RebootStatus(ctx context.Context, in *RebootStatusRequest, opts ...grpc.CallOption) (*RebootStatusResponse, error) { - out := new(RebootStatusResponse) - err := c.cc.Invoke(ctx, "/gnoi.system.System/RebootStatus", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *systemClient) CancelReboot(ctx context.Context, in *CancelRebootRequest, opts ...grpc.CallOption) (*CancelRebootResponse, error) { - out := new(CancelRebootResponse) - err := c.cc.Invoke(ctx, "/gnoi.system.System/CancelReboot", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// SystemServer is the server API for System service. -// All implementations must embed UnimplementedSystemServer -// for forward compatibility -type SystemServer interface { - // Ping executes the ping command on the target and streams back - // the results. Some targets may not stream any results until all - // results are in. If a packet count is not explicitly provided, - // 5 is used. - Ping(*PingRequest, System_PingServer) error - // Traceroute executes the traceroute command on the target and streams back - // the results. Some targets may not stream any results until all - // results are in. If a hop count is not explicitly provided, - // 30 is used. - Traceroute(*TracerouteRequest, System_TracerouteServer) error - // Time returns the current time on the target. Time is typically used to - // test if a target is actually responding. - Time(context.Context, *TimeRequest) (*TimeResponse, error) - // SetPackage places a software package (possibly including bootable images) - // on the target. The file is sent in sequential messages, each message - // up to 64KB of data. A final message must be sent that includes the hash - // of the data sent. An error is returned if the location does not exist or - // there is an error writing the data. If no checksum is received, the target - // must assume the operation is incomplete and remove the partially - // transmitted file. The target should initially write the file to a temporary - // location so a failure does not destroy the original file. - SetPackage(System_SetPackageServer) error - // SwitchControlProcessor will switch from the current route processor to the - // provided route processor. If the current route processor is the same as the - // one provided it is a NOOP. If the target does not exist an error is - // returned. - SwitchControlProcessor(context.Context, *SwitchControlProcessorRequest) (*SwitchControlProcessorResponse, error) - // Reboot causes the target to reboot, possibly at some point in the future. - // If the method of reboot is not supported then the Reboot RPC will fail. - // If the reboot is immediate the command will block until the subcomponents - // have restarted. - // If a reboot on the active control processor is pending the service must - // reject all other reboot requests. - // If a reboot request for active control processor is initiated with other - // pending reboot requests it must be rejected. - Reboot(context.Context, *RebootRequest) (*RebootResponse, error) - // RebootStatus returns the status of reboot for the target. - RebootStatus(context.Context, *RebootStatusRequest) (*RebootStatusResponse, error) - // CancelReboot cancels any pending reboot request. - CancelReboot(context.Context, *CancelRebootRequest) (*CancelRebootResponse, error) - mustEmbedUnimplementedSystemServer() -} - -// UnimplementedSystemServer must be embedded to have forward compatible implementations. -type UnimplementedSystemServer struct { -} - -func (UnimplementedSystemServer) Ping(*PingRequest, System_PingServer) error { - return status.Errorf(codes.Unimplemented, "method Ping not implemented") -} -func (UnimplementedSystemServer) Traceroute(*TracerouteRequest, System_TracerouteServer) error { - return status.Errorf(codes.Unimplemented, "method Traceroute not implemented") -} -func (UnimplementedSystemServer) Time(context.Context, *TimeRequest) (*TimeResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Time not implemented") -} -func (UnimplementedSystemServer) SetPackage(System_SetPackageServer) error { - return status.Errorf(codes.Unimplemented, "method SetPackage not implemented") -} -func (UnimplementedSystemServer) SwitchControlProcessor(context.Context, *SwitchControlProcessorRequest) (*SwitchControlProcessorResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SwitchControlProcessor not implemented") -} -func (UnimplementedSystemServer) Reboot(context.Context, *RebootRequest) (*RebootResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Reboot not implemented") -} -func (UnimplementedSystemServer) RebootStatus(context.Context, *RebootStatusRequest) (*RebootStatusResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RebootStatus not implemented") -} -func (UnimplementedSystemServer) CancelReboot(context.Context, *CancelRebootRequest) (*CancelRebootResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CancelReboot not implemented") -} -func (UnimplementedSystemServer) mustEmbedUnimplementedSystemServer() {} - -// UnsafeSystemServer may be embedded to opt out of forward compatibility for this service. -// Use of this interface is not recommended, as added methods to SystemServer will -// result in compilation errors. -type UnsafeSystemServer interface { - mustEmbedUnimplementedSystemServer() -} - -func RegisterSystemServer(s grpc.ServiceRegistrar, srv SystemServer) { - s.RegisterService(&System_ServiceDesc, srv) -} - -func _System_Ping_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(PingRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(SystemServer).Ping(m, &systemPingServer{stream}) -} - -type System_PingServer interface { - Send(*PingResponse) error - grpc.ServerStream -} - -type systemPingServer struct { - grpc.ServerStream -} - -func (x *systemPingServer) Send(m *PingResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _System_Traceroute_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(TracerouteRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(SystemServer).Traceroute(m, &systemTracerouteServer{stream}) -} - -type System_TracerouteServer interface { - Send(*TracerouteResponse) error - grpc.ServerStream -} - -type systemTracerouteServer struct { - grpc.ServerStream -} - -func (x *systemTracerouteServer) Send(m *TracerouteResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _System_Time_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TimeRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(SystemServer).Time(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.system.System/Time", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(SystemServer).Time(ctx, req.(*TimeRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _System_SetPackage_Handler(srv interface{}, stream grpc.ServerStream) error { - return srv.(SystemServer).SetPackage(&systemSetPackageServer{stream}) -} - -type System_SetPackageServer interface { - SendAndClose(*SetPackageResponse) error - Recv() (*SetPackageRequest, error) - grpc.ServerStream -} - -type systemSetPackageServer struct { - grpc.ServerStream -} - -func (x *systemSetPackageServer) SendAndClose(m *SetPackageResponse) error { - return x.ServerStream.SendMsg(m) -} - -func (x *systemSetPackageServer) Recv() (*SetPackageRequest, error) { - m := new(SetPackageRequest) - if err := x.ServerStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func _System_SwitchControlProcessor_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SwitchControlProcessorRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(SystemServer).SwitchControlProcessor(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.system.System/SwitchControlProcessor", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(SystemServer).SwitchControlProcessor(ctx, req.(*SwitchControlProcessorRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _System_Reboot_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RebootRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(SystemServer).Reboot(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.system.System/Reboot", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(SystemServer).Reboot(ctx, req.(*RebootRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _System_RebootStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RebootStatusRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(SystemServer).RebootStatus(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.system.System/RebootStatus", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(SystemServer).RebootStatus(ctx, req.(*RebootStatusRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _System_CancelReboot_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CancelRebootRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(SystemServer).CancelReboot(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.system.System/CancelReboot", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(SystemServer).CancelReboot(ctx, req.(*CancelRebootRequest)) - } - return interceptor(ctx, in, info, handler) -} - -// System_ServiceDesc is the grpc.ServiceDesc for System service. -// It's only intended for direct use with grpc.RegisterService, -// and not to be introspected or modified (even as a copy) -var System_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "gnoi.system.System", - HandlerType: (*SystemServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "Time", - Handler: _System_Time_Handler, - }, - { - MethodName: "SwitchControlProcessor", - Handler: _System_SwitchControlProcessor_Handler, - }, - { - MethodName: "Reboot", - Handler: _System_Reboot_Handler, - }, - { - MethodName: "RebootStatus", - Handler: _System_RebootStatus_Handler, - }, - { - MethodName: "CancelReboot", - Handler: _System_CancelReboot_Handler, - }, - }, - Streams: []grpc.StreamDesc{ - { - StreamName: "Ping", - Handler: _System_Ping_Handler, - ServerStreams: true, - }, - { - StreamName: "Traceroute", - Handler: _System_Traceroute_Handler, - ServerStreams: true, - }, - { - StreamName: "SetPackage", - Handler: _System_SetPackage_Handler, - ClientStreams: true, - }, - }, - Metadata: "system/system.proto", -} diff --git a/types/types.pb.go b/types/types.pb.go index 55fb31a4..3b6efb58 100644 --- a/types/types.pb.go +++ b/types/types.pb.go @@ -1,41 +1,25 @@ -// -// Copyright 2017 Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// - // Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.26.0 -// protoc v3.15.7 // source: types/types.proto -package types +package gnoi_types import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - descriptorpb "google.golang.org/protobuf/types/descriptorpb" - reflect "reflect" - sync "sync" + fmt "fmt" + proto "github.com/golang/protobuf/proto" + descriptor "github.com/golang/protobuf/protoc-gen-go/descriptor" + math "math" ) -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) +// 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 // Generic Layer 3 Protocol enumeration. type L3Protocol int32 @@ -46,45 +30,24 @@ const ( L3Protocol_IPV6 L3Protocol = 2 ) -// Enum value maps for L3Protocol. -var ( - L3Protocol_name = map[int32]string{ - 0: "UNSPECIFIED", - 1: "IPV4", - 2: "IPV6", - } - L3Protocol_value = map[string]int32{ - "UNSPECIFIED": 0, - "IPV4": 1, - "IPV6": 2, - } -) - -func (x L3Protocol) Enum() *L3Protocol { - p := new(L3Protocol) - *p = x - return p +var L3Protocol_name = map[int32]string{ + 0: "UNSPECIFIED", + 1: "IPV4", + 2: "IPV6", } -func (x L3Protocol) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (L3Protocol) Descriptor() protoreflect.EnumDescriptor { - return file_types_types_proto_enumTypes[0].Descriptor() +var L3Protocol_value = map[string]int32{ + "UNSPECIFIED": 0, + "IPV4": 1, + "IPV6": 2, } -func (L3Protocol) Type() protoreflect.EnumType { - return &file_types_types_proto_enumTypes[0] -} - -func (x L3Protocol) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) +func (x L3Protocol) String() string { + return proto.EnumName(L3Protocol_name, int32(x)) } -// Deprecated: Use L3Protocol.Descriptor instead. func (L3Protocol) EnumDescriptor() ([]byte, []int) { - return file_types_types_proto_rawDescGZIP(), []int{0} + return fileDescriptor_2c0f90c600ad7e2e, []int{0} } type HashType_HashMethod int32 @@ -96,102 +59,73 @@ const ( HashType_MD5 HashType_HashMethod = 3 ) -// Enum value maps for HashType_HashMethod. -var ( - HashType_HashMethod_name = map[int32]string{ - 0: "UNSPECIFIED", - 1: "SHA256", - 2: "SHA512", - 3: "MD5", - } - HashType_HashMethod_value = map[string]int32{ - "UNSPECIFIED": 0, - "SHA256": 1, - "SHA512": 2, - "MD5": 3, - } -) - -func (x HashType_HashMethod) Enum() *HashType_HashMethod { - p := new(HashType_HashMethod) - *p = x - return p -} - -func (x HashType_HashMethod) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (HashType_HashMethod) Descriptor() protoreflect.EnumDescriptor { - return file_types_types_proto_enumTypes[1].Descriptor() +var HashType_HashMethod_name = map[int32]string{ + 0: "UNSPECIFIED", + 1: "SHA256", + 2: "SHA512", + 3: "MD5", } -func (HashType_HashMethod) Type() protoreflect.EnumType { - return &file_types_types_proto_enumTypes[1] +var HashType_HashMethod_value = map[string]int32{ + "UNSPECIFIED": 0, + "SHA256": 1, + "SHA512": 2, + "MD5": 3, } -func (x HashType_HashMethod) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) +func (x HashType_HashMethod) String() string { + return proto.EnumName(HashType_HashMethod_name, int32(x)) } -// Deprecated: Use HashType_HashMethod.Descriptor instead. func (HashType_HashMethod) EnumDescriptor() ([]byte, []int) { - return file_types_types_proto_rawDescGZIP(), []int{0, 0} + return fileDescriptor_2c0f90c600ad7e2e, []int{0, 0} } // HashType defines the valid hash methods for data verification. UNSPECIFIED // should be treated an error. type HashType struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Method HashType_HashMethod `protobuf:"varint,1,opt,name=method,proto3,enum=gnoi.types.HashType_HashMethod" json:"method,omitempty"` - Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` + Method HashType_HashMethod `protobuf:"varint,1,opt,name=method,proto3,enum=gnoi.types.HashType_HashMethod" json:"method,omitempty"` + Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *HashType) Reset() { - *x = HashType{} - if protoimpl.UnsafeEnabled { - mi := &file_types_types_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *HashType) Reset() { *m = HashType{} } +func (m *HashType) String() string { return proto.CompactTextString(m) } +func (*HashType) ProtoMessage() {} +func (*HashType) Descriptor() ([]byte, []int) { + return fileDescriptor_2c0f90c600ad7e2e, []int{0} } -func (x *HashType) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *HashType) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_HashType.Unmarshal(m, b) } - -func (*HashType) ProtoMessage() {} - -func (x *HashType) ProtoReflect() protoreflect.Message { - mi := &file_types_types_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *HashType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_HashType.Marshal(b, m, deterministic) } - -// Deprecated: Use HashType.ProtoReflect.Descriptor instead. -func (*HashType) Descriptor() ([]byte, []int) { - return file_types_types_proto_rawDescGZIP(), []int{0} +func (m *HashType) XXX_Merge(src proto.Message) { + xxx_messageInfo_HashType.Merge(m, src) +} +func (m *HashType) XXX_Size() int { + return xxx_messageInfo_HashType.Size(m) } +func (m *HashType) XXX_DiscardUnknown() { + xxx_messageInfo_HashType.DiscardUnknown(m) +} + +var xxx_messageInfo_HashType proto.InternalMessageInfo -func (x *HashType) GetMethod() HashType_HashMethod { - if x != nil { - return x.Method +func (m *HashType) GetMethod() HashType_HashMethod { + if m != nil { + return m.Method } return HashType_UNSPECIFIED } -func (x *HashType) GetHash() []byte { - if x != nil { - return x.Hash +func (m *HashType) GetHash() []byte { + if m != nil { + return m.Hash } return nil } @@ -201,56 +135,48 @@ func (x *HashType) GetHash() []byte { // associated attributes. // Reference: gNMI Specification Section 2.2.2. type Path struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Origin string `protobuf:"bytes,2,opt,name=origin,proto3" json:"origin,omitempty"` // Label to disambiguate path. - Elem []*PathElem `protobuf:"bytes,3,rep,name=elem,proto3" json:"elem,omitempty"` // Elements of the path. + Origin string `protobuf:"bytes,2,opt,name=origin,proto3" json:"origin,omitempty"` + Elem []*PathElem `protobuf:"bytes,3,rep,name=elem,proto3" json:"elem,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *Path) Reset() { - *x = Path{} - if protoimpl.UnsafeEnabled { - mi := &file_types_types_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *Path) Reset() { *m = Path{} } +func (m *Path) String() string { return proto.CompactTextString(m) } +func (*Path) ProtoMessage() {} +func (*Path) Descriptor() ([]byte, []int) { + return fileDescriptor_2c0f90c600ad7e2e, []int{1} } -func (x *Path) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *Path) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Path.Unmarshal(m, b) } - -func (*Path) ProtoMessage() {} - -func (x *Path) ProtoReflect() protoreflect.Message { - mi := &file_types_types_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *Path) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Path.Marshal(b, m, deterministic) } - -// Deprecated: Use Path.ProtoReflect.Descriptor instead. -func (*Path) Descriptor() ([]byte, []int) { - return file_types_types_proto_rawDescGZIP(), []int{1} +func (m *Path) XXX_Merge(src proto.Message) { + xxx_messageInfo_Path.Merge(m, src) +} +func (m *Path) XXX_Size() int { + return xxx_messageInfo_Path.Size(m) +} +func (m *Path) XXX_DiscardUnknown() { + xxx_messageInfo_Path.DiscardUnknown(m) } -func (x *Path) GetOrigin() string { - if x != nil { - return x.Origin +var xxx_messageInfo_Path proto.InternalMessageInfo + +func (m *Path) GetOrigin() string { + if m != nil { + return m.Origin } return "" } -func (x *Path) GetElem() []*PathElem { - if x != nil { - return x.Elem +func (m *Path) GetElem() []*PathElem { + if m != nil { + return m.Elem } return nil } @@ -259,112 +185,112 @@ func (x *Path) GetElem() []*PathElem { // that may be associated with it. // Reference: gNMI Specification Section 2.2.2. type PathElem struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The name of the element in the path. - Key map[string]string `protobuf:"bytes,2,rep,name=key,proto3" json:"key,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // Map of key (attribute) name to value. + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Key map[string]string `protobuf:"bytes,2,rep,name=key,proto3" json:"key,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *PathElem) Reset() { - *x = PathElem{} - if protoimpl.UnsafeEnabled { - mi := &file_types_types_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *PathElem) Reset() { *m = PathElem{} } +func (m *PathElem) String() string { return proto.CompactTextString(m) } +func (*PathElem) ProtoMessage() {} +func (*PathElem) Descriptor() ([]byte, []int) { + return fileDescriptor_2c0f90c600ad7e2e, []int{2} } -func (x *PathElem) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *PathElem) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PathElem.Unmarshal(m, b) } - -func (*PathElem) ProtoMessage() {} - -func (x *PathElem) ProtoReflect() protoreflect.Message { - mi := &file_types_types_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *PathElem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PathElem.Marshal(b, m, deterministic) } - -// Deprecated: Use PathElem.ProtoReflect.Descriptor instead. -func (*PathElem) Descriptor() ([]byte, []int) { - return file_types_types_proto_rawDescGZIP(), []int{2} +func (m *PathElem) XXX_Merge(src proto.Message) { + xxx_messageInfo_PathElem.Merge(m, src) +} +func (m *PathElem) XXX_Size() int { + return xxx_messageInfo_PathElem.Size(m) } +func (m *PathElem) XXX_DiscardUnknown() { + xxx_messageInfo_PathElem.DiscardUnknown(m) +} + +var xxx_messageInfo_PathElem proto.InternalMessageInfo -func (x *PathElem) GetName() string { - if x != nil { - return x.Name +func (m *PathElem) GetName() string { + if m != nil { + return m.Name } return "" } -func (x *PathElem) GetKey() map[string]string { - if x != nil { - return x.Key +func (m *PathElem) GetKey() map[string]string { + if m != nil { + return m.Key } return nil } // Credentials defines credentials needed to perform authentication on a device. type Credentials struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` - // Types that are assignable to Password: + // Types that are valid to be assigned to Password: // *Credentials_Cleartext // *Credentials_Hashed - Password isCredentials_Password `protobuf_oneof:"password"` + Password isCredentials_Password `protobuf_oneof:"password"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *Credentials) Reset() { - *x = Credentials{} - if protoimpl.UnsafeEnabled { - mi := &file_types_types_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *Credentials) Reset() { *m = Credentials{} } +func (m *Credentials) String() string { return proto.CompactTextString(m) } +func (*Credentials) ProtoMessage() {} +func (*Credentials) Descriptor() ([]byte, []int) { + return fileDescriptor_2c0f90c600ad7e2e, []int{3} } -func (x *Credentials) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *Credentials) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Credentials.Unmarshal(m, b) +} +func (m *Credentials) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Credentials.Marshal(b, m, deterministic) +} +func (m *Credentials) XXX_Merge(src proto.Message) { + xxx_messageInfo_Credentials.Merge(m, src) +} +func (m *Credentials) XXX_Size() int { + return xxx_messageInfo_Credentials.Size(m) +} +func (m *Credentials) XXX_DiscardUnknown() { + xxx_messageInfo_Credentials.DiscardUnknown(m) } -func (*Credentials) ProtoMessage() {} +var xxx_messageInfo_Credentials proto.InternalMessageInfo -func (x *Credentials) ProtoReflect() protoreflect.Message { - mi := &file_types_types_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms +func (m *Credentials) GetUsername() string { + if m != nil { + return m.Username } - return mi.MessageOf(x) + return "" } -// Deprecated: Use Credentials.ProtoReflect.Descriptor instead. -func (*Credentials) Descriptor() ([]byte, []int) { - return file_types_types_proto_rawDescGZIP(), []int{3} +type isCredentials_Password interface { + isCredentials_Password() } -func (x *Credentials) GetUsername() string { - if x != nil { - return x.Username - } - return "" +type Credentials_Cleartext struct { + Cleartext string `protobuf:"bytes,2,opt,name=cleartext,proto3,oneof"` } +type Credentials_Hashed struct { + Hashed *HashType `protobuf:"bytes,3,opt,name=hashed,proto3,oneof"` +} + +func (*Credentials_Cleartext) isCredentials_Password() {} + +func (*Credentials_Hashed) isCredentials_Password() {} + func (m *Credentials) GetPassword() isCredentials_Password { if m != nil { return m.Password @@ -372,220 +298,140 @@ func (m *Credentials) GetPassword() isCredentials_Password { return nil } -func (x *Credentials) GetCleartext() string { - if x, ok := x.GetPassword().(*Credentials_Cleartext); ok { +func (m *Credentials) GetCleartext() string { + if x, ok := m.GetPassword().(*Credentials_Cleartext); ok { return x.Cleartext } return "" } -func (x *Credentials) GetHashed() *HashType { - if x, ok := x.GetPassword().(*Credentials_Hashed); ok { +func (m *Credentials) GetHashed() *HashType { + if x, ok := m.GetPassword().(*Credentials_Hashed); ok { return x.Hashed } return nil } -type isCredentials_Password interface { - isCredentials_Password() -} - -type Credentials_Cleartext struct { - Cleartext string `protobuf:"bytes,2,opt,name=cleartext,proto3,oneof"` +// XXX_OneofFuncs is for the internal use of the proto package. +func (*Credentials) 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 _Credentials_OneofMarshaler, _Credentials_OneofUnmarshaler, _Credentials_OneofSizer, []interface{}{ + (*Credentials_Cleartext)(nil), + (*Credentials_Hashed)(nil), + } } -type Credentials_Hashed struct { - Hashed *HashType `protobuf:"bytes,3,opt,name=hashed,proto3,oneof"` +func _Credentials_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*Credentials) + // password + switch x := m.Password.(type) { + case *Credentials_Cleartext: + b.EncodeVarint(2<<3 | proto.WireBytes) + b.EncodeStringBytes(x.Cleartext) + case *Credentials_Hashed: + b.EncodeVarint(3<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Hashed); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("Credentials.Password has unexpected type %T", x) + } + return nil } -func (*Credentials_Cleartext) isCredentials_Password() {} - -func (*Credentials_Hashed) isCredentials_Password() {} - -var file_types_types_proto_extTypes = []protoimpl.ExtensionInfo{ - { - ExtendedType: (*descriptorpb.FileOptions)(nil), - ExtensionType: (*string)(nil), - Field: 1002, - Name: "gnoi.types.gnoi_version", - Tag: "bytes,1002,opt,name=gnoi_version", - Filename: "types/types.proto", - }, -} - -// Extension fields to descriptorpb.FileOptions. -var ( - // The gNOI service semantic version. - // - // optional string gnoi_version = 1002; - E_GnoiVersion = &file_types_types_proto_extTypes[0] -) - -var File_types_types_proto protoreflect.FileDescriptor - -var file_types_types_proto_rawDesc = []byte{ - 0x0a, 0x11, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x1a, - 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x22, 0x97, 0x01, 0x0a, 0x08, 0x48, 0x61, 0x73, 0x68, 0x54, 0x79, 0x70, 0x65, 0x12, 0x37, - 0x0a, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, - 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x48, 0x61, 0x73, 0x68, - 0x54, 0x79, 0x70, 0x65, 0x2e, 0x48, 0x61, 0x73, 0x68, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, - 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x61, 0x73, 0x68, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x68, 0x61, 0x73, 0x68, 0x22, 0x3e, 0x0a, 0x0a, 0x48, - 0x61, 0x73, 0x68, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x0f, 0x0a, 0x0b, 0x55, 0x4e, 0x53, - 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x48, - 0x41, 0x32, 0x35, 0x36, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x48, 0x41, 0x35, 0x31, 0x32, - 0x10, 0x02, 0x12, 0x07, 0x0a, 0x03, 0x4d, 0x44, 0x35, 0x10, 0x03, 0x22, 0x48, 0x0a, 0x04, 0x50, - 0x61, 0x74, 0x68, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x06, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x12, 0x28, 0x0a, 0x04, 0x65, - 0x6c, 0x65, 0x6d, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6e, 0x6f, 0x69, - 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x50, 0x61, 0x74, 0x68, 0x45, 0x6c, 0x65, 0x6d, 0x52, - 0x04, 0x65, 0x6c, 0x65, 0x6d, 0x22, 0x87, 0x01, 0x0a, 0x08, 0x50, 0x61, 0x74, 0x68, 0x45, 0x6c, - 0x65, 0x6d, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x2f, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, - 0x2e, 0x50, 0x61, 0x74, 0x68, 0x45, 0x6c, 0x65, 0x6d, 0x2e, 0x4b, 0x65, 0x79, 0x45, 0x6e, 0x74, - 0x72, 0x79, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x1a, 0x36, 0x0a, 0x08, 0x4b, 0x65, 0x79, 0x45, 0x6e, - 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, - 0x85, 0x01, 0x0a, 0x0b, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x12, - 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x09, 0x63, - 0x6c, 0x65, 0x61, 0x72, 0x74, 0x65, 0x78, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, - 0x52, 0x09, 0x63, 0x6c, 0x65, 0x61, 0x72, 0x74, 0x65, 0x78, 0x74, 0x12, 0x2e, 0x0a, 0x06, 0x68, - 0x61, 0x73, 0x68, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6e, - 0x6f, 0x69, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x48, 0x61, 0x73, 0x68, 0x54, 0x79, 0x70, - 0x65, 0x48, 0x00, 0x52, 0x06, 0x68, 0x61, 0x73, 0x68, 0x65, 0x64, 0x42, 0x0a, 0x0a, 0x08, 0x70, - 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x2a, 0x31, 0x0a, 0x0a, 0x4c, 0x33, 0x50, 0x72, 0x6f, - 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x0f, 0x0a, 0x0b, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, - 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x49, 0x50, 0x56, 0x34, 0x10, 0x01, - 0x12, 0x08, 0x0a, 0x04, 0x49, 0x50, 0x56, 0x36, 0x10, 0x02, 0x3a, 0x40, 0x0a, 0x0c, 0x67, 0x6e, - 0x6f, 0x69, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x6c, - 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0xea, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x0b, 0x67, 0x6e, 0x6f, 0x69, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x42, 0x22, 0x5a, 0x20, - 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x63, - 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x67, 0x6e, 0x6f, 0x69, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, - 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_types_types_proto_rawDescOnce sync.Once - file_types_types_proto_rawDescData = file_types_types_proto_rawDesc -) - -func file_types_types_proto_rawDescGZIP() []byte { - file_types_types_proto_rawDescOnce.Do(func() { - file_types_types_proto_rawDescData = protoimpl.X.CompressGZIP(file_types_types_proto_rawDescData) - }) - return file_types_types_proto_rawDescData -} - -var file_types_types_proto_enumTypes = make([]protoimpl.EnumInfo, 2) -var file_types_types_proto_msgTypes = make([]protoimpl.MessageInfo, 5) -var file_types_types_proto_goTypes = []interface{}{ - (L3Protocol)(0), // 0: gnoi.types.L3Protocol - (HashType_HashMethod)(0), // 1: gnoi.types.HashType.HashMethod - (*HashType)(nil), // 2: gnoi.types.HashType - (*Path)(nil), // 3: gnoi.types.Path - (*PathElem)(nil), // 4: gnoi.types.PathElem - (*Credentials)(nil), // 5: gnoi.types.Credentials - nil, // 6: gnoi.types.PathElem.KeyEntry - (*descriptorpb.FileOptions)(nil), // 7: google.protobuf.FileOptions -} -var file_types_types_proto_depIdxs = []int32{ - 1, // 0: gnoi.types.HashType.method:type_name -> gnoi.types.HashType.HashMethod - 4, // 1: gnoi.types.Path.elem:type_name -> gnoi.types.PathElem - 6, // 2: gnoi.types.PathElem.key:type_name -> gnoi.types.PathElem.KeyEntry - 2, // 3: gnoi.types.Credentials.hashed:type_name -> gnoi.types.HashType - 7, // 4: gnoi.types.gnoi_version:extendee -> google.protobuf.FileOptions - 5, // [5:5] is the sub-list for method output_type - 5, // [5:5] is the sub-list for method input_type - 5, // [5:5] is the sub-list for extension type_name - 4, // [4:5] is the sub-list for extension extendee - 0, // [0:4] is the sub-list for field type_name -} - -func init() { file_types_types_proto_init() } -func file_types_types_proto_init() { - if File_types_types_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_types_types_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*HashType); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_types_types_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Path); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } +func _Credentials_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*Credentials) + switch tag { + case 2: // password.cleartext + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType } - file_types_types_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PathElem); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_types_types_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Credentials); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } + x, err := b.DecodeStringBytes() + m.Password = &Credentials_Cleartext{x} + return true, err + case 3: // password.hashed + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType } + msg := new(HashType) + err := b.DecodeMessage(msg) + m.Password = &Credentials_Hashed{msg} + return true, err + default: + return false, nil } - file_types_types_proto_msgTypes[3].OneofWrappers = []interface{}{ - (*Credentials_Cleartext)(nil), - (*Credentials_Hashed)(nil), +} + +func _Credentials_OneofSizer(msg proto.Message) (n int) { + m := msg.(*Credentials) + // password + switch x := m.Password.(type) { + case *Credentials_Cleartext: + n += 1 // tag and wire + n += proto.SizeVarint(uint64(len(x.Cleartext))) + n += len(x.Cleartext) + case *Credentials_Hashed: + s := proto.Size(x.Hashed) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_types_types_proto_rawDesc, - NumEnums: 2, - NumMessages: 5, - NumExtensions: 1, - NumServices: 0, - }, - GoTypes: file_types_types_proto_goTypes, - DependencyIndexes: file_types_types_proto_depIdxs, - EnumInfos: file_types_types_proto_enumTypes, - MessageInfos: file_types_types_proto_msgTypes, - ExtensionInfos: file_types_types_proto_extTypes, - }.Build() - File_types_types_proto = out.File - file_types_types_proto_rawDesc = nil - file_types_types_proto_goTypes = nil - file_types_types_proto_depIdxs = nil + return n +} + +var E_GnoiVersion = &proto.ExtensionDesc{ + ExtendedType: (*descriptor.FileOptions)(nil), + ExtensionType: (*string)(nil), + Field: 1002, + Name: "gnoi.types.gnoi_version", + Tag: "bytes,1002,opt,name=gnoi_version", + Filename: "types/types.proto", +} + +func init() { + proto.RegisterEnum("gnoi.types.L3Protocol", L3Protocol_name, L3Protocol_value) + proto.RegisterEnum("gnoi.types.HashType_HashMethod", HashType_HashMethod_name, HashType_HashMethod_value) + proto.RegisterType((*HashType)(nil), "gnoi.types.HashType") + proto.RegisterType((*Path)(nil), "gnoi.types.Path") + proto.RegisterType((*PathElem)(nil), "gnoi.types.PathElem") + proto.RegisterMapType((map[string]string)(nil), "gnoi.types.PathElem.KeyEntry") + proto.RegisterType((*Credentials)(nil), "gnoi.types.Credentials") + proto.RegisterExtension(E_GnoiVersion) +} + +func init() { proto.RegisterFile("types/types.proto", fileDescriptor_2c0f90c600ad7e2e) } + +var fileDescriptor_2c0f90c600ad7e2e = []byte{ + // 448 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x92, 0xdf, 0x6e, 0xd3, 0x30, + 0x14, 0xc6, 0xeb, 0xa4, 0x64, 0xe9, 0xe9, 0x04, 0xc1, 0x9a, 0x50, 0x54, 0xf1, 0x27, 0xca, 0x55, + 0xc5, 0x85, 0xab, 0x75, 0xb4, 0xa0, 0x5d, 0x20, 0x60, 0xeb, 0x94, 0x0a, 0x06, 0x55, 0x06, 0xbb, + 0x45, 0x59, 0x73, 0x68, 0x22, 0x92, 0x38, 0xb2, 0xdd, 0x41, 0x1e, 0x00, 0xf1, 0x08, 0xbc, 0x23, + 0x4f, 0x81, 0xe2, 0x24, 0x74, 0x82, 0xdd, 0x44, 0xdf, 0x39, 0xf9, 0x9d, 0x4f, 0x9f, 0xed, 0x03, + 0xf7, 0x55, 0x55, 0xa2, 0x9c, 0xe8, 0x2f, 0x2b, 0x05, 0x57, 0x9c, 0xc2, 0xa6, 0xe0, 0x29, 0xd3, + 0x9d, 0x91, 0xb7, 0xe1, 0x7c, 0x93, 0xe1, 0x44, 0xff, 0xb9, 0xda, 0x7e, 0x99, 0xc4, 0x28, 0xd7, + 0x22, 0x2d, 0x15, 0x17, 0x0d, 0xed, 0xff, 0x22, 0x60, 0x07, 0x91, 0x4c, 0x3e, 0x56, 0x25, 0xd2, + 0xe7,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13, 0x81, 0x31, 0x16, 0x2a, 0x8d, 0x32, 0x49, 0x47, 0x60, 0x6f, + 0x25, 0x8a, 0x1b, 0x81, 0xfe, 0xd6, 0xf4, 0x31, 0x0c, 0xd6, 0x19, 0x46, 0x42, 0xe1, 0x77, 0xd5, + 0x38, 0x05, 0xbd, 0x70, 0xd7, 0xa2, 0x0c, 0xac, 0xfa, 0x9e, 0x31, 0x76, 0x4d, 0x8f, 0xfc, 0x7b, + 0x03, 0xdd, 0x63, 0x05, 0xbd, 0xb0, 0xa5, 0xde, 0x00, 0xd8, 0x65, 0x24, 0xe5, 0x37, 0x2e, 0xe2, + 0xa7, 0x87, 0x00, 0xef, 0x8e, 0x56, 0xf5, 0x02, 0xac, 0x79, 0xf6, 0xff, 0xdb, 0xd8, 0xd0, 0x5f, + 0xae, 0x2e, 0x9f, 0x39, 0xa4, 0x55, 0x73, 0xc7, 0x38, 0x7e, 0x05, 0xfb, 0xb5, 0xff, 0xe7, 0x6b, + 0x14, 0x32, 0xe5, 0x05, 0x7d, 0xc8, 0x9a, 0xdd, 0x62, 0xdd, 0x6e, 0xb1, 0xb3, 0x34, 0xc3, 0x0f, + 0xa5, 0x4a, 0x79, 0x21, 0xdd, 0xdf, 0x7b, 0xfa, 0x34, 0xc3, 0x7a, 0xe4, 0xb2, 0x99, 0xb8, 0xb2, + 0x34, 0x79, 0xf4, 0x27, 0x00, 0x00, 0xff, 0xff, 0x3b, 0xfa, 0x7b, 0x5f, 0xb4, 0x02, 0x00, 0x00, } diff --git a/types/types.proto b/types/types.proto index 6509f492..c36f7c82 100644 --- a/types/types.proto +++ b/types/types.proto @@ -20,8 +20,6 @@ package gnoi.types; import "google/protobuf/descriptor.proto"; -option go_package = "github.com/openconfig/gnoi/types"; - // Define a protobuf FileOption that defines the gNOI service version. extend google.protobuf.FileOptions { // The gNOI service semantic version. diff --git a/wavelength_router/wavelength_router.pb.go b/wavelength_router/wavelength_router.pb.go index 275b2ed7..f814aedd 100644 --- a/wavelength_router/wavelength_router.pb.go +++ b/wavelength_router/wavelength_router.pb.go @@ -1,41 +1,29 @@ -// -// Copyright 2019 Google LLC. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// - // Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.26.0 -// protoc v3.15.7 // source: wavelength_router/wavelength_router.proto -package wavelength_router +package gnoi_optical import ( + context "context" + fmt "fmt" + proto "github.com/golang/protobuf/proto" types "github.com/openconfig/gnoi/types" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + math "math" ) -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) +// 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.ProtoPackageIsVersion3 // please upgrade the proto package type AdjustPSDRequest_SignalDirection int32 @@ -45,94 +33,52 @@ const ( AdjustPSDRequest_DIRECTION_OUTPUT AdjustPSDRequest_SignalDirection = 2 ) -// Enum value maps for AdjustPSDRequest_SignalDirection. -var ( - AdjustPSDRequest_SignalDirection_name = map[int32]string{ - 0: "DIRECTION_UNKNOWN", - 1: "DIRECTION_INPUT", - 2: "DIRECTION_OUTPUT", - } - AdjustPSDRequest_SignalDirection_value = map[string]int32{ - "DIRECTION_UNKNOWN": 0, - "DIRECTION_INPUT": 1, - "DIRECTION_OUTPUT": 2, - } -) - -func (x AdjustPSDRequest_SignalDirection) Enum() *AdjustPSDRequest_SignalDirection { - p := new(AdjustPSDRequest_SignalDirection) - *p = x - return p -} - -func (x AdjustPSDRequest_SignalDirection) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (AdjustPSDRequest_SignalDirection) Descriptor() protoreflect.EnumDescriptor { - return file_wavelength_router_wavelength_router_proto_enumTypes[0].Descriptor() +var AdjustPSDRequest_SignalDirection_name = map[int32]string{ + 0: "DIRECTION_UNKNOWN", + 1: "DIRECTION_INPUT", + 2: "DIRECTION_OUTPUT", } -func (AdjustPSDRequest_SignalDirection) Type() protoreflect.EnumType { - return &file_wavelength_router_wavelength_router_proto_enumTypes[0] +var AdjustPSDRequest_SignalDirection_value = map[string]int32{ + "DIRECTION_UNKNOWN": 0, + "DIRECTION_INPUT": 1, + "DIRECTION_OUTPUT": 2, } -func (x AdjustPSDRequest_SignalDirection) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) +func (x AdjustPSDRequest_SignalDirection) String() string { + return proto.EnumName(AdjustPSDRequest_SignalDirection_name, int32(x)) } -// Deprecated: Use AdjustPSDRequest_SignalDirection.Descriptor instead. func (AdjustPSDRequest_SignalDirection) EnumDescriptor() ([]byte, []int) { - return file_wavelength_router_wavelength_router_proto_rawDescGZIP(), []int{0, 0} + return fileDescriptor_cb8b6c17dc3d7490, []int{0, 0} } type AdjustPSDProgress_State int32 const ( AdjustPSDProgress_UNKNOWN AdjustPSDProgress_State = 0 - AdjustPSDProgress_RUNNING AdjustPSDProgress_State = 1 // The PSD adjustment is running. - AdjustPSDProgress_COMPLETE AdjustPSDProgress_State = 2 // The PSD adjustment completed successfully. -) - -// Enum value maps for AdjustPSDProgress_State. -var ( - AdjustPSDProgress_State_name = map[int32]string{ - 0: "UNKNOWN", - 1: "RUNNING", - 2: "COMPLETE", - } - AdjustPSDProgress_State_value = map[string]int32{ - "UNKNOWN": 0, - "RUNNING": 1, - "COMPLETE": 2, - } + AdjustPSDProgress_RUNNING AdjustPSDProgress_State = 1 + AdjustPSDProgress_COMPLETE AdjustPSDProgress_State = 2 ) -func (x AdjustPSDProgress_State) Enum() *AdjustPSDProgress_State { - p := new(AdjustPSDProgress_State) - *p = x - return p +var AdjustPSDProgress_State_name = map[int32]string{ + 0: "UNKNOWN", + 1: "RUNNING", + 2: "COMPLETE", } -func (x AdjustPSDProgress_State) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (AdjustPSDProgress_State) Descriptor() protoreflect.EnumDescriptor { - return file_wavelength_router_wavelength_router_proto_enumTypes[1].Descriptor() +var AdjustPSDProgress_State_value = map[string]int32{ + "UNKNOWN": 0, + "RUNNING": 1, + "COMPLETE": 2, } -func (AdjustPSDProgress_State) Type() protoreflect.EnumType { - return &file_wavelength_router_wavelength_router_proto_enumTypes[1] -} - -func (x AdjustPSDProgress_State) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) +func (x AdjustPSDProgress_State) String() string { + return proto.EnumName(AdjustPSDProgress_State_name, int32(x)) } -// Deprecated: Use AdjustPSDProgress_State.Descriptor instead. func (AdjustPSDProgress_State) EnumDescriptor() ([]byte, []int) { - return file_wavelength_router_wavelength_router_proto_rawDescGZIP(), []int{1, 0} + return fileDescriptor_cb8b6c17dc3d7490, []int{1, 0} } type AdjustPSDError_Type int32 @@ -148,45 +94,24 @@ const ( AdjustPSDError_HARDWARE_FAILURE AdjustPSDError_Type = 2 ) -// Enum value maps for AdjustPSDError_Type. -var ( - AdjustPSDError_Type_name = map[int32]string{ - 0: "UNSPECIFIED", - 1: "PORT_BUSY", - 2: "HARDWARE_FAILURE", - } - AdjustPSDError_Type_value = map[string]int32{ - "UNSPECIFIED": 0, - "PORT_BUSY": 1, - "HARDWARE_FAILURE": 2, - } -) - -func (x AdjustPSDError_Type) Enum() *AdjustPSDError_Type { - p := new(AdjustPSDError_Type) - *p = x - return p -} - -func (x AdjustPSDError_Type) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (AdjustPSDError_Type) Descriptor() protoreflect.EnumDescriptor { - return file_wavelength_router_wavelength_router_proto_enumTypes[2].Descriptor() +var AdjustPSDError_Type_name = map[int32]string{ + 0: "UNSPECIFIED", + 1: "PORT_BUSY", + 2: "HARDWARE_FAILURE", } -func (AdjustPSDError_Type) Type() protoreflect.EnumType { - return &file_wavelength_router_wavelength_router_proto_enumTypes[2] +var AdjustPSDError_Type_value = map[string]int32{ + "UNSPECIFIED": 0, + "PORT_BUSY": 1, + "HARDWARE_FAILURE": 2, } -func (x AdjustPSDError_Type) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) +func (x AdjustPSDError_Type) String() string { + return proto.EnumName(AdjustPSDError_Type_name, int32(x)) } -// Deprecated: Use AdjustPSDError_Type.Descriptor instead. func (AdjustPSDError_Type) EnumDescriptor() ([]byte, []int) { - return file_wavelength_router_wavelength_router_proto_rawDescGZIP(), []int{2, 0} + return fileDescriptor_cb8b6c17dc3d7490, []int{2, 0} } type AdjustSpectrumRequest_SignalDirection int32 @@ -197,94 +122,52 @@ const ( AdjustSpectrumRequest_DIRECTION_OUTPUT AdjustSpectrumRequest_SignalDirection = 2 ) -// Enum value maps for AdjustSpectrumRequest_SignalDirection. -var ( - AdjustSpectrumRequest_SignalDirection_name = map[int32]string{ - 0: "DIRECTION_UNKNOWN", - 1: "DIRECTION_INPUT", - 2: "DIRECTION_OUTPUT", - } - AdjustSpectrumRequest_SignalDirection_value = map[string]int32{ - "DIRECTION_UNKNOWN": 0, - "DIRECTION_INPUT": 1, - "DIRECTION_OUTPUT": 2, - } -) - -func (x AdjustSpectrumRequest_SignalDirection) Enum() *AdjustSpectrumRequest_SignalDirection { - p := new(AdjustSpectrumRequest_SignalDirection) - *p = x - return p -} - -func (x AdjustSpectrumRequest_SignalDirection) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +var AdjustSpectrumRequest_SignalDirection_name = map[int32]string{ + 0: "DIRECTION_UNKNOWN", + 1: "DIRECTION_INPUT", + 2: "DIRECTION_OUTPUT", } -func (AdjustSpectrumRequest_SignalDirection) Descriptor() protoreflect.EnumDescriptor { - return file_wavelength_router_wavelength_router_proto_enumTypes[3].Descriptor() +var AdjustSpectrumRequest_SignalDirection_value = map[string]int32{ + "DIRECTION_UNKNOWN": 0, + "DIRECTION_INPUT": 1, + "DIRECTION_OUTPUT": 2, } -func (AdjustSpectrumRequest_SignalDirection) Type() protoreflect.EnumType { - return &file_wavelength_router_wavelength_router_proto_enumTypes[3] -} - -func (x AdjustSpectrumRequest_SignalDirection) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) +func (x AdjustSpectrumRequest_SignalDirection) String() string { + return proto.EnumName(AdjustSpectrumRequest_SignalDirection_name, int32(x)) } -// Deprecated: Use AdjustSpectrumRequest_SignalDirection.Descriptor instead. func (AdjustSpectrumRequest_SignalDirection) EnumDescriptor() ([]byte, []int) { - return file_wavelength_router_wavelength_router_proto_rawDescGZIP(), []int{5, 0} + return fileDescriptor_cb8b6c17dc3d7490, []int{5, 0} } type AdjustSpectrumProgress_State int32 const ( AdjustSpectrumProgress_UNKNOWN AdjustSpectrumProgress_State = 0 - AdjustSpectrumProgress_RUNNING AdjustSpectrumProgress_State = 1 // The spectrum adjustment is running. - AdjustSpectrumProgress_COMPLETE AdjustSpectrumProgress_State = 2 // The spectrum adjustment completed successfully. -) - -// Enum value maps for AdjustSpectrumProgress_State. -var ( - AdjustSpectrumProgress_State_name = map[int32]string{ - 0: "UNKNOWN", - 1: "RUNNING", - 2: "COMPLETE", - } - AdjustSpectrumProgress_State_value = map[string]int32{ - "UNKNOWN": 0, - "RUNNING": 1, - "COMPLETE": 2, - } + AdjustSpectrumProgress_RUNNING AdjustSpectrumProgress_State = 1 + AdjustSpectrumProgress_COMPLETE AdjustSpectrumProgress_State = 2 ) -func (x AdjustSpectrumProgress_State) Enum() *AdjustSpectrumProgress_State { - p := new(AdjustSpectrumProgress_State) - *p = x - return p +var AdjustSpectrumProgress_State_name = map[int32]string{ + 0: "UNKNOWN", + 1: "RUNNING", + 2: "COMPLETE", } -func (x AdjustSpectrumProgress_State) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (AdjustSpectrumProgress_State) Descriptor() protoreflect.EnumDescriptor { - return file_wavelength_router_wavelength_router_proto_enumTypes[4].Descriptor() -} - -func (AdjustSpectrumProgress_State) Type() protoreflect.EnumType { - return &file_wavelength_router_wavelength_router_proto_enumTypes[4] +var AdjustSpectrumProgress_State_value = map[string]int32{ + "UNKNOWN": 0, + "RUNNING": 1, + "COMPLETE": 2, } -func (x AdjustSpectrumProgress_State) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) +func (x AdjustSpectrumProgress_State) String() string { + return proto.EnumName(AdjustSpectrumProgress_State_name, int32(x)) } -// Deprecated: Use AdjustSpectrumProgress_State.Descriptor instead. func (AdjustSpectrumProgress_State) EnumDescriptor() ([]byte, []int) { - return file_wavelength_router_wavelength_router_proto_rawDescGZIP(), []int{6, 0} + return fileDescriptor_cb8b6c17dc3d7490, []int{6, 0} } type AdjustSpectrumError_Type int32 @@ -300,53 +183,28 @@ const ( AdjustSpectrumError_HARDWARE_FAILURE AdjustSpectrumError_Type = 2 ) -// Enum value maps for AdjustSpectrumError_Type. -var ( - AdjustSpectrumError_Type_name = map[int32]string{ - 0: "UNSPECIFIED", - 1: "PORT_BUSY", - 2: "HARDWARE_FAILURE", - } - AdjustSpectrumError_Type_value = map[string]int32{ - "UNSPECIFIED": 0, - "PORT_BUSY": 1, - "HARDWARE_FAILURE": 2, - } -) - -func (x AdjustSpectrumError_Type) Enum() *AdjustSpectrumError_Type { - p := new(AdjustSpectrumError_Type) - *p = x - return p -} - -func (x AdjustSpectrumError_Type) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +var AdjustSpectrumError_Type_name = map[int32]string{ + 0: "UNSPECIFIED", + 1: "PORT_BUSY", + 2: "HARDWARE_FAILURE", } -func (AdjustSpectrumError_Type) Descriptor() protoreflect.EnumDescriptor { - return file_wavelength_router_wavelength_router_proto_enumTypes[5].Descriptor() +var AdjustSpectrumError_Type_value = map[string]int32{ + "UNSPECIFIED": 0, + "PORT_BUSY": 1, + "HARDWARE_FAILURE": 2, } -func (AdjustSpectrumError_Type) Type() protoreflect.EnumType { - return &file_wavelength_router_wavelength_router_proto_enumTypes[5] -} - -func (x AdjustSpectrumError_Type) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) +func (x AdjustSpectrumError_Type) String() string { + return proto.EnumName(AdjustSpectrumError_Type_name, int32(x)) } -// Deprecated: Use AdjustSpectrumError_Type.Descriptor instead. func (AdjustSpectrumError_Type) EnumDescriptor() ([]byte, []int) { - return file_wavelength_router_wavelength_router_proto_rawDescGZIP(), []int{7, 0} + return fileDescriptor_cb8b6c17dc3d7490, []int{7, 0} } // Deprecated: Do not use. type AdjustPSDRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - // Absolute path to the /components/component list member in the OpenConfig // model corresponding to the port to perform the adjustment for. // (e.g., /components/component[name=amp-1-1]) @@ -354,157 +212,137 @@ type AdjustPSDRequest struct { // Describes the signal direction that should be adjusted relative to the // device. For example, "input" would be the signal entering into the device // from the far end device. - Direction AdjustPSDRequest_SignalDirection `protobuf:"varint,2,opt,name=direction,proto3,enum=gnoi.optical.AdjustPSDRequest_SignalDirection" json:"direction,omitempty"` + Direction AdjustPSDRequest_SignalDirection `protobuf:"varint,2,opt,name=direction,proto3,enum=gnoi.optical.AdjustPSDRequest_SignalDirection" json:"direction,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *AdjustPSDRequest) Reset() { - *x = AdjustPSDRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_wavelength_router_wavelength_router_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *AdjustPSDRequest) Reset() { *m = AdjustPSDRequest{} } +func (m *AdjustPSDRequest) String() string { return proto.CompactTextString(m) } +func (*AdjustPSDRequest) ProtoMessage() {} +func (*AdjustPSDRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_cb8b6c17dc3d7490, []int{0} } -func (x *AdjustPSDRequest) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *AdjustPSDRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AdjustPSDRequest.Unmarshal(m, b) } - -func (*AdjustPSDRequest) ProtoMessage() {} - -func (x *AdjustPSDRequest) ProtoReflect() protoreflect.Message { - mi := &file_wavelength_router_wavelength_router_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *AdjustPSDRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AdjustPSDRequest.Marshal(b, m, deterministic) } - -// Deprecated: Use AdjustPSDRequest.ProtoReflect.Descriptor instead. -func (*AdjustPSDRequest) Descriptor() ([]byte, []int) { - return file_wavelength_router_wavelength_router_proto_rawDescGZIP(), []int{0} +func (m *AdjustPSDRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_AdjustPSDRequest.Merge(m, src) +} +func (m *AdjustPSDRequest) XXX_Size() int { + return xxx_messageInfo_AdjustPSDRequest.Size(m) +} +func (m *AdjustPSDRequest) XXX_DiscardUnknown() { + xxx_messageInfo_AdjustPSDRequest.DiscardUnknown(m) } -func (x *AdjustPSDRequest) GetComponent() *types.Path { - if x != nil { - return x.Component +var xxx_messageInfo_AdjustPSDRequest proto.InternalMessageInfo + +func (m *AdjustPSDRequest) GetComponent() *types.Path { + if m != nil { + return m.Component } return nil } -func (x *AdjustPSDRequest) GetDirection() AdjustPSDRequest_SignalDirection { - if x != nil { - return x.Direction +func (m *AdjustPSDRequest) GetDirection() AdjustPSDRequest_SignalDirection { + if m != nil { + return m.Direction } return AdjustPSDRequest_DIRECTION_UNKNOWN } // Deprecated: Do not use. type AdjustPSDProgress struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - // The state of the OTDR trace requested. Note that this does not include // error states as these should be returned as a gRPC error. - State AdjustPSDProgress_State `protobuf:"varint,1,opt,name=state,proto3,enum=gnoi.optical.AdjustPSDProgress_State" json:"state,omitempty"` + State AdjustPSDProgress_State `protobuf:"varint,1,opt,name=state,proto3,enum=gnoi.optical.AdjustPSDProgress_State" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *AdjustPSDProgress) Reset() { - *x = AdjustPSDProgress{} - if protoimpl.UnsafeEnabled { - mi := &file_wavelength_router_wavelength_router_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *AdjustPSDProgress) Reset() { *m = AdjustPSDProgress{} } +func (m *AdjustPSDProgress) String() string { return proto.CompactTextString(m) } +func (*AdjustPSDProgress) ProtoMessage() {} +func (*AdjustPSDProgress) Descriptor() ([]byte, []int) { + return fileDescriptor_cb8b6c17dc3d7490, []int{1} } -func (x *AdjustPSDProgress) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *AdjustPSDProgress) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AdjustPSDProgress.Unmarshal(m, b) } - -func (*AdjustPSDProgress) ProtoMessage() {} - -func (x *AdjustPSDProgress) ProtoReflect() protoreflect.Message { - mi := &file_wavelength_router_wavelength_router_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *AdjustPSDProgress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AdjustPSDProgress.Marshal(b, m, deterministic) } - -// Deprecated: Use AdjustPSDProgress.ProtoReflect.Descriptor instead. -func (*AdjustPSDProgress) Descriptor() ([]byte, []int) { - return file_wavelength_router_wavelength_router_proto_rawDescGZIP(), []int{1} +func (m *AdjustPSDProgress) XXX_Merge(src proto.Message) { + xxx_messageInfo_AdjustPSDProgress.Merge(m, src) +} +func (m *AdjustPSDProgress) XXX_Size() int { + return xxx_messageInfo_AdjustPSDProgress.Size(m) } +func (m *AdjustPSDProgress) XXX_DiscardUnknown() { + xxx_messageInfo_AdjustPSDProgress.DiscardUnknown(m) +} + +var xxx_messageInfo_AdjustPSDProgress proto.InternalMessageInfo -func (x *AdjustPSDProgress) GetState() AdjustPSDProgress_State { - if x != nil { - return x.State +func (m *AdjustPSDProgress) GetState() AdjustPSDProgress_State { + if m != nil { + return m.State } return AdjustPSDProgress_UNKNOWN } // Deprecated: Do not use. type AdjustPSDError struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Type AdjustPSDError_Type `protobuf:"varint,1,opt,name=type,proto3,enum=gnoi.optical.AdjustPSDError_Type" json:"type,omitempty"` - Detail string `protobuf:"bytes,2,opt,name=detail,proto3" json:"detail,omitempty"` + Type AdjustPSDError_Type `protobuf:"varint,1,opt,name=type,proto3,enum=gnoi.optical.AdjustPSDError_Type" json:"type,omitempty"` + Detail string `protobuf:"bytes,2,opt,name=detail,proto3" json:"detail,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *AdjustPSDError) Reset() { - *x = AdjustPSDError{} - if protoimpl.UnsafeEnabled { - mi := &file_wavelength_router_wavelength_router_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *AdjustPSDError) Reset() { *m = AdjustPSDError{} } +func (m *AdjustPSDError) String() string { return proto.CompactTextString(m) } +func (*AdjustPSDError) ProtoMessage() {} +func (*AdjustPSDError) Descriptor() ([]byte, []int) { + return fileDescriptor_cb8b6c17dc3d7490, []int{2} } -func (x *AdjustPSDError) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *AdjustPSDError) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AdjustPSDError.Unmarshal(m, b) } - -func (*AdjustPSDError) ProtoMessage() {} - -func (x *AdjustPSDError) ProtoReflect() protoreflect.Message { - mi := &file_wavelength_router_wavelength_router_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *AdjustPSDError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AdjustPSDError.Marshal(b, m, deterministic) } - -// Deprecated: Use AdjustPSDError.ProtoReflect.Descriptor instead. -func (*AdjustPSDError) Descriptor() ([]byte, []int) { - return file_wavelength_router_wavelength_router_proto_rawDescGZIP(), []int{2} +func (m *AdjustPSDError) XXX_Merge(src proto.Message) { + xxx_messageInfo_AdjustPSDError.Merge(m, src) +} +func (m *AdjustPSDError) XXX_Size() int { + return xxx_messageInfo_AdjustPSDError.Size(m) } +func (m *AdjustPSDError) XXX_DiscardUnknown() { + xxx_messageInfo_AdjustPSDError.DiscardUnknown(m) +} + +var xxx_messageInfo_AdjustPSDError proto.InternalMessageInfo -func (x *AdjustPSDError) GetType() AdjustPSDError_Type { - if x != nil { - return x.Type +func (m *AdjustPSDError) GetType() AdjustPSDError_Type { + if m != nil { + return m.Type } return AdjustPSDError_UNSPECIFIED } -func (x *AdjustPSDError) GetDetail() string { - if x != nil { - return x.Detail +func (m *AdjustPSDError) GetDetail() string { + if m != nil { + return m.Detail } return "" } @@ -517,68 +355,39 @@ func (x *AdjustPSDError) GetDetail() string { // // Deprecated: Do not use. type AdjustPSDResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to Response: + // Types that are valid to be assigned to Response: // *AdjustPSDResponse_Progress // *AdjustPSDResponse_Error - Response isAdjustPSDResponse_Response `protobuf_oneof:"response"` + Response isAdjustPSDResponse_Response `protobuf_oneof:"response"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *AdjustPSDResponse) Reset() { - *x = AdjustPSDResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_wavelength_router_wavelength_router_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *AdjustPSDResponse) Reset() { *m = AdjustPSDResponse{} } +func (m *AdjustPSDResponse) String() string { return proto.CompactTextString(m) } +func (*AdjustPSDResponse) ProtoMessage() {} +func (*AdjustPSDResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_cb8b6c17dc3d7490, []int{3} } -func (x *AdjustPSDResponse) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *AdjustPSDResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AdjustPSDResponse.Unmarshal(m, b) } - -func (*AdjustPSDResponse) ProtoMessage() {} - -func (x *AdjustPSDResponse) ProtoReflect() protoreflect.Message { - mi := &file_wavelength_router_wavelength_router_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *AdjustPSDResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AdjustPSDResponse.Marshal(b, m, deterministic) } - -// Deprecated: Use AdjustPSDResponse.ProtoReflect.Descriptor instead. -func (*AdjustPSDResponse) Descriptor() ([]byte, []int) { - return file_wavelength_router_wavelength_router_proto_rawDescGZIP(), []int{3} +func (m *AdjustPSDResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_AdjustPSDResponse.Merge(m, src) } - -func (m *AdjustPSDResponse) GetResponse() isAdjustPSDResponse_Response { - if m != nil { - return m.Response - } - return nil +func (m *AdjustPSDResponse) XXX_Size() int { + return xxx_messageInfo_AdjustPSDResponse.Size(m) } - -func (x *AdjustPSDResponse) GetProgress() *AdjustPSDProgress { - if x, ok := x.GetResponse().(*AdjustPSDResponse_Progress); ok { - return x.Progress - } - return nil +func (m *AdjustPSDResponse) XXX_DiscardUnknown() { + xxx_messageInfo_AdjustPSDResponse.DiscardUnknown(m) } -func (x *AdjustPSDResponse) GetError() *AdjustPSDError { - if x, ok := x.GetResponse().(*AdjustPSDResponse_Error); ok { - return x.Error - } - return nil -} +var xxx_messageInfo_AdjustPSDResponse proto.InternalMessageInfo type isAdjustPSDResponse_Response interface { isAdjustPSDResponse_Response() @@ -596,50 +405,68 @@ func (*AdjustPSDResponse_Progress) isAdjustPSDResponse_Response() {} func (*AdjustPSDResponse_Error) isAdjustPSDResponse_Response() {} -// Deprecated: Do not use. -type CancelAdjustPSDResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields +func (m *AdjustPSDResponse) GetResponse() isAdjustPSDResponse_Response { + if m != nil { + return m.Response + } + return nil } -func (x *CancelAdjustPSDResponse) Reset() { - *x = CancelAdjustPSDResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_wavelength_router_wavelength_router_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (m *AdjustPSDResponse) GetProgress() *AdjustPSDProgress { + if x, ok := m.GetResponse().(*AdjustPSDResponse_Progress); ok { + return x.Progress } + return nil } -func (x *CancelAdjustPSDResponse) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *AdjustPSDResponse) GetError() *AdjustPSDError { + if x, ok := m.GetResponse().(*AdjustPSDResponse_Error); ok { + return x.Error + } + return nil } -func (*CancelAdjustPSDResponse) ProtoMessage() {} - -func (x *CancelAdjustPSDResponse) ProtoReflect() protoreflect.Message { - mi := &file_wavelength_router_wavelength_router_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms +// XXX_OneofWrappers is for the internal use of the proto package. +func (*AdjustPSDResponse) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*AdjustPSDResponse_Progress)(nil), + (*AdjustPSDResponse_Error)(nil), } - return mi.MessageOf(x) } -// Deprecated: Use CancelAdjustPSDResponse.ProtoReflect.Descriptor instead. +// Deprecated: Do not use. +type CancelAdjustPSDResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CancelAdjustPSDResponse) Reset() { *m = CancelAdjustPSDResponse{} } +func (m *CancelAdjustPSDResponse) String() string { return proto.CompactTextString(m) } +func (*CancelAdjustPSDResponse) ProtoMessage() {} func (*CancelAdjustPSDResponse) Descriptor() ([]byte, []int) { - return file_wavelength_router_wavelength_router_proto_rawDescGZIP(), []int{4} + return fileDescriptor_cb8b6c17dc3d7490, []int{4} } -type AdjustSpectrumRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields +func (m *CancelAdjustPSDResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CancelAdjustPSDResponse.Unmarshal(m, b) +} +func (m *CancelAdjustPSDResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CancelAdjustPSDResponse.Marshal(b, m, deterministic) +} +func (m *CancelAdjustPSDResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_CancelAdjustPSDResponse.Merge(m, src) +} +func (m *CancelAdjustPSDResponse) XXX_Size() int { + return xxx_messageInfo_CancelAdjustPSDResponse.Size(m) +} +func (m *CancelAdjustPSDResponse) XXX_DiscardUnknown() { + xxx_messageInfo_CancelAdjustPSDResponse.DiscardUnknown(m) +} +var xxx_messageInfo_CancelAdjustPSDResponse proto.InternalMessageInfo + +type AdjustSpectrumRequest struct { // Absolute path to the /components/component list member in the OpenConfig // model corresponding to the port to perform the adjustment for. // (e.g., /components/component[name=wavelength-router-1-1]) @@ -647,155 +474,135 @@ type AdjustSpectrumRequest struct { // Describes the signal direction that should be adjusted relative to the // device. For example, "input" would be the signal entering into the device // from the far end device. - Direction AdjustSpectrumRequest_SignalDirection `protobuf:"varint,2,opt,name=direction,proto3,enum=gnoi.optical.AdjustSpectrumRequest_SignalDirection" json:"direction,omitempty"` + Direction AdjustSpectrumRequest_SignalDirection `protobuf:"varint,2,opt,name=direction,proto3,enum=gnoi.optical.AdjustSpectrumRequest_SignalDirection" json:"direction,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *AdjustSpectrumRequest) Reset() { - *x = AdjustSpectrumRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_wavelength_router_wavelength_router_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *AdjustSpectrumRequest) Reset() { *m = AdjustSpectrumRequest{} } +func (m *AdjustSpectrumRequest) String() string { return proto.CompactTextString(m) } +func (*AdjustSpectrumRequest) ProtoMessage() {} +func (*AdjustSpectrumRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_cb8b6c17dc3d7490, []int{5} } -func (x *AdjustSpectrumRequest) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *AdjustSpectrumRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AdjustSpectrumRequest.Unmarshal(m, b) } - -func (*AdjustSpectrumRequest) ProtoMessage() {} - -func (x *AdjustSpectrumRequest) ProtoReflect() protoreflect.Message { - mi := &file_wavelength_router_wavelength_router_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *AdjustSpectrumRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AdjustSpectrumRequest.Marshal(b, m, deterministic) } - -// Deprecated: Use AdjustSpectrumRequest.ProtoReflect.Descriptor instead. -func (*AdjustSpectrumRequest) Descriptor() ([]byte, []int) { - return file_wavelength_router_wavelength_router_proto_rawDescGZIP(), []int{5} +func (m *AdjustSpectrumRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_AdjustSpectrumRequest.Merge(m, src) +} +func (m *AdjustSpectrumRequest) XXX_Size() int { + return xxx_messageInfo_AdjustSpectrumRequest.Size(m) +} +func (m *AdjustSpectrumRequest) XXX_DiscardUnknown() { + xxx_messageInfo_AdjustSpectrumRequest.DiscardUnknown(m) } -func (x *AdjustSpectrumRequest) GetComponent() *types.Path { - if x != nil { - return x.Component +var xxx_messageInfo_AdjustSpectrumRequest proto.InternalMessageInfo + +func (m *AdjustSpectrumRequest) GetComponent() *types.Path { + if m != nil { + return m.Component } return nil } -func (x *AdjustSpectrumRequest) GetDirection() AdjustSpectrumRequest_SignalDirection { - if x != nil { - return x.Direction +func (m *AdjustSpectrumRequest) GetDirection() AdjustSpectrumRequest_SignalDirection { + if m != nil { + return m.Direction } return AdjustSpectrumRequest_DIRECTION_UNKNOWN } type AdjustSpectrumProgress struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - // The state of the OTDR trace requested. Note that this does not include // error states as these should be returned as a gRPC error. - State AdjustSpectrumProgress_State `protobuf:"varint,1,opt,name=state,proto3,enum=gnoi.optical.AdjustSpectrumProgress_State" json:"state,omitempty"` + State AdjustSpectrumProgress_State `protobuf:"varint,1,opt,name=state,proto3,enum=gnoi.optical.AdjustSpectrumProgress_State" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *AdjustSpectrumProgress) Reset() { - *x = AdjustSpectrumProgress{} - if protoimpl.UnsafeEnabled { - mi := &file_wavelength_router_wavelength_router_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *AdjustSpectrumProgress) Reset() { *m = AdjustSpectrumProgress{} } +func (m *AdjustSpectrumProgress) String() string { return proto.CompactTextString(m) } +func (*AdjustSpectrumProgress) ProtoMessage() {} +func (*AdjustSpectrumProgress) Descriptor() ([]byte, []int) { + return fileDescriptor_cb8b6c17dc3d7490, []int{6} } -func (x *AdjustSpectrumProgress) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *AdjustSpectrumProgress) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AdjustSpectrumProgress.Unmarshal(m, b) } - -func (*AdjustSpectrumProgress) ProtoMessage() {} - -func (x *AdjustSpectrumProgress) ProtoReflect() protoreflect.Message { - mi := &file_wavelength_router_wavelength_router_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *AdjustSpectrumProgress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AdjustSpectrumProgress.Marshal(b, m, deterministic) } - -// Deprecated: Use AdjustSpectrumProgress.ProtoReflect.Descriptor instead. -func (*AdjustSpectrumProgress) Descriptor() ([]byte, []int) { - return file_wavelength_router_wavelength_router_proto_rawDescGZIP(), []int{6} +func (m *AdjustSpectrumProgress) XXX_Merge(src proto.Message) { + xxx_messageInfo_AdjustSpectrumProgress.Merge(m, src) +} +func (m *AdjustSpectrumProgress) XXX_Size() int { + return xxx_messageInfo_AdjustSpectrumProgress.Size(m) +} +func (m *AdjustSpectrumProgress) XXX_DiscardUnknown() { + xxx_messageInfo_AdjustSpectrumProgress.DiscardUnknown(m) } -func (x *AdjustSpectrumProgress) GetState() AdjustSpectrumProgress_State { - if x != nil { - return x.State +var xxx_messageInfo_AdjustSpectrumProgress proto.InternalMessageInfo + +func (m *AdjustSpectrumProgress) GetState() AdjustSpectrumProgress_State { + if m != nil { + return m.State } return AdjustSpectrumProgress_UNKNOWN } type AdjustSpectrumError struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Type AdjustSpectrumError_Type `protobuf:"varint,1,opt,name=type,proto3,enum=gnoi.optical.AdjustSpectrumError_Type" json:"type,omitempty"` - Detail string `protobuf:"bytes,2,opt,name=detail,proto3" json:"detail,omitempty"` + Type AdjustSpectrumError_Type `protobuf:"varint,1,opt,name=type,proto3,enum=gnoi.optical.AdjustSpectrumError_Type" json:"type,omitempty"` + Detail string `protobuf:"bytes,2,opt,name=detail,proto3" json:"detail,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *AdjustSpectrumError) Reset() { - *x = AdjustSpectrumError{} - if protoimpl.UnsafeEnabled { - mi := &file_wavelength_router_wavelength_router_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *AdjustSpectrumError) Reset() { *m = AdjustSpectrumError{} } +func (m *AdjustSpectrumError) String() string { return proto.CompactTextString(m) } +func (*AdjustSpectrumError) ProtoMessage() {} +func (*AdjustSpectrumError) Descriptor() ([]byte, []int) { + return fileDescriptor_cb8b6c17dc3d7490, []int{7} } -func (x *AdjustSpectrumError) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *AdjustSpectrumError) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AdjustSpectrumError.Unmarshal(m, b) } - -func (*AdjustSpectrumError) ProtoMessage() {} - -func (x *AdjustSpectrumError) ProtoReflect() protoreflect.Message { - mi := &file_wavelength_router_wavelength_router_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *AdjustSpectrumError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AdjustSpectrumError.Marshal(b, m, deterministic) } - -// Deprecated: Use AdjustSpectrumError.ProtoReflect.Descriptor instead. -func (*AdjustSpectrumError) Descriptor() ([]byte, []int) { - return file_wavelength_router_wavelength_router_proto_rawDescGZIP(), []int{7} +func (m *AdjustSpectrumError) XXX_Merge(src proto.Message) { + xxx_messageInfo_AdjustSpectrumError.Merge(m, src) +} +func (m *AdjustSpectrumError) XXX_Size() int { + return xxx_messageInfo_AdjustSpectrumError.Size(m) } +func (m *AdjustSpectrumError) XXX_DiscardUnknown() { + xxx_messageInfo_AdjustSpectrumError.DiscardUnknown(m) +} + +var xxx_messageInfo_AdjustSpectrumError proto.InternalMessageInfo -func (x *AdjustSpectrumError) GetType() AdjustSpectrumError_Type { - if x != nil { - return x.Type +func (m *AdjustSpectrumError) GetType() AdjustSpectrumError_Type { + if m != nil { + return m.Type } return AdjustSpectrumError_UNSPECIFIED } -func (x *AdjustSpectrumError) GetDetail() string { - if x != nil { - return x.Detail +func (m *AdjustSpectrumError) GetDetail() string { + if m != nil { + return m.Detail } return "" } @@ -806,48 +613,56 @@ func (x *AdjustSpectrumError) GetDetail() string { // adjustment is completed, an "error" message should be streamed if an // error is encountered or the RPC should be terminated on success. type AdjustSpectrumResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to Response: + // Types that are valid to be assigned to Response: // *AdjustSpectrumResponse_Progress // *AdjustSpectrumResponse_Error - Response isAdjustSpectrumResponse_Response `protobuf_oneof:"response"` + Response isAdjustSpectrumResponse_Response `protobuf_oneof:"response"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *AdjustSpectrumResponse) Reset() { - *x = AdjustSpectrumResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_wavelength_router_wavelength_router_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *AdjustSpectrumResponse) Reset() { *m = AdjustSpectrumResponse{} } +func (m *AdjustSpectrumResponse) String() string { return proto.CompactTextString(m) } +func (*AdjustSpectrumResponse) ProtoMessage() {} +func (*AdjustSpectrumResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_cb8b6c17dc3d7490, []int{8} } -func (x *AdjustSpectrumResponse) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *AdjustSpectrumResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AdjustSpectrumResponse.Unmarshal(m, b) +} +func (m *AdjustSpectrumResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AdjustSpectrumResponse.Marshal(b, m, deterministic) +} +func (m *AdjustSpectrumResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_AdjustSpectrumResponse.Merge(m, src) +} +func (m *AdjustSpectrumResponse) XXX_Size() int { + return xxx_messageInfo_AdjustSpectrumResponse.Size(m) +} +func (m *AdjustSpectrumResponse) XXX_DiscardUnknown() { + xxx_messageInfo_AdjustSpectrumResponse.DiscardUnknown(m) } -func (*AdjustSpectrumResponse) ProtoMessage() {} +var xxx_messageInfo_AdjustSpectrumResponse proto.InternalMessageInfo -func (x *AdjustSpectrumResponse) ProtoReflect() protoreflect.Message { - mi := &file_wavelength_router_wavelength_router_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +type isAdjustSpectrumResponse_Response interface { + isAdjustSpectrumResponse_Response() } -// Deprecated: Use AdjustSpectrumResponse.ProtoReflect.Descriptor instead. -func (*AdjustSpectrumResponse) Descriptor() ([]byte, []int) { - return file_wavelength_router_wavelength_router_proto_rawDescGZIP(), []int{8} +type AdjustSpectrumResponse_Progress struct { + Progress *AdjustSpectrumProgress `protobuf:"bytes,1,opt,name=progress,proto3,oneof"` +} + +type AdjustSpectrumResponse_Error struct { + Error *AdjustSpectrumError `protobuf:"bytes,2,opt,name=error,proto3,oneof"` } +func (*AdjustSpectrumResponse_Progress) isAdjustSpectrumResponse_Response() {} + +func (*AdjustSpectrumResponse_Error) isAdjustSpectrumResponse_Response() {} + func (m *AdjustSpectrumResponse) GetResponse() isAdjustSpectrumResponse_Response { if m != nil { return m.Response @@ -855,420 +670,447 @@ func (m *AdjustSpectrumResponse) GetResponse() isAdjustSpectrumResponse_Response return nil } -func (x *AdjustSpectrumResponse) GetProgress() *AdjustSpectrumProgress { - if x, ok := x.GetResponse().(*AdjustSpectrumResponse_Progress); ok { +func (m *AdjustSpectrumResponse) GetProgress() *AdjustSpectrumProgress { + if x, ok := m.GetResponse().(*AdjustSpectrumResponse_Progress); ok { return x.Progress } return nil } -func (x *AdjustSpectrumResponse) GetError() *AdjustSpectrumError { - if x, ok := x.GetResponse().(*AdjustSpectrumResponse_Error); ok { +func (m *AdjustSpectrumResponse) GetError() *AdjustSpectrumError { + if x, ok := m.GetResponse().(*AdjustSpectrumResponse_Error); ok { return x.Error } return nil } -type isAdjustSpectrumResponse_Response interface { - isAdjustSpectrumResponse_Response() +// XXX_OneofWrappers is for the internal use of the proto package. +func (*AdjustSpectrumResponse) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*AdjustSpectrumResponse_Progress)(nil), + (*AdjustSpectrumResponse_Error)(nil), + } } -type AdjustSpectrumResponse_Progress struct { - Progress *AdjustSpectrumProgress `protobuf:"bytes,1,opt,name=progress,proto3,oneof"` +type CancelAdjustSpectrumResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -type AdjustSpectrumResponse_Error struct { - Error *AdjustSpectrumError `protobuf:"bytes,2,opt,name=error,proto3,oneof"` +func (m *CancelAdjustSpectrumResponse) Reset() { *m = CancelAdjustSpectrumResponse{} } +func (m *CancelAdjustSpectrumResponse) String() string { return proto.CompactTextString(m) } +func (*CancelAdjustSpectrumResponse) ProtoMessage() {} +func (*CancelAdjustSpectrumResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_cb8b6c17dc3d7490, []int{9} +} + +func (m *CancelAdjustSpectrumResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CancelAdjustSpectrumResponse.Unmarshal(m, b) +} +func (m *CancelAdjustSpectrumResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CancelAdjustSpectrumResponse.Marshal(b, m, deterministic) +} +func (m *CancelAdjustSpectrumResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_CancelAdjustSpectrumResponse.Merge(m, src) +} +func (m *CancelAdjustSpectrumResponse) XXX_Size() int { + return xxx_messageInfo_CancelAdjustSpectrumResponse.Size(m) +} +func (m *CancelAdjustSpectrumResponse) XXX_DiscardUnknown() { + xxx_messageInfo_CancelAdjustSpectrumResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_CancelAdjustSpectrumResponse proto.InternalMessageInfo + +func init() { + proto.RegisterEnum("gnoi.optical.AdjustPSDRequest_SignalDirection", AdjustPSDRequest_SignalDirection_name, AdjustPSDRequest_SignalDirection_value) + proto.RegisterEnum("gnoi.optical.AdjustPSDProgress_State", AdjustPSDProgress_State_name, AdjustPSDProgress_State_value) + proto.RegisterEnum("gnoi.optical.AdjustPSDError_Type", AdjustPSDError_Type_name, AdjustPSDError_Type_value) + proto.RegisterEnum("gnoi.optical.AdjustSpectrumRequest_SignalDirection", AdjustSpectrumRequest_SignalDirection_name, AdjustSpectrumRequest_SignalDirection_value) + proto.RegisterEnum("gnoi.optical.AdjustSpectrumProgress_State", AdjustSpectrumProgress_State_name, AdjustSpectrumProgress_State_value) + proto.RegisterEnum("gnoi.optical.AdjustSpectrumError_Type", AdjustSpectrumError_Type_name, AdjustSpectrumError_Type_value) + proto.RegisterType((*AdjustPSDRequest)(nil), "gnoi.optical.AdjustPSDRequest") + proto.RegisterType((*AdjustPSDProgress)(nil), "gnoi.optical.AdjustPSDProgress") + proto.RegisterType((*AdjustPSDError)(nil), "gnoi.optical.AdjustPSDError") + proto.RegisterType((*AdjustPSDResponse)(nil), "gnoi.optical.AdjustPSDResponse") + proto.RegisterType((*CancelAdjustPSDResponse)(nil), "gnoi.optical.CancelAdjustPSDResponse") + proto.RegisterType((*AdjustSpectrumRequest)(nil), "gnoi.optical.AdjustSpectrumRequest") + proto.RegisterType((*AdjustSpectrumProgress)(nil), "gnoi.optical.AdjustSpectrumProgress") + proto.RegisterType((*AdjustSpectrumError)(nil), "gnoi.optical.AdjustSpectrumError") + proto.RegisterType((*AdjustSpectrumResponse)(nil), "gnoi.optical.AdjustSpectrumResponse") + proto.RegisterType((*CancelAdjustSpectrumResponse)(nil), "gnoi.optical.CancelAdjustSpectrumResponse") +} + +func init() { + proto.RegisterFile("wavelength_router/wavelength_router.proto", fileDescriptor_cb8b6c17dc3d7490) +} + +var fileDescriptor_cb8b6c17dc3d7490 = []byte{ + // 697 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x95, 0xcb, 0x6e, 0xd3, 0x4a, + 0x18, 0xc7, 0x33, 0x69, 0xd3, 0x26, 0x5f, 0x7a, 0x1a, 0x77, 0x7a, 0x39, 0x55, 0xd5, 0xd3, 0x8b, + 0x4f, 0xcf, 0x51, 0xa9, 0x90, 0x13, 0xa5, 0xb0, 0xa0, 0x5c, 0x44, 0x6e, 0xa5, 0x11, 0xc5, 0x31, + 0xe3, 0x58, 0x15, 0x0b, 0x14, 0xb9, 0xee, 0x90, 0x1a, 0xa5, 0x1e, 0x63, 0x4f, 0x40, 0x7d, 0x00, + 0x24, 0x24, 0x76, 0xac, 0xd8, 0x22, 0x16, 0xbc, 0x0f, 0x6f, 0xc1, 0x8a, 0x57, 0x40, 0xbe, 0xc4, + 0xa9, 0x93, 0x26, 0xad, 0x10, 0xea, 0xc6, 0x92, 0x67, 0xfe, 0x33, 0xdf, 0xef, 0xfb, 0xeb, 0x3f, + 0x33, 0x70, 0xeb, 0x9d, 0xfe, 0x96, 0x76, 0xa8, 0xd5, 0xe6, 0xa7, 0x2d, 0x87, 0x75, 0x39, 0x75, + 0xf2, 0x43, 0x23, 0x92, 0xed, 0x30, 0xce, 0xf0, 0x4c, 0xdb, 0x62, 0xa6, 0xc4, 0x6c, 0x6e, 0x1a, + 0x7a, 0x67, 0xe5, 0x76, 0xdb, 0xe4, 0xa7, 0xdd, 0x63, 0xc9, 0x60, 0x67, 0x79, 0x66, 0x53, 0xcb, + 0x60, 0xd6, 0x2b, 0xb3, 0x9d, 0xf7, 0x34, 0x79, 0x7e, 0x6e, 0x53, 0x37, 0xf8, 0x06, 0x6b, 0xc5, + 0x1f, 0x08, 0x84, 0xd2, 0xc9, 0xeb, 0xae, 0xcb, 0x15, 0xb5, 0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xf1, 0x1b, 0x82, 0xf9, 0xf8, 0xc6, 0x41, + 0xc4, 0xf7, 0x62, 0x11, 0xff, 0x7f, 0x1c, 0xc9, 0xcd, 0xe4, 0x5c, 0xfc, 0x3a, 0xe4, 0x5b, 0x14, + 0xf4, 0xf2, 0x50, 0xd0, 0xb7, 0xae, 0x63, 0x5d, 0x2c, 0xed, 0xf7, 0xe2, 0x69, 0xdf, 0xbc, 0xb2, + 0xe3, 0x28, 0xf2, 0xb1, 0xb8, 0xaf, 0xc1, 0xea, 0xc5, 0xb8, 0x0f, 0xa2, 0x16, 0x3f, 0x4d, 0x80, + 0x70, 0x14, 0xbd, 0x0c, 0xc4, 0x7f, 0x18, 0xb0, 0x0a, 0x99, 0xe8, 0x74, 0xe0, 0xb5, 0xf1, 0x77, + 0xf1, 0xca, 0xfa, 0xc8, 0xf9, 0x10, 0x61, 0xe2, 0x43, 0x12, 0x15, 0x10, 0x7e, 0x09, 0xb9, 0x81, + 0x83, 0x77, 0xe5, 0xd6, 0x03, 0xb7, 0xe9, 0x88, 0x73, 0xeb, 0x17, 0xc0, 0xad, 0xde, 0xad, 0xd8, + 0x6b, 0x11, 0xff, 0x7b, 0x8d, 0xd3, 0xb6, 0xb2, 0x35, 0x5e, 0x14, 0x56, 0x48, 0x14, 0x10, 0x36, + 0x61, 0xe1, 0x32, 0x27, 0xaf, 0x57, 0x66, 0x67, 0x74, 0x27, 0xc3, 0xc5, 0xca, 0xe9, 0xef, 0x8f, + 0x52, 0x05, 0xa9, 0x28, 0x15, 0x8e, 0xa7, 0xfc, 0x77, 0x76, 0xf7, 0x57, 0x00, 0x00, 0x00, 0xff, + 0xff, 0xe6, 0xd4, 0x57, 0x43, 0xd0, 0x07, 0x00, 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion4 + +// WavelengthRouterClient is the client API for WavelengthRouter service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type WavelengthRouterClient interface { + // AdjustPSD performs a power spectral density (PSD) adjustment on an optical + // DWDM line system port. + // + // This RPC's initial message triggers adjustments. The target should validate + // the request, and immediately begin the adjustment as long as another + // adjustment is not already running. As this RPC may take multiple minutes, + // the state should be regularly streamed to the client. The operation should + // be completed on the device regardless of the state of the RPC channel to + // the initiating client. A client that becomes disconnected during an + // operation can reconnect, requesting the same operation, and receive status + // updates this way. There is no means by which an adjustment that has been + // triggered by a client can be cancelled unless the CancelAdjustPSD RPC is + // used. + // DEPRECATED, use AdjustSpectrum. + // + // Deprecated: Do not use. + AdjustPSD(ctx context.Context, in *AdjustPSDRequest, opts ...grpc.CallOption) (WavelengthRouter_AdjustPSDClient, error) + // CancelAdjustPSD cancels an in-progress AdjustPSD request. If an + // adjustment is not being performed for the provided request, then the RPC + // should return successfully. + // DEPRECATED, use CancelAdjustSpectrum. + // + // Deprecated: Do not use. + CancelAdjustPSD(ctx context.Context, in *AdjustPSDRequest, opts ...grpc.CallOption) (*CancelAdjustPSDResponse, error) + // AdjustSpectrum performs a spectrum power adjustment on an optical + // DWDM line system port. + // + // This RPC's initial message triggers adjustments. The target should validate + // the request, and immediately begin the adjustment as long as another + // adjustment is not already running. As this RPC may take multiple minutes, + // the state should be regularly streamed to the client. The operation should + // be completed on the device regardless of the state of the RPC channel to + // the initiating client. A client that becomes disconnected during an + // operation can reconnect, requesting the same operation, and receive status + // updates this way. There is no means by which an adjustment that has been + // triggered by a client can be cancelled unless the CancelAdjustSpectrum + // RPC is used. + AdjustSpectrum(ctx context.Context, in *AdjustSpectrumRequest, opts ...grpc.CallOption) (WavelengthRouter_AdjustSpectrumClient, error) + // CancelAdjustSpectrum cancels an in-progress AdjustSpectrum request. If an + // adjustment is not being performed for the provided request, then the RPC + // should return successfully. + CancelAdjustSpectrum(ctx context.Context, in *AdjustSpectrumRequest, opts ...grpc.CallOption) (*CancelAdjustSpectrumResponse, error) +} + +type wavelengthRouterClient struct { + cc *grpc.ClientConn +} + +func NewWavelengthRouterClient(cc *grpc.ClientConn) WavelengthRouterClient { + return &wavelengthRouterClient{cc} } -func (*AdjustSpectrumResponse_Progress) isAdjustSpectrumResponse_Response() {} +// Deprecated: Do not use. +func (c *wavelengthRouterClient) AdjustPSD(ctx context.Context, in *AdjustPSDRequest, opts ...grpc.CallOption) (WavelengthRouter_AdjustPSDClient, error) { + stream, err := c.cc.NewStream(ctx, &_WavelengthRouter_serviceDesc.Streams[0], "/gnoi.optical.WavelengthRouter/AdjustPSD", opts...) + if err != nil { + return nil, err + } + x := &wavelengthRouterAdjustPSDClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} -func (*AdjustSpectrumResponse_Error) isAdjustSpectrumResponse_Response() {} +type WavelengthRouter_AdjustPSDClient interface { + Recv() (*AdjustPSDResponse, error) + grpc.ClientStream +} -type CancelAdjustSpectrumResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields +type wavelengthRouterAdjustPSDClient struct { + grpc.ClientStream +} + +func (x *wavelengthRouterAdjustPSDClient) Recv() (*AdjustPSDResponse, error) { + m := new(AdjustPSDResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +// Deprecated: Do not use. +func (c *wavelengthRouterClient) CancelAdjustPSD(ctx context.Context, in *AdjustPSDRequest, opts ...grpc.CallOption) (*CancelAdjustPSDResponse, error) { + out := new(CancelAdjustPSDResponse) + err := c.cc.Invoke(ctx, "/gnoi.optical.WavelengthRouter/CancelAdjustPSD", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *wavelengthRouterClient) AdjustSpectrum(ctx context.Context, in *AdjustSpectrumRequest, opts ...grpc.CallOption) (WavelengthRouter_AdjustSpectrumClient, error) { + stream, err := c.cc.NewStream(ctx, &_WavelengthRouter_serviceDesc.Streams[1], "/gnoi.optical.WavelengthRouter/AdjustSpectrum", opts...) + if err != nil { + return nil, err + } + x := &wavelengthRouterAdjustSpectrumClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type WavelengthRouter_AdjustSpectrumClient interface { + Recv() (*AdjustSpectrumResponse, error) + grpc.ClientStream +} + +type wavelengthRouterAdjustSpectrumClient struct { + grpc.ClientStream +} + +func (x *wavelengthRouterAdjustSpectrumClient) Recv() (*AdjustSpectrumResponse, error) { + m := new(AdjustSpectrumResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil } -func (x *CancelAdjustSpectrumResponse) Reset() { - *x = CancelAdjustSpectrumResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_wavelength_router_wavelength_router_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (c *wavelengthRouterClient) CancelAdjustSpectrum(ctx context.Context, in *AdjustSpectrumRequest, opts ...grpc.CallOption) (*CancelAdjustSpectrumResponse, error) { + out := new(CancelAdjustSpectrumResponse) + err := c.cc.Invoke(ctx, "/gnoi.optical.WavelengthRouter/CancelAdjustSpectrum", in, out, opts...) + if err != nil { + return nil, err } + return out, nil +} + +// WavelengthRouterServer is the server API for WavelengthRouter service. +type WavelengthRouterServer interface { + // AdjustPSD performs a power spectral density (PSD) adjustment on an optical + // DWDM line system port. + // + // This RPC's initial message triggers adjustments. The target should validate + // the request, and immediately begin the adjustment as long as another + // adjustment is not already running. As this RPC may take multiple minutes, + // the state should be regularly streamed to the client. The operation should + // be completed on the device regardless of the state of the RPC channel to + // the initiating client. A client that becomes disconnected during an + // operation can reconnect, requesting the same operation, and receive status + // updates this way. There is no means by which an adjustment that has been + // triggered by a client can be cancelled unless the CancelAdjustPSD RPC is + // used. + // DEPRECATED, use AdjustSpectrum. + // + // Deprecated: Do not use. + AdjustPSD(*AdjustPSDRequest, WavelengthRouter_AdjustPSDServer) error + // CancelAdjustPSD cancels an in-progress AdjustPSD request. If an + // adjustment is not being performed for the provided request, then the RPC + // should return successfully. + // DEPRECATED, use CancelAdjustSpectrum. + // + // Deprecated: Do not use. + CancelAdjustPSD(context.Context, *AdjustPSDRequest) (*CancelAdjustPSDResponse, error) + // AdjustSpectrum performs a spectrum power adjustment on an optical + // DWDM line system port. + // + // This RPC's initial message triggers adjustments. The target should validate + // the request, and immediately begin the adjustment as long as another + // adjustment is not already running. As this RPC may take multiple minutes, + // the state should be regularly streamed to the client. The operation should + // be completed on the device regardless of the state of the RPC channel to + // the initiating client. A client that becomes disconnected during an + // operation can reconnect, requesting the same operation, and receive status + // updates this way. There is no means by which an adjustment that has been + // triggered by a client can be cancelled unless the CancelAdjustSpectrum + // RPC is used. + AdjustSpectrum(*AdjustSpectrumRequest, WavelengthRouter_AdjustSpectrumServer) error + // CancelAdjustSpectrum cancels an in-progress AdjustSpectrum request. If an + // adjustment is not being performed for the provided request, then the RPC + // should return successfully. + CancelAdjustSpectrum(context.Context, *AdjustSpectrumRequest) (*CancelAdjustSpectrumResponse, error) +} + +// UnimplementedWavelengthRouterServer can be embedded to have forward compatible implementations. +type UnimplementedWavelengthRouterServer struct { +} + +func (*UnimplementedWavelengthRouterServer) AdjustPSD(req *AdjustPSDRequest, srv WavelengthRouter_AdjustPSDServer) error { + return status.Errorf(codes.Unimplemented, "method AdjustPSD not implemented") +} +func (*UnimplementedWavelengthRouterServer) CancelAdjustPSD(ctx context.Context, req *AdjustPSDRequest) (*CancelAdjustPSDResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CancelAdjustPSD not implemented") +} +func (*UnimplementedWavelengthRouterServer) AdjustSpectrum(req *AdjustSpectrumRequest, srv WavelengthRouter_AdjustSpectrumServer) error { + return status.Errorf(codes.Unimplemented, "method AdjustSpectrum not implemented") +} +func (*UnimplementedWavelengthRouterServer) CancelAdjustSpectrum(ctx context.Context, req *AdjustSpectrumRequest) (*CancelAdjustSpectrumResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CancelAdjustSpectrum not implemented") +} + +func RegisterWavelengthRouterServer(s *grpc.Server, srv WavelengthRouterServer) { + s.RegisterService(&_WavelengthRouter_serviceDesc, srv) +} + +func _WavelengthRouter_AdjustPSD_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(AdjustPSDRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(WavelengthRouterServer).AdjustPSD(m, &wavelengthRouterAdjustPSDServer{stream}) } -func (x *CancelAdjustSpectrumResponse) String() string { - return protoimpl.X.MessageStringOf(x) +type WavelengthRouter_AdjustPSDServer interface { + Send(*AdjustPSDResponse) error + grpc.ServerStream } -func (*CancelAdjustSpectrumResponse) ProtoMessage() {} +type wavelengthRouterAdjustPSDServer struct { + grpc.ServerStream +} -func (x *CancelAdjustSpectrumResponse) ProtoReflect() protoreflect.Message { - mi := &file_wavelength_router_wavelength_router_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms +func (x *wavelengthRouterAdjustPSDServer) Send(m *AdjustPSDResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _WavelengthRouter_CancelAdjustPSD_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AdjustPSDRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(WavelengthRouterServer).CancelAdjustPSD(ctx, in) } - return mi.MessageOf(x) + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gnoi.optical.WavelengthRouter/CancelAdjustPSD", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(WavelengthRouterServer).CancelAdjustPSD(ctx, req.(*AdjustPSDRequest)) + } + return interceptor(ctx, in, info, handler) } -// Deprecated: Use CancelAdjustSpectrumResponse.ProtoReflect.Descriptor instead. -func (*CancelAdjustSpectrumResponse) Descriptor() ([]byte, []int) { - return file_wavelength_router_wavelength_router_proto_rawDescGZIP(), []int{9} -} - -var File_wavelength_router_wavelength_router_proto protoreflect.FileDescriptor - -var file_wavelength_router_wavelength_router_proto_rawDesc = []byte{ - 0x0a, 0x29, 0x77, 0x61, 0x76, 0x65, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x5f, 0x72, 0x6f, 0x75, - 0x74, 0x65, 0x72, 0x2f, 0x77, 0x61, 0x76, 0x65, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x5f, 0x72, - 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x67, 0x6e, 0x6f, - 0x69, 0x2e, 0x6f, 0x70, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x1a, 0x2c, 0x67, 0x69, 0x74, 0x68, 0x75, - 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, - 0x2f, 0x67, 0x6e, 0x6f, 0x69, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x74, 0x79, 0x70, 0x65, - 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xe9, 0x01, 0x0a, 0x10, 0x41, 0x64, 0x6a, 0x75, - 0x73, 0x74, 0x50, 0x53, 0x44, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2e, 0x0a, 0x09, - 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x10, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x50, 0x61, 0x74, - 0x68, 0x52, 0x09, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x12, 0x4c, 0x0a, 0x09, - 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, - 0x2e, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x70, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x2e, 0x41, - 0x64, 0x6a, 0x75, 0x73, 0x74, 0x50, 0x53, 0x44, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, - 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, - 0x09, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x53, 0x0a, 0x0f, 0x53, 0x69, - 0x67, 0x6e, 0x61, 0x6c, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x15, 0x0a, - 0x11, 0x44, 0x49, 0x52, 0x45, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, - 0x57, 0x4e, 0x10, 0x00, 0x12, 0x13, 0x0a, 0x0f, 0x44, 0x49, 0x52, 0x45, 0x43, 0x54, 0x49, 0x4f, - 0x4e, 0x5f, 0x49, 0x4e, 0x50, 0x55, 0x54, 0x10, 0x01, 0x12, 0x14, 0x0a, 0x10, 0x44, 0x49, 0x52, - 0x45, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x4f, 0x55, 0x54, 0x50, 0x55, 0x54, 0x10, 0x02, 0x3a, - 0x02, 0x18, 0x01, 0x22, 0x85, 0x01, 0x0a, 0x11, 0x41, 0x64, 0x6a, 0x75, 0x73, 0x74, 0x50, 0x53, - 0x44, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x12, 0x3b, 0x0a, 0x05, 0x73, 0x74, 0x61, - 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x25, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, - 0x6f, 0x70, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x2e, 0x41, 0x64, 0x6a, 0x75, 0x73, 0x74, 0x50, 0x53, - 0x44, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, - 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x22, 0x2f, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, - 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, - 0x52, 0x55, 0x4e, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x43, 0x4f, 0x4d, - 0x50, 0x4c, 0x45, 0x54, 0x45, 0x10, 0x02, 0x3a, 0x02, 0x18, 0x01, 0x22, 0xa1, 0x01, 0x0a, 0x0e, - 0x41, 0x64, 0x6a, 0x75, 0x73, 0x74, 0x50, 0x53, 0x44, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x35, - 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x67, - 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x70, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x2e, 0x41, 0x64, 0x6a, 0x75, - 0x73, 0x74, 0x50, 0x53, 0x44, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, - 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x22, 0x3c, 0x0a, - 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0f, 0x0a, 0x0b, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, - 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x50, 0x4f, 0x52, 0x54, 0x5f, 0x42, - 0x55, 0x53, 0x59, 0x10, 0x01, 0x12, 0x14, 0x0a, 0x10, 0x48, 0x41, 0x52, 0x44, 0x57, 0x41, 0x52, - 0x45, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x55, 0x52, 0x45, 0x10, 0x02, 0x3a, 0x02, 0x18, 0x01, 0x22, - 0x98, 0x01, 0x0a, 0x11, 0x41, 0x64, 0x6a, 0x75, 0x73, 0x74, 0x50, 0x53, 0x44, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3d, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, - 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, - 0x70, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x2e, 0x41, 0x64, 0x6a, 0x75, 0x73, 0x74, 0x50, 0x53, 0x44, - 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x48, 0x00, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x67, - 0x72, 0x65, 0x73, 0x73, 0x12, 0x34, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x70, 0x74, 0x69, 0x63, - 0x61, 0x6c, 0x2e, 0x41, 0x64, 0x6a, 0x75, 0x73, 0x74, 0x50, 0x53, 0x44, 0x45, 0x72, 0x72, 0x6f, - 0x72, 0x48, 0x00, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x3a, 0x02, 0x18, 0x01, 0x42, 0x0a, - 0x0a, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1d, 0x0a, 0x17, 0x43, 0x61, - 0x6e, 0x63, 0x65, 0x6c, 0x41, 0x64, 0x6a, 0x75, 0x73, 0x74, 0x50, 0x53, 0x44, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x3a, 0x02, 0x18, 0x01, 0x22, 0xef, 0x01, 0x0a, 0x15, 0x41, 0x64, - 0x6a, 0x75, 0x73, 0x74, 0x53, 0x70, 0x65, 0x63, 0x74, 0x72, 0x75, 0x6d, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x2e, 0x0a, 0x09, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x74, 0x79, - 0x70, 0x65, 0x73, 0x2e, 0x50, 0x61, 0x74, 0x68, 0x52, 0x09, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, - 0x65, 0x6e, 0x74, 0x12, 0x51, 0x0a, 0x09, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x33, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x70, - 0x74, 0x69, 0x63, 0x61, 0x6c, 0x2e, 0x41, 0x64, 0x6a, 0x75, 0x73, 0x74, 0x53, 0x70, 0x65, 0x63, - 0x74, 0x72, 0x75, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x53, 0x69, 0x67, 0x6e, - 0x61, 0x6c, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x09, 0x64, 0x69, 0x72, - 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x53, 0x0a, 0x0f, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, - 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x15, 0x0a, 0x11, 0x44, 0x49, 0x52, - 0x45, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, - 0x12, 0x13, 0x0a, 0x0f, 0x44, 0x49, 0x52, 0x45, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x49, 0x4e, - 0x50, 0x55, 0x54, 0x10, 0x01, 0x12, 0x14, 0x0a, 0x10, 0x44, 0x49, 0x52, 0x45, 0x43, 0x54, 0x49, - 0x4f, 0x4e, 0x5f, 0x4f, 0x55, 0x54, 0x50, 0x55, 0x54, 0x10, 0x02, 0x22, 0x8b, 0x01, 0x0a, 0x16, - 0x41, 0x64, 0x6a, 0x75, 0x73, 0x74, 0x53, 0x70, 0x65, 0x63, 0x74, 0x72, 0x75, 0x6d, 0x50, 0x72, - 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x12, 0x40, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2a, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x70, 0x74, - 0x69, 0x63, 0x61, 0x6c, 0x2e, 0x41, 0x64, 0x6a, 0x75, 0x73, 0x74, 0x53, 0x70, 0x65, 0x63, 0x74, - 0x72, 0x75, 0x6d, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x2e, 0x53, 0x74, 0x61, 0x74, - 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x22, 0x2f, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, - 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x0b, - 0x0a, 0x07, 0x52, 0x55, 0x4e, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x43, - 0x4f, 0x4d, 0x50, 0x4c, 0x45, 0x54, 0x45, 0x10, 0x02, 0x22, 0xa7, 0x01, 0x0a, 0x13, 0x41, 0x64, - 0x6a, 0x75, 0x73, 0x74, 0x53, 0x70, 0x65, 0x63, 0x74, 0x72, 0x75, 0x6d, 0x45, 0x72, 0x72, 0x6f, - 0x72, 0x12, 0x3a, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, - 0x26, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x70, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x2e, 0x41, - 0x64, 0x6a, 0x75, 0x73, 0x74, 0x53, 0x70, 0x65, 0x63, 0x74, 0x72, 0x75, 0x6d, 0x45, 0x72, 0x72, - 0x6f, 0x72, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, - 0x06, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, - 0x65, 0x74, 0x61, 0x69, 0x6c, 0x22, 0x3c, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0f, 0x0a, - 0x0b, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0d, - 0x0a, 0x09, 0x50, 0x4f, 0x52, 0x54, 0x5f, 0x42, 0x55, 0x53, 0x59, 0x10, 0x01, 0x12, 0x14, 0x0a, - 0x10, 0x48, 0x41, 0x52, 0x44, 0x57, 0x41, 0x52, 0x45, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x55, 0x52, - 0x45, 0x10, 0x02, 0x22, 0xa3, 0x01, 0x0a, 0x16, 0x41, 0x64, 0x6a, 0x75, 0x73, 0x74, 0x53, 0x70, - 0x65, 0x63, 0x74, 0x72, 0x75, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x42, - 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x24, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x70, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x2e, - 0x41, 0x64, 0x6a, 0x75, 0x73, 0x74, 0x53, 0x70, 0x65, 0x63, 0x74, 0x72, 0x75, 0x6d, 0x50, 0x72, - 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x48, 0x00, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, - 0x73, 0x73, 0x12, 0x39, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x21, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x70, 0x74, 0x69, 0x63, 0x61, 0x6c, - 0x2e, 0x41, 0x64, 0x6a, 0x75, 0x73, 0x74, 0x53, 0x70, 0x65, 0x63, 0x74, 0x72, 0x75, 0x6d, 0x45, - 0x72, 0x72, 0x6f, 0x72, 0x48, 0x00, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x42, 0x0a, 0x0a, - 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1e, 0x0a, 0x1c, 0x43, 0x61, 0x6e, - 0x63, 0x65, 0x6c, 0x41, 0x64, 0x6a, 0x75, 0x73, 0x74, 0x53, 0x70, 0x65, 0x63, 0x74, 0x72, 0x75, - 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0x92, 0x03, 0x0a, 0x10, 0x57, 0x61, - 0x76, 0x65, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x12, 0x53, - 0x0a, 0x09, 0x41, 0x64, 0x6a, 0x75, 0x73, 0x74, 0x50, 0x53, 0x44, 0x12, 0x1e, 0x2e, 0x67, 0x6e, - 0x6f, 0x69, 0x2e, 0x6f, 0x70, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x2e, 0x41, 0x64, 0x6a, 0x75, 0x73, - 0x74, 0x50, 0x53, 0x44, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x67, 0x6e, - 0x6f, 0x69, 0x2e, 0x6f, 0x70, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x2e, 0x41, 0x64, 0x6a, 0x75, 0x73, - 0x74, 0x50, 0x53, 0x44, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x88, 0x02, - 0x01, 0x30, 0x01, 0x12, 0x5d, 0x0a, 0x0f, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x41, 0x64, 0x6a, - 0x75, 0x73, 0x74, 0x50, 0x53, 0x44, 0x12, 0x1e, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x70, - 0x74, 0x69, 0x63, 0x61, 0x6c, 0x2e, 0x41, 0x64, 0x6a, 0x75, 0x73, 0x74, 0x50, 0x53, 0x44, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x70, - 0x74, 0x69, 0x63, 0x61, 0x6c, 0x2e, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x41, 0x64, 0x6a, 0x75, - 0x73, 0x74, 0x50, 0x53, 0x44, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x88, - 0x02, 0x01, 0x12, 0x5f, 0x0a, 0x0e, 0x41, 0x64, 0x6a, 0x75, 0x73, 0x74, 0x53, 0x70, 0x65, 0x63, - 0x74, 0x72, 0x75, 0x6d, 0x12, 0x23, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x70, 0x74, 0x69, - 0x63, 0x61, 0x6c, 0x2e, 0x41, 0x64, 0x6a, 0x75, 0x73, 0x74, 0x53, 0x70, 0x65, 0x63, 0x74, 0x72, - 0x75, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x67, 0x6e, 0x6f, 0x69, - 0x2e, 0x6f, 0x70, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x2e, 0x41, 0x64, 0x6a, 0x75, 0x73, 0x74, 0x53, - 0x70, 0x65, 0x63, 0x74, 0x72, 0x75, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x00, 0x30, 0x01, 0x12, 0x69, 0x0a, 0x14, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x41, 0x64, 0x6a, - 0x75, 0x73, 0x74, 0x53, 0x70, 0x65, 0x63, 0x74, 0x72, 0x75, 0x6d, 0x12, 0x23, 0x2e, 0x67, 0x6e, - 0x6f, 0x69, 0x2e, 0x6f, 0x70, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x2e, 0x41, 0x64, 0x6a, 0x75, 0x73, - 0x74, 0x53, 0x70, 0x65, 0x63, 0x74, 0x72, 0x75, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x2a, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x6f, 0x70, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x2e, - 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x41, 0x64, 0x6a, 0x75, 0x73, 0x74, 0x53, 0x70, 0x65, 0x63, - 0x74, 0x72, 0x75, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x36, - 0x5a, 0x2c, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, - 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x67, 0x6e, 0x6f, 0x69, 0x2f, 0x77, 0x61, 0x76, - 0x65, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x5f, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0xd2, 0x3e, - 0x05, 0x30, 0x2e, 0x32, 0x2e, 0x30, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_wavelength_router_wavelength_router_proto_rawDescOnce sync.Once - file_wavelength_router_wavelength_router_proto_rawDescData = file_wavelength_router_wavelength_router_proto_rawDesc -) +func _WavelengthRouter_AdjustSpectrum_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(AdjustSpectrumRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(WavelengthRouterServer).AdjustSpectrum(m, &wavelengthRouterAdjustSpectrumServer{stream}) +} -func file_wavelength_router_wavelength_router_proto_rawDescGZIP() []byte { - file_wavelength_router_wavelength_router_proto_rawDescOnce.Do(func() { - file_wavelength_router_wavelength_router_proto_rawDescData = protoimpl.X.CompressGZIP(file_wavelength_router_wavelength_router_proto_rawDescData) - }) - return file_wavelength_router_wavelength_router_proto_rawDescData -} - -var file_wavelength_router_wavelength_router_proto_enumTypes = make([]protoimpl.EnumInfo, 6) -var file_wavelength_router_wavelength_router_proto_msgTypes = make([]protoimpl.MessageInfo, 10) -var file_wavelength_router_wavelength_router_proto_goTypes = []interface{}{ - (AdjustPSDRequest_SignalDirection)(0), // 0: gnoi.optical.AdjustPSDRequest.SignalDirection - (AdjustPSDProgress_State)(0), // 1: gnoi.optical.AdjustPSDProgress.State - (AdjustPSDError_Type)(0), // 2: gnoi.optical.AdjustPSDError.Type - (AdjustSpectrumRequest_SignalDirection)(0), // 3: gnoi.optical.AdjustSpectrumRequest.SignalDirection - (AdjustSpectrumProgress_State)(0), // 4: gnoi.optical.AdjustSpectrumProgress.State - (AdjustSpectrumError_Type)(0), // 5: gnoi.optical.AdjustSpectrumError.Type - (*AdjustPSDRequest)(nil), // 6: gnoi.optical.AdjustPSDRequest - (*AdjustPSDProgress)(nil), // 7: gnoi.optical.AdjustPSDProgress - (*AdjustPSDError)(nil), // 8: gnoi.optical.AdjustPSDError - (*AdjustPSDResponse)(nil), // 9: gnoi.optical.AdjustPSDResponse - (*CancelAdjustPSDResponse)(nil), // 10: gnoi.optical.CancelAdjustPSDResponse - (*AdjustSpectrumRequest)(nil), // 11: gnoi.optical.AdjustSpectrumRequest - (*AdjustSpectrumProgress)(nil), // 12: gnoi.optical.AdjustSpectrumProgress - (*AdjustSpectrumError)(nil), // 13: gnoi.optical.AdjustSpectrumError - (*AdjustSpectrumResponse)(nil), // 14: gnoi.optical.AdjustSpectrumResponse - (*CancelAdjustSpectrumResponse)(nil), // 15: gnoi.optical.CancelAdjustSpectrumResponse - (*types.Path)(nil), // 16: gnoi.types.Path -} -var file_wavelength_router_wavelength_router_proto_depIdxs = []int32{ - 16, // 0: gnoi.optical.AdjustPSDRequest.component:type_name -> gnoi.types.Path - 0, // 1: gnoi.optical.AdjustPSDRequest.direction:type_name -> gnoi.optical.AdjustPSDRequest.SignalDirection - 1, // 2: gnoi.optical.AdjustPSDProgress.state:type_name -> gnoi.optical.AdjustPSDProgress.State - 2, // 3: gnoi.optical.AdjustPSDError.type:type_name -> gnoi.optical.AdjustPSDError.Type - 7, // 4: gnoi.optical.AdjustPSDResponse.progress:type_name -> gnoi.optical.AdjustPSDProgress - 8, // 5: gnoi.optical.AdjustPSDResponse.error:type_name -> gnoi.optical.AdjustPSDError - 16, // 6: gnoi.optical.AdjustSpectrumRequest.component:type_name -> gnoi.types.Path - 3, // 7: gnoi.optical.AdjustSpectrumRequest.direction:type_name -> gnoi.optical.AdjustSpectrumRequest.SignalDirection - 4, // 8: gnoi.optical.AdjustSpectrumProgress.state:type_name -> gnoi.optical.AdjustSpectrumProgress.State - 5, // 9: gnoi.optical.AdjustSpectrumError.type:type_name -> gnoi.optical.AdjustSpectrumError.Type - 12, // 10: gnoi.optical.AdjustSpectrumResponse.progress:type_name -> gnoi.optical.AdjustSpectrumProgress - 13, // 11: gnoi.optical.AdjustSpectrumResponse.error:type_name -> gnoi.optical.AdjustSpectrumError - 6, // 12: gnoi.optical.WavelengthRouter.AdjustPSD:input_type -> gnoi.optical.AdjustPSDRequest - 6, // 13: gnoi.optical.WavelengthRouter.CancelAdjustPSD:input_type -> gnoi.optical.AdjustPSDRequest - 11, // 14: gnoi.optical.WavelengthRouter.AdjustSpectrum:input_type -> gnoi.optical.AdjustSpectrumRequest - 11, // 15: gnoi.optical.WavelengthRouter.CancelAdjustSpectrum:input_type -> gnoi.optical.AdjustSpectrumRequest - 9, // 16: gnoi.optical.WavelengthRouter.AdjustPSD:output_type -> gnoi.optical.AdjustPSDResponse - 10, // 17: gnoi.optical.WavelengthRouter.CancelAdjustPSD:output_type -> gnoi.optical.CancelAdjustPSDResponse - 14, // 18: gnoi.optical.WavelengthRouter.AdjustSpectrum:output_type -> gnoi.optical.AdjustSpectrumResponse - 15, // 19: gnoi.optical.WavelengthRouter.CancelAdjustSpectrum:output_type -> gnoi.optical.CancelAdjustSpectrumResponse - 16, // [16:20] is the sub-list for method output_type - 12, // [12:16] is the sub-list for method input_type - 12, // [12:12] is the sub-list for extension type_name - 12, // [12:12] is the sub-list for extension extendee - 0, // [0:12] is the sub-list for field type_name -} - -func init() { file_wavelength_router_wavelength_router_proto_init() } -func file_wavelength_router_wavelength_router_proto_init() { - if File_wavelength_router_wavelength_router_proto != nil { - return +type WavelengthRouter_AdjustSpectrumServer interface { + Send(*AdjustSpectrumResponse) error + grpc.ServerStream +} + +type wavelengthRouterAdjustSpectrumServer struct { + grpc.ServerStream +} + +func (x *wavelengthRouterAdjustSpectrumServer) Send(m *AdjustSpectrumResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _WavelengthRouter_CancelAdjustSpectrum_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AdjustSpectrumRequest) + if err := dec(in); err != nil { + return nil, err } - if !protoimpl.UnsafeEnabled { - file_wavelength_router_wavelength_router_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AdjustPSDRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_wavelength_router_wavelength_router_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AdjustPSDProgress); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_wavelength_router_wavelength_router_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AdjustPSDError); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_wavelength_router_wavelength_router_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AdjustPSDResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_wavelength_router_wavelength_router_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CancelAdjustPSDResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_wavelength_router_wavelength_router_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AdjustSpectrumRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_wavelength_router_wavelength_router_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AdjustSpectrumProgress); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_wavelength_router_wavelength_router_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AdjustSpectrumError); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_wavelength_router_wavelength_router_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AdjustSpectrumResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_wavelength_router_wavelength_router_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CancelAdjustSpectrumResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } + if interceptor == nil { + return srv.(WavelengthRouterServer).CancelAdjustSpectrum(ctx, in) } - file_wavelength_router_wavelength_router_proto_msgTypes[3].OneofWrappers = []interface{}{ - (*AdjustPSDResponse_Progress)(nil), - (*AdjustPSDResponse_Error)(nil), + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gnoi.optical.WavelengthRouter/CancelAdjustSpectrum", } - file_wavelength_router_wavelength_router_proto_msgTypes[8].OneofWrappers = []interface{}{ - (*AdjustSpectrumResponse_Progress)(nil), - (*AdjustSpectrumResponse_Error)(nil), + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(WavelengthRouterServer).CancelAdjustSpectrum(ctx, req.(*AdjustSpectrumRequest)) } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_wavelength_router_wavelength_router_proto_rawDesc, - NumEnums: 6, - NumMessages: 10, - NumExtensions: 0, - NumServices: 1, + return interceptor(ctx, in, info, handler) +} + +var _WavelengthRouter_serviceDesc = grpc.ServiceDesc{ + ServiceName: "gnoi.optical.WavelengthRouter", + HandlerType: (*WavelengthRouterServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "CancelAdjustPSD", + Handler: _WavelengthRouter_CancelAdjustPSD_Handler, + }, + { + MethodName: "CancelAdjustSpectrum", + Handler: _WavelengthRouter_CancelAdjustSpectrum_Handler, + }, + }, + Streams: []grpc.StreamDesc{ + { + StreamName: "AdjustPSD", + Handler: _WavelengthRouter_AdjustPSD_Handler, + ServerStreams: true, + }, + { + StreamName: "AdjustSpectrum", + Handler: _WavelengthRouter_AdjustSpectrum_Handler, + ServerStreams: true, }, - GoTypes: file_wavelength_router_wavelength_router_proto_goTypes, - DependencyIndexes: file_wavelength_router_wavelength_router_proto_depIdxs, - EnumInfos: file_wavelength_router_wavelength_router_proto_enumTypes, - MessageInfos: file_wavelength_router_wavelength_router_proto_msgTypes, - }.Build() - File_wavelength_router_wavelength_router_proto = out.File - file_wavelength_router_wavelength_router_proto_rawDesc = nil - file_wavelength_router_wavelength_router_proto_goTypes = nil - file_wavelength_router_wavelength_router_proto_depIdxs = nil + }, + Metadata: "wavelength_router/wavelength_router.proto", } diff --git a/wavelength_router/wavelength_router.proto b/wavelength_router/wavelength_router.proto index 17989aeb..3ee85a37 100644 --- a/wavelength_router/wavelength_router.proto +++ b/wavelength_router/wavelength_router.proto @@ -20,8 +20,6 @@ package gnoi.optical; import "github.com/openconfig/gnoi/types/types.proto"; -option go_package = "github.com/openconfig/gnoi/wavelength_router"; - option (types.gnoi_version) = "0.2.0"; service WavelengthRouter { diff --git a/wavelength_router/wavelength_router_grpc.pb.go b/wavelength_router/wavelength_router_grpc.pb.go deleted file mode 100644 index b8499013..00000000 --- a/wavelength_router/wavelength_router_grpc.pb.go +++ /dev/null @@ -1,338 +0,0 @@ -// Code generated by protoc-gen-go-grpc. DO NOT EDIT. - -package wavelength_router - -import ( - context "context" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" -) - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 - -// WavelengthRouterClient is the client API for WavelengthRouter service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. -type WavelengthRouterClient interface { - // Deprecated: Do not use. - // AdjustPSD performs a power spectral density (PSD) adjustment on an optical - // DWDM line system port. - // - // This RPC's initial message triggers adjustments. The target should validate - // the request, and immediately begin the adjustment as long as another - // adjustment is not already running. As this RPC may take multiple minutes, - // the state should be regularly streamed to the client. The operation should - // be completed on the device regardless of the state of the RPC channel to - // the initiating client. A client that becomes disconnected during an - // operation can reconnect, requesting the same operation, and receive status - // updates this way. There is no means by which an adjustment that has been - // triggered by a client can be cancelled unless the CancelAdjustPSD RPC is - // used. - // DEPRECATED, use AdjustSpectrum. - AdjustPSD(ctx context.Context, in *AdjustPSDRequest, opts ...grpc.CallOption) (WavelengthRouter_AdjustPSDClient, error) - // Deprecated: Do not use. - // CancelAdjustPSD cancels an in-progress AdjustPSD request. If an - // adjustment is not being performed for the provided request, then the RPC - // should return successfully. - // DEPRECATED, use CancelAdjustSpectrum. - CancelAdjustPSD(ctx context.Context, in *AdjustPSDRequest, opts ...grpc.CallOption) (*CancelAdjustPSDResponse, error) - // AdjustSpectrum performs a spectrum power adjustment on an optical - // DWDM line system port. - // - // This RPC's initial message triggers adjustments. The target should validate - // the request, and immediately begin the adjustment as long as another - // adjustment is not already running. As this RPC may take multiple minutes, - // the state should be regularly streamed to the client. The operation should - // be completed on the device regardless of the state of the RPC channel to - // the initiating client. A client that becomes disconnected during an - // operation can reconnect, requesting the same operation, and receive status - // updates this way. There is no means by which an adjustment that has been - // triggered by a client can be cancelled unless the CancelAdjustSpectrum - // RPC is used. - AdjustSpectrum(ctx context.Context, in *AdjustSpectrumRequest, opts ...grpc.CallOption) (WavelengthRouter_AdjustSpectrumClient, error) - // CancelAdjustSpectrum cancels an in-progress AdjustSpectrum request. If an - // adjustment is not being performed for the provided request, then the RPC - // should return successfully. - CancelAdjustSpectrum(ctx context.Context, in *AdjustSpectrumRequest, opts ...grpc.CallOption) (*CancelAdjustSpectrumResponse, error) -} - -type wavelengthRouterClient struct { - cc grpc.ClientConnInterface -} - -func NewWavelengthRouterClient(cc grpc.ClientConnInterface) WavelengthRouterClient { - return &wavelengthRouterClient{cc} -} - -// Deprecated: Do not use. -func (c *wavelengthRouterClient) AdjustPSD(ctx context.Context, in *AdjustPSDRequest, opts ...grpc.CallOption) (WavelengthRouter_AdjustPSDClient, error) { - stream, err := c.cc.NewStream(ctx, &WavelengthRouter_ServiceDesc.Streams[0], "/gnoi.optical.WavelengthRouter/AdjustPSD", opts...) - if err != nil { - return nil, err - } - x := &wavelengthRouterAdjustPSDClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type WavelengthRouter_AdjustPSDClient interface { - Recv() (*AdjustPSDResponse, error) - grpc.ClientStream -} - -type wavelengthRouterAdjustPSDClient struct { - grpc.ClientStream -} - -func (x *wavelengthRouterAdjustPSDClient) Recv() (*AdjustPSDResponse, error) { - m := new(AdjustPSDResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -// Deprecated: Do not use. -func (c *wavelengthRouterClient) CancelAdjustPSD(ctx context.Context, in *AdjustPSDRequest, opts ...grpc.CallOption) (*CancelAdjustPSDResponse, error) { - out := new(CancelAdjustPSDResponse) - err := c.cc.Invoke(ctx, "/gnoi.optical.WavelengthRouter/CancelAdjustPSD", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *wavelengthRouterClient) AdjustSpectrum(ctx context.Context, in *AdjustSpectrumRequest, opts ...grpc.CallOption) (WavelengthRouter_AdjustSpectrumClient, error) { - stream, err := c.cc.NewStream(ctx, &WavelengthRouter_ServiceDesc.Streams[1], "/gnoi.optical.WavelengthRouter/AdjustSpectrum", opts...) - if err != nil { - return nil, err - } - x := &wavelengthRouterAdjustSpectrumClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type WavelengthRouter_AdjustSpectrumClient interface { - Recv() (*AdjustSpectrumResponse, error) - grpc.ClientStream -} - -type wavelengthRouterAdjustSpectrumClient struct { - grpc.ClientStream -} - -func (x *wavelengthRouterAdjustSpectrumClient) Recv() (*AdjustSpectrumResponse, error) { - m := new(AdjustSpectrumResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *wavelengthRouterClient) CancelAdjustSpectrum(ctx context.Context, in *AdjustSpectrumRequest, opts ...grpc.CallOption) (*CancelAdjustSpectrumResponse, error) { - out := new(CancelAdjustSpectrumResponse) - err := c.cc.Invoke(ctx, "/gnoi.optical.WavelengthRouter/CancelAdjustSpectrum", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// WavelengthRouterServer is the server API for WavelengthRouter service. -// All implementations must embed UnimplementedWavelengthRouterServer -// for forward compatibility -type WavelengthRouterServer interface { - // Deprecated: Do not use. - // AdjustPSD performs a power spectral density (PSD) adjustment on an optical - // DWDM line system port. - // - // This RPC's initial message triggers adjustments. The target should validate - // the request, and immediately begin the adjustment as long as another - // adjustment is not already running. As this RPC may take multiple minutes, - // the state should be regularly streamed to the client. The operation should - // be completed on the device regardless of the state of the RPC channel to - // the initiating client. A client that becomes disconnected during an - // operation can reconnect, requesting the same operation, and receive status - // updates this way. There is no means by which an adjustment that has been - // triggered by a client can be cancelled unless the CancelAdjustPSD RPC is - // used. - // DEPRECATED, use AdjustSpectrum. - AdjustPSD(*AdjustPSDRequest, WavelengthRouter_AdjustPSDServer) error - // Deprecated: Do not use. - // CancelAdjustPSD cancels an in-progress AdjustPSD request. If an - // adjustment is not being performed for the provided request, then the RPC - // should return successfully. - // DEPRECATED, use CancelAdjustSpectrum. - CancelAdjustPSD(context.Context, *AdjustPSDRequest) (*CancelAdjustPSDResponse, error) - // AdjustSpectrum performs a spectrum power adjustment on an optical - // DWDM line system port. - // - // This RPC's initial message triggers adjustments. The target should validate - // the request, and immediately begin the adjustment as long as another - // adjustment is not already running. As this RPC may take multiple minutes, - // the state should be regularly streamed to the client. The operation should - // be completed on the device regardless of the state of the RPC channel to - // the initiating client. A client that becomes disconnected during an - // operation can reconnect, requesting the same operation, and receive status - // updates this way. There is no means by which an adjustment that has been - // triggered by a client can be cancelled unless the CancelAdjustSpectrum - // RPC is used. - AdjustSpectrum(*AdjustSpectrumRequest, WavelengthRouter_AdjustSpectrumServer) error - // CancelAdjustSpectrum cancels an in-progress AdjustSpectrum request. If an - // adjustment is not being performed for the provided request, then the RPC - // should return successfully. - CancelAdjustSpectrum(context.Context, *AdjustSpectrumRequest) (*CancelAdjustSpectrumResponse, error) - mustEmbedUnimplementedWavelengthRouterServer() -} - -// UnimplementedWavelengthRouterServer must be embedded to have forward compatible implementations. -type UnimplementedWavelengthRouterServer struct { -} - -func (UnimplementedWavelengthRouterServer) AdjustPSD(*AdjustPSDRequest, WavelengthRouter_AdjustPSDServer) error { - return status.Errorf(codes.Unimplemented, "method AdjustPSD not implemented") -} -func (UnimplementedWavelengthRouterServer) CancelAdjustPSD(context.Context, *AdjustPSDRequest) (*CancelAdjustPSDResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CancelAdjustPSD not implemented") -} -func (UnimplementedWavelengthRouterServer) AdjustSpectrum(*AdjustSpectrumRequest, WavelengthRouter_AdjustSpectrumServer) error { - return status.Errorf(codes.Unimplemented, "method AdjustSpectrum not implemented") -} -func (UnimplementedWavelengthRouterServer) CancelAdjustSpectrum(context.Context, *AdjustSpectrumRequest) (*CancelAdjustSpectrumResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CancelAdjustSpectrum not implemented") -} -func (UnimplementedWavelengthRouterServer) mustEmbedUnimplementedWavelengthRouterServer() {} - -// UnsafeWavelengthRouterServer may be embedded to opt out of forward compatibility for this service. -// Use of this interface is not recommended, as added methods to WavelengthRouterServer will -// result in compilation errors. -type UnsafeWavelengthRouterServer interface { - mustEmbedUnimplementedWavelengthRouterServer() -} - -func RegisterWavelengthRouterServer(s grpc.ServiceRegistrar, srv WavelengthRouterServer) { - s.RegisterService(&WavelengthRouter_ServiceDesc, srv) -} - -func _WavelengthRouter_AdjustPSD_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(AdjustPSDRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(WavelengthRouterServer).AdjustPSD(m, &wavelengthRouterAdjustPSDServer{stream}) -} - -type WavelengthRouter_AdjustPSDServer interface { - Send(*AdjustPSDResponse) error - grpc.ServerStream -} - -type wavelengthRouterAdjustPSDServer struct { - grpc.ServerStream -} - -func (x *wavelengthRouterAdjustPSDServer) Send(m *AdjustPSDResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _WavelengthRouter_CancelAdjustPSD_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(AdjustPSDRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(WavelengthRouterServer).CancelAdjustPSD(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.optical.WavelengthRouter/CancelAdjustPSD", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(WavelengthRouterServer).CancelAdjustPSD(ctx, req.(*AdjustPSDRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _WavelengthRouter_AdjustSpectrum_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(AdjustSpectrumRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(WavelengthRouterServer).AdjustSpectrum(m, &wavelengthRouterAdjustSpectrumServer{stream}) -} - -type WavelengthRouter_AdjustSpectrumServer interface { - Send(*AdjustSpectrumResponse) error - grpc.ServerStream -} - -type wavelengthRouterAdjustSpectrumServer struct { - grpc.ServerStream -} - -func (x *wavelengthRouterAdjustSpectrumServer) Send(m *AdjustSpectrumResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _WavelengthRouter_CancelAdjustSpectrum_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(AdjustSpectrumRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(WavelengthRouterServer).CancelAdjustSpectrum(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.optical.WavelengthRouter/CancelAdjustSpectrum", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(WavelengthRouterServer).CancelAdjustSpectrum(ctx, req.(*AdjustSpectrumRequest)) - } - return interceptor(ctx, in, info, handler) -} - -// WavelengthRouter_ServiceDesc is the grpc.ServiceDesc for WavelengthRouter service. -// It's only intended for direct use with grpc.RegisterService, -// and not to be introspected or modified (even as a copy) -var WavelengthRouter_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "gnoi.optical.WavelengthRouter", - HandlerType: (*WavelengthRouterServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "CancelAdjustPSD", - Handler: _WavelengthRouter_CancelAdjustPSD_Handler, - }, - { - MethodName: "CancelAdjustSpectrum", - Handler: _WavelengthRouter_CancelAdjustSpectrum_Handler, - }, - }, - Streams: []grpc.StreamDesc{ - { - StreamName: "AdjustPSD", - Handler: _WavelengthRouter_AdjustPSD_Handler, - ServerStreams: true, - }, - { - StreamName: "AdjustSpectrum", - Handler: _WavelengthRouter_AdjustSpectrum_Handler, - ServerStreams: true, - }, - }, - Metadata: "wavelength_router/wavelength_router.proto", -} From bf0117a578aa8eb26ad4a08eb0c80a2a07fcc297 Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 16:58:58 +0530 Subject: [PATCH 151/238] Revert "Move to using 0.31.0 of protolint." This reverts commit c642bfa1e67b2256005ec4ff16a8d775e6be8c9a. --- .github/workflows/linter.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index 82f36ddc..e61d3eea 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -19,7 +19,7 @@ jobs: fetch-depth: 0 - name: Lint protobuf - uses: robshakir/protolint-action@v0.3.0 + uses: plexsystems/protolint-action@v0.2.0 with: configDirectory: .github env: From 21e664f4411e8f03d3f50c4493f617810f7a23ea Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 16:58:59 +0530 Subject: [PATCH 152/238] Revert "Fix protolint version." This reverts commit f0c7924996450724a62c52bebf62cabae32080d1. --- .github/workflows/linter.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index e61d3eea..a62f8ef3 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -22,5 +22,3 @@ jobs: uses: plexsystems/protolint-action@v0.2.0 with: configDirectory: .github - env: - PROTOLINT_VERSION: 0.31.0 From 532083189d91c8f3bb3f9ad073b7ea060270e37d Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 16:59:00 +0530 Subject: [PATCH 153/238] Revert "Update protobuf files for linter." This reverts commit 1aece4ce0fdba0285de4a617ba1da538f3470cb5. --- system/system.proto | 16 ++++++++-------- types/.types.proto.swp | Bin 0 -> 12288 bytes types/types.proto | 4 ++-- wavelength_router/wavelength_router.proto | 9 +++------ 4 files changed, 13 insertions(+), 16 deletions(-) create mode 100644 types/.types.proto.swp diff --git a/system/system.proto b/system/system.proto index 143c0111..5ebbfff3 100644 --- a/system/system.proto +++ b/system/system.proto @@ -62,8 +62,7 @@ service System { // provided route processor. If the current route processor is the same as the // one provided it is a NOOP. If the target does not exist an error is // returned. - rpc SwitchControlProcessor(SwitchControlProcessorRequest) - returns (SwitchControlProcessorResponse) {} + rpc SwitchControlProcessor(SwitchControlProcessorRequest) returns (SwitchControlProcessorResponse) {} // Reboot causes the target to reboot, possibly at some point in the future. // If the method of reboot is not supported then the Reboot RPC will fail. @@ -125,8 +124,8 @@ enum RebootMethod { HALT = 3; // Halt, if possible. WARM = 4; // Reload configuration but not underlying hardware. NSF = 5; // Non-stop-forwarding reboot, if possible. - // RESET method is deprecated in favor of the gNOI FactoryReset.Start(). - reserved 6; + reserved 6; // RESET method is deprecated in favor of the gNOI + // FactoryReset.Start(). POWERUP = 7; // Apply power, no-op if power is already on. } @@ -301,11 +300,12 @@ message Package { // final message must be a hash message contains the hash of the file contents. message SetPackageRequest { oneof request { - Package package = 1; - bytes contents = 2; - types.HashType hash = 3; // Verification hash of data. - } + Package package = 1; + bytes contents = 2; + types.HashType hash = 3; // Verification hash of data. + } } + message SetPackageResponse { } diff --git a/types/.types.proto.swp b/types/.types.proto.swp new file mode 100644 index 0000000000000000000000000000000000000000..04efd42ad5a816c8e688cfa87a5ccc536083a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Dkc)QaS<=jjv1OARARBN=zZ`J7KM$2zau|wNQ%tL4DjX{L(61CAG zQ_K;_cB~N8kY|-$l)n8+p`i`4h`RzlKDuLuGUE=wBjM;7lOFZF;c!@&Sf`$<>#XZx zFvggBtNy}Lv$b?+7W?3fch2g8?ew~BB!-q0=yWvhrzL)LY#x48nkL#1KE7BCMA$)! z0Z*V(`z68#cepO`sVVyX#DZC3<%pBG8rIM8Qcuz8vIgKI9pLwC Date: Mon, 6 Jun 2022 16:59:01 +0530 Subject: [PATCH 154/238] Revert "Update infrastructure rules." This reverts commit 2366b6c2047f9fda68502bc3788001a2193e4837. --- .github/protolint.yaml | 1 - compile_protos.sh | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/protolint.yaml b/.github/protolint.yaml index a4aba2e4..5076ac02 100644 --- a/.github/protolint.yaml +++ b/.github/protolint.yaml @@ -3,4 +3,3 @@ lint: remove: - ENUM_FIELD_NAMES_PREFIX - ENUM_FIELD_NAMES_ZERO_VALUE_END_WITH - - REPEATED_FIELD_NAMES_PLURALIZED diff --git a/compile_protos.sh b/compile_protos.sh index 1685a180..74dfbee9 100755 --- a/compile_protos.sh +++ b/compile_protos.sh @@ -4,7 +4,7 @@ set -euo pipefail proto_imports=".:${GOPATH}/src/github.com/google/protobuf/src:${GOPATH}/src" # Go -for p in types common diag bgp cert file interface layer2 mpls system os otdr wavelength_router; do +for p in types common diag bgp cert file interface layer2 mpls system otdr wavelength_router; do protoc -I=$proto_imports --go_out=plugins=grpc:. $p/$p.proto done From 7f168f3310ac3ca89eb31a630a76ee9e20f59289 Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 16:59:01 +0530 Subject: [PATCH 155/238] Revert "Bring OS into conformance with linter." This reverts commit a95373f478e5beab384607a8664073639749b6ad. --- os/os.proto | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/os/os.proto b/os/os.proto index af82ee23..04fc5992 100644 --- a/os/os.proto +++ b/os/os.proto @@ -160,8 +160,7 @@ message TransferRequest { // omitting the InstallRequest->TransferRequest->version value, and the OS // package is the same as the one running in the Target, the RPC MUST // immediately abort and reply with an InstallError->type->INSTALL_RUN_PACKAGE. -message TransferEnd { -} +message TransferEnd {} // The InstallResponse is used by the Target to inform the Client about the // state of the Install RPC. At any stage of the process the Target can reply @@ -179,8 +178,7 @@ message InstallResponse { // The TransferReady message tells the Client that the Target is ready to accept // the transfer of the OS package. At this stage the Target MUST have cleared // enough space to accept the incoming OS package. -message TransferReady { -} +message TransferReady {} // The TransferProgress message is sent by the target asynchronously during a // file transfer. The device SHOULD not respond to each input block received @@ -272,8 +270,7 @@ message ActivateResponse { // Supervisor triggers a switchover before booting the (old)Active Supervisor. // The Target should always perform a switchover with the least impact possible // to forwarding. -message ActivateOK { -} +message ActivateOK {} message ActivateError { enum Type { @@ -287,8 +284,7 @@ message ActivateError { string detail = 2; } -message VerifyRequest { -} +message VerifyRequest {} message VerifyResponse { // The OS version currently running. From 60230f18825f578c6483e40412e6bbbd67cb2ea8 Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 16:59:02 +0530 Subject: [PATCH 156/238] Revert "Bring mpls into conformance with linter." This reverts commit 12a3847edc68a5d214ecdd2719b85f58fd0c6807. --- mpls/mpls.proto | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/mpls/mpls.proto b/mpls/mpls.proto index 6192a94b..e1b1f011 100644 --- a/mpls/mpls.proto +++ b/mpls/mpls.proto @@ -16,10 +16,10 @@ syntax = "proto3"; -package gnoi.mpls; - import "github.com/openconfig/gnoi/types/types.proto"; +package gnoi.mpls; + option (types.gnoi_version) = "0.1.0"; service MPLS { @@ -28,8 +28,7 @@ service MPLS { rpc ClearLSP(ClearLSPRequest) returns (ClearLSPResponse) {} // ClearLSPCounters will clear the MPLS counters for the provided LSP. - rpc ClearLSPCounters(ClearLSPCountersRequest) - returns (ClearLSPCountersResponse) {} + rpc ClearLSPCounters(ClearLSPCountersRequest) returns (ClearLSPCountersResponse) {} // An MPLS ping, specified as per RFC4379. rpc MPLSPing(MPLSPingRequest) returns (stream MPLSPingResponse) {} @@ -116,13 +115,10 @@ message MPLSPingRequest { // TODO(robjs): L3VPN, BGP-LU destination types. See RFC4379. } enum ReplyMode { - // Reply via an IPv4 packet to this system. - IPV4 = 0; - // Reply with a labeled packet with the router alert bit set. - ROUTER_ALERT = 1; + IPV4 = 0; // Reply via an IPv4 packet to this system. + ROUTER_ALERT = 1; // Reply with a labeled packet with the router alert bit set. } - // How the target LER should respond to the LSP ping. - ReplyMode reply_mode = 6; + ReplyMode reply_mode = 6; // How the target LER should respond to the LSP ping. // The number of MPLS echo request packets to send. uint32 count = 7; // default=3 // The size (in bytes) of each MPLS echo request packet. From 75bfcea7e410da80603874d22f04e81a573c2800 Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 16:59:03 +0530 Subject: [PATCH 157/238] Revert "Bring layer2 into conformance with linter." This reverts commit 0385fb5ef0266eb3d9ec9dceb7878b05fa5cce02. --- layer2/layer2.proto | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/layer2/layer2.proto b/layer2/layer2.proto index fe8725ec..75c2471f 100644 --- a/layer2/layer2.proto +++ b/layer2/layer2.proto @@ -27,29 +27,24 @@ service Layer2 { // clear the entire table based on parameters provided. // TODO: This method is subject to deprecation once OpenConfig models this // state. - rpc ClearNeighborDiscovery(ClearNeighborDiscoveryRequest) - returns (ClearNeighborDiscoveryResponse) {} + rpc ClearNeighborDiscovery(ClearNeighborDiscoveryRequest) returns (ClearNeighborDiscoveryResponse) {} // ClearSpanningTree will reset a blocked spanning tree interface. // TODO: This method is subject to deprecation once OpenConfig models this // state. - rpc ClearSpanningTree(ClearSpanningTreeRequest) - returns (ClearSpanningTreeResponse) {} + rpc ClearSpanningTree(ClearSpanningTreeRequest) returns (ClearSpanningTreeResponse) {} // PerformBERT will perform a BERT operation on a port. The stream will // return the current state of the operation as well as the ID for the // operation. - rpc PerformBERT(PerformBERTRequest) - returns (stream PerformBERTResponse) {} + rpc PerformBERT(PerformBERTRequest) returns (stream PerformBERTResponse) {} // ClearLLDPInterface will clear all LLDP adjacencies on the provided // interface. - rpc ClearLLDPInterface(ClearLLDPInterfaceRequest) - returns (ClearLLDPInterfaceResponse) {} + rpc ClearLLDPInterface(ClearLLDPInterfaceRequest) returns (ClearLLDPInterfaceResponse) {} // SendWakeOnLAN will send a WOL event on the requested interface. - rpc SendWakeOnLAN(SendWakeOnLANRequest) - returns (SendWakeOnLANResponse) {} + rpc SendWakeOnLAN(SendWakeOnLANRequest) returns (SendWakeOnLANResponse) {} } @@ -87,10 +82,8 @@ message PerformBERTResponse { BERTState state = 2; int64 elapsed_period = 3; // BERT test length in nanoseconds. bytes pattern = 4; // Pattern used for the BERT test. - // Number of errors experienced since the start of the BERT test. - int64 errors = 5; - // Number of bits received since the start of the BERT test. - int64 received_bits = 6; + int64 errors = 5; // Number of errors experienced since the start of the BERT test. + int64 received_bits = 6; // Number of bits received since the start of the BERT test.} } message ClearLLDPInterfaceRequest { From d92f77111006605e10e2eafb237916183d21329d Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 16:59:04 +0530 Subject: [PATCH 158/238] Revert "Bring interface into conformance with linter." This reverts commit 17f37c042b9f4330fcca275f1df98e6c3778df3b. --- interface/interface.proto | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/interface/interface.proto b/interface/interface.proto index bff9f11a..f8d4201e 100644 --- a/interface/interface.proto +++ b/interface/interface.proto @@ -24,23 +24,20 @@ option (types.gnoi_version) = "0.1.0"; service Interface { // SetLoopbackMode is used to set the mode of loopback on a interface. - rpc SetLoopbackMode(SetLoopbackModeRequest) - returns (SetLoopbackModeResponse) {} + rpc SetLoopbackMode(SetLoopbackModeRequest) returns (SetLoopbackModeResponse) {} // GetLoopbackMode is used to get the mode of loopback on a interface. - rpc GetLoopbackMode(GetLoopbackModeRequest) - returns (GetLoopbackModeResponse) {} + rpc GetLoopbackMode(GetLoopbackModeRequest) returns (GetLoopbackModeResponse) {} // ClearInterfaceCounters will reset the counters for the provided interface. - rpc ClearInterfaceCounters(ClearInterfaceCountersRequest) - returns (ClearInterfaceCountersResponse) {} + rpc ClearInterfaceCounters(ClearInterfaceCountersRequest) returns (ClearInterfaceCountersResponse) {} } -// SetLoopbackModeRequest requests the provide interface be have its loopback -// mode set to the specified mode. The mode may be vendor specific. For example, -// on a transport device, available modes are "none", "mac", "phy", -// "phy_remote", "framer_facility", and "framer_terminal". +// SetLoopbackModeRequest requests the provide interface be have its loopback mode +// set to mode. Mode may be vendor specific. For example, on a transport +// device, available modes are "none", "mac", "phy", "phy_remote", +// "framer_facility", and "framer_terminal". message SetLoopbackModeRequest { types.Path interface = 1; string mode = 2; From b8fcdfa66066e3d80590f7a6062ae2f33decfb5d Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 16:59:04 +0530 Subject: [PATCH 159/238] Revert "Bring file into conformance with linter." This reverts commit ac2cb24d0148b80007dbb13cb9932f0d19f9c74b. --- file/file.proto | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/file/file.proto b/file/file.proto index 5897d025..bc644ddd 100644 --- a/file/file.proto +++ b/file/file.proto @@ -18,8 +18,8 @@ syntax = "proto3"; package gnoi.file; -import "github.com/openconfig/gnoi/common/common.proto"; import "github.com/openconfig/gnoi/types/types.proto"; +import "github.com/openconfig/gnoi/common/common.proto"; option (types.gnoi_version) = "0.1.0"; @@ -36,8 +36,7 @@ service File { // transferred. An error is returned if the file does not exist, the file // transfer fails, or if there was an error reading the file. This is a // blocking call until the file transfer is complete. - rpc TransferToRemote(TransferToRemoteRequest) - returns (TransferToRemoteResponse) {} + rpc TransferToRemote(TransferToRemoteRequest) returns (TransferToRemoteResponse) {} // Put streams data into a file on the target. The file is sent in // sequential messages, each message containing up to 64KB of data. A final @@ -89,8 +88,7 @@ message PutRequest { } } -message PutResponse { -} +message PutResponse {} // A GetRequest specifies the remote_file to be streamed back // to the caller. The remote_file must be an absolute path to an @@ -153,5 +151,4 @@ message RemoveRequest { string remote_file = 1; } -message RemoveResponse { -} +message RemoveResponse {} From 881fa14d1132ebf7ac099e85d87c9c1bb39143ce Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 16:59:05 +0530 Subject: [PATCH 160/238] Revert "Bring factory_reset into conformance with linter." This reverts commit 4a7fa4a5ff8bad43dd5908844fa36ac522dc0747. --- factory_reset/reset.proto | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/factory_reset/reset.proto b/factory_reset/reset.proto index 19feff67..fba8e31e 100644 --- a/factory_reset/reset.proto +++ b/factory_reset/reset.proto @@ -34,8 +34,7 @@ message StartRequest { bool zero_fill = 2; } -message ResetSuccess { -} +message ResetSuccess {} // Message also used in gRPC status.details field. message ResetError { From 07f905abe08141c1f5b0e55f7f7d6c5f9525f528 Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 16:59:06 +0530 Subject: [PATCH 161/238] Revert "Bring BGP into conformance with linter." This reverts commit 63f563b3d571a36e42a7323e8971135dea94dd9c. --- bgp/bgp.proto | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/bgp/bgp.proto b/bgp/bgp.proto index 77d46cd9..124efabc 100644 --- a/bgp/bgp.proto +++ b/bgp/bgp.proto @@ -16,17 +16,16 @@ syntax = "proto3"; -package gnoi.bgp; - import "github.com/openconfig/gnoi/types/types.proto"; +package gnoi.bgp; + // The current semantic version of the gNOI BGP service. option (types.gnoi_version) = "0.1.0"; service BGP { // ClearBGPNeighbor clears a BGP session. - rpc ClearBGPNeighbor(ClearBGPNeighborRequest) - returns (ClearBGPNeighborResponse) {} + rpc ClearBGPNeighbor(ClearBGPNeighborRequest) returns (ClearBGPNeighborResponse) {} } From 6e0c1db0b06e5aec763353a8d13e501349d85a92 Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 16:59:07 +0530 Subject: [PATCH 162/238] Revert "Bring cert.proto into conformance with linter." This reverts commit 23c12ebe1db0e6972ede3fe129e0d4ac467951f5. --- cert/cert.proto | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cert/cert.proto b/cert/cert.proto index e9da3ecf..f720e453 100644 --- a/cert/cert.proto +++ b/cert/cert.proto @@ -18,10 +18,10 @@ // rotation. syntax = "proto3"; -package gnoi.certificate; - import "github.com/openconfig/gnoi/types/types.proto"; +package gnoi.certificate; + option (types.gnoi_version) = "0.2.0"; // The Certificate Management Service exported by targets. @@ -89,7 +89,7 @@ service CertificateManagement { // Step 6: Final commit. // Client ---> FinalizeRequest ----> Target rpc Rotate(stream RotateCertificateRequest) - returns (stream RotateCertificateResponse); + returns (stream RotateCertificateResponse); // Install will put a new Certificate on the target by creating a new CSR // request and placing the new Certificate based on the CSR on the target.The @@ -134,7 +134,7 @@ service CertificateManagement { // Client <- LoadCertificateResponse() <--- Target // rpc Install(stream InstallCertificateRequest) - returns (stream InstallCertificateResponse); + returns (stream InstallCertificateResponse); // When credentials are generated on the device, generates a keypair and // returns the Certificate Signing Request (CSR). The CSR has the public key, From 7d345a999aecd44c0d77c74418e5fa8b9c4f99c2 Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 16:59:07 +0530 Subject: [PATCH 163/238] Revert "Fix path to protolint.yaml" This reverts commit 073243de1a62eb81d0a70b613069809d63d33221. --- .github/{protolint.yaml => .protolint.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/{protolint.yaml => .protolint.yml} (100%) diff --git a/.github/protolint.yaml b/.github/.protolint.yml similarity index 100% rename from .github/protolint.yaml rename to .github/.protolint.yml From 77040ad686a891e93f0363a62200fb4c12063199 Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 16:59:08 +0530 Subject: [PATCH 164/238] Revert "Fix syntax error in workflow config." This reverts commit abe32a6fabde2c8280036ec71f6dfc6c30ec9ca1. --- .github/workflows/linter.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index a62f8ef3..e57da543 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -20,5 +20,4 @@ jobs: - name: Lint protobuf uses: plexsystems/protolint-action@v0.2.0 - with: - configDirectory: .github + configDirectory: .github From 31e821b3f283213bbe17c4947f963aa9300b9cb3 Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 16:59:09 +0530 Subject: [PATCH 165/238] Revert "Update directory containing protolint config." This reverts commit 4ce4cf338d345c5e25c621da858ea22806070e5c. --- .github/workflows/linter.yml | 1 - .github/.protolint.yml => .protolint.yml | 0 2 files changed, 1 deletion(-) rename .github/.protolint.yml => .protolint.yml (100%) diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index e57da543..5bb27d64 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -20,4 +20,3 @@ jobs: - name: Lint protobuf uses: plexsystems/protolint-action@v0.2.0 - configDirectory: .github diff --git a/.github/.protolint.yml b/.protolint.yml similarity index 100% rename from .github/.protolint.yml rename to .protolint.yml From 68faea620260b7ec483739721ede51b695bdb1fe Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 16:59:10 +0530 Subject: [PATCH 166/238] Revert "Move to using protolint." This reverts commit f092a923502159b9dbc74b9605c8a4f739a84183. --- .github/workflows/linter.yml | 8 ++++++-- .protolint.yml | 5 ----- 2 files changed, 6 insertions(+), 7 deletions(-) delete mode 100644 .protolint.yml diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index 5bb27d64..9f891bd2 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -18,5 +18,9 @@ jobs: with: fetch-depth: 0 - - name: Lint protobuf - uses: plexsystems/protolint-action@v0.2.0 + - name: Lint Code Base + uses: github/super-linter@v3 + env: + VALIDATE_ALL_CODEBASE: false + DEFAULT_BRANCH: master + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.protolint.yml b/.protolint.yml deleted file mode 100644 index 5076ac02..00000000 --- a/.protolint.yml +++ /dev/null @@ -1,5 +0,0 @@ -lint: - rules: - remove: - - ENUM_FIELD_NAMES_PREFIX - - ENUM_FIELD_NAMES_ZERO_VALUE_END_WITH From 5f07b67ebf4246ac362ff650be07f04833b5870a Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 16:59:16 +0530 Subject: [PATCH 167/238] Revert "Remove staticcheck since it does not work well against .pb.go files." This reverts commit eb4843bd9866c7e937ae4506bafab09a96ba481e. --- .github/workflows/go.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index a08c2859..1006318d 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -61,3 +61,7 @@ jobs: - name: Check gofmt run: diff -u <(echo -n) <(gofmt -d -s .) + + - name: Staticcheck + run: | + staticcheck ./... From 40ba4e9b28ad541babd28db262ce47a139352b34 Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 16:59:17 +0530 Subject: [PATCH 168/238] Revert "Add go module support." This reverts commit daf0853eeb6c0e1a6171026abe55f655e1cad034. --- .github/workflows/go.yml | 6 +-- go.mod | 9 ----- go.sum | 82 ---------------------------------------- 3 files changed, 1 insertion(+), 96 deletions(-) delete mode 100644 go.mod delete mode 100644 go.sum diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 1006318d..33fb9492 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -49,13 +49,9 @@ jobs: run: | go get -u honnef.co/go/tools/cmd/staticcheck - - name: Check out code + - name: Check out ygot code uses: actions/checkout@v2 - - name: get dependencies - run: | - go get -v -t -d ./... - - name: Go vet run: go vet ./... diff --git a/go.mod b/go.mod deleted file mode 100644 index b084997e..00000000 --- a/go.mod +++ /dev/null @@ -1,9 +0,0 @@ -module github.com/openconfig/gnoi - -go 1.15 - -require ( - github.com/golang/protobuf v1.4.3 - golang.org/x/net v0.0.0-20201110031124-69a78807bb2b - google.golang.org/grpc v1.33.2 -) diff --git a/go.sum b/go.sum deleted file mode 100644 index 0b6e5e08..00000000 --- a/go.sum +++ /dev/null @@ -1,82 +0,0 @@ -cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= -github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= -github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= -github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= -github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= -github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= -github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= -github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98= -github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= -github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= -github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= -github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8= -github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA= -github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs= -github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w= -github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0= -github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8= -github.com/golang/protobuf v1.4.3 h1:JjCZWpVbqXDqFVmTfYWEVTMIYrL/NPdPSCHPJ0T/raM= -github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= -github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= -github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= -github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= -github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= -golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= -golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= -golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= -golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= -golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= -golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20201110031124-69a78807bb2b h1:uwuIcX0g4Yl1NC5XAz37xsr2lTtcqevgzYNVt49waME= -golang.org/x/net v0.0.0-20201110031124-69a78807bb2b/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= -golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= -golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -golang.org/x/text v0.3.3 h1:cokOdA+Jmi5PJGXLlLllQSgYigAEfHXJAERHVMaCc2k= -golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= -golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= -golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= -golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= -google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= -google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= -google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= -google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013 h1:+kGHl1aib/qcwaRi1CbqBZ1rk19r85MNUf8HaBghugY= -google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= -google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= -google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY= -google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= -google.golang.org/grpc v1.33.2 h1:EQyQC3sa8M+p6Ulc8yy9SWSS2GVwyRc83gAbG8lrl4o= -google.golang.org/grpc v1.33.2/go.mod h1:JMHMWHQWaTccqQQlmk3MJZS+GWXOdAesneDmEnv2fbc= -google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= -google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= -google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= -google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE= -google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo= -google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= -google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= -google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= -google.golang.org/protobuf v1.25.0 h1:Ejskq+SyPohKW+1uil0JJMtmHCgJPJ/qWTxr8qp+R4c= -google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c= -honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= -honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= From 4e6db67fadefb69e45571da495323495f7a5ead2 Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 16:59:18 +0530 Subject: [PATCH 169/238] Revert "Migrate from Travis-CI to GitHub actions." This reverts commit a883ade61682022743f2ddb80ced4353c976e8f1. --- .github/workflows/go.yml | 63 ------------------------------------ .github/workflows/linter.yml | 26 --------------- .travis.yml | 8 +++++ 3 files changed, 8 insertions(+), 89 deletions(-) delete mode 100644 .github/workflows/go.yml delete mode 100644 .github/workflows/linter.yml create mode 100644 .travis.yml diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml deleted file mode 100644 index 33fb9492..00000000 --- a/.github/workflows/go.yml +++ /dev/null @@ -1,63 +0,0 @@ -name: Go - -on: - push: - branches: [ master ] - pull_request: - branches: [ master ] - -jobs: - build: - name: Build - runs-on: ubuntu-latest - strategy: - matrix: - go: ['1.12', '1.13', '1.14', '1.15'] - steps: - - - name: Set up Go ${{ matrix.go }} - uses: actions/setup-go@v2 - with: - go-version: ${{ matrix.go }} - id: go - - - name: Check out code into the Go module directory - uses: actions/checkout@v2 - - - name: Get dependencies - run: | - go get -v -t -d ./... - - - name: Build - run: go build -v ./... - - - name: Test - run: go test -v -coverprofile=profile.cov ./... - - static_analysis: - name: Static Analysis - runs-on: ubuntu-latest - - steps: - - name: Install Go - uses: actions/setup-go@v2 - with: - go-version: '1.14' - id: go - - - name: Install required static analysis tools - run: | - go get -u honnef.co/go/tools/cmd/staticcheck - - - name: Check out ygot code - uses: actions/checkout@v2 - - - name: Go vet - run: go vet ./... - - - name: Check gofmt - run: diff -u <(echo -n) <(gofmt -d -s .) - - - name: Staticcheck - run: | - staticcheck ./... diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml deleted file mode 100644 index 9f891bd2..00000000 --- a/.github/workflows/linter.yml +++ /dev/null @@ -1,26 +0,0 @@ -name: Lint Code Base - -on: - push: - branches-ignore: [master] - # Remove the line above to run when pushing to master - pull_request: - branches: [master] - -jobs: - build: - name: Lint Code Base - runs-on: ubuntu-latest - - steps: - - name: Checkout Code - uses: actions/checkout@v2 - with: - fetch-depth: 0 - - - name: Lint Code Base - uses: github/super-linter@v3 - env: - VALIDATE_ALL_CODEBASE: false - DEFAULT_BRANCH: master - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..64b227f1 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,8 @@ +language: go +go: + - 1.9.x + - 1.10.x + - 1.11.x + - master +script: + - go test ./... From 1ba2b0399554f95679029a7e7741d906d479bcb1 Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 16:59:18 +0530 Subject: [PATCH 170/238] Revert "Fixing path issues in build files" This reverts commit 176c6fcc429dbb2c0edeb7253062d2cebcbde126. --- bgp/BUILD | 1 - bgp/bgp.proto | 3 ++- cert/BUILD | 1 - cert/cert.proto | 3 ++- common/BUILD | 1 - common/common.proto | 3 ++- diag/BUILD | 1 - diag/diag.proto | 3 ++- factory_reset/BUILD | 1 - factory_reset/reset.proto | 3 ++- file/BUILD | 1 - file/file.proto | 6 ++++-- interface/BUILD | 1 - interface/interface.proto | 3 ++- layer2/BUILD | 1 - layer2/layer2.proto | 3 ++- mpls/BUILD | 1 - mpls/mpls.proto | 3 ++- os/BUILD | 1 - os/os.proto | 3 ++- otdr/BUILD | 1 - otdr/otdr.proto | 3 ++- system/BUILD | 1 - system/system.proto | 7 +++++-- types/BUILD | 1 - wavelength_router/BUILD | 1 - wavelength_router/wavelength_router.proto | 3 ++- 27 files changed, 31 insertions(+), 29 deletions(-) diff --git a/bgp/BUILD b/bgp/BUILD index f4b9be16..6a1ecb58 100644 --- a/bgp/BUILD +++ b/bgp/BUILD @@ -31,7 +31,6 @@ filegroup( proto_library( name = "bgp_proto", srcs = ["bgp.proto"], - import_prefix = "github.com/openconfig/gnoi", deps = [ "//types:types_proto", ], diff --git a/bgp/bgp.proto b/bgp/bgp.proto index 124efabc..5bb831ac 100644 --- a/bgp/bgp.proto +++ b/bgp/bgp.proto @@ -16,7 +16,8 @@ syntax = "proto3"; -import "github.com/openconfig/gnoi/types/types.proto"; +// import "github.com/openconfig/gnoi/types/types.proto"; +import "types/types.proto"; package gnoi.bgp; diff --git a/cert/BUILD b/cert/BUILD index e6529956..3ce6af43 100644 --- a/cert/BUILD +++ b/cert/BUILD @@ -30,7 +30,6 @@ filegroup( proto_library( name = "cert_proto", srcs = ["cert.proto"], - import_prefix = "github.com/openconfig/gnoi", deps = [ "@com_google_protobuf//:any_proto", "@com_google_protobuf//:descriptor_proto", diff --git a/cert/cert.proto b/cert/cert.proto index f720e453..74538b67 100644 --- a/cert/cert.proto +++ b/cert/cert.proto @@ -18,7 +18,8 @@ // rotation. syntax = "proto3"; -import "github.com/openconfig/gnoi/types/types.proto"; +// import "github.com/openconfig/gnoi/types/types.proto"; +import "types/types.proto"; package gnoi.certificate; diff --git a/common/BUILD b/common/BUILD index ea198e6d..e30a7f7a 100644 --- a/common/BUILD +++ b/common/BUILD @@ -31,7 +31,6 @@ filegroup( proto_library( name = "common_proto", srcs = ["common.proto"], - import_prefix = "github.com/openconfig/gnoi", deps = [ "//types:types_proto", "@com_google_protobuf//:any_proto", diff --git a/common/common.proto b/common/common.proto index f2928fca..4c32060f 100644 --- a/common/common.proto +++ b/common/common.proto @@ -18,7 +18,8 @@ syntax = "proto3"; package gnoi.common; -import "github.com/openconfig/gnoi/types/types.proto"; +// import "github.com/openconfig/gnoi/types/types.proto"; +import "types/types.proto"; // RemoteDownload defines the details for a device to initiate a file transfer // from or to a remote location. diff --git a/diag/BUILD b/diag/BUILD index 7895d2f9..190d080f 100644 --- a/diag/BUILD +++ b/diag/BUILD @@ -31,7 +31,6 @@ filegroup( proto_library( name = "diag_proto", srcs = ["diag.proto"], - import_prefix = "github.com/openconfig/gnoi", deps = [ "//types:types_proto", ], diff --git a/diag/diag.proto b/diag/diag.proto index 84592d6a..88d1e42c 100644 --- a/diag/diag.proto +++ b/diag/diag.proto @@ -20,7 +20,8 @@ syntax = "proto3"; package gnoi.diag; -import "github.com/openconfig/gnoi/types/types.proto"; +// import "github.com/openconfig/gnoi/types/types.proto"; +import "types/types.proto"; option (types.gnoi_version) = "0.1.0"; diff --git a/factory_reset/BUILD b/factory_reset/BUILD index 7ee115c7..2cfc7dd6 100644 --- a/factory_reset/BUILD +++ b/factory_reset/BUILD @@ -30,7 +30,6 @@ filegroup( proto_library( name = "reset_proto", srcs = ["reset.proto"], - import_prefix = "github.com/openconfig/gnoi", deps = [ "//types:types_proto", ], diff --git a/factory_reset/reset.proto b/factory_reset/reset.proto index fba8e31e..9ce6560d 100644 --- a/factory_reset/reset.proto +++ b/factory_reset/reset.proto @@ -3,7 +3,8 @@ syntax = "proto3"; package gnoi.factory_reset; -import "github.com/openconfig/gnoi/types/types.proto"; +// import "github.com/openconfig/gnoi/types/types.proto"; +import "types/types.proto"; option (types.gnoi_version) = "0.1.0"; diff --git a/file/BUILD b/file/BUILD index 59a15b6b..abfc40fc 100644 --- a/file/BUILD +++ b/file/BUILD @@ -29,7 +29,6 @@ filegroup( proto_library( name = "file_proto", srcs = ["file.proto"], - import_prefix = "github.com/openconfig/gnoi", deps = [ "//types:types_proto", "//common:common_proto", diff --git a/file/file.proto b/file/file.proto index bc644ddd..5dd0b2e5 100644 --- a/file/file.proto +++ b/file/file.proto @@ -18,8 +18,10 @@ syntax = "proto3"; package gnoi.file; -import "github.com/openconfig/gnoi/types/types.proto"; -import "github.com/openconfig/gnoi/common/common.proto"; +// import "github.com/openconfig/gnoi/types/types.proto"; +// import "github.com/openconfig/gnoi/common/common.proto"; +import "types/types.proto"; +import "common/common.proto"; option (types.gnoi_version) = "0.1.0"; diff --git a/interface/BUILD b/interface/BUILD index 9379161b..eb4b29c1 100644 --- a/interface/BUILD +++ b/interface/BUILD @@ -29,7 +29,6 @@ filegroup( proto_library( name = "interface_proto", srcs = ["interface.proto"], - import_prefix = "github.com/openconfig/gnoi", deps = [ "//types:types_proto", "//common:common_proto", diff --git a/interface/interface.proto b/interface/interface.proto index f8d4201e..a0e3f8f7 100644 --- a/interface/interface.proto +++ b/interface/interface.proto @@ -18,7 +18,8 @@ syntax = "proto3"; package gnoi.interface; -import "github.com/openconfig/gnoi/types/types.proto"; +// import "github.com/openconfig/gnoi/types/types.proto"; +import "types/types.proto"; option (types.gnoi_version) = "0.1.0"; diff --git a/layer2/BUILD b/layer2/BUILD index 7df3b062..095b1c32 100644 --- a/layer2/BUILD +++ b/layer2/BUILD @@ -29,7 +29,6 @@ filegroup( proto_library( name = "layer2_proto", srcs = ["layer2.proto"], - import_prefix = "github.com/openconfig/gnoi", deps = [ "//types:types_proto", "//common:common_proto", diff --git a/layer2/layer2.proto b/layer2/layer2.proto index 75c2471f..8b6977e0 100644 --- a/layer2/layer2.proto +++ b/layer2/layer2.proto @@ -18,7 +18,8 @@ syntax = "proto3"; package gnoi.layer2; -import "github.com/openconfig/gnoi/types/types.proto"; +// import "github.com/openconfig/gnoi/types/types.proto"; +import "types/types.proto"; option (types.gnoi_version) = "0.1.0"; diff --git a/mpls/BUILD b/mpls/BUILD index a29ae4c8..9afba4a8 100644 --- a/mpls/BUILD +++ b/mpls/BUILD @@ -29,7 +29,6 @@ filegroup( proto_library( name = "mpls_proto", srcs = ["mpls.proto"], - import_prefix = "github.com/openconfig/gnoi", deps = [ "//types:types_proto", "//common:common_proto", diff --git a/mpls/mpls.proto b/mpls/mpls.proto index e1b1f011..e51f68bd 100644 --- a/mpls/mpls.proto +++ b/mpls/mpls.proto @@ -16,7 +16,8 @@ syntax = "proto3"; -import "github.com/openconfig/gnoi/types/types.proto"; +// import "github.com/openconfig/gnoi/types/types.proto"; +import "types/types.proto"; package gnoi.mpls; diff --git a/os/BUILD b/os/BUILD index fb9e80d2..01f57460 100644 --- a/os/BUILD +++ b/os/BUILD @@ -31,7 +31,6 @@ filegroup( proto_library( name = "os_proto", srcs = ["os.proto"], - import_prefix = "github.com/openconfig/gnoi", deps = [ "//types:types_proto", "//common:common_proto", diff --git a/os/os.proto b/os/os.proto index 04fc5992..6efbfb84 100644 --- a/os/os.proto +++ b/os/os.proto @@ -3,7 +3,8 @@ syntax = "proto3"; package gnoi.os; -import "github.com/openconfig/gnoi/types/types.proto"; +// import "github.com/openconfig/gnoi/types/types.proto"; +import "types/types.proto"; option (types.gnoi_version) = "0.1.0"; diff --git a/otdr/BUILD b/otdr/BUILD index 3cc40d6a..06f62842 100644 --- a/otdr/BUILD +++ b/otdr/BUILD @@ -31,7 +31,6 @@ filegroup( proto_library( name = "otdr_proto", srcs = ["otdr.proto"], - import_prefix = "github.com/openconfig/gnoi", deps = [ "//types:types_proto", "//common:common_proto", diff --git a/otdr/otdr.proto b/otdr/otdr.proto index 79963212..8599d7cb 100644 --- a/otdr/otdr.proto +++ b/otdr/otdr.proto @@ -18,7 +18,8 @@ syntax = "proto3"; package gnoi.optical; -import "github.com/openconfig/gnoi/types/types.proto"; +// import "github.com/openconfig/gnoi/types/types.proto"; +import "types/types.proto"; option (types.gnoi_version) = "0.1.0"; diff --git a/system/BUILD b/system/BUILD index 0d083201..d25fb5f7 100644 --- a/system/BUILD +++ b/system/BUILD @@ -16,7 +16,6 @@ filegroup( proto_library( name = "system_proto", srcs = ["system.proto"], - import_prefix = "github.com/openconfig/gnoi", deps = [ "@com_google_protobuf//:any_proto", "@com_google_protobuf//:descriptor_proto", diff --git a/system/system.proto b/system/system.proto index 5ebbfff3..9c2a72b3 100644 --- a/system/system.proto +++ b/system/system.proto @@ -24,8 +24,11 @@ syntax = "proto3"; package gnoi.system; -import "github.com/openconfig/gnoi/common/common.proto"; -import "github.com/openconfig/gnoi/types/types.proto"; +// import "github.com/openconfig/gnoi/common/common.proto"; +// import "github.com/openconfig/gnoi/types/types.proto"; + +import "common/common.proto"; +import "types/types.proto"; option (types.gnoi_version) = "1.0.0"; diff --git a/types/BUILD b/types/BUILD index 3952806a..5e086c2b 100644 --- a/types/BUILD +++ b/types/BUILD @@ -31,7 +31,6 @@ filegroup( proto_library( name = "types_proto", srcs = ["types.proto"], - import_prefix = "github.com/openconfig/gnoi", deps = [ "@com_google_protobuf//:any_proto", "@com_google_protobuf//:descriptor_proto", diff --git a/wavelength_router/BUILD b/wavelength_router/BUILD index 36440b59..4744266d 100644 --- a/wavelength_router/BUILD +++ b/wavelength_router/BUILD @@ -31,7 +31,6 @@ filegroup( proto_library( name = "wavelength_router_proto", srcs = ["wavelength_router.proto"], - import_prefix = "github.com/openconfig/gnoi", deps = [ "//common:common_proto", "//types:types_proto", diff --git a/wavelength_router/wavelength_router.proto b/wavelength_router/wavelength_router.proto index 12c8b50f..a4f38ee0 100644 --- a/wavelength_router/wavelength_router.proto +++ b/wavelength_router/wavelength_router.proto @@ -18,7 +18,8 @@ syntax = "proto3"; package gnoi.optical; -import "github.com/openconfig/gnoi/types/types.proto"; +// import "github.com/openconfig/gnoi/types/types.proto"; +import "types/types.proto"; option (types.gnoi_version) = "0.2.0"; From 2d94c00d1a51fe516b9f1bbe08aede167f538cbf Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 16:59:19 +0530 Subject: [PATCH 171/238] Revert "[Bazel C++ compilation support for grpc]" This reverts commit ae18f959a86e754c7ae708edd0928b049f3a24d8. --- bgp/BUILD | 9 --------- cert/BUILD | 8 -------- common/BUILD | 9 --------- diag/BUILD | 9 --------- factory_reset/BUILD | 8 -------- file/BUILD | 7 ------- interface/BUILD | 7 ------- layer2/BUILD | 7 ------- mpls/BUILD | 7 ------- os/BUILD | 9 --------- otdr/BUILD | 9 --------- system/BUILD | 1 - types/BUILD | 9 --------- wavelength_router/BUILD | 9 --------- 14 files changed, 108 deletions(-) diff --git a/bgp/BUILD b/bgp/BUILD index 6a1ecb58..2f1a610f 100644 --- a/bgp/BUILD +++ b/bgp/BUILD @@ -14,9 +14,6 @@ # # Supporting infrastructure for implementing and testing PINS. # - -load("@com_github_grpc_grpc//bazel:cc_grpc_library.bzl", "cc_grpc_library") - package( default_visibility = ["//visibility:public"], licenses = ["notice"], @@ -41,9 +38,3 @@ cc_proto_library( deps = [":bgp_proto"], ) -cc_grpc_library( - name = "bgp_cc_grpc_proto", - srcs = [":bgp_proto"], - deps = [":bgp_cc_proto"], - grpc_only = True, -) diff --git a/cert/BUILD b/cert/BUILD index 3ce6af43..26d34e38 100644 --- a/cert/BUILD +++ b/cert/BUILD @@ -14,8 +14,6 @@ # # Supporting infrastructure for implementing and testing PINS. # -load("@com_github_grpc_grpc//bazel:cc_grpc_library.bzl", "cc_grpc_library") - package( default_visibility = ["//visibility:public"], licenses = ["notice"], @@ -42,9 +40,3 @@ cc_proto_library( deps = [":cert_proto"], ) -cc_grpc_library( - name = "cert_cc_grpc_proto", - srcs = [":cert_proto"], - deps = [":cert_cc_proto"], - grpc_only = True, -) diff --git a/common/BUILD b/common/BUILD index e30a7f7a..90dbe97f 100644 --- a/common/BUILD +++ b/common/BUILD @@ -14,9 +14,6 @@ # # Supporting infrastructure for implementing and testing PINS. # - -load("@com_github_grpc_grpc//bazel:cc_grpc_library.bzl", "cc_grpc_library") - package( default_visibility = ["//visibility:public"], licenses = ["notice"], @@ -43,9 +40,3 @@ cc_proto_library( deps = [":common_proto"], ) -cc_grpc_library( - name = "common_cc_grpc_proto", - srcs = [":common_proto"], - deps = [":common_cc_proto"], - grpc_only = True, -) diff --git a/diag/BUILD b/diag/BUILD index 190d080f..f2097b58 100644 --- a/diag/BUILD +++ b/diag/BUILD @@ -14,9 +14,6 @@ # # Supporting infrastructure for implementing and testing PINS. # - -load("@com_github_grpc_grpc//bazel:cc_grpc_library.bzl", "cc_grpc_library") - package( default_visibility = ["//visibility:public"], licenses = ["notice"], @@ -41,9 +38,3 @@ cc_proto_library( deps = [":diag_proto"], ) -cc_grpc_library( - name = "diag_cc_grpc_proto", - srcs = [":diag_proto"], - deps = [":diag_cc_proto"], - grpc_only = True, -) diff --git a/factory_reset/BUILD b/factory_reset/BUILD index 2cfc7dd6..b907ce80 100644 --- a/factory_reset/BUILD +++ b/factory_reset/BUILD @@ -14,8 +14,6 @@ # # Supporting infrastructure for implementing and testing PINS. # -load("@com_github_grpc_grpc//bazel:cc_grpc_library.bzl", "cc_grpc_library") - package( default_visibility = ["//visibility:public"], licenses = ["notice"], @@ -40,9 +38,3 @@ cc_proto_library( deps = [":reset_proto"], ) -cc_grpc_library( - name = "reset_cc_grpc_proto", - srcs = [":reset_proto"], - deps = [":reset_cc_proto"], - grpc_only = True, -) diff --git a/file/BUILD b/file/BUILD index abfc40fc..d2d221be 100644 --- a/file/BUILD +++ b/file/BUILD @@ -14,7 +14,6 @@ # # Supporting infrastructure for implementing and testing PINS. # -load("@com_github_grpc_grpc//bazel:cc_grpc_library.bzl", "cc_grpc_library") package( default_visibility = ["//visibility:public"], licenses = ["notice"], @@ -40,9 +39,3 @@ cc_proto_library( deps = [":file_proto"], ) -cc_grpc_library( - name = "file_cc_grpc_proto", - srcs = [":file_proto"], - deps = [":file_cc_proto"], - grpc_only = True, -) diff --git a/interface/BUILD b/interface/BUILD index eb4b29c1..5137ccc9 100644 --- a/interface/BUILD +++ b/interface/BUILD @@ -14,7 +14,6 @@ # # Supporting infrastructure for implementing and testing PINS. # -load("@com_github_grpc_grpc//bazel:cc_grpc_library.bzl", "cc_grpc_library") package( default_visibility = ["//visibility:public"], licenses = ["notice"], @@ -40,9 +39,3 @@ cc_proto_library( deps = [":interface_proto"], ) -cc_grpc_library( - name = "interface_cc_grpc_proto", - srcs = [":interface_proto"], - deps = [":interface_cc_proto"], - grpc_only = True, -) diff --git a/layer2/BUILD b/layer2/BUILD index 095b1c32..65f5989c 100644 --- a/layer2/BUILD +++ b/layer2/BUILD @@ -14,7 +14,6 @@ # # Supporting infrastructure for implementing and testing PINS. # -load("@com_github_grpc_grpc//bazel:cc_grpc_library.bzl", "cc_grpc_library") package( default_visibility = ["//visibility:public"], licenses = ["notice"], @@ -40,9 +39,3 @@ cc_proto_library( deps = [":layer2_proto"], ) -cc_grpc_library( - name = "layer2_cc_grpc_proto", - srcs = [":layer2_proto"], - deps = [":layer2_cc_proto"], - grpc_only = True, -) diff --git a/mpls/BUILD b/mpls/BUILD index 9afba4a8..cc37b146 100644 --- a/mpls/BUILD +++ b/mpls/BUILD @@ -14,7 +14,6 @@ # # Supporting infrastructure for implementing and testing PINS. # -load("@com_github_grpc_grpc//bazel:cc_grpc_library.bzl", "cc_grpc_library") package( default_visibility = ["//visibility:public"], licenses = ["notice"], @@ -40,9 +39,3 @@ cc_proto_library( deps = [":mpls_proto"], ) -cc_grpc_library( - name = "mpls_cc_grpc_proto", - srcs = [":mpls_proto"], - deps = [":mpls_cc_proto"], - grpc_only = True, -) diff --git a/os/BUILD b/os/BUILD index 01f57460..e559edb2 100644 --- a/os/BUILD +++ b/os/BUILD @@ -14,9 +14,6 @@ # # Supporting infrastructure for implementing and testing PINS. # - -load("@com_github_grpc_grpc//bazel:cc_grpc_library.bzl", "cc_grpc_library") - package( default_visibility = ["//visibility:public"], licenses = ["notice"], @@ -42,9 +39,3 @@ cc_proto_library( deps = [":os_proto"], ) -cc_grpc_library( - name = "os_cc_grpc_proto", - srcs = [":os_proto"], - deps = [":os_cc_proto"], - grpc_only = True, -) diff --git a/otdr/BUILD b/otdr/BUILD index 06f62842..d5b56d49 100644 --- a/otdr/BUILD +++ b/otdr/BUILD @@ -14,9 +14,6 @@ # # Supporting infrastructure for implementing and testing PINS. # - -load("@com_github_grpc_grpc//bazel:cc_grpc_library.bzl", "cc_grpc_library") - package( default_visibility = ["//visibility:public"], licenses = ["notice"], @@ -42,9 +39,3 @@ cc_proto_library( deps = [":otdr_proto"], ) -cc_grpc_library( - name = "otdr_cc_grpc_proto", - srcs = [":otdr_proto"], - deps = [":otdr_cc_proto"], - grpc_only = True, -) diff --git a/system/BUILD b/system/BUILD index d25fb5f7..75418324 100644 --- a/system/BUILD +++ b/system/BUILD @@ -33,5 +33,4 @@ cc_grpc_library( name = "system_cc_grpc_proto", srcs = [":system_proto"], deps = [":system_cc_proto"], - grpc_only = True, ) diff --git a/types/BUILD b/types/BUILD index 5e086c2b..96cb8912 100644 --- a/types/BUILD +++ b/types/BUILD @@ -14,9 +14,6 @@ # # Supporting infrastructure for implementing and testing PINS. # - -load("@com_github_grpc_grpc//bazel:cc_grpc_library.bzl", "cc_grpc_library") - package( default_visibility = ["//visibility:public"], licenses = ["notice"], @@ -42,9 +39,3 @@ cc_proto_library( deps = [":types_proto"], ) -cc_grpc_library( - name = "types_cc_grpc_proto", - srcs = [":types_proto"], - deps = [":types_cc_proto"], - grpc_only = True, -) diff --git a/wavelength_router/BUILD b/wavelength_router/BUILD index 4744266d..e144975e 100644 --- a/wavelength_router/BUILD +++ b/wavelength_router/BUILD @@ -14,9 +14,6 @@ # # Supporting infrastructure for implementing and testing PINS. # - -load("@com_github_grpc_grpc//bazel:cc_grpc_library.bzl", "cc_grpc_library") - package( default_visibility = ["//visibility:public"], licenses = ["notice"], @@ -42,9 +39,3 @@ cc_proto_library( deps = [":wavelength_router_proto"], ) -cc_grpc_library( - name = "wavelength_router_cc_grpc_proto", - srcs = [":wavelength_router_proto"], - deps = [":wavelength_router_cc_proto"], - grpc_only = True, -) From eeb9e59c7e4ee47412c6641e61807c41fd18c8f8 Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 16:59:20 +0530 Subject: [PATCH 172/238] Revert "[Adding Bazel c++ compilation support for gNOI proto]" This reverts commit eaadb402b6951fea9f64b9d75a3106c29ee84b88. --- bgp/BUILD | 4 ++-- cert/BUILD | 4 ++-- common/BUILD | 2 +- diag/BUILD | 4 ++-- factory_reset/BUILD | 2 +- file/BUILD | 2 +- interface/BUILD | 41 ----------------------------------------- layer2/BUILD | 41 ----------------------------------------- mpls/BUILD | 41 ----------------------------------------- os/BUILD | 41 ----------------------------------------- otdr/BUILD | 41 ----------------------------------------- system/BUILD | 2 +- wavelength_router/BUILD | 41 ----------------------------------------- 13 files changed, 10 insertions(+), 256 deletions(-) delete mode 100644 interface/BUILD delete mode 100644 layer2/BUILD delete mode 100644 mpls/BUILD delete mode 100644 os/BUILD delete mode 100644 otdr/BUILD delete mode 100644 wavelength_router/BUILD diff --git a/bgp/BUILD b/bgp/BUILD index 2f1a610f..bcbc7779 100644 --- a/bgp/BUILD +++ b/bgp/BUILD @@ -34,7 +34,7 @@ proto_library( ) cc_proto_library( - name = "bgp_cc_proto", - deps = [":bgp_proto"], + name = "types_cc_proto", + deps = [":types_proto"], ) diff --git a/cert/BUILD b/cert/BUILD index 26d34e38..de7a51af 100644 --- a/cert/BUILD +++ b/cert/BUILD @@ -36,7 +36,7 @@ proto_library( ) cc_proto_library( - name = "cert_cc_proto", - deps = [":cert_proto"], + name = "types_cc_proto", + deps = [":types_proto"], ) diff --git a/common/BUILD b/common/BUILD index 90dbe97f..bd527015 100644 --- a/common/BUILD +++ b/common/BUILD @@ -36,7 +36,7 @@ proto_library( ) cc_proto_library( - name = "common_cc_proto", + name = "common_ext_cc_proto", deps = [":common_proto"], ) diff --git a/diag/BUILD b/diag/BUILD index f2097b58..fbcb1e3d 100644 --- a/diag/BUILD +++ b/diag/BUILD @@ -34,7 +34,7 @@ proto_library( ) cc_proto_library( - name = "diag_cc_proto", - deps = [":diag_proto"], + name = "types_cc_proto", + deps = [":types_proto"], ) diff --git a/factory_reset/BUILD b/factory_reset/BUILD index b907ce80..1390affa 100644 --- a/factory_reset/BUILD +++ b/factory_reset/BUILD @@ -34,7 +34,7 @@ proto_library( ) cc_proto_library( - name = "reset_cc_proto", + name = "types_cc_proto", deps = [":reset_proto"], ) diff --git a/file/BUILD b/file/BUILD index d2d221be..72108e76 100644 --- a/file/BUILD +++ b/file/BUILD @@ -35,7 +35,7 @@ proto_library( ) cc_proto_library( - name = "file_cc_proto", + name = "types_cc_proto", deps = [":file_proto"], ) diff --git a/interface/BUILD b/interface/BUILD deleted file mode 100644 index 5137ccc9..00000000 --- a/interface/BUILD +++ /dev/null @@ -1,41 +0,0 @@ -#Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Supporting infrastructure for implementing and testing PINS. -# -package( - default_visibility = ["//visibility:public"], - licenses = ["notice"], -) - -filegroup( - name = "file_proto_srcs", - srcs = glob(["**/*.proto"]), - visibility = ["//third_party/pins_infra/thinkit:__pkg__"], -) - -proto_library( - name = "interface_proto", - srcs = ["interface.proto"], - deps = [ - "//types:types_proto", - "//common:common_proto", - ], -) - -cc_proto_library( - name = "interface_cc_proto", - deps = [":interface_proto"], -) - diff --git a/layer2/BUILD b/layer2/BUILD deleted file mode 100644 index 65f5989c..00000000 --- a/layer2/BUILD +++ /dev/null @@ -1,41 +0,0 @@ -#Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Supporting infrastructure for implementing and testing PINS. -# -package( - default_visibility = ["//visibility:public"], - licenses = ["notice"], -) - -filegroup( - name = "layer2_proto_srcs", - srcs = glob(["**/*.proto"]), - visibility = ["//third_party/pins_infra/thinkit:__pkg__"], -) - -proto_library( - name = "layer2_proto", - srcs = ["layer2.proto"], - deps = [ - "//types:types_proto", - "//common:common_proto", - ], -) - -cc_proto_library( - name = "layer2_cc_proto", - deps = [":layer2_proto"], -) - diff --git a/mpls/BUILD b/mpls/BUILD deleted file mode 100644 index cc37b146..00000000 --- a/mpls/BUILD +++ /dev/null @@ -1,41 +0,0 @@ -#Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Supporting infrastructure for implementing and testing PINS. -# -package( - default_visibility = ["//visibility:public"], - licenses = ["notice"], -) - -filegroup( - name = "mpls_proto_srcs", - srcs = glob(["**/*.proto"]), - visibility = ["//third_party/pins_infra/thinkit:__pkg__"], -) - -proto_library( - name = "mpls_proto", - srcs = ["mpls.proto"], - deps = [ - "//types:types_proto", - "//common:common_proto", - ], -) - -cc_proto_library( - name = "mpls_cc_proto", - deps = [":mpls_proto"], -) - diff --git a/os/BUILD b/os/BUILD deleted file mode 100644 index e559edb2..00000000 --- a/os/BUILD +++ /dev/null @@ -1,41 +0,0 @@ -#Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Supporting infrastructure for implementing and testing PINS. -# -package( - default_visibility = ["//visibility:public"], - licenses = ["notice"], -) - -filegroup( - name = "os_proto_srcs", - srcs = glob(["**/*.proto"]), - visibility = ["//third_party/pins_infra/thinkit:__pkg__"], -) - -proto_library( - name = "os_proto", - srcs = ["os.proto"], - deps = [ - "//types:types_proto", - "//common:common_proto", - ], -) - -cc_proto_library( - name = "os_cc_proto", - deps = [":os_proto"], -) - diff --git a/otdr/BUILD b/otdr/BUILD deleted file mode 100644 index d5b56d49..00000000 --- a/otdr/BUILD +++ /dev/null @@ -1,41 +0,0 @@ -#Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Supporting infrastructure for implementing and testing PINS. -# -package( - default_visibility = ["//visibility:public"], - licenses = ["notice"], -) - -filegroup( - name = "otdr_proto_srcs", - srcs = glob(["**/*.proto"]), - visibility = ["//third_party/pins_infra/thinkit:__pkg__"], -) - -proto_library( - name = "otdr_proto", - srcs = ["otdr.proto"], - deps = [ - "//types:types_proto", - "//common:common_proto", - ], -) - -cc_proto_library( - name = "otdr_cc_proto", - deps = [":otdr_proto"], -) - diff --git a/system/BUILD b/system/BUILD index 75418324..16ab8950 100644 --- a/system/BUILD +++ b/system/BUILD @@ -8,7 +8,7 @@ package(default_visibility = ["//visibility:public"], licenses = ["notice"],) filegroup( - name = "system_proto_srcs", + name = "gnoi_proto_srcs", srcs = glob(["gnoi/common/*.proto", "gnoi/types/*.proto"]), ) diff --git a/wavelength_router/BUILD b/wavelength_router/BUILD deleted file mode 100644 index e144975e..00000000 --- a/wavelength_router/BUILD +++ /dev/null @@ -1,41 +0,0 @@ -#Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Supporting infrastructure for implementing and testing PINS. -# -package( - default_visibility = ["//visibility:public"], - licenses = ["notice"], -) - -filegroup( - name = "wavelength_router_proto_srcs", - srcs = glob(["**/*.proto"]), - visibility = ["//third_party/pins_infra/thinkit:__pkg__"], -) - -proto_library( - name = "wavelength_router_proto", - srcs = ["wavelength_router.proto"], - deps = [ - "//common:common_proto", - "//types:types_proto", - ], -) - -cc_proto_library( - name = "wavelength_router_cc_proto", - deps = [":wavelength_router_proto"], -) - From ad2dbdbbe91874196b712439a8224de7efac04ba Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 16:59:21 +0530 Subject: [PATCH 173/238] Revert "[Adding Bazel c++ compilation support for gNOI proto]" This reverts commit f40a716a7a316fcb730dae7504f4b8a6c0729a0e. --- BUILD | 31 -------- WORKSPACE | 95 ----------------------- bgp/BUILD | 40 ---------- bgp/bgp.proto | 3 +- cert/BUILD | 42 ---------- cert/cert.proto | 3 +- common/BUILD | 42 ---------- common/common.proto | 3 +- diag/BUILD | 40 ---------- diag/diag.proto | 3 +- factory_reset/BUILD | 40 ---------- factory_reset/reset.proto | 3 +- file/BUILD | 41 ---------- file/file.proto | 6 +- gnoi_infra_deps.bzl | 81 ------------------- interface/interface.proto | 3 +- layer2/layer2.proto | 3 +- mpls/mpls.proto | 3 +- os/os.proto | 3 +- otdr/otdr.proto | 3 +- system/BUILD | 36 --------- system/system.proto | 7 +- types/BUILD | 41 ---------- wavelength_router/wavelength_router.proto | 3 +- 24 files changed, 15 insertions(+), 560 deletions(-) delete mode 100644 BUILD delete mode 100644 WORKSPACE delete mode 100644 bgp/BUILD delete mode 100644 cert/BUILD delete mode 100644 common/BUILD delete mode 100644 diag/BUILD delete mode 100644 factory_reset/BUILD delete mode 100644 file/BUILD delete mode 100644 gnoi_infra_deps.bzl delete mode 100644 system/BUILD delete mode 100644 types/BUILD diff --git a/BUILD b/BUILD deleted file mode 100644 index 7d097421..00000000 --- a/BUILD +++ /dev/null @@ -1,31 +0,0 @@ -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Supporting infrastructure for implementing and testing PINS. - -package( - default_visibility = ["//visibility:public"], - licenses = ["notice"], -) - -exports_files(["LICENSE"]) - -# copybara:insert_begin(For format.sh script) -# load("@com_github_bazelbuild_buildtools//buildifier:def.bzl", "buildifier") -# -# buildifier( -# name = "buildifier", -# ) -# copybara:insert_end - diff --git a/WORKSPACE b/WORKSPACE deleted file mode 100644 index 8809456e..00000000 --- a/WORKSPACE +++ /dev/null @@ -1,95 +0,0 @@ -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -workspace(name = "gnoi") - -load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") - -# -- Load Dependencies --------------------------------------------------------- -load("gnoi_infra_deps.bzl", "gnoi_infra_deps") - -gnoi_infra_deps() - -# -- Load Protobuf ------------------------------------------------------------- -load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps") - -protobuf_deps() - -load("@rules_proto//proto:repositories.bzl", "rules_proto_dependencies", "rules_proto_toolchains") - -rules_proto_dependencies() - -rules_proto_toolchains() - -load("@com_google_googleapis//:repository_rules.bzl", "switched_rules_by_language") - -switched_rules_by_language( - name = "com_google_googleapis_imports", - cc = True, - grpc = True, -) - -load("@com_github_grpc_grpc//bazel:grpc_deps.bzl", "grpc_deps") - -grpc_deps() - -bind( - name = "grpc_cpp_plugin", - actual = "@com_github_grpc_grpc//:grpc_cpp_plugin", -) - -bind( - name = "grpc++_codegen_proto", - actual = "@com_github_grpc_grpc//:grpc++_codegen_proto", -) - -load("@com_github_grpc_grpc//bazel:grpc_extra_deps.bzl", "grpc_extra_deps") - -grpc_extra_deps() - -# -- Load buildifier ----------------------------------------------------------- -http_archive( - name = "io_bazel_rules_go", - sha256 = "9fb16af4d4836c8222142e54c9efa0bb5fc562ffc893ce2abeac3e25daead144", - urls = [ - "https://storage.googleapis.com/bazel-mirror/github.com/bazelbuild/rules_go/releases/download/0.19.0/rules_go-0.19.0.tar.gz", - "https://github.com/bazelbuild/rules_go/releases/download/0.19.0/rules_go-0.19.0.tar.gz", - ], -) - -load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies") - -go_rules_dependencies() - -go_register_toolchains() - -http_archive( - name = "bazel_gazelle", - sha256 = "be9296bfd64882e3c08e3283c58fcb461fa6dd3c171764fcc4cf322f60615a9b", - urls = [ - "https://storage.googleapis.com/bazel-mirror/github.com/bazelbuild/bazel-gazelle/releases/download/0.18.1/bazel-gazelle-0.18.1.tar.gz", - "https://github.com/bazelbuild/bazel-gazelle/releases/download/0.18.1/bazel-gazelle-0.18.1.tar.gz", - ], -) - -load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies") - -gazelle_dependencies() - -http_archive( - name = "com_github_bazelbuild_buildtools", - strip_prefix = "buildtools-master", - url = "https://github.com/bazelbuild/buildtools/archive/master.zip", -) - diff --git a/bgp/BUILD b/bgp/BUILD deleted file mode 100644 index bcbc7779..00000000 --- a/bgp/BUILD +++ /dev/null @@ -1,40 +0,0 @@ -#Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Supporting infrastructure for implementing and testing PINS. -# -package( - default_visibility = ["//visibility:public"], - licenses = ["notice"], -) - -filegroup( - name = "bgp_proto_srcs", - srcs = glob(["**/*.proto"]), - visibility = ["//third_party/pins_infra/thinkit:__pkg__"], -) - -proto_library( - name = "bgp_proto", - srcs = ["bgp.proto"], - deps = [ - "//types:types_proto", - ], -) - -cc_proto_library( - name = "types_cc_proto", - deps = [":types_proto"], -) - diff --git a/bgp/bgp.proto b/bgp/bgp.proto index 5bb831ac..124efabc 100644 --- a/bgp/bgp.proto +++ b/bgp/bgp.proto @@ -16,8 +16,7 @@ syntax = "proto3"; -// import "github.com/openconfig/gnoi/types/types.proto"; -import "types/types.proto"; +import "github.com/openconfig/gnoi/types/types.proto"; package gnoi.bgp; diff --git a/cert/BUILD b/cert/BUILD deleted file mode 100644 index de7a51af..00000000 --- a/cert/BUILD +++ /dev/null @@ -1,42 +0,0 @@ -#Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Supporting infrastructure for implementing and testing PINS. -# -package( - default_visibility = ["//visibility:public"], - licenses = ["notice"], -) - -filegroup( - name = "cert_proto_srcs", - srcs = glob(["**/*.proto"]), - visibility = ["//third_party/pins_infra/thinkit:__pkg__"], -) - -proto_library( - name = "cert_proto", - srcs = ["cert.proto"], - deps = [ - "@com_google_protobuf//:any_proto", - "@com_google_protobuf//:descriptor_proto", - "//types:types_proto", - ], -) - -cc_proto_library( - name = "types_cc_proto", - deps = [":types_proto"], -) - diff --git a/cert/cert.proto b/cert/cert.proto index 74538b67..f720e453 100644 --- a/cert/cert.proto +++ b/cert/cert.proto @@ -18,8 +18,7 @@ // rotation. syntax = "proto3"; -// import "github.com/openconfig/gnoi/types/types.proto"; -import "types/types.proto"; +import "github.com/openconfig/gnoi/types/types.proto"; package gnoi.certificate; diff --git a/common/BUILD b/common/BUILD deleted file mode 100644 index bd527015..00000000 --- a/common/BUILD +++ /dev/null @@ -1,42 +0,0 @@ -#Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Supporting infrastructure for implementing and testing PINS. -# -package( - default_visibility = ["//visibility:public"], - licenses = ["notice"], -) - -filegroup( - name = "common_proto_srcs", - srcs = glob(["**/*.proto"]), - visibility = ["//third_party/pins_infra/thinkit:__pkg__"], -) - -proto_library( - name = "common_proto", - srcs = ["common.proto"], - deps = [ - "//types:types_proto", - "@com_google_protobuf//:any_proto", - "@com_google_protobuf//:descriptor_proto", - ], -) - -cc_proto_library( - name = "common_ext_cc_proto", - deps = [":common_proto"], -) - diff --git a/common/common.proto b/common/common.proto index 4c32060f..f2928fca 100644 --- a/common/common.proto +++ b/common/common.proto @@ -18,8 +18,7 @@ syntax = "proto3"; package gnoi.common; -// import "github.com/openconfig/gnoi/types/types.proto"; -import "types/types.proto"; +import "github.com/openconfig/gnoi/types/types.proto"; // RemoteDownload defines the details for a device to initiate a file transfer // from or to a remote location. diff --git a/diag/BUILD b/diag/BUILD deleted file mode 100644 index fbcb1e3d..00000000 --- a/diag/BUILD +++ /dev/null @@ -1,40 +0,0 @@ -#Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Supporting infrastructure for implementing and testing PINS. -# -package( - default_visibility = ["//visibility:public"], - licenses = ["notice"], -) - -filegroup( - name = "diag_proto_srcs", - srcs = glob(["**/*.proto"]), - visibility = ["//third_party/pins_infra/thinkit:__pkg__"], -) - -proto_library( - name = "diag_proto", - srcs = ["diag.proto"], - deps = [ - "//types:types_proto", - ], -) - -cc_proto_library( - name = "types_cc_proto", - deps = [":types_proto"], -) - diff --git a/diag/diag.proto b/diag/diag.proto index 88d1e42c..84592d6a 100644 --- a/diag/diag.proto +++ b/diag/diag.proto @@ -20,8 +20,7 @@ syntax = "proto3"; package gnoi.diag; -// import "github.com/openconfig/gnoi/types/types.proto"; -import "types/types.proto"; +import "github.com/openconfig/gnoi/types/types.proto"; option (types.gnoi_version) = "0.1.0"; diff --git a/factory_reset/BUILD b/factory_reset/BUILD deleted file mode 100644 index 1390affa..00000000 --- a/factory_reset/BUILD +++ /dev/null @@ -1,40 +0,0 @@ -#Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Supporting infrastructure for implementing and testing PINS. -# -package( - default_visibility = ["//visibility:public"], - licenses = ["notice"], -) - -filegroup( - name = "reset_proto_srcs", - srcs = glob(["**/*.proto"]), - visibility = ["//third_party/pins_infra/thinkit:__pkg__"], -) - -proto_library( - name = "reset_proto", - srcs = ["reset.proto"], - deps = [ - "//types:types_proto", - ], -) - -cc_proto_library( - name = "types_cc_proto", - deps = [":reset_proto"], -) - diff --git a/factory_reset/reset.proto b/factory_reset/reset.proto index 9ce6560d..fba8e31e 100644 --- a/factory_reset/reset.proto +++ b/factory_reset/reset.proto @@ -3,8 +3,7 @@ syntax = "proto3"; package gnoi.factory_reset; -// import "github.com/openconfig/gnoi/types/types.proto"; -import "types/types.proto"; +import "github.com/openconfig/gnoi/types/types.proto"; option (types.gnoi_version) = "0.1.0"; diff --git a/file/BUILD b/file/BUILD deleted file mode 100644 index 72108e76..00000000 --- a/file/BUILD +++ /dev/null @@ -1,41 +0,0 @@ -#Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Supporting infrastructure for implementing and testing PINS. -# -package( - default_visibility = ["//visibility:public"], - licenses = ["notice"], -) - -filegroup( - name = "file_proto_srcs", - srcs = glob(["**/*.proto"]), - visibility = ["//third_party/pins_infra/thinkit:__pkg__"], -) - -proto_library( - name = "file_proto", - srcs = ["file.proto"], - deps = [ - "//types:types_proto", - "//common:common_proto", - ], -) - -cc_proto_library( - name = "types_cc_proto", - deps = [":file_proto"], -) - diff --git a/file/file.proto b/file/file.proto index 5dd0b2e5..bc644ddd 100644 --- a/file/file.proto +++ b/file/file.proto @@ -18,10 +18,8 @@ syntax = "proto3"; package gnoi.file; -// import "github.com/openconfig/gnoi/types/types.proto"; -// import "github.com/openconfig/gnoi/common/common.proto"; -import "types/types.proto"; -import "common/common.proto"; +import "github.com/openconfig/gnoi/types/types.proto"; +import "github.com/openconfig/gnoi/common/common.proto"; option (types.gnoi_version) = "0.1.0"; diff --git a/gnoi_infra_deps.bzl b/gnoi_infra_deps.bzl deleted file mode 100644 index b8949200..00000000 --- a/gnoi_infra_deps.bzl +++ /dev/null @@ -1,81 +0,0 @@ -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -"""Dependencies to build PINS infra.""" - -load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository", "new_git_repository") -load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") - -def gnoi_infra_deps(): - """Declare the third-party dependencies necessary to build GNOI infrastructure""" - - if not native.existing_rule("com_github_grpc_grpc"): - git_repository( - name = "com_github_grpc_grpc", - remote = "https://github.com/grpc/grpc", - commit = "638c34ceba0c050574f473745a1316b3a9cf4136", - shallow_since = "1606864594 -0800", - ) - if not native.existing_rule("com_google_absl"): - http_archive( - name = "com_google_absl", - sha256 = "f41868f7a938605c92936230081175d1eae87f6ea2c248f41077c8f88316f111", - strip_prefix = "abseil-cpp-20200225.2", - url = "https://github.com/abseil/abseil-cpp/archive/20200225.2.tar.gz", - ) - if not native.existing_rule("com_google_googletest"): - http_archive( - name = "com_google_googletest", - sha256 = "9dc9157a9a1551ec7a7e43daea9a694a0bb5fb8bec81235d8a1e6ef64c716dcb", - strip_prefix = "googletest-release-1.10.0", - urls = ["https://github.com/google/googletest/archive/release-1.10.0.tar.gz"], - ) - if not native.existing_rule("com_google_protobuf"): - http_archive( - name = "com_google_protobuf", - sha256 = "1a83f0525e5c8096b7b812181865da3c8637de88f9777056cefbf51a1eb0b83f", - strip_prefix = "protobuf-3.12.3", - url = "https://github.com/protocolbuffers/protobuf/releases/download/v3.12.3/protobuf-all-3.12.3.tar.gz", - ) - if not native.existing_rule("com_googlesource_code_re2"): - http_archive( - name = "com_googlesource_code_re2", - sha256 = "2e9489a31ae007c81e90e8ec8a15d62d58a9c18d4fd1603f6441ef248556b41f", - strip_prefix = "re2-2020-07-06", - url = "https://github.com/google/re2/archive/2020-07-06.tar.gz", - ) - if not native.existing_rule("com_google_googleapis"): - git_repository( - name = "com_google_googleapis", - commit = "dd244bb3a5023a4a9290b21dae6b99020c026123", - remote = "https://github.com/googleapis/googleapis", - shallow_since = "1591402163 -0700", - ) - if not native.existing_rule("rules_cc"): - git_repository( - name = "rules_cc", - commit = "1477dbab59b401daa94acedbeaefe79bf9112167", - remote = "https://github.com/bazelbuild/rules_cc.git", - shallow_since = "1595949469 -0700", - ) - if not native.existing_rule("rules_proto"): - http_archive( - name = "rules_proto", - sha256 = "602e7161d9195e50246177e7c55b2f39950a9cf7366f74ed5f22fd45750cd208", - strip_prefix = "rules_proto-97d8af4dc474595af3900dd85cb3a29ad28cc313", - urls = [ - "https://mirror.bazel.build/github.com/bazelbuild/rules_proto/archive/97d8af4dc474595af3900dd85cb3a29ad28cc313.tar.gz", - "https://github.com/bazelbuild/rules_proto/archive/97d8af4dc474595af3900dd85cb3a29ad28cc313.tar.gz", - ], - ) diff --git a/interface/interface.proto b/interface/interface.proto index a0e3f8f7..f8d4201e 100644 --- a/interface/interface.proto +++ b/interface/interface.proto @@ -18,8 +18,7 @@ syntax = "proto3"; package gnoi.interface; -// import "github.com/openconfig/gnoi/types/types.proto"; -import "types/types.proto"; +import "github.com/openconfig/gnoi/types/types.proto"; option (types.gnoi_version) = "0.1.0"; diff --git a/layer2/layer2.proto b/layer2/layer2.proto index 8b6977e0..75c2471f 100644 --- a/layer2/layer2.proto +++ b/layer2/layer2.proto @@ -18,8 +18,7 @@ syntax = "proto3"; package gnoi.layer2; -// import "github.com/openconfig/gnoi/types/types.proto"; -import "types/types.proto"; +import "github.com/openconfig/gnoi/types/types.proto"; option (types.gnoi_version) = "0.1.0"; diff --git a/mpls/mpls.proto b/mpls/mpls.proto index e51f68bd..e1b1f011 100644 --- a/mpls/mpls.proto +++ b/mpls/mpls.proto @@ -16,8 +16,7 @@ syntax = "proto3"; -// import "github.com/openconfig/gnoi/types/types.proto"; -import "types/types.proto"; +import "github.com/openconfig/gnoi/types/types.proto"; package gnoi.mpls; diff --git a/os/os.proto b/os/os.proto index 6efbfb84..04fc5992 100644 --- a/os/os.proto +++ b/os/os.proto @@ -3,8 +3,7 @@ syntax = "proto3"; package gnoi.os; -// import "github.com/openconfig/gnoi/types/types.proto"; -import "types/types.proto"; +import "github.com/openconfig/gnoi/types/types.proto"; option (types.gnoi_version) = "0.1.0"; diff --git a/otdr/otdr.proto b/otdr/otdr.proto index 8599d7cb..79963212 100644 --- a/otdr/otdr.proto +++ b/otdr/otdr.proto @@ -18,8 +18,7 @@ syntax = "proto3"; package gnoi.optical; -// import "github.com/openconfig/gnoi/types/types.proto"; -import "types/types.proto"; +import "github.com/openconfig/gnoi/types/types.proto"; option (types.gnoi_version) = "0.1.0"; diff --git a/system/BUILD b/system/BUILD deleted file mode 100644 index 16ab8950..00000000 --- a/system/BUILD +++ /dev/null @@ -1,36 +0,0 @@ -# A generic network operational interface gRPC service for interacting with -# network devices based on OpenConfig models. This is for the gNOI APIs used -# to perform diagnostic operations on a network device. - -load("@com_github_grpc_grpc//bazel:cc_grpc_library.bzl", "cc_grpc_library") - -package(default_visibility = ["//visibility:public"], - licenses = ["notice"],) - -filegroup( - name = "gnoi_proto_srcs", - srcs = glob(["gnoi/common/*.proto", - "gnoi/types/*.proto"]), -) - -proto_library( - name = "system_proto", - srcs = ["system.proto"], - deps = [ - "@com_google_protobuf//:any_proto", - "@com_google_protobuf//:descriptor_proto", - "//common:common_proto", - "//types:types_proto", - ], -) - -cc_proto_library( - name = "system_cc_proto", - deps = [":system_proto"], -) - -cc_grpc_library( - name = "system_cc_grpc_proto", - srcs = [":system_proto"], - deps = [":system_cc_proto"], -) diff --git a/system/system.proto b/system/system.proto index 9c2a72b3..5ebbfff3 100644 --- a/system/system.proto +++ b/system/system.proto @@ -24,11 +24,8 @@ syntax = "proto3"; package gnoi.system; -// import "github.com/openconfig/gnoi/common/common.proto"; -// import "github.com/openconfig/gnoi/types/types.proto"; - -import "common/common.proto"; -import "types/types.proto"; +import "github.com/openconfig/gnoi/common/common.proto"; +import "github.com/openconfig/gnoi/types/types.proto"; option (types.gnoi_version) = "1.0.0"; diff --git a/types/BUILD b/types/BUILD deleted file mode 100644 index 96cb8912..00000000 --- a/types/BUILD +++ /dev/null @@ -1,41 +0,0 @@ -#Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Supporting infrastructure for implementing and testing PINS. -# -package( - default_visibility = ["//visibility:public"], - licenses = ["notice"], -) - -filegroup( - name = "types_proto_srcs", - srcs = glob(["**/*.proto"]), - visibility = ["//third_party/pins_infra/thinkit:__pkg__"], -) - -proto_library( - name = "types_proto", - srcs = ["types.proto"], - deps = [ - "@com_google_protobuf//:any_proto", - "@com_google_protobuf//:descriptor_proto", - ], -) - -cc_proto_library( - name = "types_cc_proto", - deps = [":types_proto"], -) - diff --git a/wavelength_router/wavelength_router.proto b/wavelength_router/wavelength_router.proto index a4f38ee0..12c8b50f 100644 --- a/wavelength_router/wavelength_router.proto +++ b/wavelength_router/wavelength_router.proto @@ -18,8 +18,7 @@ syntax = "proto3"; package gnoi.optical; -// import "github.com/openconfig/gnoi/types/types.proto"; -import "types/types.proto"; +import "github.com/openconfig/gnoi/types/types.proto"; option (types.gnoi_version) = "0.2.0"; From 50b0c3693c7ed272ddcc1cdf64f02b3843973c64 Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 16:59:22 +0530 Subject: [PATCH 174/238] Revert "Updates to cert service. (#41)" This reverts commit b71da256dbbbd62eedfbd39320b9ba5a65c832ce. --- cert/cert.proto | 36 +++--------------------------------- 1 file changed, 3 insertions(+), 33 deletions(-) diff --git a/cert/cert.proto b/cert/cert.proto index f720e453..d2b323d3 100644 --- a/cert/cert.proto +++ b/cert/cert.proto @@ -22,16 +22,12 @@ import "github.com/openconfig/gnoi/types/types.proto"; package gnoi.certificate; -option (types.gnoi_version) = "0.2.0"; +option (types.gnoi_version) = "0.1.0"; // The Certificate Management Service exported by targets. -// // The service primarily exports two main RPCs, Install & Rotate which are used // for installation of a new certificate, and rotation of an existing // certificate on a target, along with a few management related RPCs. -// -// In addition, the actions from the Install and Rotate RPCs are made available -// as separate RPCs. These use the same request/response protos. service CertificateManagement { // Rotate will replace an existing Certificate on the target by creating a @@ -136,18 +132,6 @@ service CertificateManagement { rpc Install(stream InstallCertificateRequest) returns (stream InstallCertificateResponse); - // When credentials are generated on the device, generates a keypair and - // returns the Certificate Signing Request (CSR). The CSR has the public key, - // which when signed by the CA, becomes the Certificate. - rpc GenerateCSR(GenerateCSRRequest) returns (GenerateCSRResponse); - - // Loads a certificate signed by a Certificate Authority (CA). - rpc LoadCertificate(LoadCertificateRequest) returns (LoadCertificateResponse); - - // Loads a bundle of CA certificates. - rpc LoadCertificateAuthorityBundle(LoadCertificateAuthorityBundleRequest) - returns (LoadCertificateAuthorityBundleResponse); - // An RPC to get the certificates on the target. rpc GetCertificates(GetCertificatesRequest) returns (GetCertificatesResponse); @@ -298,6 +282,8 @@ message LoadCertificateRequest { // Groups of chained certificates should be last, where within, the root // certificate is the last one. E.g.: // CertA, CertB, CertB-Root, CertC, CertC-Intermediate, CertC-Root + // Note that on a forward looking iteration, CA Certificates will be managed + // by a dedicated gNOI service. repeated Certificate ca_certificates = 4; } @@ -307,22 +293,6 @@ message LoadCertificateRequest { message LoadCertificateResponse { } -// Bundle of CA certificates. Same as LoadCertificateRequest::ca_certificates. -message LoadCertificateAuthorityBundleRequest { - // Squashes the existing certificate bundle. - // To improve performance in the Target, certificates can be ordered. - // Groups of chained certificates should be last, where within, the root - // certificate is the last one. E.g.: - // CertA, CertB, CertB-Root, CertC, CertC-Intermediate, CertC-Root - repeated Certificate ca_certificates = 1; -} - -// Response from target after Loading a certificate authority bundle. -// If the target could not load the certificates, it must end the RPC stream -// with a suitable RPC error about why the Certificate was not loaded. -message LoadCertificateAuthorityBundleResponse { -} - // A Finalize message is sent to the target to confirm the Rotation of // the certificate and that the certificate should not be rolled back when // the RPC concludes. The certificate must be rolled back if the target returns From bc1a8ce31ed484e146b6c75590935456ce4e6d30 Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 16:59:22 +0530 Subject: [PATCH 175/238] Revert "Fix syntax errors in reset.proto (#36)" This reverts commit 8b9859fc99bd57235a38a24b17106d628c712198. --- factory_reset/reset.proto | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/factory_reset/reset.proto b/factory_reset/reset.proto index fba8e31e..eb7ae242 100644 --- a/factory_reset/reset.proto +++ b/factory_reset/reset.proto @@ -39,12 +39,12 @@ message ResetSuccess {} // Message also used in gRPC status.details field. message ResetError { // Factory OS reset is not supported. - bool factory_os_unsupported = 1; + bool factory_os_unsupported = 1 // Zero fill is not supported. - bool zero_fill_unsupported = 2; + bool zero_fill_unsupported = 2 // Unspecified error, must provide detail message. - bool other = 3; - string detail = 4; + bool other = 3 + string detail = 4 } message StartResponse { @@ -52,6 +52,6 @@ message StartResponse { // Reset will be executed. ResetSuccess reset_success = 1; // Reset will not be executed. - ResetError reset_error = 2; + ResetError reset_error = 2 } } From 693d65eb38450a2564e30b9677f8e9e5903b9b05 Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 16:59:23 +0530 Subject: [PATCH 176/238] Revert "gNOI Factory Reset - service for factory resetting a Target (#17)" This reverts commit bd8e175d47d85b9b679ecb16c4dc27668b3d3c0a. --- factory_reset/reset.proto | 57 --------------------------------------- system/system.proto | 5 ++-- 2 files changed, 2 insertions(+), 60 deletions(-) delete mode 100644 factory_reset/reset.proto diff --git a/factory_reset/reset.proto b/factory_reset/reset.proto deleted file mode 100644 index eb7ae242..00000000 --- a/factory_reset/reset.proto +++ /dev/null @@ -1,57 +0,0 @@ -// This file defines a gNOI API used for factory reseting a Target. -syntax = "proto3"; - -package gnoi.factory_reset; - -import "github.com/openconfig/gnoi/types/types.proto"; - -option (types.gnoi_version) = "0.1.0"; - -// The FactoryReset service exported by Targets. -service FactoryReset { - // The Start RPC allows the Client to instruct the Target to immediately - // clean all existing state and boot the Target in the same condition as it is - // shipped from factory. State includes storage, configuration, logs, - // certificates and licenses. - // - // Optionally allows rolling back the OS to the same version shipped from - // factory. - // - // Optionally allows for the Target to zero-fill permanent storage where state - // data is stored. - // - // If any of the optional flags is set but not supported, a gRPC Status with - // code INVALID_ARGUMENT must be returned with the details value set to a - // properly populated ResetError message. - rpc Start(StartRequest) returns (StartResponse); -} - -message StartRequest { - // Instructs the Target to rollback the OS to the same version as it shipped - // from factory. - bool factory_os = 1; - // Instructs the Target to zero fill persistent storage state data. - bool zero_fill = 2; -} - -message ResetSuccess {} - -// Message also used in gRPC status.details field. -message ResetError { - // Factory OS reset is not supported. - bool factory_os_unsupported = 1 - // Zero fill is not supported. - bool zero_fill_unsupported = 2 - // Unspecified error, must provide detail message. - bool other = 3 - string detail = 4 -} - -message StartResponse { - oneof response { - // Reset will be executed. - ResetSuccess reset_success = 1; - // Reset will not be executed. - ResetError reset_error = 2 - } -} diff --git a/system/system.proto b/system/system.proto index 5ebbfff3..f7cd0a81 100644 --- a/system/system.proto +++ b/system/system.proto @@ -27,7 +27,7 @@ package gnoi.system; import "github.com/openconfig/gnoi/common/common.proto"; import "github.com/openconfig/gnoi/types/types.proto"; -option (types.gnoi_version) = "1.0.0"; +option (types.gnoi_version) = "0.1.0"; // The gNOI service is a collection of operational RPC's that allow for the // management of a target outside of the configuration and telemetry pipeline. @@ -124,8 +124,7 @@ enum RebootMethod { HALT = 3; // Halt, if possible. WARM = 4; // Reload configuration but not underlying hardware. NSF = 5; // Non-stop-forwarding reboot, if possible. - reserved 6; // RESET method is deprecated in favor of the gNOI - // FactoryReset.Start(). + RESET = 6; // Reboot to factory defaults. POWERUP = 7; // Apply power, no-op if power is already on. } From c7d8e25cc7b66b4969bf1ab3410ff678d307915d Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 16:59:24 +0530 Subject: [PATCH 177/238] Revert "deprecate msgs and fix example" This reverts commit a53b0b7ebe7c13289e8bf5593b4998c793597b49. --- wavelength_router/wavelength_router.pb.go | 97 +++++++++++------------ wavelength_router/wavelength_router.proto | 10 +-- 2 files changed, 47 insertions(+), 60 deletions(-) diff --git a/wavelength_router/wavelength_router.pb.go b/wavelength_router/wavelength_router.pb.go index f814aedd..0ee7407b 100644 --- a/wavelength_router/wavelength_router.pb.go +++ b/wavelength_router/wavelength_router.pb.go @@ -203,7 +203,6 @@ func (AdjustSpectrumError_Type) EnumDescriptor() ([]byte, []int) { return fileDescriptor_cb8b6c17dc3d7490, []int{7, 0} } -// Deprecated: Do not use. type AdjustPSDRequest struct { // Absolute path to the /components/component list member in the OpenConfig // model corresponding to the port to perform the adjustment for. @@ -257,7 +256,6 @@ func (m *AdjustPSDRequest) GetDirection() AdjustPSDRequest_SignalDirection { return AdjustPSDRequest_DIRECTION_UNKNOWN } -// Deprecated: Do not use. type AdjustPSDProgress struct { // The state of the OTDR trace requested. Note that this does not include // error states as these should be returned as a gRPC error. @@ -299,7 +297,6 @@ func (m *AdjustPSDProgress) GetState() AdjustPSDProgress_State { return AdjustPSDProgress_UNKNOWN } -// Deprecated: Do not use. type AdjustPSDError struct { Type AdjustPSDError_Type `protobuf:"varint,1,opt,name=type,proto3,enum=gnoi.optical.AdjustPSDError_Type" json:"type,omitempty"` Detail string `protobuf:"bytes,2,opt,name=detail,proto3" json:"detail,omitempty"` @@ -352,8 +349,6 @@ func (m *AdjustPSDError) GetDetail() string { // "progress" messages should be sent at a regular interval. When the // adjustment is completed, an "error" message should be streamed if an // error is encountered or the RPC should be terminated on success. -// -// Deprecated: Do not use. type AdjustPSDResponse struct { // Types that are valid to be assigned to Response: // *AdjustPSDResponse_Progress @@ -434,7 +429,6 @@ func (*AdjustPSDResponse) XXX_OneofWrappers() []interface{} { } } -// Deprecated: Do not use. type CancelAdjustPSDResponse struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -469,7 +463,7 @@ var xxx_messageInfo_CancelAdjustPSDResponse proto.InternalMessageInfo type AdjustSpectrumRequest struct { // Absolute path to the /components/component list member in the OpenConfig // model corresponding to the port to perform the adjustment for. - // (e.g., /components/component[name=wavelength-router-1-1]) + // (e.g., /components/component[name=amp-1-1]) Component *types.Path `protobuf:"bytes,1,opt,name=component,proto3" json:"component,omitempty"` // Describes the signal direction that should be adjusted relative to the // device. For example, "input" would be the signal entering into the device @@ -747,51 +741,50 @@ func init() { } var fileDescriptor_cb8b6c17dc3d7490 = []byte{ - // 697 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x95, 0xcb, 0x6e, 0xd3, 0x4a, - 0x18, 0xc7, 0x33, 0x69, 0xd3, 0x26, 0x5f, 0x7a, 0x1a, 0x77, 0x7a, 0x39, 0x55, 0xd5, 0xd3, 0x8b, - 0x4f, 0xcf, 0x51, 0xa9, 0x90, 0x13, 0xa5, 0xb0, 0xa0, 0x5c, 0x44, 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x80, - 0x70, 0x14, 0xbd, 0x0c, 0xc4, 0x7f, 0x18, 0xb0, 0x0a, 0x99, 0xe8, 0x74, 0xe0, 0xb5, 0xf1, 0x77, - 0xf1, 0xca, 0xfa, 0xc8, 0xf9, 0x10, 0x61, 0xe2, 0x43, 0x12, 0x15, 0x10, 0x7e, 0x09, 0xb9, 0x81, - 0x83, 0x77, 0xe5, 0xd6, 0x03, 0xb7, 0xe9, 0x88, 0x73, 0xeb, 0x17, 0xc0, 0xad, 0xde, 0xad, 0xd8, - 0x6b, 0x11, 0xff, 0x7b, 0x8d, 0xd3, 0xb6, 0xb2, 0x35, 0x5e, 0x14, 0x56, 0x48, 0x14, 0x10, 0x36, - 0x61, 0xe1, 0x32, 0x27, 0xaf, 0x57, 0x66, 0x67, 0x74, 0x27, 0xc3, 0xc5, 0xca, 0xe9, 0xef, 0x8f, - 0x52, 0x05, 0xa9, 0x28, 0x15, 0x8e, 0xa7, 0xfc, 0x77, 0x76, 0xf7, 0x57, 0x00, 0x00, 0x00, 0xff, - 0xff, 0xe6, 0xd4, 0x57, 0x43, 0xd0, 0x07, 0x00, 0x00, + // 683 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x55, 0x4b, 0x6f, 0xd3, 0x4a, + 0x18, 0xcd, 0xa4, 0x4d, 0x9b, 0x7c, 0xe9, 0x6d, 0xdc, 0xe9, 0xe3, 0xf6, 0x56, 0x55, 0x1f, 0xbe, + 0x05, 0x95, 0x0a, 0x39, 0x51, 0x0a, 0x0b, 0x9e, 0x22, 0xaf, 0x52, 0x8b, 0xe2, 0x98, 0x71, 0xac, + 0x8a, 0x05, 0x8a, 0x5c, 0x77, 0x48, 0x8d, 0x52, 0x8f, 0xb1, 0x27, 0xa0, 0x2e, 0xd9, 0x21, 0xb1, + 0x43, 0x6c, 0x59, 0xb1, 0xe0, 0xff, 0xf0, 0x1f, 0x58, 0xf3, 0x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xd6, 0x27, 0xc0, 0xcd, + 0xee, 0x4d, 0xd8, 0x1d, 0x11, 0xff, 0x7f, 0x85, 0xd3, 0xb6, 0xb2, 0x35, 0x1e, 0x14, 0x31, 0x24, + 0x0a, 0x08, 0x5b, 0xb0, 0x70, 0x91, 0x93, 0x57, 0xa3, 0xd9, 0x19, 0x3d, 0xc9, 0x30, 0x59, 0x39, + 0xfd, 0xe3, 0x71, 0xaa, 0x20, 0x15, 0xa5, 0xc2, 0xd1, 0x54, 0xf0, 0xa6, 0xee, 0xfe, 0x0e, 0x00, + 0x00, 0xff, 0xff, 0x88, 0xb8, 0xf7, 0xca, 0xbc, 0x07, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. diff --git a/wavelength_router/wavelength_router.proto b/wavelength_router/wavelength_router.proto index 12c8b50f..6917608d 100644 --- a/wavelength_router/wavelength_router.proto +++ b/wavelength_router/wavelength_router.proto @@ -71,7 +71,6 @@ service WavelengthRouter { } message AdjustPSDRequest { - option deprecated = true; // Absolute path to the /components/component list member in the OpenConfig // model corresponding to the port to perform the adjustment for. // (e.g., /components/component[name=amp-1-1]) @@ -89,7 +88,6 @@ message AdjustPSDRequest { } message AdjustPSDProgress { - option deprecated = true; enum State { UNKNOWN = 0; RUNNING = 1; // The PSD adjustment is running. @@ -101,7 +99,6 @@ message AdjustPSDProgress { } message AdjustPSDError { - option deprecated = true; enum Type { // An unspecified error. Must use the detail value to describe the issue. UNSPECIFIED = 0; @@ -122,21 +119,18 @@ message AdjustPSDError { // adjustment is completed, an "error" message should be streamed if an // error is encountered or the RPC should be terminated on success. message AdjustPSDResponse { - option deprecated = true; oneof response { AdjustPSDProgress progress = 1; AdjustPSDError error = 2; } } -message CancelAdjustPSDResponse { - option deprecated = true; -} +message CancelAdjustPSDResponse {} message AdjustSpectrumRequest { // Absolute path to the /components/component list member in the OpenConfig // model corresponding to the port to perform the adjustment for. - // (e.g., /components/component[name=wavelength-router-1-1]) + // (e.g., /components/component[name=amp-1-1]) types.Path component = 1; enum SignalDirection { From 435eecbf8a684e1108c82766e9f16b70c4185efe Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 16:59:24 +0530 Subject: [PATCH 178/238] Revert "mark old RPCs deprecated instead of deleting" This reverts commit 4fdd4e5bb77335151db369ee2113edbf0b3778e0. --- wavelength_router/wavelength_router.pb.go | 596 ++-------------------- wavelength_router/wavelength_router.proto | 83 --- 2 files changed, 44 insertions(+), 635 deletions(-) diff --git a/wavelength_router/wavelength_router.pb.go b/wavelength_router/wavelength_router.pb.go index 0ee7407b..f5844eca 100644 --- a/wavelength_router/wavelength_router.pb.go +++ b/wavelength_router/wavelength_router.pb.go @@ -25,95 +25,6 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package -type AdjustPSDRequest_SignalDirection int32 - -const ( - AdjustPSDRequest_DIRECTION_UNKNOWN AdjustPSDRequest_SignalDirection = 0 - AdjustPSDRequest_DIRECTION_INPUT AdjustPSDRequest_SignalDirection = 1 - AdjustPSDRequest_DIRECTION_OUTPUT AdjustPSDRequest_SignalDirection = 2 -) - -var AdjustPSDRequest_SignalDirection_name = map[int32]string{ - 0: "DIRECTION_UNKNOWN", - 1: "DIRECTION_INPUT", - 2: "DIRECTION_OUTPUT", -} - -var AdjustPSDRequest_SignalDirection_value = map[string]int32{ - "DIRECTION_UNKNOWN": 0, - "DIRECTION_INPUT": 1, - "DIRECTION_OUTPUT": 2, -} - -func (x AdjustPSDRequest_SignalDirection) String() string { - return proto.EnumName(AdjustPSDRequest_SignalDirection_name, int32(x)) -} - -func (AdjustPSDRequest_SignalDirection) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_cb8b6c17dc3d7490, []int{0, 0} -} - -type AdjustPSDProgress_State int32 - -const ( - AdjustPSDProgress_UNKNOWN AdjustPSDProgress_State = 0 - AdjustPSDProgress_RUNNING AdjustPSDProgress_State = 1 - AdjustPSDProgress_COMPLETE AdjustPSDProgress_State = 2 -) - -var AdjustPSDProgress_State_name = map[int32]string{ - 0: "UNKNOWN", - 1: "RUNNING", - 2: "COMPLETE", -} - -var AdjustPSDProgress_State_value = map[string]int32{ - "UNKNOWN": 0, - "RUNNING": 1, - "COMPLETE": 2, -} - -func (x AdjustPSDProgress_State) String() string { - return proto.EnumName(AdjustPSDProgress_State_name, int32(x)) -} - -func (AdjustPSDProgress_State) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_cb8b6c17dc3d7490, []int{1, 0} -} - -type AdjustPSDError_Type int32 - -const ( - // An unspecified error. Must use the detail value to describe the issue. - AdjustPSDError_UNSPECIFIED AdjustPSDError_Type = 0 - // An adjustment was requested for a port that is busy (e.g., requesting - // input adjustment for a port that is currently running an output - // adjustment) - AdjustPSDError_PORT_BUSY AdjustPSDError_Type = 1 - // The hardware has failed and cannot complete an adjustment. - AdjustPSDError_HARDWARE_FAILURE AdjustPSDError_Type = 2 -) - -var AdjustPSDError_Type_name = map[int32]string{ - 0: "UNSPECIFIED", - 1: "PORT_BUSY", - 2: "HARDWARE_FAILURE", -} - -var AdjustPSDError_Type_value = map[string]int32{ - "UNSPECIFIED": 0, - "PORT_BUSY": 1, - "HARDWARE_FAILURE": 2, -} - -func (x AdjustPSDError_Type) String() string { - return proto.EnumName(AdjustPSDError_Type_name, int32(x)) -} - -func (AdjustPSDError_Type) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_cb8b6c17dc3d7490, []int{2, 0} -} - type AdjustSpectrumRequest_SignalDirection int32 const ( @@ -139,7 +50,7 @@ func (x AdjustSpectrumRequest_SignalDirection) String() string { } func (AdjustSpectrumRequest_SignalDirection) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_cb8b6c17dc3d7490, []int{5, 0} + return fileDescriptor_cb8b6c17dc3d7490, []int{0, 0} } type AdjustSpectrumProgress_State int32 @@ -167,7 +78,7 @@ func (x AdjustSpectrumProgress_State) String() string { } func (AdjustSpectrumProgress_State) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_cb8b6c17dc3d7490, []int{6, 0} + return fileDescriptor_cb8b6c17dc3d7490, []int{1, 0} } type AdjustSpectrumError_Type int32 @@ -200,266 +111,9 @@ func (x AdjustSpectrumError_Type) String() string { } func (AdjustSpectrumError_Type) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_cb8b6c17dc3d7490, []int{7, 0} -} - -type AdjustPSDRequest struct { - // Absolute path to the /components/component list member in the OpenConfig - // model corresponding to the port to perform the adjustment for. - // (e.g., /components/component[name=amp-1-1]) - Component *types.Path `protobuf:"bytes,1,opt,name=component,proto3" json:"component,omitempty"` - // Describes the signal direction that should be adjusted relative to the - // device. For example, "input" would be the signal entering into the device - // from the far end device. - Direction AdjustPSDRequest_SignalDirection `protobuf:"varint,2,opt,name=direction,proto3,enum=gnoi.optical.AdjustPSDRequest_SignalDirection" json:"direction,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *AdjustPSDRequest) Reset() { *m = AdjustPSDRequest{} } -func (m *AdjustPSDRequest) String() string { return proto.CompactTextString(m) } -func (*AdjustPSDRequest) ProtoMessage() {} -func (*AdjustPSDRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_cb8b6c17dc3d7490, []int{0} -} - -func (m *AdjustPSDRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_AdjustPSDRequest.Unmarshal(m, b) -} -func (m *AdjustPSDRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_AdjustPSDRequest.Marshal(b, m, deterministic) -} -func (m *AdjustPSDRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_AdjustPSDRequest.Merge(m, src) -} -func (m *AdjustPSDRequest) XXX_Size() int { - return xxx_messageInfo_AdjustPSDRequest.Size(m) -} -func (m *AdjustPSDRequest) XXX_DiscardUnknown() { - xxx_messageInfo_AdjustPSDRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_AdjustPSDRequest proto.InternalMessageInfo - -func (m *AdjustPSDRequest) GetComponent() *types.Path { - if m != nil { - return m.Component - } - return nil -} - -func (m *AdjustPSDRequest) GetDirection() AdjustPSDRequest_SignalDirection { - if m != nil { - return m.Direction - } - return AdjustPSDRequest_DIRECTION_UNKNOWN -} - -type AdjustPSDProgress struct { - // The state of the OTDR trace requested. Note that this does not include - // error states as these should be returned as a gRPC error. - State AdjustPSDProgress_State `protobuf:"varint,1,opt,name=state,proto3,enum=gnoi.optical.AdjustPSDProgress_State" json:"state,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *AdjustPSDProgress) Reset() { *m = AdjustPSDProgress{} } -func (m *AdjustPSDProgress) String() string { return proto.CompactTextString(m) } -func (*AdjustPSDProgress) ProtoMessage() {} -func (*AdjustPSDProgress) Descriptor() ([]byte, []int) { - return fileDescriptor_cb8b6c17dc3d7490, []int{1} -} - -func (m *AdjustPSDProgress) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_AdjustPSDProgress.Unmarshal(m, b) -} -func (m *AdjustPSDProgress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_AdjustPSDProgress.Marshal(b, m, deterministic) -} -func (m *AdjustPSDProgress) XXX_Merge(src proto.Message) { - xxx_messageInfo_AdjustPSDProgress.Merge(m, src) -} -func (m *AdjustPSDProgress) XXX_Size() int { - return xxx_messageInfo_AdjustPSDProgress.Size(m) -} -func (m *AdjustPSDProgress) XXX_DiscardUnknown() { - xxx_messageInfo_AdjustPSDProgress.DiscardUnknown(m) -} - -var xxx_messageInfo_AdjustPSDProgress proto.InternalMessageInfo - -func (m *AdjustPSDProgress) GetState() AdjustPSDProgress_State { - if m != nil { - return m.State - } - return AdjustPSDProgress_UNKNOWN -} - -type AdjustPSDError struct { - Type AdjustPSDError_Type `protobuf:"varint,1,opt,name=type,proto3,enum=gnoi.optical.AdjustPSDError_Type" json:"type,omitempty"` - Detail string `protobuf:"bytes,2,opt,name=detail,proto3" json:"detail,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *AdjustPSDError) Reset() { *m = AdjustPSDError{} } -func (m *AdjustPSDError) String() string { return proto.CompactTextString(m) } -func (*AdjustPSDError) ProtoMessage() {} -func (*AdjustPSDError) Descriptor() ([]byte, []int) { - return fileDescriptor_cb8b6c17dc3d7490, []int{2} -} - -func (m *AdjustPSDError) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_AdjustPSDError.Unmarshal(m, b) -} -func (m *AdjustPSDError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_AdjustPSDError.Marshal(b, m, deterministic) -} -func (m *AdjustPSDError) XXX_Merge(src proto.Message) { - xxx_messageInfo_AdjustPSDError.Merge(m, src) -} -func (m *AdjustPSDError) XXX_Size() int { - return xxx_messageInfo_AdjustPSDError.Size(m) -} -func (m *AdjustPSDError) XXX_DiscardUnknown() { - xxx_messageInfo_AdjustPSDError.DiscardUnknown(m) -} - -var xxx_messageInfo_AdjustPSDError proto.InternalMessageInfo - -func (m *AdjustPSDError) GetType() AdjustPSDError_Type { - if m != nil { - return m.Type - } - return AdjustPSDError_UNSPECIFIED -} - -func (m *AdjustPSDError) GetDetail() string { - if m != nil { - return m.Detail - } - return "" -} - -// AdjustPSDResponse describes the possible response messages that will be -// streamed after the RPC is initiated. While the OTDR is running, -// "progress" messages should be sent at a regular interval. When the -// adjustment is completed, an "error" message should be streamed if an -// error is encountered or the RPC should be terminated on success. -type AdjustPSDResponse struct { - // Types that are valid to be assigned to Response: - // *AdjustPSDResponse_Progress - // *AdjustPSDResponse_Error - Response isAdjustPSDResponse_Response `protobuf_oneof:"response"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *AdjustPSDResponse) Reset() { *m = AdjustPSDResponse{} } -func (m *AdjustPSDResponse) String() string { return proto.CompactTextString(m) } -func (*AdjustPSDResponse) ProtoMessage() {} -func (*AdjustPSDResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_cb8b6c17dc3d7490, []int{3} -} - -func (m *AdjustPSDResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_AdjustPSDResponse.Unmarshal(m, b) -} -func (m *AdjustPSDResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_AdjustPSDResponse.Marshal(b, m, deterministic) -} -func (m *AdjustPSDResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_AdjustPSDResponse.Merge(m, src) -} -func (m *AdjustPSDResponse) XXX_Size() int { - return xxx_messageInfo_AdjustPSDResponse.Size(m) -} -func (m *AdjustPSDResponse) XXX_DiscardUnknown() { - xxx_messageInfo_AdjustPSDResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_AdjustPSDResponse proto.InternalMessageInfo - -type isAdjustPSDResponse_Response interface { - isAdjustPSDResponse_Response() -} - -type AdjustPSDResponse_Progress struct { - Progress *AdjustPSDProgress `protobuf:"bytes,1,opt,name=progress,proto3,oneof"` -} - -type AdjustPSDResponse_Error struct { - Error *AdjustPSDError `protobuf:"bytes,2,opt,name=error,proto3,oneof"` -} - -func (*AdjustPSDResponse_Progress) isAdjustPSDResponse_Response() {} - -func (*AdjustPSDResponse_Error) isAdjustPSDResponse_Response() {} - -func (m *AdjustPSDResponse) GetResponse() isAdjustPSDResponse_Response { - if m != nil { - return m.Response - } - return nil -} - -func (m *AdjustPSDResponse) GetProgress() *AdjustPSDProgress { - if x, ok := m.GetResponse().(*AdjustPSDResponse_Progress); ok { - return x.Progress - } - return nil -} - -func (m *AdjustPSDResponse) GetError() *AdjustPSDError { - if x, ok := m.GetResponse().(*AdjustPSDResponse_Error); ok { - return x.Error - } - return nil -} - -// XXX_OneofWrappers is for the internal use of the proto package. -func (*AdjustPSDResponse) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*AdjustPSDResponse_Progress)(nil), - (*AdjustPSDResponse_Error)(nil), - } -} - -type CancelAdjustPSDResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CancelAdjustPSDResponse) Reset() { *m = CancelAdjustPSDResponse{} } -func (m *CancelAdjustPSDResponse) String() string { return proto.CompactTextString(m) } -func (*CancelAdjustPSDResponse) ProtoMessage() {} -func (*CancelAdjustPSDResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_cb8b6c17dc3d7490, []int{4} -} - -func (m *CancelAdjustPSDResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CancelAdjustPSDResponse.Unmarshal(m, b) -} -func (m *CancelAdjustPSDResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CancelAdjustPSDResponse.Marshal(b, m, deterministic) -} -func (m *CancelAdjustPSDResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_CancelAdjustPSDResponse.Merge(m, src) -} -func (m *CancelAdjustPSDResponse) XXX_Size() int { - return xxx_messageInfo_CancelAdjustPSDResponse.Size(m) -} -func (m *CancelAdjustPSDResponse) XXX_DiscardUnknown() { - xxx_messageInfo_CancelAdjustPSDResponse.DiscardUnknown(m) + return fileDescriptor_cb8b6c17dc3d7490, []int{2, 0} } -var xxx_messageInfo_CancelAdjustPSDResponse proto.InternalMessageInfo - type AdjustSpectrumRequest struct { // Absolute path to the /components/component list member in the OpenConfig // model corresponding to the port to perform the adjustment for. @@ -478,7 +132,7 @@ func (m *AdjustSpectrumRequest) Reset() { *m = AdjustSpectrumRequest{} } func (m *AdjustSpectrumRequest) String() string { return proto.CompactTextString(m) } func (*AdjustSpectrumRequest) ProtoMessage() {} func (*AdjustSpectrumRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_cb8b6c17dc3d7490, []int{5} + return fileDescriptor_cb8b6c17dc3d7490, []int{0} } func (m *AdjustSpectrumRequest) XXX_Unmarshal(b []byte) error { @@ -526,7 +180,7 @@ func (m *AdjustSpectrumProgress) Reset() { *m = AdjustSpectrumProgress{} func (m *AdjustSpectrumProgress) String() string { return proto.CompactTextString(m) } func (*AdjustSpectrumProgress) ProtoMessage() {} func (*AdjustSpectrumProgress) Descriptor() ([]byte, []int) { - return fileDescriptor_cb8b6c17dc3d7490, []int{6} + return fileDescriptor_cb8b6c17dc3d7490, []int{1} } func (m *AdjustSpectrumProgress) XXX_Unmarshal(b []byte) error { @@ -566,7 +220,7 @@ func (m *AdjustSpectrumError) Reset() { *m = AdjustSpectrumError{} } func (m *AdjustSpectrumError) String() string { return proto.CompactTextString(m) } func (*AdjustSpectrumError) ProtoMessage() {} func (*AdjustSpectrumError) Descriptor() ([]byte, []int) { - return fileDescriptor_cb8b6c17dc3d7490, []int{7} + return fileDescriptor_cb8b6c17dc3d7490, []int{2} } func (m *AdjustSpectrumError) XXX_Unmarshal(b []byte) error { @@ -620,7 +274,7 @@ func (m *AdjustSpectrumResponse) Reset() { *m = AdjustSpectrumResponse{} func (m *AdjustSpectrumResponse) String() string { return proto.CompactTextString(m) } func (*AdjustSpectrumResponse) ProtoMessage() {} func (*AdjustSpectrumResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_cb8b6c17dc3d7490, []int{8} + return fileDescriptor_cb8b6c17dc3d7490, []int{3} } func (m *AdjustSpectrumResponse) XXX_Unmarshal(b []byte) error { @@ -696,7 +350,7 @@ func (m *CancelAdjustSpectrumResponse) Reset() { *m = CancelAdjustSpectr func (m *CancelAdjustSpectrumResponse) String() string { return proto.CompactTextString(m) } func (*CancelAdjustSpectrumResponse) ProtoMessage() {} func (*CancelAdjustSpectrumResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_cb8b6c17dc3d7490, []int{9} + return fileDescriptor_cb8b6c17dc3d7490, []int{4} } func (m *CancelAdjustSpectrumResponse) XXX_Unmarshal(b []byte) error { @@ -718,17 +372,9 @@ func (m *CancelAdjustSpectrumResponse) XXX_DiscardUnknown() { var xxx_messageInfo_CancelAdjustSpectrumResponse proto.InternalMessageInfo func init() { - proto.RegisterEnum("gnoi.optical.AdjustPSDRequest_SignalDirection", AdjustPSDRequest_SignalDirection_name, AdjustPSDRequest_SignalDirection_value) - proto.RegisterEnum("gnoi.optical.AdjustPSDProgress_State", AdjustPSDProgress_State_name, AdjustPSDProgress_State_value) - proto.RegisterEnum("gnoi.optical.AdjustPSDError_Type", AdjustPSDError_Type_name, AdjustPSDError_Type_value) proto.RegisterEnum("gnoi.optical.AdjustSpectrumRequest_SignalDirection", AdjustSpectrumRequest_SignalDirection_name, AdjustSpectrumRequest_SignalDirection_value) proto.RegisterEnum("gnoi.optical.AdjustSpectrumProgress_State", AdjustSpectrumProgress_State_name, AdjustSpectrumProgress_State_value) proto.RegisterEnum("gnoi.optical.AdjustSpectrumError_Type", AdjustSpectrumError_Type_name, AdjustSpectrumError_Type_value) - proto.RegisterType((*AdjustPSDRequest)(nil), "gnoi.optical.AdjustPSDRequest") - proto.RegisterType((*AdjustPSDProgress)(nil), "gnoi.optical.AdjustPSDProgress") - proto.RegisterType((*AdjustPSDError)(nil), "gnoi.optical.AdjustPSDError") - proto.RegisterType((*AdjustPSDResponse)(nil), "gnoi.optical.AdjustPSDResponse") - proto.RegisterType((*CancelAdjustPSDResponse)(nil), "gnoi.optical.CancelAdjustPSDResponse") proto.RegisterType((*AdjustSpectrumRequest)(nil), "gnoi.optical.AdjustSpectrumRequest") proto.RegisterType((*AdjustSpectrumProgress)(nil), "gnoi.optical.AdjustSpectrumProgress") proto.RegisterType((*AdjustSpectrumError)(nil), "gnoi.optical.AdjustSpectrumError") @@ -741,50 +387,41 @@ func init() { } var fileDescriptor_cb8b6c17dc3d7490 = []byte{ - // 683 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc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b, 0xfa, 0x52, 0x7e, 0xaf, - 0x3f, 0xe5, 0x9b, 0x97, 0x4e, 0x7c, 0x71, 0xd4, 0xd7, 0x60, 0xf5, 0x7c, 0xd4, 0x07, 0xa5, 0x16, - 0x3f, 0x4f, 0x80, 0x70, 0x18, 0xbf, 0x02, 0x24, 0x78, 0x04, 0xb0, 0x06, 0x99, 0xf8, 0x64, 0xe0, - 0xb5, 0xf1, 0xf7, 0xee, 0xca, 0xfa, 0xc8, 0xf5, 0x48, 0xc2, 0xc4, 0xc7, 0x24, 0x2a, 0x20, 0xfc, - 0x0a, 0x72, 0x03, 0x87, 0xee, 0xd2, 0xad, 0x07, 0x6e, 0xcf, 0x51, 0x67, 0xd6, 0x27, 0xc0, 0xcd, - 0xee, 0x4d, 0xd8, 0x1d, 0x11, 0xff, 0x7f, 0x85, 0xd3, 0xb6, 0xb2, 0x35, 0x1e, 0x14, 0x31, 0x24, - 0x0a, 0x08, 0x5b, 0xb0, 0x70, 0x91, 0x93, 0x57, 0xa3, 0xd9, 0x19, 0x3d, 0xc9, 0x30, 0x59, 0x39, - 0xfd, 0xe3, 0x71, 0xaa, 0x20, 0x15, 0xa5, 0xc2, 0xd1, 0x54, 0xf0, 0xa6, 0xee, 0xfe, 0x0e, 0x00, - 0x00, 0xff, 0xff, 0x88, 0xb8, 0xf7, 0xca, 0xbc, 0x07, 0x00, 0x00, + // 543 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0x5d, 0x6e, 0xd3, 0x40, + 0x10, 0xc7, 0xed, 0xaa, 0x69, 0x93, 0x49, 0x49, 0xcc, 0xf6, 0x43, 0x55, 0x85, 0x50, 0x31, 0x15, + 0x2a, 0x08, 0x6d, 0x22, 0xf7, 0x09, 0x84, 0x10, 0xf9, 0x70, 0x89, 0x45, 0x71, 0xcc, 0xda, 0x56, + 0xc4, 0x53, 0xe4, 0x3a, 0x8b, 0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, 0x8d, 0xd0, 0x24, 0x66, 0x51, 0x42, 0x51, 0x1b, 0xca, 0x71, 0x61, 0x47, + 0x31, 0x29, 0x27, 0xeb, 0x58, 0xd7, 0x93, 0xc8, 0x8d, 0x0e, 0xbd, 0x80, 0x12, 0x4d, 0x1b, 0xc9, + 0x98, 0xab, 0xda, 0xa3, 0xff, 0x76, 0xdc, 0x93, 0x48, 0xae, 0x68, 0x03, 0x94, 0x79, 0x81, 0xa2, + 0x3e, 0x84, 0x07, 0x1d, 0x2f, 0xf2, 0xe9, 0x64, 0x39, 0xaa, 0xf6, 0x5b, 0x06, 0x65, 0x70, 0xb3, + 0x47, 0x24, 0x5b, 0x23, 0x34, 0x84, 0xda, 0x62, 0x3a, 0x7a, 0xbc, 0xc6, 0xe4, 0x1e, 0x9d, 0xac, + 0x4e, 0x2a, 0x88, 0xa4, 0xa6, 0x8c, 0x42, 0xd8, 0x5b, 0x46, 0xb5, 0x5e, 0x99, 0x5b, 0x63, 0xb8, + 0xaa, 0x3d, 0x55, 0x6a, 0x97, 0x7f, 0xbd, 0x2e, 0x35, 0xb1, 0x86, 0x9b, 0x97, 0x5b, 0xd9, 0x86, + 0x9f, 0xfd, 0x0d, 0x00, 0x00, 0xff, 0xff, 0xd2, 0x22, 0x08, 0x5d, 0x4a, 0x04, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -799,30 +436,6 @@ const _ = grpc.SupportPackageIsVersion4 // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type WavelengthRouterClient interface { - // AdjustPSD performs a power spectral density (PSD) adjustment on an optical - // DWDM line system port. - // - // This RPC's initial message triggers adjustments. The target should validate - // the request, and immediately begin the adjustment as long as another - // adjustment is not already running. As this RPC may take multiple minutes, - // the state should be regularly streamed to the client. The operation should - // be completed on the device regardless of the state of the RPC channel to - // the initiating client. A client that becomes disconnected during an - // operation can reconnect, requesting the same operation, and receive status - // updates this way. There is no means by which an adjustment that has been - // triggered by a client can be cancelled unless the CancelAdjustPSD RPC is - // used. - // DEPRECATED, use AdjustSpectrum. - // - // Deprecated: Do not use. - AdjustPSD(ctx context.Context, in *AdjustPSDRequest, opts ...grpc.CallOption) (WavelengthRouter_AdjustPSDClient, error) - // CancelAdjustPSD cancels an in-progress AdjustPSD request. If an - // adjustment is not being performed for the provided request, then the RPC - // should return successfully. - // DEPRECATED, use CancelAdjustSpectrum. - // - // Deprecated: Do not use. - CancelAdjustPSD(ctx context.Context, in *AdjustPSDRequest, opts ...grpc.CallOption) (*CancelAdjustPSDResponse, error) // AdjustSpectrum performs a spectrum power adjustment on an optical // DWDM line system port. // @@ -851,51 +464,8 @@ func NewWavelengthRouterClient(cc *grpc.ClientConn) WavelengthRouterClient { return &wavelengthRouterClient{cc} } -// Deprecated: Do not use. -func (c *wavelengthRouterClient) AdjustPSD(ctx context.Context, in *AdjustPSDRequest, opts ...grpc.CallOption) (WavelengthRouter_AdjustPSDClient, error) { - stream, err := c.cc.NewStream(ctx, &_WavelengthRouter_serviceDesc.Streams[0], "/gnoi.optical.WavelengthRouter/AdjustPSD", opts...) - if err != nil { - return nil, err - } - x := &wavelengthRouterAdjustPSDClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type WavelengthRouter_AdjustPSDClient interface { - Recv() (*AdjustPSDResponse, error) - grpc.ClientStream -} - -type wavelengthRouterAdjustPSDClient struct { - grpc.ClientStream -} - -func (x *wavelengthRouterAdjustPSDClient) Recv() (*AdjustPSDResponse, error) { - m := new(AdjustPSDResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -// Deprecated: Do not use. -func (c *wavelengthRouterClient) CancelAdjustPSD(ctx context.Context, in *AdjustPSDRequest, opts ...grpc.CallOption) (*CancelAdjustPSDResponse, error) { - out := new(CancelAdjustPSDResponse) - err := c.cc.Invoke(ctx, "/gnoi.optical.WavelengthRouter/CancelAdjustPSD", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - func (c *wavelengthRouterClient) AdjustSpectrum(ctx context.Context, in *AdjustSpectrumRequest, opts ...grpc.CallOption) (WavelengthRouter_AdjustSpectrumClient, error) { - stream, err := c.cc.NewStream(ctx, &_WavelengthRouter_serviceDesc.Streams[1], "/gnoi.optical.WavelengthRouter/AdjustSpectrum", opts...) + stream, err := c.cc.NewStream(ctx, &_WavelengthRouter_serviceDesc.Streams[0], "/gnoi.optical.WavelengthRouter/AdjustSpectrum", opts...) if err != nil { return nil, err } @@ -937,30 +507,6 @@ func (c *wavelengthRouterClient) CancelAdjustSpectrum(ctx context.Context, in *A // WavelengthRouterServer is the server API for WavelengthRouter service. type WavelengthRouterServer interface { - // AdjustPSD performs a power spectral density (PSD) adjustment on an optical - // DWDM line system port. - // - // This RPC's initial message triggers adjustments. The target should validate - // the request, and immediately begin the adjustment as long as another - // adjustment is not already running. As this RPC may take multiple minutes, - // the state should be regularly streamed to the client. The operation should - // be completed on the device regardless of the state of the RPC channel to - // the initiating client. A client that becomes disconnected during an - // operation can reconnect, requesting the same operation, and receive status - // updates this way. There is no means by which an adjustment that has been - // triggered by a client can be cancelled unless the CancelAdjustPSD RPC is - // used. - // DEPRECATED, use AdjustSpectrum. - // - // Deprecated: Do not use. - AdjustPSD(*AdjustPSDRequest, WavelengthRouter_AdjustPSDServer) error - // CancelAdjustPSD cancels an in-progress AdjustPSD request. If an - // adjustment is not being performed for the provided request, then the RPC - // should return successfully. - // DEPRECATED, use CancelAdjustSpectrum. - // - // Deprecated: Do not use. - CancelAdjustPSD(context.Context, *AdjustPSDRequest) (*CancelAdjustPSDResponse, error) // AdjustSpectrum performs a spectrum power adjustment on an optical // DWDM line system port. // @@ -985,12 +531,6 @@ type WavelengthRouterServer interface { type UnimplementedWavelengthRouterServer struct { } -func (*UnimplementedWavelengthRouterServer) AdjustPSD(req *AdjustPSDRequest, srv WavelengthRouter_AdjustPSDServer) error { - return status.Errorf(codes.Unimplemented, "method AdjustPSD not implemented") -} -func (*UnimplementedWavelengthRouterServer) CancelAdjustPSD(ctx context.Context, req *AdjustPSDRequest) (*CancelAdjustPSDResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CancelAdjustPSD not implemented") -} func (*UnimplementedWavelengthRouterServer) AdjustSpectrum(req *AdjustSpectrumRequest, srv WavelengthRouter_AdjustSpectrumServer) error { return status.Errorf(codes.Unimplemented, "method AdjustSpectrum not implemented") } @@ -1002,45 +542,6 @@ func RegisterWavelengthRouterServer(s *grpc.Server, srv WavelengthRouterServer) s.RegisterService(&_WavelengthRouter_serviceDesc, srv) } -func _WavelengthRouter_AdjustPSD_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(AdjustPSDRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(WavelengthRouterServer).AdjustPSD(m, &wavelengthRouterAdjustPSDServer{stream}) -} - -type WavelengthRouter_AdjustPSDServer interface { - Send(*AdjustPSDResponse) error - grpc.ServerStream -} - -type wavelengthRouterAdjustPSDServer struct { - grpc.ServerStream -} - -func (x *wavelengthRouterAdjustPSDServer) Send(m *AdjustPSDResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _WavelengthRouter_CancelAdjustPSD_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(AdjustPSDRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(WavelengthRouterServer).CancelAdjustPSD(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.optical.WavelengthRouter/CancelAdjustPSD", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(WavelengthRouterServer).CancelAdjustPSD(ctx, req.(*AdjustPSDRequest)) - } - return interceptor(ctx, in, info, handler) -} - func _WavelengthRouter_AdjustSpectrum_Handler(srv interface{}, stream grpc.ServerStream) error { m := new(AdjustSpectrumRequest) if err := stream.RecvMsg(m); err != nil { @@ -1084,21 +585,12 @@ var _WavelengthRouter_serviceDesc = grpc.ServiceDesc{ ServiceName: "gnoi.optical.WavelengthRouter", HandlerType: (*WavelengthRouterServer)(nil), Methods: []grpc.MethodDesc{ - { - MethodName: "CancelAdjustPSD", - Handler: _WavelengthRouter_CancelAdjustPSD_Handler, - }, { MethodName: "CancelAdjustSpectrum", Handler: _WavelengthRouter_CancelAdjustSpectrum_Handler, }, }, Streams: []grpc.StreamDesc{ - { - StreamName: "AdjustPSD", - Handler: _WavelengthRouter_AdjustPSD_Handler, - ServerStreams: true, - }, { StreamName: "AdjustSpectrum", Handler: _WavelengthRouter_AdjustSpectrum_Handler, diff --git a/wavelength_router/wavelength_router.proto b/wavelength_router/wavelength_router.proto index 6917608d..4426abf6 100644 --- a/wavelength_router/wavelength_router.proto +++ b/wavelength_router/wavelength_router.proto @@ -23,32 +23,6 @@ import "github.com/openconfig/gnoi/types/types.proto"; option (types.gnoi_version) = "0.2.0"; service WavelengthRouter { - // AdjustPSD performs a power spectral density (PSD) adjustment on an optical - // DWDM line system port. - // - // This RPC's initial message triggers adjustments. The target should validate - // the request, and immediately begin the adjustment as long as another - // adjustment is not already running. As this RPC may take multiple minutes, - // the state should be regularly streamed to the client. The operation should - // be completed on the device regardless of the state of the RPC channel to - // the initiating client. A client that becomes disconnected during an - // operation can reconnect, requesting the same operation, and receive status - // updates this way. There is no means by which an adjustment that has been - // triggered by a client can be cancelled unless the CancelAdjustPSD RPC is - // used. - // DEPRECATED, use AdjustSpectrum. - rpc AdjustPSD(AdjustPSDRequest) returns (stream AdjustPSDResponse) { - option deprecated = true; - } - - // CancelAdjustPSD cancels an in-progress AdjustPSD request. If an - // adjustment is not being performed for the provided request, then the RPC - // should return successfully. - // DEPRECATED, use CancelAdjustSpectrum. - rpc CancelAdjustPSD(AdjustPSDRequest) returns (CancelAdjustPSDResponse) { - option deprecated = true; - } - // AdjustSpectrum performs a spectrum power adjustment on an optical // DWDM line system port. // @@ -70,63 +44,6 @@ service WavelengthRouter { rpc CancelAdjustSpectrum(AdjustSpectrumRequest) returns (CancelAdjustSpectrumResponse) {} } -message AdjustPSDRequest { - // Absolute path to the /components/component list member in the OpenConfig - // model corresponding to the port to perform the adjustment for. - // (e.g., /components/component[name=amp-1-1]) - types.Path component = 1; - - enum SignalDirection { - DIRECTION_UNKNOWN = 0; - DIRECTION_INPUT = 1; - DIRECTION_OUTPUT = 2; - } - // Describes the signal direction that should be adjusted relative to the - // device. For example, "input" would be the signal entering into the device - // from the far end device. - SignalDirection direction = 2; -} - -message AdjustPSDProgress { - enum State { - UNKNOWN = 0; - RUNNING = 1; // The PSD adjustment is running. - COMPLETE = 2; // The PSD adjustment completed successfully. - } - // The state of the OTDR trace requested. Note that this does not include - // error states as these should be returned as a gRPC error. - State state = 1; -} - -message AdjustPSDError { - enum Type { - // An unspecified error. Must use the detail value to describe the issue. - UNSPECIFIED = 0; - // An adjustment was requested for a port that is busy (e.g., requesting - // input adjustment for a port that is currently running an output - // adjustment) - PORT_BUSY = 1; - // The hardware has failed and cannot complete an adjustment. - HARDWARE_FAILURE = 2; - } - Type type = 1; - string detail = 2; -} - -// AdjustPSDResponse describes the possible response messages that will be -// streamed after the RPC is initiated. While the OTDR is running, -// "progress" messages should be sent at a regular interval. When the -// adjustment is completed, an "error" message should be streamed if an -// error is encountered or the RPC should be terminated on success. -message AdjustPSDResponse { - oneof response { - AdjustPSDProgress progress = 1; - AdjustPSDError error = 2; - } -} - -message CancelAdjustPSDResponse {} - message AdjustSpectrumRequest { // Absolute path to the /components/component list member in the OpenConfig // model corresponding to the port to perform the adjustment for. From acd7738491241cbadc0f7481115d7c0ca58fe163 Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 16:59:25 +0530 Subject: [PATCH 179/238] Revert "update version" This reverts commit 0f31bd880291285c8830c550fcdc46051f052815. --- wavelength_router/wavelength_router.pb.go | 68 +++++++++++------------ wavelength_router/wavelength_router.proto | 2 +- 2 files changed, 35 insertions(+), 35 deletions(-) diff --git a/wavelength_router/wavelength_router.pb.go b/wavelength_router/wavelength_router.pb.go index f5844eca..61ddf4a9 100644 --- a/wavelength_router/wavelength_router.pb.go +++ b/wavelength_router/wavelength_router.pb.go @@ -387,41 +387,41 @@ func init() { } var fileDescriptor_cb8b6c17dc3d7490 = []byte{ - // 543 bytes of a gzipped FileDescriptorProto + // 544 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0x5d, 0x6e, 0xd3, 0x40, - 0x10, 0xc7, 0xed, 0xaa, 0x69, 0x93, 0x49, 0x49, 0xcc, 0xf6, 0x43, 0x55, 0x85, 0x50, 0x31, 0x15, - 0x2a, 0x08, 0x6d, 0x22, 0xf7, 0x09, 0x84, 0x10, 0xf9, 0x70, 0x89, 0x45, 0x71, 0xcc, 0xda, 0x56, - 0xc4, 0x53, 0xe4, 0x3a, 0x8b, 0x63, 0x94, 0x78, 0xcd, 0x7a, 0x03, 0xea, 0x19, 0x38, 0x06, 0x0f, - 0xdc, 0x87, 0x03, 0x70, 0x05, 0xae, 0x80, 0xfc, 0xd1, 0x86, 0xb4, 0x51, 0xc8, 0x8b, 0xa5, 0x1d, - 0xcf, 0x7f, 0xe7, 0x37, 0xff, 0x9d, 0x81, 0xa7, 0xdf, 0xbc, 0xaf, 0x74, 0x42, 0xa3, 0x40, 0x8c, - 0x87, 0x9c, 0xcd, 0x04, 0xe5, 0x8d, 0x3b, 0x11, 0x1c, 0x73, 0x26, 0x18, 0xda, 0x09, 0x22, 0x16, - 0x62, 0x16, 0x8b, 0xd0, 0xf7, 0x26, 0x47, 0xcf, 0x83, 0x50, 0x8c, 0x67, 0x97, 0xd8, 0x67, 0xd3, - 0x06, 0x8b, 0x69, 0xe4, 0xb3, 0xe8, 0x53, 0x18, 0x34, 0xd2, 0x9c, 0x86, 0xb8, 0x8a, 0x69, 0x92, - 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, 0xb8, - 0xaa, 0x3d, 0x55, 0x6a, 0x97, 0x7f, 0xbd, 0x2e, 0x35, 0xb1, 0x86, 0x9b, 0x97, 0x5b, 0xd9, 0x86, - 0x9f, 0xfd, 0x0d, 0x00, 0x00, 0xff, 0xff, 0xd2, 0x22, 0x08, 0x5d, 0x4a, 0x04, 0x00, 0x00, + 0x10, 0xc7, 0xed, 0xa8, 0x69, 0x93, 0x49, 0x49, 0xcc, 0xf6, 0x43, 0x55, 0x85, 0x50, 0x31, 0x15, + 0x2a, 0x08, 0x6d, 0x42, 0xfa, 0x04, 0x42, 0x88, 0x7c, 0xb8, 0xc4, 0xa2, 0x38, 0x66, 0x6d, 0x2b, + 0xe2, 0x29, 0x72, 0x9d, 0xc5, 0x31, 0x4a, 0xbc, 0x66, 0xbd, 0x01, 0xf5, 0x0c, 0x1c, 0x83, 0x07, + 0xee, 0xc3, 0x01, 0xb8, 0x02, 0x57, 0x40, 0xfe, 0x68, 0x43, 0xda, 0x28, 0xcd, 0x8b, 0xa5, 0x1d, + 0xcf, 0x7f, 0xe7, 0x37, 0xff, 0x9d, 0x81, 0xa7, 0xdf, 0xdd, 0x6f, 0x74, 0x42, 0x43, 0x5f, 0x8c, + 0x87, 0x9c, 0xcd, 0x04, 0xe5, 0xf5, 0x5b, 0x11, 0x1c, 0x71, 0x26, 0x18, 0xda, 0xf6, 0x43, 0x16, + 0x60, 0x16, 0x89, 0xc0, 0x73, 0x27, 0x87, 0xcf, 0xfd, 0x40, 0x8c, 0x67, 0x17, 0xd8, 0x63, 0xd3, + 0x3a, 0x8b, 0x68, 0xe8, 0xb1, 0xf0, 0x73, 0xe0, 0xd7, 0x93, 0x9c, 0xba, 0xb8, 0x8c, 0x68, 0x9c, + 0x7d, 0x33, 0xad, 0xfa, 0x57, 0x86, 0xbd, 0xd6, 0xe8, 0xcb, 0x2c, 0x16, 0x56, 0x44, 0x3d, 0xc1, + 0x67, 0x53, 0x42, 0xbf, 0xce, 0x68, 0x2c, 0x10,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, 0xff, 0xff, 0xd3, 0x44, 0xea, 0xc4, 0x4a, 0x04, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. diff --git a/wavelength_router/wavelength_router.proto b/wavelength_router/wavelength_router.proto index 4426abf6..2140a130 100644 --- a/wavelength_router/wavelength_router.proto +++ b/wavelength_router/wavelength_router.proto @@ -20,7 +20,7 @@ package gnoi.optical; import "github.com/openconfig/gnoi/types/types.proto"; -option (types.gnoi_version) = "0.2.0"; +option (types.gnoi_version) = "0.1.0"; service WavelengthRouter { // AdjustSpectrum performs a spectrum power adjustment on an optical From a300ea16a1569343ff95ff4c46b80da9b490155b Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 16:59:26 +0530 Subject: [PATCH 180/238] Revert "psd to spectrum power units change" This reverts commit 438a167348b22426eb7fb04ce677ebed243d40d9. --- wavelength_router/wavelength_router.pb.go | 603 +++++++++------------- wavelength_router/wavelength_router.proto | 32 +- 2 files changed, 273 insertions(+), 362 deletions(-) diff --git a/wavelength_router/wavelength_router.pb.go b/wavelength_router/wavelength_router.pb.go index 61ddf4a9..20b1763f 100644 --- a/wavelength_router/wavelength_router.pb.go +++ b/wavelength_router/wavelength_router.pb.go @@ -1,17 +1,30 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. +// Code generated by protoc-gen-go. // source: wavelength_router/wavelength_router.proto +// DO NOT EDIT! +/* +Package gnoi_optical is a generated protocol buffer package. + +It is generated from these files: + wavelength_router/wavelength_router.proto + +It has these top-level messages: + AdjustPSDRequest + AdjustPSDProgress + AdjustPSDError + AdjustPSDResponse + CancelAdjustPSDResponse +*/ package gnoi_optical +import proto "github.com/golang/protobuf/proto" +import fmt "fmt" +import math "math" +import gnoi_types "github.com/openconfig/gnoi/types" + import ( - context "context" - fmt "fmt" - proto "github.com/golang/protobuf/proto" - types "github.com/openconfig/gnoi/types" + context "golang.org/x/net/context" grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - math "math" ) // Reference imports to suppress errors if they are not otherwise used. @@ -23,405 +36,274 @@ var _ = math.Inf // 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.ProtoPackageIsVersion3 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package -type AdjustSpectrumRequest_SignalDirection int32 +type AdjustPSDRequest_SignalDirection int32 const ( - AdjustSpectrumRequest_DIRECTION_UNKNOWN AdjustSpectrumRequest_SignalDirection = 0 - AdjustSpectrumRequest_DIRECTION_INPUT AdjustSpectrumRequest_SignalDirection = 1 - AdjustSpectrumRequest_DIRECTION_OUTPUT AdjustSpectrumRequest_SignalDirection = 2 + AdjustPSDRequest_DIRECTION_UNKNOWN AdjustPSDRequest_SignalDirection = 0 + AdjustPSDRequest_DIRECTION_INPUT AdjustPSDRequest_SignalDirection = 1 + AdjustPSDRequest_DIRECTION_OUTPUT AdjustPSDRequest_SignalDirection = 2 ) -var AdjustSpectrumRequest_SignalDirection_name = map[int32]string{ +var AdjustPSDRequest_SignalDirection_name = map[int32]string{ 0: "DIRECTION_UNKNOWN", 1: "DIRECTION_INPUT", 2: "DIRECTION_OUTPUT", } - -var AdjustSpectrumRequest_SignalDirection_value = map[string]int32{ +var AdjustPSDRequest_SignalDirection_value = map[string]int32{ "DIRECTION_UNKNOWN": 0, "DIRECTION_INPUT": 1, "DIRECTION_OUTPUT": 2, } -func (x AdjustSpectrumRequest_SignalDirection) String() string { - return proto.EnumName(AdjustSpectrumRequest_SignalDirection_name, int32(x)) +func (x AdjustPSDRequest_SignalDirection) String() string { + return proto.EnumName(AdjustPSDRequest_SignalDirection_name, int32(x)) } - -func (AdjustSpectrumRequest_SignalDirection) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_cb8b6c17dc3d7490, []int{0, 0} +func (AdjustPSDRequest_SignalDirection) EnumDescriptor() ([]byte, []int) { + return fileDescriptor0, []int{0, 0} } -type AdjustSpectrumProgress_State int32 +type AdjustPSDProgress_State int32 const ( - AdjustSpectrumProgress_UNKNOWN AdjustSpectrumProgress_State = 0 - AdjustSpectrumProgress_RUNNING AdjustSpectrumProgress_State = 1 - AdjustSpectrumProgress_COMPLETE AdjustSpectrumProgress_State = 2 + AdjustPSDProgress_UNKNOWN AdjustPSDProgress_State = 0 + AdjustPSDProgress_RUNNING AdjustPSDProgress_State = 1 + AdjustPSDProgress_COMPLETE AdjustPSDProgress_State = 2 ) -var AdjustSpectrumProgress_State_name = map[int32]string{ +var AdjustPSDProgress_State_name = map[int32]string{ 0: "UNKNOWN", 1: "RUNNING", 2: "COMPLETE", } - -var AdjustSpectrumProgress_State_value = map[string]int32{ +var AdjustPSDProgress_State_value = map[string]int32{ "UNKNOWN": 0, "RUNNING": 1, "COMPLETE": 2, } -func (x AdjustSpectrumProgress_State) String() string { - return proto.EnumName(AdjustSpectrumProgress_State_name, int32(x)) -} - -func (AdjustSpectrumProgress_State) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_cb8b6c17dc3d7490, []int{1, 0} +func (x AdjustPSDProgress_State) String() string { + return proto.EnumName(AdjustPSDProgress_State_name, int32(x)) } +func (AdjustPSDProgress_State) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{1, 0} } -type AdjustSpectrumError_Type int32 +type AdjustPSDError_Type int32 const ( // An unspecified error. Must use the detail value to describe the issue. - AdjustSpectrumError_UNSPECIFIED AdjustSpectrumError_Type = 0 + AdjustPSDError_UNSPECIFIED AdjustPSDError_Type = 0 // An adjustment was requested for a port that is busy (e.g., requesting // input adjustment for a port that is currently running an output // adjustment) - AdjustSpectrumError_PORT_BUSY AdjustSpectrumError_Type = 1 + AdjustPSDError_PORT_BUSY AdjustPSDError_Type = 1 // The hardware has failed and cannot complete an adjustment. - AdjustSpectrumError_HARDWARE_FAILURE AdjustSpectrumError_Type = 2 + AdjustPSDError_HARDWARE_FAILURE AdjustPSDError_Type = 2 ) -var AdjustSpectrumError_Type_name = map[int32]string{ +var AdjustPSDError_Type_name = map[int32]string{ 0: "UNSPECIFIED", 1: "PORT_BUSY", 2: "HARDWARE_FAILURE", } - -var AdjustSpectrumError_Type_value = map[string]int32{ +var AdjustPSDError_Type_value = map[string]int32{ "UNSPECIFIED": 0, "PORT_BUSY": 1, "HARDWARE_FAILURE": 2, } -func (x AdjustSpectrumError_Type) String() string { - return proto.EnumName(AdjustSpectrumError_Type_name, int32(x)) -} - -func (AdjustSpectrumError_Type) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_cb8b6c17dc3d7490, []int{2, 0} +func (x AdjustPSDError_Type) String() string { + return proto.EnumName(AdjustPSDError_Type_name, int32(x)) } +func (AdjustPSDError_Type) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{2, 0} } -type AdjustSpectrumRequest struct { +type AdjustPSDRequest struct { // Absolute path to the /components/component list member in the OpenConfig // model corresponding to the port to perform the adjustment for. // (e.g., /components/component[name=amp-1-1]) - Component *types.Path `protobuf:"bytes,1,opt,name=component,proto3" json:"component,omitempty"` + Component *gnoi_types.Path `protobuf:"bytes,1,opt,name=component" json:"component,omitempty"` // Describes the signal direction that should be adjusted relative to the // device. For example, "input" would be the signal entering into the device // from the far end device. - Direction AdjustSpectrumRequest_SignalDirection `protobuf:"varint,2,opt,name=direction,proto3,enum=gnoi.optical.AdjustSpectrumRequest_SignalDirection" json:"direction,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *AdjustSpectrumRequest) Reset() { *m = AdjustSpectrumRequest{} } -func (m *AdjustSpectrumRequest) String() string { return proto.CompactTextString(m) } -func (*AdjustSpectrumRequest) ProtoMessage() {} -func (*AdjustSpectrumRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_cb8b6c17dc3d7490, []int{0} -} - -func (m *AdjustSpectrumRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_AdjustSpectrumRequest.Unmarshal(m, b) -} -func (m *AdjustSpectrumRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_AdjustSpectrumRequest.Marshal(b, m, deterministic) -} -func (m *AdjustSpectrumRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_AdjustSpectrumRequest.Merge(m, src) -} -func (m *AdjustSpectrumRequest) XXX_Size() int { - return xxx_messageInfo_AdjustSpectrumRequest.Size(m) -} -func (m *AdjustSpectrumRequest) XXX_DiscardUnknown() { - xxx_messageInfo_AdjustSpectrumRequest.DiscardUnknown(m) + Direction AdjustPSDRequest_SignalDirection `protobuf:"varint,2,opt,name=direction,enum=gnoi.optical.AdjustPSDRequest_SignalDirection" json:"direction,omitempty"` } -var xxx_messageInfo_AdjustSpectrumRequest proto.InternalMessageInfo +func (m *AdjustPSDRequest) Reset() { *m = AdjustPSDRequest{} } +func (m *AdjustPSDRequest) String() string { return proto.CompactTextString(m) } +func (*AdjustPSDRequest) ProtoMessage() {} +func (*AdjustPSDRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } -func (m *AdjustSpectrumRequest) GetComponent() *types.Path { +func (m *AdjustPSDRequest) GetComponent() *gnoi_types.Path { if m != nil { return m.Component } return nil } -func (m *AdjustSpectrumRequest) GetDirection() AdjustSpectrumRequest_SignalDirection { - if m != nil { - return m.Direction - } - return AdjustSpectrumRequest_DIRECTION_UNKNOWN -} - -type AdjustSpectrumProgress struct { +type AdjustPSDProgress struct { // The state of the OTDR trace requested. Note that this does not include // error states as these should be returned as a gRPC error. - State AdjustSpectrumProgress_State `protobuf:"varint,1,opt,name=state,proto3,enum=gnoi.optical.AdjustSpectrumProgress_State" json:"state,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *AdjustSpectrumProgress) Reset() { *m = AdjustSpectrumProgress{} } -func (m *AdjustSpectrumProgress) String() string { return proto.CompactTextString(m) } -func (*AdjustSpectrumProgress) ProtoMessage() {} -func (*AdjustSpectrumProgress) Descriptor() ([]byte, []int) { - return fileDescriptor_cb8b6c17dc3d7490, []int{1} -} - -func (m *AdjustSpectrumProgress) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_AdjustSpectrumProgress.Unmarshal(m, b) -} -func (m *AdjustSpectrumProgress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_AdjustSpectrumProgress.Marshal(b, m, deterministic) -} -func (m *AdjustSpectrumProgress) XXX_Merge(src proto.Message) { - xxx_messageInfo_AdjustSpectrumProgress.Merge(m, src) -} -func (m *AdjustSpectrumProgress) XXX_Size() int { - return xxx_messageInfo_AdjustSpectrumProgress.Size(m) + State AdjustPSDProgress_State `protobuf:"varint,1,opt,name=state,enum=gnoi.optical.AdjustPSDProgress_State" json:"state,omitempty"` } -func (m *AdjustSpectrumProgress) XXX_DiscardUnknown() { - xxx_messageInfo_AdjustSpectrumProgress.DiscardUnknown(m) -} - -var xxx_messageInfo_AdjustSpectrumProgress proto.InternalMessageInfo -func (m *AdjustSpectrumProgress) GetState() AdjustSpectrumProgress_State { - if m != nil { - return m.State - } - return AdjustSpectrumProgress_UNKNOWN -} +func (m *AdjustPSDProgress) Reset() { *m = AdjustPSDProgress{} } +func (m *AdjustPSDProgress) String() string { return proto.CompactTextString(m) } +func (*AdjustPSDProgress) ProtoMessage() {} +func (*AdjustPSDProgress) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } -type AdjustSpectrumError struct { - Type AdjustSpectrumError_Type `protobuf:"varint,1,opt,name=type,proto3,enum=gnoi.optical.AdjustSpectrumError_Type" json:"type,omitempty"` - Detail string `protobuf:"bytes,2,opt,name=detail,proto3" json:"detail,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type AdjustPSDError struct { + Type AdjustPSDError_Type `protobuf:"varint,1,opt,name=type,enum=gnoi.optical.AdjustPSDError_Type" json:"type,omitempty"` + Detail string `protobuf:"bytes,2,opt,name=detail" json:"detail,omitempty"` } -func (m *AdjustSpectrumError) Reset() { *m = AdjustSpectrumError{} } -func (m *AdjustSpectrumError) String() string { return proto.CompactTextString(m) } -func (*AdjustSpectrumError) ProtoMessage() {} -func (*AdjustSpectrumError) Descriptor() ([]byte, []int) { - return fileDescriptor_cb8b6c17dc3d7490, []int{2} -} +func (m *AdjustPSDError) Reset() { *m = AdjustPSDError{} } +func (m *AdjustPSDError) String() string { return proto.CompactTextString(m) } +func (*AdjustPSDError) ProtoMessage() {} +func (*AdjustPSDError) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} } -func (m *AdjustSpectrumError) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_AdjustSpectrumError.Unmarshal(m, b) -} -func (m *AdjustSpectrumError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_AdjustSpectrumError.Marshal(b, m, deterministic) -} -func (m *AdjustSpectrumError) XXX_Merge(src proto.Message) { - xxx_messageInfo_AdjustSpectrumError.Merge(m, src) -} -func (m *AdjustSpectrumError) XXX_Size() int { - return xxx_messageInfo_AdjustSpectrumError.Size(m) -} -func (m *AdjustSpectrumError) XXX_DiscardUnknown() { - xxx_messageInfo_AdjustSpectrumError.DiscardUnknown(m) -} - -var xxx_messageInfo_AdjustSpectrumError proto.InternalMessageInfo - -func (m *AdjustSpectrumError) GetType() AdjustSpectrumError_Type { - if m != nil { - return m.Type - } - return AdjustSpectrumError_UNSPECIFIED -} - -func (m *AdjustSpectrumError) GetDetail() string { - if m != nil { - return m.Detail - } - return "" -} - -// AdjustSpectrumResponse describes the possible response messages that will be +// AdjustPSDResponse describes the possible response messages that will be // streamed after the RPC is initiated. While the OTDR is running, // "progress" messages should be sent at a regular interval. When the // adjustment is completed, an "error" message should be streamed if an // error is encountered or the RPC should be terminated on success. -type AdjustSpectrumResponse struct { +type AdjustPSDResponse struct { // Types that are valid to be assigned to Response: - // *AdjustSpectrumResponse_Progress - // *AdjustSpectrumResponse_Error - Response isAdjustSpectrumResponse_Response `protobuf_oneof:"response"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *AdjustSpectrumResponse) Reset() { *m = AdjustSpectrumResponse{} } -func (m *AdjustSpectrumResponse) String() string { return proto.CompactTextString(m) } -func (*AdjustSpectrumResponse) ProtoMessage() {} -func (*AdjustSpectrumResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_cb8b6c17dc3d7490, []int{3} -} - -func (m *AdjustSpectrumResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_AdjustSpectrumResponse.Unmarshal(m, b) -} -func (m *AdjustSpectrumResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_AdjustSpectrumResponse.Marshal(b, m, deterministic) -} -func (m *AdjustSpectrumResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_AdjustSpectrumResponse.Merge(m, src) -} -func (m *AdjustSpectrumResponse) XXX_Size() int { - return xxx_messageInfo_AdjustSpectrumResponse.Size(m) -} -func (m *AdjustSpectrumResponse) XXX_DiscardUnknown() { - xxx_messageInfo_AdjustSpectrumResponse.DiscardUnknown(m) + // *AdjustPSDResponse_Progress + // *AdjustPSDResponse_Error + Response isAdjustPSDResponse_Response `protobuf_oneof:"response"` } -var xxx_messageInfo_AdjustSpectrumResponse proto.InternalMessageInfo +func (m *AdjustPSDResponse) Reset() { *m = AdjustPSDResponse{} } +func (m *AdjustPSDResponse) String() string { return proto.CompactTextString(m) } +func (*AdjustPSDResponse) ProtoMessage() {} +func (*AdjustPSDResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} } -type isAdjustSpectrumResponse_Response interface { - isAdjustSpectrumResponse_Response() +type isAdjustPSDResponse_Response interface { + isAdjustPSDResponse_Response() } -type AdjustSpectrumResponse_Progress struct { - Progress *AdjustSpectrumProgress `protobuf:"bytes,1,opt,name=progress,proto3,oneof"` +type AdjustPSDResponse_Progress struct { + Progress *AdjustPSDProgress `protobuf:"bytes,1,opt,name=progress,oneof"` } - -type AdjustSpectrumResponse_Error struct { - Error *AdjustSpectrumError `protobuf:"bytes,2,opt,name=error,proto3,oneof"` +type AdjustPSDResponse_Error struct { + Error *AdjustPSDError `protobuf:"bytes,2,opt,name=error,oneof"` } -func (*AdjustSpectrumResponse_Progress) isAdjustSpectrumResponse_Response() {} +func (*AdjustPSDResponse_Progress) isAdjustPSDResponse_Response() {} +func (*AdjustPSDResponse_Error) isAdjustPSDResponse_Response() {} -func (*AdjustSpectrumResponse_Error) isAdjustSpectrumResponse_Response() {} - -func (m *AdjustSpectrumResponse) GetResponse() isAdjustSpectrumResponse_Response { +func (m *AdjustPSDResponse) GetResponse() isAdjustPSDResponse_Response { if m != nil { return m.Response } return nil } -func (m *AdjustSpectrumResponse) GetProgress() *AdjustSpectrumProgress { - if x, ok := m.GetResponse().(*AdjustSpectrumResponse_Progress); ok { +func (m *AdjustPSDResponse) GetProgress() *AdjustPSDProgress { + if x, ok := m.GetResponse().(*AdjustPSDResponse_Progress); ok { return x.Progress } return nil } -func (m *AdjustSpectrumResponse) GetError() *AdjustSpectrumError { - if x, ok := m.GetResponse().(*AdjustSpectrumResponse_Error); ok { +func (m *AdjustPSDResponse) GetError() *AdjustPSDError { + if x, ok := m.GetResponse().(*AdjustPSDResponse_Error); ok { return x.Error } return nil } -// XXX_OneofWrappers is for the internal use of the proto package. -func (*AdjustSpectrumResponse) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*AdjustSpectrumResponse_Progress)(nil), - (*AdjustSpectrumResponse_Error)(nil), +// XXX_OneofFuncs is for the internal use of the proto package. +func (*AdjustPSDResponse) 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 _AdjustPSDResponse_OneofMarshaler, _AdjustPSDResponse_OneofUnmarshaler, _AdjustPSDResponse_OneofSizer, []interface{}{ + (*AdjustPSDResponse_Progress)(nil), + (*AdjustPSDResponse_Error)(nil), } } -type CancelAdjustSpectrumResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func _AdjustPSDResponse_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*AdjustPSDResponse) + // response + switch x := m.Response.(type) { + case *AdjustPSDResponse_Progress: + b.EncodeVarint(1<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Progress); err != nil { + return err + } + case *AdjustPSDResponse_Error: + b.EncodeVarint(2<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Error); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("AdjustPSDResponse.Response has unexpected type %T", x) + } + return nil } -func (m *CancelAdjustSpectrumResponse) Reset() { *m = CancelAdjustSpectrumResponse{} } -func (m *CancelAdjustSpectrumResponse) String() string { return proto.CompactTextString(m) } -func (*CancelAdjustSpectrumResponse) ProtoMessage() {} -func (*CancelAdjustSpectrumResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_cb8b6c17dc3d7490, []int{4} +func _AdjustPSDResponse_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*AdjustPSDResponse) + switch tag { + case 1: // response.progress + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(AdjustPSDProgress) + err := b.DecodeMessage(msg) + m.Response = &AdjustPSDResponse_Progress{msg} + return true, err + case 2: // response.error + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(AdjustPSDError) + err := b.DecodeMessage(msg) + m.Response = &AdjustPSDResponse_Error{msg} + return true, err + default: + return false, nil + } } -func (m *CancelAdjustSpectrumResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CancelAdjustSpectrumResponse.Unmarshal(m, b) -} -func (m *CancelAdjustSpectrumResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CancelAdjustSpectrumResponse.Marshal(b, m, deterministic) -} -func (m *CancelAdjustSpectrumResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_CancelAdjustSpectrumResponse.Merge(m, src) -} -func (m *CancelAdjustSpectrumResponse) XXX_Size() int { - return xxx_messageInfo_CancelAdjustSpectrumResponse.Size(m) -} -func (m *CancelAdjustSpectrumResponse) XXX_DiscardUnknown() { - xxx_messageInfo_CancelAdjustSpectrumResponse.DiscardUnknown(m) +func _AdjustPSDResponse_OneofSizer(msg proto.Message) (n int) { + m := msg.(*AdjustPSDResponse) + // response + switch x := m.Response.(type) { + case *AdjustPSDResponse_Progress: + s := proto.Size(x.Progress) + n += proto.SizeVarint(1<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(s)) + n += s + case *AdjustPSDResponse_Error: + s := proto.Size(x.Error) + n += proto.SizeVarint(2<<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 } -var xxx_messageInfo_CancelAdjustSpectrumResponse proto.InternalMessageInfo - -func init() { - proto.RegisterEnum("gnoi.optical.AdjustSpectrumRequest_SignalDirection", AdjustSpectrumRequest_SignalDirection_name, AdjustSpectrumRequest_SignalDirection_value) - proto.RegisterEnum("gnoi.optical.AdjustSpectrumProgress_State", AdjustSpectrumProgress_State_name, AdjustSpectrumProgress_State_value) - proto.RegisterEnum("gnoi.optical.AdjustSpectrumError_Type", AdjustSpectrumError_Type_name, AdjustSpectrumError_Type_value) - proto.RegisterType((*AdjustSpectrumRequest)(nil), "gnoi.optical.AdjustSpectrumRequest") - proto.RegisterType((*AdjustSpectrumProgress)(nil), "gnoi.optical.AdjustSpectrumProgress") - proto.RegisterType((*AdjustSpectrumError)(nil), "gnoi.optical.AdjustSpectrumError") - proto.RegisterType((*AdjustSpectrumResponse)(nil), "gnoi.optical.AdjustSpectrumResponse") - proto.RegisterType((*CancelAdjustSpectrumResponse)(nil), "gnoi.optical.CancelAdjustSpectrumResponse") +type CancelAdjustPSDResponse struct { } +func (m *CancelAdjustPSDResponse) Reset() { *m = CancelAdjustPSDResponse{} } +func (m *CancelAdjustPSDResponse) String() string { return proto.CompactTextString(m) } +func (*CancelAdjustPSDResponse) ProtoMessage() {} +func (*CancelAdjustPSDResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} } + func init() { - proto.RegisterFile("wavelength_router/wavelength_router.proto", fileDescriptor_cb8b6c17dc3d7490) -} - -var fileDescriptor_cb8b6c17dc3d7490 = []byte{ - // 544 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0x5d, 0x6e, 0xd3, 0x40, - 0x10, 0xc7, 0xed, 0xa8, 0x69, 0x93, 0x49, 0x49, 0xcc, 0xf6, 0x43, 0x55, 0x85, 0x50, 0x31, 0x15, - 0x2a, 0x08, 0x6d, 0x42, 0xfa, 0x04, 0x42, 0x88, 0x7c, 0xb8, 0xc4, 0xa2, 0x38, 0x66, 0x6d, 0x2b, - 0xe2, 0x29, 0x72, 0x9d, 0xc5, 0x31, 0x4a, 0xbc, 0x66, 0xbd, 0x01, 0xf5, 0x0c, 0x1c, 0x83, 0x07, - 0xee, 0xc3, 0x01, 0xb8, 0x02, 0x57, 0x40, 0xfe, 0x68, 0x43, 0xda, 0x28, 0xcd, 0x8b, 0xa5, 0x1d, - 0xcf, 0x7f, 0xe7, 0x37, 0xff, 0x9d, 0x81, 0xa7, 0xdf, 0xdd, 0x6f, 0x74, 0x42, 0x43, 0x5f, 0x8c, - 0x87, 0x9c, 0xcd, 0x04, 0xe5, 0xf5, 0x5b, 0x11, 0x1c, 0x71, 0x26, 0x18, 0xda, 0xf6, 0x43, 0x16, - 0x60, 0x16, 0x89, 0xc0, 0x73, 0x27, 0x87, 0xcf, 0xfd, 0x40,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x74, 0xf4, 0x78, 0x8d, 0xc9, 0x3d, 0x3c, 0x5e, - 0x9d, 0x94, 0x13, 0x49, 0x0d, 0x19, 0x05, 0xb0, 0xbb, 0x8c, 0x6a, 0xbd, 0x32, 0x37, 0xc6, 0x70, - 0x55, 0x7b, 0xaa, 0xd4, 0x2e, 0xfd, 0x7e, 0x53, 0x6c, 0xe0, 0x17, 0xb8, 0x71, 0xb1, 0x99, 0x6e, - 0xf8, 0xe9, 0xbf, 0x00, 0x00, 0x00, 0xff, 0xff, 0xd3, 0x44, 0xea, 0xc4, 0x4a, 0x04, 0x00, 0x00, + proto.RegisterType((*AdjustPSDRequest)(nil), "gnoi.optical.AdjustPSDRequest") + proto.RegisterType((*AdjustPSDProgress)(nil), "gnoi.optical.AdjustPSDProgress") + proto.RegisterType((*AdjustPSDError)(nil), "gnoi.optical.AdjustPSDError") + proto.RegisterType((*AdjustPSDResponse)(nil), "gnoi.optical.AdjustPSDResponse") + proto.RegisterType((*CancelAdjustPSDResponse)(nil), "gnoi.optical.CancelAdjustPSDResponse") + proto.RegisterEnum("gnoi.optical.AdjustPSDRequest_SignalDirection", AdjustPSDRequest_SignalDirection_name, AdjustPSDRequest_SignalDirection_value) + proto.RegisterEnum("gnoi.optical.AdjustPSDProgress_State", AdjustPSDProgress_State_name, AdjustPSDProgress_State_value) + proto.RegisterEnum("gnoi.optical.AdjustPSDError_Type", AdjustPSDError_Type_name, AdjustPSDError_Type_value) } // Reference imports to suppress errors if they are not otherwise used. @@ -430,13 +312,12 @@ var _ grpc.ClientConn // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 +const _ = grpc.SupportPackageIsVersion3 + +// Client API for WavelengthRouter service -// WavelengthRouterClient is the client API for WavelengthRouter service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type WavelengthRouterClient interface { - // AdjustSpectrum performs a spectrum power adjustment on an optical + // AdjustPSD performs a power spectral density (PSD) adjustment on an optical // DWDM line system port. // // This RPC's initial message triggers adjustments. The target should validate @@ -447,13 +328,13 @@ type WavelengthRouterClient interface { // the initiating client. A client that becomes disconnected during an // operation can reconnect, requesting the same operation, and receive status // updates this way. There is no means by which an adjustment that has been - // triggered by a client can be cancelled unless the CancelAdjustSpectrum - // RPC is used. - AdjustSpectrum(ctx context.Context, in *AdjustSpectrumRequest, opts ...grpc.CallOption) (WavelengthRouter_AdjustSpectrumClient, error) - // CancelAdjustSpectrum cancels an in-progress AdjustSpectrum request. If an + // triggered by a client can be cancelled unless the CancelAdjustPSD RPC is + // used. + AdjustPSD(ctx context.Context, in *AdjustPSDRequest, opts ...grpc.CallOption) (WavelengthRouter_AdjustPSDClient, error) + // CancelAdjustPSD cancels an in-progress AdjustPSD request. If an // adjustment is not being performed for the provided request, then the RPC // should return successfully. - CancelAdjustSpectrum(ctx context.Context, in *AdjustSpectrumRequest, opts ...grpc.CallOption) (*CancelAdjustSpectrumResponse, error) + CancelAdjustPSD(ctx context.Context, in *AdjustPSDRequest, opts ...grpc.CallOption) (*CancelAdjustPSDResponse, error) } type wavelengthRouterClient struct { @@ -464,12 +345,12 @@ func NewWavelengthRouterClient(cc *grpc.ClientConn) WavelengthRouterClient { return &wavelengthRouterClient{cc} } -func (c *wavelengthRouterClient) AdjustSpectrum(ctx context.Context, in *AdjustSpectrumRequest, opts ...grpc.CallOption) (WavelengthRouter_AdjustSpectrumClient, error) { - stream, err := c.cc.NewStream(ctx, &_WavelengthRouter_serviceDesc.Streams[0], "/gnoi.optical.WavelengthRouter/AdjustSpectrum", opts...) +func (c *wavelengthRouterClient) AdjustPSD(ctx context.Context, in *AdjustPSDRequest, opts ...grpc.CallOption) (WavelengthRouter_AdjustPSDClient, error) { + stream, err := grpc.NewClientStream(ctx, &_WavelengthRouter_serviceDesc.Streams[0], c.cc, "/gnoi.optical.WavelengthRouter/AdjustPSD", opts...) if err != nil { return nil, err } - x := &wavelengthRouterAdjustSpectrumClient{stream} + x := &wavelengthRouterAdjustPSDClient{stream} if err := x.ClientStream.SendMsg(in); err != nil { return nil, err } @@ -479,35 +360,36 @@ func (c *wavelengthRouterClient) AdjustSpectrum(ctx context.Context, in *AdjustS return x, nil } -type WavelengthRouter_AdjustSpectrumClient interface { - Recv() (*AdjustSpectrumResponse, error) +type WavelengthRouter_AdjustPSDClient interface { + Recv() (*AdjustPSDResponse, error) grpc.ClientStream } -type wavelengthRouterAdjustSpectrumClient struct { +type wavelengthRouterAdjustPSDClient struct { grpc.ClientStream } -func (x *wavelengthRouterAdjustSpectrumClient) Recv() (*AdjustSpectrumResponse, error) { - m := new(AdjustSpectrumResponse) +func (x *wavelengthRouterAdjustPSDClient) Recv() (*AdjustPSDResponse, error) { + m := new(AdjustPSDResponse) if err := x.ClientStream.RecvMsg(m); err != nil { return nil, err } return m, nil } -func (c *wavelengthRouterClient) CancelAdjustSpectrum(ctx context.Context, in *AdjustSpectrumRequest, opts ...grpc.CallOption) (*CancelAdjustSpectrumResponse, error) { - out := new(CancelAdjustSpectrumResponse) - err := c.cc.Invoke(ctx, "/gnoi.optical.WavelengthRouter/CancelAdjustSpectrum", in, out, opts...) +func (c *wavelengthRouterClient) CancelAdjustPSD(ctx context.Context, in *AdjustPSDRequest, opts ...grpc.CallOption) (*CancelAdjustPSDResponse, error) { + out := new(CancelAdjustPSDResponse) + err := grpc.Invoke(ctx, "/gnoi.optical.WavelengthRouter/CancelAdjustPSD", in, out, c.cc, opts...) if err != nil { return nil, err } return out, nil } -// WavelengthRouterServer is the server API for WavelengthRouter service. +// Server API for WavelengthRouter service + type WavelengthRouterServer interface { - // AdjustSpectrum performs a spectrum power adjustment on an optical + // AdjustPSD performs a power spectral density (PSD) adjustment on an optical // DWDM line system port. // // This RPC's initial message triggers adjustments. The target should validate @@ -518,65 +400,54 @@ type WavelengthRouterServer interface { // the initiating client. A client that becomes disconnected during an // operation can reconnect, requesting the same operation, and receive status // updates this way. There is no means by which an adjustment that has been - // triggered by a client can be cancelled unless the CancelAdjustSpectrum - // RPC is used. - AdjustSpectrum(*AdjustSpectrumRequest, WavelengthRouter_AdjustSpectrumServer) error - // CancelAdjustSpectrum cancels an in-progress AdjustSpectrum request. If an + // triggered by a client can be cancelled unless the CancelAdjustPSD RPC is + // used. + AdjustPSD(*AdjustPSDRequest, WavelengthRouter_AdjustPSDServer) error + // CancelAdjustPSD cancels an in-progress AdjustPSD request. If an // adjustment is not being performed for the provided request, then the RPC // should return successfully. - CancelAdjustSpectrum(context.Context, *AdjustSpectrumRequest) (*CancelAdjustSpectrumResponse, error) -} - -// UnimplementedWavelengthRouterServer can be embedded to have forward compatible implementations. -type UnimplementedWavelengthRouterServer struct { -} - -func (*UnimplementedWavelengthRouterServer) AdjustSpectrum(req *AdjustSpectrumRequest, srv WavelengthRouter_AdjustSpectrumServer) error { - return status.Errorf(codes.Unimplemented, "method AdjustSpectrum not implemented") -} -func (*UnimplementedWavelengthRouterServer) CancelAdjustSpectrum(ctx context.Context, req *AdjustSpectrumRequest) (*CancelAdjustSpectrumResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CancelAdjustSpectrum not implemented") + CancelAdjustPSD(context.Context, *AdjustPSDRequest) (*CancelAdjustPSDResponse, error) } func RegisterWavelengthRouterServer(s *grpc.Server, srv WavelengthRouterServer) { s.RegisterService(&_WavelengthRouter_serviceDesc, srv) } -func _WavelengthRouter_AdjustSpectrum_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(AdjustSpectrumRequest) +func _WavelengthRouter_AdjustPSD_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(AdjustPSDRequest) if err := stream.RecvMsg(m); err != nil { return err } - return srv.(WavelengthRouterServer).AdjustSpectrum(m, &wavelengthRouterAdjustSpectrumServer{stream}) + return srv.(WavelengthRouterServer).AdjustPSD(m, &wavelengthRouterAdjustPSDServer{stream}) } -type WavelengthRouter_AdjustSpectrumServer interface { - Send(*AdjustSpectrumResponse) error +type WavelengthRouter_AdjustPSDServer interface { + Send(*AdjustPSDResponse) error grpc.ServerStream } -type wavelengthRouterAdjustSpectrumServer struct { +type wavelengthRouterAdjustPSDServer struct { grpc.ServerStream } -func (x *wavelengthRouterAdjustSpectrumServer) Send(m *AdjustSpectrumResponse) error { +func (x *wavelengthRouterAdjustPSDServer) Send(m *AdjustPSDResponse) error { return x.ServerStream.SendMsg(m) } -func _WavelengthRouter_CancelAdjustSpectrum_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(AdjustSpectrumRequest) +func _WavelengthRouter_CancelAdjustPSD_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AdjustPSDRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(WavelengthRouterServer).CancelAdjustSpectrum(ctx, in) + return srv.(WavelengthRouterServer).CancelAdjustPSD(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/gnoi.optical.WavelengthRouter/CancelAdjustSpectrum", + FullMethod: "/gnoi.optical.WavelengthRouter/CancelAdjustPSD", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(WavelengthRouterServer).CancelAdjustSpectrum(ctx, req.(*AdjustSpectrumRequest)) + return srv.(WavelengthRouterServer).CancelAdjustPSD(ctx, req.(*AdjustPSDRequest)) } return interceptor(ctx, in, info, handler) } @@ -586,16 +457,56 @@ var _WavelengthRouter_serviceDesc = grpc.ServiceDesc{ HandlerType: (*WavelengthRouterServer)(nil), Methods: []grpc.MethodDesc{ { - MethodName: "CancelAdjustSpectrum", - Handler: _WavelengthRouter_CancelAdjustSpectrum_Handler, + MethodName: "CancelAdjustPSD", + Handler: _WavelengthRouter_CancelAdjustPSD_Handler, }, }, Streams: []grpc.StreamDesc{ { - StreamName: "AdjustSpectrum", - Handler: _WavelengthRouter_AdjustSpectrum_Handler, + StreamName: "AdjustPSD", + Handler: _WavelengthRouter_AdjustPSD_Handler, ServerStreams: true, }, }, - Metadata: "wavelength_router/wavelength_router.proto", + Metadata: fileDescriptor0, +} + +func init() { proto.RegisterFile("wavelength_router/wavelength_router.proto", fileDescriptor0) } + +var fileDescriptor0 = []byte{ + // 537 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x84, 0x93, 0xdb, 0x6e, 0xd3, 0x40, + 0x10, 0x86, 0xed, 0xa8, 0x69, 0x93, 0x49, 0x49, 0xdc, 0xe5, 0x54, 0x2a, 0x44, 0x8b, 0x25, 0xa4, + 0x22, 0xa1, 0x4d, 0x08, 0x70, 0xc5, 0x41, 0xca, 0xc1, 0x25, 0x16, 0xc1, 0xb1, 0xd6, 0xb6, 0x22, + 0xb8, 0x89, 0x5c, 0x67, 0x71, 0x8c, 0xd2, 0x5d, 0xb3, 0xde, 0x80, 0x7a, 0xc9, 0x3b, 0x70, 0xcb, + 0xbb, 0xf0, 0x0c, 0xbc, 0x03, 0xef, 0x81, 0x7c, 0x68, 0x52, 0xa5, 0x4a, 0x7b, 0x63, 0xc9, 0xb3, + 0xff, 0xcc, 0x7c, 0xf3, 0x6b, 0x06, 0x9e, 0xfe, 0xf0, 0xbf, 0xd3, 0x39, 0x65, 0xa1, 0x9c, 0x4d, + 0x04, 0x5f, 0x48, 0x2a, 0x9a, 0x57, 0x22, 0x38, 0x16, 0x5c, 0x72, 0xb4, 0x1b, 0x32, 0x1e, 0x61, + 0x1e, 0xcb, 0x28, 0xf0, 0xe7, 0x07, 0xcf, 0xc2, 0x48, 0xce, 0x16, 0xa7, 0x38, 0xe0, 0x67, 0x4d, + 0x1e, 0x53, 0x16, 0x70, 0xf6, 0x25, 0x0a, 0x9b, 0xa9, 0xa6, 0x29, 0xcf, 0x63, 0x9a, 0xe4, 0xdf, + 0x3c, 0x57, 0xff, 0xa7, 0x82, 0xd6, 0x99, 0x7e, 0x5d, 0x24, 0xd2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a, 0xdd, 0xce, 0x2e, 0xf2, 0xc5, 0xff, 0x00, 0x00, 0x00, 0xff, + 0xff, 0xa0, 0xb1, 0x54, 0x93, 0xfa, 0x03, 0x00, 0x00, } diff --git a/wavelength_router/wavelength_router.proto b/wavelength_router/wavelength_router.proto index 2140a130..63c68f71 100644 --- a/wavelength_router/wavelength_router.proto +++ b/wavelength_router/wavelength_router.proto @@ -23,7 +23,7 @@ import "github.com/openconfig/gnoi/types/types.proto"; option (types.gnoi_version) = "0.1.0"; service WavelengthRouter { - // AdjustSpectrum performs a spectrum power adjustment on an optical + // AdjustPSD performs a power spectral density (PSD) adjustment on an optical // DWDM line system port. // // This RPC's initial message triggers adjustments. The target should validate @@ -34,17 +34,17 @@ service WavelengthRouter { // the initiating client. A client that becomes disconnected during an // operation can reconnect, requesting the same operation, and receive status // updates this way. There is no means by which an adjustment that has been - // triggered by a client can be cancelled unless the CancelAdjustSpectrum - // RPC is used. - rpc AdjustSpectrum(AdjustSpectrumRequest) returns (stream AdjustSpectrumResponse) {} + // triggered by a client can be cancelled unless the CancelAdjustPSD RPC is + // used. + rpc AdjustPSD(AdjustPSDRequest) returns (stream AdjustPSDResponse) {} - // CancelAdjustSpectrum cancels an in-progress AdjustSpectrum request. If an + // CancelAdjustPSD cancels an in-progress AdjustPSD request. If an // adjustment is not being performed for the provided request, then the RPC // should return successfully. - rpc CancelAdjustSpectrum(AdjustSpectrumRequest) returns (CancelAdjustSpectrumResponse) {} + rpc CancelAdjustPSD(AdjustPSDRequest) returns (CancelAdjustPSDResponse) {} } -message AdjustSpectrumRequest { +message AdjustPSDRequest { // Absolute path to the /components/component list member in the OpenConfig // model corresponding to the port to perform the adjustment for. // (e.g., /components/component[name=amp-1-1]) @@ -61,18 +61,18 @@ message AdjustSpectrumRequest { SignalDirection direction = 2; } -message AdjustSpectrumProgress { +message AdjustPSDProgress { enum State { UNKNOWN = 0; - RUNNING = 1; // The spectrum adjustment is running. - COMPLETE = 2; // The spectrum adjustment completed successfully. + RUNNING = 1; // The PSD adjustment is running. + COMPLETE = 2; // The PSD adjustment completed successfully. } // The state of the OTDR trace requested. Note that this does not include // error states as these should be returned as a gRPC error. State state = 1; } -message AdjustSpectrumError { +message AdjustPSDError { enum Type { // An unspecified error. Must use the detail value to describe the issue. UNSPECIFIED = 0; @@ -87,17 +87,17 @@ message AdjustSpectrumError { string detail = 2; } -// AdjustSpectrumResponse describes the possible response messages that will be +// AdjustPSDResponse describes the possible response messages that will be // streamed after the RPC is initiated. While the OTDR is running, // "progress" messages should be sent at a regular interval. When the // adjustment is completed, an "error" message should be streamed if an // error is encountered or the RPC should be terminated on success. -message AdjustSpectrumResponse { +message AdjustPSDResponse { oneof response { - AdjustSpectrumProgress progress = 1; - AdjustSpectrumError error = 2; + AdjustPSDProgress progress = 1; + AdjustPSDError error = 2; } } -message CancelAdjustSpectrumResponse {} +message CancelAdjustPSDResponse {} From 85e84a18b7eb025c28460d03417740a82f48a639 Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 16:59:27 +0530 Subject: [PATCH 181/238] Revert "Clarify switchover impact" This reverts commit 9d7b6e2175657c50aef25d71be3e281d3f74208e. --- os/os.proto | 2 -- 1 file changed, 2 deletions(-) diff --git a/os/os.proto b/os/os.proto index 04fc5992..dc1a47e0 100644 --- a/os/os.proto +++ b/os/os.proto @@ -268,8 +268,6 @@ message ActivateResponse { // requested in ActivateRequest then it replies with ActivateOK and proceeds to // boot. In a Target with dual Supervisor, performing this RPC on the Active // Supervisor triggers a switchover before booting the (old)Active Supervisor. -// The Target should always perform a switchover with the least impact possible -// to forwarding. message ActivateOK {} message ActivateError { From 2711a149d66bfb136d0fc1af39bf10d3f714f6c3 Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 16:59:27 +0530 Subject: [PATCH 182/238] Revert "Better clarification on some text" This reverts commit fb58cc949e9ef05b84452d5ba5a7d3988647ef93. --- os/os.proto | 49 +++++++++++++++++++++++-------------------------- 1 file changed, 23 insertions(+), 26 deletions(-) diff --git a/os/os.proto b/os/os.proto index dc1a47e0..ecf0f101 100644 --- a/os/os.proto +++ b/os/os.proto @@ -20,23 +20,22 @@ option (types.gnoi_version) = "0.1.0"; // firmware of specific components, eg., power supply units, etc.. In addition, // platforms may have processes to apply patches to the running OS. Handling // these exceptions introduces extra complexities. For Targets that implement -// this service, component firmware upgrade or OS patching MUST be embedded +// this service, component firmware upgrade or OS patching must be embedded // within an OS upgrade. service OS { // Install transfers an OS package into the Target. No concurrent Install RPCs - // MUST be allowed to the same Target. + // must be allowed to the same Target. // - // The OS package file format is platform dependent. The platform MUST + // The OS package file format is platform dependent. The platform must // validate that the OS package that is supplied is valid and bootable. This - // SHOULD include a hash check against a known good hash. It is recommended + // should include a hash check against a known good hash. It is recommended // that the hash is embedded in the OS package. // // The Target manages its own persistent storage, and OS installation process. // It stores a set of distinct OS packages, and always proactively frees up // space for incoming new OS packages. It is guaranteed that the Target always // has enough space for a valid incoming OS package. The currently running OS - // packages MUST never be removed. The Client MUST expect that the last - // successfully installed package is available. + // packages must never be removed. // // The Install RPC allows the Client to specify the OS package version. If // the Target already has an OS package with the same version then there is no @@ -66,14 +65,14 @@ service OS { // Service. The Install RPC applies to the Active Supervisor unless // InstallRequest->TransferRequest->standby_supervisor is set, in which case // it applies to the Standby Supervisor. One Install RPC is required for each - // Supervisor. The Supervisor order of package installation MUST not be fixed. + // Supervisor. // // The Target MUST always attempt to copy the OS package between Supervisors // first before accepting the transfer from the Client. The syncing progress // is reported to the client with InstallResponse->SyncProgress messages. // - // If a switchover is triggered during the Install RPC, the RPC MUST - // immediately abort with Error->type->UNEXPECTED_SWITCHOVER. + // If a switchover is triggered by an external event during the Install RPC, + // the RPC MUST immediately abort with Error->type->UNEXPECTED_SWITCHOVER. // // Scenario 3 - When both Supervisors already have the OS package, regardless // of the value in Start.standby_supervisor: @@ -126,10 +125,8 @@ message InstallRequest { } message TransferRequest { - // The version string is a vendor defined string that identifies the OS - // version. It is provided by the vendor and embedded in the OS package. This - // value states the desired OS package version to transfer to the Target. If - // the Target already has the OS package version it will reply with + // State the desired OS package version to transfer to the Target. If the + // Target already has the OS package version it will reply with // InstallResponse->Validated. In the case that the target is a // single Supervisor device, or the partner Supervisor does not have the OS // image specified, it will respond with InstallResponse->TransferReady. In @@ -151,14 +148,14 @@ message TransferRequest { // The TransferEnd message is sent whenever the Client finishes transferring // the OS package to the Target. At this point the Target MUST perform a general // health check to the OS package. If the Target fails to parse the OS package -// it MUST immediately reply with an InstallError->type->PARSE_FAIL. If the -// integrity check of the OS package fails it MUST immediately reply with an +// it should immediately reply with an InstallError->type->PARSE_FAIL. If the +// integrity check of the OS package fails it should immediately reply with an // InstallError->type->INTEGRITY_FAIL. If the identified OS version contained in // the package is not compatible with the Target either because of the platform -// type or the running OS, it MUST immediately reply with an +// type or the running OS, it should immediately reply with an // InstallError->type->INCOMPATIBLE. If the image is force transferred by // omitting the InstallRequest->TransferRequest->version value, and the OS -// package is the same as the one running in the Target, the RPC MUST +// package is the same as the one running in the Target, the RPC should // immediately abort and reply with an InstallError->type->INSTALL_RUN_PACKAGE. message TransferEnd {} @@ -181,7 +178,7 @@ message InstallResponse { message TransferReady {} // The TransferProgress message is sent by the target asynchronously during a -// file transfer. The device SHOULD not respond to each input block received +// file transfer. The device should not respond to each input block received // from the client, but rather determine reasonable intervals at which to send // the message (e.g., 5MB). message TransferProgress { @@ -201,7 +198,7 @@ message SyncProgress { message Validated { // The OS version string that identifies the OS version in the OS package. string version = 1; - // Informational field that SHOULD be used for providing more details about + // Informational field that should be used for providing more details about // the OS package and its version. This MUST be strictly informational if // used, and can contain information such as build date, target platform, // developer, etc. @@ -209,18 +206,18 @@ message Validated { } // The InstallError message MUST be sent by the Target to the Client whenever an -// issue occurs. The Target MUST immediately close the RPC without a gRPC error. +// issue occurs. The Target must immediately close the RPC without a gRPC error. message InstallError { enum Type { // An unspecified error. Must use the detail value to describe the issue. UNSPECIFIED = 0; // The newly transferred package is not compatible with the Target platform. - // The detail field MUST contain the detailed error message. + // The detail field must contain the detailed error message. INCOMPATIBLE = 1; // The OS package being transferred is larger than the available size the - // Target provisioned. This is unexpected since the Target MUST clear disk + // Target provisioned. This is unexpected since the Target must clear disk // space for the new OS packages. The available space and the OS package - // size MUST be guaranteed by the platform maker, therefore the most likely + // size must be guaranteed by the platform maker, therefore the most likely // cause of this error is that a wrong package is being transferred. TOO_LARGE = 2; // Used whenever the system is unable to parse the newly transferred @@ -236,7 +233,7 @@ message InstallError { // A switchover happened during the Install RPC. UNEXPECTED_SWITCHOVER = 7; // Failed to sync the transferred OS package to the standby Supervisor. The - // detail value MUST have more information. + // detail value must have more information. SYNC_FAIL = 8; } Type type = 1; @@ -287,9 +284,9 @@ message VerifyRequest {} message VerifyResponse { // The OS version currently running. string version = 1; - // Informational message describing fail details of the last boot. This MUST + // Informational message describing fail details of the last boot. This must // be set when a newly transferred OS fails to boot and the system falls back - // to the previously running OS version. It MUST be cleared whenever the + // to the previously running OS version. It must be cleared whenever the // systems successfully boots the activated OS version. string activation_fail_message = 2; From eeb4311febd17924c2ee5457704078eb674fe4c6 Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 16:59:28 +0530 Subject: [PATCH 183/238] Revert "fix wording" This reverts commit 39fe1307e5e272f4ad97fc4c625d40530ad41349. --- os/os.proto | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/os/os.proto b/os/os.proto index ecf0f101..34e94491 100644 --- a/os/os.proto +++ b/os/os.proto @@ -1,4 +1,4 @@ -// This file defines a gNOI API used for OS installation. +// This file defines a gNOI API to be used for OS installation. syntax = "proto3"; package gnoi.os; From 8262207f5dc750491055977d5e840de2f74fb674 Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 16:59:29 +0530 Subject: [PATCH 184/238] Revert "gNOI OS service" This reverts commit 11420c70519891c34ee2f10df044c6315a4df4f4. --- os/os.proto | 321 ---------------------------------------------------- 1 file changed, 321 deletions(-) delete mode 100644 os/os.proto diff --git a/os/os.proto b/os/os.proto deleted file mode 100644 index 34e94491..00000000 --- a/os/os.proto +++ /dev/null @@ -1,321 +0,0 @@ -// This file defines a gNOI API to be used for OS installation. -syntax = "proto3"; - -package gnoi.os; - -import "github.com/openconfig/gnoi/types/types.proto"; - -option (types.gnoi_version) = "0.1.0"; - -// The OS service provides an interface for OS installation on a Target. The -// Client progresses through 3 RPCs: -// 1) Installation - provide the Target with the OS package. -// 2) Activation - activate an installed OS package. -// 3) Verification - verify that the Activation was successful. -// -// Dual Supervisor Target is supported, where the above process is executed once -// for each Supervisor. -// -// Note that certain platforms may have particular approaches to upgrade the -// firmware of specific components, eg., power supply units, etc.. In addition, -// platforms may have processes to apply patches to the running OS. Handling -// these exceptions introduces extra complexities. For Targets that implement -// this service, component firmware upgrade or OS patching must be embedded -// within an OS upgrade. -service OS { - // Install transfers an OS package into the Target. No concurrent Install RPCs - // must be allowed to the same Target. - // - // The OS package file format is platform dependent. The platform must - // validate that the OS package that is supplied is valid and bootable. This - // should include a hash check against a known good hash. It is recommended - // that the hash is embedded in the OS package. - // - // The Target manages its own persistent storage, and OS installation process. - // It stores a set of distinct OS packages, and always proactively frees up - // space for incoming new OS packages. It is guaranteed that the Target always - // has enough space for a valid incoming OS package. The currently running OS - // packages must never be removed. - // - // The Install RPC allows the Client to specify the OS package version. If - // the Target already has an OS package with the same version then there is no - // need to transfer the OS package to the Target. If the Target does not have - // an OS package with the same version, then the OS package is copied. - // - // Scenario 1 - When the Target already has the OS package: - // - // Client :--------------|--------------> Target - // TransferRequest --> - // <-- [Validated|InstallError] - // - // - // Scenario 2 - When the Target does not have the OS package: - // - // Client :--------------|--------------> Target - // TransferRequest --> - // <-- [TransferReady|InstallError] - // transfer_content --> - // ... - // <-- [TransferProgress|InstallError] - // ... - // TransferEnd --> - // <-- [Validated|InstallError] - // - // On a dual Supervisor Target, only the Active Supervisor runs this gNOI - // Service. The Install RPC applies to the Active Supervisor unless - // InstallRequest->TransferRequest->standby_supervisor is set, in which case - // it applies to the Standby Supervisor. One Install RPC is required for each - // Supervisor. - // - // The Target MUST always attempt to copy the OS package between Supervisors - // first before accepting the transfer from the Client. The syncing progress - // is reported to the client with InstallResponse->SyncProgress messages. - // - // If a switchover is triggered by an external event during the Install RPC, - // the RPC MUST immediately abort with Error->type->UNEXPECTED_SWITCHOVER. - // - // Scenario 3 - When both Supervisors already have the OS package, regardless - // of the value in Start.standby_supervisor: - // - // Client :--------------|--------------> Target - // TransferRequest --> - // <-- [Validated|InstallError] - // - // - // Scenario 4 - When one of the Supervisors already has the OS package but the - // other Supervisor is the target of the Install: - // - // Client :--------------|--------------> Target - // TransferRequest --> - // <-- [SyncProgress|InstallError] - // ... - // <-- [Validated|InstallError] - // - // - // Scenario 5 - When neither of the two Supervisors has the OS package: - // - // Client :--------------|--------------> Target - // TransferRequest --> - // <-- [TransferReady|InstallError] - // transfer_content --> - // ... - // <-- [TransferProgress|InstallError] - // ... - // TransferEnd --> - // <-- [Validated|InstallError] - // - rpc Install(stream InstallRequest) returns (stream InstallResponse); - - // Activate sets the requested OS version as the version which is used at the - // next reboot, and reboots the Target. When booting the requested OS version - // fails, the Target recovers by booting the previously running OS package. - rpc Activate(ActivateRequest) returns (ActivateResponse); - - // Verify checks the running OS version. This RPC may be called multiple times - // while the Target boots, until successful. - rpc Verify(VerifyRequest) returns (VerifyResponse); -} - -message InstallRequest { - oneof request { - TransferRequest transfer_request = 1; - bytes transfer_content = 2; - TransferEnd transfer_end = 3; - } -} - -message TransferRequest { - // State the desired OS package version to transfer to the Target. If the - // Target already has the OS package version it will reply with - // InstallResponse->Validated. In the case that the target is a - // single Supervisor device, or the partner Supervisor does not have the OS - // image specified, it will respond with InstallResponse->TransferReady. In - // this case, the client MUST subsequently transfer the image. In the case - // that the image is available on the peer Supervisor of a dual Supervisor - // system, it will respond with InstallResponse->SyncProgress. In this, - // latter, case - the client does not need to transfer the OS image. This - // value can also be set empty, in which case the OS package is forced - // transferred to the Target. The Target MUST never validate that this value - // matches the one in the InstallResponse->Validated message, that is the - // Client's responsibility. - string version = 1; - - // For a Target with dual Supervisors setting this flag instructs the Target - // to perform the action on the Standby Supervisor. - bool standby_supervisor = 2; -} - -// The TransferEnd message is sent whenever the Client finishes transferring -// the OS package to the Target. At this point the Target MUST perform a general -// health check to the OS package. If the Target fails to parse the OS package -// it should immediately reply with an InstallError->type->PARSE_FAIL. If the -// integrity check of the OS package fails it should immediately reply with an -// InstallError->type->INTEGRITY_FAIL. If the identified OS version contained in -// the package is not compatible with the Target either because of the platform -// type or the running OS, it should immediately reply with an -// InstallError->type->INCOMPATIBLE. If the image is force transferred by -// omitting the InstallRequest->TransferRequest->version value, and the OS -// package is the same as the one running in the Target, the RPC should -// immediately abort and reply with an InstallError->type->INSTALL_RUN_PACKAGE. -message TransferEnd {} - -// The InstallResponse is used by the Target to inform the Client about the -// state of the Install RPC. At any stage of the process the Target can reply -// with an Error message which MUST terminate the stream. -message InstallResponse { - oneof response { - TransferReady transfer_ready = 1; - TransferProgress transfer_progress = 2; - SyncProgress sync_progress = 3; - Validated validated = 4; - InstallError install_error = 5; - } -} - -// The TransferReady message tells the Client that the Target is ready to accept -// the transfer of the OS package. At this stage the Target MUST have cleared -// enough space to accept the incoming OS package. -message TransferReady {} - -// The TransferProgress message is sent by the target asynchronously during a -// file transfer. The device should not respond to each input block received -// from the client, but rather determine reasonable intervals at which to send -// the message (e.g., 5MB). -message TransferProgress { - // The number of bytes transferred. - uint64 bytes_received = 1; -} - -// The SyncProgress message signals the Client about the progress of -// transferring the OS package between Supervisors. -message SyncProgress { - // The percentage that has transferred between Supervisors. - uint32 percentage_transferred = 1; -} - -// The Validated message asserts that the Target was able to parse the package -// and perform integrity checks to its contents. -message Validated { - // The OS version string that identifies the OS version in the OS package. - string version = 1; - // Informational field that should be used for providing more details about - // the OS package and its version. This MUST be strictly informational if - // used, and can contain information such as build date, target platform, - // developer, etc. - string description = 2; -} - -// The InstallError message MUST be sent by the Target to the Client whenever an -// issue occurs. The Target must immediately close the RPC without a gRPC error. -message InstallError { - enum Type { - // An unspecified error. Must use the detail value to describe the issue. - UNSPECIFIED = 0; - // The newly transferred package is not compatible with the Target platform. - // The detail field must contain the detailed error message. - INCOMPATIBLE = 1; - // The OS package being transferred is larger than the available size the - // Target provisioned. This is unexpected since the Target must clear disk - // space for the new OS packages. The available space and the OS package - // size must be guaranteed by the platform maker, therefore the most likely - // cause of this error is that a wrong package is being transferred. - TOO_LARGE = 2; - // Used whenever the system is unable to parse the newly transferred - // package, like reading the OS version or the integrity checksums. - PARSE_FAIL = 3; - // The transferred OS package fails integrity check. - INTEGRITY_FAIL = 4; - // Attempting to force transfer an OS package with the same version as the - // currently running. - INSTALL_RUN_PACKAGE = 5; - // Another Install RPC to this Target is already in progress. - INSTALL_IN_PROGRESS = 6; - // A switchover happened during the Install RPC. - UNEXPECTED_SWITCHOVER = 7; - // Failed to sync the transferred OS package to the standby Supervisor. The - // detail value must have more information. - SYNC_FAIL = 8; - } - Type type = 1; - string detail = 2; -} - -// The ActivateRequest is sent by the Client to the Target to initiate a change -// in the next bootable OS version that is to be used on the Target. -message ActivateRequest { - // The version that is required to be activated and booted. - string version = 1; - // For dual Supervisors setting this flag instructs the Target to perform the - // action on the Standby Supervisor. - bool standby_supervisor = 2; -} - -// The ActivateResponse is sent from the Target to the Client in response to the -// Activate RPC. It indicates the success of making the OS package version -// active. -message ActivateResponse { - oneof response { - ActivateOK activate_ok = 1; - ActivateError activate_error = 2; - } -} - -// If the Target is already running the requested version in ActivateRequest, -// then it replies with ActivateOK. If the Target has the OS package version -// requested in ActivateRequest then it replies with ActivateOK and proceeds to -// boot. In a Target with dual Supervisor, performing this RPC on the Active -// Supervisor triggers a switchover before booting the (old)Active Supervisor. -message ActivateOK {} - -message ActivateError { - enum Type { - // An unspecified error. Must use the detail value to describe the issue. - UNSPECIFIED = 0; - // There is no OS package with the version requested for activation. This is - // also used for an empty version string. - NON_EXISTENT_VERSION = 1; - } - Type type = 1; - string detail = 2; -} - -message VerifyRequest {} - -message VerifyResponse { - // The OS version currently running. - string version = 1; - // Informational message describing fail details of the last boot. This must - // be set when a newly transferred OS fails to boot and the system falls back - // to the previously running OS version. It must be cleared whenever the - // systems successfully boots the activated OS version. - string activation_fail_message = 2; - - VerifyStandby verify_standby = 3; -} - -message VerifyStandby { - oneof state { - StandbyState standby_state = 1; - StandbyResponse verify_response = 2; - } -} - -message StandbyState { - enum State { - UNSPECIFIED = 0; - // The Target does not support dual Supervisors. - UNSUPORTED = 1; - // Standby Supervisor is supported but does not exist. - NON_EXISTENT = 2; - // Standby Supervisor is supported but is not available, eg.: rebooting. - UNAVAILABLE = 3; - } - State state = 1; -} - -message StandbyResponse { - // Standby Supervisor ID, usually the slot number. - string id = 1; - string version = 2; - string activation_fail_message = 3; -} From 0f716a1d30da017bc3683866ee1854e1299f7e87 Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 16:59:29 +0530 Subject: [PATCH 185/238] Revert "Add forward looking notice" This reverts commit 3401d48a316108174da9dd35729280fec8312b13. --- cert/cert.proto | 2 -- 1 file changed, 2 deletions(-) diff --git a/cert/cert.proto b/cert/cert.proto index d2b323d3..190f04ce 100644 --- a/cert/cert.proto +++ b/cert/cert.proto @@ -282,8 +282,6 @@ message LoadCertificateRequest { // Groups of chained certificates should be last, where within, the root // certificate is the last one. E.g.: // CertA, CertB, CertB-Root, CertC, CertC-Intermediate, CertC-Root - // Note that on a forward looking iteration, CA Certificates will be managed - // by a dedicated gNOI service. repeated Certificate ca_certificates = 4; } From 53d5a9a7d61e9a526fdbac56b0960cefa583da20 Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 16:59:30 +0530 Subject: [PATCH 186/238] Revert "Suggest order in gNOI cert ca_certificates" This reverts commit 0feb32f2f348e1724d1a17c4ce5d26a7ef367bde. --- cert/cert.proto | 4 ---- 1 file changed, 4 deletions(-) diff --git a/cert/cert.proto b/cert/cert.proto index 190f04ce..453a7fb4 100644 --- a/cert/cert.proto +++ b/cert/cert.proto @@ -278,10 +278,6 @@ message LoadCertificateRequest { // certificates should squash the existing bundle. This field provides a // simplified means to provision a CA bundle that can be used to validate // other peer's certificates. - // To improve performance in the Target, certificates can be ordered. - // Groups of chained certificates should be last, where within, the root - // certificate is the last one. E.g.: - // CertA, CertB, CertB-Root, CertC, CertC-Intermediate, CertC-Root repeated Certificate ca_certificates = 4; } From 8880554cb5459a19a3cd45d6d8c28cd8102615fd Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 16:59:31 +0530 Subject: [PATCH 187/238] Revert "Make CA validation required" This reverts commit f00a01556b11422860d036a80dbdc1e7b699b8fb. --- docs/simplified_security_model.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/simplified_security_model.md b/docs/simplified_security_model.md index 4b39a7eb..031039a8 100644 --- a/docs/simplified_security_model.md +++ b/docs/simplified_security_model.md @@ -94,9 +94,9 @@ In order for the Target to validate the Client or a Peer's certificates, it must have a pool of one or more CA certificates. These are provisioned onto the Target by the Client during creation or rotation of the Target’s certificates. -### Validate installed certificate +### Validate installed certificate (optional) -For increased security, the Target must use certificates in its CA pool to +For increased security, the Target may use certificates in its CA pool to validate a newly installed certificate. This requires the CA pool to contain a CA certificate that can validate the new certificate. From f0b5daefe3b04f013d4158ac1eef2ebbc84a73d1 Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 16:59:32 +0530 Subject: [PATCH 188/238] Revert "Add optional validation to new Certificates" This reverts commit 7f5c7182b6c76f76b3afb41041269c12faf0f8b6. --- docs/simplified_security_model.md | 48 ++++++++++++++----------------- 1 file changed, 21 insertions(+), 27 deletions(-) diff --git a/docs/simplified_security_model.md b/docs/simplified_security_model.md index 031039a8..6d963b7c 100644 --- a/docs/simplified_security_model.md +++ b/docs/simplified_security_model.md @@ -16,16 +16,16 @@ one that can be employed. Different security models can be defined to address specific scenarios. This simplified security model makes assumptions about the installation and -rotation of certificates & CA certificates. Their assumed usage is applicable +rotation of Certificates & CA Certificates. Their assumed usage is applicable not only to gNOI and gNMI, but also other services like OpenFlow. This simplified security model presumes that a secure connection between the -Target and the Client already exist for installing and rotating certificates. +Target and the Client already exist for installing and rotating Certificates. Bootstrapping is out of scope for this model. This simplified security model assumes low risk of man-in-the-middle attacks because it relinquishes mandating DNS verification for the Common Name of the -respective Client and Target certificates. +respective Client and Target Certificates. ## Client @@ -38,7 +38,7 @@ A Target is defined as per the definition in the gNMI and gNOI specifications. ## Peer Peer is an entity that participates in establishing a connection with another -entity, using whatever protocol that makes use of certificates to secure that +entity, using whatever protocol that makes use of Certificates to secure that connection. An example would be an OpenFlow connection between an OpenFlow switch and an OpenFlow Controller. Target and Client are particular cases of a Peer. @@ -61,7 +61,7 @@ authentication is described below. By authorized trust it is meant that the Target is granted the necessary credentials (by the Client) to be able to identify Peers as genuine (using -whatever service uses these certificates). The Target is authorized trust by the +whatever service uses these Certificates). The Target is authorized trust by the Client via the successful execution of either: * gNOI certificate installation or rotation under a Secure connection (where @@ -69,40 +69,34 @@ Client via the successful execution of either: * other provisioning or bootstrapping mechanism described outside of the scope of this security model. -## Target certificate installation or rotation +## Target Certificate installation or rotation To initiate certificate installation using the gNOI Certificate Management service: 1. The Client sends parameters to the target so that it can generate a - certificate Signing Request (CSR). + Certificate Signing Request (CSR). 2. The Target then generates this CSR using its Private Key. -3. The Target then replies with the certificate to the Client, which - subsequently provides the certificate to the CA to be signed. -4. The signed certificate is then returned to the Target by the Client and it - becomes one of the Target’s certificates. - -Each one of the Target’s certificate has a unique identifier, the certificate -ID. This ID is used both to install and to rotate a certificate. certificate -installation for an existing certificate ID MUST fail. Replacing an existing -certificate must rather use the certificate rotation mechanism, whose steps are +3. The Target then replies with the Certificate to the Client, which + subsequently provides the Certificate to the CA to be signed. +4. The signed Certificate is then returned to the Target by the Client and it + becomes one of the Target’s Certificates. + +Each one of the Target’s Certificate has a unique identifier, the Certificate +ID. This ID is used both to install and to rotate a Certificate. Certificate +installation for an existing Certificate ID MUST fail. Replacing an existing +Certificate must rather use the Certificate rotation mechanism, whose steps are similar to the ones described above with the addition of final validation. ## Target CA pool -In order for the Target to validate the Client or a Peer's certificates, it must -have a pool of one or more CA certificates. These are provisioned onto the -Target by the Client during creation or rotation of the Target’s certificates. - -### Validate installed certificate (optional) - -For increased security, the Target may use certificates in its CA pool to -validate a newly installed certificate. This requires the CA pool to contain a -CA certificate that can validate the new certificate. +In order for the Target to validate the Client or a Peer's Certificates, it must +have a pool of one or more CA Certificates. These are provisioned onto the +Target by the Client during creation or rotation of the Target’s Certificates. ## Mutual Authentication -Mutual authentication exists when two Peers validate each other's certificate +Mutual authentication exists when two Peers validate each other's Certificate against their CA pools. Optionally, either the Client or the Target can validate -that the Common Name (CN) in each other’s certificates matches the resolved one +that the Common Name (CN) in each other’s Certificates matches the resolved one for the Peer address of the connection. From 4ca208a094b028a6f7b66e6965a8dba532536c78 Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 16:59:33 +0530 Subject: [PATCH 189/238] Revert "gNOI best practices" This reverts commit 57320b6706cd16275b984c2ec27ce54e6215e1a5. --- docs/best_practices.md | 237 ----------------------------------------- 1 file changed, 237 deletions(-) delete mode 100644 docs/best_practices.md diff --git a/docs/best_practices.md b/docs/best_practices.md deleted file mode 100644 index f708e355..00000000 --- a/docs/best_practices.md +++ /dev/null @@ -1,237 +0,0 @@ -# Guidelines for developing gNOI microservices - -This document delivers some guidance for helping develop gNOI microservices. - -## Why gNOI instead of gNMI? - -gNMI defines actions to retrieve or manipulate the state of a device via -telemetry or configuration data, respectively. gNOI, on the other hand, is used -to execute commands on a device rather than directly change its configuration. - -## Characteristics of a gNOI microservice - -After deciding that a gNOI microservice needs to be developed, a few aspects -should be taken into consideration. There are three fundamental components that -should be understood. - -**Interpretation** - The microservice should be easy to read and understand. The -service and RPC names should intuitively deduce its purpose. - -**Implementation** - The microservice should be easy to code. There should be no -ambiguities. The combination of the service definition together with its -documentation should offer a complete understanding of all the code paths. - -**Operation** - The microservice should be straightforward to use. Not in the -versatile sense of a single RPC fits all swiss army knife style, but that a -single RPC behaves equally across different implementations. The following -guidelines help with achieving this. - -### Thin and focused - -The microservice should be simple and focus on the process it aims to implement. -The microservice must not be overarching, it must be specialized. As such, avoid -defining a microservice that implements different unrelated actions. The -developed microservice should be categorized by the nature of the process it -implements, and not by the nature of the Target it is meant to be used on. This -also applies to the naming of the microservice. - -*Instead of this:* - -``` -service Car { - rpc Turn(...) returns (...); - rpc SetSpeed(...) returns (...); - rpc SetStation(...) returns (...); - rpc SetVolume(...) returns (...); -} -``` - -*Prefer this:* - -``` -service Guidance { - rpc Turn(...) returns (...); - rpc SetSpeed(...) returns (...); -} - -service Radio { - rpc SetStation(...) returns (...); - rpc SetVolume(...) returns (...); -} -``` - -### Shallow RPCs - -Aim for more RPCs instead of single RPCs overloaded with actions. This provides -a better path for augmenting the microservice without breaking backward -compatibility. - -*Instead of this:* - -``` -service Direction { - rpc Adjust(AdjustRequest) returns (...); -} - -message AdjustRequest { - speed = 0; - turn_angle = 1; -} -``` - -*Prefer this:** - -``` -service Guidance { - rpc Turn(...) returns (...); - rpc SetSpeed(...) returns (...); -} -``` - -### Precisely specified behavior - -By virtue of its proto definition, the microservice should already specify a -good amount of detail on what is expected of a Target that implements it. -However some details usually fall out of the proto definition. These details -must be specified meticulously as a complement to the proto definition. Take -also in consideration that prescriptions should focus on the behaviour of the -implementation, as opposed to the method of the implementation. - -*Instead of this:* - -``` -service Guidance { - // Turn sets the turn angle. The - // forward wheels must rotate to the - // expected angle. The rear wheels must - // help if applicable. - rpc Turn(...) returns (...); -} -``` - -*Prefer this:* - -``` -service Guidance { - // Turn sets the turn angle. The - // system is expected to reach the - // turn angle in less than one second. - rpc Turn(...) returns (...); -} -``` - -## Error handling - -Error handling is an important factor to take into consideration in a -microservice. There are generally two approaches that can be used for individual -scenarios. - -### Vanilla gRPC Errors - -RPC's return a gRPC error using the status definitions. See in -[golang](http://google.golang.org/genproto/googleapis/rpc/status) for examples. -These errors immediately terminate the RPC and should additionally provide -detailed messages about the nature of the error. They are useful for the -following scenarios: - -* RPC's that have a singular pass/fail criteria; -* Status RPC's that request unexpected or non existing data; -* Unexpected oneof message type used in a stream RPC workflow; -* Authentication issues; -* Network issues; - -An example: - -``` -Service Bubble { - ... - // An gRPC Unimplemented error will be returned if the target cannot generate bubbles. - rpc Generate(GenerateRequest) returns (GenerateResponse) - - rpc Count(CountRequest) returns (CountResponse) -} -``` - -### Structured Error messages - -Vanilla gRPC errors are straightforward to use but may allow ambiguity to creep -if applied on more complex scenarios. Structured Error messages help with -further documenting and scoping the proto definition which limits ambiguity. -They are, in addition, well defined signals that can be trivially consumed by -upstream workflows operating with a specific gNOI microservice. An example of an -RPC with structured error messages is seen below. - -``` -message StepLeft {} - -message StepRight {} - -message StepError { - enum Type { - UNSPECIFIED = 0; - NO_LEGS_ERROR = 1; - TIRED_ERROR = 2; - } - Type type = 1; - // The detail message must be used if type is UNSPECIFIED. - string detail = 2; -} - -message StepResponse { - oneof request { - StepLeft step_left = 1; - StepRight step_right = 2; - StepError step_error = 3; - } -} - -message StepRequest {} - -// Abort with a gRPC error if Metadata authentication fails. -rpc Step(stream StepRequest) returns (stream StepResponse) -``` - -Non zero (UNSPECIFIED) enum error types should be descriptive and in general not -require filling up the detail message. - -Note that a single RPC can still make use of both the vanilla gRPC Error and -Structured Error message approaches as long as they are applied to different -scenarios. Structured Error messages must never be accompanied by a Vanilla gRPC -Error. Structured Error messages don't necessarily require the RPC to return -immediately. - -## Versioning - -It is plausible that not all scenarios may have been taken into consideration -during the conception of a microservice. Equally, novel requirements can be -introduced. Microservices may need to expand in order to mature and accommodate -improvements. However there are two fundamental pathways to accomplish this. - -### Enhancement - -These add backward compatible incremental functionalities to the microservice. -Enhancements require little effort to implement. Enhancements must be reflected -in a version string that accompanies the specific microservice. - -``` -syntax = "proto3"; - -package gnoi.whack; - -import "github.com/openconfig/gnoi/types/types.proto"; - -option (types.gnoi_version) = "0.1.0"; - -service Whack { ... -``` - -The version string details the major, minor & micro revisions to the gNOI -microservice. - -### Evolution - -These add or change functionality to the microservice that will break previous -versions. Evolution is a result of a fundamental alteration in the expected -behaviour of the microservice. When a microservice evolves, it must not -necessarily replace the previous one. Evolutions typically result in a new, more -precise and specific service name. From d8243d377f40d8026d5d218f8f3e012c758554e1 Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 16:59:34 +0530 Subject: [PATCH 190/238] Revert "IANA reserved port document" This reverts commit e052deb30f8f778dcff3466a589f62479f7792c3. --- docs/reserved_port.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/reserved_port.md b/docs/reserved_port.md index c6244a77..57f77fb7 100644 --- a/docs/reserved_port.md +++ b/docs/reserved_port.md @@ -1,7 +1,6 @@ # IANA reserved port -gNMI and gNOI services have a reserved port since May the 9th, 2019. Please use -this port as the default & configured port in your systems. +gNMI and gNOI services have a reserved port. ` service: gnmi-gnoi From 600fe6207de36f122a7ef0ec23054b7ffbbf784e Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 16:59:35 +0530 Subject: [PATCH 191/238] Revert "IANA reserved port" This reverts commit e551b4139f84267678cda2f504ea70b88b5a9427. --- docs/reserved_port.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/reserved_port.md b/docs/reserved_port.md index 57f77fb7..621120e3 100644 --- a/docs/reserved_port.md +++ b/docs/reserved_port.md @@ -1,8 +1,8 @@ -# IANA reserved port +# IANA Reserved port -gNMI and gNOI services have a reserved port. +gNMI and gNOI services have the reserved port: ` service: gnmi-gnoi port: 9339 -` +` From 7bee2bc3edff0308f23b8b4c3f7a97871710cb74 Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 16:59:35 +0530 Subject: [PATCH 192/238] Revert "IANA reserved port" This reverts commit bfb2ead14ec503d280d477240e230a1f348c0ad2. --- docs/reserved_port.md | 8 -------- 1 file changed, 8 deletions(-) delete mode 100644 docs/reserved_port.md diff --git a/docs/reserved_port.md b/docs/reserved_port.md deleted file mode 100644 index 621120e3..00000000 --- a/docs/reserved_port.md +++ /dev/null @@ -1,8 +0,0 @@ -# IANA Reserved port - -gNMI and gNOI services have the reserved port: - -` -service: gnmi-gnoi -port: 9339 -` From 0e7d9dc51b4f51d24c7804570d738cf014492b1c Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 16:59:36 +0530 Subject: [PATCH 193/238] Revert "Always specify a cert ID during Installation." This reverts commit d4652f015d7820005c2bebbdc27605640637e57e. --- docs/simplified_bootstrapping.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/simplified_bootstrapping.md b/docs/simplified_bootstrapping.md index 376ca54c..52fcac62 100644 --- a/docs/simplified_bootstrapping.md +++ b/docs/simplified_bootstrapping.md @@ -80,8 +80,9 @@ certificate or reuses a default one. The first installed certificate and CA certificate pool is used for the gNOI and gNMI services. No other certificates should be installed during the default -stage. The certificate ID specified, becomes the associated certificate ID for -the gNMI/gNOI service. +stage. If the certificate ID is specified, then that becomes the associated +certificate ID for the gNMI/gNOI service. If none is specified then one is +assigned by the Target. ##### Target behaviour From 638bbd315062c7f8f76b5fc9316984a5054d4902 Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 16:59:37 +0530 Subject: [PATCH 194/238] Revert "Fix wording with secure mode" This reverts commit 408e48dd2d153cd3735b53ae1d1d91ec6d7d2e3f. --- docs/simplified_bootstrapping.md | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/docs/simplified_bootstrapping.md b/docs/simplified_bootstrapping.md index 52fcac62..1d9601cb 100644 --- a/docs/simplified_bootstrapping.md +++ b/docs/simplified_bootstrapping.md @@ -86,13 +86,12 @@ assigned by the Target. ##### Target behaviour -The Target must restart its gNOI/gNMI service and exclusively perform secure -connections as soon as the certificate and CA certificates have been -successfully installed, thus transitioning from the default state to the -provisioned state. The previously used default certificate must not be used once -in the provisioned state. +The Target must restart its gNOI/gNMI service in secure mode as soon as the +certificate and CA certificates have been successfully installed, thus +transitioning from the default state to the provisioned state. The previously +used default certificate must not be used once in the provisioned state. -##### Client behavior +##### Client behaviour The Client, when bootstrapping a Target must not attempt to authenticate the Target when establishing a connection. However it should still encrypt that @@ -108,5 +107,5 @@ encryption rules apply. It must be possible to reset a Target to its default state. For a Network Element this would be a factory reset triggered via gNOI. When executed, all certificates and CA certificates should be cleared. A default certificate must -be generated if it does not already exist. The entire bootstrapping process +be generated if it does not already exist. The entire boostrapping process should be applicable again. From eb262476fedc1372743b41794b04717d3864a587 Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 16:59:37 +0530 Subject: [PATCH 195/238] Revert "Simplified bootstrapping" This reverts commit 0114b3379a7adc586ca6afd62eb63dbbe3108129. --- docs/img/bootstrapping_state.png | Bin 41556 -> 0 bytes docs/simplified_bootstrapping.md | 111 ------------------------------- 2 files changed, 111 deletions(-) delete mode 100644 docs/img/bootstrapping_state.png delete mode 100644 docs/simplified_bootstrapping.md diff --git a/docs/img/bootstrapping_state.png b/docs/img/bootstrapping_state.png deleted file mode 100644 index bd441ef9e4de01d125bdb4c848fdc1da781e8e34..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 41556 zcmYgYbzD^4)>d)|Nok~|l^#-hXpkCGx(1}X5u~KMk(3UB5d>)v>FyL58bJn>koXS1 z@4essi{F_!bJ%y^dk-Ga zJy4XD()Kn!T)|A?gj|AuqM$z%rREk?{u6FJ7KrzS{v~3w-BCzqNH=%ozQeruud@7Ib@> z_m~KTh7v4ENAUNLDgil1zp|<|dke+?e@qcf$8|#YKX+9VfRLJ%dr_kp|NqN`bnpMU z%GUv*`IOJNLu^q0`)s;?WwHOcQs+PmX`QxfDQx)vI|vX@-~Z2583~G%v7La?#KM2p z2P_jwH19sJ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|B)4S~N=!=wIFg{M{Jq(-Uda`x!NfK$Wxe zZEx=Ud^V7h8zb%fz_@ep0rJd4=~_I}y*<~%Rc*9E!%OCsth$yIW8~evQPKDZ-!?* zNNCS#T$9^TJ_j`Sm8W&!o~|5*_jgS)kG}m$AWBsjyE zv!R;LCX(0-RO8Al=!c3pR@2_E6%{7VwF3yewV!S7ER0;;0iS7k_!k$;)eL9gCm)UI zc;p|ieBxdT%0c$?YIbRckZ!YePh=ATKh@HB%{Lx8L^g_3Rl+aL_L%c2-Q?I0PItID z7H@JCO_&n;=(ZidC|LXku0{am9CY~6^ zv-tieh^qd>IE#07{@ngNYed6RUQ0i8Er0{clSMGPX5vQx0AjB41Y&(afr`WXAC;zc zC_iOdX5F~F3gcM23A4~}?^Sl^OGGm=m$NcTE4!rV1?tvCrGz-%LEVFRLIMHC%Ho!#Xwsr*M(R4|Kuw=ivR!r=AXSo Y@!zBcu2cFm9)f>3HC@$m Date: Mon, 6 Jun 2022 16:59:38 +0530 Subject: [PATCH 196/238] Revert "add sampling resolution" This reverts commit 25497303037e564d5d0deb1a406164c39fa5f859. --- otdr/otdr.pb.go | 132 +++++++++++++++++++++++------------------------- otdr/otdr.proto | 3 -- 2 files changed, 64 insertions(+), 71 deletions(-) diff --git a/otdr/otdr.pb.go b/otdr/otdr.pb.go index d336f681..010ee470 100644 --- a/otdr/otdr.pb.go +++ b/otdr/otdr.pb.go @@ -221,8 +221,6 @@ type OTDRConfiguration struct { RangeM float32 `protobuf:"fixed32,4,opt,name=range_m,json=rangeM" json:"range_m,omitempty"` // The type of fiber that is being measured. FiberType FiberTypeProfile `protobuf:"varint,5,opt,name=fiber_type,json=fiberType,enum=gnoi.optical.FiberTypeProfile" json:"fiber_type,omitempty"` - // The sampling resolution in meters. - SamplingResolutionM float32 `protobuf:"fixed32,6,opt,name=sampling_resolution_m,json=samplingResolutionM" json:"sampling_resolution_m,omitempty"` } func (m *OTDRConfiguration) Reset() { *m = OTDRConfiguration{} } @@ -600,71 +598,69 @@ var _OTDR_serviceDesc = grpc.ServiceDesc{ func init() { proto.RegisterFile("otdr/otdr.proto", fileDescriptor0) } var fileDescriptor0 = []byte{ - // 1046 bytes of a gzipped FileDescriptorProto + // 1021 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x94, 0x55, 0xed, 0x6e, 0xe2, 0x46, - 0x17, 0xc6, 0x7c, 0x05, 0x0e, 0x81, 0x78, 0x27, 0xbb, 0x1b, 0xde, 0x7d, 0x95, 0x14, 0xd1, 0xad, - 0x84, 0x9a, 0x95, 0x93, 0x92, 0xaa, 0x52, 0xab, 0x6d, 0x25, 0x36, 0x98, 0x04, 0x85, 0x2f, 0x8d, - 0x4d, 0x69, 0x7f, 0x8d, 0x0c, 0x4c, 0xc0, 0xaa, 0xf1, 0x78, 0x3d, 0x43, 0x56, 0xbb, 0xd7, 0xd0, - 0x0b, 0xa8, 0xfa, 0xbf, 0xf7, 0xd0, 0x8b, 0xd8, 0x5f, 0xbd, 0xa2, 0x6a, 0xc6, 0x36, 0x81, 0xfd, - 0x88, 0xd4, 0x3f, 0x88, 0x73, 0xce, 0x73, 0x66, 0xce, 0x3c, 0xf3, 0x3c, 0x63, 0x38, 0x60, 0x62, - 0x1e, 0x9e, 0xc9, 0x1f, 0x23, 0x08, 0x99, 0x60, 0x68, 0x7f, 0xe1, 0x33, 0xd7, 0x60, 0x81, 0x70, - 0x67, 0x8e, 0xf7, 0xec, 0xc5, 0xc2, 0x15, 0xcb, 0xf5, 0xd4, 0x98, 0xb1, 0xd5, 0x19, 0x0b, 0xa8, - 0x3f, 0x63, 0xfe, 0xad, 0xbb, 0x38, 0x93, 0x98, 0x33, 0xf1, 0x36, 0xa0, 0x3c, 0xfa, 0x8d, 0x7a, - 0xeb, 0xef, 0xd3, 0x70, 0xd0, 0xf5, 0x5d, 0xe1, 0x3a, 0x82, 0x62, 0xfa, 0x7a, 0x4d, 0xb9,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ed, 0x49, 0xfb, 0x67, 0x4b, 0xdf, 0x43, 0x0f, 0xa0, 0x9a, 0x7a, + 0xfa, 0xbd, 0x8b, 0x4b, 0x57, 0x2f, 0xb5, 0xc6, 0x90, 0x97, 0xab, 0x83, 0x06, 0x50, 0x4a, 0x37, + 0x0d, 0x3d, 0xbb, 0xf7, 0xdb, 0xf4, 0xf4, 0xe8, 0xb3, 0x9b, 0x1d, 0xaf, 0x63, 0xe6, 0x54, 0x7b, + 0x55, 0xfa, 0xfb, 0xa7, 0xc2, 0xa9, 0xf9, 0x8d, 0x79, 0x3a, 0x2d, 0xaa, 0x6f, 0xe9, 0xd9, 0xbf, + 0x01, 0x00, 0x00, 0xff, 0xff, 0xb6, 0x72, 0x56, 0x89, 0x9a, 0x07, 0x00, 0x00, } diff --git a/otdr/otdr.proto b/otdr/otdr.proto index 79963212..23ca19dc 100644 --- a/otdr/otdr.proto +++ b/otdr/otdr.proto @@ -80,9 +80,6 @@ message OTDRConfiguration { // The type of fiber that is being measured. FiberTypeProfile fiber_type = 5; - - // The sampling resolution in meters. - float sampling_resolution_m = 6; } // Type definition for different profiles of fiber types. These match what is From 7bbbdb6c5ab052a64b1945045f3e2376685d63ef Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 16:59:39 +0530 Subject: [PATCH 197/238] Revert "remove custom profile as this can happen in the clients instead" This reverts commit 7738909e922030a993ad023b0f1cdaec031b62ae. --- otdr/otdr.pb.go | 277 ++++++++++++++++++++++++++++++++++-------------- otdr/otdr.proto | 17 ++- 2 files changed, 215 insertions(+), 79 deletions(-) diff --git a/otdr/otdr.pb.go b/otdr/otdr.pb.go index 010ee470..125f0e62 100644 --- a/otdr/otdr.pb.go +++ b/otdr/otdr.pb.go @@ -10,6 +10,7 @@ It is generated from these files: It has these top-level messages: InitiateRequest + OTDRConfigurationProfile OTDRConfiguration InitiateProgress InitiateResults @@ -139,7 +140,7 @@ var InitiateProgress_State_value = map[string]int32{ func (x InitiateProgress_State) String() string { return proto.EnumName(InitiateProgress_State_name, int32(x)) } -func (InitiateProgress_State) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{2, 0} } +func (InitiateProgress_State) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{3, 0} } type InitiateError_Type int32 @@ -166,7 +167,7 @@ var InitiateError_Type_value = map[string]int32{ func (x InitiateError_Type) String() string { return proto.EnumName(InitiateError_Type_name, int32(x)) } -func (InitiateError_Type) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{4, 0} } +func (InitiateError_Type) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{5, 0} } type InitiateRequest struct { // Absolute path to the /components/component list member in the OpenConfig @@ -176,8 +177,9 @@ type InitiateRequest struct { // Describes how the results of the OTDR trace should be made available. More // than one option may be specified if desired. ResultsMethod []InitiateRequest_ResultsMethod `protobuf:"varint,2,rep,packed,name=results_method,json=resultsMethod,enum=gnoi.optical.InitiateRequest_ResultsMethod" json:"results_method,omitempty"` - // Describes the configuration used to perform an OTDR trace. - Configuration *OTDRConfiguration `protobuf:"bytes,3,opt,name=configuration" json:"configuration,omitempty"` + // Describes the configuration used to perform an OTDR trace for the needed + // circumstance. + Configuration *OTDRConfigurationProfile `protobuf:"bytes,3,opt,name=configuration" json:"configuration,omitempty"` // If specified, the device will label the OTDR trace so it can be recalled // later. For example, the initial OTDR trace measured during span // commissioning might be labeled "baseline". @@ -196,13 +198,130 @@ func (m *InitiateRequest) GetComponent() *gnoi_types.Path { return nil } -func (m *InitiateRequest) GetConfiguration() *OTDRConfiguration { +func (m *InitiateRequest) GetConfiguration() *OTDRConfigurationProfile { if m != nil { return m.Configuration } return nil } +type OTDRConfigurationProfile struct { + // Types that are valid to be assigned to ProfileType: + // *OTDRConfigurationProfile_CustomProfile + // *OTDRConfigurationProfile_Profile + ProfileType isOTDRConfigurationProfile_ProfileType `protobuf_oneof:"profile_type"` +} + +func (m *OTDRConfigurationProfile) Reset() { *m = OTDRConfigurationProfile{} } +func (m *OTDRConfigurationProfile) String() string { return proto.CompactTextString(m) } +func (*OTDRConfigurationProfile) ProtoMessage() {} +func (*OTDRConfigurationProfile) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } + +type isOTDRConfigurationProfile_ProfileType interface { + isOTDRConfigurationProfile_ProfileType() +} + +type OTDRConfigurationProfile_CustomProfile struct { + CustomProfile string `protobuf:"bytes,1,opt,name=custom_profile,json=customProfile,oneof"` +} +type OTDRConfigurationProfile_Profile struct { + Profile *OTDRConfiguration `protobuf:"bytes,2,opt,name=profile,oneof"` +} + +func (*OTDRConfigurationProfile_CustomProfile) isOTDRConfigurationProfile_ProfileType() {} +func (*OTDRConfigurationProfile_Profile) isOTDRConfigurationProfile_ProfileType() {} + +func (m *OTDRConfigurationProfile) GetProfileType() isOTDRConfigurationProfile_ProfileType { + if m != nil { + return m.ProfileType + } + return nil +} + +func (m *OTDRConfigurationProfile) GetCustomProfile() string { + if x, ok := m.GetProfileType().(*OTDRConfigurationProfile_CustomProfile); ok { + return x.CustomProfile + } + return "" +} + +func (m *OTDRConfigurationProfile) GetProfile() *OTDRConfiguration { + if x, ok := m.GetProfileType().(*OTDRConfigurationProfile_Profile); ok { + return x.Profile + } + return nil +} + +// XXX_OneofFuncs is for the internal use of the proto package. +func (*OTDRConfigurationProfile) 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 _OTDRConfigurationProfile_OneofMarshaler, _OTDRConfigurationProfile_OneofUnmarshaler, _OTDRConfigurationProfile_OneofSizer, []interface{}{ + (*OTDRConfigurationProfile_CustomProfile)(nil), + (*OTDRConfigurationProfile_Profile)(nil), + } +} + +func _OTDRConfigurationProfile_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*OTDRConfigurationProfile) + // profile_type + switch x := m.ProfileType.(type) { + case *OTDRConfigurationProfile_CustomProfile: + b.EncodeVarint(1<<3 | proto.WireBytes) + b.EncodeStringBytes(x.CustomProfile) + case *OTDRConfigurationProfile_Profile: + b.EncodeVarint(2<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Profile); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("OTDRConfigurationProfile.ProfileType has unexpected type %T", x) + } + return nil +} + +func _OTDRConfigurationProfile_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*OTDRConfigurationProfile) + switch tag { + case 1: // profile_type.custom_profile + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + x, err := b.DecodeStringBytes() + m.ProfileType = &OTDRConfigurationProfile_CustomProfile{x} + return true, err + case 2: // profile_type.profile + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(OTDRConfiguration) + err := b.DecodeMessage(msg) + m.ProfileType = &OTDRConfigurationProfile_Profile{msg} + return true, err + default: + return false, nil + } +} + +func _OTDRConfigurationProfile_OneofSizer(msg proto.Message) (n int) { + m := msg.(*OTDRConfigurationProfile) + // profile_type + switch x := m.ProfileType.(type) { + case *OTDRConfigurationProfile_CustomProfile: + n += proto.SizeVarint(1<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(len(x.CustomProfile))) + n += len(x.CustomProfile) + case *OTDRConfigurationProfile_Profile: + s := proto.Size(x.Profile) + n += proto.SizeVarint(2<<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 +} + // OTDR configuration options which can be set on the device. It is not required // that every field be set as some fields may not apply for a given // implementation. @@ -226,7 +345,7 @@ type OTDRConfiguration struct { func (m *OTDRConfiguration) Reset() { *m = OTDRConfiguration{} } func (m *OTDRConfiguration) String() string { return proto.CompactTextString(m) } func (*OTDRConfiguration) ProtoMessage() {} -func (*OTDRConfiguration) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } +func (*OTDRConfiguration) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} } type InitiateProgress struct { // The state of the OTDR trace requested. Note that this does not include @@ -237,7 +356,7 @@ type InitiateProgress struct { func (m *InitiateProgress) Reset() { *m = InitiateProgress{} } func (m *InitiateProgress) String() string { return proto.CompactTextString(m) } func (*InitiateProgress) ProtoMessage() {} -func (*InitiateProgress) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} } +func (*InitiateProgress) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} } type InitiateResults struct { // The local path in which the OTDR file is saved on the device. @@ -249,7 +368,7 @@ type InitiateResults struct { func (m *InitiateResults) Reset() { *m = InitiateResults{} } func (m *InitiateResults) String() string { return proto.CompactTextString(m) } func (*InitiateResults) ProtoMessage() {} -func (*InitiateResults) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} } +func (*InitiateResults) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} } func (m *InitiateResults) GetOtdrTrace() *OTDRTrace { if m != nil { @@ -266,7 +385,7 @@ type InitiateError struct { func (m *InitiateError) Reset() { *m = InitiateError{} } func (m *InitiateError) String() string { return proto.CompactTextString(m) } func (*InitiateError) ProtoMessage() {} -func (*InitiateError) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} } +func (*InitiateError) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} } // IntitiateResponse describes the possible response messages that will be // streamed after the RPC is initiated. While the OTDR is running, "progress" @@ -284,7 +403,7 @@ type InitiateResponse struct { func (m *InitiateResponse) Reset() { *m = InitiateResponse{} } func (m *InitiateResponse) String() string { return proto.CompactTextString(m) } func (*InitiateResponse) ProtoMessage() {} -func (*InitiateResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} } +func (*InitiateResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} } type isInitiateResponse_Response interface { isInitiateResponse_Response() @@ -442,7 +561,7 @@ type OTDRTrace struct { func (m *OTDRTrace) Reset() { *m = OTDRTrace{} } func (m *OTDRTrace) String() string { return proto.CompactTextString(m) } func (*OTDRTrace) ProtoMessage() {} -func (*OTDRTrace) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} } +func (*OTDRTrace) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} } func (m *OTDRTrace) GetEvents() []*Event { if m != nil { @@ -463,10 +582,11 @@ type Event struct { func (m *Event) Reset() { *m = Event{} } func (m *Event) String() string { return proto.CompactTextString(m) } func (*Event) ProtoMessage() {} -func (*Event) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} } +func (*Event) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} } func init() { proto.RegisterType((*InitiateRequest)(nil), "gnoi.optical.InitiateRequest") + proto.RegisterType((*OTDRConfigurationProfile)(nil), "gnoi.optical.OTDRConfigurationProfile") proto.RegisterType((*OTDRConfiguration)(nil), "gnoi.optical.OTDRConfiguration") proto.RegisterType((*InitiateProgress)(nil), "gnoi.optical.InitiateProgress") proto.RegisterType((*InitiateResults)(nil), "gnoi.optical.InitiateResults") @@ -598,69 +718,72 @@ var _OTDR_serviceDesc = grpc.ServiceDesc{ func init() { proto.RegisterFile("otdr/otdr.proto", fileDescriptor0) } var fileDescriptor0 = []byte{ - // 1021 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x94, 0x55, 0xed, 0x6e, 0xe2, 0x46, - 0x17, 0xc6, 0x7c, 0x05, 0x0e, 0x81, 0x78, 0x27, 0xfb, 0xc1, 0xbb, 0xaf, 0x36, 0x45, 0xee, 0x56, - 0x42, 0xcd, 0xca, 0x49, 0x49, 0x55, 0xa9, 0xd5, 0xb6, 0x12, 0x1b, 0x4c, 0x82, 0x02, 0x06, 0x8d, - 0x4d, 0x69, 0x7f, 0x8d, 0x0c, 0x4c, 0xc0, 0xaa, 0xf1, 0xb0, 0x9e, 0x21, 0xab, 0xdd, 0x6b, 0xe8, - 0x05, 0xf4, 0x06,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 0x0d, 0x3d, 0xbb, 0xf7, 0xdb, 0xf4, 0xf4, 0xe8, 0xb3, 0x9b, 0x1d, 0xaf, 0x63, 0xe6, 0x54, 0x7b, - 0x55, 0xfa, 0xfb, 0xa7, 0xc2, 0xa9, 0xf9, 0x8d, 0x79, 0x3a, 0x2d, 0xaa, 0x6f, 0xe9, 0xd9, 0xbf, - 0x01, 0x00, 0x00, 0xff, 0xff, 0xb6, 0x72, 0x56, 0x89, 0x9a, 0x07, 0x00, 0x00, + // 1065 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x94, 0x55, 0xdb, 0x6e, 0x1b, 0x45, + 0x18, 0xf6, 0xfa, 0xec, 0xdf, 0x87, 0x6c, 0x27, 0x3d, 0x98, 0xa2, 0x16, 0x6b, 0x29, 0x10, 0x91, + 0x6a, 0x13, 0x1c, 0x84, 0x04, 0x14, 0x24, 0x27, 0x5e, 0xc7, 0x56, 0x7c, 0xd2, 0xac, 0x8d, 0xe1, + 0x6a, 0xb4, 0xb6, 0x27, 0xf6, 0x8a, 0xf5, 0x8e, 0xbb, 0x33, 0x4e, 0xd5, 0x3e, 0x03, 0x17, 0x5c, + 0xf2, 0x02, 0xbc, 0x03, 0x0f, 0xc1, 0x15, 0xbc, 0x03, 0xcf, 0x81, 0x66, 0x76, 0x37, 0xb1, 0xdb, + 0x26, 0x88, 0x1b, 0xcb, 0xff, 0xf7, 0x7f, 0xff, 0xcc, 0x7f, 0xfa, 0x66, 0x61, 0x8f, 0x89, 0x79, + 0x70, 0x24, 0x7f, 0xcc, 0x75, 0xc0, 0x04, 0x43, 0xa5, 0x85, 0xcf, 0x5c, 0x93, 0xad, 0x85, 0x3b, + 0x73, 0xbc, 0xc7, 0xcf, 0x17, 0xae, 0x58, 0x6e, 0xa6, 0xe6, 0x8c, 0xad, 0x8e, 0xd8, 0x9a, 0xfa, + 0x33, 0xe6, 0x5f, 0xba, 0x8b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, 0xd8, 0xb2, 0x6d, 0x5d, 0x43, 0xf7, 0x41, + 0x6f, 0x37, 0x70, 0x73, 0xd2, 0xc0, 0x16, 0x69, 0x35, 0x3a, 0xdd, 0x31, 0x96, 0xe2, 0xf8, 0x73, + 0x6b, 0x40, 0x98, 0xf2, 0x35, 0xf3, 0x39, 0x45, 0x2f, 0x20, 0xbf, 0x8e, 0xba, 0x1f, 0x3d, 0x39, + 0x4f, 0xef, 0x9e, 0x51, 0x3b, 0x81, 0xaf, 0x23, 0xd0, 0xd7, 0x90, 0x8b, 0x9e, 0x8f, 0xa8, 0x5f, + 0x4f, 0x6e, 0x7b, 0x7a, 0x14, 0x49, 0xea, 0x24, 0xe2, 0xa3, 0x13, 0xc8, 0x50, 0xd9, 0x81, 0xe8, + 0x81, 0xf9, 0xf0, 0x8e, 0x26, 0xb5, 0x13, 0x38, 0xe4, 0x9e, 0x02, 0xe4, 0x83, 0x28, 0x73, 0xe3, + 0x8f, 0x24, 0x14, 0xae, 0xe7, 0x81, 0x0c, 0x28, 0x0b, 0x26, 0x1c, 0x8f, 0x78, 0x8c, 0x73, 0x32, + 0x9f, 0xaa, 0x62, 0x92, 0xb8, 0xa8, 0xc0, 0x2e, 0xe3, 0xbc, 0x39, 0x95, 0x32, 0x8a, 0x38, 0x91, + 0x44, 0x62, 0x19, 0x85, 0xa4, 0x50, 0x21, 0xe8, 0x04, 0x1e, 0x46, 0x59, 0x90, 0x80, 0x8a, 0x4d, + 0xe0, 0x5f, 0x1f, 0x99, 0x52, 0xec, 0xfd, 0xc8, 0x8b, 0x95, 0x33, 0x3a, 0xfa, 0x10, 0x90, 0x73, + 0x45, 0x03, 0x67, 0x41, 0x63, 0x36, 0xf9, 0x39, 0xd6, 0xd7, 0x5e, 0xe4, 0x09, 0xa9, 0x17, 0x2b, + 0x84, 0xe1, 0xc1, 0xdc, 0xe5, 0x33, 0x76, 0x45, 0x03, 0x3a, 0x27, 0xff, 0x5b, 0x73, 0xfb, 0x37, + 0xc1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 0xe3, 0x69, 0x56, 0x7d, 0xe5, 0x4f, 0xfe, 0x0d, 0x00, 0x00, 0xff, + 0xff, 0x93, 0xe0, 0xfa, 0x41, 0x34, 0x08, 0x00, 0x00, } diff --git a/otdr/otdr.proto b/otdr/otdr.proto index 23ca19dc..2b4ecf26 100644 --- a/otdr/otdr.proto +++ b/otdr/otdr.proto @@ -49,8 +49,9 @@ message InitiateRequest { // than one option may be specified if desired. repeated ResultsMethod results_method = 2; - // Describes the configuration used to perform an OTDR trace. - OTDRConfiguration configuration = 3; + // Describes the configuration used to perform an OTDR trace for the needed + // circumstance. + OTDRConfigurationProfile configuration = 3; // If specified, the device will label the OTDR trace so it can be recalled // later. For example, the initial OTDR trace measured during span @@ -58,6 +59,18 @@ message InitiateRequest { string label = 4; } +message OTDRConfigurationProfile { + oneof profile_type { + // A custom OTDR configuration profile which defines a set of OTDR + // configurations. The profiles are defined by the vendor implementation. + // (e.g., 'short', 'long', 'auto'). + string custom_profile = 1; + // OTDR configuration profile which allows the user to specify granular + // control of the various configuration options. + OTDRConfiguration profile = 2; + } +} + // OTDR configuration options which can be set on the device. It is not required // that every field be set as some fields may not apply for a given // implementation. From 26f0e6a1dcb751f2636026455fadd9a49d5deda8 Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 16:59:40 +0530 Subject: [PATCH 198/238] Revert "some description updates" This reverts commit 5d67eea16a16395dd409d040f9f806ab4eea8592. --- otdr/otdr.pb.go | 6 ++---- otdr/otdr.proto | 4 +--- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/otdr/otdr.pb.go b/otdr/otdr.pb.go index 125f0e62..121cb69b 100644 --- a/otdr/otdr.pb.go +++ b/otdr/otdr.pb.go @@ -113,8 +113,6 @@ func (InitiateRequest_ResultsMethod) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0, 0} } -// The State enum defines possible states that the OTDR trace may be in -// while running the operation. type InitiateProgress_State int32 const ( @@ -611,7 +609,7 @@ const _ = grpc.SupportPackageIsVersion3 // Client API for OTDR service type OTDRClient interface { - // Initiate triggers an optical time domain reflectometer (OTDR) trace to + // InitiateOTDR triggers an optical time domain reflectometer (OTDR) trace to // be run on a specified port. The results of the trace may be sent back in // the response or saved on the device to be retrieved later. If the // information is saved on the device a path to the file must be returned @@ -665,7 +663,7 @@ func (x *oTDRInitiateClient) Recv() (*InitiateResponse, error) { // Server API for OTDR service type OTDRServer interface { - // Initiate triggers an optical time domain reflectometer (OTDR) trace to + // InitiateOTDR triggers an optical time domain reflectometer (OTDR) trace to // be run on a specified port. The results of the trace may be sent back in // the response or saved on the device to be retrieved later. If the // information is saved on the device a path to the file must be returned diff --git a/otdr/otdr.proto b/otdr/otdr.proto index 2b4ecf26..29dad5f3 100644 --- a/otdr/otdr.proto +++ b/otdr/otdr.proto @@ -23,7 +23,7 @@ import "github.com/openconfig/gnoi/types/types.proto"; option (types.gnoi_version) = "0.1.0"; service OTDR { - // Initiate triggers an optical time domain reflectometer (OTDR) trace to + // InitiateOTDR triggers an optical time domain reflectometer (OTDR) trace to // be run on a specified port. The results of the trace may be sent back in // the response or saved on the device to be retrieved later. If the // information is saved on the device a path to the file must be returned @@ -111,8 +111,6 @@ enum FiberTypeProfile { } message InitiateProgress { - // The State enum defines possible states that the OTDR trace may be in - // while running the operation. enum State { UNKNOWN = 0; RUNNING = 1; // The OTDR is currently performing an OTDR trace. From 8b6c359a836682552e9c871b367f44ae654e5624 Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 16:59:40 +0530 Subject: [PATCH 199/238] Revert "update desc for wavelength_router AdjustPSDResponse" This reverts commit 3d21a11f893ef11a255d9284628cdbcc940a8e64. --- wavelength_router/wavelength_router.pb.go | 5 ----- wavelength_router/wavelength_router.proto | 5 ----- 2 files changed, 10 deletions(-) diff --git a/wavelength_router/wavelength_router.pb.go b/wavelength_router/wavelength_router.pb.go index 20b1763f..36a106fd 100644 --- a/wavelength_router/wavelength_router.pb.go +++ b/wavelength_router/wavelength_router.pb.go @@ -161,11 +161,6 @@ func (m *AdjustPSDError) String() string { return proto.CompactTextSt func (*AdjustPSDError) ProtoMessage() {} func (*AdjustPSDError) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} } -// AdjustPSDResponse describes the possible response messages that will be -// streamed after the RPC is initiated. While the OTDR is running, -// "progress" messages should be sent at a regular interval. When the -// adjustment is completed, an "error" message should be streamed if an -// error is encountered or the RPC should be terminated on success. type AdjustPSDResponse struct { // Types that are valid to be assigned to Response: // *AdjustPSDResponse_Progress diff --git a/wavelength_router/wavelength_router.proto b/wavelength_router/wavelength_router.proto index 63c68f71..48e2fb56 100644 --- a/wavelength_router/wavelength_router.proto +++ b/wavelength_router/wavelength_router.proto @@ -87,11 +87,6 @@ message AdjustPSDError { string detail = 2; } -// AdjustPSDResponse describes the possible response messages that will be -// streamed after the RPC is initiated. While the OTDR is running, -// "progress" messages should be sent at a regular interval. When the -// adjustment is completed, an "error" message should be streamed if an -// error is encountered or the RPC should be terminated on success. message AdjustPSDResponse { oneof response { AdjustPSDProgress progress = 1; From 1519e2084279e02eb701251780608c62555be778 Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 16:59:41 +0530 Subject: [PATCH 200/238] Revert "add wavelength_router service and migrate optical to just be an OTDR service" This reverts commit 86ed58af66bbf4d98b30c64ad645f51981847423. --- compile_protos.sh | 2 +- optical/optical.pb.go | 571 ++++++++++++++++ otdr/otdr.proto => optical/optical.proto | 57 +- otdr/otdr.pb.go | 787 ---------------------- wavelength_router/wavelength_router.pb.go | 507 -------------- wavelength_router/wavelength_router.proto | 98 --- 6 files changed, 587 insertions(+), 1435 deletions(-) create mode 100644 optical/optical.pb.go rename otdr/otdr.proto => optical/optical.proto (82%) delete mode 100644 otdr/otdr.pb.go delete mode 100644 wavelength_router/wavelength_router.pb.go delete mode 100644 wavelength_router/wavelength_router.proto diff --git a/compile_protos.sh b/compile_protos.sh index 74dfbee9..083b4fad 100755 --- a/compile_protos.sh +++ b/compile_protos.sh @@ -4,7 +4,7 @@ set -euo pipefail proto_imports=".:${GOPATH}/src/github.com/google/protobuf/src:${GOPATH}/src" # Go -for p in types common diag bgp cert file interface layer2 mpls system otdr wavelength_router; do +for p in types common diag bgp cert file interface layer2 mpls system optical; do protoc -I=$proto_imports --go_out=plugins=grpc:. $p/$p.proto done diff --git a/optical/optical.pb.go b/optical/optical.pb.go new file mode 100644 index 00000000..5fcf1a40 --- /dev/null +++ b/optical/optical.pb.go @@ -0,0 +1,571 @@ +// Code generated by protoc-gen-go. +// source: optical/optical.proto +// DO NOT EDIT! + +/* +Package gnoi_optical is a generated protocol buffer package. + +It is generated from these files: + optical/optical.proto + +It has these top-level messages: + OTDRRequest + OTDRConfigurationProfile + OTDRConfiguration + OTDRResponse + OTDRTrace + Event +*/ +package gnoi_optical + +import proto "github.com/golang/protobuf/proto" +import fmt "fmt" +import math "math" +import gnoi_types "github.com/openconfig/gnoi/types" + +import ( + context "golang.org/x/net/context" + grpc "google.golang.org/grpc" +) + +// 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 + +// Type definition for different profiles of fiber types. These match what is +// already defined in OpenConfig under the FIBER_TYPE_PROFILE identityref in +// openconfig-optical-amplifier.yang model. +type FiberTypeProfile int32 + +const ( + FiberTypeProfile_FTP_UNKNOWN FiberTypeProfile = 0 + FiberTypeProfile_FTP_DSF FiberTypeProfile = 1 + FiberTypeProfile_FTP_LEAF FiberTypeProfile = 2 + FiberTypeProfile_FTP_SSMF FiberTypeProfile = 3 + FiberTypeProfile_FTP_TWC FiberTypeProfile = 4 + FiberTypeProfile_FTP_TWRS FiberTypeProfile = 5 + FiberTypeProfile_FTP_LS FiberTypeProfile = 6 + FiberTypeProfile_FTP_TERAWAVE FiberTypeProfile = 7 + FiberTypeProfile_FTP_TERALIGHT FiberTypeProfile = 8 +) + +var FiberTypeProfile_name = map[int32]string{ + 0: "FTP_UNKNOWN", + 1: "FTP_DSF", + 2: "FTP_LEAF", + 3: "FTP_SSMF", + 4: "FTP_TWC", + 5: "FTP_TWRS", + 6: "FTP_LS", + 7: "FTP_TERAWAVE", + 8: "FTP_TERALIGHT", +} +var FiberTypeProfile_value = map[string]int32{ + "FTP_UNKNOWN": 0, + "FTP_DSF": 1, + "FTP_LEAF": 2, + "FTP_SSMF": 3, + "FTP_TWC": 4, + "FTP_TWRS": 5, + "FTP_LS": 6, + "FTP_TERAWAVE": 7, + "FTP_TERALIGHT": 8, +} + +func (x FiberTypeProfile) String() string { + return proto.EnumName(FiberTypeProfile_name, int32(x)) +} +func (FiberTypeProfile) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } + +type OTDRRequest_OTDRResultsMethod int32 + +const ( + OTDRRequest_RESULTS_UNKNOWN OTDRRequest_OTDRResultsMethod = 0 + OTDRRequest_RESULTS_TO_LOCAL_DISK OTDRRequest_OTDRResultsMethod = 1 + OTDRRequest_RESULTS_IN_RESPONSE OTDRRequest_OTDRResultsMethod = 2 +) + +var OTDRRequest_OTDRResultsMethod_name = map[int32]string{ + 0: "RESULTS_UNKNOWN", + 1: "RESULTS_TO_LOCAL_DISK", + 2: "RESULTS_IN_RESPONSE", +} +var OTDRRequest_OTDRResultsMethod_value = map[string]int32{ + "RESULTS_UNKNOWN": 0, + "RESULTS_TO_LOCAL_DISK": 1, + "RESULTS_IN_RESPONSE": 2, +} + +func (x OTDRRequest_OTDRResultsMethod) String() string { + return proto.EnumName(OTDRRequest_OTDRResultsMethod_name, int32(x)) +} +func (OTDRRequest_OTDRResultsMethod) EnumDescriptor() ([]byte, []int) { + return fileDescriptor0, []int{0, 0} +} + +type OTDRResponse_OTDRState int32 + +const ( + OTDRResponse_UNKNOWN OTDRResponse_OTDRState = 0 + OTDRResponse_RUNNING OTDRResponse_OTDRState = 1 + OTDRResponse_PENDING OTDRResponse_OTDRState = 2 + OTDRResponse_COMPLETE OTDRResponse_OTDRState = 3 +) + +var OTDRResponse_OTDRState_name = map[int32]string{ + 0: "UNKNOWN", + 1: "RUNNING", + 2: "PENDING", + 3: "COMPLETE", +} +var OTDRResponse_OTDRState_value = map[string]int32{ + "UNKNOWN": 0, + "RUNNING": 1, + "PENDING": 2, + "COMPLETE": 3, +} + +func (x OTDRResponse_OTDRState) String() string { + return proto.EnumName(OTDRResponse_OTDRState_name, int32(x)) +} +func (OTDRResponse_OTDRState) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{3, 0} } + +type OTDRRequest struct { + // Absolute path to the /components/component list member in the OpenConfig + // model corresponding to the port to perform the OTDR trace from. + // (e.g., /components/component[name=otdr-1-1]) + Component *gnoi_types.Path `protobuf:"bytes,1,opt,name=component" json:"component,omitempty"` + // Describes how the results of the OTDR trace should be made available. More + // than one option may be specified if desired. + ResultsMethod []OTDRRequest_OTDRResultsMethod `protobuf:"varint,2,rep,packed,name=results_method,json=resultsMethod,enum=gnoi.optical.OTDRRequest_OTDRResultsMethod" json:"results_method,omitempty"` + // Describes the configuration used to perform an OTDR trace for the needed + // circumstance. + Configuration *OTDRConfigurationProfile `protobuf:"bytes,3,opt,name=configuration" json:"configuration,omitempty"` + // If specified, the device will label the OTDR trace so it can be recalled + // later. For example, the initial OTDR trace measured during span + // commissioning might be labeled "baseline". + Label string `protobuf:"bytes,4,opt,name=label" json:"label,omitempty"` +} + +func (m *OTDRRequest) Reset() { *m = OTDRRequest{} } +func (m *OTDRRequest) String() string { return proto.CompactTextString(m) } +func (*OTDRRequest) ProtoMessage() {} +func (*OTDRRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } + +func (m *OTDRRequest) GetComponent() *gnoi_types.Path { + if m != nil { + return m.Component + } + return nil +} + +func (m *OTDRRequest) GetConfiguration() *OTDRConfigurationProfile { + if m != nil { + return m.Configuration + } + return nil +} + +type OTDRConfigurationProfile struct { + // Types that are valid to be assigned to ProfileType: + // *OTDRConfigurationProfile_CustomProfile + // *OTDRConfigurationProfile_Profile + ProfileType isOTDRConfigurationProfile_ProfileType `protobuf_oneof:"profile_type"` +} + +func (m *OTDRConfigurationProfile) Reset() { *m = OTDRConfigurationProfile{} } +func (m *OTDRConfigurationProfile) String() string { return proto.CompactTextString(m) } +func (*OTDRConfigurationProfile) ProtoMessage() {} +func (*OTDRConfigurationProfile) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } + +type isOTDRConfigurationProfile_ProfileType interface { + isOTDRConfigurationProfile_ProfileType() +} + +type OTDRConfigurationProfile_CustomProfile struct { + CustomProfile string `protobuf:"bytes,1,opt,name=custom_profile,json=customProfile,oneof"` +} +type OTDRConfigurationProfile_Profile struct { + Profile *OTDRConfiguration `protobuf:"bytes,2,opt,name=profile,oneof"` +} + +func (*OTDRConfigurationProfile_CustomProfile) isOTDRConfigurationProfile_ProfileType() {} +func (*OTDRConfigurationProfile_Profile) isOTDRConfigurationProfile_ProfileType() {} + +func (m *OTDRConfigurationProfile) GetProfileType() isOTDRConfigurationProfile_ProfileType { + if m != nil { + return m.ProfileType + } + return nil +} + +func (m *OTDRConfigurationProfile) GetCustomProfile() string { + if x, ok := m.GetProfileType().(*OTDRConfigurationProfile_CustomProfile); ok { + return x.CustomProfile + } + return "" +} + +func (m *OTDRConfigurationProfile) GetProfile() *OTDRConfiguration { + if x, ok := m.GetProfileType().(*OTDRConfigurationProfile_Profile); ok { + return x.Profile + } + return nil +} + +// XXX_OneofFuncs is for the internal use of the proto package. +func (*OTDRConfigurationProfile) 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 _OTDRConfigurationProfile_OneofMarshaler, _OTDRConfigurationProfile_OneofUnmarshaler, _OTDRConfigurationProfile_OneofSizer, []interface{}{ + (*OTDRConfigurationProfile_CustomProfile)(nil), + (*OTDRConfigurationProfile_Profile)(nil), + } +} + +func _OTDRConfigurationProfile_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*OTDRConfigurationProfile) + // profile_type + switch x := m.ProfileType.(type) { + case *OTDRConfigurationProfile_CustomProfile: + b.EncodeVarint(1<<3 | proto.WireBytes) + b.EncodeStringBytes(x.CustomProfile) + case *OTDRConfigurationProfile_Profile: + b.EncodeVarint(2<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Profile); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("OTDRConfigurationProfile.ProfileType has unexpected type %T", x) + } + return nil +} + +func _OTDRConfigurationProfile_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*OTDRConfigurationProfile) + switch tag { + case 1: // profile_type.custom_profile + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + x, err := b.DecodeStringBytes() + m.ProfileType = &OTDRConfigurationProfile_CustomProfile{x} + return true, err + case 2: // profile_type.profile + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(OTDRConfiguration) + err := b.DecodeMessage(msg) + m.ProfileType = &OTDRConfigurationProfile_Profile{msg} + return true, err + default: + return false, nil + } +} + +func _OTDRConfigurationProfile_OneofSizer(msg proto.Message) (n int) { + m := msg.(*OTDRConfigurationProfile) + // profile_type + switch x := m.ProfileType.(type) { + case *OTDRConfigurationProfile_CustomProfile: + n += proto.SizeVarint(1<<3 | proto.WireBytes) + n += proto.SizeVarint(uint64(len(x.CustomProfile))) + n += len(x.CustomProfile) + case *OTDRConfigurationProfile_Profile: + s := proto.Size(x.Profile) + n += proto.SizeVarint(2<<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 +} + +// OTDR configuration options which can be set on the device. It is not required +// that every field be set as some fields may not apply for a given +// implementation. +type OTDRConfiguration struct { + // The time in seconds in which the OTDR trace will run continuously to + // collect data. + AcquisitionTimeS uint32 `protobuf:"varint,1,opt,name=acquisition_time_s,json=acquisitionTimeS" json:"acquisition_time_s,omitempty"` + // The pulse width in nanoseconds which defines how long pulses sent by the + // OTDR will be during the test. + PulseWidthNs float32 `protobuf:"fixed32,2,opt,name=pulse_width_ns,json=pulseWidthNs" json:"pulse_width_ns,omitempty"` + // The wavelength in MHz that will be sent by the OTDR. This may be left blank + // if the OTDR only supports one wavelength. + WavelengthMhz uint64 `protobuf:"varint,3,opt,name=wavelength_mhz,json=wavelengthMhz" json:"wavelength_mhz,omitempty"` + // The maximum fiber distance range in meters that the OTDR trace will + // support. + RangeM float32 `protobuf:"fixed32,4,opt,name=range_m,json=rangeM" json:"range_m,omitempty"` + // The type of fiber that is being measured. + FiberType FiberTypeProfile `protobuf:"varint,5,opt,name=fiber_type,json=fiberType,enum=gnoi.optical.FiberTypeProfile" json:"fiber_type,omitempty"` +} + +func (m *OTDRConfiguration) Reset() { *m = OTDRConfiguration{} } +func (m *OTDRConfiguration) String() string { return proto.CompactTextString(m) } +func (*OTDRConfiguration) ProtoMessage() {} +func (*OTDRConfiguration) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} } + +type OTDRResponse struct { + // The local path in which the OTDR file is saved on the device. + LocalPath string `protobuf:"bytes,1,opt,name=local_path,json=localPath" json:"local_path,omitempty"` + // The OTDR trace details in a structured format. + OtdrTrace *OTDRTrace `protobuf:"bytes,2,opt,name=otdr_trace,json=otdrTrace" json:"otdr_trace,omitempty"` + // The state of the OTDR trace requested. Note that this does not include + // error states as these should be returned as a gRPC error. + State OTDRResponse_OTDRState `protobuf:"varint,3,opt,name=state,enum=gnoi.optical.OTDRResponse_OTDRState" json:"state,omitempty"` +} + +func (m *OTDRResponse) Reset() { *m = OTDRResponse{} } +func (m *OTDRResponse) String() string { return proto.CompactTextString(m) } +func (*OTDRResponse) ProtoMessage() {} +func (*OTDRResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} } + +func (m *OTDRResponse) GetOtdrTrace() *OTDRTrace { + if m != nil { + return m.OtdrTrace + } + return nil +} + +type OTDRTrace struct { + // Total measured loss of the fiber. + TotalLossDb float32 `protobuf:"fixed32,1,opt,name=total_loss_db,json=totalLossDb" json:"total_loss_db,omitempty"` + // Total measured length of the fiber in meters. + TotalLengthM float32 `protobuf:"fixed32,2,opt,name=total_length_m,json=totalLengthM" json:"total_length_m,omitempty"` + // Optical return loss of the fiber in dB. + OpticalReturnLossDb float32 `protobuf:"fixed32,3,opt,name=optical_return_loss_db,json=opticalReturnLossDb" json:"optical_return_loss_db,omitempty"` + // Average fiber loss (dB/km) + AverageLossDbKm float32 `protobuf:"fixed32,4,opt,name=average_loss_db_km,json=averageLossDbKm" json:"average_loss_db_km,omitempty"` + // Discovered fiber type, if the OTDR can infer this information. + DiscoveredFiberType FiberTypeProfile `protobuf:"varint,5,opt,name=discovered_fiber_type,json=discoveredFiberType,enum=gnoi.optical.FiberTypeProfile" json:"discovered_fiber_type,omitempty"` + Events []*Event `protobuf:"bytes,6,rep,name=events" json:"events,omitempty"` +} + +func (m *OTDRTrace) Reset() { *m = OTDRTrace{} } +func (m *OTDRTrace) String() string { return proto.CompactTextString(m) } +func (*OTDRTrace) ProtoMessage() {} +func (*OTDRTrace) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} } + +func (m *OTDRTrace) GetEvents() []*Event { + if m != nil { + return m.Events + } + return nil +} + +type Event struct { + // Distance at which the event occurred in meters. + DistanceM float32 `protobuf:"fixed32,1,opt,name=distance_m,json=distanceM" json:"distance_m,omitempty"` + // The fiber loss that occurred at the event in dB. + LossDb float32 `protobuf:"fixed32,2,opt,name=loss_db,json=lossDb" json:"loss_db,omitempty"` + // The reflection that occurred at the event in dB. + ReflectionDb float32 `protobuf:"fixed32,3,opt,name=reflection_db,json=reflectionDb" json:"reflection_db,omitempty"` +} + +func (m *Event) Reset() { *m = Event{} } +func (m *Event) String() string { return proto.CompactTextString(m) } +func (*Event) ProtoMessage() {} +func (*Event) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} } + +func init() { + proto.RegisterType((*OTDRRequest)(nil), "gnoi.optical.OTDRRequest") + proto.RegisterType((*OTDRConfigurationProfile)(nil), "gnoi.optical.OTDRConfigurationProfile") + proto.RegisterType((*OTDRConfiguration)(nil), "gnoi.optical.OTDRConfiguration") + proto.RegisterType((*OTDRResponse)(nil), "gnoi.optical.OTDRResponse") + proto.RegisterType((*OTDRTrace)(nil), "gnoi.optical.OTDRTrace") + proto.RegisterType((*Event)(nil), "gnoi.optical.Event") + proto.RegisterEnum("gnoi.optical.FiberTypeProfile", FiberTypeProfile_name, FiberTypeProfile_value) + proto.RegisterEnum("gnoi.optical.OTDRRequest_OTDRResultsMethod", OTDRRequest_OTDRResultsMethod_name, OTDRRequest_OTDRResultsMethod_value) + proto.RegisterEnum("gnoi.optical.OTDRResponse_OTDRState", OTDRResponse_OTDRState_name, OTDRResponse_OTDRState_value) +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion3 + +// Client API for Optical service + +type OpticalClient interface { + // InitiateOTDR triggers an optical time domain reflectometer (OTDR) trace to + // be run on a specified port. The results of the trace may be sent back in + // the response or saved on the device to be retrieved later. If the + // information is saved on the device a path to the file must be returned + // which can later be used by File.Get or File.TransferToRemote. The RPC + // should initiate the OTDR trace and wait until the OTDR trace has completed + // and the device has processed the results before returning. If the RPC is + // cancelled while in operation, the running OTDR trace should stop. As only + // one OTDR trace can take place concurrently, the RPC should error if a + // trace is currently running. + InitiateOTDR(ctx context.Context, in *OTDRRequest, opts ...grpc.CallOption) (Optical_InitiateOTDRClient, error) +} + +type opticalClient struct { + cc *grpc.ClientConn +} + +func NewOpticalClient(cc *grpc.ClientConn) OpticalClient { + return &opticalClient{cc} +} + +func (c *opticalClient) InitiateOTDR(ctx context.Context, in *OTDRRequest, opts ...grpc.CallOption) (Optical_InitiateOTDRClient, error) { + stream, err := grpc.NewClientStream(ctx, &_Optical_serviceDesc.Streams[0], c.cc, "/gnoi.optical.Optical/InitiateOTDR", opts...) + if err != nil { + return nil, err + } + x := &opticalInitiateOTDRClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type Optical_InitiateOTDRClient interface { + Recv() (*OTDRResponse, error) + grpc.ClientStream +} + +type opticalInitiateOTDRClient struct { + grpc.ClientStream +} + +func (x *opticalInitiateOTDRClient) Recv() (*OTDRResponse, error) { + m := new(OTDRResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +// Server API for Optical service + +type OpticalServer interface { + // InitiateOTDR triggers an optical time domain reflectometer (OTDR) trace to + // be run on a specified port. The results of the trace may be sent back in + // the response or saved on the device to be retrieved later. If the + // information is saved on the device a path to the file must be returned + // which can later be used by File.Get or File.TransferToRemote. The RPC + // should initiate the OTDR trace and wait until the OTDR trace has completed + // and the device has processed the results before returning. If the RPC is + // cancelled while in operation, the running OTDR trace should stop. As only + // one OTDR trace can take place concurrently, the RPC should error if a + // trace is currently running. + InitiateOTDR(*OTDRRequest, Optical_InitiateOTDRServer) error +} + +func RegisterOpticalServer(s *grpc.Server, srv OpticalServer) { + s.RegisterService(&_Optical_serviceDesc, srv) +} + +func _Optical_InitiateOTDR_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(OTDRRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(OpticalServer).InitiateOTDR(m, &opticalInitiateOTDRServer{stream}) +} + +type Optical_InitiateOTDRServer interface { + Send(*OTDRResponse) error + grpc.ServerStream +} + +type opticalInitiateOTDRServer struct { + grpc.ServerStream +} + +func (x *opticalInitiateOTDRServer) Send(m *OTDRResponse) error { + return x.ServerStream.SendMsg(m) +} + +var _Optical_serviceDesc = grpc.ServiceDesc{ + ServiceName: "gnoi.optical.Optical", + HandlerType: (*OpticalServer)(nil), + Methods: []grpc.MethodDesc{}, + Streams: []grpc.StreamDesc{ + { + StreamName: "InitiateOTDR", + Handler: _Optical_InitiateOTDR_Handler, + ServerStreams: true, + }, + }, + Metadata: fileDescriptor0, +} + +func init() { proto.RegisterFile("optical/optical.proto", fileDescriptor0) } + +var fileDescriptor0 = []byte{ + // 893 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x94, 0x55, 0xdd, 0x6e, 0xe2, 0x46, + 0x14, 0x8e, 0x61, 0x81, 0x70, 0xf8, 0x89, 0x77, 0x68, 0x1a, 0x36, 0x52, 0x5b, 0xe4, 0x6e, 0x5b, + 0xd4, 0xac, 0x48, 0xca, 0x4a, 0xbd, 0x68, 0xd5, 0xaa, 0xd9, 0x60, 0x36, 0x28, 0x60, 0xd0, 0xd8, + 0x29, 0x37, 0x95, 0x46, 0xc6, 0x0c, 0x60, 0xd5, 0x78, 0xbc, 0xf6, 0x90, 0xd5, 0xee, 0x53, 0xf4, + 0xb2, 0x8f, 0xd2, 0xe7, 0x68, 0x1f, 0xa1, 0x52, 0x9f, 0xa3, 0x9a, 0x19, 0x3b, 0x40, 0xd3, 0xa8, + 0xea, 0x0d, 0xf8, 0x7c, 0xe7, 0x3b, 0x87, 0xef, 0x9c, 0xef, 0x00, 0x70, 0xcc, 0x22, 0xee, 0x7b, + 0x6e, 0x70, 0x9e, 0xbe, 0x77, 0xa2, 0x98, 0x71, 0x86, 0xaa, 0xcb, 0x90, 0xf9, 0x9d, 0x14, 0x3b, + 0x7d, 0xb1, 0xf4, 0xf9, 0x6a, 0x33, 0xeb, 0x78, 0x6c, 0x7d, 0xce, 0x22, 0x1a, 0x7a, 0x2c, 0x5c, + 0xf8, 0xcb, 0x73, 0xc1, 0x39, 0xe7, 0xef, 0x22, 0x9a, 0xa8, 0x57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, 0xd5, 0xb9, 0x98, 0x15, 0xe5, 0x5f, 0xcb, 0xcb, 0xbf, + 0x03, 0x00, 0x00, 0xff, 0xff, 0x02, 0xcb, 0x72, 0x49, 0xaf, 0x06, 0x00, 0x00, +} diff --git a/otdr/otdr.proto b/optical/optical.proto similarity index 82% rename from otdr/otdr.proto rename to optical/optical.proto index 29dad5f3..ad0e13e6 100644 --- a/otdr/otdr.proto +++ b/optical/optical.proto @@ -22,7 +22,7 @@ import "github.com/openconfig/gnoi/types/types.proto"; option (types.gnoi_version) = "0.1.0"; -service OTDR { +service Optical { // InitiateOTDR triggers an optical time domain reflectometer (OTDR) trace to // be run on a specified port. The results of the trace may be sent back in // the response or saved on the device to be retrieved later. If the @@ -30,24 +30,26 @@ service OTDR { // which can later be used by File.Get or File.TransferToRemote. The RPC // should initiate the OTDR trace and wait until the OTDR trace has completed // and the device has processed the results before returning. If the RPC is - // cancelled while in operation, the running OTDR trace should stop. - rpc Initiate(InitiateRequest) returns (stream InitiateResponse) {} + // cancelled while in operation, the running OTDR trace should stop. As only + // one OTDR trace can take place concurrently, the RPC should error if a + // trace is currently running. + rpc InitiateOTDR(OTDRRequest) returns (stream OTDRResponse) {} } -message InitiateRequest { +message OTDRRequest { // Absolute path to the /components/component list member in the OpenConfig // model corresponding to the port to perform the OTDR trace from. // (e.g., /components/component[name=otdr-1-1]) types.Path component = 1; - enum ResultsMethod { + enum OTDRResultsMethod { RESULTS_UNKNOWN = 0; RESULTS_TO_LOCAL_DISK = 1; // Results saved to a file on the device. RESULTS_IN_RESPONSE = 2; // Results sent back in the response. } // Describes how the results of the OTDR trace should be made available. More // than one option may be specified if desired. - repeated ResultsMethod results_method = 2; + repeated OTDRResultsMethod results_method = 2; // Describes the configuration used to perform an OTDR trace for the needed // circumstance. @@ -110,8 +112,12 @@ enum FiberTypeProfile { FTP_TERALIGHT = 8; // TeraLight fiber. } -message InitiateProgress { - enum State { +message OTDRResponse { + // The local path in which the OTDR file is saved on the device. + string local_path = 1; + // The OTDR trace details in a structured format. + OTDRTrace otdr_trace = 2; + enum OTDRState { UNKNOWN = 0; RUNNING = 1; // The OTDR is currently performing an OTDR trace. PENDING = 2; // The OTDR is pending underlying resources being available. @@ -119,40 +125,7 @@ message InitiateProgress { } // The state of the OTDR trace requested. Note that this does not include // error states as these should be returned as a gRPC error. - State state = 1; -} - -message InitiateResults { - // The local path in which the OTDR file is saved on the device. - string local_path = 1; - // The OTDR trace details in a structured format. - OTDRTrace otdr_trace = 2; -} - -message InitiateError { - enum Type { - // An unspecified error. Must use the detail value to describe the issue. - UNSPECIFIED = 0; - // An existing OTDR trace is already in progress. - ALREADY_IN_PROGRESS = 1; - // The OTDR hardware has failed and cannot complete an OTDR trace. - HARDWARE_FAILURE = 2; - } - Type type = 1; - string detail = 2; -} - -// IntitiateResponse describes the possible response messages that will be -// streamed after the RPC is initiated. While the OTDR is running, "progress" -// messages should be sent at a regular interval. When the OTDR trace is -// completed, a final "results" or "error" message should be streamed before -// the RPC is terminated. -message InitiateResponse { - oneof response { - InitiateProgress progress = 1; - InitiateResults results = 2; - InitiateError error = 3; - } + OTDRState state = 3; } message OTDRTrace { diff --git a/otdr/otdr.pb.go b/otdr/otdr.pb.go deleted file mode 100644 index 121cb69b..00000000 --- a/otdr/otdr.pb.go +++ /dev/null @@ -1,787 +0,0 @@ -// Code generated by protoc-gen-go. -// source: otdr/otdr.proto -// DO NOT EDIT! - -/* -Package gnoi_optical is a generated protocol buffer package. - -It is generated from these files: - otdr/otdr.proto - -It has these top-level messages: - InitiateRequest - OTDRConfigurationProfile - OTDRConfiguration - InitiateProgress - InitiateResults - InitiateError - InitiateResponse - OTDRTrace - Event -*/ -package gnoi_optical - -import proto "github.com/golang/protobuf/proto" -import fmt "fmt" -import math "math" -import gnoi_types "github.com/openconfig/gnoi/types" - -import ( - context "golang.org/x/net/context" - grpc "google.golang.org/grpc" -) - -// 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 - -// Type definition for different profiles of fiber types. These match what is -// already defined in OpenConfig under the FIBER_TYPE_PROFILE identityref in -// openconfig-optical-amplifier.yang model. -type FiberTypeProfile int32 - -const ( - FiberTypeProfile_FTP_UNKNOWN FiberTypeProfile = 0 - FiberTypeProfile_FTP_DSF FiberTypeProfile = 1 - FiberTypeProfile_FTP_LEAF FiberTypeProfile = 2 - FiberTypeProfile_FTP_SSMF FiberTypeProfile = 3 - FiberTypeProfile_FTP_TWC FiberTypeProfile = 4 - FiberTypeProfile_FTP_TWRS FiberTypeProfile = 5 - FiberTypeProfile_FTP_LS FiberTypeProfile = 6 - FiberTypeProfile_FTP_TERAWAVE FiberTypeProfile = 7 - FiberTypeProfile_FTP_TERALIGHT FiberTypeProfile = 8 -) - -var FiberTypeProfile_name = map[int32]string{ - 0: "FTP_UNKNOWN", - 1: "FTP_DSF", - 2: "FTP_LEAF", - 3: "FTP_SSMF", - 4: "FTP_TWC", - 5: "FTP_TWRS", - 6: "FTP_LS", - 7: "FTP_TERAWAVE", - 8: "FTP_TERALIGHT", -} -var FiberTypeProfile_value = map[string]int32{ - "FTP_UNKNOWN": 0, - "FTP_DSF": 1, - "FTP_LEAF": 2, - "FTP_SSMF": 3, - "FTP_TWC": 4, - "FTP_TWRS": 5, - "FTP_LS": 6, - "FTP_TERAWAVE": 7, - "FTP_TERALIGHT": 8, -} - -func (x FiberTypeProfile) String() string { - return proto.EnumName(FiberTypeProfile_name, int32(x)) -} -func (FiberTypeProfile) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } - -type InitiateRequest_ResultsMethod int32 - -const ( - InitiateRequest_RESULTS_UNKNOWN InitiateRequest_ResultsMethod = 0 - InitiateRequest_RESULTS_TO_LOCAL_DISK InitiateRequest_ResultsMethod = 1 - InitiateRequest_RESULTS_IN_RESPONSE InitiateRequest_ResultsMethod = 2 -) - -var InitiateRequest_ResultsMethod_name = map[int32]string{ - 0: "RESULTS_UNKNOWN", - 1: "RESULTS_TO_LOCAL_DISK", - 2: "RESULTS_IN_RESPONSE", -} -var InitiateRequest_ResultsMethod_value = map[string]int32{ - "RESULTS_UNKNOWN": 0, - "RESULTS_TO_LOCAL_DISK": 1, - "RESULTS_IN_RESPONSE": 2, -} - -func (x InitiateRequest_ResultsMethod) String() string { - return proto.EnumName(InitiateRequest_ResultsMethod_name, int32(x)) -} -func (InitiateRequest_ResultsMethod) EnumDescriptor() ([]byte, []int) { - return fileDescriptor0, []int{0, 0} -} - -type InitiateProgress_State int32 - -const ( - InitiateProgress_UNKNOWN InitiateProgress_State = 0 - InitiateProgress_RUNNING InitiateProgress_State = 1 - InitiateProgress_PENDING InitiateProgress_State = 2 - InitiateProgress_COMPLETE InitiateProgress_State = 3 -) - -var InitiateProgress_State_name = map[int32]string{ - 0: "UNKNOWN", - 1: "RUNNING", - 2: "PENDING", - 3: "COMPLETE", -} -var InitiateProgress_State_value = map[string]int32{ - "UNKNOWN": 0, - "RUNNING": 1, - "PENDING": 2, - "COMPLETE": 3, -} - -func (x InitiateProgress_State) String() string { - return proto.EnumName(InitiateProgress_State_name, int32(x)) -} -func (InitiateProgress_State) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{3, 0} } - -type InitiateError_Type int32 - -const ( - // An unspecified error. Must use the detail value to describe the issue. - InitiateError_UNSPECIFIED InitiateError_Type = 0 - // An existing OTDR trace is already in progress. - InitiateError_ALREADY_IN_PROGRESS InitiateError_Type = 1 - // The OTDR hardware has failed and cannot complete an OTDR trace. - InitiateError_HARDWARE_FAILURE InitiateError_Type = 2 -) - -var InitiateError_Type_name = map[int32]string{ - 0: "UNSPECIFIED", - 1: "ALREADY_IN_PROGRESS", - 2: "HARDWARE_FAILURE", -} -var InitiateError_Type_value = map[string]int32{ - "UNSPECIFIED": 0, - "ALREADY_IN_PROGRESS": 1, - "HARDWARE_FAILURE": 2, -} - -func (x InitiateError_Type) String() string { - return proto.EnumName(InitiateError_Type_name, int32(x)) -} -func (InitiateError_Type) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{5, 0} } - -type InitiateRequest struct { - // Absolute path to the /components/component list member in the OpenConfig - // model corresponding to the port to perform the OTDR trace from. - // (e.g., /components/component[name=otdr-1-1]) - Component *gnoi_types.Path `protobuf:"bytes,1,opt,name=component" json:"component,omitempty"` - // Describes how the results of the OTDR trace should be made available. More - // than one option may be specified if desired. - ResultsMethod []InitiateRequest_ResultsMethod `protobuf:"varint,2,rep,packed,name=results_method,json=resultsMethod,enum=gnoi.optical.InitiateRequest_ResultsMethod" json:"results_method,omitempty"` - // Describes the configuration used to perform an OTDR trace for the needed - // circumstance. - Configuration *OTDRConfigurationProfile `protobuf:"bytes,3,opt,name=configuration" json:"configuration,omitempty"` - // If specified, the device will label the OTDR trace so it can be recalled - // later. For example, the initial OTDR trace measured during span - // commissioning might be labeled "baseline". - Label string `protobuf:"bytes,4,opt,name=label" json:"label,omitempty"` -} - -func (m *InitiateRequest) Reset() { *m = InitiateRequest{} } -func (m *InitiateRequest) String() string { return proto.CompactTextString(m) } -func (*InitiateRequest) ProtoMessage() {} -func (*InitiateRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } - -func (m *InitiateRequest) GetComponent() *gnoi_types.Path { - if m != nil { - return m.Component - } - return nil -} - -func (m *InitiateRequest) GetConfiguration() *OTDRConfigurationProfile { - if m != nil { - return m.Configuration - } - return nil -} - -type OTDRConfigurationProfile struct { - // Types that are valid to be assigned to ProfileType: - // *OTDRConfigurationProfile_CustomProfile - // *OTDRConfigurationProfile_Profile - ProfileType isOTDRConfigurationProfile_ProfileType `protobuf_oneof:"profile_type"` -} - -func (m *OTDRConfigurationProfile) Reset() { *m = OTDRConfigurationProfile{} } -func (m *OTDRConfigurationProfile) String() string { return proto.CompactTextString(m) } -func (*OTDRConfigurationProfile) ProtoMessage() {} -func (*OTDRConfigurationProfile) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } - -type isOTDRConfigurationProfile_ProfileType interface { - isOTDRConfigurationProfile_ProfileType() -} - -type OTDRConfigurationProfile_CustomProfile struct { - CustomProfile string `protobuf:"bytes,1,opt,name=custom_profile,json=customProfile,oneof"` -} -type OTDRConfigurationProfile_Profile struct { - Profile *OTDRConfiguration `protobuf:"bytes,2,opt,name=profile,oneof"` -} - -func (*OTDRConfigurationProfile_CustomProfile) isOTDRConfigurationProfile_ProfileType() {} -func (*OTDRConfigurationProfile_Profile) isOTDRConfigurationProfile_ProfileType() {} - -func (m *OTDRConfigurationProfile) GetProfileType() isOTDRConfigurationProfile_ProfileType { - if m != nil { - return m.ProfileType - } - return nil -} - -func (m *OTDRConfigurationProfile) GetCustomProfile() string { - if x, ok := m.GetProfileType().(*OTDRConfigurationProfile_CustomProfile); ok { - return x.CustomProfile - } - return "" -} - -func (m *OTDRConfigurationProfile) GetProfile() *OTDRConfiguration { - if x, ok := m.GetProfileType().(*OTDRConfigurationProfile_Profile); ok { - return x.Profile - } - return nil -} - -// XXX_OneofFuncs is for the internal use of the proto package. -func (*OTDRConfigurationProfile) 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 _OTDRConfigurationProfile_OneofMarshaler, _OTDRConfigurationProfile_OneofUnmarshaler, _OTDRConfigurationProfile_OneofSizer, []interface{}{ - (*OTDRConfigurationProfile_CustomProfile)(nil), - (*OTDRConfigurationProfile_Profile)(nil), - } -} - -func _OTDRConfigurationProfile_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { - m := msg.(*OTDRConfigurationProfile) - // profile_type - switch x := m.ProfileType.(type) { - case *OTDRConfigurationProfile_CustomProfile: - b.EncodeVarint(1<<3 | proto.WireBytes) - b.EncodeStringBytes(x.CustomProfile) - case *OTDRConfigurationProfile_Profile: - b.EncodeVarint(2<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.Profile); err != nil { - return err - } - case nil: - default: - return fmt.Errorf("OTDRConfigurationProfile.ProfileType has unexpected type %T", x) - } - return nil -} - -func _OTDRConfigurationProfile_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { - m := msg.(*OTDRConfigurationProfile) - switch tag { - case 1: // profile_type.custom_profile - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - x, err := b.DecodeStringBytes() - m.ProfileType = &OTDRConfigurationProfile_CustomProfile{x} - return true, err - case 2: // profile_type.profile - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(OTDRConfiguration) - err := b.DecodeMessage(msg) - m.ProfileType = &OTDRConfigurationProfile_Profile{msg} - return true, err - default: - return false, nil - } -} - -func _OTDRConfigurationProfile_OneofSizer(msg proto.Message) (n int) { - m := msg.(*OTDRConfigurationProfile) - // profile_type - switch x := m.ProfileType.(type) { - case *OTDRConfigurationProfile_CustomProfile: - n += proto.SizeVarint(1<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(len(x.CustomProfile))) - n += len(x.CustomProfile) - case *OTDRConfigurationProfile_Profile: - s := proto.Size(x.Profile) - n += proto.SizeVarint(2<<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 -} - -// OTDR configuration options which can be set on the device. It is not required -// that every field be set as some fields may not apply for a given -// implementation. -type OTDRConfiguration struct { - // The time in seconds in which the OTDR trace will run continuously to - // collect data. - AcquisitionTimeS uint32 `protobuf:"varint,1,opt,name=acquisition_time_s,json=acquisitionTimeS" json:"acquisition_time_s,omitempty"` - // The pulse width in nanoseconds which defines how long pulses sent by the - // OTDR will be during the test. - PulseWidthNs float32 `protobuf:"fixed32,2,opt,name=pulse_width_ns,json=pulseWidthNs" json:"pulse_width_ns,omitempty"` - // The wavelength in MHz that will be sent by the OTDR. This may be left blank - // if the OTDR only supports one wavelength. - WavelengthMhz uint64 `protobuf:"varint,3,opt,name=wavelength_mhz,json=wavelengthMhz" json:"wavelength_mhz,omitempty"` - // The maximum fiber distance range in meters that the OTDR trace will - // support. - RangeM float32 `protobuf:"fixed32,4,opt,name=range_m,json=rangeM" json:"range_m,omitempty"` - // The type of fiber that is being measured. - FiberType FiberTypeProfile `protobuf:"varint,5,opt,name=fiber_type,json=fiberType,enum=gnoi.optical.FiberTypeProfile" json:"fiber_type,omitempty"` -} - -func (m *OTDRConfiguration) Reset() { *m = OTDRConfiguration{} } -func (m *OTDRConfiguration) String() string { return proto.CompactTextString(m) } -func (*OTDRConfiguration) ProtoMessage() {} -func (*OTDRConfiguration) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} } - -type InitiateProgress struct { - // The state of the OTDR trace requested. Note that this does not include - // error states as these should be returned as a gRPC error. - State InitiateProgress_State `protobuf:"varint,1,opt,name=state,enum=gnoi.optical.InitiateProgress_State" json:"state,omitempty"` -} - -func (m *InitiateProgress) Reset() { *m = InitiateProgress{} } -func (m *InitiateProgress) String() string { return proto.CompactTextString(m) } -func (*InitiateProgress) ProtoMessage() {} -func (*InitiateProgress) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} } - -type InitiateResults struct { - // The local path in which the OTDR file is saved on the device. - LocalPath string `protobuf:"bytes,1,opt,name=local_path,json=localPath" json:"local_path,omitempty"` - // The OTDR trace details in a structured format. - OtdrTrace *OTDRTrace `protobuf:"bytes,2,opt,name=otdr_trace,json=otdrTrace" json:"otdr_trace,omitempty"` -} - -func (m *InitiateResults) Reset() { *m = InitiateResults{} } -func (m *InitiateResults) String() string { return proto.CompactTextString(m) } -func (*InitiateResults) ProtoMessage() {} -func (*InitiateResults) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} } - -func (m *InitiateResults) GetOtdrTrace() *OTDRTrace { - if m != nil { - return m.OtdrTrace - } - return nil -} - -type InitiateError struct { - Type InitiateError_Type `protobuf:"varint,1,opt,name=type,enum=gnoi.optical.InitiateError_Type" json:"type,omitempty"` - Detail string `protobuf:"bytes,2,opt,name=detail" json:"detail,omitempty"` -} - -func (m *InitiateError) Reset() { *m = InitiateError{} } -func (m *InitiateError) String() string { return proto.CompactTextString(m) } -func (*InitiateError) ProtoMessage() {} -func (*InitiateError) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} } - -// IntitiateResponse describes the possible response messages that will be -// streamed after the RPC is initiated. While the OTDR is running, "progress" -// messages should be sent at a regular interval. When the OTDR trace is -// completed, a final "results" or "error" message should be streamed before -// the RPC is terminated. -type InitiateResponse struct { - // Types that are valid to be assigned to Response: - // *InitiateResponse_Progress - // *InitiateResponse_Results - // *InitiateResponse_Error - Response isInitiateResponse_Response `protobuf_oneof:"response"` -} - -func (m *InitiateResponse) Reset() { *m = InitiateResponse{} } -func (m *InitiateResponse) String() string { return proto.CompactTextString(m) } -func (*InitiateResponse) ProtoMessage() {} -func (*InitiateResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} } - -type isInitiateResponse_Response interface { - isInitiateResponse_Response() -} - -type InitiateResponse_Progress struct { - Progress *InitiateProgress `protobuf:"bytes,1,opt,name=progress,oneof"` -} -type InitiateResponse_Results struct { - Results *InitiateResults `protobuf:"bytes,2,opt,name=results,oneof"` -} -type InitiateResponse_Error struct { - Error *InitiateError `protobuf:"bytes,3,opt,name=error,oneof"` -} - -func (*InitiateResponse_Progress) isInitiateResponse_Response() {} -func (*InitiateResponse_Results) isInitiateResponse_Response() {} -func (*InitiateResponse_Error) isInitiateResponse_Response() {} - -func (m *InitiateResponse) GetResponse() isInitiateResponse_Response { - if m != nil { - return m.Response - } - return nil -} - -func (m *InitiateResponse) GetProgress() *InitiateProgress { - if x, ok := m.GetResponse().(*InitiateResponse_Progress); ok { - return x.Progress - } - return nil -} - -func (m *InitiateResponse) GetResults() *InitiateResults { - if x, ok := m.GetResponse().(*InitiateResponse_Results); ok { - return x.Results - } - return nil -} - -func (m *InitiateResponse) GetError() *InitiateError { - if x, ok := m.GetResponse().(*InitiateResponse_Error); ok { - return x.Error - } - return nil -} - -// XXX_OneofFuncs is for the internal use of the proto package. -func (*InitiateResponse) 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 _InitiateResponse_OneofMarshaler, _InitiateResponse_OneofUnmarshaler, _InitiateResponse_OneofSizer, []interface{}{ - (*InitiateResponse_Progress)(nil), - (*InitiateResponse_Results)(nil), - (*InitiateResponse_Error)(nil), - } -} - -func _InitiateResponse_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { - m := msg.(*InitiateResponse) - // response - switch x := m.Response.(type) { - case *InitiateResponse_Progress: - b.EncodeVarint(1<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.Progress); err != nil { - return err - } - case *InitiateResponse_Results: - b.EncodeVarint(2<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.Results); err != nil { - return err - } - case *InitiateResponse_Error: - b.EncodeVarint(3<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.Error); err != nil { - return err - } - case nil: - default: - return fmt.Errorf("InitiateResponse.Response has unexpected type %T", x) - } - return nil -} - -func _InitiateResponse_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { - m := msg.(*InitiateResponse) - switch tag { - case 1: // response.progress - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(InitiateProgress) - err := b.DecodeMessage(msg) - m.Response = &InitiateResponse_Progress{msg} - return true, err - case 2: // response.results - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(InitiateResults) - err := b.DecodeMessage(msg) - m.Response = &InitiateResponse_Results{msg} - return true, err - case 3: // response.error - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(InitiateError) - err := b.DecodeMessage(msg) - m.Response = &InitiateResponse_Error{msg} - return true, err - default: - return false, nil - } -} - -func _InitiateResponse_OneofSizer(msg proto.Message) (n int) { - m := msg.(*InitiateResponse) - // response - switch x := m.Response.(type) { - case *InitiateResponse_Progress: - s := proto.Size(x.Progress) - n += proto.SizeVarint(1<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *InitiateResponse_Results: - s := proto.Size(x.Results) - n += proto.SizeVarint(2<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *InitiateResponse_Error: - s := proto.Size(x.Error) - n += proto.SizeVarint(3<<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 -} - -type OTDRTrace struct { - // Total measured loss of the fiber. - TotalLossDb float32 `protobuf:"fixed32,1,opt,name=total_loss_db,json=totalLossDb" json:"total_loss_db,omitempty"` - // Total measured length of the fiber in meters. - TotalLengthM float32 `protobuf:"fixed32,2,opt,name=total_length_m,json=totalLengthM" json:"total_length_m,omitempty"` - // Optical return loss of the fiber in dB. - OpticalReturnLossDb float32 `protobuf:"fixed32,3,opt,name=optical_return_loss_db,json=opticalReturnLossDb" json:"optical_return_loss_db,omitempty"` - // Average fiber loss (dB/km) - AverageLossDbKm float32 `protobuf:"fixed32,4,opt,name=average_loss_db_km,json=averageLossDbKm" json:"average_loss_db_km,omitempty"` - // Discovered fiber type, if the OTDR can infer this information. - DiscoveredFiberType FiberTypeProfile `protobuf:"varint,5,opt,name=discovered_fiber_type,json=discoveredFiberType,enum=gnoi.optical.FiberTypeProfile" json:"discovered_fiber_type,omitempty"` - Events []*Event `protobuf:"bytes,6,rep,name=events" json:"events,omitempty"` -} - -func (m *OTDRTrace) Reset() { *m = OTDRTrace{} } -func (m *OTDRTrace) String() string { return proto.CompactTextString(m) } -func (*OTDRTrace) ProtoMessage() {} -func (*OTDRTrace) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} } - -func (m *OTDRTrace) GetEvents() []*Event { - if m != nil { - return m.Events - } - return nil -} - -type Event struct { - // Distance at which the event occurred in meters. - DistanceM float32 `protobuf:"fixed32,1,opt,name=distance_m,json=distanceM" json:"distance_m,omitempty"` - // The fiber loss that occurred at the event in dB. - LossDb float32 `protobuf:"fixed32,2,opt,name=loss_db,json=lossDb" json:"loss_db,omitempty"` - // The reflection that occurred at the event in dB. - ReflectionDb float32 `protobuf:"fixed32,3,opt,name=reflection_db,json=reflectionDb" json:"reflection_db,omitempty"` -} - -func (m *Event) Reset() { *m = Event{} } -func (m *Event) String() string { return proto.CompactTextString(m) } -func (*Event) ProtoMessage() {} -func (*Event) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} } - -func init() { - proto.RegisterType((*InitiateRequest)(nil), "gnoi.optical.InitiateRequest") - proto.RegisterType((*OTDRConfigurationProfile)(nil), "gnoi.optical.OTDRConfigurationProfile") - proto.RegisterType((*OTDRConfiguration)(nil), "gnoi.optical.OTDRConfiguration") - proto.RegisterType((*InitiateProgress)(nil), "gnoi.optical.InitiateProgress") - proto.RegisterType((*InitiateResults)(nil), "gnoi.optical.InitiateResults") - proto.RegisterType((*InitiateError)(nil), "gnoi.optical.InitiateError") - proto.RegisterType((*InitiateResponse)(nil), "gnoi.optical.InitiateResponse") - proto.RegisterType((*OTDRTrace)(nil), "gnoi.optical.OTDRTrace") - proto.RegisterType((*Event)(nil), "gnoi.optical.Event") - proto.RegisterEnum("gnoi.optical.FiberTypeProfile", FiberTypeProfile_name, FiberTypeProfile_value) - proto.RegisterEnum("gnoi.optical.InitiateRequest_ResultsMethod", InitiateRequest_ResultsMethod_name, InitiateRequest_ResultsMethod_value) - proto.RegisterEnum("gnoi.optical.InitiateProgress_State", InitiateProgress_State_name, InitiateProgress_State_value) - proto.RegisterEnum("gnoi.optical.InitiateError_Type", InitiateError_Type_name, InitiateError_Type_value) -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion3 - -// Client API for OTDR service - -type OTDRClient interface { - // InitiateOTDR triggers an optical time domain reflectometer (OTDR) trace to - // be run on a specified port. The results of the trace may be sent back in - // the response or saved on the device to be retrieved later. If the - // information is saved on the device a path to the file must be returned - // which can later be used by File.Get or File.TransferToRemote. The RPC - // should initiate the OTDR trace and wait until the OTDR trace has completed - // and the device has processed the results before returning. If the RPC is - // cancelled while in operation, the running OTDR trace should stop. - Initiate(ctx context.Context, in *InitiateRequest, opts ...grpc.CallOption) (OTDR_InitiateClient, error) -} - -type oTDRClient struct { - cc *grpc.ClientConn -} - -func NewOTDRClient(cc *grpc.ClientConn) OTDRClient { - return &oTDRClient{cc} -} - -func (c *oTDRClient) Initiate(ctx context.Context, in *InitiateRequest, opts ...grpc.CallOption) (OTDR_InitiateClient, error) { - stream, err := grpc.NewClientStream(ctx, &_OTDR_serviceDesc.Streams[0], c.cc, "/gnoi.optical.OTDR/Initiate", opts...) - if err != nil { - return nil, err - } - x := &oTDRInitiateClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type OTDR_InitiateClient interface { - Recv() (*InitiateResponse, error) - grpc.ClientStream -} - -type oTDRInitiateClient struct { - grpc.ClientStream -} - -func (x *oTDRInitiateClient) Recv() (*InitiateResponse, error) { - m := new(InitiateResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -// Server API for OTDR service - -type OTDRServer interface { - // InitiateOTDR triggers an optical time domain reflectometer (OTDR) trace to - // be run on a specified port. The results of the trace may be sent back in - // the response or saved on the device to be retrieved later. If the - // information is saved on the device a path to the file must be returned - // which can later be used by File.Get or File.TransferToRemote. The RPC - // should initiate the OTDR trace and wait until the OTDR trace has completed - // and the device has processed the results before returning. If the RPC is - // cancelled while in operation, the running OTDR trace should stop. - Initiate(*InitiateRequest, OTDR_InitiateServer) error -} - -func RegisterOTDRServer(s *grpc.Server, srv OTDRServer) { - s.RegisterService(&_OTDR_serviceDesc, srv) -} - -func _OTDR_Initiate_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(InitiateRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(OTDRServer).Initiate(m, &oTDRInitiateServer{stream}) -} - -type OTDR_InitiateServer interface { - Send(*InitiateResponse) error - grpc.ServerStream -} - -type oTDRInitiateServer struct { - grpc.ServerStream -} - -func (x *oTDRInitiateServer) Send(m *InitiateResponse) error { - return x.ServerStream.SendMsg(m) -} - -var _OTDR_serviceDesc = grpc.ServiceDesc{ - ServiceName: "gnoi.optical.OTDR", - HandlerType: (*OTDRServer)(nil), - Methods: []grpc.MethodDesc{}, - Streams: []grpc.StreamDesc{ - { - StreamName: "Initiate", - Handler: _OTDR_Initiate_Handler, - ServerStreams: true, - }, - }, - Metadata: fileDescriptor0, -} - -func init() { proto.RegisterFile("otdr/otdr.proto", fileDescriptor0) } - -var fileDescriptor0 = []byte{ - // 1065 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x94, 0x55, 0xdb, 0x6e, 0x1b, 0x45, - 0x18, 0xf6, 0xfa, 0xec, 0xdf, 0x87, 0x6c, 0x27, 0x3d, 0x98, 0xa2, 0x16, 0x6b, 0x29, 0x10, 0x91, - 0x6a, 0x13, 0x1c, 0x84, 0x04, 0x14, 0x24, 0x27, 0x5e, 0xc7, 0x56, 0x7c, 0xd2, 0xac, 0x8d, 0xe1, - 0x6a, 0xb4, 0xb6, 0x27, 0xf6, 0x8a, 0xf5, 0x8e, 0xbb, 0x33, 0x4e, 0xd5, 0x3e, 0x03, 0x17, 0x5c, - 0xf2, 0x02, 0xbc, 0x03, 0x0f, 0xc1, 0x15, 0xbc, 0x03, 0xcf, 0x81, 0x66, 0x76, 0x37, 0xb1, 0xdb, - 0x26, 0x88, 0x1b, 0xc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c1, 0xd2, 0x73, 0xe8, 0x1e, 0x94, 0x63, 0xa4, 0xdb, 0x39, 0x6f, - 0x8f, 0xf4, 0x7c, 0x7d, 0x0c, 0x69, 0xb9, 0x3a, 0xa8, 0x07, 0xf9, 0x78, 0xd3, 0xd0, 0x93, 0x3b, - 0xbf, 0x9a, 0x8f, 0x9f, 0xde, 0xba, 0xd9, 0xe1, 0x3a, 0x26, 0x8e, 0xb5, 0xd3, 0xfc, 0x5f, 0xdf, - 0x67, 0x8e, 0xcd, 0x2f, 0xcc, 0xe3, 0x69, 0x56, 0x7d, 0xe5, 0x4f, 0xfe, 0x0d, 0x00, 0x00, 0xff, - 0xff, 0x93, 0xe0, 0xfa, 0x41, 0x34, 0x08, 0x00, 0x00, -} diff --git a/wavelength_router/wavelength_router.pb.go b/wavelength_router/wavelength_router.pb.go deleted file mode 100644 index 36a106fd..00000000 --- a/wavelength_router/wavelength_router.pb.go +++ /dev/null @@ -1,507 +0,0 @@ -// Code generated by protoc-gen-go. -// source: wavelength_router/wavelength_router.proto -// DO NOT EDIT! - -/* -Package gnoi_optical is a generated protocol buffer package. - -It is generated from these files: - wavelength_router/wavelength_router.proto - -It has these top-level messages: - AdjustPSDRequest - AdjustPSDProgress - AdjustPSDError - AdjustPSDResponse - CancelAdjustPSDResponse -*/ -package gnoi_optical - -import proto "github.com/golang/protobuf/proto" -import fmt "fmt" -import math "math" -import gnoi_types "github.com/openconfig/gnoi/types" - -import ( - context "golang.org/x/net/context" - grpc "google.golang.org/grpc" -) - -// 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 - -type AdjustPSDRequest_SignalDirection int32 - -const ( - AdjustPSDRequest_DIRECTION_UNKNOWN AdjustPSDRequest_SignalDirection = 0 - AdjustPSDRequest_DIRECTION_INPUT AdjustPSDRequest_SignalDirection = 1 - AdjustPSDRequest_DIRECTION_OUTPUT AdjustPSDRequest_SignalDirection = 2 -) - -var AdjustPSDRequest_SignalDirection_name = map[int32]string{ - 0: "DIRECTION_UNKNOWN", - 1: "DIRECTION_INPUT", - 2: "DIRECTION_OUTPUT", -} -var AdjustPSDRequest_SignalDirection_value = map[string]int32{ - "DIRECTION_UNKNOWN": 0, - "DIRECTION_INPUT": 1, - "DIRECTION_OUTPUT": 2, -} - -func (x AdjustPSDRequest_SignalDirection) String() string { - return proto.EnumName(AdjustPSDRequest_SignalDirection_name, int32(x)) -} -func (AdjustPSDRequest_SignalDirection) EnumDescriptor() ([]byte, []int) { - return fileDescriptor0, []int{0, 0} -} - -type AdjustPSDProgress_State int32 - -const ( - AdjustPSDProgress_UNKNOWN AdjustPSDProgress_State = 0 - AdjustPSDProgress_RUNNING AdjustPSDProgress_State = 1 - AdjustPSDProgress_COMPLETE AdjustPSDProgress_State = 2 -) - -var AdjustPSDProgress_State_name = map[int32]string{ - 0: "UNKNOWN", - 1: "RUNNING", - 2: "COMPLETE", -} -var AdjustPSDProgress_State_value = map[string]int32{ - "UNKNOWN": 0, - "RUNNING": 1, - "COMPLETE": 2, -} - -func (x AdjustPSDProgress_State) String() string { - return proto.EnumName(AdjustPSDProgress_State_name, int32(x)) -} -func (AdjustPSDProgress_State) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{1, 0} } - -type AdjustPSDError_Type int32 - -const ( - // An unspecified error. Must use the detail value to describe the issue. - AdjustPSDError_UNSPECIFIED AdjustPSDError_Type = 0 - // An adjustment was requested for a port that is busy (e.g., requesting - // input adjustment for a port that is currently running an output - // adjustment) - AdjustPSDError_PORT_BUSY AdjustPSDError_Type = 1 - // The hardware has failed and cannot complete an adjustment. - AdjustPSDError_HARDWARE_FAILURE AdjustPSDError_Type = 2 -) - -var AdjustPSDError_Type_name = map[int32]string{ - 0: "UNSPECIFIED", - 1: "PORT_BUSY", - 2: "HARDWARE_FAILURE", -} -var AdjustPSDError_Type_value = map[string]int32{ - "UNSPECIFIED": 0, - "PORT_BUSY": 1, - "HARDWARE_FAILURE": 2, -} - -func (x AdjustPSDError_Type) String() string { - return proto.EnumName(AdjustPSDError_Type_name, int32(x)) -} -func (AdjustPSDError_Type) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{2, 0} } - -type AdjustPSDRequest struct { - // Absolute path to the /components/component list member in the OpenConfig - // model corresponding to the port to perform the adjustment for. - // (e.g., /components/component[name=amp-1-1]) - Component *gnoi_types.Path `protobuf:"bytes,1,opt,name=component" json:"component,omitempty"` - // Describes the signal direction that should be adjusted relative to the - // device. For example, "input" would be the signal entering into the device - // from the far end device. - Direction AdjustPSDRequest_SignalDirection `protobuf:"varint,2,opt,name=direction,enum=gnoi.optical.AdjustPSDRequest_SignalDirection" json:"direction,omitempty"` -} - -func (m *AdjustPSDRequest) Reset() { *m = AdjustPSDRequest{} } -func (m *AdjustPSDRequest) String() string { return proto.CompactTextString(m) } -func (*AdjustPSDRequest) ProtoMessage() {} -func (*AdjustPSDRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } - -func (m *AdjustPSDRequest) GetComponent() *gnoi_types.Path { - if m != nil { - return m.Component - } - return nil -} - -type AdjustPSDProgress struct { - // The state of the OTDR trace requested. Note that this does not include - // error states as these should be returned as a gRPC error. - State AdjustPSDProgress_State `protobuf:"varint,1,opt,name=state,enum=gnoi.optical.AdjustPSDProgress_State" json:"state,omitempty"` -} - -func (m *AdjustPSDProgress) Reset() { *m = AdjustPSDProgress{} } -func (m *AdjustPSDProgress) String() string { return proto.CompactTextString(m) } -func (*AdjustPSDProgress) ProtoMessage() {} -func (*AdjustPSDProgress) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } - -type AdjustPSDError struct { - Type AdjustPSDError_Type `protobuf:"varint,1,opt,name=type,enum=gnoi.optical.AdjustPSDError_Type" json:"type,omitempty"` - Detail string `protobuf:"bytes,2,opt,name=detail" json:"detail,omitempty"` -} - -func (m *AdjustPSDError) Reset() { *m = AdjustPSDError{} } -func (m *AdjustPSDError) String() string { return proto.CompactTextString(m) } -func (*AdjustPSDError) ProtoMessage() {} -func (*AdjustPSDError) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} } - -type AdjustPSDResponse struct { - // Types that are valid to be assigned to Response: - // *AdjustPSDResponse_Progress - // *AdjustPSDResponse_Error - Response isAdjustPSDResponse_Response `protobuf_oneof:"response"` -} - -func (m *AdjustPSDResponse) Reset() { *m = AdjustPSDResponse{} } -func (m *AdjustPSDResponse) String() string { return proto.CompactTextString(m) } -func (*AdjustPSDResponse) ProtoMessage() {} -func (*AdjustPSDResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} } - -type isAdjustPSDResponse_Response interface { - isAdjustPSDResponse_Response() -} - -type AdjustPSDResponse_Progress struct { - Progress *AdjustPSDProgress `protobuf:"bytes,1,opt,name=progress,oneof"` -} -type AdjustPSDResponse_Error struct { - Error *AdjustPSDError `protobuf:"bytes,2,opt,name=error,oneof"` -} - -func (*AdjustPSDResponse_Progress) isAdjustPSDResponse_Response() {} -func (*AdjustPSDResponse_Error) isAdjustPSDResponse_Response() {} - -func (m *AdjustPSDResponse) GetResponse() isAdjustPSDResponse_Response { - if m != nil { - return m.Response - } - return nil -} - -func (m *AdjustPSDResponse) GetProgress() *AdjustPSDProgress { - if x, ok := m.GetResponse().(*AdjustPSDResponse_Progress); ok { - return x.Progress - } - return nil -} - -func (m *AdjustPSDResponse) GetError() *AdjustPSDError { - if x, ok := m.GetResponse().(*AdjustPSDResponse_Error); ok { - return x.Error - } - return nil -} - -// XXX_OneofFuncs is for the internal use of the proto package. -func (*AdjustPSDResponse) 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 _AdjustPSDResponse_OneofMarshaler, _AdjustPSDResponse_OneofUnmarshaler, _AdjustPSDResponse_OneofSizer, []interface{}{ - (*AdjustPSDResponse_Progress)(nil), - (*AdjustPSDResponse_Error)(nil), - } -} - -func _AdjustPSDResponse_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { - m := msg.(*AdjustPSDResponse) - // response - switch x := m.Response.(type) { - case *AdjustPSDResponse_Progress: - b.EncodeVarint(1<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.Progress); err != nil { - return err - } - case *AdjustPSDResponse_Error: - b.EncodeVarint(2<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.Error); err != nil { - return err - } - case nil: - default: - return fmt.Errorf("AdjustPSDResponse.Response has unexpected type %T", x) - } - return nil -} - -func _AdjustPSDResponse_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { - m := msg.(*AdjustPSDResponse) - switch tag { - case 1: // response.progress - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(AdjustPSDProgress) - err := b.DecodeMessage(msg) - m.Response = &AdjustPSDResponse_Progress{msg} - return true, err - case 2: // response.error - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(AdjustPSDError) - err := b.DecodeMessage(msg) - m.Response = &AdjustPSDResponse_Error{msg} - return true, err - default: - return false, nil - } -} - -func _AdjustPSDResponse_OneofSizer(msg proto.Message) (n int) { - m := msg.(*AdjustPSDResponse) - // response - switch x := m.Response.(type) { - case *AdjustPSDResponse_Progress: - s := proto.Size(x.Progress) - n += proto.SizeVarint(1<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *AdjustPSDResponse_Error: - s := proto.Size(x.Error) - n += proto.SizeVarint(2<<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 -} - -type CancelAdjustPSDResponse struct { -} - -func (m *CancelAdjustPSDResponse) Reset() { *m = CancelAdjustPSDResponse{} } -func (m *CancelAdjustPSDResponse) String() string { return proto.CompactTextString(m) } -func (*CancelAdjustPSDResponse) ProtoMessage() {} -func (*CancelAdjustPSDResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} } - -func init() { - proto.RegisterType((*AdjustPSDRequest)(nil), "gnoi.optical.AdjustPSDRequest") - proto.RegisterType((*AdjustPSDProgress)(nil), "gnoi.optical.AdjustPSDProgress") - proto.RegisterType((*AdjustPSDError)(nil), "gnoi.optical.AdjustPSDError") - proto.RegisterType((*AdjustPSDResponse)(nil), "gnoi.optical.AdjustPSDResponse") - proto.RegisterType((*CancelAdjustPSDResponse)(nil), "gnoi.optical.CancelAdjustPSDResponse") - proto.RegisterEnum("gnoi.optical.AdjustPSDRequest_SignalDirection", AdjustPSDRequest_SignalDirection_name, AdjustPSDRequest_SignalDirection_value) - proto.RegisterEnum("gnoi.optical.AdjustPSDProgress_State", AdjustPSDProgress_State_name, AdjustPSDProgress_State_value) - proto.RegisterEnum("gnoi.optical.AdjustPSDError_Type", AdjustPSDError_Type_name, AdjustPSDError_Type_value) -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion3 - -// Client API for WavelengthRouter service - -type WavelengthRouterClient interface { - // AdjustPSD performs a power spectral density (PSD) adjustment on an optical - // DWDM line system port. - // - // This RPC's initial message triggers adjustments. The target should validate - // the request, and immediately begin the adjustment as long as another - // adjustment is not already running. As this RPC may take multiple minutes, - // the state should be regularly streamed to the client. The operation should - // be completed on the device regardless of the state of the RPC channel to - // the initiating client. A client that becomes disconnected during an - // operation can reconnect, requesting the same operation, and receive status - // updates this way. There is no means by which an adjustment that has been - // triggered by a client can be cancelled unless the CancelAdjustPSD RPC is - // used. - AdjustPSD(ctx context.Context, in *AdjustPSDRequest, opts ...grpc.CallOption) (WavelengthRouter_AdjustPSDClient, error) - // CancelAdjustPSD cancels an in-progress AdjustPSD request. If an - // adjustment is not being performed for the provided request, then the RPC - // should return successfully. - CancelAdjustPSD(ctx context.Context, in *AdjustPSDRequest, opts ...grpc.CallOption) (*CancelAdjustPSDResponse, error) -} - -type wavelengthRouterClient struct { - cc *grpc.ClientConn -} - -func NewWavelengthRouterClient(cc *grpc.ClientConn) WavelengthRouterClient { - return &wavelengthRouterClient{cc} -} - -func (c *wavelengthRouterClient) AdjustPSD(ctx context.Context, in *AdjustPSDRequest, opts ...grpc.CallOption) (WavelengthRouter_AdjustPSDClient, error) { - stream, err := grpc.NewClientStream(ctx, &_WavelengthRouter_serviceDesc.Streams[0], c.cc, "/gnoi.optical.WavelengthRouter/AdjustPSD", opts...) - if err != nil { - return nil, err - } - x := &wavelengthRouterAdjustPSDClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type WavelengthRouter_AdjustPSDClient interface { - Recv() (*AdjustPSDResponse, error) - grpc.ClientStream -} - -type wavelengthRouterAdjustPSDClient struct { - grpc.ClientStream -} - -func (x *wavelengthRouterAdjustPSDClient) Recv() (*AdjustPSDResponse, error) { - m := new(AdjustPSDResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *wavelengthRouterClient) CancelAdjustPSD(ctx context.Context, in *AdjustPSDRequest, opts ...grpc.CallOption) (*CancelAdjustPSDResponse, error) { - out := new(CancelAdjustPSDResponse) - err := grpc.Invoke(ctx, "/gnoi.optical.WavelengthRouter/CancelAdjustPSD", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// Server API for WavelengthRouter service - -type WavelengthRouterServer interface { - // AdjustPSD performs a power spectral density (PSD) adjustment on an optical - // DWDM line system port. - // - // This RPC's initial message triggers adjustments. The target should validate - // the request, and immediately begin the adjustment as long as another - // adjustment is not already running. As this RPC may take multiple minutes, - // the state should be regularly streamed to the client. The operation should - // be completed on the device regardless of the state of the RPC channel to - // the initiating client. A client that becomes disconnected during an - // operation can reconnect, requesting the same operation, and receive status - // updates this way. There is no means by which an adjustment that has been - // triggered by a client can be cancelled unless the CancelAdjustPSD RPC is - // used. - AdjustPSD(*AdjustPSDRequest, WavelengthRouter_AdjustPSDServer) error - // CancelAdjustPSD cancels an in-progress AdjustPSD request. If an - // adjustment is not being performed for the provided request, then the RPC - // should return successfully. - CancelAdjustPSD(context.Context, *AdjustPSDRequest) (*CancelAdjustPSDResponse, error) -} - -func RegisterWavelengthRouterServer(s *grpc.Server, srv WavelengthRouterServer) { - s.RegisterService(&_WavelengthRouter_serviceDesc, srv) -} - -func _WavelengthRouter_AdjustPSD_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(AdjustPSDRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(WavelengthRouterServer).AdjustPSD(m, &wavelengthRouterAdjustPSDServer{stream}) -} - -type WavelengthRouter_AdjustPSDServer interface { - Send(*AdjustPSDResponse) error - grpc.ServerStream -} - -type wavelengthRouterAdjustPSDServer struct { - grpc.ServerStream -} - -func (x *wavelengthRouterAdjustPSDServer) Send(m *AdjustPSDResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _WavelengthRouter_CancelAdjustPSD_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(AdjustPSDRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(WavelengthRouterServer).CancelAdjustPSD(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.optical.WavelengthRouter/CancelAdjustPSD", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(WavelengthRouterServer).CancelAdjustPSD(ctx, req.(*AdjustPSDRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _WavelengthRouter_serviceDesc = grpc.ServiceDesc{ - ServiceName: "gnoi.optical.WavelengthRouter", - HandlerType: (*WavelengthRouterServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "CancelAdjustPSD", - Handler: _WavelengthRouter_CancelAdjustPSD_Handler, - }, - }, - Streams: []grpc.StreamDesc{ - { - StreamName: "AdjustPSD", - Handler: _WavelengthRouter_AdjustPSD_Handler, - ServerStreams: true, - }, - }, - Metadata: fileDescriptor0, -} - -func init() { proto.RegisterFile("wavelength_router/wavelength_router.proto", fileDescriptor0) } - -var fileDescriptor0 = []byte{ - // 537 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x84, 0x93, 0xdb, 0x6e, 0xd3, 0x40, - 0x10, 0x86, 0xed, 0xa8, 0x69, 0x93, 0x49, 0x49, 0xdc, 0xe5, 0x54, 0x2a, 0x44, 0x8b, 0x25, 0xa4, - 0x22, 0xa1, 0x4d, 0x08, 0x70, 0xc5, 0x41, 0xca, 0xc1, 0x25, 0x16, 0xc1, 0xb1, 0xd6, 0xb6, 0x22, - 0xb8, 0x89, 0x5c, 0x67, 0x71, 0x8c, 0xd2, 0x5d, 0xb3, 0xde, 0x80, 0x7a, 0xc9, 0x3b, 0x70, 0xcb, - 0xbb, 0xf0, 0x0c, 0xbc, 0x03, 0xef, 0x81, 0x7c, 0x68, 0x52, 0xa5, 0x4a, 0x7b, 0x63, 0xc9, 0xb3, - 0xff, 0xcc, 0x7c, 0xf3, 0x6b, 0x06, 0x9e, 0xfe, 0xf0, 0xbf, 0xd3, 0x39, 0x65, 0xa1, 0x9c, 0x4d, - 0x04, 0x5f, 0x48, 0x2a, 0x9a, 0x57, 0x22, 0x38, 0x16, 0x5c, 0x72, 0xb4, 0x1b, 0x32, 0x1e, 0x61, - 0x1e, 0xcb, 0x28, 0xf0, 0xe7, 0x07, 0xcf, 0xc2, 0x48, 0xce, 0x16, 0xa7, 0x38, 0xe0, 0x67, 0x4d, - 0x1e, 0x53, 0x16, 0x70, 0xf6, 0x25, 0x0a, 0x9b, 0xa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0, 0xc6, 0xba, 0x6b, 0xab, 0xb4, 0x61, 0x00, 0x5d, 0xe9, 0x56, 0xfe, 0xbe, - 0x2b, 0xb7, 0xf0, 0x73, 0xdc, 0x3a, 0xdd, 0xce, 0x2e, 0xf2, 0xc5, 0xff, 0x00, 0x00, 0x00, 0xff, - 0xff, 0xa0, 0xb1, 0x54, 0x93, 0xfa, 0x03, 0x00, 0x00, -} diff --git a/wavelength_router/wavelength_router.proto b/wavelength_router/wavelength_router.proto deleted file mode 100644 index 48e2fb56..00000000 --- a/wavelength_router/wavelength_router.proto +++ /dev/null @@ -1,98 +0,0 @@ -// -// Copyright 2019 Google LLC. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// - -syntax = "proto3"; - -package gnoi.optical; - -import "github.com/openconfig/gnoi/types/types.proto"; - -option (types.gnoi_version) = "0.1.0"; - -service WavelengthRouter { - // AdjustPSD performs a power spectral density (PSD) adjustment on an optical - // DWDM line system port. - // - // This RPC's initial message triggers adjustments. The target should validate - // the request, and immediately begin the adjustment as long as another - // adjustment is not already running. As this RPC may take multiple minutes, - // the state should be regularly streamed to the client. The operation should - // be completed on the device regardless of the state of the RPC channel to - // the initiating client. A client that becomes disconnected during an - // operation can reconnect, requesting the same operation, and receive status - // updates this way. There is no means by which an adjustment that has been - // triggered by a client can be cancelled unless the CancelAdjustPSD RPC is - // used. - rpc AdjustPSD(AdjustPSDRequest) returns (stream AdjustPSDResponse) {} - - // CancelAdjustPSD cancels an in-progress AdjustPSD request. If an - // adjustment is not being performed for the provided request, then the RPC - // should return successfully. - rpc CancelAdjustPSD(AdjustPSDRequest) returns (CancelAdjustPSDResponse) {} -} - -message AdjustPSDRequest { - // Absolute path to the /components/component list member in the OpenConfig - // model corresponding to the port to perform the adjustment for. - // (e.g., /components/component[name=amp-1-1]) - types.Path component = 1; - - enum SignalDirection { - DIRECTION_UNKNOWN = 0; - DIRECTION_INPUT = 1; - DIRECTION_OUTPUT = 2; - } - // Describes the signal direction that should be adjusted relative to the - // device. For example, "input" would be the signal entering into the device - // from the far end device. - SignalDirection direction = 2; -} - -message AdjustPSDProgress { - enum State { - UNKNOWN = 0; - RUNNING = 1; // The PSD adjustment is running. - COMPLETE = 2; // The PSD adjustment completed successfully. - } - // The state of the OTDR trace requested. Note that this does not include - // error states as these should be returned as a gRPC error. - State state = 1; -} - -message AdjustPSDError { - enum Type { - // An unspecified error. Must use the detail value to describe the issue. - UNSPECIFIED = 0; - // An adjustment was requested for a port that is busy (e.g., requesting - // input adjustment for a port that is currently running an output - // adjustment) - PORT_BUSY = 1; - // The hardware has failed and cannot complete an adjustment. - HARDWARE_FAILURE = 2; - } - Type type = 1; - string detail = 2; -} - -message AdjustPSDResponse { - oneof response { - AdjustPSDProgress progress = 1; - AdjustPSDError error = 2; - } -} - -message CancelAdjustPSDResponse {} - From 607ed48f354319de0bccfbe7ab78bab83b827036 Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 16:59:42 +0530 Subject: [PATCH 201/238] Revert "updates to optical.proto" This reverts commit 228d294160c54657edc75902bb445c4c9419b9ce. --- optical/optical.proto | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/optical/optical.proto b/optical/optical.proto index ad0e13e6..a91301d2 100644 --- a/optical/optical.proto +++ b/optical/optical.proto @@ -18,7 +18,7 @@ syntax = "proto3"; package gnoi.optical; -import "github.com/openconfig/gnoi/types/types.proto"; +import "third_party/openconfig/gnoi/types/types.proto"; option (types.gnoi_version) = "0.1.0"; @@ -79,7 +79,7 @@ message OTDRConfigurationProfile { message OTDRConfiguration { // The time in seconds in which the OTDR trace will run continuously to // collect data. - uint32 acquisition_time_s = 1; + uint16 acquisition_time_s = 1; // The pulse width in nanoseconds which defines how long pulses sent by the // OTDR will be during the test. From 46f64258654ffb3706ffc5fb9771b1311483e1cc Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 16:59:42 +0530 Subject: [PATCH 202/238] Revert "fix compile_protos.sh" This reverts commit c06e062a90f249231166acdd69d3afffa0363735. --- compile_protos.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compile_protos.sh b/compile_protos.sh index 083b4fad..dbec8175 100755 --- a/compile_protos.sh +++ b/compile_protos.sh @@ -1,7 +1,7 @@ #!/bin/sh set -euo pipefail -proto_imports=".:${GOPATH}/src/github.com/google/protobuf/src:${GOPATH}/src" +proto_imports=".:${GOPATH}/src/github.com/google/protobuf/src:${GOPATH}/src:/usr/local/google/home/ejbrever/openconfig3/gnoi" # Go for p in types common diag bgp cert file interface layer2 mpls system optical; do From b469111fcf1c36ee0e8f490cd29a25125cb83364 Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 16:59:43 +0530 Subject: [PATCH 203/238] Revert "Add optical.proto" This reverts commit 9d308da100f9814bdd4cb2e4bf9ea2b8a6882426. --- compile_protos.sh | 6 +- optical/optical.pb.go | 571 ------------------------------------------ optical/optical.proto | 154 ------------ 3 files changed, 3 insertions(+), 728 deletions(-) delete mode 100644 optical/optical.pb.go delete mode 100644 optical/optical.proto diff --git a/compile_protos.sh b/compile_protos.sh index dbec8175..f3522ca5 100755 --- a/compile_protos.sh +++ b/compile_protos.sh @@ -1,10 +1,10 @@ #!/bin/sh set -euo pipefail -proto_imports=".:${GOPATH}/src/github.com/google/protobuf/src:${GOPATH}/src:/usr/local/google/home/ejbrever/openconfig3/gnoi" +proto_imports=".:${GOPATH}/src/github.com/google/protobuf/src:${GOPATH}/src" # Go -for p in types common diag bgp cert file interface layer2 mpls system optical; do +for p in types common diag bgp cert file interface layer2 mpls system; do protoc -I=$proto_imports --go_out=plugins=grpc:. $p/$p.proto done - + diff --git a/optical/optical.pb.go b/optical/optical.pb.go deleted file mode 100644 index 5fcf1a40..00000000 --- a/optical/optical.pb.go +++ /dev/null @@ -1,571 +0,0 @@ -// Code generated by protoc-gen-go. -// source: optical/optical.proto -// DO NOT EDIT! - -/* -Package gnoi_optical is a generated protocol buffer package. - -It is generated from these files: - optical/optical.proto - -It has these top-level messages: - OTDRRequest - OTDRConfigurationProfile - OTDRConfiguration - OTDRResponse - OTDRTrace - Event -*/ -package gnoi_optical - -import proto "github.com/golang/protobuf/proto" -import fmt "fmt" -import math "math" -import gnoi_types "github.com/openconfig/gnoi/types" - -import ( - context "golang.org/x/net/context" - grpc "google.golang.org/grpc" -) - -// 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 - -// Type definition for different profiles of fiber types. These match what is -// already defined in OpenConfig under the FIBER_TYPE_PROFILE identityref in -// openconfig-optical-amplifier.yang model. -type FiberTypeProfile int32 - -const ( - FiberTypeProfile_FTP_UNKNOWN FiberTypeProfile = 0 - FiberTypeProfile_FTP_DSF FiberTypeProfile = 1 - FiberTypeProfile_FTP_LEAF FiberTypeProfile = 2 - FiberTypeProfile_FTP_SSMF FiberTypeProfile = 3 - FiberTypeProfile_FTP_TWC FiberTypeProfile = 4 - FiberTypeProfile_FTP_TWRS FiberTypeProfile = 5 - FiberTypeProfile_FTP_LS FiberTypeProfile = 6 - FiberTypeProfile_FTP_TERAWAVE FiberTypeProfile = 7 - FiberTypeProfile_FTP_TERALIGHT FiberTypeProfile = 8 -) - -var FiberTypeProfile_name = map[int32]string{ - 0: "FTP_UNKNOWN", - 1: "FTP_DSF", - 2: "FTP_LEAF", - 3: "FTP_SSMF", - 4: "FTP_TWC", - 5: "FTP_TWRS", - 6: "FTP_LS", - 7: "FTP_TERAWAVE", - 8: "FTP_TERALIGHT", -} -var FiberTypeProfile_value = map[string]int32{ - "FTP_UNKNOWN": 0, - "FTP_DSF": 1, - "FTP_LEAF": 2, - "FTP_SSMF": 3, - "FTP_TWC": 4, - "FTP_TWRS": 5, - "FTP_LS": 6, - "FTP_TERAWAVE": 7, - "FTP_TERALIGHT": 8, -} - -func (x FiberTypeProfile) String() string { - return proto.EnumName(FiberTypeProfile_name, int32(x)) -} -func (FiberTypeProfile) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } - -type OTDRRequest_OTDRResultsMethod int32 - -const ( - OTDRRequest_RESULTS_UNKNOWN OTDRRequest_OTDRResultsMethod = 0 - OTDRRequest_RESULTS_TO_LOCAL_DISK OTDRRequest_OTDRResultsMethod = 1 - OTDRRequest_RESULTS_IN_RESPONSE OTDRRequest_OTDRResultsMethod = 2 -) - -var OTDRRequest_OTDRResultsMethod_name = map[int32]string{ - 0: "RESULTS_UNKNOWN", - 1: "RESULTS_TO_LOCAL_DISK", - 2: "RESULTS_IN_RESPONSE", -} -var OTDRRequest_OTDRResultsMethod_value = map[string]int32{ - "RESULTS_UNKNOWN": 0, - "RESULTS_TO_LOCAL_DISK": 1, - "RESULTS_IN_RESPONSE": 2, -} - -func (x OTDRRequest_OTDRResultsMethod) String() string { - return proto.EnumName(OTDRRequest_OTDRResultsMethod_name, int32(x)) -} -func (OTDRRequest_OTDRResultsMethod) EnumDescriptor() ([]byte, []int) { - return fileDescriptor0, []int{0, 0} -} - -type OTDRResponse_OTDRState int32 - -const ( - OTDRResponse_UNKNOWN OTDRResponse_OTDRState = 0 - OTDRResponse_RUNNING OTDRResponse_OTDRState = 1 - OTDRResponse_PENDING OTDRResponse_OTDRState = 2 - OTDRResponse_COMPLETE OTDRResponse_OTDRState = 3 -) - -var OTDRResponse_OTDRState_name = map[int32]string{ - 0: "UNKNOWN", - 1: "RUNNING", - 2: "PENDING", - 3: "COMPLETE", -} -var OTDRResponse_OTDRState_value = map[string]int32{ - "UNKNOWN": 0, - "RUNNING": 1, - "PENDING": 2, - "COMPLETE": 3, -} - -func (x OTDRResponse_OTDRState) String() string { - return proto.EnumName(OTDRResponse_OTDRState_name, int32(x)) -} -func (OTDRResponse_OTDRState) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{3, 0} } - -type OTDRRequest struct { - // Absolute path to the /components/component list member in the OpenConfig - // model corresponding to the port to perform the OTDR trace from. - // (e.g., /components/component[name=otdr-1-1]) - Component *gnoi_types.Path `protobuf:"bytes,1,opt,name=component" json:"component,omitempty"` - // Describes how the results of the OTDR trace should be made available. More - // than one option may be specified if desired. - ResultsMethod []OTDRRequest_OTDRResultsMethod `protobuf:"varint,2,rep,packed,name=results_method,json=resultsMethod,enum=gnoi.optical.OTDRRequest_OTDRResultsMethod" json:"results_method,omitempty"` - // Describes the configuration used to perform an OTDR trace for the needed - // circumstance. - Configuration *OTDRConfigurationProfile `protobuf:"bytes,3,opt,name=configuration" json:"configuration,omitempty"` - // If specified, the device will label the OTDR trace so it can be recalled - // later. For example, the initial OTDR trace measured during span - // commissioning might be labeled "baseline". - Label string `protobuf:"bytes,4,opt,name=label" json:"label,omitempty"` -} - -func (m *OTDRRequest) Reset() { *m = OTDRRequest{} } -func (m *OTDRRequest) String() string { return proto.CompactTextString(m) } -func (*OTDRRequest) ProtoMessage() {} -func (*OTDRRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } - -func (m *OTDRRequest) GetComponent() *gnoi_types.Path { - if m != nil { - return m.Component - } - return nil -} - -func (m *OTDRRequest) GetConfiguration() *OTDRConfigurationProfile { - if m != nil { - return m.Configuration - } - return nil -} - -type OTDRConfigurationProfile struct { - // Types that are valid to be assigned to ProfileType: - // *OTDRConfigurationProfile_CustomProfile - // *OTDRConfigurationProfile_Profile - ProfileType isOTDRConfigurationProfile_ProfileType `protobuf_oneof:"profile_type"` -} - -func (m *OTDRConfigurationProfile) Reset() { *m = OTDRConfigurationProfile{} } -func (m *OTDRConfigurationProfile) String() string { return proto.CompactTextString(m) } -func (*OTDRConfigurationProfile) ProtoMessage() {} -func (*OTDRConfigurationProfile) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } - -type isOTDRConfigurationProfile_ProfileType interface { - isOTDRConfigurationProfile_ProfileType() -} - -type OTDRConfigurationProfile_CustomProfile struct { - CustomProfile string `protobuf:"bytes,1,opt,name=custom_profile,json=customProfile,oneof"` -} -type OTDRConfigurationProfile_Profile struct { - Profile *OTDRConfiguration `protobuf:"bytes,2,opt,name=profile,oneof"` -} - -func (*OTDRConfigurationProfile_CustomProfile) isOTDRConfigurationProfile_ProfileType() {} -func (*OTDRConfigurationProfile_Profile) isOTDRConfigurationProfile_ProfileType() {} - -func (m *OTDRConfigurationProfile) GetProfileType() isOTDRConfigurationProfile_ProfileType { - if m != nil { - return m.ProfileType - } - return nil -} - -func (m *OTDRConfigurationProfile) GetCustomProfile() string { - if x, ok := m.GetProfileType().(*OTDRConfigurationProfile_CustomProfile); ok { - return x.CustomProfile - } - return "" -} - -func (m *OTDRConfigurationProfile) GetProfile() *OTDRConfiguration { - if x, ok := m.GetProfileType().(*OTDRConfigurationProfile_Profile); ok { - return x.Profile - } - return nil -} - -// XXX_OneofFuncs is for the internal use of the proto package. -func (*OTDRConfigurationProfile) 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 _OTDRConfigurationProfile_OneofMarshaler, _OTDRConfigurationProfile_OneofUnmarshaler, _OTDRConfigurationProfile_OneofSizer, []interface{}{ - (*OTDRConfigurationProfile_CustomProfile)(nil), - (*OTDRConfigurationProfile_Profile)(nil), - } -} - -func _OTDRConfigurationProfile_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { - m := msg.(*OTDRConfigurationProfile) - // profile_type - switch x := m.ProfileType.(type) { - case *OTDRConfigurationProfile_CustomProfile: - b.EncodeVarint(1<<3 | proto.WireBytes) - b.EncodeStringBytes(x.CustomProfile) - case *OTDRConfigurationProfile_Profile: - b.EncodeVarint(2<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.Profile); err != nil { - return err - } - case nil: - default: - return fmt.Errorf("OTDRConfigurationProfile.ProfileType has unexpected type %T", x) - } - return nil -} - -func _OTDRConfigurationProfile_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { - m := msg.(*OTDRConfigurationProfile) - switch tag { - case 1: // profile_type.custom_profile - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - x, err := b.DecodeStringBytes() - m.ProfileType = &OTDRConfigurationProfile_CustomProfile{x} - return true, err - case 2: // profile_type.profile - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(OTDRConfiguration) - err := b.DecodeMessage(msg) - m.ProfileType = &OTDRConfigurationProfile_Profile{msg} - return true, err - default: - return false, nil - } -} - -func _OTDRConfigurationProfile_OneofSizer(msg proto.Message) (n int) { - m := msg.(*OTDRConfigurationProfile) - // profile_type - switch x := m.ProfileType.(type) { - case *OTDRConfigurationProfile_CustomProfile: - n += proto.SizeVarint(1<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(len(x.CustomProfile))) - n += len(x.CustomProfile) - case *OTDRConfigurationProfile_Profile: - s := proto.Size(x.Profile) - n += proto.SizeVarint(2<<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 -} - -// OTDR configuration options which can be set on the device. It is not required -// that every field be set as some fields may not apply for a given -// implementation. -type OTDRConfiguration struct { - // The time in seconds in which the OTDR trace will run continuously to - // collect data. - AcquisitionTimeS uint32 `protobuf:"varint,1,opt,name=acquisition_time_s,json=acquisitionTimeS" json:"acquisition_time_s,omitempty"` - // The pulse width in nanoseconds which defines how long pulses sent by the - // OTDR will be during the test. - PulseWidthNs float32 `protobuf:"fixed32,2,opt,name=pulse_width_ns,json=pulseWidthNs" json:"pulse_width_ns,omitempty"` - // The wavelength in MHz that will be sent by the OTDR. This may be left blank - // if the OTDR only supports one wavelength. - WavelengthMhz uint64 `protobuf:"varint,3,opt,name=wavelength_mhz,json=wavelengthMhz" json:"wavelength_mhz,omitempty"` - // The maximum fiber distance range in meters that the OTDR trace will - // support. - RangeM float32 `protobuf:"fixed32,4,opt,name=range_m,json=rangeM" json:"range_m,omitempty"` - // The type of fiber that is being measured. - FiberType FiberTypeProfile `protobuf:"varint,5,opt,name=fiber_type,json=fiberType,enum=gnoi.optical.FiberTypeProfile" json:"fiber_type,omitempty"` -} - -func (m *OTDRConfiguration) Reset() { *m = OTDRConfiguration{} } -func (m *OTDRConfiguration) String() string { return proto.CompactTextString(m) } -func (*OTDRConfiguration) ProtoMessage() {} -func (*OTDRConfiguration) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} } - -type OTDRResponse struct { - // The local path in which the OTDR file is saved on the device. - LocalPath string `protobuf:"bytes,1,opt,name=local_path,json=localPath" json:"local_path,omitempty"` - // The OTDR trace details in a structured format. - OtdrTrace *OTDRTrace `protobuf:"bytes,2,opt,name=otdr_trace,json=otdrTrace" json:"otdr_trace,omitempty"` - // The state of the OTDR trace requested. Note that this does not include - // error states as these should be returned as a gRPC error. - State OTDRResponse_OTDRState `protobuf:"varint,3,opt,name=state,enum=gnoi.optical.OTDRResponse_OTDRState" json:"state,omitempty"` -} - -func (m *OTDRResponse) Reset() { *m = OTDRResponse{} } -func (m *OTDRResponse) String() string { return proto.CompactTextString(m) } -func (*OTDRResponse) ProtoMessage() {} -func (*OTDRResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} } - -func (m *OTDRResponse) GetOtdrTrace() *OTDRTrace { - if m != nil { - return m.OtdrTrace - } - return nil -} - -type OTDRTrace struct { - // Total measured loss of the fiber. - TotalLossDb float32 `protobuf:"fixed32,1,opt,name=total_loss_db,json=totalLossDb" json:"total_loss_db,omitempty"` - // Total measured length of the fiber in meters. - TotalLengthM float32 `protobuf:"fixed32,2,opt,name=total_length_m,json=totalLengthM" json:"total_length_m,omitempty"` - // Optical return loss of the fiber in dB. - OpticalReturnLossDb float32 `protobuf:"fixed32,3,opt,name=optical_return_loss_db,json=opticalReturnLossDb" json:"optical_return_loss_db,omitempty"` - // Average fiber loss (dB/km) - AverageLossDbKm float32 `protobuf:"fixed32,4,opt,name=average_loss_db_km,json=averageLossDbKm" json:"average_loss_db_km,omitempty"` - // Discovered fiber type, if the OTDR can infer this information. - DiscoveredFiberType FiberTypeProfile `protobuf:"varint,5,opt,name=discovered_fiber_type,json=discoveredFiberType,enum=gnoi.optical.FiberTypeProfile" json:"discovered_fiber_type,omitempty"` - Events []*Event `protobuf:"bytes,6,rep,name=events" json:"events,omitempty"` -} - -func (m *OTDRTrace) Reset() { *m = OTDRTrace{} } -func (m *OTDRTrace) String() string { return proto.CompactTextString(m) } -func (*OTDRTrace) ProtoMessage() {} -func (*OTDRTrace) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} } - -func (m *OTDRTrace) GetEvents() []*Event { - if m != nil { - return m.Events - } - return nil -} - -type Event struct { - // Distance at which the event occurred in meters. - DistanceM float32 `protobuf:"fixed32,1,opt,name=distance_m,json=distanceM" json:"distance_m,omitempty"` - // The fiber loss that occurred at the event in dB. - LossDb float32 `protobuf:"fixed32,2,opt,name=loss_db,json=lossDb" json:"loss_db,omitempty"` - // The reflection that occurred at the event in dB. - ReflectionDb float32 `protobuf:"fixed32,3,opt,name=reflection_db,json=reflectionDb" json:"reflection_db,omitempty"` -} - -func (m *Event) Reset() { *m = Event{} } -func (m *Event) String() string { return proto.CompactTextString(m) } -func (*Event) ProtoMessage() {} -func (*Event) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} } - -func init() { - proto.RegisterType((*OTDRRequest)(nil), "gnoi.optical.OTDRRequest") - proto.RegisterType((*OTDRConfigurationProfile)(nil), "gnoi.optical.OTDRConfigurationProfile") - proto.RegisterType((*OTDRConfiguration)(nil), "gnoi.optical.OTDRConfiguration") - proto.RegisterType((*OTDRResponse)(nil), "gnoi.optical.OTDRResponse") - proto.RegisterType((*OTDRTrace)(nil), "gnoi.optical.OTDRTrace") - proto.RegisterType((*Event)(nil), "gnoi.optical.Event") - proto.RegisterEnum("gnoi.optical.FiberTypeProfile", FiberTypeProfile_name, FiberTypeProfile_value) - proto.RegisterEnum("gnoi.optical.OTDRRequest_OTDRResultsMethod", OTDRRequest_OTDRResultsMethod_name, OTDRRequest_OTDRResultsMethod_value) - proto.RegisterEnum("gnoi.optical.OTDRResponse_OTDRState", OTDRResponse_OTDRState_name, OTDRResponse_OTDRState_value) -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion3 - -// Client API for Optical service - -type OpticalClient interface { - // InitiateOTDR triggers an optical time domain reflectometer (OTDR) trace to - // be run on a specified port. The results of the trace may be sent back in - // the response or saved on the device to be retrieved later. If the - // information is saved on the device a path to the file must be returned - // which can later be used by File.Get or File.TransferToRemote. The RPC - // should initiate the OTDR trace and wait until the OTDR trace has completed - // and the device has processed the results before returning. If the RPC is - // cancelled while in operation, the running OTDR trace should stop. As only - // one OTDR trace can take place concurrently, the RPC should error if a - // trace is currently running. - InitiateOTDR(ctx context.Context, in *OTDRRequest, opts ...grpc.CallOption) (Optical_InitiateOTDRClient, error) -} - -type opticalClient struct { - cc *grpc.ClientConn -} - -func NewOpticalClient(cc *grpc.ClientConn) OpticalClient { - return &opticalClient{cc} -} - -func (c *opticalClient) InitiateOTDR(ctx context.Context, in *OTDRRequest, opts ...grpc.CallOption) (Optical_InitiateOTDRClient, error) { - stream, err := grpc.NewClientStream(ctx, &_Optical_serviceDesc.Streams[0], c.cc, "/gnoi.optical.Optical/InitiateOTDR", opts...) - if err != nil { - return nil, err - } - x := &opticalInitiateOTDRClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type Optical_InitiateOTDRClient interface { - Recv() (*OTDRResponse, error) - grpc.ClientStream -} - -type opticalInitiateOTDRClient struct { - grpc.ClientStream -} - -func (x *opticalInitiateOTDRClient) Recv() (*OTDRResponse, error) { - m := new(OTDRResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -// Server API for Optical service - -type OpticalServer interface { - // InitiateOTDR triggers an optical time domain reflectometer (OTDR) trace to - // be run on a specified port. The results of the trace may be sent back in - // the response or saved on the device to be retrieved later. If the - // information is saved on the device a path to the file must be returned - // which can later be used by File.Get or File.TransferToRemote. The RPC - // should initiate the OTDR trace and wait until the OTDR trace has completed - // and the device has processed the results before returning. If the RPC is - // cancelled while in operation, the running OTDR trace should stop. As only - // one OTDR trace can take place concurrently, the RPC should error if a - // trace is currently running. - InitiateOTDR(*OTDRRequest, Optical_InitiateOTDRServer) error -} - -func RegisterOpticalServer(s *grpc.Server, srv OpticalServer) { - s.RegisterService(&_Optical_serviceDesc, srv) -} - -func _Optical_InitiateOTDR_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(OTDRRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(OpticalServer).InitiateOTDR(m, &opticalInitiateOTDRServer{stream}) -} - -type Optical_InitiateOTDRServer interface { - Send(*OTDRResponse) error - grpc.ServerStream -} - -type opticalInitiateOTDRServer struct { - grpc.ServerStream -} - -func (x *opticalInitiateOTDRServer) Send(m *OTDRResponse) error { - return x.ServerStream.SendMsg(m) -} - -var _Optical_serviceDesc = grpc.ServiceDesc{ - ServiceName: "gnoi.optical.Optical", - HandlerType: (*OpticalServer)(nil), - Methods: []grpc.MethodDesc{}, - Streams: []grpc.StreamDesc{ - { - StreamName: "InitiateOTDR", - Handler: _Optical_InitiateOTDR_Handler, - ServerStreams: true, - }, - }, - Metadata: fileDescriptor0, -} - -func init() { proto.RegisterFile("optical/optical.proto", fileDescriptor0) } - -var fileDescriptor0 = []byte{ - // 893 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x94, 0x55, 0xdd, 0x6e, 0xe2, 0x46, - 0x14, 0x8e, 0x61, 0x81, 0x70, 0xf8, 0x89, 0x77, 0x68, 0x1a, 0x36, 0x52, 0x5b, 0xe4, 0x6e, 0x5b, - 0xd4, 0xac, 0x48, 0xca, 0x4a, 0xbd, 0x68, 0xd5, 0xaa, 0xd9, 0x60, 0x36, 0x28, 0x60, 0xd0, 0xd8, - 0x29, 0x37, 0x95, 0x46, 0xc6, 0x0c, 0x60, 0xd5, 0x78, 0xbc, 0xf6, 0x90, 0xd5, 0xee, 0x53, 0xf4, - 0xb2, 0x8f, 0xd2, 0xe7, 0x68, 0x1f, 0xa1, 0x52, 0x9f, 0xa3, 0x9a, 0x19, 0x3b, 0x40, 0xd3, 0xa8, - 0xea, 0x0d, 0xf8, 0x7c, 0xe7, 0x3b, 0x87, 0xef, 0x9c, 0xef, 0x00, 0x70, 0xcc, 0x22, 0xee, 0x7b, - 0x6e, 0x70, 0x9e, 0xbe, 0x77, 0xa2, 0x98, 0x71, 0x86, 0xaa, 0xcb, 0x90, 0xf9, 0x9d, 0x14, 0x3b, - 0x7d, 0xb1, 0xf4, 0xf9, 0x6a, 0x33, 0xeb, 0x78, 0x6c, 0x7d, 0xce, 0x22, 0x1a, 0x7a, 0x2c, 0x5c, - 0xf8, 0xcb, 0x73, 0xc1, 0x39, 0xe7, 0xef, 0x22, 0x9a, 0xa8, 0x57, 0x55, 0x6b, 0xfc, 0x91, 0x83, - 0xca, 0xd8, 0xe9, 0x61, 0x4c, 0xdf, 0x6c, 0x68, 0xc2, 0x51, 0x07, 0xca, 0x1e, 0x5b, 0x47, 0x2c, - 0xa4, 0x21, 0x6f, 0x6a, 0x2d, 0xad, 0x5d, 0xe9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a0, 0x90, 0x70, 0x97, 0x53, 0x39, 0x5d, 0xbd, 0xfb, 0xfc, 0xdf, - 0x0e, 0x5e, 0x29, 0x90, 0x81, 0x2d, 0xb8, 0x58, 0x95, 0x18, 0x3f, 0x40, 0xf9, 0x1e, 0x43, 0x15, - 0x28, 0x6d, 0xaf, 0xad, 0x02, 0x25, 0x7c, 0x6b, 0x59, 0x03, 0xeb, 0xb5, 0xae, 0x89, 0x60, 0x62, - 0x5a, 0x3d, 0x11, 0xe4, 0x50, 0x15, 0x0e, 0xaf, 0xc6, 0xa3, 0xc9, 0xd0, 0x74, 0x4c, 0x3d, 0x6f, - 0xfc, 0x96, 0x53, 0x2d, 0x94, 0x16, 0x03, 0x6a, 0x9c, 0x71, 0x37, 0x20, 0x01, 0x4b, 0x12, 0x32, - 0x9f, 0xc9, 0x29, 0x73, 0xb8, 0x22, 0xc1, 0x21, 0x4b, 0x92, 0xde, 0x4c, 0x98, 0x97, 0x72, 0x52, - 0x63, 0x32, 0xf3, 0x14, 0x49, 0xf9, 0x82, 0x5e, 0xc2, 0x87, 0xe9, 0x08, 0x24, 0xa6, 0x7c, 0x13, - 0x87, 0xf7, 0x2d, 0xf3, 0x92, 0xdd, 0x48, 0xb3, 0x58, 0x26, 0xd3, 0xd6, 0x67, 0x80, 0xdc, 0x3b, - 0x1a, 0xbb, 0x4b, 0x9a, 0xb1, 0xc9, 0xcf, 0x99, 0xab, 0x47, 0x69, 0x46, 0x51, 0x6f, 0xd6, 0x08, - 0xc3, 0xf1, 0xdc, 0x4f, 0x3c, 0x76, 0x47, 0x63, 0x3a, 0x27, 0xff, 0xdb, 0xe9, 0xc6, 0xb6, 0xf8, - 0x3e, 0x87, 0xce, 0xa0, 0x48, 0xef, 0x68, 0xc8, 0x93, 0x66, 0xb1, 0x95, 0x6f, 0x57, 0xba, 0x8d, - 0xfd, 0x26, 0xa6, 0xc8, 0xe1, 0x94, 0x62, 0xcc, 0xa1, 0x20, 0x01, 0x71, 0x18, 0x73, 0x3f, 0xe1, - 0x6e, 0xe8, 0x89, 0x23, 0x54, 0x2b, 0x2b, 0x67, 0xc8, 0x48, 0x1c, 0x68, 0x36, 0xbb, 0xda, 0x54, - 0x31, 0x50, 0xe3, 0x7e, 0x0a, 0xb5, 0x98, 0x2e, 0x02, 0xea, 0xc9, 0xef, 0xcc, 0xfd, 0x6a, 0xaa, - 0x5b, 0xb0, 0x37, 0xfb, 0xf2, 0x57, 0x0d, 0xf4, 0x7f, 0x8a, 0x47, 0x47, 0x50, 0xe9, 0x3b, 0x13, - 0xb2, 0x67, 0xb7, 0x00, 0x7a, 0x76, 0x5f, 0xd7, 0x84, 0xc3, 0x22, 0x18, 0x9a, 0x97, 0x7d, 0xe5, - 0xb7, 0x88, 0x6c, 0x7b, 0xd4, 0xd7, 0xf3, 0x19, 0xd1, 0x99, 0x5e, 0xe9, 0x4f, 0xb2, 0x94, 0x33, - 0xc5, 0xb6, 0x5e, 0x40, 0x00, 0x45, 0x59, 0x66, 0xeb, 0x45, 0xa4, 0x43, 0x55, 0x66, 0x4c, 0x7c, - 0x39, 0xbd, 0xfc, 0xd1, 0xd4, 0x4b, 0xe8, 0x29, 0xd4, 0x32, 0x64, 0x38, 0x78, 0x7d, 0xed, 0xe8, - 0x87, 0x5d, 0x07, 0x4a, 0x63, 0xb5, 0x19, 0x34, 0x80, 0xea, 0x20, 0xf4, 0xb9, 0xef, 0x72, 0x2a, - 0xae, 0x09, 0x3d, 0x7b, 0xf4, 0x67, 0xfb, 0xf4, 0xf4, 0xf1, 0x03, 0x37, 0x0e, 0x2e, 0xb4, 0x57, - 0x87, 0xbf, 0x7f, 0x5f, 0xb8, 0xe8, 0x7c, 0xd5, 0xb9, 0x98, 0x15, 0xe5, 0x5f, 0xcb, 0xcb, 0xbf, - 0x03, 0x00, 0x00, 0xff, 0xff, 0x02, 0xcb, 0x72, 0x49, 0xaf, 0x06, 0x00, 0x00, -} diff --git a/optical/optical.proto b/optical/optical.proto deleted file mode 100644 index a91301d2..00000000 --- a/optical/optical.proto +++ /dev/null @@ -1,154 +0,0 @@ -// -// Copyright 2019 Google LLC. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// - -syntax = "proto3"; - -package gnoi.optical; - -import "third_party/openconfig/gnoi/types/types.proto"; - -option (types.gnoi_version) = "0.1.0"; - -service Optical { - // InitiateOTDR triggers an optical time domain reflectometer (OTDR) trace to - // be run on a specified port. The results of the trace may be sent back in - // the response or saved on the device to be retrieved later. If the - // information is saved on the device a path to the file must be returned - // which can later be used by File.Get or File.TransferToRemote. The RPC - // should initiate the OTDR trace and wait until the OTDR trace has completed - // and the device has processed the results before returning. If the RPC is - // cancelled while in operation, the running OTDR trace should stop. As only - // one OTDR trace can take place concurrently, the RPC should error if a - // trace is currently running. - rpc InitiateOTDR(OTDRRequest) returns (stream OTDRResponse) {} -} - -message OTDRRequest { - // Absolute path to the /components/component list member in the OpenConfig - // model corresponding to the port to perform the OTDR trace from. - // (e.g., /components/component[name=otdr-1-1]) - types.Path component = 1; - - enum OTDRResultsMethod { - RESULTS_UNKNOWN = 0; - RESULTS_TO_LOCAL_DISK = 1; // Results saved to a file on the device. - RESULTS_IN_RESPONSE = 2; // Results sent back in the response. - } - // Describes how the results of the OTDR trace should be made available. More - // than one option may be specified if desired. - repeated OTDRResultsMethod results_method = 2; - - // Describes the configuration used to perform an OTDR trace for the needed - // circumstance. - OTDRConfigurationProfile configuration = 3; - - // If specified, the device will label the OTDR trace so it can be recalled - // later. For example, the initial OTDR trace measured during span - // commissioning might be labeled "baseline". - string label = 4; -} - -message OTDRConfigurationProfile { - oneof profile_type { - // A custom OTDR configuration profile which defines a set of OTDR - // configurations. The profiles are defined by the vendor implementation. - // (e.g., 'short', 'long', 'auto'). - string custom_profile = 1; - // OTDR configuration profile which allows the user to specify granular - // control of the various configuration options. - OTDRConfiguration profile = 2; - } -} - -// OTDR configuration options which can be set on the device. It is not required -// that every field be set as some fields may not apply for a given -// implementation. -message OTDRConfiguration { - // The time in seconds in which the OTDR trace will run continuously to - // collect data. - uint16 acquisition_time_s = 1; - - // The pulse width in nanoseconds which defines how long pulses sent by the - // OTDR will be during the test. - float pulse_width_ns = 2; - - // The wavelength in MHz that will be sent by the OTDR. This may be left blank - // if the OTDR only supports one wavelength. - uint64 wavelength_mhz = 3; - - // The maximum fiber distance range in meters that the OTDR trace will - // support. - float range_m = 4; - - // The type of fiber that is being measured. - FiberTypeProfile fiber_type = 5; -} - -// Type definition for different profiles of fiber types. These match what is -// already defined in OpenConfig under the FIBER_TYPE_PROFILE identityref in -// openconfig-optical-amplifier.yang model. -enum FiberTypeProfile { - FTP_UNKNOWN = 0; - FTP_DSF = 1; // Dispersion shifted fiber. - FTP_LEAF = 2; // Large effective area fiber. - FTP_SSMF = 3; // Standard single mode fiber. - FTP_TWC = 4; // True wave classic fiber. - FTP_TWRS = 5; // True wave reduced slope fiber. - FTP_LS = 6; // LEAF Submarine fiber. - FTP_TERAWAVE = 7; // TeraWave fiber. - FTP_TERALIGHT = 8; // TeraLight fiber. -} - -message OTDRResponse { - // The local path in which the OTDR file is saved on the device. - string local_path = 1; - // The OTDR trace details in a structured format. - OTDRTrace otdr_trace = 2; - enum OTDRState { - UNKNOWN = 0; - RUNNING = 1; // The OTDR is currently performing an OTDR trace. - PENDING = 2; // The OTDR is pending underlying resources being available. - COMPLETE = 3; // The OTDR trace was completed. - } - // The state of the OTDR trace requested. Note that this does not include - // error states as these should be returned as a gRPC error. - OTDRState state = 3; -} - -message OTDRTrace { - // Total measured loss of the fiber. - float total_loss_db = 1; - // Total measured length of the fiber in meters. - float total_length_m = 2; - // Optical return loss of the fiber in dB. - float optical_return_loss_db = 3; - // Average fiber loss (dB/km) - float average_loss_db_km = 4; - // Discovered fiber type, if the OTDR can infer this information. - FiberTypeProfile discovered_fiber_type = 5; - - repeated Event events = 6; -} - -message Event { - // Distance at which the event occurred in meters. - float distance_m = 1; - // The fiber loss that occurred at the event in dB. - float loss_db = 2; - // The reflection that occurred at the event in dB. - float reflection_db = 3; -} - From 5cae931fd439de080c20002facf39f6da69890fb Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 16:59:44 +0530 Subject: [PATCH 204/238] Revert "Add .travis.yml" This reverts commit 796c55420178bb4bdebd854fe8170c34945f12ae. --- .travis.yml | 8 -------- 1 file changed, 8 deletions(-) delete mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 64b227f1..00000000 --- a/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -language: go -go: - - 1.9.x - - 1.10.x - - 1.11.x - - master -script: - - go test ./... From e7a25080ca0c0c59a197b6d9d5b5060b8347d611 Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 16:59:45 +0530 Subject: [PATCH 205/238] Revert "Rename packages to be gnoi.*" This reverts commit 40a9c0558b3eb4189127671980977b1cd2b3cdfe. --- common/common.pb.go | 39 ++++---- common/common.proto | 2 +- diag/diag.pb.go | 134 ++++++++++++------------- file/file.pb.go | 78 +++++++-------- interface/interface.pb.go | 30 +++--- layer2/layer2.pb.go | 80 +++++++-------- system/system.pb.go | 206 +++++++++++++++++++------------------- types/types.pb.go | 78 +++++++-------- types/types.proto | 2 +- 9 files changed, 324 insertions(+), 325 deletions(-) diff --git a/common/common.pb.go b/common/common.pb.go index 0955e27b..0ef446a1 100644 --- a/common/common.pb.go +++ b/common/common.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // source: common/common.proto -package gnoi_common +package common import ( fmt "fmt" @@ -63,7 +63,7 @@ type RemoteDownload struct { // For SFTP and SCP, this will be the address:/path/to/file // (i.e. host.foo.com:/bar/baz). Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` - Protocol RemoteDownload_Protocol `protobuf:"varint,2,opt,name=protocol,proto3,enum=gnoi.common.RemoteDownload_Protocol" json:"protocol,omitempty"` + Protocol RemoteDownload_Protocol `protobuf:"varint,2,opt,name=protocol,proto3,enum=common.RemoteDownload_Protocol" json:"protocol,omitempty"` Credentials *types.Credentials `protobuf:"bytes,3,opt,name=credentials,proto3" json:"credentials,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -117,28 +117,27 @@ func (m *RemoteDownload) GetCredentials() *types.Credentials { } func init() { - proto.RegisterEnum("gnoi.common.RemoteDownload_Protocol", RemoteDownload_Protocol_name, RemoteDownload_Protocol_value) - proto.RegisterType((*RemoteDownload)(nil), "gnoi.common.RemoteDownload") + proto.RegisterEnum("common.RemoteDownload_Protocol", RemoteDownload_Protocol_name, RemoteDownload_Protocol_value) + proto.RegisterType((*RemoteDownload)(nil), "common.RemoteDownload") } func init() { proto.RegisterFile("common/common.proto", fileDescriptor_8f954d82c0b891f6) } var fileDescriptor_8f954d82c0b891f6 = []byte{ - // 243 bytes of a gzipped FileDescriptorProto + // 239 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x4e, 0xce, 0xcf, 0xcd, - 0xcd, 0xcf, 0xd3, 0x87, 0x50, 0x7a, 0x05, 0x45, 0xf9, 0x25, 0xf9, 0x42, 0xdc, 0xe9, 0x79, 0xf9, - 0x99, 0x7a, 0x10, 0x21, 0x29, 0x9d, 0xf4, 0xcc, 0x92, 0x8c, 0xd2, 0x24, 0x10, 0x57, 0x3f, 0xbf, - 0x20, 0x35, 0x2f, 0x39, 0x3f, 0x2f, 0x2d, 0x33, 0x5d, 0x1f, 0xa4, 0x44, 0xbf, 0xa4, 0xb2, 0x20, - 0xb5, 0x18, 0x42, 0x42, 0xb4, 0x2a, 0x3d, 0x62, 0xe4, 0xe2, 0x0b, 0x4a, 0xcd, 0xcd, 0x2f, 0x49, - 0x75, 0xc9, 0x2f, 0xcf, 0xcb, 0xc9, 0x4f, 0x4c, 0x11, 0x12, 0xe2, 0x62, 0x29, 0x48, 0x2c, 0xc9, - 0x90, 0x60, 0x54, 0x60, 0xd4, 0xe0, 0x0c, 0x02, 0xb3, 0x85, 0x1c, 0xb8, 0x38, 0xc0, 0xea, 0x93, - 0xf3, 0x73, 0x24, 0x98, 0x14, 0x18, 0x35, 0xf8, 0x8c, 0x54, 0xf4, 0x90, 0x2c, 0xd5, 0x43, 0x35, - 0x42, 0x2f, 0x00, 0xaa, 0x36, 0x08, 0xae, 0x4b, 0xc8, 0x92, 0x8b, 0x3b, 0xb9, 0x28, 0x35, 0x25, - 0x35, 0xaf, 0x24, 0x33, 0x31, 0xa7, 0x58, 0x82, 0x59, 0x81, 0x51, 0x83, 0xdb, 0x48, 0x1c, 0x62, - 0x08, 0xc4, 0x41, 0xce, 0x08, 0xe9, 0x20, 0x64, 0xb5, 0x4a, 0xf6, 0x5c, 0x1c, 0x30, 0x03, 0x85, - 0xb8, 0xb9, 0xd8, 0x43, 0xfd, 0xbc, 0xfd, 0xfc, 0xc3, 0xfd, 0x04, 0x18, 0x84, 0x38, 0xb8, 0x58, - 0x82, 0xdd, 0x42, 0x02, 0x04, 0x18, 0x41, 0x2c, 0x8f, 0x90, 0x90, 0x00, 0x01, 0x26, 0x21, 0x4e, - 0x2e, 0x56, 0x10, 0x2b, 0x58, 0x80, 0x59, 0x88, 0x9d, 0x8b, 0x39, 0xd8, 0x39, 0x40, 0x80, 0x25, - 0x89, 0x0d, 0xec, 0x0a, 0x63, 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0x6f, 0xdb, 0xfe, 0xf8, 0x3d, - 0x01, 0x00, 0x00, + 0xcd, 0xcf, 0xd3, 0x87, 0x50, 0x7a, 0x05, 0x45, 0xf9, 0x25, 0xf9, 0x42, 0x6c, 0x10, 0x9e, 0x94, + 0x4e, 0x7a, 0x66, 0x49, 0x46, 0x69, 0x92, 0x5e, 0x72, 0x7e, 0xae, 0x7e, 0x7e, 0x41, 0x6a, 0x5e, + 0x72, 0x7e, 0x5e, 0x5a, 0x66, 0xba, 0x7e, 0x7a, 0x5e, 0x7e, 0xa6, 0x7e, 0x49, 0x65, 0x41, 0x6a, + 0x31, 0x84, 0x84, 0xe8, 0x52, 0xba, 0xc1, 0xc8, 0xc5, 0x17, 0x94, 0x9a, 0x9b, 0x5f, 0x92, 0xea, + 0x92, 0x5f, 0x9e, 0x97, 0x93, 0x9f, 0x98, 0x22, 0x24, 0xc4, 0xc5, 0x52, 0x90, 0x58, 0x92, 0x21, + 0xc1, 0xa8, 0xc0, 0xa8, 0xc1, 0x19, 0x04, 0x66, 0x0b, 0x59, 0x73, 0x71, 0x80, 0xd5, 0x27, 0xe7, + 0xe7, 0x48, 0x30, 0x29, 0x30, 0x6a, 0xf0, 0x19, 0xc9, 0xeb, 0x41, 0x6d, 0x47, 0xd5, 0xad, 0x17, + 0x00, 0x55, 0x16, 0x04, 0xd7, 0x20, 0x64, 0xc2, 0xc5, 0x9d, 0x5c, 0x94, 0x9a, 0x92, 0x9a, 0x57, + 0x92, 0x99, 0x98, 0x53, 0x2c, 0xc1, 0xac, 0xc0, 0xa8, 0xc1, 0x6d, 0x24, 0xa4, 0x07, 0x71, 0x86, + 0x33, 0x42, 0x26, 0x08, 0x59, 0x99, 0x92, 0x3d, 0x17, 0x07, 0xcc, 0x2c, 0x21, 0x6e, 0x2e, 0xf6, + 0x50, 0x3f, 0x6f, 0x3f, 0xff, 0x70, 0x3f, 0x01, 0x06, 0x21, 0x0e, 0x2e, 0x96, 0x60, 0xb7, 0x90, + 0x00, 0x01, 0x46, 0x10, 0xcb, 0x23, 0x24, 0x24, 0x40, 0x80, 0x49, 0x88, 0x93, 0x8b, 0x15, 0xc4, + 0x0a, 0x16, 0x60, 0x16, 0x62, 0xe7, 0x62, 0x0e, 0x76, 0x0e, 0x10, 0x60, 0x49, 0x62, 0x03, 0x3b, + 0xc0, 0x18, 0x10, 0x00, 0x00, 0xff, 0xff, 0xbb, 0x3d, 0xeb, 0xfc, 0x2e, 0x01, 0x00, 0x00, } diff --git a/common/common.proto b/common/common.proto index f2928fca..4fbd30db 100644 --- a/common/common.proto +++ b/common/common.proto @@ -16,7 +16,7 @@ syntax = "proto3"; -package gnoi.common; +package common; import "github.com/openconfig/gnoi/types/types.proto"; diff --git a/diag/diag.pb.go b/diag/diag.pb.go index e511386d..e0668141 100644 --- a/diag/diag.pb.go +++ b/diag/diag.pb.go @@ -839,73 +839,73 @@ func init() { func init() { proto.RegisterFile("diag/diag.proto", fileDescriptor_c2372dae051d1d7a) } var fileDescriptor_c2372dae051d1d7a = []byte{ - // 1050 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x56, 0x6f, 0x6f, 0xdb, 0x44, - 0x18, 0xaf, 0x93, 0xb4, 0x6b, 0xae, 0x6b, 0xe3, 0xdd, 0x68, 0x97, 0xa6, 0xb0, 0xa5, 0xd9, 0x60, - 0xa1, 0x1b, 0x69, 0x9b, 0x0a, 0xa1, 0xbd, 0x41, 0x38, 0x8d, 0xdb, 0x5a, 0xcd, 0x6c, 0xeb, 0xec, - 0x30, 0xba, 0x17, 0x9c, 0x9c, 0xf4, 0x9a, 0x5a, 0x73, 0x7c, 0xe6, 0xee, 0xf2, 0x62, 0x9f, 0x01, - 0xf1, 0x02, 0xf1, 0x61, 0xf8, 0x1a, 0x08, 0x24, 0xbe, 0x05, 0x5f, 0x01, 0xa1, 0xb3, 0x93, 0xc6, - 0x89, 0x92, 0x96, 0x16, 0x84, 0x78, 0x63, 0xe9, 0x9e, 0xdf, 0xef, 0xf1, 0xf3, 0xef, 0x77, 0x7f, - 0x40, 0xe1, 0xdc, 0xf7, 0x7a, 0xbb, 0xf2, 0x53, 0x8b, 0x18, 0x15, 0x14, 0xe6, 0x7b, 0x21, 0xf5, - 0x6b, 0xd2, 0x50, 0x7a, 0xd9, 0xf3, 0xc5, 0xe5, 0xa0, 0x53, 0xeb, 0xd2, 0xfe, 0x2e, 0x8d, 0x48, - 0xd8, 0xa5, 0xe1, 0x85, 0xdf, 0xdb, 0x95, 0x84, 0x5d, 0xf1, 0x3e, 0x22, 0x3c, 0xf9, 0x26, 0x8e, - 0x95, 0x5f, 0x32, 0x40, 0x75, 0x84, 0xc7, 0x44, 0x43, 0x47, 0x2e, 0x22, 0xdf, 0x0d, 0x08, 0x17, - 0x70, 0x07, 0x3c, 0xe8, 0x10, 0x26, 0x30, 0x8d, 0x08, 0xf3, 0x84, 0x4f, 0x43, 0xec, 0x9f, 0x17, - 0x95, 0xb2, 0x52, 0xcd, 0xa3, 0x82, 0x04, 0xac, 0x91, 0xdd, 0x38, 0x87, 0x5f, 0x83, 0x07, 0x11, - 0x61, 0x38, 0xa2, 0x4c, 0x60, 0x96, 0xf8, 0xf3, 0x62, 0xa6, 0x9c, 0xad, 0xae, 0xd4, 0x77, 0x6a, - 0x57, 0x59, 0xd5, 0xa6, 0x63, 0xd4, 0x6c, 0xc2, 0x6c, 0xca, 0xc4, 0x70, 0x89, 0x0a, 0xd1, 0xc4, - 0x9a, 0x97, 0x7e, 0x56, 0xc0, 0xda, 0x24, 0x07, 0xd6, 0x40, 0xde, 0x0f, 0x05, 0x61, 0x17, 0x5e, - 0x97, 0xc4, 0xe9, 0xac, 0xd4, 0xd5, 0x24, 0x44, 0x52, 0x91, 0xed, 0x89, 0x4b, 0x34, 0xa6, 0xc0, - 0x06, 0x28, 0x44, 0xac, 0xc3, 0x71, 0x44, 0x83, 0xf7, 0x21, 0xed, 0xfb, 0x5e, 0x50, 0xcc, 0x94, - 0x95, 0xea, 0x5a, 0x7d, 0x33, 0x95, 0x98, 0xcd, 0x3a, 0xdc, 0xbe, 0x22, 0xa0, 0xb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df, 0x74, 0xf4, 0x57, 0x16, 0x1a, 0xcb, 0xbf, 0x7e, - 0xb9, 0xb8, 0x57, 0xdb, 0xaf, 0xed, 0x75, 0x96, 0xe2, 0x57, 0xfc, 0xc1, 0x5f, 0x01, 0x00, 0x00, - 0xff, 0xff, 0x01, 0x94, 0x0f, 0x66, 0x11, 0x0c, 0x00, 0x00, + // 1051 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x56, 0xdd, 0x4e, 0xe3, 0xc6, + 0x17, 0x27, 0x1f, 0xb0, 0x64, 0xf8, 0x88, 0x19, 0xfe, 0xb0, 0x21, 0xfc, 0xbb, 0x1b, 0xb2, 0xdb, + 0x6e, 0x96, 0xdd, 0x06, 0x08, 0xaa, 0xaa, 0x55, 0xa5, 0x4a, 0x0e, 0x31, 0x60, 0x91, 0xb5, 0xad, + 0xb1, 0xd3, 0x2d, 0x7b, 0xd1, 0x91, 0x13, 0x86, 0x60, 0xe1, 0x78, 0xdc, 0x99, 0xc9, 0xc5, 0xbe, + 0x40, 0xd5, 0x8b, 0xaa, 0x0f, 0xd3, 0xd7, 0xe8, 0x55, 0xdb, 0xe7, 0xe8, 0x2b, 0x54, 0xd5, 0xd8, + 0x09, 0x71, 0xa2, 0x04, 0x0a, 0x2b, 0x55, 0xbd, 0xb1, 0x34, 0xe7, 0xf7, 0x3b, 0x3e, 0xe7, 0xfc, + 0xce, 0x99, 0x0f, 0x90, 0xbf, 0xf0, 0xdc, 0xee, 0x9e, 0xfc, 0x54, 0x43, 0x46, 0x05, 0x85, 0xb9, + 0x6e, 0x40, 0xbd, 0xaa, 0x34, 0x14, 0x5f, 0x77, 0x3d, 0x71, 0xd5, 0x6f, 0x57, 0x3b, 0xb4, 0xb7, + 0x47, 0x43, 0x12, 0x74, 0x68, 0x70, 0xe9, 0x75, 0xf7, 0x24, 0x61, 0x4f, 0x7c, 0x08, 0x09, 0x8f,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, 0x1d, 0xdd, 0x34, 0xb0, 0x63, + 0x9a, 0xd8, 0x3e, 0x95, 0x95, 0x3c, 0x82, 0x9f, 0x81, 0xf2, 0xed, 0xc4, 0xa6, 0x69, 0x9c, 0x28, + 0x8b, 0x93, 0x3c, 0xd3, 0xd2, 0x06, 0x1c, 0xbd, 0x11, 0xc5, 0x3f, 0x36, 0x5b, 0x46, 0x43, 0xc9, + 0xc1, 0x67, 0xe0, 0xe9, 0x4c, 0x9e, 0x6e, 0xe0, 0x96, 0xad, 0x29, 0x60, 0x52, 0x61, 0x4b, 0xd3, + 0x10, 0x6e, 0x9a, 0x47, 0x67, 0xf8, 0x58, 0xd5, 0x9b, 0x2d, 0xa4, 0x29, 0x4b, 0xf0, 0x09, 0x28, + 0x4e, 0xa7, 0x34, 0x4d, 0xdb, 0x51, 0x96, 0x27, 0x71, 0xdd, 0x70, 0x34, 0x64, 0xa8, 0xcd, 0x81, + 0xf4, 0x2b, 0xb5, 0x3f, 0x53, 0x20, 0xdb, 0xf0, 0xdc, 0x2e, 0x3c, 0x05, 0xb9, 0x9b, 0xa7, 0x0f, + 0xdc, 0xbe, 0xe5, 0x81, 0x59, 0xfc, 0xff, 0x6d, 0xaf, 0xa5, 0xf2, 0x1c, 0xd4, 0xc0, 0xe2, 0xf0, + 0x9a, 0x85, 0xc5, 0xd9, 0x2f, 0x8a, 0xe2, 0xf6, 0x2d, 0xf7, 0x72, 0x79, 0x0e, 0x3a, 0x60, 0x65, + 0xec, 0xe8, 0x86, 0x4f, 0xef, 0xb8, 0xbb, 0x8a, 0xa5, 0xbb, 0x4e, 0xfd, 0xf2, 0x5c, 0x7d, 0xf1, + 0xf7, 0xaf, 0xe7, 0xf7, 0xab, 0x07, 0xd5, 0xfd, 0xf6, 0x42, 0xf4, 0x4e, 0x3f, 0xfc, 0x3b, 0x00, + 0x00, 0xff, 0xff, 0x9c, 0x1e, 0x54, 0x1c, 0xf3, 0x0b, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. diff --git a/file/file.pb.go b/file/file.pb.go index c38247cf..7b01f524 100644 --- a/file/file.pb.go +++ b/file/file.pb.go @@ -818,45 +818,45 @@ func init() { func init() { proto.RegisterFile("file/file.proto", fileDescriptor_ad806f8986a0c3f6) } var fileDescriptor_ad806f8986a0c3f6 = []byte{ - // 600 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x54, 0xcd, 0x6e, 0xd3, 0x4c, - 0x14, 0x8d, 0x1b, 0xa7, 0x4d, 0xae, 0x9b, 0xb6, 0x9a, 0xaf, 0x5f, 0x6b, 0x0c, 0x15, 0xc5, 0xdd, - 0x04, 0x04, 0x4e, 0x68, 0x37, 0x74, 0x03, 0x52, 0x14, 0xd1, 0x20, 0x81, 0x14, 0x99, 0x6c, 0x51, - 0x34, 0x75, 0x26, 0xb1, 0x85, 0xed, 0x31, 0x9e, 0x09, 0xa8, 0x2c, 0x78, 0x05, 0xde, 0x0d, 0x89, - 0x37, 0xe0, 0x41, 0xd0, 0xfc, 0x38, 0x71, 0x92, 0xa6, 0x65, 0xe3, 0xd8, 0x27, 0xe7, 0xde, 0x73, - 0xce, 0x9d, 0x6b, 0xc3, 0xfe, 0x24, 0x8a, 0x49, 0x5b, 0x5c, 0xbc, 0x2c, 0xa7, 0x9c, 0xa2, 0xc6, - 0x34, 0xa5, 0x91, 0x27, 0x00, 0xe7, 0xf9, 0x34, 0xe2, 0xe1, 0xec, 0xda, 0x0b, 0x68, 0xd2, 0xa6, - 0x19, 0x49, 0x03, 0x9a, 0x4e, 0xa2, 0x69, 0x5b, 0x10, 0xda, 0xfc, 0x26, 0x23, 0x4c, 0x5d, 0x55, - 0xa1, 0xe3, 0xdd, 0xc1, 0x0e, 0x68, 0x92, 0xd0, 0x54, 0xff, 0x28, 0xbe, 0xfb, 0xc7, 0x00, 0x18, - 0xcc, 0xb8, 0x4f, 0xbe, 0xcc, 0x08, 0x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, 0xfe, 0x86, 0xcd, 0x72, 0xce, 0xee, 0xe4, 0x14, 0x02, 0xc2, 0xd8, 0x60, 0xb6, - 0x6c, 0x6c, 0xf1, 0x3d, 0x58, 0x32, 0x56, 0x7e, 0xcb, 0x2a, 0x2d, 0x03, 0x5d, 0x82, 0x29, 0x0e, - 0x0c, 0x1d, 0xad, 0x9c, 0x6a, 0x51, 0x7b, 0xbc, 0x86, 0xcf, 0x45, 0xdf, 0xc0, 0xb6, 0x1a, 0x14, - 0xb2, 0x4b, 0xa4, 0xa5, 0x69, 0x3b, 0x0f, 0x6e, 0xf9, 0xa7, 0x68, 0xd0, 0xad, 0xff, 0x7a, 0x5d, - 0xeb, 0x78, 0x2f, 0xbd, 0xce, 0xf5, 0xb6, 0xfc, 0xd8, 0x5d, 0xfc, 0x0d, 0x00, 0x00, 0xff, 0xff, - 0xdf, 0xe7, 0xb5, 0x47, 0x68, 0x05, 0x00, 0x00, + // 597 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x54, 0xdd, 0x6e, 0xd3, 0x4c, + 0x10, 0x8d, 0x1b, 0xa7, 0x4d, 0xc6, 0x4d, 0x5b, 0xed, 0xf7, 0xd1, 0x1a, 0x8b, 0x8a, 0xe2, 0x0a, + 0x29, 0x48, 0xe0, 0x84, 0xf4, 0x86, 0xde, 0x10, 0x29, 0xaa, 0x68, 0x90, 0x40, 0x8a, 0x4c, 0x6e, + 0x21, 0xda, 0x26, 0x9b, 0xd8, 0xc2, 0xf6, 0x1a, 0xef, 0x06, 0x14, 0x5e, 0x82, 0x77, 0x43, 0xe2, + 0x9a, 0x57, 0x41, 0xfb, 0xe3, 0xc4, 0xf9, 0x69, 0xe0, 0xc6, 0xb1, 0xcf, 0x9e, 0x99, 0x39, 0x67, + 0x66, 0x36, 0x70, 0x3c, 0x09, 0x23, 0xd2, 0x14, 0x0f, 0x2f, 0xcd, 0x28, 0x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0x2b, 0x92, 0xaf, 0x3e, 0xdc, + 0x16, 0xd4, 0x45, 0x9b, 0xbe, 0x92, 0x7f, 0xde, 0x9e, 0x13, 0x38, 0xca, 0x23, 0x54, 0x03, 0xda, + 0xbf, 0xf6, 0xc0, 0x94, 0x3b, 0xfc, 0x0a, 0xca, 0xb7, 0x84, 0xa3, 0x07, 0x85, 0x0e, 0x2c, 0xf7, + 0xd2, 0x39, 0x5d, 0x87, 0xf5, 0xba, 0x94, 0x5a, 0x06, 0xfa, 0x08, 0x27, 0xeb, 0x73, 0x43, 0x6e, + 0x81, 0x7f, 0xcf, 0x3e, 0x39, 0x97, 0x3b, 0x39, 0x79, 0x01, 0x21, 0xac, 0x3f, 0x5b, 0x15, 0xb6, + 0xbc, 0xfb, 0x2b, 0xc2, 0x8a, 0xd7, 0xaa, 0xd4, 0x30, 0xd0, 0x35, 0x98, 0x62, 0x60, 0xe8, 0x74, + 0x6d, 0xaa, 0x79, 0xec, 0xd9, 0x06, 0xbe, 0x28, 0xda, 0x81, 0x7d, 0xd5, 0x28, 0x64, 0x17, 0x48, + 0x2b, 0xdd, 0x76, 0x1e, 0x6e, 0x39, 0xc9, 0x13, 0x74, 0xab, 0x3f, 0x5f, 0x57, 0x5a, 0xde, 0x4b, + 0xaf, 0x75, 0xb7, 0x2f, 0xff, 0xd8, 0xae, 0xfe, 0x04, 0x00, 0x00, 0xff, 0xff, 0xf2, 0x24, 0xb9, + 0x54, 0x54, 0x05, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. diff --git a/interface/interface.pb.go b/interface/interface.pb.go index 09a5c64e..a87d8430 100644 --- a/interface/interface.pb.go +++ b/interface/interface.pb.go @@ -265,26 +265,26 @@ func init() { func init() { proto.RegisterFile("interface/interface.proto", fileDescriptor_460c38aebb3cb2d6) } var fileDescriptor_460c38aebb3cb2d6 = []byte{ - // 298 bytes of a gzipped FileDescriptorProto + // 295 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 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0x9b, 0x18, 0x91, 0xdc, - 0xe4, 0xcf, 0x25, 0xeb, 0x9c, 0x93, 0x9a, 0x58, 0xe4, 0x09, 0x33, 0xc0, 0x39, 0xbf, 0x14, 0xc4, - 0x2c, 0xc6, 0x61, 0x3f, 0x33, 0x21, 0xfb, 0x15, 0xb8, 0xe4, 0x70, 0x19, 0x08, 0x71, 0x86, 0xd1, - 0x25, 0x26, 0x2e, 0x4e, 0xb8, 0xac, 0x50, 0x0a, 0x17, 0x3f, 0x5a, 0xa0, 0x08, 0xa9, 0xe9, 0xa1, - 0x46, 0xa2, 0x1e, 0xf6, 0x38, 0x91, 0x52, 0x27, 0xa8, 0x0e, 0x1a, 0xba, 0x0c, 0x20, 0x5b, 0xdc, - 0x09, 0xd9, 0xe2, 0x4e, 0xa4, 0x2d, 0xee, 0x38, 0x6d, 0xa9, 0xe4, 0x12, 0xc3, 0xee, 0x77, 0x21, - 0x5d, 0x74, 0x43, 0xf0, 0x06, 0xba, 0x94, 0x1e, 0xb1, 0xca, 0x61, 0x56, 0x3b, 0x71, 0x5c, 0xb2, - 0x63, 0x35, 0xd0, 0x33, 0xd4, 0x33, 0x48, 0x62, 0x03, 0x27, 0x65, 0x63, 0x40, 0x00, 0x00, 0x00, - 0xff, 0xff, 0x00, 0x88, 0x3f, 0x97, 0x25, 0x03, 0x00, 0x00, + 0xb0, 0x34, 0xb5, 0xb8, 0x44, 0x48, 0x93, 0x8b, 0x13, 0x6e, 0xa8, 0x04, 0xa3, 0x02, 0xa3, 0x06, + 0xb7, 0x11, 0xb7, 0x1e, 0x44, 0x6b, 0x40, 0x62, 0x49, 0x46, 0x10, 0x42, 0x56, 0x48, 0x88, 0x8b, + 0x25, 0x37, 0x3f, 0x25, 0x55, 0x82, 0x49, 0x81, 0x51, 0x83, 0x33, 0x08, 0xcc, 0x56, 0x92, 0xe4, + 0x12, 0xc7, 0x30, 0xb8, 0xb8, 0x20, 0x3f, 0xaf, 0x38, 0x55, 0xc9, 0x99, 0x4b, 0xcc, 0x9d, 0x52, + 0x3b, 0x95, 0x74, 0xb9, 0xc4, 0xdd, 0xb1, 0x9b, 0x0f, 0x77, 0x0e, 0x23, 0x92, 0x73, 0xbc, 0xb8, + 0x64, 0x9d, 0x73, 0x52, 0x13, 0x8b, 0x3c, 0x61, 0x06, 0x38, 0xe7, 0x97, 0x82, 0x98, 0xc5, 0x38, + 0xac, 0x66, 0xc6, 0x63, 0xb5, 0x02, 0x97, 0x1c, 0x2e, 0xb3, 0x20, 0x2e, 0x30, 0xba, 0xc4, 0xc4, + 0xc5, 0x09, 0x97, 0x15, 0x4a, 0xe1, 0xe2, 0x47, 0x0b, 0x0a, 0x21, 0x35, 0x3d, 0xd4, 0x58, 0xd3, + 0xc3, 0x1e, 0x09, 0x52, 0xea, 0x04, 0xd5, 0x41, 0xc3, 0x94, 0x01, 0x64, 0x8b, 0x3b, 0x21, 0x5b, + 0xdc, 0x89, 0xb4, 0xc5, 0x1d, 0xa7, 0x2d, 0x95, 0x5c, 0x62, 0xd8, 0xfd, 0x2e, 0xa4, 0x8b, 0x6e, + 0x08, 0xde, 0xf0, 0x96, 0xd2, 0x23, 0x56, 0x39, 0xcc, 0x6a, 0x27, 0x8e, 0x4b, 0x76, 0xac, 0x06, + 0x7a, 0x86, 0x7a, 0x06, 0x49, 0x6c, 0xe0, 0xb4, 0x6b, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0x61, + 0x25, 0x1e, 0x05, 0x16, 0x03, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. diff --git a/layer2/layer2.pb.go b/layer2/layer2.pb.go index 4fdd0f30..54838487 100644 --- a/layer2/layer2.pb.go +++ b/layer2/layer2.pb.go @@ -58,7 +58,7 @@ func (PerformBERTResponse_BERTState) EnumDescriptor() ([]byte, []int) { } type ClearNeighborDiscoveryRequest struct { - Protocol types.L3Protocol `protobuf:"varint,1,opt,name=protocol,proto3,enum=gnoi.types.L3Protocol" json:"protocol,omitempty"` + Protocol types.L3Protocol `protobuf:"varint,1,opt,name=protocol,proto3,enum=types.L3Protocol" json:"protocol,omitempty"` Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -505,46 +505,46 @@ func init() { func init() { proto.RegisterFile("layer2/layer2.proto", fileDescriptor_dff9ec617d9e4348) } var fileDescriptor_dff9ec617d9e4348 = []byte{ - // 617 bytes of a gzipped FileDescriptorProto + // 614 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0xdd, 0x6e, 0xda, 0x4c, - 0x10, 0x8d, 0x21, 0x90, 0x30, 0x24, 0x88, 0x6f, 0xf3, 0x35, 0x75, 0xe9, 0x4f, 0xa8, 0xab, 0xb4, - 0xa8, 0xad, 0x4c, 0x4a, 0xee, 0xab, 0x86, 0x80, 0xaa, 0x34, 0xae, 0x41, 0x0b, 0x51, 0x7a, 0x17, - 0x19, 0x7b, 0x42, 0x56, 0x05, 0xaf, 0xbb, 0xbb, 0x89, 0x94, 0xcb, 0x3e, 0x53, 0xdf, 0xa4, 0xcf, - 0xd3, 0x8b, 0xca, 0x7f, 0x34, 0x14, 0x27, 0x54, 0xb9, 0x01, 0xcd, 0xcc, 0x99, 0x73, 0x8e, 0x76, - 0x66, 0x0c, 0x5b, 0x13, 0xe7, 0x1a, 0x45, 0xab, 0x19, 0xff, 0x99, 0x81, 0xe0, 0x8a, 0x93, 0xf2, - 0xd8, 0xe7, 0xcc, 0x8c, 0x53, 0xb5, 0xb7, 0x63, 0xa6, 0x2e, 0x2e, 0x47, 0xa6, 0xcb, 0xa7, 0x4d, - 0x1e, 0xa0, 0xef, 0x72, 0xff, 0x9c, 0x8d, 0x9b, 0x21, 0xa4, 0xa9, 0xae, 0x03, 0x94, 0xf1, 0x6f, - 0xdc, 0x6a, 0x4c, 0xe1, 0xe9, 0xe1,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0xf7, 0xa1, 0x92, 0xc6, 0x13, 0x9b, + 0xfd, 0x15, 0xfe, 0xeb, 0xa1, 0xef, 0x9d, 0x3a, 0x9f, 0xb1, 0xe3, 0x5b, 0x87, 0xf6, 0xdf, 0x0b, + 0xdc, 0xbc, 0xcf, 0x64, 0x17, 0x8a, 0x13, 0xc7, 0x3d, 0x4b, 0xaa, 0xd9, 0xf0, 0xad, 0x61, 0xe2, + 0xb8, 0x87, 0xf1, 0xc2, 0xdf, 0x81, 0xff, 0x7f, 0x53, 0x8f, 0xc6, 0x6a, 0xfc, 0xc8, 0x42, 0xde, + 0x0a, 0x8d, 0x27, 0x12, 0x76, 0xd2, 0x8f, 0x82, 0xcc, 0x2f, 0xc8, 0xad, 0x37, 0x5a, 0x79, 0xf1, + 0x47, 0xd8, 0xf8, 0x51, 0x56, 0x88, 0x07, 0x5b, 0x0b, 0x07, 0x42, 0xf6, 0x16, 0x39, 0x52, 0xee, + 0xb0, 0xf2, 0x64, 0x19, 0x6c, 0xa6, 0xd2, 0x87, 0xe2, 0xb5, 0xb5, 0x26, 0xbb, 0x37, 0x2f, 0x7c, + 0xc4, 0x5c, 0x5d, 0x76, 0x11, 0xc6, 0xca, 0xbe, 0x46, 0x86, 0x40, 0x16, 0x0d, 0x27, 0x29, 0x53, + 0xa5, 0x6d, 0x56, 0xe5, 0xe9, 0x52, 0xdc, 0x6c, 0xfc, 0x4f, 0xb0, 0x39, 0xe7, 0x1e, 0x79, 0x34, + 0xd7, 0x9b, 0xb6, 0x57, 0x15, 0xe3, 0x36, 0x48, 0xc2, 0xdc, 0x5c, 0xff, 0xfe, 0x26, 0xb7, 0x6f, + 0xbe, 0x36, 0xf7, 0x07, 0xf9, 0xf0, 0xb3, 0x79, 0xf0, 0x33, 0x00, 0x00, 0xff, 0xff, 0xd2, 0x75, + 0x98, 0x1a, 0xd5, 0x05, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. diff --git a/system/system.pb.go b/system/system.pb.go index 1d3da254..94680e41 100644 --- a/system/system.pb.go +++ b/system/system.pb.go @@ -639,7 +639,7 @@ type PingRequest struct { Size int32 `protobuf:"varint,6,opt,name=size,proto3" json:"size,omitempty"` DoNotFragment bool `protobuf:"varint,7,opt,name=do_not_fragment,json=doNotFragment,proto3" json:"do_not_fragment,omitempty"` DoNotResolve bool `protobuf:"varint,8,opt,name=do_not_resolve,json=doNotResolve,proto3" json:"do_not_resolve,omitempty"` - L3Protocol types.L3Protocol `protobuf:"varint,9,opt,name=l3protocol,proto3,enum=gnoi.types.L3Protocol" json:"l3protocol,omitempty"` + L3Protocol types.L3Protocol `protobuf:"varint,9,opt,name=l3protocol,proto3,enum=types.L3Protocol" json:"l3protocol,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -874,7 +874,7 @@ type TracerouteRequest struct { Wait int64 `protobuf:"varint,5,opt,name=wait,proto3" json:"wait,omitempty"` DoNotFragment bool `protobuf:"varint,6,opt,name=do_not_fragment,json=doNotFragment,proto3" json:"do_not_fragment,omitempty"` DoNotResolve bool `protobuf:"varint,7,opt,name=do_not_resolve,json=doNotResolve,proto3" json:"do_not_resolve,omitempty"` - L3Protocol types.L3Protocol `protobuf:"varint,8,opt,name=l3protocol,proto3,enum=gnoi.types.L3Protocol" json:"l3protocol,omitempty"` + L3Protocol types.L3Protocol `protobuf:"varint,8,opt,name=l3protocol,proto3,enum=types.L3Protocol" json:"l3protocol,omitempty"` L4Protocol TracerouteRequest_L4Protocol `protobuf:"varint,9,opt,name=l4protocol,proto3,enum=gnoi.system.TracerouteRequest_L4Protocol" json:"l4protocol,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -1423,107 +1423,107 @@ func init() { func init() { proto.RegisterFile("system/system.proto", fileDescriptor_746080b643370b3b) } var fileDescriptor_746080b643370b3b = []byte{ - // 1596 bytes of a gzipped FileDescriptorProto - 0x1f, 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xe8, 0x1b, 0x78, 0x1c, 0x28, 0x91, 0x97, 0xe6, - 0x32, 0xcb, 0x38, 0x36, 0x4e, 0x5a, 0x2f, 0xcd, 0x8e, 0x8c, 0x53, 0x99, 0x1b, 0xfb, 0x7c, 0x81, - 0xcd, 0xe0, 0x96, 0x15, 0xfb, 0x6f, 0x06, 0x7c, 0xfe, 0x31, 0x07, 0x2c, 0xa5, 0x09, 0x23, 0xdf, - 0xd3, 0x03, 0xb2, 0xa0, 0xbe, 0x22, 0x19, 0x0b, 0x69, 0x62, 0x95, 0x8e, 0x8d, 0x93, 0x26, 0xce, - 0x49, 0x74, 0x04, 0xb5, 0x65, 0xca, 0xc3, 0x98, 0x58, 0xe5, 0x63, 0xe3, 0xa4, 0x8c, 0x35, 0x65, - 0xff, 0xdb, 0x80, 0x3d, 0x4c, 0xae, 0x28, 0xe5, 0x79, 0x92, 0x5f, 0x42, 0x2d, 0x26, 0x7c, 0x41, - 0x67, 0xd2, 0xef, 0xfe, 0xcb, 0x27, 0x9d, 0x42, 0x07, 0x3a, 0x4a, 0xf7, 0x52, 0x2a, 0x60, 0xad, - 0x88, 0x0e, 0xa1, 0x3a, 0x23, 0x91, 0x7f, 0x2d, 0x9d, 0x56, 0xb0, 0x22, 0x44, 0x30, 0x31, 0x61, - 0xcc, 0x9f, 0x2b, 0x9f, 0x4d, 0x9c, 0x93, 0xe8, 0x6b, 0xd8, 0x63, 0xcb, 0xab, 0x80, 0xc6, 0x29, - 0x4d, 0x48, 0xc2, 0x99, 0x55, 0x39, 0x2e, 0x6f, 0xcd, 0x70, 0x53, 0x4d, 0xf8, 0x79, 0x4b, 0xb3, - 0x80, 0x58, 0xd5, 0x63, 0xe3, 0xa4, 0x81, 0x15, 0x61, 0x9b, 0xb0, 0x9f, 0x67, 0xa0, 0xaa, 0x68, - 0xcf, 0xe1, 0xa0, 0xe7, 0x27, 0x01, 0x89, 0x36, 0x33, 0x2b, 0x04, 0x64, 0xdc, 0x13, 0x50, 0xe9, - 0x41, 0x01, 0xd9, 0x47, 0x70, 0xb8, 0xe9, 0x48, 0x07, 0x70, 0x09, 0x07, 0x8a, 0x33, 0xe1, 0x3e, - 0x5f, 0xb2, 0x3c, 0x80, 0x3b, 0x6e, 0x8c, 0x87, 0xb9, 0xf9, 0xab, 0x01, 0x87, 0x9b, 0xf6, 0x34, - 0x5c, 0x8e, 0xa0, 0xe6, 0x07, 0x3c, 0x5c, 0xa9, 0x84, 0x1a, 0x58, 0x53, 0x08, 0x41, 0xe5, 0xbd, - 0x1f, 0x72, 0xdd, 0x0f, 0xb9, 0x96, 0xbc, 0x05, 0x49, 0x64, 0x2f, 0x04, 0x6f, 0x41, 0x24, 0x2a, - 0x32, 0xe2, 0x33, 0x9a, 0x58, 0x15, 0x59, 0x10, 0x4d, 0x89, 0x42, 0x07, 0x74, 0x99, 0x70, 0x59, - 0xe8, 0x3d, 0xac, 0x08, 0x7b, 0x0f, 0x5a, 0x6e, 0x18, 0x13, 0x9d, 0x8d, 0x6d, 0xc3, 0xae, 0x22, - 0x75, 0x30, 0x08, 0x2a, 0x12, 0x60, 0x86, 0x72, 0x20, 0xe1, 0xf5, 0xaf, 0x12, 0xb4, 0xc6, 0x61, - 0x32, 0xcf, 0x2b, 0x70, 0x0c, 0xad, 0x19, 0x61, 0x3c, 0x4c, 0x7c, 0x2e, 0x40, 0xaa, 0xda, 0x50, - 0x64, 0x89, 0x90, 0x18, 0x5d, 0x8a, 0x26, 0x2b, 0x04, 0x6b, 0xea, 0x26, 0x24, 0x11, 0x7f, 0x55, - 0x87, 0x84, 0xda, 0xd0, 0x08, 0x13, 0x4e, 0xb2, 0x95, 0x1f, 0xc9, 0x14, 0xca, 0x78, 0x4d, 0xaf, - 0x8b, 0x50, 0x95, 0xfc, 0x75, 0x11, 0x58, 0xf8, 0x17, 0x62, 0xd5, 0xa4, 0x11, 0xb9, 0x46, 0x3f, - 0x83, 0x47, 0x33, 0xea, 0x25, 0x94, 0x7b, 0x6f, 0x33, 0x7f, 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9, 0x0d, 0x54, 0xe4, 0xc3, 0xb9, 0x19, 0x53, 0x61, 0xbc, - 0xba, 0x15, 0x53, 0x71, 0xd2, 0xb2, 0x77, 0x44, 0x44, 0x37, 0xe5, 0xbd, 0x15, 0xd1, 0x1d, 0x4c, - 0xdc, 0x8a, 0xe8, 0x6e, 0x5f, 0xec, 0x9d, 0x13, 0x03, 0x31, 0x38, 0xda, 0xfe, 0x71, 0x82, 0x9e, - 0x6f, 0x6e, 0xff, 0xd4, 0x27, 0x52, 0xfb, 0xe7, 0x0f, 0xd2, 0x5d, 0xe7, 0xd1, 0x83, 0x9a, 0x02, - 0x04, 0x6a, 0x6f, 0xf9, 0xcc, 0xc8, 0x8d, 0x3e, 0xdd, 0x2a, 0x5b, 0x1b, 0x99, 0xe6, 0xa8, 0x52, - 0xd3, 0x31, 0x3a, 0xde, 0xa2, 0xbe, 0x31, 0x88, 0xb7, 0x7f, 0xfc, 0x09, 0x8d, 0xa2, 0xd9, 0xe2, - 0x70, 0x7f, 0xcb, 0xec, 0x96, 0x0f, 0x8c, 0x5b, 0x66, 0xb7, 0x7e, 0x19, 0xec, 0xbc, 0x6e, 0xfc, - 0xe7, 0xb7, 0xd5, 0x17, 0x9d, 0x2f, 0x3b, 0x2f, 0xae, 0x6a, 0xf2, 0xc9, 0x7d, 0xf5, 0xff, 0x00, - 0x00, 0x00, 0xff, 0xff, 0x20, 0x36, 0x19, 0xc2, 0xf8, 0x0e, 0x00, 0x00, + // 1595 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x57, 0x4f, 0x73, 0xe3, 0x48, + 0x15, 0x8f, 0xfc, 0xdf, 0xcf, 0x49, 0x46, 0xe9, 0x84, 0xac, 0xc6, 0x0b, 0xbb, 0x41, 0xc5, 0x52, + 0x99, 0x85, 0x72, 0x66, 0x32, 0x5b, 0xc5, 0x16, 0xd4, 0xb2, 0xe5, 0xb1, 0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, 0x68, 0x60, 0x2d, 0x21, 0x04, 0x95, + 0x77, 0x7e, 0xc8, 0x75, 0x03, 0xe4, 0x5a, 0xea, 0xe6, 0x24, 0x91, 0xe0, 0x0b, 0xdd, 0x9c, 0x48, + 0x1a, 0x64, 0xc4, 0x67, 0x34, 0xb1, 0x2a, 0x12, 0x06, 0x2d, 0x09, 0x78, 0x03, 0xba, 0x48, 0xb8, + 0x84, 0x77, 0x0f, 0x2b, 0xc1, 0xde, 0x83, 0x96, 0x1b, 0xc6, 0x44, 0x17, 0x62, 0xdb, 0xb0, 0xab, + 0x44, 0x9d, 0x0c, 0x82, 0x8a, 0x64, 0x94, 0xa1, 0x0e, 0x90, 0x7c, 0xfa, 0x67, 0x09, 0x5a, 0xe3, + 0x30, 0xb9, 0xcd, 0x8b, 0x3f, 0x81, 0xd6, 0x8c, 0x30, 0x1e, 0x26, 0x3e, 0x17, 0xac, 0x54, 0xe0, + 0x17, 0x55, 0x22, 0x25, 0x46, 0x17, 0xa2, 0xb5, 0x8a, 0xb2, 0x5a, 0xba, 0x4f, 0x49, 0xe4, 0x5f, + 0xd5, 0x29, 0xa1, 0x36, 0x34, 0xc2, 0x84, 0x93, 0x6c, 0xe9, 0x47, 0xb2, 0x84, 0x32, 0x5e, 0xc9, + 0x2b, 0x10, 0xaa, 0x52, 0xbf, 0x02, 0x81, 0x85, 0x7f, 0x24, 0x56, 0x4d, 0x06, 0x91, 0x6b, 0xf4, + 0x53, 0x78, 0x32, 0xa3, 0x5e, 0x42, 0xb9, 0xf7, 0x26, 0xf3, 0x6f, 0x63, 0x92, 0x70, 0xab, 0x2e, + 0xd1, 0xdc, 0x9b, 0xd1, 0x21, 0xe5, 0x17, 0x5a, 0x89, 0x7e, 0x02, 0xfb, 0xda, 0x2f, 0x23, 0x8c, + 0x46, 0x4b, 0x62, 0x35, 0xa4, 0xdb, 0xae, 0x74, 0xc3, 0x4a, 0x87, 0x5e, 0x00, 0x44, 0x2f, 0xe5, + 0xb3, 0x11, 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, 0x78, 0x17, 0xdd, 0xab, 0x81, 0xd3, 0x37, 0xeb, 0x62, 0xcb, 0x05, 0xee, + 0xfe, 0xe6, 0xda, 0x19, 0xba, 0x5d, 0xf7, 0x6a, 0x34, 0xf4, 0x86, 0x8e, 0xd3, 0x77, 0xfa, 0x66, + 0x03, 0xed, 0x03, 0x8c, 0xf1, 0xe8, 0xf2, 0xea, 0xd5, 0x95, 0xeb, 0xf4, 0xcd, 0xa6, 0x0a, 0xee, + 0xf4, 0x9c, 0xbe, 0x33, 0xec, 0x39, 0xde, 0xef, 0xae, 0x46, 0x03, 0xb9, 0xc1, 0x04, 0xf4, 0x03, + 0x38, 0x28, 0x58, 0x7a, 0x53, 0x77, 0x74, 0x71, 0x61, 0xb6, 0xec, 0x7f, 0x18, 0x50, 0x1f, 0xfb, + 0xc1, 0x5b, 0x31, 0x08, 0xb4, 0xa1, 0xf1, 0x26, 0x8c, 0x48, 0x81, 0xc6, 0x2b, 0xb9, 0x38, 0x57, + 0x55, 0xd6, 0xe7, 0xaa, 0x36, 0x34, 0xe4, 0x27, 0x58, 0x90, 0x44, 0x8d, 0x26, 0x2b, 0x19, 0x7d, + 0x0b, 0x4f, 0x32, 0x12, 0x53, 0x4e, 0xbc, 0x19, 0x7d, 0x97, 0x44, 0xd4, 0x9f, 0x49, 0x16, 0xb6, + 0xce, 0x8f, 0x3b, 0x7a, 0x36, 0xc5, 0xd2, 0xdc, 0xd7, 0x56, 0xbc, 0x9f, 0xad, 0xc9, 0xf6, 0x5f, + 0x0d, 0x38, 0x98, 0x10, 0xae, 0x33, 0xcc, 0x1f, 0xc3, 0xe7, 0x50, 0x4f, 0x95, 0x46, 0x0f, 0x85, + 0x47, 0x6b, 0xec, 0xd1, 0xde, 0x97, 0x3b, 0x38, 0x77, 0x43, 0x3f, 0x84, 0x86, 0x18, 0x15, 0xf5, + 0x78, 0x63, 0x9c, 0xee, 0x5e, 0xee, 0xe0, 0x95, 0x06, 0x7d, 0x01, 0x95, 0xb9,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xf6, 0x87, 0x7e, 0xf5, 0xb4, 0x7f, 0xf6, 0x51, 0xbe, 0xab, 0x3a, 0x7a, 0x50, 0x53, 0x84, + 0x40, 0xed, 0x2d, 0xbf, 0x21, 0xf2, 0xa0, 0x9f, 0x6e, 0xb5, 0xad, 0x82, 0x4c, 0x73, 0x56, 0xa9, + 0x49, 0x18, 0x9d, 0x6c, 0x71, 0x5f, 0x9b, 0xb7, 0xdb, 0x3f, 0x7e, 0xc0, 0xa3, 0x18, 0xb6, 0x38, + 0xc3, 0x6f, 0x84, 0xdd, 0xf2, 0x13, 0x62, 0x23, 0xec, 0xd6, 0x1f, 0x00, 0x3b, 0xaf, 0x1a, 0xff, + 0xfe, 0x75, 0xf5, 0x79, 0xe7, 0x45, 0xe7, 0xf9, 0x4d, 0x4d, 0x7e, 0x68, 0x5f, 0xfe, 0x2f, 0x00, + 0x00, 0xff, 0xff, 0xec, 0x84, 0xe0, 0xe4, 0xcb, 0x0e, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. diff --git a/types/types.pb.go b/types/types.pb.go index 3b6efb58..f8c817b8 100644 --- a/types/types.pb.go +++ b/types/types.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // source: types/types.proto -package gnoi_types +package types import ( fmt "fmt" @@ -84,7 +84,7 @@ func (HashType_HashMethod) EnumDescriptor() ([]byte, []int) { // HashType defines the valid hash methods for data verification. UNSPECIFIED // should be treated an error. type HashType struct { - Method HashType_HashMethod `protobuf:"varint,1,opt,name=method,proto3,enum=gnoi.types.HashType_HashMethod" json:"method,omitempty"` + Method HashType_HashMethod `protobuf:"varint,1,opt,name=method,proto3,enum=types.HashType_HashMethod" json:"method,omitempty"` Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -386,52 +386,52 @@ var E_GnoiVersion = &proto.ExtensionDesc{ ExtendedType: (*descriptor.FileOptions)(nil), ExtensionType: (*string)(nil), Field: 1002, - Name: "gnoi.types.gnoi_version", + Name: "types.gnoi_version", Tag: "bytes,1002,opt,name=gnoi_version", Filename: "types/types.proto", } func init() { - proto.RegisterEnum("gnoi.types.L3Protocol", L3Protocol_name, L3Protocol_value) - proto.RegisterEnum("gnoi.types.HashType_HashMethod", HashType_HashMethod_name, HashType_HashMethod_value) - proto.RegisterType((*HashType)(nil), "gnoi.types.HashType") - proto.RegisterType((*Path)(nil), "gnoi.types.Path") - proto.RegisterType((*PathElem)(nil), "gnoi.types.PathElem") - proto.RegisterMapType((map[string]string)(nil), "gnoi.types.PathElem.KeyEntry") - proto.RegisterType((*Credentials)(nil), "gnoi.types.Credentials") + proto.RegisterEnum("types.L3Protocol", L3Protocol_name, L3Protocol_value) + proto.RegisterEnum("types.HashType_HashMethod", HashType_HashMethod_name, HashType_HashMethod_value) + proto.RegisterType((*HashType)(nil), "types.HashType") + proto.RegisterType((*Path)(nil), "types.Path") + proto.RegisterType((*PathElem)(nil), "types.PathElem") + proto.RegisterMapType((map[string]string)(nil), "types.PathElem.KeyEntry") + proto.RegisterType((*Credentials)(nil), "types.Credentials") proto.RegisterExtension(E_GnoiVersion) } func init() { proto.RegisterFile("types/types.proto", fileDescriptor_2c0f90c600ad7e2e) } var fileDescriptor_2c0f90c600ad7e2e = []byte{ - // 448 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x92, 0xdf, 0x6e, 0xd3, 0x30, - 0x14, 0xc6, 0xeb, 0xa4, 0x64, 0xe9, 0xe9, 0x04, 0xc1, 0x9a, 0x50, 0x54, 0xf1, 0x27, 0xca, 0x55, - 0xc5, 0x85, 0xab, 0x75, 0xb4, 0xa0, 0x5d, 0x20, 0x60, 0xeb, 0x94, 0x0a, 0x06, 0x55, 0x06, 0xbb, - 0x45, 0x59, 0x73, 0x68, 0x22, 0x92, 0x38, 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x79, 0x21, 0xdd, 0xdf, 0x7b, 0xfa, 0x34, 0xc3, 0x7a, 0xe4, 0xb2, 0x99, 0xb8, 0xb2, - 0x34, 0x79, 0xf4, 0x27, 0x00, 0x00, 0xff, 0xff, 0x3b, 0xfa, 0x7b, 0x5f, 0xb4, 0x02, 0x00, 0x00, + // 443 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x92, 0xc1, 0x6e, 0xd3, 0x40, + 0x10, 0x86, 0xb3, 0x76, 0xea, 0x3a, 0x93, 0x8a, 0x9a, 0x15, 0x42, 0x56, 0x84, 0x90, 0x65, 0x2e, + 0xa1, 0x07, 0x47, 0x75, 0x49, 0x84, 0x7a, 0x40, 0x40, 0x9a, 0x2a, 0x11, 0x14, 0x22, 0x17, 0x7a, + 0x45, 0x6e, 0x3c, 0xc4, 0x16, 0xb6, 0xd7, 0xda, 0xdd, 0x14, 0x7c, 0x43, 0x3c, 0x02, 0x8f, 0xc9, + 0x53, 0x20, 0xef, 0xda, 0xb4, 0xa2, 0x17, 0xeb, 0x9f, 0xf1, 0x37, 0xbf, 0x66, 0x76, 0x06, 0x1e, + 0xca, 0xba, 0x42, 0x31, 0x51, 0xdf, 0xa0, 0xe2, 0x4c, 0x32, 0xba, 0xa7, 0x82, 0x91, 0xb7, 0x65, + 0x6c, 0x9b, 0xe3, 0x44, 0x25, 0xaf, 0x77, 0x5f, 0x27, 0x09, 0x8a, 0x0d, 0xcf, 0x2a, 0xc9, 0xb8, + 0x06, 0xfd, 0xdf, 0x04, 0xec, 0x65, 0x2c, 0xd2, 0x4f, 0x75, 0x85, 0x34, 0x04, 0xab, 0x40, 0x99, + 0xb2, 0xc4, 0x25, 0x1e, 0x19, 0x3f, 0x08, 0x47, 0x81, 0xf6, 0xec, 0x00, 0x25, 0x2e, 0x14, 0x11, + 0xb5, 0x24, 0xa5, 0xd0, 0x4f, 0x63, 0x91, 0xba, 0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8, 0x36, 0x45, + 0x9f, 0x83, 0xd5, 0xbc, 0x2e, 0x26, 0xae, 0xe9, 0x91, 0x3b, 0x73, 0x77, 0xdb, 0x59, 0xf6, 0xa2, + 0x16, 0x78, 0x0b, 0x60, 0x57, 0xb1, 0x10, 0xdf, 0x19, 0x4f, 0x8e, 0x8e, 0x01, 0xde, 0x9f, 0xac, + 0x9b, 0x65, 0x6f, 0x58, 0x7e, 0x7f, 0x19, 0x36, 0xf4, 0x57, 0xeb, 0xab, 0x17, 0x0e, 0x69, 0xd5, + 0xcc, 0x31, 0x4e, 0x5f, 0xc3, 0xc1, 0xb6, 0x64, 0xd9, 0x97, 0x1b, 0xe4, 0x22, 0x63, 0x25, 0x7d, + 0x12, 0xe8, 0x3b, 0x0a, 0xba, 0x3b, 0x0a, 0xce, 0xb3, 0x1c, 0x3f, 0x56, 0x32, 0x63, 0xa5, 0x70, + 0xff, 0xec, 0xab, 0x41, 0x86, 0x4d, 0xc9, 0x95, 0xae, 0xb8, 0xb6, 0x14, 0x79, 0xf2, 0x37, 0x00, + 0x00, 0xff, 0xff, 0x97, 0x72, 0x64, 0x08, 0x9b, 0x02, 0x00, 0x00, } diff --git a/types/types.proto b/types/types.proto index a5baa43d..f250158f 100644 --- a/types/types.proto +++ b/types/types.proto @@ -18,7 +18,7 @@ syntax = "proto3"; import "google/protobuf/descriptor.proto"; -package gnoi.types; +package types; // Define a protobuf FileOption that defines the gNOI service version. extend google.protobuf.FileOptions { From 3fca108049ac7c6bf619d2c053a06441be10dd35 Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 16:59:46 +0530 Subject: [PATCH 206/238] Revert "Update package names to avoid package duplication." This reverts commit 3bb14dc0a8f5039f1b61ce6d0d5967e064c3990c. --- bgp/bgp.proto | 2 +- cert/cert.proto | 2 +- common/common.pb.go | 36 +++---- common/common.proto | 4 +- diag/diag.pb.go | 134 ++++++++++++------------- diag/diag.proto | 16 +-- file/file.pb.go | 78 +++++++-------- file/file.proto | 10 +- interface/interface.pb.go | 28 +++--- interface/interface.proto | 8 +- layer2/layer2.pb.go | 82 +++++++-------- layer2/layer2.proto | 12 +-- mpls/mpls.proto | 2 +- system/system.pb.go | 204 +++++++++++++++++++------------------- system/system.proto | 20 ++-- test/simple_test.go | 17 +--- types/types.pb.go | 78 +++++++-------- types/types.proto | 2 +- 18 files changed, 360 insertions(+), 375 deletions(-) diff --git a/bgp/bgp.proto b/bgp/bgp.proto index 124efabc..4c85e64f 100644 --- a/bgp/bgp.proto +++ b/bgp/bgp.proto @@ -21,7 +21,7 @@ import "github.com/openconfig/gnoi/types/types.proto"; package gnoi.bgp; // The current semantic version of the gNOI BGP service. -option (types.gnoi_version) = "0.1.0"; +option (gnoi.gnoi_version) = "0.1.0"; service BGP { // ClearBGPNeighbor clears a BGP session. diff --git a/cert/cert.proto b/cert/cert.proto index 453a7fb4..bf10bf67 100644 --- a/cert/cert.proto +++ b/cert/cert.proto @@ -22,7 +22,7 @@ import "github.com/openconfig/gnoi/types/types.proto"; package gnoi.certificate; -option (types.gnoi_version) = "0.1.0"; +option (gnoi.gnoi_version) = "0.1.0"; // The Certificate Management Service exported by targets. // The service primarily exports two main RPCs, Install & Rotate which are used diff --git a/common/common.pb.go b/common/common.pb.go index 0ef446a1..42d0364e 100644 --- a/common/common.pb.go +++ b/common/common.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // source: common/common.proto -package common +package gnoi import ( fmt "fmt" @@ -63,7 +63,7 @@ type RemoteDownload struct { // For SFTP and SCP, this will be the address:/path/to/file // (i.e. host.foo.com:/bar/baz). Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` - Protocol RemoteDownload_Protocol `protobuf:"varint,2,opt,name=protocol,proto3,enum=common.RemoteDownload_Protocol" json:"protocol,omitempty"` + Protocol RemoteDownload_Protocol `protobuf:"varint,2,opt,name=protocol,proto3,enum=gnoi.RemoteDownload_Protocol" json:"protocol,omitempty"` Credentials *types.Credentials `protobuf:"bytes,3,opt,name=credentials,proto3" json:"credentials,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -117,8 +117,8 @@ func (m *RemoteDownload) GetCredentials() *types.Credentials { } func init() { - proto.RegisterEnum("common.RemoteDownload_Protocol", RemoteDownload_Protocol_name, RemoteDownload_Protocol_value) - proto.RegisterType((*RemoteDownload)(nil), "common.RemoteDownload") + proto.RegisterEnum("gnoi.RemoteDownload_Protocol", RemoteDownload_Protocol_name, RemoteDownload_Protocol_value) + proto.RegisterType((*RemoteDownload)(nil), "gnoi.RemoteDownload") } func init() { proto.RegisterFile("common/common.proto", fileDescriptor_8f954d82c0b891f6) } @@ -126,18 +126,18 @@ func init() { proto.RegisterFile("common/common.proto", fileDescriptor_8f954d82c var fileDescriptor_8f954d82c0b891f6 = []byte{ // 239 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x4e, 0xce, 0xcf, 0xcd, - 0xcd, 0xcf, 0xd3, 0x87, 0x50, 0x7a, 0x05, 0x45, 0xf9, 0x25, 0xf9, 0x42, 0x6c, 0x10, 0x9e, 0x94, - 0x4e, 0x7a, 0x66, 0x49, 0x46, 0x69, 0x92, 0x5e, 0x72, 0x7e, 0xae, 0x7e, 0x7e, 0x41, 0x6a, 0x5e, - 0x72, 0x7e, 0x5e, 0x5a, 0x66, 0xba, 0x7e, 0x7a, 0x5e, 0x7e, 0xa6, 0x7e, 0x49, 0x65, 0x41, 0x6a, - 0x31, 0x84, 0x84, 0xe8, 0x52, 0xba, 0xc1, 0xc8, 0xc5, 0x17, 0x94, 0x9a, 0x9b, 0x5f, 0x92, 0xea, - 0x92, 0x5f, 0x9e, 0x97, 0x93, 0x9f, 0x98, 0x22, 0x24, 0xc4, 0xc5, 0x52, 0x90, 0x58, 0x92, 0x21, - 0xc1, 0xa8, 0xc0, 0xa8, 0xc1, 0x19, 0x04, 0x66, 0x0b, 0x59, 0x73, 0x71, 0x80, 0xd5, 0x27, 0xe7, - 0xe7, 0x48, 0x30, 0x29, 0x30, 0x6a, 0xf0, 0x19, 0xc9, 0xeb, 0x41, 0x6d, 0x47, 0xd5, 0xad, 0x17, - 0x00, 0x55, 0x16, 0x04, 0xd7, 0x20, 0x64, 0xc2, 0xc5, 0x9d, 0x5c, 0x94, 0x9a, 0x92, 0x9a, 0x57, - 0x92, 0x99, 0x98, 0x53, 0x2c, 0xc1, 0xac, 0xc0, 0xa8, 0xc1, 0x6d, 0x24, 0xa4, 0x07, 0x71, 0x86, - 0x33, 0x42, 0x26, 0x08, 0x59, 0x99, 0x92, 0x3d, 0x17, 0x07, 0xcc, 0x2c, 0x21, 0x6e, 0x2e, 0xf6, - 0x50, 0x3f, 0x6f, 0x3f, 0xff, 0x70, 0x3f, 0x01, 0x06, 0x21, 0x0e, 0x2e, 0x96, 0x60, 0xb7, 0x90, - 0x00, 0x01, 0x46, 0x10, 0xcb, 0x23, 0x24, 0x24, 0x40, 0x80, 0x49, 0x88, 0x93, 0x8b, 0x15, 0xc4, - 0x0a, 0x16, 0x60, 0x16, 0x62, 0xe7, 0x62, 0x0e, 0x76, 0x0e, 0x10, 0x60, 0x49, 0x62, 0x03, 0x3b, - 0xc0, 0x18, 0x10, 0x00, 0x00, 0xff, 0xff, 0xbb, 0x3d, 0xeb, 0xfc, 0x2e, 0x01, 0x00, 0x00, + 0xcd, 0xcf, 0xd3, 0x87, 0x50, 0x7a, 0x05, 0x45, 0xf9, 0x25, 0xf9, 0x42, 0x2c, 0xe9, 0x79, 0xf9, + 0x99, 0x52, 0x3a, 0xe9, 0x99, 0x25, 0x19, 0xa5, 0x49, 0x7a, 0xc9, 0xf9, 0xb9, 0xfa, 0xf9, 0x05, + 0xa9, 0x79, 0xc9, 0xf9, 0x79, 0x69, 0x99, 0xe9, 0xfa, 0x20, 0x39, 0xfd, 0x92, 0xca, 0x82, 0xd4, + 0x62, 0x08, 0x09, 0xd1, 0xa3, 0x74, 0x95, 0x91, 0x8b, 0x2f, 0x28, 0x35, 0x37, 0xbf, 0x24, 0xd5, + 0x25, 0xbf, 0x3c, 0x2f, 0x27, 0x3f, 0x31, 0x45, 0x48, 0x88, 0x8b, 0xa5, 0x20, 0xb1, 0x24, 0x43, + 0x82, 0x51, 0x81, 0x51, 0x83, 0x33, 0x08, 0xcc, 0x16, 0xb2, 0xe4, 0xe2, 0x00, 0xab, 0x4f, 0xce, + 0xcf, 0x91, 0x60, 0x52, 0x60, 0xd4, 0xe0, 0x33, 0x92, 0xd5, 0x03, 0x99, 0xa8, 0x87, 0xaa, 0x57, + 0x2f, 0x00, 0xaa, 0x28, 0x08, 0xae, 0x5c, 0xc8, 0x98, 0x8b, 0x3b, 0xb9, 0x28, 0x35, 0x25, 0x35, + 0xaf, 0x24, 0x33, 0x31, 0xa7, 0x58, 0x82, 0x59, 0x81, 0x51, 0x83, 0xdb, 0x48, 0x10, 0xa2, 0xdb, + 0x19, 0x21, 0x11, 0x84, 0xac, 0x4a, 0xc9, 0x9e, 0x8b, 0x03, 0x66, 0x94, 0x10, 0x37, 0x17, 0x7b, + 0xa8, 0x9f, 0xb7, 0x9f, 0x7f, 0xb8, 0x9f, 0x00, 0x83, 0x10, 0x07, 0x17, 0x4b, 0xb0, 0x5b, 0x48, + 0x80, 0x00, 0x23, 0x88, 0xe5, 0x11, 0x12, 0x12, 0x20, 0xc0, 0x24, 0xc4, 0xc9, 0xc5, 0x0a, 0x62, + 0x05, 0x0b, 0x30, 0x0b, 0xb1, 0x73, 0x31, 0x07, 0x3b, 0x07, 0x08, 0xb0, 0x24, 0xb1, 0x81, 0xed, + 0x37, 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, 0x35, 0xc2, 0x5a, 0xe6, 0x29, 0x01, 0x00, 0x00, } diff --git a/common/common.proto b/common/common.proto index 4fbd30db..b5ade89e 100644 --- a/common/common.proto +++ b/common/common.proto @@ -16,7 +16,7 @@ syntax = "proto3"; -package common; +package gnoi; import "github.com/openconfig/gnoi/types/types.proto"; @@ -38,5 +38,5 @@ message RemoteDownload { } Protocol protocol = 2; - types.Credentials credentials = 3; + gnoi.Credentials credentials = 3; } diff --git a/diag/diag.pb.go b/diag/diag.pb.go index e0668141..ced68fb5 100644 --- a/diag/diag.pb.go +++ b/diag/diag.pb.go @@ -839,73 +839,73 @@ func init() { func init() { proto.RegisterFile("diag/diag.proto", fileDescriptor_c2372dae051d1d7a) } var fileDescriptor_c2372dae051d1d7a = []byte{ - // 1051 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x56, 0xdd, 0x4e, 0xe3, 0xc6, - 0x17, 0x27, 0x1f, 0xb0, 0x64, 0xf8, 0x88, 0x19, 0xfe, 0xb0, 0x21, 0xfc, 0xbb, 0x1b, 0xb2, 0xdb, - 0x6e, 0x96, 0xdd, 0x06, 0x08, 0xaa, 0xaa, 0x55, 0xa5, 0x4a, 0x0e, 0x31, 0x60, 0x91, 0xb5, 0xad, - 0xb1, 0xd3, 0x2d, 0x7b, 0xd1, 0x91, 0x13, 0x86, 0x60, 0xe1, 0x78, 0xdc, 0x99, 0xc9, 0xc5, 0xbe, - 0x40, 0xd5, 0x8b, 0xaa, 0x0f, 0xd3, 0xd7, 0xe8, 0x55, 0xdb, 0xe7, 0xe8, 0x2b, 0x54, 0xd5, 0xd8, - 0x09, 0x71, 0xa2, 0x04, 0x0a, 0x2b, 0x55, 0xbd, 0xb1, 0x34, 0xe7, 0xf7, 0x3b, 0x3e, 0xe7, 0xfc, - 0xce, 0x99, 0x0f, 0x90, 0xbf, 0xf0, 0xdc, 0xee, 0x9e, 0xfc, 0x54, 0x43, 0x46, 0x05, 0x85, 0xb9, - 0x6e, 0x40, 0xbd, 0xaa, 0x34, 0x14, 0x5f, 0x77, 0x3d, 0x71, 0xd5, 0x6f, 0x57, 0x3b, 0xb4,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c, 0x3b, 0x00, - 0x00, 0xff, 0xff, 0x9c, 0x1e, 0x54, 0x1c, 0xf3, 0x0b, 0x00, 0x00, + // 1049 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x56, 0xdd, 0x6e, 0xe3, 0x44, + 0x14, 0x6e, 0x7e, 0xda, 0x6d, 0x4e, 0xb7, 0x8d, 0x77, 0x96, 0x76, 0xd3, 0x14, 0x76, 0xd3, 0xec, + 0xc2, 0x86, 0xee, 0x92, 0xb6, 0xa9, 0x10, 0x5a, 0x2e, 0x90, 0x92, 0xc6, 0x6d, 0xad, 0x66, 0x6d, + 0x6b, 0xec, 0xb0, 0x74, 0x2f, 0x18, 0x39, 0xe9, 0x34, 0x35, 0xeb, 0x78, 0xcc, 0xcc, 0xe4, 0x62, + 0x1f, 0x00, 0x71, 0x81, 0x78, 0x18, 0x5e, 0x83, 0x2b, 0x04, 0xcf, 0xc1, 0x2b, 0x20, 0x64, 0x3b, + 0x69, 0x9c, 0x28, 0x69, 0x69, 0x91, 0x10, 0x37, 0x96, 0xe6, 0x7c, 0xdf, 0xf1, 0x39, 0xe7, 0x3b, + 0x67, 0x7e, 0x20, 0x7f, 0xee, 0x3a, 0xbd, 0xdd, 0xf0, 0x53, 0x0d, 0x38, 0x93, 0x0c, 0xe5, 0x7a, + 0x3e, 0x73, 0xab, 0xa1, 0xa1, 0xf8, 0xb2, 0xe7, 0xca, 0xcb, 0x41, 0xa7, 0xda, 0x65, 0xfd, 0x5d, + 0x16, 0x50, 0xbf, 0xcb, 0xfc, 0x0b, 0xb7, 0xb7, 0x1b, 0x12, 0x76, 0xe5, 0xfb, 0x80, 0x8a, 0xf8, + 0x1b, 0x3b, 0x96, 0x7f, 0x4d, 0x83, 0x62, 0x49, 0x87, 0xcb, 0x86, 0x8a, 0x6d, 0x4c, 0xbf, 0x1f, + 0x50, 0x21, 0xd1, 0x0e, 0x3c, 0xe8, 0x50, 0x2e, 0x09, 0x0b, 0x28, 0x77, 0xa4, 0xcb, 0x7c, 0xe2, + 0x9e, 0x17, 0x52, 0xa5, 0x54, 0x25, 0x87, 0xf3, 0x21, 0x60, 0x8c, 0xec, 0xda, 0x39, 0xfa, 0x1a, + 0x1e, 0x04, 0x94, 0x93, 0x80, 0x71, 0x49, 0x78, 0xec, 0x2f, 0x0a, 0xe9, 0x52, 0xa6, 0xb2, 0x52, + 0xdb, 0xa9, 0x5e, 0x65, 0x55, 0x9d, 0x8e, 0x51, 0x35, 0x29, 0x37, 0x19, 0x97, 0xc3, 0x25, 0xce, + 0x07, 0x13, 0x6b, 0x51, 0xfc, 0x25, 0x05, 0x6b, 0x93, 0x1c, 0x54, 0x81, 0x9c, 0xeb, 0x4b, 0xca, + 0x2f, 0x9c, 0x2e, 0x8d, 0xd2, 0x59, 0xa9, 0x41, 0x1c, 0xc2, 0x74, 0xe4, 0x25, 0x1e, 0x83, 0xa8, + 0x01, 0xf9, 0x80, 0x77, 0x04, 0x09, 0x98, 0xf7, 0xde, 0x67, 0x7d, 0xd7, 0xf1, 0x0a, 0xe9, 0x52, + 0xaa, 0xb2, 0x56, 0xdb, 0x4c, 0xa4, 0x64, 0xf2, 0x8e, 0x30, 0xaf, 0x08, 0x78, 0x2d, 0x98, 0x58, + 0xa3, 0x7d, 0x58, 0x97, 0x54, 0x48, 0x72, 0x3e, 0x18, 0x69, 0xe0, 0x13, 0x41, 0xbb, 0xa2, 0x90, + 0x29, 0xa5, 0x2a, 0xab, 0x18, 0x85, 0x60, 0x73, 0x88, 0x69, 0xbe, 0x45, 0xbb, 0xa2, 0xfc, 0x63, + 0x1a, 0x1e, 0x24, 0x0a, 0x15, 0x01, 0xf3, 0x05, 0xbd, 0x95, 0x9a, 0x6f, 0x01, 0x25, 0xd4, 0x8c, + 0x7f, 0x30, 0x92, 0xf3, 0xe5, 0x6c, 0x39, 0x63, 0xd2, 0x58, 0xcf, 0x78, 0x8d, 0x95, 0x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 0x19, 0xa6, 0x3a, 0xe4, 0x68, 0xcd, 0x28, 0xfe, 0x91, 0xd1, 0xd6, 0x9b, 0x4a, 0x0e, 0x3d, + 0x85, 0x27, 0x73, 0x79, 0x9a, 0x4e, 0xda, 0x96, 0xaa, 0xc0, 0xb4, 0xc2, 0xa6, 0xaa, 0x62, 0xd2, + 0x32, 0x0e, 0x4f, 0xc9, 0x51, 0x5d, 0x6b, 0xb5, 0xb1, 0xaa, 0xac, 0xa0, 0xc7, 0x50, 0x9c, 0x4d, + 0x69, 0x19, 0x96, 0xad, 0xdc, 0x9f, 0xc6, 0x35, 0xdd, 0x56, 0xb1, 0x5e, 0x6f, 0x0d, 0xa5, 0x5f, + 0xad, 0xfd, 0x99, 0x82, 0x6c, 0xd3, 0x75, 0x7a, 0xe8, 0x04, 0x72, 0x57, 0xaf, 0x1e, 0xb4, 0x75, + 0xcd, 0xd3, 0xb2, 0xf8, 0xe1, 0x75, 0x0f, 0xa5, 0xf2, 0x02, 0x52, 0x61, 0x79, 0x74, 0xc7, 0xa2, + 0xe2, 0xfc, 0xd7, 0x44, 0x71, 0xeb, 0x9a, 0x4b, 0xb9, 0xbc, 0x80, 0x6c, 0x58, 0x9d, 0x38, 0xb9, + 0xd1, 0x93, 0x1b, 0x6e, 0xae, 0x62, 0xe9, 0xa6, 0x43, 0xbf, 0xbc, 0xd0, 0x58, 0xfe, 0xfd, 0xab, + 0xc5, 0xbd, 0xea, 0x7e, 0x75, 0xaf, 0xb3, 0x14, 0xbd, 0xd0, 0x0f, 0xfe, 0x0e, 0x00, 0x00, 0xff, + 0xff, 0x09, 0xcd, 0x0f, 0x34, 0xed, 0x0b, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. diff --git a/diag/diag.proto b/diag/diag.proto index 84592d6a..93939e81 100644 --- a/diag/diag.proto +++ b/diag/diag.proto @@ -22,7 +22,7 @@ package gnoi.diag; import "github.com/openconfig/gnoi/types/types.proto"; -option (types.gnoi_version) = "0.1.0"; +option (gnoi.gnoi_version) = "0.1.0"; // The Diag service exports to main set of RPCs: // 1- BERT related RPCs: Used to perform Bit Error Rate Test (BERT) @@ -36,7 +36,7 @@ option (types.gnoi_version) = "0.1.0"; // (unless there is something wrong HW-wise). // Note: By "port" we refer to a channelized frontpanel or backplane port on a // chassis. In OpenConfig YANG models, there is a one-to-one relationship -// between a port as used here and an "interface". Therefore, the "types.Path" +// between a port as used here and an "interface". Therefore, the "gnoi.Path" // fields below for ports correspond to "/interfaces/interface" in YANG models. service Diag { // Starts BERT operation on a set of ports. Each BERT operation is uniquely @@ -139,7 +139,7 @@ message StartBERTRequest { // Per port BERT start requests. message PerPortRequest { // Path to the interface corresponding to the port. - types.Path interface = 1; // required + gnoi.Path interface = 1; // required // The selected PRBS generating polynomial for BERT. PrbsPolynomial prbs_polynomial = 2; // required // BERT duration in seconds. Must be a positive number. @@ -159,7 +159,7 @@ message StartBERTResponse { // Per-port BERT start responses. message PerPortResponse { // Path to the interface corresponding to the port. - types.Path interface = 1; + gnoi.Path interface = 1; // BERT start status for this port. BertStatus status = 2; } @@ -173,7 +173,7 @@ message StopBERTRequest { // Per-port BERT stop requests. message PerPortRequest { // Path to the interface corresponding to the port. - types.Path interface = 1; + gnoi.Path interface = 1; } // The same BERT operation ID given when BERT operation was started. string bert_operation_id = 1; @@ -186,7 +186,7 @@ message StopBERTResponse { // Per-port BERT stop responses. message PerPortResponse { // Path to the interface corresponding to the port. - types.Path interface = 1; + gnoi.Path interface = 1; // BERT stop status for this port. BertStatus status = 2; } @@ -203,7 +203,7 @@ message GetBERTResultRequest { // Per-port BERT get result requests. message PerPortRequest { // Path to the interface corresponding to the port. - types.Path interface = 1; + gnoi.Path interface = 1; } // The same BERT operation ID given when BERT operation was started. string bert_operation_id = 1; @@ -220,7 +220,7 @@ message GetBERTResultResponse { // Per-port BERT results/status. message PerPortResponse { // Path to the interface corresponding to the port. - types.Path interface = 1; + gnoi.Path interface = 1; // BERT result get status for this port. Only if the status is // BERT_STATUS_OK are the rest of the fields meaningful. BertStatus status = 2; diff --git a/file/file.pb.go b/file/file.pb.go index 7b01f524..931b50dc 100644 --- a/file/file.pb.go +++ b/file/file.pb.go @@ -818,45 +818,45 @@ func init() { func init() { proto.RegisterFile("file/file.proto", fileDescriptor_ad806f8986a0c3f6) } var fileDescriptor_ad806f8986a0c3f6 = []byte{ - // 597 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x54, 0xdd, 0x6e, 0xd3, 0x4c, - 0x10, 0x8d, 0x1b, 0xa7, 0x4d, 0xc6, 0x4d, 0x5b, 0xed, 0xf7, 0xd1, 0x1a, 0x8b, 0x8a, 0xe2, 0x0a, - 0x29, 0x48, 0xe0, 0x84, 0xf4, 0x86, 0xde, 0x10, 0x29, 0xaa, 0x68, 0x90, 0x40, 0x8a, 0x4c, 0x6e, - 0x21, 0xda, 0x26, 0x9b, 0xd8, 0xc2, 0xf6, 0x1a, 0xef, 0x06, 0x14, 0x5e, 0x82, 0x77, 0x43, 0xe2, - 0x9a, 0x57, 0x41, 0xfb, 0xe3, 0xc4, 0xf9, 0x69, 0xe0, 0xc6, 0xb1, 0xcf, 0x9e, 0x99, 0x39, 0x67, - 0x66, 0x36, 0x70, 0x3c, 0x09, 0x23, 0xd2, 0x14, 0x0f, 0x2f, 0xcd, 0x28, 0xa7, 0xa8, 0x36, 0x4d, - 0x68, 0xe8, 0x09, 0xc0, 0x79, 0x3e, 0x0d, 0x79, 0x30, 0xbb, 0xf3, 0x46, 0x34, 0x6e, 0xd2, 0x94, - 0x24, 0x23, 0x9a, 0x4c, 0xc2, 0x69, 0x53, 0x10, 0x9a, 0x7c, 0x9e, 0x12, 0xa6, 0x9e, 0x2a, 0xd0, - 0xf1, 0x76, 0xb0, 0x47, 0x34, 0x8e, 0x69, 0xa2, 0x7f, 0x14, 0xdf, 0xfd, 0x6d, 0x00, 0xf4, 0x67, - 0xdc, 0x27, 0x5f, 0x66, 0x84, 0x71, 0x74, 0x05, 0xa6, 0x88, 0xb2, 0x8d, 0x0b, 0xa3, 0x61, 0xb5, - 0xcf, 0xbd, 0x85, 0x0c, 0x6f, 0x49, 0xf2, 0x6e, 0x08, 0xc7, 0x61, 0xc4, 0x7a, 0x25, 0x5f, 0x92, - 0xd1, 0x23, 0xa8, 0x8e, 0x68, 0xc2, 0x49, 0xc2, 0x99, 0xbd, 0x77, 0x61, 0x34, 0x0e, 0x7b, 0x25, - 0x7f, 0x81, 0xa0, 0xa7, 0x60, 0x06, 0x98, 0x05, 0x76, 0x59, 0xa6, 0x3c, 0xf6, 0x94, 0xda, 0x1e, - 0x66, 0xc1, 0x60, 0x9e, 0x12, 0x91, 0x44, 0x1c, 0x3b, 0xef, 0xe0, 0x40, 0xe7, 0x45, 0x8f, 0xc1, - 0xca, 0x48, 0x4c, 0x39, 0x19, 0x8a, 0xca, 0x52, 0x4b, 0xcd, 0x07, 0x05, 0xbd, 0x09, 0x23, 0x82, - 0x2e, 0xc0, 0x4a, 0x49, 0x16, 0x87, 0x8c, 0x85, 0x34, 0x51, 0x35, 0xeb, 0x7e, 0x11, 0xea, 0xd6, - 0xe0, 0x20, 0x53, 0x6a, 0xdd, 0x3a, 0x58, 0x52, 0x3b, 0x4b, 0x69, 0xc2, 0x88, 0xfb, 0x02, 0xe0, - 0x96, 0x2c, 0xfc, 0xfe, 0xad, 0x94, 0xfb, 0x09, 0x2c, 0x49, 0x57, 0xd1, 0x2b, 0x56, 0x8d, 0x7b, - 0xad, 0xee, 0xed, 0xb4, 0xda, 0x05, 0xa8, 0x66, 0xb9, 0x9c, 0x39, 0x9c, 0x0d, 0x32, 0x9c, 0xb0, - 0x09, 0xc9, 0x06, 0xd4, 0x97, 0x75, 0x73, 0x6d, 0xe7, 0x00, 0x11, 0x1d, 0xe1, 0x68, 0x98, 0x62, - 0x1e, 0x68, 0x69, 0x35, 0x89, 0xf4, 0x31, 0x0f, 0x50, 0x07, 0x8e,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x7f, 0xcf, 0x3e, 0x39, 0x97, 0x3b, 0x39, 0x79, 0x01, 0x21, 0xac, 0x3f, 0x5b, 0x15, 0xb6, - 0xbc, 0xfb, 0x2b, 0xc2, 0x8a, 0xd7, 0xaa, 0xd4, 0x30, 0xd0, 0x35, 0x98, 0x62, 0x60, 0xe8, 0x74, - 0x6d, 0xaa, 0x79, 0xec, 0xd9, 0x06, 0xbe, 0x28, 0xda, 0x81, 0x7d, 0xd5, 0x28, 0x64, 0x17, 0x48, - 0x2b, 0xdd, 0x76, 0x1e, 0x6e, 0x39, 0xc9, 0x13, 0x74, 0xab, 0x3f, 0x5f, 0x57, 0x5a, 0xde, 0x4b, - 0xaf, 0x75, 0xb7, 0x2f, 0xff, 0xd8, 0xae, 0xfe, 0x04, 0x00, 0x00, 0xff, 0xff, 0xf2, 0x24, 0xb9, - 0x54, 0x54, 0x05, 0x00, 0x00, + // 594 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x54, 0xdf, 0x6f, 0xd2, 0x50, + 0x14, 0xa6, 0x50, 0x36, 0x38, 0x05, 0xb6, 0x5c, 0xe7, 0x56, 0x1b, 0x17, 0xb1, 0xf3, 0x01, 0x13, + 0x2d, 0xc8, 0x5e, 0xdc, 0x83, 0x33, 0x21, 0x8b, 0xc3, 0x44, 0x13, 0x52, 0x79, 0x5d, 0xc8, 0x1d, + 0x5c, 0x68, 0x63, 0xdb, 0x5b, 0x7b, 0x2f, 0x2e, 0xf3, 0x9f, 0xf0, 0x7f, 0x33, 0xf1, 0xd5, 0xbf, + 0xc5, 0xdc, 0x7b, 0x5b, 0x28, 0x3f, 0x86, 0xbe, 0x94, 0xf6, 0xeb, 0x77, 0xce, 0xf7, 0x7d, 0xe7, + 0x9e, 0x02, 0x07, 0x53, 0x3f, 0x20, 0x6d, 0x71, 0x71, 0xe2, 0x84, 0x72, 0x8a, 0xaa, 0xb3, 0x88,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0x92, 0xae, 0xaa, 0x57, 0x92, 0x6a, 0x0f, 0x26, 0x2d, + 0xee, 0x4a, 0xda, 0x03, 0xa8, 0x24, 0x99, 0x9b, 0x3b, 0x38, 0x19, 0x26, 0x38, 0x62, 0x53, 0x92, + 0x0c, 0xa9, 0x2b, 0x65, 0x33, 0x6b, 0xa7, 0x00, 0x01, 0x1d, 0xe3, 0x60, 0x14, 0x63, 0xee, 0xa5, + 0xce, 0xaa, 0x12, 0x19, 0x60, 0xee, 0xa1, 0x77, 0x70, 0x90, 0x3a, 0x9f, 0xd0, 0xbb, 0x28, 0xa0, + 0x78, 0x92, 0xca, 0x1e, 0x29, 0x59, 0xd5, 0xec, 0x2a, 0x7d, 0xe7, 0x36, 0x92, 0x95, 0x67, 0xfb, + 0x12, 0xcc, 0x4d, 0xe1, 0x34, 0xa4, 0x9d, 0xc6, 0xd0, 0xb6, 0xc5, 0x50, 0x21, 0xec, 0xe7, 0x60, + 0x7c, 0xe1, 0x78, 0x31, 0x47, 0x04, 0x7a, 0xce, 0xa6, 0xbc, 0xb7, 0x2f, 0xa0, 0xa6, 0x28, 0x69, + 0xdb, 0x97, 0x50, 0x66, 0x1c, 0xcb, 0xc1, 0x95, 0x5a, 0x46, 0xf7, 0x51, 0x6e, 0xb7, 0x04, 0xef, + 0x63, 0x34, 0xa5, 0xae, 0x62, 0xd8, 0x3f, 0x35, 0xa8, 0x64, 0xd8, 0xb6, 0xde, 0xe8, 0x0c, 0xea, + 0x01, 0x66, 0x7c, 0x14, 0xd2, 0x89, 0x3f, 0xf5, 0x89, 0xca, 0xae, 0xbb, 0x35, 0x01, 0x7e, 0x4e, + 0xb1, 0xf5, 0x35, 0x29, 0x6d, 0xac, 0x89, 0x68, 0xcd, 0xfc, 0x1f, 0xc4, 0xd4, 0x65, 0xb5, 0xbc, + 0x47, 0x47, 0x50, 0x9e, 0x87, 0x98, 0x7d, 0x35, 0xcb, 0x92, 0xaf, 0x1e, 0xec, 0x0e, 0xd4, 0xc5, + 0x94, 0xbe, 0x93, 0xff, 0xde, 0x9c, 0x43, 0x68, 0x64, 0x15, 0x6a, 0x00, 0xdd, 0xdf, 0x45, 0xd0, + 0xe5, 0xfe, 0xbe, 0x85, 0xd2, 0x35, 0xe1, 0xe8, 0x71, 0x6e, 0x02, 0xcb, 0x9d, 0xb4, 0x8e, 0xd7, + 0xe1, 0x74, 0x57, 0x0a, 0x1d, 0x0d, 0xdd, 0xc0, 0xe1, 0xfa, 0xb1, 0x21, 0x3b, 0xc7, 0x7f, 0x60, + 0x99, 0xac, 0xb3, 0x9d, 0x9c, 0x4c, 0x40, 0x18, 0x1b, 0xcc, 0x57, 0x8d, 0x2d, 0x3f, 0xfb, 0x15, + 0x63, 0xf9, 0x4f, 0xaa, 0xd0, 0xd2, 0xd0, 0x05, 0xe8, 0xe2, 0xc0, 0xd0, 0xf1, 0xda, 0xa9, 0x66, + 0xb5, 0x27, 0x1b, 0xf8, 0x42, 0xf4, 0x3d, 0xec, 0xa9, 0x41, 0x21, 0x33, 0x47, 0x5a, 0x99, 0xb6, + 0xf5, 0x64, 0xcb, 0x9b, 0xac, 0x41, 0xaf, 0xf2, 0xeb, 0xb2, 0xdc, 0x71, 0xde, 0x38, 0x9d, 0xdb, + 0x3d, 0xf9, 0x9f, 0x76, 0xfe, 0x37, 0x00, 0x00, 0xff, 0xff, 0xe0, 0x21, 0x12, 0x79, 0x4f, 0x05, + 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. diff --git a/file/file.proto b/file/file.proto index bc644ddd..a9ebe191 100644 --- a/file/file.proto +++ b/file/file.proto @@ -21,7 +21,7 @@ package gnoi.file; import "github.com/openconfig/gnoi/types/types.proto"; import "github.com/openconfig/gnoi/common/common.proto"; -option (types.gnoi_version) = "0.1.0"; +option (gnoi.gnoi_version) = "0.1.0"; service File { // Get reads and streams the contents of a file from the target. @@ -84,7 +84,7 @@ message PutRequest { oneof request { Details open = 1; bytes contents = 2; - types.HashType hash = 3; // hash of the file. + gnoi.HashType hash = 3; // hash of the file. } } @@ -102,7 +102,7 @@ message GetRequest { message GetResponse { oneof response { bytes contents = 1; - types.HashType hash = 2; // hash of the file. + gnoi.HashType hash = 2; // hash of the file. } } @@ -113,12 +113,12 @@ message TransferToRemoteRequest { string local_path = 1; // Details to download the remote_file being requested to a remote location. - common.RemoteDownload remote_download = 2; + gnoi.RemoteDownload remote_download = 2; } // A TransferToRemoteResponse contains the hash of the data transferred. message TransferToRemoteResponse { - types.HashType hash = 1; // hash of the file. + gnoi.HashType hash = 1; // hash of the file. } // StatRequest will list files at the provided path. diff --git a/interface/interface.pb.go b/interface/interface.pb.go index a87d8430..26dab8e8 100644 --- a/interface/interface.pb.go +++ b/interface/interface.pb.go @@ -270,21 +270,21 @@ var fileDescriptor_460c38aebb3cb2d6 = []byte{ 0x2d, 0x4a, 0x4b, 0x4c, 0x4e, 0xd5, 0x87, 0xb3, 0xf4, 0x0a, 0x8a, 0xf2, 0x4b, 0xf2, 0x85, 0xf8, 0xd2, 0xf3, 0xf2, 0x33, 0xf5, 0xe0, 0xa2, 0x52, 0x3a, 0xe9, 0x99, 0x25, 0x19, 0xa5, 0x49, 0x7a, 0xc9, 0xf9, 0xb9, 0xfa, 0xf9, 0x05, 0xa9, 0x79, 0xc9, 0xf9, 0x79, 0x69, 0x99, 0xe9, 0xfa, 0x20, - 0x55, 0xfa, 0x25, 0x95, 0x05, 0xa9, 0xc5, 0x10, 0x12, 0xa2, 0x5b, 0x29, 0x9c, 0x4b, 0x2c, 0x38, + 0x55, 0xfa, 0x25, 0x95, 0x05, 0xa9, 0xc5, 0x10, 0x12, 0xa2, 0x5b, 0x29, 0x8c, 0x4b, 0x2c, 0x38, 0xb5, 0xc4, 0x27, 0x3f, 0xbf, 0x20, 0x29, 0x31, 0x39, 0xdb, 0x37, 0x3f, 0x25, 0x35, 0x28, 0xb5, - 0xb0, 0x34, 0xb5, 0xb8, 0x44, 0x48, 0x93, 0x8b, 0x13, 0x6e, 0xa8, 0x04, 0xa3, 0x02, 0xa3, 0x06, - 0xb7, 0x11, 0xb7, 0x1e, 0x44, 0x6b, 0x40, 0x62, 0x49, 0x46, 0x10, 0x42, 0x56, 0x48, 0x88, 0x8b, - 0x25, 0x37, 0x3f, 0x25, 0x55, 0x82, 0x49, 0x81, 0x51, 0x83, 0x33, 0x08, 0xcc, 0x56, 0x92, 0xe4, - 0x12, 0xc7, 0x30, 0xb8, 0xb8, 0x20, 0x3f, 0xaf, 0x38, 0x55, 0xc9, 0x99, 0x4b, 0xcc, 0x9d, 0x52, - 0x3b, 0x95, 0x74, 0xb9, 0xc4, 0xdd, 0xb1, 0x9b, 0x0f, 0x77, 0x0e, 0x23, 0x92, 0x73, 0xbc, 0xb8, - 0x64, 0x9d, 0x73, 0x52, 0x13, 0x8b, 0x3c, 0x61, 0x06, 0x38, 0xe7, 0x97, 0x82, 0x98, 0xc5, 0x38, - 0xac, 0x66, 0xc6, 0x63, 0xb5, 0x02, 0x97, 0x1c, 0x2e, 0xb3, 0x20, 0x2e, 0x30, 0xba, 0xc4, 0xc4, - 0xc5, 0x09, 0x97, 0x15, 0x4a, 0xe1, 0xe2, 0x47, 0x0b, 0x0a, 0x21, 0x35, 0x3d, 0xd4, 0x58, 0xd3, - 0xc3, 0x1e, 0x09, 0x52, 0xea, 0x04, 0xd5, 0x41, 0xc3, 0x94, 0x01, 0x64, 0x8b, 0x3b, 0x21, 0x5b, - 0xdc, 0x89, 0xb4, 0xc5, 0x1d, 0xa7, 0x2d, 0x95, 0x5c, 0x62, 0xd8, 0xfd, 0x2e, 0xa4, 0x8b, 0x6e, - 0x08, 0xde, 0xf0, 0x96, 0xd2, 0x23, 0x56, 0x39, 0xcc, 0x6a, 0x27, 0x8e, 0x4b, 0x76, 0xac, 0x06, - 0x7a, 0x86, 0x7a, 0x06, 0x49, 0x6c, 0xe0, 0xb4, 0x6b, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0x61, - 0x25, 0x1e, 0x05, 0x16, 0x03, 0x00, 0x00, + 0xb0, 0x34, 0xb5, 0xb8, 0x44, 0x48, 0x83, 0x8b, 0x13, 0x6e, 0xa8, 0x04, 0xa3, 0x02, 0xa3, 0x06, + 0xb7, 0x11, 0x97, 0x1e, 0xd8, 0xae, 0x80, 0xc4, 0x92, 0x8c, 0x20, 0x84, 0xa4, 0x90, 0x10, 0x17, + 0x4b, 0x6e, 0x7e, 0x4a, 0xaa, 0x04, 0x93, 0x02, 0xa3, 0x06, 0x67, 0x10, 0x98, 0xad, 0x24, 0xc9, + 0x25, 0x8e, 0x61, 0x6e, 0x71, 0x41, 0x7e, 0x5e, 0x71, 0xaa, 0x92, 0x13, 0x97, 0x98, 0x3b, 0x85, + 0x56, 0x2a, 0xe9, 0x72, 0x89, 0xbb, 0x63, 0x37, 0x1e, 0xee, 0x1a, 0x46, 0x24, 0xd7, 0x78, 0x72, + 0xc9, 0x3a, 0xe7, 0xa4, 0x26, 0x16, 0x79, 0xc2, 0x0c, 0x70, 0xce, 0x2f, 0x05, 0x31, 0x8b, 0x71, + 0xd8, 0xcc, 0x8c, 0xdb, 0x66, 0x05, 0x2e, 0x39, 0x5c, 0x46, 0x41, 0x1c, 0x60, 0x74, 0x89, 0x89, + 0x8b, 0x13, 0x2e, 0x2b, 0x94, 0xc2, 0xc5, 0x8f, 0x16, 0x10, 0x42, 0x6a, 0x7a, 0xa8, 0x51, 0xa6, + 0x87, 0x3d, 0x06, 0xa4, 0xd4, 0x09, 0xaa, 0x83, 0x86, 0x28, 0x03, 0xc8, 0x16, 0x77, 0x42, 0xb6, + 0xb8, 0x13, 0x69, 0x8b, 0x3b, 0x4e, 0x5b, 0x2a, 0xb9, 0xc4, 0xb0, 0xfb, 0x5d, 0x48, 0x17, 0xdd, + 0x10, 0xbc, 0xc1, 0x2d, 0xa5, 0x47, 0xac, 0x72, 0x98, 0xd5, 0x4e, 0x1c, 0x97, 0xec, 0x58, 0x0d, + 0xf4, 0x0c, 0xf5, 0x0c, 0x92, 0xd8, 0xc0, 0x09, 0xd7, 0x18, 0x10, 0x00, 0x00, 0xff, 0xff, 0x6a, + 0x48, 0x50, 0x47, 0x13, 0x03, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. diff --git a/interface/interface.proto b/interface/interface.proto index f8d4201e..bba18fab 100644 --- a/interface/interface.proto +++ b/interface/interface.proto @@ -20,7 +20,7 @@ package gnoi.interface; import "github.com/openconfig/gnoi/types/types.proto"; -option (types.gnoi_version) = "0.1.0"; +option (gnoi.gnoi_version) = "0.1.0"; service Interface { // SetLoopbackMode is used to set the mode of loopback on a interface. @@ -39,7 +39,7 @@ service Interface { // device, available modes are "none", "mac", "phy", "phy_remote", // "framer_facility", and "framer_terminal". message SetLoopbackModeRequest { - types.Path interface = 1; + gnoi.Path interface = 1; string mode = 2; } @@ -47,7 +47,7 @@ message SetLoopbackModeResponse { } message GetLoopbackModeRequest { - types.Path interface = 1; + gnoi.Path interface = 1; } message GetLoopbackModeResponse { @@ -55,7 +55,7 @@ message GetLoopbackModeResponse { } message ClearInterfaceCountersRequest { - repeated types.Path interface = 1; + repeated gnoi.Path interface = 1; } message ClearInterfaceCountersResponse { diff --git a/layer2/layer2.pb.go b/layer2/layer2.pb.go index 54838487..8ee39b63 100644 --- a/layer2/layer2.pb.go +++ b/layer2/layer2.pb.go @@ -58,7 +58,7 @@ func (PerformBERTResponse_BERTState) EnumDescriptor() ([]byte, []int) { } type ClearNeighborDiscoveryRequest struct { - Protocol types.L3Protocol `protobuf:"varint,1,opt,name=protocol,proto3,enum=types.L3Protocol" json:"protocol,omitempty"` + Protocol types.L3Protocol `protobuf:"varint,1,opt,name=protocol,proto3,enum=gnoi.L3Protocol" json:"protocol,omitempty"` Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -505,46 +505,46 @@ func init() { func init() { proto.RegisterFile("layer2/layer2.proto", fileDescriptor_dff9ec617d9e4348) } var fileDescriptor_dff9ec617d9e4348 = []byte{ - // 614 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0xdd, 0x6e, 0xda, 0x4c, - 0x10, 0x8d, 0x21, 0x90, 0x30, 0x24, 0x88, 0x6c, 0xbe, 0x2f, 0x75, 0xe9, 0x4f, 0xa8, 0xab, 0xb4, - 0xf4, 0xcf, 0xa4, 0xe4, 0xbe, 0x6a, 0x08, 0xb4, 0x8a, 0xea, 0x1a, 0xb4, 0x10, 0xa5, 0x77, 0x91, - 0xb1, 0x27, 0xb0, 0x2a, 0x78, 0xdd, 0xdd, 0x4d, 0xa4, 0x48, 0x7d, 0xab, 0xbe, 0x49, 0x9f, 0xa7, - 0x17, 0x15, 0xfe, 0xa1, 0xa1, 0x38, 0xa1, 0xed, 0x0d, 0x68, 0x66, 0xce, 0x9c, 0x33, 0xda, 0x33, - 0x63, 0xd8, 0x1e, 0x3b, 0x57, 0x28, 0x1a, 0xf5, 0xe8, 0xcf, 0x0c, 0x04, 0x57, 0x9c, 0x14, 0x87, - 0x3e, 0x67, 0x66, 0x94, 0xaa, 0xbc, 0x1c, 0x32, 0x35, 0xba, 0x18, 0x98, 0x2e, 0x9f, 0xd4, 0x79, - 0x80, 0xbe, 0xcb, 0xfd, 0x73, 0x36, 0xac, 0x4f, 0x21, 0x75, 0x75, 0x15, 0xa0, 0x8c, 0x7e, 0xa3, - 0x56, 0x63, 0x04, 0x0f, 0x8e, 0xc6, 0xe8, 0x08, 0x1b, 0xd9, 0x70, 0x34, 0xe0, 0xa2, 0xc5, 0xa4, - 0xcb, 0x2f, 0x51, 0x5c, 0x51, 0xfc, 0x72, 0x81, 0x52, 0x91, 0x57, 0xb0, 0x1e, 0x22, 0x5d, 0x3e, - 0xd6, 0xb5, 0xaa, 0x56, 0x2b, 0x35, 0xb6, 0xcc, 0x88, 0xc0, 0x3a, 0xe8, 0xc6, 0x05, 0x3a,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0xb5, 0xb5, 0x26, 0xbb, 0x37, 0x2f, 0x7c, - 0xc4, 0x5c, 0x5d, 0x76, 0x11, 0xc6, 0xca, 0xbe, 0x46, 0x86, 0x40, 0x16, 0x0d, 0x27, 0x29, 0x53, - 0xa5, 0x6d, 0x56, 0xe5, 0xe9, 0x52, 0xdc, 0x6c, 0xfc, 0x4f, 0xb0, 0x39, 0xe7, 0x1e, 0x79, 0x34, - 0xd7, 0x9b, 0xb6, 0x57, 0x15, 0xe3, 0x36, 0x48, 0xc2, 0xdc, 0x5c, 0xff, 0xfe, 0x26, 0xb7, 0x6f, - 0xbe, 0x36, 0xf7, 0x07, 0xf9, 0xf0, 0xb3, 0x79, 0xf0, 0x33, 0x00, 0x00, 0xff, 0xff, 0xd2, 0x75, - 0x98, 0x1a, 0xd5, 0x05, 0x00, 0x00, + // 611 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0x6d, 0x6f, 0x12, 0x41, + 0x10, 0xee, 0x41, 0xa1, 0x65, 0x68, 0x09, 0x6e, 0xb5, 0x9e, 0xf8, 0x52, 0x3c, 0x53, 0x25, 0xda, + 0x1c, 0x95, 0x7e, 0x37, 0x96, 0x42, 0x4c, 0xe3, 0x79, 0x90, 0x85, 0xa6, 0x7e, 0x6b, 0x8e, 0xbb, + 0xe9, 0x75, 0x23, 0xdc, 0x9e, 0xbb, 0xdb, 0x26, 0x8d, 0x3f, 0xcb, 0x7f, 0xe2, 0xef, 0xf1, 0x83, + 0xe1, 0x5e, 0xb0, 0xc8, 0xb5, 0xd8, 0x2f, 0x90, 0x9d, 0x79, 0xe6, 0x79, 0x26, 0x33, 0xcf, 0x1c, + 0x6c, 0x8d, 0x9d, 0x6b, 0x14, 0xad, 0x66, 0xfc, 0x67, 0x86, 0x82, 0x2b, 0x4e, 0xca, 0x7e, 0xc0, + 0x99, 0x19, 0x87, 0x6a, 0x7b, 0x3e, 0x53, 0x17, 0x97, 0x23, 0xd3, 0xe5, 0x93, 0x26, 0x0f, 0x31, + 0x70, 0x79, 0x70, 0xce, 0xfc, 0xe6, 0x14, 0xd2, 0x54, 0xd7, 0x21, 0xca, 0xf8, 0x37, 0x2e, 0x35, + 0x7c, 0x78, 0x7e, 0x34, 0x46, 0x47, 0xd8, 0xc8, 0xfc, 0x8b, 0x11, 0x17, 0x1d, 0x26, 0x5d, 0x7e, + 0x85, 0xe2, 0x9a, 0xe2, 0xf7, 0x4b, 0x94, 0x8a, 0xec, 0xc1, 0x7a, 0x84, 0x74, 0xf9, 0x58, 0xd7, + 0xea, 0x5a, 0xa3, 0xd2, 0xaa, 0x9a, 0x91, 0x9c, 0x75, 0xd0, 0x4f, 0xe2, 0x74, 0x86, 0x20, 0x3a, + 0xac, 0x39, 0x9e, 0x27, 0x50, 0x4a, 0x3d, 0x57, 0xd7, 0x1a, 0x25, 0x9a, 0x3e, 0x8d, 0x3a, 0xbc, + 0xb8, 0x4d, 0x48, 0x86, 0x3c, 0x90, 0x68, 0x74, 0x40, 0x8f, 0x10, 0x83, 0xd0, 0x09, 0x02, 0x16, + 0xf8, 0x43, 0x81, 0x98, 0x76, 0xd1, 0x80, 0x12, 0x0b, 0x14, 0x8a, 0x73, 0xc7, 0xc5, 0xa8, 0x8d, + 0x72, 0x0b, 0xe2, 0x36, 0xfa, 0x8e, 0xba, 0xa0, 0x7f, 0x93, 0xc6, 0x53, 0x78, 0x92, 0xc1, 0x92, + 0x48, 0xd8, 0x40, 0xfa, 0x28, 0xce, 0xb9, 0x98, 0xb4, 0xbb, 0x74, 0x98, 0x92, 0x57, 0x20, 0xc7, + 0xbc, 0x88, 0xb5, 0x44, 0x73, 0xcc, 0x9b, 0x17, 0xcb, 0xdd, 0x25, 0xf6, 0x33, 0x07, 0x5b, 0x73, + 0x84, 0xb1, 0xce, 0x02, 0xe3, 0x47, 0x28, 0x48, 0xe5, 0xa8, 0x98, 0xad, 0xd2, 0x7a, 0x6b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e2, 0xb8, 0x67, 0x69, 0x36, 0x1f, 0x4d, 0x1a, 0x26, 0x8e, 0x7b, 0x98, + 0x98, 0xfd, 0x31, 0x3c, 0xfa, 0x47, 0x3c, 0xee, 0xaa, 0xf5, 0x3b, 0x0f, 0x45, 0x2b, 0x5a, 0x3b, + 0x91, 0xb0, 0x9d, 0x7d, 0x10, 0x64, 0xde, 0x1e, 0x77, 0x9e, 0x67, 0xed, 0xdd, 0x7f, 0x61, 0x93, + 0x99, 0xac, 0x10, 0x0f, 0x1e, 0x2c, 0x5c, 0x07, 0xd9, 0x5d, 0xe4, 0xc8, 0xb8, 0xc1, 0xda, 0xeb, + 0x65, 0xb0, 0x99, 0xca, 0x10, 0xca, 0x37, 0x4c, 0x4d, 0x76, 0x6e, 0xb7, 0x7b, 0xcc, 0x5c, 0x5f, + 0x76, 0x0f, 0xc6, 0xca, 0xbe, 0x46, 0x7c, 0x20, 0x8b, 0xfb, 0x26, 0x19, 0x5d, 0x65, 0xf9, 0xaa, + 0xf6, 0x66, 0x29, 0x6e, 0xd6, 0xfe, 0x57, 0xd8, 0x9c, 0xdb, 0x1e, 0x79, 0x39, 0x57, 0x9b, 0x65, + 0xab, 0x9a, 0x71, 0x17, 0x24, 0x65, 0x6e, 0xaf, 0xff, 0xfa, 0x50, 0xd8, 0x37, 0xdf, 0x9b, 0xfb, + 0xa3, 0x62, 0xf4, 0xc9, 0x3c, 0xf8, 0x13, 0x00, 0x00, 0xff, 0xff, 0x69, 0x07, 0xc6, 0x05, 0xd0, + 0x05, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. diff --git a/layer2/layer2.proto b/layer2/layer2.proto index 75c2471f..fb4fe22f 100644 --- a/layer2/layer2.proto +++ b/layer2/layer2.proto @@ -20,7 +20,7 @@ package gnoi.layer2; import "github.com/openconfig/gnoi/types/types.proto"; -option (types.gnoi_version) = "0.1.0"; +option (gnoi.gnoi_version) = "0.1.0"; service Layer2 { // ClearNeighborDiscovery will clear either a specific neighbor entry or @@ -49,7 +49,7 @@ service Layer2 { } message ClearNeighborDiscoveryRequest { - types.L3Protocol protocol = 1; + gnoi.L3Protocol protocol = 1; string address = 2; } @@ -58,7 +58,7 @@ message ClearNeighborDiscoveryResponse { message ClearSpanningTreeRequest { - types.Path interface = 1; + gnoi.Path interface = 1; } message ClearSpanningTreeResponse { @@ -67,7 +67,7 @@ message ClearSpanningTreeResponse { message PerformBERTRequest { // ID for retrieving a previous BERT run data - optional. string id = 1; - types.Path interface = 2; + gnoi.Path interface = 2; } message PerformBERTResponse { @@ -87,14 +87,14 @@ message PerformBERTResponse { } message ClearLLDPInterfaceRequest { - types.Path interface = 1; + gnoi.Path interface = 1; } message ClearLLDPInterfaceResponse { } message SendWakeOnLANRequest { - types.Path interface = 1; + gnoi.Path interface = 1; string address = 2; // IP address of the WOL target. bytes mac_address = 3; // MAC address of the target. } diff --git a/mpls/mpls.proto b/mpls/mpls.proto index e1b1f011..c3901333 100644 --- a/mpls/mpls.proto +++ b/mpls/mpls.proto @@ -20,7 +20,7 @@ import "github.com/openconfig/gnoi/types/types.proto"; package gnoi.mpls; -option (types.gnoi_version) = "0.1.0"; +option (gnoi.gnoi_version) = "0.1.0"; service MPLS { // ClearLSP clears a single tunnel (requests for it's route to be diff --git a/system/system.pb.go b/system/system.pb.go index 94680e41..314660f7 100644 --- a/system/system.pb.go +++ b/system/system.pb.go @@ -639,7 +639,7 @@ type PingRequest struct { Size int32 `protobuf:"varint,6,opt,name=size,proto3" json:"size,omitempty"` DoNotFragment bool `protobuf:"varint,7,opt,name=do_not_fragment,json=doNotFragment,proto3" json:"do_not_fragment,omitempty"` DoNotResolve bool `protobuf:"varint,8,opt,name=do_not_resolve,json=doNotResolve,proto3" json:"do_not_resolve,omitempty"` - L3Protocol types.L3Protocol `protobuf:"varint,9,opt,name=l3protocol,proto3,enum=types.L3Protocol" json:"l3protocol,omitempty"` + L3Protocol types.L3Protocol `protobuf:"varint,9,opt,name=l3protocol,proto3,enum=gnoi.L3Protocol" json:"l3protocol,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -874,7 +874,7 @@ type TracerouteRequest struct { Wait int64 `protobuf:"varint,5,opt,name=wait,proto3" json:"wait,omitempty"` DoNotFragment bool `protobuf:"varint,6,opt,name=do_not_fragment,json=doNotFragment,proto3" json:"do_not_fragment,omitempty"` DoNotResolve bool `protobuf:"varint,7,opt,name=do_not_resolve,json=doNotResolve,proto3" json:"do_not_resolve,omitempty"` - L3Protocol types.L3Protocol `protobuf:"varint,8,opt,name=l3protocol,proto3,enum=types.L3Protocol" json:"l3protocol,omitempty"` + L3Protocol types.L3Protocol `protobuf:"varint,8,opt,name=l3protocol,proto3,enum=gnoi.L3Protocol" json:"l3protocol,omitempty"` L4Protocol TracerouteRequest_L4Protocol `protobuf:"varint,9,opt,name=l4protocol,proto3,enum=gnoi.system.TracerouteRequest_L4Protocol" json:"l4protocol,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -1423,107 +1423,107 @@ func init() { func init() { proto.RegisterFile("system/system.proto", fileDescriptor_746080b643370b3b) } var fileDescriptor_746080b643370b3b = []byte{ - // 1595 bytes of a gzipped FileDescriptorProto + // 1590 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x57, 0x4f, 0x73, 0xe3, 0x48, - 0x15, 0x8f, 0xfc, 0xdf, 0xcf, 0x49, 0x46, 0xe9, 0x84, 0xac, 0xc6, 0x0b, 0xbb, 0x41, 0xc5, 0x52, - 0x99, 0x85, 0x72, 0x66, 0x32, 0x5b, 0xc5, 0x16, 0xd4, 0xb2, 0xe5, 0xb1, 0x15, 0x92, 0x5a, 0xc7, - 0x36, 0x6d, 0x99, 0x29, 0x4e, 0x2a, 0x45, 0xee, 0x89, 0x55, 0x23, 0xa9, 0x85, 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ba, 0x5d, 0xf7, 0x6a, 0x34, 0xf4, 0x86, 0x8e, 0xd3, 0x77, 0xfa, 0x66, - 0x03, 0xed, 0x03, 0x8c, 0xf1, 0xe8, 0xf2, 0xea, 0xd5, 0x95, 0xeb, 0xf4, 0xcd, 0xa6, 0x0a, 0xee, - 0xf4, 0x9c, 0xbe, 0x33, 0xec, 0x39, 0xde, 0xef, 0xae, 0x46, 0x03, 0xb9, 0xc1, 0x04, 0xf4, 0x03, - 0x38, 0x28, 0x58, 0x7a, 0x53, 0x77, 0x74, 0x71, 0x61, 0xb6, 0xec, 0x7f, 0x18, 0x50, 0x1f, 0xfb, - 0xc1, 0x5b, 0x31, 0x08, 0xb4, 0xa1, 0xf1, 0x26, 0x8c, 0x48, 0x81, 0xc6, 0x2b, 0xb9, 0x38, 0x57, - 0x55, 0xd6, 0xe7, 0xaa, 0x36, 0x34, 0xe4, 0x27, 0x58, 0x90, 0x44, 0x8d, 0x26, 0x2b, 0x19, 0x7d, - 0x0b, 0x4f, 0x32, 0x12, 0x53, 0x4e, 0xbc, 0x19, 0x7d, 0x97, 0x44, 0xd4, 0x9f, 0x49, 0x16, 0xb6, - 0xce, 0x8f, 0x3b, 0x7a, 0x36, 0xc5, 0xd2, 0xdc, 0xd7, 0x56, 0xbc, 0x9f, 0xad, 0xc9, 0xf6, 0x5f, - 0x0d, 0x38, 0x98, 0x10, 0xae, 0x33, 0xcc, 0x1f, 0xc3, 0xe7, 0x50, 0x4f, 0x95, 0x46, 0x0f, 0x85, - 0x47, 0x6b, 0xec, 0xd1, 0xde, 0x97, 0x3b, 0x38, 0x77, 0x43, 0x3f, 0x84, 0x86, 0x18, 0x15, 0xf5, - 0x78, 0x63, 0x9c, 0xee, 0x5e, 0xee, 0xe0, 0x95, 0x06, 0x7d, 0x01, 0x95, 0xb9, 0xcf, 0xe6, 0xf2, - 0xae, 0xb5, 0xce, 0x9f, 0xe8, 0x07, 0xe8, 0xd2, 0x67, 0x73, 0xf7, 0x2e, 0x15,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be, 0x00, 0xb3, 0x00, 0xb4, 0x17, 0x93, 0x28, 0xef, 0xce, 0x93, + 0x82, 0x7e, 0x48, 0x22, 0x8a, 0x4e, 0xe0, 0xa0, 0xe8, 0x4a, 0x66, 0xb3, 0x94, 0x72, 0x9e, 0xb5, + 0x0b, 0x15, 0x4c, 0x5d, 0x6d, 0x91, 0xd8, 0xcf, 0x59, 0xc2, 0x73, 0x8e, 0xcb, 0xb5, 0xec, 0x64, + 0x42, 0xfc, 0x77, 0x54, 0x78, 0xea, 0x3e, 0xeb, 0x66, 0x81, 0x56, 0x4d, 0xe4, 0xad, 0x36, 0xa1, + 0x3c, 0x67, 0x89, 0xea, 0x57, 0x15, 0xcb, 0xa5, 0x7c, 0xf2, 0xf3, 0xb3, 0x6a, 0xfa, 0xc9, 0x27, + 0x77, 0x07, 0xa8, 0x84, 0xeb, 0x4a, 0xad, 0xd6, 0x72, 0x7f, 0x2a, 0x44, 0xc6, 0x69, 0xb9, 0x44, + 0xbf, 0x82, 0x2a, 0x17, 0x44, 0xd0, 0x0c, 0xe9, 0x9f, 0x7c, 0x10, 0x69, 0x0d, 0x49, 0x47, 0xbe, + 0xd5, 0x14, 0xeb, 0x3d, 0xe8, 0x53, 0x68, 0x06, 0x7e, 0x94, 0x78, 0x3e, 0x9b, 0x51, 0x0b, 0x34, + 0xf1, 0xa5, 0xa2, 0xc7, 0x66, 0x14, 0xbd, 0x82, 0x4a, 0x94, 0x84, 0xf2, 0xa6, 0xc8, 0x0f, 0xc1, + 0x8b, 0xc7, 0x02, 0x5f, 0x25, 0x21, 0x77, 0x62, 0x91, 0xde, 0x62, 0xb5, 0x4d, 0x92, 0x96, 0x70, + 0x2f, 0x21, 0x62, 0x6e, 0xed, 0x1e, 0x95, 0x25, 0x69, 0x09, 0x97, 0x9f, 0x91, 0xf6, 0x37, 0xd0, + 0x5c, 0xf9, 0xca, 0x82, 0xde, 0xd1, 0xdb, 0xac, 0x29, 0x72, 0x29, 0x6f, 0xe8, 0x92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00, 0xff, 0xff, 0xcf, 0x1c, + 0x6a, 0xa7, 0xc1, 0x0e, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. diff --git a/system/system.proto b/system/system.proto index f7cd0a81..9278095a 100644 --- a/system/system.proto +++ b/system/system.proto @@ -27,7 +27,7 @@ package gnoi.system; import "github.com/openconfig/gnoi/common/common.proto"; import "github.com/openconfig/gnoi/types/types.proto"; -option (types.gnoi_version) = "0.1.0"; +option (gnoi.gnoi_version) = "0.1.0"; // The gNOI service is a collection of operational RPC's that allow for the // management of a target outside of the configuration and telemetry pipeline. @@ -85,11 +85,11 @@ service System { } message SwitchControlProcessorRequest { - types.Path control_processor = 1; + gnoi.Path control_processor = 1; } message SwitchControlProcessorResponse { - types.Path control_processor = 1; + gnoi.Path control_processor = 1; string version = 2; // Current software version. int64 uptime = 3; // Uptime in nanoseconds since epoch. } @@ -104,7 +104,7 @@ message RebootRequest { // Informational reason for the reboot. string message = 3; // Optional sub-components to reboot. - repeated types.Path subcomponents = 4; + repeated gnoi.Path subcomponents = 4; // Force reboot if sanity checks fail. (ex. uncommited configuration) bool force = 5; } @@ -132,14 +132,14 @@ enum RebootMethod { // request. message CancelRebootRequest { string message = 1; // informational reason for the cancel - repeated types.Path subcomponents = 2; // optional sub-components. + repeated gnoi.Path subcomponents = 2; // optional sub-components. } message CancelRebootResponse { } message RebootStatusRequest { - repeated types.Path subcomponents = 1; // optional sub-component. + repeated gnoi.Path subcomponents = 1; // optional sub-component. } message RebootStatusResponse { @@ -177,7 +177,7 @@ message PingRequest { int32 size = 6; // Size of request packet. (excluding ICMP header) bool do_not_fragment = 7; // Set the do not fragment bit. (IPv4 destinations) bool do_not_resolve = 8; // Do not try resolve the address returned. - types.L3Protocol l3protocol = 9; // Layer3 protocol requested for the ping. + gnoi.L3Protocol l3protocol = 9; // Layer3 protocol requested for the ping. } // A PingResponse represents either the reponse to a single ping packet @@ -218,7 +218,7 @@ message TracerouteRequest { int64 wait = 5; // Nanoseconds to wait for a response. bool do_not_fragment = 6; // Set the do not fragment bit. (IPv4 destinations) bool do_not_resolve = 7; // Do not try resolve the address returned. - types.L3Protocol l3protocol = 8; // Layer-3 protocol requested for the ping. + gnoi.L3Protocol l3protocol = 8; // Layer-3 protocol requested for the ping. enum L4Protocol { ICMP = 0; // Use ICMP ECHO for probes. TCP = 1; // Use TCP SYN for probes. @@ -289,7 +289,7 @@ message Package { // be active after a reboot. bool activate = 5; // Details for the device to download the package from a remote location. - common.RemoteDownload remote_download = 6; + gnoi.RemoteDownload remote_download = 6; } // SetPackageRequest will place the package onto the target and optionally mark @@ -301,7 +301,7 @@ message SetPackageRequest { oneof request { Package package = 1; bytes contents = 2; - types.HashType hash = 3; // Verification hash of data. + gnoi.HashType hash = 3; // Verification hash of data. } } diff --git a/test/simple_test.go b/test/simple_test.go index 79947d64..88073e92 100644 --- a/test/simple_test.go +++ b/test/simple_test.go @@ -18,10 +18,8 @@ import ( "testing" "github.com/golang/protobuf/proto" - bgppb "github.com/openconfig/gnoi/bgp" - cpb "github.com/openconfig/gnoi/common" - spb "github.com/openconfig/gnoi/system" tpb "github.com/openconfig/gnoi/types" + bgppb "github.com/openconfig/gnoi/bgp" ) func TestGNOI(t *testing.T) { @@ -51,19 +49,6 @@ func TestGNOI(t *testing.T) { Mode: bgppb.ClearBGPNeighborRequest_HARD, }, want: "address: \"foo\"\nrouting_instance: \"bar\"\nmode: HARD\n", - }, { - desc: "system.SetPackage", - in: &spb.Package{ - Filename: "filename", - RemoteDownload: &cpb.RemoteDownload{ - Path: "foo", - Protocol: cpb.RemoteDownload_SCP, - Credentials: &tpb.Credentials{ - Username: "bar", - }, - }, - }, - want: "filename: \"filename\"\nremote_download: <\n path: \"foo\"\n protocol: SCP\n credentials: <\n username: \"bar\"\n >\n>\n", }} for _, tt := range tests { t.Run(tt.desc, func(t *testing.T) { diff --git a/types/types.pb.go b/types/types.pb.go index f8c817b8..f74aa3fd 100644 --- a/types/types.pb.go +++ b/types/types.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // source: types/types.proto -package types +package gnoi import ( fmt "fmt" @@ -84,7 +84,7 @@ func (HashType_HashMethod) EnumDescriptor() ([]byte, []int) { // HashType defines the valid hash methods for data verification. UNSPECIFIED // should be treated an error. type HashType struct { - Method HashType_HashMethod `protobuf:"varint,1,opt,name=method,proto3,enum=types.HashType_HashMethod" json:"method,omitempty"` + Method HashType_HashMethod `protobuf:"varint,1,opt,name=method,proto3,enum=gnoi.HashType_HashMethod" json:"method,omitempty"` Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -386,52 +386,52 @@ var E_GnoiVersion = &proto.ExtensionDesc{ ExtendedType: (*descriptor.FileOptions)(nil), ExtensionType: (*string)(nil), Field: 1002, - Name: "types.gnoi_version", + Name: "gnoi.gnoi_version", Tag: "bytes,1002,opt,name=gnoi_version", Filename: "types/types.proto", } func init() { - proto.RegisterEnum("types.L3Protocol", L3Protocol_name, L3Protocol_value) - proto.RegisterEnum("types.HashType_HashMethod", HashType_HashMethod_name, HashType_HashMethod_value) - proto.RegisterType((*HashType)(nil), "types.HashType") - proto.RegisterType((*Path)(nil), "types.Path") - proto.RegisterType((*PathElem)(nil), "types.PathElem") - proto.RegisterMapType((map[string]string)(nil), "types.PathElem.KeyEntry") - proto.RegisterType((*Credentials)(nil), "types.Credentials") + proto.RegisterEnum("gnoi.L3Protocol", L3Protocol_name, L3Protocol_value) + proto.RegisterEnum("gnoi.HashType_HashMethod", HashType_HashMethod_name, HashType_HashMethod_value) + proto.RegisterType((*HashType)(nil), "gnoi.HashType") + proto.RegisterType((*Path)(nil), "gnoi.Path") + proto.RegisterType((*PathElem)(nil), "gnoi.PathElem") + proto.RegisterMapType((map[string]string)(nil), "gnoi.PathElem.KeyEntry") + proto.RegisterType((*Credentials)(nil), "gnoi.Credentials") proto.RegisterExtension(E_GnoiVersion) } func init() { proto.RegisterFile("types/types.proto", fileDescriptor_2c0f90c600ad7e2e) } var fileDescriptor_2c0f90c600ad7e2e = []byte{ - // 443 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x92, 0xc1, 0x6e, 0xd3, 0x40, - 0x10, 0x86, 0xb3, 0x76, 0xea, 0x3a, 0x93, 0x8a, 0x9a, 0x15, 0x42, 0x56, 0x84, 0x90, 0x65, 0x2e, - 0xa1, 0x07, 0x47, 0x75, 0x49, 0x84, 0x7a, 0x40, 0x40, 0x9a, 0x2a, 0x11, 0x14, 0x22, 0x17, 0x7a, - 0x45, 0x6e, 0x3c, 0xc4, 0x16, 0xb6, 0xd7, 0xda, 0xdd, 0x14, 0x7c, 0x43, 0x3c, 0x02, 0x8f, 0xc9, - 0x53, 0x20, 0xef, 0xda, 0xb4, 0xa2, 0x17, 0xeb, 0x9f, 0xf1, 0x37, 0xbf, 0x66, 0x76, 0x06, 0x1e, - 0xca, 0xba, 0x42, 0x31, 0x51, 0xdf, 0xa0, 0xe2, 0x4c, 0x32, 0xba, 0xa7, 0x82, 0x91, 0xb7, 0x65, - 0x6c, 0x9b, 0xe3, 0x44, 0x25, 0xaf, 0x77, 0x5f, 0x27, 0x09, 0x8a, 0x0d, 0xcf, 0x2a, 0xc9, 0xb8, - 0x06, 0xfd, 0xdf, 0x04, 0xec, 0x65, 0x2c, 0xd2, 0x4f, 0x75, 0x85, 0x34, 0x04, 0xab, 0x40, 0x99, - 0xb2, 0xc4, 0x25, 0x1e, 0x19, 0x3f, 0x08, 0x47, 0x81, 0xf6, 0xec, 0x00, 0x25, 0x2e, 0x14, 0x11, - 0xb5, 0x24, 0xa5, 0xd0, 0x4f, 0x63, 0x91, 0xba, 0x86, 0x47, 0xc6, 0x07, 0x91, 0xd2, 0xfe, 0x2b, - 0x80, 0x5b, 0x92, 0x1e, 0xc2, 0xf0, 0xf3, 0x87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x59, 0xf6, 0xa2, - 0x16, 0x78, 0x0b, 0x60, 0x57, 0xb1, 0x10, 0xdf, 0x19, 0x4f, 0x8e, 0x8e, 0x01, 0xde, 0x9f, 0xac, - 0x9b, 0x65, 0x6f, 0x58, 0x7e, 0x7f, 0x19, 0x36, 0xf4, 0x57, 0xeb, 0xab, 0x17, 0x0e, 0x69, 0xd5, - 0xcc, 0x31, 0x4e, 0x5f, 0xc3, 0xc1, 0xb6, 0x64, 0xd9, 0x97, 0x1b, 0xe4, 0x22, 0x63, 0x25, 0x7d, - 0x12, 0xe8, 0x3b, 0x0a, 0xba, 0x3b, 0x0a, 0xce, 0xb3, 0x1c, 0x3f, 0x56, 0x32, 0x63, 0xa5, 0x70, - 0xff, 0xec, 0xab, 0x41, 0x86, 0x4d, 0xc9, 0x95, 0xae, 0xb8, 0xb6, 0x14, 0x79, 0xf2, 0x37, 0x00, - 0x00, 0xff, 0xff, 0x97, 0x72, 0x64, 0x08, 0x9b, 0x02, 0x00, 0x00, + // 442 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x52, 0xc1, 0x6e, 0xd3, 0x40, + 0x10, 0xcd, 0xda, 0xc6, 0x75, 0x26, 0x55, 0x31, 0x2b, 0x04, 0x26, 0x42, 0xc8, 0xf2, 0x29, 0x70, + 0x70, 0x94, 0x94, 0x44, 0xa8, 0x07, 0x04, 0x6d, 0x53, 0x25, 0x82, 0x42, 0xe4, 0x42, 0xaf, 0xc8, + 0x8d, 0x87, 0xd8, 0xc2, 0xf6, 0x5a, 0xbb, 0x9b, 0x82, 0x4f, 0x88, 0x4f, 0xe0, 0x37, 0xf9, 0x0a, + 0xb4, 0x6b, 0x9b, 0x80, 0xb8, 0x58, 0x6f, 0x66, 0xde, 0x7b, 0x7a, 0xe3, 0x59, 0xb8, 0x27, 0xeb, + 0x0a, 0xc5, 0x58, 0x7f, 0xc3, 0x8a, 0x33, 0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x94, 0x92, + 0xd7, 0x91, 0xe2, 0x0c, 0xe7, 0xe0, 0x74, 0x0d, 0xea, 0x36, 0xb2, 0xc6, 0x49, 0x41, 0x7a, 0x1f, + 0xee, 0xdc, 0xc6, 0xf9, 0x0e, 0xdb, 0x90, 0x4d, 0x71, 0x62, 0xbc, 0x20, 0xc1, 0x77, 0x18, 0x9c, + 0x71, 0x4c, 0xb0, 0x94, 0x59, 0x9c, 0x0b, 0x3a, 0x04, 0x67, 0x27, 0x90, 0xff, 0x95, 0xe4, 0x4f, + 0x4d, 0x9f, 0x40, 0x7f, 0x93, 0x63, 0xcc, 0x25, 0x7e, 0x93, 0x8d, 0xd1, 0xb2, 0x17, 0xed, 0x5b, + 0x74, 0x04, 0xb6, 0xfa, 0xb5, 0x98, 0x78, 0xa6, 0x4f, 0xf6, 0x4b, 0x77, 0x97, 0x59, 0xf6, 0xa2, + 0x76, 0x7e, 0x0a, 0xe0, 0x54, 0xb1, 0x10, 0x5f, 0x19, 0x4f, 0x9e, 0x4d, 0x00, 0xde, 0x1e, 0xaf, + 0xd5, 0x9d, 0x37, 0x2c, 0xff, 0xff, 0x10, 0x0e, 0x58, 0xab, 0xf5, 0xf5, 0x73, 0x97, 0xb4, 0x68, + 0xee, 0x1a, 0x27, 0xaf, 0xe0, 0x50, 0x39, 0x7f, 0xba, 0x45, 0x2e, 0x32, 0x56, 0xd2, 0xc7, 0x61, + 0xf3, 0x84, 0xc2, 0xee, 0x09, 0x85, 0x17, 0x59, 0x8e, 0xef, 0x2b, 0x99, 0xb1, 0x52, 0x78, 0xbf, + 0x0e, 0xf4, 0x1e, 0x03, 0x25, 0xb9, 0x6e, 0x14, 0x37, 0xb6, 0x66, 0x1e, 0xff, 0x0e, 0x00, 0x00, + 0xff, 0xff, 0x4e, 0x23, 0x52, 0x84, 0x95, 0x02, 0x00, 0x00, } diff --git a/types/types.proto b/types/types.proto index f250158f..bc5f0472 100644 --- a/types/types.proto +++ b/types/types.proto @@ -18,7 +18,7 @@ syntax = "proto3"; import "google/protobuf/descriptor.proto"; -package types; +package gnoi; // Define a protobuf FileOption that defines the gNOI service version. extend google.protobuf.FileOptions { From e8ccfd88271fe8955484dab4a868a262d0464f52 Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 16:59:47 +0530 Subject: [PATCH 207/238] Revert "Clean up gNOI repository for clarity and standard Go build." This reverts commit 383d376be005182278033cf96cf64881fce553e8. --- bgp/BUILD.bazel | 14 + bgp/bgp.pb.go | 173 ++--- bgp/bgp.proto | 2 +- cert/BUILD.bazel | 14 + cert/cert.pb.go | 1297 ++++++++-------------------------- cert/cert.proto | 2 +- common/common.pb.go | 116 ++-- common/common.proto | 2 +- diag/BUILD.bazel | 14 + diag/diag.pb.go | 732 +++++-------------- diag/diag.proto | 2 +- file/BUILD.bazel | 20 + file/file.pb.go | 660 +++++------------- file/file.proto | 4 +- interface/BUILD.bazel | 20 + interface/interface.pb.go | 306 +++----- interface/interface.proto | 2 +- layer2/BUILD.bazel | 20 + layer2/layer2.pb.go | 570 ++++----------- layer2/layer2.proto | 2 +- mpls/BUILD.bazel | 14 + mpls/mpls.pb.go | 604 ++++------------ mpls/mpls.proto | 2 +- system/BUILD.bazel | 20 + system/system.pb.go | 1392 +++++++++---------------------------- system/system.proto | 4 +- test/BUILD.bazel | 18 + test/simple_test.go | 14 +- types/.types.proto.swp | Bin 12288 -> 0 bytes types/types.pb.go | 240 ++----- 30 files changed, 1633 insertions(+), 4647 deletions(-) create mode 100644 bgp/BUILD.bazel create mode 100644 cert/BUILD.bazel create mode 100644 diag/BUILD.bazel create mode 100644 file/BUILD.bazel create mode 100644 interface/BUILD.bazel create mode 100644 layer2/BUILD.bazel create mode 100644 mpls/BUILD.bazel create mode 100644 system/BUILD.bazel create mode 100644 test/BUILD.bazel delete mode 100644 types/.types.proto.swp diff --git a/bgp/BUILD.bazel b/bgp/BUILD.bazel new file mode 100644 index 00000000..5cc42915 --- /dev/null +++ b/bgp/BUILD.bazel @@ -0,0 +1,14 @@ +load("@io_bazel_rules_go//proto:go_proto_library.bzl", "go_proto_library") + +proto_library( + name = "bgp_proto", + srcs = ["bgp.proto"], +) + +go_proto_library( + name = "go_default_library", + srcs = ["bgp.proto"], + visibility = ["//visibility:public"], + rules_go_repo_only_for_internal_use = "@", + has_services = 1, +) diff --git a/bgp/bgp.pb.go b/bgp/bgp.pb.go index 47523b58..646ad88d 100644 --- a/bgp/bgp.pb.go +++ b/bgp/bgp.pb.go @@ -1,15 +1,27 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. +// Code generated by protoc-gen-go. // source: bgp/bgp.proto +// DO NOT EDIT! +/* +Package gnoi_bgp is a generated protocol buffer package. + +It is generated from these files: + bgp/bgp.proto + +It has these top-level messages: + ClearBGPNeighborRequest + ClearBGPNeighborResponse +*/ package gnoi_bgp +import proto "github.com/golang/protobuf/proto" +import fmt "fmt" +import math "math" +import _ "types" + import ( - fmt "fmt" - proto "github.com/golang/protobuf/proto" - _ "github.com/openconfig/gnoi/types" context "golang.org/x/net/context" grpc "google.golang.org/grpc" - math "math" ) // Reference imports to suppress errors if they are not otherwise used. @@ -36,7 +48,6 @@ var ClearBGPNeighborRequest_Mode_name = map[int32]string{ 1: "SOFTIN", 2: "HARD", } - var ClearBGPNeighborRequest_Mode_value = map[string]int32{ "SOFT": 0, "SOFTIN": 1, @@ -46,127 +57,35 @@ var ClearBGPNeighborRequest_Mode_value = map[string]int32{ func (x ClearBGPNeighborRequest_Mode) String() string { return proto.EnumName(ClearBGPNeighborRequest_Mode_name, int32(x)) } - func (ClearBGPNeighborRequest_Mode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_dd5905d96efb1c39, []int{0, 0} + return fileDescriptor0, []int{0, 0} } type ClearBGPNeighborRequest struct { - Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + Address string `protobuf:"bytes,1,opt,name=address" json:"address,omitempty"` // Routing instance containing the neighbor. Defaults to the global routing // table. - RoutingInstance string `protobuf:"bytes,2,opt,name=routing_instance,json=routingInstance,proto3" json:"routing_instance,omitempty"` - Mode ClearBGPNeighborRequest_Mode `protobuf:"varint,3,opt,name=mode,proto3,enum=gnoi.bgp.ClearBGPNeighborRequest_Mode" json:"mode,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ClearBGPNeighborRequest) Reset() { *m = ClearBGPNeighborRequest{} } -func (m *ClearBGPNeighborRequest) String() string { return proto.CompactTextString(m) } -func (*ClearBGPNeighborRequest) ProtoMessage() {} -func (*ClearBGPNeighborRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_dd5905d96efb1c39, []int{0} -} - -func (m *ClearBGPNeighborRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ClearBGPNeighborRequest.Unmarshal(m, b) -} -func (m *ClearBGPNeighborRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ClearBGPNeighborRequest.Marshal(b, m, deterministic) -} -func (m *ClearBGPNeighborRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ClearBGPNeighborRequest.Merge(m, src) -} -func (m *ClearBGPNeighborRequest) XXX_Size() int { - return xxx_messageInfo_ClearBGPNeighborRequest.Size(m) -} -func (m *ClearBGPNeighborRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ClearBGPNeighborRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_ClearBGPNeighborRequest proto.InternalMessageInfo - -func (m *ClearBGPNeighborRequest) GetAddress() string { - if m != nil { - return m.Address - } - return "" -} - -func (m *ClearBGPNeighborRequest) GetRoutingInstance() string { - if m != nil { - return m.RoutingInstance - } - return "" + RoutingInstance string `protobuf:"bytes,2,opt,name=routing_instance,json=routingInstance" json:"routing_instance,omitempty"` + Mode ClearBGPNeighborRequest_Mode `protobuf:"varint,3,opt,name=mode,enum=gnoi.bgp.ClearBGPNeighborRequest_Mode" json:"mode,omitempty"` } -func (m *ClearBGPNeighborRequest) GetMode() ClearBGPNeighborRequest_Mode { - if m != nil { - return m.Mode - } - return ClearBGPNeighborRequest_SOFT -} +func (m *ClearBGPNeighborRequest) Reset() { *m = ClearBGPNeighborRequest{} } +func (m *ClearBGPNeighborRequest) String() string { return proto.CompactTextString(m) } +func (*ClearBGPNeighborRequest) ProtoMessage() {} +func (*ClearBGPNeighborRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } type ClearBGPNeighborResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ClearBGPNeighborResponse) Reset() { *m = ClearBGPNeighborResponse{} } -func (m *ClearBGPNeighborResponse) String() string { return proto.CompactTextString(m) } -func (*ClearBGPNeighborResponse) ProtoMessage() {} -func (*ClearBGPNeighborResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_dd5905d96efb1c39, []int{1} } -func (m *ClearBGPNeighborResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ClearBGPNeighborResponse.Unmarshal(m, b) -} -func (m *ClearBGPNeighborResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ClearBGPNeighborResponse.Marshal(b, m, deterministic) -} -func (m *ClearBGPNeighborResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ClearBGPNeighborResponse.Merge(m, src) -} -func (m *ClearBGPNeighborResponse) XXX_Size() int { - return xxx_messageInfo_ClearBGPNeighborResponse.Size(m) -} -func (m *ClearBGPNeighborResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ClearBGPNeighborResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_ClearBGPNeighborResponse proto.InternalMessageInfo +func (m *ClearBGPNeighborResponse) Reset() { *m = ClearBGPNeighborResponse{} } +func (m *ClearBGPNeighborResponse) String() string { return proto.CompactTextString(m) } +func (*ClearBGPNeighborResponse) ProtoMessage() {} +func (*ClearBGPNeighborResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } func init() { - proto.RegisterEnum("gnoi.bgp.ClearBGPNeighborRequest_Mode", ClearBGPNeighborRequest_Mode_name, ClearBGPNeighborRequest_Mode_value) proto.RegisterType((*ClearBGPNeighborRequest)(nil), "gnoi.bgp.ClearBGPNeighborRequest") proto.RegisterType((*ClearBGPNeighborResponse)(nil), "gnoi.bgp.ClearBGPNeighborResponse") -} - -func init() { proto.RegisterFile("bgp/bgp.proto", fileDescriptor_dd5905d96efb1c39) } - -var fileDescriptor_dd5905d96efb1c39 = []byte{ - // 277 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x50, 0xb1, 0x4e, 0xc3, 0x30, - 0x14, 0x6c, 0xda, 0x50, 0xc2, 0x93, 0x80, 0xc8, 0x0b, 0x51, 0xa6, 0x92, 0xa1, 0x2a, 0x12, 0x72, - 0x4a, 0xd9, 0x18, 0x90, 0x08, 0x88, 0xd2, 0x81, 0x52, 0x05, 0x36, 0x06, 0x14, 0x27, 0xc6, 0xb5, - 0x44, 0xfd, 0x4c, 0xec, 0x0c, 0xfc, 0x1e, 0x9f, 0xc0, 0x17, 0xa1, 0x24, 0xed, 0x02, 0x82, 0x2e, - 0x96, 0xef, 0xde, 0xdd, 0xbb, 0xd3, 0x83, 0x7d, 0x26, 0x74, 0xcc, 0x84, 0xa6, 0xba, 0x44, 0x8b, - 0xc4, 0x13, 0x0a, 0x25, 0x65, 0x42, 0x87, 0xa7, 0x42, 0xda, 0x65, 0xc5, 0x68, 0x8e, 0xab, 0x18, - 0x35, 0x57, 0x39, 0xaa, 0x57, 0x29, 0xe2, 0x7a, 0x1e, 0xdb, 0x0f, 0xcd, 0x4d, 0xfb, 0xb6, 0xbe, - 0xe8, 0xd3, 0x81, 0xa3, 0xeb, 0x37, 0x9e, 0x95, 0xc9, 0x74, 0x31, 0xe7, 0x52, 0x2c, 0x19, 0x96, - 0x29, 0x7f, 0xaf, 0xb8, 0xb1, 0x24, 0x80, 0xdd, 0xac, 0x28, 0x4a, 0x6e, 0x4c, 0xe0, 0x0c, 0x9c, - 0xd1, 0x5e, 0xba, 0x81, 0xe4, 0x04, 0xfc, 0x12, 0x2b, 0x2b, 0x95, 0x78, 0x91, 0xca, 0xd8, 0x4c, - 0xe5, 0x3c, 0xe8, 0x36, 0x92, 0xc3, 0x35, 0x3f, 0x5b, 0xd3, 0xe4, 0x02, 0xdc, 0x15, 0x16, 0x3c, - 0xe8, 0x0d, 0x9c, 0xd1, 0xc1, 0x64, 0x48, 0x37, 0x3d, 0xe9, 0x1f, 0xa9, 0xf4, 0x1e, 0x0b, 0x9e, - 0x36, 0x9e, 0x68, 0x08, 0x6e, 0x8d, 0x88, 0x07, 0xee, 0xe3, 0xc3, 0xed, 0x93, 0xdf, 0x21, 0x00, - 0xfd, 0xfa, 0x37, 0x9b, 0xfb, 0x4e, 0xcd, 0xde, 0x5d, 0xa5, 0x37, 0x7e, 0x37, 0x0a, 0x21, 0xf8, - 0xbd, 0xcd, 0x68, 0x54, 0x86, 0x4f, 0x18, 0xf4, 0x92, 0xe9, 0x82, 0x3c, 0x83, 0xff, 0x53, 0x42, - 0x8e, 0xb7, 0x96, 0x09, 0xa3, 0xff, 0x24, 0x6d, 0x42, 0xd4, 0x49, 0xbc, 0xaf, 0xcb, 0x9d, 0x31, - 0x3d, 0xa3, 0x63, 0xd6, 0x6f, 0xae, 0x7a, 0xfe, 0x1d, 0x00, 0x00, 0xff, 0xff, 0x05, 0x3c, 0x32, - 0x2b, 0x9e, 0x01, 0x00, 0x00, + proto.RegisterEnum("gnoi.bgp.ClearBGPNeighborRequest_Mode", ClearBGPNeighborRequest_Mode_name, ClearBGPNeighborRequest_Mode_value) } // Reference imports to suppress errors if they are not otherwise used. @@ -177,9 +96,8 @@ var _ grpc.ClientConn // is compatible with the grpc package it is being compiled against. const _ = grpc.SupportPackageIsVersion4 -// BGPClient is the client API for BGP service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +// Client API for BGP service + type BGPClient interface { // ClearBGPNeighbor clears a BGP session. ClearBGPNeighbor(ctx context.Context, in *ClearBGPNeighborRequest, opts ...grpc.CallOption) (*ClearBGPNeighborResponse, error) @@ -195,14 +113,15 @@ func NewBGPClient(cc *grpc.ClientConn) BGPClient { func (c *bGPClient) ClearBGPNeighbor(ctx context.Context, in *ClearBGPNeighborRequest, opts ...grpc.CallOption) (*ClearBGPNeighborResponse, error) { out := new(ClearBGPNeighborResponse) - err := c.cc.Invoke(ctx, "/gnoi.bgp.BGP/ClearBGPNeighbor", in, out, opts...) + err := grpc.Invoke(ctx, "/gnoi.bgp.BGP/ClearBGPNeighbor", in, out, c.cc, opts...) if err != nil { return nil, err } return out, nil } -// BGPServer is the server API for BGP service. +// Server API for BGP service + type BGPServer interface { // ClearBGPNeighbor clears a BGP session. ClearBGPNeighbor(context.Context, *ClearBGPNeighborRequest) (*ClearBGPNeighborResponse, error) @@ -242,3 +161,25 @@ var _BGP_serviceDesc = grpc.ServiceDesc{ Streams: []grpc.StreamDesc{}, Metadata: "bgp/bgp.proto", } + +func init() { proto.RegisterFile("bgp/bgp.proto", fileDescriptor0) } + +var fileDescriptor0 = []byte{ + // 256 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xe2, 0xe2, 0x4d, 0x4a, 0x2f, 0xd0, + 0x4f, 0x4a, 0x2f, 0xd0, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x48, 0xcf, 0xcb, 0xcf, 0xd4, + 0x4b, 0x4a, 0x2f, 0x90, 0x12, 0x2c, 0xa9, 0x2c, 0x48, 0x2d, 0xd6, 0x07, 0x93, 0x10, 0x49, 0xa5, + 0x43, 0x8c, 0x5c, 0xe2, 0xce, 0x39, 0xa9, 0x89, 0x45, 0x4e, 0xee, 0x01, 0x7e, 0xa9, 0x99, 0xe9, + 0x19, 0x49, 0xf9, 0x45, 0x41, 0xa9, 0x85, 0xa5, 0xa9, 0xc5, 0x25, 0x42, 0x12, 0x5c, 0xec, 0x89, + 0x29, 0x29, 0x45, 0xa9, 0xc5, 0xc5, 0x12, 0x8c, 0x0a, 0x8c, 0x1a, 0x9c, 0x41, 0x30, 0xae, 0x90, + 0x26, 0x97, 0x40, 0x51, 0x7e, 0x69, 0x49, 0x66, 0x5e, 0x7a, 0x7c, 0x66, 0x5e, 0x71, 0x49, 0x62, + 0x5e, 0x72, 0xaa, 0x04, 0x13, 0x58, 0x09, 0x3f, 0x54, 0xdc, 0x13, 0x2a, 0x2c, 0x64, 0xc5, 0xc5, + 0x92, 0x9b, 0x9f, 0x92, 0x2a, 0xc1, 0xac, 0xc0, 0xa8, 0xc1, 0x67, 0xa4, 0xa6, 0x07, 0x73, 0x8c, + 0x1e, 0x0e, 0x5b, 0xf5, 0x7c, 0xf3, 0x53, 0x52, 0x83, 0xc0, 0x7a, 0x94, 0xd4, 0xb8, 0x58, 0x40, + 0x3c, 0x21, 0x0e, 0x2e, 0x96, 0x60, 0x7f, 0xb7, 0x10, 0x01, 0x06, 0x21, 0x2e, 0x2e, 0x36, 0x10, + 0xcb, 0xd3, 0x4f, 0x80, 0x11, 0x24, 0xea, 0xe1, 0x18, 0xe4, 0x22, 0xc0, 0xa4, 0x24, 0xc5, 0x25, + 0x81, 0x69, 0x5a, 0x71, 0x41, 0x7e, 0x5e, 0x71, 0xaa, 0x51, 0x12, 0x17, 0xb3, 0x93, 0x7b, 0x80, + 0x50, 0x34, 0x97, 0x00, 0xba, 0x12, 0x21, 0x45, 0x82, 0x8e, 0x91, 0x52, 0xc2, 0xa7, 0x04, 0x62, + 0x83, 0x12, 0x83, 0x13, 0xc7, 0x25, 0x3b, 0x56, 0x03, 0x3d, 0x43, 0x3d, 0x83, 0x24, 0x36, 0x70, + 0xa8, 0x1a, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, 0x1b, 0x68, 0x5d, 0x50, 0x83, 0x01, 0x00, 0x00, +} diff --git a/bgp/bgp.proto b/bgp/bgp.proto index 4c85e64f..6aa07228 100644 --- a/bgp/bgp.proto +++ b/bgp/bgp.proto @@ -16,7 +16,7 @@ syntax = "proto3"; -import "github.com/openconfig/gnoi/types/types.proto"; +import "types/types.proto"; package gnoi.bgp; diff --git a/cert/BUILD.bazel b/cert/BUILD.bazel new file mode 100644 index 00000000..802baf70 --- /dev/null +++ b/cert/BUILD.bazel @@ -0,0 +1,14 @@ +load("@io_bazel_rules_go//proto:go_proto_library.bzl", "go_proto_library") + +proto_library( + name = "cert_proto", + srcs = ["cert.proto"], +) + +go_proto_library( + name = "go_default_library", + srcs = ["cert.proto"], + visibility = ["//visibility:public"], + rules_go_repo_only_for_internal_use = "@", + has_services = 1, +) diff --git a/cert/cert.pb.go b/cert/cert.pb.go index b13e3f9f..2caa2fea 100644 --- a/cert/cert.pb.go +++ b/cert/cert.pb.go @@ -1,15 +1,47 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. +// Code generated by protoc-gen-go. // source: cert/cert.proto - +// DO NOT EDIT! + +/* +Package gnoi_certificate is a generated protocol buffer package. + +It is generated from these files: + cert/cert.proto + +It has these top-level messages: + RotateCertificateRequest + RotateCertificateResponse + InstallCertificateRequest + InstallCertificateResponse + GenerateCSRRequest + CSRParams + GenerateCSRResponse + LoadCertificateRequest + LoadCertificateResponse + FinalizeRequest + GetCertificatesRequest + GetCertificatesResponse + CertificateInfo + RevokeCertificatesRequest + RevokeCertificatesResponse + CertificateRevocationError + CanGenerateCSRRequest + CanGenerateCSRResponse + Certificate + CSR + KeyPair + Endpoint +*/ package gnoi_certificate +import proto "github.com/golang/protobuf/proto" +import fmt "fmt" +import math "math" +import _ "types" + import ( - fmt "fmt" - proto "github.com/golang/protobuf/proto" - _ "github.com/openconfig/gnoi/types" context "golang.org/x/net/context" grpc "google.golang.org/grpc" - math "math" ) // Reference imports to suppress errors if they are not otherwise used. @@ -37,7 +69,6 @@ var CertificateType_name = map[int32]string{ 0: "CT_UNKNOWN", 1: "CT_X509", } - var CertificateType_value = map[string]int32{ "CT_UNKNOWN": 0, "CT_X509": 1, @@ -46,10 +77,7 @@ var CertificateType_value = map[string]int32{ func (x CertificateType) String() string { return proto.EnumName(CertificateType_name, int32(x)) } - -func (CertificateType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_cc7c7ec7dcc94e18, []int{0} -} +func (CertificateType) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } // Algorithm to be used for generation the key pair. type KeyType int32 @@ -65,7 +93,6 @@ var KeyType_name = map[int32]string{ 0: "KT_UNKNOWN", 1: "KT_RSA", } - var KeyType_value = map[string]int32{ "KT_UNKNOWN": 0, "KT_RSA": 1, @@ -74,10 +101,7 @@ var KeyType_value = map[string]int32{ func (x KeyType) String() string { return proto.EnumName(KeyType_name, int32(x)) } - -func (KeyType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_cc7c7ec7dcc94e18, []int{1} -} +func (KeyType) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } // Type of endpoint that can use a cert. This list is to be extended based on // conversation with vendors. @@ -94,7 +118,6 @@ var Endpoint_Type_name = map[int32]string{ 1: "EP_IPSEC_TUNNEL", 2: "EP_DAEMON", } - var Endpoint_Type_value = map[string]int32{ "EP_UNSPECIFIED": 0, "EP_IPSEC_TUNNEL": 1, @@ -104,10 +127,7 @@ var Endpoint_Type_value = map[string]int32{ func (x Endpoint_Type) String() string { return proto.EnumName(Endpoint_Type_name, int32(x)) } - -func (Endpoint_Type) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_cc7c7ec7dcc94e18, []int{21, 0} -} +func (Endpoint_Type) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{21, 0} } // Request messages to rotate existing certificates on the target. type RotateCertificateRequest struct { @@ -117,57 +137,30 @@ type RotateCertificateRequest struct { // *RotateCertificateRequest_GenerateCsr // *RotateCertificateRequest_LoadCertificate // *RotateCertificateRequest_FinalizeRotation - RotateRequest isRotateCertificateRequest_RotateRequest `protobuf_oneof:"rotate_request"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + RotateRequest isRotateCertificateRequest_RotateRequest `protobuf_oneof:"rotate_request"` } -func (m *RotateCertificateRequest) Reset() { *m = RotateCertificateRequest{} } -func (m *RotateCertificateRequest) String() string { return proto.CompactTextString(m) } -func (*RotateCertificateRequest) ProtoMessage() {} -func (*RotateCertificateRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_cc7c7ec7dcc94e18, []int{0} -} - -func (m *RotateCertificateRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RotateCertificateRequest.Unmarshal(m, b) -} -func (m *RotateCertificateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RotateCertificateRequest.Marshal(b, m, deterministic) -} -func (m *RotateCertificateRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RotateCertificateRequest.Merge(m, src) -} -func (m *RotateCertificateRequest) XXX_Size() int { - return xxx_messageInfo_RotateCertificateRequest.Size(m) -} -func (m *RotateCertificateRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RotateCertificateRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RotateCertificateRequest proto.InternalMessageInfo +func (m *RotateCertificateRequest) Reset() { *m = RotateCertificateRequest{} } +func (m *RotateCertificateRequest) String() string { return proto.CompactTextString(m) } +func (*RotateCertificateRequest) ProtoMessage() {} +func (*RotateCertificateRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } type isRotateCertificateRequest_RotateRequest interface { isRotateCertificateRequest_RotateRequest() } type RotateCertificateRequest_GenerateCsr struct { - GenerateCsr *GenerateCSRRequest `protobuf:"bytes,1,opt,name=generate_csr,json=generateCsr,proto3,oneof"` + GenerateCsr *GenerateCSRRequest `protobuf:"bytes,1,opt,name=generate_csr,json=generateCsr,oneof"` } - type RotateCertificateRequest_LoadCertificate struct { - LoadCertificate *LoadCertificateRequest `protobuf:"bytes,2,opt,name=load_certificate,json=loadCertificate,proto3,oneof"` + LoadCertificate *LoadCertificateRequest `protobuf:"bytes,2,opt,name=load_certificate,json=loadCertificate,oneof"` } - type RotateCertificateRequest_FinalizeRotation struct { - FinalizeRotation *FinalizeRequest `protobuf:"bytes,3,opt,name=finalize_rotation,json=finalizeRotation,proto3,oneof"` + FinalizeRotation *FinalizeRequest `protobuf:"bytes,3,opt,name=finalize_rotation,json=finalizeRotation,oneof"` } -func (*RotateCertificateRequest_GenerateCsr) isRotateCertificateRequest_RotateRequest() {} - -func (*RotateCertificateRequest_LoadCertificate) isRotateCertificateRequest_RotateRequest() {} - +func (*RotateCertificateRequest_GenerateCsr) isRotateCertificateRequest_RotateRequest() {} +func (*RotateCertificateRequest_LoadCertificate) isRotateCertificateRequest_RotateRequest() {} func (*RotateCertificateRequest_FinalizeRotation) isRotateCertificateRequest_RotateRequest() {} func (m *RotateCertificateRequest) GetRotateRequest() isRotateCertificateRequest_RotateRequest { @@ -271,17 +264,17 @@ func _RotateCertificateRequest_OneofSizer(msg proto.Message) (n int) { switch x := m.RotateRequest.(type) { case *RotateCertificateRequest_GenerateCsr: s := proto.Size(x.GenerateCsr) - n += 1 // tag and wire + n += proto.SizeVarint(1<<3 | proto.WireBytes) n += proto.SizeVarint(uint64(s)) n += s case *RotateCertificateRequest_LoadCertificate: s := proto.Size(x.LoadCertificate) - n += 1 // tag and wire + n += proto.SizeVarint(2<<3 | proto.WireBytes) n += proto.SizeVarint(uint64(s)) n += s case *RotateCertificateRequest_FinalizeRotation: s := proto.Size(x.FinalizeRotation) - n += 1 // tag and wire + n += proto.SizeVarint(3<<3 | proto.WireBytes) n += proto.SizeVarint(uint64(s)) n += s case nil: @@ -298,51 +291,26 @@ type RotateCertificateResponse struct { // Types that are valid to be assigned to RotateResponse: // *RotateCertificateResponse_GeneratedCsr // *RotateCertificateResponse_LoadCertificate - RotateResponse isRotateCertificateResponse_RotateResponse `protobuf_oneof:"rotate_response"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + RotateResponse isRotateCertificateResponse_RotateResponse `protobuf_oneof:"rotate_response"` } -func (m *RotateCertificateResponse) Reset() { *m = RotateCertificateResponse{} } -func (m *RotateCertificateResponse) String() string { return proto.CompactTextString(m) } -func (*RotateCertificateResponse) ProtoMessage() {} -func (*RotateCertificateResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_cc7c7ec7dcc94e18, []int{1} -} - -func (m *RotateCertificateResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RotateCertificateResponse.Unmarshal(m, b) -} -func (m *RotateCertificateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RotateCertificateResponse.Marshal(b, m, deterministic) -} -func (m *RotateCertificateResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RotateCertificateResponse.Merge(m, src) -} -func (m *RotateCertificateResponse) XXX_Size() int { - return xxx_messageInfo_RotateCertificateResponse.Size(m) -} -func (m *RotateCertificateResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RotateCertificateResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RotateCertificateResponse proto.InternalMessageInfo +func (m *RotateCertificateResponse) Reset() { *m = RotateCertificateResponse{} } +func (m *RotateCertificateResponse) String() string { return proto.CompactTextString(m) } +func (*RotateCertificateResponse) ProtoMessage() {} +func (*RotateCertificateResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } type isRotateCertificateResponse_RotateResponse interface { isRotateCertificateResponse_RotateResponse() } type RotateCertificateResponse_GeneratedCsr struct { - GeneratedCsr *GenerateCSRResponse `protobuf:"bytes,1,opt,name=generated_csr,json=generatedCsr,proto3,oneof"` + GeneratedCsr *GenerateCSRResponse `protobuf:"bytes,1,opt,name=generated_csr,json=generatedCsr,oneof"` } - type RotateCertificateResponse_LoadCertificate struct { - LoadCertificate *LoadCertificateResponse `protobuf:"bytes,2,opt,name=load_certificate,json=loadCertificate,proto3,oneof"` + LoadCertificate *LoadCertificateResponse `protobuf:"bytes,2,opt,name=load_certificate,json=loadCertificate,oneof"` } -func (*RotateCertificateResponse_GeneratedCsr) isRotateCertificateResponse_RotateResponse() {} - +func (*RotateCertificateResponse_GeneratedCsr) isRotateCertificateResponse_RotateResponse() {} func (*RotateCertificateResponse_LoadCertificate) isRotateCertificateResponse_RotateResponse() {} func (m *RotateCertificateResponse) GetRotateResponse() isRotateCertificateResponse_RotateResponse { @@ -425,12 +393,12 @@ func _RotateCertificateResponse_OneofSizer(msg proto.Message) (n int) { switch x := m.RotateResponse.(type) { case *RotateCertificateResponse_GeneratedCsr: s := proto.Size(x.GeneratedCsr) - n += 1 // tag and wire + n += proto.SizeVarint(1<<3 | proto.WireBytes) n += proto.SizeVarint(uint64(s)) n += s case *RotateCertificateResponse_LoadCertificate: s := proto.Size(x.LoadCertificate) - n += 1 // tag and wire + n += proto.SizeVarint(2<<3 | proto.WireBytes) n += proto.SizeVarint(uint64(s)) n += s case nil: @@ -447,51 +415,26 @@ type InstallCertificateRequest struct { // Types that are valid to be assigned to InstallRequest: // *InstallCertificateRequest_GenerateCsr // *InstallCertificateRequest_LoadCertificate - InstallRequest isInstallCertificateRequest_InstallRequest `protobuf_oneof:"install_request"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + InstallRequest isInstallCertificateRequest_InstallRequest `protobuf_oneof:"install_request"` } -func (m *InstallCertificateRequest) Reset() { *m = InstallCertificateRequest{} } -func (m *InstallCertificateRequest) String() string { return proto.CompactTextString(m) } -func (*InstallCertificateRequest) ProtoMessage() {} -func (*InstallCertificateRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_cc7c7ec7dcc94e18, []int{2} -} - -func (m *InstallCertificateRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_InstallCertificateRequest.Unmarshal(m, b) -} -func (m *InstallCertificateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_InstallCertificateRequest.Marshal(b, m, deterministic) -} -func (m *InstallCertificateRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_InstallCertificateRequest.Merge(m, src) -} -func (m *InstallCertificateRequest) XXX_Size() int { - return xxx_messageInfo_InstallCertificateRequest.Size(m) -} -func (m *InstallCertificateRequest) XXX_DiscardUnknown() { - xxx_messageInfo_InstallCertificateRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_InstallCertificateRequest proto.InternalMessageInfo +func (m *InstallCertificateRequest) Reset() { *m = InstallCertificateRequest{} } +func (m *InstallCertificateRequest) String() string { return proto.CompactTextString(m) } +func (*InstallCertificateRequest) ProtoMessage() {} +func (*InstallCertificateRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} } type isInstallCertificateRequest_InstallRequest interface { isInstallCertificateRequest_InstallRequest() } type InstallCertificateRequest_GenerateCsr struct { - GenerateCsr *GenerateCSRRequest `protobuf:"bytes,1,opt,name=generate_csr,json=generateCsr,proto3,oneof"` + GenerateCsr *GenerateCSRRequest `protobuf:"bytes,1,opt,name=generate_csr,json=generateCsr,oneof"` } - type InstallCertificateRequest_LoadCertificate struct { - LoadCertificate *LoadCertificateRequest `protobuf:"bytes,2,opt,name=load_certificate,json=loadCertificate,proto3,oneof"` + LoadCertificate *LoadCertificateRequest `protobuf:"bytes,2,opt,name=load_certificate,json=loadCertificate,oneof"` } -func (*InstallCertificateRequest_GenerateCsr) isInstallCertificateRequest_InstallRequest() {} - +func (*InstallCertificateRequest_GenerateCsr) isInstallCertificateRequest_InstallRequest() {} func (*InstallCertificateRequest_LoadCertificate) isInstallCertificateRequest_InstallRequest() {} func (m *InstallCertificateRequest) GetInstallRequest() isInstallCertificateRequest_InstallRequest { @@ -574,12 +517,12 @@ func _InstallCertificateRequest_OneofSizer(msg proto.Message) (n int) { switch x := m.InstallRequest.(type) { case *InstallCertificateRequest_GenerateCsr: s := proto.Size(x.GenerateCsr) - n += 1 // tag and wire + n += proto.SizeVarint(1<<3 | proto.WireBytes) n += proto.SizeVarint(uint64(s)) n += s case *InstallCertificateRequest_LoadCertificate: s := proto.Size(x.LoadCertificate) - n += 1 // tag and wire + n += proto.SizeVarint(2<<3 | proto.WireBytes) n += proto.SizeVarint(uint64(s)) n += s case nil: @@ -596,51 +539,26 @@ type InstallCertificateResponse struct { // Types that are valid to be assigned to InstallResponse: // *InstallCertificateResponse_GeneratedCsr // *InstallCertificateResponse_LoadCertificate - InstallResponse isInstallCertificateResponse_InstallResponse `protobuf_oneof:"install_response"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + InstallResponse isInstallCertificateResponse_InstallResponse `protobuf_oneof:"install_response"` } -func (m *InstallCertificateResponse) Reset() { *m = InstallCertificateResponse{} } -func (m *InstallCertificateResponse) String() string { return proto.CompactTextString(m) } -func (*InstallCertificateResponse) ProtoMessage() {} -func (*InstallCertificateResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_cc7c7ec7dcc94e18, []int{3} -} - -func (m *InstallCertificateResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_InstallCertificateResponse.Unmarshal(m, b) -} -func (m *InstallCertificateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_InstallCertificateResponse.Marshal(b, m, deterministic) -} -func (m *InstallCertificateResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_InstallCertificateResponse.Merge(m, src) -} -func (m *InstallCertificateResponse) XXX_Size() int { - return xxx_messageInfo_InstallCertificateResponse.Size(m) -} -func (m *InstallCertificateResponse) XXX_DiscardUnknown() { - xxx_messageInfo_InstallCertificateResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_InstallCertificateResponse proto.InternalMessageInfo +func (m *InstallCertificateResponse) Reset() { *m = InstallCertificateResponse{} } +func (m *InstallCertificateResponse) String() string { return proto.CompactTextString(m) } +func (*InstallCertificateResponse) ProtoMessage() {} +func (*InstallCertificateResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} } type isInstallCertificateResponse_InstallResponse interface { isInstallCertificateResponse_InstallResponse() } type InstallCertificateResponse_GeneratedCsr struct { - GeneratedCsr *GenerateCSRResponse `protobuf:"bytes,1,opt,name=generated_csr,json=generatedCsr,proto3,oneof"` + GeneratedCsr *GenerateCSRResponse `protobuf:"bytes,1,opt,name=generated_csr,json=generatedCsr,oneof"` } - type InstallCertificateResponse_LoadCertificate struct { - LoadCertificate *LoadCertificateResponse `protobuf:"bytes,2,opt,name=load_certificate,json=loadCertificate,proto3,oneof"` + LoadCertificate *LoadCertificateResponse `protobuf:"bytes,2,opt,name=load_certificate,json=loadCertificate,oneof"` } -func (*InstallCertificateResponse_GeneratedCsr) isInstallCertificateResponse_InstallResponse() {} - +func (*InstallCertificateResponse_GeneratedCsr) isInstallCertificateResponse_InstallResponse() {} func (*InstallCertificateResponse_LoadCertificate) isInstallCertificateResponse_InstallResponse() {} func (m *InstallCertificateResponse) GetInstallResponse() isInstallCertificateResponse_InstallResponse { @@ -723,12 +641,12 @@ func _InstallCertificateResponse_OneofSizer(msg proto.Message) (n int) { switch x := m.InstallResponse.(type) { case *InstallCertificateResponse_GeneratedCsr: s := proto.Size(x.GeneratedCsr) - n += 1 // tag and wire + n += proto.SizeVarint(1<<3 | proto.WireBytes) n += proto.SizeVarint(uint64(s)) n += s case *InstallCertificateResponse_LoadCertificate: s := proto.Size(x.LoadCertificate) - n += 1 // tag and wire + n += proto.SizeVarint(2<<3 | proto.WireBytes) n += proto.SizeVarint(uint64(s)) n += s case nil: @@ -755,40 +673,17 @@ func _InstallCertificateResponse_OneofSizer(msg proto.Message) (n int) { // the GenerateCSRRequest should fail. type GenerateCSRRequest struct { // Parameters for creating a CSR. - CsrParams *CSRParams `protobuf:"bytes,1,opt,name=csr_params,json=csrParams,proto3" json:"csr_params,omitempty"` + CsrParams *CSRParams `protobuf:"bytes,1,opt,name=csr_params,json=csrParams" json:"csr_params,omitempty"` // The certificate id with which this CSR will be associated. The target // configuration should bind an entity which wants to use a certificate to // the certificate_id it should use. - CertificateId string `protobuf:"bytes,2,opt,name=certificate_id,json=certificateId,proto3" json:"certificate_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GenerateCSRRequest) Reset() { *m = GenerateCSRRequest{} } -func (m *GenerateCSRRequest) String() string { return proto.CompactTextString(m) } -func (*GenerateCSRRequest) ProtoMessage() {} -func (*GenerateCSRRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_cc7c7ec7dcc94e18, []int{4} + CertificateId string `protobuf:"bytes,2,opt,name=certificate_id,json=certificateId" json:"certificate_id,omitempty"` } -func (m *GenerateCSRRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GenerateCSRRequest.Unmarshal(m, b) -} -func (m *GenerateCSRRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GenerateCSRRequest.Marshal(b, m, deterministic) -} -func (m *GenerateCSRRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GenerateCSRRequest.Merge(m, src) -} -func (m *GenerateCSRRequest) XXX_Size() int { - return xxx_messageInfo_GenerateCSRRequest.Size(m) -} -func (m *GenerateCSRRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GenerateCSRRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_GenerateCSRRequest proto.InternalMessageInfo +func (m *GenerateCSRRequest) Reset() { *m = GenerateCSRRequest{} } +func (m *GenerateCSRRequest) String() string { return proto.CompactTextString(m) } +func (*GenerateCSRRequest) ProtoMessage() {} +func (*GenerateCSRRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} } func (m *GenerateCSRRequest) GetCsrParams() *CSRParams { if m != nil { @@ -797,139 +692,32 @@ func (m *GenerateCSRRequest) GetCsrParams() *CSRParams { return nil } -func (m *GenerateCSRRequest) GetCertificateId() string { - if m != nil { - return m.CertificateId - } - return "" -} - // Parameters to be used when generating a Certificate Signing Request. type CSRParams struct { // The type of certificate which will be associated for this CSR. - Type CertificateType `protobuf:"varint,1,opt,name=type,proto3,enum=gnoi.certificate.CertificateType" json:"type,omitempty"` + Type CertificateType `protobuf:"varint,1,opt,name=type,enum=gnoi.certificate.CertificateType" json:"type,omitempty"` // Minimum size of the key to be used by the target when generating a // public/private key pair. - MinKeySize uint32 `protobuf:"varint,2,opt,name=min_key_size,json=minKeySize,proto3" json:"min_key_size,omitempty"` + MinKeySize uint32 `protobuf:"varint,2,opt,name=min_key_size,json=minKeySize" json:"min_key_size,omitempty"` // If provided, the target must use the provided key type. If the target // cannot use the algorithm specified in the key_type, it should cancel the // stream with an Unimplemented error. - KeyType KeyType `protobuf:"varint,3,opt,name=key_type,json=keyType,proto3,enum=gnoi.certificate.KeyType" json:"key_type,omitempty"` + KeyType KeyType `protobuf:"varint,3,opt,name=key_type,json=keyType,enum=gnoi.certificate.KeyType" json:"key_type,omitempty"` // --- common set of parameters applicable for any type of certificate --- // - CommonName string `protobuf:"bytes,4,opt,name=common_name,json=commonName,proto3" json:"common_name,omitempty"` - Country string `protobuf:"bytes,5,opt,name=country,proto3" json:"country,omitempty"` - State string `protobuf:"bytes,6,opt,name=state,proto3" json:"state,omitempty"` - City string `protobuf:"bytes,7,opt,name=city,proto3" json:"city,omitempty"` - Organization string `protobuf:"bytes,8,opt,name=organization,proto3" json:"organization,omitempty"` - OrganizationalUnit string `protobuf:"bytes,9,opt,name=organizational_unit,json=organizationalUnit,proto3" json:"organizational_unit,omitempty"` - IpAddress string `protobuf:"bytes,10,opt,name=ip_address,json=ipAddress,proto3" json:"ip_address,omitempty"` - EmailId string `protobuf:"bytes,11,opt,name=email_id,json=emailId,proto3" json:"email_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + CommonName string `protobuf:"bytes,4,opt,name=common_name,json=commonName" json:"common_name,omitempty"` + Country string `protobuf:"bytes,5,opt,name=country" json:"country,omitempty"` + State string `protobuf:"bytes,6,opt,name=state" json:"state,omitempty"` + City string `protobuf:"bytes,7,opt,name=city" json:"city,omitempty"` + Organization string `protobuf:"bytes,8,opt,name=organization" json:"organization,omitempty"` + OrganizationalUnit string `protobuf:"bytes,9,opt,name=organizational_unit,json=organizationalUnit" json:"organizational_unit,omitempty"` + IpAddress string `protobuf:"bytes,10,opt,name=ip_address,json=ipAddress" json:"ip_address,omitempty"` + EmailId string `protobuf:"bytes,11,opt,name=email_id,json=emailId" json:"email_id,omitempty"` } -func (m *CSRParams) Reset() { *m = CSRParams{} } -func (m *CSRParams) String() string { return proto.CompactTextString(m) } -func (*CSRParams) ProtoMessage() {} -func (*CSRParams) Descriptor() ([]byte, []int) { - return fileDescriptor_cc7c7ec7dcc94e18, []int{5} -} - -func (m *CSRParams) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CSRParams.Unmarshal(m, b) -} -func (m *CSRParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CSRParams.Marshal(b, m, deterministic) -} -func (m *CSRParams) XXX_Merge(src proto.Message) { - xxx_messageInfo_CSRParams.Merge(m, src) -} -func (m *CSRParams) XXX_Size() int { - return xxx_messageInfo_CSRParams.Size(m) -} -func (m *CSRParams) XXX_DiscardUnknown() { - xxx_messageInfo_CSRParams.DiscardUnknown(m) -} - -var xxx_messageInfo_CSRParams proto.InternalMessageInfo - -func (m *CSRParams) GetType() CertificateType { - if m != nil { - return m.Type - } - return CertificateType_CT_UNKNOWN -} - -func (m *CSRParams) GetMinKeySize() uint32 { - if m != nil { - return m.MinKeySize - } - return 0 -} - -func (m *CSRParams) GetKeyType() KeyType { - if m != nil { - return m.KeyType - } - return KeyType_KT_UNKNOWN -} - -func (m *CSRParams) GetCommonName() string { - if m != nil { - return m.CommonName - } - return "" -} - -func (m *CSRParams) GetCountry() string { - if m != nil { - return m.Country - } - return "" -} - -func (m *CSRParams) GetState() string { - if m != nil { - return m.State - } - return "" -} - -func (m *CSRParams) GetCity() string { - if m != nil { - return m.City - } - return "" -} - -func (m *CSRParams) GetOrganization() string { - if m != nil { - return m.Organization - } - return "" -} - -func (m *CSRParams) GetOrganizationalUnit() string { - if m != nil { - return m.OrganizationalUnit - } - return "" -} - -func (m *CSRParams) GetIpAddress() string { - if m != nil { - return m.IpAddress - } - return "" -} - -func (m *CSRParams) GetEmailId() string { - if m != nil { - return m.EmailId - } - return "" -} +func (m *CSRParams) Reset() { *m = CSRParams{} } +func (m *CSRParams) String() string { return proto.CompactTextString(m) } +func (*CSRParams) ProtoMessage() {} +func (*CSRParams) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} } // GenerateCSRResponse contains the CSR associated with the Certificate ID // supplied in the GenerateCSRRequest. When a Certificate is subsequently @@ -939,36 +727,13 @@ func (m *CSRParams) GetEmailId() string { // An Unimplemented error will be returned if the target cannot generate a CSR // as per the request. In this case, the caller must generate its own key pair. type GenerateCSRResponse struct { - Csr *CSR `protobuf:"bytes,1,opt,name=csr,proto3" json:"csr,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Csr *CSR `protobuf:"bytes,1,opt,name=csr" json:"csr,omitempty"` } -func (m *GenerateCSRResponse) Reset() { *m = GenerateCSRResponse{} } -func (m *GenerateCSRResponse) String() string { return proto.CompactTextString(m) } -func (*GenerateCSRResponse) ProtoMessage() {} -func (*GenerateCSRResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_cc7c7ec7dcc94e18, []int{6} -} - -func (m *GenerateCSRResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GenerateCSRResponse.Unmarshal(m, b) -} -func (m *GenerateCSRResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GenerateCSRResponse.Marshal(b, m, deterministic) -} -func (m *GenerateCSRResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GenerateCSRResponse.Merge(m, src) -} -func (m *GenerateCSRResponse) XXX_Size() int { - return xxx_messageInfo_GenerateCSRResponse.Size(m) -} -func (m *GenerateCSRResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GenerateCSRResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_GenerateCSRResponse proto.InternalMessageInfo +func (m *GenerateCSRResponse) Reset() { *m = GenerateCSRResponse{} } +func (m *GenerateCSRResponse) String() string { return proto.CompactTextString(m) } +func (*GenerateCSRResponse) ProtoMessage() {} +func (*GenerateCSRResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} } func (m *GenerateCSRResponse) GetCsr() *CSR { if m != nil { @@ -993,48 +758,25 @@ func (m *GenerateCSRResponse) GetCsr() *CSR { // the LoadCertificateRequest must fail. type LoadCertificateRequest struct { // The certificate to be Loaded on the target. - Certificate *Certificate `protobuf:"bytes,1,opt,name=certificate,proto3" json:"certificate,omitempty"` + Certificate *Certificate `protobuf:"bytes,1,opt,name=certificate" json:"certificate,omitempty"` // The key pair to be used with the certificate. This is provided in the event // that the target cannot generate a CSR (and the corresponding public/private // keys). - KeyPair *KeyPair `protobuf:"bytes,2,opt,name=key_pair,json=keyPair,proto3" json:"key_pair,omitempty"` + KeyPair *KeyPair `protobuf:"bytes,2,opt,name=key_pair,json=keyPair" json:"key_pair,omitempty"` // Certificate Id of the above certificate. This is to be provided only when // there is an externally generated key pair. - CertificateId string `protobuf:"bytes,3,opt,name=certificate_id,json=certificateId,proto3" json:"certificate_id,omitempty"` + CertificateId string `protobuf:"bytes,3,opt,name=certificate_id,json=certificateId" json:"certificate_id,omitempty"` // Optional bundle of CA certificates. When not empty, the provided // certificates should squash the existing bundle. This field provides a // simplified means to provision a CA bundle that can be used to validate // other peer's certificates. - CaCertificates []*Certificate `protobuf:"bytes,4,rep,name=ca_certificates,json=caCertificates,proto3" json:"ca_certificates,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + CaCertificates []*Certificate `protobuf:"bytes,4,rep,name=ca_certificates,json=caCertificates" json:"ca_certificates,omitempty"` } -func (m *LoadCertificateRequest) Reset() { *m = LoadCertificateRequest{} } -func (m *LoadCertificateRequest) String() string { return proto.CompactTextString(m) } -func (*LoadCertificateRequest) ProtoMessage() {} -func (*LoadCertificateRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_cc7c7ec7dcc94e18, []int{7} -} - -func (m *LoadCertificateRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_LoadCertificateRequest.Unmarshal(m, b) -} -func (m *LoadCertificateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_LoadCertificateRequest.Marshal(b, m, deterministic) -} -func (m *LoadCertificateRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_LoadCertificateRequest.Merge(m, src) -} -func (m *LoadCertificateRequest) XXX_Size() int { - return xxx_messageInfo_LoadCertificateRequest.Size(m) -} -func (m *LoadCertificateRequest) XXX_DiscardUnknown() { - xxx_messageInfo_LoadCertificateRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_LoadCertificateRequest proto.InternalMessageInfo +func (m *LoadCertificateRequest) Reset() { *m = LoadCertificateRequest{} } +func (m *LoadCertificateRequest) String() string { return proto.CompactTextString(m) } +func (*LoadCertificateRequest) ProtoMessage() {} +func (*LoadCertificateRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} } func (m *LoadCertificateRequest) GetCertificate() *Certificate { if m != nil { @@ -1050,13 +792,6 @@ func (m *LoadCertificateRequest) GetKeyPair() *KeyPair { return nil } -func (m *LoadCertificateRequest) GetCertificateId() string { - if m != nil { - return m.CertificateId - } - return "" -} - func (m *LoadCertificateRequest) GetCaCertificates() []*Certificate { if m != nil { return m.CaCertificates @@ -1068,136 +803,44 @@ func (m *LoadCertificateRequest) GetCaCertificates() []*Certificate { // If the target could not load the certificate, it must end the RPC stream with // a suitable RPC error about why the Certificate was not loaded. type LoadCertificateResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` } -func (m *LoadCertificateResponse) Reset() { *m = LoadCertificateResponse{} } -func (m *LoadCertificateResponse) String() string { return proto.CompactTextString(m) } -func (*LoadCertificateResponse) ProtoMessage() {} -func (*LoadCertificateResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_cc7c7ec7dcc94e18, []int{8} -} - -func (m *LoadCertificateResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_LoadCertificateResponse.Unmarshal(m, b) -} -func (m *LoadCertificateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_LoadCertificateResponse.Marshal(b, m, deterministic) -} -func (m *LoadCertificateResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_LoadCertificateResponse.Merge(m, src) -} -func (m *LoadCertificateResponse) XXX_Size() int { - return xxx_messageInfo_LoadCertificateResponse.Size(m) -} -func (m *LoadCertificateResponse) XXX_DiscardUnknown() { - xxx_messageInfo_LoadCertificateResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_LoadCertificateResponse proto.InternalMessageInfo +func (m *LoadCertificateResponse) Reset() { *m = LoadCertificateResponse{} } +func (m *LoadCertificateResponse) String() string { return proto.CompactTextString(m) } +func (*LoadCertificateResponse) ProtoMessage() {} +func (*LoadCertificateResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} } // A Finalize message is sent to the target to confirm the Rotation of // the certificate and that the certificate should not be rolled back when // the RPC concludes. The certificate must be rolled back if the target returns // an error after receiving a Finalize message. type FinalizeRequest struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *FinalizeRequest) Reset() { *m = FinalizeRequest{} } -func (m *FinalizeRequest) String() string { return proto.CompactTextString(m) } -func (*FinalizeRequest) ProtoMessage() {} -func (*FinalizeRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_cc7c7ec7dcc94e18, []int{9} -} - -func (m *FinalizeRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_FinalizeRequest.Unmarshal(m, b) -} -func (m *FinalizeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_FinalizeRequest.Marshal(b, m, deterministic) -} -func (m *FinalizeRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_FinalizeRequest.Merge(m, src) -} -func (m *FinalizeRequest) XXX_Size() int { - return xxx_messageInfo_FinalizeRequest.Size(m) -} -func (m *FinalizeRequest) XXX_DiscardUnknown() { - xxx_messageInfo_FinalizeRequest.DiscardUnknown(m) } -var xxx_messageInfo_FinalizeRequest proto.InternalMessageInfo +func (m *FinalizeRequest) Reset() { *m = FinalizeRequest{} } +func (m *FinalizeRequest) String() string { return proto.CompactTextString(m) } +func (*FinalizeRequest) ProtoMessage() {} +func (*FinalizeRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{9} } // The request to query all the certificates on the target. type GetCertificatesRequest struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetCertificatesRequest) Reset() { *m = GetCertificatesRequest{} } -func (m *GetCertificatesRequest) String() string { return proto.CompactTextString(m) } -func (*GetCertificatesRequest) ProtoMessage() {} -func (*GetCertificatesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_cc7c7ec7dcc94e18, []int{10} -} - -func (m *GetCertificatesRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetCertificatesRequest.Unmarshal(m, b) -} -func (m *GetCertificatesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetCertificatesRequest.Marshal(b, m, deterministic) -} -func (m *GetCertificatesRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetCertificatesRequest.Merge(m, src) -} -func (m *GetCertificatesRequest) XXX_Size() int { - return xxx_messageInfo_GetCertificatesRequest.Size(m) -} -func (m *GetCertificatesRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetCertificatesRequest.DiscardUnknown(m) } -var xxx_messageInfo_GetCertificatesRequest proto.InternalMessageInfo +func (m *GetCertificatesRequest) Reset() { *m = GetCertificatesRequest{} } +func (m *GetCertificatesRequest) String() string { return proto.CompactTextString(m) } +func (*GetCertificatesRequest) ProtoMessage() {} +func (*GetCertificatesRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{10} } // Response from the target about the certificates that exist on the target what // what is using them. type GetCertificatesResponse struct { - CertificateInfo []*CertificateInfo `protobuf:"bytes,1,rep,name=certificate_info,json=certificateInfo,proto3" json:"certificate_info,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + CertificateInfo []*CertificateInfo `protobuf:"bytes,1,rep,name=certificate_info,json=certificateInfo" json:"certificate_info,omitempty"` } -func (m *GetCertificatesResponse) Reset() { *m = GetCertificatesResponse{} } -func (m *GetCertificatesResponse) String() string { return proto.CompactTextString(m) } -func (*GetCertificatesResponse) ProtoMessage() {} -func (*GetCertificatesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_cc7c7ec7dcc94e18, []int{11} -} - -func (m *GetCertificatesResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetCertificatesResponse.Unmarshal(m, b) -} -func (m *GetCertificatesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetCertificatesResponse.Marshal(b, m, deterministic) -} -func (m *GetCertificatesResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetCertificatesResponse.Merge(m, src) -} -func (m *GetCertificatesResponse) XXX_Size() int { - return xxx_messageInfo_GetCertificatesResponse.Size(m) -} -func (m *GetCertificatesResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetCertificatesResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_GetCertificatesResponse proto.InternalMessageInfo +func (m *GetCertificatesResponse) Reset() { *m = GetCertificatesResponse{} } +func (m *GetCertificatesResponse) String() string { return proto.CompactTextString(m) } +func (*GetCertificatesResponse) ProtoMessage() {} +func (*GetCertificatesResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{11} } func (m *GetCertificatesResponse) GetCertificateInfo() []*CertificateInfo { if m != nil { @@ -1207,49 +850,19 @@ func (m *GetCertificatesResponse) GetCertificateInfo() []*CertificateInfo { } type CertificateInfo struct { - CertificateId string `protobuf:"bytes,1,opt,name=certificate_id,json=certificateId,proto3" json:"certificate_id,omitempty"` - Certificate *Certificate `protobuf:"bytes,2,opt,name=certificate,proto3" json:"certificate,omitempty"` + CertificateId string `protobuf:"bytes,1,opt,name=certificate_id,json=certificateId" json:"certificate_id,omitempty"` + Certificate *Certificate `protobuf:"bytes,2,opt,name=certificate" json:"certificate,omitempty"` // List of endpoints using this certificate. - Endpoints []*Endpoint `protobuf:"bytes,3,rep,name=endpoints,proto3" json:"endpoints,omitempty"` + Endpoints []*Endpoint `protobuf:"bytes,3,rep,name=endpoints" json:"endpoints,omitempty"` // System modification time when the certificate was installed/rotated in // nanoseconds since epoch. - ModificationTime int64 `protobuf:"varint,4,opt,name=modification_time,json=modificationTime,proto3" json:"modification_time,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CertificateInfo) Reset() { *m = CertificateInfo{} } -func (m *CertificateInfo) String() string { return proto.CompactTextString(m) } -func (*CertificateInfo) ProtoMessage() {} -func (*CertificateInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_cc7c7ec7dcc94e18, []int{12} + ModificationTime int64 `protobuf:"varint,4,opt,name=modification_time,json=modificationTime" json:"modification_time,omitempty"` } -func (m *CertificateInfo) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CertificateInfo.Unmarshal(m, b) -} -func (m *CertificateInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CertificateInfo.Marshal(b, m, deterministic) -} -func (m *CertificateInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_CertificateInfo.Merge(m, src) -} -func (m *CertificateInfo) XXX_Size() int { - return xxx_messageInfo_CertificateInfo.Size(m) -} -func (m *CertificateInfo) XXX_DiscardUnknown() { - xxx_messageInfo_CertificateInfo.DiscardUnknown(m) -} - -var xxx_messageInfo_CertificateInfo proto.InternalMessageInfo - -func (m *CertificateInfo) GetCertificateId() string { - if m != nil { - return m.CertificateId - } - return "" -} +func (m *CertificateInfo) Reset() { *m = CertificateInfo{} } +func (m *CertificateInfo) String() string { return proto.CompactTextString(m) } +func (*CertificateInfo) ProtoMessage() {} +func (*CertificateInfo) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{12} } func (m *CertificateInfo) GetCertificate() *Certificate { if m != nil { @@ -1265,94 +878,27 @@ func (m *CertificateInfo) GetEndpoints() []*Endpoint { return nil } -func (m *CertificateInfo) GetModificationTime() int64 { - if m != nil { - return m.ModificationTime - } - return 0 -} - type RevokeCertificatesRequest struct { // Certificates to revoke. - CertificateId []string `protobuf:"bytes,1,rep,name=certificate_id,json=certificateId,proto3" json:"certificate_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RevokeCertificatesRequest) Reset() { *m = RevokeCertificatesRequest{} } -func (m *RevokeCertificatesRequest) String() string { return proto.CompactTextString(m) } -func (*RevokeCertificatesRequest) ProtoMessage() {} -func (*RevokeCertificatesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_cc7c7ec7dcc94e18, []int{13} -} - -func (m *RevokeCertificatesRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RevokeCertificatesRequest.Unmarshal(m, b) -} -func (m *RevokeCertificatesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RevokeCertificatesRequest.Marshal(b, m, deterministic) -} -func (m *RevokeCertificatesRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RevokeCertificatesRequest.Merge(m, src) -} -func (m *RevokeCertificatesRequest) XXX_Size() int { - return xxx_messageInfo_RevokeCertificatesRequest.Size(m) -} -func (m *RevokeCertificatesRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RevokeCertificatesRequest.DiscardUnknown(m) + CertificateId []string `protobuf:"bytes,1,rep,name=certificate_id,json=certificateId" json:"certificate_id,omitempty"` } -var xxx_messageInfo_RevokeCertificatesRequest proto.InternalMessageInfo - -func (m *RevokeCertificatesRequest) GetCertificateId() []string { - if m != nil { - return m.CertificateId - } - return nil -} +func (m *RevokeCertificatesRequest) Reset() { *m = RevokeCertificatesRequest{} } +func (m *RevokeCertificatesRequest) String() string { return proto.CompactTextString(m) } +func (*RevokeCertificatesRequest) ProtoMessage() {} +func (*RevokeCertificatesRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{13} } type RevokeCertificatesResponse struct { // List of certificates successfully revoked. - RevokedCertificateId []string `protobuf:"bytes,1,rep,name=revoked_certificate_id,json=revokedCertificateId,proto3" json:"revoked_certificate_id,omitempty"` + RevokedCertificateId []string `protobuf:"bytes,1,rep,name=revoked_certificate_id,json=revokedCertificateId" json:"revoked_certificate_id,omitempty"` // List of errors why certain certificates could not be revoked. - CertificateRevocationError []*CertificateRevocationError `protobuf:"bytes,2,rep,name=certificate_revocation_error,json=certificateRevocationError,proto3" json:"certificate_revocation_error,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + CertificateRevocationError []*CertificateRevocationError `protobuf:"bytes,2,rep,name=certificate_revocation_error,json=certificateRevocationError" json:"certificate_revocation_error,omitempty"` } -func (m *RevokeCertificatesResponse) Reset() { *m = RevokeCertificatesResponse{} } -func (m *RevokeCertificatesResponse) String() string { return proto.CompactTextString(m) } -func (*RevokeCertificatesResponse) ProtoMessage() {} -func (*RevokeCertificatesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_cc7c7ec7dcc94e18, []int{14} -} - -func (m *RevokeCertificatesResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RevokeCertificatesResponse.Unmarshal(m, b) -} -func (m *RevokeCertificatesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RevokeCertificatesResponse.Marshal(b, m, deterministic) -} -func (m *RevokeCertificatesResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RevokeCertificatesResponse.Merge(m, src) -} -func (m *RevokeCertificatesResponse) XXX_Size() int { - return xxx_messageInfo_RevokeCertificatesResponse.Size(m) -} -func (m *RevokeCertificatesResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RevokeCertificatesResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RevokeCertificatesResponse proto.InternalMessageInfo - -func (m *RevokeCertificatesResponse) GetRevokedCertificateId() []string { - if m != nil { - return m.RevokedCertificateId - } - return nil -} +func (m *RevokeCertificatesResponse) Reset() { *m = RevokeCertificatesResponse{} } +func (m *RevokeCertificatesResponse) String() string { return proto.CompactTextString(m) } +func (*RevokeCertificatesResponse) ProtoMessage() {} +func (*RevokeCertificatesResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{14} } func (m *RevokeCertificatesResponse) GetCertificateRevocationError() []*CertificateRevocationError { if m != nil { @@ -1363,354 +909,92 @@ func (m *RevokeCertificatesResponse) GetCertificateRevocationError() []*Certific // An error message indicating why a certificate id could not be revoked. type CertificateRevocationError struct { - CertificateId string `protobuf:"bytes,1,opt,name=certificate_id,json=certificateId,proto3" json:"certificate_id,omitempty"` - ErrorMessage string `protobuf:"bytes,2,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CertificateRevocationError) Reset() { *m = CertificateRevocationError{} } -func (m *CertificateRevocationError) String() string { return proto.CompactTextString(m) } -func (*CertificateRevocationError) ProtoMessage() {} -func (*CertificateRevocationError) Descriptor() ([]byte, []int) { - return fileDescriptor_cc7c7ec7dcc94e18, []int{15} -} - -func (m *CertificateRevocationError) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CertificateRevocationError.Unmarshal(m, b) -} -func (m *CertificateRevocationError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CertificateRevocationError.Marshal(b, m, deterministic) -} -func (m *CertificateRevocationError) XXX_Merge(src proto.Message) { - xxx_messageInfo_CertificateRevocationError.Merge(m, src) + CertificateId string `protobuf:"bytes,1,opt,name=certificate_id,json=certificateId" json:"certificate_id,omitempty"` + ErrorMessage string `protobuf:"bytes,2,opt,name=error_message,json=errorMessage" json:"error_message,omitempty"` } -func (m *CertificateRevocationError) XXX_Size() int { - return xxx_messageInfo_CertificateRevocationError.Size(m) -} -func (m *CertificateRevocationError) XXX_DiscardUnknown() { - xxx_messageInfo_CertificateRevocationError.DiscardUnknown(m) -} - -var xxx_messageInfo_CertificateRevocationError proto.InternalMessageInfo -func (m *CertificateRevocationError) GetCertificateId() string { - if m != nil { - return m.CertificateId - } - return "" -} - -func (m *CertificateRevocationError) GetErrorMessage() string { - if m != nil { - return m.ErrorMessage - } - return "" -} +func (m *CertificateRevocationError) Reset() { *m = CertificateRevocationError{} } +func (m *CertificateRevocationError) String() string { return proto.CompactTextString(m) } +func (*CertificateRevocationError) ProtoMessage() {} +func (*CertificateRevocationError) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{15} } // A request to ask the target if it can generate key pairs. type CanGenerateCSRRequest struct { - KeyType KeyType `protobuf:"varint,1,opt,name=key_type,json=keyType,proto3,enum=gnoi.certificate.KeyType" json:"key_type,omitempty"` - CertificateType CertificateType `protobuf:"varint,2,opt,name=certificate_type,json=certificateType,proto3,enum=gnoi.certificate.CertificateType" json:"certificate_type,omitempty"` - KeySize uint32 `protobuf:"varint,3,opt,name=key_size,json=keySize,proto3" json:"key_size,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + KeyType KeyType `protobuf:"varint,1,opt,name=key_type,json=keyType,enum=gnoi.certificate.KeyType" json:"key_type,omitempty"` + CertificateType CertificateType `protobuf:"varint,2,opt,name=certificate_type,json=certificateType,enum=gnoi.certificate.CertificateType" json:"certificate_type,omitempty"` + KeySize uint32 `protobuf:"varint,3,opt,name=key_size,json=keySize" json:"key_size,omitempty"` } -func (m *CanGenerateCSRRequest) Reset() { *m = CanGenerateCSRRequest{} } -func (m *CanGenerateCSRRequest) String() string { return proto.CompactTextString(m) } -func (*CanGenerateCSRRequest) ProtoMessage() {} -func (*CanGenerateCSRRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_cc7c7ec7dcc94e18, []int{16} -} - -func (m *CanGenerateCSRRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CanGenerateCSRRequest.Unmarshal(m, b) -} -func (m *CanGenerateCSRRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CanGenerateCSRRequest.Marshal(b, m, deterministic) -} -func (m *CanGenerateCSRRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_CanGenerateCSRRequest.Merge(m, src) -} -func (m *CanGenerateCSRRequest) XXX_Size() int { - return xxx_messageInfo_CanGenerateCSRRequest.Size(m) -} -func (m *CanGenerateCSRRequest) XXX_DiscardUnknown() { - xxx_messageInfo_CanGenerateCSRRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_CanGenerateCSRRequest proto.InternalMessageInfo - -func (m *CanGenerateCSRRequest) GetKeyType() KeyType { - if m != nil { - return m.KeyType - } - return KeyType_KT_UNKNOWN -} - -func (m *CanGenerateCSRRequest) GetCertificateType() CertificateType { - if m != nil { - return m.CertificateType - } - return CertificateType_CT_UNKNOWN -} - -func (m *CanGenerateCSRRequest) GetKeySize() uint32 { - if m != nil { - return m.KeySize - } - return 0 -} +func (m *CanGenerateCSRRequest) Reset() { *m = CanGenerateCSRRequest{} } +func (m *CanGenerateCSRRequest) String() string { return proto.CompactTextString(m) } +func (*CanGenerateCSRRequest) ProtoMessage() {} +func (*CanGenerateCSRRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{16} } // Response from the target about whether it can generate a CSR with the given // parameters. type CanGenerateCSRResponse struct { - CanGenerate bool `protobuf:"varint,4,opt,name=can_generate,json=canGenerate,proto3" json:"can_generate,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + CanGenerate bool `protobuf:"varint,4,opt,name=can_generate,json=canGenerate" json:"can_generate,omitempty"` } -func (m *CanGenerateCSRResponse) Reset() { *m = CanGenerateCSRResponse{} } -func (m *CanGenerateCSRResponse) String() string { return proto.CompactTextString(m) } -func (*CanGenerateCSRResponse) ProtoMessage() {} -func (*CanGenerateCSRResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_cc7c7ec7dcc94e18, []int{17} -} - -func (m *CanGenerateCSRResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CanGenerateCSRResponse.Unmarshal(m, b) -} -func (m *CanGenerateCSRResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CanGenerateCSRResponse.Marshal(b, m, deterministic) -} -func (m *CanGenerateCSRResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_CanGenerateCSRResponse.Merge(m, src) -} -func (m *CanGenerateCSRResponse) XXX_Size() int { - return xxx_messageInfo_CanGenerateCSRResponse.Size(m) -} -func (m *CanGenerateCSRResponse) XXX_DiscardUnknown() { - xxx_messageInfo_CanGenerateCSRResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_CanGenerateCSRResponse proto.InternalMessageInfo - -func (m *CanGenerateCSRResponse) GetCanGenerate() bool { - if m != nil { - return m.CanGenerate - } - return false -} +func (m *CanGenerateCSRResponse) Reset() { *m = CanGenerateCSRResponse{} } +func (m *CanGenerateCSRResponse) String() string { return proto.CompactTextString(m) } +func (*CanGenerateCSRResponse) ProtoMessage() {} +func (*CanGenerateCSRResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{17} } // A certificate. type Certificate struct { // Type of certificate. - Type CertificateType `protobuf:"varint,1,opt,name=type,proto3,enum=gnoi.certificate.CertificateType" json:"type,omitempty"` + Type CertificateType `protobuf:"varint,1,opt,name=type,enum=gnoi.certificate.CertificateType" json:"type,omitempty"` // Actual certificate. // The exact encoding depends upon the type of certificate. // for X509, this should be a PEM encoded Certificate. - Certificate []byte `protobuf:"bytes,2,opt,name=certificate,proto3" json:"certificate,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Certificate) Reset() { *m = Certificate{} } -func (m *Certificate) String() string { return proto.CompactTextString(m) } -func (*Certificate) ProtoMessage() {} -func (*Certificate) Descriptor() ([]byte, []int) { - return fileDescriptor_cc7c7ec7dcc94e18, []int{18} -} - -func (m *Certificate) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Certificate.Unmarshal(m, b) -} -func (m *Certificate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Certificate.Marshal(b, m, deterministic) -} -func (m *Certificate) XXX_Merge(src proto.Message) { - xxx_messageInfo_Certificate.Merge(m, src) -} -func (m *Certificate) XXX_Size() int { - return xxx_messageInfo_Certificate.Size(m) -} -func (m *Certificate) XXX_DiscardUnknown() { - xxx_messageInfo_Certificate.DiscardUnknown(m) -} - -var xxx_messageInfo_Certificate proto.InternalMessageInfo - -func (m *Certificate) GetType() CertificateType { - if m != nil { - return m.Type - } - return CertificateType_CT_UNKNOWN + Certificate []byte `protobuf:"bytes,2,opt,name=certificate,proto3" json:"certificate,omitempty"` } -func (m *Certificate) GetCertificate() []byte { - if m != nil { - return m.Certificate - } - return nil -} +func (m *Certificate) Reset() { *m = Certificate{} } +func (m *Certificate) String() string { return proto.CompactTextString(m) } +func (*Certificate) ProtoMessage() {} +func (*Certificate) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{18} } // A Certificate Signing Request. type CSR struct { // Type of certificate. - Type CertificateType `protobuf:"varint,1,opt,name=type,proto3,enum=gnoi.certificate.CertificateType" json:"type,omitempty"` + Type CertificateType `protobuf:"varint,1,opt,name=type,enum=gnoi.certificate.CertificateType" json:"type,omitempty"` // Bytes representing the CSR. // The exact encoding depends upon the type of certificate requested. // for X509: This should be the PEM encoded CSR. - Csr []byte `protobuf:"bytes,2,opt,name=csr,proto3" json:"csr,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Csr []byte `protobuf:"bytes,2,opt,name=csr,proto3" json:"csr,omitempty"` } -func (m *CSR) Reset() { *m = CSR{} } -func (m *CSR) String() string { return proto.CompactTextString(m) } -func (*CSR) ProtoMessage() {} -func (*CSR) Descriptor() ([]byte, []int) { - return fileDescriptor_cc7c7ec7dcc94e18, []int{19} -} - -func (m *CSR) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CSR.Unmarshal(m, b) -} -func (m *CSR) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CSR.Marshal(b, m, deterministic) -} -func (m *CSR) XXX_Merge(src proto.Message) { - xxx_messageInfo_CSR.Merge(m, src) -} -func (m *CSR) XXX_Size() int { - return xxx_messageInfo_CSR.Size(m) -} -func (m *CSR) XXX_DiscardUnknown() { - xxx_messageInfo_CSR.DiscardUnknown(m) -} - -var xxx_messageInfo_CSR proto.InternalMessageInfo - -func (m *CSR) GetType() CertificateType { - if m != nil { - return m.Type - } - return CertificateType_CT_UNKNOWN -} - -func (m *CSR) GetCsr() []byte { - if m != nil { - return m.Csr - } - return nil -} +func (m *CSR) Reset() { *m = CSR{} } +func (m *CSR) String() string { return proto.CompactTextString(m) } +func (*CSR) ProtoMessage() {} +func (*CSR) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{19} } // A message representing a pair of public/private keys. type KeyPair struct { - PrivateKey []byte `protobuf:"bytes,1,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"` - PublicKey []byte `protobuf:"bytes,2,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + PrivateKey []byte `protobuf:"bytes,1,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"` + PublicKey []byte `protobuf:"bytes,2,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` } -func (m *KeyPair) Reset() { *m = KeyPair{} } -func (m *KeyPair) String() string { return proto.CompactTextString(m) } -func (*KeyPair) ProtoMessage() {} -func (*KeyPair) Descriptor() ([]byte, []int) { - return fileDescriptor_cc7c7ec7dcc94e18, []int{20} -} - -func (m *KeyPair) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_KeyPair.Unmarshal(m, b) -} -func (m *KeyPair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_KeyPair.Marshal(b, m, deterministic) -} -func (m *KeyPair) XXX_Merge(src proto.Message) { - xxx_messageInfo_KeyPair.Merge(m, src) -} -func (m *KeyPair) XXX_Size() int { - return xxx_messageInfo_KeyPair.Size(m) -} -func (m *KeyPair) XXX_DiscardUnknown() { - xxx_messageInfo_KeyPair.DiscardUnknown(m) -} - -var xxx_messageInfo_KeyPair proto.InternalMessageInfo - -func (m *KeyPair) GetPrivateKey() []byte { - if m != nil { - return m.PrivateKey - } - return nil -} - -func (m *KeyPair) GetPublicKey() []byte { - if m != nil { - return m.PublicKey - } - return nil -} +func (m *KeyPair) Reset() { *m = KeyPair{} } +func (m *KeyPair) String() string { return proto.CompactTextString(m) } +func (*KeyPair) ProtoMessage() {} +func (*KeyPair) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{20} } // An endpoint represents an entity on the target which can use a certificate. type Endpoint struct { - Type Endpoint_Type `protobuf:"varint,1,opt,name=type,proto3,enum=gnoi.certificate.Endpoint_Type" json:"type,omitempty"` + Type Endpoint_Type `protobuf:"varint,1,opt,name=type,enum=gnoi.certificate.Endpoint_Type" json:"type,omitempty"` // Human readable identifier for an endpoint. - Endpoint string `protobuf:"bytes,2,opt,name=endpoint,proto3" json:"endpoint,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Endpoint) Reset() { *m = Endpoint{} } -func (m *Endpoint) String() string { return proto.CompactTextString(m) } -func (*Endpoint) ProtoMessage() {} -func (*Endpoint) Descriptor() ([]byte, []int) { - return fileDescriptor_cc7c7ec7dcc94e18, []int{21} -} - -func (m *Endpoint) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Endpoint.Unmarshal(m, b) -} -func (m *Endpoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Endpoint.Marshal(b, m, deterministic) -} -func (m *Endpoint) XXX_Merge(src proto.Message) { - xxx_messageInfo_Endpoint.Merge(m, src) -} -func (m *Endpoint) XXX_Size() int { - return xxx_messageInfo_Endpoint.Size(m) -} -func (m *Endpoint) XXX_DiscardUnknown() { - xxx_messageInfo_Endpoint.DiscardUnknown(m) + Endpoint string `protobuf:"bytes,2,opt,name=endpoint" json:"endpoint,omitempty"` } -var xxx_messageInfo_Endpoint proto.InternalMessageInfo - -func (m *Endpoint) GetType() Endpoint_Type { - if m != nil { - return m.Type - } - return Endpoint_EP_UNSPECIFIED -} - -func (m *Endpoint) GetEndpoint() string { - if m != nil { - return m.Endpoint - } - return "" -} +func (m *Endpoint) Reset() { *m = Endpoint{} } +func (m *Endpoint) String() string { return proto.CompactTextString(m) } +func (*Endpoint) ProtoMessage() {} +func (*Endpoint) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{21} } func init() { - proto.RegisterEnum("gnoi.certificate.CertificateType", CertificateType_name, CertificateType_value) - proto.RegisterEnum("gnoi.certificate.KeyType", KeyType_name, KeyType_value) - proto.RegisterEnum("gnoi.certificate.Endpoint_Type", Endpoint_Type_name, Endpoint_Type_value) proto.RegisterType((*RotateCertificateRequest)(nil), "gnoi.certificate.RotateCertificateRequest") proto.RegisterType((*RotateCertificateResponse)(nil), "gnoi.certificate.RotateCertificateResponse") proto.RegisterType((*InstallCertificateRequest)(nil), "gnoi.certificate.InstallCertificateRequest") @@ -1733,91 +1017,9 @@ func init() { proto.RegisterType((*CSR)(nil), "gnoi.certificate.CSR") proto.RegisterType((*KeyPair)(nil), "gnoi.certificate.KeyPair") proto.RegisterType((*Endpoint)(nil), "gnoi.certificate.Endpoint") -} - -func init() { proto.RegisterFile("cert/cert.proto", fileDescriptor_cc7c7ec7dcc94e18) } - -var fileDescriptor_cc7c7ec7dcc94e18 = []byte{ - // 1254 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x57, 0xdd, 0x72, 0xda, 0xc6, - 0x17, 0xb7, 0x0c, 0x31, 0x70, 0xc0, 0x20, 0x6f, 0x12, 0x47, 0xf0, 0xff, 0x67, 0x92, 0xa8, 0xcd, - 0xc4, 0x49, 0x3c, 0xd8, 0xcd, 0xc7, 0x4c, 0x3f, 0x66, 0xdc, 0xb1, 0x09, 0x8e, 0x19, 0x6c, 0xc2, - 0x08, 0xdc, 0xf6, 0x4e, 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c, 0x2a, 0xcf, 0x97, 0xc2, 0xca, 0xba, - 0xdc, 0x52, 0x76, 0x15, 0x74, 0x0e, 0x99, 0xf0, 0xc3, 0x14, 0x25, 0xd8, 0x2e, 0xfc, 0x0c, 0xaf, - 0x6c, 0x2f, 0x07, 0x8e, 0x9c, 0xd4, 0x87, 0xd2, 0xdc, 0x5e, 0x42, 0x5b, 0x49, 0x1f, 0xb8, 0x49, - 0x4b, 0xad, 0xf2, 0x74, 0x09, 0x64, 0xd8, 0x6d, 0x1c, 0x50, 0x7c, 0xdc, 0x26, 0x39, 0xb7, 0x70, - 0xb2, 0x27, 0x39, 0x77, 0xcd, 0x04, 0xb7, 0xa0, 0x38, 0xdb, 0xf8, 0xe8, 0x49, 0x42, 0x43, 0x25, - 0x8d, 0xb4, 0xca, 0xd6, 0xcd, 0x40, 0x79, 0xc8, 0x41, 0xf6, 0x8f, 0xbd, 0x5b, 0xbb, 0xd5, 0xcf, - 0xaa, 0xbb, 0x67, 0x6b, 0xe2, 0xff, 0xf1, 0xcb, 0x7f, 0x03, 0x00, 0x00, 0xff, 0xff, 0x12, 0x6e, - 0xeb, 0x1d, 0x72, 0x0f, 0x00, 0x00, + proto.RegisterEnum("gnoi.certificate.CertificateType", CertificateType_name, CertificateType_value) + proto.RegisterEnum("gnoi.certificate.KeyType", KeyType_name, KeyType_value) + proto.RegisterEnum("gnoi.certificate.Endpoint_Type", Endpoint_Type_name, Endpoint_Type_value) } // Reference imports to suppress errors if they are not otherwise used. @@ -1828,9 +1030,8 @@ var _ grpc.ClientConn // is compatible with the grpc package it is being compiled against. const _ = grpc.SupportPackageIsVersion4 -// CertificateManagementClient is the client API for CertificateManagement service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +// Client API for CertificateManagement service + type CertificateManagementClient interface { // Rotate will replace an existing Certificate on the target by creating a // new CSR request and placing the new Certificate based on the CSR on the @@ -1950,7 +1151,7 @@ func NewCertificateManagementClient(cc *grpc.ClientConn) CertificateManagementCl } func (c *certificateManagementClient) Rotate(ctx context.Context, opts ...grpc.CallOption) (CertificateManagement_RotateClient, error) { - stream, err := c.cc.NewStream(ctx, &_CertificateManagement_serviceDesc.Streams[0], "/gnoi.certificate.CertificateManagement/Rotate", opts...) + stream, err := grpc.NewClientStream(ctx, &_CertificateManagement_serviceDesc.Streams[0], c.cc, "/gnoi.certificate.CertificateManagement/Rotate", opts...) if err != nil { return nil, err } @@ -1981,7 +1182,7 @@ func (x *certificateManagementRotateClient) Recv() (*RotateCertificateResponse, } func (c *certificateManagementClient) Install(ctx context.Context, opts ...grpc.CallOption) (CertificateManagement_InstallClient, error) { - stream, err := c.cc.NewStream(ctx, &_CertificateManagement_serviceDesc.Streams[1], "/gnoi.certificate.CertificateManagement/Install", opts...) + stream, err := grpc.NewClientStream(ctx, &_CertificateManagement_serviceDesc.Streams[1], c.cc, "/gnoi.certificate.CertificateManagement/Install", opts...) if err != nil { return nil, err } @@ -2013,7 +1214,7 @@ func (x *certificateManagementInstallClient) Recv() (*InstallCertificateResponse func (c *certificateManagementClient) GetCertificates(ctx context.Context, in *GetCertificatesRequest, opts ...grpc.CallOption) (*GetCertificatesResponse, error) { out := new(GetCertificatesResponse) - err := c.cc.Invoke(ctx, "/gnoi.certificate.CertificateManagement/GetCertificates", in, out, opts...) + err := grpc.Invoke(ctx, "/gnoi.certificate.CertificateManagement/GetCertificates", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -2022,7 +1223,7 @@ func (c *certificateManagementClient) GetCertificates(ctx context.Context, in *G func (c *certificateManagementClient) RevokeCertificates(ctx context.Context, in *RevokeCertificatesRequest, opts ...grpc.CallOption) (*RevokeCertificatesResponse, error) { out := new(RevokeCertificatesResponse) - err := c.cc.Invoke(ctx, "/gnoi.certificate.CertificateManagement/RevokeCertificates", in, out, opts...) + err := grpc.Invoke(ctx, "/gnoi.certificate.CertificateManagement/RevokeCertificates", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -2031,14 +1232,15 @@ func (c *certificateManagementClient) RevokeCertificates(ctx context.Context, in func (c *certificateManagementClient) CanGenerateCSR(ctx context.Context, in *CanGenerateCSRRequest, opts ...grpc.CallOption) (*CanGenerateCSRResponse, error) { out := new(CanGenerateCSRResponse) - err := c.cc.Invoke(ctx, "/gnoi.certificate.CertificateManagement/CanGenerateCSR", in, out, opts...) + err := grpc.Invoke(ctx, "/gnoi.certificate.CertificateManagement/CanGenerateCSR", in, out, c.cc, opts...) if err != nil { return nil, err } return out, nil } -// CertificateManagementServer is the server API for CertificateManagement service. +// Server API for CertificateManagement service + type CertificateManagementServer interface { // Rotate will replace an existing Certificate on the target by creating a // new CSR request and placing the new Certificate based on the CSR on the @@ -2292,3 +1494,86 @@ var _CertificateManagement_serviceDesc = grpc.ServiceDesc{ }, Metadata: "cert/cert.proto", } + +func init() { proto.RegisterFile("cert/cert.proto", fileDescriptor0) } + +var fileDescriptor0 = []byte{ + // 1232 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xd4, 0x57, 0xdd, 0x72, 0xda, 0x46, + 0x14, 0xb6, 0x0c, 0x36, 0x70, 0xc0, 0x20, 0xaf, 0x63, 0x47, 0xd0, 0x66, 0xe2, 0xa8, 0xf5, 0xc4, + 0x71, 0x32, 0xd8, 0xcd, 0xcf, 0x4c, 0x7f, 0x66, 0xdc, 0xb1, 0x09, 0x8e, 0x19, 0x6c, 0xc2, 0x2c, + 0xb8, 0xed, 0x9d, 0x66, 0x23, 0x16, 0xb2, 0x63, 0xb4, 0xa2, 0x92, 0x9c, 0x0e, 0x7e, 0x88, 0xbe, + 0x40, 0x6f, 0x7a, 0xd5, 0x47, 0xe8, 0x03, 0xf4, 0x09, 0x3a, 0x9d, 0x4e, 0xaf, 0xfb, 0x24, 0x9d, + 0x8e, 0x76, 0x05, 0x08, 0x24, 0x6c, 0x92, 0xbb, 0xdc, 0x30, 0xda,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ba, 0xf1, 0xd1, 0xc3, 0x98, 0x86, 0x8a, 0x1b, 0x69, 0xa5, 0xdd, 0xdb, 0x81, + 0xf2, 0x25, 0xc7, 0xe9, 0xbf, 0x0e, 0x57, 0x0e, 0xca, 0x5f, 0x94, 0x0f, 0xde, 0xac, 0x8a, 0xff, + 0xc7, 0xcf, 0xfe, 0x0f, 0x00, 0x00, 0xff, 0xff, 0xad, 0x88, 0xe4, 0x40, 0x57, 0x0f, 0x00, 0x00, +} diff --git a/cert/cert.proto b/cert/cert.proto index bf10bf67..760ff7e0 100644 --- a/cert/cert.proto +++ b/cert/cert.proto @@ -18,7 +18,7 @@ // rotation. syntax = "proto3"; -import "github.com/openconfig/gnoi/types/types.proto"; +import "types/types.proto"; package gnoi.certificate; diff --git a/common/common.pb.go b/common/common.pb.go index 42d0364e..285ce5cf 100644 --- a/common/common.pb.go +++ b/common/common.pb.go @@ -1,14 +1,22 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. +// Code generated by protoc-gen-go. // source: common/common.proto +// DO NOT EDIT! +/* +Package gnoi is a generated protocol buffer package. + +It is generated from these files: + common/common.proto + +It has these top-level messages: + RemoteDownload +*/ package gnoi -import ( - fmt "fmt" - proto "github.com/golang/protobuf/proto" - types "github.com/openconfig/gnoi/types" - math "math" -) +import proto "github.com/golang/protobuf/proto" +import fmt "fmt" +import math "math" +import gnoi1 "types" // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal @@ -38,7 +46,6 @@ var RemoteDownload_Protocol_name = map[int32]string{ 3: "HTTPS", 4: "SCP", } - var RemoteDownload_Protocol_value = map[string]int32{ "UNKNOWN": 0, "SFTP": 1, @@ -50,10 +57,7 @@ var RemoteDownload_Protocol_value = map[string]int32{ func (x RemoteDownload_Protocol) String() string { return proto.EnumName(RemoteDownload_Protocol_name, int32(x)) } - -func (RemoteDownload_Protocol) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8f954d82c0b891f6, []int{0, 0} -} +func (RemoteDownload_Protocol) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0, 0} } // RemoteDownload defines the details for a device to initiate a file transfer // from or to a remote location. @@ -62,54 +66,17 @@ type RemoteDownload struct { // For HTTP(S), this will be the URL (i.e. foo.com/file.tbz2). // For SFTP and SCP, this will be the address:/path/to/file // (i.e. host.foo.com:/bar/baz). - Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` - Protocol RemoteDownload_Protocol `protobuf:"varint,2,opt,name=protocol,proto3,enum=gnoi.RemoteDownload_Protocol" json:"protocol,omitempty"` - Credentials *types.Credentials `protobuf:"bytes,3,opt,name=credentials,proto3" json:"credentials,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RemoteDownload) Reset() { *m = RemoteDownload{} } -func (m *RemoteDownload) String() string { return proto.CompactTextString(m) } -func (*RemoteDownload) ProtoMessage() {} -func (*RemoteDownload) Descriptor() ([]byte, []int) { - return fileDescriptor_8f954d82c0b891f6, []int{0} -} - -func (m *RemoteDownload) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RemoteDownload.Unmarshal(m, b) -} -func (m *RemoteDownload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RemoteDownload.Marshal(b, m, deterministic) -} -func (m *RemoteDownload) XXX_Merge(src proto.Message) { - xxx_messageInfo_RemoteDownload.Merge(m, src) -} -func (m *RemoteDownload) XXX_Size() int { - return xxx_messageInfo_RemoteDownload.Size(m) -} -func (m *RemoteDownload) XXX_DiscardUnknown() { - xxx_messageInfo_RemoteDownload.DiscardUnknown(m) -} - -var xxx_messageInfo_RemoteDownload proto.InternalMessageInfo - -func (m *RemoteDownload) GetPath() string { - if m != nil { - return m.Path - } - return "" + Path string `protobuf:"bytes,1,opt,name=path" json:"path,omitempty"` + Protocol RemoteDownload_Protocol `protobuf:"varint,2,opt,name=protocol,enum=gnoi.RemoteDownload_Protocol" json:"protocol,omitempty"` + Credentials *gnoi1.Credentials `protobuf:"bytes,3,opt,name=credentials" json:"credentials,omitempty"` } -func (m *RemoteDownload) GetProtocol() RemoteDownload_Protocol { - if m != nil { - return m.Protocol - } - return RemoteDownload_UNKNOWN -} +func (m *RemoteDownload) Reset() { *m = RemoteDownload{} } +func (m *RemoteDownload) String() string { return proto.CompactTextString(m) } +func (*RemoteDownload) ProtoMessage() {} +func (*RemoteDownload) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } -func (m *RemoteDownload) GetCredentials() *types.Credentials { +func (m *RemoteDownload) GetCredentials() *gnoi1.Credentials { if m != nil { return m.Credentials } @@ -117,27 +84,26 @@ func (m *RemoteDownload) GetCredentials() *types.Credentials { } func init() { - proto.RegisterEnum("gnoi.RemoteDownload_Protocol", RemoteDownload_Protocol_name, RemoteDownload_Protocol_value) proto.RegisterType((*RemoteDownload)(nil), "gnoi.RemoteDownload") + proto.RegisterEnum("gnoi.RemoteDownload_Protocol", RemoteDownload_Protocol_name, RemoteDownload_Protocol_value) } -func init() { proto.RegisterFile("common/common.proto", fileDescriptor_8f954d82c0b891f6) } +func init() { proto.RegisterFile("common/common.proto", fileDescriptor0) } -var fileDescriptor_8f954d82c0b891f6 = []byte{ - // 239 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x4e, 0xce, 0xcf, 0xcd, +var fileDescriptor0 = []byte{ + // 215 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xe2, 0x12, 0x4e, 0xce, 0xcf, 0xcd, 0xcd, 0xcf, 0xd3, 0x87, 0x50, 0x7a, 0x05, 0x45, 0xf9, 0x25, 0xf9, 0x42, 0x2c, 0xe9, 0x79, 0xf9, - 0x99, 0x52, 0x3a, 0xe9, 0x99, 0x25, 0x19, 0xa5, 0x49, 0x7a, 0xc9, 0xf9, 0xb9, 0xfa, 0xf9, 0x05, - 0xa9, 0x79, 0xc9, 0xf9, 0x79, 0x69, 0x99, 0xe9, 0xfa, 0x20, 0x39, 0xfd, 0x92, 0xca, 0x82, 0xd4, - 0x62, 0x08, 0x09, 0xd1, 0xa3, 0x74, 0x95, 0x91, 0x8b, 0x2f, 0x28, 0x35, 0x37, 0xbf, 0x24, 0xd5, - 0x25, 0xbf, 0x3c, 0x2f, 0x27, 0x3f, 0x31, 0x45, 0x48, 0x88, 0x8b, 0xa5, 0x20, 0xb1, 0x24, 0x43, - 0x82, 0x51, 0x81, 0x51, 0x83, 0x33, 0x08, 0xcc, 0x16, 0xb2, 0xe4, 0xe2, 0x00, 0xab, 0x4f, 0xce, - 0xcf, 0x91, 0x60, 0x52, 0x60, 0xd4, 0xe0, 0x33, 0x92, 0xd5, 0x03, 0x99, 0xa8, 0x87, 0xaa, 0x57, - 0x2f, 0x00, 0xaa, 0x28, 0x08, 0xae, 0x5c, 0xc8, 0x98, 0x8b, 0x3b, 0xb9, 0x28, 0x35, 0x25, 0x35, - 0xaf, 0x24, 0x33, 0x31, 0xa7, 0x58, 0x82, 0x59, 0x81, 0x51, 0x83, 0xdb, 0x48, 0x10, 0xa2, 0xdb, - 0x19, 0x21, 0x11, 0x84, 0xac, 0x4a, 0xc9, 0x9e, 0x8b, 0x03, 0x66, 0x94, 0x10, 0x37, 0x17, 0x7b, - 0xa8, 0x9f, 0xb7, 0x9f, 0x7f, 0xb8, 0x9f, 0x00, 0x83, 0x10, 0x07, 0x17, 0x4b, 0xb0, 0x5b, 0x48, - 0x80, 0x00, 0x23, 0x88, 0xe5, 0x11, 0x12, 0x12, 0x20, 0xc0, 0x24, 0xc4, 0xc9, 0xc5, 0x0a, 0x62, - 0x05, 0x0b, 0x30, 0x0b, 0xb1, 0x73, 0x31, 0x07, 0x3b, 0x07, 0x08, 0xb0, 0x24, 0xb1, 0x81, 0xed, - 0x37, 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, 0x35, 0xc2, 0x5a, 0xe6, 0x29, 0x01, 0x00, 0x00, + 0x99, 0x52, 0x82, 0x25, 0x95, 0x05, 0xa9, 0xc5, 0xfa, 0x60, 0x12, 0x22, 0xa1, 0x74, 0x95, 0x91, + 0x8b, 0x2f, 0x28, 0x35, 0x37, 0xbf, 0x24, 0xd5, 0x25, 0xbf, 0x3c, 0x2f, 0x27, 0x3f, 0x31, 0x45, + 0x48, 0x88, 0x8b, 0xa5, 0x20, 0xb1, 0x24, 0x43, 0x82, 0x51, 0x81, 0x51, 0x83, 0x33, 0x08, 0xcc, + 0x16, 0xb2, 0xe4, 0xe2, 0x00, 0xab, 0x4f, 0xce, 0xcf, 0x91, 0x60, 0x52, 0x60, 0xd4, 0xe0, 0x33, + 0x92, 0xd5, 0x03, 0x19, 0xa9, 0x87, 0xaa, 0x57, 0x2f, 0x00, 0xaa, 0x28, 0x08, 0xae, 0x5c, 0xc8, + 0x98, 0x8b, 0x3b, 0xb9, 0x28, 0x35, 0x25, 0x35, 0xaf, 0x24, 0x33, 0x31, 0xa7, 0x58, 0x82, 0x59, + 0x81, 0x51, 0x83, 0xdb, 0x48, 0x10, 0xa2, 0xdb, 0x19, 0x21, 0x11, 0x84, 0xac, 0x4a, 0xc9, 0x9e, + 0x8b, 0x03, 0x66, 0x94, 0x10, 0x37, 0x17, 0x7b, 0xa8, 0x9f, 0xb7, 0x9f, 0x7f, 0xb8, 0x9f, 0x00, + 0x83, 0x10, 0x07, 0x17, 0x4b, 0xb0, 0x5b, 0x48, 0x80, 0x00, 0x23, 0x88, 0xe5, 0x11, 0x12, 0x12, + 0x20, 0xc0, 0x24, 0xc4, 0xc9, 0xc5, 0x0a, 0x62, 0x05, 0x0b, 0x30, 0x0b, 0xb1, 0x73, 0x31, 0x07, + 0x3b, 0x07, 0x08, 0xb0, 0x24, 0xb1, 0x81, 0xed, 0x37, 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, 0x79, + 0xb3, 0xda, 0x64, 0x0e, 0x01, 0x00, 0x00, } diff --git a/common/common.proto b/common/common.proto index b5ade89e..29da4129 100644 --- a/common/common.proto +++ b/common/common.proto @@ -18,7 +18,7 @@ syntax = "proto3"; package gnoi; -import "github.com/openconfig/gnoi/types/types.proto"; +import "types/types.proto"; // RemoteDownload defines the details for a device to initiate a file transfer // from or to a remote location. diff --git a/diag/BUILD.bazel b/diag/BUILD.bazel new file mode 100644 index 00000000..07deb8e5 --- /dev/null +++ b/diag/BUILD.bazel @@ -0,0 +1,14 @@ +load("@io_bazel_rules_go//proto:go_proto_library.bzl", "go_proto_library") + +proto_library( + name = "diag_proto", + srcs = ["diag.proto"], +) + +go_proto_library( + name = "go_default_library", + srcs = ["diag.proto"], + visibility = ["//visibility:public"], + rules_go_repo_only_for_internal_use = "@", + has_services = 1, +) diff --git a/diag/diag.pb.go b/diag/diag.pb.go index ced68fb5..f0c6bfdb 100644 --- a/diag/diag.pb.go +++ b/diag/diag.pb.go @@ -1,15 +1,31 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. +// Code generated by protoc-gen-go. // source: diag/diag.proto - +// DO NOT EDIT! + +/* +Package gnoi_diag is a generated protocol buffer package. + +It is generated from these files: + diag/diag.proto + +It has these top-level messages: + StartBERTRequest + StartBERTResponse + StopBERTRequest + StopBERTResponse + GetBERTResultRequest + GetBERTResultResponse +*/ package gnoi_diag +import proto "github.com/golang/protobuf/proto" +import fmt "fmt" +import math "math" +import gnoi "types" + import ( - fmt "fmt" - proto "github.com/golang/protobuf/proto" - types "github.com/openconfig/gnoi/types" context "golang.org/x/net/context" grpc "google.golang.org/grpc" - math "math" ) // Reference imports to suppress errors if they are not otherwise used. @@ -45,7 +61,6 @@ var PrbsPolynomial_name = map[int32]string{ 5: "PRBS_POLYNOMIAL_PRBS23", 6: "PRBS_POLYNOMIAL_PRBS31", } - var PrbsPolynomial_value = map[string]int32{ "PRBS_POLYNOMIAL_UNKNOWN": 0, "PRBS_POLYNOMIAL_PRBS7": 1, @@ -59,10 +74,7 @@ var PrbsPolynomial_value = map[string]int32{ func (x PrbsPolynomial) String() string { return proto.EnumName(PrbsPolynomial_name, int32(x)) } - -func (PrbsPolynomial) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_c2372dae051d1d7a, []int{0} -} +func (PrbsPolynomial) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } // Status returned for each per-port BERT request. type BertStatus int32 @@ -119,7 +131,6 @@ var BertStatus_name = map[int32]string{ 12: "BERT_STATUS_PEER_LOCK_LOST", 13: "BERT_STATUS_INTERNAL_ERROR", } - var BertStatus_value = map[string]int32{ "BERT_STATUS_UNKNOWN": 0, "BERT_STATUS_OK": 1, @@ -140,56 +151,23 @@ var BertStatus_value = map[string]int32{ func (x BertStatus) String() string { return proto.EnumName(BertStatus_name, int32(x)) } - -func (BertStatus) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_c2372dae051d1d7a, []int{1} -} +func (BertStatus) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } type StartBERTRequest struct { // Unique BERT operation ID specified by the client. Multiple BERTs run on // different ports can have the same BERT operation ID. This ID will be used // later to stop the operation and/or get its results. // TODO: Investigate whether we can use numerical IDs instead. - BertOperationId string `protobuf:"bytes,1,opt,name=bert_operation_id,json=bertOperationId,proto3" json:"bert_operation_id,omitempty"` + BertOperationId string `protobuf:"bytes,1,opt,name=bert_operation_id,json=bertOperationId" json:"bert_operation_id,omitempty"` // All the per-port BERTs that are considered one BERT operation and have the // same BERT operation ID. - PerPortRequests []*StartBERTRequest_PerPortRequest `protobuf:"bytes,2,rep,name=per_port_requests,json=perPortRequests,proto3" json:"per_port_requests,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *StartBERTRequest) Reset() { *m = StartBERTRequest{} } -func (m *StartBERTRequest) String() string { return proto.CompactTextString(m) } -func (*StartBERTRequest) ProtoMessage() {} -func (*StartBERTRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c2372dae051d1d7a, []int{0} -} - -func (m *StartBERTRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_StartBERTRequest.Unmarshal(m, b) + PerPortRequests []*StartBERTRequest_PerPortRequest `protobuf:"bytes,2,rep,name=per_port_requests,json=perPortRequests" json:"per_port_requests,omitempty"` } -func (m *StartBERTRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_StartBERTRequest.Marshal(b, m, deterministic) -} -func (m *StartBERTRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_StartBERTRequest.Merge(m, src) -} -func (m *StartBERTRequest) XXX_Size() int { - return xxx_messageInfo_StartBERTRequest.Size(m) -} -func (m *StartBERTRequest) XXX_DiscardUnknown() { - xxx_messageInfo_StartBERTRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_StartBERTRequest proto.InternalMessageInfo -func (m *StartBERTRequest) GetBertOperationId() string { - if m != nil { - return m.BertOperationId - } - return "" -} +func (m *StartBERTRequest) Reset() { *m = StartBERTRequest{} } +func (m *StartBERTRequest) String() string { return proto.CompactTextString(m) } +func (*StartBERTRequest) ProtoMessage() {} +func (*StartBERTRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } func (m *StartBERTRequest) GetPerPortRequests() []*StartBERTRequest_PerPortRequest { if m != nil { @@ -201,103 +179,38 @@ func (m *StartBERTRequest) GetPerPortRequests() []*StartBERTRequest_PerPortReque // Per port BERT start requests. type StartBERTRequest_PerPortRequest struct { // Path to the interface corresponding to the port. - Interface *types.Path `protobuf:"bytes,1,opt,name=interface,proto3" json:"interface,omitempty"` + Interface *gnoi.Path `protobuf:"bytes,1,opt,name=interface" json:"interface,omitempty"` // The selected PRBS generating polynomial for BERT. - PrbsPolynomial PrbsPolynomial `protobuf:"varint,2,opt,name=prbs_polynomial,json=prbsPolynomial,proto3,enum=gnoi.diag.PrbsPolynomial" json:"prbs_polynomial,omitempty"` + PrbsPolynomial PrbsPolynomial `protobuf:"varint,2,opt,name=prbs_polynomial,json=prbsPolynomial,enum=gnoi.diag.PrbsPolynomial" json:"prbs_polynomial,omitempty"` // BERT duration in seconds. Must be a positive number. - TestDurationInSecs uint32 `protobuf:"varint,3,opt,name=test_duration_in_secs,json=testDurationInSecs,proto3" json:"test_duration_in_secs,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + TestDurationInSecs uint32 `protobuf:"varint,3,opt,name=test_duration_in_secs,json=testDurationInSecs" json:"test_duration_in_secs,omitempty"` } func (m *StartBERTRequest_PerPortRequest) Reset() { *m = StartBERTRequest_PerPortRequest{} } func (m *StartBERTRequest_PerPortRequest) String() string { return proto.CompactTextString(m) } func (*StartBERTRequest_PerPortRequest) ProtoMessage() {} func (*StartBERTRequest_PerPortRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c2372dae051d1d7a, []int{0, 0} + return fileDescriptor0, []int{0, 0} } -func (m *StartBERTRequest_PerPortRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_StartBERTRequest_PerPortRequest.Unmarshal(m, b) -} -func (m *StartBERTRequest_PerPortRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_StartBERTRequest_PerPortRequest.Marshal(b, m, deterministic) -} -func (m *StartBERTRequest_PerPortRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_StartBERTRequest_PerPortRequest.Merge(m, src) -} -func (m *StartBERTRequest_PerPortRequest) XXX_Size() int { - return xxx_messageInfo_StartBERTRequest_PerPortRequest.Size(m) -} -func (m *StartBERTRequest_PerPortRequest) XXX_DiscardUnknown() { - xxx_messageInfo_StartBERTRequest_PerPortRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_StartBERTRequest_PerPortRequest proto.InternalMessageInfo - -func (m *StartBERTRequest_PerPortRequest) GetInterface() *types.Path { +func (m *StartBERTRequest_PerPortRequest) GetInterface() *gnoi.Path { if m != nil { return m.Interface } return nil } -func (m *StartBERTRequest_PerPortRequest) GetPrbsPolynomial() PrbsPolynomial { - if m != nil { - return m.PrbsPolynomial - } - return PrbsPolynomial_PRBS_POLYNOMIAL_UNKNOWN -} - -func (m *StartBERTRequest_PerPortRequest) GetTestDurationInSecs() uint32 { - if m != nil { - return m.TestDurationInSecs - } - return 0 -} - type StartBERTResponse struct { // The same BERT operation ID given by the request. - BertOperationId string `protobuf:"bytes,1,opt,name=bert_operation_id,json=bertOperationId,proto3" json:"bert_operation_id,omitempty"` + BertOperationId string `protobuf:"bytes,1,opt,name=bert_operation_id,json=bertOperationId" json:"bert_operation_id,omitempty"` // Captures the results of starting BERT on a per-port basis. - PerPortResponses []*StartBERTResponse_PerPortResponse `protobuf:"bytes,2,rep,name=per_port_responses,json=perPortResponses,proto3" json:"per_port_responses,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + PerPortResponses []*StartBERTResponse_PerPortResponse `protobuf:"bytes,2,rep,name=per_port_responses,json=perPortResponses" json:"per_port_responses,omitempty"` } -func (m *StartBERTResponse) Reset() { *m = StartBERTResponse{} } -func (m *StartBERTResponse) String() string { return proto.CompactTextString(m) } -func (*StartBERTResponse) ProtoMessage() {} -func (*StartBERTResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c2372dae051d1d7a, []int{1} -} - -func (m *StartBERTResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_StartBERTResponse.Unmarshal(m, b) -} -func (m *StartBERTResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_StartBERTResponse.Marshal(b, m, deterministic) -} -func (m *StartBERTResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_StartBERTResponse.Merge(m, src) -} -func (m *StartBERTResponse) XXX_Size() int { - return xxx_messageInfo_StartBERTResponse.Size(m) -} -func (m *StartBERTResponse) XXX_DiscardUnknown() { - xxx_messageInfo_StartBERTResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_StartBERTResponse proto.InternalMessageInfo - -func (m *StartBERTResponse) GetBertOperationId() string { - if m != nil { - return m.BertOperationId - } - return "" -} +func (m *StartBERTResponse) Reset() { *m = StartBERTResponse{} } +func (m *StartBERTResponse) String() string { return proto.CompactTextString(m) } +func (*StartBERTResponse) ProtoMessage() {} +func (*StartBERTResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } func (m *StartBERTResponse) GetPerPortResponses() []*StartBERTResponse_PerPortResponse { if m != nil { @@ -309,95 +222,37 @@ func (m *StartBERTResponse) GetPerPortResponses() []*StartBERTResponse_PerPortRe // Per-port BERT start responses. type StartBERTResponse_PerPortResponse struct { // Path to the interface corresponding to the port. - Interface *types.Path `protobuf:"bytes,1,opt,name=interface,proto3" json:"interface,omitempty"` + Interface *gnoi.Path `protobuf:"bytes,1,opt,name=interface" json:"interface,omitempty"` // BERT start status for this port. - Status BertStatus `protobuf:"varint,2,opt,name=status,proto3,enum=gnoi.diag.BertStatus" json:"status,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Status BertStatus `protobuf:"varint,2,opt,name=status,enum=gnoi.diag.BertStatus" json:"status,omitempty"` } func (m *StartBERTResponse_PerPortResponse) Reset() { *m = StartBERTResponse_PerPortResponse{} } func (m *StartBERTResponse_PerPortResponse) String() string { return proto.CompactTextString(m) } func (*StartBERTResponse_PerPortResponse) ProtoMessage() {} func (*StartBERTResponse_PerPortResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c2372dae051d1d7a, []int{1, 0} + return fileDescriptor0, []int{1, 0} } -func (m *StartBERTResponse_PerPortResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_StartBERTResponse_PerPortResponse.Unmarshal(m, b) -} -func (m *StartBERTResponse_PerPortResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_StartBERTResponse_PerPortResponse.Marshal(b, m, deterministic) -} -func (m *StartBERTResponse_PerPortResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_StartBERTResponse_PerPortResponse.Merge(m, src) -} -func (m *StartBERTResponse_PerPortResponse) XXX_Size() int { - return xxx_messageInfo_StartBERTResponse_PerPortResponse.Size(m) -} -func (m *StartBERTResponse_PerPortResponse) XXX_DiscardUnknown() { - xxx_messageInfo_StartBERTResponse_PerPortResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_StartBERTResponse_PerPortResponse proto.InternalMessageInfo - -func (m *StartBERTResponse_PerPortResponse) GetInterface() *types.Path { +func (m *StartBERTResponse_PerPortResponse) GetInterface() *gnoi.Path { if m != nil { return m.Interface } return nil } -func (m *StartBERTResponse_PerPortResponse) GetStatus() BertStatus { - if m != nil { - return m.Status - } - return BertStatus_BERT_STATUS_UNKNOWN -} - type StopBERTRequest struct { // The same BERT operation ID given when BERT operation was started. - BertOperationId string `protobuf:"bytes,1,opt,name=bert_operation_id,json=bertOperationId,proto3" json:"bert_operation_id,omitempty"` + BertOperationId string `protobuf:"bytes,1,opt,name=bert_operation_id,json=bertOperationId" json:"bert_operation_id,omitempty"` // All the per-port BERTs that need to be stopped. Must be part of the BERT // operation specified by the `bert_operation_id` above. - PerPortRequests []*StopBERTRequest_PerPortRequest `protobuf:"bytes,2,rep,name=per_port_requests,json=perPortRequests,proto3" json:"per_port_requests,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + PerPortRequests []*StopBERTRequest_PerPortRequest `protobuf:"bytes,2,rep,name=per_port_requests,json=perPortRequests" json:"per_port_requests,omitempty"` } -func (m *StopBERTRequest) Reset() { *m = StopBERTRequest{} } -func (m *StopBERTRequest) String() string { return proto.CompactTextString(m) } -func (*StopBERTRequest) ProtoMessage() {} -func (*StopBERTRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c2372dae051d1d7a, []int{2} -} - -func (m *StopBERTRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_StopBERTRequest.Unmarshal(m, b) -} -func (m *StopBERTRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_StopBERTRequest.Marshal(b, m, deterministic) -} -func (m *StopBERTRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_StopBERTRequest.Merge(m, src) -} -func (m *StopBERTRequest) XXX_Size() int { - return xxx_messageInfo_StopBERTRequest.Size(m) -} -func (m *StopBERTRequest) XXX_DiscardUnknown() { - xxx_messageInfo_StopBERTRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_StopBERTRequest proto.InternalMessageInfo - -func (m *StopBERTRequest) GetBertOperationId() string { - if m != nil { - return m.BertOperationId - } - return "" -} +func (m *StopBERTRequest) Reset() { *m = StopBERTRequest{} } +func (m *StopBERTRequest) String() string { return proto.CompactTextString(m) } +func (*StopBERTRequest) ProtoMessage() {} +func (*StopBERTRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} } func (m *StopBERTRequest) GetPerPortRequests() []*StopBERTRequest_PerPortRequest { if m != nil { @@ -409,38 +264,17 @@ func (m *StopBERTRequest) GetPerPortRequests() []*StopBERTRequest_PerPortRequest // Per-port BERT stop requests. type StopBERTRequest_PerPortRequest struct { // Path to the interface corresponding to the port. - Interface *types.Path `protobuf:"bytes,1,opt,name=interface,proto3" json:"interface,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Interface *gnoi.Path `protobuf:"bytes,1,opt,name=interface" json:"interface,omitempty"` } func (m *StopBERTRequest_PerPortRequest) Reset() { *m = StopBERTRequest_PerPortRequest{} } func (m *StopBERTRequest_PerPortRequest) String() string { return proto.CompactTextString(m) } func (*StopBERTRequest_PerPortRequest) ProtoMessage() {} func (*StopBERTRequest_PerPortRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c2372dae051d1d7a, []int{2, 0} + return fileDescriptor0, []int{2, 0} } -func (m *StopBERTRequest_PerPortRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_StopBERTRequest_PerPortRequest.Unmarshal(m, b) -} -func (m *StopBERTRequest_PerPortRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_StopBERTRequest_PerPortRequest.Marshal(b, m, deterministic) -} -func (m *StopBERTRequest_PerPortRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_StopBERTRequest_PerPortRequest.Merge(m, src) -} -func (m *StopBERTRequest_PerPortRequest) XXX_Size() int { - return xxx_messageInfo_StopBERTRequest_PerPortRequest.Size(m) -} -func (m *StopBERTRequest_PerPortRequest) XXX_DiscardUnknown() { - xxx_messageInfo_StopBERTRequest_PerPortRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_StopBERTRequest_PerPortRequest proto.InternalMessageInfo - -func (m *StopBERTRequest_PerPortRequest) GetInterface() *types.Path { +func (m *StopBERTRequest_PerPortRequest) GetInterface() *gnoi.Path { if m != nil { return m.Interface } @@ -449,45 +283,15 @@ func (m *StopBERTRequest_PerPortRequest) GetInterface() *types.Path { type StopBERTResponse struct { // The same BERT operation ID given by the request. - BertOperationId string `protobuf:"bytes,1,opt,name=bert_operation_id,json=bertOperationId,proto3" json:"bert_operation_id,omitempty"` + BertOperationId string `protobuf:"bytes,1,opt,name=bert_operation_id,json=bertOperationId" json:"bert_operation_id,omitempty"` // Captures the results of stopping BERT on a per-port basis. - PerPortResponses []*StopBERTResponse_PerPortResponse `protobuf:"bytes,2,rep,name=per_port_responses,json=perPortResponses,proto3" json:"per_port_responses,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + PerPortResponses []*StopBERTResponse_PerPortResponse `protobuf:"bytes,2,rep,name=per_port_responses,json=perPortResponses" json:"per_port_responses,omitempty"` } -func (m *StopBERTResponse) Reset() { *m = StopBERTResponse{} } -func (m *StopBERTResponse) String() string { return proto.CompactTextString(m) } -func (*StopBERTResponse) ProtoMessage() {} -func (*StopBERTResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c2372dae051d1d7a, []int{3} -} - -func (m *StopBERTResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_StopBERTResponse.Unmarshal(m, b) -} -func (m *StopBERTResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_StopBERTResponse.Marshal(b, m, deterministic) -} -func (m *StopBERTResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_StopBERTResponse.Merge(m, src) -} -func (m *StopBERTResponse) XXX_Size() int { - return xxx_messageInfo_StopBERTResponse.Size(m) -} -func (m *StopBERTResponse) XXX_DiscardUnknown() { - xxx_messageInfo_StopBERTResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_StopBERTResponse proto.InternalMessageInfo - -func (m *StopBERTResponse) GetBertOperationId() string { - if m != nil { - return m.BertOperationId - } - return "" -} +func (m *StopBERTResponse) Reset() { *m = StopBERTResponse{} } +func (m *StopBERTResponse) String() string { return proto.CompactTextString(m) } +func (*StopBERTResponse) ProtoMessage() {} +func (*StopBERTResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} } func (m *StopBERTResponse) GetPerPortResponses() []*StopBERTResponse_PerPortResponse { if m != nil { @@ -499,102 +303,44 @@ func (m *StopBERTResponse) GetPerPortResponses() []*StopBERTResponse_PerPortResp // Per-port BERT stop responses. type StopBERTResponse_PerPortResponse struct { // Path to the interface corresponding to the port. - Interface *types.Path `protobuf:"bytes,1,opt,name=interface,proto3" json:"interface,omitempty"` + Interface *gnoi.Path `protobuf:"bytes,1,opt,name=interface" json:"interface,omitempty"` // BERT stop status for this port. - Status BertStatus `protobuf:"varint,2,opt,name=status,proto3,enum=gnoi.diag.BertStatus" json:"status,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Status BertStatus `protobuf:"varint,2,opt,name=status,enum=gnoi.diag.BertStatus" json:"status,omitempty"` } func (m *StopBERTResponse_PerPortResponse) Reset() { *m = StopBERTResponse_PerPortResponse{} } func (m *StopBERTResponse_PerPortResponse) String() string { return proto.CompactTextString(m) } func (*StopBERTResponse_PerPortResponse) ProtoMessage() {} func (*StopBERTResponse_PerPortResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c2372dae051d1d7a, []int{3, 0} + return fileDescriptor0, []int{3, 0} } -func (m *StopBERTResponse_PerPortResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_StopBERTResponse_PerPortResponse.Unmarshal(m, b) -} -func (m *StopBERTResponse_PerPortResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_StopBERTResponse_PerPortResponse.Marshal(b, m, deterministic) -} -func (m *StopBERTResponse_PerPortResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_StopBERTResponse_PerPortResponse.Merge(m, src) -} -func (m *StopBERTResponse_PerPortResponse) XXX_Size() int { - return xxx_messageInfo_StopBERTResponse_PerPortResponse.Size(m) -} -func (m *StopBERTResponse_PerPortResponse) XXX_DiscardUnknown() { - xxx_messageInfo_StopBERTResponse_PerPortResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_StopBERTResponse_PerPortResponse proto.InternalMessageInfo - -func (m *StopBERTResponse_PerPortResponse) GetInterface() *types.Path { +func (m *StopBERTResponse_PerPortResponse) GetInterface() *gnoi.Path { if m != nil { return m.Interface } return nil } -func (m *StopBERTResponse_PerPortResponse) GetStatus() BertStatus { - if m != nil { - return m.Status - } - return BertStatus_BERT_STATUS_UNKNOWN -} - // TODO: If there is no use case to get the BERT results for all the ports // independent of the bert_operation_id, we can simplify this message and // return the results for all the ports associated with an operation ID. type GetBERTResultRequest struct { // The same BERT operation ID given when BERT operation was started. - BertOperationId string `protobuf:"bytes,1,opt,name=bert_operation_id,json=bertOperationId,proto3" json:"bert_operation_id,omitempty"` + BertOperationId string `protobuf:"bytes,1,opt,name=bert_operation_id,json=bertOperationId" json:"bert_operation_id,omitempty"` // All the per-port BERTs result of which we want to query. Must be part of // the BERT operation specified by the `bert_operation_id` above. - PerPortRequests []*GetBERTResultRequest_PerPortRequest `protobuf:"bytes,2,rep,name=per_port_requests,json=perPortRequests,proto3" json:"per_port_requests,omitempty"` + PerPortRequests []*GetBERTResultRequest_PerPortRequest `protobuf:"bytes,2,rep,name=per_port_requests,json=perPortRequests" json:"per_port_requests,omitempty"` // If set to true, the results for all the per-port BERTs will be returned. // `bert_operation_id` and `per_port_requests` will be ignored will be // ignored in that case. - ResultFromAllPorts bool `protobuf:"varint,3,opt,name=result_from_all_ports,json=resultFromAllPorts,proto3" json:"result_from_all_ports,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + ResultFromAllPorts bool `protobuf:"varint,3,opt,name=result_from_all_ports,json=resultFromAllPorts" json:"result_from_all_ports,omitempty"` } -func (m *GetBERTResultRequest) Reset() { *m = GetBERTResultRequest{} } -func (m *GetBERTResultRequest) String() string { return proto.CompactTextString(m) } -func (*GetBERTResultRequest) ProtoMessage() {} -func (*GetBERTResultRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c2372dae051d1d7a, []int{4} -} - -func (m *GetBERTResultRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetBERTResultRequest.Unmarshal(m, b) -} -func (m *GetBERTResultRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetBERTResultRequest.Marshal(b, m, deterministic) -} -func (m *GetBERTResultRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetBERTResultRequest.Merge(m, src) -} -func (m *GetBERTResultRequest) XXX_Size() int { - return xxx_messageInfo_GetBERTResultRequest.Size(m) -} -func (m *GetBERTResultRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetBERTResultRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_GetBERTResultRequest proto.InternalMessageInfo - -func (m *GetBERTResultRequest) GetBertOperationId() string { - if m != nil { - return m.BertOperationId - } - return "" -} +func (m *GetBERTResultRequest) Reset() { *m = GetBERTResultRequest{} } +func (m *GetBERTResultRequest) String() string { return proto.CompactTextString(m) } +func (*GetBERTResultRequest) ProtoMessage() {} +func (*GetBERTResultRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} } func (m *GetBERTResultRequest) GetPerPortRequests() []*GetBERTResultRequest_PerPortRequest { if m != nil { @@ -603,48 +349,20 @@ func (m *GetBERTResultRequest) GetPerPortRequests() []*GetBERTResultRequest_PerP return nil } -func (m *GetBERTResultRequest) GetResultFromAllPorts() bool { - if m != nil { - return m.ResultFromAllPorts - } - return false -} - // Per-port BERT get result requests. type GetBERTResultRequest_PerPortRequest struct { // Path to the interface corresponding to the port. - Interface *types.Path `protobuf:"bytes,1,opt,name=interface,proto3" json:"interface,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Interface *gnoi.Path `protobuf:"bytes,1,opt,name=interface" json:"interface,omitempty"` } func (m *GetBERTResultRequest_PerPortRequest) Reset() { *m = GetBERTResultRequest_PerPortRequest{} } func (m *GetBERTResultRequest_PerPortRequest) String() string { return proto.CompactTextString(m) } func (*GetBERTResultRequest_PerPortRequest) ProtoMessage() {} func (*GetBERTResultRequest_PerPortRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c2372dae051d1d7a, []int{4, 0} + return fileDescriptor0, []int{4, 0} } -func (m *GetBERTResultRequest_PerPortRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetBERTResultRequest_PerPortRequest.Unmarshal(m, b) -} -func (m *GetBERTResultRequest_PerPortRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetBERTResultRequest_PerPortRequest.Marshal(b, m, deterministic) -} -func (m *GetBERTResultRequest_PerPortRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetBERTResultRequest_PerPortRequest.Merge(m, src) -} -func (m *GetBERTResultRequest_PerPortRequest) XXX_Size() int { - return xxx_messageInfo_GetBERTResultRequest_PerPortRequest.Size(m) -} -func (m *GetBERTResultRequest_PerPortRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetBERTResultRequest_PerPortRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_GetBERTResultRequest_PerPortRequest proto.InternalMessageInfo - -func (m *GetBERTResultRequest_PerPortRequest) GetInterface() *types.Path { +func (m *GetBERTResultRequest_PerPortRequest) GetInterface() *gnoi.Path { if m != nil { return m.Interface } @@ -653,36 +371,13 @@ func (m *GetBERTResultRequest_PerPortRequest) GetInterface() *types.Path { type GetBERTResultResponse struct { // Captures the BERT results on a per-port basis. - PerPortResponses []*GetBERTResultResponse_PerPortResponse `protobuf:"bytes,1,rep,name=per_port_responses,json=perPortResponses,proto3" json:"per_port_responses,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + PerPortResponses []*GetBERTResultResponse_PerPortResponse `protobuf:"bytes,1,rep,name=per_port_responses,json=perPortResponses" json:"per_port_responses,omitempty"` } -func (m *GetBERTResultResponse) Reset() { *m = GetBERTResultResponse{} } -func (m *GetBERTResultResponse) String() string { return proto.CompactTextString(m) } -func (*GetBERTResultResponse) ProtoMessage() {} -func (*GetBERTResultResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c2372dae051d1d7a, []int{5} -} - -func (m *GetBERTResultResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetBERTResultResponse.Unmarshal(m, b) -} -func (m *GetBERTResultResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetBERTResultResponse.Marshal(b, m, deterministic) -} -func (m *GetBERTResultResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetBERTResultResponse.Merge(m, src) -} -func (m *GetBERTResultResponse) XXX_Size() int { - return xxx_messageInfo_GetBERTResultResponse.Size(m) -} -func (m *GetBERTResultResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetBERTResultResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_GetBERTResultResponse proto.InternalMessageInfo +func (m *GetBERTResultResponse) Reset() { *m = GetBERTResultResponse{} } +func (m *GetBERTResultResponse) String() string { return proto.CompactTextString(m) } +func (*GetBERTResultResponse) ProtoMessage() {} +func (*GetBERTResultResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} } func (m *GetBERTResultResponse) GetPerPortResponses() []*GetBERTResultResponse_PerPortResponse { if m != nil { @@ -694,134 +389,48 @@ func (m *GetBERTResultResponse) GetPerPortResponses() []*GetBERTResultResponse_P // Per-port BERT results/status. type GetBERTResultResponse_PerPortResponse struct { // Path to the interface corresponding to the port. - Interface *types.Path `protobuf:"bytes,1,opt,name=interface,proto3" json:"interface,omitempty"` + Interface *gnoi.Path `protobuf:"bytes,1,opt,name=interface" json:"interface,omitempty"` // BERT result get status for this port. Only if the status is // BERT_STATUS_OK are the rest of the fields meaningful. - Status BertStatus `protobuf:"varint,2,opt,name=status,proto3,enum=gnoi.diag.BertStatus" json:"status,omitempty"` + Status BertStatus `protobuf:"varint,2,opt,name=status,enum=gnoi.diag.BertStatus" json:"status,omitempty"` // The ID of the BERT operation running on this port. Since the caller // can query the BERT results for all the ports, ID can potentially be // different for different ports. - BertOperationId string `protobuf:"bytes,3,opt,name=bert_operation_id,json=bertOperationId,proto3" json:"bert_operation_id,omitempty"` + BertOperationId string `protobuf:"bytes,3,opt,name=bert_operation_id,json=bertOperationId" json:"bert_operation_id,omitempty"` // The selected PRBS generating polynomial for BERT on this port. - PrbsPolynomial PrbsPolynomial `protobuf:"varint,4,opt,name=prbs_polynomial,json=prbsPolynomial,proto3,enum=gnoi.diag.PrbsPolynomial" json:"prbs_polynomial,omitempty"` + PrbsPolynomial PrbsPolynomial `protobuf:"varint,4,opt,name=prbs_polynomial,json=prbsPolynomial,enum=gnoi.diag.PrbsPolynomial" json:"prbs_polynomial,omitempty"` // The last time BERT started on this port. - LastBertStartTimestamp uint64 `protobuf:"varint,5,opt,name=last_bert_start_timestamp,json=lastBertStartTimestamp,proto3" json:"last_bert_start_timestamp,omitempty"` + LastBertStartTimestamp uint64 `protobuf:"varint,5,opt,name=last_bert_start_timestamp,json=lastBertStartTimestamp" json:"last_bert_start_timestamp,omitempty"` // The last time BERT results were read for this port. - LastBertGetResultTimestamp uint64 `protobuf:"varint,6,opt,name=last_bert_get_result_timestamp,json=lastBertGetResultTimestamp,proto3" json:"last_bert_get_result_timestamp,omitempty"` + LastBertGetResultTimestamp uint64 `protobuf:"varint,6,opt,name=last_bert_get_result_timestamp,json=lastBertGetResultTimestamp" json:"last_bert_get_result_timestamp,omitempty"` // Indicate whether BERT peer lock has was established. If false, // `bert_lock_lost`, `error_count_per_minute`, and `total_errors` will not // be meaningful. - PeerLockEstablished bool `protobuf:"varint,7,opt,name=peer_lock_established,json=peerLockEstablished,proto3" json:"peer_lock_established,omitempty"` + PeerLockEstablished bool `protobuf:"varint,7,opt,name=peer_lock_established,json=peerLockEstablished" json:"peer_lock_established,omitempty"` // Indicate whether BERT peer lock was lost after being established // once. - PeerLockLost bool `protobuf:"varint,8,opt,name=peer_lock_lost,json=peerLockLost,proto3" json:"peer_lock_lost,omitempty"` + PeerLockLost bool `protobuf:"varint,8,opt,name=peer_lock_lost,json=peerLockLost" json:"peer_lock_lost,omitempty"` // Sequence of bit errors per min since lock was established. - ErrorCountPerMinute []uint32 `protobuf:"varint,9,rep,packed,name=error_count_per_minute,json=errorCountPerMinute,proto3" json:"error_count_per_minute,omitempty"` + ErrorCountPerMinute []uint32 `protobuf:"varint,9,rep,packed,name=error_count_per_minute,json=errorCountPerMinute" json:"error_count_per_minute,omitempty"` // Total number of bit errors accumulated since lock was established. - TotalErrors uint64 `protobuf:"varint,10,opt,name=total_errors,json=totalErrors,proto3" json:"total_errors,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + TotalErrors uint64 `protobuf:"varint,10,opt,name=total_errors,json=totalErrors" json:"total_errors,omitempty"` } func (m *GetBERTResultResponse_PerPortResponse) Reset() { *m = GetBERTResultResponse_PerPortResponse{} } func (m *GetBERTResultResponse_PerPortResponse) String() string { return proto.CompactTextString(m) } func (*GetBERTResultResponse_PerPortResponse) ProtoMessage() {} func (*GetBERTResultResponse_PerPortResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c2372dae051d1d7a, []int{5, 0} + return fileDescriptor0, []int{5, 0} } -func (m *GetBERTResultResponse_PerPortResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetBERTResultResponse_PerPortResponse.Unmarshal(m, b) -} -func (m *GetBERTResultResponse_PerPortResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetBERTResultResponse_PerPortResponse.Marshal(b, m, deterministic) -} -func (m *GetBERTResultResponse_PerPortResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetBERTResultResponse_PerPortResponse.Merge(m, src) -} -func (m *GetBERTResultResponse_PerPortResponse) XXX_Size() int { - return xxx_messageInfo_GetBERTResultResponse_PerPortResponse.Size(m) -} -func (m *GetBERTResultResponse_PerPortResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetBERTResultResponse_PerPortResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_GetBERTResultResponse_PerPortResponse proto.InternalMessageInfo - -func (m *GetBERTResultResponse_PerPortResponse) GetInterface() *types.Path { +func (m *GetBERTResultResponse_PerPortResponse) GetInterface() *gnoi.Path { if m != nil { return m.Interface } return nil } -func (m *GetBERTResultResponse_PerPortResponse) GetStatus() BertStatus { - if m != nil { - return m.Status - } - return BertStatus_BERT_STATUS_UNKNOWN -} - -func (m *GetBERTResultResponse_PerPortResponse) GetBertOperationId() string { - if m != nil { - return m.BertOperationId - } - return "" -} - -func (m *GetBERTResultResponse_PerPortResponse) GetPrbsPolynomial() PrbsPolynomial { - if m != nil { - return m.PrbsPolynomial - } - return PrbsPolynomial_PRBS_POLYNOMIAL_UNKNOWN -} - -func (m *GetBERTResultResponse_PerPortResponse) GetLastBertStartTimestamp() uint64 { - if m != nil { - return m.LastBertStartTimestamp - } - return 0 -} - -func (m *GetBERTResultResponse_PerPortResponse) GetLastBertGetResultTimestamp() uint64 { - if m != nil { - return m.LastBertGetResultTimestamp - } - return 0 -} - -func (m *GetBERTResultResponse_PerPortResponse) GetPeerLockEstablished() bool { - if m != nil { - return m.PeerLockEstablished - } - return false -} - -func (m *GetBERTResultResponse_PerPortResponse) GetPeerLockLost() bool { - if m != nil { - return m.PeerLockLost - } - return false -} - -func (m *GetBERTResultResponse_PerPortResponse) GetErrorCountPerMinute() []uint32 { - if m != nil { - return m.ErrorCountPerMinute - } - return nil -} - -func (m *GetBERTResultResponse_PerPortResponse) GetTotalErrors() uint64 { - if m != nil { - return m.TotalErrors - } - return 0 -} - func init() { - proto.RegisterEnum("gnoi.diag.PrbsPolynomial", PrbsPolynomial_name, PrbsPolynomial_value) - proto.RegisterEnum("gnoi.diag.BertStatus", BertStatus_name, BertStatus_value) proto.RegisterType((*StartBERTRequest)(nil), "gnoi.diag.StartBERTRequest") proto.RegisterType((*StartBERTRequest_PerPortRequest)(nil), "gnoi.diag.StartBERTRequest.PerPortRequest") proto.RegisterType((*StartBERTResponse)(nil), "gnoi.diag.StartBERTResponse") @@ -834,78 +443,8 @@ func init() { proto.RegisterType((*GetBERTResultRequest_PerPortRequest)(nil), "gnoi.diag.GetBERTResultRequest.PerPortRequest") proto.RegisterType((*GetBERTResultResponse)(nil), "gnoi.diag.GetBERTResultResponse") proto.RegisterType((*GetBERTResultResponse_PerPortResponse)(nil), "gnoi.diag.GetBERTResultResponse.PerPortResponse") -} - -func init() { proto.RegisterFile("diag/diag.proto", fileDescriptor_c2372dae051d1d7a) } - -var fileDescriptor_c2372dae051d1d7a = []byte{ - // 1049 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x56, 0xdd, 0x6e, 0xe3, 0x44, - 0x14, 0x6e, 0x7e, 0xda, 0x6d, 0x4e, 0xb7, 0x8d, 0x77, 0x96, 0x76, 0xd3, 0x14, 0x76, 0xd3, 0xec, - 0xc2, 0x86, 0xee, 0x92, 0xb6, 0xa9, 0x10, 0x5a, 0x2e, 0x90, 0x92, 0xc6, 0x6d, 0xad, 0x66, 0x6d, - 0x6b, 0xec, 0xb0, 0x74, 0x2f, 0x18, 0x39, 0xe9, 0x34, 0x35, 0xeb, 0x78, 0xcc, 0xcc, 0xe4, 0x62, - 0x1f, 0x00, 0x71, 0x81, 0x78, 0x18, 0x5e, 0x83, 0x2b, 0x04, 0xcf, 0xc1, 0x2b, 0x20, 0x64, 0x3b, - 0x69, 0x9c, 0x28, 0x69, 0x69, 0x91, 0x10, 0x37, 0x96, 0xe6, 0x7c, 0xdf, 0xf1, 0x39, 0xe7, 0x3b, - 0x67, 0x7e, 0x20, 0x7f, 0xee, 0x3a, 0xbd, 0xdd, 0xf0, 0x53, 0x0d, 0x38, 0x93, 0x0c, 0xe5, 0x7a, - 0x3e, 0x73, 0xab, 0xa1, 0xa1, 0xf8, 0xb2, 0xe7, 0xca, 0xcb, 0x41, 0xa7, 0xda, 0x65, 0xfd, 0x5d, - 0x16, 0x50, 0xbf, 0xcb, 0xfc, 0x0b, 0xb7, 0xb7, 0x1b, 0x12, 0x76, 0xe5, 0xfb, 0x80, 0x8a, 0xf8, - 0x1b, 0x3b, 0x96, 0x7f, 0x4d, 0x83, 0x62, 0x49, 0x87, 0xcb, 0x86, 0x8a, 0x6d, 0x4c, 0xbf, 0x1f, - 0x50, 0x21, 0xd1, 0x0e, 0x3c, 0xe8, 0x50, 0x2e, 0x09, 0x0b, 0x28, 0x77, 0xa4, 0xcb, 0x7c, 0xe2, - 0x9e, 0x17, 0x52, 0xa5, 0x54, 0x25, 0x87, 0xf3, 0x21, 0x60, 0x8c, 0xec, 0xda, 0x39, 0xfa, 0x1a, - 0x1e, 0x04, 0x94, 0x93, 0x80, 0x71, 0x49, 0x78, 0xec, 0x2f, 0x0a, 0xe9, 0x52, 0xa6, 0xb2, 0x52, - 0xdb, 0xa9, 0x5e, 0x65, 0x55, 0x9d, 0x8e, 0x51, 0x35, 0x29, 0x37, 0x19, 0x97, 0xc3, 0x25, 0xce, - 0x07, 0x13, 0x6b, 0x51, 0xfc, 0x25, 0x05, 0x6b, 0x93, 0x1c, 0x54, 0x81, 0x9c, 0xeb, 0x4b, 0xca, - 0x2f, 0x9c, 0x2e, 0x8d, 0xd2, 0x59, 0xa9, 0x41, 0x1c, 0xc2, 0x74, 0xe4, 0x25, 0x1e, 0x83, 0xa8, - 0x01, 0xf9, 0x80, 0x77, 0x04, 0x09, 0x98, 0xf7, 0xde, 0x67, 0x7d, 0xd7, 0xf1, 0x0a, 0xe9, 0x52, - 0xaa, 0xb2, 0x56, 0xdb, 0x4c, 0xa4, 0x64, 0xf2, 0x8e, 0x30, 0xaf, 0x08, 0x78, 0x2d, 0x98, 0x58, - 0xa3, 0x7d, 0x58, 0x97, 0x54, 0x48, 0x72, 0x3e, 0x18, 0x69, 0xe0, 0x13, 0x41, 0xbb, 0xa2, 0x90, - 0x29, 0xa5, 0x2a, 0xab, 0x18, 0x85, 0x60, 0x73, 0x88, 0x69, 0xbe, 0x45, 0xbb, 0xa2, 0xfc, 0x63, - 0x1a, 0x1e, 0x24, 0x0a, 0x15, 0x01, 0xf3, 0x05, 0xbd, 0x95, 0x9a, 0x6f, 0x01, 0x25, 0xd4, 0x8c, - 0x7f, 0x30, 0x92, 0xf3, 0xe5, 0x6c, 0x39, 0x63, 0xd2, 0x58, 0xcf, 0x78, 0x8d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e, - 0xe6, 0x19, 0xa6, 0x3a, 0xe4, 0x68, 0xcd, 0x28, 0xfe, 0x91, 0xd1, 0xd6, 0x9b, 0x4a, 0x0e, 0x3d, - 0x85, 0x27, 0x73, 0x79, 0x9a, 0x4e, 0xda, 0x96, 0xaa, 0xc0, 0xb4, 0xc2, 0xa6, 0xaa, 0x62, 0xd2, - 0x32, 0x0e, 0x4f, 0xc9, 0x51, 0x5d, 0x6b, 0xb5, 0xb1, 0xaa, 0xac, 0xa0, 0xc7, 0x50, 0x9c, 0x4d, - 0x69, 0x19, 0x96, 0xad, 0xdc, 0x9f, 0xc6, 0x35, 0xdd, 0x56, 0xb1, 0x5e, 0x6f, 0x0d, 0xa5, 0x5f, - 0xad, 0xfd, 0x99, 0x82, 0x6c, 0xd3, 0x75, 0x7a, 0xe8, 0x04, 0x72, 0x57, 0xaf, 0x1e, 0xb4, 0x75, - 0xcd, 0xd3, 0xb2, 0xf8, 0xe1, 0x75, 0x0f, 0xa5, 0xf2, 0x02, 0x52, 0x61, 0x79, 0x74, 0xc7, 0xa2, - 0xe2, 0xfc, 0xd7, 0x44, 0x71, 0xeb, 0x9a, 0x4b, 0xb9, 0xbc, 0x80, 0x6c, 0x58, 0x9d, 0x38, 0xb9, - 0xd1, 0x93, 0x1b, 0x6e, 0xae, 0x62, 0xe9, 0xa6, 0x43, 0xbf, 0xbc, 0xd0, 0x58, 0xfe, 0xfd, 0xab, - 0xc5, 0xbd, 0xea, 0x7e, 0x75, 0xaf, 0xb3, 0x14, 0xbd, 0xd0, 0x0f, 0xfe, 0x0e, 0x00, 0x00, 0xff, - 0xff, 0x09, 0xcd, 0x0f, 0x34, 0xed, 0x0b, 0x00, 0x00, + proto.RegisterEnum("gnoi.diag.PrbsPolynomial", PrbsPolynomial_name, PrbsPolynomial_value) + proto.RegisterEnum("gnoi.diag.BertStatus", BertStatus_name, BertStatus_value) } // Reference imports to suppress errors if they are not otherwise used. @@ -916,9 +455,8 @@ var _ grpc.ClientConn // is compatible with the grpc package it is being compiled against. const _ = grpc.SupportPackageIsVersion4 -// DiagClient is the client API for Diag service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +// Client API for Diag service + type DiagClient interface { // Starts BERT operation on a set of ports. Each BERT operation is uniquely // identified by an ID, which is given by the caller. The caller can then @@ -974,7 +512,7 @@ func NewDiagClient(cc *grpc.ClientConn) DiagClient { func (c *diagClient) StartBERT(ctx context.Context, in *StartBERTRequest, opts ...grpc.CallOption) (*StartBERTResponse, error) { out := new(StartBERTResponse) - err := c.cc.Invoke(ctx, "/gnoi.diag.Diag/StartBERT", in, out, opts...) + err := grpc.Invoke(ctx, "/gnoi.diag.Diag/StartBERT", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -983,7 +521,7 @@ func (c *diagClient) StartBERT(ctx context.Context, in *StartBERTRequest, opts . func (c *diagClient) StopBERT(ctx context.Context, in *StopBERTRequest, opts ...grpc.CallOption) (*StopBERTResponse, error) { out := new(StopBERTResponse) - err := c.cc.Invoke(ctx, "/gnoi.diag.Diag/StopBERT", in, out, opts...) + err := grpc.Invoke(ctx, "/gnoi.diag.Diag/StopBERT", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -992,14 +530,15 @@ func (c *diagClient) StopBERT(ctx context.Context, in *StopBERTRequest, opts ... func (c *diagClient) GetBERTResult(ctx context.Context, in *GetBERTResultRequest, opts ...grpc.CallOption) (*GetBERTResultResponse, error) { out := new(GetBERTResultResponse) - err := c.cc.Invoke(ctx, "/gnoi.diag.Diag/GetBERTResult", in, out, opts...) + err := grpc.Invoke(ctx, "/gnoi.diag.Diag/GetBERTResult", in, out, c.cc, opts...) if err != nil { return nil, err } return out, nil } -// DiagServer is the server API for Diag service. +// Server API for Diag service + type DiagServer interface { // Starts BERT operation on a set of ports. Each BERT operation is uniquely // identified by an ID, which is given by the caller. The caller can then @@ -1123,3 +662,74 @@ var _Diag_serviceDesc = grpc.ServiceDesc{ Streams: []grpc.StreamDesc{}, Metadata: "diag/diag.proto", } + +func init() { proto.RegisterFile("diag/diag.proto", fileDescriptor0) } + +var fileDescriptor0 = []byte{ + // 1028 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xcc, 0x56, 0xdd, 0x6e, 0x1b, 0x45, + 0x14, 0xce, 0xda, 0x4e, 0x1a, 0x9f, 0xfc, 0x78, 0x33, 0x21, 0xa9, 0xe3, 0x40, 0xeb, 0xb8, 0x85, + 0x9a, 0x14, 0xdc, 0xc4, 0x11, 0x42, 0xe5, 0x02, 0x69, 0x1d, 0x6f, 0x92, 0x55, 0xdc, 0xdd, 0xd5, + 0xec, 0x9a, 0x92, 0x5e, 0x30, 0xda, 0x38, 0xd3, 0xd4, 0x74, 0xed, 0x5d, 0x66, 0xc6, 0x17, 0x7d, + 0x00, 0xc4, 0x05, 0xe2, 0x61, 0x78, 0x0d, 0xae, 0x10, 0x3c, 0x07, 0xaf, 0x80, 0xd0, 0x8c, 0xed, + 0x78, 0x6d, 0xd9, 0x09, 0x09, 0x12, 0xea, 0xcd, 0x4a, 0x73, 0xbe, 0xef, 0xec, 0x39, 0xe7, 0x3b, + 0x67, 0x7e, 0x20, 0x77, 0xd1, 0x0e, 0x2e, 0x9f, 0xc9, 0x4f, 0x25, 0x66, 0x91, 0x88, 0x50, 0xf6, + 0xb2, 0x1b, 0xb5, 0x2b, 0xd2, 0x50, 0x58, 0x13, 0xef, 0x62, 0xca, 0x9f, 0xa9, 0x6f, 0x1f, 0x2d, + 0xfd, 0x96, 0x02, 0xdd, 0x13, 0x01, 0x13, 0x35, 0x13, 0xfb, 0x98, 0xfe, 0xd0, 0xa3, 0x5c, 0xa0, + 0x5d, 0x58, 0x3b, 0xa7, 0x4c, 0x90, 0x28, 0xa6, 0x2c, 0x10, 0xed, 0xa8, 0x4b, 0xda, 0x17, 0x79, + 0xad, 0xa8, 0x95, 0xb3, 0x38,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4, 0x08, 0x1e, 0xce, 0xe4, 0x59, + 0x36, 0x69, 0x7a, 0xa6, 0x0e, 0x93, 0x0a, 0xbb, 0xa6, 0x89, 0x49, 0xc3, 0x39, 0x3c, 0x25, 0x47, + 0x86, 0xd5, 0x68, 0x62, 0x53, 0x5f, 0x42, 0x0f, 0xa0, 0x30, 0x9d, 0xd2, 0x70, 0x3c, 0x5f, 0x5f, + 0x9e, 0xc4, 0x2d, 0xdb, 0x37, 0xb1, 0x6d, 0x34, 0x06, 0xd2, 0xaf, 0x54, 0xff, 0xd2, 0x20, 0x53, + 0x6f, 0x07, 0x97, 0xe8, 0x04, 0xb2, 0x57, 0xaf, 0x1e, 0xb4, 0x7d, 0xcd, 0xd3, 0xb2, 0xf0, 0xe1, + 0x75, 0x0f, 0xa5, 0xd2, 0x1c, 0x32, 0x61, 0x71, 0x78, 0xc7, 0xa2, 0xc2, 0xec, 0xd7, 0x44, 0x61, + 0xfb, 0x9a, 0x4b, 0xb9, 0x34, 0x87, 0x7c, 0x58, 0x19, 0x3b, 0xb9, 0xd1, 0xc3, 0x1b, 0x6e, 0xae, + 0x42, 0xf1, 0xa6, 0x43, 0xbf, 0x34, 0x57, 0x5b, 0xfc, 0xe3, 0xeb, 0xf9, 0xbd, 0xca, 0x7e, 0x65, + 0xef, 0x7c, 0x41, 0xbd, 0xd0, 0x0f, 0xfe, 0x09, 0x00, 0x00, 0xff, 0xff, 0xd7, 0x6b, 0x04, 0xbd, + 0xd2, 0x0b, 0x00, 0x00, +} diff --git a/diag/diag.proto b/diag/diag.proto index 93939e81..2e93de2c 100644 --- a/diag/diag.proto +++ b/diag/diag.proto @@ -20,7 +20,7 @@ syntax = "proto3"; package gnoi.diag; -import "github.com/openconfig/gnoi/types/types.proto"; +import "types/types.proto"; option (gnoi.gnoi_version) = "0.1.0"; diff --git a/file/BUILD.bazel b/file/BUILD.bazel new file mode 100644 index 00000000..27b40159 --- /dev/null +++ b/file/BUILD.bazel @@ -0,0 +1,20 @@ +load("@io_bazel_rules_go//proto:go_proto_library.bzl", "go_proto_library") + +proto_library( + name = "file_proto", + srcs = ["file.proto"], + deps = [ + "//github.com/openconfig/gnoi:go_default_library" + ], +) + +go_proto_library( + name = "go_default_library", + srcs = ["file.proto"], + deps = [ + "//github.com/openconfig/gnoi:go_default_library" + ], + visibility = ["//visibility:public"], + rules_go_repo_only_for_internal_use = "@", + has_services = 1, +) diff --git a/file/file.pb.go b/file/file.pb.go index 931b50dc..c9a4aa74 100644 --- a/file/file.pb.go +++ b/file/file.pb.go @@ -1,16 +1,37 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. +// Code generated by protoc-gen-go. // source: file/file.proto - +// DO NOT EDIT! + +/* +Package gnoi_file is a generated protocol buffer package. + +It is generated from these files: + file/file.proto + +It has these top-level messages: + PutRequest + PutResponse + GetRequest + GetResponse + TransferToRemoteRequest + TransferToRemoteResponse + StatRequest + StatResponse + StatInfo + RemoveRequest + RemoveResponse +*/ package gnoi_file +import proto "github.com/golang/protobuf/proto" +import fmt "fmt" +import math "math" +import gnoi1 "common" +import gnoi "types" + import ( - fmt "fmt" - proto "github.com/golang/protobuf/proto" - common "github.com/openconfig/gnoi/common" - types "github.com/openconfig/gnoi/types" context "golang.org/x/net/context" grpc "google.golang.org/grpc" - math "math" ) // Reference imports to suppress errors if they are not otherwise used. @@ -42,58 +63,31 @@ type PutRequest struct { // *PutRequest_Open // *PutRequest_Contents // *PutRequest_Hash - Request isPutRequest_Request `protobuf_oneof:"request"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *PutRequest) Reset() { *m = PutRequest{} } -func (m *PutRequest) String() string { return proto.CompactTextString(m) } -func (*PutRequest) ProtoMessage() {} -func (*PutRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_ad806f8986a0c3f6, []int{0} -} - -func (m *PutRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PutRequest.Unmarshal(m, b) -} -func (m *PutRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PutRequest.Marshal(b, m, deterministic) -} -func (m *PutRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_PutRequest.Merge(m, src) -} -func (m *PutRequest) XXX_Size() int { - return xxx_messageInfo_PutRequest.Size(m) -} -func (m *PutRequest) XXX_DiscardUnknown() { - xxx_messageInfo_PutRequest.DiscardUnknown(m) + Request isPutRequest_Request `protobuf_oneof:"request"` } -var xxx_messageInfo_PutRequest proto.InternalMessageInfo +func (m *PutRequest) Reset() { *m = PutRequest{} } +func (m *PutRequest) String() string { return proto.CompactTextString(m) } +func (*PutRequest) ProtoMessage() {} +func (*PutRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } type isPutRequest_Request interface { isPutRequest_Request() } type PutRequest_Open struct { - Open *PutRequest_Details `protobuf:"bytes,1,opt,name=open,proto3,oneof"` + Open *PutRequest_Details `protobuf:"bytes,1,opt,name=open,oneof"` } - type PutRequest_Contents struct { Contents []byte `protobuf:"bytes,2,opt,name=contents,proto3,oneof"` } - type PutRequest_Hash struct { - Hash *types.HashType `protobuf:"bytes,3,opt,name=hash,proto3,oneof"` + Hash *gnoi.HashType `protobuf:"bytes,3,opt,name=hash,oneof"` } -func (*PutRequest_Open) isPutRequest_Request() {} - +func (*PutRequest_Open) isPutRequest_Request() {} func (*PutRequest_Contents) isPutRequest_Request() {} - -func (*PutRequest_Hash) isPutRequest_Request() {} +func (*PutRequest_Hash) isPutRequest_Request() {} func (m *PutRequest) GetRequest() isPutRequest_Request { if m != nil { @@ -116,7 +110,7 @@ func (m *PutRequest) GetContents() []byte { return nil } -func (m *PutRequest) GetHash() *types.HashType { +func (m *PutRequest) GetHash() *gnoi.HashType { if x, ok := m.GetRequest().(*PutRequest_Hash); ok { return x.Hash } @@ -178,7 +172,7 @@ func _PutRequest_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buf if wire != proto.WireBytes { return true, proto.ErrInternalBadWireType } - msg := new(types.HashType) + msg := new(gnoi.HashType) err := b.DecodeMessage(msg) m.Request = &PutRequest_Hash{msg} return true, err @@ -193,16 +187,16 @@ func _PutRequest_OneofSizer(msg proto.Message) (n int) { switch x := m.Request.(type) { case *PutRequest_Open: s := proto.Size(x.Open) - n += 1 // tag and wire + n += proto.SizeVarint(1<<3 | proto.WireBytes) n += proto.SizeVarint(uint64(s)) n += s case *PutRequest_Contents: - n += 1 // tag and wire + n += proto.SizeVarint(2<<3 | proto.WireBytes) n += proto.SizeVarint(uint64(len(x.Contents))) n += len(x.Contents) case *PutRequest_Hash: s := proto.Size(x.Hash) - n += 1 // tag and wire + n += proto.SizeVarint(3<<3 | proto.WireBytes) n += proto.SizeVarint(uint64(s)) n += s case nil: @@ -213,128 +207,38 @@ func _PutRequest_OneofSizer(msg proto.Message) (n int) { } type PutRequest_Details struct { - RemoteFile string `protobuf:"bytes,1,opt,name=remote_file,json=remoteFile,proto3" json:"remote_file,omitempty"` + RemoteFile string `protobuf:"bytes,1,opt,name=remote_file,json=remoteFile" json:"remote_file,omitempty"` // Permissions are represented as the octal format of standard UNIX // file permissions. // ex. 775: user read/write/execute, group read/write/execute, // global read/execute. - Permissions uint32 `protobuf:"varint,2,opt,name=permissions,proto3" json:"permissions,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Permissions uint32 `protobuf:"varint,2,opt,name=permissions" json:"permissions,omitempty"` } -func (m *PutRequest_Details) Reset() { *m = PutRequest_Details{} } -func (m *PutRequest_Details) String() string { return proto.CompactTextString(m) } -func (*PutRequest_Details) ProtoMessage() {} -func (*PutRequest_Details) Descriptor() ([]byte, []int) { - return fileDescriptor_ad806f8986a0c3f6, []int{0, 0} -} - -func (m *PutRequest_Details) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PutRequest_Details.Unmarshal(m, b) -} -func (m *PutRequest_Details) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PutRequest_Details.Marshal(b, m, deterministic) -} -func (m *PutRequest_Details) XXX_Merge(src proto.Message) { - xxx_messageInfo_PutRequest_Details.Merge(m, src) -} -func (m *PutRequest_Details) XXX_Size() int { - return xxx_messageInfo_PutRequest_Details.Size(m) -} -func (m *PutRequest_Details) XXX_DiscardUnknown() { - xxx_messageInfo_PutRequest_Details.DiscardUnknown(m) -} - -var xxx_messageInfo_PutRequest_Details proto.InternalMessageInfo - -func (m *PutRequest_Details) GetRemoteFile() string { - if m != nil { - return m.RemoteFile - } - return "" -} - -func (m *PutRequest_Details) GetPermissions() uint32 { - if m != nil { - return m.Permissions - } - return 0 -} +func (m *PutRequest_Details) Reset() { *m = PutRequest_Details{} } +func (m *PutRequest_Details) String() string { return proto.CompactTextString(m) } +func (*PutRequest_Details) ProtoMessage() {} +func (*PutRequest_Details) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0, 0} } type PutResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` } -func (m *PutResponse) Reset() { *m = PutResponse{} } -func (m *PutResponse) String() string { return proto.CompactTextString(m) } -func (*PutResponse) ProtoMessage() {} -func (*PutResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_ad806f8986a0c3f6, []int{1} -} - -func (m *PutResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PutResponse.Unmarshal(m, b) -} -func (m *PutResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PutResponse.Marshal(b, m, deterministic) -} -func (m *PutResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_PutResponse.Merge(m, src) -} -func (m *PutResponse) XXX_Size() int { - return xxx_messageInfo_PutResponse.Size(m) -} -func (m *PutResponse) XXX_DiscardUnknown() { - xxx_messageInfo_PutResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_PutResponse proto.InternalMessageInfo +func (m *PutResponse) Reset() { *m = PutResponse{} } +func (m *PutResponse) String() string { return proto.CompactTextString(m) } +func (*PutResponse) ProtoMessage() {} +func (*PutResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } // A GetRequest specifies the remote_file to be streamed back // to the caller. The remote_file must be an absolute path to an // existing file. type GetRequest struct { - RemoteFile string `protobuf:"bytes,1,opt,name=remote_file,json=remoteFile,proto3" json:"remote_file,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetRequest) Reset() { *m = GetRequest{} } -func (m *GetRequest) String() string { return proto.CompactTextString(m) } -func (*GetRequest) ProtoMessage() {} -func (*GetRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_ad806f8986a0c3f6, []int{2} -} - -func (m *GetRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetRequest.Unmarshal(m, b) -} -func (m *GetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetRequest.Marshal(b, m, deterministic) -} -func (m *GetRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetRequest.Merge(m, src) + RemoteFile string `protobuf:"bytes,1,opt,name=remote_file,json=remoteFile" json:"remote_file,omitempty"` } -func (m *GetRequest) XXX_Size() int { - return xxx_messageInfo_GetRequest.Size(m) -} -func (m *GetRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_GetRequest proto.InternalMessageInfo -func (m *GetRequest) GetRemoteFile() string { - if m != nil { - return m.RemoteFile - } - return "" -} +func (m *GetRequest) Reset() { *m = GetRequest{} } +func (m *GetRequest) String() string { return proto.CompactTextString(m) } +func (*GetRequest) ProtoMessage() {} +func (*GetRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} } // A GetResponse either contains the next set of bytes read from the // file or, as the last message, the hash of the data. @@ -342,36 +246,13 @@ type GetResponse struct { // Types that are valid to be assigned to Response: // *GetResponse_Contents // *GetResponse_Hash - Response isGetResponse_Response `protobuf_oneof:"response"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetResponse) Reset() { *m = GetResponse{} } -func (m *GetResponse) String() string { return proto.CompactTextString(m) } -func (*GetResponse) ProtoMessage() {} -func (*GetResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_ad806f8986a0c3f6, []int{3} -} - -func (m *GetResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetResponse.Unmarshal(m, b) -} -func (m *GetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetResponse.Marshal(b, m, deterministic) -} -func (m *GetResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetResponse.Merge(m, src) -} -func (m *GetResponse) XXX_Size() int { - return xxx_messageInfo_GetResponse.Size(m) -} -func (m *GetResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetResponse.DiscardUnknown(m) + Response isGetResponse_Response `protobuf_oneof:"response"` } -var xxx_messageInfo_GetResponse proto.InternalMessageInfo +func (m *GetResponse) Reset() { *m = GetResponse{} } +func (m *GetResponse) String() string { return proto.CompactTextString(m) } +func (*GetResponse) ProtoMessage() {} +func (*GetResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} } type isGetResponse_Response interface { isGetResponse_Response() @@ -380,14 +261,12 @@ type isGetResponse_Response interface { type GetResponse_Contents struct { Contents []byte `protobuf:"bytes,1,opt,name=contents,proto3,oneof"` } - type GetResponse_Hash struct { - Hash *types.HashType `protobuf:"bytes,2,opt,name=hash,proto3,oneof"` + Hash *gnoi.HashType `protobuf:"bytes,2,opt,name=hash,oneof"` } func (*GetResponse_Contents) isGetResponse_Response() {} - -func (*GetResponse_Hash) isGetResponse_Response() {} +func (*GetResponse_Hash) isGetResponse_Response() {} func (m *GetResponse) GetResponse() isGetResponse_Response { if m != nil { @@ -403,7 +282,7 @@ func (m *GetResponse) GetContents() []byte { return nil } -func (m *GetResponse) GetHash() *types.HashType { +func (m *GetResponse) GetHash() *gnoi.HashType { if x, ok := m.GetResponse().(*GetResponse_Hash); ok { return x.Hash } @@ -451,7 +330,7 @@ func _GetResponse_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Bu if wire != proto.WireBytes { return true, proto.ErrInternalBadWireType } - msg := new(types.HashType) + msg := new(gnoi.HashType) err := b.DecodeMessage(msg) m.Response = &GetResponse_Hash{msg} return true, err @@ -465,12 +344,12 @@ func _GetResponse_OneofSizer(msg proto.Message) (n int) { // response switch x := m.Response.(type) { case *GetResponse_Contents: - n += 1 // tag and wire + n += proto.SizeVarint(1<<3 | proto.WireBytes) n += proto.SizeVarint(uint64(len(x.Contents))) n += len(x.Contents) case *GetResponse_Hash: s := proto.Size(x.Hash) - n += 1 // tag and wire + n += proto.SizeVarint(2<<3 | proto.WireBytes) n += proto.SizeVarint(uint64(s)) n += s case nil: @@ -484,47 +363,17 @@ func _GetResponse_OneofSizer(msg proto.Message) (n int) { // details on where to transfer the data from. The local_path must be an // absolute path to the file. type TransferToRemoteRequest struct { - LocalPath string `protobuf:"bytes,1,opt,name=local_path,json=localPath,proto3" json:"local_path,omitempty"` + LocalPath string `protobuf:"bytes,1,opt,name=local_path,json=localPath" json:"local_path,omitempty"` // Details to download the remote_file being requested to a remote location. - RemoteDownload *common.RemoteDownload `protobuf:"bytes,2,opt,name=remote_download,json=remoteDownload,proto3" json:"remote_download,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TransferToRemoteRequest) Reset() { *m = TransferToRemoteRequest{} } -func (m *TransferToRemoteRequest) String() string { return proto.CompactTextString(m) } -func (*TransferToRemoteRequest) ProtoMessage() {} -func (*TransferToRemoteRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_ad806f8986a0c3f6, []int{4} -} - -func (m *TransferToRemoteRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TransferToRemoteRequest.Unmarshal(m, b) -} -func (m *TransferToRemoteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TransferToRemoteRequest.Marshal(b, m, deterministic) -} -func (m *TransferToRemoteRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_TransferToRemoteRequest.Merge(m, src) -} -func (m *TransferToRemoteRequest) XXX_Size() int { - return xxx_messageInfo_TransferToRemoteRequest.Size(m) -} -func (m *TransferToRemoteRequest) XXX_DiscardUnknown() { - xxx_messageInfo_TransferToRemoteRequest.DiscardUnknown(m) + RemoteDownload *gnoi1.RemoteDownload `protobuf:"bytes,2,opt,name=remote_download,json=remoteDownload" json:"remote_download,omitempty"` } -var xxx_messageInfo_TransferToRemoteRequest proto.InternalMessageInfo +func (m *TransferToRemoteRequest) Reset() { *m = TransferToRemoteRequest{} } +func (m *TransferToRemoteRequest) String() string { return proto.CompactTextString(m) } +func (*TransferToRemoteRequest) ProtoMessage() {} +func (*TransferToRemoteRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} } -func (m *TransferToRemoteRequest) GetLocalPath() string { - if m != nil { - return m.LocalPath - } - return "" -} - -func (m *TransferToRemoteRequest) GetRemoteDownload() *common.RemoteDownload { +func (m *TransferToRemoteRequest) GetRemoteDownload() *gnoi1.RemoteDownload { if m != nil { return m.RemoteDownload } @@ -533,38 +382,15 @@ func (m *TransferToRemoteRequest) GetRemoteDownload() *common.RemoteDownload { // A TransferToRemoteResponse contains the hash of the data transferred. type TransferToRemoteResponse struct { - Hash *types.HashType `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Hash *gnoi.HashType `protobuf:"bytes,1,opt,name=hash" json:"hash,omitempty"` } -func (m *TransferToRemoteResponse) Reset() { *m = TransferToRemoteResponse{} } -func (m *TransferToRemoteResponse) String() string { return proto.CompactTextString(m) } -func (*TransferToRemoteResponse) ProtoMessage() {} -func (*TransferToRemoteResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_ad806f8986a0c3f6, []int{5} -} +func (m *TransferToRemoteResponse) Reset() { *m = TransferToRemoteResponse{} } +func (m *TransferToRemoteResponse) String() string { return proto.CompactTextString(m) } +func (*TransferToRemoteResponse) ProtoMessage() {} +func (*TransferToRemoteResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} } -func (m *TransferToRemoteResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TransferToRemoteResponse.Unmarshal(m, b) -} -func (m *TransferToRemoteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TransferToRemoteResponse.Marshal(b, m, deterministic) -} -func (m *TransferToRemoteResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_TransferToRemoteResponse.Merge(m, src) -} -func (m *TransferToRemoteResponse) XXX_Size() int { - return xxx_messageInfo_TransferToRemoteResponse.Size(m) -} -func (m *TransferToRemoteResponse) XXX_DiscardUnknown() { - xxx_messageInfo_TransferToRemoteResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_TransferToRemoteResponse proto.InternalMessageInfo - -func (m *TransferToRemoteResponse) GetHash() *types.HashType { +func (m *TransferToRemoteResponse) GetHash() *gnoi.HashType { if m != nil { return m.Hash } @@ -573,76 +399,23 @@ func (m *TransferToRemoteResponse) GetHash() *types.HashType { // StatRequest will list files at the provided path. type StatRequest struct { - Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *StatRequest) Reset() { *m = StatRequest{} } -func (m *StatRequest) String() string { return proto.CompactTextString(m) } -func (*StatRequest) ProtoMessage() {} -func (*StatRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_ad806f8986a0c3f6, []int{6} -} - -func (m *StatRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_StatRequest.Unmarshal(m, b) -} -func (m *StatRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_StatRequest.Marshal(b, m, deterministic) -} -func (m *StatRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_StatRequest.Merge(m, src) -} -func (m *StatRequest) XXX_Size() int { - return xxx_messageInfo_StatRequest.Size(m) -} -func (m *StatRequest) XXX_DiscardUnknown() { - xxx_messageInfo_StatRequest.DiscardUnknown(m) + Path string `protobuf:"bytes,1,opt,name=path" json:"path,omitempty"` } -var xxx_messageInfo_StatRequest proto.InternalMessageInfo - -func (m *StatRequest) GetPath() string { - if m != nil { - return m.Path - } - return "" -} +func (m *StatRequest) Reset() { *m = StatRequest{} } +func (m *StatRequest) String() string { return proto.CompactTextString(m) } +func (*StatRequest) ProtoMessage() {} +func (*StatRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} } // StatResponse contains list of stat info of the provided path. type StatResponse struct { - Stats []*StatInfo `protobuf:"bytes,1,rep,name=stats,proto3" json:"stats,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Stats []*StatInfo `protobuf:"bytes,1,rep,name=stats" json:"stats,omitempty"` } -func (m *StatResponse) Reset() { *m = StatResponse{} } -func (m *StatResponse) String() string { return proto.CompactTextString(m) } -func (*StatResponse) ProtoMessage() {} -func (*StatResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_ad806f8986a0c3f6, []int{7} -} - -func (m *StatResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_StatResponse.Unmarshal(m, b) -} -func (m *StatResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_StatResponse.Marshal(b, m, deterministic) -} -func (m *StatResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_StatResponse.Merge(m, src) -} -func (m *StatResponse) XXX_Size() int { - return xxx_messageInfo_StatResponse.Size(m) -} -func (m *StatResponse) XXX_DiscardUnknown() { - xxx_messageInfo_StatResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_StatResponse proto.InternalMessageInfo +func (m *StatResponse) Reset() { *m = StatResponse{} } +func (m *StatResponse) String() string { return proto.CompactTextString(m) } +func (*StatResponse) ProtoMessage() {} +func (*StatResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} } func (m *StatResponse) GetStats() []*StatInfo { if m != nil { @@ -653,152 +426,41 @@ func (m *StatResponse) GetStats() []*StatInfo { // StatInfo provides a file system information about a particular path. type StatInfo struct { - Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` - LastModified uint64 `protobuf:"varint,2,opt,name=last_modified,json=lastModified,proto3" json:"last_modified,omitempty"` + Path string `protobuf:"bytes,1,opt,name=path" json:"path,omitempty"` + LastModified uint64 `protobuf:"varint,2,opt,name=last_modified,json=lastModified" json:"last_modified,omitempty"` // Permissions are represented as the octal format of standard UNIX // file permissions. // ex. 775: user read/write/execute, group read/write/execute, // global read/execute. - Permissions uint32 `protobuf:"varint,3,opt,name=permissions,proto3" json:"permissions,omitempty"` - Size uint64 `protobuf:"varint,4,opt,name=size,proto3" json:"size,omitempty"` + Permissions uint32 `protobuf:"varint,3,opt,name=permissions" json:"permissions,omitempty"` + Size uint64 `protobuf:"varint,4,opt,name=size" json:"size,omitempty"` // Default file creation mask. Represented as the octal format of // standard UNIX mask. - Umask uint32 `protobuf:"varint,5,opt,name=umask,proto3" json:"umask,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *StatInfo) Reset() { *m = StatInfo{} } -func (m *StatInfo) String() string { return proto.CompactTextString(m) } -func (*StatInfo) ProtoMessage() {} -func (*StatInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_ad806f8986a0c3f6, []int{8} -} - -func (m *StatInfo) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_StatInfo.Unmarshal(m, b) -} -func (m *StatInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_StatInfo.Marshal(b, m, deterministic) -} -func (m *StatInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_StatInfo.Merge(m, src) -} -func (m *StatInfo) XXX_Size() int { - return xxx_messageInfo_StatInfo.Size(m) -} -func (m *StatInfo) XXX_DiscardUnknown() { - xxx_messageInfo_StatInfo.DiscardUnknown(m) + Umask uint32 `protobuf:"varint,5,opt,name=umask" json:"umask,omitempty"` } -var xxx_messageInfo_StatInfo proto.InternalMessageInfo - -func (m *StatInfo) GetPath() string { - if m != nil { - return m.Path - } - return "" -} - -func (m *StatInfo) GetLastModified() uint64 { - if m != nil { - return m.LastModified - } - return 0 -} - -func (m *StatInfo) GetPermissions() uint32 { - if m != nil { - return m.Permissions - } - return 0 -} - -func (m *StatInfo) GetSize() uint64 { - if m != nil { - return m.Size - } - return 0 -} - -func (m *StatInfo) GetUmask() uint32 { - if m != nil { - return m.Umask - } - return 0 -} +func (m *StatInfo) Reset() { *m = StatInfo{} } +func (m *StatInfo) String() string { return proto.CompactTextString(m) } +func (*StatInfo) ProtoMessage() {} +func (*StatInfo) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} } // A RemoveRequest specifies a file to be removed from the target. type RemoveRequest struct { - RemoteFile string `protobuf:"bytes,1,opt,name=remote_file,json=remoteFile,proto3" json:"remote_file,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RemoveRequest) Reset() { *m = RemoveRequest{} } -func (m *RemoveRequest) String() string { return proto.CompactTextString(m) } -func (*RemoveRequest) ProtoMessage() {} -func (*RemoveRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_ad806f8986a0c3f6, []int{9} -} - -func (m *RemoveRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RemoveRequest.Unmarshal(m, b) -} -func (m *RemoveRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RemoveRequest.Marshal(b, m, deterministic) -} -func (m *RemoveRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RemoveRequest.Merge(m, src) -} -func (m *RemoveRequest) XXX_Size() int { - return xxx_messageInfo_RemoveRequest.Size(m) -} -func (m *RemoveRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RemoveRequest.DiscardUnknown(m) + RemoteFile string `protobuf:"bytes,1,opt,name=remote_file,json=remoteFile" json:"remote_file,omitempty"` } -var xxx_messageInfo_RemoveRequest proto.InternalMessageInfo - -func (m *RemoveRequest) GetRemoteFile() string { - if m != nil { - return m.RemoteFile - } - return "" -} +func (m *RemoveRequest) Reset() { *m = RemoveRequest{} } +func (m *RemoveRequest) String() string { return proto.CompactTextString(m) } +func (*RemoveRequest) ProtoMessage() {} +func (*RemoveRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{9} } type RemoveResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` } -func (m *RemoveResponse) Reset() { *m = RemoveResponse{} } -func (m *RemoveResponse) String() string { return proto.CompactTextString(m) } -func (*RemoveResponse) ProtoMessage() {} -func (*RemoveResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_ad806f8986a0c3f6, []int{10} -} - -func (m *RemoveResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RemoveResponse.Unmarshal(m, b) -} -func (m *RemoveResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RemoveResponse.Marshal(b, m, deterministic) -} -func (m *RemoveResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RemoveResponse.Merge(m, src) -} -func (m *RemoveResponse) XXX_Size() int { - return xxx_messageInfo_RemoveResponse.Size(m) -} -func (m *RemoveResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RemoveResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RemoveResponse proto.InternalMessageInfo +func (m *RemoveResponse) Reset() { *m = RemoveResponse{} } +func (m *RemoveResponse) String() string { return proto.CompactTextString(m) } +func (*RemoveResponse) ProtoMessage() {} +func (*RemoveResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{10} } func init() { proto.RegisterType((*PutRequest)(nil), "gnoi.file.PutRequest") @@ -815,50 +477,6 @@ func init() { proto.RegisterType((*RemoveResponse)(nil), "gnoi.file.RemoveResponse") } -func init() { proto.RegisterFile("file/file.proto", fileDescriptor_ad806f8986a0c3f6) } - -var fileDescriptor_ad806f8986a0c3f6 = []byte{ - // 594 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x54, 0xdf, 0x6f, 0xd2, 0x50, - 0x14, 0xa6, 0x50, 0x36, 0x38, 0x05, 0xb6, 0x5c, 0xe7, 0x56, 0x1b, 0x17, 0xb1, 0xf3, 0x01, 0x13, - 0x2d, 0xc8, 0x5e, 0xdc, 0x83, 0x33, 0x21, 0x8b, 0xc3, 0x44, 0x13, 0x52, 0x79, 0x5d, 0xc8, 0x1d, - 0x5c, 0x68, 0x63, 0xdb, 0x5b, 0x7b, 0x2f, 0x2e, 0xf3, 0x9f, 0xf0, 0x7f, 0x33, 0xf1, 0xd5, 0xbf, - 0xc5, 0xdc, 0x7b, 0x5b, 0x28, 0x3f, 0x86, 0xbe, 0x94, 0xf6, 0xeb, 0x77, 0xce, 0xf7, 0x7d, 0xe7, - 0x9e, 0x02, 0x07, 0x53, 0x3f, 0x20, 0x6d, 0x71, 0x71, 0xe2, 0x84, 0x72, 0x8a, 0xaa, 0xb3, 0x88, - 0xfa, 0x8e, 0x00, 0x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0x92, 0x6a, 0x0f, 0x26, 0x2d, - 0xee, 0x4a, 0xda, 0x03, 0xa8, 0x24, 0x99, 0x9b, 0x3b, 0x38, 0x19, 0x26, 0x38, 0x62, 0x53, 0x92, - 0x0c, 0xa9, 0x2b, 0x65, 0x33, 0x6b, 0xa7, 0x00, 0x01, 0x1d, 0xe3, 0x60, 0x14, 0x63, 0xee, 0xa5, - 0xce, 0xaa, 0x12, 0x19, 0x60, 0xee, 0xa1, 0x77, 0x70, 0x90, 0x3a, 0x9f, 0xd0, 0xbb, 0x28, 0xa0, - 0x78, 0x92, 0xca, 0x1e, 0x29, 0x59, 0xd5, 0xec, 0x2a, 0x7d, 0xe7, 0x36, 0x92, 0x95, 0x67, 0xfb, - 0x12, 0xcc, 0x4d, 0xe1, 0x34, 0xa4, 0x9d, 0xc6, 0xd0, 0xb6, 0xc5, 0x50, 0x21, 0xec, 0xe7, 0x60, - 0x7c, 0xe1, 0x78, 0x31, 0x47, 0x04, 0x7a, 0xce, 0xa6, 0xbc, 0xb7, 0x2f, 0xa0, 0xa6, 0x28, 0x69, - 0xdb, 0x97, 0x50, 0x66, 0x1c, 0xcb, 0xc1, 0x95, 0x5a, 0x46, 0xf7, 0x51, 0x6e, 0xb7, 0x04, 0xef, - 0x63, 0x34, 0xa5, 0xae, 0x62, 0xd8, 0x3f, 0x35, 0xa8, 0x64, 0xd8, 0xb6, 0xde, 0xe8, 0x0c, 0xea, - 0x01, 0x66, 0x7c, 0x14, 0xd2, 0x89, 0x3f, 0xf5, 0x89, 0xca, 0xae, 0xbb, 0x35, 0x01, 0x7e, 0x4e, - 0xb1, 0xf5, 0x35, 0x29, 0x6d, 0xac, 0x89, 0x68, 0xcd, 0xfc, 0x1f, 0xc4, 0xd4, 0x65, 0xb5, 0xbc, - 0x47, 0x47, 0x50, 0x9e, 0x87, 0x98, 0x7d, 0x35, 0xcb, 0x92, 0xaf, 0x1e, 0xec, 0x0e, 0xd4, 0xc5, - 0x94, 0xbe, 0x93, 0xff, 0xde, 0x9c, 0x43, 0x68, 0x64, 0x15, 0x6a, 0x00, 0xdd, 0xdf, 0x45, 0xd0, - 0xe5, 0xfe, 0xbe, 0x85, 0xd2, 0x35, 0xe1, 0xe8, 0x71, 0x6e, 0x02, 0xcb, 0x9d, 0xb4, 0x8e, 0xd7, - 0xe1, 0x74, 0x57, 0x0a, 0x1d, 0x0d, 0xdd, 0xc0, 0xe1, 0xfa, 0xb1, 0x21, 0x3b, 0xc7, 0x7f, 0x60, - 0x99, 0xac, 0xb3, 0x9d, 0x9c, 0x4c, 0x40, 0x18, 0x1b, 0xcc, 0x57, 0x8d, 0x2d, 0x3f, 0xfb, 0x15, - 0x63, 0xf9, 0x4f, 0xaa, 0xd0, 0xd2, 0xd0, 0x05, 0xe8, 0xe2, 0xc0, 0xd0, 0xf1, 0xda, 0xa9, 0x66, - 0xb5, 0x27, 0x1b, 0xf8, 0x42, 0xf4, 0x3d, 0xec, 0xa9, 0x41, 0x21, 0x33, 0x47, 0x5a, 0x99, 0xb6, - 0xf5, 0x64, 0xcb, 0x9b, 0xac, 0x41, 0xaf, 0xf2, 0xeb, 0xb2, 0xdc, 0x71, 0xde, 0x38, 0x9d, 0xdb, - 0x3d, 0xf9, 0x9f, 0x76, 0xfe, 0x37, 0x00, 0x00, 0xff, 0xff, 0xe0, 0x21, 0x12, 0x79, 0x4f, 0x05, - 0x00, 0x00, -} - // Reference imports to suppress errors if they are not otherwise used. var _ context.Context var _ grpc.ClientConn @@ -867,9 +485,8 @@ var _ grpc.ClientConn // is compatible with the grpc package it is being compiled against. const _ = grpc.SupportPackageIsVersion4 -// FileClient is the client API for File service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +// Client API for File service + type FileClient interface { // Get reads and streams the contents of a file from the target. // The file is streamed by sequential messages, each containing up to @@ -910,7 +527,7 @@ func NewFileClient(cc *grpc.ClientConn) FileClient { } func (c *fileClient) Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (File_GetClient, error) { - stream, err := c.cc.NewStream(ctx, &_File_serviceDesc.Streams[0], "/gnoi.file.File/Get", opts...) + stream, err := grpc.NewClientStream(ctx, &_File_serviceDesc.Streams[0], c.cc, "/gnoi.file.File/Get", opts...) if err != nil { return nil, err } @@ -943,7 +560,7 @@ func (x *fileGetClient) Recv() (*GetResponse, error) { func (c *fileClient) TransferToRemote(ctx context.Context, in *TransferToRemoteRequest, opts ...grpc.CallOption) (*TransferToRemoteResponse, error) { out := new(TransferToRemoteResponse) - err := c.cc.Invoke(ctx, "/gnoi.file.File/TransferToRemote", in, out, opts...) + err := grpc.Invoke(ctx, "/gnoi.file.File/TransferToRemote", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -951,7 +568,7 @@ func (c *fileClient) TransferToRemote(ctx context.Context, in *TransferToRemoteR } func (c *fileClient) Put(ctx context.Context, opts ...grpc.CallOption) (File_PutClient, error) { - stream, err := c.cc.NewStream(ctx, &_File_serviceDesc.Streams[1], "/gnoi.file.File/Put", opts...) + stream, err := grpc.NewClientStream(ctx, &_File_serviceDesc.Streams[1], c.cc, "/gnoi.file.File/Put", opts...) if err != nil { return nil, err } @@ -986,7 +603,7 @@ func (x *filePutClient) CloseAndRecv() (*PutResponse, error) { func (c *fileClient) Stat(ctx context.Context, in *StatRequest, opts ...grpc.CallOption) (*StatResponse, error) { out := new(StatResponse) - err := c.cc.Invoke(ctx, "/gnoi.file.File/Stat", in, out, opts...) + err := grpc.Invoke(ctx, "/gnoi.file.File/Stat", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -995,14 +612,15 @@ func (c *fileClient) Stat(ctx context.Context, in *StatRequest, opts ...grpc.Cal func (c *fileClient) Remove(ctx context.Context, in *RemoveRequest, opts ...grpc.CallOption) (*RemoveResponse, error) { out := new(RemoveResponse) - err := c.cc.Invoke(ctx, "/gnoi.file.File/Remove", in, out, opts...) + err := grpc.Invoke(ctx, "/gnoi.file.File/Remove", in, out, c.cc, opts...) if err != nil { return nil, err } return out, nil } -// FileServer is the server API for File service. +// Server API for File service + type FileServer interface { // Get reads and streams the contents of a file from the target. // The file is streamed by sequential messages, each containing up to @@ -1170,3 +788,45 @@ var _File_serviceDesc = grpc.ServiceDesc{ }, Metadata: "file/file.proto", } + +func init() { proto.RegisterFile("file/file.proto", fileDescriptor0) } + +var fileDescriptor0 = []byte{ + // 575 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x8c, 0x54, 0x5d, 0x6f, 0xd3, 0x30, + 0x14, 0x6d, 0xda, 0x74, 0x6b, 0x6f, 0xda, 0x6e, 0x78, 0x63, 0x0b, 0x11, 0x13, 0xc5, 0xe3, 0xa1, + 0x3c, 0x90, 0x96, 0xee, 0x85, 0x3d, 0x30, 0xa4, 0x6a, 0x62, 0x45, 0x02, 0xa9, 0x0a, 0x7d, 0x9d, + 0x2a, 0xd3, 0xba, 0x34, 0x22, 0x89, 0x43, 0xec, 0x32, 0x8d, 0x3f, 0xc1, 0x7f, 0x43, 0xe2, 0x95, + 0xdf, 0x82, 0x6c, 0x27, 0x6d, 0xfa, 0xb1, 0xb1, 0x97, 0x34, 0x39, 0x3e, 0x3e, 0xf7, 0x9c, 0xeb, + 0xeb, 0xc2, 0xde, 0xd4, 0x0f, 0x68, 0x5b, 0x3e, 0xdc, 0x38, 0x61, 0x82, 0xa1, 0xea, 0xd7, 0x88, + 0xf9, 0xae, 0x04, 0x9c, 0x83, 0x31, 0x0b, 0x43, 0x16, 0xb5, 0xf5, 0x8f, 0x5e, 0x77, 0x1e, 0x89, + 0xdb, 0x98, 0xf2, 0xb6, 0x7a, 0x6a, 0x08, 0xff, 0x35, 0x00, 0x06, 0x73, 0xe1, 0xd1, 0xef, 0x73, + 0xca, 0x05, 0x3a, 0x03, 0x93, 0xc5, 0x34, 0xb2, 0x8d, 0xa6, 0xd1, 0xb2, 0xba, 0x27, 0xee, 0x42, + 0xd0, 0x5d, 0x92, 0xdc, 0x4b, 0x2a, 0x88, 0x1f, 0xf0, 0x7e, 0xc1, 0x53, 0x64, 0xf4, 0x14, 0x2a, + 0x63, 0x16, 0x09, 0x1a, 0x09, 0x6e, 0x17, 0x9b, 0x46, 0xab, 0xd6, 0x2f, 0x78, 0x0b, 0x04, 0xbd, + 0x00, 0x73, 0x46, 0xf8, 0xcc, 0x2e, 0x29, 0xc9, 0x86, 0x96, 0xec, 0x13, 0x3e, 0x1b, 0xde, 0xc6, + 0x54, 0x6a, 0xc8, 0x55, 0xe7, 0x23, 0xec, 0xa6, 0xb2, 0xe8, 0x19, 0x58, 0x09, 0x0d, 0x99, 0xa0, + 0x23, 0x59, 0x58, 0x59, 0xa9, 0x7a, 0xa0, 0xa1, 0xf7, 0x7e, 0x40, 0x51, 0x13, 0xac, 0x98, 0x26, + 0xa1, 0xcf, 0xb9, 0xcf, 0x22, 0x5d, 0xb2, 0xee, 0xe5, 0xa1, 0x5e, 0x15, 0x76, 0x13, 0x6d, 0x16, + 0xd7, 0xc1, 0x52, 0xd6, 0x79, 0xcc, 0x22, 0x4e, 0xf1, 0x2b, 0x80, 0x2b, 0xba, 0x88, 0xfb, 0xbf, + 0x52, 0xf8, 0x1a, 0x2c, 0x45, 0xd7, 0xbb, 0x57, 0x92, 0x1a, 0x77, 0x26, 0x2d, 0xde, 0x97, 0xb4, + 0x07, 0x50, 0x49, 0x32, 0x37, 0x37, 0x70, 0x3c, 0x4c, 0x48, 0xc4, 0xa7, 0x34, 0x19, 0x32, 0x4f, + 0x95, 0xcd, 0xac, 0x9d, 0x00, 0x04, 0x6c, 0x4c, 0x82, 0x51, 0x4c, 0xc4, 0x2c, 0x75, 0x56, 0x55, + 0xc8, 0x80, 0x88, 0x19, 0x7a, 0x0b, 0x7b, 0xa9, 0xf3, 0x09, 0xbb, 0x89, 0x02, 0x46, 0x26, 0x69, + 0xd9, 0x43, 0x5d, 0x56, 0x8b, 0x5d, 0xa6, 0x6b, 0x5e,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52, + 0x85, 0x96, 0x81, 0xce, 0xc1, 0x94, 0x07, 0x86, 0x8e, 0xd6, 0x4e, 0x35, 0xdb, 0x7b, 0xbc, 0x81, + 0x2f, 0x8a, 0xbe, 0x83, 0x1d, 0xdd, 0x28, 0x64, 0xe7, 0x48, 0x2b, 0xdd, 0x76, 0x9e, 0x6c, 0x59, + 0xc9, 0x04, 0x7a, 0x95, 0xdf, 0x17, 0xe5, 0x8e, 0xfb, 0xda, 0xed, 0x7c, 0xd9, 0x51, 0xff, 0x69, + 0x67, 0xff, 0x02, 0x00, 0x00, 0xff, 0xff, 0xfd, 0xd9, 0x93, 0x47, 0x19, 0x05, 0x00, 0x00, +} diff --git a/file/file.proto b/file/file.proto index a9ebe191..70aef125 100644 --- a/file/file.proto +++ b/file/file.proto @@ -18,8 +18,8 @@ syntax = "proto3"; package gnoi.file; -import "github.com/openconfig/gnoi/types/types.proto"; -import "github.com/openconfig/gnoi/common/common.proto"; +import "common/common.proto"; +import "types/types.proto"; option (gnoi.gnoi_version) = "0.1.0"; diff --git a/interface/BUILD.bazel b/interface/BUILD.bazel new file mode 100644 index 00000000..2d94e1c3 --- /dev/null +++ b/interface/BUILD.bazel @@ -0,0 +1,20 @@ +load("@io_bazel_rules_go//proto:go_proto_library.bzl", "go_proto_library") + +proto_library( + name = "interface_proto", + srcs = ["interface.proto"], + deps = [ + "//github.com/openconfig/gnoi:gnoi_proto", + ], +) + +go_proto_library( + name = "go_default_library", + srcs = ["interface.proto"], + deps = [ + "//github.com/openconfig/gnoi:go_default_library" + ], + visibility = ["//visibility:public"], + rules_go_repo_only_for_internal_use = "@", + has_services = 1, +) diff --git a/interface/interface.pb.go b/interface/interface.pb.go index 26dab8e8..a8e99d87 100644 --- a/interface/interface.pb.go +++ b/interface/interface.pb.go @@ -1,15 +1,31 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. +// Code generated by protoc-gen-go. // source: interface/interface.proto - +// DO NOT EDIT! + +/* +Package gnoi_interface is a generated protocol buffer package. + +It is generated from these files: + interface/interface.proto + +It has these top-level messages: + SetLoopbackModeRequest + SetLoopbackModeResponse + GetLoopbackModeRequest + GetLoopbackModeResponse + ClearInterfaceCountersRequest + ClearInterfaceCountersResponse +*/ package gnoi_interface +import proto "github.com/golang/protobuf/proto" +import fmt "fmt" +import math "math" +import gnoi "types" + import ( - fmt "fmt" - proto "github.com/golang/protobuf/proto" - types "github.com/openconfig/gnoi/types" context "golang.org/x/net/context" grpc "google.golang.org/grpc" - math "math" ) // Reference imports to suppress errors if they are not otherwise used. @@ -28,116 +44,40 @@ const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package // device, available modes are "none", "mac", "phy", "phy_remote", // "framer_facility", and "framer_terminal". type SetLoopbackModeRequest struct { - Interface *types.Path `protobuf:"bytes,1,opt,name=interface,proto3" json:"interface,omitempty"` - Mode string `protobuf:"bytes,2,opt,name=mode,proto3" json:"mode,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Interface *gnoi.Path `protobuf:"bytes,1,opt,name=interface" json:"interface,omitempty"` + Mode string `protobuf:"bytes,2,opt,name=mode" json:"mode,omitempty"` } -func (m *SetLoopbackModeRequest) Reset() { *m = SetLoopbackModeRequest{} } -func (m *SetLoopbackModeRequest) String() string { return proto.CompactTextString(m) } -func (*SetLoopbackModeRequest) ProtoMessage() {} -func (*SetLoopbackModeRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_460c38aebb3cb2d6, []int{0} -} - -func (m *SetLoopbackModeRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SetLoopbackModeRequest.Unmarshal(m, b) -} -func (m *SetLoopbackModeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SetLoopbackModeRequest.Marshal(b, m, deterministic) -} -func (m *SetLoopbackModeRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_SetLoopbackModeRequest.Merge(m, src) -} -func (m *SetLoopbackModeRequest) XXX_Size() int { - return xxx_messageInfo_SetLoopbackModeRequest.Size(m) -} -func (m *SetLoopbackModeRequest) XXX_DiscardUnknown() { - xxx_messageInfo_SetLoopbackModeRequest.DiscardUnknown(m) -} +func (m *SetLoopbackModeRequest) Reset() { *m = SetLoopbackModeRequest{} } +func (m *SetLoopbackModeRequest) String() string { return proto.CompactTextString(m) } +func (*SetLoopbackModeRequest) ProtoMessage() {} +func (*SetLoopbackModeRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } -var xxx_messageInfo_SetLoopbackModeRequest proto.InternalMessageInfo - -func (m *SetLoopbackModeRequest) GetInterface() *types.Path { +func (m *SetLoopbackModeRequest) GetInterface() *gnoi.Path { if m != nil { return m.Interface } return nil } -func (m *SetLoopbackModeRequest) GetMode() string { - if m != nil { - return m.Mode - } - return "" -} - type SetLoopbackModeResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *SetLoopbackModeResponse) Reset() { *m = SetLoopbackModeResponse{} } -func (m *SetLoopbackModeResponse) String() string { return proto.CompactTextString(m) } -func (*SetLoopbackModeResponse) ProtoMessage() {} -func (*SetLoopbackModeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_460c38aebb3cb2d6, []int{1} -} - -func (m *SetLoopbackModeResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SetLoopbackModeResponse.Unmarshal(m, b) -} -func (m *SetLoopbackModeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SetLoopbackModeResponse.Marshal(b, m, deterministic) -} -func (m *SetLoopbackModeResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_SetLoopbackModeResponse.Merge(m, src) -} -func (m *SetLoopbackModeResponse) XXX_Size() int { - return xxx_messageInfo_SetLoopbackModeResponse.Size(m) -} -func (m *SetLoopbackModeResponse) XXX_DiscardUnknown() { - xxx_messageInfo_SetLoopbackModeResponse.DiscardUnknown(m) } -var xxx_messageInfo_SetLoopbackModeResponse proto.InternalMessageInfo +func (m *SetLoopbackModeResponse) Reset() { *m = SetLoopbackModeResponse{} } +func (m *SetLoopbackModeResponse) String() string { return proto.CompactTextString(m) } +func (*SetLoopbackModeResponse) ProtoMessage() {} +func (*SetLoopbackModeResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } type GetLoopbackModeRequest struct { - Interface *types.Path `protobuf:"bytes,1,opt,name=interface,proto3" json:"interface,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Interface *gnoi.Path `protobuf:"bytes,1,opt,name=interface" json:"interface,omitempty"` } -func (m *GetLoopbackModeRequest) Reset() { *m = GetLoopbackModeRequest{} } -func (m *GetLoopbackModeRequest) String() string { return proto.CompactTextString(m) } -func (*GetLoopbackModeRequest) ProtoMessage() {} -func (*GetLoopbackModeRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_460c38aebb3cb2d6, []int{2} -} +func (m *GetLoopbackModeRequest) Reset() { *m = GetLoopbackModeRequest{} } +func (m *GetLoopbackModeRequest) String() string { return proto.CompactTextString(m) } +func (*GetLoopbackModeRequest) ProtoMessage() {} +func (*GetLoopbackModeRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} } -func (m *GetLoopbackModeRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetLoopbackModeRequest.Unmarshal(m, b) -} -func (m *GetLoopbackModeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetLoopbackModeRequest.Marshal(b, m, deterministic) -} -func (m *GetLoopbackModeRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetLoopbackModeRequest.Merge(m, src) -} -func (m *GetLoopbackModeRequest) XXX_Size() int { - return xxx_messageInfo_GetLoopbackModeRequest.Size(m) -} -func (m *GetLoopbackModeRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetLoopbackModeRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_GetLoopbackModeRequest proto.InternalMessageInfo - -func (m *GetLoopbackModeRequest) GetInterface() *types.Path { +func (m *GetLoopbackModeRequest) GetInterface() *gnoi.Path { if m != nil { return m.Interface } @@ -145,77 +85,24 @@ func (m *GetLoopbackModeRequest) GetInterface() *types.Path { } type GetLoopbackModeResponse struct { - Mode string `protobuf:"bytes,1,opt,name=mode,proto3" json:"mode,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetLoopbackModeResponse) Reset() { *m = GetLoopbackModeResponse{} } -func (m *GetLoopbackModeResponse) String() string { return proto.CompactTextString(m) } -func (*GetLoopbackModeResponse) ProtoMessage() {} -func (*GetLoopbackModeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_460c38aebb3cb2d6, []int{3} -} - -func (m *GetLoopbackModeResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetLoopbackModeResponse.Unmarshal(m, b) -} -func (m *GetLoopbackModeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetLoopbackModeResponse.Marshal(b, m, deterministic) -} -func (m *GetLoopbackModeResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetLoopbackModeResponse.Merge(m, src) -} -func (m *GetLoopbackModeResponse) XXX_Size() int { - return xxx_messageInfo_GetLoopbackModeResponse.Size(m) -} -func (m *GetLoopbackModeResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetLoopbackModeResponse.DiscardUnknown(m) + Mode string `protobuf:"bytes,1,opt,name=mode" json:"mode,omitempty"` } -var xxx_messageInfo_GetLoopbackModeResponse proto.InternalMessageInfo - -func (m *GetLoopbackModeResponse) GetMode() string { - if m != nil { - return m.Mode - } - return "" -} +func (m *GetLoopbackModeResponse) Reset() { *m = GetLoopbackModeResponse{} } +func (m *GetLoopbackModeResponse) String() string { return proto.CompactTextString(m) } +func (*GetLoopbackModeResponse) ProtoMessage() {} +func (*GetLoopbackModeResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} } type ClearInterfaceCountersRequest struct { - Interface []*types.Path `protobuf:"bytes,1,rep,name=interface,proto3" json:"interface,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Interface []*gnoi.Path `protobuf:"bytes,1,rep,name=interface" json:"interface,omitempty"` } -func (m *ClearInterfaceCountersRequest) Reset() { *m = ClearInterfaceCountersRequest{} } -func (m *ClearInterfaceCountersRequest) String() string { return proto.CompactTextString(m) } -func (*ClearInterfaceCountersRequest) ProtoMessage() {} -func (*ClearInterfaceCountersRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_460c38aebb3cb2d6, []int{4} -} +func (m *ClearInterfaceCountersRequest) Reset() { *m = ClearInterfaceCountersRequest{} } +func (m *ClearInterfaceCountersRequest) String() string { return proto.CompactTextString(m) } +func (*ClearInterfaceCountersRequest) ProtoMessage() {} +func (*ClearInterfaceCountersRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} } -func (m *ClearInterfaceCountersRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ClearInterfaceCountersRequest.Unmarshal(m, b) -} -func (m *ClearInterfaceCountersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ClearInterfaceCountersRequest.Marshal(b, m, deterministic) -} -func (m *ClearInterfaceCountersRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ClearInterfaceCountersRequest.Merge(m, src) -} -func (m *ClearInterfaceCountersRequest) XXX_Size() int { - return xxx_messageInfo_ClearInterfaceCountersRequest.Size(m) -} -func (m *ClearInterfaceCountersRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ClearInterfaceCountersRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_ClearInterfaceCountersRequest proto.InternalMessageInfo - -func (m *ClearInterfaceCountersRequest) GetInterface() []*types.Path { +func (m *ClearInterfaceCountersRequest) GetInterface() []*gnoi.Path { if m != nil { return m.Interface } @@ -223,35 +110,12 @@ func (m *ClearInterfaceCountersRequest) GetInterface() []*types.Path { } type ClearInterfaceCountersResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ClearInterfaceCountersResponse) Reset() { *m = ClearInterfaceCountersResponse{} } -func (m *ClearInterfaceCountersResponse) String() string { return proto.CompactTextString(m) } -func (*ClearInterfaceCountersResponse) ProtoMessage() {} -func (*ClearInterfaceCountersResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_460c38aebb3cb2d6, []int{5} } -func (m *ClearInterfaceCountersResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ClearInterfaceCountersResponse.Unmarshal(m, b) -} -func (m *ClearInterfaceCountersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ClearInterfaceCountersResponse.Marshal(b, m, deterministic) -} -func (m *ClearInterfaceCountersResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ClearInterfaceCountersResponse.Merge(m, src) -} -func (m *ClearInterfaceCountersResponse) XXX_Size() int { - return xxx_messageInfo_ClearInterfaceCountersResponse.Size(m) -} -func (m *ClearInterfaceCountersResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ClearInterfaceCountersResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_ClearInterfaceCountersResponse proto.InternalMessageInfo +func (m *ClearInterfaceCountersResponse) Reset() { *m = ClearInterfaceCountersResponse{} } +func (m *ClearInterfaceCountersResponse) String() string { return proto.CompactTextString(m) } +func (*ClearInterfaceCountersResponse) ProtoMessage() {} +func (*ClearInterfaceCountersResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} } func init() { proto.RegisterType((*SetLoopbackModeRequest)(nil), "gnoi.interface.SetLoopbackModeRequest") @@ -262,31 +126,6 @@ func init() { proto.RegisterType((*ClearInterfaceCountersResponse)(nil), "gnoi.interface.ClearInterfaceCountersResponse") } -func init() { proto.RegisterFile("interface/interface.proto", fileDescriptor_460c38aebb3cb2d6) } - -var fileDescriptor_460c38aebb3cb2d6 = []byte{ - // 295 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xcc, 0xcc, 0x2b, 0x49, - 0x2d, 0x4a, 0x4b, 0x4c, 0x4e, 0xd5, 0x87, 0xb3, 0xf4, 0x0a, 0x8a, 0xf2, 0x4b, 0xf2, 0x85, 0xf8, - 0xd2, 0xf3, 0xf2, 0x33, 0xf5, 0xe0, 0xa2, 0x52, 0x3a, 0xe9, 0x99, 0x25, 0x19, 0xa5, 0x49, 0x7a, - 0xc9, 0xf9, 0xb9, 0xfa, 0xf9, 0x05, 0xa9, 0x79, 0xc9, 0xf9, 0x79, 0x69, 0x99, 0xe9, 0xfa, 0x20, - 0x55, 0xfa, 0x25, 0x95, 0x05, 0xa9, 0xc5, 0x10, 0x12, 0xa2, 0x5b, 0x29, 0x8c, 0x4b, 0x2c, 0x38, - 0xb5, 0xc4, 0x27, 0x3f, 0xbf, 0x20, 0x29, 0x31, 0x39, 0xdb, 0x37, 0x3f, 0x25, 0x35, 0x28, 0xb5, - 0xb0, 0x34, 0xb5, 0xb8, 0x44, 0x48, 0x83, 0x8b, 0x13, 0x6e, 0xa8, 0x04, 0xa3, 0x02, 0xa3, 0x06, - 0xb7, 0x11, 0x97, 0x1e, 0xd8, 0xae, 0x80, 0xc4, 0x92, 0x8c, 0x20, 0x84, 0xa4, 0x90, 0x10, 0x17, - 0x4b, 0x6e, 0x7e, 0x4a, 0xaa, 0x04, 0x93, 0x02, 0xa3, 0x06, 0x67, 0x10, 0x98, 0xad, 0x24, 0xc9, - 0x25, 0x8e, 0x61, 0x6e, 0x71, 0x41, 0x7e, 0x5e, 0x71, 0xaa, 0x92, 0x13, 0x97, 0x98, 0x3b, 0x85, - 0x56, 0x2a, 0xe9, 0x72, 0x89, 0xbb, 0x63, 0x37, 0x1e, 0xee, 0x1a, 0x46, 0x24, 0xd7, 0x78, 0x72, - 0xc9, 0x3a, 0xe7, 0xa4, 0x26, 0x16, 0x79, 0xc2, 0x0c, 0x70, 0xce, 0x2f, 0x05, 0x31, 0x8b, 0x71, - 0xd8, 0xcc, 0x8c, 0xdb, 0x66, 0x05, 0x2e, 0x39, 0x5c, 0x46, 0x41, 0x1c, 0x60, 0x74, 0x89, 0x89, - 0x8b, 0x13, 0x2e, 0x2b, 0x94, 0xc2, 0xc5, 0x8f, 0x16, 0x10, 0x42, 0x6a, 0x7a, 0xa8, 0x51, 0xa6, - 0x87, 0x3d, 0x06, 0xa4, 0xd4, 0x09, 0xaa, 0x83, 0x86, 0x28, 0x03, 0xc8, 0x16, 0x77, 0x42, 0xb6, - 0xb8, 0x13, 0x69, 0x8b, 0x3b, 0x4e, 0x5b, 0x2a, 0xb9, 0xc4, 0xb0, 0xfb, 0x5d, 0x48, 0x17, 0xdd, - 0x10, 0xbc, 0xc1, 0x2d, 0xa5, 0x47, 0xac, 0x72, 0x98, 0xd5, 0x4e, 0x1c, 0x97, 0xec, 0x58, 0x0d, - 0xf4, 0x0c, 0xf5, 0x0c, 0x92, 0xd8, 0xc0, 0x09, 0xd7, 0x18, 0x10, 0x00, 0x00, 0xff, 0xff, 0x6a, - 0x48, 0x50, 0x47, 0x13, 0x03, 0x00, 0x00, -} - // Reference imports to suppress errors if they are not otherwise used. var _ context.Context var _ grpc.ClientConn @@ -295,9 +134,8 @@ var _ grpc.ClientConn // is compatible with the grpc package it is being compiled against. const _ = grpc.SupportPackageIsVersion4 -// InterfaceClient is the client API for Interface service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +// Client API for Interface service + type InterfaceClient interface { // SetLoopbackMode is used to set the mode of loopback on a interface. SetLoopbackMode(ctx context.Context, in *SetLoopbackModeRequest, opts ...grpc.CallOption) (*SetLoopbackModeResponse, error) @@ -317,7 +155,7 @@ func NewInterfaceClient(cc *grpc.ClientConn) InterfaceClient { func (c *interfaceClient) SetLoopbackMode(ctx context.Context, in *SetLoopbackModeRequest, opts ...grpc.CallOption) (*SetLoopbackModeResponse, error) { out := new(SetLoopbackModeResponse) - err := c.cc.Invoke(ctx, "/gnoi.interface.Interface/SetLoopbackMode", in, out, opts...) + err := grpc.Invoke(ctx, "/gnoi.interface.Interface/SetLoopbackMode", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -326,7 +164,7 @@ func (c *interfaceClient) SetLoopbackMode(ctx context.Context, in *SetLoopbackMo func (c *interfaceClient) GetLoopbackMode(ctx context.Context, in *GetLoopbackModeRequest, opts ...grpc.CallOption) (*GetLoopbackModeResponse, error) { out := new(GetLoopbackModeResponse) - err := c.cc.Invoke(ctx, "/gnoi.interface.Interface/GetLoopbackMode", in, out, opts...) + err := grpc.Invoke(ctx, "/gnoi.interface.Interface/GetLoopbackMode", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -335,14 +173,15 @@ func (c *interfaceClient) GetLoopbackMode(ctx context.Context, in *GetLoopbackMo func (c *interfaceClient) ClearInterfaceCounters(ctx context.Context, in *ClearInterfaceCountersRequest, opts ...grpc.CallOption) (*ClearInterfaceCountersResponse, error) { out := new(ClearInterfaceCountersResponse) - err := c.cc.Invoke(ctx, "/gnoi.interface.Interface/ClearInterfaceCounters", in, out, opts...) + err := grpc.Invoke(ctx, "/gnoi.interface.Interface/ClearInterfaceCounters", in, out, c.cc, opts...) if err != nil { return nil, err } return out, nil } -// InterfaceServer is the server API for Interface service. +// Server API for Interface service + type InterfaceServer interface { // SetLoopbackMode is used to set the mode of loopback on a interface. SetLoopbackMode(context.Context, *SetLoopbackModeRequest) (*SetLoopbackModeResponse, error) @@ -430,3 +269,26 @@ var _Interface_serviceDesc = grpc.ServiceDesc{ Streams: []grpc.StreamDesc{}, Metadata: "interface/interface.proto", } + +func init() { proto.RegisterFile("interface/interface.proto", fileDescriptor0) } + +var fileDescriptor0 = []byte{ + // 271 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xe2, 0x92, 0xcc, 0xcc, 0x2b, 0x49, + 0x2d, 0x4a, 0x4b, 0x4c, 0x4e, 0xd5, 0x87, 0xb3, 0xf4, 0x0a, 0x8a, 0xf2, 0x4b, 0xf2, 0x85, 0xf8, + 0xd2, 0xf3, 0xf2, 0x33, 0xf5, 0xe0, 0xa2, 0x52, 0x82, 0x25, 0x95, 0x05, 0xa9, 0xc5, 0xfa, 0x60, + 0x12, 0xa2, 0x44, 0x29, 0x8c, 0x4b, 0x2c, 0x38, 0xb5, 0xc4, 0x27, 0x3f, 0xbf, 0x20, 0x29, 0x31, + 0x39, 0xdb, 0x37, 0x3f, 0x25, 0x35, 0x28, 0xb5, 0xb0, 0x34, 0xb5, 0xb8, 0x44, 0x48, 0x83, 0x8b, + 0x13, 0xae, 0x53, 0x82, 0x51, 0x81, 0x51, 0x83, 0xdb, 0x88, 0x4b, 0x0f, 0x6c, 0x60, 0x40, 0x62, + 0x49, 0x46, 0x10, 0x42, 0x52, 0x48, 0x88, 0x8b, 0x25, 0x37, 0x3f, 0x25, 0x55, 0x82, 0x49, 0x81, + 0x51, 0x83, 0x33, 0x08, 0xcc, 0x56, 0x92, 0xe4, 0x12, 0xc7, 0x30, 0xb7, 0xb8, 0x20, 0x3f, 0xaf, + 0x38, 0x55, 0xc9, 0x89, 0x4b, 0xcc, 0x9d, 0x42, 0x2b, 0x95, 0x74, 0xb9, 0xc4, 0xdd, 0xb1, 0x1b, + 0x0f, 0x77, 0x0d, 0x23, 0x92, 0x6b, 0x3c, 0xb9, 0x64, 0x9d, 0x73, 0x52, 0x13, 0x8b, 0x3c, 0x61, + 0x06, 0x38, 0xe7, 0x97, 0x82, 0x98, 0xc5, 0x38, 0x6c, 0x66, 0xc6, 0x6d, 0xb3, 0x02, 0x97, 0x1c, + 0x2e, 0xa3, 0x20, 0x0e, 0x30, 0xba, 0xc4, 0xc4, 0xc5, 0x09, 0x97, 0x15, 0x4a, 0xe1, 0xe2, 0x47, + 0x0b, 0x08, 0x21, 0x35, 0x3d, 0xd4, 0x78, 0xd1, 0xc3, 0x1e, 0x03, 0x52, 0xea, 0x04, 0xd5, 0x41, + 0x43, 0x94, 0x01, 0x64, 0x8b, 0x3b, 0x21, 0x5b, 0xdc, 0x89, 0xb4, 0xc5, 0x1d, 0xa7, 0x2d, 0x95, + 0x5c, 0x62, 0xd8, 0xfd, 0x2e, 0xa4, 0x8b, 0x6e, 0x08, 0xde, 0xe0, 0x96, 0xd2, 0x23, 0x56, 0x39, + 0xcc, 0x6a, 0x27, 0x8e, 0x4b, 0x76, 0xac, 0x06, 0x7a, 0x86, 0x7a, 0x06, 0x49, 0x6c, 0xe0, 0x84, + 0x6b, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0x30, 0x48, 0x72, 0xef, 0xf8, 0x02, 0x00, 0x00, +} diff --git a/interface/interface.proto b/interface/interface.proto index bba18fab..4cff3200 100644 --- a/interface/interface.proto +++ b/interface/interface.proto @@ -18,7 +18,7 @@ syntax = "proto3"; package gnoi.interface; -import "github.com/openconfig/gnoi/types/types.proto"; +import "types/types.proto"; option (gnoi.gnoi_version) = "0.1.0"; diff --git a/layer2/BUILD.bazel b/layer2/BUILD.bazel new file mode 100644 index 00000000..9c64d5c4 --- /dev/null +++ b/layer2/BUILD.bazel @@ -0,0 +1,20 @@ +load("@io_bazel_rules_go//proto:go_proto_library.bzl", "go_proto_library") + +proto_library( + name = "layer2_proto", + srcs = ["layer2.proto"], + deps = [ + "//github.com/openconfig/gnoi:gnoi_proto", + ], +) + +go_proto_library( + name = "go_default_library", + srcs = ["layer2.proto"], + deps = [ + "//github.com/openconfig/gnoi:go_default_library" + ], + visibility = ["//visibility:public"], + rules_go_repo_only_for_internal_use = "@", + has_services = 1, +) diff --git a/layer2/layer2.pb.go b/layer2/layer2.pb.go index 8ee39b63..610ac40c 100644 --- a/layer2/layer2.pb.go +++ b/layer2/layer2.pb.go @@ -1,15 +1,35 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. +// Code generated by protoc-gen-go. // source: layer2/layer2.proto - +// DO NOT EDIT! + +/* +Package gnoi_layer2 is a generated protocol buffer package. + +It is generated from these files: + layer2/layer2.proto + +It has these top-level messages: + ClearNeighborDiscoveryRequest + ClearNeighborDiscoveryResponse + ClearSpanningTreeRequest + ClearSpanningTreeResponse + PerformBERTRequest + PerformBERTResponse + ClearLLDPInterfaceRequest + ClearLLDPInterfaceResponse + SendWakeOnLANRequest + SendWakeOnLANResponse +*/ package gnoi_layer2 +import proto "github.com/golang/protobuf/proto" +import fmt "fmt" +import math "math" +import gnoi "types" + import ( - fmt "fmt" - proto "github.com/golang/protobuf/proto" - types "github.com/openconfig/gnoi/types" context "golang.org/x/net/context" grpc "google.golang.org/grpc" - math "math" ) // Reference imports to suppress errors if they are not otherwise used. @@ -40,7 +60,6 @@ var PerformBERTResponse_BERTState_name = map[int32]string{ 3: "COMPLETE", 4: "ERROR", } - var PerformBERTResponse_BERTState_value = map[string]int32{ "UNKNOWN": 0, "DISABLED": 1, @@ -52,122 +71,38 @@ var PerformBERTResponse_BERTState_value = map[string]int32{ func (x PerformBERTResponse_BERTState) String() string { return proto.EnumName(PerformBERTResponse_BERTState_name, int32(x)) } - func (PerformBERTResponse_BERTState) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_dff9ec617d9e4348, []int{5, 0} + return fileDescriptor0, []int{5, 0} } type ClearNeighborDiscoveryRequest struct { - Protocol types.L3Protocol `protobuf:"varint,1,opt,name=protocol,proto3,enum=gnoi.L3Protocol" json:"protocol,omitempty"` - Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ClearNeighborDiscoveryRequest) Reset() { *m = ClearNeighborDiscoveryRequest{} } -func (m *ClearNeighborDiscoveryRequest) String() string { return proto.CompactTextString(m) } -func (*ClearNeighborDiscoveryRequest) ProtoMessage() {} -func (*ClearNeighborDiscoveryRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_dff9ec617d9e4348, []int{0} -} - -func (m *ClearNeighborDiscoveryRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ClearNeighborDiscoveryRequest.Unmarshal(m, b) -} -func (m *ClearNeighborDiscoveryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ClearNeighborDiscoveryRequest.Marshal(b, m, deterministic) -} -func (m *ClearNeighborDiscoveryRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ClearNeighborDiscoveryRequest.Merge(m, src) -} -func (m *ClearNeighborDiscoveryRequest) XXX_Size() int { - return xxx_messageInfo_ClearNeighborDiscoveryRequest.Size(m) -} -func (m *ClearNeighborDiscoveryRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ClearNeighborDiscoveryRequest.DiscardUnknown(m) + Protocol gnoi.L3Protocol `protobuf:"varint,1,opt,name=protocol,enum=gnoi.L3Protocol" json:"protocol,omitempty"` + Address string `protobuf:"bytes,2,opt,name=address" json:"address,omitempty"` } -var xxx_messageInfo_ClearNeighborDiscoveryRequest proto.InternalMessageInfo - -func (m *ClearNeighborDiscoveryRequest) GetProtocol() types.L3Protocol { - if m != nil { - return m.Protocol - } - return types.L3Protocol_UNSPECIFIED -} - -func (m *ClearNeighborDiscoveryRequest) GetAddress() string { - if m != nil { - return m.Address - } - return "" -} +func (m *ClearNeighborDiscoveryRequest) Reset() { *m = ClearNeighborDiscoveryRequest{} } +func (m *ClearNeighborDiscoveryRequest) String() string { return proto.CompactTextString(m) } +func (*ClearNeighborDiscoveryRequest) ProtoMessage() {} +func (*ClearNeighborDiscoveryRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } type ClearNeighborDiscoveryResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` } -func (m *ClearNeighborDiscoveryResponse) Reset() { *m = ClearNeighborDiscoveryResponse{} } -func (m *ClearNeighborDiscoveryResponse) String() string { return proto.CompactTextString(m) } -func (*ClearNeighborDiscoveryResponse) ProtoMessage() {} -func (*ClearNeighborDiscoveryResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_dff9ec617d9e4348, []int{1} -} - -func (m *ClearNeighborDiscoveryResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ClearNeighborDiscoveryResponse.Unmarshal(m, b) -} -func (m *ClearNeighborDiscoveryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ClearNeighborDiscoveryResponse.Marshal(b, m, deterministic) -} -func (m *ClearNeighborDiscoveryResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ClearNeighborDiscoveryResponse.Merge(m, src) -} -func (m *ClearNeighborDiscoveryResponse) XXX_Size() int { - return xxx_messageInfo_ClearNeighborDiscoveryResponse.Size(m) -} -func (m *ClearNeighborDiscoveryResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ClearNeighborDiscoveryResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_ClearNeighborDiscoveryResponse proto.InternalMessageInfo +func (m *ClearNeighborDiscoveryResponse) Reset() { *m = ClearNeighborDiscoveryResponse{} } +func (m *ClearNeighborDiscoveryResponse) String() string { return proto.CompactTextString(m) } +func (*ClearNeighborDiscoveryResponse) ProtoMessage() {} +func (*ClearNeighborDiscoveryResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } type ClearSpanningTreeRequest struct { - Interface *types.Path `protobuf:"bytes,1,opt,name=interface,proto3" json:"interface,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ClearSpanningTreeRequest) Reset() { *m = ClearSpanningTreeRequest{} } -func (m *ClearSpanningTreeRequest) String() string { return proto.CompactTextString(m) } -func (*ClearSpanningTreeRequest) ProtoMessage() {} -func (*ClearSpanningTreeRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_dff9ec617d9e4348, []int{2} + Interface *gnoi.Path `protobuf:"bytes,1,opt,name=interface" json:"interface,omitempty"` } -func (m *ClearSpanningTreeRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ClearSpanningTreeRequest.Unmarshal(m, b) -} -func (m *ClearSpanningTreeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ClearSpanningTreeRequest.Marshal(b, m, deterministic) -} -func (m *ClearSpanningTreeRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ClearSpanningTreeRequest.Merge(m, src) -} -func (m *ClearSpanningTreeRequest) XXX_Size() int { - return xxx_messageInfo_ClearSpanningTreeRequest.Size(m) -} -func (m *ClearSpanningTreeRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ClearSpanningTreeRequest.DiscardUnknown(m) -} +func (m *ClearSpanningTreeRequest) Reset() { *m = ClearSpanningTreeRequest{} } +func (m *ClearSpanningTreeRequest) String() string { return proto.CompactTextString(m) } +func (*ClearSpanningTreeRequest) ProtoMessage() {} +func (*ClearSpanningTreeRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} } -var xxx_messageInfo_ClearSpanningTreeRequest proto.InternalMessageInfo - -func (m *ClearSpanningTreeRequest) GetInterface() *types.Path { +func (m *ClearSpanningTreeRequest) GetInterface() *gnoi.Path { if m != nil { return m.Interface } @@ -175,78 +110,25 @@ func (m *ClearSpanningTreeRequest) GetInterface() *types.Path { } type ClearSpanningTreeResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ClearSpanningTreeResponse) Reset() { *m = ClearSpanningTreeResponse{} } -func (m *ClearSpanningTreeResponse) String() string { return proto.CompactTextString(m) } -func (*ClearSpanningTreeResponse) ProtoMessage() {} -func (*ClearSpanningTreeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_dff9ec617d9e4348, []int{3} -} - -func (m *ClearSpanningTreeResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ClearSpanningTreeResponse.Unmarshal(m, b) -} -func (m *ClearSpanningTreeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ClearSpanningTreeResponse.Marshal(b, m, deterministic) -} -func (m *ClearSpanningTreeResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ClearSpanningTreeResponse.Merge(m, src) -} -func (m *ClearSpanningTreeResponse) XXX_Size() int { - return xxx_messageInfo_ClearSpanningTreeResponse.Size(m) -} -func (m *ClearSpanningTreeResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ClearSpanningTreeResponse.DiscardUnknown(m) } -var xxx_messageInfo_ClearSpanningTreeResponse proto.InternalMessageInfo +func (m *ClearSpanningTreeResponse) Reset() { *m = ClearSpanningTreeResponse{} } +func (m *ClearSpanningTreeResponse) String() string { return proto.CompactTextString(m) } +func (*ClearSpanningTreeResponse) ProtoMessage() {} +func (*ClearSpanningTreeResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} } type PerformBERTRequest struct { // ID for retrieving a previous BERT run data - optional. - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Interface *types.Path `protobuf:"bytes,2,opt,name=interface,proto3" json:"interface,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *PerformBERTRequest) Reset() { *m = PerformBERTRequest{} } -func (m *PerformBERTRequest) String() string { return proto.CompactTextString(m) } -func (*PerformBERTRequest) ProtoMessage() {} -func (*PerformBERTRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_dff9ec617d9e4348, []int{4} -} - -func (m *PerformBERTRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PerformBERTRequest.Unmarshal(m, b) -} -func (m *PerformBERTRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PerformBERTRequest.Marshal(b, m, deterministic) -} -func (m *PerformBERTRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_PerformBERTRequest.Merge(m, src) -} -func (m *PerformBERTRequest) XXX_Size() int { - return xxx_messageInfo_PerformBERTRequest.Size(m) -} -func (m *PerformBERTRequest) XXX_DiscardUnknown() { - xxx_messageInfo_PerformBERTRequest.DiscardUnknown(m) + Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` + Interface *gnoi.Path `protobuf:"bytes,2,opt,name=interface" json:"interface,omitempty"` } -var xxx_messageInfo_PerformBERTRequest proto.InternalMessageInfo +func (m *PerformBERTRequest) Reset() { *m = PerformBERTRequest{} } +func (m *PerformBERTRequest) String() string { return proto.CompactTextString(m) } +func (*PerformBERTRequest) ProtoMessage() {} +func (*PerformBERTRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} } -func (m *PerformBERTRequest) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *PerformBERTRequest) GetInterface() *types.Path { +func (m *PerformBERTRequest) GetInterface() *gnoi.Path { if m != nil { return m.Interface } @@ -254,117 +136,29 @@ func (m *PerformBERTRequest) GetInterface() *types.Path { } type PerformBERTResponse struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - State PerformBERTResponse_BERTState `protobuf:"varint,2,opt,name=state,proto3,enum=gnoi.layer2.PerformBERTResponse_BERTState" json:"state,omitempty"` - ElapsedPeriod int64 `protobuf:"varint,3,opt,name=elapsed_period,json=elapsedPeriod,proto3" json:"elapsed_period,omitempty"` - Pattern []byte `protobuf:"bytes,4,opt,name=pattern,proto3" json:"pattern,omitempty"` - Errors int64 `protobuf:"varint,5,opt,name=errors,proto3" json:"errors,omitempty"` - ReceivedBits int64 `protobuf:"varint,6,opt,name=received_bits,json=receivedBits,proto3" json:"received_bits,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *PerformBERTResponse) Reset() { *m = PerformBERTResponse{} } -func (m *PerformBERTResponse) String() string { return proto.CompactTextString(m) } -func (*PerformBERTResponse) ProtoMessage() {} -func (*PerformBERTResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_dff9ec617d9e4348, []int{5} -} - -func (m *PerformBERTResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PerformBERTResponse.Unmarshal(m, b) -} -func (m *PerformBERTResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PerformBERTResponse.Marshal(b, m, deterministic) -} -func (m *PerformBERTResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_PerformBERTResponse.Merge(m, src) -} -func (m *PerformBERTResponse) XXX_Size() int { - return xxx_messageInfo_PerformBERTResponse.Size(m) -} -func (m *PerformBERTResponse) XXX_DiscardUnknown() { - xxx_messageInfo_PerformBERTResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_PerformBERTResponse proto.InternalMessageInfo - -func (m *PerformBERTResponse) GetId() string { - if m != nil { - return m.Id - } - return "" + Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` + State PerformBERTResponse_BERTState `protobuf:"varint,2,opt,name=state,enum=gnoi.layer2.PerformBERTResponse_BERTState" json:"state,omitempty"` + ElapsedPeriod int64 `protobuf:"varint,3,opt,name=elapsed_period,json=elapsedPeriod" json:"elapsed_period,omitempty"` + Pattern []byte `protobuf:"bytes,4,opt,name=pattern,proto3" json:"pattern,omitempty"` + Errors int64 `protobuf:"varint,5,opt,name=errors" json:"errors,omitempty"` + ReceivedBits int64 `protobuf:"varint,6,opt,name=received_bits,json=receivedBits" json:"received_bits,omitempty"` } -func (m *PerformBERTResponse) GetState() PerformBERTResponse_BERTState { - if m != nil { - return m.State - } - return PerformBERTResponse_UNKNOWN -} - -func (m *PerformBERTResponse) GetElapsedPeriod() int64 { - if m != nil { - return m.ElapsedPeriod - } - return 0 -} - -func (m *PerformBERTResponse) GetPattern() []byte { - if m != nil { - return m.Pattern - } - return nil -} - -func (m *PerformBERTResponse) GetErrors() int64 { - if m != nil { - return m.Errors - } - return 0 -} - -func (m *PerformBERTResponse) GetReceivedBits() int64 { - if m != nil { - return m.ReceivedBits - } - return 0 -} +func (m *PerformBERTResponse) Reset() { *m = PerformBERTResponse{} } +func (m *PerformBERTResponse) String() string { return proto.CompactTextString(m) } +func (*PerformBERTResponse) ProtoMessage() {} +func (*PerformBERTResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} } type ClearLLDPInterfaceRequest struct { - Interface *types.Path `protobuf:"bytes,1,opt,name=interface,proto3" json:"interface,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Interface *gnoi.Path `protobuf:"bytes,1,opt,name=interface" json:"interface,omitempty"` } -func (m *ClearLLDPInterfaceRequest) Reset() { *m = ClearLLDPInterfaceRequest{} } -func (m *ClearLLDPInterfaceRequest) String() string { return proto.CompactTextString(m) } -func (*ClearLLDPInterfaceRequest) ProtoMessage() {} -func (*ClearLLDPInterfaceRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_dff9ec617d9e4348, []int{6} -} - -func (m *ClearLLDPInterfaceRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ClearLLDPInterfaceRequest.Unmarshal(m, b) -} -func (m *ClearLLDPInterfaceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ClearLLDPInterfaceRequest.Marshal(b, m, deterministic) -} -func (m *ClearLLDPInterfaceRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ClearLLDPInterfaceRequest.Merge(m, src) -} -func (m *ClearLLDPInterfaceRequest) XXX_Size() int { - return xxx_messageInfo_ClearLLDPInterfaceRequest.Size(m) -} -func (m *ClearLLDPInterfaceRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ClearLLDPInterfaceRequest.DiscardUnknown(m) -} +func (m *ClearLLDPInterfaceRequest) Reset() { *m = ClearLLDPInterfaceRequest{} } +func (m *ClearLLDPInterfaceRequest) String() string { return proto.CompactTextString(m) } +func (*ClearLLDPInterfaceRequest) ProtoMessage() {} +func (*ClearLLDPInterfaceRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} } -var xxx_messageInfo_ClearLLDPInterfaceRequest proto.InternalMessageInfo - -func (m *ClearLLDPInterfaceRequest) GetInterface() *types.Path { +func (m *ClearLLDPInterfaceRequest) GetInterface() *gnoi.Path { if m != nil { return m.Interface } @@ -372,124 +166,40 @@ func (m *ClearLLDPInterfaceRequest) GetInterface() *types.Path { } type ClearLLDPInterfaceResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ClearLLDPInterfaceResponse) Reset() { *m = ClearLLDPInterfaceResponse{} } -func (m *ClearLLDPInterfaceResponse) String() string { return proto.CompactTextString(m) } -func (*ClearLLDPInterfaceResponse) ProtoMessage() {} -func (*ClearLLDPInterfaceResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_dff9ec617d9e4348, []int{7} } -func (m *ClearLLDPInterfaceResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ClearLLDPInterfaceResponse.Unmarshal(m, b) -} -func (m *ClearLLDPInterfaceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ClearLLDPInterfaceResponse.Marshal(b, m, deterministic) -} -func (m *ClearLLDPInterfaceResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ClearLLDPInterfaceResponse.Merge(m, src) -} -func (m *ClearLLDPInterfaceResponse) XXX_Size() int { - return xxx_messageInfo_ClearLLDPInterfaceResponse.Size(m) -} -func (m *ClearLLDPInterfaceResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ClearLLDPInterfaceResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_ClearLLDPInterfaceResponse proto.InternalMessageInfo +func (m *ClearLLDPInterfaceResponse) Reset() { *m = ClearLLDPInterfaceResponse{} } +func (m *ClearLLDPInterfaceResponse) String() string { return proto.CompactTextString(m) } +func (*ClearLLDPInterfaceResponse) ProtoMessage() {} +func (*ClearLLDPInterfaceResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} } type SendWakeOnLANRequest struct { - Interface *types.Path `protobuf:"bytes,1,opt,name=interface,proto3" json:"interface,omitempty"` - Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` - MacAddress []byte `protobuf:"bytes,3,opt,name=mac_address,json=macAddress,proto3" json:"mac_address,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *SendWakeOnLANRequest) Reset() { *m = SendWakeOnLANRequest{} } -func (m *SendWakeOnLANRequest) String() string { return proto.CompactTextString(m) } -func (*SendWakeOnLANRequest) ProtoMessage() {} -func (*SendWakeOnLANRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_dff9ec617d9e4348, []int{8} -} - -func (m *SendWakeOnLANRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SendWakeOnLANRequest.Unmarshal(m, b) -} -func (m *SendWakeOnLANRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SendWakeOnLANRequest.Marshal(b, m, deterministic) -} -func (m *SendWakeOnLANRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_SendWakeOnLANRequest.Merge(m, src) -} -func (m *SendWakeOnLANRequest) XXX_Size() int { - return xxx_messageInfo_SendWakeOnLANRequest.Size(m) -} -func (m *SendWakeOnLANRequest) XXX_DiscardUnknown() { - xxx_messageInfo_SendWakeOnLANRequest.DiscardUnknown(m) + Interface *gnoi.Path `protobuf:"bytes,1,opt,name=interface" json:"interface,omitempty"` + Address string `protobuf:"bytes,2,opt,name=address" json:"address,omitempty"` + MacAddress []byte `protobuf:"bytes,3,opt,name=mac_address,json=macAddress,proto3" json:"mac_address,omitempty"` } -var xxx_messageInfo_SendWakeOnLANRequest proto.InternalMessageInfo +func (m *SendWakeOnLANRequest) Reset() { *m = SendWakeOnLANRequest{} } +func (m *SendWakeOnLANRequest) String() string { return proto.CompactTextString(m) } +func (*SendWakeOnLANRequest) ProtoMessage() {} +func (*SendWakeOnLANRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} } -func (m *SendWakeOnLANRequest) GetInterface() *types.Path { +func (m *SendWakeOnLANRequest) GetInterface() *gnoi.Path { if m != nil { return m.Interface } return nil } -func (m *SendWakeOnLANRequest) GetAddress() string { - if m != nil { - return m.Address - } - return "" -} - -func (m *SendWakeOnLANRequest) GetMacAddress() []byte { - if m != nil { - return m.MacAddress - } - return nil -} - type SendWakeOnLANResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *SendWakeOnLANResponse) Reset() { *m = SendWakeOnLANResponse{} } -func (m *SendWakeOnLANResponse) String() string { return proto.CompactTextString(m) } -func (*SendWakeOnLANResponse) ProtoMessage() {} -func (*SendWakeOnLANResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_dff9ec617d9e4348, []int{9} -} - -func (m *SendWakeOnLANResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SendWakeOnLANResponse.Unmarshal(m, b) -} -func (m *SendWakeOnLANResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SendWakeOnLANResponse.Marshal(b, m, deterministic) -} -func (m *SendWakeOnLANResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_SendWakeOnLANResponse.Merge(m, src) -} -func (m *SendWakeOnLANResponse) XXX_Size() int { - return xxx_messageInfo_SendWakeOnLANResponse.Size(m) -} -func (m *SendWakeOnLANResponse) XXX_DiscardUnknown() { - xxx_messageInfo_SendWakeOnLANResponse.DiscardUnknown(m) } -var xxx_messageInfo_SendWakeOnLANResponse proto.InternalMessageInfo +func (m *SendWakeOnLANResponse) Reset() { *m = SendWakeOnLANResponse{} } +func (m *SendWakeOnLANResponse) String() string { return proto.CompactTextString(m) } +func (*SendWakeOnLANResponse) ProtoMessage() {} +func (*SendWakeOnLANResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{9} } func init() { - proto.RegisterEnum("gnoi.layer2.PerformBERTResponse_BERTState", PerformBERTResponse_BERTState_name, PerformBERTResponse_BERTState_value) proto.RegisterType((*ClearNeighborDiscoveryRequest)(nil), "gnoi.layer2.ClearNeighborDiscoveryRequest") proto.RegisterType((*ClearNeighborDiscoveryResponse)(nil), "gnoi.layer2.ClearNeighborDiscoveryResponse") proto.RegisterType((*ClearSpanningTreeRequest)(nil), "gnoi.layer2.ClearSpanningTreeRequest") @@ -500,51 +210,7 @@ func init() { proto.RegisterType((*ClearLLDPInterfaceResponse)(nil), "gnoi.layer2.ClearLLDPInterfaceResponse") proto.RegisterType((*SendWakeOnLANRequest)(nil), "gnoi.layer2.SendWakeOnLANRequest") proto.RegisterType((*SendWakeOnLANResponse)(nil), "gnoi.layer2.SendWakeOnLANResponse") -} - -func init() { proto.RegisterFile("layer2/layer2.proto", fileDescriptor_dff9ec617d9e4348) } - -var fileDescriptor_dff9ec617d9e4348 = []byte{ - // 611 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0x6d, 0x6f, 0x12, 0x41, - 0x10, 0xee, 0x41, 0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 0xd8, 0x9c, 0xdb, 0x1e, 0x79, 0x39, 0x57, 0x9b, 0x65, - 0xab, 0x9a, 0x71, 0x17, 0x24, 0x65, 0x6e, 0xaf, 0xff, 0xfa, 0x50, 0xd8, 0x37, 0xdf, 0x9b, 0xfb, - 0xa3, 0x62, 0xf4, 0xc9, 0x3c, 0xf8, 0x13, 0x00, 0x00, 0xff, 0xff, 0x69, 0x07, 0xc6, 0x05, 0xd0, - 0x05, 0x00, 0x00, + proto.RegisterEnum("gnoi.layer2.PerformBERTResponse_BERTState", PerformBERTResponse_BERTState_name, PerformBERTResponse_BERTState_value) } // Reference imports to suppress errors if they are not otherwise used. @@ -555,9 +221,8 @@ var _ grpc.ClientConn // is compatible with the grpc package it is being compiled against. const _ = grpc.SupportPackageIsVersion4 -// Layer2Client is the client API for Layer2 service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +// Client API for Layer2 service + type Layer2Client interface { // ClearNeighborDiscovery will clear either a specific neighbor entry or // clear the entire table based on parameters provided. @@ -589,7 +254,7 @@ func NewLayer2Client(cc *grpc.ClientConn) Layer2Client { func (c *layer2Client) ClearNeighborDiscovery(ctx context.Context, in *ClearNeighborDiscoveryRequest, opts ...grpc.CallOption) (*ClearNeighborDiscoveryResponse, error) { out := new(ClearNeighborDiscoveryResponse) - err := c.cc.Invoke(ctx, "/gnoi.layer2.Layer2/ClearNeighborDiscovery", in, out, opts...) + err := grpc.Invoke(ctx, "/gnoi.layer2.Layer2/ClearNeighborDiscovery", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -598,7 +263,7 @@ func (c *layer2Client) ClearNeighborDiscovery(ctx context.Context, in *ClearNeig func (c *layer2Client) ClearSpanningTree(ctx context.Context, in *ClearSpanningTreeRequest, opts ...grpc.CallOption) (*ClearSpanningTreeResponse, error) { out := new(ClearSpanningTreeResponse) - err := c.cc.Invoke(ctx, "/gnoi.layer2.Layer2/ClearSpanningTree", in, out, opts...) + err := grpc.Invoke(ctx, "/gnoi.layer2.Layer2/ClearSpanningTree", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -606,7 +271,7 @@ func (c *layer2Client) ClearSpanningTree(ctx context.Context, in *ClearSpanningT } func (c *layer2Client) PerformBERT(ctx context.Context, in *PerformBERTRequest, opts ...grpc.CallOption) (Layer2_PerformBERTClient, error) { - stream, err := c.cc.NewStream(ctx, &_Layer2_serviceDesc.Streams[0], "/gnoi.layer2.Layer2/PerformBERT", opts...) + stream, err := grpc.NewClientStream(ctx, &_Layer2_serviceDesc.Streams[0], c.cc, "/gnoi.layer2.Layer2/PerformBERT", opts...) if err != nil { return nil, err } @@ -639,7 +304,7 @@ func (x *layer2PerformBERTClient) Recv() (*PerformBERTResponse, error) { func (c *layer2Client) ClearLLDPInterface(ctx context.Context, in *ClearLLDPInterfaceRequest, opts ...grpc.CallOption) (*ClearLLDPInterfaceResponse, error) { out := new(ClearLLDPInterfaceResponse) - err := c.cc.Invoke(ctx, "/gnoi.layer2.Layer2/ClearLLDPInterface", in, out, opts...) + err := grpc.Invoke(ctx, "/gnoi.layer2.Layer2/ClearLLDPInterface", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -648,14 +313,15 @@ func (c *layer2Client) ClearLLDPInterface(ctx context.Context, in *ClearLLDPInte func (c *layer2Client) SendWakeOnLAN(ctx context.Context, in *SendWakeOnLANRequest, opts ...grpc.CallOption) (*SendWakeOnLANResponse, error) { out := new(SendWakeOnLANResponse) - err := c.cc.Invoke(ctx, "/gnoi.layer2.Layer2/SendWakeOnLAN", in, out, opts...) + err := grpc.Invoke(ctx, "/gnoi.layer2.Layer2/SendWakeOnLAN", in, out, c.cc, opts...) if err != nil { return nil, err } return out, nil } -// Layer2Server is the server API for Layer2 service. +// Server API for Layer2 service + type Layer2Server interface { // ClearNeighborDiscovery will clear either a specific neighbor entry or // clear the entire table based on parameters provided. @@ -804,3 +470,47 @@ var _Layer2_serviceDesc = grpc.ServiceDesc{ }, Metadata: "layer2/layer2.proto", } + +func init() { proto.RegisterFile("layer2/layer2.proto", fileDescriptor0) } + +var fileDescriptor0 = []byte{ + // 593 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x94, 0x54, 0x6f, 0x4f, 0xd3, 0x5e, + 0x14, 0xa6, 0x1b, 0x1b, 0xec, 0x0c, 0x96, 0x72, 0xf9, 0xfd, 0xb0, 0xd6, 0x3f, 0xd4, 0x1a, 0x74, + 0x51, 0x53, 0x70, 0xbc, 0x37, 0x32, 0xd6, 0x18, 0x62, 0xed, 0x9a, 0xbb, 0x11, 0x7c, 0x47, 0x2e, + 0xed, 0x61, 0x34, 0x8e, 0xb6, 0xde, 0x5b, 0x49, 0x88, 0x1f, 0xcb, 0x6f, 0xe2, 0xe7, 0xf1, 0x85, + 0xd9, 0x6d, 0x3b, 0x99, 0x2b, 0x4c, 0xde, 0x6c, 0xb9, 0xe7, 0xcf, 0x73, 0x9e, 0x9c, 0xe7, 0x39, + 0x85, 0xcd, 0x31, 0xbb, 0x46, 0xde, 0xd9, 0xcd, 0xfe, 0xac, 0x84, 0xc7, 0x69, 0x4c, 0x9a, 0xa3, + 0x28, 0x0e, 0xad, 0x2c, 0xa4, 0x6f, 0xa4, 0xd7, 0x09, 0x8a, 0x5d, 0xf9, 0x9b, 0xe5, 0xcd, 0x11, + 0x3c, 0x39, 0x1c, 0x23, 0xe3, 0x2e, 0x86, 0xa3, 0x8b, 0xb3, 0x98, 0xf7, 0x42, 0xe1, 0xc7, 0x57, + 0xc8, 0xaf, 0x29, 0x7e, 0xfd, 0x86, 0x22, 0x25, 0x6f, 0x60, 0x55, 0x56, 0xfa, 0xf1, 0x58, 0x53, + 0x0c, 0xa5, 0xdd, 0xea, 0xa8, 0x96, 0xc4, 0x74, 0xf6, 0xbd, 0x3c, 0x4e, 0xa7, 0x15, 0x44, 0x83, + 0x15, 0x16, 0x04, 0x1c, 0x85, 0xd0, 0x2a, 0x86, 0xd2, 0x6e, 0xd0, 0xe2, 0x69, 0x1a, 0xf0, 0xf4, + 0xb6, 0x41, 0x22, 0x89, 0x23, 0x81, 0x66, 0x0f, 0x34, 0x59, 0x31, 0x48, 0x58, 0x14, 0x85, 0xd1, + 0x68, 0xc8, 0x11, 0x0b, 0x16, 0x6d, 0x68, 0x84, 0x51, 0x8a, 0xfc, 0x9c, 0xf9, 0x28, 0x69, 0x34, + 0x3b, 0x90, 0xd1, 0xf0, 0x58, 0x7a, 0x41, 0xff, 0x24, 0xcd, 0x47, 0xf0, 0xb0, 0x04, 0x25, 0x1f, + 0xe1, 0x02, 0xf1, 0x90, 0x9f, 0xc7, 0xfc, 0xb2, 0x6b, 0xd3, 0x61, 0x01, 0xde, 0x82, 0x4a, 0x18, + 0x48, 0xd4, 0x06, 0xad, 0x84, 0xc1, 0xec, 0xb0, 0xca, 0x5d, 0xc3, 0x7e, 0x54, 0x60, 0x73, 0x06, + 0x30, 0x9b, 0x33, 0x87, 0xf8, 0x1e, 0x6a, 0x22, 0x65, 0x69, 0x86, 0xd6, 0xea, 0xbc, 0xb2, 0x6e, + 0xa8, 0x62, 0x95, 0x00, 0x58, 0x93, 0xc7, 0x60, 0xd2, 0x41, 0xb3, 0x46, 0xb2, 0x03, 0x2d, 0x1c, + 0xb3, 0x44, 0x60, 0x70, 0x9a, 0x20, 0x0f, 0xe3, 0x40, 0xab, 0x1a, 0x4a, 0xbb, 0x4a, 0xd7, 0xf3, + 0xa8, 0x27, 0x83, 0x93, 0xfd, 0x27, 0x2c, 0x4d, 0x91, 0x47, 0xda, 0xb2, 0xa1, 0xb4, 0xd7, 0x68, + 0xf1, 0x24, 0x5b, 0x50, 0x47, 0xce, 0x63, 0x2e, 0xb4, 0x9a, 0x6c, 0xcc, 0x5f, 0xe4, 0x39, 0xac, + 0x73, 0xf4, 0x31, 0xbc, 0xc2, 0xe0, 0xf4, 0x2c, 0x4c, 0x85, 0x56, 0x97, 0xe9, 0x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0xc8, 0x08, 0xc8, 0xbc, 0xde, 0xa4, 0x84, 0x55, 0x99, 0xaf, 0xf4, 0x97, 0x0b, + 0xeb, 0xa6, 0xf4, 0x3f, 0xc3, 0xfa, 0x8c, 0x7a, 0xe4, 0xd9, 0x4c, 0x6f, 0x99, 0xad, 0x74, 0xf3, + 0xae, 0x92, 0x02, 0xb9, 0xbb, 0xfa, 0xf3, 0x5d, 0x6d, 0xcf, 0x7a, 0x6b, 0xed, 0x9d, 0xd5, 0xe5, + 0x27, 0x73, 0xff, 0x77, 0x00, 0x00, 0x00, 0xff, 0xff, 0x4d, 0x41, 0x21, 0x76, 0xb5, 0x05, 0x00, + 0x00, +} diff --git a/layer2/layer2.proto b/layer2/layer2.proto index fb4fe22f..22407edf 100644 --- a/layer2/layer2.proto +++ b/layer2/layer2.proto @@ -18,7 +18,7 @@ syntax = "proto3"; package gnoi.layer2; -import "github.com/openconfig/gnoi/types/types.proto"; +import "types/types.proto"; option (gnoi.gnoi_version) = "0.1.0"; diff --git a/mpls/BUILD.bazel b/mpls/BUILD.bazel new file mode 100644 index 00000000..d11fed74 --- /dev/null +++ b/mpls/BUILD.bazel @@ -0,0 +1,14 @@ +load("@io_bazel_rules_go//proto:go_proto_library.bzl", "go_proto_library") + +proto_library( + name = "mpls_proto", + srcs = ["mpls.proto"], +) + +go_proto_library( + name = "go_default_library", + srcs = ["mpls.proto"], + visibility = ["//visibility:public"], + rules_go_repo_only_for_internal_use = "@", + has_services = 1, +) diff --git a/mpls/mpls.pb.go b/mpls/mpls.pb.go index 42f0fbb8..aa12e11b 100644 --- a/mpls/mpls.pb.go +++ b/mpls/mpls.pb.go @@ -1,15 +1,33 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. +// Code generated by protoc-gen-go. // source: mpls/mpls.proto - +// DO NOT EDIT! + +/* +Package gnoi_mpls is a generated protocol buffer package. + +It is generated from these files: + mpls/mpls.proto + +It has these top-level messages: + ClearLSPRequest + ClearLSPResponse + ClearLSPCountersRequest + ClearLSPCountersResponse + MPLSPingPWEDestination + MPLSPingRSVPTEDestination + MPLSPingRequest + MPLSPingResponse +*/ package gnoi_mpls +import proto "github.com/golang/protobuf/proto" +import fmt "fmt" +import math "math" +import _ "types" + import ( - fmt "fmt" - proto "github.com/golang/protobuf/proto" - _ "github.com/openconfig/gnoi/types" context "golang.org/x/net/context" grpc "google.golang.org/grpc" - math "math" ) // Reference imports to suppress errors if they are not otherwise used. @@ -51,7 +69,6 @@ var ClearLSPRequest_Mode_name = map[int32]string{ 3: "AUTOBW_AGGRESSIVE", 4: "AUTOBW_NONAGGRESSIVE", } - var ClearLSPRequest_Mode_value = map[string]int32{ "DEFAULT": 0, "NONAGGRESSIVE": 0, @@ -64,10 +81,7 @@ var ClearLSPRequest_Mode_value = map[string]int32{ func (x ClearLSPRequest_Mode) String() string { return proto.EnumName(ClearLSPRequest_Mode_name, int32(x)) } - -func (ClearLSPRequest_Mode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_d4448d3521f3d4b5, []int{0, 0} -} +func (ClearLSPRequest_Mode) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0, 0} } type MPLSPingRequest_ReplyMode int32 @@ -80,7 +94,6 @@ var MPLSPingRequest_ReplyMode_name = map[int32]string{ 0: "IPV4", 1: "ROUTER_ALERT", } - var MPLSPingRequest_ReplyMode_value = map[string]int32{ "IPV4": 0, "ROUTER_ALERT": 1, @@ -89,10 +102,7 @@ var MPLSPingRequest_ReplyMode_value = map[string]int32{ func (x MPLSPingRequest_ReplyMode) String() string { return proto.EnumName(MPLSPingRequest_ReplyMode_name, int32(x)) } - -func (MPLSPingRequest_ReplyMode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_d4448d3521f3d4b5, []int{6, 0} -} +func (MPLSPingRequest_ReplyMode) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{6, 0} } type MPLSPingResponse_EchoResponseCode int32 @@ -110,7 +120,6 @@ var MPLSPingResponse_EchoResponseCode_name = map[int32]string{ 1: "NOT_SENT", 2: "TIMEOUT", } - var MPLSPingResponse_EchoResponseCode_value = map[string]int32{ "SUCCESS": 0, "NOT_SENT": 1, @@ -120,210 +129,59 @@ var MPLSPingResponse_EchoResponseCode_value = map[string]int32{ func (x MPLSPingResponse_EchoResponseCode) String() string { return proto.EnumName(MPLSPingResponse_EchoResponseCode_name, int32(x)) } - func (MPLSPingResponse_EchoResponseCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_d4448d3521f3d4b5, []int{7, 0} + return fileDescriptor0, []int{7, 0} } // Request to clear a single tunnel on a target device. type ClearLSPRequest struct { - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Mode ClearLSPRequest_Mode `protobuf:"varint,3,opt,name=mode,proto3,enum=gnoi.mpls.ClearLSPRequest_Mode" json:"mode,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ClearLSPRequest) Reset() { *m = ClearLSPRequest{} } -func (m *ClearLSPRequest) String() string { return proto.CompactTextString(m) } -func (*ClearLSPRequest) ProtoMessage() {} -func (*ClearLSPRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_d4448d3521f3d4b5, []int{0} -} - -func (m *ClearLSPRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ClearLSPRequest.Unmarshal(m, b) -} -func (m *ClearLSPRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ClearLSPRequest.Marshal(b, m, deterministic) -} -func (m *ClearLSPRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ClearLSPRequest.Merge(m, src) -} -func (m *ClearLSPRequest) XXX_Size() int { - return xxx_messageInfo_ClearLSPRequest.Size(m) -} -func (m *ClearLSPRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ClearLSPRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_ClearLSPRequest proto.InternalMessageInfo - -func (m *ClearLSPRequest) GetName() string { - if m != nil { - return m.Name - } - return "" + Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` + Mode ClearLSPRequest_Mode `protobuf:"varint,3,opt,name=mode,enum=gnoi.mpls.ClearLSPRequest_Mode" json:"mode,omitempty"` } -func (m *ClearLSPRequest) GetMode() ClearLSPRequest_Mode { - if m != nil { - return m.Mode - } - return ClearLSPRequest_DEFAULT -} +func (m *ClearLSPRequest) Reset() { *m = ClearLSPRequest{} } +func (m *ClearLSPRequest) String() string { return proto.CompactTextString(m) } +func (*ClearLSPRequest) ProtoMessage() {} +func (*ClearLSPRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } type ClearLSPResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` } -func (m *ClearLSPResponse) Reset() { *m = ClearLSPResponse{} } -func (m *ClearLSPResponse) String() string { return proto.CompactTextString(m) } -func (*ClearLSPResponse) ProtoMessage() {} -func (*ClearLSPResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_d4448d3521f3d4b5, []int{1} -} - -func (m *ClearLSPResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ClearLSPResponse.Unmarshal(m, b) -} -func (m *ClearLSPResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ClearLSPResponse.Marshal(b, m, deterministic) -} -func (m *ClearLSPResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ClearLSPResponse.Merge(m, src) -} -func (m *ClearLSPResponse) XXX_Size() int { - return xxx_messageInfo_ClearLSPResponse.Size(m) -} -func (m *ClearLSPResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ClearLSPResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_ClearLSPResponse proto.InternalMessageInfo +func (m *ClearLSPResponse) Reset() { *m = ClearLSPResponse{} } +func (m *ClearLSPResponse) String() string { return proto.CompactTextString(m) } +func (*ClearLSPResponse) ProtoMessage() {} +func (*ClearLSPResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } // Request to clear a single tunnel counters on a target device. type ClearLSPCountersRequest struct { - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ClearLSPCountersRequest) Reset() { *m = ClearLSPCountersRequest{} } -func (m *ClearLSPCountersRequest) String() string { return proto.CompactTextString(m) } -func (*ClearLSPCountersRequest) ProtoMessage() {} -func (*ClearLSPCountersRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_d4448d3521f3d4b5, []int{2} + Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` } -func (m *ClearLSPCountersRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ClearLSPCountersRequest.Unmarshal(m, b) -} -func (m *ClearLSPCountersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ClearLSPCountersRequest.Marshal(b, m, deterministic) -} -func (m *ClearLSPCountersRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ClearLSPCountersRequest.Merge(m, src) -} -func (m *ClearLSPCountersRequest) XXX_Size() int { - return xxx_messageInfo_ClearLSPCountersRequest.Size(m) -} -func (m *ClearLSPCountersRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ClearLSPCountersRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_ClearLSPCountersRequest proto.InternalMessageInfo - -func (m *ClearLSPCountersRequest) GetName() string { - if m != nil { - return m.Name - } - return "" -} +func (m *ClearLSPCountersRequest) Reset() { *m = ClearLSPCountersRequest{} } +func (m *ClearLSPCountersRequest) String() string { return proto.CompactTextString(m) } +func (*ClearLSPCountersRequest) ProtoMessage() {} +func (*ClearLSPCountersRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} } type ClearLSPCountersResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` } -func (m *ClearLSPCountersResponse) Reset() { *m = ClearLSPCountersResponse{} } -func (m *ClearLSPCountersResponse) String() string { return proto.CompactTextString(m) } -func (*ClearLSPCountersResponse) ProtoMessage() {} -func (*ClearLSPCountersResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_d4448d3521f3d4b5, []int{3} -} - -func (m *ClearLSPCountersResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ClearLSPCountersResponse.Unmarshal(m, b) -} -func (m *ClearLSPCountersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ClearLSPCountersResponse.Marshal(b, m, deterministic) -} -func (m *ClearLSPCountersResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ClearLSPCountersResponse.Merge(m, src) -} -func (m *ClearLSPCountersResponse) XXX_Size() int { - return xxx_messageInfo_ClearLSPCountersResponse.Size(m) -} -func (m *ClearLSPCountersResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ClearLSPCountersResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_ClearLSPCountersResponse proto.InternalMessageInfo +func (m *ClearLSPCountersResponse) Reset() { *m = ClearLSPCountersResponse{} } +func (m *ClearLSPCountersResponse) String() string { return proto.CompactTextString(m) } +func (*ClearLSPCountersResponse) ProtoMessage() {} +func (*ClearLSPCountersResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} } type MPLSPingPWEDestination struct { // The address of the egress LER that the MPLS ping should be sent on when // destined to a PWE service. - Eler string `protobuf:"bytes,1,opt,name=eler,proto3" json:"eler,omitempty"` + Eler string `protobuf:"bytes,1,opt,name=eler" json:"eler,omitempty"` // The virtual circuit ID for the PWE via which the ping should be sent. - Vcid uint32 `protobuf:"varint,2,opt,name=vcid,proto3" json:"vcid,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *MPLSPingPWEDestination) Reset() { *m = MPLSPingPWEDestination{} } -func (m *MPLSPingPWEDestination) String() string { return proto.CompactTextString(m) } -func (*MPLSPingPWEDestination) ProtoMessage() {} -func (*MPLSPingPWEDestination) Descriptor() ([]byte, []int) { - return fileDescriptor_d4448d3521f3d4b5, []int{4} + Vcid uint32 `protobuf:"varint,2,opt,name=vcid" json:"vcid,omitempty"` } -func (m *MPLSPingPWEDestination) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_MPLSPingPWEDestination.Unmarshal(m, b) -} -func (m *MPLSPingPWEDestination) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_MPLSPingPWEDestination.Marshal(b, m, deterministic) -} -func (m *MPLSPingPWEDestination) XXX_Merge(src proto.Message) { - xxx_messageInfo_MPLSPingPWEDestination.Merge(m, src) -} -func (m *MPLSPingPWEDestination) XXX_Size() int { - return xxx_messageInfo_MPLSPingPWEDestination.Size(m) -} -func (m *MPLSPingPWEDestination) XXX_DiscardUnknown() { - xxx_messageInfo_MPLSPingPWEDestination.DiscardUnknown(m) -} - -var xxx_messageInfo_MPLSPingPWEDestination proto.InternalMessageInfo - -func (m *MPLSPingPWEDestination) GetEler() string { - if m != nil { - return m.Eler - } - return "" -} - -func (m *MPLSPingPWEDestination) GetVcid() uint32 { - if m != nil { - return m.Vcid - } - return 0 -} +func (m *MPLSPingPWEDestination) Reset() { *m = MPLSPingPWEDestination{} } +func (m *MPLSPingPWEDestination) String() string { return proto.CompactTextString(m) } +func (*MPLSPingPWEDestination) ProtoMessage() {} +func (*MPLSPingPWEDestination) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} } // MPLSPingRSVPTEDestination specifies the destination for an MPLS Ping in // terms of an absolute specification of an RSVP-TE LSP. It can be used to @@ -331,63 +189,19 @@ func (m *MPLSPingPWEDestination) GetVcid() uint32 { type MPLSPingRSVPTEDestination struct { // The IPv4 or IPv6 address used by the system initiating (acting as the // head-end) of the RSVP-TE LSP. - Src string `protobuf:"bytes,1,opt,name=src,proto3" json:"src,omitempty"` + Src string `protobuf:"bytes,1,opt,name=src" json:"src,omitempty"` // The IPv4 or IPv6 address used by the system terminating (acting as the // tail-end) of the RSVP-TE LSP. - Dst string `protobuf:"bytes,2,opt,name=dst,proto3" json:"dst,omitempty"` + Dst string `protobuf:"bytes,2,opt,name=dst" json:"dst,omitempty"` // The extended tunnel ID of the RSVP-TE LSP, expressed as an unsigned, 32b // integer. - ExtendedTunnelId uint32 `protobuf:"varint,3,opt,name=extended_tunnel_id,json=extendedTunnelId,proto3" json:"extended_tunnel_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *MPLSPingRSVPTEDestination) Reset() { *m = MPLSPingRSVPTEDestination{} } -func (m *MPLSPingRSVPTEDestination) String() string { return proto.CompactTextString(m) } -func (*MPLSPingRSVPTEDestination) ProtoMessage() {} -func (*MPLSPingRSVPTEDestination) Descriptor() ([]byte, []int) { - return fileDescriptor_d4448d3521f3d4b5, []int{5} -} - -func (m *MPLSPingRSVPTEDestination) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_MPLSPingRSVPTEDestination.Unmarshal(m, b) -} -func (m *MPLSPingRSVPTEDestination) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_MPLSPingRSVPTEDestination.Marshal(b, m, deterministic) -} -func (m *MPLSPingRSVPTEDestination) XXX_Merge(src proto.Message) { - xxx_messageInfo_MPLSPingRSVPTEDestination.Merge(m, src) -} -func (m *MPLSPingRSVPTEDestination) XXX_Size() int { - return xxx_messageInfo_MPLSPingRSVPTEDestination.Size(m) -} -func (m *MPLSPingRSVPTEDestination) XXX_DiscardUnknown() { - xxx_messageInfo_MPLSPingRSVPTEDestination.DiscardUnknown(m) -} - -var xxx_messageInfo_MPLSPingRSVPTEDestination proto.InternalMessageInfo - -func (m *MPLSPingRSVPTEDestination) GetSrc() string { - if m != nil { - return m.Src - } - return "" + ExtendedTunnelId uint32 `protobuf:"varint,3,opt,name=extended_tunnel_id,json=extendedTunnelId" json:"extended_tunnel_id,omitempty"` } -func (m *MPLSPingRSVPTEDestination) GetDst() string { - if m != nil { - return m.Dst - } - return "" -} - -func (m *MPLSPingRSVPTEDestination) GetExtendedTunnelId() uint32 { - if m != nil { - return m.ExtendedTunnelId - } - return 0 -} +func (m *MPLSPingRSVPTEDestination) Reset() { *m = MPLSPingRSVPTEDestination{} } +func (m *MPLSPingRSVPTEDestination) String() string { return proto.CompactTextString(m) } +func (*MPLSPingRSVPTEDestination) ProtoMessage() {} +func (*MPLSPingRSVPTEDestination) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} } // MPLSPingRequest specifies the parameters that should be used as input from // the client, to a system that is initiating an RFC4379 MPLS ping request. @@ -401,75 +215,46 @@ type MPLSPingRequest struct { // *MPLSPingRequest_RsvpteLspName // *MPLSPingRequest_RsvpteLsp Destination isMPLSPingRequest_Destination `protobuf_oneof:"destination"` - ReplyMode MPLSPingRequest_ReplyMode `protobuf:"varint,6,opt,name=reply_mode,json=replyMode,proto3,enum=gnoi.mpls.MPLSPingRequest_ReplyMode" json:"reply_mode,omitempty"` + ReplyMode MPLSPingRequest_ReplyMode `protobuf:"varint,6,opt,name=reply_mode,json=replyMode,enum=gnoi.mpls.MPLSPingRequest_ReplyMode" json:"reply_mode,omitempty"` // The number of MPLS echo request packets to send. - Count uint32 `protobuf:"varint,7,opt,name=count,proto3" json:"count,omitempty"` + Count uint32 `protobuf:"varint,7,opt,name=count" json:"count,omitempty"` // The size (in bytes) of each MPLS echo request packet. - Size uint32 `protobuf:"varint,8,opt,name=size,proto3" json:"size,omitempty"` + Size uint32 `protobuf:"varint,8,opt,name=size" json:"size,omitempty"` // The source IPv4 address that should be used in the request packet. - SourceAddress string `protobuf:"bytes,9,opt,name=source_address,json=sourceAddress,proto3" json:"source_address,omitempty"` + SourceAddress string `protobuf:"bytes,9,opt,name=source_address,json=sourceAddress" json:"source_address,omitempty"` // The MPLS TTL that should be set in the packets sent. - MplsTtl uint32 `protobuf:"varint,10,opt,name=mpls_ttl,json=mplsTtl,proto3" json:"mpls_ttl,omitempty"` + MplsTtl uint32 `protobuf:"varint,10,opt,name=mpls_ttl,json=mplsTtl" json:"mpls_ttl,omitempty"` // The value of the traffic class (TC, formerly known as EXP) bits that // should be set in the MPLS ping packets. - TrafficClass uint32 `protobuf:"varint,11,opt,name=traffic_class,json=trafficClass,proto3" json:"traffic_class,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *MPLSPingRequest) Reset() { *m = MPLSPingRequest{} } -func (m *MPLSPingRequest) String() string { return proto.CompactTextString(m) } -func (*MPLSPingRequest) ProtoMessage() {} -func (*MPLSPingRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_d4448d3521f3d4b5, []int{6} -} - -func (m *MPLSPingRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_MPLSPingRequest.Unmarshal(m, b) -} -func (m *MPLSPingRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_MPLSPingRequest.Marshal(b, m, deterministic) -} -func (m *MPLSPingRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_MPLSPingRequest.Merge(m, src) -} -func (m *MPLSPingRequest) XXX_Size() int { - return xxx_messageInfo_MPLSPingRequest.Size(m) -} -func (m *MPLSPingRequest) XXX_DiscardUnknown() { - xxx_messageInfo_MPLSPingRequest.DiscardUnknown(m) + TrafficClass uint32 `protobuf:"varint,11,opt,name=traffic_class,json=trafficClass" json:"traffic_class,omitempty"` } -var xxx_messageInfo_MPLSPingRequest proto.InternalMessageInfo +func (m *MPLSPingRequest) Reset() { *m = MPLSPingRequest{} } +func (m *MPLSPingRequest) String() string { return proto.CompactTextString(m) } +func (*MPLSPingRequest) ProtoMessage() {} +func (*MPLSPingRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} } type isMPLSPingRequest_Destination interface { isMPLSPingRequest_Destination() } type MPLSPingRequest_LdpFec struct { - LdpFec string `protobuf:"bytes,1,opt,name=ldp_fec,json=ldpFec,proto3,oneof"` + LdpFec string `protobuf:"bytes,1,opt,name=ldp_fec,json=ldpFec,oneof"` } - type MPLSPingRequest_Fec129Pwe struct { - Fec129Pwe *MPLSPingPWEDestination `protobuf:"bytes,2,opt,name=fec129_pwe,json=fec129Pwe,proto3,oneof"` + Fec129Pwe *MPLSPingPWEDestination `protobuf:"bytes,2,opt,name=fec129_pwe,json=fec129Pwe,oneof"` } - type MPLSPingRequest_RsvpteLspName struct { - RsvpteLspName string `protobuf:"bytes,4,opt,name=rsvpte_lsp_name,json=rsvpteLspName,proto3,oneof"` + RsvpteLspName string `protobuf:"bytes,4,opt,name=rsvpte_lsp_name,json=rsvpteLspName,oneof"` } - type MPLSPingRequest_RsvpteLsp struct { - RsvpteLsp *MPLSPingRSVPTEDestination `protobuf:"bytes,5,opt,name=rsvpte_lsp,json=rsvpteLsp,proto3,oneof"` + RsvpteLsp *MPLSPingRSVPTEDestination `protobuf:"bytes,5,opt,name=rsvpte_lsp,json=rsvpteLsp,oneof"` } -func (*MPLSPingRequest_LdpFec) isMPLSPingRequest_Destination() {} - -func (*MPLSPingRequest_Fec129Pwe) isMPLSPingRequest_Destination() {} - +func (*MPLSPingRequest_LdpFec) isMPLSPingRequest_Destination() {} +func (*MPLSPingRequest_Fec129Pwe) isMPLSPingRequest_Destination() {} func (*MPLSPingRequest_RsvpteLspName) isMPLSPingRequest_Destination() {} - -func (*MPLSPingRequest_RsvpteLsp) isMPLSPingRequest_Destination() {} +func (*MPLSPingRequest_RsvpteLsp) isMPLSPingRequest_Destination() {} func (m *MPLSPingRequest) GetDestination() isMPLSPingRequest_Destination { if m != nil { @@ -506,48 +291,6 @@ func (m *MPLSPingRequest) GetRsvpteLsp() *MPLSPingRSVPTEDestination { return nil } -func (m *MPLSPingRequest) GetReplyMode() MPLSPingRequest_ReplyMode { - if m != nil { - return m.ReplyMode - } - return MPLSPingRequest_IPV4 -} - -func (m *MPLSPingRequest) GetCount() uint32 { - if m != nil { - return m.Count - } - return 0 -} - -func (m *MPLSPingRequest) GetSize() uint32 { - if m != nil { - return m.Size - } - return 0 -} - -func (m *MPLSPingRequest) GetSourceAddress() string { - if m != nil { - return m.SourceAddress - } - return "" -} - -func (m *MPLSPingRequest) GetMplsTtl() uint32 { - if m != nil { - return m.MplsTtl - } - return 0 -} - -func (m *MPLSPingRequest) GetTrafficClass() uint32 { - if m != nil { - return m.TrafficClass - } - return 0 -} - // XXX_OneofFuncs is for the internal use of the proto package. func (*MPLSPingRequest) 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 _MPLSPingRequest_OneofMarshaler, _MPLSPingRequest_OneofUnmarshaler, _MPLSPingRequest_OneofSizer, []interface{}{ @@ -628,21 +371,21 @@ func _MPLSPingRequest_OneofSizer(msg proto.Message) (n int) { // destination switch x := m.Destination.(type) { case *MPLSPingRequest_LdpFec: - n += 1 // tag and wire + n += proto.SizeVarint(1<<3 | proto.WireBytes) n += proto.SizeVarint(uint64(len(x.LdpFec))) n += len(x.LdpFec) case *MPLSPingRequest_Fec129Pwe: s := proto.Size(x.Fec129Pwe) - n += 1 // tag and wire + n += proto.SizeVarint(2<<3 | proto.WireBytes) n += proto.SizeVarint(uint64(s)) n += s case *MPLSPingRequest_RsvpteLspName: - n += 1 // tag and wire + n += proto.SizeVarint(4<<3 | proto.WireBytes) n += proto.SizeVarint(uint64(len(x.RsvpteLspName))) n += len(x.RsvpteLspName) case *MPLSPingRequest_RsvpteLsp: s := proto.Size(x.RsvpteLsp) - n += 1 // tag and wire + n += proto.SizeVarint(5<<3 | proto.WireBytes) n += proto.SizeVarint(uint64(s)) n += s case nil: @@ -656,67 +399,20 @@ func _MPLSPingRequest_OneofSizer(msg proto.Message) (n int) { // each MPLS Echo Response packet it receives associated with an input MPLSPing // RPC. type MPLSPingResponse struct { - Seq uint32 `protobuf:"varint,1,opt,name=seq,proto3" json:"seq,omitempty"` + Seq uint32 `protobuf:"varint,1,opt,name=seq" json:"seq,omitempty"` // The response that was received from the egress LER. - Response MPLSPingResponse_EchoResponseCode `protobuf:"varint,2,opt,name=response,proto3,enum=gnoi.mpls.MPLSPingResponse_EchoResponseCode" json:"response,omitempty"` + Response MPLSPingResponse_EchoResponseCode `protobuf:"varint,2,opt,name=response,enum=gnoi.mpls.MPLSPingResponse_EchoResponseCode" json:"response,omitempty"` // The time (in nanoseconds) between transmission of the Echo Response, // and the echo reply. - ResponseTime uint64 `protobuf:"varint,3,opt,name=response_time,json=responseTime,proto3" json:"response_time,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *MPLSPingResponse) Reset() { *m = MPLSPingResponse{} } -func (m *MPLSPingResponse) String() string { return proto.CompactTextString(m) } -func (*MPLSPingResponse) ProtoMessage() {} -func (*MPLSPingResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_d4448d3521f3d4b5, []int{7} + ResponseTime uint64 `protobuf:"varint,3,opt,name=response_time,json=responseTime" json:"response_time,omitempty"` } -func (m *MPLSPingResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_MPLSPingResponse.Unmarshal(m, b) -} -func (m *MPLSPingResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_MPLSPingResponse.Marshal(b, m, deterministic) -} -func (m *MPLSPingResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MPLSPingResponse.Merge(m, src) -} -func (m *MPLSPingResponse) XXX_Size() int { - return xxx_messageInfo_MPLSPingResponse.Size(m) -} -func (m *MPLSPingResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MPLSPingResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_MPLSPingResponse proto.InternalMessageInfo - -func (m *MPLSPingResponse) GetSeq() uint32 { - if m != nil { - return m.Seq - } - return 0 -} - -func (m *MPLSPingResponse) GetResponse() MPLSPingResponse_EchoResponseCode { - if m != nil { - return m.Response - } - return MPLSPingResponse_SUCCESS -} - -func (m *MPLSPingResponse) GetResponseTime() uint64 { - if m != nil { - return m.ResponseTime - } - return 0 -} +func (m *MPLSPingResponse) Reset() { *m = MPLSPingResponse{} } +func (m *MPLSPingResponse) String() string { return proto.CompactTextString(m) } +func (*MPLSPingResponse) ProtoMessage() {} +func (*MPLSPingResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} } func init() { - proto.RegisterEnum("gnoi.mpls.ClearLSPRequest_Mode", ClearLSPRequest_Mode_name, ClearLSPRequest_Mode_value) - proto.RegisterEnum("gnoi.mpls.MPLSPingRequest_ReplyMode", MPLSPingRequest_ReplyMode_name, MPLSPingRequest_ReplyMode_value) - proto.RegisterEnum("gnoi.mpls.MPLSPingResponse_EchoResponseCode", MPLSPingResponse_EchoResponseCode_name, MPLSPingResponse_EchoResponseCode_value) proto.RegisterType((*ClearLSPRequest)(nil), "gnoi.mpls.ClearLSPRequest") proto.RegisterType((*ClearLSPResponse)(nil), "gnoi.mpls.ClearLSPResponse") proto.RegisterType((*ClearLSPCountersRequest)(nil), "gnoi.mpls.ClearLSPCountersRequest") @@ -725,61 +421,9 @@ func init() { proto.RegisterType((*MPLSPingRSVPTEDestination)(nil), "gnoi.mpls.MPLSPingRSVPTEDestination") proto.RegisterType((*MPLSPingRequest)(nil), "gnoi.mpls.MPLSPingRequest") proto.RegisterType((*MPLSPingResponse)(nil), "gnoi.mpls.MPLSPingResponse") -} - -func init() { proto.RegisterFile("mpls/mpls.proto", fileDescriptor_d4448d3521f3d4b5) } - -var fileDescriptor_d4448d3521f3d4b5 = []byte{ - // 778 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x54, 0x4f, 0x8f, 0xda, 0x46, - 0x14, 0xb7, 0xc1, 0x2c, 0xe6, 0x81, 0xc1, 0x19, 0xa5, 0xad, 0x97, 0x1e, 0x9a, 0x3a, 0xad, 0xba, - 0x87, 0xad, 0xd9, 0x90, 0x5e, 0xda, 0x43, 0x55, 0x20, 0xce, 0x2e, 0x12, 0x0b, 0x68, 0x6c, 0x36, - 0xa7, 0xca, 0x22, 0xf6, 0x40, 0x2c, 0x19, 0xdb, 0xf1, 0x0c, 0x9b, 0xa6, 0x5f, 0xb2, 0x52, 0xbe, - 0x48, 0x4f, 0xbd, 0x57, 0x33, 0xb6, 0x61, 0x21, 0x64, 0x2f, 0xd6, 0x9b, 0xdf, 0x7b, 0xef, 0xf7, - 0xfe, 0xfa, 0x41, 0x67, 0x93, 0x46, 0xb4, 0xc7, 0x3f, 0x56, 0x9a, 0x25, 0x2c, 0x41, 0x8d, 0x75, - 0x9c, 0x84, 0x16, 0x07, 0xba, 0x97, 0xeb, 0x90, 0xbd, 0xdb, 0xbe, 0xb5, 0xfc, 0x64, 0xd3, 0x4b, - 0x52, 0x12, 0xfb, 0x49, 0xbc, 0x0a, 0xd7, 0x3d, 0x6e, 0xd0, 0x63, 0x1f, 0x53, 0x42, 0xf3, 0x6f, - 0xee, 0x68, 0x7e, 0x92, 0xa1, 0x33, 0x8a, 0xc8, 0x32, 0x9b, 0x38, 0x73, 0x4c, 0xde, 0x6f, 0x09, - 0x65, 0x08, 0x81, 0x12, 0x2f, 0x37, 0xc4, 0xa8, 0x3c, 0x93, 0x2f, 0x1a, 0x58, 0xc8, 0xe8, 0x25, - 0x28, 0x9b, 0x24, 0x20, 0x46, 0xf5, 0x99, 0x7c, 0xd1, 0xee, 0x7f, 0x67, 0xed, 0xe2, 0x59, 0x47, - 0xde, 0xd6, 0x6d, 0x12, 0x10, 0x2c, 0x8c, 0xcd,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 0x47, 0x6d, 0x76, 0xf4, 0xd7, 0xa0, 0x96, 0xed, - 0x3b, 0xc8, 0xf2, 0x68, 0x0d, 0x0f, 0xb2, 0x3c, 0xee, 0xb7, 0x29, 0x5d, 0xc9, 0x43, 0xf5, 0xd3, - 0xef, 0xb5, 0x2b, 0xeb, 0x85, 0x75, 0xf5, 0xf6, 0x4c, 0x5c, 0xec, 0x97, 0xff, 0x07, 0x00, 0x00, - 0xff, 0xff, 0x2b, 0x14, 0x01, 0x1f, 0xfd, 0x05, 0x00, 0x00, + proto.RegisterEnum("gnoi.mpls.ClearLSPRequest_Mode", ClearLSPRequest_Mode_name, ClearLSPRequest_Mode_value) + proto.RegisterEnum("gnoi.mpls.MPLSPingRequest_ReplyMode", MPLSPingRequest_ReplyMode_name, MPLSPingRequest_ReplyMode_value) + proto.RegisterEnum("gnoi.mpls.MPLSPingResponse_EchoResponseCode", MPLSPingResponse_EchoResponseCode_name, MPLSPingResponse_EchoResponseCode_value) } // Reference imports to suppress errors if they are not otherwise used. @@ -790,9 +434,8 @@ var _ grpc.ClientConn // is compatible with the grpc package it is being compiled against. const _ = grpc.SupportPackageIsVersion4 -// MPLSClient is the client API for MPLS service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +// Client API for MPLS service + type MPLSClient interface { // ClearLSP clears a single tunnel (requests for it's route to be // recalculated). @@ -813,7 +456,7 @@ func NewMPLSClient(cc *grpc.ClientConn) MPLSClient { func (c *mPLSClient) ClearLSP(ctx context.Context, in *ClearLSPRequest, opts ...grpc.CallOption) (*ClearLSPResponse, error) { out := new(ClearLSPResponse) - err := c.cc.Invoke(ctx, "/gnoi.mpls.MPLS/ClearLSP", in, out, opts...) + err := grpc.Invoke(ctx, "/gnoi.mpls.MPLS/ClearLSP", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -822,7 +465,7 @@ func (c *mPLSClient) ClearLSP(ctx context.Context, in *ClearLSPRequest, opts ... func (c *mPLSClient) ClearLSPCounters(ctx context.Context, in *ClearLSPCountersRequest, opts ...grpc.CallOption) (*ClearLSPCountersResponse, error) { out := new(ClearLSPCountersResponse) - err := c.cc.Invoke(ctx, "/gnoi.mpls.MPLS/ClearLSPCounters", in, out, opts...) + err := grpc.Invoke(ctx, "/gnoi.mpls.MPLS/ClearLSPCounters", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -830,7 +473,7 @@ func (c *mPLSClient) ClearLSPCounters(ctx context.Context, in *ClearLSPCountersR } func (c *mPLSClient) MPLSPing(ctx context.Context, in *MPLSPingRequest, opts ...grpc.CallOption) (MPLS_MPLSPingClient, error) { - stream, err := c.cc.NewStream(ctx, &_MPLS_serviceDesc.Streams[0], "/gnoi.mpls.MPLS/MPLSPing", opts...) + stream, err := grpc.NewClientStream(ctx, &_MPLS_serviceDesc.Streams[0], c.cc, "/gnoi.mpls.MPLS/MPLSPing", opts...) if err != nil { return nil, err } @@ -861,7 +504,8 @@ func (x *mPLSMPLSPingClient) Recv() (*MPLSPingResponse, error) { return m, nil } -// MPLSServer is the server API for MPLS service. +// Server API for MPLS service + type MPLSServer interface { // ClearLSP clears a single tunnel (requests for it's route to be // recalculated). @@ -955,3 +599,57 @@ var _MPLS_serviceDesc = grpc.ServiceDesc{ }, Metadata: "mpls/mpls.proto", } + +func init() { proto.RegisterFile("mpls/mpls.proto", fileDescriptor0) } + +var fileDescriptor0 = []byte{ + // 756 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x7c, 0x54, 0x4d, 0x6f, 0xf2, 0x46, + 0x10, 0xb6, 0xc1, 0x04, 0x33, 0x60, 0x70, 0x56, 0x6f, 0x5b, 0x87, 0x1e, 0x9a, 0x3a, 0xad, 0x9a, + 0x43, 0xea, 0x24, 0xa4, 0x97, 0xf6, 0x50, 0x15, 0x88, 0x93, 0x20, 0x11, 0x40, 0x6b, 0x93, 0x9c, + 0x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xc8, 0x49, 0xae, 0xe5, 0x73, 0x6e, 0x76, 0x4e, 0x76, 0xb6, 0x2c, 0x33, 0x31, + 0x4c, 0xf7, 0xcf, 0xa8, 0x78, 0xf4, 0x59, 0xeb, 0x56, 0xde, 0xac, 0x9a, 0x42, 0x76, 0x52, 0x7f, + 0x91, 0x1d, 0x0a, 0x09, 0x37, 0x0a, 0xd0, 0xf6, 0x17, 0x44, 0xff, 0x05, 0xd4, 0x6d, 0x0a, 0x76, + 0x1b, 0xac, 0x69, 0xbf, 0x6f, 0x5a, 0x96, 0x2a, 0xa0, 0x06, 0xc8, 0xa3, 0xb1, 0xed, 0x58, 0xe6, + 0xc8, 0x56, 0x45, 0xa6, 0xb2, 0x07, 0xb7, 0xe6, 0x78, 0x6a, 0xab, 0xa5, 0xce, 0x7f, 0x22, 0x48, + 0x2c, 0x21, 0x64, 0x82, 0x5c, 0xfc, 0x99, 0xa8, 0xfd, 0xf9, 0x3b, 0xd4, 0xfe, 0x7a, 0xa7, 0x2e, + 0xff, 0x85, 0x05, 0xf4, 0xfb, 0xfa, 0x46, 0x14, 0x3f, 0x38, 0xd2, 0x77, 0xb8, 0x6c, 0x1d, 0x8b, + 0xf6, 0xd1, 0x87, 0x36, 0x2b, 0xfa, 0x6b, 0x90, 0x8b, 0xf6, 0x6d, 0x64, 0xb9, 0xb5, 0x86, 0x1b, + 0x59, 0x6e, 0xf7, 0x5b, 0x17, 0xce, 0xc4, 0x9e, 0xfc, 0xfa, 0x6b, 0xe5, 0xcc, 0x38, 0x37, 0xce, + 0xfe, 0xd8, 0xe3, 0x17, 0xfb, 0xe2, 0xff, 0x00, 0x00, 0x00, 0xff, 0xff, 0x57, 0xb4, 0xb0, 0x62, + 0xe2, 0x05, 0x00, 0x00, +} diff --git a/mpls/mpls.proto b/mpls/mpls.proto index c3901333..867687c7 100644 --- a/mpls/mpls.proto +++ b/mpls/mpls.proto @@ -16,7 +16,7 @@ syntax = "proto3"; -import "github.com/openconfig/gnoi/types/types.proto"; +import "types/types.proto"; package gnoi.mpls; diff --git a/system/BUILD.bazel b/system/BUILD.bazel new file mode 100644 index 00000000..b891d6e3 --- /dev/null +++ b/system/BUILD.bazel @@ -0,0 +1,20 @@ +load("@io_bazel_rules_go//proto:go_proto_library.bzl", "go_proto_library") + +proto_library( + name = "system_proto", + srcs = ["system.proto"], + deps = [ + "//github.com/openconfig/gnoi:gnoi_proto", + ], +) + +go_proto_library( + name = "go_default_library", + srcs = ["system.proto"], + deps = [ + "//github.com/openconfig/gnoi:go_default_library" + ], + visibility = ["//visibility:public"], + rules_go_repo_only_for_internal_use = "@", + has_services = 1, +) diff --git a/system/system.pb.go b/system/system.pb.go index 314660f7..a6c89a93 100644 --- a/system/system.pb.go +++ b/system/system.pb.go @@ -1,16 +1,43 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. +// Code generated by protoc-gen-go. // source: system/system.proto - +// DO NOT EDIT! + +/* +Package gnoi_system is a generated protocol buffer package. + +It is generated from these files: + system/system.proto + +It has these top-level messages: + SwitchControlProcessorRequest + SwitchControlProcessorResponse + RebootRequest + RebootResponse + CancelRebootRequest + CancelRebootResponse + RebootStatusRequest + RebootStatusResponse + TimeRequest + TimeResponse + PingRequest + PingResponse + TracerouteRequest + TracerouteResponse + Package + SetPackageRequest + SetPackageResponse +*/ package gnoi_system +import proto "github.com/golang/protobuf/proto" +import fmt "fmt" +import math "math" +import gnoi1 "common" +import gnoi "types" + import ( - fmt "fmt" - proto "github.com/golang/protobuf/proto" - common "github.com/openconfig/gnoi/common" - types "github.com/openconfig/gnoi/types" context "golang.org/x/net/context" grpc "google.golang.org/grpc" - math "math" ) // Reference imports to suppress errors if they are not otherwise used. @@ -52,7 +79,6 @@ var RebootMethod_name = map[int32]string{ 6: "RESET", 7: "POWERUP", } - var RebootMethod_value = map[string]int32{ "UNKNOWN": 0, "COLD": 1, @@ -67,10 +93,7 @@ var RebootMethod_value = map[string]int32{ func (x RebootMethod) String() string { return proto.EnumName(RebootMethod_name, int32(x)) } - -func (RebootMethod) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_746080b643370b3b, []int{0} -} +func (RebootMethod) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } type TracerouteRequest_L4Protocol int32 @@ -85,7 +108,6 @@ var TracerouteRequest_L4Protocol_name = map[int32]string{ 1: "TCP", 2: "UDP", } - var TracerouteRequest_L4Protocol_value = map[string]int32{ "ICMP": 0, "TCP": 1, @@ -95,9 +117,8 @@ var TracerouteRequest_L4Protocol_value = map[string]int32{ func (x TracerouteRequest_L4Protocol) String() string { return proto.EnumName(TracerouteRequest_L4Protocol_name, int32(x)) } - func (TracerouteRequest_L4Protocol) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_746080b643370b3b, []int{12, 0} + return fileDescriptor0, []int{12, 0} } // State is the resulting state of a single traceoroute packet. @@ -132,7 +153,6 @@ var TracerouteResponse_State_name = map[int32]string{ 10: "PRECEDENCE_VIOLATION", 11: "PRECEDENCE_CUTOFF", } - var TracerouteResponse_State_value = map[string]int32{ "DEFAULT": 0, "NONE": 1, @@ -151,44 +171,18 @@ var TracerouteResponse_State_value = map[string]int32{ func (x TracerouteResponse_State) String() string { return proto.EnumName(TracerouteResponse_State_name, int32(x)) } - -func (TracerouteResponse_State) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_746080b643370b3b, []int{13, 0} -} +func (TracerouteResponse_State) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{13, 0} } type SwitchControlProcessorRequest struct { - ControlProcessor *types.Path `protobuf:"bytes,1,opt,name=control_processor,json=controlProcessor,proto3" json:"control_processor,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + ControlProcessor *gnoi.Path `protobuf:"bytes,1,opt,name=control_processor,json=controlProcessor" json:"control_processor,omitempty"` } -func (m *SwitchControlProcessorRequest) Reset() { *m = SwitchControlProcessorRequest{} } -func (m *SwitchControlProcessorRequest) String() string { return proto.CompactTextString(m) } -func (*SwitchControlProcessorRequest) ProtoMessage() {} -func (*SwitchControlProcessorRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_746080b643370b3b, []int{0} -} +func (m *SwitchControlProcessorRequest) Reset() { *m = SwitchControlProcessorRequest{} } +func (m *SwitchControlProcessorRequest) String() string { return proto.CompactTextString(m) } +func (*SwitchControlProcessorRequest) ProtoMessage() {} +func (*SwitchControlProcessorRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } -func (m *SwitchControlProcessorRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SwitchControlProcessorRequest.Unmarshal(m, b) -} -func (m *SwitchControlProcessorRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SwitchControlProcessorRequest.Marshal(b, m, deterministic) -} -func (m *SwitchControlProcessorRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_SwitchControlProcessorRequest.Merge(m, src) -} -func (m *SwitchControlProcessorRequest) XXX_Size() int { - return xxx_messageInfo_SwitchControlProcessorRequest.Size(m) -} -func (m *SwitchControlProcessorRequest) XXX_DiscardUnknown() { - xxx_messageInfo_SwitchControlProcessorRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_SwitchControlProcessorRequest proto.InternalMessageInfo - -func (m *SwitchControlProcessorRequest) GetControlProcessor() *types.Path { +func (m *SwitchControlProcessorRequest) GetControlProcessor() *gnoi.Path { if m != nil { return m.ControlProcessor } @@ -196,212 +190,71 @@ func (m *SwitchControlProcessorRequest) GetControlProcessor() *types.Path { } type SwitchControlProcessorResponse struct { - ControlProcessor *types.Path `protobuf:"bytes,1,opt,name=control_processor,json=controlProcessor,proto3" json:"control_processor,omitempty"` - Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` - Uptime int64 `protobuf:"varint,3,opt,name=uptime,proto3" json:"uptime,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *SwitchControlProcessorResponse) Reset() { *m = SwitchControlProcessorResponse{} } -func (m *SwitchControlProcessorResponse) String() string { return proto.CompactTextString(m) } -func (*SwitchControlProcessorResponse) ProtoMessage() {} -func (*SwitchControlProcessorResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_746080b643370b3b, []int{1} -} - -func (m *SwitchControlProcessorResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SwitchControlProcessorResponse.Unmarshal(m, b) -} -func (m *SwitchControlProcessorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SwitchControlProcessorResponse.Marshal(b, m, deterministic) -} -func (m *SwitchControlProcessorResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_SwitchControlProcessorResponse.Merge(m, src) -} -func (m *SwitchControlProcessorResponse) XXX_Size() int { - return xxx_messageInfo_SwitchControlProcessorResponse.Size(m) -} -func (m *SwitchControlProcessorResponse) XXX_DiscardUnknown() { - xxx_messageInfo_SwitchControlProcessorResponse.DiscardUnknown(m) + ControlProcessor *gnoi.Path `protobuf:"bytes,1,opt,name=control_processor,json=controlProcessor" json:"control_processor,omitempty"` + Version string `protobuf:"bytes,2,opt,name=version" json:"version,omitempty"` + Uptime int64 `protobuf:"varint,3,opt,name=uptime" json:"uptime,omitempty"` } -var xxx_messageInfo_SwitchControlProcessorResponse proto.InternalMessageInfo +func (m *SwitchControlProcessorResponse) Reset() { *m = SwitchControlProcessorResponse{} } +func (m *SwitchControlProcessorResponse) String() string { return proto.CompactTextString(m) } +func (*SwitchControlProcessorResponse) ProtoMessage() {} +func (*SwitchControlProcessorResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } -func (m *SwitchControlProcessorResponse) GetControlProcessor() *types.Path { +func (m *SwitchControlProcessorResponse) GetControlProcessor() *gnoi.Path { if m != nil { return m.ControlProcessor } return nil } -func (m *SwitchControlProcessorResponse) GetVersion() string { - if m != nil { - return m.Version - } - return "" -} - -func (m *SwitchControlProcessorResponse) GetUptime() int64 { - if m != nil { - return m.Uptime - } - return 0 -} - // A RebootRequest requests the specified target be rebooted using the specified // method aftar the specified delay. Only the DEFAULT method with a delay of 0 // is guaranteed to be accepted for all target types. type RebootRequest struct { - Method RebootMethod `protobuf:"varint,1,opt,name=method,proto3,enum=gnoi.system.RebootMethod" json:"method,omitempty"` + Method RebootMethod `protobuf:"varint,1,opt,name=method,enum=gnoi.system.RebootMethod" json:"method,omitempty"` // Delay in nanoseconds before issuing reboot. - Delay uint64 `protobuf:"varint,2,opt,name=delay,proto3" json:"delay,omitempty"` + Delay uint64 `protobuf:"varint,2,opt,name=delay" json:"delay,omitempty"` // Informational reason for the reboot. - Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` + Message string `protobuf:"bytes,3,opt,name=message" json:"message,omitempty"` // Optional sub-components to reboot. - Subcomponents []*types.Path `protobuf:"bytes,4,rep,name=subcomponents,proto3" json:"subcomponents,omitempty"` + Subcomponents []*gnoi.Path `protobuf:"bytes,4,rep,name=subcomponents" json:"subcomponents,omitempty"` // Force reboot if sanity checks fail. (ex. uncommited configuration) - Force bool `protobuf:"varint,5,opt,name=force,proto3" json:"force,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RebootRequest) Reset() { *m = RebootRequest{} } -func (m *RebootRequest) String() string { return proto.CompactTextString(m) } -func (*RebootRequest) ProtoMessage() {} -func (*RebootRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_746080b643370b3b, []int{2} + Force bool `protobuf:"varint,5,opt,name=force" json:"force,omitempty"` } -func (m *RebootRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RebootRequest.Unmarshal(m, b) -} -func (m *RebootRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RebootRequest.Marshal(b, m, deterministic) -} -func (m *RebootRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RebootRequest.Merge(m, src) -} -func (m *RebootRequest) XXX_Size() int { - return xxx_messageInfo_RebootRequest.Size(m) -} -func (m *RebootRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RebootRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RebootRequest proto.InternalMessageInfo - -func (m *RebootRequest) GetMethod() RebootMethod { - if m != nil { - return m.Method - } - return RebootMethod_UNKNOWN -} - -func (m *RebootRequest) GetDelay() uint64 { - if m != nil { - return m.Delay - } - return 0 -} +func (m *RebootRequest) Reset() { *m = RebootRequest{} } +func (m *RebootRequest) String() string { return proto.CompactTextString(m) } +func (*RebootRequest) ProtoMessage() {} +func (*RebootRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} } -func (m *RebootRequest) GetMessage() string { - if m != nil { - return m.Message - } - return "" -} - -func (m *RebootRequest) GetSubcomponents() []*types.Path { +func (m *RebootRequest) GetSubcomponents() []*gnoi.Path { if m != nil { return m.Subcomponents } return nil } -func (m *RebootRequest) GetForce() bool { - if m != nil { - return m.Force - } - return false -} - type RebootResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` } -func (m *RebootResponse) Reset() { *m = RebootResponse{} } -func (m *RebootResponse) String() string { return proto.CompactTextString(m) } -func (*RebootResponse) ProtoMessage() {} -func (*RebootResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_746080b643370b3b, []int{3} -} - -func (m *RebootResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RebootResponse.Unmarshal(m, b) -} -func (m *RebootResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RebootResponse.Marshal(b, m, deterministic) -} -func (m *RebootResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RebootResponse.Merge(m, src) -} -func (m *RebootResponse) XXX_Size() int { - return xxx_messageInfo_RebootResponse.Size(m) -} -func (m *RebootResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RebootResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RebootResponse proto.InternalMessageInfo +func (m *RebootResponse) Reset() { *m = RebootResponse{} } +func (m *RebootResponse) String() string { return proto.CompactTextString(m) } +func (*RebootResponse) ProtoMessage() {} +func (*RebootResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} } // A CancelRebootRequest requests the cancelation of any outstanding reboot // request. type CancelRebootRequest struct { - Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` - Subcomponents []*types.Path `protobuf:"bytes,2,rep,name=subcomponents,proto3" json:"subcomponents,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CancelRebootRequest) Reset() { *m = CancelRebootRequest{} } -func (m *CancelRebootRequest) String() string { return proto.CompactTextString(m) } -func (*CancelRebootRequest) ProtoMessage() {} -func (*CancelRebootRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_746080b643370b3b, []int{4} -} - -func (m *CancelRebootRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CancelRebootRequest.Unmarshal(m, b) -} -func (m *CancelRebootRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CancelRebootRequest.Marshal(b, m, deterministic) -} -func (m *CancelRebootRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_CancelRebootRequest.Merge(m, src) -} -func (m *CancelRebootRequest) XXX_Size() int { - return xxx_messageInfo_CancelRebootRequest.Size(m) -} -func (m *CancelRebootRequest) XXX_DiscardUnknown() { - xxx_messageInfo_CancelRebootRequest.DiscardUnknown(m) + Message string `protobuf:"bytes,1,opt,name=message" json:"message,omitempty"` + Subcomponents []*gnoi.Path `protobuf:"bytes,2,rep,name=subcomponents" json:"subcomponents,omitempty"` } -var xxx_messageInfo_CancelRebootRequest proto.InternalMessageInfo +func (m *CancelRebootRequest) Reset() { *m = CancelRebootRequest{} } +func (m *CancelRebootRequest) String() string { return proto.CompactTextString(m) } +func (*CancelRebootRequest) ProtoMessage() {} +func (*CancelRebootRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} } -func (m *CancelRebootRequest) GetMessage() string { - if m != nil { - return m.Message - } - return "" -} - -func (m *CancelRebootRequest) GetSubcomponents() []*types.Path { +func (m *CancelRebootRequest) GetSubcomponents() []*gnoi.Path { if m != nil { return m.Subcomponents } @@ -409,69 +262,23 @@ func (m *CancelRebootRequest) GetSubcomponents() []*types.Path { } type CancelRebootResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CancelRebootResponse) Reset() { *m = CancelRebootResponse{} } -func (m *CancelRebootResponse) String() string { return proto.CompactTextString(m) } -func (*CancelRebootResponse) ProtoMessage() {} -func (*CancelRebootResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_746080b643370b3b, []int{5} -} - -func (m *CancelRebootResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CancelRebootResponse.Unmarshal(m, b) -} -func (m *CancelRebootResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CancelRebootResponse.Marshal(b, m, deterministic) -} -func (m *CancelRebootResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_CancelRebootResponse.Merge(m, src) -} -func (m *CancelRebootResponse) XXX_Size() int { - return xxx_messageInfo_CancelRebootResponse.Size(m) -} -func (m *CancelRebootResponse) XXX_DiscardUnknown() { - xxx_messageInfo_CancelRebootResponse.DiscardUnknown(m) } -var xxx_messageInfo_CancelRebootResponse proto.InternalMessageInfo +func (m *CancelRebootResponse) Reset() { *m = CancelRebootResponse{} } +func (m *CancelRebootResponse) String() string { return proto.CompactTextString(m) } +func (*CancelRebootResponse) ProtoMessage() {} +func (*CancelRebootResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} } type RebootStatusRequest struct { - Subcomponents []*types.Path `protobuf:"bytes,1,rep,name=subcomponents,proto3" json:"subcomponents,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RebootStatusRequest) Reset() { *m = RebootStatusRequest{} } -func (m *RebootStatusRequest) String() string { return proto.CompactTextString(m) } -func (*RebootStatusRequest) ProtoMessage() {} -func (*RebootStatusRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_746080b643370b3b, []int{6} -} - -func (m *RebootStatusRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RebootStatusRequest.Unmarshal(m, b) -} -func (m *RebootStatusRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RebootStatusRequest.Marshal(b, m, deterministic) -} -func (m *RebootStatusRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RebootStatusRequest.Merge(m, src) -} -func (m *RebootStatusRequest) XXX_Size() int { - return xxx_messageInfo_RebootStatusRequest.Size(m) -} -func (m *RebootStatusRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RebootStatusRequest.DiscardUnknown(m) + Subcomponents []*gnoi.Path `protobuf:"bytes,1,rep,name=subcomponents" json:"subcomponents,omitempty"` } -var xxx_messageInfo_RebootStatusRequest proto.InternalMessageInfo +func (m *RebootStatusRequest) Reset() { *m = RebootStatusRequest{} } +func (m *RebootStatusRequest) String() string { return proto.CompactTextString(m) } +func (*RebootStatusRequest) ProtoMessage() {} +func (*RebootStatusRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} } -func (m *RebootStatusRequest) GetSubcomponents() []*types.Path { +func (m *RebootStatusRequest) GetSubcomponents() []*gnoi.Path { if m != nil { return m.Subcomponents } @@ -479,146 +286,35 @@ func (m *RebootStatusRequest) GetSubcomponents() []*types.Path { } type RebootStatusResponse struct { - Active bool `protobuf:"varint,1,opt,name=active,proto3" json:"active,omitempty"` - Wait uint64 `protobuf:"varint,2,opt,name=wait,proto3" json:"wait,omitempty"` - When uint64 `protobuf:"varint,3,opt,name=when,proto3" json:"when,omitempty"` - Reason string `protobuf:"bytes,4,opt,name=reason,proto3" json:"reason,omitempty"` - Count uint32 `protobuf:"varint,5,opt,name=count,proto3" json:"count,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Active bool `protobuf:"varint,1,opt,name=active" json:"active,omitempty"` + Wait uint64 `protobuf:"varint,2,opt,name=wait" json:"wait,omitempty"` + When uint64 `protobuf:"varint,3,opt,name=when" json:"when,omitempty"` + Reason string `protobuf:"bytes,4,opt,name=reason" json:"reason,omitempty"` + Count uint32 `protobuf:"varint,5,opt,name=count" json:"count,omitempty"` } -func (m *RebootStatusResponse) Reset() { *m = RebootStatusResponse{} } -func (m *RebootStatusResponse) String() string { return proto.CompactTextString(m) } -func (*RebootStatusResponse) ProtoMessage() {} -func (*RebootStatusResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_746080b643370b3b, []int{7} -} - -func (m *RebootStatusResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RebootStatusResponse.Unmarshal(m, b) -} -func (m *RebootStatusResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RebootStatusResponse.Marshal(b, m, deterministic) -} -func (m *RebootStatusResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RebootStatusResponse.Merge(m, src) -} -func (m *RebootStatusResponse) XXX_Size() int { - return xxx_messageInfo_RebootStatusResponse.Size(m) -} -func (m *RebootStatusResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RebootStatusResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RebootStatusResponse proto.InternalMessageInfo - -func (m *RebootStatusResponse) GetActive() bool { - if m != nil { - return m.Active - } - return false -} - -func (m *RebootStatusResponse) GetWait() uint64 { - if m != nil { - return m.Wait - } - return 0 -} - -func (m *RebootStatusResponse) GetWhen() uint64 { - if m != nil { - return m.When - } - return 0 -} - -func (m *RebootStatusResponse) GetReason() string { - if m != nil { - return m.Reason - } - return "" -} - -func (m *RebootStatusResponse) GetCount() uint32 { - if m != nil { - return m.Count - } - return 0 -} +func (m *RebootStatusResponse) Reset() { *m = RebootStatusResponse{} } +func (m *RebootStatusResponse) String() string { return proto.CompactTextString(m) } +func (*RebootStatusResponse) ProtoMessage() {} +func (*RebootStatusResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} } // A TimeRequest requests the current time accodring to the target. type TimeRequest struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` } -func (m *TimeRequest) Reset() { *m = TimeRequest{} } -func (m *TimeRequest) String() string { return proto.CompactTextString(m) } -func (*TimeRequest) ProtoMessage() {} -func (*TimeRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_746080b643370b3b, []int{8} -} - -func (m *TimeRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TimeRequest.Unmarshal(m, b) -} -func (m *TimeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TimeRequest.Marshal(b, m, deterministic) -} -func (m *TimeRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_TimeRequest.Merge(m, src) -} -func (m *TimeRequest) XXX_Size() int { - return xxx_messageInfo_TimeRequest.Size(m) -} -func (m *TimeRequest) XXX_DiscardUnknown() { - xxx_messageInfo_TimeRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_TimeRequest proto.InternalMessageInfo +func (m *TimeRequest) Reset() { *m = TimeRequest{} } +func (m *TimeRequest) String() string { return proto.CompactTextString(m) } +func (*TimeRequest) ProtoMessage() {} +func (*TimeRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} } type TimeResponse struct { - Time uint64 `protobuf:"varint,1,opt,name=time,proto3" json:"time,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TimeResponse) Reset() { *m = TimeResponse{} } -func (m *TimeResponse) String() string { return proto.CompactTextString(m) } -func (*TimeResponse) ProtoMessage() {} -func (*TimeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_746080b643370b3b, []int{9} -} - -func (m *TimeResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TimeResponse.Unmarshal(m, b) -} -func (m *TimeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TimeResponse.Marshal(b, m, deterministic) -} -func (m *TimeResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_TimeResponse.Merge(m, src) + Time uint64 `protobuf:"varint,1,opt,name=time" json:"time,omitempty"` } -func (m *TimeResponse) XXX_Size() int { - return xxx_messageInfo_TimeResponse.Size(m) -} -func (m *TimeResponse) XXX_DiscardUnknown() { - xxx_messageInfo_TimeResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_TimeResponse proto.InternalMessageInfo -func (m *TimeResponse) GetTime() uint64 { - if m != nil { - return m.Time - } - return 0 -} +func (m *TimeResponse) Reset() { *m = TimeResponse{} } +func (m *TimeResponse) String() string { return proto.CompactTextString(m) } +func (*TimeResponse) ProtoMessage() {} +func (*TimeResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{9} } // A PingRequest describes the ping operation to perform. Only the destination // fields is required. Any field not specified is set to a reasonable server @@ -631,107 +327,21 @@ func (m *TimeResponse) GetTime() uint64 { // // If the size is 0, the vendor default size will be used (typically 56 bytes). type PingRequest struct { - Destination string `protobuf:"bytes,1,opt,name=destination,proto3" json:"destination,omitempty"` - Source string `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"` - Count int32 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"` - Interval int64 `protobuf:"varint,4,opt,name=interval,proto3" json:"interval,omitempty"` - Wait int64 `protobuf:"varint,5,opt,name=wait,proto3" json:"wait,omitempty"` - Size int32 `protobuf:"varint,6,opt,name=size,proto3" json:"size,omitempty"` - DoNotFragment bool `protobuf:"varint,7,opt,name=do_not_fragment,json=doNotFragment,proto3" json:"do_not_fragment,omitempty"` - DoNotResolve bool `protobuf:"varint,8,opt,name=do_not_resolve,json=doNotResolve,proto3" json:"do_not_resolve,omitempty"` - L3Protocol types.L3Protocol `protobuf:"varint,9,opt,name=l3protocol,proto3,enum=gnoi.L3Protocol" json:"l3protocol,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *PingRequest) Reset() { *m = PingRequest{} } -func (m *PingRequest) String() string { return proto.CompactTextString(m) } -func (*PingRequest) ProtoMessage() {} -func (*PingRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_746080b643370b3b, []int{10} -} - -func (m *PingRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PingRequest.Unmarshal(m, b) -} -func (m *PingRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PingRequest.Marshal(b, m, deterministic) -} -func (m *PingRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_PingRequest.Merge(m, src) -} -func (m *PingRequest) XXX_Size() int { - return xxx_messageInfo_PingRequest.Size(m) -} -func (m *PingRequest) XXX_DiscardUnknown() { - xxx_messageInfo_PingRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_PingRequest proto.InternalMessageInfo - -func (m *PingRequest) GetDestination() string { - if m != nil { - return m.Destination - } - return "" -} - -func (m *PingRequest) GetSource() string { - if m != nil { - return m.Source - } - return "" -} - -func (m *PingRequest) GetCount() int32 { - if m != nil { - return m.Count - } - return 0 -} - -func (m *PingRequest) GetInterval() int64 { - if m != nil { - return m.Interval - } - return 0 -} - -func (m *PingRequest) GetWait() int64 { - if m != nil { - return m.Wait - } - return 0 -} - -func (m *PingRequest) GetSize() int32 { - if m != nil { - return m.Size - } - return 0 -} - -func (m *PingRequest) GetDoNotFragment() bool { - if m != nil { - return m.DoNotFragment - } - return false -} - -func (m *PingRequest) GetDoNotResolve() bool { - if m != nil { - return m.DoNotResolve - } - return false -} - -func (m *PingRequest) GetL3Protocol() types.L3Protocol { - if m != nil { - return m.L3Protocol - } - return types.L3Protocol_UNSPECIFIED -} + Destination string `protobuf:"bytes,1,opt,name=destination" json:"destination,omitempty"` + Source string `protobuf:"bytes,2,opt,name=source" json:"source,omitempty"` + Count int32 `protobuf:"varint,3,opt,name=count" json:"count,omitempty"` + Interval int64 `protobuf:"varint,4,opt,name=interval" json:"interval,omitempty"` + Wait int64 `protobuf:"varint,5,opt,name=wait" json:"wait,omitempty"` + Size int32 `protobuf:"varint,6,opt,name=size" json:"size,omitempty"` + DoNotFragment bool `protobuf:"varint,7,opt,name=do_not_fragment,json=doNotFragment" json:"do_not_fragment,omitempty"` + DoNotResolve bool `protobuf:"varint,8,opt,name=do_not_resolve,json=doNotResolve" json:"do_not_resolve,omitempty"` + L3Protocol gnoi.L3Protocol `protobuf:"varint,9,opt,name=l3protocol,enum=gnoi.L3Protocol" json:"l3protocol,omitempty"` +} + +func (m *PingRequest) Reset() { *m = PingRequest{} } +func (m *PingRequest) String() string { return proto.CompactTextString(m) } +func (*PingRequest) ProtoMessage() {} +func (*PingRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{10} } // A PingResponse represents either the reponse to a single ping packet // (the bytes field is non-zero) or the summary statistics (sent is non-zero). @@ -741,123 +351,23 @@ func (m *PingRequest) GetL3Protocol() types.L3Protocol { // not always present in summary statistics. The std_dev is not always present // in summary statistics. type PingResponse struct { - Source string `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"` - Time int64 `protobuf:"varint,2,opt,name=time,proto3" json:"time,omitempty"` - Sent int32 `protobuf:"varint,3,opt,name=sent,proto3" json:"sent,omitempty"` - Received int32 `protobuf:"varint,4,opt,name=received,proto3" json:"received,omitempty"` - MinTime int64 `protobuf:"varint,5,opt,name=min_time,json=minTime,proto3" json:"min_time,omitempty"` - AvgTime int64 `protobuf:"varint,6,opt,name=avg_time,json=avgTime,proto3" json:"avg_time,omitempty"` - MaxTime int64 `protobuf:"varint,7,opt,name=max_time,json=maxTime,proto3" json:"max_time,omitempty"` - StdDev int64 `protobuf:"varint,8,opt,name=std_dev,json=stdDev,proto3" json:"std_dev,omitempty"` - Bytes int32 `protobuf:"varint,11,opt,name=bytes,proto3" json:"bytes,omitempty"` - Sequence int32 `protobuf:"varint,12,opt,name=sequence,proto3" json:"sequence,omitempty"` - Ttl int32 `protobuf:"varint,13,opt,name=ttl,proto3" json:"ttl,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *PingResponse) Reset() { *m = PingResponse{} } -func (m *PingResponse) String() string { return proto.CompactTextString(m) } -func (*PingResponse) ProtoMessage() {} -func (*PingResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_746080b643370b3b, []int{11} -} - -func (m *PingResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PingResponse.Unmarshal(m, b) -} -func (m *PingResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PingResponse.Marshal(b, m, deterministic) -} -func (m *PingResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_PingResponse.Merge(m, src) -} -func (m *PingResponse) XXX_Size() int { - return xxx_messageInfo_PingResponse.Size(m) -} -func (m *PingResponse) XXX_DiscardUnknown() { - xxx_messageInfo_PingResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_PingResponse proto.InternalMessageInfo - -func (m *PingResponse) GetSource() string { - if m != nil { - return m.Source - } - return "" -} - -func (m *PingResponse) GetTime() int64 { - if m != nil { - return m.Time - } - return 0 -} - -func (m *PingResponse) GetSent() int32 { - if m != nil { - return m.Sent - } - return 0 -} - -func (m *PingResponse) GetReceived() int32 { - if m != nil { - return m.Received - } - return 0 -} - -func (m *PingResponse) GetMinTime() int64 { - if m != nil { - return m.MinTime - } - return 0 -} - -func (m *PingResponse) GetAvgTime() int64 { - if m != nil { - return m.AvgTime - } - return 0 -} - -func (m *PingResponse) GetMaxTime() int64 { - if m != nil { - return m.MaxTime - } - return 0 -} - -func (m *PingResponse) GetStdDev() int64 { - if m != nil { - return m.StdDev - } - return 0 -} - -func (m *PingResponse) GetBytes() int32 { - if m != nil { - return m.Bytes - } - return 0 -} - -func (m *PingResponse) GetSequence() int32 { - if m != nil { - return m.Sequence - } - return 0 -} - -func (m *PingResponse) GetTtl() int32 { - if m != nil { - return m.Ttl - } - return 0 -} + Source string `protobuf:"bytes,1,opt,name=source" json:"source,omitempty"` + Time int64 `protobuf:"varint,2,opt,name=time" json:"time,omitempty"` + Sent int32 `protobuf:"varint,3,opt,name=sent" json:"sent,omitempty"` + Received int32 `protobuf:"varint,4,opt,name=received" json:"received,omitempty"` + MinTime int64 `protobuf:"varint,5,opt,name=min_time,json=minTime" json:"min_time,omitempty"` + AvgTime int64 `protobuf:"varint,6,opt,name=avg_time,json=avgTime" json:"avg_time,omitempty"` + MaxTime int64 `protobuf:"varint,7,opt,name=max_time,json=maxTime" json:"max_time,omitempty"` + StdDev int64 `protobuf:"varint,8,opt,name=std_dev,json=stdDev" json:"std_dev,omitempty"` + Bytes int32 `protobuf:"varint,11,opt,name=bytes" json:"bytes,omitempty"` + Sequence int32 `protobuf:"varint,12,opt,name=sequence" json:"sequence,omitempty"` + Ttl int32 `protobuf:"varint,13,opt,name=ttl" json:"ttl,omitempty"` +} + +func (m *PingResponse) Reset() { *m = PingResponse{} } +func (m *PingResponse) String() string { return proto.CompactTextString(m) } +func (*PingResponse) ProtoMessage() {} +func (*PingResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{11} } // A TracerouteRequest describes the traceroute operation to perform. Only the // destination field is required. Any field not specified is set to a @@ -867,107 +377,21 @@ func (m *PingResponse) GetTtl() int32 { // If the hop_count is -1 the traceroute will continue forever. // type TracerouteRequest struct { - Source string `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"` - Destination string `protobuf:"bytes,2,opt,name=destination,proto3" json:"destination,omitempty"` - InitialTtl uint32 `protobuf:"varint,3,opt,name=initial_ttl,json=initialTtl,proto3" json:"initial_ttl,omitempty"` - MaxTtl int32 `protobuf:"varint,4,opt,name=max_ttl,json=maxTtl,proto3" json:"max_ttl,omitempty"` - Wait int64 `protobuf:"varint,5,opt,name=wait,proto3" json:"wait,omitempty"` - DoNotFragment bool `protobuf:"varint,6,opt,name=do_not_fragment,json=doNotFragment,proto3" json:"do_not_fragment,omitempty"` - DoNotResolve bool `protobuf:"varint,7,opt,name=do_not_resolve,json=doNotResolve,proto3" json:"do_not_resolve,omitempty"` - L3Protocol types.L3Protocol `protobuf:"varint,8,opt,name=l3protocol,proto3,enum=gnoi.L3Protocol" json:"l3protocol,omitempty"` - L4Protocol TracerouteRequest_L4Protocol `protobuf:"varint,9,opt,name=l4protocol,proto3,enum=gnoi.system.TracerouteRequest_L4Protocol" json:"l4protocol,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TracerouteRequest) Reset() { *m = TracerouteRequest{} } -func (m *TracerouteRequest) String() string { return proto.CompactTextString(m) } -func (*TracerouteRequest) ProtoMessage() {} -func (*TracerouteRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_746080b643370b3b, []int{12} -} - -func (m *TracerouteRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TracerouteRequest.Unmarshal(m, b) -} -func (m *TracerouteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TracerouteRequest.Marshal(b, m, deterministic) -} -func (m *TracerouteRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_TracerouteRequest.Merge(m, src) -} -func (m *TracerouteRequest) XXX_Size() int { - return xxx_messageInfo_TracerouteRequest.Size(m) -} -func (m *TracerouteRequest) XXX_DiscardUnknown() { - xxx_messageInfo_TracerouteRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_TracerouteRequest proto.InternalMessageInfo - -func (m *TracerouteRequest) GetSource() string { - if m != nil { - return m.Source - } - return "" -} - -func (m *TracerouteRequest) GetDestination() string { - if m != nil { - return m.Destination - } - return "" -} - -func (m *TracerouteRequest) GetInitialTtl() uint32 { - if m != nil { - return m.InitialTtl - } - return 0 -} - -func (m *TracerouteRequest) GetMaxTtl() int32 { - if m != nil { - return m.MaxTtl - } - return 0 -} - -func (m *TracerouteRequest) GetWait() int64 { - if m != nil { - return m.Wait - } - return 0 -} - -func (m *TracerouteRequest) GetDoNotFragment() bool { - if m != nil { - return m.DoNotFragment - } - return false -} - -func (m *TracerouteRequest) GetDoNotResolve() bool { - if m != nil { - return m.DoNotResolve - } - return false -} - -func (m *TracerouteRequest) GetL3Protocol() types.L3Protocol { - if m != nil { - return m.L3Protocol - } - return types.L3Protocol_UNSPECIFIED -} - -func (m *TracerouteRequest) GetL4Protocol() TracerouteRequest_L4Protocol { - if m != nil { - return m.L4Protocol - } - return TracerouteRequest_ICMP -} + Source string `protobuf:"bytes,1,opt,name=source" json:"source,omitempty"` + Destination string `protobuf:"bytes,2,opt,name=destination" json:"destination,omitempty"` + InitialTtl uint32 `protobuf:"varint,3,opt,name=initial_ttl,json=initialTtl" json:"initial_ttl,omitempty"` + MaxTtl int32 `protobuf:"varint,4,opt,name=max_ttl,json=maxTtl" json:"max_ttl,omitempty"` + Wait int64 `protobuf:"varint,5,opt,name=wait" json:"wait,omitempty"` + DoNotFragment bool `protobuf:"varint,6,opt,name=do_not_fragment,json=doNotFragment" json:"do_not_fragment,omitempty"` + DoNotResolve bool `protobuf:"varint,7,opt,name=do_not_resolve,json=doNotResolve" json:"do_not_resolve,omitempty"` + L3Protocol gnoi.L3Protocol `protobuf:"varint,8,opt,name=l3protocol,enum=gnoi.L3Protocol" json:"l3protocol,omitempty"` + L4Protocol TracerouteRequest_L4Protocol `protobuf:"varint,9,opt,name=l4protocol,enum=gnoi.system.TracerouteRequest_L4Protocol" json:"l4protocol,omitempty"` +} + +func (m *TracerouteRequest) Reset() { *m = TracerouteRequest{} } +func (m *TracerouteRequest) String() string { return proto.CompactTextString(m) } +func (*TracerouteRequest) ProtoMessage() {} +func (*TracerouteRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{12} } // A TraceRouteResponse contains the result of a single traceoute packet. // @@ -987,119 +411,26 @@ type TracerouteResponse struct { // The following fields are only filled in for the first message. // If any of these fields are specified, all fields following this // block are left unspecified. - DestinationName string `protobuf:"bytes,1,opt,name=destination_name,json=destinationName,proto3" json:"destination_name,omitempty"` - DestinationAddress string `protobuf:"bytes,2,opt,name=destination_address,json=destinationAddress,proto3" json:"destination_address,omitempty"` - Hops int32 `protobuf:"varint,3,opt,name=hops,proto3" json:"hops,omitempty"` - PacketSize int32 `protobuf:"varint,4,opt,name=packet_size,json=packetSize,proto3" json:"packet_size,omitempty"` + DestinationName string `protobuf:"bytes,1,opt,name=destination_name,json=destinationName" json:"destination_name,omitempty"` + DestinationAddress string `protobuf:"bytes,2,opt,name=destination_address,json=destinationAddress" json:"destination_address,omitempty"` + Hops int32 `protobuf:"varint,3,opt,name=hops" json:"hops,omitempty"` + PacketSize int32 `protobuf:"varint,4,opt,name=packet_size,json=packetSize" json:"packet_size,omitempty"` // The following fields provide the disposition of a single traceroute // packet. - Hop int32 `protobuf:"varint,5,opt,name=hop,proto3" json:"hop,omitempty"` - Address string `protobuf:"bytes,6,opt,name=address,proto3" json:"address,omitempty"` - Name string `protobuf:"bytes,7,opt,name=name,proto3" json:"name,omitempty"` - Rtt int64 `protobuf:"varint,8,opt,name=rtt,proto3" json:"rtt,omitempty"` - State TracerouteResponse_State `protobuf:"varint,9,opt,name=state,proto3,enum=gnoi.system.TracerouteResponse_State" json:"state,omitempty"` - IcmpCode int32 `protobuf:"varint,10,opt,name=icmp_code,json=icmpCode,proto3" json:"icmp_code,omitempty"` - Mpls map[string]string `protobuf:"bytes,11,rep,name=mpls,proto3" json:"mpls,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - AsPath []int32 `protobuf:"varint,12,rep,packed,name=as_path,json=asPath,proto3" json:"as_path,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TracerouteResponse) Reset() { *m = TracerouteResponse{} } -func (m *TracerouteResponse) String() string { return proto.CompactTextString(m) } -func (*TracerouteResponse) ProtoMessage() {} -func (*TracerouteResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_746080b643370b3b, []int{13} -} - -func (m *TracerouteResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TracerouteResponse.Unmarshal(m, b) -} -func (m *TracerouteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TracerouteResponse.Marshal(b, m, deterministic) -} -func (m *TracerouteResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_TracerouteResponse.Merge(m, src) -} -func (m *TracerouteResponse) XXX_Size() int { - return xxx_messageInfo_TracerouteResponse.Size(m) -} -func (m *TracerouteResponse) XXX_DiscardUnknown() { - xxx_messageInfo_TracerouteResponse.DiscardUnknown(m) + Hop int32 `protobuf:"varint,5,opt,name=hop" json:"hop,omitempty"` + Address string `protobuf:"bytes,6,opt,name=address" json:"address,omitempty"` + Name string `protobuf:"bytes,7,opt,name=name" json:"name,omitempty"` + Rtt int64 `protobuf:"varint,8,opt,name=rtt" json:"rtt,omitempty"` + State TracerouteResponse_State `protobuf:"varint,9,opt,name=state,enum=gnoi.system.TracerouteResponse_State" json:"state,omitempty"` + IcmpCode int32 `protobuf:"varint,10,opt,name=icmp_code,json=icmpCode" json:"icmp_code,omitempty"` + Mpls map[string]string `protobuf:"bytes,11,rep,name=mpls" json:"mpls,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + AsPath []int32 `protobuf:"varint,12,rep,packed,name=as_path,json=asPath" json:"as_path,omitempty"` } -var xxx_messageInfo_TracerouteResponse proto.InternalMessageInfo - -func (m *TracerouteResponse) GetDestinationName() string { - if m != nil { - return m.DestinationName - } - return "" -} - -func (m *TracerouteResponse) GetDestinationAddress() string { - if m != nil { - return m.DestinationAddress - } - return "" -} - -func (m *TracerouteResponse) GetHops() int32 { - if m != nil { - return m.Hops - } - return 0 -} - -func (m *TracerouteResponse) GetPacketSize() int32 { - if m != nil { - return m.PacketSize - } - return 0 -} - -func (m *TracerouteResponse) GetHop() int32 { - if m != nil { - return m.Hop - } - return 0 -} - -func (m *TracerouteResponse) GetAddress() string { - if m != nil { - return m.Address - } - return "" -} - -func (m *TracerouteResponse) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -func (m *TracerouteResponse) GetRtt() int64 { - if m != nil { - return m.Rtt - } - return 0 -} - -func (m *TracerouteResponse) GetState() TracerouteResponse_State { - if m != nil { - return m.State - } - return TracerouteResponse_DEFAULT -} - -func (m *TracerouteResponse) GetIcmpCode() int32 { - if m != nil { - return m.IcmpCode - } - return 0 -} +func (m *TracerouteResponse) Reset() { *m = TracerouteResponse{} } +func (m *TracerouteResponse) String() string { return proto.CompactTextString(m) } +func (*TracerouteResponse) ProtoMessage() {} +func (*TracerouteResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{13} } func (m *TracerouteResponse) GetMpls() map[string]string { if m != nil { @@ -1108,77 +439,26 @@ func (m *TracerouteResponse) GetMpls() map[string]string { return nil } -func (m *TracerouteResponse) GetAsPath() []int32 { - if m != nil { - return m.AsPath - } - return nil -} - // Package defines a single package file to be placed on the target. type Package struct { // Destination path and filename of the package. - Filename string `protobuf:"bytes,1,opt,name=filename,proto3" json:"filename,omitempty"` + Filename string `protobuf:"bytes,1,opt,name=filename" json:"filename,omitempty"` // Version of the package. (vendor internal name) - Version string `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"` + Version string `protobuf:"bytes,4,opt,name=version" json:"version,omitempty"` // Indicates that the package should be made active after receipt on // the device. For system image packages, the new image is expected to // be active after a reboot. - Activate bool `protobuf:"varint,5,opt,name=activate,proto3" json:"activate,omitempty"` + Activate bool `protobuf:"varint,5,opt,name=activate" json:"activate,omitempty"` // Details for the device to download the package from a remote location. - RemoteDownload *common.RemoteDownload `protobuf:"bytes,6,opt,name=remote_download,json=remoteDownload,proto3" json:"remote_download,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Package) Reset() { *m = Package{} } -func (m *Package) String() string { return proto.CompactTextString(m) } -func (*Package) ProtoMessage() {} -func (*Package) Descriptor() ([]byte, []int) { - return fileDescriptor_746080b643370b3b, []int{14} -} - -func (m *Package) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Package.Unmarshal(m, b) -} -func (m *Package) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Package.Marshal(b, m, deterministic) -} -func (m *Package) XXX_Merge(src proto.Message) { - xxx_messageInfo_Package.Merge(m, src) -} -func (m *Package) XXX_Size() int { - return xxx_messageInfo_Package.Size(m) -} -func (m *Package) XXX_DiscardUnknown() { - xxx_messageInfo_Package.DiscardUnknown(m) + RemoteDownload *gnoi1.RemoteDownload `protobuf:"bytes,6,opt,name=remote_download,json=remoteDownload" json:"remote_download,omitempty"` } -var xxx_messageInfo_Package proto.InternalMessageInfo +func (m *Package) Reset() { *m = Package{} } +func (m *Package) String() string { return proto.CompactTextString(m) } +func (*Package) ProtoMessage() {} +func (*Package) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{14} } -func (m *Package) GetFilename() string { - if m != nil { - return m.Filename - } - return "" -} - -func (m *Package) GetVersion() string { - if m != nil { - return m.Version - } - return "" -} - -func (m *Package) GetActivate() bool { - if m != nil { - return m.Activate - } - return false -} - -func (m *Package) GetRemoteDownload() *common.RemoteDownload { +func (m *Package) GetRemoteDownload() *gnoi1.RemoteDownload { if m != nil { return m.RemoteDownload } @@ -1195,58 +475,31 @@ type SetPackageRequest struct { // *SetPackageRequest_Package // *SetPackageRequest_Contents // *SetPackageRequest_Hash - Request isSetPackageRequest_Request `protobuf_oneof:"request"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *SetPackageRequest) Reset() { *m = SetPackageRequest{} } -func (m *SetPackageRequest) String() string { return proto.CompactTextString(m) } -func (*SetPackageRequest) ProtoMessage() {} -func (*SetPackageRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_746080b643370b3b, []int{15} -} - -func (m *SetPackageRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SetPackageRequest.Unmarshal(m, b) -} -func (m *SetPackageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SetPackageRequest.Marshal(b, m, deterministic) -} -func (m *SetPackageRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_SetPackageRequest.Merge(m, src) -} -func (m *SetPackageRequest) XXX_Size() int { - return xxx_messageInfo_SetPackageRequest.Size(m) -} -func (m *SetPackageRequest) XXX_DiscardUnknown() { - xxx_messageInfo_SetPackageRequest.DiscardUnknown(m) + Request isSetPackageRequest_Request `protobuf_oneof:"request"` } -var xxx_messageInfo_SetPackageRequest proto.InternalMessageInfo +func (m *SetPackageRequest) Reset() { *m = SetPackageRequest{} } +func (m *SetPackageRequest) String() string { return proto.CompactTextString(m) } +func (*SetPackageRequest) ProtoMessage() {} +func (*SetPackageRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{15} } type isSetPackageRequest_Request interface { isSetPackageRequest_Request() } type SetPackageRequest_Package struct { - Package *Package `protobuf:"bytes,1,opt,name=package,proto3,oneof"` + Package *Package `protobuf:"bytes,1,opt,name=package,oneof"` } - type SetPackageRequest_Contents struct { Contents []byte `protobuf:"bytes,2,opt,name=contents,proto3,oneof"` } - type SetPackageRequest_Hash struct { - Hash *types.HashType `protobuf:"bytes,3,opt,name=hash,proto3,oneof"` + Hash *gnoi.HashType `protobuf:"bytes,3,opt,name=hash,oneof"` } -func (*SetPackageRequest_Package) isSetPackageRequest_Request() {} - +func (*SetPackageRequest_Package) isSetPackageRequest_Request() {} func (*SetPackageRequest_Contents) isSetPackageRequest_Request() {} - -func (*SetPackageRequest_Hash) isSetPackageRequest_Request() {} +func (*SetPackageRequest_Hash) isSetPackageRequest_Request() {} func (m *SetPackageRequest) GetRequest() isSetPackageRequest_Request { if m != nil { @@ -1269,7 +522,7 @@ func (m *SetPackageRequest) GetContents() []byte { return nil } -func (m *SetPackageRequest) GetHash() *types.HashType { +func (m *SetPackageRequest) GetHash() *gnoi.HashType { if x, ok := m.GetRequest().(*SetPackageRequest_Hash); ok { return x.Hash } @@ -1331,7 +584,7 @@ func _SetPackageRequest_OneofUnmarshaler(msg proto.Message, tag, wire int, b *pr if wire != proto.WireBytes { return true, proto.ErrInternalBadWireType } - msg := new(types.HashType) + msg := new(gnoi.HashType) err := b.DecodeMessage(msg) m.Request = &SetPackageRequest_Hash{msg} return true, err @@ -1346,16 +599,16 @@ func _SetPackageRequest_OneofSizer(msg proto.Message) (n int) { switch x := m.Request.(type) { case *SetPackageRequest_Package: s := proto.Size(x.Package) - n += 1 // tag and wire + n += proto.SizeVarint(1<<3 | proto.WireBytes) n += proto.SizeVarint(uint64(s)) n += s case *SetPackageRequest_Contents: - n += 1 // tag and wire + n += proto.SizeVarint(2<<3 | proto.WireBytes) n += proto.SizeVarint(uint64(len(x.Contents))) n += len(x.Contents) case *SetPackageRequest_Hash: s := proto.Size(x.Hash) - n += 1 // tag and wire + n += proto.SizeVarint(3<<3 | proto.WireBytes) n += proto.SizeVarint(uint64(s)) n += s case nil: @@ -1366,40 +619,14 @@ func _SetPackageRequest_OneofSizer(msg proto.Message) (n int) { } type SetPackageResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *SetPackageResponse) Reset() { *m = SetPackageResponse{} } -func (m *SetPackageResponse) String() string { return proto.CompactTextString(m) } -func (*SetPackageResponse) ProtoMessage() {} -func (*SetPackageResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_746080b643370b3b, []int{16} -} - -func (m *SetPackageResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SetPackageResponse.Unmarshal(m, b) -} -func (m *SetPackageResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SetPackageResponse.Marshal(b, m, deterministic) -} -func (m *SetPackageResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_SetPackageResponse.Merge(m, src) -} -func (m *SetPackageResponse) XXX_Size() int { - return xxx_messageInfo_SetPackageResponse.Size(m) -} -func (m *SetPackageResponse) XXX_DiscardUnknown() { - xxx_messageInfo_SetPackageResponse.DiscardUnknown(m) } -var xxx_messageInfo_SetPackageResponse proto.InternalMessageInfo +func (m *SetPackageResponse) Reset() { *m = SetPackageResponse{} } +func (m *SetPackageResponse) String() string { return proto.CompactTextString(m) } +func (*SetPackageResponse) ProtoMessage() {} +func (*SetPackageResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{16} } func init() { - proto.RegisterEnum("gnoi.system.RebootMethod", RebootMethod_name, RebootMethod_value) - proto.RegisterEnum("gnoi.system.TracerouteRequest_L4Protocol", TracerouteRequest_L4Protocol_name, TracerouteRequest_L4Protocol_value) - proto.RegisterEnum("gnoi.system.TracerouteResponse_State", TracerouteResponse_State_name, TracerouteResponse_State_value) proto.RegisterType((*SwitchControlProcessorRequest)(nil), "gnoi.system.SwitchControlProcessorRequest") proto.RegisterType((*SwitchControlProcessorResponse)(nil), "gnoi.system.SwitchControlProcessorResponse") proto.RegisterType((*RebootRequest)(nil), "gnoi.system.RebootRequest") @@ -1414,116 +641,12 @@ func init() { proto.RegisterType((*PingResponse)(nil), "gnoi.system.PingResponse") proto.RegisterType((*TracerouteRequest)(nil), "gnoi.system.TracerouteRequest") proto.RegisterType((*TracerouteResponse)(nil), "gnoi.system.TracerouteResponse") - proto.RegisterMapType((map[string]string)(nil), "gnoi.system.TracerouteResponse.MplsEntry") proto.RegisterType((*Package)(nil), "gnoi.system.Package") proto.RegisterType((*SetPackageRequest)(nil), "gnoi.system.SetPackageRequest") proto.RegisterType((*SetPackageResponse)(nil), "gnoi.system.SetPackageResponse") -} - -func init() { proto.RegisterFile("system/system.proto", fileDescriptor_746080b643370b3b) } - -var fileDescriptor_746080b643370b3b = []byte{ - // 1590 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x57, 0x4f, 0x73, 0xe3, 0x48, - 0x15, 0x8f, 0xfc, 0xdf, 0xcf, 0x49, 0x46, 0xd3, 0x09, 0xb3, 0x1a, 0x2f, 0xec, 0x06, 0xd5, 0x42, - 0x65, 0x16, 0xca, 0xc9, 0x66, 0xb6, 0x6a, 0x29, 0xa8, 0x81, 0xf2, 0xd8, 0xca, 0x26, 0xb5, 0x8e, - 0x6d, 0xda, 0x32, 0xc3, 0x4d, 0xd5, 0x91, 0x7b, 0x62, 0xd5, 0x48, 0x6a, 0xa1, 0x6e, 0x7b, 0x36, - 0x9c, 0xb9, 0x71, 0xe1, 0x40, 0x51, 0x14, 0x37, 0xbe, 0x06, 0x1f, 0x83, 0x0b, 0xdf, 0x83, 0x4f, - 0x40, 0x75, 0xb7, 0xe4, 0xc8, 0x8e, 0x27, 0x99, 0xe2, 0x92, 0xf4, 0xfb, 0xd3, 0xaf, 0xdf, 0xfb, - 0xbd, 0x5f, 0xb7, 0x9e, 0xe1, 0x80, 0xdf, 0x72, 0x41, 0xa3, 0x13, 0xfd, 0xaf, 0x93, 0xa4, 0x4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f3, - 0x55, 0xe7, 0xf4, 0xba, 0xa6, 0xbe, 0xb2, 0x2f, 0xff, 0x17, 0x00, 0x00, 0xff, 0xff, 0xcf, 0x1c, - 0x6a, 0xa7, 0xc1, 0x0e, 0x00, 0x00, + proto.RegisterEnum("gnoi.system.RebootMethod", RebootMethod_name, RebootMethod_value) + proto.RegisterEnum("gnoi.system.TracerouteRequest_L4Protocol", TracerouteRequest_L4Protocol_name, TracerouteRequest_L4Protocol_value) + proto.RegisterEnum("gnoi.system.TracerouteResponse_State", TracerouteResponse_State_name, TracerouteResponse_State_value) } // Reference imports to suppress errors if they are not otherwise used. @@ -1534,9 +657,8 @@ var _ grpc.ClientConn // is compatible with the grpc package it is being compiled against. const _ = grpc.SupportPackageIsVersion4 -// SystemClient is the client API for System service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +// Client API for System service + type SystemClient interface { // Ping executes the ping command on the target and streams back // the results. Some targets may not stream any results until all @@ -1589,7 +711,7 @@ func NewSystemClient(cc *grpc.ClientConn) SystemClient { } func (c *systemClient) Ping(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (System_PingClient, error) { - stream, err := c.cc.NewStream(ctx, &_System_serviceDesc.Streams[0], "/gnoi.system.System/Ping", opts...) + stream, err := grpc.NewClientStream(ctx, &_System_serviceDesc.Streams[0], c.cc, "/gnoi.system.System/Ping", opts...) if err != nil { return nil, err } @@ -1621,7 +743,7 @@ func (x *systemPingClient) Recv() (*PingResponse, error) { } func (c *systemClient) Traceroute(ctx context.Context, in *TracerouteRequest, opts ...grpc.CallOption) (System_TracerouteClient, error) { - stream, err := c.cc.NewStream(ctx, &_System_serviceDesc.Streams[1], "/gnoi.system.System/Traceroute", opts...) + stream, err := grpc.NewClientStream(ctx, &_System_serviceDesc.Streams[1], c.cc, "/gnoi.system.System/Traceroute", opts...) if err != nil { return nil, err } @@ -1654,7 +776,7 @@ func (x *systemTracerouteClient) Recv() (*TracerouteResponse, error) { func (c *systemClient) Time(ctx context.Context, in *TimeRequest, opts ...grpc.CallOption) (*TimeResponse, error) { out := new(TimeResponse) - err := c.cc.Invoke(ctx, "/gnoi.system.System/Time", in, out, opts...) + err := grpc.Invoke(ctx, "/gnoi.system.System/Time", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -1662,7 +784,7 @@ func (c *systemClient) Time(ctx context.Context, in *TimeRequest, opts ...grpc.C } func (c *systemClient) SetPackage(ctx context.Context, opts ...grpc.CallOption) (System_SetPackageClient, error) { - stream, err := c.cc.NewStream(ctx, &_System_serviceDesc.Streams[2], "/gnoi.system.System/SetPackage", opts...) + stream, err := grpc.NewClientStream(ctx, &_System_serviceDesc.Streams[2], c.cc, "/gnoi.system.System/SetPackage", opts...) if err != nil { return nil, err } @@ -1697,7 +819,7 @@ func (x *systemSetPackageClient) CloseAndRecv() (*SetPackageResponse, error) { func (c *systemClient) SwitchControlProcessor(ctx context.Context, in *SwitchControlProcessorRequest, opts ...grpc.CallOption) (*SwitchControlProcessorResponse, error) { out := new(SwitchControlProcessorResponse) - err := c.cc.Invoke(ctx, "/gnoi.system.System/SwitchControlProcessor", in, out, opts...) + err := grpc.Invoke(ctx, "/gnoi.system.System/SwitchControlProcessor", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -1706,7 +828,7 @@ func (c *systemClient) SwitchControlProcessor(ctx context.Context, in *SwitchCon func (c *systemClient) Reboot(ctx context.Context, in *RebootRequest, opts ...grpc.CallOption) (*RebootResponse, error) { out := new(RebootResponse) - err := c.cc.Invoke(ctx, "/gnoi.system.System/Reboot", in, out, opts...) + err := grpc.Invoke(ctx, "/gnoi.system.System/Reboot", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -1715,7 +837,7 @@ func (c *systemClient) Reboot(ctx context.Context, in *RebootRequest, opts ...gr func (c *systemClient) RebootStatus(ctx context.Context, in *RebootStatusRequest, opts ...grpc.CallOption) (*RebootStatusResponse, error) { out := new(RebootStatusResponse) - err := c.cc.Invoke(ctx, "/gnoi.system.System/RebootStatus", in, out, opts...) + err := grpc.Invoke(ctx, "/gnoi.system.System/RebootStatus", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -1724,14 +846,15 @@ func (c *systemClient) RebootStatus(ctx context.Context, in *RebootStatusRequest func (c *systemClient) CancelReboot(ctx context.Context, in *CancelRebootRequest, opts ...grpc.CallOption) (*CancelRebootResponse, error) { out := new(CancelRebootResponse) - err := c.cc.Invoke(ctx, "/gnoi.system.System/CancelReboot", in, out, opts...) + err := grpc.Invoke(ctx, "/gnoi.system.System/CancelReboot", in, out, c.cc, opts...) if err != nil { return nil, err } return out, nil } -// SystemServer is the server API for System service. +// Server API for System service + type SystemServer interface { // Ping executes the ping command on the target and streams back // the results. Some targets may not stream any results until all @@ -1981,3 +1104,108 @@ var _System_serviceDesc = grpc.ServiceDesc{ }, Metadata: "system/system.proto", } + +func init() { proto.RegisterFile("system/system.proto", fileDescriptor0) } + +var fileDescriptor0 = []byte{ + // 1569 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x9c, 0x57, 0x4f, 0x6f, 0xdb, 0xc8, + 0x15, 0x37, 0xf5, 0x5f, 0x4f, 0xb6, 0x43, 0x8f, 0xd5, 0x2c, 0xa3, 0x6d, 0x77, 0x55, 0x62, 0x5b, + 0x38, 0x5b, 0x40, 0xf1, 0x3a, 0x0b, 0x6c, 0xd1, 0x22, 0x2d, 0x14, 0x89, 0x5e, 0x1b, 0x2b, 0x4b, + 0xea, 0x88, 0x6a, 0x7a, 0x23, 0x26, 0xd4, 0xc4, 0x22, 0x42, 0x72, 0x54, 0xce, 0x48, 0x59, 0xf7, + 0xdc, 0x5b, 0x2f, 0x3d, 0x14, 0x45, 0xd1, 0x5b, 0xbf, 0x46, 0x3f, 0x46, 0x2f, 0xfd, 0x1e, 0xfd, + 0x04, 0xc5, 0xcc, 0x90, 0x12, 0x25, 0x2b, 0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0x3e, 0x40, 0x91, 0xe9, 0x5f, 0x05, 0x68, 0x8c, 0x83, 0xf8, 0x36, 0xab, 0xbd, + 0x0d, 0x8d, 0x19, 0xe5, 0x22, 0x88, 0x89, 0x90, 0x94, 0xd4, 0xd0, 0xe7, 0x55, 0x32, 0x25, 0xce, + 0x96, 0xb2, 0xb1, 0x9a, 0xaf, 0xa9, 0xb4, 0x49, 0x49, 0xe6, 0x5f, 0x4e, 0x53, 0x42, 0x2d, 0xa8, + 0x05, 0xb1, 0xa0, 0xc9, 0x8a, 0x84, 0xaa, 0x84, 0x22, 0x5e, 0xcb, 0x6b, 0x10, 0xca, 0x4a, 0xbf, + 0x06, 0x81, 0x07, 0x7f, 0xa2, 0x56, 0x45, 0x05, 0x51, 0x6b, 0xf4, 0x73, 0x78, 0x34, 0x63, 0x5e, + 0xcc, 0x84, 0xf7, 0x26, 0x21, 0xb7, 0x11, 0x8d, 0x85, 0x55, 0x55, 0x68, 0x1e, 0xcd, 0xd8, 0x90, + 0x89, 0xcb, 0x54, 0x89, 0xbe, 0x80, 0xe3, 0xd4, 0x2f, 0xa1, 0x9c, 0x85, 0x2b, 0x6a, 0xd5, 0x94, + 0xdb, 0xa1, 0x72, 0xc3, 0x5a, 0x87, 0xce, 0x01, 0xc2, 0xe7, 0xea, 0xc5, 0xf0, 0x59, 0x68, 0xd5, + 0xd5, 0x85, 0x31, 0x75, 0x6b, 0x07, 0xcf, 0xc7, 0xa9, 0x1e, 0xe7, 0x7c, 0xec, 0x7f, 0x14, 0xe0, + 0x50, 0x63, 0xb4, 0xe9, 0x6a, 0x0a, 0x81, 0xb1, 0x05, 0x41, 0x06, 0x70, 0x41, 0x17, 0x24, 0xd7, + 0xaa, 0x20, 0xba, 0x46, 0x45, 0xad, 0x25, 0x28, 0x09, 0xf5, 0x69, 0xb0, 0xa2, 0x33, 0x05, 0x4a, + 0x19, 0xaf, 0x65, 0xf4, 0x04, 0x6a, 0x51, 0x10, 0x7b, 0x2a, 0x8e, 0x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 0x2e, 0x2f, 0xcd, 0x86, 0xfd, 0x4f, 0x03, 0xaa, 0x63, 0xe2, 0xbf, 0x95, 0x43, 0x40, 0x0b, 0x6a, + 0x6f, 0x82, 0x90, 0xe6, 0x68, 0xbc, 0x96, 0xf3, 0x23, 0x55, 0x69, 0x7b, 0xa4, 0x6a, 0x41, 0x4d, + 0x7d, 0x80, 0x25, 0x49, 0xf4, 0x58, 0xb2, 0x96, 0xd1, 0x0b, 0x78, 0x94, 0xd0, 0x88, 0x09, 0xea, + 0xcd, 0xd8, 0xbb, 0x38, 0x64, 0x64, 0xa6, 0x58, 0xd8, 0xb8, 0x68, 0xea, 0x76, 0x63, 0x65, 0xec, + 0xa7, 0x36, 0x7c, 0x9c, 0x6c, 0xc9, 0xf6, 0xdf, 0x0c, 0x38, 0x99, 0x50, 0x91, 0xe6, 0xb7, 0x19, + 0x25, 0xaa, 0x0b, 0xad, 0x49, 0x87, 0xc1, 0xe6, 0x16, 0x77, 0x52, 0xef, 0xab, 0x03, 0x9c, 0xb9, + 0xa1, 0x1f, 0x43, 0x4d, 0xce, 0x88, 0xe9, 0x60, 0x63, 0x9c, 0x1d, 0x5e, 0x1d, 0xe0, 0xb5, 0x06, + 0x7d, 0x01, 0xa5, 0x39, 0xe1, 0x73, 0x75, 0xd3, 0x1a, 0x17, 0xc7, 0x3a, 0xd8, 0x15, 0xe1, 0x73, + 0xf7, 0x6e, 0x21, 0xc3, 0x28, 0xeb, 0xcb, 0x3a, 0x54, 0x93, 0x74, 0x06, 0x68, 0x02, 0xca, 0x67, + 0xa5, 0x09, 0xfa, 0x65, 0x00, 0x87, 0xf9, 0xa9, 0x30, 0xcf, 0x16, 0x45, 0xa2, 0xde, 0x68, 0xd0, + 0x37, 0x0d, 0x74, 0x04, 0xf5, 0xf1, 0xe8, 0x95, 0x83, 0xfb, 0x6b, 0x1a, 0x5d, 0x75, 0x07, 0xae, + 0x59, 0x94, 0xab, 0x57, 0x5d, 0x7c, 0x63, 0x96, 0xe4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x5f, 0x57, 0xd4, + 0x57, 0xf6, 0xf9, 0xff, 0x03, 0x00, 0x00, 0xff, 0xff, 0xc3, 0x1f, 0x43, 0x7b, 0x8b, 0x0e, 0x00, + 0x00, +} diff --git a/system/system.proto b/system/system.proto index 9278095a..9338260e 100644 --- a/system/system.proto +++ b/system/system.proto @@ -24,8 +24,8 @@ syntax = "proto3"; package gnoi.system; -import "github.com/openconfig/gnoi/common/common.proto"; -import "github.com/openconfig/gnoi/types/types.proto"; +import "common/common.proto"; +import "types/types.proto"; option (gnoi.gnoi_version) = "0.1.0"; diff --git a/test/BUILD.bazel b/test/BUILD.bazel new file mode 100644 index 00000000..3d53d7a8 --- /dev/null +++ b/test/BUILD.bazel @@ -0,0 +1,18 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_test") + +go_test( + name = "simple_test", + size = "small", + srcs = ["simple_test.go"], + deps = [ + "//github.com/golang/protobuf/proto:proto", + "//github.com/openconfig/gnoi:go_default_library", + "//github.com/openconfig/gnoi/bgp:go_default_library", + "//github.com/openconfig/gnoi/cert:go_default_library", + "//github.com/openconfig/gnoi/file:go_default_library", + "//github.com/openconfig/gnoi/interface:go_default_library", + "//github.com/openconfig/gnoi/layer2:go_default_library", + "//github.com/openconfig/gnoi/mpls:go_default_library", + "//github.com/openconfig/gnoi/system:go_default_library", + ], +) diff --git a/test/simple_test.go b/test/simple_test.go index 88073e92..ecc708ca 100644 --- a/test/simple_test.go +++ b/test/simple_test.go @@ -18,7 +18,7 @@ import ( "testing" "github.com/golang/protobuf/proto" - tpb "github.com/openconfig/gnoi/types" + gpb "github.com/openconfig/gnoi" bgppb "github.com/openconfig/gnoi/bgp" ) @@ -28,16 +28,16 @@ func TestGNOI(t *testing.T) { in proto.Message want string }{{ - desc: "tpb.Path", - in: &tpb.Path{ + desc: "gpb.Path", + in: &gpb.Path{ Origin: "oc", - Elem: []*tpb.PathElem{{Name: "interfaces", Key: map[string]string{"name": "Ethernet1/1/0"}}}, + Elem: []*gpb.PathElem{{Name: "interfaces", Key: map[string]string{"name": "Ethernet1/1/0"}}}, }, want: "origin: \"oc\"\nelem: <\n name: \"interfaces\"\n key: <\n key: \"name\"\n value: \"Ethernet1/1/0\"\n >\n>\n", }, { - desc: "tpb.HashType", - in: &tpb.HashType{ - Method: tpb.HashType_MD5, + desc: "gpb.HashType", + in: &gpb.HashType{ + Method: gpb.HashType_MD5, Hash: []byte("foo"), }, want: "method: MD5\nhash: \"foo\"\n", diff --git a/types/.types.proto.swp b/types/.types.proto.swp deleted file mode 100644 index 04efd42ad5a816c8e688cfa87a5ccc536083a1bb..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 12288 zcmeI2&yN&E6vqoq@F!|8p13>*qhOZl{UJ(NFpj&+Zo}^Ey0Z&`n3$UGnwgfKuC}{o zhY2Eyzs@E`5hKRCcaC~A`WJXmq9+gDJ(!sIebqh9AO@m0O*Q$_)7`JD-uu*huS2Nz z^l5*Mj?||Gj>m-f@R`S6-M8-p@%=d=GTnYX=lgd#tlgo$4BA?sPcuDN&$R5<1D&Py zuGZaH;dft%x2&PJphM+#wU=js*NseX(B{XUPE``905nb5pV|-*K|eku#8=Rl&=u%yD1+M2HuMT~1bP~J3fd3- z@F2#8E<&fEW6-Y;2=N8*l5q}W&%5PDs5()iatbDl z5``B+GMZAAb#&GzIWRpQB9JE12|OT4q1uT8Rmb-b4)kSutZ-tgbmm1muSV8oDi6%O zCR2j%{N#W%h_5{`>L6L4G2M=g2N~F2;m|q+->Fn-nGXGL@!R zuP|)jY6%7fgH6>@8Fn42qttD#`P52P5Ou}@wp3sPovrg9W@dWQAj%Q76@k1CB5A;A zh)s+X8EaBaz?&IEFqKK=5ge4oMC{ZQ$yj4)?b|XLQN<#s1AvnsEU0EGRd$-2LvsL} zA(JGk-|&+o1cIC~GZLO|f~d}-F6eM3Rd4<64-B;`+bZTP2%}u~+fjD_U&;Z;xy6qC zJD?K~Z$@u9DjD=9!HvTp;K)?Yc?fn$KxrhIOd$t=yGR6?Aa8q$SIoLrEyaX2Bf%PC z1e8mJbpoo2bdkjQlwF%*71|>MBd$)%O%x@&rc6(V)Gto9;Kmibws_dC5iE&XD~-c5 zv*S1I_3Yv2ag7S)=iANJ#?pd+!e3g%&1t@=l0o0Lg>sIIRSs9Z!q#!#(}OtVj06Rn zC!BFvrZda2G9K4BgG7l%VG&H>dQPbDg3bnRs^*$fwL14J^6P3WdcQT3Df zZke>2OQbS5&#jg{o);qOr#drKD<=2GBYS8HK^CP33uN!rV4IH;BQGGln!Pp0_dJgi zIF9;}u~>2%Bq5;j06G7GoFavm2Vc|$E=Ckj zMhG{KRA^m7uPEDkc)QaS<=jjv1OARARBN=zZ`J7KM$2zau|wNQ%tL4DjX{L(61CAG zQ_K;_cB~N8kY|-$l)n8+p`i`4h`RzlKDuLuGUE=wBjM;7lOFZF;c!@&Sf`$<>#XZx zFvggBtNy}Lv$b?+7W?3fch2g8?ew~BB!-q0=yWvhrzL)LY#x48nkL#1KE7BCMA$)! z0Z*V(`z68#cepO`sVVyX#DZC3<%pBG8rIM8Qcuz8vIgKI9pLwC Date: Mon, 6 Jun 2022 16:59:49 +0530 Subject: [PATCH 208/238] Revert "In progress cleanup of gNOI protobufs and repository." This reverts commit ef5cbad52ee39135ff03d7bee506ffb427cfa45c. --- BUILD.bazel | 21 + README.md | 18 +- bgp/bgp.pb.go | 56 +- bgp/bgp.proto | 6 +- cert/cert.pb.go | 1301 +++++++++++++---- cert/cert.proto | 4 - common/common.proto => common.proto | 2 +- common/common.pb.go | 109 -- compile_protos.sh | 3 +- diag/diag.pb.go | 735 ---------- diag/diag.proto | 4 +- docs/README.md | 6 - file/file.pb.go | 244 ++-- file/file.proto | 6 +- interface/interface.pb.go | 54 +- interface/interface.proto | 4 +- layer2/layer2.pb.go | 160 +- layer2/layer2.proto | 3 +- mpls/mpls.pb.go | 219 ++- mpls/mpls.proto | 4 - ...y_model.md => simplified_security_model.md | 0 system/system.pb.go | 605 ++++++-- system/system.proto | 6 +- types.pb.go | 197 +++ types/types.proto => types.proto | 8 - types/types.pb.go | 309 ---- 26 files changed, 2209 insertions(+), 1875 deletions(-) create mode 100644 BUILD.bazel rename common/common.proto => common.proto (96%) delete mode 100644 common/common.pb.go delete mode 100644 diag/diag.pb.go delete mode 100644 docs/README.md rename docs/simplified_security_model.md => simplified_security_model.md (100%) create mode 100644 types.pb.go rename types/types.proto => types.proto (89%) delete mode 100644 types/types.pb.go diff --git a/BUILD.bazel b/BUILD.bazel new file mode 100644 index 00000000..9aa5ca40 --- /dev/null +++ b/BUILD.bazel @@ -0,0 +1,21 @@ +load("@io_bazel_rules_go//proto:go_proto_library.bzl", "go_proto_library") + +proto_library( + name = "gnoi_proto", + srcs = [ + "types.proto", + "common.proto" + ], + visibility = ["//visibility:public"], +) + +go_proto_library( + name = "go_default_library", + srcs = [ + "types.proto", + "common.proto" + ], + visibility = ["//visibility:public"], + rules_go_repo_only_for_internal_use = "@", + has_services = 1, +) diff --git a/README.md b/README.md index 66d65528..c45e3ab8 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,21 @@ # gNOI - gRPC Network Operations Interface gNOI defines a set of gRPC-based microservices for executing operational commands on network devices. +## Simplified security model + +See [simplified security model](simplified_security_model.md) for a security +model that can be implemented using gNOI. + # Rebuild *.pb.go files ``` -./compile_proto.sh -```` +cd ${GOPATH}/src +protoc -I=${GOPATH}/src:${GOPATH}/src/github.com/openconfig/gnoi --go_out=plugins=grpc:. ${GOPATH}/src/github.com/openconfig/gnoi/types.proto +protoc -I=${GOPATH}/src:${GOPATH}/src/github.com/openconfig/gnoi --go_out=plugins=grpc:. ${GOPATH}/src/github.com/openconfig/gnoi/bgp/bgp.proto +protoc -I=${GOPATH}/src:${GOPATH}/src/github.com/openconfig/gnoi --go_out=plugins=grpc:. ${GOPATH}/src/github.com/openconfig/gnoi/cert/cert.proto +protoc -I=${GOPATH}/src:${GOPATH}/src/github.com/openconfig/gnoi --go_out=plugins=grpc:. ${GOPATH}/src/github.com/openconfig/gnoi/file/file.proto +protoc -I=${GOPATH}/src:${GOPATH}/src/github.com/openconfig/gnoi --go_out=plugins=grpc:. ${GOPATH}/src/github.com/openconfig/gnoi/interface/interface.proto +protoc -I=${GOPATH}/src:${GOPATH}/src/github.com/openconfig/gnoi --go_out=plugins=grpc:. ${GOPATH}/src/github.com/openconfig/gnoi/layer2/layer2.proto +protoc -I=${GOPATH}/src:${GOPATH}/src/github.com/openconfig/gnoi --go_out=plugins=grpc:. ${GOPATH}/src/github.com/openconfig/gnoi/mpls/mpls.proto +protoc -I=${GOPATH}/src:${GOPATH}/src/github.com/openconfig/gnoi --go_out=plugins=grpc:. ${GOPATH}/src/github.com/openconfig/gnoi/system/system.proto +cd - +``` diff --git a/bgp/bgp.pb.go b/bgp/bgp.pb.go index 646ad88d..0a02ff6f 100644 --- a/bgp/bgp.pb.go +++ b/bgp/bgp.pb.go @@ -1,6 +1,5 @@ -// Code generated by protoc-gen-go. +// Code generated by protoc-gen-go. DO NOT EDIT. // source: bgp/bgp.proto -// DO NOT EDIT! /* Package gnoi_bgp is a generated protocol buffer package. @@ -17,7 +16,6 @@ package gnoi_bgp import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" -import _ "types" import ( context "golang.org/x/net/context" @@ -74,6 +72,27 @@ func (m *ClearBGPNeighborRequest) String() string { return proto.Comp func (*ClearBGPNeighborRequest) ProtoMessage() {} func (*ClearBGPNeighborRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } +func (m *ClearBGPNeighborRequest) GetAddress() string { + if m != nil { + return m.Address + } + return "" +} + +func (m *ClearBGPNeighborRequest) GetRoutingInstance() string { + if m != nil { + return m.RoutingInstance + } + return "" +} + +func (m *ClearBGPNeighborRequest) GetMode() ClearBGPNeighborRequest_Mode { + if m != nil { + return m.Mode + } + return ClearBGPNeighborRequest_SOFT +} + type ClearBGPNeighborResponse struct { } @@ -165,21 +184,20 @@ var _BGP_serviceDesc = grpc.ServiceDesc{ func init() { proto.RegisterFile("bgp/bgp.proto", fileDescriptor0) } var fileDescriptor0 = []byte{ - // 256 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xe2, 0xe2, 0x4d, 0x4a, 0x2f, 0xd0, + // 234 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0x4d, 0x4a, 0x2f, 0xd0, 0x4f, 0x4a, 0x2f, 0xd0, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x48, 0xcf, 0xcb, 0xcf, 0xd4, - 0x4b, 0x4a, 0x2f, 0x90, 0x12, 0x2c, 0xa9, 0x2c, 0x48, 0x2d, 0xd6, 0x07, 0x93, 0x10, 0x49, 0xa5, - 0x43, 0x8c, 0x5c, 0xe2, 0xce, 0x39, 0xa9, 0x89, 0x45, 0x4e, 0xee, 0x01, 0x7e, 0xa9, 0x99, 0xe9, - 0x19, 0x49, 0xf9, 0x45, 0x41, 0xa9, 0x85, 0xa5, 0xa9, 0xc5, 0x25, 0x42, 0x12, 0x5c, 0xec, 0x89, - 0x29, 0x29, 0x45, 0xa9, 0xc5, 0xc5, 0x12, 0x8c, 0x0a, 0x8c, 0x1a, 0x9c, 0x41, 0x30, 0xae, 0x90, - 0x26, 0x97, 0x40, 0x51, 0x7e, 0x69, 0x49, 0x66, 0x5e, 0x7a, 0x7c, 0x66, 0x5e, 0x71, 0x49, 0x62, - 0x5e, 0x72, 0xaa, 0x04, 0x13, 0x58, 0x09, 0x3f, 0x54, 0xdc, 0x13, 0x2a, 0x2c, 0x64, 0xc5, 0xc5, - 0x92, 0x9b, 0x9f, 0x92, 0x2a, 0xc1, 0xac, 0xc0, 0xa8, 0xc1, 0x67, 0xa4, 0xa6, 0x07, 0x73, 0x8c, - 0x1e, 0x0e, 0x5b, 0xf5, 0x7c, 0xf3, 0x53, 0x52, 0x83, 0xc0, 0x7a, 0x94, 0xd4, 0xb8, 0x58, 0x40, - 0x3c, 0x21, 0x0e, 0x2e, 0x96, 0x60, 0x7f, 0xb7, 0x10, 0x01, 0x06, 0x21, 0x2e, 0x2e, 0x36, 0x10, - 0xcb, 0xd3, 0x4f, 0x80, 0x11, 0x24, 0xea, 0xe1, 0x18, 0xe4, 0x22, 0xc0, 0xa4, 0x24, 0xc5, 0x25, - 0x81, 0x69, 0x5a, 0x71, 0x41, 0x7e, 0x5e, 0x71, 0xaa, 0x51, 0x12, 0x17, 0xb3, 0x93, 0x7b, 0x80, - 0x50, 0x34, 0x97, 0x00, 0xba, 0x12, 0x21, 0x45, 0x82, 0x8e, 0x91, 0x52, 0xc2, 0xa7, 0x04, 0x62, - 0x83, 0x12, 0x83, 0x13, 0xc7, 0x25, 0x3b, 0x56, 0x03, 0x3d, 0x43, 0x3d, 0x83, 0x24, 0x36, 0x70, - 0xa8, 0x1a, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, 0x1b, 0x68, 0x5d, 0x50, 0x83, 0x01, 0x00, 0x00, + 0x4b, 0x4a, 0x2f, 0x50, 0x3a, 0xc4, 0xc8, 0x25, 0xee, 0x9c, 0x93, 0x9a, 0x58, 0xe4, 0xe4, 0x1e, + 0xe0, 0x97, 0x9a, 0x99, 0x9e, 0x91, 0x94, 0x5f, 0x14, 0x94, 0x5a, 0x58, 0x9a, 0x5a, 0x5c, 0x22, + 0x24, 0xc1, 0xc5, 0x9e, 0x98, 0x92, 0x52, 0x94, 0x5a, 0x5c, 0x2c, 0xc1, 0xa8, 0xc0, 0xa8, 0xc1, + 0x19, 0x04, 0xe3, 0x0a, 0x69, 0x72, 0x09, 0x14, 0xe5, 0x97, 0x96, 0x64, 0xe6, 0xa5, 0xc7, 0x67, + 0xe6, 0x15, 0x97, 0x24, 0xe6, 0x25, 0xa7, 0x4a, 0x30, 0x81, 0x95, 0xf0, 0x43, 0xc5, 0x3d, 0xa1, + 0xc2, 0x42, 0x56, 0x5c, 0x2c, 0xb9, 0xf9, 0x29, 0xa9, 0x12, 0xcc, 0x0a, 0x8c, 0x1a, 0x7c, 0x46, + 0x6a, 0x7a, 0x30, 0x9b, 0xf5, 0x70, 0xd8, 0xaa, 0xe7, 0x9b, 0x9f, 0x92, 0x1a, 0x04, 0xd6, 0xa3, + 0xa4, 0xc6, 0xc5, 0x02, 0xe2, 0x09, 0x71, 0x70, 0xb1, 0x04, 0xfb, 0xbb, 0x85, 0x08, 0x30, 0x08, + 0x71, 0x71, 0xb1, 0x81, 0x58, 0x9e, 0x7e, 0x02, 0x8c, 0x20, 0x51, 0x0f, 0xc7, 0x20, 0x17, 0x01, + 0x26, 0x25, 0x29, 0x2e, 0x09, 0x4c, 0xd3, 0x8a, 0x0b, 0xf2, 0xf3, 0x8a, 0x53, 0x8d, 0x92, 0xb8, + 0x98, 0x9d, 0xdc, 0x03, 0x84, 0xa2, 0xb9, 0x04, 0xd0, 0x95, 0x08, 0x29, 0x12, 0x74, 0x8c, 0x94, + 0x12, 0x3e, 0x25, 0x10, 0x1b, 0x94, 0x18, 0x92, 0xd8, 0xc0, 0xa1, 0x6a, 0x0c, 0x08, 0x00, 0x00, + 0xff, 0xff, 0x5a, 0x8a, 0x62, 0x2e, 0x66, 0x01, 0x00, 0x00, } diff --git a/bgp/bgp.proto b/bgp/bgp.proto index 6aa07228..8a180eab 100644 --- a/bgp/bgp.proto +++ b/bgp/bgp.proto @@ -16,14 +16,10 @@ syntax = "proto3"; -import "types/types.proto"; - package gnoi.bgp; -// The current semantic version of the gNOI BGP service. -option (gnoi.gnoi_version) = "0.1.0"; - service BGP { + // ClearBGPNeighbor clears a BGP session. rpc ClearBGPNeighbor(ClearBGPNeighborRequest) returns (ClearBGPNeighborResponse) {} diff --git a/cert/cert.pb.go b/cert/cert.pb.go index 2caa2fea..8686ccc9 100644 --- a/cert/cert.pb.go +++ b/cert/cert.pb.go @@ -1,47 +1,14 @@ -// Code generated by protoc-gen-go. -// source: cert/cert.proto -// DO NOT EDIT! - -/* -Package gnoi_certificate is a generated protocol buffer package. - -It is generated from these files: - cert/cert.proto - -It has these top-level messages: - RotateCertificateRequest - RotateCertificateResponse - InstallCertificateRequest - InstallCertificateResponse - GenerateCSRRequest - CSRParams - GenerateCSRResponse - LoadCertificateRequest - LoadCertificateResponse - FinalizeRequest - GetCertificatesRequest - GetCertificatesResponse - CertificateInfo - RevokeCertificatesRequest - RevokeCertificatesResponse - CertificateRevocationError - CanGenerateCSRRequest - CanGenerateCSRResponse - Certificate - CSR - KeyPair - Endpoint -*/ -package gnoi_certificate +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: github.com/openconfig/gnoi/cert/cert.proto -import proto "github.com/golang/protobuf/proto" -import fmt "fmt" -import math "math" -import _ "types" +package gnoi_certificate import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" context "golang.org/x/net/context" grpc "google.golang.org/grpc" + math "math" ) // Reference imports to suppress errors if they are not otherwise used. @@ -69,6 +36,7 @@ var CertificateType_name = map[int32]string{ 0: "CT_UNKNOWN", 1: "CT_X509", } + var CertificateType_value = map[string]int32{ "CT_UNKNOWN": 0, "CT_X509": 1, @@ -77,7 +45,10 @@ var CertificateType_value = map[string]int32{ func (x CertificateType) String() string { return proto.EnumName(CertificateType_name, int32(x)) } -func (CertificateType) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } + +func (CertificateType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_35089d6bfca6de66, []int{0} +} // Algorithm to be used for generation the key pair. type KeyType int32 @@ -93,6 +64,7 @@ var KeyType_name = map[int32]string{ 0: "KT_UNKNOWN", 1: "KT_RSA", } + var KeyType_value = map[string]int32{ "KT_UNKNOWN": 0, "KT_RSA": 1, @@ -101,7 +73,10 @@ var KeyType_value = map[string]int32{ func (x KeyType) String() string { return proto.EnumName(KeyType_name, int32(x)) } -func (KeyType) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } + +func (KeyType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_35089d6bfca6de66, []int{1} +} // Type of endpoint that can use a cert. This list is to be extended based on // conversation with vendors. @@ -118,6 +93,7 @@ var Endpoint_Type_name = map[int32]string{ 1: "EP_IPSEC_TUNNEL", 2: "EP_DAEMON", } + var Endpoint_Type_value = map[string]int32{ "EP_UNSPECIFIED": 0, "EP_IPSEC_TUNNEL": 1, @@ -127,7 +103,10 @@ var Endpoint_Type_value = map[string]int32{ func (x Endpoint_Type) String() string { return proto.EnumName(Endpoint_Type_name, int32(x)) } -func (Endpoint_Type) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{21, 0} } + +func (Endpoint_Type) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_35089d6bfca6de66, []int{21, 0} +} // Request messages to rotate existing certificates on the target. type RotateCertificateRequest struct { @@ -137,30 +116,57 @@ type RotateCertificateRequest struct { // *RotateCertificateRequest_GenerateCsr // *RotateCertificateRequest_LoadCertificate // *RotateCertificateRequest_FinalizeRotation - RotateRequest isRotateCertificateRequest_RotateRequest `protobuf_oneof:"rotate_request"` + RotateRequest isRotateCertificateRequest_RotateRequest `protobuf_oneof:"rotate_request"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *RotateCertificateRequest) Reset() { *m = RotateCertificateRequest{} } -func (m *RotateCertificateRequest) String() string { return proto.CompactTextString(m) } -func (*RotateCertificateRequest) ProtoMessage() {} -func (*RotateCertificateRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } +func (m *RotateCertificateRequest) Reset() { *m = RotateCertificateRequest{} } +func (m *RotateCertificateRequest) String() string { return proto.CompactTextString(m) } +func (*RotateCertificateRequest) ProtoMessage() {} +func (*RotateCertificateRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_35089d6bfca6de66, []int{0} +} + +func (m *RotateCertificateRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RotateCertificateRequest.Unmarshal(m, b) +} +func (m *RotateCertificateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RotateCertificateRequest.Marshal(b, m, deterministic) +} +func (m *RotateCertificateRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RotateCertificateRequest.Merge(m, src) +} +func (m *RotateCertificateRequest) XXX_Size() int { + return xxx_messageInfo_RotateCertificateRequest.Size(m) +} +func (m *RotateCertificateRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RotateCertificateRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RotateCertificateRequest proto.InternalMessageInfo type isRotateCertificateRequest_RotateRequest interface { isRotateCertificateRequest_RotateRequest() } type RotateCertificateRequest_GenerateCsr struct { - GenerateCsr *GenerateCSRRequest `protobuf:"bytes,1,opt,name=generate_csr,json=generateCsr,oneof"` + GenerateCsr *GenerateCSRRequest `protobuf:"bytes,1,opt,name=generate_csr,json=generateCsr,proto3,oneof"` } + type RotateCertificateRequest_LoadCertificate struct { - LoadCertificate *LoadCertificateRequest `protobuf:"bytes,2,opt,name=load_certificate,json=loadCertificate,oneof"` + LoadCertificate *LoadCertificateRequest `protobuf:"bytes,2,opt,name=load_certificate,json=loadCertificate,proto3,oneof"` } + type RotateCertificateRequest_FinalizeRotation struct { - FinalizeRotation *FinalizeRequest `protobuf:"bytes,3,opt,name=finalize_rotation,json=finalizeRotation,oneof"` + FinalizeRotation *FinalizeRequest `protobuf:"bytes,3,opt,name=finalize_rotation,json=finalizeRotation,proto3,oneof"` } -func (*RotateCertificateRequest_GenerateCsr) isRotateCertificateRequest_RotateRequest() {} -func (*RotateCertificateRequest_LoadCertificate) isRotateCertificateRequest_RotateRequest() {} +func (*RotateCertificateRequest_GenerateCsr) isRotateCertificateRequest_RotateRequest() {} + +func (*RotateCertificateRequest_LoadCertificate) isRotateCertificateRequest_RotateRequest() {} + func (*RotateCertificateRequest_FinalizeRotation) isRotateCertificateRequest_RotateRequest() {} func (m *RotateCertificateRequest) GetRotateRequest() isRotateCertificateRequest_RotateRequest { @@ -264,17 +270,17 @@ func _RotateCertificateRequest_OneofSizer(msg proto.Message) (n int) { switch x := m.RotateRequest.(type) { case *RotateCertificateRequest_GenerateCsr: s := proto.Size(x.GenerateCsr) - n += proto.SizeVarint(1<<3 | proto.WireBytes) + n += 1 // tag and wire n += proto.SizeVarint(uint64(s)) n += s case *RotateCertificateRequest_LoadCertificate: s := proto.Size(x.LoadCertificate) - n += proto.SizeVarint(2<<3 | proto.WireBytes) + n += 1 // tag and wire n += proto.SizeVarint(uint64(s)) n += s case *RotateCertificateRequest_FinalizeRotation: s := proto.Size(x.FinalizeRotation) - n += proto.SizeVarint(3<<3 | proto.WireBytes) + n += 1 // tag and wire n += proto.SizeVarint(uint64(s)) n += s case nil: @@ -291,26 +297,51 @@ type RotateCertificateResponse struct { // Types that are valid to be assigned to RotateResponse: // *RotateCertificateResponse_GeneratedCsr // *RotateCertificateResponse_LoadCertificate - RotateResponse isRotateCertificateResponse_RotateResponse `protobuf_oneof:"rotate_response"` + RotateResponse isRotateCertificateResponse_RotateResponse `protobuf_oneof:"rotate_response"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *RotateCertificateResponse) Reset() { *m = RotateCertificateResponse{} } -func (m *RotateCertificateResponse) String() string { return proto.CompactTextString(m) } -func (*RotateCertificateResponse) ProtoMessage() {} -func (*RotateCertificateResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } +func (m *RotateCertificateResponse) Reset() { *m = RotateCertificateResponse{} } +func (m *RotateCertificateResponse) String() string { return proto.CompactTextString(m) } +func (*RotateCertificateResponse) ProtoMessage() {} +func (*RotateCertificateResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_35089d6bfca6de66, []int{1} +} + +func (m *RotateCertificateResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RotateCertificateResponse.Unmarshal(m, b) +} +func (m *RotateCertificateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RotateCertificateResponse.Marshal(b, m, deterministic) +} +func (m *RotateCertificateResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RotateCertificateResponse.Merge(m, src) +} +func (m *RotateCertificateResponse) XXX_Size() int { + return xxx_messageInfo_RotateCertificateResponse.Size(m) +} +func (m *RotateCertificateResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RotateCertificateResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RotateCertificateResponse proto.InternalMessageInfo type isRotateCertificateResponse_RotateResponse interface { isRotateCertificateResponse_RotateResponse() } type RotateCertificateResponse_GeneratedCsr struct { - GeneratedCsr *GenerateCSRResponse `protobuf:"bytes,1,opt,name=generated_csr,json=generatedCsr,oneof"` + GeneratedCsr *GenerateCSRResponse `protobuf:"bytes,1,opt,name=generated_csr,json=generatedCsr,proto3,oneof"` } + type RotateCertificateResponse_LoadCertificate struct { - LoadCertificate *LoadCertificateResponse `protobuf:"bytes,2,opt,name=load_certificate,json=loadCertificate,oneof"` + LoadCertificate *LoadCertificateResponse `protobuf:"bytes,2,opt,name=load_certificate,json=loadCertificate,proto3,oneof"` } -func (*RotateCertificateResponse_GeneratedCsr) isRotateCertificateResponse_RotateResponse() {} +func (*RotateCertificateResponse_GeneratedCsr) isRotateCertificateResponse_RotateResponse() {} + func (*RotateCertificateResponse_LoadCertificate) isRotateCertificateResponse_RotateResponse() {} func (m *RotateCertificateResponse) GetRotateResponse() isRotateCertificateResponse_RotateResponse { @@ -393,12 +424,12 @@ func _RotateCertificateResponse_OneofSizer(msg proto.Message) (n int) { switch x := m.RotateResponse.(type) { case *RotateCertificateResponse_GeneratedCsr: s := proto.Size(x.GeneratedCsr) - n += proto.SizeVarint(1<<3 | proto.WireBytes) + n += 1 // tag and wire n += proto.SizeVarint(uint64(s)) n += s case *RotateCertificateResponse_LoadCertificate: s := proto.Size(x.LoadCertificate) - n += proto.SizeVarint(2<<3 | proto.WireBytes) + n += 1 // tag and wire n += proto.SizeVarint(uint64(s)) n += s case nil: @@ -415,26 +446,51 @@ type InstallCertificateRequest struct { // Types that are valid to be assigned to InstallRequest: // *InstallCertificateRequest_GenerateCsr // *InstallCertificateRequest_LoadCertificate - InstallRequest isInstallCertificateRequest_InstallRequest `protobuf_oneof:"install_request"` + InstallRequest isInstallCertificateRequest_InstallRequest `protobuf_oneof:"install_request"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *InstallCertificateRequest) Reset() { *m = InstallCertificateRequest{} } -func (m *InstallCertificateRequest) String() string { return proto.CompactTextString(m) } -func (*InstallCertificateRequest) ProtoMessage() {} -func (*InstallCertificateRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} } +func (m *InstallCertificateRequest) Reset() { *m = InstallCertificateRequest{} } +func (m *InstallCertificateRequest) String() string { return proto.CompactTextString(m) } +func (*InstallCertificateRequest) ProtoMessage() {} +func (*InstallCertificateRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_35089d6bfca6de66, []int{2} +} + +func (m *InstallCertificateRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_InstallCertificateRequest.Unmarshal(m, b) +} +func (m *InstallCertificateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_InstallCertificateRequest.Marshal(b, m, deterministic) +} +func (m *InstallCertificateRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_InstallCertificateRequest.Merge(m, src) +} +func (m *InstallCertificateRequest) XXX_Size() int { + return xxx_messageInfo_InstallCertificateRequest.Size(m) +} +func (m *InstallCertificateRequest) XXX_DiscardUnknown() { + xxx_messageInfo_InstallCertificateRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_InstallCertificateRequest proto.InternalMessageInfo type isInstallCertificateRequest_InstallRequest interface { isInstallCertificateRequest_InstallRequest() } type InstallCertificateRequest_GenerateCsr struct { - GenerateCsr *GenerateCSRRequest `protobuf:"bytes,1,opt,name=generate_csr,json=generateCsr,oneof"` + GenerateCsr *GenerateCSRRequest `protobuf:"bytes,1,opt,name=generate_csr,json=generateCsr,proto3,oneof"` } + type InstallCertificateRequest_LoadCertificate struct { - LoadCertificate *LoadCertificateRequest `protobuf:"bytes,2,opt,name=load_certificate,json=loadCertificate,oneof"` + LoadCertificate *LoadCertificateRequest `protobuf:"bytes,2,opt,name=load_certificate,json=loadCertificate,proto3,oneof"` } -func (*InstallCertificateRequest_GenerateCsr) isInstallCertificateRequest_InstallRequest() {} +func (*InstallCertificateRequest_GenerateCsr) isInstallCertificateRequest_InstallRequest() {} + func (*InstallCertificateRequest_LoadCertificate) isInstallCertificateRequest_InstallRequest() {} func (m *InstallCertificateRequest) GetInstallRequest() isInstallCertificateRequest_InstallRequest { @@ -517,12 +573,12 @@ func _InstallCertificateRequest_OneofSizer(msg proto.Message) (n int) { switch x := m.InstallRequest.(type) { case *InstallCertificateRequest_GenerateCsr: s := proto.Size(x.GenerateCsr) - n += proto.SizeVarint(1<<3 | proto.WireBytes) + n += 1 // tag and wire n += proto.SizeVarint(uint64(s)) n += s case *InstallCertificateRequest_LoadCertificate: s := proto.Size(x.LoadCertificate) - n += proto.SizeVarint(2<<3 | proto.WireBytes) + n += 1 // tag and wire n += proto.SizeVarint(uint64(s)) n += s case nil: @@ -539,26 +595,51 @@ type InstallCertificateResponse struct { // Types that are valid to be assigned to InstallResponse: // *InstallCertificateResponse_GeneratedCsr // *InstallCertificateResponse_LoadCertificate - InstallResponse isInstallCertificateResponse_InstallResponse `protobuf_oneof:"install_response"` + InstallResponse isInstallCertificateResponse_InstallResponse `protobuf_oneof:"install_response"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *InstallCertificateResponse) Reset() { *m = InstallCertificateResponse{} } -func (m *InstallCertificateResponse) String() string { return proto.CompactTextString(m) } -func (*InstallCertificateResponse) ProtoMessage() {} -func (*InstallCertificateResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} } +func (m *InstallCertificateResponse) Reset() { *m = InstallCertificateResponse{} } +func (m *InstallCertificateResponse) String() string { return proto.CompactTextString(m) } +func (*InstallCertificateResponse) ProtoMessage() {} +func (*InstallCertificateResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_35089d6bfca6de66, []int{3} +} + +func (m *InstallCertificateResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_InstallCertificateResponse.Unmarshal(m, b) +} +func (m *InstallCertificateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_InstallCertificateResponse.Marshal(b, m, deterministic) +} +func (m *InstallCertificateResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_InstallCertificateResponse.Merge(m, src) +} +func (m *InstallCertificateResponse) XXX_Size() int { + return xxx_messageInfo_InstallCertificateResponse.Size(m) +} +func (m *InstallCertificateResponse) XXX_DiscardUnknown() { + xxx_messageInfo_InstallCertificateResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_InstallCertificateResponse proto.InternalMessageInfo type isInstallCertificateResponse_InstallResponse interface { isInstallCertificateResponse_InstallResponse() } type InstallCertificateResponse_GeneratedCsr struct { - GeneratedCsr *GenerateCSRResponse `protobuf:"bytes,1,opt,name=generated_csr,json=generatedCsr,oneof"` + GeneratedCsr *GenerateCSRResponse `protobuf:"bytes,1,opt,name=generated_csr,json=generatedCsr,proto3,oneof"` } + type InstallCertificateResponse_LoadCertificate struct { - LoadCertificate *LoadCertificateResponse `protobuf:"bytes,2,opt,name=load_certificate,json=loadCertificate,oneof"` + LoadCertificate *LoadCertificateResponse `protobuf:"bytes,2,opt,name=load_certificate,json=loadCertificate,proto3,oneof"` } -func (*InstallCertificateResponse_GeneratedCsr) isInstallCertificateResponse_InstallResponse() {} +func (*InstallCertificateResponse_GeneratedCsr) isInstallCertificateResponse_InstallResponse() {} + func (*InstallCertificateResponse_LoadCertificate) isInstallCertificateResponse_InstallResponse() {} func (m *InstallCertificateResponse) GetInstallResponse() isInstallCertificateResponse_InstallResponse { @@ -641,12 +722,12 @@ func _InstallCertificateResponse_OneofSizer(msg proto.Message) (n int) { switch x := m.InstallResponse.(type) { case *InstallCertificateResponse_GeneratedCsr: s := proto.Size(x.GeneratedCsr) - n += proto.SizeVarint(1<<3 | proto.WireBytes) + n += 1 // tag and wire n += proto.SizeVarint(uint64(s)) n += s case *InstallCertificateResponse_LoadCertificate: s := proto.Size(x.LoadCertificate) - n += proto.SizeVarint(2<<3 | proto.WireBytes) + n += 1 // tag and wire n += proto.SizeVarint(uint64(s)) n += s case nil: @@ -673,17 +754,40 @@ func _InstallCertificateResponse_OneofSizer(msg proto.Message) (n int) { // the GenerateCSRRequest should fail. type GenerateCSRRequest struct { // Parameters for creating a CSR. - CsrParams *CSRParams `protobuf:"bytes,1,opt,name=csr_params,json=csrParams" json:"csr_params,omitempty"` + CsrParams *CSRParams `protobuf:"bytes,1,opt,name=csr_params,json=csrParams,proto3" json:"csr_params,omitempty"` // The certificate id with which this CSR will be associated. The target // configuration should bind an entity which wants to use a certificate to // the certificate_id it should use. - CertificateId string `protobuf:"bytes,2,opt,name=certificate_id,json=certificateId" json:"certificate_id,omitempty"` + CertificateId string `protobuf:"bytes,2,opt,name=certificate_id,json=certificateId,proto3" json:"certificate_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GenerateCSRRequest) Reset() { *m = GenerateCSRRequest{} } +func (m *GenerateCSRRequest) String() string { return proto.CompactTextString(m) } +func (*GenerateCSRRequest) ProtoMessage() {} +func (*GenerateCSRRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_35089d6bfca6de66, []int{4} } -func (m *GenerateCSRRequest) Reset() { *m = GenerateCSRRequest{} } -func (m *GenerateCSRRequest) String() string { return proto.CompactTextString(m) } -func (*GenerateCSRRequest) ProtoMessage() {} -func (*GenerateCSRRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} } +func (m *GenerateCSRRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GenerateCSRRequest.Unmarshal(m, b) +} +func (m *GenerateCSRRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GenerateCSRRequest.Marshal(b, m, deterministic) +} +func (m *GenerateCSRRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GenerateCSRRequest.Merge(m, src) +} +func (m *GenerateCSRRequest) XXX_Size() int { + return xxx_messageInfo_GenerateCSRRequest.Size(m) +} +func (m *GenerateCSRRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GenerateCSRRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_GenerateCSRRequest proto.InternalMessageInfo func (m *GenerateCSRRequest) GetCsrParams() *CSRParams { if m != nil { @@ -692,32 +796,139 @@ func (m *GenerateCSRRequest) GetCsrParams() *CSRParams { return nil } +func (m *GenerateCSRRequest) GetCertificateId() string { + if m != nil { + return m.CertificateId + } + return "" +} + // Parameters to be used when generating a Certificate Signing Request. type CSRParams struct { // The type of certificate which will be associated for this CSR. - Type CertificateType `protobuf:"varint,1,opt,name=type,enum=gnoi.certificate.CertificateType" json:"type,omitempty"` + Type CertificateType `protobuf:"varint,1,opt,name=type,proto3,enum=gnoi.certificate.CertificateType" json:"type,omitempty"` // Minimum size of the key to be used by the target when generating a // public/private key pair. - MinKeySize uint32 `protobuf:"varint,2,opt,name=min_key_size,json=minKeySize" json:"min_key_size,omitempty"` + MinKeySize uint32 `protobuf:"varint,2,opt,name=min_key_size,json=minKeySize,proto3" json:"min_key_size,omitempty"` // If provided, the target must use the provided key type. If the target // cannot use the algorithm specified in the key_type, it should cancel the // stream with an Unimplemented error. - KeyType KeyType `protobuf:"varint,3,opt,name=key_type,json=keyType,enum=gnoi.certificate.KeyType" json:"key_type,omitempty"` + KeyType KeyType `protobuf:"varint,3,opt,name=key_type,json=keyType,proto3,enum=gnoi.certificate.KeyType" json:"key_type,omitempty"` // --- common set of parameters applicable for any type of certificate --- // - CommonName string `protobuf:"bytes,4,opt,name=common_name,json=commonName" json:"common_name,omitempty"` - Country string `protobuf:"bytes,5,opt,name=country" json:"country,omitempty"` - State string `protobuf:"bytes,6,opt,name=state" json:"state,omitempty"` - City string `protobuf:"bytes,7,opt,name=city" json:"city,omitempty"` - Organization string `protobuf:"bytes,8,opt,name=organization" json:"organization,omitempty"` - OrganizationalUnit string `protobuf:"bytes,9,opt,name=organizational_unit,json=organizationalUnit" json:"organizational_unit,omitempty"` - IpAddress string `protobuf:"bytes,10,opt,name=ip_address,json=ipAddress" json:"ip_address,omitempty"` - EmailId string `protobuf:"bytes,11,opt,name=email_id,json=emailId" json:"email_id,omitempty"` + CommonName string `protobuf:"bytes,4,opt,name=common_name,json=commonName,proto3" json:"common_name,omitempty"` + Country string `protobuf:"bytes,5,opt,name=country,proto3" json:"country,omitempty"` + State string `protobuf:"bytes,6,opt,name=state,proto3" json:"state,omitempty"` + City string `protobuf:"bytes,7,opt,name=city,proto3" json:"city,omitempty"` + Organization string `protobuf:"bytes,8,opt,name=organization,proto3" json:"organization,omitempty"` + OrganizationalUnit string `protobuf:"bytes,9,opt,name=organizational_unit,json=organizationalUnit,proto3" json:"organizational_unit,omitempty"` + IpAddress string `protobuf:"bytes,10,opt,name=ip_address,json=ipAddress,proto3" json:"ip_address,omitempty"` + EmailId string `protobuf:"bytes,11,opt,name=email_id,json=emailId,proto3" json:"email_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *CSRParams) Reset() { *m = CSRParams{} } -func (m *CSRParams) String() string { return proto.CompactTextString(m) } -func (*CSRParams) ProtoMessage() {} -func (*CSRParams) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} } +func (m *CSRParams) Reset() { *m = CSRParams{} } +func (m *CSRParams) String() string { return proto.CompactTextString(m) } +func (*CSRParams) ProtoMessage() {} +func (*CSRParams) Descriptor() ([]byte, []int) { + return fileDescriptor_35089d6bfca6de66, []int{5} +} + +func (m *CSRParams) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CSRParams.Unmarshal(m, b) +} +func (m *CSRParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CSRParams.Marshal(b, m, deterministic) +} +func (m *CSRParams) XXX_Merge(src proto.Message) { + xxx_messageInfo_CSRParams.Merge(m, src) +} +func (m *CSRParams) XXX_Size() int { + return xxx_messageInfo_CSRParams.Size(m) +} +func (m *CSRParams) XXX_DiscardUnknown() { + xxx_messageInfo_CSRParams.DiscardUnknown(m) +} + +var xxx_messageInfo_CSRParams proto.InternalMessageInfo + +func (m *CSRParams) GetType() CertificateType { + if m != nil { + return m.Type + } + return CertificateType_CT_UNKNOWN +} + +func (m *CSRParams) GetMinKeySize() uint32 { + if m != nil { + return m.MinKeySize + } + return 0 +} + +func (m *CSRParams) GetKeyType() KeyType { + if m != nil { + return m.KeyType + } + return KeyType_KT_UNKNOWN +} + +func (m *CSRParams) GetCommonName() string { + if m != nil { + return m.CommonName + } + return "" +} + +func (m *CSRParams) GetCountry() string { + if m != nil { + return m.Country + } + return "" +} + +func (m *CSRParams) GetState() string { + if m != nil { + return m.State + } + return "" +} + +func (m *CSRParams) GetCity() string { + if m != nil { + return m.City + } + return "" +} + +func (m *CSRParams) GetOrganization() string { + if m != nil { + return m.Organization + } + return "" +} + +func (m *CSRParams) GetOrganizationalUnit() string { + if m != nil { + return m.OrganizationalUnit + } + return "" +} + +func (m *CSRParams) GetIpAddress() string { + if m != nil { + return m.IpAddress + } + return "" +} + +func (m *CSRParams) GetEmailId() string { + if m != nil { + return m.EmailId + } + return "" +} // GenerateCSRResponse contains the CSR associated with the Certificate ID // supplied in the GenerateCSRRequest. When a Certificate is subsequently @@ -727,13 +938,36 @@ func (*CSRParams) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5 // An Unimplemented error will be returned if the target cannot generate a CSR // as per the request. In this case, the caller must generate its own key pair. type GenerateCSRResponse struct { - Csr *CSR `protobuf:"bytes,1,opt,name=csr" json:"csr,omitempty"` + Csr *CSR `protobuf:"bytes,1,opt,name=csr,proto3" json:"csr,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *GenerateCSRResponse) Reset() { *m = GenerateCSRResponse{} } -func (m *GenerateCSRResponse) String() string { return proto.CompactTextString(m) } -func (*GenerateCSRResponse) ProtoMessage() {} -func (*GenerateCSRResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} } +func (m *GenerateCSRResponse) Reset() { *m = GenerateCSRResponse{} } +func (m *GenerateCSRResponse) String() string { return proto.CompactTextString(m) } +func (*GenerateCSRResponse) ProtoMessage() {} +func (*GenerateCSRResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_35089d6bfca6de66, []int{6} +} + +func (m *GenerateCSRResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GenerateCSRResponse.Unmarshal(m, b) +} +func (m *GenerateCSRResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GenerateCSRResponse.Marshal(b, m, deterministic) +} +func (m *GenerateCSRResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GenerateCSRResponse.Merge(m, src) +} +func (m *GenerateCSRResponse) XXX_Size() int { + return xxx_messageInfo_GenerateCSRResponse.Size(m) +} +func (m *GenerateCSRResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GenerateCSRResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_GenerateCSRResponse proto.InternalMessageInfo func (m *GenerateCSRResponse) GetCsr() *CSR { if m != nil { @@ -758,25 +992,48 @@ func (m *GenerateCSRResponse) GetCsr() *CSR { // the LoadCertificateRequest must fail. type LoadCertificateRequest struct { // The certificate to be Loaded on the target. - Certificate *Certificate `protobuf:"bytes,1,opt,name=certificate" json:"certificate,omitempty"` + Certificate *Certificate `protobuf:"bytes,1,opt,name=certificate,proto3" json:"certificate,omitempty"` // The key pair to be used with the certificate. This is provided in the event // that the target cannot generate a CSR (and the corresponding public/private // keys). - KeyPair *KeyPair `protobuf:"bytes,2,opt,name=key_pair,json=keyPair" json:"key_pair,omitempty"` + KeyPair *KeyPair `protobuf:"bytes,2,opt,name=key_pair,json=keyPair,proto3" json:"key_pair,omitempty"` // Certificate Id of the above certificate. This is to be provided only when // there is an externally generated key pair. - CertificateId string `protobuf:"bytes,3,opt,name=certificate_id,json=certificateId" json:"certificate_id,omitempty"` + CertificateId string `protobuf:"bytes,3,opt,name=certificate_id,json=certificateId,proto3" json:"certificate_id,omitempty"` // Optional bundle of CA certificates. When not empty, the provided // certificates should squash the existing bundle. This field provides a // simplified means to provision a CA bundle that can be used to validate // other peer's certificates. - CaCertificates []*Certificate `protobuf:"bytes,4,rep,name=ca_certificates,json=caCertificates" json:"ca_certificates,omitempty"` + CaCertificates []*Certificate `protobuf:"bytes,4,rep,name=ca_certificates,json=caCertificates,proto3" json:"ca_certificates,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *LoadCertificateRequest) Reset() { *m = LoadCertificateRequest{} } -func (m *LoadCertificateRequest) String() string { return proto.CompactTextString(m) } -func (*LoadCertificateRequest) ProtoMessage() {} -func (*LoadCertificateRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} } +func (m *LoadCertificateRequest) Reset() { *m = LoadCertificateRequest{} } +func (m *LoadCertificateRequest) String() string { return proto.CompactTextString(m) } +func (*LoadCertificateRequest) ProtoMessage() {} +func (*LoadCertificateRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_35089d6bfca6de66, []int{7} +} + +func (m *LoadCertificateRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_LoadCertificateRequest.Unmarshal(m, b) +} +func (m *LoadCertificateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_LoadCertificateRequest.Marshal(b, m, deterministic) +} +func (m *LoadCertificateRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_LoadCertificateRequest.Merge(m, src) +} +func (m *LoadCertificateRequest) XXX_Size() int { + return xxx_messageInfo_LoadCertificateRequest.Size(m) +} +func (m *LoadCertificateRequest) XXX_DiscardUnknown() { + xxx_messageInfo_LoadCertificateRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_LoadCertificateRequest proto.InternalMessageInfo func (m *LoadCertificateRequest) GetCertificate() *Certificate { if m != nil { @@ -792,6 +1049,13 @@ func (m *LoadCertificateRequest) GetKeyPair() *KeyPair { return nil } +func (m *LoadCertificateRequest) GetCertificateId() string { + if m != nil { + return m.CertificateId + } + return "" +} + func (m *LoadCertificateRequest) GetCaCertificates() []*Certificate { if m != nil { return m.CaCertificates @@ -803,44 +1067,136 @@ func (m *LoadCertificateRequest) GetCaCertificates() []*Certificate { // If the target could not load the certificate, it must end the RPC stream with // a suitable RPC error about why the Certificate was not loaded. type LoadCertificateResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *LoadCertificateResponse) Reset() { *m = LoadCertificateResponse{} } -func (m *LoadCertificateResponse) String() string { return proto.CompactTextString(m) } -func (*LoadCertificateResponse) ProtoMessage() {} -func (*LoadCertificateResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} } +func (m *LoadCertificateResponse) Reset() { *m = LoadCertificateResponse{} } +func (m *LoadCertificateResponse) String() string { return proto.CompactTextString(m) } +func (*LoadCertificateResponse) ProtoMessage() {} +func (*LoadCertificateResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_35089d6bfca6de66, []int{8} +} + +func (m *LoadCertificateResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_LoadCertificateResponse.Unmarshal(m, b) +} +func (m *LoadCertificateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_LoadCertificateResponse.Marshal(b, m, deterministic) +} +func (m *LoadCertificateResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_LoadCertificateResponse.Merge(m, src) +} +func (m *LoadCertificateResponse) XXX_Size() int { + return xxx_messageInfo_LoadCertificateResponse.Size(m) +} +func (m *LoadCertificateResponse) XXX_DiscardUnknown() { + xxx_messageInfo_LoadCertificateResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_LoadCertificateResponse proto.InternalMessageInfo // A Finalize message is sent to the target to confirm the Rotation of // the certificate and that the certificate should not be rolled back when // the RPC concludes. The certificate must be rolled back if the target returns // an error after receiving a Finalize message. type FinalizeRequest struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *FinalizeRequest) Reset() { *m = FinalizeRequest{} } +func (m *FinalizeRequest) String() string { return proto.CompactTextString(m) } +func (*FinalizeRequest) ProtoMessage() {} +func (*FinalizeRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_35089d6bfca6de66, []int{9} +} + +func (m *FinalizeRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_FinalizeRequest.Unmarshal(m, b) +} +func (m *FinalizeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_FinalizeRequest.Marshal(b, m, deterministic) +} +func (m *FinalizeRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_FinalizeRequest.Merge(m, src) +} +func (m *FinalizeRequest) XXX_Size() int { + return xxx_messageInfo_FinalizeRequest.Size(m) +} +func (m *FinalizeRequest) XXX_DiscardUnknown() { + xxx_messageInfo_FinalizeRequest.DiscardUnknown(m) } -func (m *FinalizeRequest) Reset() { *m = FinalizeRequest{} } -func (m *FinalizeRequest) String() string { return proto.CompactTextString(m) } -func (*FinalizeRequest) ProtoMessage() {} -func (*FinalizeRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{9} } +var xxx_messageInfo_FinalizeRequest proto.InternalMessageInfo // The request to query all the certificates on the target. type GetCertificatesRequest struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetCertificatesRequest) Reset() { *m = GetCertificatesRequest{} } +func (m *GetCertificatesRequest) String() string { return proto.CompactTextString(m) } +func (*GetCertificatesRequest) ProtoMessage() {} +func (*GetCertificatesRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_35089d6bfca6de66, []int{10} +} + +func (m *GetCertificatesRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetCertificatesRequest.Unmarshal(m, b) +} +func (m *GetCertificatesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetCertificatesRequest.Marshal(b, m, deterministic) +} +func (m *GetCertificatesRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetCertificatesRequest.Merge(m, src) +} +func (m *GetCertificatesRequest) XXX_Size() int { + return xxx_messageInfo_GetCertificatesRequest.Size(m) +} +func (m *GetCertificatesRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetCertificatesRequest.DiscardUnknown(m) } -func (m *GetCertificatesRequest) Reset() { *m = GetCertificatesRequest{} } -func (m *GetCertificatesRequest) String() string { return proto.CompactTextString(m) } -func (*GetCertificatesRequest) ProtoMessage() {} -func (*GetCertificatesRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{10} } +var xxx_messageInfo_GetCertificatesRequest proto.InternalMessageInfo // Response from the target about the certificates that exist on the target what // what is using them. type GetCertificatesResponse struct { - CertificateInfo []*CertificateInfo `protobuf:"bytes,1,rep,name=certificate_info,json=certificateInfo" json:"certificate_info,omitempty"` + CertificateInfo []*CertificateInfo `protobuf:"bytes,1,rep,name=certificate_info,json=certificateInfo,proto3" json:"certificate_info,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *GetCertificatesResponse) Reset() { *m = GetCertificatesResponse{} } -func (m *GetCertificatesResponse) String() string { return proto.CompactTextString(m) } -func (*GetCertificatesResponse) ProtoMessage() {} -func (*GetCertificatesResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{11} } +func (m *GetCertificatesResponse) Reset() { *m = GetCertificatesResponse{} } +func (m *GetCertificatesResponse) String() string { return proto.CompactTextString(m) } +func (*GetCertificatesResponse) ProtoMessage() {} +func (*GetCertificatesResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_35089d6bfca6de66, []int{11} +} + +func (m *GetCertificatesResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetCertificatesResponse.Unmarshal(m, b) +} +func (m *GetCertificatesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetCertificatesResponse.Marshal(b, m, deterministic) +} +func (m *GetCertificatesResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetCertificatesResponse.Merge(m, src) +} +func (m *GetCertificatesResponse) XXX_Size() int { + return xxx_messageInfo_GetCertificatesResponse.Size(m) +} +func (m *GetCertificatesResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetCertificatesResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_GetCertificatesResponse proto.InternalMessageInfo func (m *GetCertificatesResponse) GetCertificateInfo() []*CertificateInfo { if m != nil { @@ -850,19 +1206,49 @@ func (m *GetCertificatesResponse) GetCertificateInfo() []*CertificateInfo { } type CertificateInfo struct { - CertificateId string `protobuf:"bytes,1,opt,name=certificate_id,json=certificateId" json:"certificate_id,omitempty"` - Certificate *Certificate `protobuf:"bytes,2,opt,name=certificate" json:"certificate,omitempty"` + CertificateId string `protobuf:"bytes,1,opt,name=certificate_id,json=certificateId,proto3" json:"certificate_id,omitempty"` + Certificate *Certificate `protobuf:"bytes,2,opt,name=certificate,proto3" json:"certificate,omitempty"` // List of endpoints using this certificate. - Endpoints []*Endpoint `protobuf:"bytes,3,rep,name=endpoints" json:"endpoints,omitempty"` + Endpoints []*Endpoint `protobuf:"bytes,3,rep,name=endpoints,proto3" json:"endpoints,omitempty"` // System modification time when the certificate was installed/rotated in // nanoseconds since epoch. - ModificationTime int64 `protobuf:"varint,4,opt,name=modification_time,json=modificationTime" json:"modification_time,omitempty"` + ModificationTime int64 `protobuf:"varint,4,opt,name=modification_time,json=modificationTime,proto3" json:"modification_time,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *CertificateInfo) Reset() { *m = CertificateInfo{} } -func (m *CertificateInfo) String() string { return proto.CompactTextString(m) } -func (*CertificateInfo) ProtoMessage() {} -func (*CertificateInfo) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{12} } +func (m *CertificateInfo) Reset() { *m = CertificateInfo{} } +func (m *CertificateInfo) String() string { return proto.CompactTextString(m) } +func (*CertificateInfo) ProtoMessage() {} +func (*CertificateInfo) Descriptor() ([]byte, []int) { + return fileDescriptor_35089d6bfca6de66, []int{12} +} + +func (m *CertificateInfo) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CertificateInfo.Unmarshal(m, b) +} +func (m *CertificateInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CertificateInfo.Marshal(b, m, deterministic) +} +func (m *CertificateInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_CertificateInfo.Merge(m, src) +} +func (m *CertificateInfo) XXX_Size() int { + return xxx_messageInfo_CertificateInfo.Size(m) +} +func (m *CertificateInfo) XXX_DiscardUnknown() { + xxx_messageInfo_CertificateInfo.DiscardUnknown(m) +} + +var xxx_messageInfo_CertificateInfo proto.InternalMessageInfo + +func (m *CertificateInfo) GetCertificateId() string { + if m != nil { + return m.CertificateId + } + return "" +} func (m *CertificateInfo) GetCertificate() *Certificate { if m != nil { @@ -878,27 +1264,94 @@ func (m *CertificateInfo) GetEndpoints() []*Endpoint { return nil } +func (m *CertificateInfo) GetModificationTime() int64 { + if m != nil { + return m.ModificationTime + } + return 0 +} + type RevokeCertificatesRequest struct { // Certificates to revoke. - CertificateId []string `protobuf:"bytes,1,rep,name=certificate_id,json=certificateId" json:"certificate_id,omitempty"` + CertificateId []string `protobuf:"bytes,1,rep,name=certificate_id,json=certificateId,proto3" json:"certificate_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RevokeCertificatesRequest) Reset() { *m = RevokeCertificatesRequest{} } +func (m *RevokeCertificatesRequest) String() string { return proto.CompactTextString(m) } +func (*RevokeCertificatesRequest) ProtoMessage() {} +func (*RevokeCertificatesRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_35089d6bfca6de66, []int{13} +} + +func (m *RevokeCertificatesRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RevokeCertificatesRequest.Unmarshal(m, b) +} +func (m *RevokeCertificatesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RevokeCertificatesRequest.Marshal(b, m, deterministic) +} +func (m *RevokeCertificatesRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RevokeCertificatesRequest.Merge(m, src) +} +func (m *RevokeCertificatesRequest) XXX_Size() int { + return xxx_messageInfo_RevokeCertificatesRequest.Size(m) +} +func (m *RevokeCertificatesRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RevokeCertificatesRequest.DiscardUnknown(m) } -func (m *RevokeCertificatesRequest) Reset() { *m = RevokeCertificatesRequest{} } -func (m *RevokeCertificatesRequest) String() string { return proto.CompactTextString(m) } -func (*RevokeCertificatesRequest) ProtoMessage() {} -func (*RevokeCertificatesRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{13} } +var xxx_messageInfo_RevokeCertificatesRequest proto.InternalMessageInfo + +func (m *RevokeCertificatesRequest) GetCertificateId() []string { + if m != nil { + return m.CertificateId + } + return nil +} type RevokeCertificatesResponse struct { // List of certificates successfully revoked. - RevokedCertificateId []string `protobuf:"bytes,1,rep,name=revoked_certificate_id,json=revokedCertificateId" json:"revoked_certificate_id,omitempty"` + RevokedCertificateId []string `protobuf:"bytes,1,rep,name=revoked_certificate_id,json=revokedCertificateId,proto3" json:"revoked_certificate_id,omitempty"` // List of errors why certain certificates could not be revoked. - CertificateRevocationError []*CertificateRevocationError `protobuf:"bytes,2,rep,name=certificate_revocation_error,json=certificateRevocationError" json:"certificate_revocation_error,omitempty"` + CertificateRevocationError []*CertificateRevocationError `protobuf:"bytes,2,rep,name=certificate_revocation_error,json=certificateRevocationError,proto3" json:"certificate_revocation_error,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *RevokeCertificatesResponse) Reset() { *m = RevokeCertificatesResponse{} } -func (m *RevokeCertificatesResponse) String() string { return proto.CompactTextString(m) } -func (*RevokeCertificatesResponse) ProtoMessage() {} -func (*RevokeCertificatesResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{14} } +func (m *RevokeCertificatesResponse) Reset() { *m = RevokeCertificatesResponse{} } +func (m *RevokeCertificatesResponse) String() string { return proto.CompactTextString(m) } +func (*RevokeCertificatesResponse) ProtoMessage() {} +func (*RevokeCertificatesResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_35089d6bfca6de66, []int{14} +} + +func (m *RevokeCertificatesResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RevokeCertificatesResponse.Unmarshal(m, b) +} +func (m *RevokeCertificatesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RevokeCertificatesResponse.Marshal(b, m, deterministic) +} +func (m *RevokeCertificatesResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RevokeCertificatesResponse.Merge(m, src) +} +func (m *RevokeCertificatesResponse) XXX_Size() int { + return xxx_messageInfo_RevokeCertificatesResponse.Size(m) +} +func (m *RevokeCertificatesResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RevokeCertificatesResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RevokeCertificatesResponse proto.InternalMessageInfo + +func (m *RevokeCertificatesResponse) GetRevokedCertificateId() []string { + if m != nil { + return m.RevokedCertificateId + } + return nil +} func (m *RevokeCertificatesResponse) GetCertificateRevocationError() []*CertificateRevocationError { if m != nil { @@ -909,92 +1362,354 @@ func (m *RevokeCertificatesResponse) GetCertificateRevocationError() []*Certific // An error message indicating why a certificate id could not be revoked. type CertificateRevocationError struct { - CertificateId string `protobuf:"bytes,1,opt,name=certificate_id,json=certificateId" json:"certificate_id,omitempty"` - ErrorMessage string `protobuf:"bytes,2,opt,name=error_message,json=errorMessage" json:"error_message,omitempty"` + CertificateId string `protobuf:"bytes,1,opt,name=certificate_id,json=certificateId,proto3" json:"certificate_id,omitempty"` + ErrorMessage string `protobuf:"bytes,2,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *CertificateRevocationError) Reset() { *m = CertificateRevocationError{} } -func (m *CertificateRevocationError) String() string { return proto.CompactTextString(m) } -func (*CertificateRevocationError) ProtoMessage() {} -func (*CertificateRevocationError) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{15} } +func (m *CertificateRevocationError) Reset() { *m = CertificateRevocationError{} } +func (m *CertificateRevocationError) String() string { return proto.CompactTextString(m) } +func (*CertificateRevocationError) ProtoMessage() {} +func (*CertificateRevocationError) Descriptor() ([]byte, []int) { + return fileDescriptor_35089d6bfca6de66, []int{15} +} + +func (m *CertificateRevocationError) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CertificateRevocationError.Unmarshal(m, b) +} +func (m *CertificateRevocationError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CertificateRevocationError.Marshal(b, m, deterministic) +} +func (m *CertificateRevocationError) XXX_Merge(src proto.Message) { + xxx_messageInfo_CertificateRevocationError.Merge(m, src) +} +func (m *CertificateRevocationError) XXX_Size() int { + return xxx_messageInfo_CertificateRevocationError.Size(m) +} +func (m *CertificateRevocationError) XXX_DiscardUnknown() { + xxx_messageInfo_CertificateRevocationError.DiscardUnknown(m) +} + +var xxx_messageInfo_CertificateRevocationError proto.InternalMessageInfo + +func (m *CertificateRevocationError) GetCertificateId() string { + if m != nil { + return m.CertificateId + } + return "" +} + +func (m *CertificateRevocationError) GetErrorMessage() string { + if m != nil { + return m.ErrorMessage + } + return "" +} // A request to ask the target if it can generate key pairs. type CanGenerateCSRRequest struct { - KeyType KeyType `protobuf:"varint,1,opt,name=key_type,json=keyType,enum=gnoi.certificate.KeyType" json:"key_type,omitempty"` - CertificateType CertificateType `protobuf:"varint,2,opt,name=certificate_type,json=certificateType,enum=gnoi.certificate.CertificateType" json:"certificate_type,omitempty"` - KeySize uint32 `protobuf:"varint,3,opt,name=key_size,json=keySize" json:"key_size,omitempty"` + KeyType KeyType `protobuf:"varint,1,opt,name=key_type,json=keyType,proto3,enum=gnoi.certificate.KeyType" json:"key_type,omitempty"` + CertificateType CertificateType `protobuf:"varint,2,opt,name=certificate_type,json=certificateType,proto3,enum=gnoi.certificate.CertificateType" json:"certificate_type,omitempty"` + KeySize uint32 `protobuf:"varint,3,opt,name=key_size,json=keySize,proto3" json:"key_size,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CanGenerateCSRRequest) Reset() { *m = CanGenerateCSRRequest{} } +func (m *CanGenerateCSRRequest) String() string { return proto.CompactTextString(m) } +func (*CanGenerateCSRRequest) ProtoMessage() {} +func (*CanGenerateCSRRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_35089d6bfca6de66, []int{16} +} + +func (m *CanGenerateCSRRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CanGenerateCSRRequest.Unmarshal(m, b) +} +func (m *CanGenerateCSRRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CanGenerateCSRRequest.Marshal(b, m, deterministic) +} +func (m *CanGenerateCSRRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_CanGenerateCSRRequest.Merge(m, src) +} +func (m *CanGenerateCSRRequest) XXX_Size() int { + return xxx_messageInfo_CanGenerateCSRRequest.Size(m) +} +func (m *CanGenerateCSRRequest) XXX_DiscardUnknown() { + xxx_messageInfo_CanGenerateCSRRequest.DiscardUnknown(m) } -func (m *CanGenerateCSRRequest) Reset() { *m = CanGenerateCSRRequest{} } -func (m *CanGenerateCSRRequest) String() string { return proto.CompactTextString(m) } -func (*CanGenerateCSRRequest) ProtoMessage() {} -func (*CanGenerateCSRRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{16} } +var xxx_messageInfo_CanGenerateCSRRequest proto.InternalMessageInfo + +func (m *CanGenerateCSRRequest) GetKeyType() KeyType { + if m != nil { + return m.KeyType + } + return KeyType_KT_UNKNOWN +} + +func (m *CanGenerateCSRRequest) GetCertificateType() CertificateType { + if m != nil { + return m.CertificateType + } + return CertificateType_CT_UNKNOWN +} + +func (m *CanGenerateCSRRequest) GetKeySize() uint32 { + if m != nil { + return m.KeySize + } + return 0 +} // Response from the target about whether it can generate a CSR with the given // parameters. type CanGenerateCSRResponse struct { - CanGenerate bool `protobuf:"varint,4,opt,name=can_generate,json=canGenerate" json:"can_generate,omitempty"` + CanGenerate bool `protobuf:"varint,4,opt,name=can_generate,json=canGenerate,proto3" json:"can_generate,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CanGenerateCSRResponse) Reset() { *m = CanGenerateCSRResponse{} } +func (m *CanGenerateCSRResponse) String() string { return proto.CompactTextString(m) } +func (*CanGenerateCSRResponse) ProtoMessage() {} +func (*CanGenerateCSRResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_35089d6bfca6de66, []int{17} +} + +func (m *CanGenerateCSRResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CanGenerateCSRResponse.Unmarshal(m, b) } +func (m *CanGenerateCSRResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CanGenerateCSRResponse.Marshal(b, m, deterministic) +} +func (m *CanGenerateCSRResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_CanGenerateCSRResponse.Merge(m, src) +} +func (m *CanGenerateCSRResponse) XXX_Size() int { + return xxx_messageInfo_CanGenerateCSRResponse.Size(m) +} +func (m *CanGenerateCSRResponse) XXX_DiscardUnknown() { + xxx_messageInfo_CanGenerateCSRResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_CanGenerateCSRResponse proto.InternalMessageInfo -func (m *CanGenerateCSRResponse) Reset() { *m = CanGenerateCSRResponse{} } -func (m *CanGenerateCSRResponse) String() string { return proto.CompactTextString(m) } -func (*CanGenerateCSRResponse) ProtoMessage() {} -func (*CanGenerateCSRResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{17} } +func (m *CanGenerateCSRResponse) GetCanGenerate() bool { + if m != nil { + return m.CanGenerate + } + return false +} // A certificate. type Certificate struct { // Type of certificate. - Type CertificateType `protobuf:"varint,1,opt,name=type,enum=gnoi.certificate.CertificateType" json:"type,omitempty"` + Type CertificateType `protobuf:"varint,1,opt,name=type,proto3,enum=gnoi.certificate.CertificateType" json:"type,omitempty"` // Actual certificate. // The exact encoding depends upon the type of certificate. // for X509, this should be a PEM encoded Certificate. - Certificate []byte `protobuf:"bytes,2,opt,name=certificate,proto3" json:"certificate,omitempty"` + Certificate []byte `protobuf:"bytes,2,opt,name=certificate,proto3" json:"certificate,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Certificate) Reset() { *m = Certificate{} } +func (m *Certificate) String() string { return proto.CompactTextString(m) } +func (*Certificate) ProtoMessage() {} +func (*Certificate) Descriptor() ([]byte, []int) { + return fileDescriptor_35089d6bfca6de66, []int{18} +} + +func (m *Certificate) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Certificate.Unmarshal(m, b) +} +func (m *Certificate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Certificate.Marshal(b, m, deterministic) +} +func (m *Certificate) XXX_Merge(src proto.Message) { + xxx_messageInfo_Certificate.Merge(m, src) +} +func (m *Certificate) XXX_Size() int { + return xxx_messageInfo_Certificate.Size(m) +} +func (m *Certificate) XXX_DiscardUnknown() { + xxx_messageInfo_Certificate.DiscardUnknown(m) } -func (m *Certificate) Reset() { *m = Certificate{} } -func (m *Certificate) String() string { return proto.CompactTextString(m) } -func (*Certificate) ProtoMessage() {} -func (*Certificate) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{18} } +var xxx_messageInfo_Certificate proto.InternalMessageInfo + +func (m *Certificate) GetType() CertificateType { + if m != nil { + return m.Type + } + return CertificateType_CT_UNKNOWN +} + +func (m *Certificate) GetCertificate() []byte { + if m != nil { + return m.Certificate + } + return nil +} // A Certificate Signing Request. type CSR struct { // Type of certificate. - Type CertificateType `protobuf:"varint,1,opt,name=type,enum=gnoi.certificate.CertificateType" json:"type,omitempty"` + Type CertificateType `protobuf:"varint,1,opt,name=type,proto3,enum=gnoi.certificate.CertificateType" json:"type,omitempty"` // Bytes representing the CSR. // The exact encoding depends upon the type of certificate requested. // for X509: This should be the PEM encoded CSR. - Csr []byte `protobuf:"bytes,2,opt,name=csr,proto3" json:"csr,omitempty"` + Csr []byte `protobuf:"bytes,2,opt,name=csr,proto3" json:"csr,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *CSR) Reset() { *m = CSR{} } -func (m *CSR) String() string { return proto.CompactTextString(m) } -func (*CSR) ProtoMessage() {} -func (*CSR) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{19} } +func (m *CSR) Reset() { *m = CSR{} } +func (m *CSR) String() string { return proto.CompactTextString(m) } +func (*CSR) ProtoMessage() {} +func (*CSR) Descriptor() ([]byte, []int) { + return fileDescriptor_35089d6bfca6de66, []int{19} +} + +func (m *CSR) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CSR.Unmarshal(m, b) +} +func (m *CSR) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CSR.Marshal(b, m, deterministic) +} +func (m *CSR) XXX_Merge(src proto.Message) { + xxx_messageInfo_CSR.Merge(m, src) +} +func (m *CSR) XXX_Size() int { + return xxx_messageInfo_CSR.Size(m) +} +func (m *CSR) XXX_DiscardUnknown() { + xxx_messageInfo_CSR.DiscardUnknown(m) +} + +var xxx_messageInfo_CSR proto.InternalMessageInfo + +func (m *CSR) GetType() CertificateType { + if m != nil { + return m.Type + } + return CertificateType_CT_UNKNOWN +} + +func (m *CSR) GetCsr() []byte { + if m != nil { + return m.Csr + } + return nil +} // A message representing a pair of public/private keys. type KeyPair struct { - PrivateKey []byte `protobuf:"bytes,1,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"` - PublicKey []byte `protobuf:"bytes,2,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` + PrivateKey []byte `protobuf:"bytes,1,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"` + PublicKey []byte `protobuf:"bytes,2,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *KeyPair) Reset() { *m = KeyPair{} } -func (m *KeyPair) String() string { return proto.CompactTextString(m) } -func (*KeyPair) ProtoMessage() {} -func (*KeyPair) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{20} } +func (m *KeyPair) Reset() { *m = KeyPair{} } +func (m *KeyPair) String() string { return proto.CompactTextString(m) } +func (*KeyPair) ProtoMessage() {} +func (*KeyPair) Descriptor() ([]byte, []int) { + return fileDescriptor_35089d6bfca6de66, []int{20} +} + +func (m *KeyPair) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_KeyPair.Unmarshal(m, b) +} +func (m *KeyPair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_KeyPair.Marshal(b, m, deterministic) +} +func (m *KeyPair) XXX_Merge(src proto.Message) { + xxx_messageInfo_KeyPair.Merge(m, src) +} +func (m *KeyPair) XXX_Size() int { + return xxx_messageInfo_KeyPair.Size(m) +} +func (m *KeyPair) XXX_DiscardUnknown() { + xxx_messageInfo_KeyPair.DiscardUnknown(m) +} + +var xxx_messageInfo_KeyPair proto.InternalMessageInfo + +func (m *KeyPair) GetPrivateKey() []byte { + if m != nil { + return m.PrivateKey + } + return nil +} + +func (m *KeyPair) GetPublicKey() []byte { + if m != nil { + return m.PublicKey + } + return nil +} // An endpoint represents an entity on the target which can use a certificate. type Endpoint struct { - Type Endpoint_Type `protobuf:"varint,1,opt,name=type,enum=gnoi.certificate.Endpoint_Type" json:"type,omitempty"` + Type Endpoint_Type `protobuf:"varint,1,opt,name=type,proto3,enum=gnoi.certificate.Endpoint_Type" json:"type,omitempty"` // Human readable identifier for an endpoint. - Endpoint string `protobuf:"bytes,2,opt,name=endpoint" json:"endpoint,omitempty"` + Endpoint string `protobuf:"bytes,2,opt,name=endpoint,proto3" json:"endpoint,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Endpoint) Reset() { *m = Endpoint{} } +func (m *Endpoint) String() string { return proto.CompactTextString(m) } +func (*Endpoint) ProtoMessage() {} +func (*Endpoint) Descriptor() ([]byte, []int) { + return fileDescriptor_35089d6bfca6de66, []int{21} +} + +func (m *Endpoint) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Endpoint.Unmarshal(m, b) +} +func (m *Endpoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Endpoint.Marshal(b, m, deterministic) +} +func (m *Endpoint) XXX_Merge(src proto.Message) { + xxx_messageInfo_Endpoint.Merge(m, src) +} +func (m *Endpoint) XXX_Size() int { + return xxx_messageInfo_Endpoint.Size(m) } +func (m *Endpoint) XXX_DiscardUnknown() { + xxx_messageInfo_Endpoint.DiscardUnknown(m) +} + +var xxx_messageInfo_Endpoint proto.InternalMessageInfo -func (m *Endpoint) Reset() { *m = Endpoint{} } -func (m *Endpoint) String() string { return proto.CompactTextString(m) } -func (*Endpoint) ProtoMessage() {} -func (*Endpoint) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{21} } +func (m *Endpoint) GetType() Endpoint_Type { + if m != nil { + return m.Type + } + return Endpoint_EP_UNSPECIFIED +} + +func (m *Endpoint) GetEndpoint() string { + if m != nil { + return m.Endpoint + } + return "" +} func init() { + proto.RegisterEnum("gnoi.certificate.CertificateType", CertificateType_name, CertificateType_value) + proto.RegisterEnum("gnoi.certificate.KeyType", KeyType_name, KeyType_value) + proto.RegisterEnum("gnoi.certificate.Endpoint_Type", Endpoint_Type_name, Endpoint_Type_value) proto.RegisterType((*RotateCertificateRequest)(nil), "gnoi.certificate.RotateCertificateRequest") proto.RegisterType((*RotateCertificateResponse)(nil), "gnoi.certificate.RotateCertificateResponse") proto.RegisterType((*InstallCertificateRequest)(nil), "gnoi.certificate.InstallCertificateRequest") @@ -1017,9 +1732,92 @@ func init() { proto.RegisterType((*CSR)(nil), "gnoi.certificate.CSR") proto.RegisterType((*KeyPair)(nil), "gnoi.certificate.KeyPair") proto.RegisterType((*Endpoint)(nil), "gnoi.certificate.Endpoint") - proto.RegisterEnum("gnoi.certificate.CertificateType", CertificateType_name, CertificateType_value) - proto.RegisterEnum("gnoi.certificate.KeyType", KeyType_name, KeyType_value) - proto.RegisterEnum("gnoi.certificate.Endpoint_Type", Endpoint_Type_name, Endpoint_Type_value) +} + +func init() { + proto.RegisterFile("github.com/openconfig/gnoi/cert/cert.proto", fileDescriptor_35089d6bfca6de66) +} + +var fileDescriptor_35089d6bfca6de66 = []byte{ + // 1233 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x57, 0xdd, 0x72, 0xda, 0xc6, + 0x17, 0xb7, 0x0c, 0x31, 0x70, 0xc0, 0x20, 0x6f, 0x62, 0x47, 0xf0, 0xff, 0x67, 0xe2, 0xa8, 0xf5, + 0xc4, 0x71, 0x32, 0x38, 0x93, 0x8f, 0x99, 0x7e, 0xcc, 0xa4, 0x63, 0x13, 0x1c, 0x33, 0xd8, 0x84, + 0x11, 0xb8, 0xed, 0x9d, 0x66, 0x2d, 0x16, 0xbc, 0x63, 0xb4, 0xab, 0x4a, 0x72, 0x3a, 0xf8, 0x21, + 0xfa, 0x02, 0xbd, 0xe9, 0x55, 0x1f, 0xa1, 0x0f, 0xd0, 0x27, 0xe8, 0x45, 0xa7, 0xd7, 0x7d, 0x92, + 0x4e, 0x47, 0xbb, 0x02, 0x04, 0x12, 0x36, 0xcd, 0x5d, 0x6e, 0x18, 0xed, 0x39, 0xbf, 0xf3, 0xd3, + 0x9e, 0x6f, 0x01, 0x7b, 0x03, 0xea, 0x5f, 0x5c, 0x9d, 0x57, 0x2d, 0x6e, 0xef, 0x73, 0x87, 0x30, + 0x8b, 0xb3, 0x3e, 0x1d, 0xec, 0x0f, 0x18, 0xa7, 0xfb, 0x16, 0x71, 0x7d, 0xf1, 0x53, 0x75, 0x5c, + 0xee, 0x73, 0xa4, 0x06, 0xd2, 0x6a, 0x20, 0xa0, 0x7d, 0x6a, 0x61, 0x9f, 0xe8, 0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// Reference imports to suppress errors if they are not otherwise used. @@ -1030,8 +1828,9 @@ var _ grpc.ClientConn // is compatible with the grpc package it is being compiled against. const _ = grpc.SupportPackageIsVersion4 -// Client API for CertificateManagement service - +// CertificateManagementClient is the client API for CertificateManagement service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type CertificateManagementClient interface { // Rotate will replace an existing Certificate on the target by creating a // new CSR request and placing the new Certificate based on the CSR on the @@ -1151,7 +1950,7 @@ func NewCertificateManagementClient(cc *grpc.ClientConn) CertificateManagementCl } func (c *certificateManagementClient) Rotate(ctx context.Context, opts ...grpc.CallOption) (CertificateManagement_RotateClient, error) { - stream, err := grpc.NewClientStream(ctx, &_CertificateManagement_serviceDesc.Streams[0], c.cc, "/gnoi.certificate.CertificateManagement/Rotate", opts...) + stream, err := c.cc.NewStream(ctx, &_CertificateManagement_serviceDesc.Streams[0], "/gnoi.certificate.CertificateManagement/Rotate", opts...) if err != nil { return nil, err } @@ -1182,7 +1981,7 @@ func (x *certificateManagementRotateClient) Recv() (*RotateCertificateResponse, } func (c *certificateManagementClient) Install(ctx context.Context, opts ...grpc.CallOption) (CertificateManagement_InstallClient, error) { - stream, err := grpc.NewClientStream(ctx, &_CertificateManagement_serviceDesc.Streams[1], c.cc, "/gnoi.certificate.CertificateManagement/Install", opts...) + stream, err := c.cc.NewStream(ctx, &_CertificateManagement_serviceDesc.Streams[1], "/gnoi.certificate.CertificateManagement/Install", opts...) if err != nil { return nil, err } @@ -1214,7 +2013,7 @@ func (x *certificateManagementInstallClient) Recv() (*InstallCertificateResponse func (c *certificateManagementClient) GetCertificates(ctx context.Context, in *GetCertificatesRequest, opts ...grpc.CallOption) (*GetCertificatesResponse, error) { out := new(GetCertificatesResponse) - err := grpc.Invoke(ctx, "/gnoi.certificate.CertificateManagement/GetCertificates", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/gnoi.certificate.CertificateManagement/GetCertificates", in, out, opts...) if err != nil { return nil, err } @@ -1223,7 +2022,7 @@ func (c *certificateManagementClient) GetCertificates(ctx context.Context, in *G func (c *certificateManagementClient) RevokeCertificates(ctx context.Context, in *RevokeCertificatesRequest, opts ...grpc.CallOption) (*RevokeCertificatesResponse, error) { out := new(RevokeCertificatesResponse) - err := grpc.Invoke(ctx, "/gnoi.certificate.CertificateManagement/RevokeCertificates", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/gnoi.certificate.CertificateManagement/RevokeCertificates", in, out, opts...) if err != nil { return nil, err } @@ -1232,15 +2031,14 @@ func (c *certificateManagementClient) RevokeCertificates(ctx context.Context, in func (c *certificateManagementClient) CanGenerateCSR(ctx context.Context, in *CanGenerateCSRRequest, opts ...grpc.CallOption) (*CanGenerateCSRResponse, error) { out := new(CanGenerateCSRResponse) - err := grpc.Invoke(ctx, "/gnoi.certificate.CertificateManagement/CanGenerateCSR", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/gnoi.certificate.CertificateManagement/CanGenerateCSR", in, out, opts...) if err != nil { return nil, err } return out, nil } -// Server API for CertificateManagement service - +// CertificateManagementServer is the server API for CertificateManagement service. type CertificateManagementServer interface { // Rotate will replace an existing Certificate on the target by creating a // new CSR request and placing the new Certificate based on the CSR on the @@ -1492,88 +2290,5 @@ var _CertificateManagement_serviceDesc = grpc.ServiceDesc{ ClientStreams: true, }, }, - Metadata: "cert/cert.proto", -} - -func init() { proto.RegisterFile("cert/cert.proto", fileDescriptor0) } - -var fileDescriptor0 = []byte{ - // 1232 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xd4, 0x57, 0xdd, 0x72, 0xda, 0x46, - 0x14, 0xb6, 0x0c, 0x36, 0x70, 0xc0, 0x20, 0xaf, 0x63, 0x47, 0xd0, 0x66, 0xe2, 0xa8, 0xf5, 0xc4, - 0x71, 0x32, 0xd8, 0xcd, 0xcf, 0x4c, 0x7f, 0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24, 0xc8, 0xc9, 0x73, 0xd8, 0x72, 0x84, 0x76, 0x6a, 0x60, 0x4f, 0xd8, 0xee, 0x04, - 0xda, 0xca, 0x54, 0x00, 0x39, 0x7c, 0x1a, 0x46, 0xfb, 0x98, 0xc0, 0x1f, 0xea, 0x38, 0xb6, 0x5f, - 0xe5, 0x7e, 0x48, 0x9e, 0xdc, 0x1c, 0xd1, 0xb1, 0x51, 0xd5, 0xb7, 0xc1, 0x25, 0x73, 0xae, 0x4e, - 0x7f, 0x0b, 0xa5, 0xf9, 0x96, 0x8b, 0x66, 0xfd, 0x33, 0x58, 0x13, 0xb7, 0x33, 0x2c, 0xea, 0xba, - 0xa4, 0x47, 0x83, 0xc9, 0x9e, 0x13, 0xc2, 0x73, 0x29, 0xd3, 0x7f, 0x57, 0x60, 0xb3, 0x42, 0x78, - 0xcc, 0x56, 0x09, 0xcf, 0x62, 0x65, 0xe1, 0x59, 0x3c, 0x53, 0xf3, 0xc2, 0x7a, 0x79, 0xd1, 0x35, - 0x11, 0xae, 0x79, 0xc1, 0x56, 0x94, 0x77, 0x10, 0xdb, 0x22, 0x21, 0xb6, 0x85, 0xff, 0x22, 0x7f, - 0x55, 0xe8, 0xdf, 0xc0, 0xd6, 0xec, 0xbd, 0x83, 0x14, 0x3f, 0x80, 0x9c, 0x49, 0xb8, 0x31, 0x5a, - 0xd2, 0xa2, 0xda, 0xd2, 0x38, 0x6b, 0x4e, 0xd0, 0x7a, 0x17, 0xb2, 0xe1, 0xaf, 0xc7, 0x0f, 0xde, - 0x67, 0x91, 0xb6, 0xca, 0x4d, 0xf5, 0x8d, 0xde, 0x80, 0x44, 0xa5, 0x85, 0x3f, 0x94, 0x5f, 0x95, - 0xc3, 0x5c, 0xf2, 0x8a, 0xa9, 0x5d, 0x83, 0x54, 0x30, 0x37, 0xfd, 0xa5, 0x37, 0x70, 0xd8, 0x3b, - 0x3f, 0xc8, 0x97, 0x74, 0x28, 0xa8, 0x73, 0x18, 0x02, 0x51, 0x9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x42, - 0x2a, 0xf8, 0x30, 0x45, 0x31, 0xb6, 0x73, 0x3f, 0xc3, 0x4b, 0x4f, 0x16, 0x03, 0x87, 0xde, 0xd4, - 0x85, 0xc2, 0xcc, 0x5e, 0x42, 0xbb, 0x71, 0x1f, 0xb8, 0x71, 0x4b, 0xad, 0xf4, 0x68, 0x01, 0x64, - 0xd0, 0x6d, 0x36, 0xa0, 0xe8, 0xb8, 0x8d, 0x73, 0x6e, 0xee, 0x64, 0x8f, 0x73, 0xee, 0x86, 0x09, - 0x6e, 0x42, 0x7e, 0xba, 0xf1, 0xd1, 0xc3, 0x98, 0x86, 0x8a, 0x1b, 0x69, 0xa5, 0xdd, 0xdb, 0x81, - 0xf2, 0x25, 0xc7, 0xe9, 0xbf, 0x0e, 0x57, 0x0e, 0xca, 0x5f, 0x94, 0x0f, 0xde, 0xac, 0x8a, 0xff, - 0xc7, 0xcf, 0xfe, 0x0f, 0x00, 0x00, 0xff, 0xff, 0xad, 0x88, 0xe4, 0x40, 0x57, 0x0f, 0x00, 0x00, + Metadata: "github.com/openconfig/gnoi/cert/cert.proto", } diff --git a/cert/cert.proto b/cert/cert.proto index 760ff7e0..512752d2 100644 --- a/cert/cert.proto +++ b/cert/cert.proto @@ -18,12 +18,8 @@ // rotation. syntax = "proto3"; -import "types/types.proto"; - package gnoi.certificate; -option (gnoi.gnoi_version) = "0.1.0"; - // The Certificate Management Service exported by targets. // The service primarily exports two main RPCs, Install & Rotate which are used // for installation of a new certificate, and rotation of an existing diff --git a/common/common.proto b/common.proto similarity index 96% rename from common/common.proto rename to common.proto index 29da4129..48c7bb04 100644 --- a/common/common.proto +++ b/common.proto @@ -18,7 +18,7 @@ syntax = "proto3"; package gnoi; -import "types/types.proto"; +import "github.com/openconfig/gnoi/types.proto"; // RemoteDownload defines the details for a device to initiate a file transfer // from or to a remote location. diff --git a/common/common.pb.go b/common/common.pb.go deleted file mode 100644 index 285ce5cf..00000000 --- a/common/common.pb.go +++ /dev/null @@ -1,109 +0,0 @@ -// Code generated by protoc-gen-go. -// source: common/common.proto -// DO NOT EDIT! - -/* -Package gnoi is a generated protocol buffer package. - -It is generated from these files: - common/common.proto - -It has these top-level messages: - RemoteDownload -*/ -package gnoi - -import proto "github.com/golang/protobuf/proto" -import fmt "fmt" -import math "math" -import gnoi1 "types" - -// 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 - -type RemoteDownload_Protocol int32 - -const ( - RemoteDownload_UNKNOWN RemoteDownload_Protocol = 0 - RemoteDownload_SFTP RemoteDownload_Protocol = 1 - RemoteDownload_HTTP RemoteDownload_Protocol = 2 - RemoteDownload_HTTPS RemoteDownload_Protocol = 3 - RemoteDownload_SCP RemoteDownload_Protocol = 4 -) - -var RemoteDownload_Protocol_name = map[int32]string{ - 0: "UNKNOWN", - 1: "SFTP", - 2: "HTTP", - 3: "HTTPS", - 4: "SCP", -} -var RemoteDownload_Protocol_value = map[string]int32{ - "UNKNOWN": 0, - "SFTP": 1, - "HTTP": 2, - "HTTPS": 3, - "SCP": 4, -} - -func (x RemoteDownload_Protocol) String() string { - return proto.EnumName(RemoteDownload_Protocol_name, int32(x)) -} -func (RemoteDownload_Protocol) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0, 0} } - -// RemoteDownload defines the details for a device to initiate a file transfer -// from or to a remote location. -type RemoteDownload struct { - // The path information containing where to download the data from or to. - // For HTTP(S), this will be the URL (i.e. foo.com/file.tbz2). - // For SFTP and SCP, this will be the address:/path/to/file - // (i.e. host.foo.com:/bar/baz). - Path string `protobuf:"bytes,1,opt,name=path" json:"path,omitempty"` - Protocol RemoteDownload_Protocol `protobuf:"varint,2,opt,name=protocol,enum=gnoi.RemoteDownload_Protocol" json:"protocol,omitempty"` - Credentials *gnoi1.Credentials `protobuf:"bytes,3,opt,name=credentials" json:"credentials,omitempty"` -} - -func (m *RemoteDownload) Reset() { *m = RemoteDownload{} } -func (m *RemoteDownload) String() string { return proto.CompactTextString(m) } -func (*RemoteDownload) ProtoMessage() {} -func (*RemoteDownload) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } - -func (m *RemoteDownload) GetCredentials() *gnoi1.Credentials { - if m != nil { - return m.Credentials - } - return nil -} - -func init() { - proto.RegisterType((*RemoteDownload)(nil), "gnoi.RemoteDownload") - proto.RegisterEnum("gnoi.RemoteDownload_Protocol", RemoteDownload_Protocol_name, RemoteDownload_Protocol_value) -} - -func init() { proto.RegisterFile("common/common.proto", fileDescriptor0) } - -var fileDescriptor0 = []byte{ - // 215 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xe2, 0x12, 0x4e, 0xce, 0xcf, 0xcd, - 0xcd, 0xcf, 0xd3, 0x87, 0x50, 0x7a, 0x05, 0x45, 0xf9, 0x25, 0xf9, 0x42, 0x2c, 0xe9, 0x79, 0xf9, - 0x99, 0x52, 0x82, 0x25, 0x95, 0x05, 0xa9, 0xc5, 0xfa, 0x60, 0x12, 0x22, 0xa1, 0x74, 0x95, 0x91, - 0x8b, 0x2f, 0x28, 0x35, 0x37, 0xbf, 0x24, 0xd5, 0x25, 0xbf, 0x3c, 0x2f, 0x27, 0x3f, 0x31, 0x45, - 0x48, 0x88, 0x8b, 0xa5, 0x20, 0xb1, 0x24, 0x43, 0x82, 0x51, 0x81, 0x51, 0x83, 0x33, 0x08, 0xcc, - 0x16, 0xb2, 0xe4, 0xe2, 0x00, 0xab, 0x4f, 0xce, 0xcf, 0x91, 0x60, 0x52, 0x60, 0xd4, 0xe0, 0x33, - 0x92, 0xd5, 0x03, 0x19, 0xa9, 0x87, 0xaa, 0x57, 0x2f, 0x00, 0xaa, 0x28, 0x08, 0xae, 0x5c, 0xc8, - 0x98, 0x8b, 0x3b, 0xb9, 0x28, 0x35, 0x25, 0x35, 0xaf, 0x24, 0x33, 0x31, 0xa7, 0x58, 0x82, 0x59, - 0x81, 0x51, 0x83, 0xdb, 0x48, 0x10, 0xa2, 0xdb, 0x19, 0x21, 0x11, 0x84, 0xac, 0x4a, 0xc9, 0x9e, - 0x8b, 0x03, 0x66, 0x94, 0x10, 0x37, 0x17, 0x7b, 0xa8, 0x9f, 0xb7, 0x9f, 0x7f, 0xb8, 0x9f, 0x00, - 0x83, 0x10, 0x07, 0x17, 0x4b, 0xb0, 0x5b, 0x48, 0x80, 0x00, 0x23, 0x88, 0xe5, 0x11, 0x12, 0x12, - 0x20, 0xc0, 0x24, 0xc4, 0xc9, 0xc5, 0x0a, 0x62, 0x05, 0x0b, 0x30, 0x0b, 0xb1, 0x73, 0x31, 0x07, - 0x3b, 0x07, 0x08, 0xb0, 0x24, 0xb1, 0x81, 0xed, 0x37, 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, 0x79, - 0xb3, 0xda, 0x64, 0x0e, 0x01, 0x00, 0x00, -} diff --git a/compile_protos.sh b/compile_protos.sh index f3522ca5..2dcec12a 100755 --- a/compile_protos.sh +++ b/compile_protos.sh @@ -4,7 +4,8 @@ set -euo pipefail proto_imports=".:${GOPATH}/src/github.com/google/protobuf/src:${GOPATH}/src" # Go -for p in types common diag bgp cert file interface layer2 mpls system; do +protoc -I=$proto_imports --go_out=. types.proto +for p in bgp cert file interface layer2 mpls system; do protoc -I=$proto_imports --go_out=plugins=grpc:. $p/$p.proto done diff --git a/diag/diag.pb.go b/diag/diag.pb.go deleted file mode 100644 index f0c6bfdb..00000000 --- a/diag/diag.pb.go +++ /dev/null @@ -1,735 +0,0 @@ -// Code generated by protoc-gen-go. -// source: diag/diag.proto -// DO NOT EDIT! - -/* -Package gnoi_diag is a generated protocol buffer package. - -It is generated from these files: - diag/diag.proto - -It has these top-level messages: - StartBERTRequest - StartBERTResponse - StopBERTRequest - StopBERTResponse - GetBERTResultRequest - GetBERTResultResponse -*/ -package gnoi_diag - -import proto "github.com/golang/protobuf/proto" -import fmt "fmt" -import math "math" -import gnoi "types" - -import ( - context "golang.org/x/net/context" - grpc "google.golang.org/grpc" -) - -// 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 - -// Common sequence generating monic polynomials used for PRBS. -type PrbsPolynomial int32 - -const ( - PrbsPolynomial_PRBS_POLYNOMIAL_UNKNOWN PrbsPolynomial = 0 - PrbsPolynomial_PRBS_POLYNOMIAL_PRBS7 PrbsPolynomial = 1 - PrbsPolynomial_PRBS_POLYNOMIAL_PRBS9 PrbsPolynomial = 2 - PrbsPolynomial_PRBS_POLYNOMIAL_PRBS15 PrbsPolynomial = 3 - PrbsPolynomial_PRBS_POLYNOMIAL_PRBS20 PrbsPolynomial = 4 - PrbsPolynomial_PRBS_POLYNOMIAL_PRBS23 PrbsPolynomial = 5 - PrbsPolynomial_PRBS_POLYNOMIAL_PRBS31 PrbsPolynomial = 6 -) - -var PrbsPolynomial_name = map[int32]string{ - 0: "PRBS_POLYNOMIAL_UNKNOWN", - 1: "PRBS_POLYNOMIAL_PRBS7", - 2: "PRBS_POLYNOMIAL_PRBS9", - 3: "PRBS_POLYNOMIAL_PRBS15", - 4: "PRBS_POLYNOMIAL_PRBS20", - 5: "PRBS_POLYNOMIAL_PRBS23", - 6: "PRBS_POLYNOMIAL_PRBS31", -} -var PrbsPolynomial_value = map[string]int32{ - "PRBS_POLYNOMIAL_UNKNOWN": 0, - "PRBS_POLYNOMIAL_PRBS7": 1, - "PRBS_POLYNOMIAL_PRBS9": 2, - "PRBS_POLYNOMIAL_PRBS15": 3, - "PRBS_POLYNOMIAL_PRBS20": 4, - "PRBS_POLYNOMIAL_PRBS23": 5, - "PRBS_POLYNOMIAL_PRBS31": 6, -} - -func (x PrbsPolynomial) String() string { - return proto.EnumName(PrbsPolynomial_name, int32(x)) -} -func (PrbsPolynomial) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } - -// Status returned for each per-port BERT request. -type BertStatus int32 - -const ( - // default invalid choice. - BertStatus_BERT_STATUS_UNKNOWN BertStatus = 0 - // BERT requests (Start, Stop, GetStatus) were processed successfully. - BertStatus_BERT_STATUS_OK BertStatus = 1 - // The specified port was not found. - BertStatus_BERT_STATUS_NON_EXISTENT_PORT BertStatus = 2 - // HW error was encountered while performing BERT operation. - BertStatus_BERT_STATUS_HARDWARE_ACCESS_ERROR BertStatus = 3 - // PRBS generating polynomial is not supported by the target. - BertStatus_BERT_STATUS_UNSUPPORTED_PRBS_POLYNOMIAL BertStatus = 4 - // There is already a BERT running on the specified port. Returned when - // `StartBert` RPC tries to add run BERT on an already in-use port. - BertStatus_BERT_STATUS_PORT_ALREADY_IN_BERT BertStatus = 5 - // There is no BERT running on the specified port. Returned when `StopBert` - // or `GetBertResult` RPC was called for an idle port. - BertStatus_BERT_STATUS_PORT_NOT_RUNNING_BERT BertStatus = 6 - // The specified test duration is too small. - BertStatus_BERT_STATUS_TEST_DURATION_TOO_SHORT BertStatus = 7 - // The specified test duration is larger than maximum allowed. - BertStatus_BERT_STATUS_TEST_DURATION_TOO_LONG BertStatus = 8 - // The given BERT operation ID is not known. Returned for `StopBert` and - // `GetBertResult` RPCs. - BertStatus_BERT_STATUS_OPERATION_ID_NOT_FOUND BertStatus = 9 - // The given BERT operation ID is already in use. Returned when `StartBert` - // RPC uses an ID which is already memorized for a BERT operation. - BertStatus_BERT_STATUS_OPERATION_ID_IN_USE BertStatus = 10 - // Failure to get the peer lock. - BertStatus_BERT_STATUS_PEER_LOCK_FAILURE BertStatus = 11 - // Lost the peer lock after locking once. - BertStatus_BERT_STATUS_PEER_LOCK_LOST BertStatus = 12 - // Misc internal errors that cannot be categorized by any of the previous - // error codes. - BertStatus_BERT_STATUS_INTERNAL_ERROR BertStatus = 13 -) - -var BertStatus_name = map[int32]string{ - 0: "BERT_STATUS_UNKNOWN", - 1: "BERT_STATUS_OK", - 2: "BERT_STATUS_NON_EXISTENT_PORT", - 3: "BERT_STATUS_HARDWARE_ACCESS_ERROR", - 4: "BERT_STATUS_UNSUPPORTED_PRBS_POLYNOMIAL", - 5: "BERT_STATUS_PORT_ALREADY_IN_BERT", - 6: "BERT_STATUS_PORT_NOT_RUNNING_BERT", - 7: "BERT_STATUS_TEST_DURATION_TOO_SHORT", - 8: "BERT_STATUS_TEST_DURATION_TOO_LONG", - 9: "BERT_STATUS_OPERATION_ID_NOT_FOUND", - 10: "BERT_STATUS_OPERATION_ID_IN_USE", - 11: "BERT_STATUS_PEER_LOCK_FAILURE", - 12: "BERT_STATUS_PEER_LOCK_LOST", - 13: "BERT_STATUS_INTERNAL_ERROR", -} -var BertStatus_value = map[string]int32{ - "BERT_STATUS_UNKNOWN": 0, - "BERT_STATUS_OK": 1, - "BERT_STATUS_NON_EXISTENT_PORT": 2, - "BERT_STATUS_HARDWARE_ACCESS_ERROR": 3, - "BERT_STATUS_UNSUPPORTED_PRBS_POLYNOMIAL": 4, - "BERT_STATUS_PORT_ALREADY_IN_BERT": 5, - "BERT_STATUS_PORT_NOT_RUNNING_BERT": 6, - "BERT_STATUS_TEST_DURATION_TOO_SHORT": 7, - "BERT_STATUS_TEST_DURATION_TOO_LONG": 8, - "BERT_STATUS_OPERATION_ID_NOT_FOUND": 9, - "BERT_STATUS_OPERATION_ID_IN_USE": 10, - "BERT_STATUS_PEER_LOCK_FAILURE": 11, - "BERT_STATUS_PEER_LOCK_LOST": 12, - "BERT_STATUS_INTERNAL_ERROR": 13, -} - -func (x BertStatus) String() string { - return proto.EnumName(BertStatus_name, int32(x)) -} -func (BertStatus) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } - -type StartBERTRequest struct { - // Unique BERT operation ID specified by the client. Multiple BERTs run on - // different ports can have the same BERT operation ID. This ID will be used - // later to stop the operation and/or get its results. - // TODO: Investigate whether we can use numerical IDs instead. - BertOperationId string `protobuf:"bytes,1,opt,name=bert_operation_id,json=bertOperationId" json:"bert_operation_id,omitempty"` - // All the per-port BERTs that are considered one BERT operation and have the - // same BERT operation ID. - PerPortRequests []*StartBERTRequest_PerPortRequest `protobuf:"bytes,2,rep,name=per_port_requests,json=perPortRequests" json:"per_port_requests,omitempty"` -} - -func (m *StartBERTRequest) Reset() { *m = StartBERTRequest{} } -func (m *StartBERTRequest) String() string { return proto.CompactTextString(m) } -func (*StartBERTRequest) ProtoMessage() {} -func (*StartBERTRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } - -func (m *StartBERTRequest) GetPerPortRequests() []*StartBERTRequest_PerPortRequest { - if m != nil { - return m.PerPortRequests - } - return nil -} - -// Per port BERT start requests. -type StartBERTRequest_PerPortRequest struct { - // Path to the interface corresponding to the port. - Interface *gnoi.Path `protobuf:"bytes,1,opt,name=interface" json:"interface,omitempty"` - // The selected PRBS generating polynomial for BERT. - PrbsPolynomial PrbsPolynomial `protobuf:"varint,2,opt,name=prbs_polynomial,json=prbsPolynomial,enum=gnoi.diag.PrbsPolynomial" json:"prbs_polynomial,omitempty"` - // BERT duration in seconds. Must be a positive number. - TestDurationInSecs uint32 `protobuf:"varint,3,opt,name=test_duration_in_secs,json=testDurationInSecs" json:"test_duration_in_secs,omitempty"` -} - -func (m *StartBERTRequest_PerPortRequest) Reset() { *m = StartBERTRequest_PerPortRequest{} } -func (m *StartBERTRequest_PerPortRequest) String() string { return proto.CompactTextString(m) } -func (*StartBERTRequest_PerPortRequest) ProtoMessage() {} -func (*StartBERTRequest_PerPortRequest) Descriptor() ([]byte, []int) { - return fileDescriptor0, []int{0, 0} -} - -func (m *StartBERTRequest_PerPortRequest) GetInterface() *gnoi.Path { - if m != nil { - return m.Interface - } - return nil -} - -type StartBERTResponse struct { - // The same BERT operation ID given by the request. - BertOperationId string `protobuf:"bytes,1,opt,name=bert_operation_id,json=bertOperationId" json:"bert_operation_id,omitempty"` - // Captures the results of starting BERT on a per-port basis. - PerPortResponses []*StartBERTResponse_PerPortResponse `protobuf:"bytes,2,rep,name=per_port_responses,json=perPortResponses" json:"per_port_responses,omitempty"` -} - -func (m *StartBERTResponse) Reset() { *m = StartBERTResponse{} } -func (m *StartBERTResponse) String() string { return proto.CompactTextString(m) } -func (*StartBERTResponse) ProtoMessage() {} -func (*StartBERTResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } - -func (m *StartBERTResponse) GetPerPortResponses() []*StartBERTResponse_PerPortResponse { - if m != nil { - return m.PerPortResponses - } - return nil -} - -// Per-port BERT start responses. -type StartBERTResponse_PerPortResponse struct { - // Path to the interface corresponding to the port. - Interface *gnoi.Path `protobuf:"bytes,1,opt,name=interface" json:"interface,omitempty"` - // BERT start status for this port. - Status BertStatus `protobuf:"varint,2,opt,name=status,enum=gnoi.diag.BertStatus" json:"status,omitempty"` -} - -func (m *StartBERTResponse_PerPortResponse) Reset() { *m = StartBERTResponse_PerPortResponse{} } -func (m *StartBERTResponse_PerPortResponse) String() string { return proto.CompactTextString(m) } -func (*StartBERTResponse_PerPortResponse) ProtoMessage() {} -func (*StartBERTResponse_PerPortResponse) Descriptor() ([]byte, []int) { - return fileDescriptor0, []int{1, 0} -} - -func (m *StartBERTResponse_PerPortResponse) GetInterface() *gnoi.Path { - if m != nil { - return m.Interface - } - return nil -} - -type StopBERTRequest struct { - // The same BERT operation ID given when BERT operation was started. - BertOperationId string `protobuf:"bytes,1,opt,name=bert_operation_id,json=bertOperationId" json:"bert_operation_id,omitempty"` - // All the per-port BERTs that need to be stopped. Must be part of the BERT - // operation specified by the `bert_operation_id` above. - PerPortRequests []*StopBERTRequest_PerPortRequest `protobuf:"bytes,2,rep,name=per_port_requests,json=perPortRequests" json:"per_port_requests,omitempty"` -} - -func (m *StopBERTRequest) Reset() { *m = StopBERTRequest{} } -func (m *StopBERTRequest) String() string { return proto.CompactTextString(m) } -func (*StopBERTRequest) ProtoMessage() {} -func (*StopBERTRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} } - -func (m *StopBERTRequest) GetPerPortRequests() []*StopBERTRequest_PerPortRequest { - if m != nil { - return m.PerPortRequests - } - return nil -} - -// Per-port BERT stop requests. -type StopBERTRequest_PerPortRequest struct { - // Path to the interface corresponding to the port. - Interface *gnoi.Path `protobuf:"bytes,1,opt,name=interface" json:"interface,omitempty"` -} - -func (m *StopBERTRequest_PerPortRequest) Reset() { *m = StopBERTRequest_PerPortRequest{} } -func (m *StopBERTRequest_PerPortRequest) String() string { return proto.CompactTextString(m) } -func (*StopBERTRequest_PerPortRequest) ProtoMessage() {} -func (*StopBERTRequest_PerPortRequest) Descriptor() ([]byte, []int) { - return fileDescriptor0, []int{2, 0} -} - -func (m *StopBERTRequest_PerPortRequest) GetInterface() *gnoi.Path { - if m != nil { - return m.Interface - } - return nil -} - -type StopBERTResponse struct { - // The same BERT operation ID given by the request. - BertOperationId string `protobuf:"bytes,1,opt,name=bert_operation_id,json=bertOperationId" json:"bert_operation_id,omitempty"` - // Captures the results of stopping BERT on a per-port basis. - PerPortResponses []*StopBERTResponse_PerPortResponse `protobuf:"bytes,2,rep,name=per_port_responses,json=perPortResponses" json:"per_port_responses,omitempty"` -} - -func (m *StopBERTResponse) Reset() { *m = StopBERTResponse{} } -func (m *StopBERTResponse) String() string { return proto.CompactTextString(m) } -func (*StopBERTResponse) ProtoMessage() {} -func (*StopBERTResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} } - -func (m *StopBERTResponse) GetPerPortResponses() []*StopBERTResponse_PerPortResponse { - if m != nil { - return m.PerPortResponses - } - return nil -} - -// Per-port BERT stop responses. -type StopBERTResponse_PerPortResponse struct { - // Path to the interface corresponding to the port. - Interface *gnoi.Path `protobuf:"bytes,1,opt,name=interface" json:"interface,omitempty"` - // BERT stop status for this port. - Status BertStatus `protobuf:"varint,2,opt,name=status,enum=gnoi.diag.BertStatus" json:"status,omitempty"` -} - -func (m *StopBERTResponse_PerPortResponse) Reset() { *m = StopBERTResponse_PerPortResponse{} } -func (m *StopBERTResponse_PerPortResponse) String() string { return proto.CompactTextString(m) } -func (*StopBERTResponse_PerPortResponse) ProtoMessage() {} -func (*StopBERTResponse_PerPortResponse) Descriptor() ([]byte, []int) { - return fileDescriptor0, []int{3, 0} -} - -func (m *StopBERTResponse_PerPortResponse) GetInterface() *gnoi.Path { - if m != nil { - return m.Interface - } - return nil -} - -// TODO: If there is no use case to get the BERT results for all the ports -// independent of the bert_operation_id, we can simplify this message and -// return the results for all the ports associated with an operation ID. -type GetBERTResultRequest struct { - // The same BERT operation ID given when BERT operation was started. - BertOperationId string `protobuf:"bytes,1,opt,name=bert_operation_id,json=bertOperationId" json:"bert_operation_id,omitempty"` - // All the per-port BERTs result of which we want to query. Must be part of - // the BERT operation specified by the `bert_operation_id` above. - PerPortRequests []*GetBERTResultRequest_PerPortRequest `protobuf:"bytes,2,rep,name=per_port_requests,json=perPortRequests" json:"per_port_requests,omitempty"` - // If set to true, the results for all the per-port BERTs will be returned. - // `bert_operation_id` and `per_port_requests` will be ignored will be - // ignored in that case. - ResultFromAllPorts bool `protobuf:"varint,3,opt,name=result_from_all_ports,json=resultFromAllPorts" json:"result_from_all_ports,omitempty"` -} - -func (m *GetBERTResultRequest) Reset() { *m = GetBERTResultRequest{} } -func (m *GetBERTResultRequest) String() string { return proto.CompactTextString(m) } -func (*GetBERTResultRequest) ProtoMessage() {} -func (*GetBERTResultRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} } - -func (m *GetBERTResultRequest) GetPerPortRequests() []*GetBERTResultRequest_PerPortRequest { - if m != nil { - return m.PerPortRequests - } - return nil -} - -// Per-port BERT get result requests. -type GetBERTResultRequest_PerPortRequest struct { - // Path to the interface corresponding to the port. - Interface *gnoi.Path `protobuf:"bytes,1,opt,name=interface" json:"interface,omitempty"` -} - -func (m *GetBERTResultRequest_PerPortRequest) Reset() { *m = GetBERTResultRequest_PerPortRequest{} } -func (m *GetBERTResultRequest_PerPortRequest) String() string { return proto.CompactTextString(m) } -func (*GetBERTResultRequest_PerPortRequest) ProtoMessage() {} -func (*GetBERTResultRequest_PerPortRequest) Descriptor() ([]byte, []int) { - return fileDescriptor0, []int{4, 0} -} - -func (m *GetBERTResultRequest_PerPortRequest) GetInterface() *gnoi.Path { - if m != nil { - return m.Interface - } - return nil -} - -type GetBERTResultResponse struct { - // Captures the BERT results on a per-port basis. - PerPortResponses []*GetBERTResultResponse_PerPortResponse `protobuf:"bytes,1,rep,name=per_port_responses,json=perPortResponses" json:"per_port_responses,omitempty"` -} - -func (m *GetBERTResultResponse) Reset() { *m = GetBERTResultResponse{} } -func (m *GetBERTResultResponse) String() string { return proto.CompactTextString(m) } -func (*GetBERTResultResponse) ProtoMessage() {} -func (*GetBERTResultResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} } - -func (m *GetBERTResultResponse) GetPerPortResponses() []*GetBERTResultResponse_PerPortResponse { - if m != nil { - return m.PerPortResponses - } - return nil -} - -// Per-port BERT results/status. -type GetBERTResultResponse_PerPortResponse struct { - // Path to the interface corresponding to the port. - Interface *gnoi.Path `protobuf:"bytes,1,opt,name=interface" json:"interface,omitempty"` - // BERT result get status for this port. Only if the status is - // BERT_STATUS_OK are the rest of the fields meaningful. - Status BertStatus `protobuf:"varint,2,opt,name=status,enum=gnoi.diag.BertStatus" json:"status,omitempty"` - // The ID of the BERT operation running on this port. Since the caller - // can query the BERT results for all the ports, ID can potentially be - // different for different ports. - BertOperationId string `protobuf:"bytes,3,opt,name=bert_operation_id,json=bertOperationId" json:"bert_operation_id,omitempty"` - // The selected PRBS generating polynomial for BERT on this port. - PrbsPolynomial PrbsPolynomial `protobuf:"varint,4,opt,name=prbs_polynomial,json=prbsPolynomial,enum=gnoi.diag.PrbsPolynomial" json:"prbs_polynomial,omitempty"` - // The last time BERT started on this port. - LastBertStartTimestamp uint64 `protobuf:"varint,5,opt,name=last_bert_start_timestamp,json=lastBertStartTimestamp" json:"last_bert_start_timestamp,omitempty"` - // The last time BERT results were read for this port. - LastBertGetResultTimestamp uint64 `protobuf:"varint,6,opt,name=last_bert_get_result_timestamp,json=lastBertGetResultTimestamp" json:"last_bert_get_result_timestamp,omitempty"` - // Indicate whether BERT peer lock has was established. If false, - // `bert_lock_lost`, `error_count_per_minute`, and `total_errors` will not - // be meaningful. - PeerLockEstablished bool `protobuf:"varint,7,opt,name=peer_lock_established,json=peerLockEstablished" json:"peer_lock_established,omitempty"` - // Indicate whether BERT peer lock was lost after being established - // once. - PeerLockLost bool `protobuf:"varint,8,opt,name=peer_lock_lost,json=peerLockLost" json:"peer_lock_lost,omitempty"` - // Sequence of bit errors per min since lock was established. - ErrorCountPerMinute []uint32 `protobuf:"varint,9,rep,packed,name=error_count_per_minute,json=errorCountPerMinute" json:"error_count_per_minute,omitempty"` - // Total number of bit errors accumulated since lock was established. - TotalErrors uint64 `protobuf:"varint,10,opt,name=total_errors,json=totalErrors" json:"total_errors,omitempty"` -} - -func (m *GetBERTResultResponse_PerPortResponse) Reset() { *m = GetBERTResultResponse_PerPortResponse{} } -func (m *GetBERTResultResponse_PerPortResponse) String() string { return proto.CompactTextString(m) } -func (*GetBERTResultResponse_PerPortResponse) ProtoMessage() {} -func (*GetBERTResultResponse_PerPortResponse) Descriptor() ([]byte, []int) { - return fileDescriptor0, []int{5, 0} -} - -func (m *GetBERTResultResponse_PerPortResponse) GetInterface() *gnoi.Path { - if m != nil { - return m.Interface - } - return nil -} - -func init() { - proto.RegisterType((*StartBERTRequest)(nil), "gnoi.diag.StartBERTRequest") - proto.RegisterType((*StartBERTRequest_PerPortRequest)(nil), "gnoi.diag.StartBERTRequest.PerPortRequest") - proto.RegisterType((*StartBERTResponse)(nil), "gnoi.diag.StartBERTResponse") - proto.RegisterType((*StartBERTResponse_PerPortResponse)(nil), "gnoi.diag.StartBERTResponse.PerPortResponse") - proto.RegisterType((*StopBERTRequest)(nil), "gnoi.diag.StopBERTRequest") - proto.RegisterType((*StopBERTRequest_PerPortRequest)(nil), "gnoi.diag.StopBERTRequest.PerPortRequest") - proto.RegisterType((*StopBERTResponse)(nil), "gnoi.diag.StopBERTResponse") - proto.RegisterType((*StopBERTResponse_PerPortResponse)(nil), "gnoi.diag.StopBERTResponse.PerPortResponse") - proto.RegisterType((*GetBERTResultRequest)(nil), "gnoi.diag.GetBERTResultRequest") - proto.RegisterType((*GetBERTResultRequest_PerPortRequest)(nil), "gnoi.diag.GetBERTResultRequest.PerPortRequest") - proto.RegisterType((*GetBERTResultResponse)(nil), "gnoi.diag.GetBERTResultResponse") - proto.RegisterType((*GetBERTResultResponse_PerPortResponse)(nil), "gnoi.diag.GetBERTResultResponse.PerPortResponse") - proto.RegisterEnum("gnoi.diag.PrbsPolynomial", PrbsPolynomial_name, PrbsPolynomial_value) - proto.RegisterEnum("gnoi.diag.BertStatus", BertStatus_name, BertStatus_value) -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// Client API for Diag service - -type DiagClient interface { - // Starts BERT operation on a set of ports. Each BERT operation is uniquely - // identified by an ID, which is given by the caller. The caller can then - // use this ID (as well as the list of the ports) to stop the BERT operation - // and/or get the BERT results. This RPC is expected to return an error status - // in the following situations: - // - When BERT operation is supported on none of the ports specified by - // the request. - // - When BERT is already in progress on any port specified by the request. - // - In case of any low-level HW/SW internal errors. - // The RPC returns an OK status of none of these situations is encountered. - StartBERT(ctx context.Context, in *StartBERTRequest, opts ...grpc.CallOption) (*StartBERTResponse, error) - // Stops an already in-progress BERT operation on a set of ports. The caller - // uses the BERT operation ID it previously used when starting the operation - // to stop it. The RPC is expected to return an error status in the following - // situations: - // - When there is at least one BERT operation in progress on a port which - // cannot be stopped in the middle of the operation (either due to lack of - // support or internal problems). - // - When no BERT operation, which matches the given BERT operation ID, is in - // progress or completed on any of the ports specified by the request. - // - When the BERT operation ID does not match the in progress or completed - // BERT operation on any of the ports specified by the request. - // The RPC returns an OK status of none of these situations is encountered. - // Note that a BERT operation is considered completed if the device has a - // record/history of it. Also note that it is OK to receive a stop request for - // a port which has completed BERT, as long as the recorded BERT operation ID - // matches the one specified by the request. - StopBERT(ctx context.Context, in *StopBERTRequest, opts ...grpc.CallOption) (*StopBERTResponse, error) - // Gets BERT results during the BERT operation or after it completes. The - // caller uses the BERT operation ID it previously used when starting the - // operation to query it. The device is expected to keep the results for - // last N BERT operations for some amount of time, as specified by the - // product requirement. This RPC is expected to return error status in the - // following situations: - // - When no BERT operation, which matches the given BERT operation ID, is in - // progress or completed on any of the ports specified by the request. - // - When the BERT operation ID does not match the in progress or completed - // BERT operation on any of the ports specified by the request. - // The RPC returns an OK status of none of these situations is encountered. - // Note that a BERT operation is considered completed if device has a - // record of it. - GetBERTResult(ctx context.Context, in *GetBERTResultRequest, opts ...grpc.CallOption) (*GetBERTResultResponse, error) -} - -type diagClient struct { - cc *grpc.ClientConn -} - -func NewDiagClient(cc *grpc.ClientConn) DiagClient { - return &diagClient{cc} -} - -func (c *diagClient) StartBERT(ctx context.Context, in *StartBERTRequest, opts ...grpc.CallOption) (*StartBERTResponse, error) { - out := new(StartBERTResponse) - err := grpc.Invoke(ctx, "/gnoi.diag.Diag/StartBERT", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *diagClient) StopBERT(ctx context.Context, in *StopBERTRequest, opts ...grpc.CallOption) (*StopBERTResponse, error) { - out := new(StopBERTResponse) - err := grpc.Invoke(ctx, "/gnoi.diag.Diag/StopBERT", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *diagClient) GetBERTResult(ctx context.Context, in *GetBERTResultRequest, opts ...grpc.CallOption) (*GetBERTResultResponse, error) { - out := new(GetBERTResultResponse) - err := grpc.Invoke(ctx, "/gnoi.diag.Diag/GetBERTResult", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// Server API for Diag service - -type DiagServer interface { - // Starts BERT operation on a set of ports. Each BERT operation is uniquely - // identified by an ID, which is given by the caller. The caller can then - // use this ID (as well as the list of the ports) to stop the BERT operation - // and/or get the BERT results. This RPC is expected to return an error status - // in the following situations: - // - When BERT operation is supported on none of the ports specified by - // the request. - // - When BERT is already in progress on any port specified by the request. - // - In case of any low-level HW/SW internal errors. - // The RPC returns an OK status of none of these situations is encountered. - StartBERT(context.Context, *StartBERTRequest) (*StartBERTResponse, error) - // Stops an already in-progress BERT operation on a set of ports. The caller - // uses the BERT operation ID it previously used when starting the operation - // to stop it. The RPC is expected to return an error status in the following - // situations: - // - When there is at least one BERT operation in progress on a port which - // cannot be stopped in the middle of the operation (either due to lack of - // support or internal problems). - // - When no BERT operation, which matches the given BERT operation ID, is in - // progress or completed on any of the ports specified by the request. - // - When the BERT operation ID does not match the in progress or completed - // BERT operation on any of the ports specified by the request. - // The RPC returns an OK status of none of these situations is encountered. - // Note that a BERT operation is considered completed if the device has a - // record/history of it. Also note that it is OK to receive a stop request for - // a port which has completed BERT, as long as the recorded BERT operation ID - // matches the one specified by the request. - StopBERT(context.Context, *StopBERTRequest) (*StopBERTResponse, error) - // Gets BERT results during the BERT operation or after it completes. The - // caller uses the BERT operation ID it previously used when starting the - // operation to query it. The device is expected to keep the results for - // last N BERT operations for some amount of time, as specified by the - // product requirement. This RPC is expected to return error status in the - // following situations: - // - When no BERT operation, which matches the given BERT operation ID, is in - // progress or completed on any of the ports specified by the request. - // - When the BERT operation ID does not match the in progress or completed - // BERT operation on any of the ports specified by the request. - // The RPC returns an OK status of none of these situations is encountered. - // Note that a BERT operation is considered completed if device has a - // record of it. - GetBERTResult(context.Context, *GetBERTResultRequest) (*GetBERTResultResponse, error) -} - -func RegisterDiagServer(s *grpc.Server, srv DiagServer) { - s.RegisterService(&_Diag_serviceDesc, srv) -} - -func _Diag_StartBERT_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(StartBERTRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(DiagServer).StartBERT(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.diag.Diag/StartBERT", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(DiagServer).StartBERT(ctx, req.(*StartBERTRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Diag_StopBERT_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(StopBERTRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(DiagServer).StopBERT(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.diag.Diag/StopBERT", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(DiagServer).StopBERT(ctx, req.(*StopBERTRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Diag_GetBERTResult_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetBERTResultRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(DiagServer).GetBERTResult(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.diag.Diag/GetBERTResult", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(DiagServer).GetBERTResult(ctx, req.(*GetBERTResultRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _Diag_serviceDesc = grpc.ServiceDesc{ - ServiceName: "gnoi.diag.Diag", - HandlerType: (*DiagServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "StartBERT", - Handler: _Diag_StartBERT_Handler, - }, - { - MethodName: "StopBERT", - Handler: _Diag_StopBERT_Handler, - }, - { - MethodName: "GetBERTResult", - Handler: _Diag_GetBERTResult_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "diag/diag.proto", -} - -func init() { proto.RegisterFile("diag/diag.proto", fileDescriptor0) } - -var fileDescriptor0 = []byte{ - // 1028 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xcc, 0x56, 0xdd, 0x6e, 0x1b, 0x45, - 0x14, 0xce, 0xda, 0x4e, 0x1a, 0x9f, 0xfc, 0x78, 0x33, 0x21, 0xa9, 0xe3, 0x40, 0xeb, 0xb8, 0x85, - 0x9a, 0x14, 0xdc, 0xc4, 0x11, 0x42, 0xe5, 0x02, 0x69, 0x1d, 0x6f, 0x92, 0x55, 0xdc, 0xdd, 0xd5, - 0xec, 0x9a, 0x92, 0x5e, 0x30, 0xda, 0x38, 0xd3, 0xd4, 0x74, 0xed, 0x5d, 0x66, 0xc6, 0x17, 0x7d, - 0x00, 0xc4, 0x05, 0xe2, 0x61, 0x78, 0x0d, 0xae, 0x10, 0x3c, 0x07, 0xaf, 0x80, 0xd0, 0x8c, 0xed, - 0x78, 0x6d, 0xd9, 0x09, 0x09, 0x12, 0xea, 0xcd, 0x4a, 0x73, 0xbe, 0xef, 0xec, 0x39, 0xe7, 0x3b, - 0x67, 0x7e, 0x20, 0x77, 0xd1, 0x0e, 0x2e, 0x9f, 0xc9, 0x4f, 0x25, 0x66, 0x91, 0x88, 0x50, 0xf6, - 0xb2, 0x1b, 0xb5, 0x2b, 0xd2, 0x50, 0x58, 0x13, 0xef, 0x62, 0xca, 0x9f, 0xa9, 0x6f, 0x1f, 0x2d, - 0xfd, 0x96, 0x02, 0xdd, 0x13, 0x01, 0x13, 0x35, 0x13, 0xfb, 0x98, 0xfe, 0xd0, 0xa3, 0x5c, 0xa0, - 0x5d, 0x58, 0x3b, 0xa7, 0x4c, 0x90, 0x28, 0xa6, 0x2c, 0x10, 0xed, 0xa8, 0x4b, 0xda, 0x17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47, 0x4e, 0xd3, 0xae, 0xeb, 0x59, 0xf4, 0x08, 0x1e, 0xce, 0xe4, 0x59, - 0x36, 0x69, 0x7a, 0xa6, 0x0e, 0x93, 0x0a, 0xbb, 0xa6, 0x89, 0x49, 0xc3, 0x39, 0x3c, 0x25, 0x47, - 0x86, 0xd5, 0x68, 0x62, 0x53, 0x5f, 0x42, 0x0f, 0xa0, 0x30, 0x9d, 0xd2, 0x70, 0x3c, 0x5f, 0x5f, - 0x9e, 0xc4, 0x2d, 0xdb, 0x37, 0xb1, 0x6d, 0x34, 0x06, 0xd2, 0xaf, 0x54, 0xff, 0xd2, 0x20, 0x53, - 0x6f, 0x07, 0x97, 0xe8, 0x04, 0xb2, 0x57, 0xaf, 0x1e, 0xb4, 0x7d, 0xcd, 0xd3, 0xb2, 0xf0, 0xe1, - 0x75, 0x0f, 0xa5, 0xd2, 0x1c, 0x32, 0x61, 0x71, 0x78, 0xc7, 0xa2, 0xc2, 0xec, 0xd7, 0x44, 0x61, - 0xfb, 0x9a, 0x4b, 0xb9, 0x34, 0x87, 0x7c, 0x58, 0x19, 0x3b, 0xb9, 0xd1, 0xc3, 0x1b, 0x6e, 0xae, - 0x42, 0xf1, 0xa6, 0x43, 0xbf, 0x34, 0x57, 0x5b, 0xfc, 0xe3, 0xeb, 0xf9, 0xbd, 0xca, 0x7e, 0x65, - 0xef, 0x7c, 0x41, 0xbd, 0xd0, 0x0f, 0xfe, 0x09, 0x00, 0x00, 0xff, 0xff, 0xd7, 0x6b, 0x04, 0xbd, - 0xd2, 0x0b, 0x00, 0x00, -} diff --git a/diag/diag.proto b/diag/diag.proto index 2e93de2c..c70e9f53 100644 --- a/diag/diag.proto +++ b/diag/diag.proto @@ -20,9 +20,7 @@ syntax = "proto3"; package gnoi.diag; -import "types/types.proto"; - -option (gnoi.gnoi_version) = "0.1.0"; +import "github.com/openconfig/gnoi/types.proto"; // The Diag service exports to main set of RPCs: // 1- BERT related RPCs: Used to perform Bit Error Rate Test (BERT) diff --git a/docs/README.md b/docs/README.md deleted file mode 100644 index caae6bc7..00000000 --- a/docs/README.md +++ /dev/null @@ -1,6 +0,0 @@ -# Documentation Related to gNOI - -This directory contains a set of documents supplementing the gNOI specifications. - - * [simplified_security_model.md](simplified_security_model.md) -- A simple security - model that can be implemented using gNOI. diff --git a/file/file.pb.go b/file/file.pb.go index c9a4aa74..cd68430d 100644 --- a/file/file.pb.go +++ b/file/file.pb.go @@ -1,6 +1,5 @@ -// Code generated by protoc-gen-go. +// Code generated by protoc-gen-go. DO NOT EDIT. // source: file/file.proto -// DO NOT EDIT! /* Package gnoi_file is a generated protocol buffer package. @@ -13,8 +12,6 @@ It has these top-level messages: PutResponse GetRequest GetResponse - TransferToRemoteRequest - TransferToRemoteResponse StatRequest StatResponse StatInfo @@ -26,8 +23,7 @@ package gnoi_file import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" -import gnoi1 "common" -import gnoi "types" +import gnoi "github.com/openconfig/gnoi" import ( context "golang.org/x/net/context" @@ -220,6 +216,20 @@ func (m *PutRequest_Details) String() string { return proto.CompactTe func (*PutRequest_Details) ProtoMessage() {} func (*PutRequest_Details) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0, 0} } +func (m *PutRequest_Details) GetRemoteFile() string { + if m != nil { + return m.RemoteFile + } + return "" +} + +func (m *PutRequest_Details) GetPermissions() uint32 { + if m != nil { + return m.Permissions + } + return 0 +} + type PutResponse struct { } @@ -240,6 +250,13 @@ func (m *GetRequest) String() string { return proto.CompactTextString func (*GetRequest) ProtoMessage() {} func (*GetRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} } +func (m *GetRequest) GetRemoteFile() string { + if m != nil { + return m.RemoteFile + } + return "" +} + // A GetResponse either contains the next set of bytes read from the // file or, as the last message, the hash of the data. type GetResponse struct { @@ -359,44 +376,6 @@ func _GetResponse_OneofSizer(msg proto.Message) (n int) { return n } -// A TransferToRemoteRequest specifies the local path to transfer to and the -// details on where to transfer the data from. The local_path must be an -// absolute path to the file. -type TransferToRemoteRequest struct { - LocalPath string `protobuf:"bytes,1,opt,name=local_path,json=localPath" json:"local_path,omitempty"` - // Details to download the remote_file being requested to a remote location. - RemoteDownload *gnoi1.RemoteDownload `protobuf:"bytes,2,opt,name=remote_download,json=remoteDownload" json:"remote_download,omitempty"` -} - -func (m *TransferToRemoteRequest) Reset() { *m = TransferToRemoteRequest{} } -func (m *TransferToRemoteRequest) String() string { return proto.CompactTextString(m) } -func (*TransferToRemoteRequest) ProtoMessage() {} -func (*TransferToRemoteRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} } - -func (m *TransferToRemoteRequest) GetRemoteDownload() *gnoi1.RemoteDownload { - if m != nil { - return m.RemoteDownload - } - return nil -} - -// A TransferToRemoteResponse contains the hash of the data transferred. -type TransferToRemoteResponse struct { - Hash *gnoi.HashType `protobuf:"bytes,1,opt,name=hash" json:"hash,omitempty"` -} - -func (m *TransferToRemoteResponse) Reset() { *m = TransferToRemoteResponse{} } -func (m *TransferToRemoteResponse) String() string { return proto.CompactTextString(m) } -func (*TransferToRemoteResponse) ProtoMessage() {} -func (*TransferToRemoteResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} } - -func (m *TransferToRemoteResponse) GetHash() *gnoi.HashType { - if m != nil { - return m.Hash - } - return nil -} - // StatRequest will list files at the provided path. type StatRequest struct { Path string `protobuf:"bytes,1,opt,name=path" json:"path,omitempty"` @@ -405,7 +384,14 @@ type StatRequest struct { func (m *StatRequest) Reset() { *m = StatRequest{} } func (m *StatRequest) String() string { return proto.CompactTextString(m) } func (*StatRequest) ProtoMessage() {} -func (*StatRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} } +func (*StatRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} } + +func (m *StatRequest) GetPath() string { + if m != nil { + return m.Path + } + return "" +} // StatResponse contains list of stat info of the provided path. type StatResponse struct { @@ -415,7 +401,7 @@ type StatResponse struct { func (m *StatResponse) Reset() { *m = StatResponse{} } func (m *StatResponse) String() string { return proto.CompactTextString(m) } func (*StatResponse) ProtoMessage() {} -func (*StatResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} } +func (*StatResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} } func (m *StatResponse) GetStats() []*StatInfo { if m != nil { @@ -442,7 +428,42 @@ type StatInfo struct { func (m *StatInfo) Reset() { *m = StatInfo{} } func (m *StatInfo) String() string { return proto.CompactTextString(m) } func (*StatInfo) ProtoMessage() {} -func (*StatInfo) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} } +func (*StatInfo) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} } + +func (m *StatInfo) GetPath() string { + if m != nil { + return m.Path + } + return "" +} + +func (m *StatInfo) GetLastModified() uint64 { + if m != nil { + return m.LastModified + } + return 0 +} + +func (m *StatInfo) GetPermissions() uint32 { + if m != nil { + return m.Permissions + } + return 0 +} + +func (m *StatInfo) GetSize() uint64 { + if m != nil { + return m.Size + } + return 0 +} + +func (m *StatInfo) GetUmask() uint32 { + if m != nil { + return m.Umask + } + return 0 +} // A RemoveRequest specifies a file to be removed from the target. type RemoveRequest struct { @@ -452,7 +473,14 @@ type RemoveRequest struct { func (m *RemoveRequest) Reset() { *m = RemoveRequest{} } func (m *RemoveRequest) String() string { return proto.CompactTextString(m) } func (*RemoveRequest) ProtoMessage() {} -func (*RemoveRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{9} } +func (*RemoveRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} } + +func (m *RemoveRequest) GetRemoteFile() string { + if m != nil { + return m.RemoteFile + } + return "" +} type RemoveResponse struct { } @@ -460,7 +488,7 @@ type RemoveResponse struct { func (m *RemoveResponse) Reset() { *m = RemoveResponse{} } func (m *RemoveResponse) String() string { return proto.CompactTextString(m) } func (*RemoveResponse) ProtoMessage() {} -func (*RemoveResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{10} } +func (*RemoveResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} } func init() { proto.RegisterType((*PutRequest)(nil), "gnoi.file.PutRequest") @@ -468,8 +496,6 @@ func init() { proto.RegisterType((*PutResponse)(nil), "gnoi.file.PutResponse") proto.RegisterType((*GetRequest)(nil), "gnoi.file.GetRequest") proto.RegisterType((*GetResponse)(nil), "gnoi.file.GetResponse") - proto.RegisterType((*TransferToRemoteRequest)(nil), "gnoi.file.TransferToRemoteRequest") - proto.RegisterType((*TransferToRemoteResponse)(nil), "gnoi.file.TransferToRemoteResponse") proto.RegisterType((*StatRequest)(nil), "gnoi.file.StatRequest") proto.RegisterType((*StatResponse)(nil), "gnoi.file.StatResponse") proto.RegisterType((*StatInfo)(nil), "gnoi.file.StatInfo") @@ -488,18 +514,12 @@ const _ = grpc.SupportPackageIsVersion4 // Client API for File service type FileClient interface { - // Get reads and streams the contents of a file from the target. + // Get read and streams the contents of a file from the target. // The file is streamed by sequential messages, each containing up to // 64KB of data. A final message is sent prior to closing the stream // that contains the hash of the data sent. An error is returned // if the file does not exist or there was an error reading the file. Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (File_GetClient, error) - // TransferToRemote transfers the contents of a file from the target to a - // specified remote location. The response contains the hash of the data - // transferred. An error is returned if the file does not exist, the file - // transfer fails, or if there was an error reading the file. This is a - // blocking call until the file transfer is complete. - TransferToRemote(ctx context.Context, in *TransferToRemoteRequest, opts ...grpc.CallOption) (*TransferToRemoteResponse, error) // Put streams data into a file on the target. The file is sent in // sequential messages, each message containing up to 64KB of data. A final // message must be sent that includes the hash of the data sent. An @@ -558,15 +578,6 @@ func (x *fileGetClient) Recv() (*GetResponse, error) { return m, nil } -func (c *fileClient) TransferToRemote(ctx context.Context, in *TransferToRemoteRequest, opts ...grpc.CallOption) (*TransferToRemoteResponse, error) { - out := new(TransferToRemoteResponse) - err := grpc.Invoke(ctx, "/gnoi.file.File/TransferToRemote", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - func (c *fileClient) Put(ctx context.Context, opts ...grpc.CallOption) (File_PutClient, error) { stream, err := grpc.NewClientStream(ctx, &_File_serviceDesc.Streams[1], c.cc, "/gnoi.file.File/Put", opts...) if err != nil { @@ -622,18 +633,12 @@ func (c *fileClient) Remove(ctx context.Context, in *RemoveRequest, opts ...grpc // Server API for File service type FileServer interface { - // Get reads and streams the contents of a file from the target. + // Get read and streams the contents of a file from the target. // The file is streamed by sequential messages, each containing up to // 64KB of data. A final message is sent prior to closing the stream // that contains the hash of the data sent. An error is returned // if the file does not exist or there was an error reading the file. Get(*GetRequest, File_GetServer) error - // TransferToRemote transfers the contents of a file from the target to a - // specified remote location. The response contains the hash of the data - // transferred. An error is returned if the file does not exist, the file - // transfer fails, or if there was an error reading the file. This is a - // blocking call until the file transfer is complete. - TransferToRemote(context.Context, *TransferToRemoteRequest) (*TransferToRemoteResponse, error) // Put streams data into a file on the target. The file is sent in // sequential messages, each message containing up to 64KB of data. A final // message must be sent that includes the hash of the data sent. An @@ -677,24 +682,6 @@ func (x *fileGetServer) Send(m *GetResponse) error { return x.ServerStream.SendMsg(m) } -func _File_TransferToRemote_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TransferToRemoteRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(FileServer).TransferToRemote(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.file.File/TransferToRemote", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(FileServer).TransferToRemote(ctx, req.(*TransferToRemoteRequest)) - } - return interceptor(ctx, in, info, handler) -} - func _File_Put_Handler(srv interface{}, stream grpc.ServerStream) error { return srv.(FileServer).Put(&filePutServer{stream}) } @@ -761,10 +748,6 @@ var _File_serviceDesc = grpc.ServiceDesc{ ServiceName: "gnoi.file.File", HandlerType: (*FileServer)(nil), Methods: []grpc.MethodDesc{ - { - MethodName: "TransferToRemote", - Handler: _File_TransferToRemote_Handler, - }, { MethodName: "Stat", Handler: _File_Stat_Handler, @@ -792,41 +775,36 @@ var _File_serviceDesc = grpc.ServiceDesc{ func init() { proto.RegisterFile("file/file.proto", fileDescriptor0) } var fileDescriptor0 = []byte{ - // 575 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x8c, 0x54, 0x5d, 0x6f, 0xd3, 0x30, - 0x14, 0x6d, 0xda, 0x74, 0x6b, 0x6f, 0xda, 0x6e, 0x78, 0x63, 0x0b, 0x11, 0x13, 0xc5, 0xe3, 0xa1, - 0x3c, 0x90, 0x96, 0xee, 0x85, 0x3d, 0x30, 0xa4, 0x6a, 0x62, 0x45, 0x02, 0xa9, 0x0a, 0x7d, 0x9d, - 0x2a, 0xd3, 0xba, 0x34, 0x22, 0x89, 0x43, 0xec, 0x32, 0x8d, 0x3f, 0xc1, 0x7f, 0x43, 0xe2, 0x95, - 0xdf, 0x82, 0x6c, 0x27, 0x6d, 0xfa, 0xb1, 0xb1, 0x97, 0x34, 0x39, 0x3e, 0x3e, 0xf7, 0x9c, 0xeb, - 0xeb, 0xc2, 0xde, 0xd4, 0x0f, 0x68, 0x5b, 0x3e, 0xdc, 0x38, 0x61, 0x82, 0xa1, 0xea, 0xd7, 0x88, - 0xf9, 0xae, 0x04, 0x9c, 0x83, 0x31, 0x0b, 0x43, 0x16, 0xb5, 0xf5, 0x8f, 0x5e, 0x77, 0x1e, 0x89, - 0xdb, 0x98, 0xf2, 0xb6, 0x7a, 0x6a, 0x08, 0xff, 0x35, 0x00, 0x06, 0x73, 0xe1, 0xd1, 0xef, 0x73, - 0xca, 0x05, 0x3a, 0x03, 0x93, 0xc5, 0x34, 0xb2, 0x8d, 0xa6, 0xd1, 0xb2, 0xba, 0x27, 0xee, 0x42, - 0xd0, 0x5d, 0x92, 0xdc, 0x4b, 0x2a, 0x88, 0x1f, 0xf0, 0x7e, 0xc1, 0x53, 0x64, 0xf4, 0x14, 0x2a, - 0x63, 0x16, 0x09, 0x1a, 0x09, 0x6e, 0x17, 0x9b, 0x46, 0xab, 0xd6, 0x2f, 0x78, 0x0b, 0x04, 0xbd, - 0x00, 0x73, 0x46, 0xf8, 0xcc, 0x2e, 0x29, 0xc9, 0x86, 0x96, 0xec, 0x13, 0x3e, 0x1b, 0xde, 0xc6, - 0x54, 0x6a, 0xc8, 0x55, 0xe7, 0x23, 0xec, 0xa6, 0xb2, 0xe8, 0x19, 0x58, 0x09, 0x0d, 0x99, 0xa0, - 0x23, 0x59, 0x58, 0x59, 0xa9, 0x7a, 0xa0, 0xa1, 0xf7, 0x7e, 0x40, 0x51, 0x13, 0xac, 0x98, 0x26, - 0xa1, 0xcf, 0xb9, 0xcf, 0x22, 0x5d, 0xb2, 0xee, 0xe5, 0xa1, 0x5e, 0x15, 0x76, 0x13, 0x6d, 0x16, - 0xd7, 0xc1, 0x52, 0xd6, 0x79, 0xcc, 0x22, 0x4e, 0xf1, 0x2b, 0x80, 0x2b, 0xba, 0x88, 0xfb, 0xbf, - 0x52, 0xf8, 0x1a, 0x2c, 0x45, 0xd7, 0xbb, 0x57, 0x92, 0x1a, 0x77, 0x26, 0x2d, 0xde, 0x97, 0xb4, - 0x07, 0x50, 0x49, 0x32, 0x37, 0x37, 0x70, 0x3c, 0x4c, 0x48, 0xc4, 0xa7, 0x34, 0x19, 0x32, 0x4f, - 0x95, 0xcd, 0xac, 0x9d, 0x00, 0x04, 0x6c, 0x4c, 0x82, 0x51, 0x4c, 0xc4, 0x2c, 0x75, 0x56, 0x55, - 0xc8, 0x80, 0x88, 0x19, 0x7a, 0x0b, 0x7b, 0xa9, 0xf3, 0x09, 0xbb, 0x89, 0x02, 0x46, 0x26, 0x69, - 0xd9, 0x43, 0x5d, 0x56, 0x8b, 0x5d, 0xa6, 0x6b, 0x5e, 0x23, 0x59, 0xf9, 0xc6, 0x17, 0x60, 0x6f,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, 0x86, 0x8e, 0xd6, 0x4e, 0x35, 0xdb, 0x7b, 0xbc, 0x81, - 0x2f, 0x8a, 0xbe, 0x83, 0x1d, 0xdd, 0x28, 0x64, 0xe7, 0x48, 0x2b, 0xdd, 0x76, 0x9e, 0x6c, 0x59, - 0xc9, 0x04, 0x7a, 0x95, 0xdf, 0x17, 0xe5, 0x8e, 0xfb, 0xda, 0xed, 0x7c, 0xd9, 0x51, 0xff, 0x69, - 0x67, 0xff, 0x02, 0x00, 0x00, 0xff, 0xff, 0xfd, 0xd9, 0x93, 0x47, 0x19, 0x05, 0x00, 0x00, + // 481 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x53, 0x5d, 0x6f, 0xd3, 0x30, + 0x14, 0xad, 0xd7, 0x74, 0x6b, 0x6f, 0xda, 0x81, 0x0c, 0x8c, 0x50, 0x81, 0x28, 0x01, 0xa1, 0xf2, + 0x40, 0x3a, 0x75, 0x2f, 0xec, 0x09, 0x69, 0x42, 0xac, 0x48, 0x20, 0x4d, 0x81, 0x57, 0x34, 0x79, + 0xdd, 0x6d, 0x63, 0xd1, 0xd8, 0x21, 0x76, 0x90, 0xc6, 0x9f, 0xe0, 0x1f, 0xf2, 0x33, 0x78, 0x46, + 0xb6, 0x93, 0x36, 0xe9, 0xc6, 0xc7, 0x4b, 0x95, 0x9e, 0x9c, 0x73, 0xee, 0xb9, 0xc7, 0x0e, 0xdc, + 0x5a, 0xf0, 0x15, 0x4e, 0xcc, 0x4f, 0x94, 0xe5, 0x52, 0x4b, 0xda, 0x5b, 0x0a, 0xc9, 0x23, 0x03, + 0x0c, 0x9f, 0x2f, 0xb9, 0x4e, 0x8a, 0x8b, 0x68, 0x2e, 0xd3, 0x89, 0xcc, 0x50, 0xcc, 0xa5, 0x58, + 0xf0, 0xe5, 0xc4, 0x10, 0x26, 0xfa, 0x2a, 0x43, 0xe5, 0x24, 0xe1, 0x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0xf6, 0xd8, 0x9f, 0xde, 0xa9, 0x1d, 0x91, 0xe1, 0xbd, 0x13, 0x0b, 0x19, 0x3b, 0x46, + 0xf8, 0x83, 0x40, 0xb7, 0xc2, 0x6e, 0xf2, 0xa6, 0x4f, 0x61, 0xb0, 0x62, 0x4a, 0x9f, 0xa7, 0xf2, + 0x92, 0x2f, 0x38, 0x5e, 0xda, 0xe4, 0x5e, 0xdc, 0x37, 0xe0, 0x87, 0x12, 0xdb, 0x6e, 0xbb, 0x7d, + 0xad, 0x6d, 0x63, 0xad, 0xf8, 0x77, 0x0c, 0x3c, 0xab, 0xb6, 0xcf, 0xf4, 0x2e, 0x74, 0x8a, 0x94, + 0xa9, 0x2f, 0x41, 0xc7, 0xf2, 0xdd, 0x9f, 0xf0, 0x10, 0x06, 0x31, 0xa6, 0xf2, 0x1b, 0xfe, 0xf7, + 0x01, 0xdc, 0x86, 0xfd, 0x4a, 0xe1, 0x0a, 0x98, 0xfe, 0x22, 0xe0, 0xd9, 0x6b, 0xf0, 0x0a, 0xda, + 0xa7, 0xa8, 0xe9, 0xbd, 0x5a, 0x03, 0x9b, 0xa3, 0x1d, 0x1e, 0x6c, 0xc3, 0x65, 0xe5, 0xad, 0x43, + 0x62, 0x94, 0x67, 0x45, 0x53, 0xb9, 0xb9, 0xde, 0x0d, 0x65, 0xfd, 0xea, 0xb4, 0xc6, 0x84, 0x1e, + 0x83, 0x67, 0x1a, 0xa5, 0x07, 0x5b, 0xb5, 0x57, 0xda, 0xfb, 0xd7, 0xf0, 0x4a, 0x4c, 0x5f, 0xc3, + 0xae, 0xdb, 0x84, 0x06, 0x35, 0x52, 0xa3, 0x8e, 0xe1, 0x83, 0x1b, 0xde, 0x54, 0x06, 0x17, 0xbb, + 0xf6, 0x8b, 0x3d, 0xfa, 0x1d, 0x00, 0x00, 0xff, 0xff, 0x9a, 0xb5, 0xd9, 0xe5, 0xf7, 0x03, 0x00, + 0x00, } diff --git a/file/file.proto b/file/file.proto index 70aef125..853e3af5 100644 --- a/file/file.proto +++ b/file/file.proto @@ -18,10 +18,8 @@ syntax = "proto3"; package gnoi.file; -import "common/common.proto"; -import "types/types.proto"; - -option (gnoi.gnoi_version) = "0.1.0"; +import "github.com/openconfig/gnoi/common.proto"; +import "github.com/openconfig/gnoi/types.proto"; service File { // Get reads and streams the contents of a file from the target. diff --git a/interface/interface.pb.go b/interface/interface.pb.go index a8e99d87..a1f3f84b 100644 --- a/interface/interface.pb.go +++ b/interface/interface.pb.go @@ -1,6 +1,5 @@ -// Code generated by protoc-gen-go. +// Code generated by protoc-gen-go. DO NOT EDIT. // source: interface/interface.proto -// DO NOT EDIT! /* Package gnoi_interface is a generated protocol buffer package. @@ -21,7 +20,7 @@ package gnoi_interface import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" -import gnoi "types" +import gnoi "github.com/openconfig/gnoi" import ( context "golang.org/x/net/context" @@ -60,6 +59,13 @@ func (m *SetLoopbackModeRequest) GetInterface() *gnoi.Path { return nil } +func (m *SetLoopbackModeRequest) GetMode() string { + if m != nil { + return m.Mode + } + return "" +} + type SetLoopbackModeResponse struct { } @@ -93,6 +99,13 @@ func (m *GetLoopbackModeResponse) String() string { return proto.Comp func (*GetLoopbackModeResponse) ProtoMessage() {} func (*GetLoopbackModeResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} } +func (m *GetLoopbackModeResponse) GetMode() string { + if m != nil { + return m.Mode + } + return "" +} + type ClearInterfaceCountersRequest struct { Interface []*gnoi.Path `protobuf:"bytes,1,rep,name=interface" json:"interface,omitempty"` } @@ -273,22 +286,23 @@ var _Interface_serviceDesc = grpc.ServiceDesc{ func init() { proto.RegisterFile("interface/interface.proto", fileDescriptor0) } var fileDescriptor0 = []byte{ - // 271 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xe2, 0x92, 0xcc, 0xcc, 0x2b, 0x49, + // 284 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xcc, 0xcc, 0x2b, 0x49, 0x2d, 0x4a, 0x4b, 0x4c, 0x4e, 0xd5, 0x87, 0xb3, 0xf4, 0x0a, 0x8a, 0xf2, 0x4b, 0xf2, 0x85, 0xf8, - 0xd2, 0xf3, 0xf2, 0x33, 0xf5, 0xe0, 0xa2, 0x52, 0x82, 0x25, 0x95, 0x05, 0xa9, 0xc5, 0xfa, 0x60, - 0x12, 0xa2, 0x44, 0x29, 0x8c, 0x4b, 0x2c, 0x38, 0xb5, 0xc4, 0x27, 0x3f, 0xbf, 0x20, 0x29, 0x31, - 0x39, 0xdb, 0x37, 0x3f, 0x25, 0x35, 0x28, 0xb5, 0xb0, 0x34, 0xb5, 0xb8, 0x44, 0x48, 0x83, 0x8b, - 0x13, 0xae, 0x53, 0x82, 0x51, 0x81, 0x51, 0x83, 0xdb, 0x88, 0x4b, 0x0f, 0x6c, 0x60, 0x40, 0x62, - 0x49, 0x46, 0x10, 0x42, 0x52, 0x48, 0x88, 0x8b, 0x25, 0x37, 0x3f, 0x25, 0x55, 0x82, 0x49, 0x81, - 0x51, 0x83, 0x33, 0x08, 0xcc, 0x56, 0x92, 0xe4, 0x12, 0xc7, 0x30, 0xb7, 0xb8, 0x20, 0x3f, 0xaf, - 0x38, 0x55, 0xc9, 0x89, 0x4b, 0xcc, 0x9d, 0x42, 0x2b, 0x95, 0x74, 0xb9, 0xc4, 0xdd, 0xb1, 0x1b, - 0x0f, 0x77, 0x0d, 0x23, 0x92, 0x6b, 0x3c, 0xb9, 0x64, 0x9d, 0x73, 0x52, 0x13, 0x8b, 0x3c, 0x61, - 0x06, 0x38, 0xe7, 0x97, 0x82, 0x98, 0xc5, 0x38, 0x6c, 0x66, 0xc6, 0x6d, 0xb3, 0x02, 0x97, 0x1c, - 0x2e, 0xa3, 0x20, 0x0e, 0x30, 0xba, 0xc4, 0xc4, 0xc5, 0x09, 0x97, 0x15, 0x4a, 0xe1, 0xe2, 0x47, - 0x0b, 0x08, 0x21, 0x35, 0x3d, 0xd4, 0x78, 0xd1, 0xc3, 0x1e, 0x03, 0x52, 0xea, 0x04, 0xd5, 0x41, - 0x43, 0x94, 0x01, 0x64, 0x8b, 0x3b, 0x21, 0x5b, 0xdc, 0x89, 0xb4, 0xc5, 0x1d, 0xa7, 0x2d, 0x95, - 0x5c, 0x62, 0xd8, 0xfd, 0x2e, 0xa4, 0x8b, 0x6e, 0x08, 0xde, 0xe0, 0x96, 0xd2, 0x23, 0x56, 0x39, - 0xcc, 0x6a, 0x27, 0x8e, 0x4b, 0x76, 0xac, 0x06, 0x7a, 0x86, 0x7a, 0x06, 0x49, 0x6c, 0xe0, 0x84, - 0x6b, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0x30, 0x48, 0x72, 0xef, 0xf8, 0x02, 0x00, 0x00, + 0xd2, 0xf3, 0xf2, 0x33, 0xf5, 0xe0, 0xa2, 0x52, 0x6a, 0xe9, 0x99, 0x25, 0x19, 0xa5, 0x49, 0x7a, + 0xc9, 0xf9, 0xb9, 0xfa, 0xf9, 0x05, 0xa9, 0x79, 0xc9, 0xf9, 0x79, 0x69, 0x99, 0xe9, 0xfa, 0x20, + 0x55, 0xfa, 0x25, 0x95, 0x05, 0xa9, 0xc5, 0x10, 0x7d, 0x4a, 0x61, 0x5c, 0x62, 0xc1, 0xa9, 0x25, + 0x3e, 0xf9, 0xf9, 0x05, 0x49, 0x89, 0xc9, 0xd9, 0xbe, 0xf9, 0x29, 0xa9, 0x41, 0xa9, 0x85, 0xa5, + 0xa9, 0xc5, 0x25, 0x42, 0x1a, 0x5c, 0x9c, 0x70, 0xe3, 0x24, 0x18, 0x15, 0x18, 0x35, 0xb8, 0x8d, + 0xb8, 0xf4, 0xc0, 0xb6, 0x04, 0x24, 0x96, 0x64, 0x04, 0x21, 0x24, 0x85, 0x84, 0xb8, 0x58, 0x72, + 0xf3, 0x53, 0x52, 0x25, 0x98, 0x14, 0x18, 0x35, 0x38, 0x83, 0xc0, 0x6c, 0x25, 0x49, 0x2e, 0x71, + 0x0c, 0x73, 0x8b, 0x0b, 0xf2, 0xf3, 0x8a, 0x53, 0x95, 0x9c, 0xb8, 0xc4, 0xdc, 0x29, 0xb4, 0x52, + 0x49, 0x97, 0x4b, 0xdc, 0x1d, 0xbb, 0xf1, 0x70, 0xd7, 0x30, 0x22, 0xb9, 0xc6, 0x93, 0x4b, 0xd6, + 0x39, 0x27, 0x35, 0xb1, 0xc8, 0x13, 0x66, 0x80, 0x73, 0x7e, 0x29, 0x88, 0x59, 0x8c, 0xc3, 0x66, + 0x66, 0xdc, 0x36, 0x2b, 0x70, 0xc9, 0xe1, 0x32, 0x0a, 0xe2, 0x00, 0xa3, 0x4b, 0x4c, 0x5c, 0x9c, + 0x70, 0x59, 0xa1, 0x14, 0x2e, 0x7e, 0xb4, 0x80, 0x10, 0x52, 0xd3, 0x43, 0x8d, 0x2c, 0x3d, 0xec, + 0x31, 0x20, 0xa5, 0x4e, 0x50, 0x1d, 0x34, 0x44, 0x19, 0x40, 0xb6, 0xb8, 0x13, 0xb2, 0xc5, 0x9d, + 0x48, 0x5b, 0xdc, 0x71, 0xda, 0x52, 0xc9, 0x25, 0x86, 0xdd, 0xef, 0x42, 0xba, 0xe8, 0x86, 0xe0, + 0x0d, 0x6e, 0x29, 0x3d, 0x62, 0x95, 0xc3, 0xac, 0x4e, 0x62, 0x03, 0x27, 0x57, 0x63, 0x40, 0x00, + 0x00, 0x00, 0xff, 0xff, 0xfa, 0x35, 0x00, 0x60, 0x03, 0x03, 0x00, 0x00, } diff --git a/interface/interface.proto b/interface/interface.proto index 4cff3200..01ed7ccc 100644 --- a/interface/interface.proto +++ b/interface/interface.proto @@ -18,9 +18,7 @@ syntax = "proto3"; package gnoi.interface; -import "types/types.proto"; - -option (gnoi.gnoi_version) = "0.1.0"; +import "github.com/openconfig/gnoi/types.proto"; service Interface { // SetLoopbackMode is used to set the mode of loopback on a interface. diff --git a/layer2/layer2.pb.go b/layer2/layer2.pb.go index 610ac40c..00f5f7f8 100644 --- a/layer2/layer2.pb.go +++ b/layer2/layer2.pb.go @@ -1,6 +1,5 @@ -// Code generated by protoc-gen-go. +// Code generated by protoc-gen-go. DO NOT EDIT. // source: layer2/layer2.proto -// DO NOT EDIT! /* Package gnoi_layer2 is a generated protocol buffer package. @@ -25,7 +24,7 @@ package gnoi_layer2 import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" -import gnoi "types" +import gnoi "github.com/openconfig/gnoi" import ( context "golang.org/x/net/context" @@ -85,6 +84,20 @@ func (m *ClearNeighborDiscoveryRequest) String() string { return prot func (*ClearNeighborDiscoveryRequest) ProtoMessage() {} func (*ClearNeighborDiscoveryRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } +func (m *ClearNeighborDiscoveryRequest) GetProtocol() gnoi.L3Protocol { + if m != nil { + return m.Protocol + } + return gnoi.L3Protocol_UNSPECIFIED +} + +func (m *ClearNeighborDiscoveryRequest) GetAddress() string { + if m != nil { + return m.Address + } + return "" +} + type ClearNeighborDiscoveryResponse struct { } @@ -128,6 +141,13 @@ func (m *PerformBERTRequest) String() string { return proto.CompactTe func (*PerformBERTRequest) ProtoMessage() {} func (*PerformBERTRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} } +func (m *PerformBERTRequest) GetId() string { + if m != nil { + return m.Id + } + return "" +} + func (m *PerformBERTRequest) GetInterface() *gnoi.Path { if m != nil { return m.Interface @@ -149,6 +169,48 @@ func (m *PerformBERTResponse) String() string { return proto.CompactT func (*PerformBERTResponse) ProtoMessage() {} func (*PerformBERTResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} } +func (m *PerformBERTResponse) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func (m *PerformBERTResponse) GetState() PerformBERTResponse_BERTState { + if m != nil { + return m.State + } + return PerformBERTResponse_UNKNOWN +} + +func (m *PerformBERTResponse) GetElapsedPeriod() int64 { + if m != nil { + return m.ElapsedPeriod + } + return 0 +} + +func (m *PerformBERTResponse) GetPattern() []byte { + if m != nil { + return m.Pattern + } + return nil +} + +func (m *PerformBERTResponse) GetErrors() int64 { + if m != nil { + return m.Errors + } + return 0 +} + +func (m *PerformBERTResponse) GetReceivedBits() int64 { + if m != nil { + return m.ReceivedBits + } + return 0 +} + type ClearLLDPInterfaceRequest struct { Interface *gnoi.Path `protobuf:"bytes,1,opt,name=interface" json:"interface,omitempty"` } @@ -191,6 +253,20 @@ func (m *SendWakeOnLANRequest) GetInterface() *gnoi.Path { return nil } +func (m *SendWakeOnLANRequest) GetAddress() string { + if m != nil { + return m.Address + } + return "" +} + +func (m *SendWakeOnLANRequest) GetMacAddress() []byte { + if m != nil { + return m.MacAddress + } + return nil +} + type SendWakeOnLANResponse struct { } @@ -474,43 +550,43 @@ var _Layer2_serviceDesc = grpc.ServiceDesc{ func init() { proto.RegisterFile("layer2/layer2.proto", fileDescriptor0) } var fileDescriptor0 = []byte{ - // 593 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x94, 0x54, 0x6f, 0x4f, 0xd3, 0x5e, - 0x14, 0xa6, 0x1b, 0x1b, 0xec, 0x0c, 0x96, 0x72, 0xf9, 0xfd, 0xb0, 0xd6, 0x3f, 0xd4, 0x1a, 0x74, - 0x51, 0x53, 0x70, 0xbc, 0x37, 0x32, 0xd6, 0x18, 0x62, 0xed, 0x9a, 0xbb, 0x11, 0x7c, 0x47, 0x2e, - 0xed, 0x61, 0x34, 0x8e, 0xb6, 0xde, 0x5b, 0x49, 0x88, 0x1f, 0xcb, 0x6f, 0xe2, 0xe7, 0xf1, 0x85, - 0xd9, 0x6d, 0x3b, 0x99, 0x2b, 0x4c, 0xde, 0x6c, 0xb9, 0xe7, 0xcf, 0x73, 0x9e, 0x9c, 0xe7, 0x39, - 0x85, 0xc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x6c, - 0x43, 0xf3, 0x92, 0xf9, 0xa7, 0x45, 0xb6, 0x2a, 0x37, 0x0d, 0x97, 0xcc, 0x3f, 0xc8, 0xcd, 0xfe, - 0x00, 0xfe, 0xff, 0x6b, 0x78, 0xc6, 0xaa, 0xf3, 0xab, 0x0a, 0x75, 0x47, 0xca, 0x4e, 0x04, 0x6c, - 0x95, 0x1f, 0x04, 0x99, 0xb5, 0xc7, 0x9d, 0xe7, 0xa9, 0xbf, 0xfe, 0xa7, 0xda, 0x7c, 0x27, 0x4b, - 0x24, 0x80, 0x8d, 0xb9, 0xeb, 0x20, 0x3b, 0xf3, 0x18, 0x25, 0x37, 0xa8, 0xbf, 0x58, 0x54, 0x36, - 0x9d, 0x32, 0x84, 0xe6, 0x0d, 0x53, 0x93, 0xed, 0xdb, 0xed, 0x9e, 0x21, 0x1b, 0x8b, 0xee, 0xc1, - 0x5c, 0xda, 0x53, 0xc8, 0x08, 0xc8, 0xbc, 0xde, 0xa4, 0x84, 0x55, 0x99, 0xaf, 0xf4, 0x97, 0x0b, - 0xeb, 0xa6, 0xf4, 0x3f, 0xc3, 0xfa, 0x8c, 0x7a, 0xe4, 0xd9, 0x4c, 0x6f, 0x99, 0xad, 0x74, 0xf3, - 0xae, 0x92, 0x02, 0xb9, 0xbb, 0xfa, 0xf3, 0x5d, 0x6d, 0xcf, 0x7a, 0x6b, 0xed, 0x9d, 0xd5, 0xe5, - 0x27, 0x73, 0xff, 0x77, 0x00, 0x00, 0x00, 0xff, 0xff, 0x4d, 0x41, 0x21, 0x76, 0xb5, 0x05, 0x00, - 0x00, + // 597 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0x6d, 0x4f, 0x13, 0x41, + 0x10, 0xe6, 0x5a, 0x28, 0x74, 0x0a, 0x4d, 0x5d, 0x14, 0xcf, 0xfa, 0x42, 0x3d, 0x03, 0x36, 0x6a, + 0xae, 0xa6, 0xfc, 0x01, 0x81, 0x36, 0x86, 0x78, 0x5e, 0x9b, 0x6d, 0x09, 0x7e, 0x23, 0xdb, 0xbb, + 0xe1, 0xd8, 0xd8, 0xde, 0x9e, 0xbb, 0x0b, 0x09, 0xf1, 0x67, 0xf9, 0xf7, 0xfc, 0x60, 0x7a, 0x2f, + 0x95, 0xda, 0x83, 0xca, 0xa7, 0xcb, 0xce, 0x3c, 0xf3, 0x3c, 0x93, 0x99, 0x67, 0x0e, 0xb6, 0xc7, + 0xec, 0x06, 0x65, 0xbb, 0x95, 0x7c, 0xec, 0x48, 0x0a, 0x2d, 0x48, 0x25, 0x08, 0x05, 0xb7, 0x93, + 0x50, 0x7d, 0x3f, 0xe0, 0xfa, 0xf2, 0x6a, 0x64, 0x7b, 0x62, 0xd2, 0x12, 0x11, 0x86, 0x9e, 0x08, + 0x2f, 0x78, 0xd0, 0x9a, 0x42, 0x5a, 0xfa, 0x26, 0x42, 0x95, 0x14, 0x59, 0x01, 0xbc, 0x3c, 0x1e, + 0x23, 0x93, 0x2e, 0xf2, 0xe0, 0x72, 0x24, 0x64, 0x87, 0x2b, 0x4f, 0x5c, 0xa3, 0xbc, 0xa1, 0xf8, + 0xe3, 0x0a, 0x95, 0x26, 0x1f, 0x60, 0x23, 0x46, 0x7a, 0x62, 0x6c, 0x1a, 0x0d, 0xa3, 0x59, 0x6d, + 0xd7, 0xec, 0x58, 0xc8, 0x39, 0xe8, 0xa7, 0x71, 0x3a, 0x43, 0x10, 0x13, 0xd6, 0x99, 0xef, 0x4b, + 0x54, 0xca, 0x2c, 0x34, 0x8c, 0x66, 0x99, 0x66, 0x4f, 0xab, 0x01, 0xaf, 0xee, 0x12, 0x52, 0x91, + 0x08, 0x15, 0x5a, 0x1d, 0x30, 0x63, 0xc4, 0x20, 0x62, 0x61, 0xc8, 0xc3, 0x60, 0x28, 0x11, 0xb3, + 0x2e, 0x9a, 0x50, 0xe6, 0xa1, 0x46, 0x79, 0xc1, 0x3c, 0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0xff, 0x28, 0x0f, 0xfe, 0x04, 0x00, 0x00, 0xff, 0xff, 0xd8, 0x91, 0x68, + 0xe4, 0xc0, 0x05, 0x00, 0x00, } diff --git a/layer2/layer2.proto b/layer2/layer2.proto index 22407edf..9d6897ff 100644 --- a/layer2/layer2.proto +++ b/layer2/layer2.proto @@ -18,9 +18,8 @@ syntax = "proto3"; package gnoi.layer2; -import "types/types.proto"; +import "github.com/openconfig/gnoi/types.proto"; -option (gnoi.gnoi_version) = "0.1.0"; service Layer2 { // ClearNeighborDiscovery will clear either a specific neighbor entry or diff --git a/mpls/mpls.pb.go b/mpls/mpls.pb.go index aa12e11b..7faabf30 100644 --- a/mpls/mpls.pb.go +++ b/mpls/mpls.pb.go @@ -1,6 +1,5 @@ -// Code generated by protoc-gen-go. +// Code generated by protoc-gen-go. DO NOT EDIT. // source: mpls/mpls.proto -// DO NOT EDIT! /* Package gnoi_mpls is a generated protocol buffer package. @@ -23,7 +22,6 @@ package gnoi_mpls import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" -import _ "types" import ( context "golang.org/x/net/context" @@ -144,6 +142,20 @@ func (m *ClearLSPRequest) String() string { return proto.CompactTextS func (*ClearLSPRequest) ProtoMessage() {} func (*ClearLSPRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } +func (m *ClearLSPRequest) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *ClearLSPRequest) GetMode() ClearLSPRequest_Mode { + if m != nil { + return m.Mode + } + return ClearLSPRequest_DEFAULT +} + type ClearLSPResponse struct { } @@ -162,6 +174,13 @@ func (m *ClearLSPCountersRequest) String() string { return proto.Comp func (*ClearLSPCountersRequest) ProtoMessage() {} func (*ClearLSPCountersRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} } +func (m *ClearLSPCountersRequest) GetName() string { + if m != nil { + return m.Name + } + return "" +} + type ClearLSPCountersResponse struct { } @@ -183,6 +202,20 @@ func (m *MPLSPingPWEDestination) String() string { return proto.Compa func (*MPLSPingPWEDestination) ProtoMessage() {} func (*MPLSPingPWEDestination) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} } +func (m *MPLSPingPWEDestination) GetEler() string { + if m != nil { + return m.Eler + } + return "" +} + +func (m *MPLSPingPWEDestination) GetVcid() uint32 { + if m != nil { + return m.Vcid + } + return 0 +} + // MPLSPingRSVPTEDestination specifies the destination for an MPLS Ping in // terms of an absolute specification of an RSVP-TE LSP. It can be used to // identify an individual RSVP-TE session via which a ping should be sent. @@ -203,6 +236,27 @@ func (m *MPLSPingRSVPTEDestination) String() string { return proto.Co func (*MPLSPingRSVPTEDestination) ProtoMessage() {} func (*MPLSPingRSVPTEDestination) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} } +func (m *MPLSPingRSVPTEDestination) GetSrc() string { + if m != nil { + return m.Src + } + return "" +} + +func (m *MPLSPingRSVPTEDestination) GetDst() string { + if m != nil { + return m.Dst + } + return "" +} + +func (m *MPLSPingRSVPTEDestination) GetExtendedTunnelId() uint32 { + if m != nil { + return m.ExtendedTunnelId + } + return 0 +} + // MPLSPingRequest specifies the parameters that should be used as input from // the client, to a system that is initiating an RFC4379 MPLS ping request. type MPLSPingRequest struct { @@ -291,6 +345,48 @@ func (m *MPLSPingRequest) GetRsvpteLsp() *MPLSPingRSVPTEDestination { return nil } +func (m *MPLSPingRequest) GetReplyMode() MPLSPingRequest_ReplyMode { + if m != nil { + return m.ReplyMode + } + return MPLSPingRequest_IPV4 +} + +func (m *MPLSPingRequest) GetCount() uint32 { + if m != nil { + return m.Count + } + return 0 +} + +func (m *MPLSPingRequest) GetSize() uint32 { + if m != nil { + return m.Size + } + return 0 +} + +func (m *MPLSPingRequest) GetSourceAddress() string { + if m != nil { + return m.SourceAddress + } + return "" +} + +func (m *MPLSPingRequest) GetMplsTtl() uint32 { + if m != nil { + return m.MplsTtl + } + return 0 +} + +func (m *MPLSPingRequest) GetTrafficClass() uint32 { + if m != nil { + return m.TrafficClass + } + return 0 +} + // XXX_OneofFuncs is for the internal use of the proto package. func (*MPLSPingRequest) 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 _MPLSPingRequest_OneofMarshaler, _MPLSPingRequest_OneofUnmarshaler, _MPLSPingRequest_OneofSizer, []interface{}{ @@ -412,6 +508,27 @@ func (m *MPLSPingResponse) String() string { return proto.CompactText func (*MPLSPingResponse) ProtoMessage() {} func (*MPLSPingResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} } +func (m *MPLSPingResponse) GetSeq() uint32 { + if m != nil { + return m.Seq + } + return 0 +} + +func (m *MPLSPingResponse) GetResponse() MPLSPingResponse_EchoResponseCode { + if m != nil { + return m.Response + } + return MPLSPingResponse_SUCCESS +} + +func (m *MPLSPingResponse) GetResponseTime() uint64 { + if m != nil { + return m.ResponseTime + } + return 0 +} + func init() { proto.RegisterType((*ClearLSPRequest)(nil), "gnoi.mpls.ClearLSPRequest") proto.RegisterType((*ClearLSPResponse)(nil), "gnoi.mpls.ClearLSPResponse") @@ -603,53 +720,51 @@ var _MPLS_serviceDesc = grpc.ServiceDesc{ func init() { proto.RegisterFile("mpls/mpls.proto", fileDescriptor0) } var fileDescriptor0 = []byte{ - // 756 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x7c, 0x54, 0x4d, 0x6f, 0xf2, 0x46, - 0x10, 0xb6, 0xc1, 0x04, 0x33, 0x60, 0x70, 0x56, 0x6f, 0x5b, 0x87, 0x1e, 0x9a, 0x3a, 0xad, 0x9a, - 0x43, 0xea, 0x24, 0xa4, 0x97, 0xf6, 0x50, 0x15, 0x88, 0x93, 0x20, 0x11, 0x40, 0x6b, 0x93, 0x9c, - 0x2a, 0x8b, 0xda, 0x4b, 0x6a, 0xc9, 0xd8, 0x8e, 0xd7, 0x24, 0x4d, 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33, 0x31, - 0x4c, 0xf7, 0xcf, 0xa8, 0x78, 0xf4, 0x59, 0xeb, 0x56, 0xde, 0xac, 0x9a, 0x42, 0x76, 0x52, 0x7f, - 0x91, 0x1d, 0x0a, 0x09, 0x37, 0x0a, 0xd0, 0xf6, 0x17, 0x44, 0xff, 0x05, 0xd4, 0x6d, 0x0a, 0x76, - 0x1b, 0xac, 0x69, 0xbf, 0x6f, 0x5a, 0x96, 0x2a, 0xa0, 0x06, 0xc8, 0xa3, 0xb1, 0xed, 0x58, 0xe6, - 0xc8, 0x56, 0x45, 0xa6, 0xb2, 0x07, 0xb7, 0xe6, 0x78, 0x6a, 0xab, 0xa5, 0xce, 0x7f, 0x22, 0x48, - 0x2c, 0x21, 0x64, 0x82, 0x5c, 0xfc, 0x99, 0xa8, 0xfd, 0xf9, 0x3b, 0xd4, 0xfe, 0x7a, 0xa7, 0x2e, - 0xff, 0x85, 0x05, 0xf4, 0xfb, 0xfa, 0x46, 0x14, 0x3f, 0x38, 0xd2, 0x77, 0xb8, 0x6c, 0x1d, 0x8b, - 0xf6, 0xd1, 0x87, 0x36, 0x2b, 0xfa, 0x6b, 0x90, 0x8b, 0xf6, 0x6d, 0x64, 0xb9, 0xb5, 0x86, 0x1b, - 0x59, 0x6e, 0xf7, 0x5b, 0x17, 0xce, 0xc4, 0x9e, 0xfc, 0xfa, 0x6b, 0xe5, 0xcc, 0x38, 0x37, 0xce, - 0xfe, 0xd8, 0xe3, 0x17, 0xfb, 0xe2, 0xff, 0x00, 0x00, 0x00, 0xff, 0xff, 0x57, 0xb4, 0xb0, 0x62, - 0xe2, 0x05, 0x00, 0x00, + // 736 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x54, 0x4f, 0x6f, 0xda, 0x4a, + 0x10, 0xb7, 0xc1, 0x09, 0x30, 0x60, 0xd8, 0xac, 0xf2, 0xde, 0x73, 0x78, 0x87, 0x97, 0xe7, 0xb4, + 0x6a, 0x0e, 0x29, 0x6d, 0x49, 0x2f, 0xed, 0xa9, 0x84, 0x38, 0x09, 0x12, 0x01, 0xb4, 0x36, 0xc9, + 0xa9, 0xb2, 0xa8, 0xbd, 0xa4, 0x96, 0x8c, 0xed, 0x78, 0x4d, 0xd2, 0xf6, 0x4b, 0x56, 0xea, 0x17, + 0xe9, 0xa9, 0xf7, 0x6a, 0xd7, 0x36, 0x04, 0x42, 0x73, 0xb1, 0x66, 0x7f, 0x33, 0xf3, 0x9b, 0xbf, + 0x1e, 0x68, 0xcc, 0x22, 0x9f, 0xbd, 0xe2, 0x9f, 0x56, 0x14, 0x87, 0x49, 0x88, 0x2b, 0x37, 0x41, + 0xe8, 0xb5, 0x38, 0xa0, 0xff, 0x90, 0xa1, 0xd1, 0xf5, 0xe9, 0x24, 0xee, 0x9b, 0x23, 0x42, 0x6f, + 0xe7, 0x94, 0x25, 0x18, 0x83, 0x12, 0x4c, 0x66, 0x54, 0x2b, 0xec, 0xcb, 0x87, 0x15, 0x22, 0x64, + 0x7c, 0x0c, 0xca, 0x2c, 0x74, 0xa9, 0x56, 0xdc, 0x97, 0x0f, 0xeb, 0xed, 0xff, 0x5a, 0x0b, 0x86, + 0xd6, 0x9a, 0x77, 0xeb, 0x32, 0x74, 0x29, 0x11, 0xc6, 0xfa, 0x1d, 0x28, 0xfc, 0x85, 0xab, 0x50, + 0x3a, 0x35, 0xce, 0x3a, 0xe3, 0xbe, 0x85, 0x24, 0xbc, 0x03, 0xea, 0x60, 0x38, 0xe8, 0x9c, 0x9f, + 0x13, 0xc3, 0x34, 0x7b, 0x57, 0x06, 0x92, 0x70, 0x1d, 0xe0, 0xc1, 0x5b, 0xc6, 0x15, 0xd8, 0x22, + 0x86, 0x69, 0x58, 0xa8, 0x80, 0xff, 0x82, 0x9d, 0xce, 0xd8, 0x1a, 0x9e, 0x5c, 0xdb, 0x0f, 0x2c, + 0x8a, 0x58, 0x83, 0xdd, 0x0c, 0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x15, 0xe3, 0x56, 0x09, 0x17, 0xf1, 0x05, 0x94, 0xe3, 0x4c, 0x2b, 0xe6, 0x5c, 0x6f, + 0x1f, 0x6d, 0x6c, 0x59, 0x6a, 0xd2, 0x32, 0x9c, 0xcf, 0x61, 0xfe, 0xe8, 0xf2, 0xd6, 0x2d, 0xbc, + 0x79, 0x35, 0xb9, 0x6c, 0x27, 0xde, 0x2c, 0x3d, 0x14, 0x0a, 0xa9, 0xe5, 0xa0, 0xe5, 0xcd, 0xa8, + 0xfe, 0x1e, 0xd0, 0x3a, 0x05, 0xbf, 0x0d, 0xe6, 0xb8, 0xdb, 0x35, 0x4c, 0x13, 0x49, 0xb8, 0x06, + 0xe5, 0xc1, 0xd0, 0xb2, 0x4d, 0x63, 0x60, 0x21, 0x99, 0xab, 0xac, 0xde, 0xa5, 0x31, 0x1c, 0x5b, + 0xa8, 0xd0, 0xfe, 0x25, 0x83, 0xc2, 0x13, 0xc2, 0x06, 0x94, 0xf3, 0x3f, 0x13, 0x37, 0xff, 0x7c, + 0x87, 0x9a, 0xff, 0x6e, 0xd4, 0x65, 0xbf, 0xb0, 0x84, 0x3f, 0x2e, 0x6f, 0x44, 0xfe, 0x83, 0x63, + 0x7d, 0x83, 0xcb, 0xda, 0xb1, 0x68, 0x1e, 0x3c, 0x69, 0xb3, 0xa0, 0x3f, 0x87, 0x72, 0xde, 0xbe, + 0x95, 0x2c, 0xd7, 0xd6, 0x70, 0x25, 0xcb, 0xf5, 0x7e, 0xeb, 0xd2, 0x6b, 0xf9, 0xd3, 0xb6, 0x38, + 0xd9, 0xc7, 0xbf, 0x03, 0x00, 0x00, 0xff, 0xff, 0xc7, 0x45, 0x47, 0x1a, 0xc5, 0x05, 0x00, 0x00, } diff --git a/mpls/mpls.proto b/mpls/mpls.proto index 867687c7..7ec08067 100644 --- a/mpls/mpls.proto +++ b/mpls/mpls.proto @@ -16,12 +16,8 @@ syntax = "proto3"; -import "types/types.proto"; - package gnoi.mpls; -option (gnoi.gnoi_version) = "0.1.0"; - service MPLS { // ClearLSP clears a single tunnel (requests for it's route to be // recalculated). diff --git a/docs/simplified_security_model.md b/simplified_security_model.md similarity index 100% rename from docs/simplified_security_model.md rename to simplified_security_model.md diff --git a/system/system.pb.go b/system/system.pb.go index a6c89a93..26f480f0 100644 --- a/system/system.pb.go +++ b/system/system.pb.go @@ -1,6 +1,5 @@ -// Code generated by protoc-gen-go. +// Code generated by protoc-gen-go. DO NOT EDIT. // source: system/system.proto -// DO NOT EDIT! /* Package gnoi_system is a generated protocol buffer package. @@ -32,8 +31,7 @@ package gnoi_system import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" -import gnoi1 "common" -import gnoi "types" +import gnoi "github.com/openconfig/gnoi" import ( context "golang.org/x/net/context" @@ -207,6 +205,20 @@ func (m *SwitchControlProcessorResponse) GetControlProcessor() *gnoi.Path { return nil } +func (m *SwitchControlProcessorResponse) GetVersion() string { + if m != nil { + return m.Version + } + return "" +} + +func (m *SwitchControlProcessorResponse) GetUptime() int64 { + if m != nil { + return m.Uptime + } + return 0 +} + // A RebootRequest requests the specified target be rebooted using the specified // method aftar the specified delay. Only the DEFAULT method with a delay of 0 // is guaranteed to be accepted for all target types. @@ -227,6 +239,27 @@ func (m *RebootRequest) String() string { return proto.CompactTextStr func (*RebootRequest) ProtoMessage() {} func (*RebootRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} } +func (m *RebootRequest) GetMethod() RebootMethod { + if m != nil { + return m.Method + } + return RebootMethod_UNKNOWN +} + +func (m *RebootRequest) GetDelay() uint64 { + if m != nil { + return m.Delay + } + return 0 +} + +func (m *RebootRequest) GetMessage() string { + if m != nil { + return m.Message + } + return "" +} + func (m *RebootRequest) GetSubcomponents() []*gnoi.Path { if m != nil { return m.Subcomponents @@ -234,6 +267,13 @@ func (m *RebootRequest) GetSubcomponents() []*gnoi.Path { return nil } +func (m *RebootRequest) GetForce() bool { + if m != nil { + return m.Force + } + return false +} + type RebootResponse struct { } @@ -254,6 +294,13 @@ func (m *CancelRebootRequest) String() string { return proto.CompactT func (*CancelRebootRequest) ProtoMessage() {} func (*CancelRebootRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} } +func (m *CancelRebootRequest) GetMessage() string { + if m != nil { + return m.Message + } + return "" +} + func (m *CancelRebootRequest) GetSubcomponents() []*gnoi.Path { if m != nil { return m.Subcomponents @@ -298,6 +345,41 @@ func (m *RebootStatusResponse) String() string { return proto.Compact func (*RebootStatusResponse) ProtoMessage() {} func (*RebootStatusResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} } +func (m *RebootStatusResponse) GetActive() bool { + if m != nil { + return m.Active + } + return false +} + +func (m *RebootStatusResponse) GetWait() uint64 { + if m != nil { + return m.Wait + } + return 0 +} + +func (m *RebootStatusResponse) GetWhen() uint64 { + if m != nil { + return m.When + } + return 0 +} + +func (m *RebootStatusResponse) GetReason() string { + if m != nil { + return m.Reason + } + return "" +} + +func (m *RebootStatusResponse) GetCount() uint32 { + if m != nil { + return m.Count + } + return 0 +} + // A TimeRequest requests the current time accodring to the target. type TimeRequest struct { } @@ -316,6 +398,13 @@ func (m *TimeResponse) String() string { return proto.CompactTextStri func (*TimeResponse) ProtoMessage() {} func (*TimeResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{9} } +func (m *TimeResponse) GetTime() uint64 { + if m != nil { + return m.Time + } + return 0 +} + // A PingRequest describes the ping operation to perform. Only the destination // fields is required. Any field not specified is set to a reasonable server // specified value. Not all fields are supported by all vendors. @@ -343,6 +432,69 @@ func (m *PingRequest) String() string { return proto.CompactTextStrin func (*PingRequest) ProtoMessage() {} func (*PingRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{10} } +func (m *PingRequest) GetDestination() string { + if m != nil { + return m.Destination + } + return "" +} + +func (m *PingRequest) GetSource() string { + if m != nil { + return m.Source + } + return "" +} + +func (m *PingRequest) GetCount() int32 { + if m != nil { + return m.Count + } + return 0 +} + +func (m *PingRequest) GetInterval() int64 { + if m != nil { + return m.Interval + } + return 0 +} + +func (m *PingRequest) GetWait() int64 { + if m != nil { + return m.Wait + } + return 0 +} + +func (m *PingRequest) GetSize() int32 { + if m != nil { + return m.Size + } + return 0 +} + +func (m *PingRequest) GetDoNotFragment() bool { + if m != nil { + return m.DoNotFragment + } + return false +} + +func (m *PingRequest) GetDoNotResolve() bool { + if m != nil { + return m.DoNotResolve + } + return false +} + +func (m *PingRequest) GetL3Protocol() gnoi.L3Protocol { + if m != nil { + return m.L3Protocol + } + return gnoi.L3Protocol_UNSPECIFIED +} + // A PingResponse represents either the reponse to a single ping packet // (the bytes field is non-zero) or the summary statistics (sent is non-zero). // @@ -369,6 +521,83 @@ func (m *PingResponse) String() string { return proto.CompactTextStri func (*PingResponse) ProtoMessage() {} func (*PingResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{11} } +func (m *PingResponse) GetSource() string { + if m != nil { + return m.Source + } + return "" +} + +func (m *PingResponse) GetTime() int64 { + if m != nil { + return m.Time + } + return 0 +} + +func (m *PingResponse) GetSent() int32 { + if m != nil { + return m.Sent + } + return 0 +} + +func (m *PingResponse) GetReceived() int32 { + if m != nil { + return m.Received + } + return 0 +} + +func (m *PingResponse) GetMinTime() int64 { + if m != nil { + return m.MinTime + } + return 0 +} + +func (m *PingResponse) GetAvgTime() int64 { + if m != nil { + return m.AvgTime + } + return 0 +} + +func (m *PingResponse) GetMaxTime() int64 { + if m != nil { + return m.MaxTime + } + return 0 +} + +func (m *PingResponse) GetStdDev() int64 { + if m != nil { + return m.StdDev + } + return 0 +} + +func (m *PingResponse) GetBytes() int32 { + if m != nil { + return m.Bytes + } + return 0 +} + +func (m *PingResponse) GetSequence() int32 { + if m != nil { + return m.Sequence + } + return 0 +} + +func (m *PingResponse) GetTtl() int32 { + if m != nil { + return m.Ttl + } + return 0 +} + // A TracerouteRequest describes the traceroute operation to perform. Only the // destination field is required. Any field not specified is set to a // reasonable server specified value. Not all fields are supported by all @@ -393,6 +622,69 @@ func (m *TracerouteRequest) String() string { return proto.CompactTex func (*TracerouteRequest) ProtoMessage() {} func (*TracerouteRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{12} } +func (m *TracerouteRequest) GetSource() string { + if m != nil { + return m.Source + } + return "" +} + +func (m *TracerouteRequest) GetDestination() string { + if m != nil { + return m.Destination + } + return "" +} + +func (m *TracerouteRequest) GetInitialTtl() uint32 { + if m != nil { + return m.InitialTtl + } + return 0 +} + +func (m *TracerouteRequest) GetMaxTtl() int32 { + if m != nil { + return m.MaxTtl + } + return 0 +} + +func (m *TracerouteRequest) GetWait() int64 { + if m != nil { + return m.Wait + } + return 0 +} + +func (m *TracerouteRequest) GetDoNotFragment() bool { + if m != nil { + return m.DoNotFragment + } + return false +} + +func (m *TracerouteRequest) GetDoNotResolve() bool { + if m != nil { + return m.DoNotResolve + } + return false +} + +func (m *TracerouteRequest) GetL3Protocol() gnoi.L3Protocol { + if m != nil { + return m.L3Protocol + } + return gnoi.L3Protocol_UNSPECIFIED +} + +func (m *TracerouteRequest) GetL4Protocol() TracerouteRequest_L4Protocol { + if m != nil { + return m.L4Protocol + } + return TracerouteRequest_ICMP +} + // A TraceRouteResponse contains the result of a single traceoute packet. // // There may be an optional initial response that provides information about the @@ -432,6 +724,76 @@ func (m *TracerouteResponse) String() string { return proto.CompactTe func (*TracerouteResponse) ProtoMessage() {} func (*TracerouteResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{13} } +func (m *TracerouteResponse) GetDestinationName() string { + if m != nil { + return m.DestinationName + } + return "" +} + +func (m *TracerouteResponse) GetDestinationAddress() string { + if m != nil { + return m.DestinationAddress + } + return "" +} + +func (m *TracerouteResponse) GetHops() int32 { + if m != nil { + return m.Hops + } + return 0 +} + +func (m *TracerouteResponse) GetPacketSize() int32 { + if m != nil { + return m.PacketSize + } + return 0 +} + +func (m *TracerouteResponse) GetHop() int32 { + if m != nil { + return m.Hop + } + return 0 +} + +func (m *TracerouteResponse) GetAddress() string { + if m != nil { + return m.Address + } + return "" +} + +func (m *TracerouteResponse) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *TracerouteResponse) GetRtt() int64 { + if m != nil { + return m.Rtt + } + return 0 +} + +func (m *TracerouteResponse) GetState() TracerouteResponse_State { + if m != nil { + return m.State + } + return TracerouteResponse_DEFAULT +} + +func (m *TracerouteResponse) GetIcmpCode() int32 { + if m != nil { + return m.IcmpCode + } + return 0 +} + func (m *TracerouteResponse) GetMpls() map[string]string { if m != nil { return m.Mpls @@ -439,18 +801,18 @@ func (m *TracerouteResponse) GetMpls() map[string]string { return nil } +func (m *TracerouteResponse) GetAsPath() []int32 { + if m != nil { + return m.AsPath + } + return nil +} + // Package defines a single package file to be placed on the target. type Package struct { - // Destination path and filename of the package. Filename string `protobuf:"bytes,1,opt,name=filename" json:"filename,omitempty"` - // Version of the package. (vendor internal name) - Version string `protobuf:"bytes,4,opt,name=version" json:"version,omitempty"` - // Indicates that the package should be made active after receipt on - // the device. For system image packages, the new image is expected to - // be active after a reboot. - Activate bool `protobuf:"varint,5,opt,name=activate" json:"activate,omitempty"` - // Details for the device to download the package from a remote location. - RemoteDownload *gnoi1.RemoteDownload `protobuf:"bytes,6,opt,name=remote_download,json=remoteDownload" json:"remote_download,omitempty"` + Version string `protobuf:"bytes,4,opt,name=version" json:"version,omitempty"` + Activate bool `protobuf:"varint,5,opt,name=activate" json:"activate,omitempty"` } func (m *Package) Reset() { *m = Package{} } @@ -458,11 +820,25 @@ func (m *Package) String() string { return proto.CompactTextString(m) func (*Package) ProtoMessage() {} func (*Package) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{14} } -func (m *Package) GetRemoteDownload() *gnoi1.RemoteDownload { +func (m *Package) GetFilename() string { if m != nil { - return m.RemoteDownload + return m.Filename } - return nil + return "" +} + +func (m *Package) GetVersion() string { + if m != nil { + return m.Version + } + return "" +} + +func (m *Package) GetActivate() bool { + if m != nil { + return m.Activate + } + return false } // SetPackageRequest will place the package onto the target and optionally mark @@ -1108,104 +1484,101 @@ var _System_serviceDesc = grpc.ServiceDesc{ func init() { proto.RegisterFile("system/system.proto", fileDescriptor0) } var fileDescriptor0 = []byte{ - // 1569 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x9c, 0x57, 0x4f, 0x6f, 0xdb, 0xc8, - 0x15, 0x37, 0xf5, 0x5f, 0x4f, 0xb6, 0x43, 0x8f, 0xd5, 0x2c, 0xa3, 0x6d, 0x77, 0x55, 0x62, 0x5b, - 0x38, 0x5b, 0x40, 0xf1, 0x3a, 0x0b, 0x6c, 0xd1, 0x22, 0x2d, 0x14, 0x89, 0x5e, 0x1b, 0x2b, 0x4b, - 0xea, 0x88, 0x6a, 0x7a, 0x23, 0x26, 0xd4, 0xc4, 0x22, 0x42, 0x72, 0x54, 0xce, 0x48, 0x59, 0xf7, - 0xdc, 0x5b, 0x2f, 0x3d, 0x14, 0x45, 0xd1, 0x5b, 0xbf, 0x46, 0x3f, 0x46, 0x2f, 0xfd, 0x1e, 0xfd, - 0x04, 0xc5, 0xcc, 0x90, 0x12, 0x25, 0x2b, 0x71, 0xb0, 0x17, 0x7b, 0xde, 0x9f, 0x79, 0xf3, 0xde, - 0xef, 0xfd, 0x66, 0xf8, 0x04, 0xa7, 0xfc, 0x8e, 0x0b, 0x1a, 0x3d, 0xd3, 0xff, 0x3a, 0x8b, 0x84, - 0x09, 0x86, 0x1a, 0xb7, 0x31, 0x0b, 0x3a, 0x5a, 0xd5, 0x3a, 0xf5, 0x59, 0x14, 0xb1, 0xf8, 0x99, - 0xfe, 0xa7, 0x3d, 0x5a, 0x27, 0xe2, 0x6e, 0x41, 0xf9, 0x33, 0xf5, 0x57, 0xab, 0xec, 0x3f, 0xc0, - 0x4f, 0x26, 0xef, 0x02, 0xe1, 0xcf, 0x7b, 0x2c, 0x16, 0x09, 0x0b, 0xc7, 0x09, 0xf3, 0x29, 0xe7, - 0x2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0x63, 0x5e, - 0xcc, 0x84, 0xf7, 0x26, 0x21, 0xb7, 0x11, 0x8d, 0x85, 0x55, 0x55, 0x68, 0x1e, 0xcd, 0xd8, 0x90, - 0x89, 0xcb, 0x54, 0x89, 0xbe, 0x80, 0xe3, 0xd4, 0x2f, 0xa1, 0x9c, 0x85, 0x2b, 0x6a, 0xd5, 0x94, - 0xdb, 0xa1, 0x72, 0xc3, 0x5a, 0x87, 0xce, 0x01, 0xc2, 0xe7, 0xea, 0xc5, 0xf0, 0x59, 0x68, 0xd5, - 0xd5, 0x85, 0x31, 0x75, 0x6b, 0x07, 0xcf, 0xc7, 0xa9, 0x1e, 0xe7, 0x7c, 0xec, 0x7f, 0x14, 0xe0, - 0x50, 0x63, 0xb4, 0xe9, 0x6a, 0x0a, 0x81, 0xb1, 0x05, 0x41, 0x06, 0x70, 0x41, 0x17, 0x24, 0xd7, - 0xaa, 0x20, 0xba, 0x46, 0x45, 0xad, 0x25, 0x28, 0x09, 0xf5, 0x69, 0xb0, 0xa2, 0x33, 0x05, 0x4a, - 0x19, 0xaf, 0x65, 0xf4, 0x04, 0x6a, 0x51, 0x10, 0x7b, 0x2a, 0x8e, 0x06, 0xa6, 0x1a, 0x05, 0xb1, - 0xec, 0xa3, 0x34, 0x91, 0xd5, 0xad, 0x36, 0x55, 0xb4, 0x89, 0xac, 0x6e, 0x33, 0x53, 0x44, 0xbe, - 0xd7, 0xa6, 0x6a, 0xba, 0x8b, 0x7c, 0xaf, 0x4c, 0x9f, 0x40, 0x95, 0x8b, 0x99, 0x37, 0xa3, 0x2b, - 0x05, 0x47, 0x11, 0x57, 0xb8, 0x98, 0xf5, 0xe9, 0x4a, 0x36, 0xec, 0xf5, 0x9d, 0xa0, 0xdc, 0x6a, - 0xe8, 0x86, 0x29, 0x41, 0xe6, 0xc6, 0x25, 0x17, 0x62, 0x9f, 0x5a, 0x87, 0x3a, 0xb7, 0x4c, 0x46, - 0x26, 0x14, 0x85, 0x08, 0xad, 0x23, 0x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, 0x39, 0xe5, 0xa6, 0xa8, 0x9d, 0x9c, 0xf2, 0x03, 0x95, 0x7d, 0x20, 0x33, 0xda, 0xc0, - 0xbb, 0x93, 0xd1, 0x3d, 0x36, 0xec, 0x64, 0x74, 0xbf, 0x2f, 0xf6, 0xc1, 0x99, 0x81, 0x38, 0x3c, - 0xde, 0xff, 0x5b, 0x03, 0x7d, 0xb9, 0xbd, 0xfd, 0x43, 0xbf, 0x75, 0x5a, 0xbf, 0xf8, 0x28, 0xdf, - 0x75, 0x1d, 0x3d, 0xa8, 0x68, 0x42, 0xa0, 0xd6, 0x9e, 0xdf, 0x0e, 0x59, 0xd0, 0x4f, 0xf7, 0xda, - 0xd6, 0x41, 0xa6, 0x19, 0xab, 0xf4, 0x10, 0x8c, 0xda, 0x7b, 0xdc, 0xb7, 0x26, 0xed, 0xd6, 0x4f, - 0x3f, 0xe0, 0x91, 0x0f, 0x9b, 0x9f, 0xde, 0x77, 0xc2, 0xee, 0xf9, 0xed, 0xb0, 0x13, 0x76, 0xef, - 0xe8, 0x7f, 0xf0, 0xb2, 0xf6, 0x9f, 0xdf, 0x94, 0xcf, 0x3b, 0x5f, 0x75, 0xce, 0x5f, 0x57, 0xd4, - 0x57, 0xf6, 0xf9, 0xff, 0x03, 0x00, 0x00, 0xff, 0xff, 0xc3, 0x1f, 0x43, 0x7b, 0x8b, 0x0e, 0x00, - 0x00, + // 1531 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x57, 0xdf, 0x6e, 0xdb, 0xbc, + 0x15, 0xb7, 0xfc, 0xdf, 0xc7, 0x49, 0xaa, 0x30, 0x59, 0xaa, 0xba, 0x5b, 0xeb, 0x09, 0x5d, 0x91, + 0x76, 0x80, 0xd3, 0xa5, 0x05, 0x3a, 0x6c, 0x28, 0x06, 0xd7, 0x56, 0x9a, 0xa0, 0x8e, 0xed, 0xc9, + 0xf2, 0x32, 0x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 0xae, 0x1d, 0xe7, 0xec, 0x58, 0x32, + 0xff, 0xa7, 0xc1, 0xae, 0x4d, 0xae, 0x29, 0xe5, 0x49, 0x61, 0xbf, 0x81, 0xe2, 0x8c, 0xf0, 0x29, + 0x1d, 0xcb, 0x13, 0xf7, 0x4e, 0x1f, 0x35, 0x52, 0xf8, 0x35, 0x94, 0xef, 0xa5, 0x74, 0xb0, 0x63, + 0x47, 0x74, 0x08, 0x85, 0x31, 0xf1, 0xf1, 0xad, 0x3c, 0x34, 0x6f, 0x2b, 0x41, 0x24, 0x33, 0x23, + 0x8c, 0xe1, 0x89, 0x3a, 0xb3, 0x62, 0x27, 0x22, 0x7a, 0x05, 0xbb, 0x6c, 0x7e, 0xed, 0xd2, 0x59, + 0x48, 0x03, 0x12, 0x70, 0x66, 0xe4, 0xeb, 0xb9, 0x8d, 0xda, 0xd6, 0x1d, 0xc4, 0x09, 0x37, 0x34, + 0x72, 0x89, 0x51, 0xa8, 0x6b, 0xc7, 0x65, 0x5b, 0x09, 0xa6, 0x0e, 0x7b, 0x49, 0xee, 0x0a, 0x39, + 0x13, 0xc3, 0x41, 0x0b, 0x07, 0x2e, 0xf1, 0xd7, 0x6b, 0x4a, 0xa5, 0xa2, 0xdd, 0x93, 0x4a, 0xf6, + 0x9e, 0x54, 0xcc, 0x23, 0x38, 0x5c, 0x3f, 0x22, 0x3e, 0xfa, 0x03, 0x1c, 0x28, 0xcd, 0x80, 0x63, + 0x3e, 0x67, 0xc9, 0xd1, 0x77, 0x0e, 0xd0, 0xee, 0x3b, 0xe0, 0xef, 0x1a, 0x1c, 0xae, 0x47, 0x8a, + 0x69, 0x71, 0x04, 0x45, 0xec, 0x72, 0x6f, 0xa1, 0x8a, 0x28, 0xdb, 0xb1, 0x84, 0x10, 0xe4, 0x3f, + 0x63, 0x8f, 0xc7, 0xe8, 0xcb, 0xb5, 0xd4, 0x4d, 0x49, 0x20, 0x91, 0x17, 0xba, 0x29, 0x91, 0x1c, + 0x88, 0x08, 0x66, 0x34, 0x30, 0xf2, 0x12, 0x84, 0x58, 0x12, 0xe0, 0xba, 0x74, 0x1e, 0x70, 0x09, + 0xee, 0xae, 0xad, 0x04, 0x73, 0x17, 0xaa, 0x8e, 0x37, 0x23, 0x71, 0x1d, 0xa6, 0x09, 0x3b, 0x4a, + 0x8c, 0x93, 0x41, 0x90, 0x97, 0x74, 0xd2, 0xd4, 0x01, 0x92, 0x4c, 0xff, 0xcd, 0x42, 0xb5, 0xef, + 0x05, 0x93, 0xa4, 0xf6, 0x3a, 0x54, 0xc7, 0x84, 0x71, 0x2f, 0xc0, 0x5c, 0x50, 0x52, 0x41, 0x9f, + 0x56, 0x89, 0x94, 0x18, 0x9d, 0x8b, 0xc6, 0x2a, 0xbe, 0xc6, 0xd2, 0x2a, 0x25, 0x91, 0x7f, 0x21, + 0x4e, 0x09, 0xd5, 0xa0, 0xec, 0x05, 0x9c, 0x44, 0x0b, 0xec, 0xcb, 0x12, 0x72, 0xf6, 0x52, 0x5e, + 0x82, 0x50, 0x90, 0xfa, 0x25, 0x08, 0xcc, 0xfb, 0x1b, 0x31, 0x8a, 0x32, 0x88, 0x5c, 0xa3, 0xe7, + 0xf0, 0x60, 0x4c, 0x47, 0x01, 0xe5, 0xa3, 0x9b, 0x08, 0x4f, 0x66, 0x24, 0xe0, 0x46, 0x49, 0xa2, + 0xb9, 0x3b, 0xa6, 0x5d, 0xca, 0xcf, 0x62, 0x25, 0x7a, 0x06, 0x7b, 0xb1, 0x5f, 0x44, 0x18, 0xf5, + 0x17, 0xc4, 0x28, 0x4b, 0xb7, 0x1d, 0xe9, 0x66, 0x2b, 0x1d, 0x7a, 0x05, 0xe0, 0xbf, 0x96, 0x2f, + 0x86, 0x4b, 0x7d, 0xa3, 0x22, 0x2f, 0x8c, 0xae, 0x5a, 0xdb, 0x79, 0xdd, 0x8f, 0xf5, 0x76, 0xca, + 0xc7, 0xfc, 0x4f, 0x16, 0x76, 0x14, 0x46, 0xab, 0xae, 0xc6, 0x10, 0x68, 0x6b, 0x10, 0x24, 0x00, + 0x67, 0x55, 0x41, 0x62, 0x2d, 0x0b, 0x22, 0x4b, 0x54, 0xe4, 0x5a, 0x80, 0x12, 0x11, 0x97, 0x78, + 0x0b, 0x32, 0x96, 0xa0, 0x14, 0xec, 0xa5, 0x8c, 0x1e, 0x41, 0x79, 0xe6, 0x05, 0x23, 0x19, 0x47, + 0x01, 0x53, 0x9a, 0x79, 0x81, 0xe8, 0xa3, 0x30, 0xe1, 0xc5, 0x44, 0x99, 0x8a, 0xca, 0x84, 0x17, + 0x93, 0xc4, 0x34, 0xc3, 0x5f, 0x94, 0xa9, 0x14, 0xef, 0xc2, 0x5f, 0xa4, 0xe9, 0x21, 0x94, 0x18, + 0x1f, 0x8f, 0xc6, 0x64, 0x21, 0xe1, 0xc8, 0xd9, 0x45, 0xc6, 0xc7, 0x6d, 0xb2, 0x10, 0x0d, 0xbb, + 0xbe, 0xe5, 0x84, 0x19, 0x55, 0xd5, 0x30, 0x29, 0x88, 0xdc, 0x98, 0xe0, 0x42, 0xe0, 0x12, 0x63, + 0x47, 0xe5, 0x96, 0xc8, 0x48, 0x87, 0x1c, 0xe7, 0xbe, 0xb1, 0x2b, 0xd5, 0x62, 0x69, 0xfe, 0x33, + 0x07, 0xfb, 0x4e, 0x84, 0x5d, 0x12, 0xd1, 0x39, 0x4f, 0x88, 0xf7, 0x55, 0x7c, 0x36, 0xc8, 0x95, + 0xbd, 0x4b, 0xae, 0xa7, 0x50, 0xf5, 0x02, 0x8f, 0x7b, 0xd8, 0x1f, 0x89, 0x93, 0x72, 0x92, 0xdd, + 0x10, 0xab, 0x1c, 0xee, 0x8b, 0x6a, 0x64, 0xa1, 0xdc, 0x8f, 0x91, 0x2b, 0x8a, 0x3a, 0xf9, 0x76, + 0x32, 0x6d, 0x21, 0x4e, 0xf1, 0xfb, 0x88, 0x53, 0xba, 0x97, 0x38, 0xe5, 0xfb, 0x89, 0x83, 0x2e, + 0x00, 0xfc, 0x37, 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f2, 0xdb, 0xf8, 0xfa, 0xc7, 0x00, 0x00, + 0x00, 0xff, 0xff, 0xb7, 0x09, 0xaf, 0x86, 0x41, 0x0e, 0x00, 0x00, } diff --git a/system/system.proto b/system/system.proto index 9338260e..774431f0 100644 --- a/system/system.proto +++ b/system/system.proto @@ -24,10 +24,8 @@ syntax = "proto3"; package gnoi.system; -import "common/common.proto"; -import "types/types.proto"; - -option (gnoi.gnoi_version) = "0.1.0"; +import "github.com/openconfig/gnoi/common.proto"; +import "github.com/openconfig/gnoi/types.proto"; // The gNOI service is a collection of operational RPC's that allow for the // management of a target outside of the configuration and telemetry pipeline. diff --git a/types.pb.go b/types.pb.go new file mode 100644 index 00000000..0fbbd74b --- /dev/null +++ b/types.pb.go @@ -0,0 +1,197 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: types.proto + +/* +Package gnoi is a generated protocol buffer package. + +It is generated from these files: + types.proto + +It has these top-level messages: + HashType + Path + PathElem +*/ +package gnoi + +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 + +// Generic Layer 3 Protocol enumeration. +type L3Protocol int32 + +const ( + L3Protocol_UNSPECIFIED L3Protocol = 0 + L3Protocol_IPV4 L3Protocol = 1 + L3Protocol_IPV6 L3Protocol = 2 +) + +var L3Protocol_name = map[int32]string{ + 0: "UNSPECIFIED", + 1: "IPV4", + 2: "IPV6", +} +var L3Protocol_value = map[string]int32{ + "UNSPECIFIED": 0, + "IPV4": 1, + "IPV6": 2, +} + +func (x L3Protocol) String() string { + return proto.EnumName(L3Protocol_name, int32(x)) +} +func (L3Protocol) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } + +type HashType_HashMethod int32 + +const ( + HashType_UNSPECIFIED HashType_HashMethod = 0 + HashType_SHA256 HashType_HashMethod = 1 + HashType_SHA512 HashType_HashMethod = 2 + HashType_MD5 HashType_HashMethod = 3 +) + +var HashType_HashMethod_name = map[int32]string{ + 0: "UNSPECIFIED", + 1: "SHA256", + 2: "SHA512", + 3: "MD5", +} +var HashType_HashMethod_value = map[string]int32{ + "UNSPECIFIED": 0, + "SHA256": 1, + "SHA512": 2, + "MD5": 3, +} + +func (x HashType_HashMethod) String() string { + return proto.EnumName(HashType_HashMethod_name, int32(x)) +} +func (HashType_HashMethod) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0, 0} } + +// HashType defines the valid hash methods for data verification. UNSPECIFIED +// should be treated an error. +type HashType struct { + Method HashType_HashMethod `protobuf:"varint,1,opt,name=method,enum=gnoi.HashType_HashMethod" json:"method,omitempty"` + Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` +} + +func (m *HashType) Reset() { *m = HashType{} } +func (m *HashType) String() string { return proto.CompactTextString(m) } +func (*HashType) ProtoMessage() {} +func (*HashType) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } + +func (m *HashType) GetMethod() HashType_HashMethod { + if m != nil { + return m.Method + } + return HashType_UNSPECIFIED +} + +func (m *HashType) GetHash() []byte { + if m != nil { + return m.Hash + } + return nil +} + +// Path encodes a data tree path as a series of repeated strings, with +// each element of the path representing a data tree node name and the +// associated attributes. +// Reference: gNMI Specification Section 2.2.2. +type Path struct { + Origin string `protobuf:"bytes,2,opt,name=origin" json:"origin,omitempty"` + Elem []*PathElem `protobuf:"bytes,3,rep,name=elem" json:"elem,omitempty"` +} + +func (m *Path) Reset() { *m = Path{} } +func (m *Path) String() string { return proto.CompactTextString(m) } +func (*Path) ProtoMessage() {} +func (*Path) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } + +func (m *Path) GetOrigin() string { + if m != nil { + return m.Origin + } + return "" +} + +func (m *Path) GetElem() []*PathElem { + if m != nil { + return m.Elem + } + return nil +} + +// PathElem encodes an element of a gNMI path, along with any attributes (keys) +// that may be associated with it. +// Reference: gNMI Specification Section 2.2.2. +type PathElem struct { + Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` + Key map[string]string `protobuf:"bytes,2,rep,name=key" json:"key,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` +} + +func (m *PathElem) Reset() { *m = PathElem{} } +func (m *PathElem) String() string { return proto.CompactTextString(m) } +func (*PathElem) ProtoMessage() {} +func (*PathElem) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} } + +func (m *PathElem) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *PathElem) GetKey() map[string]string { + if m != nil { + return m.Key + } + return nil +} + +func init() { + proto.RegisterType((*HashType)(nil), "gnoi.HashType") + proto.RegisterType((*Path)(nil), "gnoi.Path") + proto.RegisterType((*PathElem)(nil), "gnoi.PathElem") + proto.RegisterEnum("gnoi.L3Protocol", L3Protocol_name, L3Protocol_value) + proto.RegisterEnum("gnoi.HashType_HashMethod", HashType_HashMethod_name, HashType_HashMethod_value) +} + +func init() { proto.RegisterFile("types.proto", fileDescriptor0) } + +var fileDescriptor0 = []byte{ + // 306 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x91, 0x41, 0x4f, 0x83, 0x40, + 0x10, 0x85, 0x5d, 0x40, 0xa4, 0x53, 0x53, 0x37, 0x13, 0xa3, 0xe8, 0xa9, 0xe1, 0x54, 0x3d, 0x90, + 0x94, 0xda, 0xc6, 0x78, 0x30, 0x51, 0x8b, 0x69, 0xa3, 0x35, 0x64, 0xab, 0xde, 0x51, 0x37, 0x85, + 0x08, 0x2c, 0x01, 0x34, 0xe1, 0xe8, 0x4f, 0xf0, 0x1f, 0x9b, 0x5d, 0x20, 0xc6, 0x78, 0xfb, 0x66, + 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d, 0xd6, 0x1a, 0x27, 0x89, 0xb8, 0x0f, 0xdb, 0x9f, 0x61, + 0xf2, 0xc1, 0xdb, 0x90, 0x4d, 0x71, 0xa1, 0x9d, 0x93, 0xd3, 0x31, 0xc0, 0xfd, 0x24, 0x90, 0xc7, + 0x7e, 0x15, 0xc9, 0xff, 0x3b, 0x58, 0x60, 0x2c, 0x83, 0xe7, 0x33, 0x4a, 0x5a, 0x9a, 0x51, 0xed, + 0xc5, 0x54, 0x7f, 0x33, 0xf9, 0x09, 0x00, 0x00, 0xff, 0xff, 0xea, 0xe4, 0xaf, 0x79, 0xaa, 0x01, + 0x00, 0x00, +} diff --git a/types/types.proto b/types.proto similarity index 89% rename from types/types.proto rename to types.proto index bc5f0472..31d17b78 100644 --- a/types/types.proto +++ b/types.proto @@ -16,16 +16,8 @@ syntax = "proto3"; -import "google/protobuf/descriptor.proto"; - package gnoi; -// Define a protobuf FileOption that defines the gNOI service version. -extend google.protobuf.FileOptions { - // The gNOI service semantic version. - string gnoi_version = 1002; -} - // Generic Layer 3 Protocol enumeration. enum L3Protocol { UNSPECIFIED = 0; diff --git a/types/types.pb.go b/types/types.pb.go deleted file mode 100644 index 0808f681..00000000 --- a/types/types.pb.go +++ /dev/null @@ -1,309 +0,0 @@ -// Code generated by protoc-gen-go. -// source: types/types.proto -// DO NOT EDIT! - -/* -Package gnoi is a generated protocol buffer package. - -It is generated from these files: - types/types.proto - -It has these top-level messages: - HashType - Path - PathElem - Credentials -*/ -package gnoi - -import proto "github.com/golang/protobuf/proto" -import fmt "fmt" -import math "math" -import google_protobuf "github.com/golang/protobuf/protoc-gen-go/descriptor" - -// 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 - -// Generic Layer 3 Protocol enumeration. -type L3Protocol int32 - -const ( - L3Protocol_UNSPECIFIED L3Protocol = 0 - L3Protocol_IPV4 L3Protocol = 1 - L3Protocol_IPV6 L3Protocol = 2 -) - -var L3Protocol_name = map[int32]string{ - 0: "UNSPECIFIED", - 1: "IPV4", - 2: "IPV6", -} -var L3Protocol_value = map[string]int32{ - "UNSPECIFIED": 0, - "IPV4": 1, - "IPV6": 2, -} - -func (x L3Protocol) String() string { - return proto.EnumName(L3Protocol_name, int32(x)) -} -func (L3Protocol) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } - -type HashType_HashMethod int32 - -const ( - HashType_UNSPECIFIED HashType_HashMethod = 0 - HashType_SHA256 HashType_HashMethod = 1 - HashType_SHA512 HashType_HashMethod = 2 - HashType_MD5 HashType_HashMethod = 3 -) - -var HashType_HashMethod_name = map[int32]string{ - 0: "UNSPECIFIED", - 1: "SHA256", - 2: "SHA512", - 3: "MD5", -} -var HashType_HashMethod_value = map[string]int32{ - "UNSPECIFIED": 0, - "SHA256": 1, - "SHA512": 2, - "MD5": 3, -} - -func (x HashType_HashMethod) String() string { - return proto.EnumName(HashType_HashMethod_name, int32(x)) -} -func (HashType_HashMethod) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0, 0} } - -// HashType defines the valid hash methods for data verification. UNSPECIFIED -// should be treated an error. -type HashType struct { - Method HashType_HashMethod `protobuf:"varint,1,opt,name=method,enum=gnoi.HashType_HashMethod" json:"method,omitempty"` - Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` -} - -func (m *HashType) Reset() { *m = HashType{} } -func (m *HashType) String() string { return proto.CompactTextString(m) } -func (*HashType) ProtoMessage() {} -func (*HashType) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } - -// Path encodes a data tree path as a series of repeated strings, with -// each element of the path representing a data tree node name and the -// associated attributes. -// Reference: gNMI Specification Section 2.2.2. -type Path struct { - Origin string `protobuf:"bytes,2,opt,name=origin" json:"origin,omitempty"` - Elem []*PathElem `protobuf:"bytes,3,rep,name=elem" json:"elem,omitempty"` -} - -func (m *Path) Reset() { *m = Path{} } -func (m *Path) String() string { return proto.CompactTextString(m) } -func (*Path) ProtoMessage() {} -func (*Path) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } - -func (m *Path) GetElem() []*PathElem { - if m != nil { - return m.Elem - } - return nil -} - -// PathElem encodes an element of a gNMI path, along with any attributes (keys) -// that may be associated with it. -// Reference: gNMI Specification Section 2.2.2. -type PathElem struct { - Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` - Key map[string]string `protobuf:"bytes,2,rep,name=key" json:"key,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` -} - -func (m *PathElem) Reset() { *m = PathElem{} } -func (m *PathElem) String() string { return proto.CompactTextString(m) } -func (*PathElem) ProtoMessage() {} -func (*PathElem) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} } - -func (m *PathElem) GetKey() map[string]string { - if m != nil { - return m.Key - } - return nil -} - -// Credentials defines credentials needed to perform authentication on a device. -type Credentials struct { - Username string `protobuf:"bytes,1,opt,name=username" json:"username,omitempty"` - // Types that are valid to be assigned to Password: - // *Credentials_Cleartext - // *Credentials_Hashed - Password isCredentials_Password `protobuf_oneof:"password"` -} - -func (m *Credentials) Reset() { *m = Credentials{} } -func (m *Credentials) String() string { return proto.CompactTextString(m) } -func (*Credentials) ProtoMessage() {} -func (*Credentials) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} } - -type isCredentials_Password interface { - isCredentials_Password() -} - -type Credentials_Cleartext struct { - Cleartext string `protobuf:"bytes,2,opt,name=cleartext,oneof"` -} -type Credentials_Hashed struct { - Hashed *HashType `protobuf:"bytes,3,opt,name=hashed,oneof"` -} - -func (*Credentials_Cleartext) isCredentials_Password() {} -func (*Credentials_Hashed) isCredentials_Password() {} - -func (m *Credentials) GetPassword() isCredentials_Password { - if m != nil { - return m.Password - } - return nil -} - -func (m *Credentials) GetCleartext() string { - if x, ok := m.GetPassword().(*Credentials_Cleartext); ok { - return x.Cleartext - } - return "" -} - -func (m *Credentials) GetHashed() *HashType { - if x, ok := m.GetPassword().(*Credentials_Hashed); ok { - return x.Hashed - } - return nil -} - -// XXX_OneofFuncs is for the internal use of the proto package. -func (*Credentials) 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 _Credentials_OneofMarshaler, _Credentials_OneofUnmarshaler, _Credentials_OneofSizer, []interface{}{ - (*Credentials_Cleartext)(nil), - (*Credentials_Hashed)(nil), - } -} - -func _Credentials_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { - m := msg.(*Credentials) - // password - switch x := m.Password.(type) { - case *Credentials_Cleartext: - b.EncodeVarint(2<<3 | proto.WireBytes) - b.EncodeStringBytes(x.Cleartext) - case *Credentials_Hashed: - b.EncodeVarint(3<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.Hashed); err != nil { - return err - } - case nil: - default: - return fmt.Errorf("Credentials.Password has unexpected type %T", x) - } - return nil -} - -func _Credentials_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { - m := msg.(*Credentials) - switch tag { - case 2: // password.cleartext - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - x, err := b.DecodeStringBytes() - m.Password = &Credentials_Cleartext{x} - return true, err - case 3: // password.hashed - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(HashType) - err := b.DecodeMessage(msg) - m.Password = &Credentials_Hashed{msg} - return true, err - default: - return false, nil - } -} - -func _Credentials_OneofSizer(msg proto.Message) (n int) { - m := msg.(*Credentials) - // password - switch x := m.Password.(type) { - case *Credentials_Cleartext: - n += proto.SizeVarint(2<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(len(x.Cleartext))) - n += len(x.Cleartext) - case *Credentials_Hashed: - s := proto.Size(x.Hashed) - n += proto.SizeVarint(3<<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 -} - -var E_GnoiVersion = &proto.ExtensionDesc{ - ExtendedType: (*google_protobuf.FileOptions)(nil), - ExtensionType: (*string)(nil), - Field: 1002, - Name: "gnoi.gnoi_version", - Tag: "bytes,1002,opt,name=gnoi_version,json=gnoiVersion", -} - -func init() { - proto.RegisterType((*HashType)(nil), "gnoi.HashType") - proto.RegisterType((*Path)(nil), "gnoi.Path") - proto.RegisterType((*PathElem)(nil), "gnoi.PathElem") - proto.RegisterType((*Credentials)(nil), "gnoi.Credentials") - proto.RegisterEnum("gnoi.L3Protocol", L3Protocol_name, L3Protocol_value) - proto.RegisterEnum("gnoi.HashType_HashMethod", HashType_HashMethod_name, HashType_HashMethod_value) - proto.RegisterExtension(E_GnoiVersion) -} - -func init() { proto.RegisterFile("types/types.proto", fileDescriptor0) } - -var fileDescriptor0 = []byte{ - // 442 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x64, 0x52, 0xc1, 0x6e, 0xd3, 0x40, - 0x10, 0xcd, 0xda, 0xc6, 0x75, 0x26, 0x55, 0x31, 0x2b, 0x04, 0x26, 0x42, 0xc8, 0xf2, 0x29, 0x70, - 0x70, 0x94, 0x94, 0x44, 0xa8, 0x07, 0x04, 0x6d, 0x53, 0x25, 0x82, 0x42, 0xe4, 0x42, 0xaf, 0xc8, - 0x8d, 0x87, 0xd8, 0xc2, 0xf6, 0x5a, 0xbb, 0x9b, 0x82, 0x4f, 0x88, 0x4f, 0xe0, 0x37, 0xf9, 0x0a, - 0xb4, 0x6b, 0x9b, 0x80, 0xb8, 0x58, 0x6f, 0x66, 0xde, 0x7b, 0x7a, 0xe3, 0x59, 0xb8, 0x27, 0xeb, - 0x0a, 0xc5, 0x58, 0x7f, 0xc3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 0xb0, 0x5e, 0x94, 0x92, - 0xd7, 0x91, 0xe2, 0x0c, 0xe7, 0xe0, 0x74, 0x0d, 0xea, 0x36, 0xb2, 0xc6, 0x49, 0x41, 0x7a, 0x1f, - 0xee, 0xdc, 0xc6, 0xf9, 0x0e, 0xdb, 0x90, 0x4d, 0x71, 0x62, 0xbc, 0x20, 0xc1, 0x77, 0x18, 0x9c, - 0x71, 0x4c, 0xb0, 0x94, 0x59, 0x9c, 0x0b, 0x3a, 0x04, 0x67, 0x27, 0x90, 0xff, 0x95, 0xe4, 0x4f, - 0x4d, 0x9f, 0x40, 0x7f, 0x93, 0x63, 0xcc, 0x25, 0x7e, 0x93, 0x8d, 0xd1, 0xb2, 0x17, 0xed, 0x5b, - 0x74, 0x04, 0xb6, 0xfa, 0xb5, 0x98, 0x78, 0xa6, 0x4f, 0xf6, 0x4b, 0x77, 0x97, 0x59, 0xf6, 0xa2, - 0x76, 0x7e, 0x0a, 0xe0, 0x54, 0xb1, 0x10, 0x5f, 0x19, 0x4f, 0x9e, 0x4d, 0x00, 0xde, 0x1e, 0xaf, - 0xd5, 0x9d, 0x37, 0x2c, 0xff, 0xff, 0x10, 0x0e, 0x58, 0xab, 0xf5, 0xf5, 0x73, 0x97, 0xb4, 0x68, - 0xee, 0x1a, 0x27, 0xaf, 0xe0, 0x50, 0x39, 0x7f, 0xba, 0x45, 0x2e, 0x32, 0x56, 0xd2, 0xc7, 0x61, - 0xf3, 0x84, 0xc2, 0xee, 0x09, 0x85, 0x17, 0x59, 0x8e, 0xef, 0x2b, 0x99, 0xb1, 0x52, 0x78, 0xbf, - 0x0e, 0xf4, 0x1e, 0x03, 0x25, 0xb9, 0x6e, 0x14, 0x37, 0xb6, 0x66, 0x1e, 0xff, 0x0e, 0x00, 0x00, - 0xff, 0xff, 0x4e, 0x23, 0x52, 0x84, 0x95, 0x02, 0x00, 0x00, -} From 64bb7cd2b0b7f0af2a579d40b82c5b1c1637bf47 Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 16:59:50 +0530 Subject: [PATCH 209/238] Revert "Security model content" This reverts commit bf1e445d06ed09c665d9c2e4473dde102303cc7e. --- simplified_security_model.md | 102 ----------------------------------- 1 file changed, 102 deletions(-) diff --git a/simplified_security_model.md b/simplified_security_model.md index 6d963b7c..e69de29b 100644 --- a/simplified_security_model.md +++ b/simplified_security_model.md @@ -1,102 +0,0 @@ -# Simplified security model for the gNOI Certificate service - -Contributors: Sam Ribeiro (ribeiro@google.com), Rob Shakir (robjs@google.com), -Alireza Ghaffarkhah (aghaffar@google.com), Eric Breverman (ejbrever@google.com), -Anees Shaikh (aashaikh@google.com) - -Updated: August 7th, 2018 - -Version: 0.1.0 - -## Simplified security model - -What follows is the description of one security model and its relation with the -gNOI Certificate Service. This security model does not assert itself as the only -one that can be employed. Different security models can be defined to address -specific scenarios. - -This simplified security model makes assumptions about the installation and -rotation of Certificates & CA Certificates. Their assumed usage is applicable -not only to gNOI and gNMI, but also other services like OpenFlow. - -This simplified security model presumes that a secure connection between the -Target and the Client already exist for installing and rotating Certificates. -Bootstrapping is out of scope for this model. - -This simplified security model assumes low risk of man-in-the-middle attacks -because it relinquishes mandating DNS verification for the Common Name of the -respective Client and Target Certificates. - -## Client - -A Client is defined as per the definition in the gNMI and gNOI specifications. - -## Target - -A Target is defined as per the definition in the gNMI and gNOI specifications. - -## Peer - -Peer is an entity that participates in establishing a connection with another -entity, using whatever protocol that makes use of Certificates to secure that -connection. An example would be an OpenFlow connection between an OpenFlow -switch and an OpenFlow Controller. Target and Client are particular cases of a -Peer. - -## Client is a Relying Party - -It is assumed that the Certificate Authority (CA) provides certificate signing -and generation services to the Client. The Client is therefore a Relying Party -for both certificates and CA bundles. The relationship and interaction between -the CA and the Client is out of scope for this model. - -## Secure Connection - -A secure connection is established between two Peers when mutual authentication -exists. Meaning that both Peers identify each other as genuine. An example is a -gNOI connection between the Client and the Target. The procedure for mutual -authentication is described below. - -## Target is authorized trust by the Client - -By authorized trust it is meant that the Target is granted the necessary -credentials (by the Client) to be able to identify Peers as genuine (using -whatever service uses these Certificates). The Target is authorized trust by the -Client via the successful execution of either: - -* gNOI certificate installation or rotation under a Secure connection (where - the Target is not compromised), or -* other provisioning or bootstrapping mechanism described outside of the scope - of this security model. - -## Target Certificate installation or rotation - -To initiate certificate installation using the gNOI Certificate Management -service: - -1. The Client sends parameters to the target so that it can generate a - Certificate Signing Request (CSR). -2. The Target then generates this CSR using its Private Key. -3. The Target then replies with the Certificate to the Client, which - subsequently provides the Certificate to the CA to be signed. -4. The signed Certificate is then returned to the Target by the Client and it - becomes one of the Target’s Certificates. - -Each one of the Target’s Certificate has a unique identifier, the Certificate -ID. This ID is used both to install and to rotate a Certificate. Certificate -installation for an existing Certificate ID MUST fail. Replacing an existing -Certificate must rather use the Certificate rotation mechanism, whose steps are -similar to the ones described above with the addition of final validation. - -## Target CA pool - -In order for the Target to validate the Client or a Peer's Certificates, it must -have a pool of one or more CA Certificates. These are provisioned onto the -Target by the Client during creation or rotation of the Target’s Certificates. - -## Mutual Authentication - -Mutual authentication exists when two Peers validate each other's Certificate -against their CA pools. Optionally, either the Client or the Target can validate -that the Common Name (CN) in each other’s Certificates matches the resolved one -for the Peer address of the connection. From 529a4a3f40c5e6869a3d38bc45f788b5bb2c8c7f Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 16:59:59 +0530 Subject: [PATCH 210/238] Revert "Update generated go" This reverts commit e064a5a4952d664bb4e1e3843242b7f25bbbe86e. --- cert/cert.pb.go | 1090 +++++++++++++---------------------------------- 1 file changed, 288 insertions(+), 802 deletions(-) diff --git a/cert/cert.pb.go b/cert/cert.pb.go index 8686ccc9..45fc5a3c 100644 --- a/cert/cert.pb.go +++ b/cert/cert.pb.go @@ -1,14 +1,45 @@ // Code generated by protoc-gen-go. DO NOT EDIT. -// source: github.com/openconfig/gnoi/cert/cert.proto - +// source: cert/cert.proto + +/* +Package gnoi_certificate is a generated protocol buffer package. + +It is generated from these files: + cert/cert.proto + +It has these top-level messages: + RotateCertificateRequest + RotateCertificateResponse + InstallCertificateRequest + InstallCertificateResponse + GenerateCSRRequest + CSRParams + GenerateCSRResponse + LoadCertificateRequest + LoadCertificateResponse + FinalizeRequest + GetCertificatesRequest + GetCertificatesResponse + CertificateInfo + RevokeCertificatesRequest + RevokeCertificatesResponse + CertificateRevocationError + CanGenerateCSRRequest + CanGenerateCSRResponse + Certificate + CSR + KeyPair + Endpoint +*/ package gnoi_certificate +import proto "github.com/golang/protobuf/proto" +import fmt "fmt" +import math "math" + import ( - fmt "fmt" - proto "github.com/golang/protobuf/proto" context "golang.org/x/net/context" grpc "google.golang.org/grpc" - math "math" ) // Reference imports to suppress errors if they are not otherwise used. @@ -36,7 +67,6 @@ var CertificateType_name = map[int32]string{ 0: "CT_UNKNOWN", 1: "CT_X509", } - var CertificateType_value = map[string]int32{ "CT_UNKNOWN": 0, "CT_X509": 1, @@ -45,10 +75,7 @@ var CertificateType_value = map[string]int32{ func (x CertificateType) String() string { return proto.EnumName(CertificateType_name, int32(x)) } - -func (CertificateType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_35089d6bfca6de66, []int{0} -} +func (CertificateType) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } // Algorithm to be used for generation the key pair. type KeyType int32 @@ -64,7 +91,6 @@ var KeyType_name = map[int32]string{ 0: "KT_UNKNOWN", 1: "KT_RSA", } - var KeyType_value = map[string]int32{ "KT_UNKNOWN": 0, "KT_RSA": 1, @@ -73,10 +99,7 @@ var KeyType_value = map[string]int32{ func (x KeyType) String() string { return proto.EnumName(KeyType_name, int32(x)) } - -func (KeyType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_35089d6bfca6de66, []int{1} -} +func (KeyType) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } // Type of endpoint that can use a cert. This list is to be extended based on // conversation with vendors. @@ -93,7 +116,6 @@ var Endpoint_Type_name = map[int32]string{ 1: "EP_IPSEC_TUNNEL", 2: "EP_DAEMON", } - var Endpoint_Type_value = map[string]int32{ "EP_UNSPECIFIED": 0, "EP_IPSEC_TUNNEL": 1, @@ -103,10 +125,7 @@ var Endpoint_Type_value = map[string]int32{ func (x Endpoint_Type) String() string { return proto.EnumName(Endpoint_Type_name, int32(x)) } - -func (Endpoint_Type) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_35089d6bfca6de66, []int{21, 0} -} +func (Endpoint_Type) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{21, 0} } // Request messages to rotate existing certificates on the target. type RotateCertificateRequest struct { @@ -116,57 +135,30 @@ type RotateCertificateRequest struct { // *RotateCertificateRequest_GenerateCsr // *RotateCertificateRequest_LoadCertificate // *RotateCertificateRequest_FinalizeRotation - RotateRequest isRotateCertificateRequest_RotateRequest `protobuf_oneof:"rotate_request"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + RotateRequest isRotateCertificateRequest_RotateRequest `protobuf_oneof:"rotate_request"` } -func (m *RotateCertificateRequest) Reset() { *m = RotateCertificateRequest{} } -func (m *RotateCertificateRequest) String() string { return proto.CompactTextString(m) } -func (*RotateCertificateRequest) ProtoMessage() {} -func (*RotateCertificateRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_35089d6bfca6de66, []int{0} -} - -func (m *RotateCertificateRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RotateCertificateRequest.Unmarshal(m, b) -} -func (m *RotateCertificateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RotateCertificateRequest.Marshal(b, m, deterministic) -} -func (m *RotateCertificateRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RotateCertificateRequest.Merge(m, src) -} -func (m *RotateCertificateRequest) XXX_Size() int { - return xxx_messageInfo_RotateCertificateRequest.Size(m) -} -func (m *RotateCertificateRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RotateCertificateRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RotateCertificateRequest proto.InternalMessageInfo +func (m *RotateCertificateRequest) Reset() { *m = RotateCertificateRequest{} } +func (m *RotateCertificateRequest) String() string { return proto.CompactTextString(m) } +func (*RotateCertificateRequest) ProtoMessage() {} +func (*RotateCertificateRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } type isRotateCertificateRequest_RotateRequest interface { isRotateCertificateRequest_RotateRequest() } type RotateCertificateRequest_GenerateCsr struct { - GenerateCsr *GenerateCSRRequest `protobuf:"bytes,1,opt,name=generate_csr,json=generateCsr,proto3,oneof"` + GenerateCsr *GenerateCSRRequest `protobuf:"bytes,1,opt,name=generate_csr,json=generateCsr,oneof"` } - type RotateCertificateRequest_LoadCertificate struct { - LoadCertificate *LoadCertificateRequest `protobuf:"bytes,2,opt,name=load_certificate,json=loadCertificate,proto3,oneof"` + LoadCertificate *LoadCertificateRequest `protobuf:"bytes,2,opt,name=load_certificate,json=loadCertificate,oneof"` } - type RotateCertificateRequest_FinalizeRotation struct { - FinalizeRotation *FinalizeRequest `protobuf:"bytes,3,opt,name=finalize_rotation,json=finalizeRotation,proto3,oneof"` + FinalizeRotation *FinalizeRequest `protobuf:"bytes,3,opt,name=finalize_rotation,json=finalizeRotation,oneof"` } -func (*RotateCertificateRequest_GenerateCsr) isRotateCertificateRequest_RotateRequest() {} - -func (*RotateCertificateRequest_LoadCertificate) isRotateCertificateRequest_RotateRequest() {} - +func (*RotateCertificateRequest_GenerateCsr) isRotateCertificateRequest_RotateRequest() {} +func (*RotateCertificateRequest_LoadCertificate) isRotateCertificateRequest_RotateRequest() {} func (*RotateCertificateRequest_FinalizeRotation) isRotateCertificateRequest_RotateRequest() {} func (m *RotateCertificateRequest) GetRotateRequest() isRotateCertificateRequest_RotateRequest { @@ -270,17 +262,17 @@ func _RotateCertificateRequest_OneofSizer(msg proto.Message) (n int) { switch x := m.RotateRequest.(type) { case *RotateCertificateRequest_GenerateCsr: s := proto.Size(x.GenerateCsr) - n += 1 // tag and wire + n += proto.SizeVarint(1<<3 | proto.WireBytes) n += proto.SizeVarint(uint64(s)) n += s case *RotateCertificateRequest_LoadCertificate: s := proto.Size(x.LoadCertificate) - n += 1 // tag and wire + n += proto.SizeVarint(2<<3 | proto.WireBytes) n += proto.SizeVarint(uint64(s)) n += s case *RotateCertificateRequest_FinalizeRotation: s := proto.Size(x.FinalizeRotation) - n += 1 // tag and wire + n += proto.SizeVarint(3<<3 | proto.WireBytes) n += proto.SizeVarint(uint64(s)) n += s case nil: @@ -297,51 +289,26 @@ type RotateCertificateResponse struct { // Types that are valid to be assigned to RotateResponse: // *RotateCertificateResponse_GeneratedCsr // *RotateCertificateResponse_LoadCertificate - RotateResponse isRotateCertificateResponse_RotateResponse `protobuf_oneof:"rotate_response"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RotateCertificateResponse) Reset() { *m = RotateCertificateResponse{} } -func (m *RotateCertificateResponse) String() string { return proto.CompactTextString(m) } -func (*RotateCertificateResponse) ProtoMessage() {} -func (*RotateCertificateResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_35089d6bfca6de66, []int{1} -} - -func (m *RotateCertificateResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RotateCertificateResponse.Unmarshal(m, b) -} -func (m *RotateCertificateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RotateCertificateResponse.Marshal(b, m, deterministic) -} -func (m *RotateCertificateResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RotateCertificateResponse.Merge(m, src) -} -func (m *RotateCertificateResponse) XXX_Size() int { - return xxx_messageInfo_RotateCertificateResponse.Size(m) -} -func (m *RotateCertificateResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RotateCertificateResponse.DiscardUnknown(m) + RotateResponse isRotateCertificateResponse_RotateResponse `protobuf_oneof:"rotate_response"` } -var xxx_messageInfo_RotateCertificateResponse proto.InternalMessageInfo +func (m *RotateCertificateResponse) Reset() { *m = RotateCertificateResponse{} } +func (m *RotateCertificateResponse) String() string { return proto.CompactTextString(m) } +func (*RotateCertificateResponse) ProtoMessage() {} +func (*RotateCertificateResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } type isRotateCertificateResponse_RotateResponse interface { isRotateCertificateResponse_RotateResponse() } type RotateCertificateResponse_GeneratedCsr struct { - GeneratedCsr *GenerateCSRResponse `protobuf:"bytes,1,opt,name=generated_csr,json=generatedCsr,proto3,oneof"` + GeneratedCsr *GenerateCSRResponse `protobuf:"bytes,1,opt,name=generated_csr,json=generatedCsr,oneof"` } - type RotateCertificateResponse_LoadCertificate struct { - LoadCertificate *LoadCertificateResponse `protobuf:"bytes,2,opt,name=load_certificate,json=loadCertificate,proto3,oneof"` + LoadCertificate *LoadCertificateResponse `protobuf:"bytes,2,opt,name=load_certificate,json=loadCertificate,oneof"` } -func (*RotateCertificateResponse_GeneratedCsr) isRotateCertificateResponse_RotateResponse() {} - +func (*RotateCertificateResponse_GeneratedCsr) isRotateCertificateResponse_RotateResponse() {} func (*RotateCertificateResponse_LoadCertificate) isRotateCertificateResponse_RotateResponse() {} func (m *RotateCertificateResponse) GetRotateResponse() isRotateCertificateResponse_RotateResponse { @@ -424,12 +391,12 @@ func _RotateCertificateResponse_OneofSizer(msg proto.Message) (n int) { switch x := m.RotateResponse.(type) { case *RotateCertificateResponse_GeneratedCsr: s := proto.Size(x.GeneratedCsr) - n += 1 // tag and wire + n += proto.SizeVarint(1<<3 | proto.WireBytes) n += proto.SizeVarint(uint64(s)) n += s case *RotateCertificateResponse_LoadCertificate: s := proto.Size(x.LoadCertificate) - n += 1 // tag and wire + n += proto.SizeVarint(2<<3 | proto.WireBytes) n += proto.SizeVarint(uint64(s)) n += s case nil: @@ -446,51 +413,26 @@ type InstallCertificateRequest struct { // Types that are valid to be assigned to InstallRequest: // *InstallCertificateRequest_GenerateCsr // *InstallCertificateRequest_LoadCertificate - InstallRequest isInstallCertificateRequest_InstallRequest `protobuf_oneof:"install_request"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *InstallCertificateRequest) Reset() { *m = InstallCertificateRequest{} } -func (m *InstallCertificateRequest) String() string { return proto.CompactTextString(m) } -func (*InstallCertificateRequest) ProtoMessage() {} -func (*InstallCertificateRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_35089d6bfca6de66, []int{2} -} - -func (m *InstallCertificateRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_InstallCertificateRequest.Unmarshal(m, b) -} -func (m *InstallCertificateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_InstallCertificateRequest.Marshal(b, m, deterministic) -} -func (m *InstallCertificateRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_InstallCertificateRequest.Merge(m, src) -} -func (m *InstallCertificateRequest) XXX_Size() int { - return xxx_messageInfo_InstallCertificateRequest.Size(m) -} -func (m *InstallCertificateRequest) XXX_DiscardUnknown() { - xxx_messageInfo_InstallCertificateRequest.DiscardUnknown(m) + InstallRequest isInstallCertificateRequest_InstallRequest `protobuf_oneof:"install_request"` } -var xxx_messageInfo_InstallCertificateRequest proto.InternalMessageInfo +func (m *InstallCertificateRequest) Reset() { *m = InstallCertificateRequest{} } +func (m *InstallCertificateRequest) String() string { return proto.CompactTextString(m) } +func (*InstallCertificateRequest) ProtoMessage() {} +func (*InstallCertificateRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} } type isInstallCertificateRequest_InstallRequest interface { isInstallCertificateRequest_InstallRequest() } type InstallCertificateRequest_GenerateCsr struct { - GenerateCsr *GenerateCSRRequest `protobuf:"bytes,1,opt,name=generate_csr,json=generateCsr,proto3,oneof"` + GenerateCsr *GenerateCSRRequest `protobuf:"bytes,1,opt,name=generate_csr,json=generateCsr,oneof"` } - type InstallCertificateRequest_LoadCertificate struct { - LoadCertificate *LoadCertificateRequest `protobuf:"bytes,2,opt,name=load_certificate,json=loadCertificate,proto3,oneof"` + LoadCertificate *LoadCertificateRequest `protobuf:"bytes,2,opt,name=load_certificate,json=loadCertificate,oneof"` } -func (*InstallCertificateRequest_GenerateCsr) isInstallCertificateRequest_InstallRequest() {} - +func (*InstallCertificateRequest_GenerateCsr) isInstallCertificateRequest_InstallRequest() {} func (*InstallCertificateRequest_LoadCertificate) isInstallCertificateRequest_InstallRequest() {} func (m *InstallCertificateRequest) GetInstallRequest() isInstallCertificateRequest_InstallRequest { @@ -573,12 +515,12 @@ func _InstallCertificateRequest_OneofSizer(msg proto.Message) (n int) { switch x := m.InstallRequest.(type) { case *InstallCertificateRequest_GenerateCsr: s := proto.Size(x.GenerateCsr) - n += 1 // tag and wire + n += proto.SizeVarint(1<<3 | proto.WireBytes) n += proto.SizeVarint(uint64(s)) n += s case *InstallCertificateRequest_LoadCertificate: s := proto.Size(x.LoadCertificate) - n += 1 // tag and wire + n += proto.SizeVarint(2<<3 | proto.WireBytes) n += proto.SizeVarint(uint64(s)) n += s case nil: @@ -595,51 +537,26 @@ type InstallCertificateResponse struct { // Types that are valid to be assigned to InstallResponse: // *InstallCertificateResponse_GeneratedCsr // *InstallCertificateResponse_LoadCertificate - InstallResponse isInstallCertificateResponse_InstallResponse `protobuf_oneof:"install_response"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + InstallResponse isInstallCertificateResponse_InstallResponse `protobuf_oneof:"install_response"` } -func (m *InstallCertificateResponse) Reset() { *m = InstallCertificateResponse{} } -func (m *InstallCertificateResponse) String() string { return proto.CompactTextString(m) } -func (*InstallCertificateResponse) ProtoMessage() {} -func (*InstallCertificateResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_35089d6bfca6de66, []int{3} -} - -func (m *InstallCertificateResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_InstallCertificateResponse.Unmarshal(m, b) -} -func (m *InstallCertificateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_InstallCertificateResponse.Marshal(b, m, deterministic) -} -func (m *InstallCertificateResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_InstallCertificateResponse.Merge(m, src) -} -func (m *InstallCertificateResponse) XXX_Size() int { - return xxx_messageInfo_InstallCertificateResponse.Size(m) -} -func (m *InstallCertificateResponse) XXX_DiscardUnknown() { - xxx_messageInfo_InstallCertificateResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_InstallCertificateResponse proto.InternalMessageInfo +func (m *InstallCertificateResponse) Reset() { *m = InstallCertificateResponse{} } +func (m *InstallCertificateResponse) String() string { return proto.CompactTextString(m) } +func (*InstallCertificateResponse) ProtoMessage() {} +func (*InstallCertificateResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} } type isInstallCertificateResponse_InstallResponse interface { isInstallCertificateResponse_InstallResponse() } type InstallCertificateResponse_GeneratedCsr struct { - GeneratedCsr *GenerateCSRResponse `protobuf:"bytes,1,opt,name=generated_csr,json=generatedCsr,proto3,oneof"` + GeneratedCsr *GenerateCSRResponse `protobuf:"bytes,1,opt,name=generated_csr,json=generatedCsr,oneof"` } - type InstallCertificateResponse_LoadCertificate struct { - LoadCertificate *LoadCertificateResponse `protobuf:"bytes,2,opt,name=load_certificate,json=loadCertificate,proto3,oneof"` + LoadCertificate *LoadCertificateResponse `protobuf:"bytes,2,opt,name=load_certificate,json=loadCertificate,oneof"` } -func (*InstallCertificateResponse_GeneratedCsr) isInstallCertificateResponse_InstallResponse() {} - +func (*InstallCertificateResponse_GeneratedCsr) isInstallCertificateResponse_InstallResponse() {} func (*InstallCertificateResponse_LoadCertificate) isInstallCertificateResponse_InstallResponse() {} func (m *InstallCertificateResponse) GetInstallResponse() isInstallCertificateResponse_InstallResponse { @@ -722,12 +639,12 @@ func _InstallCertificateResponse_OneofSizer(msg proto.Message) (n int) { switch x := m.InstallResponse.(type) { case *InstallCertificateResponse_GeneratedCsr: s := proto.Size(x.GeneratedCsr) - n += 1 // tag and wire + n += proto.SizeVarint(1<<3 | proto.WireBytes) n += proto.SizeVarint(uint64(s)) n += s case *InstallCertificateResponse_LoadCertificate: s := proto.Size(x.LoadCertificate) - n += 1 // tag and wire + n += proto.SizeVarint(2<<3 | proto.WireBytes) n += proto.SizeVarint(uint64(s)) n += s case nil: @@ -754,40 +671,17 @@ func _InstallCertificateResponse_OneofSizer(msg proto.Message) (n int) { // the GenerateCSRRequest should fail. type GenerateCSRRequest struct { // Parameters for creating a CSR. - CsrParams *CSRParams `protobuf:"bytes,1,opt,name=csr_params,json=csrParams,proto3" json:"csr_params,omitempty"` + CsrParams *CSRParams `protobuf:"bytes,1,opt,name=csr_params,json=csrParams" json:"csr_params,omitempty"` // The certificate id with which this CSR will be associated. The target // configuration should bind an entity which wants to use a certificate to // the certificate_id it should use. - CertificateId string `protobuf:"bytes,2,opt,name=certificate_id,json=certificateId,proto3" json:"certificate_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + CertificateId string `protobuf:"bytes,2,opt,name=certificate_id,json=certificateId" json:"certificate_id,omitempty"` } -func (m *GenerateCSRRequest) Reset() { *m = GenerateCSRRequest{} } -func (m *GenerateCSRRequest) String() string { return proto.CompactTextString(m) } -func (*GenerateCSRRequest) ProtoMessage() {} -func (*GenerateCSRRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_35089d6bfca6de66, []int{4} -} - -func (m *GenerateCSRRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GenerateCSRRequest.Unmarshal(m, b) -} -func (m *GenerateCSRRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GenerateCSRRequest.Marshal(b, m, deterministic) -} -func (m *GenerateCSRRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GenerateCSRRequest.Merge(m, src) -} -func (m *GenerateCSRRequest) XXX_Size() int { - return xxx_messageInfo_GenerateCSRRequest.Size(m) -} -func (m *GenerateCSRRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GenerateCSRRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_GenerateCSRRequest proto.InternalMessageInfo +func (m *GenerateCSRRequest) Reset() { *m = GenerateCSRRequest{} } +func (m *GenerateCSRRequest) String() string { return proto.CompactTextString(m) } +func (*GenerateCSRRequest) ProtoMessage() {} +func (*GenerateCSRRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} } func (m *GenerateCSRRequest) GetCsrParams() *CSRParams { if m != nil { @@ -805,53 +699,30 @@ func (m *GenerateCSRRequest) GetCertificateId() string { // Parameters to be used when generating a Certificate Signing Request. type CSRParams struct { - // The type of certificate which will be associated for this CSR. - Type CertificateType `protobuf:"varint,1,opt,name=type,proto3,enum=gnoi.certificate.CertificateType" json:"type,omitempty"` + // The type of certificate which will be will be associated for this CSR. + Type CertificateType `protobuf:"varint,1,opt,name=type,enum=gnoi.certificate.CertificateType" json:"type,omitempty"` // Minimum size of the key to be used by the target when generating a // public/private key pair. - MinKeySize uint32 `protobuf:"varint,2,opt,name=min_key_size,json=minKeySize,proto3" json:"min_key_size,omitempty"` + MinKeySize uint32 `protobuf:"varint,2,opt,name=min_key_size,json=minKeySize" json:"min_key_size,omitempty"` // If provided, the target must use the provided key type. If the target // cannot use the algorithm specified in the key_type, it should cancel the // stream with an Unimplemented error. - KeyType KeyType `protobuf:"varint,3,opt,name=key_type,json=keyType,proto3,enum=gnoi.certificate.KeyType" json:"key_type,omitempty"` + KeyType KeyType `protobuf:"varint,3,opt,name=key_type,json=keyType,enum=gnoi.certificate.KeyType" json:"key_type,omitempty"` // --- common set of parameters applicable for any type of certificate --- // - CommonName string `protobuf:"bytes,4,opt,name=common_name,json=commonName,proto3" json:"common_name,omitempty"` - Country string `protobuf:"bytes,5,opt,name=country,proto3" json:"country,omitempty"` - State string `protobuf:"bytes,6,opt,name=state,proto3" json:"state,omitempty"` - City string `protobuf:"bytes,7,opt,name=city,proto3" json:"city,omitempty"` - Organization string `protobuf:"bytes,8,opt,name=organization,proto3" json:"organization,omitempty"` - OrganizationalUnit string `protobuf:"bytes,9,opt,name=organizational_unit,json=organizationalUnit,proto3" json:"organizational_unit,omitempty"` - IpAddress string `protobuf:"bytes,10,opt,name=ip_address,json=ipAddress,proto3" json:"ip_address,omitempty"` - EmailId string `protobuf:"bytes,11,opt,name=email_id,json=emailId,proto3" json:"email_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + CommonName string `protobuf:"bytes,4,opt,name=common_name,json=commonName" json:"common_name,omitempty"` + Country string `protobuf:"bytes,5,opt,name=country" json:"country,omitempty"` + State string `protobuf:"bytes,6,opt,name=state" json:"state,omitempty"` + City string `protobuf:"bytes,7,opt,name=city" json:"city,omitempty"` + Organization string `protobuf:"bytes,8,opt,name=organization" json:"organization,omitempty"` + OrganizationalUnit string `protobuf:"bytes,9,opt,name=organizational_unit,json=organizationalUnit" json:"organizational_unit,omitempty"` + IpAddress string `protobuf:"bytes,10,opt,name=ip_address,json=ipAddress" json:"ip_address,omitempty"` + EmailId string `protobuf:"bytes,11,opt,name=email_id,json=emailId" json:"email_id,omitempty"` } -func (m *CSRParams) Reset() { *m = CSRParams{} } -func (m *CSRParams) String() string { return proto.CompactTextString(m) } -func (*CSRParams) ProtoMessage() {} -func (*CSRParams) Descriptor() ([]byte, []int) { - return fileDescriptor_35089d6bfca6de66, []int{5} -} - -func (m *CSRParams) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CSRParams.Unmarshal(m, b) -} -func (m *CSRParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CSRParams.Marshal(b, m, deterministic) -} -func (m *CSRParams) XXX_Merge(src proto.Message) { - xxx_messageInfo_CSRParams.Merge(m, src) -} -func (m *CSRParams) XXX_Size() int { - return xxx_messageInfo_CSRParams.Size(m) -} -func (m *CSRParams) XXX_DiscardUnknown() { - xxx_messageInfo_CSRParams.DiscardUnknown(m) -} - -var xxx_messageInfo_CSRParams proto.InternalMessageInfo +func (m *CSRParams) Reset() { *m = CSRParams{} } +func (m *CSRParams) String() string { return proto.CompactTextString(m) } +func (*CSRParams) ProtoMessage() {} +func (*CSRParams) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} } func (m *CSRParams) GetType() CertificateType { if m != nil { @@ -938,36 +809,13 @@ func (m *CSRParams) GetEmailId() string { // An Unimplemented error will be returned if the target cannot generate a CSR // as per the request. In this case, the caller must generate its own key pair. type GenerateCSRResponse struct { - Csr *CSR `protobuf:"bytes,1,opt,name=csr,proto3" json:"csr,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Csr *CSR `protobuf:"bytes,1,opt,name=csr" json:"csr,omitempty"` } -func (m *GenerateCSRResponse) Reset() { *m = GenerateCSRResponse{} } -func (m *GenerateCSRResponse) String() string { return proto.CompactTextString(m) } -func (*GenerateCSRResponse) ProtoMessage() {} -func (*GenerateCSRResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_35089d6bfca6de66, []int{6} -} - -func (m *GenerateCSRResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GenerateCSRResponse.Unmarshal(m, b) -} -func (m *GenerateCSRResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GenerateCSRResponse.Marshal(b, m, deterministic) -} -func (m *GenerateCSRResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GenerateCSRResponse.Merge(m, src) -} -func (m *GenerateCSRResponse) XXX_Size() int { - return xxx_messageInfo_GenerateCSRResponse.Size(m) -} -func (m *GenerateCSRResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GenerateCSRResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_GenerateCSRResponse proto.InternalMessageInfo +func (m *GenerateCSRResponse) Reset() { *m = GenerateCSRResponse{} } +func (m *GenerateCSRResponse) String() string { return proto.CompactTextString(m) } +func (*GenerateCSRResponse) ProtoMessage() {} +func (*GenerateCSRResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} } func (m *GenerateCSRResponse) GetCsr() *CSR { if m != nil { @@ -992,48 +840,20 @@ func (m *GenerateCSRResponse) GetCsr() *CSR { // the LoadCertificateRequest must fail. type LoadCertificateRequest struct { // The certificate to be Loaded on the target. - Certificate *Certificate `protobuf:"bytes,1,opt,name=certificate,proto3" json:"certificate,omitempty"` + Certificate *Certificate `protobuf:"bytes,1,opt,name=certificate" json:"certificate,omitempty"` // The key pair to be used with the certificate. This is provided in the event // that the target cannot generate a CSR (and the corresponding public/private // keys). - KeyPair *KeyPair `protobuf:"bytes,2,opt,name=key_pair,json=keyPair,proto3" json:"key_pair,omitempty"` + KeyPair *KeyPair `protobuf:"bytes,2,opt,name=key_pair,json=keyPair" json:"key_pair,omitempty"` // Certificate Id of the above certificate. This is to be provided only when // there is an externally generated key pair. - CertificateId string `protobuf:"bytes,3,opt,name=certificate_id,json=certificateId,proto3" json:"certificate_id,omitempty"` - // Optional bundle of CA certificates. When not empty, the provided - // certificates should squash the existing bundle. This field provides a - // simplified means to provision a CA bundle that can be used to validate - // other peer's certificates. - CaCertificates []*Certificate `protobuf:"bytes,4,rep,name=ca_certificates,json=caCertificates,proto3" json:"ca_certificates,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + CertificateId string `protobuf:"bytes,3,opt,name=certificate_id,json=certificateId" json:"certificate_id,omitempty"` } -func (m *LoadCertificateRequest) Reset() { *m = LoadCertificateRequest{} } -func (m *LoadCertificateRequest) String() string { return proto.CompactTextString(m) } -func (*LoadCertificateRequest) ProtoMessage() {} -func (*LoadCertificateRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_35089d6bfca6de66, []int{7} -} - -func (m *LoadCertificateRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_LoadCertificateRequest.Unmarshal(m, b) -} -func (m *LoadCertificateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_LoadCertificateRequest.Marshal(b, m, deterministic) -} -func (m *LoadCertificateRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_LoadCertificateRequest.Merge(m, src) -} -func (m *LoadCertificateRequest) XXX_Size() int { - return xxx_messageInfo_LoadCertificateRequest.Size(m) -} -func (m *LoadCertificateRequest) XXX_DiscardUnknown() { - xxx_messageInfo_LoadCertificateRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_LoadCertificateRequest proto.InternalMessageInfo +func (m *LoadCertificateRequest) Reset() { *m = LoadCertificateRequest{} } +func (m *LoadCertificateRequest) String() string { return proto.CompactTextString(m) } +func (*LoadCertificateRequest) ProtoMessage() {} +func (*LoadCertificateRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} } func (m *LoadCertificateRequest) GetCertificate() *Certificate { if m != nil { @@ -1056,147 +876,48 @@ func (m *LoadCertificateRequest) GetCertificateId() string { return "" } -func (m *LoadCertificateRequest) GetCaCertificates() []*Certificate { - if m != nil { - return m.CaCertificates - } - return nil -} - // Response from target after Loading a Certificate. // If the target could not load the certificate, it must end the RPC stream with // a suitable RPC error about why the Certificate was not loaded. type LoadCertificateResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *LoadCertificateResponse) Reset() { *m = LoadCertificateResponse{} } -func (m *LoadCertificateResponse) String() string { return proto.CompactTextString(m) } -func (*LoadCertificateResponse) ProtoMessage() {} -func (*LoadCertificateResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_35089d6bfca6de66, []int{8} -} - -func (m *LoadCertificateResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_LoadCertificateResponse.Unmarshal(m, b) -} -func (m *LoadCertificateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_LoadCertificateResponse.Marshal(b, m, deterministic) -} -func (m *LoadCertificateResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_LoadCertificateResponse.Merge(m, src) -} -func (m *LoadCertificateResponse) XXX_Size() int { - return xxx_messageInfo_LoadCertificateResponse.Size(m) -} -func (m *LoadCertificateResponse) XXX_DiscardUnknown() { - xxx_messageInfo_LoadCertificateResponse.DiscardUnknown(m) } -var xxx_messageInfo_LoadCertificateResponse proto.InternalMessageInfo +func (m *LoadCertificateResponse) Reset() { *m = LoadCertificateResponse{} } +func (m *LoadCertificateResponse) String() string { return proto.CompactTextString(m) } +func (*LoadCertificateResponse) ProtoMessage() {} +func (*LoadCertificateResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} } // A Finalize message is sent to the target to confirm the Rotation of // the certificate and that the certificate should not be rolled back when // the RPC concludes. The certificate must be rolled back if the target returns // an error after receiving a Finalize message. type FinalizeRequest struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` } -func (m *FinalizeRequest) Reset() { *m = FinalizeRequest{} } -func (m *FinalizeRequest) String() string { return proto.CompactTextString(m) } -func (*FinalizeRequest) ProtoMessage() {} -func (*FinalizeRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_35089d6bfca6de66, []int{9} -} - -func (m *FinalizeRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_FinalizeRequest.Unmarshal(m, b) -} -func (m *FinalizeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_FinalizeRequest.Marshal(b, m, deterministic) -} -func (m *FinalizeRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_FinalizeRequest.Merge(m, src) -} -func (m *FinalizeRequest) XXX_Size() int { - return xxx_messageInfo_FinalizeRequest.Size(m) -} -func (m *FinalizeRequest) XXX_DiscardUnknown() { - xxx_messageInfo_FinalizeRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_FinalizeRequest proto.InternalMessageInfo +func (m *FinalizeRequest) Reset() { *m = FinalizeRequest{} } +func (m *FinalizeRequest) String() string { return proto.CompactTextString(m) } +func (*FinalizeRequest) ProtoMessage() {} +func (*FinalizeRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{9} } // The request to query all the certificates on the target. type GetCertificatesRequest struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetCertificatesRequest) Reset() { *m = GetCertificatesRequest{} } -func (m *GetCertificatesRequest) String() string { return proto.CompactTextString(m) } -func (*GetCertificatesRequest) ProtoMessage() {} -func (*GetCertificatesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_35089d6bfca6de66, []int{10} -} - -func (m *GetCertificatesRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetCertificatesRequest.Unmarshal(m, b) -} -func (m *GetCertificatesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetCertificatesRequest.Marshal(b, m, deterministic) -} -func (m *GetCertificatesRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetCertificatesRequest.Merge(m, src) -} -func (m *GetCertificatesRequest) XXX_Size() int { - return xxx_messageInfo_GetCertificatesRequest.Size(m) -} -func (m *GetCertificatesRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetCertificatesRequest.DiscardUnknown(m) } -var xxx_messageInfo_GetCertificatesRequest proto.InternalMessageInfo +func (m *GetCertificatesRequest) Reset() { *m = GetCertificatesRequest{} } +func (m *GetCertificatesRequest) String() string { return proto.CompactTextString(m) } +func (*GetCertificatesRequest) ProtoMessage() {} +func (*GetCertificatesRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{10} } // Response from the target about the certificates that exist on the target what // what is using them. type GetCertificatesResponse struct { - CertificateInfo []*CertificateInfo `protobuf:"bytes,1,rep,name=certificate_info,json=certificateInfo,proto3" json:"certificate_info,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + CertificateInfo []*CertificateInfo `protobuf:"bytes,1,rep,name=certificate_info,json=certificateInfo" json:"certificate_info,omitempty"` } -func (m *GetCertificatesResponse) Reset() { *m = GetCertificatesResponse{} } -func (m *GetCertificatesResponse) String() string { return proto.CompactTextString(m) } -func (*GetCertificatesResponse) ProtoMessage() {} -func (*GetCertificatesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_35089d6bfca6de66, []int{11} -} - -func (m *GetCertificatesResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetCertificatesResponse.Unmarshal(m, b) -} -func (m *GetCertificatesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetCertificatesResponse.Marshal(b, m, deterministic) -} -func (m *GetCertificatesResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetCertificatesResponse.Merge(m, src) -} -func (m *GetCertificatesResponse) XXX_Size() int { - return xxx_messageInfo_GetCertificatesResponse.Size(m) -} -func (m *GetCertificatesResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetCertificatesResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_GetCertificatesResponse proto.InternalMessageInfo +func (m *GetCertificatesResponse) Reset() { *m = GetCertificatesResponse{} } +func (m *GetCertificatesResponse) String() string { return proto.CompactTextString(m) } +func (*GetCertificatesResponse) ProtoMessage() {} +func (*GetCertificatesResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{11} } func (m *GetCertificatesResponse) GetCertificateInfo() []*CertificateInfo { if m != nil { @@ -1206,42 +927,19 @@ func (m *GetCertificatesResponse) GetCertificateInfo() []*CertificateInfo { } type CertificateInfo struct { - CertificateId string `protobuf:"bytes,1,opt,name=certificate_id,json=certificateId,proto3" json:"certificate_id,omitempty"` - Certificate *Certificate `protobuf:"bytes,2,opt,name=certificate,proto3" json:"certificate,omitempty"` + CertificateId string `protobuf:"bytes,1,opt,name=certificate_id,json=certificateId" json:"certificate_id,omitempty"` + Certificate *Certificate `protobuf:"bytes,2,opt,name=certificate" json:"certificate,omitempty"` // List of endpoints using this certificate. - Endpoints []*Endpoint `protobuf:"bytes,3,rep,name=endpoints,proto3" json:"endpoints,omitempty"` + Endpoints []*Endpoint `protobuf:"bytes,3,rep,name=endpoints" json:"endpoints,omitempty"` // System modification time when the certificate was installed/rotated in // nanoseconds since epoch. - ModificationTime int64 `protobuf:"varint,4,opt,name=modification_time,json=modificationTime,proto3" json:"modification_time,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + ModificationTime int64 `protobuf:"varint,4,opt,name=modification_time,json=modificationTime" json:"modification_time,omitempty"` } -func (m *CertificateInfo) Reset() { *m = CertificateInfo{} } -func (m *CertificateInfo) String() string { return proto.CompactTextString(m) } -func (*CertificateInfo) ProtoMessage() {} -func (*CertificateInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_35089d6bfca6de66, []int{12} -} - -func (m *CertificateInfo) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CertificateInfo.Unmarshal(m, b) -} -func (m *CertificateInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CertificateInfo.Marshal(b, m, deterministic) -} -func (m *CertificateInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_CertificateInfo.Merge(m, src) -} -func (m *CertificateInfo) XXX_Size() int { - return xxx_messageInfo_CertificateInfo.Size(m) -} -func (m *CertificateInfo) XXX_DiscardUnknown() { - xxx_messageInfo_CertificateInfo.DiscardUnknown(m) -} - -var xxx_messageInfo_CertificateInfo proto.InternalMessageInfo +func (m *CertificateInfo) Reset() { *m = CertificateInfo{} } +func (m *CertificateInfo) String() string { return proto.CompactTextString(m) } +func (*CertificateInfo) ProtoMessage() {} +func (*CertificateInfo) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{12} } func (m *CertificateInfo) GetCertificateId() string { if m != nil { @@ -1273,36 +971,13 @@ func (m *CertificateInfo) GetModificationTime() int64 { type RevokeCertificatesRequest struct { // Certificates to revoke. - CertificateId []string `protobuf:"bytes,1,rep,name=certificate_id,json=certificateId,proto3" json:"certificate_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RevokeCertificatesRequest) Reset() { *m = RevokeCertificatesRequest{} } -func (m *RevokeCertificatesRequest) String() string { return proto.CompactTextString(m) } -func (*RevokeCertificatesRequest) ProtoMessage() {} -func (*RevokeCertificatesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_35089d6bfca6de66, []int{13} -} - -func (m *RevokeCertificatesRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RevokeCertificatesRequest.Unmarshal(m, b) -} -func (m *RevokeCertificatesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RevokeCertificatesRequest.Marshal(b, m, deterministic) -} -func (m *RevokeCertificatesRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RevokeCertificatesRequest.Merge(m, src) -} -func (m *RevokeCertificatesRequest) XXX_Size() int { - return xxx_messageInfo_RevokeCertificatesRequest.Size(m) -} -func (m *RevokeCertificatesRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RevokeCertificatesRequest.DiscardUnknown(m) + CertificateId []string `protobuf:"bytes,1,rep,name=certificate_id,json=certificateId" json:"certificate_id,omitempty"` } -var xxx_messageInfo_RevokeCertificatesRequest proto.InternalMessageInfo +func (m *RevokeCertificatesRequest) Reset() { *m = RevokeCertificatesRequest{} } +func (m *RevokeCertificatesRequest) String() string { return proto.CompactTextString(m) } +func (*RevokeCertificatesRequest) ProtoMessage() {} +func (*RevokeCertificatesRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{13} } func (m *RevokeCertificatesRequest) GetCertificateId() []string { if m != nil { @@ -1313,38 +988,15 @@ func (m *RevokeCertificatesRequest) GetCertificateId() []string { type RevokeCertificatesResponse struct { // List of certificates successfully revoked. - RevokedCertificateId []string `protobuf:"bytes,1,rep,name=revoked_certificate_id,json=revokedCertificateId,proto3" json:"revoked_certificate_id,omitempty"` + RevokedCertificateId []string `protobuf:"bytes,1,rep,name=revoked_certificate_id,json=revokedCertificateId" json:"revoked_certificate_id,omitempty"` // List of errors why certain certificates could not be revoked. - CertificateRevocationError []*CertificateRevocationError `protobuf:"bytes,2,rep,name=certificate_revocation_error,json=certificateRevocationError,proto3" json:"certificate_revocation_error,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RevokeCertificatesResponse) Reset() { *m = RevokeCertificatesResponse{} } -func (m *RevokeCertificatesResponse) String() string { return proto.CompactTextString(m) } -func (*RevokeCertificatesResponse) ProtoMessage() {} -func (*RevokeCertificatesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_35089d6bfca6de66, []int{14} -} - -func (m *RevokeCertificatesResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RevokeCertificatesResponse.Unmarshal(m, b) -} -func (m *RevokeCertificatesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RevokeCertificatesResponse.Marshal(b, m, deterministic) -} -func (m *RevokeCertificatesResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RevokeCertificatesResponse.Merge(m, src) -} -func (m *RevokeCertificatesResponse) XXX_Size() int { - return xxx_messageInfo_RevokeCertificatesResponse.Size(m) -} -func (m *RevokeCertificatesResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RevokeCertificatesResponse.DiscardUnknown(m) + CertificateRevocationError []*CertificateRevocationError `protobuf:"bytes,2,rep,name=certificate_revocation_error,json=certificateRevocationError" json:"certificate_revocation_error,omitempty"` } -var xxx_messageInfo_RevokeCertificatesResponse proto.InternalMessageInfo +func (m *RevokeCertificatesResponse) Reset() { *m = RevokeCertificatesResponse{} } +func (m *RevokeCertificatesResponse) String() string { return proto.CompactTextString(m) } +func (*RevokeCertificatesResponse) ProtoMessage() {} +func (*RevokeCertificatesResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{14} } func (m *RevokeCertificatesResponse) GetRevokedCertificateId() []string { if m != nil { @@ -1362,37 +1014,14 @@ func (m *RevokeCertificatesResponse) GetCertificateRevocationError() []*Certific // An error message indicating why a certificate id could not be revoked. type CertificateRevocationError struct { - CertificateId string `protobuf:"bytes,1,opt,name=certificate_id,json=certificateId,proto3" json:"certificate_id,omitempty"` - ErrorMessage string `protobuf:"bytes,2,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + CertificateId string `protobuf:"bytes,1,opt,name=certificate_id,json=certificateId" json:"certificate_id,omitempty"` + ErrorMessage string `protobuf:"bytes,2,opt,name=error_message,json=errorMessage" json:"error_message,omitempty"` } -func (m *CertificateRevocationError) Reset() { *m = CertificateRevocationError{} } -func (m *CertificateRevocationError) String() string { return proto.CompactTextString(m) } -func (*CertificateRevocationError) ProtoMessage() {} -func (*CertificateRevocationError) Descriptor() ([]byte, []int) { - return fileDescriptor_35089d6bfca6de66, []int{15} -} - -func (m *CertificateRevocationError) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CertificateRevocationError.Unmarshal(m, b) -} -func (m *CertificateRevocationError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CertificateRevocationError.Marshal(b, m, deterministic) -} -func (m *CertificateRevocationError) XXX_Merge(src proto.Message) { - xxx_messageInfo_CertificateRevocationError.Merge(m, src) -} -func (m *CertificateRevocationError) XXX_Size() int { - return xxx_messageInfo_CertificateRevocationError.Size(m) -} -func (m *CertificateRevocationError) XXX_DiscardUnknown() { - xxx_messageInfo_CertificateRevocationError.DiscardUnknown(m) -} - -var xxx_messageInfo_CertificateRevocationError proto.InternalMessageInfo +func (m *CertificateRevocationError) Reset() { *m = CertificateRevocationError{} } +func (m *CertificateRevocationError) String() string { return proto.CompactTextString(m) } +func (*CertificateRevocationError) ProtoMessage() {} +func (*CertificateRevocationError) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{15} } func (m *CertificateRevocationError) GetCertificateId() string { if m != nil { @@ -1410,38 +1039,15 @@ func (m *CertificateRevocationError) GetErrorMessage() string { // A request to ask the target if it can generate key pairs. type CanGenerateCSRRequest struct { - KeyType KeyType `protobuf:"varint,1,opt,name=key_type,json=keyType,proto3,enum=gnoi.certificate.KeyType" json:"key_type,omitempty"` - CertificateType CertificateType `protobuf:"varint,2,opt,name=certificate_type,json=certificateType,proto3,enum=gnoi.certificate.CertificateType" json:"certificate_type,omitempty"` - KeySize uint32 `protobuf:"varint,3,opt,name=key_size,json=keySize,proto3" json:"key_size,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + KeyType KeyType `protobuf:"varint,1,opt,name=key_type,json=keyType,enum=gnoi.certificate.KeyType" json:"key_type,omitempty"` + CertificateType CertificateType `protobuf:"varint,2,opt,name=certificate_type,json=certificateType,enum=gnoi.certificate.CertificateType" json:"certificate_type,omitempty"` + KeySize uint32 `protobuf:"varint,3,opt,name=key_size,json=keySize" json:"key_size,omitempty"` } -func (m *CanGenerateCSRRequest) Reset() { *m = CanGenerateCSRRequest{} } -func (m *CanGenerateCSRRequest) String() string { return proto.CompactTextString(m) } -func (*CanGenerateCSRRequest) ProtoMessage() {} -func (*CanGenerateCSRRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_35089d6bfca6de66, []int{16} -} - -func (m *CanGenerateCSRRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CanGenerateCSRRequest.Unmarshal(m, b) -} -func (m *CanGenerateCSRRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CanGenerateCSRRequest.Marshal(b, m, deterministic) -} -func (m *CanGenerateCSRRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_CanGenerateCSRRequest.Merge(m, src) -} -func (m *CanGenerateCSRRequest) XXX_Size() int { - return xxx_messageInfo_CanGenerateCSRRequest.Size(m) -} -func (m *CanGenerateCSRRequest) XXX_DiscardUnknown() { - xxx_messageInfo_CanGenerateCSRRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_CanGenerateCSRRequest proto.InternalMessageInfo +func (m *CanGenerateCSRRequest) Reset() { *m = CanGenerateCSRRequest{} } +func (m *CanGenerateCSRRequest) String() string { return proto.CompactTextString(m) } +func (*CanGenerateCSRRequest) ProtoMessage() {} +func (*CanGenerateCSRRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{16} } func (m *CanGenerateCSRRequest) GetKeyType() KeyType { if m != nil { @@ -1467,36 +1073,13 @@ func (m *CanGenerateCSRRequest) GetKeySize() uint32 { // Response from the target about whether it can generate a CSR with the given // parameters. type CanGenerateCSRResponse struct { - CanGenerate bool `protobuf:"varint,4,opt,name=can_generate,json=canGenerate,proto3" json:"can_generate,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CanGenerateCSRResponse) Reset() { *m = CanGenerateCSRResponse{} } -func (m *CanGenerateCSRResponse) String() string { return proto.CompactTextString(m) } -func (*CanGenerateCSRResponse) ProtoMessage() {} -func (*CanGenerateCSRResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_35089d6bfca6de66, []int{17} -} - -func (m *CanGenerateCSRResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CanGenerateCSRResponse.Unmarshal(m, b) -} -func (m *CanGenerateCSRResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CanGenerateCSRResponse.Marshal(b, m, deterministic) -} -func (m *CanGenerateCSRResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_CanGenerateCSRResponse.Merge(m, src) -} -func (m *CanGenerateCSRResponse) XXX_Size() int { - return xxx_messageInfo_CanGenerateCSRResponse.Size(m) -} -func (m *CanGenerateCSRResponse) XXX_DiscardUnknown() { - xxx_messageInfo_CanGenerateCSRResponse.DiscardUnknown(m) + CanGenerate bool `protobuf:"varint,4,opt,name=can_generate,json=canGenerate" json:"can_generate,omitempty"` } -var xxx_messageInfo_CanGenerateCSRResponse proto.InternalMessageInfo +func (m *CanGenerateCSRResponse) Reset() { *m = CanGenerateCSRResponse{} } +func (m *CanGenerateCSRResponse) String() string { return proto.CompactTextString(m) } +func (*CanGenerateCSRResponse) ProtoMessage() {} +func (*CanGenerateCSRResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{17} } func (m *CanGenerateCSRResponse) GetCanGenerate() bool { if m != nil { @@ -1508,40 +1091,17 @@ func (m *CanGenerateCSRResponse) GetCanGenerate() bool { // A certificate. type Certificate struct { // Type of certificate. - Type CertificateType `protobuf:"varint,1,opt,name=type,proto3,enum=gnoi.certificate.CertificateType" json:"type,omitempty"` + Type CertificateType `protobuf:"varint,1,opt,name=type,enum=gnoi.certificate.CertificateType" json:"type,omitempty"` // Actual certificate. // The exact encoding depends upon the type of certificate. // for X509, this should be a PEM encoded Certificate. - Certificate []byte `protobuf:"bytes,2,opt,name=certificate,proto3" json:"certificate,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Certificate []byte `protobuf:"bytes,2,opt,name=certificate,proto3" json:"certificate,omitempty"` } -func (m *Certificate) Reset() { *m = Certificate{} } -func (m *Certificate) String() string { return proto.CompactTextString(m) } -func (*Certificate) ProtoMessage() {} -func (*Certificate) Descriptor() ([]byte, []int) { - return fileDescriptor_35089d6bfca6de66, []int{18} -} - -func (m *Certificate) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Certificate.Unmarshal(m, b) -} -func (m *Certificate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Certificate.Marshal(b, m, deterministic) -} -func (m *Certificate) XXX_Merge(src proto.Message) { - xxx_messageInfo_Certificate.Merge(m, src) -} -func (m *Certificate) XXX_Size() int { - return xxx_messageInfo_Certificate.Size(m) -} -func (m *Certificate) XXX_DiscardUnknown() { - xxx_messageInfo_Certificate.DiscardUnknown(m) -} - -var xxx_messageInfo_Certificate proto.InternalMessageInfo +func (m *Certificate) Reset() { *m = Certificate{} } +func (m *Certificate) String() string { return proto.CompactTextString(m) } +func (*Certificate) ProtoMessage() {} +func (*Certificate) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{18} } func (m *Certificate) GetType() CertificateType { if m != nil { @@ -1560,40 +1120,17 @@ func (m *Certificate) GetCertificate() []byte { // A Certificate Signing Request. type CSR struct { // Type of certificate. - Type CertificateType `protobuf:"varint,1,opt,name=type,proto3,enum=gnoi.certificate.CertificateType" json:"type,omitempty"` + Type CertificateType `protobuf:"varint,1,opt,name=type,enum=gnoi.certificate.CertificateType" json:"type,omitempty"` // Bytes representing the CSR. // The exact encoding depends upon the type of certificate requested. // for X509: This should be the PEM encoded CSR. - Csr []byte `protobuf:"bytes,2,opt,name=csr,proto3" json:"csr,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Csr []byte `protobuf:"bytes,2,opt,name=csr,proto3" json:"csr,omitempty"` } -func (m *CSR) Reset() { *m = CSR{} } -func (m *CSR) String() string { return proto.CompactTextString(m) } -func (*CSR) ProtoMessage() {} -func (*CSR) Descriptor() ([]byte, []int) { - return fileDescriptor_35089d6bfca6de66, []int{19} -} - -func (m *CSR) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CSR.Unmarshal(m, b) -} -func (m *CSR) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CSR.Marshal(b, m, deterministic) -} -func (m *CSR) XXX_Merge(src proto.Message) { - xxx_messageInfo_CSR.Merge(m, src) -} -func (m *CSR) XXX_Size() int { - return xxx_messageInfo_CSR.Size(m) -} -func (m *CSR) XXX_DiscardUnknown() { - xxx_messageInfo_CSR.DiscardUnknown(m) -} - -var xxx_messageInfo_CSR proto.InternalMessageInfo +func (m *CSR) Reset() { *m = CSR{} } +func (m *CSR) String() string { return proto.CompactTextString(m) } +func (*CSR) ProtoMessage() {} +func (*CSR) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{19} } func (m *CSR) GetType() CertificateType { if m != nil { @@ -1611,37 +1148,14 @@ func (m *CSR) GetCsr() []byte { // A message representing a pair of public/private keys. type KeyPair struct { - PrivateKey []byte `protobuf:"bytes,1,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"` - PublicKey []byte `protobuf:"bytes,2,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + PrivateKey []byte `protobuf:"bytes,1,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"` + PublicKey []byte `protobuf:"bytes,2,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` } -func (m *KeyPair) Reset() { *m = KeyPair{} } -func (m *KeyPair) String() string { return proto.CompactTextString(m) } -func (*KeyPair) ProtoMessage() {} -func (*KeyPair) Descriptor() ([]byte, []int) { - return fileDescriptor_35089d6bfca6de66, []int{20} -} - -func (m *KeyPair) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_KeyPair.Unmarshal(m, b) -} -func (m *KeyPair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_KeyPair.Marshal(b, m, deterministic) -} -func (m *KeyPair) XXX_Merge(src proto.Message) { - xxx_messageInfo_KeyPair.Merge(m, src) -} -func (m *KeyPair) XXX_Size() int { - return xxx_messageInfo_KeyPair.Size(m) -} -func (m *KeyPair) XXX_DiscardUnknown() { - xxx_messageInfo_KeyPair.DiscardUnknown(m) -} - -var xxx_messageInfo_KeyPair proto.InternalMessageInfo +func (m *KeyPair) Reset() { *m = KeyPair{} } +func (m *KeyPair) String() string { return proto.CompactTextString(m) } +func (*KeyPair) ProtoMessage() {} +func (*KeyPair) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{20} } func (m *KeyPair) GetPrivateKey() []byte { if m != nil { @@ -1659,38 +1173,15 @@ func (m *KeyPair) GetPublicKey() []byte { // An endpoint represents an entity on the target which can use a certificate. type Endpoint struct { - Type Endpoint_Type `protobuf:"varint,1,opt,name=type,proto3,enum=gnoi.certificate.Endpoint_Type" json:"type,omitempty"` + Type Endpoint_Type `protobuf:"varint,1,opt,name=type,enum=gnoi.certificate.Endpoint_Type" json:"type,omitempty"` // Human readable identifier for an endpoint. - Endpoint string `protobuf:"bytes,2,opt,name=endpoint,proto3" json:"endpoint,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Endpoint) Reset() { *m = Endpoint{} } -func (m *Endpoint) String() string { return proto.CompactTextString(m) } -func (*Endpoint) ProtoMessage() {} -func (*Endpoint) Descriptor() ([]byte, []int) { - return fileDescriptor_35089d6bfca6de66, []int{21} -} - -func (m *Endpoint) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Endpoint.Unmarshal(m, b) -} -func (m *Endpoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Endpoint.Marshal(b, m, deterministic) -} -func (m *Endpoint) XXX_Merge(src proto.Message) { - xxx_messageInfo_Endpoint.Merge(m, src) -} -func (m *Endpoint) XXX_Size() int { - return xxx_messageInfo_Endpoint.Size(m) -} -func (m *Endpoint) XXX_DiscardUnknown() { - xxx_messageInfo_Endpoint.DiscardUnknown(m) + Endpoint string `protobuf:"bytes,2,opt,name=endpoint" json:"endpoint,omitempty"` } -var xxx_messageInfo_Endpoint proto.InternalMessageInfo +func (m *Endpoint) Reset() { *m = Endpoint{} } +func (m *Endpoint) String() string { return proto.CompactTextString(m) } +func (*Endpoint) ProtoMessage() {} +func (*Endpoint) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{21} } func (m *Endpoint) GetType() Endpoint_Type { if m != nil { @@ -1707,9 +1198,6 @@ func (m *Endpoint) GetEndpoint() string { } func init() { - proto.RegisterEnum("gnoi.certificate.CertificateType", CertificateType_name, CertificateType_value) - proto.RegisterEnum("gnoi.certificate.KeyType", KeyType_name, KeyType_value) - proto.RegisterEnum("gnoi.certificate.Endpoint_Type", Endpoint_Type_name, Endpoint_Type_value) proto.RegisterType((*RotateCertificateRequest)(nil), "gnoi.certificate.RotateCertificateRequest") proto.RegisterType((*RotateCertificateResponse)(nil), "gnoi.certificate.RotateCertificateResponse") proto.RegisterType((*InstallCertificateRequest)(nil), "gnoi.certificate.InstallCertificateRequest") @@ -1732,92 +1220,9 @@ func init() { proto.RegisterType((*CSR)(nil), "gnoi.certificate.CSR") proto.RegisterType((*KeyPair)(nil), "gnoi.certificate.KeyPair") proto.RegisterType((*Endpoint)(nil), "gnoi.certificate.Endpoint") -} - -func init() { - proto.RegisterFile("github.com/openconfig/gnoi/cert/cert.proto", fileDescriptor_35089d6bfca6de66) -} - -var fileDescriptor_35089d6bfca6de66 = []byte{ - // 1233 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x57, 0xdd, 0x72, 0xda, 0xc6, - 0x17, 0xb7, 0x0c, 0x31, 0x70, 0xc0, 0x20, 0x6f, 0x62, 0x47, 0xf0, 0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- 0x4d, 0x98, 0x8f, 0x08, 0xac, 0xc9, 0x6f, 0x7b, 0xb4, 0x17, 0xf7, 0x7e, 0xd1, 0x1f, 0xa3, 0xca, - 0xd3, 0xa5, 0xb0, 0xb2, 0x2e, 0x77, 0x95, 0xe7, 0x0a, 0xba, 0x80, 0x4c, 0xf8, 0x61, 0x8a, 0x12, - 0x6c, 0x17, 0x7e, 0x86, 0x57, 0x9e, 0x2d, 0x07, 0x8e, 0xbc, 0xa9, 0x0f, 0xa5, 0xb9, 0xbd, 0x84, - 0x76, 0x93, 0x3e, 0x70, 0x93, 0x96, 0x5a, 0xe5, 0xc9, 0x12, 0xc8, 0xb0, 0xdb, 0x38, 0xa0, 0xf8, - 0xb8, 0x4d, 0x72, 0x6e, 0xe1, 0x64, 0x4f, 0x72, 0xee, 0x86, 0x09, 0x6e, 0x41, 0x71, 0xb6, 0xf1, - 0xd1, 0xe3, 0x84, 0x86, 0x4a, 0x1a, 0x69, 0x95, 0xdd, 0xdb, 0x81, 0xf2, 0x25, 0xe7, 0x6b, 0xe2, - 0x7f, 0xf2, 0xcb, 0x7f, 0x03, 0x00, 0x00, 0xff, 0xff, 0x88, 0xf1, 0x0e, 0xed, 0x55, 0x0f, 0x00, - 0x00, + proto.RegisterEnum("gnoi.certificate.CertificateType", CertificateType_name, CertificateType_value) + proto.RegisterEnum("gnoi.certificate.KeyType", KeyType_name, KeyType_value) + proto.RegisterEnum("gnoi.certificate.Endpoint_Type", Endpoint_Type_name, Endpoint_Type_value) } // Reference imports to suppress errors if they are not otherwise used. @@ -1828,9 +1233,8 @@ var _ grpc.ClientConn // is compatible with the grpc package it is being compiled against. const _ = grpc.SupportPackageIsVersion4 -// CertificateManagementClient is the client API for CertificateManagement service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +// Client API for CertificateManagement service + type CertificateManagementClient interface { // Rotate will replace an existing Certificate on the target by creating a // new CSR request and placing the new Certificate based on the CSR on the @@ -1950,7 +1354,7 @@ func NewCertificateManagementClient(cc *grpc.ClientConn) CertificateManagementCl } func (c *certificateManagementClient) Rotate(ctx context.Context, opts ...grpc.CallOption) (CertificateManagement_RotateClient, error) { - stream, err := c.cc.NewStream(ctx, &_CertificateManagement_serviceDesc.Streams[0], "/gnoi.certificate.CertificateManagement/Rotate", opts...) + stream, err := grpc.NewClientStream(ctx, &_CertificateManagement_serviceDesc.Streams[0], c.cc, "/gnoi.certificate.CertificateManagement/Rotate", opts...) if err != nil { return nil, err } @@ -1981,7 +1385,7 @@ func (x *certificateManagementRotateClient) Recv() (*RotateCertificateResponse, } func (c *certificateManagementClient) Install(ctx context.Context, opts ...grpc.CallOption) (CertificateManagement_InstallClient, error) { - stream, err := c.cc.NewStream(ctx, &_CertificateManagement_serviceDesc.Streams[1], "/gnoi.certificate.CertificateManagement/Install", opts...) + stream, err := grpc.NewClientStream(ctx, &_CertificateManagement_serviceDesc.Streams[1], c.cc, "/gnoi.certificate.CertificateManagement/Install", opts...) if err != nil { return nil, err } @@ -2013,7 +1417,7 @@ func (x *certificateManagementInstallClient) Recv() (*InstallCertificateResponse func (c *certificateManagementClient) GetCertificates(ctx context.Context, in *GetCertificatesRequest, opts ...grpc.CallOption) (*GetCertificatesResponse, error) { out := new(GetCertificatesResponse) - err := c.cc.Invoke(ctx, "/gnoi.certificate.CertificateManagement/GetCertificates", in, out, opts...) + err := grpc.Invoke(ctx, "/gnoi.certificate.CertificateManagement/GetCertificates", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -2022,7 +1426,7 @@ func (c *certificateManagementClient) GetCertificates(ctx context.Context, in *G func (c *certificateManagementClient) RevokeCertificates(ctx context.Context, in *RevokeCertificatesRequest, opts ...grpc.CallOption) (*RevokeCertificatesResponse, error) { out := new(RevokeCertificatesResponse) - err := c.cc.Invoke(ctx, "/gnoi.certificate.CertificateManagement/RevokeCertificates", in, out, opts...) + err := grpc.Invoke(ctx, "/gnoi.certificate.CertificateManagement/RevokeCertificates", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -2031,14 +1435,15 @@ func (c *certificateManagementClient) RevokeCertificates(ctx context.Context, in func (c *certificateManagementClient) CanGenerateCSR(ctx context.Context, in *CanGenerateCSRRequest, opts ...grpc.CallOption) (*CanGenerateCSRResponse, error) { out := new(CanGenerateCSRResponse) - err := c.cc.Invoke(ctx, "/gnoi.certificate.CertificateManagement/CanGenerateCSR", in, out, opts...) + err := grpc.Invoke(ctx, "/gnoi.certificate.CertificateManagement/CanGenerateCSR", in, out, c.cc, opts...) if err != nil { return nil, err } return out, nil } -// CertificateManagementServer is the server API for CertificateManagement service. +// Server API for CertificateManagement service + type CertificateManagementServer interface { // Rotate will replace an existing Certificate on the target by creating a // new CSR request and placing the new Certificate based on the CSR on the @@ -2290,5 +1695,86 @@ var _CertificateManagement_serviceDesc = grpc.ServiceDesc{ ClientStreams: true, }, }, - Metadata: "github.com/openconfig/gnoi/cert/cert.proto", + Metadata: "cert/cert.proto", +} + +func init() { proto.RegisterFile("cert/cert.proto", fileDescriptor0) } + +var fileDescriptor0 = []byte{ + // 1192 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x57, 0xdd, 0x72, 0xda, 0x46, + 0x14, 0xb6, 0x8c, 0x63, 0xe0, 0x80, 0x41, 0xde, 0x24, 0x8e, 0xa0, 0xcd, 0xc4, 0x51, 0xeb, 0x89, + 0xe3, 0x64, 0x48, 0x26, 0x3f, 0x33, 0xfd, 0x99, 0x49, 0xc7, 0x26, 0x24, 0x66, 0xb0, 0x09, 0xb3, + 0xe0, 0xb6, 0x77, 0x9a, 0x8d, 0x58, 0xc8, 0x8e, 0xd1, 0x8a, 0x4a, 0x72, 0x3a, 0xf8, 0x21, 0xfa, + 0x02, 0xbd, 0xe9, 0x55, 0x1f, 0xa1, 0x0f, 0xd0, 0x27, 0xe8, 0x45, 0xa7, 0xd7, 0x7d, 0x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, 0x71, 0x5c, 0x6e, 0x71, 0xe2, 0x50, + 0x63, 0x43, 0x04, 0x00, 0x52, 0xd4, 0x26, 0x0e, 0x45, 0x06, 0x64, 0x6d, 0xf7, 0x82, 0x07, 0xde, + 0xc4, 0xb8, 0x26, 0x94, 0xd3, 0x57, 0x74, 0x03, 0xae, 0xf9, 0xe1, 0x38, 0x18, 0x9b, 0x42, 0x2e, + 0x5f, 0x10, 0x82, 0x0d, 0x9b, 0x05, 0x13, 0x23, 0x2b, 0x84, 0xe2, 0x19, 0x99, 0x50, 0x74, 0xbd, + 0x21, 0xe1, 0xec, 0x52, 0x2e, 0x97, 0x9c, 0xd0, 0x25, 0x64, 0xe8, 0x11, 0x5c, 0x8f, 0xbf, 0x93, + 0x91, 0x75, 0xc1, 0x59, 0x60, 0xe4, 0x05, 0x14, 0x25, 0x55, 0x67, 0x9c, 0x05, 0xe8, 0x36, 0x00, + 0x1b, 0x5b, 0xa4, 0xdf, 0xf7, 0xa8, 0xef, 0x1b, 0x20, 0x70, 0x79, 0x36, 0x3e, 0x94, 0x02, 0x54, + 0x81, 0x1c, 0x75, 0x08, 0x1b, 0x85, 0x65, 0x29, 0x48, 0xc7, 0xc5, 0x7b, 0xb3, 0x6f, 0xbe, 0x80, + 0xeb, 0x8a, 0xe6, 0x44, 0xf7, 0x20, 0x33, 0x6f, 0xe8, 0x9b, 0xca, 0x1e, 0xc0, 0x21, 0xc2, 0xfc, + 0x43, 0x83, 0x1d, 0xf5, 0x8c, 0xa1, 0xef, 0xa0, 0x10, 0xef, 0x65, 0xc9, 0x75, 0xfb, 0xca, 0x22, + 0xe3, 0xb8, 0xc5, 0xb4, 0x8a, 0x63, 0xc2, 0xbc, 0x68, 0x12, 0xd4, 0x55, 0xec, 0x10, 0xe6, 0x89, + 0x2a, 0x86, 0x0f, 0x8a, 0x4e, 0xcc, 0xa8, 0x3a, 0xb1, 0x02, 0xb7, 0x96, 0x0c, 0x91, 0xb9, 0x0d, + 0xe5, 0x85, 0x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c, 0x94, 0x1f, 0x79, 0xbb, 0x29, 0xfe, 0xdf, 0x3e, 0xfd, 0x2f, 0x00, 0x00, 0xff, 0xff, + 0x8b, 0xfc, 0xfe, 0xf7, 0xf2, 0x0e, 0x00, 0x00, } From 64dbb0e5d2d7d33d4094a367405eb2a1dd990b9c Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 17:00:00 +0530 Subject: [PATCH 211/238] Revert "Add simplified security model" This reverts commit 7a9fd12d2d817e31d60a49bc1c7bb0f91a64c788. --- README.md | 5 ----- cert/cert.proto | 8 +------- simplified_security_model.md | 0 3 files changed, 1 insertion(+), 12 deletions(-) delete mode 100644 simplified_security_model.md diff --git a/README.md b/README.md index c45e3ab8..c2cd6dda 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,6 @@ # gNOI - gRPC Network Operations Interface gNOI defines a set of gRPC-based microservices for executing operational commands on network devices. -## Simplified security model - -See [simplified security model](simplified_security_model.md) for a security -model that can be implemented using gNOI. - # Rebuild *.pb.go files ``` cd ${GOPATH}/src diff --git a/cert/cert.proto b/cert/cert.proto index 512752d2..56307251 100644 --- a/cert/cert.proto +++ b/cert/cert.proto @@ -205,7 +205,7 @@ message GenerateCSRRequest { // Parameters to be used when generating a Certificate Signing Request. message CSRParams { - // The type of certificate which will be associated for this CSR. + // The type of certificate which will be will be associated for this CSR. CertificateType type = 1; // Minimum size of the key to be used by the target when generating a @@ -269,12 +269,6 @@ message LoadCertificateRequest { // Certificate Id of the above certificate. This is to be provided only when // there is an externally generated key pair. string certificate_id = 3; - - // Optional bundle of CA certificates. When not empty, the provided - // certificates should squash the existing bundle. This field provides a - // simplified means to provision a CA bundle that can be used to validate - // other peer's certificates. - repeated Certificate ca_certificates = 4; } // Response from target after Loading a Certificate. diff --git a/simplified_security_model.md b/simplified_security_model.md deleted file mode 100644 index e69de29b..00000000 From 14986fcf57f0b72e7e40b000efcf3f1fdcb90dca Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 17:00:01 +0530 Subject: [PATCH 212/238] Revert "change name to TransferToRemote" This reverts commit ce7f314f2ae9005f72723bf9616a4d500ad87737. --- file/file.proto | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/file/file.proto b/file/file.proto index 853e3af5..ce671203 100644 --- a/file/file.proto +++ b/file/file.proto @@ -29,12 +29,12 @@ service File { // if the file does not exist or there was an error reading the file. rpc Get(GetRequest) returns (stream GetResponse) {} - // TransferToRemote transfers the contents of a file from the target to a - // specified remote location. The response contains the hash of the data - // transferred. An error is returned if the file does not exist, the file - // transfer fails, or if there was an error reading the file. This is a - // blocking call until the file transfer is complete. - rpc TransferToRemote(TransferToRemoteRequest) returns (TransferToRemoteResponse) {} + // GetRemote transfers the contents of a file from the target to a specified + // remote location. The response contains the hash of the data transferred. + // An error is returned if the file does not exist, the file transfer fails, + // or if there was an error reading the file. This is a blocking call until + // the file transfer is complete. + rpc GetRemote(GetRemoteRequest) returns (GetRemoteResponse) {} // Put streams data into a file on the target. The file is sent in // sequential messages, each message containing up to 64KB of data. A final @@ -104,18 +104,18 @@ message GetResponse { } } -// A TransferToRemoteRequest specifies the local path to transfer to and the +// A GetRemoteRequest specifies the local path to transfer to and the // details on where to transfer the data from. The local_path must be an // absolute path to the file. -message TransferToRemoteRequest { +message GetRemoteRequest { string local_path = 1; // Details to download the remote_file being requested to a remote location. gnoi.RemoteDownload remote_download = 2; } -// A TransferToRemoteResponse contains the hash of the data transferred. -message TransferToRemoteResponse { +// A GetRemoteResponse contains the hash of the data transferred. +message GetRemoteResponse { gnoi.HashType hash = 1; // hash of the file. } From a5e681ccac187eb7d0daa400adfcd65155131839 Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 17:00:02 +0530 Subject: [PATCH 213/238] Revert "s/remote_file/local_path and change desc for activate" This reverts commit ab6d48f2adae9eab8815828878a995f4fac9ad1d. --- file/file.proto | 8 ++++---- system/system.proto | 4 +--- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/file/file.proto b/file/file.proto index ce671203..1c1eccc0 100644 --- a/file/file.proto +++ b/file/file.proto @@ -104,11 +104,11 @@ message GetResponse { } } -// A GetRemoteRequest specifies the local path to transfer to and the -// details on where to transfer the data from. The local_path must be an -// absolute path to the file. +// A GetRemoteRequest specifies the remote_file to transfer and the details on +// where to transfer the data. The remote_file must be an absolute path to a +// file. message GetRemoteRequest { - string local_path = 1; + string remote_file = 1; // Details to download the remote_file being requested to a remote location. gnoi.RemoteDownload remote_download = 2; diff --git a/system/system.proto b/system/system.proto index 774431f0..93303562 100644 --- a/system/system.proto +++ b/system/system.proto @@ -282,9 +282,7 @@ message Package { string filename = 1; // Version of the package. (vendor internal name) string version = 4; - // Indicates that the package should be made active after receipt on - // the device. For system image packages, the new image is expected to - // be active after a reboot. + // For system packages this will take effect after reboot. bool activate = 5; // Details for the device to download the package from a remote location. gnoi.RemoteDownload remote_download = 6; From 5d5c49f5c4252df7b30bb162869784f7560e84d9 Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 17:00:02 +0530 Subject: [PATCH 214/238] Revert "fix imports and doc string" This reverts commit e9759f2fa09968c4b9d1491877026a5b82779130. --- common.proto | 2 +- file/file.proto | 4 ++-- system/system.proto | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/common.proto b/common.proto index 48c7bb04..af867d61 100644 --- a/common.proto +++ b/common.proto @@ -18,7 +18,7 @@ syntax = "proto3"; package gnoi; -import "github.com/openconfig/gnoi/types.proto"; +import "third_party/openconfig/gnoi/types.proto"; // RemoteDownload defines the details for a device to initiate a file transfer // from or to a remote location. diff --git a/file/file.proto b/file/file.proto index 1c1eccc0..c871fd8d 100644 --- a/file/file.proto +++ b/file/file.proto @@ -18,11 +18,11 @@ syntax = "proto3"; package gnoi.file; -import "github.com/openconfig/gnoi/common.proto"; +import "third_party/openconfig/gnoi/common.proto"; import "github.com/openconfig/gnoi/types.proto"; service File { - // Get reads and streams the contents of a file from the target. + // Get read and streams the contents of a file from the target. // The file is streamed by sequential messages, each containing up to // 64KB of data. A final message is sent prior to closing the stream // that contains the hash of the data sent. An error is returned diff --git a/system/system.proto b/system/system.proto index 93303562..dc40044d 100644 --- a/system/system.proto +++ b/system/system.proto @@ -24,7 +24,7 @@ syntax = "proto3"; package gnoi.system; -import "github.com/openconfig/gnoi/common.proto"; +import "third_party/openconfig/gnoi/common.proto"; import "github.com/openconfig/gnoi/types.proto"; // The gNOI service is a collection of operational RPC's that allow for the From 8120585fbb9ac8a00f7e37e7c2b266f699846be6 Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 17:00:03 +0530 Subject: [PATCH 215/238] Revert "Support remote download of files when doing a File.Get" This reverts commit 7d27575e6511601811f2b1195e3a4a31af9f25a2. --- BUILD.bazel | 10 ++-------- common.proto | 42 ------------------------------------------ file/file.proto | 23 ----------------------- system/system.proto | 24 ++++++++++++++++++++++-- 4 files changed, 24 insertions(+), 75 deletions(-) delete mode 100644 common.proto diff --git a/BUILD.bazel b/BUILD.bazel index 9aa5ca40..4c24df01 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -2,19 +2,13 @@ load("@io_bazel_rules_go//proto:go_proto_library.bzl", "go_proto_library") proto_library( name = "gnoi_proto", - srcs = [ - "types.proto", - "common.proto" - ], + srcs = ["types.proto"], visibility = ["//visibility:public"], ) go_proto_library( name = "go_default_library", - srcs = [ - "types.proto", - "common.proto" - ], + srcs = ["types.proto"], visibility = ["//visibility:public"], rules_go_repo_only_for_internal_use = "@", has_services = 1, diff --git a/common.proto b/common.proto deleted file mode 100644 index af867d61..00000000 --- a/common.proto +++ /dev/null @@ -1,42 +0,0 @@ -// -// Copyright 2018 Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// - -syntax = "proto3"; - -package gnoi; - -import "third_party/openconfig/gnoi/types.proto"; - -// RemoteDownload defines the details for a device to initiate a file transfer -// from or to a remote location. -message RemoteDownload { - // The path information containing where to download the data from or to. - // For HTTP(S), this will be the URL (i.e. foo.com/file.tbz2). - // For SFTP and SCP, this will be the address:/path/to/file - // (i.e. host.foo.com:/bar/baz). - string path = 1; - - enum Protocol { - UNKNOWN = 0; - SFTP = 1; - HTTP = 2; - HTTPS = 3; - SCP = 4; - } - Protocol protocol = 2; - - gnoi.Credentials credentials = 3; -} diff --git a/file/file.proto b/file/file.proto index c871fd8d..a1657b75 100644 --- a/file/file.proto +++ b/file/file.proto @@ -18,7 +18,6 @@ syntax = "proto3"; package gnoi.file; -import "third_party/openconfig/gnoi/common.proto"; import "github.com/openconfig/gnoi/types.proto"; service File { @@ -29,13 +28,6 @@ service File { // if the file does not exist or there was an error reading the file. rpc Get(GetRequest) returns (stream GetResponse) {} - // GetRemote transfers the contents of a file from the target to a specified - // remote location. The response contains the hash of the data transferred. - // An error is returned if the file does not exist, the file transfer fails, - // or if there was an error reading the file. This is a blocking call until - // the file transfer is complete. - rpc GetRemote(GetRemoteRequest) returns (GetRemoteResponse) {} - // Put streams data into a file on the target. The file is sent in // sequential messages, each message containing up to 64KB of data. A final // message must be sent that includes the hash of the data sent. An @@ -104,21 +96,6 @@ message GetResponse { } } -// A GetRemoteRequest specifies the remote_file to transfer and the details on -// where to transfer the data. The remote_file must be an absolute path to a -// file. -message GetRemoteRequest { - string remote_file = 1; - - // Details to download the remote_file being requested to a remote location. - gnoi.RemoteDownload remote_download = 2; -} - -// A GetRemoteResponse contains the hash of the data transferred. -message GetRemoteResponse { - gnoi.HashType hash = 1; // hash of the file. -} - // StatRequest will list files at the provided path. message StatRequest { string path = 1; diff --git a/system/system.proto b/system/system.proto index dc40044d..a18663e2 100644 --- a/system/system.proto +++ b/system/system.proto @@ -24,7 +24,6 @@ syntax = "proto3"; package gnoi.system; -import "third_party/openconfig/gnoi/common.proto"; import "github.com/openconfig/gnoi/types.proto"; // The gNOI service is a collection of operational RPC's that allow for the @@ -276,6 +275,27 @@ message TracerouteResponse { repeated int32 as_path = 12; // AS path. } +// RemoteDownload defines the details for a device to initiate a download of a +// package from a remote location. +message RemoteDownload { + // The path information containing where to download the package from. + // For HTTP(S), this will be the URL (i.e. foo.com/file.tbz2). + // For SFTP and SCP, this will be the address:/path/to/file + // (i.e. host.foo.com:/bar/baz). + string path = 1; + + enum DownloadType { + UNKNOWN = 0; + SFTP = 1; + HTTP = 2; + HTTPS = 3; + SCP = 4; + } + DownloadType download_type = 2; + + gnoi.Credentials credentials = 3; +} + // Package defines a single package file to be placed on the target. message Package { // Destination path and filename of the package. @@ -285,7 +305,7 @@ message Package { // For system packages this will take effect after reboot. bool activate = 5; // Details for the device to download the package from a remote location. - gnoi.RemoteDownload remote_download = 6; + RemoteDownload remote_download = 6; } // SetPackageRequest will place the package onto the target and optionally mark From 9515bc5c85e5cf1cbaa62ea80787d13c58a112e5 Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 17:00:04 +0530 Subject: [PATCH 216/238] Revert "Fixed an inlcude issue for diag.proto" This reverts commit 5424f40b5bc98ddc003ed637e37ba68c575f215c. --- diag/diag.proto | 2 -- 1 file changed, 2 deletions(-) diff --git a/diag/diag.proto b/diag/diag.proto index c70e9f53..a0dc8e1a 100644 --- a/diag/diag.proto +++ b/diag/diag.proto @@ -20,8 +20,6 @@ syntax = "proto3"; package gnoi.diag; -import "github.com/openconfig/gnoi/types.proto"; - // The Diag service exports to main set of RPCs: // 1- BERT related RPCs: Used to perform Bit Error Rate Test (BERT) // operations on a set of ports. From c05c55dbc2152536c13eae6aab5d8480bc81df7a Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 17:00:04 +0530 Subject: [PATCH 217/238] Revert "Addressed Anees' comments" This reverts commit 4422e2a47571c7a20ed0d4ec13637c6f11dbdb82. --- diag/diag.proto | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/diag/diag.proto b/diag/diag.proto index a0dc8e1a..d99cab7e 100644 --- a/diag/diag.proto +++ b/diag/diag.proto @@ -15,7 +15,7 @@ // // This file defines the gNOI APIs used to perform diagnostic operations on a -// network device. +// switching box. syntax = "proto3"; package gnoi.diag; @@ -24,12 +24,11 @@ package gnoi.diag; // 1- BERT related RPCs: Used to perform Bit Error Rate Test (BERT) // operations on a set of ports. // 2- BURNIN related RPCs: Used to perform a vendor-provided Burnin test on the -// network device to ensure the device is ready to start serving traffic. -// Burnin tests are typically run in the field, as part of turnup or repair -// workflow. +// switch to ensure the box is ready to start serving traffic. Burnin tests +// are typically run in the field, as part of turnup or repair workflow. // Note: The RPCs defined here are are stateless operations and them -// failing/passing should not leave any permanent artifact on the network device -// (unless there is something wrong HW-wise). +// failing/passing should not leave any permanent artifact on the switch (unless +// there is something wrong HW-wise). // Note: By "port" we refer to a channelized frontpanel or backplane port on a // chassis. In OpenConfig YANG models, there is a one-to-one relationship // between a port as used here and an "interface". Therefore, the "gnoi.Path" @@ -59,7 +58,7 @@ service Diag { // - When the BERT operation ID does not match the in progress or completed // BERT operation on any of the ports specified by the request. // The RPC returns an OK status of none of these situations is encountered. - // Note that a BERT operation is considered completed if the device has a + // Note that a BERT operation is considered completed if the switch has a // record/history of it. Also note that it is OK to receive a stop request for // a port which has completed BERT, as long as the recorded BERT operation ID // matches the one specified by the request. @@ -67,7 +66,7 @@ service Diag { // Gets BERT results during the BERT operation or after it completes. The // caller uses the BERT operation ID it previously used when starting the - // operation to query it. The device is expected to keep the results for + // operation to query it. The switch is expected to keep the results for // last N BERT operations for some amount of time, as specified by the // product requirement. This RPC is expected to return error status in the // following situations: @@ -76,7 +75,7 @@ service Diag { // - When the BERT operation ID does not match the in progress or completed // BERT operation on any of the ports specified by the request. // The RPC returns an OK status of none of these situations is encountered. - // Note that a BERT operation is considered completed if device has a + // Note that a BERT operation is considered completed if switch has a // record of it. rpc GetBERTResult(GetBERTResultRequest) returns(GetBERTResultResponse) {} @@ -144,7 +143,6 @@ message StartBERTRequest { // Unique BERT operation ID specified by the client. Multiple BERTs run on // different ports can have the same BERT operation ID. This ID will be used // later to stop the operation and/or get its results. - // TODO: Investigate whether we can use numerical IDs instead. string bert_operation_id = 1; // All the per-port BERTs that are considered one BERT operation and have the // same BERT operation ID. @@ -192,9 +190,6 @@ message StopBERTResponse { repeated PerPortResponse per_port_responses = 2; } -// TODO: If there is no use case to get the BERT results for all the ports -// independent of the bert_operation_id, we can simplify this message and -// return the results for all the ports associated with an operation ID. message GetBERTResultRequest { // Per-port BERT get result requests. message PerPortRequest { From 7e708ad2ffe5791e25d509b374183cd0d86dbd3d Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 17:00:05 +0530 Subject: [PATCH 218/238] Revert "Addressed Rob's comments" This reverts commit 039322cf8eaef57264c521ad31f0983f5d56eb0c. --- diag/diag.proto | 28 ++++++++++++---------------- 1 file changed, 12 insertions(+), 16 deletions(-) diff --git a/diag/diag.proto b/diag/diag.proto index d99cab7e..c5707044 100644 --- a/diag/diag.proto +++ b/diag/diag.proto @@ -23,23 +23,19 @@ package gnoi.diag; // The Diag service exports to main set of RPCs: // 1- BERT related RPCs: Used to perform Bit Error Rate Test (BERT) // operations on a set of ports. -// 2- BURNIN related RPCs: Used to perform a vendor-provided Burnin test on the +// 2- BURNING related RPCs: Used to perform a vendor-provided Burnin test on the // switch to ensure the box is ready to start serving traffic. Burnin tests -// are typically run in the field, as part of turnup or repair workflow. +// are typically run in the datacenter, as part of turnup or repair workflow. // Note: The RPCs defined here are are stateless operations and them // failing/passing should not leave any permanent artifact on the switch (unless // there is something wrong HW-wise). -// Note: By "port" we refer to a channelized frontpanel or backplane port on a -// chassis. In OpenConfig YANG models, there is a one-to-one relationship -// between a port as used here and an "interface". Therefore, the "gnoi.Path" -// fields below for ports correspond to "/interfaces/interface" in YANG models. service Diag { // Starts BERT operation on a set of ports. Each BERT operation is uniquely // identified by an ID, which is given by the caller. The caller can then // use this ID (as well as the list of the ports) to stop the BERT operation // and/or get the BERT results. This RPC is expected to return an error status // in the following situations: - // - When BERT operation is supported on none of the ports specified by + // - When BERT operation is not supported on any of the ports specified by // the request. // - When BERT is already in progress on any port specified by the request. // - In case of any low-level HW/SW internal errors. @@ -58,10 +54,10 @@ service Diag { // - When the BERT operation ID does not match the in progress or completed // BERT operation on any of the ports specified by the request. // The RPC returns an OK status of none of these situations is encountered. - // Note that a BERT operation is considered completed if the switch has a - // record/history of it. Also note that it is OK to receive a stop request for - // a port which has completed BERT, as long as the recorded BERT operation ID - // matches the one specified by the request. + // Note that a BERT operation is considered completed if switch has a + // record of it. Also note that it is OK to receive a stop request for a port + // which has completed BERT, as long as the recorded BERT operation ID matches + // the one specified by the request. rpc StopBERT(StopBERTRequest) returns(StopBERTResponse) {} // Gets BERT results during the BERT operation or after it completes. The @@ -117,10 +113,10 @@ enum BertStatus { BERT_STATUS_TEST_DURATION_TOO_LONG = 8; // The given BERT operation ID is not known. Returned for `StopBert` and // `GetBertResult` RPCs. - BERT_STATUS_OPERATION_ID_NOT_FOUND = 9; + BERT_STATUS_BERT_OPERATION_ID_NOT_FOUND = 9; // The given BERT operation ID is already in use. Returned when `StartBert` // RPC uses an ID which is already memorized for a BERT operation. - BERT_STATUS_OPERATION_ID_IN_USE = 10; + BERT_STATUS_BERT_OPERATION_ID_ALREADY_IN_USE = 10; // Failure to get the peer lock. BERT_STATUS_PEER_LOCK_FAILURE = 11; // Lost the peer lock after locking once. @@ -137,8 +133,8 @@ message StartBERTRequest { gnoi.Path interface = 1; // required // The selected PRBS generating polynomial for BERT. PrbsPolynomial prbs_polynomial = 2; // required - // BERT duration in seconds. Must be a positive number. - uint32 test_duration_in_secs = 3; // required + // BERT duration in mins. Must be a positive number. + uint32 test_duration_in_mins = 3; // required } // Unique BERT operation ID specified by the client. Multiple BERTs run on // different ports can have the same BERT operation ID. This ID will be used @@ -213,7 +209,7 @@ message GetBERTResultResponse { // Path to the interface corresponding to the port. gnoi.Path interface = 1; // BERT result get status for this port. Only if the status is - // BERT_STATUS_OK are the rest of the fields meaningful. + // BERT_STATUS_OK the rest of the fields below are meaningful. BertStatus status = 2; // The ID of the BERT operation running on this port. Since the caller // can query the BERT results for all the ports, ID can potentially be From e82904c4ba56c825fa0d5bce36ce1a1d902d8701 Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 17:00:06 +0530 Subject: [PATCH 219/238] Revert "Addressed 1st round of comments" This reverts commit 11736b90e79e7499aa077bd1442e1129d6763187. --- diag/diag.proto | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/diag/diag.proto b/diag/diag.proto index c5707044..d359848a 100644 --- a/diag/diag.proto +++ b/diag/diag.proto @@ -25,10 +25,8 @@ package gnoi.diag; // operations on a set of ports. // 2- BURNING related RPCs: Used to perform a vendor-provided Burnin test on the // switch to ensure the box is ready to start serving traffic. Burnin tests -// are typically run in the datacenter, as part of turnup or repair workflow. -// Note: The RPCs defined here are are stateless operations and them -// failing/passing should not leave any permanent artifact on the switch (unless -// there is something wrong HW-wise). +// are typically run by HwOps in the datacenter, as part of turnup or repair +// workflow. service Diag { // Starts BERT operation on a set of ports. Each BERT operation is uniquely // identified by an ID, which is given by the caller. The caller can then From fd83533f41865a66d055ff823f0fe4c9fa14549e Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 17:00:06 +0530 Subject: [PATCH 220/238] Revert "Fix some typos" This reverts commit 6dc955bf2f79921ae8122e91dbcdfec2f68b7644. --- diag/diag.proto | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/diag/diag.proto b/diag/diag.proto index d359848a..5d8f99fc 100644 --- a/diag/diag.proto +++ b/diag/diag.proto @@ -22,8 +22,8 @@ package gnoi.diag; // The Diag service exports to main set of RPCs: // 1- BERT related RPCs: Used to perform Bit Error Rate Test (BERT) -// operations on a set of ports. -// 2- BURNING related RPCs: Used to perform a vendor-provided Burnin test on the +// operation on a set of ports. +// 2- BURNING related RPCs: Used to perform a vendor-provide Burnin test on the // switch to ensure the box is ready to start serving traffic. Burnin tests // are typically run by HwOps in the datacenter, as part of turnup or repair // workflow. @@ -32,7 +32,7 @@ service Diag { // identified by an ID, which is given by the caller. The caller can then // use this ID (as well as the list of the ports) to stop the BERT operation // and/or get the BERT results. This RPC is expected to return an error status - // in the following situations: + // in the the following situations: // - When BERT operation is not supported on any of the ports specified by // the request. // - When BERT is already in progress on any port specified by the request. @@ -130,7 +130,7 @@ message StartBERTRequest { // Path to the interface corresponding to the port. gnoi.Path interface = 1; // required // The selected PRBS generating polynomial for BERT. - PrbsPolynomial prbs_polynomial = 2; // required + PrbsPolynomial prbs_polynomial = 2; // BERT duration in mins. Must be a positive number. uint32 test_duration_in_mins = 3; // required } From 977c032025ac4398b7b60db837d227800b509a2c Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 17:00:07 +0530 Subject: [PATCH 221/238] Revert "First cut of Diag gNOI micro service" This reverts commit 6fa7b09fe03b456dba256724260a58cdd71c2e43. --- diag/BUILD.bazel | 14 --- diag/diag.proto | 236 ----------------------------------------------- 2 files changed, 250 deletions(-) delete mode 100644 diag/BUILD.bazel delete mode 100644 diag/diag.proto diff --git a/diag/BUILD.bazel b/diag/BUILD.bazel deleted file mode 100644 index 07deb8e5..00000000 --- a/diag/BUILD.bazel +++ /dev/null @@ -1,14 +0,0 @@ -load("@io_bazel_rules_go//proto:go_proto_library.bzl", "go_proto_library") - -proto_library( - name = "diag_proto", - srcs = ["diag.proto"], -) - -go_proto_library( - name = "go_default_library", - srcs = ["diag.proto"], - visibility = ["//visibility:public"], - rules_go_repo_only_for_internal_use = "@", - has_services = 1, -) diff --git a/diag/diag.proto b/diag/diag.proto deleted file mode 100644 index 5d8f99fc..00000000 --- a/diag/diag.proto +++ /dev/null @@ -1,236 +0,0 @@ -// -// Copyright 2017 Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// - -// This file defines the gNOI APIs used to perform diagnostic operations on a -// switching box. -syntax = "proto3"; - -package gnoi.diag; - -// The Diag service exports to main set of RPCs: -// 1- BERT related RPCs: Used to perform Bit Error Rate Test (BERT) -// operation on a set of ports. -// 2- BURNING related RPCs: Used to perform a vendor-provide Burnin test on the -// switch to ensure the box is ready to start serving traffic. Burnin tests -// are typically run by HwOps in the datacenter, as part of turnup or repair -// workflow. -service Diag { - // Starts BERT operation on a set of ports. Each BERT operation is uniquely - // identified by an ID, which is given by the caller. The caller can then - // use this ID (as well as the list of the ports) to stop the BERT operation - // and/or get the BERT results. This RPC is expected to return an error status - // in the the following situations: - // - When BERT operation is not supported on any of the ports specified by - // the request. - // - When BERT is already in progress on any port specified by the request. - // - In case of any low-level HW/SW internal errors. - // The RPC returns an OK status of none of these situations is encountered. - rpc StartBERT(StartBERTRequest) returns(StartBERTResponse) {} - - // Stops an already in-progress BERT operation on a set of ports. The caller - // uses the BERT operation ID it previously used when starting the operation - // to stop it. The RPC is expected to return an error status in the following - // situations: - // - When there is at least one BERT operation in progress on a port which - // cannot be stopped in the middle of the operation (either due to lack of - // support or internal problems). - // - When no BERT operation, which matches the given BERT operation ID, is in - // progress or completed on any of the ports specified by the request. - // - When the BERT operation ID does not match the in progress or completed - // BERT operation on any of the ports specified by the request. - // The RPC returns an OK status of none of these situations is encountered. - // Note that a BERT operation is considered completed if switch has a - // record of it. Also note that it is OK to receive a stop request for a port - // which has completed BERT, as long as the recorded BERT operation ID matches - // the one specified by the request. - rpc StopBERT(StopBERTRequest) returns(StopBERTResponse) {} - - // Gets BERT results during the BERT operation or after it completes. The - // caller uses the BERT operation ID it previously used when starting the - // operation to query it. The switch is expected to keep the results for - // last N BERT operations for some amount of time, as specified by the - // product requirement. This RPC is expected to return error status in the - // following situations: - // - When no BERT operation, which matches the given BERT operation ID, is in - // progress or completed on any of the ports specified by the request. - // - When the BERT operation ID does not match the in progress or completed - // BERT operation on any of the ports specified by the request. - // The RPC returns an OK status of none of these situations is encountered. - // Note that a BERT operation is considered completed if switch has a - // record of it. - rpc GetBERTResult(GetBERTResultRequest) returns(GetBERTResultResponse) {} - - // TODO(aghaffar): Add BURNIN related RPCs. -} - -// Common sequence generating monic polynomials used for PRBS. -enum PrbsPolynomial { - PRBS_POLYNOMIAL_UNKNOWN = 0; // default invalid choice. - PRBS_POLYNOMIAL_PRBS7 = 1; - PRBS_POLYNOMIAL_PRBS9 = 2; - PRBS_POLYNOMIAL_PRBS15 = 3; - PRBS_POLYNOMIAL_PRBS20 = 4; - PRBS_POLYNOMIAL_PRBS23 = 5; - PRBS_POLYNOMIAL_PRBS31 = 6; -} - -// Status returned for each per-port BERT request. -enum BertStatus { - // default invalid choice. - BERT_STATUS_UNKNOWN = 0; - // BERT requests (Start, Stop, GetStatus) were processed successfully. - BERT_STATUS_OK = 1; - // The specified port was not found. - BERT_STATUS_NON_EXISTENT_PORT = 2; - // HW error was encountered while performing BERT operation. - BERT_STATUS_HARDWARE_ACCESS_ERROR = 3; - // PRBS generating polynomial is not supported by the target. - BERT_STATUS_UNSUPPORTED_PRBS_POLYNOMIAL = 4; - // There is already a BERT running on the specified port. Returned when - // `StartBert` RPC tries to add run BERT on an already in-use port. - BERT_STATUS_PORT_ALREADY_IN_BERT = 5; - // There is no BERT running on the specified port. Returned when `StopBert` - // or `GetBertResult` RPC was called for an idle port. - BERT_STATUS_PORT_NOT_RUNNING_BERT = 6; - // The specified test duration is too small. - BERT_STATUS_TEST_DURATION_TOO_SHORT = 7; - // The specified test duration is larger than maximum allowed. - BERT_STATUS_TEST_DURATION_TOO_LONG = 8; - // The given BERT operation ID is not known. Returned for `StopBert` and - // `GetBertResult` RPCs. - BERT_STATUS_BERT_OPERATION_ID_NOT_FOUND = 9; - // The given BERT operation ID is already in use. Returned when `StartBert` - // RPC uses an ID which is already memorized for a BERT operation. - BERT_STATUS_BERT_OPERATION_ID_ALREADY_IN_USE = 10; - // Failure to get the peer lock. - BERT_STATUS_PEER_LOCK_FAILURE = 11; - // Lost the peer lock after locking once. - BERT_STATUS_PEER_LOCK_LOST = 12; - // Misc internal errors that cannot be categorized by any of the previous - // error codes. - BERT_STATUS_INTERNAL_ERROR = 13; -} - -message StartBERTRequest { - // Per port BERT start requests. - message PerPortRequest { - // Path to the interface corresponding to the port. - gnoi.Path interface = 1; // required - // The selected PRBS generating polynomial for BERT. - PrbsPolynomial prbs_polynomial = 2; - // BERT duration in mins. Must be a positive number. - uint32 test_duration_in_mins = 3; // required - } - // Unique BERT operation ID specified by the client. Multiple BERTs run on - // different ports can have the same BERT operation ID. This ID will be used - // later to stop the operation and/or get its results. - string bert_operation_id = 1; - // All the per-port BERTs that are considered one BERT operation and have the - // same BERT operation ID. - repeated PerPortRequest per_port_requests = 2; -} - -message StartBERTResponse { - // Per-port BERT start responses. - message PerPortResponse { - // Path to the interface corresponding to the port. - gnoi.Path interface = 1; - // BERT start status for this port. - BertStatus status = 2; - } - // The same BERT operation ID given by the request. - string bert_operation_id = 1; - // Captures the results of starting BERT on a per-port basis. - repeated PerPortResponse per_port_responses = 2; -} - -message StopBERTRequest { - // Per-port BERT stop requests. - message PerPortRequest { - // Path to the interface corresponding to the port. - gnoi.Path interface = 1; - } - // The same BERT operation ID given when BERT operation was started. - string bert_operation_id = 1; - // All the per-port BERTs that need to be stopped. Must be part of the BERT - // operation specified by the `bert_operation_id` above. - repeated PerPortRequest per_port_requests = 2; -} - -message StopBERTResponse { - // Per-port BERT stop responses. - message PerPortResponse { - // Path to the interface corresponding to the port. - gnoi.Path interface = 1; - // BERT stop status for this port. - BertStatus status = 2; - } - // The same BERT operation ID given by the request. - string bert_operation_id = 1; - // Captures the results of stopping BERT on a per-port basis. - repeated PerPortResponse per_port_responses = 2; -} - -message GetBERTResultRequest { - // Per-port BERT get result requests. - message PerPortRequest { - // Path to the interface corresponding to the port. - gnoi.Path interface = 1; - } - // The same BERT operation ID given when BERT operation was started. - string bert_operation_id = 1; - // All the per-port BERTs result of which we want to query. Must be part of - // the BERT operation specified by the `bert_operation_id` above. - repeated PerPortRequest per_port_requests = 2; - // If set to true, the results for all the per-port BERTs will be returned. - // `bert_operation_id` and `per_port_requests` will be ignored will be - // ignored in that case. - bool result_from_all_ports = 3; -} - -message GetBERTResultResponse { - // Per-port BERT results/status. - message PerPortResponse { - // Path to the interface corresponding to the port. - gnoi.Path interface = 1; - // BERT result get status for this port. Only if the status is - // BERT_STATUS_OK the rest of the fields below are meaningful. - BertStatus status = 2; - // The ID of the BERT operation running on this port. Since the caller - // can query the BERT results for all the ports, ID can potentially be - // different for different ports. - string bert_operation_id = 3; - // The selected PRBS generating polynomial for BERT on this port. - PrbsPolynomial prbs_polynomial = 4; - // The last time BERT started on this port. - uint64 last_bert_start_timestamp = 5; - // The last time BERT results were read for this port. - uint64 last_bert_get_result_timestamp = 6; - // Indicate whether BERT peer lock has was established. If false, - // `bert_lock_lost`, `error_count_per_minute`, and `total_errors` will not - // be meaningful. - bool peer_lock_established = 7; - // Indicate whether BERT peer lock was lost after being established - // once. - bool peer_lock_lost = 8; - // Sequence of bit errors per min since lock was established. - repeated uint32 error_count_per_minute = 9; - // Total number of bit errors accumulated since lock was established. - uint64 total_errors = 10; - } - // Captures the BERT results on a per-port basis. - repeated PerPortResponse per_port_responses = 1; -} From 7e08e9c74c27e5d1145da353f33a9a8cf6658e00 Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 17:00:08 +0530 Subject: [PATCH 222/238] Revert "Fix license, Go tests and add contributors." This reverts commit 6a007f259368223f21da87904cd1abf7946a7ff9. --- CONTRIBUTORS | 1 - test/simple.go | 16 ---------------- test/simple_test.go | 36 +++++++++++------------------------- 3 files changed, 11 insertions(+), 42 deletions(-) delete mode 100644 CONTRIBUTORS delete mode 100644 test/simple.go diff --git a/CONTRIBUTORS b/CONTRIBUTORS deleted file mode 100644 index d27bcca7..00000000 --- a/CONTRIBUTORS +++ /dev/null @@ -1 +0,0 @@ -Google, Inc. diff --git a/test/simple.go b/test/simple.go deleted file mode 100644 index e71210c9..00000000 --- a/test/simple.go +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright 2017 Google Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Package simple defines a simple set of gNOI tests. -package simple diff --git a/test/simple_test.go b/test/simple_test.go index ecc708ca..5f26dbd6 100644 --- a/test/simple_test.go +++ b/test/simple_test.go @@ -1,25 +1,11 @@ -// Copyright 2017 Google Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - package simple import ( "testing" - "github.com/golang/protobuf/proto" - gpb "github.com/openconfig/gnoi" - bgppb "github.com/openconfig/gnoi/bgp" + "github.com/golang/protobuf/proto/proto" + "github.com/openconfig/gnoi" + gbgp "github.com/openconfig/gnoi/bgp" ) func TestGNOI(t *testing.T) { @@ -28,25 +14,25 @@ func TestGNOI(t *testing.T) { in proto.Message want string }{{ - desc: "gpb.Path", - in: &gpb.Path{ + desc: "gnoi.Path", + in: &gnoi.Path{ Origin: "oc", - Elem: []*gpb.PathElem{{Name: "interfaces", Key: map[string]string{"name": "Ethernet1/1/0"}}}, + Elem: []*gnoi.PathElem{{Name: "interfaces", Key: map[string]string{"name": "Ethernet1/1/0"}}}, }, want: "origin: \"oc\"\nelem: <\n name: \"interfaces\"\n key: <\n key: \"name\"\n value: \"Ethernet1/1/0\"\n >\n>\n", }, { - desc: "gpb.HashType", - in: &gpb.HashType{ - Method: gpb.HashType_MD5, + desc: "gnoi.HashType", + in: &gnoi.HashType{ + Method: gnoi.HashType_MD5, Hash: []byte("foo"), }, want: "method: MD5\nhash: \"foo\"\n", }, { desc: "bgp.ClearBGPNeighborRequest", - in: &bgppb.ClearBGPNeighborRequest{ + in: &gbgp.ClearBGPNeighborRequest{ Address: "foo", RoutingInstance: "bar", - Mode: bgppb.ClearBGPNeighborRequest_HARD, + Mode: gbgp.ClearBGPNeighborRequest_HARD, }, want: "address: \"foo\"\nrouting_instance: \"bar\"\nmode: HARD\n", }} From ec83bf50db491b55537e68a8ca346204a2d7aec8 Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 17:00:09 +0530 Subject: [PATCH 223/238] Revert "Update gNOI generated protobufs to fix references." This reverts commit ee62d0b5debc28b7a19428687ddda7d5210cca31. --- bgp/bgp.pb.go | 41 ++++---- cert/cert.pb.go | 159 ++++++++++++++--------------- compile_protos.sh | 11 -- file/file.pb.go | 72 +++++++------- interface/BUILD.bazel | 4 +- interface/interface.pb.go | 51 +++++----- interface/interface.proto | 2 +- layer2/layer2.pb.go | 89 +++++++++-------- layer2/layer2.proto | 2 +- mpls/mpls.pb.go | 104 +++++++++---------- system/system.pb.go | 204 +++++++++++++++++++------------------- types.pb.go | 49 ++++----- 12 files changed, 393 insertions(+), 395 deletions(-) delete mode 100755 compile_protos.sh diff --git a/bgp/bgp.pb.go b/bgp/bgp.pb.go index 0a02ff6f..e98240e4 100644 --- a/bgp/bgp.pb.go +++ b/bgp/bgp.pb.go @@ -1,11 +1,11 @@ // Code generated by protoc-gen-go. DO NOT EDIT. -// source: bgp/bgp.proto +// source: github.com/openconfig/gnoi/bgp/bgp.proto /* Package gnoi_bgp is a generated protocol buffer package. It is generated from these files: - bgp/bgp.proto + github.com/openconfig/gnoi/bgp/bgp.proto It has these top-level messages: ClearBGPNeighborRequest @@ -178,26 +178,27 @@ var _BGP_serviceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "bgp/bgp.proto", + Metadata: "github.com/openconfig/gnoi/bgp/bgp.proto", } -func init() { proto.RegisterFile("bgp/bgp.proto", fileDescriptor0) } +func init() { proto.RegisterFile("github.com/openconfig/gnoi/bgp/bgp.proto", fileDescriptor0) } var fileDescriptor0 = []byte{ - // 234 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0x4d, 0x4a, 0x2f, 0xd0, - 0x4f, 0x4a, 0x2f, 0xd0, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x48, 0xcf, 0xcb, 0xcf, 0xd4, - 0x4b, 0x4a, 0x2f, 0x50, 0x3a, 0xc4, 0xc8, 0x25, 0xee, 0x9c, 0x93, 0x9a, 0x58, 0xe4, 0xe4, 0x1e, - 0xe0, 0x97, 0x9a, 0x99, 0x9e, 0x91, 0x94, 0x5f, 0x14, 0x94, 0x5a, 0x58, 0x9a, 0x5a, 0x5c, 0x22, - 0x24, 0xc1, 0xc5, 0x9e, 0x98, 0x92, 0x52, 0x94, 0x5a, 0x5c, 0x2c, 0xc1, 0xa8, 0xc0, 0xa8, 0xc1, - 0x19, 0x04, 0xe3, 0x0a, 0x69, 0x72, 0x09, 0x14, 0xe5, 0x97, 0x96, 0x64, 0xe6, 0xa5, 0xc7, 0x67, - 0xe6, 0x15, 0x97, 0x24, 0xe6, 0x25, 0xa7, 0x4a, 0x30, 0x81, 0x95, 0xf0, 0x43, 0xc5, 0x3d, 0xa1, - 0xc2, 0x42, 0x56, 0x5c, 0x2c, 0xb9, 0xf9, 0x29, 0xa9, 0x12, 0xcc, 0x0a, 0x8c, 0x1a, 0x7c, 0x46, - 0x6a, 0x7a, 0x30, 0x9b, 0xf5, 0x70, 0xd8, 0xaa, 0xe7, 0x9b, 0x9f, 0x92, 0x1a, 0x04, 0xd6, 0xa3, - 0xa4, 0xc6, 0xc5, 0x02, 0xe2, 0x09, 0x71, 0x70, 0xb1, 0x04, 0xfb, 0xbb, 0x85, 0x08, 0x30, 0x08, - 0x71, 0x71, 0xb1, 0x81, 0x58, 0x9e, 0x7e, 0x02, 0x8c, 0x20, 0x51, 0x0f, 0xc7, 0x20, 0x17, 0x01, - 0x26, 0x25, 0x29, 0x2e, 0x09, 0x4c, 0xd3, 0x8a, 0x0b, 0xf2, 0xf3, 0x8a, 0x53, 0x8d, 0x92, 0xb8, - 0x98, 0x9d, 0xdc, 0x03, 0x84, 0xa2, 0xb9, 0x04, 0xd0, 0x95, 0x08, 0x29, 0x12, 0x74, 0x8c, 0x94, - 0x12, 0x3e, 0x25, 0x10, 0x1b, 0x94, 0x18, 0x92, 0xd8, 0xc0, 0xa1, 0x6a, 0x0c, 0x08, 0x00, 0x00, - 0xff, 0xff, 0x5a, 0x8a, 0x62, 0x2e, 0x66, 0x01, 0x00, 0x00, + // 254 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x90, 0x31, 0x4f, 0xc3, 0x30, + 0x10, 0x85, 0x9b, 0x36, 0x2a, 0xe5, 0x06, 0x88, 0xbc, 0x10, 0x75, 0x2a, 0x19, 0xaa, 0xb0, 0x38, + 0x52, 0xd9, 0xd8, 0x28, 0x88, 0xd2, 0x81, 0x52, 0x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 0x3b, 0x3f, 0x78, 0xcc, 0x38, 0xfb, 0xcf, 0xf2, 0x9d, 0x90, 0xf5, 0xc4, 0xb0, 0xfb, 0xea, 0xe5, + 0x57, 0x00, 0x00, 0x00, 0xff, 0xff, 0x02, 0xe1, 0xbb, 0xd9, 0x81, 0x01, 0x00, 0x00, } diff --git a/cert/cert.pb.go b/cert/cert.pb.go index 45fc5a3c..66e2809d 100644 --- a/cert/cert.pb.go +++ b/cert/cert.pb.go @@ -1,11 +1,11 @@ // Code generated by protoc-gen-go. DO NOT EDIT. -// source: cert/cert.proto +// source: github.com/openconfig/gnoi/cert/cert.proto /* Package gnoi_certificate is a generated protocol buffer package. It is generated from these files: - cert/cert.proto + github.com/openconfig/gnoi/cert/cert.proto It has these top-level messages: RotateCertificateRequest @@ -1695,86 +1695,87 @@ var _CertificateManagement_serviceDesc = grpc.ServiceDesc{ ClientStreams: true, }, }, - Metadata: "cert/cert.proto", + Metadata: "github.com/openconfig/gnoi/cert/cert.proto", } -func init() { proto.RegisterFile("cert/cert.proto", fileDescriptor0) } +func init() { proto.RegisterFile("github.com/openconfig/gnoi/cert/cert.proto", fileDescriptor0) } var fileDescriptor0 = []byte{ - // 1192 bytes of a gzipped FileDescriptorProto + // 1212 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x57, 0xdd, 0x72, 0xda, 0x46, - 0x14, 0xb6, 0x8c, 0x63, 0xe0, 0x80, 0x41, 0xde, 0x24, 0x8e, 0xa0, 0xcd, 0xc4, 0x51, 0xeb, 0x89, - 0xe3, 0x64, 0x48, 0x26, 0x3f, 0x33, 0xfd, 0x99, 0x49, 0xc7, 0x26, 0x24, 0x66, 0xb0, 0x09, 0xb3, - 0xe0, 0xb6, 0x77, 0x9a, 0x8d, 0x58, 0xc8, 0x8e, 0xd1, 0x8a, 0x4a, 0x72, 0x3a, 0xf8, 0x21, 0xfa, - 0x02, 0xbd,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0xde, 0xa2, 0x13, - 0x41, 0x9a, 0x3d, 0x97, 0x0f, 0xe8, 0x0e, 0x14, 0x6c, 0xd7, 0x71, 0x5c, 0x6e, 0x71, 0xe2, 0x50, - 0x63, 0x43, 0x04, 0x00, 0x52, 0xd4, 0x26, 0x0e, 0x45, 0x06, 0x64, 0x6d, 0xf7, 0x82, 0x07, 0xde, - 0xc4, 0xb8, 0x26, 0x94, 0xd3, 0x57, 0x74, 0x03, 0xae, 0xf9, 0xe1, 0x38, 0x18, 0x9b, 0x42, 0x2e, - 0x5f, 0x10, 0x82, 0x0d, 0x9b, 0x05, 0x13, 0x23, 0x2b, 0x84, 0xe2, 0x19, 0x99, 0x50, 0x74, 0xbd, - 0x21, 0xe1, 0xec, 0x52, 0x2e, 0x97, 0x9c, 0xd0, 0x25, 0x64, 0xe8, 0x11, 0x5c, 0x8f, 0xbf, 0x93, - 0x91, 0x75, 0xc1, 0x59, 0x60, 0xe4, 0x05, 0x14, 0x25, 0x55, 0x67, 0x9c, 0x05, 0xe8, 0x36, 0x00, - 0x1b, 0x5b, 0xa4, 0xdf, 0xf7, 0xa8, 0xef, 0x1b, 0x20, 0x70, 0x79, 0x36, 0x3e, 0x94, 0x02, 0x54, - 0x81, 0x1c, 0x75, 0x08, 0x1b, 0x85, 0x65, 0x29, 0x48, 0xc7, 0xc5, 0x7b, 0xb3, 0x6f, 0xbe, 0x80, - 0xeb, 0x8a, 0xe6, 0x44, 0xf7, 0x20, 0x33, 0x6f, 0xe8, 0x9b, 0xca, 0x1e, 0xc0, 0x21, 0xc2, 0xfc, - 0x43, 0x83, 0x1d, 0xf5, 0x8c, 0xa1, 0xef, 0xa0, 0x10, 0xef, 0x65, 0xc9, 0x75, 0xfb, 0xca, 0x22, - 0xe3, 0xb8, 0xc5, 0xb4, 0x8a, 0x63, 0xc2, 0xbc, 0x68, 0x12, 0xd4, 0x55, 0xec, 0x10, 0xe6, 0x89, - 0x2a, 0x86, 0x0f, 0x8a, 0x4e, 0xcc,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 0x93, 0xef, 0xf6, 0xc8, 0xba, 0x60, 0x34, 0x34, 0xf2, 0x02, 0x8a, 0xe6, 0x55, 0x27, 0x8c, 0x86, + 0xe8, 0x36, 0x00, 0xf5, 0x2c, 0xbb, 0xdf, 0xf7, 0x49, 0x10, 0x18, 0x20, 0x70, 0x79, 0xea, 0xbd, + 0x92, 0x02, 0x54, 0x81, 0x1c, 0x71, 0x6d, 0x3a, 0x8a, 0xca, 0x52, 0x90, 0x8e, 0x8b, 0xf7, 0x66, + 0xdf, 0x7c, 0x09, 0xd7, 0x15, 0xcd, 0x89, 0x1e, 0x40, 0x66, 0xd6, 0xd0, 0x37, 0x95, 0x3d, 0x80, + 0x23, 0x84, 0xf9, 0x87, 0x06, 0x3b, 0xea, 0x19, 0x43, 0xdf, 0x41, 0x21, 0xd9, 0xcb, 0x92, 0xeb, + 0xf6, 0x95, 0x45, 0xc6, 0x49, 0x8b, 0x49, 0x15, 0x3d, 0x9b, 0xfa, 0xf1, 0x24, 0xa8, 0xab, 0xd8, + 0xb1, 0xa9, 0x2f, 0xaa, 0x18, 0x3d, 0x28, 0x3a, 0x31, 0xa3, 0xea, 0xc4, 0x0a, 0xdc, 0x5a, 0x32, + 0x44, 0xe6, 0x36, 0x94, 0x17, 0x36, 0xbb, 0x69, 0xc0, 0xce, 0x5b, 0x12, 0x26, 0xc0, 0xc1, 0x44, + 0x33, 0x84, 0x5b, 0x29, 0xcd, 0x74, 0x3f, 0xe8, 0x73, 0x9e, 0xb0, 0x01, 0x37, 0xb4, 0xbb, 0x19, + 0xf5, 0x59, 0x92, 0x60, 0x68, 0xb2, 0x01, 0xc7, 0x65, 0x67, 0x5e, 0x60, 0xfe, 0xab, 0x41, 0x79, + 0x01, 0xa4, 0x88, 0x55, 0x53, 0xc4, 0xba, 0x58, 0x89, 0xf5, 0xff, 0x5d, 0x89, 0xaf, 0x20, 0x4f, + 0x58, 0xdf, 0xe3, 0x94, 0x85, 0x81, 0x91, 0x11, 0x21, 0x54, 0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x24, 0x0e, 0x60, 0xb3, 0xd5, 0xb3, 0x70, 0xf7, 0x95, 0xae, + 0x3d, 0xfd, 0x7d, 0x03, 0x6e, 0x26, 0x78, 0x8f, 0x6d, 0x66, 0x0f, 0x89, 0x4b, 0x58, 0x88, 0x08, + 0x6c, 0xca, 0x3b, 0x39, 0xda, 0x4b, 0x47, 0xbf, 0xec, 0x0f, 0x4d, 0xf5, 0xd1, 0x4a, 0x58, 0xd9, + 0x97, 0xbb, 0xda, 0x13, 0x0d, 0x9d, 0x41, 0x36, 0xbe, 0x50, 0x22, 0x85, 0xed, 0xd2, 0xeb, 0x73, + 0xf5, 0xf1, 0x6a, 0xe0, 0xc4, 0x97, 0x06, 0x50, 0x5e, 0x38, 0x97, 0xd0, 0xae, 0xea, 0x62, 0xaa, + 0x3a, 0xd4, 0xaa, 0x0f, 0x57, 0x40, 0xc6, 0xd3, 0xc6, 0x01, 0xa5, 0xd7, 0xad, 0x2a, 0xb8, 0xa5, + 0x9b, 0x5d, 0x15, 0xdc, 0x15, 0x1b, 0xdc, 0x81, 0xd2, 0xfc, 0xe0, 0xa3, 0x07, 0x8a, 0x81, 0x52, + 0xad, 0xb4, 0xea, 0xee, 0x87, 0x81, 0xf2, 0x23, 0xa7, 0x9b, 0xe2, 0xff, 0xed, 0xb3, 0xff, 0x02, + 0x00, 0x00, 0xff, 0xff, 0x34, 0xcc, 0xb3, 0x45, 0x0d, 0x0f, 0x00, 0x00, } diff --git a/compile_protos.sh b/compile_protos.sh deleted file mode 100755 index 2dcec12a..00000000 --- a/compile_protos.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/sh -set -euo pipefail - -proto_imports=".:${GOPATH}/src/github.com/google/protobuf/src:${GOPATH}/src" - -# Go -protoc -I=$proto_imports --go_out=. types.proto -for p in bgp cert file interface layer2 mpls system; do - protoc -I=$proto_imports --go_out=plugins=grpc:. $p/$p.proto -done - diff --git a/file/file.pb.go b/file/file.pb.go index cd68430d..cf46301d 100644 --- a/file/file.pb.go +++ b/file/file.pb.go @@ -1,11 +1,11 @@ // Code generated by protoc-gen-go. DO NOT EDIT. -// source: file/file.proto +// source: github.com/openconfig/gnoi/file/file.proto /* Package gnoi_file is a generated protocol buffer package. It is generated from these files: - file/file.proto + github.com/openconfig/gnoi/file/file.proto It has these top-level messages: PutRequest @@ -769,42 +769,42 @@ var _File_serviceDesc = grpc.ServiceDesc{ ClientStreams: true, }, }, - Metadata: "file/file.proto", + Metadata: "github.com/openconfig/gnoi/file/file.proto", } -func init() { proto.RegisterFile("file/file.proto", fileDescriptor0) } +func init() { proto.RegisterFile("github.com/openconfig/gnoi/file/file.proto", fileDescriptor0) } var fileDescriptor0 = []byte{ - // 481 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x53, 0x5d, 0x6f, 0xd3, 0x30, - 0x14, 0xad, 0xd7, 0x74, 0x6b, 0x6f, 0xda, 0x81, 0x0c, 0x8c, 0x50, 0x81, 0x28, 0x01, 0xa1, 0xf2, - 0x40, 0x3a, 0x75, 0x2f, 0xec, 0x09, 0x69, 0x42, 0xac, 0x48, 0x20, 0x4d, 0x81, 0x57, 0x34, 0x79, - 0xdd, 0x6d, 0x63, 0xd1, 0xd8, 0x21, 0x76, 0x90, 0xc6, 0x9f, 0xe0, 0x1f, 0xf2, 0x33, 0x78, 0x46, - 0xb6, 0x93, 0x36, 0xe9, 0xc6, 0xc7, 0x4b, 0x95, 0x9e, 0x9c, 0x73, 0xee, 0xb9, 0xc7, 0x0e, 0xdc, - 0x5a, 0xf0, 0x15, 0x4e, 0xcc, 0x4f, 0x94, 0xe5, 0x52, 0x4b, 0xda, 0x5b, 0x0a, 0xc9, 0x23, 0x03, - 0x0c, 0x9f, 0x2f, 0xb9, 0x4e, 0x8a, 0x8b, 0x68, 0x2e, 0xd3, 0x89, 0xcc, 0x50, 0xcc, 0xa5, 0x58, - 0xf0, 0xe5, 0xc4, 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 0x03, 0x00, - 0x00, + // 482 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x53, 0xd1, 0x6e, 0xd3, 0x30, + 0x14, 0xad, 0xd7, 0x74, 0x6b, 0x6f, 0xda, 0x09, 0x19, 0x18, 0xa1, 0x02, 0x51, 0x02, 0x42, 0x05, + 0x89, 0x74, 0xea, 0x5e, 0xd8, 0x13, 0xd2, 0x84, 0x58, 0x91, 0x40, 0x9a, 0x02, 0xaf, 0x68, 0xf2, + 0xba, 0xdb, 0xc6, 0xa2, 0xb1, 0x43, 0xec, 0x20, 0x8d, 0x9f, 0xe0, 0x0f, 0xf9, 0x0c, 0x9e, 0x91, + 0xed, 0xa4, 0x4d, 0xbb, 0x51, 0xf6, 0x52, 0xa5, 0x27, 0xe7, 0x9c, 0x7b, 0xee, 0xb1, 0x03, 0xaf, + 0xe6, 0x5c, 0x27, 0xc5, 0x45, 0x34, 0x95, 0xe9, 0x48, 0x66, 0x28, 0xa6, 0x52, 0xcc, 0xf8, 0x7c, + 0x34, 0x17, 0x92, 0x8f, 0x66, 0x7c, 0x81, 0xf6, 0x27, 0xca, 0x72, 0xa9, 0x25, 0xed, 0x18, 0x34, + 0x32, 0x40, 0xff, 0xc5, 0x16, 0x99, 0xbe, 0xca, 0x50, 0x39, 0x49, 0xf8, 0x9b, 0x00, 0x9c, 0x15, + 0x3a, 0xc6, 0xef, 0x05, 0x2a, 0x4d, 0x8f, 0xc0, 0x33, 0xec, 0x80, 0x0c, 0xc8, 0xd0, 0x1f, 0x3f, + 0x8e, 0x96, 0x86, 0xd1, 0x8a, 0x14, 0xbd, 0x43, 0xcd, 0xf8, 0x42, 0x4d, 0x1a, 0xb1, 0x25, 0xd3, + 0x47, 0xd0, 0x9e, 0x4a, 0xa1, 0x51, 0x68, 0x15, 0xec, 0x0c, 0xc8, 0xb0, 0x3b, 0x69, 0xc4, 0x4b, + 0x84, 0x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, 0x67, 0xd5, 0xf6, 0x99, 0xde, 0x83, 0x56, 0x91, + 0x32, 0xf5, 0x2d, 0x68, 0x59, 0xbe, 0xfb, 0x13, 0x1e, 0x42, 0x2f, 0xc6, 0x54, 0xfe, 0xc0, 0x5b, + 0x1f, 0xc0, 0x1d, 0xd8, 0xaf, 0x14, 0xae, 0x80, 0xf1, 0x1f, 0x02, 0x9e, 0xbd, 0x06, 0x6f, 0xa0, + 0x79, 0x8a, 0x9a, 0xde, 0xaf, 0x35, 0xb0, 0x3a, 0xda, 0xfe, 0xc1, 0x26, 0x5c, 0x56, 0xde, 0x38, + 0x24, 0x46, 0x79, 0x56, 0xac, 0x2b, 0x57, 0xd7, 0x7b, 0x4d, 0x59, 0xbf, 0x3a, 0x8d, 0x21, 0xa1, + 0xc7, 0xe0, 0x99, 0x46, 0xe9, 0xc1, 0x46, 0xed, 0x95, 0xf6, 0xc1, 0x35, 0xbc, 0x12, 0xd3, 0xb7, + 0xb0, 0xeb, 0x36, 0xa1, 0x41, 0x8d, 0xb4, 0x56, 0x47, 0xff, 0xe1, 0x0d, 0x6f, 0x2a, 0x83, 0x8b, + 0x5d, 0xfb, 0xc5, 0x1e, 0xfd, 0x0d, 0x00, 0x00, 0xff, 0xff, 0x2f, 0xfb, 0xba, 0xe9, 0x12, 0x04, + 0x00, 0x00, } diff --git a/interface/BUILD.bazel b/interface/BUILD.bazel index 2d94e1c3..470aabcd 100644 --- a/interface/BUILD.bazel +++ b/interface/BUILD.bazel @@ -4,7 +4,7 @@ proto_library( name = "interface_proto", srcs = ["interface.proto"], deps = [ - "//github.com/openconfig/gnoi:gnoi_proto", + "//github.com/openconfig/reference/rpc/gnoi:gnoi_proto", ], ) @@ -12,7 +12,7 @@ go_proto_library( name = "go_default_library", srcs = ["interface.proto"], deps = [ - "//github.com/openconfig/gnoi:go_default_library" + "//github.com/openconfig/reference/rpc/gnoi:go_default_library" ], visibility = ["//visibility:public"], rules_go_repo_only_for_internal_use = "@", diff --git a/interface/interface.pb.go b/interface/interface.pb.go index a1f3f84b..df8e5867 100644 --- a/interface/interface.pb.go +++ b/interface/interface.pb.go @@ -1,11 +1,11 @@ // Code generated by protoc-gen-go. DO NOT EDIT. -// source: interface/interface.proto +// source: github.com/openconfig/gnoi/interface/interface.proto /* Package gnoi_interface is a generated protocol buffer package. It is generated from these files: - interface/interface.proto + github.com/openconfig/gnoi/interface/interface.proto It has these top-level messages: SetLoopbackModeRequest @@ -20,7 +20,7 @@ package gnoi_interface import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" -import gnoi "github.com/openconfig/gnoi" +import gnoi "github.com/openconfig/reference/rpc/gnoi" import ( context "golang.org/x/net/context" @@ -280,29 +280,32 @@ var _Interface_serviceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "interface/interface.proto", + Metadata: "github.com/openconfig/gnoi/interface/interface.proto", } -func init() { proto.RegisterFile("interface/interface.proto", fileDescriptor0) } +func init() { + proto.RegisterFile("github.com/openconfig/gnoi/interface/interface.proto", fileDescriptor0) +} var fileDescriptor0 = []byte{ - // 284 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xcc, 0xcc, 0x2b, 0x49, - 0x2d, 0x4a, 0x4b, 0x4c, 0x4e, 0xd5, 0x87, 0xb3, 0xf4, 0x0a, 0x8a, 0xf2, 0x4b, 0xf2, 0x85, 0xf8, - 0xd2, 0xf3, 0xf2, 0x33, 0xf5, 0xe0, 0xa2, 0x52, 0x6a, 0xe9, 0x99, 0x25, 0x19, 0xa5, 0x49, 0x7a, - 0xc9, 0xf9, 0xb9, 0xfa, 0xf9, 0x05, 0xa9, 0x79, 0xc9, 0xf9, 0x79, 0x69, 0x99, 0xe9, 0xfa, 0x20, - 0x55, 0xfa, 0x25, 0x95, 0x05, 0xa9, 0xc5, 0x10, 0x7d, 0x4a, 0x61, 0x5c, 0x62, 0xc1, 0xa9, 0x25, - 0x3e, 0xf9, 0xf9, 0x05, 0x49, 0x89, 0xc9, 0xd9, 0xbe, 0xf9, 0x29, 0xa9, 0x41, 0xa9, 0x85, 0xa5, - 0xa9, 0xc5, 0x25, 0x42, 0x1a, 0x5c, 0x9c, 0x70, 0xe3, 0x24, 0x18, 0x15, 0x18, 0x35, 0xb8, 0x8d, - 0xb8, 0xf4, 0xc0, 0xb6, 0x04, 0x24, 0x96, 0x64, 0x04, 0x21, 0x24, 0x85, 0x84, 0xb8, 0x58, 0x72, - 0xf3, 0x53, 0x52, 0x25, 0x98, 0x14, 0x18, 0x35, 0x38, 0x83, 0xc0, 0x6c, 0x25, 0x49, 0x2e, 0x71, - 0x0c, 0x73, 0x8b, 0x0b, 0xf2, 0xf3, 0x8a, 0x53, 0x95, 0x9c, 0xb8, 0xc4, 0xdc, 0x29, 0xb4, 0x52, - 0x49, 0x97, 0x4b, 0xdc, 0x1d, 0xbb, 0xf1, 0x70, 0xd7, 0x30, 0x22, 0xb9, 0xc6, 0x93, 0x4b, 0xd6, - 0x39, 0x27, 0x35, 0xb1, 0xc8, 0x13, 0x66, 0x80, 0x73, 0x7e, 0x29, 0x88, 0x59, 0x8c, 0xc3, 0x66, - 0x66, 0xdc, 0x36, 0x2b, 0x70, 0xc9, 0xe1, 0x32, 0x0a, 0xe2, 0x00, 0xa3, 0x4b, 0x4c, 0x5c, 0x9c, - 0x70, 0x59, 0xa1, 0x14, 0x2e, 0x7e, 0xb4, 0x80, 0x10, 0x52, 0xd3, 0x43, 0x8d, 0x2c, 0x3d, 0xec, - 0x31, 0x20, 0xa5, 0x4e, 0x50, 0x1d, 0x34, 0x44, 0x19, 0x40, 0xb6, 0xb8, 0x13, 0xb2, 0xc5, 0x9d, - 0x48, 0x5b, 0xdc, 0x71, 0xda, 0x52, 0xc9, 0x25, 0x86, 0xdd, 0xef, 0x42, 0xba, 0xe8, 0x86, 0xe0, - 0x0d, 0x6e, 0x29, 0x3d, 0x62, 0x95, 0xc3, 0xac, 0x4e, 0x62, 0x03, 0x27, 0x57, 0x63, 0x40, 0x00, - 0x00, 0x00, 0xff, 0xff, 0xfa, 0x35, 0x00, 0x60, 0x03, 0x03, 0x00, 0x00, + // 294 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x92, 0xc1, 0x4a, 0xf3, 0x40, + 0x10, 0xc7, 0xbf, 0xf4, 0x13, 0xa1, 0x23, 0x28, 0xec, 0xa1, 0xad, 0x01, 0x25, 0xe4, 0xa0, 0xb9, + 0x74, 0x03, 0xd5, 0x27, 0xb0, 0x87, 0x50, 0x50, 0x90, 0x08, 0xde, 0x93, 0xcd, 0x24, 0x0d, 0xda, + 0x9d, 0x75, 0xb3, 0x39, 0xf4, 0x35, 0x7d, 0x22, 0x49, 0x62, 0x53, 0xad, 0x89, 0x2d, 0x78, 0x1b, + 0x32, 0xc3, 0xef, 0x37, 0xf9, 0xcf, 0xc2, 0x6d, 0x96, 0x9b, 0x65, 0x19, 0x73, 0x41, 0x2b, 0x9f, + 0x14, 0x4a, 0x41, 0x32, 0xcd, 0x33, 0x3f, 0x93, 0x94, 0xfb, 0xb9, 0x34, 0xa8, 0xd3, 0x48, 0xe0, + 0xb6, 0xe2, 0x4a, 0x93, 0x21, 0x76, 0x5a, 0xf5, 0x79, 0xfb, 0xd5, 0xee, 0xa1, 0x68, 0x4c, 0x51, + 0xa3, 0x14, 0xe8, 0x6b, 0x25, 0x1a, 0xa6, 0x59, 0x2b, 0x2c, 0x1a, 0x8a, 0xfb, 0x0c, 0xa3, 0x27, + 0x34, 0xf7, 0x44, 0x2a, 0x8e, 0xc4, 0xcb, 0x03, 0x25, 0x18, 0xe2, 0x5b, 0x89, 0x85, 0x61, 0x1e, + 0x0c, 0x5b, 0xf8, 0xc4, 0x72, 0x2c, 0xef, 0x64, 0x06, 0xbc, 0x76, 0x3e, 0x46, 0x66, 0x19, 0x6e, + 0x9b, 0x8c, 0xc1, 0xd1, 0x8a, 0x12, 0x9c, 0x0c, 0x1c, 0xcb, 0x1b, 0x86, 0x75, 0xed, 0x9e, 0xc3, + 0xf8, 0x07, 0xb7, 0x50, 0x24, 0x0b, 0x74, 0xef, 0x60, 0x14, 0xfc, 0x51, 0xe9, 0x4e, 0x61, 0x1c, + 0x74, 0xe3, 0xdb, 0x6d, 0xac, 0x2f, 0xdb, 0x2c, 0xe0, 0x62, 0xfe, 0x8a, 0x91, 0x5e, 0x6c, 0x00, + 0x73, 0x2a, 0xab, 0xb2, 0xe8, 0x31, 0xff, 0xef, 0x37, 0x3b, 0x70, 0xd9, 0x87, 0x6a, 0x16, 0x98, + 0xbd, 0x0f, 0x60, 0xd8, 0x76, 0x59, 0x02, 0x67, 0x3b, 0x41, 0xb0, 0x2b, 0xfe, 0xfd, 0x74, 0xbc, + 0xfb, 0x02, 0xf6, 0xf5, 0xde, 0xb9, 0xcf, 0x44, 0xff, 0x55, 0x96, 0x60, 0x9f, 0x25, 0x38, 0xd0, + 0x12, 0xf4, 0x5a, 0xd6, 0x30, 0xea, 0xfe, 0x77, 0x36, 0xdd, 0x85, 0xfc, 0x1a, 0xb7, 0xcd, 0x0f, + 0x1d, 0xdf, 0xa8, 0xe3, 0xe3, 0xfa, 0xb9, 0xde, 0x7c, 0x04, 0x00, 0x00, 0xff, 0xff, 0xe9, 0x0e, + 0x8c, 0x8d, 0x2c, 0x03, 0x00, 0x00, } diff --git a/interface/interface.proto b/interface/interface.proto index 01ed7ccc..19c9a45e 100644 --- a/interface/interface.proto +++ b/interface/interface.proto @@ -18,7 +18,7 @@ syntax = "proto3"; package gnoi.interface; -import "github.com/openconfig/gnoi/types.proto"; +import "github.com/openconfig/reference/rpc/gnoi/types.proto"; service Interface { // SetLoopbackMode is used to set the mode of loopback on a interface. diff --git a/layer2/layer2.pb.go b/layer2/layer2.pb.go index 00f5f7f8..4b2918a6 100644 --- a/layer2/layer2.pb.go +++ b/layer2/layer2.pb.go @@ -1,11 +1,11 @@ // Code generated by protoc-gen-go. DO NOT EDIT. -// source: layer2/layer2.proto +// source: github.com/openconfig/gnoi/layer2/layer2.proto /* Package gnoi_layer2 is a generated protocol buffer package. It is generated from these files: - layer2/layer2.proto + github.com/openconfig/gnoi/layer2/layer2.proto It has these top-level messages: ClearNeighborDiscoveryRequest @@ -24,7 +24,7 @@ package gnoi_layer2 import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" -import gnoi "github.com/openconfig/gnoi" +import gnoi "github.com/openconfig/reference/rpc/gnoi" import ( context "golang.org/x/net/context" @@ -544,49 +544,50 @@ var _Layer2_serviceDesc = grpc.ServiceDesc{ ServerStreams: true, }, }, - Metadata: "layer2/layer2.proto", + Metadata: "github.com/openconfig/gnoi/layer2/layer2.proto", } -func init() { proto.RegisterFile("layer2/layer2.proto", fileDescriptor0) } +func init() { proto.RegisterFile("github.com/openconfig/gnoi/layer2/layer2.proto", fileDescriptor0) } var fileDescriptor0 = []byte{ - // 597 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0x6d, 0x4f, 0x13, 0x41, - 0x10, 0xe6, 0x5a, 0x28, 0x74, 0x0a, 0x4d, 0x5d, 0x14, 0xcf, 0xfa, 0x42, 0x3d, 0x03, 0x36, 0x6a, - 0xae, 0xa6, 0xfc, 0x01, 0x81, 0x36, 0x86, 0x78, 0x5e, 0x9b, 0x6d, 0x09, 0x7e, 0x23, 0xdb, 0xbb, - 0xe1, 0xd8, 0xd8, 0xde, 0x9e, 0xbb, 0x0b, 0x09, 0xf1, 0x67, 0xf9, 0xf7, 0xfc, 0x60, 0x7a, 0x2f, - 0x95, 0xda, 0x83, 0xca, 0xa7, 0xcb, 0xce, 0x3c, 0xf3, 0x3c, 0x93, 0x99, 0x67, 0x0e, 0xb6, 0xc7, - 0xec, 0x06, 0x65, 0xbb, 0x95, 0x7c, 0xec, 0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 0x73, 0xe8, 0x3e, 0x98, 0xff, 0x6e, 0x2f, 0x93, 0x5d, 0xa8, 0x4c, - 0x98, 0x77, 0x9e, 0x65, 0x8b, 0xf1, 0xa4, 0x61, 0xc2, 0xbc, 0xc3, 0xd4, 0xec, 0x4f, 0xe1, 0xc9, - 0x3f, 0xe2, 0x49, 0x57, 0xed, 0xdf, 0x45, 0x28, 0x39, 0xf1, 0xda, 0x89, 0x82, 0x9d, 0xfc, 0x83, - 0x20, 0xf3, 0xf6, 0xb8, 0xf7, 0x3c, 0xeb, 0xef, 0xff, 0x0b, 0x9b, 0xce, 0x64, 0x85, 0xf8, 0xf0, - 0x68, 0xe1, 0x3a, 0xc8, 0xde, 0x22, 0x47, 0xce, 0x0d, 0xd6, 0xf7, 0x97, 0xc1, 0x66, 0x2a, 0x43, - 0xa8, 0xdc, 0x32, 0x35, 0xd9, 0xbd, 0xdb, 0xee, 0x09, 0x73, 0x63, 0xd9, 0x3d, 0x58, 0x2b, 0x1f, - 0x0d, 0x12, 0x00, 0x59, 0xdc, 0x37, 0xc9, 0xe9, 0x2a, 0xcf, 0x57, 0xf5, 0xb7, 0x4b, 0x71, 0xb3, - 0xf6, 0xbf, 0xc1, 0xd6, 0xdc, 0xf6, 0xc8, 0xeb, 0xb9, 0xda, 0x3c, 0x5b, 0xd5, 0xad, 0xfb, 0x20, - 0x19, 0xf3, 0xa8, 0x14, 0xff, 0x28, 0x0f, 0xfe, 0x04, 0x00, 0x00, 0xff, 0xff, 0xd8, 0x91, 0x68, - 0xe4, 0xc0, 0x05, 0x00, 0x00, + // 609 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x94, 0x6b, 0x6f, 0x12, 0x4d, + 0x14, 0xc7, 0xbb, 0xd0, 0xd2, 0x72, 0x68, 0x09, 0xcf, 0x3c, 0x5a, 0x57, 0xbc, 0x14, 0xd7, 0x54, + 0x89, 0x9a, 0x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a, 0xc4, 0xac, 0x8a, 0x26, 0x94, 0x19, + 0xd7, 0x28, 0xc7, 0x9e, 0x8f, 0x71, 0x19, 0x95, 0x36, 0x24, 0x65, 0xf4, 0x3d, 0x7d, 0x41, 0xff, + 0x38, 0xad, 0x27, 0xf0, 0x38, 0x87, 0x92, 0x4a, 0xb8, 0x40, 0xfa, 0x28, 0xc7, 0x42, 0x4e, 0x8f, + 0xba, 0x74, 0x98, 0xc1, 0xab, 0x50, 0x60, 0x41, 0x4c, 0x2d, 0xd3, 0x02, 0x0b, 0x16, 0xc5, 0x0a, + 0x77, 0x89, 0xfd, 0x2c, 0xc0, 0xff, 0x0b, 0xc0, 0x44, 0x67, 0x89, 0xf8, 0x11, 0x36, 0x94, 0xf6, + 0x74, 0x42, 0xab, 0xb6, 0xdf, 0xd8, 0x37, 0x06, 0x67, 0xe7, 0x00, 0xec, 0xd9, 0x63, 0x30, 0xcb, + 0xa0, 0x49, 0x22, 0xd9, 0x87, 0x2a, 0x4e, 0xbc, 0x48, 0x61, 0x70, 0x1e, 0xa1, 0x64, 0x22, 0x30, + 0x8b, 0x0d, 0xa3, 0x59, 0xa4, 0x3b, 0xa9, 0xb5, 0x1f, 0x1b, 0x67, 0xfd, 0x8f, 0x3c, 0xad, 0x51, + 0x72, 0x73, 0xbd, 0x61, 0x34, 0xb7, 0x69, 0xf6, 0x24, 0xbb, 0x50, 0x42, 0x29, 0x85, 0x54, 0xe6, + 0x46, 0x9c, 0x98, 0xbe, 0xc8, 0x4b, 0xd8, 0x91, 0xe8, 0x23, 0xbb, 0xc2, 0xe0, 0x7c, 0xc4, 0xb4, + 0x32, 0x4b, 0xb1, 0x7b, 0x3b, 0x33, 0x1e, 0x31, 0xad, 0x2c, 0x07, 0xca, 0xf3, 0x8a, 0x48, 0x05, + 0x36, 0x4f, 0xdd, 0xcf, 0x6e, 0xef, 0xcc, 0xad, 0xad, 0x91, 0x6d, 0xd8, 0xea, 0x9c, 0x0c, 0x0e, + 0x8f, 0x9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x72, 0xf3, 0xd6, 0xaa, 0x6e, 0xdd, 0x15, 0x92, 0x91, 0x47, 0xa5, + 0xf8, 0x47, 0x79, 0xf0, 0x3b, 0x00, 0x00, 0xff, 0xff, 0xa5, 0xac, 0xd7, 0xcd, 0xe9, 0x05, 0x00, + 0x00, } diff --git a/layer2/layer2.proto b/layer2/layer2.proto index 9d6897ff..1dd5b303 100644 --- a/layer2/layer2.proto +++ b/layer2/layer2.proto @@ -18,7 +18,7 @@ syntax = "proto3"; package gnoi.layer2; -import "github.com/openconfig/gnoi/types.proto"; +import "github.com/openconfig/reference/rpc/gnoi/types.proto"; service Layer2 { diff --git a/mpls/mpls.pb.go b/mpls/mpls.pb.go index 7faabf30..7f54b021 100644 --- a/mpls/mpls.pb.go +++ b/mpls/mpls.pb.go @@ -1,11 +1,11 @@ // Code generated by protoc-gen-go. DO NOT EDIT. -// source: mpls/mpls.proto +// source: github.com/openconfig/gnoi/mpls/mpls.proto /* Package gnoi_mpls is a generated protocol buffer package. It is generated from these files: - mpls/mpls.proto + github.com/openconfig/gnoi/mpls/mpls.proto It has these top-level messages: ClearLSPRequest @@ -714,57 +714,59 @@ var _MPLS_serviceDesc = grpc.ServiceDesc{ ServerStreams: true, }, }, - Metadata: "mpls/mpls.proto", + Metadata: "github.com/openconfig/gnoi/mpls/mpls.proto", } -func init() { proto.RegisterFile("mpls/mpls.proto", fileDescriptor0) } +func init() { proto.RegisterFile("github.com/openconfig/gnoi/mpls/mpls.proto", fileDescriptor0) } var fileDescriptor0 = []byte{ - // 736 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x54, 0x4f, 0x6f, 0xda, 0x4a, - 0x10, 0xb7, 0xc1, 0x09, 0x30, 0x60, 0xd8, 0xac, 0xf2, 0xde, 0x73, 0x78, 0x87, 0x97, 0xe7, 0xb4, - 0x6a, 0x0e, 0x29, 0x6d, 0x49, 0x2f, 0xed, 0xa9, 0x84, 0x38, 0x09, 0x12, 0x01, 0xb4, 0x36, 0xc9, - 0xa9, 0xb2, 0xa8, 0xbd, 0xa4, 0x96, 0x8c, 0xed, 0x78, 0x4d, 0xd2, 0xf6, 0x4b, 0x56, 0xea, 0x17, - 0xe9, 0xa9, 0xf7, 0x6a, 0xd7, 0x36, 0x04, 0x42, 0x73, 0xb1, 0x66, 0x7f, 0x33, 0xf3, 0x9b, 0xbf, - 0x1e, 0x68, 0xcc, 0x22, 0x9f, 0xbd, 0xe2, 0x9f, 0x56, 0x14, 0x87, 0x49, 0x88, 0x2b, 0x37, 0x41, - 0xe8, 0xb5, 0x38, 0xa0, 0xff, 0x90, 0xa1, 0xd1, 0xf5, 0xe9, 0x24, 0xee, 0x9b, 0x23, 0x42, 0x6f, - 0xe7, 0x94, 0x25, 0x18, 0x83, 0x12, 0x4c, 0x66, 0x54, 0x2b, 0xec, 0xcb, 0x87, 0x15, 0x22, 0x64, - 0x7c, 0x0c, 0xca, 0x2c, 0x74, 0xa9, 0x56, 0xdc, 0x97, 0x0f, 0xeb, 0xed, 0xff, 0x5a, 0x0b, 0x86, - 0xd6, 0x9a, 0x77, 0xeb, 0x32, 0x74, 0x29, 0x11, 0xc6, 0xfa, 0x1d, 0x28, 0xfc, 0x85, 0xab, 0x50, - 0x3a, 0x35, 0xce, 0x3a, 0xe3, 0xbe, 0x85, 0x24, 0xbc, 0x03, 0xea, 0x60, 0x38, 0xe8, 0x9c, 0x9f, - 0x13, 0xc3, 0x34, 0x7b, 0x57, 0x06, 0x92, 0x70, 0x1d, 0xe0, 0xc1, 0x5b, 0xc6, 0x15, 0xd8, 0x22, - 0x86, 0x69, 0x58, 0xa8, 0x80, 0xff, 0x82, 0x9d, 0xce, 0xd8, 0x1a, 0x9e, 0x5c, 0xdb, 0x0f, 0x2c, - 0x8a, 0x58, 0x83, 0xdd, 0x0c, 0x5e, 0xe5, 0x52, 0x9a, 0x05, 0x24, 0xeb, 0x18, 0xd0, 0x32, 0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2b, 0xe6, 0x5c, 0x6f, - 0x1f, 0x6d, 0x6c, 0x59, 0x6a, 0xd2, 0x32, 0x9c, 0xcf, 0x61, 0xfe, 0xe8, 0xf2, 0xd6, 0x2d, 0xbc, - 0x79, 0x35, 0xb9, 0x6c, 0x27, 0xde, 0x2c, 0x3d, 0x14, 0x0a, 0xa9, 0xe5, 0xa0, 0xe5, 0xcd, 0xa8, - 0xfe, 0x1e, 0xd0, 0x3a, 0x05, 0xbf, 0x0d, 0xe6, 0xb8, 0xdb, 0x35, 0x4c, 0x13, 0x49, 0xb8, 0x06, - 0xe5, 0xc1, 0xd0, 0xb2, 0x4d, 0x63, 0x60, 0x21, 0x99, 0xab, 0xac, 0xde, 0xa5, 0x31, 0x1c, 0x5b, - 0xa8, 0xd0, 0xfe, 0x25, 0x83, 0xc2, 0x13, 0xc2, 0x06, 0x94, 0xf3, 0x3f, 0x13, 0x37, 0xff, 0x7c, - 0x87, 0x9a, 0xff, 0x6e, 0xd4, 0x65, 0xbf, 0xb0, 0x84, 0x3f, 0x2e, 0x6f, 0x44, 0xfe, 0x83, 0x63, - 0x7d, 0x83, 0xcb, 0xda, 0xb1, 0x68, 0x1e, 0x3c, 0x69, 0xb3, 0xa0, 0x3f, 0x87, 0x72, 0xde, 0xbe, - 0x95, 0x2c, 0xd7, 0xd6, 0x70, 0x25, 0xcb, 0xf5, 0x7e, 0xeb, 0xd2, 0x6b, 0xf9, 0xd3, 0xb6, 0x38, - 0xd9, 0xc7, 0xbf, 0x03, 0x00, 0x00, 0xff, 0xff, 0xc7, 0x45, 0x47, 0x1a, 0xc5, 0x05, 0x00, 0x00, + // 758 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x54, 0x4f, 0x6f, 0xe2, 0x46, + 0x14, 0xb7, 0xc1, 0x09, 0xf0, 0xc0, 0xc4, 0x19, 0xa5, 0xad, 0x43, 0x0f, 0x4d, 0x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e, 0xcf, 0xe0, 0x05, 0x00, 0x00, } diff --git a/system/system.pb.go b/system/system.pb.go index 26f480f0..fe921e7e 100644 --- a/system/system.pb.go +++ b/system/system.pb.go @@ -1,11 +1,11 @@ // Code generated by protoc-gen-go. DO NOT EDIT. -// source: system/system.proto +// source: github.com/openconfig/gnoi/system/system.proto /* Package gnoi_system is a generated protocol buffer package. It is generated from these files: - system/system.proto + github.com/openconfig/gnoi/system/system.proto It has these top-level messages: SwitchControlProcessorRequest @@ -1055,8 +1055,8 @@ type SystemClient interface { // of the data sent. An error is returned if the location does not exist or // there is an error writing the data. If no checksum is received, the target // must assume the operation is incomplete and remove the partially - // transmitted file. The target should initially write the file to a temporary - // location so a failure does not destroy the original file. + // transmitted file. The target should initially write the file to a temporary location so a failure + // does not destroy the original file. SetPackage(ctx context.Context, opts ...grpc.CallOption) (System_SetPackageClient, error) // SwitchControlProcessor will switch from the current route processor to the // provided route processor. If the current route processor is the same as the @@ -1251,8 +1251,8 @@ type SystemServer interface { // of the data sent. An error is returned if the location does not exist or // there is an error writing the data. If no checksum is received, the target // must assume the operation is incomplete and remove the partially - // transmitted file. The target should initially write the file to a temporary - // location so a failure does not destroy the original file. + // transmitted file. The target should initially write the file to a temporary location so a failure + // does not destroy the original file. SetPackage(System_SetPackageServer) error // SwitchControlProcessor will switch from the current route processor to the // provided route processor. If the current route processor is the same as the @@ -1478,107 +1478,107 @@ var _System_serviceDesc = grpc.ServiceDesc{ ClientStreams: true, }, }, - Metadata: "system/system.proto", + Metadata: "github.com/openconfig/gnoi/system/system.proto", } -func init() { proto.RegisterFile("system/system.proto", fileDescriptor0) } +func init() { proto.RegisterFile("github.com/openconfig/gnoi/system/system.proto", fileDescriptor0) } var fileDescriptor0 = []byte{ - // 1531 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x57, 0xdf, 0x6e, 0xdb, 0xbc, - 0x15, 0xb7, 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, 0x16, 0x9a, 0x85, 0x34, 0x60, 0xe4, 0x27, - 0xc7, 0x46, 0x06, 0x94, 0x16, 0x24, 0x62, 0x1e, 0x0d, 0x8c, 0x6c, 0x5d, 0x3b, 0xae, 0xd8, 0x89, - 0x88, 0x8e, 0xa0, 0x38, 0x0f, 0xb9, 0x37, 0x23, 0x46, 0xae, 0xae, 0x1d, 0xe7, 0xec, 0x58, 0x32, - 0xff, 0xa7, 0xc1, 0xae, 0x4d, 0xae, 0x29, 0xe5, 0x49, 0x61, 0xbf, 0x81, 0xe2, 0x8c, 0xf0, 0x29, - 0x1d, 0xcb, 0x13, 0xf7, 0x4e, 0x1f, 0x35, 0x52, 0xf8, 0x35, 0x94, 0xef, 0xa5, 0x74, 0xb0, 0x63, - 0x47, 0x74, 0x08, 0x85, 0x31, 0xf1, 0xf1, 0xad, 0x3c, 0x34, 0x6f, 0x2b, 0x41, 0x24, 0x33, 0x23, - 0x8c, 0xe1, 0x89, 0x3a, 0xb3, 0x62, 0x27, 0x22, 0x7a, 0x05, 0xbb, 0x6c, 0x7e, 0xed, 0xd2, 0x59, - 0x48, 0x03, 0x12, 0x70, 0x66, 0xe4, 0xeb, 0xb9, 0x8d, 0xda, 0xd6, 0x1d, 0xc4, 0x09, 0x37, 0x34, - 0x72, 0x89, 0x51, 0xa8, 0x6b, 0xc7, 0x65, 0x5b, 0x09, 0xa6, 0x0e, 0x7b, 0x49, 0xee, 0x0a, 0x39, - 0x13, 0xc3, 0x41, 0x0b, 0x07, 0x2e, 0xf1, 0xd7, 0x6b, 0x4a, 0xa5, 0xa2, 0xdd, 0x93, 0x4a, 0xf6, - 0x9e, 0x54, 0xcc, 0x23, 0x38, 0x5c, 0x3f, 0x22, 0x3e, 0xfa, 0x03, 0x1c, 0x28, 0xcd, 0x80, 0x63, - 0x3e, 0x67, 0xc9, 0xd1, 0x77, 0x0e, 0xd0, 0xee, 0x3b, 0xe0, 0xef, 0x1a, 0x1c, 0xae, 0x47, 0x8a, - 0x69, 0x71, 0x04, 0x45, 0xec, 0x72, 0x6f, 0xa1, 0x8a, 0x28, 0xdb, 0xb1, 0x84, 0x10, 0xe4, 0x3f, - 0x63, 0x8f, 0xc7, 0xe8, 0xcb, 0xb5, 0xd4, 0x4d, 0x49, 0x20, 0x91, 0x17, 0xba, 0x29, 0x91, 0x1c, - 0x88, 0x08, 0x66, 0x34, 0x30, 0xf2, 0x12, 0x84, 0x58, 0x12, 0xe0, 0xba, 0x74, 0x1e, 0x70, 0x09, - 0xee, 0xae, 0xad, 0x04, 0x73, 0x17, 0xaa, 0x8e, 0x37, 0x23, 0x71, 0x1d, 0xa6, 0x09, 0x3b, 0x4a, - 0x8c, 0x93, 0x41, 0x90, 0x97, 0x74, 0xd2, 0xd4, 0x01, 0x92, 0x4c, 0xff, 0xcd, 0x42, 0xb5, 0xef, + // 1532 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x57, 0xdd, 0x6e, 0xdb, 0xbe, + 0x15, 0xb7, 0xfc, 0xed, 0xe3, 0x24, 0x7f, 0x85, 0xc9, 0x52, 0xd5, 0xdd, 0x5a, 0x4f, 0xe8, 0x8a, + 0xb4, 0x03, 0x9c, 0x2e, 0x2d, 0xd0, 0x61, 0x43, 0x31, 0xb8, 0xb6, 0xd2, 0x04, 0x75, 0x6c, 0x4f, + 0x96, 0x97, 0x01, 0xbb, 0x30, 0x18, 0x99, 0xb1, 0x85, 0xca, 0xa2, 0x26, 0xd2, 0x6e, 0xb3, 0xeb, + 0xdd, 0xed, 0x66, 0x17, 0xc3, 0xb0, 0xdb, 0xbd, 0xc6, 0x5e, 0x64, 0xef, 0xb1, 0x27, 0x18, 0x48, + 0x4a, 0xb6, 0xec, 0xb8, 0x49, 0xf1, 0xbf, 0x32, 0xcf, 0x39, 0xe4, 0xf9, 0xf8, 0x9d, 0x1f, 0xa9, + 0x63, 0x68, 0x4c, 0x3c, 0x3e, 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3, 0xf7, 0xfd, + 0x57, 0xa9, 0xfd, 0xf2, 0xbb, 0xf6, 0x2e, 0xeb, 0x68, 0x41, 0x51, 0x11, 0x02, 0xd5, 0xb6, 0xcc, + 0xfe, 0x89, 0xd3, 0x27, 0x5b, 0x6d, 0x4b, 0x27, 0xc3, 0x84, 0x55, 0x6a, 0x88, 0x45, 0xf5, 0x2d, + 0xdb, 0xd7, 0x26, 0xe5, 0xda, 0xcf, 0xef, 0xd9, 0x91, 0x76, 0x9b, 0x9e, 0xbe, 0x37, 0xdc, 0x6e, + 0x99, 0xfd, 0x37, 0xdc, 0x6e, 0x1d, 0xdd, 0x33, 0xd7, 0x45, 0xf9, 0x6d, 0x7c, 0xf3, 0xff, 0x00, + 0x00, 0x00, 0xff, 0xff, 0xf5, 0xc0, 0x29, 0xeb, 0x5c, 0x0e, 0x00, 0x00, } diff --git a/types.pb.go b/types.pb.go index 0fbbd74b..1c9ec9f2 100644 --- a/types.pb.go +++ b/types.pb.go @@ -1,11 +1,11 @@ // Code generated by protoc-gen-go. DO NOT EDIT. -// source: types.proto +// source: github.com/openconfig/gnoi/types.proto /* Package gnoi is a generated protocol buffer package. It is generated from these files: - types.proto + github.com/openconfig/gnoi/types.proto It has these top-level messages: HashType @@ -170,28 +170,29 @@ func init() { proto.RegisterEnum("gnoi.HashType_HashMethod", HashType_HashMethod_name, HashType_HashMethod_value) } -func init() { proto.RegisterFile("types.proto", fileDescriptor0) } +func init() { proto.RegisterFile("github.com/openconfig/gnoi/types.proto", fileDescriptor0) } var fileDescriptor0 = []byte{ - // 306 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x91, 0x41, 0x4f, 0x83, 0x40, - 0x10, 0x85, 0x5d, 0x40, 0xa4, 0x53, 0x53, 0x37, 0x13, 0xa3, 0xe8, 0xa9, 0xe1, 0x54, 0x3d, 0x90, - 0x94, 0xda, 0xc6, 0x78, 0x30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 0xf1, 0x04, 0xf4, 0x77, - 0x5e, 0xdb, 0x9a, 0xf2, 0x38, 0xfc, 0xeb, 0xe1, 0xde, 0xf1, 0xda, 0xcf, 0xaa, 0xa2, 0x66, 0x52, - 0x73, 0x3c, 0x03, 0xab, 0x6b, 0x20, 0x6d, 0xd6, 0x1a, 0x27, 0x89, 0xb8, 0x0f, 0xdb, 0x9f, 0x61, - 0xf2, 0xc1, 0xdb, 0x90, 0x4d, 0x71, 0xa1, 0x9d, 0x93, 0xd3, 0x31, 0xc0, 0xfd, 0x24, 0x90, 0xc7, - 0x7e, 0x15, 0xc9, 0xff, 0x3b, 0x58, 0x60, 0x2c, 0x83, 0xe7, 0x33, 0x4a, 0x5a, 0x9a, 0x51, 0xed, - 0xc5, 0x54, 0x7f, 0x33, 0xf9, 0x09, 0x00, 0x00, 0xff, 0xff, 0xea, 0xe4, 0xaf, 0x79, 0xaa, 0x01, - 0x00, 0x00, + // 329 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x91, 0x41, 0x4f, 0xbb, 0x40, + 0x10, 0xc5, 0xff, 0x0b, 0xfc, 0x91, 0x4e, 0x4d, 0xdd, 0x4c, 0x8c, 0xa2, 0xa7, 0x86, 0x83, 0xa9, + 0x1e, 0x68, 0x4a, 0x6d, 0x63, 0x3c, 0x98, 0xa8, 0xc5, 0xb4, 0xd1, 0x1a, 0x42, 0xd5, 0x3b, 0xad, + 0x2b, 0x10, 0x81, 0x25, 0x2d, 0x35, 0xe1, 0xe8, 0x47, 0xf0, 0x1b, 0x9b, 0x5d, 0x20, 0xc6, 0x78, + 0xfb, 0xcd, 0xcc, 0x9b, 0x97, 0xb7, 0xb3, 0x70, 0x12, 0xc6, 0x45, 0xb4, 0x5d, 0xda, 0x2b, 0x9e, + 0xf6, 0x79, 0xce, 0xb2, 0x15, 0xcf, 0xde, 0xe2, 0xb0, 0x1f, 0x66, 0x3c,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0f, 0xff, 0x3f, 0x82, 0x64, 0xcb, 0xea, 0x90, 0x55, 0x71, 0xa9, 0x5c, 0x90, + 0xb3, 0x01, 0xc0, 0xc3, 0xd0, 0x13, 0xc7, 0x5e, 0xf1, 0xe4, 0xef, 0x1d, 0x0c, 0xd0, 0x66, 0xde, + 0xcb, 0x39, 0x25, 0x35, 0x8d, 0xa9, 0xb2, 0xd4, 0xe5, 0xdf, 0x0c, 0xbf, 0x03, 0x00, 0x00, 0xff, + 0xff, 0x8d, 0x0d, 0x18, 0xa6, 0xc5, 0x01, 0x00, 0x00, } From 5561e5ff074ca742d7c98f61ca2edcb48841a3f3 Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 17:00:10 +0530 Subject: [PATCH 224/238] Revert "remove enum prefix" This reverts commit dff27d2151c09c90ca5fd4b151c9b6f0cd66059e. --- system/system.proto | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/system/system.proto b/system/system.proto index a18663e2..eb87b321 100644 --- a/system/system.proto +++ b/system/system.proto @@ -285,11 +285,11 @@ message RemoteDownload { string path = 1; enum DownloadType { - UNKNOWN = 0; - SFTP = 1; - HTTP = 2; - HTTPS = 3; - SCP = 4; + DL_UNKNOWN = 0; + DL_SFTP = 1; + DL_HTTP = 2; + DL_HTTPS = 3; + DL_SCP = 4; } DownloadType download_type = 2; From 9d10ccf5a246ca3f6683796ac05b8ccefddcad29 Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 17:00:11 +0530 Subject: [PATCH 225/238] Revert "SetPackage support for remote downloads" This reverts commit 50ef837e3a0ab12fb45acead8810c3320d059242. --- system/system.proto | 32 +++----------------------------- types.proto | 9 --------- 2 files changed, 3 insertions(+), 38 deletions(-) diff --git a/system/system.proto b/system/system.proto index eb87b321..933d68f2 100644 --- a/system/system.proto +++ b/system/system.proto @@ -275,37 +275,11 @@ message TracerouteResponse { repeated int32 as_path = 12; // AS path. } -// RemoteDownload defines the details for a device to initiate a download of a -// package from a remote location. -message RemoteDownload { - // The path information containing where to download the package from. - // For HTTP(S), this will be the URL (i.e. foo.com/file.tbz2). - // For SFTP and SCP, this will be the address:/path/to/file - // (i.e. host.foo.com:/bar/baz). - string path = 1; - - enum DownloadType { - DL_UNKNOWN = 0; - DL_SFTP = 1; - DL_HTTP = 2; - DL_HTTPS = 3; - DL_SCP = 4; - } - DownloadType download_type = 2; - - gnoi.Credentials credentials = 3; -} - // Package defines a single package file to be placed on the target. message Package { - // Destination path and filename of the package. - string filename = 1; - // Version of the package. (vendor internal name) - string version = 4; - // For system packages this will take effect after reboot. - bool activate = 5; - // Details for the device to download the package from a remote location. - RemoteDownload remote_download = 6; + string filename = 1; // Destination path and filename of the package. + string version = 4; // Version of the package. (vendor internal name) + bool activate = 5; // For system packages this will take effect after reboot. } // SetPackageRequest will place the package onto the target and optionally mark diff --git a/types.proto b/types.proto index 31d17b78..3b3ff11f 100644 --- a/types.proto +++ b/types.proto @@ -54,12 +54,3 @@ message PathElem { string name = 1; // The name of the element in the path. map key = 2; // Map of key (attribute) name to value. } - -// Credentials defines credentials needed to perform authentication on a device. -message Credentials { - string username = 1; - oneof password { - string cleartext = 2; - HashType hashed = 3; - } -} From 787119b431692bcf14829b385f3a78c7d3788d02 Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 17:00:11 +0530 Subject: [PATCH 226/238] Revert "squash! Update comments on SetPackage to be clear on streaming api Update Put to fix duplicate and typo" This reverts commit adcb256430e2563e5bc717d336c6677776e663cc. --- system/system.proto | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/system/system.proto b/system/system.proto index 933d68f2..85259ce9 100644 --- a/system/system.proto +++ b/system/system.proto @@ -51,8 +51,8 @@ service System { // of the data sent. An error is returned if the location does not exist or // there is an error writing the data. If no checksum is received, the target // must assume the operation is incomplete and remove the partially - // transmitted file. The target should initially write the file to a temporary - // location so a failure does not destroy the original file. + // transmitted file. The target should initially write the file to a temporary location so a failure + // does not destroy the original file. rpc SetPackage(stream SetPackageRequest) returns (SetPackageResponse) {} // SwitchControlProcessor will switch from the current route processor to the From 714792cbce03800afbd0884a9222f7ab2c52c02a Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 17:00:12 +0530 Subject: [PATCH 227/238] Revert "squash! Update comments on SetPackage to be clear on streaming api Update Put to fix duplicate and typo" This reverts commit 55415636c9216b061c4219bd39216462fa88fa2a. --- system/system.pb.go | 2 +- system/system.proto | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/system/system.pb.go b/system/system.pb.go index fe921e7e..88e31849 100644 --- a/system/system.pb.go +++ b/system/system.pb.go @@ -843,7 +843,7 @@ func (m *Package) GetActivate() bool { // SetPackageRequest will place the package onto the target and optionally mark // it as the next bootable image. The initial message must be a package -// message containing the filename and information about the file. Following the +// message containing the filename and information about the file. Folloing the // initial message the contents are then streamed in maximum 64k chunks. The // final message must be a hash message contains the hash of the file contents. type SetPackageRequest struct { diff --git a/system/system.proto b/system/system.proto index 85259ce9..c35e3e96 100644 --- a/system/system.proto +++ b/system/system.proto @@ -284,7 +284,7 @@ message Package { // SetPackageRequest will place the package onto the target and optionally mark // it as the next bootable image. The initial message must be a package -// message containing the filename and information about the file. Following the +// message containing the filename and information about the file. Folloing the // initial message the contents are then streamed in maximum 64k chunks. The // final message must be a hash message contains the hash of the file contents. message SetPackageRequest { From ab42b7916c729678ac454d5cafe391e4b8e9fe68 Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 17:00:13 +0530 Subject: [PATCH 228/238] Revert "squash! Update comments on SetPackage to be clear on streaming api Update Put to fix duplicate and typo" This reverts commit bd2c15875dee530a2c5d3375b69c5f8ecaa80d11. --- README.md | 1 - file/file.pb.go | 810 -------------------------------------------- system/system.pb.go | 22 +- 3 files changed, 5 insertions(+), 828 deletions(-) delete mode 100644 file/file.pb.go diff --git a/README.md b/README.md index c2cd6dda..f2f6c6e4 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,6 @@ cd ${GOPATH}/src protoc -I=${GOPATH}/src:${GOPATH}/src/github.com/openconfig/gnoi --go_out=plugins=grpc:. ${GOPATH}/src/github.com/openconfig/gnoi/types.proto protoc -I=${GOPATH}/src:${GOPATH}/src/github.com/openconfig/gnoi --go_out=plugins=grpc:. ${GOPATH}/src/github.com/openconfig/gnoi/bgp/bgp.proto protoc -I=${GOPATH}/src:${GOPATH}/src/github.com/openconfig/gnoi --go_out=plugins=grpc:. ${GOPATH}/src/github.com/openconfig/gnoi/cert/cert.proto -protoc -I=${GOPATH}/src:${GOPATH}/src/github.com/openconfig/gnoi --go_out=plugins=grpc:. ${GOPATH}/src/github.com/openconfig/gnoi/file/file.proto protoc -I=${GOPATH}/src:${GOPATH}/src/github.com/openconfig/gnoi --go_out=plugins=grpc:. ${GOPATH}/src/github.com/openconfig/gnoi/interface/interface.proto protoc -I=${GOPATH}/src:${GOPATH}/src/github.com/openconfig/gnoi --go_out=plugins=grpc:. ${GOPATH}/src/github.com/openconfig/gnoi/layer2/layer2.proto protoc -I=${GOPATH}/src:${GOPATH}/src/github.com/openconfig/gnoi --go_out=plugins=grpc:. ${GOPATH}/src/github.com/openconfig/gnoi/mpls/mpls.proto diff --git a/file/file.pb.go b/file/file.pb.go deleted file mode 100644 index cf46301d..00000000 --- a/file/file.pb.go +++ /dev/null @@ -1,810 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: github.com/openconfig/gnoi/file/file.proto - -/* -Package gnoi_file is a generated protocol buffer package. - -It is generated from these files: - github.com/openconfig/gnoi/file/file.proto - -It has these top-level messages: - PutRequest - PutResponse - GetRequest - GetResponse - StatRequest - StatResponse - StatInfo - RemoveRequest - RemoveResponse -*/ -package gnoi_file - -import proto "github.com/golang/protobuf/proto" -import fmt "fmt" -import math "math" -import gnoi "github.com/openconfig/gnoi" - -import ( - context "golang.org/x/net/context" - grpc "google.golang.org/grpc" -) - -// 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 - -// A PutRequest is used to send data to be written on a file on the target. -// -// The initial message contains an Open message. The Open message contains -// information name of the file and the file's permisssions. -// -// The remote_file must be an absolute path. If remote_file already exists on -// the target, it is overwritten, otherwise it is created. If the path to -// remote_file doesn't exist it will be created. -// -// The contents to be written are streamed through multiple messages using the -// contents field. Each message may contain up to 64KB of data. -// -// The final message of the RPC contains the hash of the file contents. -type PutRequest struct { - // Types that are valid to be assigned to Request: - // *PutRequest_Open - // *PutRequest_Contents - // *PutRequest_Hash - Request isPutRequest_Request `protobuf_oneof:"request"` -} - -func (m *PutRequest) Reset() { *m = PutRequest{} } -func (m *PutRequest) String() string { return proto.CompactTextString(m) } -func (*PutRequest) ProtoMessage() {} -func (*PutRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } - -type isPutRequest_Request interface { - isPutRequest_Request() -} - -type PutRequest_Open struct { - Open *PutRequest_Details `protobuf:"bytes,1,opt,name=open,oneof"` -} -type PutRequest_Contents struct { - Contents []byte `protobuf:"bytes,2,opt,name=contents,proto3,oneof"` -} -type PutRequest_Hash struct { - Hash *gnoi.HashType `protobuf:"bytes,3,opt,name=hash,oneof"` -} - -func (*PutRequest_Open) isPutRequest_Request() {} -func (*PutRequest_Contents) isPutRequest_Request() {} -func (*PutRequest_Hash) isPutRequest_Request() {} - -func (m *PutRequest) GetRequest() isPutRequest_Request { - if m != nil { - return m.Request - } - return nil -} - -func (m *PutRequest) GetOpen() *PutRequest_Details { - if x, ok := m.GetRequest().(*PutRequest_Open); ok { - return x.Open - } - return nil -} - -func (m *PutRequest) GetContents() []byte { - if x, ok := m.GetRequest().(*PutRequest_Contents); ok { - return x.Contents - } - return nil -} - -func (m *PutRequest) GetHash() *gnoi.HashType { - if x, ok := m.GetRequest().(*PutRequest_Hash); ok { - return x.Hash - } - return nil -} - -// XXX_OneofFuncs is for the internal use of the proto package. -func (*PutRequest) 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 _PutRequest_OneofMarshaler, _PutRequest_OneofUnmarshaler, _PutRequest_OneofSizer, []interface{}{ - (*PutRequest_Open)(nil), - (*PutRequest_Contents)(nil), - (*PutRequest_Hash)(nil), - } -} - -func _PutRequest_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { - m := msg.(*PutRequest) - // request - switch x := m.Request.(type) { - case *PutRequest_Open: - b.EncodeVarint(1<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.Open); err != nil { - return err - } - case *PutRequest_Contents: - b.EncodeVarint(2<<3 | proto.WireBytes) - b.EncodeRawBytes(x.Contents) - case *PutRequest_Hash: - b.EncodeVarint(3<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.Hash); err != nil { - return err - } - case nil: - default: - return fmt.Errorf("PutRequest.Request has unexpected type %T", x) - } - return nil -} - -func _PutRequest_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { - m := msg.(*PutRequest) - switch tag { - case 1: // request.open - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(PutRequest_Details) - err := b.DecodeMessage(msg) - m.Request = &PutRequest_Open{msg} - return true, err - case 2: // request.contents - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - x, err := b.DecodeRawBytes(true) - m.Request = &PutRequest_Contents{x} - return true, err - case 3: // request.hash - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(gnoi.HashType) - err := b.DecodeMessage(msg) - m.Request = &PutRequest_Hash{msg} - return true, err - default: - return false, nil - } -} - -func _PutRequest_OneofSizer(msg proto.Message) (n int) { - m := msg.(*PutRequest) - // request - switch x := m.Request.(type) { - case *PutRequest_Open: - s := proto.Size(x.Open) - n += proto.SizeVarint(1<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *PutRequest_Contents: - n += proto.SizeVarint(2<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(len(x.Contents))) - n += len(x.Contents) - case *PutRequest_Hash: - s := proto.Size(x.Hash) - n += proto.SizeVarint(3<<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 -} - -type PutRequest_Details struct { - RemoteFile string `protobuf:"bytes,1,opt,name=remote_file,json=remoteFile" json:"remote_file,omitempty"` - // Permissions are represented as the octal format of standard UNIX - // file permissions. - // ex. 775: user read/write/execute, group read/write/execute, - // global read/execute. - Permissions uint32 `protobuf:"varint,2,opt,name=permissions" json:"permissions,omitempty"` -} - -func (m *PutRequest_Details) Reset() { *m = PutRequest_Details{} } -func (m *PutRequest_Details) String() string { return proto.CompactTextString(m) } -func (*PutRequest_Details) ProtoMessage() {} -func (*PutRequest_Details) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0, 0} } - -func (m *PutRequest_Details) GetRemoteFile() string { - if m != nil { - return m.RemoteFile - } - return "" -} - -func (m *PutRequest_Details) GetPermissions() uint32 { - if m != nil { - return m.Permissions - } - return 0 -} - -type PutResponse struct { -} - -func (m *PutResponse) Reset() { *m = PutResponse{} } -func (m *PutResponse) String() string { return proto.CompactTextString(m) } -func (*PutResponse) ProtoMessage() {} -func (*PutResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } - -// A GetRequest specifies the remote_file to be streamed back -// to the caller. The remote_file must be an absolute path to an -// existing file. -type GetRequest struct { - RemoteFile string `protobuf:"bytes,1,opt,name=remote_file,json=remoteFile" json:"remote_file,omitempty"` -} - -func (m *GetRequest) Reset() { *m = GetRequest{} } -func (m *GetRequest) String() string { return proto.CompactTextString(m) } -func (*GetRequest) ProtoMessage() {} -func (*GetRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} } - -func (m *GetRequest) GetRemoteFile() string { - if m != nil { - return m.RemoteFile - } - return "" -} - -// A GetResponse either contains the next set of bytes read from the -// file or, as the last message, the hash of the data. -type GetResponse struct { - // Types that are valid to be assigned to Response: - // *GetResponse_Contents - // *GetResponse_Hash - Response isGetResponse_Response `protobuf_oneof:"response"` -} - -func (m *GetResponse) Reset() { *m = GetResponse{} } -func (m *GetResponse) String() string { return proto.CompactTextString(m) } -func (*GetResponse) ProtoMessage() {} -func (*GetResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} } - -type isGetResponse_Response interface { - isGetResponse_Response() -} - -type GetResponse_Contents struct { - Contents []byte `protobuf:"bytes,1,opt,name=contents,proto3,oneof"` -} -type GetResponse_Hash struct { - Hash *gnoi.HashType `protobuf:"bytes,2,opt,name=hash,oneof"` -} - -func (*GetResponse_Contents) isGetResponse_Response() {} -func (*GetResponse_Hash) isGetResponse_Response() {} - -func (m *GetResponse) GetResponse() isGetResponse_Response { - if m != nil { - return m.Response - } - return nil -} - -func (m *GetResponse) GetContents() []byte { - if x, ok := m.GetResponse().(*GetResponse_Contents); ok { - return x.Contents - } - return nil -} - -func (m *GetResponse) GetHash() *gnoi.HashType { - if x, ok := m.GetResponse().(*GetResponse_Hash); ok { - return x.Hash - } - return nil -} - -// XXX_OneofFuncs is for the internal use of the proto package. -func (*GetResponse) 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 _GetResponse_OneofMarshaler, _GetResponse_OneofUnmarshaler, _GetResponse_OneofSizer, []interface{}{ - (*GetResponse_Contents)(nil), - (*GetResponse_Hash)(nil), - } -} - -func _GetResponse_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { - m := msg.(*GetResponse) - // response - switch x := m.Response.(type) { - case *GetResponse_Contents: - b.EncodeVarint(1<<3 | proto.WireBytes) - b.EncodeRawBytes(x.Contents) - case *GetResponse_Hash: - b.EncodeVarint(2<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.Hash); err != nil { - return err - } - case nil: - default: - return fmt.Errorf("GetResponse.Response has unexpected type %T", x) - } - return nil -} - -func _GetResponse_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { - m := msg.(*GetResponse) - switch tag { - case 1: // response.contents - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - x, err := b.DecodeRawBytes(true) - m.Response = &GetResponse_Contents{x} - return true, err - case 2: // response.hash - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(gnoi.HashType) - err := b.DecodeMessage(msg) - m.Response = &GetResponse_Hash{msg} - return true, err - default: - return false, nil - } -} - -func _GetResponse_OneofSizer(msg proto.Message) (n int) { - m := msg.(*GetResponse) - // response - switch x := m.Response.(type) { - case *GetResponse_Contents: - n += proto.SizeVarint(1<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(len(x.Contents))) - n += len(x.Contents) - case *GetResponse_Hash: - s := proto.Size(x.Hash) - n += proto.SizeVarint(2<<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 -} - -// StatRequest will list files at the provided path. -type StatRequest struct { - Path string `protobuf:"bytes,1,opt,name=path" json:"path,omitempty"` -} - -func (m *StatRequest) Reset() { *m = StatRequest{} } -func (m *StatRequest) String() string { return proto.CompactTextString(m) } -func (*StatRequest) ProtoMessage() {} -func (*StatRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} } - -func (m *StatRequest) GetPath() string { - if m != nil { - return m.Path - } - return "" -} - -// StatResponse contains list of stat info of the provided path. -type StatResponse struct { - Stats []*StatInfo `protobuf:"bytes,1,rep,name=stats" json:"stats,omitempty"` -} - -func (m *StatResponse) Reset() { *m = StatResponse{} } -func (m *StatResponse) String() string { return proto.CompactTextString(m) } -func (*StatResponse) ProtoMessage() {} -func (*StatResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} } - -func (m *StatResponse) GetStats() []*StatInfo { - if m != nil { - return m.Stats - } - return nil -} - -// StatInfo provides a file system information about a particular path. -type StatInfo struct { - Path string `protobuf:"bytes,1,opt,name=path" json:"path,omitempty"` - LastModified uint64 `protobuf:"varint,2,opt,name=last_modified,json=lastModified" json:"last_modified,omitempty"` - // Permissions are represented as the octal format of standard UNIX - // file permissions. - // ex. 775: user read/write/execute, group read/write/execute, - // global read/execute. - Permissions uint32 `protobuf:"varint,3,opt,name=permissions" json:"permissions,omitempty"` - Size uint64 `protobuf:"varint,4,opt,name=size" json:"size,omitempty"` - // Default file creation mask. Represented as the octal format of - // standard UNIX mask. - Umask uint32 `protobuf:"varint,5,opt,name=umask" json:"umask,omitempty"` -} - -func (m *StatInfo) Reset() { *m = StatInfo{} } -func (m *StatInfo) String() string { return proto.CompactTextString(m) } -func (*StatInfo) ProtoMessage() {} -func (*StatInfo) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} } - -func (m *StatInfo) GetPath() string { - if m != nil { - return m.Path - } - return "" -} - -func (m *StatInfo) GetLastModified() uint64 { - if m != nil { - return m.LastModified - } - return 0 -} - -func (m *StatInfo) GetPermissions() uint32 { - if m != nil { - return m.Permissions - } - return 0 -} - -func (m *StatInfo) GetSize() uint64 { - if m != nil { - return m.Size - } - return 0 -} - -func (m *StatInfo) GetUmask() uint32 { - if m != nil { - return m.Umask - } - return 0 -} - -// A RemoveRequest specifies a file to be removed from the target. -type RemoveRequest struct { - RemoteFile string `protobuf:"bytes,1,opt,name=remote_file,json=remoteFile" json:"remote_file,omitempty"` -} - -func (m *RemoveRequest) Reset() { *m = RemoveRequest{} } -func (m *RemoveRequest) String() string { return proto.CompactTextString(m) } -func (*RemoveRequest) ProtoMessage() {} -func (*RemoveRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} } - -func (m *RemoveRequest) GetRemoteFile() string { - if m != nil { - return m.RemoteFile - } - return "" -} - -type RemoveResponse struct { -} - -func (m *RemoveResponse) Reset() { *m = RemoveResponse{} } -func (m *RemoveResponse) String() string { return proto.CompactTextString(m) } -func (*RemoveResponse) ProtoMessage() {} -func (*RemoveResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} } - -func init() { - proto.RegisterType((*PutRequest)(nil), "gnoi.file.PutRequest") - proto.RegisterType((*PutRequest_Details)(nil), "gnoi.file.PutRequest.Details") - proto.RegisterType((*PutResponse)(nil), "gnoi.file.PutResponse") - proto.RegisterType((*GetRequest)(nil), "gnoi.file.GetRequest") - proto.RegisterType((*GetResponse)(nil), "gnoi.file.GetResponse") - proto.RegisterType((*StatRequest)(nil), "gnoi.file.StatRequest") - proto.RegisterType((*StatResponse)(nil), "gnoi.file.StatResponse") - proto.RegisterType((*StatInfo)(nil), "gnoi.file.StatInfo") - proto.RegisterType((*RemoveRequest)(nil), "gnoi.file.RemoveRequest") - proto.RegisterType((*RemoveResponse)(nil), "gnoi.file.RemoveResponse") -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// Client API for File service - -type FileClient interface { - // Get read and streams the contents of a file from the target. - // The file is streamed by sequential messages, each containing up to - // 64KB of data. A final message is sent prior to closing the stream - // that contains the hash of the data sent. An error is returned - // if the file does not exist or there was an error reading the file. - Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (File_GetClient, error) - // Put streams data into a file on the target. The file is sent in - // sequential messages, each message containing up to 64KB of data. A final - // message must be sent that includes the hash of the data sent. An - // error is returned if the location does not exist or there is an error - // writing the data. If no checksum is received, the target must assume the - // operation is incomplete and remove the partially transmitted file. The - // target should initially write the file to a temporary location so a failure - // does not destroy the original file. - Put(ctx context.Context, opts ...grpc.CallOption) (File_PutClient, error) - // Stat returns metadata about a file on the target. An error is returned - // if the file does not exist of there is an error in accessing the metadata. - Stat(ctx context.Context, in *StatRequest, opts ...grpc.CallOption) (*StatResponse, error) - // Remove removes the specified file from the target. An error is - // returned if the file does not exist, is a directory, or the remove - // operation encounters an error (e.g., permission denied). - Remove(ctx context.Context, in *RemoveRequest, opts ...grpc.CallOption) (*RemoveResponse, error) -} - -type fileClient struct { - cc *grpc.ClientConn -} - -func NewFileClient(cc *grpc.ClientConn) FileClient { - return &fileClient{cc} -} - -func (c *fileClient) Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (File_GetClient, error) { - stream, err := grpc.NewClientStream(ctx, &_File_serviceDesc.Streams[0], c.cc, "/gnoi.file.File/Get", opts...) - if err != nil { - return nil, err - } - x := &fileGetClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type File_GetClient interface { - Recv() (*GetResponse, error) - grpc.ClientStream -} - -type fileGetClient struct { - grpc.ClientStream -} - -func (x *fileGetClient) Recv() (*GetResponse, error) { - m := new(GetResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *fileClient) Put(ctx context.Context, opts ...grpc.CallOption) (File_PutClient, error) { - stream, err := grpc.NewClientStream(ctx, &_File_serviceDesc.Streams[1], c.cc, "/gnoi.file.File/Put", opts...) - if err != nil { - return nil, err - } - x := &filePutClient{stream} - return x, nil -} - -type File_PutClient interface { - Send(*PutRequest) error - CloseAndRecv() (*PutResponse, error) - grpc.ClientStream -} - -type filePutClient struct { - grpc.ClientStream -} - -func (x *filePutClient) Send(m *PutRequest) error { - return x.ClientStream.SendMsg(m) -} - -func (x *filePutClient) CloseAndRecv() (*PutResponse, error) { - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - m := new(PutResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *fileClient) Stat(ctx context.Context, in *StatRequest, opts ...grpc.CallOption) (*StatResponse, error) { - out := new(StatResponse) - err := grpc.Invoke(ctx, "/gnoi.file.File/Stat", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *fileClient) Remove(ctx context.Context, in *RemoveRequest, opts ...grpc.CallOption) (*RemoveResponse, error) { - out := new(RemoveResponse) - err := grpc.Invoke(ctx, "/gnoi.file.File/Remove", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// Server API for File service - -type FileServer interface { - // Get read and streams the contents of a file from the target. - // The file is streamed by sequential messages, each containing up to - // 64KB of data. A final message is sent prior to closing the stream - // that contains the hash of the data sent. An error is returned - // if the file does not exist or there was an error reading the file. - Get(*GetRequest, File_GetServer) error - // Put streams data into a file on the target. The file is sent in - // sequential messages, each message containing up to 64KB of data. A final - // message must be sent that includes the hash of the data sent. An - // error is returned if the location does not exist or there is an error - // writing the data. If no checksum is received, the target must assume the - // operation is incomplete and remove the partially transmitted file. The - // target should initially write the file to a temporary location so a failure - // does not destroy the original file. - Put(File_PutServer) error - // Stat returns metadata about a file on the target. An error is returned - // if the file does not exist of there is an error in accessing the metadata. - Stat(context.Context, *StatRequest) (*StatResponse, error) - // Remove removes the specified file from the target. An error is - // returned if the file does not exist, is a directory, or the remove - // operation encounters an error (e.g., permission denied). - Remove(context.Context, *RemoveRequest) (*RemoveResponse, error) -} - -func RegisterFileServer(s *grpc.Server, srv FileServer) { - s.RegisterService(&_File_serviceDesc, srv) -} - -func _File_Get_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(GetRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(FileServer).Get(m, &fileGetServer{stream}) -} - -type File_GetServer interface { - Send(*GetResponse) error - grpc.ServerStream -} - -type fileGetServer struct { - grpc.ServerStream -} - -func (x *fileGetServer) Send(m *GetResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _File_Put_Handler(srv interface{}, stream grpc.ServerStream) error { - return srv.(FileServer).Put(&filePutServer{stream}) -} - -type File_PutServer interface { - SendAndClose(*PutResponse) error - Recv() (*PutRequest, error) - grpc.ServerStream -} - -type filePutServer struct { - grpc.ServerStream -} - -func (x *filePutServer) SendAndClose(m *PutResponse) error { - return x.ServerStream.SendMsg(m) -} - -func (x *filePutServer) Recv() (*PutRequest, error) { - m := new(PutRequest) - if err := x.ServerStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func _File_Stat_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(StatRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(FileServer).Stat(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.file.File/Stat", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(FileServer).Stat(ctx, req.(*StatRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _File_Remove_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RemoveRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(FileServer).Remove(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.file.File/Remove", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(FileServer).Remove(ctx, req.(*RemoveRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _File_serviceDesc = grpc.ServiceDesc{ - ServiceName: "gnoi.file.File", - HandlerType: (*FileServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "Stat", - Handler: _File_Stat_Handler, - }, - { - MethodName: "Remove", - Handler: _File_Remove_Handler, - }, - }, - Streams: []grpc.StreamDesc{ - { - StreamName: "Get", - Handler: _File_Get_Handler, - ServerStreams: true, - }, - { - StreamName: "Put", - Handler: _File_Put_Handler, - ClientStreams: true, - }, - }, - Metadata: "github.com/openconfig/gnoi/file/file.proto", -} - -func init() { proto.RegisterFile("github.com/openconfig/gnoi/file/file.proto", fileDescriptor0) } - -var fileDescriptor0 = []byte{ - // 482 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x53, 0xd1, 0x6e, 0xd3, 0x30, - 0x14, 0xad, 0xd7, 0x74, 0x6b, 0x6f, 0xda, 0x09, 0x19, 0x18, 0xa1, 0x02, 0x51, 0x02, 0x42, 0x05, - 0x89, 0x74, 0xea, 0x5e, 0xd8, 0x13, 0xd2, 0x84, 0x58, 0x91, 0x40, 0x9a, 0x02, 0xaf, 0x68, 0xf2, - 0xba, 0xdb, 0xc6, 0xa2, 0xb1, 0x43, 0xec, 0x20, 0x8d, 0x9f, 0xe0, 0x0f, 0xf9, 0x0c, 0x9e, 0x91, - 0xed, 0xa4, 0x4d, 0xbb, 0x51, 0xf6, 0x52, 0xa5, 0x27, 0xe7, 0x9c, 0x7b, 0xee, 0xb1, 0x03, 0xaf, - 0xe6, 0x5c, 0x27, 0xc5, 0x45, 0x34, 0x95, 0xe9, 0x48, 0x66, 0x28, 0xa6, 0x52, 0xcc, 0xf8, 0x7c, - 0x34, 0x17, 0x92, 0x8f, 0x66, 0x7c, 0x81, 0xf6, 0x27, 0xca, 0x72, 0xa9, 0x25, 0xed, 0x18, 0x34, - 0x32, 0x40, 0xff, 0xc5, 0x16, 0x99, 0xbe, 0xca, 0x50, 0x39, 0x49, 0xf8, 0x9b, 0x00, 0x9c, 0x15, - 0x3a, 0xc6, 0xef, 0x05, 0x2a, 0x4d, 0x8f, 0xc0, 0x33, 0xec, 0x80, 0x0c, 0xc8, 0xd0, 0x1f, 0x3f, - 0x8e, 0x96, 0x86, 0xd1, 0x8a, 0x14, 0xbd, 0x43, 0xcd, 0xf8, 0x42, 0x4d, 0x1a, 0xb1, 0x25, 0xd3, - 0x47, 0xd0, 0x9e, 0x4a, 0xa1, 0x51, 0x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62, 0x9b, 0x6d, 0x37, - 0xaf, 0xb5, 0x6d, 0xac, 0x15, 0xff, 0x89, 0x81, 0x67, 0xd5, 0xf6, 0x99, 0xde, 0x83, 0x56, 0x91, - 0x32, 0xf5, 0x2d, 0x68, 0x59, 0xbe, 0xfb, 0x13, 0x1e, 0x42, 0x2f, 0xc6, 0x54, 0xfe, 0xc0, 0x5b, - 0x1f, 0xc0, 0x1d, 0xd8, 0xaf, 0x14, 0xae, 0x80, 0xf1, 0x1f, 0x02, 0x9e, 0xbd, 0x06, 0x6f, 0xa0, - 0x79, 0x8a, 0x9a, 0xde, 0xaf, 0x35, 0xb0, 0x3a, 0xda, 0xfe, 0xc1, 0x26, 0x5c, 0x56, 0xde, 0x38, - 0x24, 0x46, 0x79, 0x56, 0xac, 0x2b, 0x57, 0xd7, 0x7b, 0x4d, 0x59, 0xbf, 0x3a, 0x8d, 0x21, 0xa1, - 0xc7, 0xe0, 0x99, 0x46, 0xe9, 0xc1, 0x46, 0xed, 0x95, 0xf6, 0xc1, 0x35, 0xbc, 0x12, 0xd3, 0xb7, - 0xb0, 0xeb, 0x36, 0xa1, 0x41, 0x8d, 0xb4, 0x56, 0x47, 0xff, 0xe1, 0x0d, 0x6f, 0x2a, 0x83, 0x8b, - 0x5d, 0xfb, 0xc5, 0x1e, 0xfd, 0x0d, 0x00, 0x00, 0xff, 0xff, 0x2f, 0xfb, 0xba, 0xe9, 0x12, 0x04, - 0x00, 0x00, -} diff --git a/system/system.pb.go b/system/system.pb.go index 88e31849..bac26680 100644 --- a/system/system.pb.go +++ b/system/system.pb.go @@ -843,9 +843,9 @@ func (m *Package) GetActivate() bool { // SetPackageRequest will place the package onto the target and optionally mark // it as the next bootable image. The initial message must be a package -// message containing the filename and information about the file. Folloing the -// initial message the contents are then streamed in maximum 64k chunks. The -// final message must be a hash message contains the hash of the file contents. +// message containing the filename and information about the file. +// The final message must be a hash message contains the hash of the file +// contents. type SetPackageRequest struct { // Types that are valid to be assigned to Request: // *SetPackageRequest_Package @@ -1050,13 +1050,7 @@ type SystemClient interface { // test if a target is actually responding. Time(ctx context.Context, in *TimeRequest, opts ...grpc.CallOption) (*TimeResponse, error) // SetPackage places a software package (possibly including bootable images) - // on the target. The file is sent in sequential messages, each message - // up to 64KB of data. A final message must be sent that includes the hash - // of the data sent. An error is returned if the location does not exist or - // there is an error writing the data. If no checksum is received, the target - // must assume the operation is incomplete and remove the partially - // transmitted file. The target should initially write the file to a temporary location so a failure - // does not destroy the original file. + // on the target. SetPackage(ctx context.Context, opts ...grpc.CallOption) (System_SetPackageClient, error) // SwitchControlProcessor will switch from the current route processor to the // provided route processor. If the current route processor is the same as the @@ -1246,13 +1240,7 @@ type SystemServer interface { // test if a target is actually responding. Time(context.Context, *TimeRequest) (*TimeResponse, error) // SetPackage places a software package (possibly including bootable images) - // on the target. The file is sent in sequential messages, each message - // up to 64KB of data. A final message must be sent that includes the hash - // of the data sent. An error is returned if the location does not exist or - // there is an error writing the data. If no checksum is received, the target - // must assume the operation is incomplete and remove the partially - // transmitted file. The target should initially write the file to a temporary location so a failure - // does not destroy the original file. + // on the target. SetPackage(System_SetPackageServer) error // SwitchControlProcessor will switch from the current route processor to the // provided route processor. If the current route processor is the same as the From c05c49bd586f667fc922e160762f6a672b2817b2 Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 17:00:14 +0530 Subject: [PATCH 229/238] Revert "Update comments on SetPackage to be clear on streaming api" This reverts commit d63f71809291580331016627c9a8ff62f1f638eb. --- file/file.proto | 4 ++-- system/system.proto | 14 ++++---------- 2 files changed, 6 insertions(+), 12 deletions(-) diff --git a/file/file.proto b/file/file.proto index a1657b75..e83bf8a7 100644 --- a/file/file.proto +++ b/file/file.proto @@ -28,12 +28,12 @@ service File { // if the file does not exist or there was an error reading the file. rpc Get(GetRequest) returns (stream GetResponse) {} - // Put streams data into a file on the target. The file is sent in + // Put streamd data into a file on the target. The file is sent in // sequential messages, each message containing up to 64KB of data. A final // message must be sent that includes the hash of the data sent. An // error is returned if the location does not exist or there is an error // writing the data. If no checksum is received, the target must assume the - // operation is incomplete and remove the partially transmitted file. The + // the operation is incomplete and remove the partially transmitted file. The // target should initially write the file to a temporary location so a failure // does not destroy the original file. rpc Put(stream PutRequest) returns (PutResponse) {} diff --git a/system/system.proto b/system/system.proto index c35e3e96..7c95d323 100644 --- a/system/system.proto +++ b/system/system.proto @@ -46,13 +46,7 @@ service System { rpc Time(TimeRequest) returns (TimeResponse) {} // SetPackage places a software package (possibly including bootable images) - // on the target. The file is sent in sequential messages, each message - // up to 64KB of data. A final message must be sent that includes the hash - // of the data sent. An error is returned if the location does not exist or - // there is an error writing the data. If no checksum is received, the target - // must assume the operation is incomplete and remove the partially - // transmitted file. The target should initially write the file to a temporary location so a failure - // does not destroy the original file. + // on the target. rpc SetPackage(stream SetPackageRequest) returns (SetPackageResponse) {} // SwitchControlProcessor will switch from the current route processor to the @@ -284,9 +278,9 @@ message Package { // SetPackageRequest will place the package onto the target and optionally mark // it as the next bootable image. The initial message must be a package -// message containing the filename and information about the file. Folloing the -// initial message the contents are then streamed in maximum 64k chunks. The -// final message must be a hash message contains the hash of the file contents. +// message containing the filename and information about the file. +// The final message must be a hash message contains the hash of the file +// contents. message SetPackageRequest { oneof request { Package package = 1; From e9fcf52899db4bf583ed6b5be4cd92bf0615649b Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 17:00:14 +0530 Subject: [PATCH 230/238] Revert "fix markdown" This reverts commit 61567e5ec050797a6202b179245bf0a2ded5a0c4. --- README.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/README.md b/README.md index f2f6c6e4..07cf7dd4 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,6 @@ gNOI defines a set of gRPC-based microservices for executing operational commands on network devices. # Rebuild *.pb.go files -``` cd ${GOPATH}/src protoc -I=${GOPATH}/src:${GOPATH}/src/github.com/openconfig/gnoi --go_out=plugins=grpc:. ${GOPATH}/src/github.com/openconfig/gnoi/types.proto protoc -I=${GOPATH}/src:${GOPATH}/src/github.com/openconfig/gnoi --go_out=plugins=grpc:. ${GOPATH}/src/github.com/openconfig/gnoi/bgp/bgp.proto @@ -12,4 +11,3 @@ protoc -I=${GOPATH}/src:${GOPATH}/src/github.com/openconfig/gnoi --go_out=plugin protoc -I=${GOPATH}/src:${GOPATH}/src/github.com/openconfig/gnoi --go_out=plugins=grpc:. ${GOPATH}/src/github.com/openconfig/gnoi/mpls/mpls.proto protoc -I=${GOPATH}/src:${GOPATH}/src/github.com/openconfig/gnoi --go_out=plugins=grpc:. ${GOPATH}/src/github.com/openconfig/gnoi/system/system.proto cd - -``` From e3d2db8df8ec2ae107128d3015a174633b8dd8ac Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 17:00:15 +0530 Subject: [PATCH 231/238] Revert "squash! Add generated go files" This reverts commit edbff507417892687e290d70ac73c51b24002e5b. --- README.md | 2 - system/system.pb.go | 443 +++++++++++++++----------------------------- types.pb.go | 90 +++------ 3 files changed, 166 insertions(+), 369 deletions(-) diff --git a/README.md b/README.md index 07cf7dd4..5d4f7015 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,6 @@ gNOI defines a set of gRPC-based microservices for executing operational commands on network devices. # Rebuild *.pb.go files -cd ${GOPATH}/src protoc -I=${GOPATH}/src:${GOPATH}/src/github.com/openconfig/gnoi --go_out=plugins=grpc:. ${GOPATH}/src/github.com/openconfig/gnoi/types.proto protoc -I=${GOPATH}/src:${GOPATH}/src/github.com/openconfig/gnoi --go_out=plugins=grpc:. ${GOPATH}/src/github.com/openconfig/gnoi/bgp/bgp.proto protoc -I=${GOPATH}/src:${GOPATH}/src/github.com/openconfig/gnoi --go_out=plugins=grpc:. ${GOPATH}/src/github.com/openconfig/gnoi/cert/cert.proto @@ -10,4 +9,3 @@ protoc -I=${GOPATH}/src:${GOPATH}/src/github.com/openconfig/gnoi --go_out=plugin protoc -I=${GOPATH}/src:${GOPATH}/src/github.com/openconfig/gnoi --go_out=plugins=grpc:. ${GOPATH}/src/github.com/openconfig/gnoi/layer2/layer2.proto protoc -I=${GOPATH}/src:${GOPATH}/src/github.com/openconfig/gnoi --go_out=plugins=grpc:. ${GOPATH}/src/github.com/openconfig/gnoi/mpls/mpls.proto protoc -I=${GOPATH}/src:${GOPATH}/src/github.com/openconfig/gnoi --go_out=plugins=grpc:. ${GOPATH}/src/github.com/openconfig/gnoi/system/system.proto -cd - diff --git a/system/system.pb.go b/system/system.pb.go index bac26680..dc7e3d7f 100644 --- a/system/system.pb.go +++ b/system/system.pb.go @@ -31,7 +31,7 @@ package gnoi_system import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" -import gnoi "github.com/openconfig/gnoi" +import gnoi "github.com/openconfig/reference/rpc/gnoi" import ( context "golang.org/x/net/context" @@ -810,9 +810,11 @@ func (m *TracerouteResponse) GetAsPath() []int32 { // Package defines a single package file to be placed on the target. type Package struct { - Filename string `protobuf:"bytes,1,opt,name=filename" json:"filename,omitempty"` - Version string `protobuf:"bytes,4,opt,name=version" json:"version,omitempty"` - Activate bool `protobuf:"varint,5,opt,name=activate" json:"activate,omitempty"` + Filename string `protobuf:"bytes,1,opt,name=filename" json:"filename,omitempty"` + Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` + Hash *gnoi.HashType `protobuf:"bytes,3,opt,name=hash" json:"hash,omitempty"` + Version string `protobuf:"bytes,4,opt,name=version" json:"version,omitempty"` + Activate bool `protobuf:"varint,5,opt,name=activate" json:"activate,omitempty"` } func (m *Package) Reset() { *m = Package{} } @@ -827,6 +829,20 @@ func (m *Package) GetFilename() string { return "" } +func (m *Package) GetData() []byte { + if m != nil { + return m.Data + } + return nil +} + +func (m *Package) GetHash() *gnoi.HashType { + if m != nil { + return m.Hash + } + return nil +} + func (m *Package) GetVersion() string { if m != nil { return m.Version @@ -842,16 +858,9 @@ func (m *Package) GetActivate() bool { } // SetPackageRequest will place the package onto the target and optionally mark -// it as the next bootable image. The initial message must be a package -// message containing the filename and information about the file. -// The final message must be a hash message contains the hash of the file -// contents. +// it as the next bootable image. type SetPackageRequest struct { - // Types that are valid to be assigned to Request: - // *SetPackageRequest_Package - // *SetPackageRequest_Contents - // *SetPackageRequest_Hash - Request isSetPackageRequest_Request `protobuf_oneof:"request"` + Packages []*Package `protobuf:"bytes,1,rep,name=packages" json:"packages,omitempty"` } func (m *SetPackageRequest) Reset() { *m = SetPackageRequest{} } @@ -859,141 +868,13 @@ func (m *SetPackageRequest) String() string { return proto.CompactTex func (*SetPackageRequest) ProtoMessage() {} func (*SetPackageRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{15} } -type isSetPackageRequest_Request interface { - isSetPackageRequest_Request() -} - -type SetPackageRequest_Package struct { - Package *Package `protobuf:"bytes,1,opt,name=package,oneof"` -} -type SetPackageRequest_Contents struct { - Contents []byte `protobuf:"bytes,2,opt,name=contents,proto3,oneof"` -} -type SetPackageRequest_Hash struct { - Hash *gnoi.HashType `protobuf:"bytes,3,opt,name=hash,oneof"` -} - -func (*SetPackageRequest_Package) isSetPackageRequest_Request() {} -func (*SetPackageRequest_Contents) isSetPackageRequest_Request() {} -func (*SetPackageRequest_Hash) isSetPackageRequest_Request() {} - -func (m *SetPackageRequest) GetRequest() isSetPackageRequest_Request { +func (m *SetPackageRequest) GetPackages() []*Package { if m != nil { - return m.Request - } - return nil -} - -func (m *SetPackageRequest) GetPackage() *Package { - if x, ok := m.GetRequest().(*SetPackageRequest_Package); ok { - return x.Package - } - return nil -} - -func (m *SetPackageRequest) GetContents() []byte { - if x, ok := m.GetRequest().(*SetPackageRequest_Contents); ok { - return x.Contents - } - return nil -} - -func (m *SetPackageRequest) GetHash() *gnoi.HashType { - if x, ok := m.GetRequest().(*SetPackageRequest_Hash); ok { - return x.Hash - } - return nil -} - -// XXX_OneofFuncs is for the internal use of the proto package. -func (*SetPackageRequest) 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 _SetPackageRequest_OneofMarshaler, _SetPackageRequest_OneofUnmarshaler, _SetPackageRequest_OneofSizer, []interface{}{ - (*SetPackageRequest_Package)(nil), - (*SetPackageRequest_Contents)(nil), - (*SetPackageRequest_Hash)(nil), - } -} - -func _SetPackageRequest_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { - m := msg.(*SetPackageRequest) - // request - switch x := m.Request.(type) { - case *SetPackageRequest_Package: - b.EncodeVarint(1<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.Package); err != nil { - return err - } - case *SetPackageRequest_Contents: - b.EncodeVarint(2<<3 | proto.WireBytes) - b.EncodeRawBytes(x.Contents) - case *SetPackageRequest_Hash: - b.EncodeVarint(3<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.Hash); err != nil { - return err - } - case nil: - default: - return fmt.Errorf("SetPackageRequest.Request has unexpected type %T", x) + return m.Packages } return nil } -func _SetPackageRequest_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { - m := msg.(*SetPackageRequest) - switch tag { - case 1: // request.package - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(Package) - err := b.DecodeMessage(msg) - m.Request = &SetPackageRequest_Package{msg} - return true, err - case 2: // request.contents - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - x, err := b.DecodeRawBytes(true) - m.Request = &SetPackageRequest_Contents{x} - return true, err - case 3: // request.hash - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(gnoi.HashType) - err := b.DecodeMessage(msg) - m.Request = &SetPackageRequest_Hash{msg} - return true, err - default: - return false, nil - } -} - -func _SetPackageRequest_OneofSizer(msg proto.Message) (n int) { - m := msg.(*SetPackageRequest) - // request - switch x := m.Request.(type) { - case *SetPackageRequest_Package: - s := proto.Size(x.Package) - n += proto.SizeVarint(1<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *SetPackageRequest_Contents: - n += proto.SizeVarint(2<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(len(x.Contents))) - n += len(x.Contents) - case *SetPackageRequest_Hash: - s := proto.Size(x.Hash) - n += proto.SizeVarint(3<<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 -} - type SetPackageResponse struct { } @@ -1051,7 +932,7 @@ type SystemClient interface { Time(ctx context.Context, in *TimeRequest, opts ...grpc.CallOption) (*TimeResponse, error) // SetPackage places a software package (possibly including bootable images) // on the target. - SetPackage(ctx context.Context, opts ...grpc.CallOption) (System_SetPackageClient, error) + SetPackage(ctx context.Context, in *SetPackageRequest, opts ...grpc.CallOption) (*SetPackageResponse, error) // SwitchControlProcessor will switch from the current route processor to the // provided route processor. If the current route processor is the same as the // one provided it is a NOOP. If the target does not exist an error is @@ -1153,38 +1034,13 @@ func (c *systemClient) Time(ctx context.Context, in *TimeRequest, opts ...grpc.C return out, nil } -func (c *systemClient) SetPackage(ctx context.Context, opts ...grpc.CallOption) (System_SetPackageClient, error) { - stream, err := grpc.NewClientStream(ctx, &_System_serviceDesc.Streams[2], c.cc, "/gnoi.system.System/SetPackage", opts...) +func (c *systemClient) SetPackage(ctx context.Context, in *SetPackageRequest, opts ...grpc.CallOption) (*SetPackageResponse, error) { + out := new(SetPackageResponse) + err := grpc.Invoke(ctx, "/gnoi.system.System/SetPackage", in, out, c.cc, opts...) if err != nil { return nil, err } - x := &systemSetPackageClient{stream} - return x, nil -} - -type System_SetPackageClient interface { - Send(*SetPackageRequest) error - CloseAndRecv() (*SetPackageResponse, error) - grpc.ClientStream -} - -type systemSetPackageClient struct { - grpc.ClientStream -} - -func (x *systemSetPackageClient) Send(m *SetPackageRequest) error { - return x.ClientStream.SendMsg(m) -} - -func (x *systemSetPackageClient) CloseAndRecv() (*SetPackageResponse, error) { - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - m := new(SetPackageResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil + return out, nil } func (c *systemClient) SwitchControlProcessor(ctx context.Context, in *SwitchControlProcessorRequest, opts ...grpc.CallOption) (*SwitchControlProcessorResponse, error) { @@ -1241,7 +1097,7 @@ type SystemServer interface { Time(context.Context, *TimeRequest) (*TimeResponse, error) // SetPackage places a software package (possibly including bootable images) // on the target. - SetPackage(System_SetPackageServer) error + SetPackage(context.Context, *SetPackageRequest) (*SetPackageResponse, error) // SwitchControlProcessor will switch from the current route processor to the // provided route processor. If the current route processor is the same as the // one provided it is a NOOP. If the target does not exist an error is @@ -1326,30 +1182,22 @@ func _System_Time_Handler(srv interface{}, ctx context.Context, dec func(interfa return interceptor(ctx, in, info, handler) } -func _System_SetPackage_Handler(srv interface{}, stream grpc.ServerStream) error { - return srv.(SystemServer).SetPackage(&systemSetPackageServer{stream}) -} - -type System_SetPackageServer interface { - SendAndClose(*SetPackageResponse) error - Recv() (*SetPackageRequest, error) - grpc.ServerStream -} - -type systemSetPackageServer struct { - grpc.ServerStream -} - -func (x *systemSetPackageServer) SendAndClose(m *SetPackageResponse) error { - return x.ServerStream.SendMsg(m) -} - -func (x *systemSetPackageServer) Recv() (*SetPackageRequest, error) { - m := new(SetPackageRequest) - if err := x.ServerStream.RecvMsg(m); err != nil { +func _System_SetPackage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SetPackageRequest) + if err := dec(in); err != nil { return nil, err } - return m, nil + if interceptor == nil { + return srv.(SystemServer).SetPackage(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gnoi.system.System/SetPackage", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SystemServer).SetPackage(ctx, req.(*SetPackageRequest)) + } + return interceptor(ctx, in, info, handler) } func _System_SwitchControlProcessor_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { @@ -1432,6 +1280,10 @@ var _System_serviceDesc = grpc.ServiceDesc{ MethodName: "Time", Handler: _System_Time_Handler, }, + { + MethodName: "SetPackage", + Handler: _System_SetPackage_Handler, + }, { MethodName: "SwitchControlProcessor", Handler: _System_SwitchControlProcessor_Handler, @@ -1460,11 +1312,6 @@ var _System_serviceDesc = grpc.ServiceDesc{ Handler: _System_Traceroute_Handler, ServerStreams: true, }, - { - StreamName: "SetPackage", - Handler: _System_SetPackage_Handler, - ClientStreams: true, - }, }, Metadata: "github.com/openconfig/gnoi/system/system.proto", } @@ -1472,101 +1319,101 @@ var _System_serviceDesc = grpc.ServiceDesc{ func init() { proto.RegisterFile("github.com/openconfig/gnoi/system/system.proto", fileDescriptor0) } var fileDescriptor0 = []byte{ - // 1532 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x57, 0xdd, 0x6e, 0xdb, 0xbe, - 0x15, 0xb7, 0xfc, 0xed, 0xe3, 0x24, 0x7f, 0x85, 0xc9, 0x52, 0xd5, 0xdd, 0x5a, 0x4f, 0xe8, 0x8a, - 0xb4, 0x03, 0x9c, 0x2e, 0x2d, 0xd0, 0x61, 0x43, 0x31, 0xb8, 0xb6, 0xd2, 0x04, 0x75, 0x6c, 0x4f, - 0x96, 0x97, 0x01, 0xbb, 0x30, 0x18, 0x99, 0xb1, 0x85, 0xca, 0xa2, 0x26, 0xd2, 0x6e, 0xb3, 0xeb, - 0xdd, 0xed, 0x66, 0x17, 0xc3, 0xb0, 0xdb, 0xbd, 0xc6, 0x5e, 0x64, 0xef, 0xb1, 0x27, 0x18, 0x48, - 0x4a, 0xb6, 0xec, 0xb8, 0x49, 0xf1, 0xbf, 0x32, 0xcf, 0x39, 0xe4, 0xf9, 0xf8, 0x9d, 0x1f, 0xa9, - 0x63, 0x68, 0x4c, 0x3c, 0x3e, 0x9d, 0x5f,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0x75, 0x0c, 0x56, 0xd3, 0x43, 0xed, 0xf1, 0x16, 0x4b, 0x3c, 0x6b, 0x65, - 0x5e, 0x6b, 0xe8, 0xf7, 0x00, 0xab, 0xdb, 0x82, 0x9e, 0xde, 0xff, 0x12, 0xd6, 0x9e, 0x3d, 0x70, - 0xcd, 0xa4, 0xcb, 0xf7, 0x90, 0x97, 0x5f, 0xb9, 0xf5, 0x9c, 0x52, 0x53, 0xd0, 0x46, 0x4e, 0xe9, - 0x81, 0xc8, 0xcc, 0x88, 0x8c, 0x56, 0xf0, 0x6e, 0x64, 0x74, 0x87, 0x0d, 0x1b, 0x19, 0xdd, 0xed, - 0x8b, 0x99, 0x39, 0xd6, 0x10, 0x83, 0xa3, 0xed, 0xff, 0x15, 0xd0, 0xab, 0xf5, 0xe3, 0xf7, 0xfd, - 0x57, 0xa9, 0xfd, 0xf2, 0xbb, 0xf6, 0x2e, 0xeb, 0x68, 0x41, 0x51, 0x11, 0x02, 0xd5, 0xb6, 0xcc, - 0xfe, 0x89, 0xd3, 0x27, 0x5b, 0x6d, 0x4b, 0x27, 0xc3, 0x84, 0x55, 0x6a, 0x88, 0x45, 0xf5, 0x2d, - 0xdb, 0xd7, 0x26, 0xe5, 0xda, 0xcf, 0xef, 0xd9, 0x91, 0x76, 0x9b, 0x9e, 0xbe, 0x37, 0xdc, 0x6e, - 0x99, 0xfd, 0x37, 0xdc, 0x6e, 0x1d, 0xdd, 0x33, 0xd7, 0x45, 0xf9, 0x6d, 0x7c, 0xf3, 0xff, 0x00, - 0x00, 0x00, 0xff, 0xff, 0xf5, 0xc0, 0x29, 0xeb, 0x5c, 0x0e, 0x00, 0x00, + // 1525 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x57, 0xdf, 0x6e, 0xdb, 0xbc, + 0x15, 0x8f, 0xfc, 0xdf, 0xc7, 0x49, 0xaa, 0x30, 0x59, 0xaa, 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 0x83, 0xa3, 0xf5, 0x48, 0x09, 0x2d, 0x8e, 0xa1, 0x84, 0x3d, + 0xee, 0x2f, 0xd4, 0x21, 0x2a, 0x4e, 0x22, 0x21, 0x04, 0x85, 0xcf, 0xd8, 0xe7, 0x09, 0xfa, 0x72, + 0x2d, 0x75, 0x53, 0x12, 0x4a, 0xe4, 0x85, 0x6e, 0x4a, 0x24, 0x07, 0x62, 0x82, 0x19, 0x0d, 0x8d, + 0x82, 0x04, 0x21, 0x91, 0x04, 0xb8, 0x1e, 0x9d, 0x87, 0x5c, 0x82, 0xbb, 0xe7, 0x28, 0xc1, 0xdc, + 0x83, 0x9a, 0xeb, 0xcf, 0x48, 0x72, 0x0e, 0xd3, 0x84, 0x5d, 0x25, 0x26, 0xc5, 0x20, 0x28, 0x48, + 0x3a, 0x69, 0x2a, 0x81, 0x24, 0xd3, 0x7f, 0x73, 0x50, 0xeb, 0xfb, 0xe1, 0x24, 0x3d, 0x7b, 0x03, + 0x6a, 0x63, 0xc2, 0xb8, 0x1f, 0x62, 0x2e, 0x28, 0xa9, 0xa0, 0xcf, 0xaa, 0x44, 0x49, 0x8c, 0xce, + 0x45, 0x63, 0x15, 0x5f, 0x13, 0x69, 0x55, 0x92, 0xa8, 0xbf, 0x98, 0x94, 0x84, 0xea, 0x50, 0xf1, + 0x43, 0x4e, 0xe2, 0x05, 0x0e, 0xe4, 0x11, 0xf2, 0xce, 0x52, 0x5e, 0x82, 0x50, 0x94, 0xfa, 0x25, + 0x08, 0xcc, 0xff, 0x1b, 0x31, 0x4a, 0x32, 0x88, 0x5c, 0xa3, 0x5f, 0xc3, 0xa3, 0x31, 0x1d, 0x85, + 0x94, 0x8f, 0x6e, 0x63, 0x3c, 0x99, 0x91, 0x90, 0x1b, 0x65, 0x89, 0xe6, 0xde, 0x98, 0xf6, 0x28, + 0x3f, 0x4f, 0x94, 0xe8, 0x97, 0xb0, 0x9f, 0xf8, 0xc5, 0x84, 0xd1, 0x60, 0x41, 0x8c, 0x8a, 0x74, + 0xdb, 0x95, 0x6e, 0x8e, 0xd2, 0xa1, 0x57, 0x00, 0xc1, 0x6b, 0xf9, 0x62, 0x78, 0x34, 0x30, 0xaa, + 0xf2, 0xc2, 0xe8, 0xaa, 0xb5, 0xdd, 0xd7, 0xfd, 0x44, 0xef, 0x64, 0x7c, 0xcc, 0xff, 0xe4, 0x60, + 0x57, 0x61, 0xb4, 0xea, 0x6a, 0x02, 0x81, 0xb6, 0x06, 0x41, 0x0a, 0x70, 0x4e, 0x1d, 0x48, 0xac, + 0xe5, 0x81, 0xc8, 0x12, 0x15, 0xb9, 0x16, 0xa0, 0xc4, 0xc4, 0x23, 0xfe, 0x82, 0x8c, 0x25, 0x28, + 0x45, 0x67, 0x29, 0xa3, 0x27, 0x50, 0x99, 0xf9, 0xe1, 0x48, 0xc6, 0x51, 0xc0, 0x94, 0x67, 0x7e, + 0x28, 0xfa, 0x28, 0x4c, 0x78, 0x31, 0x51, 0xa6, 0x92, 0x32, 0xe1, 0xc5, 0x24, 0x35, 0xcd, 0xf0, + 0x17, 0x65, 0x2a, 0x27, 0xbb, 0xf0, 0x17, 0x69, 0x7a, 0x0c, 0x65, 0xc6, 0xc7, 0xa3, 0x31, 0x59, + 0x48, 0x38, 0xf2, 0x4e, 0x89, 0xf1, 0x71, 0x87, 0x2c, 0x44, 0xc3, 0x6e, 0xee, 0x38, 0x61, 0x46, + 0x4d, 0x35, 0x4c, 0x0a, 0xa2, 0x36, 0x26, 0xb8, 0x10, 0x7a, 0xc4, 0xd8, 0x55, 0xb5, 0xa5, 0x32, + 0xd2, 0x21, 0xcf, 0x79, 0x60, 0xec, 0x49, 0xb5, 0x58, 0x9a, 0xff, 0xcc, 0xc3, 0x81, 0x1b, 0x63, + 0x8f, 0xc4, 0x74, 0xce, 0x53, 0xe2, 0x7d, 0x15, 0x9f, 0x0d, 0x72, 0xe5, 0xee, 0x93, 0xeb, 0x39, + 0xd4, 0xfc, 0xd0, 0xe7, 0x3e, 0x0e, 0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xfd, 0x17, 0xdf, + 0xf0, 0xc8, 0x86, 0xcd, 0x0e, 0xd9, 0x1b, 0x61, 0xb7, 0x8c, 0xf8, 0x1b, 0x61, 0xb7, 0x4e, 0xe8, + 0x3b, 0x37, 0x25, 0xf9, 0x09, 0x7c, 0xfd, 0x63, 0x00, 0x00, 0x00, 0xff, 0xff, 0x1c, 0x98, 0x98, + 0x50, 0x51, 0x0e, 0x00, 0x00, } diff --git a/types.pb.go b/types.pb.go index 1c9ec9f2..9a8d4a12 100644 --- a/types.pb.go +++ b/types.pb.go @@ -10,7 +10,6 @@ It is generated from these files: It has these top-level messages: HashType Path - PathElem */ package gnoi @@ -60,20 +59,17 @@ const ( HashType_UNSPECIFIED HashType_HashMethod = 0 HashType_SHA256 HashType_HashMethod = 1 HashType_SHA512 HashType_HashMethod = 2 - HashType_MD5 HashType_HashMethod = 3 ) var HashType_HashMethod_name = map[int32]string{ 0: "UNSPECIFIED", 1: "SHA256", 2: "SHA512", - 3: "MD5", } var HashType_HashMethod_value = map[string]int32{ "UNSPECIFIED": 0, "SHA256": 1, "SHA512": 2, - "MD5": 3, } func (x HashType_HashMethod) String() string { @@ -107,13 +103,10 @@ func (m *HashType) GetHash() []byte { return nil } -// Path encodes a data tree path as a series of repeated strings, with -// each element of the path representing a data tree node name and the -// associated attributes. -// Reference: gNMI Specification Section 2.2.2. +// OpenConfig path representation of the target. +// eg. /interfaces/interface[name=et-1/0/0] type Path struct { - Origin string `protobuf:"bytes,2,opt,name=origin" json:"origin,omitempty"` - Elem []*PathElem `protobuf:"bytes,3,rep,name=elem" json:"elem,omitempty"` + Elements []string `protobuf:"bytes,1,rep,name=elements" json:"elements,omitempty"` } func (m *Path) Reset() { *m = Path{} } @@ -121,43 +114,9 @@ func (m *Path) String() string { return proto.CompactTextString(m) } func (*Path) ProtoMessage() {} func (*Path) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } -func (m *Path) GetOrigin() string { +func (m *Path) GetElements() []string { if m != nil { - return m.Origin - } - return "" -} - -func (m *Path) GetElem() []*PathElem { - if m != nil { - return m.Elem - } - return nil -} - -// PathElem encodes an element of a gNMI path, along with any attributes (keys) -// that may be associated with it. -// Reference: gNMI Specification Section 2.2.2. -type PathElem struct { - Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` - Key map[string]string `protobuf:"bytes,2,rep,name=key" json:"key,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` -} - -func (m *PathElem) Reset() { *m = PathElem{} } -func (m *PathElem) String() string { return proto.CompactTextString(m) } -func (*PathElem) ProtoMessage() {} -func (*PathElem) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} } - -func (m *PathElem) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -func (m *PathElem) GetKey() map[string]string { - if m != nil { - return m.Key + return m.Elements } return nil } @@ -165,7 +124,6 @@ func (m *PathElem) GetKey() map[string]string { func init() { proto.RegisterType((*HashType)(nil), "gnoi.HashType") proto.RegisterType((*Path)(nil), "gnoi.Path") - proto.RegisterType((*PathElem)(nil), "gnoi.PathElem") proto.RegisterEnum("gnoi.L3Protocol", L3Protocol_name, L3Protocol_value) proto.RegisterEnum("gnoi.HashType_HashMethod", HashType_HashMethod_name, HashType_HashMethod_value) } @@ -173,26 +131,20 @@ func init() { func init() { proto.RegisterFile("github.com/openconfig/gnoi/types.proto", fileDescriptor0) } var fileDescriptor0 = []byte{ - // 329 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x91, 0x41, 0x4f, 0xbb, 0x40, - 0x10, 0xc5, 0xff, 0x0b, 0xfc, 0x91, 0x4e, 0x4d, 0xdd, 0x4c, 0x8c, 0xa2, 0xa7, 0x86, 0x83, 0xa9, - 0x1e, 0x68, 0x4a, 0x6d, 0x63, 0x3c, 0x98, 0xa8, 0xc5, 0xb4, 0xd1, 0x1a, 0x42, 0xd5, 0x3b,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, 0x04, 0x8c, 0xa6, 0x25, 0x42, 0x66, 0x41, 0xca, 0xe4, 0xab, - 0x5a, 0xbe, 0x64, 0x3c, 0x05, 0xf5, 0x9d, 0x95, 0xa6, 0x22, 0x3d, 0x0e, 0x7f, 0x7b, 0xd8, 0xf7, - 0xac, 0x74, 0xb3, 0x62, 0x5d, 0xfa, 0x42, 0x73, 0x3c, 0x06, 0xa3, 0x69, 0x20, 0xad, 0xd6, 0x2a, - 0x27, 0x81, 0xb8, 0x0f, 0xff, 0x3f, 0x82, 0x64, 0xcb, 0xea, 0x90, 0x55, 0x71, 0xa9, 0x5c, 0x90, - 0xb3, 0x01, 0xc0, 0xc3, 0xd0, 0x13, 0xc7, 0x5e, 0xf1, 0xe4, 0xef, 0x1d, 0x0c, 0xd0, 0x66, 0xde, - 0xcb, 0x39, 0x25, 0x35, 0x8d, 0xa9, 0xb2, 0xd4, 0xe5, 0xdf, 0x0c, 0xbf, 0x03, 0x00, 0x00, 0xff, - 0xff, 0x8d, 0x0d, 0x18, 0xa6, 0xc5, 0x01, 0x00, 0x00, + // 233 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x4b, 0xcf, 0x2c, 0xc9, + 0x28, 0x4d, 0xd2, 0x4b, 0xce, 0xcf, 0xd5, 0xcf, 0x2f, 0x48, 0xcd, 0x4b, 0xce, 0xcf, 0x4b, 0xcb, + 0x4c, 0xd7, 0x4f, 0xcf, 0xcb, 0xcf, 0xd4, 0x2f, 0xa9, 0x2c, 0x48, 0x2d, 0xd6, 0x2b, 0x28, 0xca, + 0x2f, 0xc9, 0x17, 0x62, 0x01, 0x89, 0x28, 0x75, 0x30, 0x72, 0x71, 0x78, 0x24, 0x16, 0x67, 0x84, + 0x54, 0x16, 0xa4, 0x0a, 0x19, 0x72, 0xb1, 0xe5, 0xa6, 0x96, 0x64, 0xe4, 0xa7, 0x48, 0x30, 0x2a, + 0x30, 0x6a, 0xf0, 0x19, 0x49, 0xea, 0x81, 0xd4, 0xe8, 0xc1, 0xe4, 0xc1, 0x0c, 0x5f, 0xb0, 0x82, + 0x20, 0xa8, 0x42, 0x21, 0x21, 0x2e, 0x96, 0x8c, 0xc4, 0xe2, 0x0c, 0x09, 0x26, 0x05, 0x46, 0x0d, + 0x9e, 0x20, 0x30, 0x5b, 0xc9, 0x94, 0x8b, 0x0b, 0xa1, 0x52, 0x88, 0x9f, 0x8b, 0x3b, 0xd4, 0x2f, + 0x38, 0xc0, 0xd5, 0xd9, 0xd3, 0xcd, 0xd3, 0xd5, 0x45, 0x80, 0x41, 0x88, 0x8b, 0x8b, 0x2d, 0xd8, + 0xc3, 0xd1, 0xc8, 0xd4, 0x4c, 0x80, 0x11, 0xca, 0x36, 0x35, 0x34, 0x12, 0x60, 0x52, 0x52, 0xe2, + 0x62, 0x09, 0x48, 0x2c, 0xc9, 0x10, 0x92, 0xe2, 0xe2, 0x48, 0xcd, 0x49, 0xcd, 0x4d, 0xcd, 0x2b, + 0x29, 0x96, 0x60, 0x54, 0x60, 0xd6, 0xe0, 0x0c, 0x82, 0xf3, 0xb5, 0x0c, 0xb9, 0xb8, 0x7c, 0x8c, + 0x03, 0x40, 0xee, 0x4f, 0xce, 0xcf, 0xc1, 0x34, 0x9a, 0x83, 0x8b, 0xc5, 0x33, 0x20, 0xcc, 0x44, + 0x80, 0x11, 0xca, 0x32, 0x13, 0x60, 0x4a, 0x62, 0x03, 0x7b, 0xd7, 0x18, 0x10, 0x00, 0x00, 0xff, + 0xff, 0xb0, 0x4d, 0xd2, 0x1e, 0x18, 0x01, 0x00, 0x00, } From b4ae586d16f7e69a95fc18b835364bbb61afdd1b Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 17:00:16 +0530 Subject: [PATCH 232/238] Revert "Add generated go files" This reverts commit a27d51c9b3e4094d00d96919df11b3b5fc8a5800. --- README.md | 9 - bgp/bgp.pb.go | 204 ----- cert/cert.pb.go | 1781 ------------------------------------- interface/interface.pb.go | 311 ------- layer2/layer2.pb.go | 593 ------------ mpls/mpls.pb.go | 772 ---------------- system/system.pb.go | 1419 ----------------------------- types.pb.go | 150 ---- 8 files changed, 5239 deletions(-) delete mode 100644 bgp/bgp.pb.go delete mode 100644 cert/cert.pb.go delete mode 100644 interface/interface.pb.go delete mode 100644 layer2/layer2.pb.go delete mode 100644 mpls/mpls.pb.go delete mode 100644 system/system.pb.go delete mode 100644 types.pb.go diff --git a/README.md b/README.md index 5d4f7015..7cc20c1f 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,2 @@ # gNOI - gRPC Network Operations Interface gNOI defines a set of gRPC-based microservices for executing operational commands on network devices. - -# Rebuild *.pb.go files -protoc -I=${GOPATH}/src:${GOPATH}/src/github.com/openconfig/gnoi --go_out=plugins=grpc:. ${GOPATH}/src/github.com/openconfig/gnoi/types.proto -protoc -I=${GOPATH}/src:${GOPATH}/src/github.com/openconfig/gnoi --go_out=plugins=grpc:. ${GOPATH}/src/github.com/openconfig/gnoi/bgp/bgp.proto -protoc -I=${GOPATH}/src:${GOPATH}/src/github.com/openconfig/gnoi --go_out=plugins=grpc:. ${GOPATH}/src/github.com/openconfig/gnoi/cert/cert.proto -protoc -I=${GOPATH}/src:${GOPATH}/src/github.com/openconfig/gnoi --go_out=plugins=grpc:. ${GOPATH}/src/github.com/openconfig/gnoi/interface/interface.proto -protoc -I=${GOPATH}/src:${GOPATH}/src/github.com/openconfig/gnoi --go_out=plugins=grpc:. ${GOPATH}/src/github.com/openconfig/gnoi/layer2/layer2.proto -protoc -I=${GOPATH}/src:${GOPATH}/src/github.com/openconfig/gnoi --go_out=plugins=grpc:. ${GOPATH}/src/github.com/openconfig/gnoi/mpls/mpls.proto -protoc -I=${GOPATH}/src:${GOPATH}/src/github.com/openconfig/gnoi --go_out=plugins=grpc:. ${GOPATH}/src/github.com/openconfig/gnoi/system/system.proto diff --git a/bgp/bgp.pb.go b/bgp/bgp.pb.go deleted file mode 100644 index e98240e4..00000000 --- a/bgp/bgp.pb.go +++ /dev/null @@ -1,204 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: github.com/openconfig/gnoi/bgp/bgp.proto - -/* -Package gnoi_bgp is a generated protocol buffer package. - -It is generated from these files: - github.com/openconfig/gnoi/bgp/bgp.proto - -It has these top-level messages: - ClearBGPNeighborRequest - ClearBGPNeighborResponse -*/ -package gnoi_bgp - -import proto "github.com/golang/protobuf/proto" -import fmt "fmt" -import math "math" - -import ( - context "golang.org/x/net/context" - grpc "google.golang.org/grpc" -) - -// 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 - -type ClearBGPNeighborRequest_Mode int32 - -const ( - ClearBGPNeighborRequest_SOFT ClearBGPNeighborRequest_Mode = 0 - ClearBGPNeighborRequest_SOFTIN ClearBGPNeighborRequest_Mode = 1 - ClearBGPNeighborRequest_HARD ClearBGPNeighborRequest_Mode = 2 -) - -var ClearBGPNeighborRequest_Mode_name = map[int32]string{ - 0: "SOFT", - 1: "SOFTIN", - 2: "HARD", -} -var ClearBGPNeighborRequest_Mode_value = map[string]int32{ - "SOFT": 0, - "SOFTIN": 1, - "HARD": 2, -} - -func (x ClearBGPNeighborRequest_Mode) String() string { - return proto.EnumName(ClearBGPNeighborRequest_Mode_name, int32(x)) -} -func (ClearBGPNeighborRequest_Mode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor0, []int{0, 0} -} - -type ClearBGPNeighborRequest struct { - Address string `protobuf:"bytes,1,opt,name=address" json:"address,omitempty"` - // Routing instance containing the neighbor. Defaults to the global routing - // table. - RoutingInstance string `protobuf:"bytes,2,opt,name=routing_instance,json=routingInstance" json:"routing_instance,omitempty"` - Mode ClearBGPNeighborRequest_Mode `protobuf:"varint,3,opt,name=mode,enum=gnoi.bgp.ClearBGPNeighborRequest_Mode" json:"mode,omitempty"` -} - -func (m *ClearBGPNeighborRequest) Reset() { *m = ClearBGPNeighborRequest{} } -func (m *ClearBGPNeighborRequest) String() string { return proto.CompactTextString(m) } -func (*ClearBGPNeighborRequest) ProtoMessage() {} -func (*ClearBGPNeighborRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } - -func (m *ClearBGPNeighborRequest) GetAddress() string { - if m != nil { - return m.Address - } - return "" -} - -func (m *ClearBGPNeighborRequest) GetRoutingInstance() string { - if m != nil { - return m.RoutingInstance - } - return "" -} - -func (m *ClearBGPNeighborRequest) GetMode() ClearBGPNeighborRequest_Mode { - if m != nil { - return m.Mode - } - return ClearBGPNeighborRequest_SOFT -} - -type ClearBGPNeighborResponse struct { -} - -func (m *ClearBGPNeighborResponse) Reset() { *m = ClearBGPNeighborResponse{} } -func (m *ClearBGPNeighborResponse) String() string { return proto.CompactTextString(m) } -func (*ClearBGPNeighborResponse) ProtoMessage() {} -func (*ClearBGPNeighborResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } - -func init() { - proto.RegisterType((*ClearBGPNeighborRequest)(nil), "gnoi.bgp.ClearBGPNeighborRequest") - proto.RegisterType((*ClearBGPNeighborResponse)(nil), "gnoi.bgp.ClearBGPNeighborResponse") - proto.RegisterEnum("gnoi.bgp.ClearBGPNeighborRequest_Mode", ClearBGPNeighborRequest_Mode_name, ClearBGPNeighborRequest_Mode_value) -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// Client API for BGP service - -type BGPClient interface { - // ClearBGPNeighbor clears a BGP session. - ClearBGPNeighbor(ctx context.Context, in *ClearBGPNeighborRequest, opts ...grpc.CallOption) (*ClearBGPNeighborResponse, error) -} - -type bGPClient struct { - cc *grpc.ClientConn -} - -func NewBGPClient(cc *grpc.ClientConn) BGPClient { - return &bGPClient{cc} -} - -func (c *bGPClient) ClearBGPNeighbor(ctx context.Context, in *ClearBGPNeighborRequest, opts ...grpc.CallOption) (*ClearBGPNeighborResponse, error) { - out := new(ClearBGPNeighborResponse) - err := grpc.Invoke(ctx, "/gnoi.bgp.BGP/ClearBGPNeighbor", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// Server API for BGP service - -type BGPServer interface { - // ClearBGPNeighbor clears a BGP session. - ClearBGPNeighbor(context.Context, *ClearBGPNeighborRequest) (*ClearBGPNeighborResponse, error) -} - -func RegisterBGPServer(s *grpc.Server, srv BGPServer) { - s.RegisterService(&_BGP_serviceDesc, srv) -} - -func _BGP_ClearBGPNeighbor_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ClearBGPNeighborRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(BGPServer).ClearBGPNeighbor(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.bgp.BGP/ClearBGPNeighbor", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(BGPServer).ClearBGPNeighbor(ctx, req.(*ClearBGPNeighborRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _BGP_serviceDesc = grpc.ServiceDesc{ - ServiceName: "gnoi.bgp.BGP", - HandlerType: (*BGPServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "ClearBGPNeighbor", - Handler: _BGP_ClearBGPNeighbor_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "github.com/openconfig/gnoi/bgp/bgp.proto", -} - -func init() { proto.RegisterFile("github.com/openconfig/gnoi/bgp/bgp.proto", fileDescriptor0) } - -var fileDescriptor0 = []byte{ - // 254 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x90, 0x31, 0x4f, 0xc3, 0x30, - 0x10, 0x85, 0x9b, 0x36, 0x2a, 0xe5, 0x06, 0x88, 0xbc, 0x10, 0x75, 0x2a, 0x19, 0xaa, 0xb0, 0x38, - 0x52, 0xd9, 0xd8, 0x28, 0x88, 0xd2, 0x81, 0x52, 0x05, 0x36, 0x06, 0x14, 0x27, 0x87, 0x6b, 0x89, - 0xfa, 0x8c, 0xed, 0xfc, 0x41, 0x7e, 0x19, 0x72, 0x68, 0x17, 0x10, 0x74, 0x38, 0xe9, 0xde, 0xa7, - 0x77, 0xf7, 0x4e, 0x07, 0xb9, 0x54, 0x7e, 0xd3, 0x0a, 0x5e, 0xd3, 0xb6, 0x20, 0x83, 0xba, 0x26, - 0xfd, 0xa6, 0x64, 0x21, 0x35, 0xa9, 0x42, 0x48, 0x13, 0x8a, 0x1b, 0x4b, 0x9e, 0xd8, 0x28, 0x30, - 0x2e, 0xa4, 0xc9, 0x3e, 0x23, 0x38, 0xbb, 0x79, 0xc7, 0xca, 0xce, 0x17, 0xeb, 0x15, 0x2a, 0xb9, - 0x11, 0x64, 0x4b, 0xfc, 0x68, 0xd1, 0x79, 0x96, 0xc2, 0x51, 0xd5, 0x34, 0x16, 0x9d, 0x4b, 0xa3, - 0x49, 0x94, 0x1f, 0x97, 0x7b, 0xc9, 0x2e, 0x20, 0xb1, 0xd4, 0x7a, 0xa5, 0xe5, 0xab, 0xd2, 0xce, - 0x57, 0xba, 0xc6, 0xb4, 0xdf, 0x59, 0x4e, 0x77, 0x7c, 0xb9, 0xc3, 0xec, 0x0a, 0xe2, 0x2d, 0x35, - 0x98, 0x0e, 0x26, 0x51, 0x7e, 0x32, 0x9b, 0xf2, 0x7d, 0x32, 0xff, 0x23, 0x95, 0x3f, 0x50, 0x83, - 0x65, 0x37, 0x93, 0x4d, 0x21, 0x0e, 0x8a, 0x8d, 0x20, 0x7e, 0x7a, 0xbc, 0x7b, 0x4e, 0x7a, 0x0c, - 0x60, 0x18, 0xba, 0xe5, 0x2a, 0x89, 0x02, 0xbd, 0xbf, 0x2e, 0x6f, 0x93, 0x7e, 0x36, 0x86, 0xf4, - 0xf7, 0x36, 0x67, 0x48, 0x3b, 0x9c, 0x09, 0x18, 0xcc, 0x17, 0x6b, 0xf6, 0x02, 0xc9, 0x4f, 0x0b, - 0x3b, 0x3f, 0x78, 0xcc, 0x38, 0xfb, 0xcf, 0xf2, 0x9d, 0x90, 0xf5, 0xc4, 0xb0, 0xfb, 0xea, 0xe5, - 0x57, 0x00, 0x00, 0x00, 0xff, 0xff, 0x02, 0xe1, 0xbb, 0xd9, 0x81, 0x01, 0x00, 0x00, -} diff --git a/cert/cert.pb.go b/cert/cert.pb.go deleted file mode 100644 index 66e2809d..00000000 --- a/cert/cert.pb.go +++ /dev/null @@ -1,1781 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: github.com/openconfig/gnoi/cert/cert.proto - -/* -Package gnoi_certificate is a generated protocol buffer package. - -It is generated from these files: - github.com/openconfig/gnoi/cert/cert.proto - -It has these top-level messages: - RotateCertificateRequest - RotateCertificateResponse - InstallCertificateRequest - InstallCertificateResponse - GenerateCSRRequest - CSRParams - GenerateCSRResponse - LoadCertificateRequest - LoadCertificateResponse - FinalizeRequest - GetCertificatesRequest - GetCertificatesResponse - CertificateInfo - RevokeCertificatesRequest - RevokeCertificatesResponse - CertificateRevocationError - CanGenerateCSRRequest - CanGenerateCSRResponse - Certificate - CSR - KeyPair - Endpoint -*/ -package gnoi_certificate - -import proto "github.com/golang/protobuf/proto" -import fmt "fmt" -import math "math" - -import ( - context "golang.org/x/net/context" - grpc "google.golang.org/grpc" -) - -// 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 - -// Types of certificates. -type CertificateType int32 - -const ( - // 1 - 500 for public use. - // 501 onwards for private use. - CertificateType_CT_UNKNOWN CertificateType = 0 - CertificateType_CT_X509 CertificateType = 1 -) - -var CertificateType_name = map[int32]string{ - 0: "CT_UNKNOWN", - 1: "CT_X509", -} -var CertificateType_value = map[string]int32{ - "CT_UNKNOWN": 0, - "CT_X509": 1, -} - -func (x CertificateType) String() string { - return proto.EnumName(CertificateType_name, int32(x)) -} -func (CertificateType) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } - -// Algorithm to be used for generation the key pair. -type KeyType int32 - -const ( - // 1 - 500, for known types. - // 501 and onwards for private use. - KeyType_KT_UNKNOWN KeyType = 0 - KeyType_KT_RSA KeyType = 1 -) - -var KeyType_name = map[int32]string{ - 0: "KT_UNKNOWN", - 1: "KT_RSA", -} -var KeyType_value = map[string]int32{ - "KT_UNKNOWN": 0, - "KT_RSA": 1, -} - -func (x KeyType) String() string { - return proto.EnumName(KeyType_name, int32(x)) -} -func (KeyType) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } - -// Type of endpoint that can use a cert. This list is to be extended based on -// conversation with vendors. -type Endpoint_Type int32 - -const ( - Endpoint_EP_UNSPECIFIED Endpoint_Type = 0 - Endpoint_EP_IPSEC_TUNNEL Endpoint_Type = 1 - Endpoint_EP_DAEMON Endpoint_Type = 2 -) - -var Endpoint_Type_name = map[int32]string{ - 0: "EP_UNSPECIFIED", - 1: "EP_IPSEC_TUNNEL", - 2: "EP_DAEMON", -} -var Endpoint_Type_value = map[string]int32{ - "EP_UNSPECIFIED": 0, - "EP_IPSEC_TUNNEL": 1, - "EP_DAEMON": 2, -} - -func (x Endpoint_Type) String() string { - return proto.EnumName(Endpoint_Type_name, int32(x)) -} -func (Endpoint_Type) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{21, 0} } - -// Request messages to rotate existing certificates on the target. -type RotateCertificateRequest struct { - // Request Messages. - // - // Types that are valid to be assigned to RotateRequest: - // *RotateCertificateRequest_GenerateCsr - // *RotateCertificateRequest_LoadCertificate - // *RotateCertificateRequest_FinalizeRotation - RotateRequest isRotateCertificateRequest_RotateRequest `protobuf_oneof:"rotate_request"` -} - -func (m *RotateCertificateRequest) Reset() { *m = RotateCertificateRequest{} } -func (m *RotateCertificateRequest) String() string { return proto.CompactTextString(m) } -func (*RotateCertificateRequest) ProtoMessage() {} -func (*RotateCertificateRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } - -type isRotateCertificateRequest_RotateRequest interface { - isRotateCertificateRequest_RotateRequest() -} - -type RotateCertificateRequest_GenerateCsr struct { - GenerateCsr *GenerateCSRRequest `protobuf:"bytes,1,opt,name=generate_csr,json=generateCsr,oneof"` -} -type RotateCertificateRequest_LoadCertificate struct { - LoadCertificate *LoadCertificateRequest `protobuf:"bytes,2,opt,name=load_certificate,json=loadCertificate,oneof"` -} -type RotateCertificateRequest_FinalizeRotation struct { - FinalizeRotation *FinalizeRequest `protobuf:"bytes,3,opt,name=finalize_rotation,json=finalizeRotation,oneof"` -} - -func (*RotateCertificateRequest_GenerateCsr) isRotateCertificateRequest_RotateRequest() {} -func (*RotateCertificateRequest_LoadCertificate) isRotateCertificateRequest_RotateRequest() {} -func (*RotateCertificateRequest_FinalizeRotation) isRotateCertificateRequest_RotateRequest() {} - -func (m *RotateCertificateRequest) GetRotateRequest() isRotateCertificateRequest_RotateRequest { - if m != nil { - return m.RotateRequest - } - return nil -} - -func (m *RotateCertificateRequest) GetGenerateCsr() *GenerateCSRRequest { - if x, ok := m.GetRotateRequest().(*RotateCertificateRequest_GenerateCsr); ok { - return x.GenerateCsr - } - return nil -} - -func (m *RotateCertificateRequest) GetLoadCertificate() *LoadCertificateRequest { - if x, ok := m.GetRotateRequest().(*RotateCertificateRequest_LoadCertificate); ok { - return x.LoadCertificate - } - return nil -} - -func (m *RotateCertificateRequest) GetFinalizeRotation() *FinalizeRequest { - if x, ok := m.GetRotateRequest().(*RotateCertificateRequest_FinalizeRotation); ok { - return x.FinalizeRotation - } - return nil -} - -// XXX_OneofFuncs is for the internal use of the proto package. -func (*RotateCertificateRequest) 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 _RotateCertificateRequest_OneofMarshaler, _RotateCertificateRequest_OneofUnmarshaler, _RotateCertificateRequest_OneofSizer, []interface{}{ - (*RotateCertificateRequest_GenerateCsr)(nil), - (*RotateCertificateRequest_LoadCertificate)(nil), - (*RotateCertificateRequest_FinalizeRotation)(nil), - } -} - -func _RotateCertificateRequest_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { - m := msg.(*RotateCertificateRequest) - // rotate_request - switch x := m.RotateRequest.(type) { - case *RotateCertificateRequest_GenerateCsr: - b.EncodeVarint(1<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.GenerateCsr); err != nil { - return err - } - case *RotateCertificateRequest_LoadCertificate: - b.EncodeVarint(2<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.LoadCertificate); err != nil { - return err - } - case *RotateCertificateRequest_FinalizeRotation: - b.EncodeVarint(3<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.FinalizeRotation); err != nil { - return err - } - case nil: - default: - return fmt.Errorf("RotateCertificateRequest.RotateRequest has unexpected type %T", x) - } - return nil -} - -func _RotateCertificateRequest_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { - m := msg.(*RotateCertificateRequest) - switch tag { - case 1: // rotate_request.generate_csr - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(GenerateCSRRequest) - err := b.DecodeMessage(msg) - m.RotateRequest = &RotateCertificateRequest_GenerateCsr{msg} - return true, err - case 2: // rotate_request.load_certificate - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(LoadCertificateRequest) - err := b.DecodeMessage(msg) - m.RotateRequest = &RotateCertificateRequest_LoadCertificate{msg} - return true, err - case 3: // rotate_request.finalize_rotation - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(FinalizeRequest) - err := b.DecodeMessage(msg) - m.RotateRequest = &RotateCertificateRequest_FinalizeRotation{msg} - return true, err - default: - return false, nil - } -} - -func _RotateCertificateRequest_OneofSizer(msg proto.Message) (n int) { - m := msg.(*RotateCertificateRequest) - // rotate_request - switch x := m.RotateRequest.(type) { - case *RotateCertificateRequest_GenerateCsr: - s := proto.Size(x.GenerateCsr) - n += proto.SizeVarint(1<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *RotateCertificateRequest_LoadCertificate: - s := proto.Size(x.LoadCertificate) - n += proto.SizeVarint(2<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *RotateCertificateRequest_FinalizeRotation: - s := proto.Size(x.FinalizeRotation) - n += proto.SizeVarint(3<<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 -} - -// Response Messages from the target. -type RotateCertificateResponse struct { - // Response messages. - // - // Types that are valid to be assigned to RotateResponse: - // *RotateCertificateResponse_GeneratedCsr - // *RotateCertificateResponse_LoadCertificate - RotateResponse isRotateCertificateResponse_RotateResponse `protobuf_oneof:"rotate_response"` -} - -func (m *RotateCertificateResponse) Reset() { *m = RotateCertificateResponse{} } -func (m *RotateCertificateResponse) String() string { return proto.CompactTextString(m) } -func (*RotateCertificateResponse) ProtoMessage() {} -func (*RotateCertificateResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } - -type isRotateCertificateResponse_RotateResponse interface { - isRotateCertificateResponse_RotateResponse() -} - -type RotateCertificateResponse_GeneratedCsr struct { - GeneratedCsr *GenerateCSRResponse `protobuf:"bytes,1,opt,name=generated_csr,json=generatedCsr,oneof"` -} -type RotateCertificateResponse_LoadCertificate struct { - LoadCertificate *LoadCertificateResponse `protobuf:"bytes,2,opt,name=load_certificate,json=loadCertificate,oneof"` -} - -func (*RotateCertificateResponse_GeneratedCsr) isRotateCertificateResponse_RotateResponse() {} -func (*RotateCertificateResponse_LoadCertificate) isRotateCertificateResponse_RotateResponse() {} - -func (m *RotateCertificateResponse) GetRotateResponse() isRotateCertificateResponse_RotateResponse { - if m != nil { - return m.RotateResponse - } - return nil -} - -func (m *RotateCertificateResponse) GetGeneratedCsr() *GenerateCSRResponse { - if x, ok := m.GetRotateResponse().(*RotateCertificateResponse_GeneratedCsr); ok { - return x.GeneratedCsr - } - return nil -} - -func (m *RotateCertificateResponse) GetLoadCertificate() *LoadCertificateResponse { - if x, ok := m.GetRotateResponse().(*RotateCertificateResponse_LoadCertificate); ok { - return x.LoadCertificate - } - return nil -} - -// XXX_OneofFuncs is for the internal use of the proto package. -func (*RotateCertificateResponse) 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 _RotateCertificateResponse_OneofMarshaler, _RotateCertificateResponse_OneofUnmarshaler, _RotateCertificateResponse_OneofSizer, []interface{}{ - (*RotateCertificateResponse_GeneratedCsr)(nil), - (*RotateCertificateResponse_LoadCertificate)(nil), - } -} - -func _RotateCertificateResponse_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { - m := msg.(*RotateCertificateResponse) - // rotate_response - switch x := m.RotateResponse.(type) { - case *RotateCertificateResponse_GeneratedCsr: - b.EncodeVarint(1<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.GeneratedCsr); err != nil { - return err - } - case *RotateCertificateResponse_LoadCertificate: - b.EncodeVarint(2<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.LoadCertificate); err != nil { - return err - } - case nil: - default: - return fmt.Errorf("RotateCertificateResponse.RotateResponse has unexpected type %T", x) - } - return nil -} - -func _RotateCertificateResponse_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { - m := msg.(*RotateCertificateResponse) - switch tag { - case 1: // rotate_response.generated_csr - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(GenerateCSRResponse) - err := b.DecodeMessage(msg) - m.RotateResponse = &RotateCertificateResponse_GeneratedCsr{msg} - return true, err - case 2: // rotate_response.load_certificate - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(LoadCertificateResponse) - err := b.DecodeMessage(msg) - m.RotateResponse = &RotateCertificateResponse_LoadCertificate{msg} - return true, err - default: - return false, nil - } -} - -func _RotateCertificateResponse_OneofSizer(msg proto.Message) (n int) { - m := msg.(*RotateCertificateResponse) - // rotate_response - switch x := m.RotateResponse.(type) { - case *RotateCertificateResponse_GeneratedCsr: - s := proto.Size(x.GeneratedCsr) - n += proto.SizeVarint(1<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *RotateCertificateResponse_LoadCertificate: - s := proto.Size(x.LoadCertificate) - n += proto.SizeVarint(2<<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 -} - -// Request messages to install new certificates on the target. -type InstallCertificateRequest struct { - // Request Messages. - // - // Types that are valid to be assigned to InstallRequest: - // *InstallCertificateRequest_GenerateCsr - // *InstallCertificateRequest_LoadCertificate - InstallRequest isInstallCertificateRequest_InstallRequest `protobuf_oneof:"install_request"` -} - -func (m *InstallCertificateRequest) Reset() { *m = InstallCertificateRequest{} } -func (m *InstallCertificateRequest) String() string { return proto.CompactTextString(m) } -func (*InstallCertificateRequest) ProtoMessage() {} -func (*InstallCertificateRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} } - -type isInstallCertificateRequest_InstallRequest interface { - isInstallCertificateRequest_InstallRequest() -} - -type InstallCertificateRequest_GenerateCsr struct { - GenerateCsr *GenerateCSRRequest `protobuf:"bytes,1,opt,name=generate_csr,json=generateCsr,oneof"` -} -type InstallCertificateRequest_LoadCertificate struct { - LoadCertificate *LoadCertificateRequest `protobuf:"bytes,2,opt,name=load_certificate,json=loadCertificate,oneof"` -} - -func (*InstallCertificateRequest_GenerateCsr) isInstallCertificateRequest_InstallRequest() {} -func (*InstallCertificateRequest_LoadCertificate) isInstallCertificateRequest_InstallRequest() {} - -func (m *InstallCertificateRequest) GetInstallRequest() isInstallCertificateRequest_InstallRequest { - if m != nil { - return m.InstallRequest - } - return nil -} - -func (m *InstallCertificateRequest) GetGenerateCsr() *GenerateCSRRequest { - if x, ok := m.GetInstallRequest().(*InstallCertificateRequest_GenerateCsr); ok { - return x.GenerateCsr - } - return nil -} - -func (m *InstallCertificateRequest) GetLoadCertificate() *LoadCertificateRequest { - if x, ok := m.GetInstallRequest().(*InstallCertificateRequest_LoadCertificate); ok { - return x.LoadCertificate - } - return nil -} - -// XXX_OneofFuncs is for the internal use of the proto package. -func (*InstallCertificateRequest) 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 _InstallCertificateRequest_OneofMarshaler, _InstallCertificateRequest_OneofUnmarshaler, _InstallCertificateRequest_OneofSizer, []interface{}{ - (*InstallCertificateRequest_GenerateCsr)(nil), - (*InstallCertificateRequest_LoadCertificate)(nil), - } -} - -func _InstallCertificateRequest_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { - m := msg.(*InstallCertificateRequest) - // install_request - switch x := m.InstallRequest.(type) { - case *InstallCertificateRequest_GenerateCsr: - b.EncodeVarint(1<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.GenerateCsr); err != nil { - return err - } - case *InstallCertificateRequest_LoadCertificate: - b.EncodeVarint(2<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.LoadCertificate); err != nil { - return err - } - case nil: - default: - return fmt.Errorf("InstallCertificateRequest.InstallRequest has unexpected type %T", x) - } - return nil -} - -func _InstallCertificateRequest_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { - m := msg.(*InstallCertificateRequest) - switch tag { - case 1: // install_request.generate_csr - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(GenerateCSRRequest) - err := b.DecodeMessage(msg) - m.InstallRequest = &InstallCertificateRequest_GenerateCsr{msg} - return true, err - case 2: // install_request.load_certificate - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(LoadCertificateRequest) - err := b.DecodeMessage(msg) - m.InstallRequest = &InstallCertificateRequest_LoadCertificate{msg} - return true, err - default: - return false, nil - } -} - -func _InstallCertificateRequest_OneofSizer(msg proto.Message) (n int) { - m := msg.(*InstallCertificateRequest) - // install_request - switch x := m.InstallRequest.(type) { - case *InstallCertificateRequest_GenerateCsr: - s := proto.Size(x.GenerateCsr) - n += proto.SizeVarint(1<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *InstallCertificateRequest_LoadCertificate: - s := proto.Size(x.LoadCertificate) - n += proto.SizeVarint(2<<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 -} - -// Response Messages from the target for the InstallCertificateRequest. -type InstallCertificateResponse struct { - // Response messages. - // - // Types that are valid to be assigned to InstallResponse: - // *InstallCertificateResponse_GeneratedCsr - // *InstallCertificateResponse_LoadCertificate - InstallResponse isInstallCertificateResponse_InstallResponse `protobuf_oneof:"install_response"` -} - -func (m *InstallCertificateResponse) Reset() { *m = InstallCertificateResponse{} } -func (m *InstallCertificateResponse) String() string { return proto.CompactTextString(m) } -func (*InstallCertificateResponse) ProtoMessage() {} -func (*InstallCertificateResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} } - -type isInstallCertificateResponse_InstallResponse interface { - isInstallCertificateResponse_InstallResponse() -} - -type InstallCertificateResponse_GeneratedCsr struct { - GeneratedCsr *GenerateCSRResponse `protobuf:"bytes,1,opt,name=generated_csr,json=generatedCsr,oneof"` -} -type InstallCertificateResponse_LoadCertificate struct { - LoadCertificate *LoadCertificateResponse `protobuf:"bytes,2,opt,name=load_certificate,json=loadCertificate,oneof"` -} - -func (*InstallCertificateResponse_GeneratedCsr) isInstallCertificateResponse_InstallResponse() {} -func (*InstallCertificateResponse_LoadCertificate) isInstallCertificateResponse_InstallResponse() {} - -func (m *InstallCertificateResponse) GetInstallResponse() isInstallCertificateResponse_InstallResponse { - if m != nil { - return m.InstallResponse - } - return nil -} - -func (m *InstallCertificateResponse) GetGeneratedCsr() *GenerateCSRResponse { - if x, ok := m.GetInstallResponse().(*InstallCertificateResponse_GeneratedCsr); ok { - return x.GeneratedCsr - } - return nil -} - -func (m *InstallCertificateResponse) GetLoadCertificate() *LoadCertificateResponse { - if x, ok := m.GetInstallResponse().(*InstallCertificateResponse_LoadCertificate); ok { - return x.LoadCertificate - } - return nil -} - -// XXX_OneofFuncs is for the internal use of the proto package. -func (*InstallCertificateResponse) 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 _InstallCertificateResponse_OneofMarshaler, _InstallCertificateResponse_OneofUnmarshaler, _InstallCertificateResponse_OneofSizer, []interface{}{ - (*InstallCertificateResponse_GeneratedCsr)(nil), - (*InstallCertificateResponse_LoadCertificate)(nil), - } -} - -func _InstallCertificateResponse_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { - m := msg.(*InstallCertificateResponse) - // install_response - switch x := m.InstallResponse.(type) { - case *InstallCertificateResponse_GeneratedCsr: - b.EncodeVarint(1<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.GeneratedCsr); err != nil { - return err - } - case *InstallCertificateResponse_LoadCertificate: - b.EncodeVarint(2<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.LoadCertificate); err != nil { - return err - } - case nil: - default: - return fmt.Errorf("InstallCertificateResponse.InstallResponse has unexpected type %T", x) - } - return nil -} - -func _InstallCertificateResponse_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { - m := msg.(*InstallCertificateResponse) - switch tag { - case 1: // install_response.generated_csr - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(GenerateCSRResponse) - err := b.DecodeMessage(msg) - m.InstallResponse = &InstallCertificateResponse_GeneratedCsr{msg} - return true, err - case 2: // install_response.load_certificate - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(LoadCertificateResponse) - err := b.DecodeMessage(msg) - m.InstallResponse = &InstallCertificateResponse_LoadCertificate{msg} - return true, err - default: - return false, nil - } -} - -func _InstallCertificateResponse_OneofSizer(msg proto.Message) (n int) { - m := msg.(*InstallCertificateResponse) - // install_response - switch x := m.InstallResponse.(type) { - case *InstallCertificateResponse_GeneratedCsr: - s := proto.Size(x.GeneratedCsr) - n += proto.SizeVarint(1<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *InstallCertificateResponse_LoadCertificate: - s := proto.Size(x.LoadCertificate) - n += proto.SizeVarint(2<<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 -} - -// Request to generate the CSR. -// When this request is made for rotating an existing certificate as part of the -// Rotate() RPC, then the target must ensure that the "certificate_id" is -// already created and exists on the target. If the Certificate Rotation -// proceeds to load the certificate, it must associate the new certificate with -// the previously created "certificate_id". -// -// When this request is made for installing a completely new certificate as part -// of the Install() RPC , then the target must ensure that the "certificate_id" -// is completely new and no entities on the target are should be bound to this -// certificate_id. If any existing certificate matches the certificate_id, then -// this request should fail. -// -// If there is another ongoing Rotate/Install RPC with the same certificate_id, -// the GenerateCSRRequest should fail. -type GenerateCSRRequest struct { - // Parameters for creating a CSR. - CsrParams *CSRParams `protobuf:"bytes,1,opt,name=csr_params,json=csrParams" json:"csr_params,omitempty"` - // The certificate id with which this CSR will be associated. The target - // configuration should bind an entity which wants to use a certificate to - // the certificate_id it should use. - CertificateId string `protobuf:"bytes,2,opt,name=certificate_id,json=certificateId" json:"certificate_id,omitempty"` -} - -func (m *GenerateCSRRequest) Reset() { *m = GenerateCSRRequest{} } -func (m *GenerateCSRRequest) String() string { return proto.CompactTextString(m) } -func (*GenerateCSRRequest) ProtoMessage() {} -func (*GenerateCSRRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} } - -func (m *GenerateCSRRequest) GetCsrParams() *CSRParams { - if m != nil { - return m.CsrParams - } - return nil -} - -func (m *GenerateCSRRequest) GetCertificateId() string { - if m != nil { - return m.CertificateId - } - return "" -} - -// Parameters to be used when generating a Certificate Signing Request. -type CSRParams struct { - // The type of certificate which will be will be associated for this CSR. - Type CertificateType `protobuf:"varint,1,opt,name=type,enum=gnoi.certificate.CertificateType" json:"type,omitempty"` - // Minimum size of the key to be used by the target when generating a - // public/private key pair. - MinKeySize uint32 `protobuf:"varint,2,opt,name=min_key_size,json=minKeySize" json:"min_key_size,omitempty"` - // If provided, the target must use the provided key type. If the target - // cannot use the algorithm specified in the key_type, it should cancel the - // stream with an Unimplemented error. - KeyType KeyType `protobuf:"varint,3,opt,name=key_type,json=keyType,enum=gnoi.certificate.KeyType" json:"key_type,omitempty"` - // --- common set of parameters applicable for any type of certificate --- // - CommonName string `protobuf:"bytes,4,opt,name=common_name,json=commonName" json:"common_name,omitempty"` - Country string `protobuf:"bytes,5,opt,name=country" json:"country,omitempty"` - State string `protobuf:"bytes,6,opt,name=state" json:"state,omitempty"` - City string `protobuf:"bytes,7,opt,name=city" json:"city,omitempty"` - Organization string `protobuf:"bytes,8,opt,name=organization" json:"organization,omitempty"` - OrganizationalUnit string `protobuf:"bytes,9,opt,name=organizational_unit,json=organizationalUnit" json:"organizational_unit,omitempty"` - IpAddress string `protobuf:"bytes,10,opt,name=ip_address,json=ipAddress" json:"ip_address,omitempty"` - EmailId string `protobuf:"bytes,11,opt,name=email_id,json=emailId" json:"email_id,omitempty"` -} - -func (m *CSRParams) Reset() { *m = CSRParams{} } -func (m *CSRParams) String() string { return proto.CompactTextString(m) } -func (*CSRParams) ProtoMessage() {} -func (*CSRParams) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} } - -func (m *CSRParams) GetType() CertificateType { - if m != nil { - return m.Type - } - return CertificateType_CT_UNKNOWN -} - -func (m *CSRParams) GetMinKeySize() uint32 { - if m != nil { - return m.MinKeySize - } - return 0 -} - -func (m *CSRParams) GetKeyType() KeyType { - if m != nil { - return m.KeyType - } - return KeyType_KT_UNKNOWN -} - -func (m *CSRParams) GetCommonName() string { - if m != nil { - return m.CommonName - } - return "" -} - -func (m *CSRParams) GetCountry() string { - if m != nil { - return m.Country - } - return "" -} - -func (m *CSRParams) GetState() string { - if m != nil { - return m.State - } - return "" -} - -func (m *CSRParams) GetCity() string { - if m != nil { - return m.City - } - return "" -} - -func (m *CSRParams) GetOrganization() string { - if m != nil { - return m.Organization - } - return "" -} - -func (m *CSRParams) GetOrganizationalUnit() string { - if m != nil { - return m.OrganizationalUnit - } - return "" -} - -func (m *CSRParams) GetIpAddress() string { - if m != nil { - return m.IpAddress - } - return "" -} - -func (m *CSRParams) GetEmailId() string { - if m != nil { - return m.EmailId - } - return "" -} - -// GenerateCSRResponse contains the CSR associated with the Certificate ID -// supplied in the GenerateCSRRequest. When a Certificate is subsequently -// installed on the target in the same streaming RPC session, it must be -// associated to that Certificate ID. -// -// An Unimplemented error will be returned if the target cannot generate a CSR -// as per the request. In this case, the caller must generate its own key pair. -type GenerateCSRResponse struct { - Csr *CSR `protobuf:"bytes,1,opt,name=csr" json:"csr,omitempty"` -} - -func (m *GenerateCSRResponse) Reset() { *m = GenerateCSRResponse{} } -func (m *GenerateCSRResponse) String() string { return proto.CompactTextString(m) } -func (*GenerateCSRResponse) ProtoMessage() {} -func (*GenerateCSRResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} } - -func (m *GenerateCSRResponse) GetCsr() *CSR { - if m != nil { - return m.Csr - } - return nil -} - -// LoadCertificateRequest instructs the target to store the given certificate. -// -// Case 1: Target Generated CSR and Key Pair. -// If the target generated the CSR (and the public/private key pair) during the -// GenerateCSR request, then the target must associate the certificate with the -// certificate ID specified in the preceding GenerateCSR request. -// -// Case 2: Externally Generated Key Pair. -// If the target can not generate a CSR, then the public/private key pair is -// generated externally. In this case provide the target with the key pair, -// and the certificate_id to be associated with the new certificate. -// -// If there is another ongoing Rotate/Install RPC with the same certificate_id, -// the LoadCertificateRequest must fail. -type LoadCertificateRequest struct { - // The certificate to be Loaded on the target. - Certificate *Certificate `protobuf:"bytes,1,opt,name=certificate" json:"certificate,omitempty"` - // The key pair to be used with the certificate. This is provided in the event - // that the target cannot generate a CSR (and the corresponding public/private - // keys). - KeyPair *KeyPair `protobuf:"bytes,2,opt,name=key_pair,json=keyPair" json:"key_pair,omitempty"` - // Certificate Id of the above certificate. This is to be provided only when - // there is an externally generated key pair. - CertificateId string `protobuf:"bytes,3,opt,name=certificate_id,json=certificateId" json:"certificate_id,omitempty"` -} - -func (m *LoadCertificateRequest) Reset() { *m = LoadCertificateRequest{} } -func (m *LoadCertificateRequest) String() string { return proto.CompactTextString(m) } -func (*LoadCertificateRequest) ProtoMessage() {} -func (*LoadCertificateRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} } - -func (m *LoadCertificateRequest) GetCertificate() *Certificate { - if m != nil { - return m.Certificate - } - return nil -} - -func (m *LoadCertificateRequest) GetKeyPair() *KeyPair { - if m != nil { - return m.KeyPair - } - return nil -} - -func (m *LoadCertificateRequest) GetCertificateId() string { - if m != nil { - return m.CertificateId - } - return "" -} - -// Response from target after Loading a Certificate. -// If the target could not load the certificate, it must end the RPC stream with -// a suitable RPC error about why the Certificate was not loaded. -type LoadCertificateResponse struct { -} - -func (m *LoadCertificateResponse) Reset() { *m = LoadCertificateResponse{} } -func (m *LoadCertificateResponse) String() string { return proto.CompactTextString(m) } -func (*LoadCertificateResponse) ProtoMessage() {} -func (*LoadCertificateResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} } - -// A Finalize message is sent to the target to confirm the Rotation of -// the certificate and that the certificate should not be rolled back when -// the RPC concludes. The certificate must be rolled back if the target returns -// an error after receiving a Finalize message. -type FinalizeRequest struct { -} - -func (m *FinalizeRequest) Reset() { *m = FinalizeRequest{} } -func (m *FinalizeRequest) String() string { return proto.CompactTextString(m) } -func (*FinalizeRequest) ProtoMessage() {} -func (*FinalizeRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{9} } - -// The request to query all the certificates on the target. -type GetCertificatesRequest struct { -} - -func (m *GetCertificatesRequest) Reset() { *m = GetCertificatesRequest{} } -func (m *GetCertificatesRequest) String() string { return proto.CompactTextString(m) } -func (*GetCertificatesRequest) ProtoMessage() {} -func (*GetCertificatesRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{10} } - -// Response from the target about the certificates that exist on the target what -// what is using them. -type GetCertificatesResponse struct { - CertificateInfo []*CertificateInfo `protobuf:"bytes,1,rep,name=certificate_info,json=certificateInfo" json:"certificate_info,omitempty"` -} - -func (m *GetCertificatesResponse) Reset() { *m = GetCertificatesResponse{} } -func (m *GetCertificatesResponse) String() string { return proto.CompactTextString(m) } -func (*GetCertificatesResponse) ProtoMessage() {} -func (*GetCertificatesResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{11} } - -func (m *GetCertificatesResponse) GetCertificateInfo() []*CertificateInfo { - if m != nil { - return m.CertificateInfo - } - return nil -} - -type CertificateInfo struct { - CertificateId string `protobuf:"bytes,1,opt,name=certificate_id,json=certificateId" json:"certificate_id,omitempty"` - Certificate *Certificate `protobuf:"bytes,2,opt,name=certificate" json:"certificate,omitempty"` - // List of endpoints using this certificate. - Endpoints []*Endpoint `protobuf:"bytes,3,rep,name=endpoints" json:"endpoints,omitempty"` - // System modification time when the certificate was installed/rotated in - // nanoseconds since epoch. - ModificationTime int64 `protobuf:"varint,4,opt,name=modification_time,json=modificationTime" json:"modification_time,omitempty"` -} - -func (m *CertificateInfo) Reset() { *m = CertificateInfo{} } -func (m *CertificateInfo) String() string { return proto.CompactTextString(m) } -func (*CertificateInfo) ProtoMessage() {} -func (*CertificateInfo) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{12} } - -func (m *CertificateInfo) GetCertificateId() string { - if m != nil { - return m.CertificateId - } - return "" -} - -func (m *CertificateInfo) GetCertificate() *Certificate { - if m != nil { - return m.Certificate - } - return nil -} - -func (m *CertificateInfo) GetEndpoints() []*Endpoint { - if m != nil { - return m.Endpoints - } - return nil -} - -func (m *CertificateInfo) GetModificationTime() int64 { - if m != nil { - return m.ModificationTime - } - return 0 -} - -type RevokeCertificatesRequest struct { - // Certificates to revoke. - CertificateId []string `protobuf:"bytes,1,rep,name=certificate_id,json=certificateId" json:"certificate_id,omitempty"` -} - -func (m *RevokeCertificatesRequest) Reset() { *m = RevokeCertificatesRequest{} } -func (m *RevokeCertificatesRequest) String() string { return proto.CompactTextString(m) } -func (*RevokeCertificatesRequest) ProtoMessage() {} -func (*RevokeCertificatesRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{13} } - -func (m *RevokeCertificatesRequest) GetCertificateId() []string { - if m != nil { - return m.CertificateId - } - return nil -} - -type RevokeCertificatesResponse struct { - // List of certificates successfully revoked. - RevokedCertificateId []string `protobuf:"bytes,1,rep,name=revoked_certificate_id,json=revokedCertificateId" json:"revoked_certificate_id,omitempty"` - // List of errors why certain certificates could not be revoked. - CertificateRevocationError []*CertificateRevocationError `protobuf:"bytes,2,rep,name=certificate_revocation_error,json=certificateRevocationError" json:"certificate_revocation_error,omitempty"` -} - -func (m *RevokeCertificatesResponse) Reset() { *m = RevokeCertificatesResponse{} } -func (m *RevokeCertificatesResponse) String() string { return proto.CompactTextString(m) } -func (*RevokeCertificatesResponse) ProtoMessage() {} -func (*RevokeCertificatesResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{14} } - -func (m *RevokeCertificatesResponse) GetRevokedCertificateId() []string { - if m != nil { - return m.RevokedCertificateId - } - return nil -} - -func (m *RevokeCertificatesResponse) GetCertificateRevocationError() []*CertificateRevocationError { - if m != nil { - return m.CertificateRevocationError - } - return nil -} - -// An error message indicating why a certificate id could not be revoked. -type CertificateRevocationError struct { - CertificateId string `protobuf:"bytes,1,opt,name=certificate_id,json=certificateId" json:"certificate_id,omitempty"` - ErrorMessage string `protobuf:"bytes,2,opt,name=error_message,json=errorMessage" json:"error_message,omitempty"` -} - -func (m *CertificateRevocationError) Reset() { *m = CertificateRevocationError{} } -func (m *CertificateRevocationError) String() string { return proto.CompactTextString(m) } -func (*CertificateRevocationError) ProtoMessage() {} -func (*CertificateRevocationError) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{15} } - -func (m *CertificateRevocationError) GetCertificateId() string { - if m != nil { - return m.CertificateId - } - return "" -} - -func (m *CertificateRevocationError) GetErrorMessage() string { - if m != nil { - return m.ErrorMessage - } - return "" -} - -// A request to ask the target if it can generate key pairs. -type CanGenerateCSRRequest struct { - KeyType KeyType `protobuf:"varint,1,opt,name=key_type,json=keyType,enum=gnoi.certificate.KeyType" json:"key_type,omitempty"` - CertificateType CertificateType `protobuf:"varint,2,opt,name=certificate_type,json=certificateType,enum=gnoi.certificate.CertificateType" json:"certificate_type,omitempty"` - KeySize uint32 `protobuf:"varint,3,opt,name=key_size,json=keySize" json:"key_size,omitempty"` -} - -func (m *CanGenerateCSRRequest) Reset() { *m = CanGenerateCSRRequest{} } -func (m *CanGenerateCSRRequest) String() string { return proto.CompactTextString(m) } -func (*CanGenerateCSRRequest) ProtoMessage() {} -func (*CanGenerateCSRRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{16} } - -func (m *CanGenerateCSRRequest) GetKeyType() KeyType { - if m != nil { - return m.KeyType - } - return KeyType_KT_UNKNOWN -} - -func (m *CanGenerateCSRRequest) GetCertificateType() CertificateType { - if m != nil { - return m.CertificateType - } - return CertificateType_CT_UNKNOWN -} - -func (m *CanGenerateCSRRequest) GetKeySize() uint32 { - if m != nil { - return m.KeySize - } - return 0 -} - -// Response from the target about whether it can generate a CSR with the given -// parameters. -type CanGenerateCSRResponse struct { - CanGenerate bool `protobuf:"varint,4,opt,name=can_generate,json=canGenerate" json:"can_generate,omitempty"` -} - -func (m *CanGenerateCSRResponse) Reset() { *m = CanGenerateCSRResponse{} } -func (m *CanGenerateCSRResponse) String() string { return proto.CompactTextString(m) } -func (*CanGenerateCSRResponse) ProtoMessage() {} -func (*CanGenerateCSRResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{17} } - -func (m *CanGenerateCSRResponse) GetCanGenerate() bool { - if m != nil { - return m.CanGenerate - } - return false -} - -// A certificate. -type Certificate struct { - // Type of certificate. - Type CertificateType `protobuf:"varint,1,opt,name=type,enum=gnoi.certificate.CertificateType" json:"type,omitempty"` - // Actual certificate. - // The exact encoding depends upon the type of certificate. - // for X509, this should be a PEM encoded Certificate. - Certificate []byte `protobuf:"bytes,2,opt,name=certificate,proto3" json:"certificate,omitempty"` -} - -func (m *Certificate) Reset() { *m = Certificate{} } -func (m *Certificate) String() string { return proto.CompactTextString(m) } -func (*Certificate) ProtoMessage() {} -func (*Certificate) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{18} } - -func (m *Certificate) GetType() CertificateType { - if m != nil { - return m.Type - } - return CertificateType_CT_UNKNOWN -} - -func (m *Certificate) GetCertificate() []byte { - if m != nil { - return m.Certificate - } - return nil -} - -// A Certificate Signing Request. -type CSR struct { - // Type of certificate. - Type CertificateType `protobuf:"varint,1,opt,name=type,enum=gnoi.certificate.CertificateType" json:"type,omitempty"` - // Bytes representing the CSR. - // The exact encoding depends upon the type of certificate requested. - // for X509: This should be the PEM encoded CSR. - Csr []byte `protobuf:"bytes,2,opt,name=csr,proto3" json:"csr,omitempty"` -} - -func (m *CSR) Reset() { *m = CSR{} } -func (m *CSR) String() string { return proto.CompactTextString(m) } -func (*CSR) ProtoMessage() {} -func (*CSR) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{19} } - -func (m *CSR) GetType() CertificateType { - if m != nil { - return m.Type - } - return CertificateType_CT_UNKNOWN -} - -func (m *CSR) GetCsr() []byte { - if m != nil { - return m.Csr - } - return nil -} - -// A message representing a pair of public/private keys. -type KeyPair struct { - PrivateKey []byte `protobuf:"bytes,1,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"` - PublicKey []byte `protobuf:"bytes,2,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` -} - -func (m *KeyPair) Reset() { *m = KeyPair{} } -func (m *KeyPair) String() string { return proto.CompactTextString(m) } -func (*KeyPair) ProtoMessage() {} -func (*KeyPair) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{20} } - -func (m *KeyPair) GetPrivateKey() []byte { - if m != nil { - return m.PrivateKey - } - return nil -} - -func (m *KeyPair) GetPublicKey() []byte { - if m != nil { - return m.PublicKey - } - return nil -} - -// An endpoint represents an entity on the target which can use a certificate. -type Endpoint struct { - Type Endpoint_Type `protobuf:"varint,1,opt,name=type,enum=gnoi.certificate.Endpoint_Type" json:"type,omitempty"` - // Human readable identifier for an endpoint. - Endpoint string `protobuf:"bytes,2,opt,name=endpoint" json:"endpoint,omitempty"` -} - -func (m *Endpoint) Reset() { *m = Endpoint{} } -func (m *Endpoint) String() string { return proto.CompactTextString(m) } -func (*Endpoint) ProtoMessage() {} -func (*Endpoint) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{21} } - -func (m *Endpoint) GetType() Endpoint_Type { - if m != nil { - return m.Type - } - return Endpoint_EP_UNSPECIFIED -} - -func (m *Endpoint) GetEndpoint() string { - if m != nil { - return m.Endpoint - } - return "" -} - -func init() { - proto.RegisterType((*RotateCertificateRequest)(nil), "gnoi.certificate.RotateCertificateRequest") - proto.RegisterType((*RotateCertificateResponse)(nil), "gnoi.certificate.RotateCertificateResponse") - proto.RegisterType((*InstallCertificateRequest)(nil), "gnoi.certificate.InstallCertificateRequest") - proto.RegisterType((*InstallCertificateResponse)(nil), "gnoi.certificate.InstallCertificateResponse") - proto.RegisterType((*GenerateCSRRequest)(nil), "gnoi.certificate.GenerateCSRRequest") - proto.RegisterType((*CSRParams)(nil), "gnoi.certificate.CSRParams") - proto.RegisterType((*GenerateCSRResponse)(nil), "gnoi.certificate.GenerateCSRResponse") - proto.RegisterType((*LoadCertificateRequest)(nil), "gnoi.certificate.LoadCertificateRequest") - proto.RegisterType((*LoadCertificateResponse)(nil), "gnoi.certificate.LoadCertificateResponse") - proto.RegisterType((*FinalizeRequest)(nil), "gnoi.certificate.FinalizeRequest") - proto.RegisterType((*GetCertificatesRequest)(nil), "gnoi.certificate.GetCertificatesRequest") - proto.RegisterType((*GetCertificatesResponse)(nil), "gnoi.certificate.GetCertificatesResponse") - proto.RegisterType((*CertificateInfo)(nil), "gnoi.certificate.CertificateInfo") - proto.RegisterType((*RevokeCertificatesRequest)(nil), "gnoi.certificate.RevokeCertificatesRequest") - proto.RegisterType((*RevokeCertificatesResponse)(nil), "gnoi.certificate.RevokeCertificatesResponse") - proto.RegisterType((*CertificateRevocationError)(nil), "gnoi.certificate.CertificateRevocationError") - proto.RegisterType((*CanGenerateCSRRequest)(nil), "gnoi.certificate.CanGenerateCSRRequest") - proto.RegisterType((*CanGenerateCSRResponse)(nil), "gnoi.certificate.CanGenerateCSRResponse") - proto.RegisterType((*Certificate)(nil), "gnoi.certificate.Certificate") - proto.RegisterType((*CSR)(nil), "gnoi.certificate.CSR") - proto.RegisterType((*KeyPair)(nil), "gnoi.certificate.KeyPair") - proto.RegisterType((*Endpoint)(nil), "gnoi.certificate.Endpoint") - proto.RegisterEnum("gnoi.certificate.CertificateType", CertificateType_name, CertificateType_value) - proto.RegisterEnum("gnoi.certificate.KeyType", KeyType_name, KeyType_value) - proto.RegisterEnum("gnoi.certificate.Endpoint_Type", Endpoint_Type_name, Endpoint_Type_value) -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// Client API for CertificateManagement service - -type CertificateManagementClient interface { - // Rotate will replace an existing Certificate on the target by creating a - // new CSR request and placing the new Certificate based on the CSR on the - // target. If the stream is broken or any steps in the process fail the - // target must rollback to the original Certificate. - // - // The following describes the sequence of messages that must be exchanged - // in the Rotate() RPC. - // - // Sequence of expected messages: - // Case 1: When Target generates the CSR. - // - // Step 1: Start the stream - // Client <---- Rotate() RPC stream begin ------> Target - // - // Step 2: CSR - // Client -----> GenerateCSRRequest----> Target - // Client <----- GenerateCSRResponse <--- Target - // - // Step 3: Certificate Signing - // Client gets the certificate signed by the CA. - // - // Step 4: Send Certificate to Target. - // Client --> LoadCertificateRequest ----> Target - // Client <-- LoadCertificateResponse <--- Target - // - // Step 5: Test/Validation by the client. - // This step should be to create a new connection to the target using - // The new certificate and validate that the certificate works. - // Once verfied, the client will then proceed to finalize the rotation. - // If the new connection cannot be completed the client will cancel the - // RPC thereby forcing the target to rollback the certificate. - // - // Step 6: Final commit. - // Client ---> FinalizeRequest ----> Target - // - // - // Case 2: When Client generates the CSR. - // Step 1: Start the stream - // Client <---- Rotate() RPC stream begin ----> Target - // - // Step 2: CSR - // Client generates its own certificate. - // - // Step 3: Certificate Signing - // Client gets the certificate signed by the CA. - // - // Step 4: Send Certificate to Target. - // Client ---> LoadCertificateRequest ----> Target - // Client <--- LoadCertificateResponse <--- Target - // - // Step 5: Test/Validation by the client. - // - // Step 6: Final commit. - // Client ---> FinalizeRequest ----> Target - Rotate(ctx context.Context, opts ...grpc.CallOption) (CertificateManagement_RotateClient, error) - // Install will put a new Certificate on the target by creating a new CSR - // request and placing the new Certificate based on the CSR on the target.The - // new Certificate will be associated with a new Certificate Id on the target. - // If the target has a pre existing Certificate with the given Certificate Id, - // the operation should fail. - // If the stream is broken or any steps in the process fail the target must - // revert any changes in state. - // - // The following describes the sequence of messages that must be exchanged - // in the Install() RPC. - // - // Sequence of expected messages: - // Case 1: When Target generates the CSR-------------------------: - // - // Step 1: Start the stream - // Client <---- Install() RPC stream begin ------> Target - // - // Step 2: CSR - // Client -----> GenerateCSRRequest() ----> Target - // Client <---- GenerateCSRResponse() <---- Target - // - // Step 3: Certificate Signing - // Client gets the certificate signed by the CA. - // - // Step 4: Send Certificate to Target. - // Client -> LoadCertificateRequest() ----> Target - // Client <- LoadCertificateResponse() <--- Target - // - // Case 2: When Client generates the CSR-------------------------: - // Step 1: Start the stream - // Client <---- Install() RPC stream begin ------> Target - // - // Step 2: CSR - // Client generates its own certificate. - // - // Step 3: Certificate Signing - // Client gets the certificate signed by the CA. - // - // Step 4: Send Certificate to Target. - // Client -> LoadCertificateRequest() ----> Target - // Client <- LoadCertificateResponse() <--- Target - // - Install(ctx context.Context, opts ...grpc.CallOption) (CertificateManagement_InstallClient, error) - // An RPC to get the certificates on the target. - GetCertificates(ctx context.Context, in *GetCertificatesRequest, opts ...grpc.CallOption) (*GetCertificatesResponse, error) - // An RPC to revoke specific certificates. - // If a certificate is not present on the target, the request should silently - // succeed. Revoking a certificate should render the existing certificate - // unusable by any endpoints. - RevokeCertificates(ctx context.Context, in *RevokeCertificatesRequest, opts ...grpc.CallOption) (*RevokeCertificatesResponse, error) - // An RPC to ask a target if it can generate a Certificate. - CanGenerateCSR(ctx context.Context, in *CanGenerateCSRRequest, opts ...grpc.CallOption) (*CanGenerateCSRResponse, error) -} - -type certificateManagementClient struct { - cc *grpc.ClientConn -} - -func NewCertificateManagementClient(cc *grpc.ClientConn) CertificateManagementClient { - return &certificateManagementClient{cc} -} - -func (c *certificateManagementClient) Rotate(ctx context.Context, opts ...grpc.CallOption) (CertificateManagement_RotateClient, error) { - stream, err := grpc.NewClientStream(ctx, &_CertificateManagement_serviceDesc.Streams[0], c.cc, "/gnoi.certificate.CertificateManagement/Rotate", opts...) - if err != nil { - return nil, err - } - x := &certificateManagementRotateClient{stream} - return x, nil -} - -type CertificateManagement_RotateClient interface { - Send(*RotateCertificateRequest) error - Recv() (*RotateCertificateResponse, error) - grpc.ClientStream -} - -type certificateManagementRotateClient struct { - grpc.ClientStream -} - -func (x *certificateManagementRotateClient) Send(m *RotateCertificateRequest) error { - return x.ClientStream.SendMsg(m) -} - -func (x *certificateManagementRotateClient) Recv() (*RotateCertificateResponse, error) { - m := new(RotateCertificateResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *certificateManagementClient) Install(ctx context.Context, opts ...grpc.CallOption) (CertificateManagement_InstallClient, error) { - stream, err := grpc.NewClientStream(ctx, &_CertificateManagement_serviceDesc.Streams[1], c.cc, "/gnoi.certificate.CertificateManagement/Install", opts...) - if err != nil { - return nil, err - } - x := &certificateManagementInstallClient{stream} - return x, nil -} - -type CertificateManagement_InstallClient interface { - Send(*InstallCertificateRequest) error - Recv() (*InstallCertificateResponse, error) - grpc.ClientStream -} - -type certificateManagementInstallClient struct { - grpc.ClientStream -} - -func (x *certificateManagementInstallClient) Send(m *InstallCertificateRequest) error { - return x.ClientStream.SendMsg(m) -} - -func (x *certificateManagementInstallClient) Recv() (*InstallCertificateResponse, error) { - m := new(InstallCertificateResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *certificateManagementClient) GetCertificates(ctx context.Context, in *GetCertificatesRequest, opts ...grpc.CallOption) (*GetCertificatesResponse, error) { - out := new(GetCertificatesResponse) - err := grpc.Invoke(ctx, "/gnoi.certificate.CertificateManagement/GetCertificates", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *certificateManagementClient) RevokeCertificates(ctx context.Context, in *RevokeCertificatesRequest, opts ...grpc.CallOption) (*RevokeCertificatesResponse, error) { - out := new(RevokeCertificatesResponse) - err := grpc.Invoke(ctx, "/gnoi.certificate.CertificateManagement/RevokeCertificates", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *certificateManagementClient) CanGenerateCSR(ctx context.Context, in *CanGenerateCSRRequest, opts ...grpc.CallOption) (*CanGenerateCSRResponse, error) { - out := new(CanGenerateCSRResponse) - err := grpc.Invoke(ctx, "/gnoi.certificate.CertificateManagement/CanGenerateCSR", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// Server API for CertificateManagement service - -type CertificateManagementServer interface { - // Rotate will replace an existing Certificate on the target by creating a - // new CSR request and placing the new Certificate based on the CSR on the - // target. If the stream is broken or any steps in the process fail the - // target must rollback to the original Certificate. - // - // The following describes the sequence of messages that must be exchanged - // in the Rotate() RPC. - // - // Sequence of expected messages: - // Case 1: When Target generates the CSR. - // - // Step 1: Start the stream - // Client <---- Rotate() RPC stream begin ------> Target - // - // Step 2: CSR - // Client -----> GenerateCSRRequest----> Target - // Client <----- GenerateCSRResponse <--- Target - // - // Step 3: Certificate Signing - // Client gets the certificate signed by the CA. - // - // Step 4: Send Certificate to Target. - // Client --> LoadCertificateRequest ----> Target - // Client <-- LoadCertificateResponse <--- Target - // - // Step 5: Test/Validation by the client. - // This step should be to create a new connection to the target using - // The new certificate and validate that the certificate works. - // Once verfied, the client will then proceed to finalize the rotation. - // If the new connection cannot be completed the client will cancel the - // RPC thereby forcing the target to rollback the certificate. - // - // Step 6: Final commit. - // Client ---> FinalizeRequest ----> Target - // - // - // Case 2: When Client generates the CSR. - // Step 1: Start the stream - // Client <---- Rotate() RPC stream begin ----> Target - // - // Step 2: CSR - // Client generates its own certificate. - // - // Step 3: Certificate Signing - // Client gets the certificate signed by the CA. - // - // Step 4: Send Certificate to Target. - // Client ---> LoadCertificateRequest ----> Target - // Client <--- LoadCertificateResponse <--- Target - // - // Step 5: Test/Validation by the client. - // - // Step 6: Final commit. - // Client ---> FinalizeRequest ----> Target - Rotate(CertificateManagement_RotateServer) error - // Install will put a new Certificate on the target by creating a new CSR - // request and placing the new Certificate based on the CSR on the target.The - // new Certificate will be associated with a new Certificate Id on the target. - // If the target has a pre existing Certificate with the given Certificate Id, - // the operation should fail. - // If the stream is broken or any steps in the process fail the target must - // revert any changes in state. - // - // The following describes the sequence of messages that must be exchanged - // in the Install() RPC. - // - // Sequence of expected messages: - // Case 1: When Target generates the CSR-------------------------: - // - // Step 1: Start the stream - // Client <---- Install() RPC stream begin ------> Target - // - // Step 2: CSR - // Client -----> GenerateCSRRequest() ----> Target - // Client <---- GenerateCSRResponse() <---- Target - // - // Step 3: Certificate Signing - // Client gets the certificate signed by the CA. - // - // Step 4: Send Certificate to Target. - // Client -> LoadCertificateRequest() ----> Target - // Client <- LoadCertificateResponse() <--- Target - // - // Case 2: When Client generates the CSR-------------------------: - // Step 1: Start the stream - // Client <---- Install() RPC stream begin ------> Target - // - // Step 2: CSR - // Client generates its own certificate. - // - // Step 3: Certificate Signing - // Client gets the certificate signed by the CA. - // - // Step 4: Send Certificate to Target. - // Client -> LoadCertificateRequest() ----> Target - // Client <- LoadCertificateResponse() <--- Target - // - Install(CertificateManagement_InstallServer) error - // An RPC to get the certificates on the target. - GetCertificates(context.Context, *GetCertificatesRequest) (*GetCertificatesResponse, error) - // An RPC to revoke specific certificates. - // If a certificate is not present on the target, the request should silently - // succeed. Revoking a certificate should render the existing certificate - // unusable by any endpoints. - RevokeCertificates(context.Context, *RevokeCertificatesRequest) (*RevokeCertificatesResponse, error) - // An RPC to ask a target if it can generate a Certificate. - CanGenerateCSR(context.Context, *CanGenerateCSRRequest) (*CanGenerateCSRResponse, error) -} - -func RegisterCertificateManagementServer(s *grpc.Server, srv CertificateManagementServer) { - s.RegisterService(&_CertificateManagement_serviceDesc, srv) -} - -func _CertificateManagement_Rotate_Handler(srv interface{}, stream grpc.ServerStream) error { - return srv.(CertificateManagementServer).Rotate(&certificateManagementRotateServer{stream}) -} - -type CertificateManagement_RotateServer interface { - Send(*RotateCertificateResponse) error - Recv() (*RotateCertificateRequest, error) - grpc.ServerStream -} - -type certificateManagementRotateServer struct { - grpc.ServerStream -} - -func (x *certificateManagementRotateServer) Send(m *RotateCertificateResponse) error { - return x.ServerStream.SendMsg(m) -} - -func (x *certificateManagementRotateServer) Recv() (*RotateCertificateRequest, error) { - m := new(RotateCertificateRequest) - if err := x.ServerStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func _CertificateManagement_Install_Handler(srv interface{}, stream grpc.ServerStream) error { - return srv.(CertificateManagementServer).Install(&certificateManagementInstallServer{stream}) -} - -type CertificateManagement_InstallServer interface { - Send(*InstallCertificateResponse) error - Recv() (*InstallCertificateRequest, error) - grpc.ServerStream -} - -type certificateManagementInstallServer struct { - grpc.ServerStream -} - -func (x *certificateManagementInstallServer) Send(m *InstallCertificateResponse) error { - return x.ServerStream.SendMsg(m) -} - -func (x *certificateManagementInstallServer) Recv() (*InstallCertificateRequest, error) { - m := new(InstallCertificateRequest) - if err := x.ServerStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func _CertificateManagement_GetCertificates_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetCertificatesRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(CertificateManagementServer).GetCertificates(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.certificate.CertificateManagement/GetCertificates", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(CertificateManagementServer).GetCertificates(ctx, req.(*GetCertificatesRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _CertificateManagement_RevokeCertificates_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RevokeCertificatesRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(CertificateManagementServer).RevokeCertificates(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.certificate.CertificateManagement/RevokeCertificates", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(CertificateManagementServer).RevokeCertificates(ctx, req.(*RevokeCertificatesRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _CertificateManagement_CanGenerateCSR_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CanGenerateCSRRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(CertificateManagementServer).CanGenerateCSR(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.certificate.CertificateManagement/CanGenerateCSR", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(CertificateManagementServer).CanGenerateCSR(ctx, req.(*CanGenerateCSRRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _CertificateManagement_serviceDesc = grpc.ServiceDesc{ - ServiceName: "gnoi.certificate.CertificateManagement", - HandlerType: (*CertificateManagementServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "GetCertificates", - Handler: _CertificateManagement_GetCertificates_Handler, - }, - { - MethodName: "RevokeCertificates", - Handler: _CertificateManagement_RevokeCertificates_Handler, - }, - { - MethodName: "CanGenerateCSR", - Handler: _CertificateManagement_CanGenerateCSR_Handler, - }, - }, - Streams: []grpc.StreamDesc{ - { - StreamName: "Rotate", - Handler: _CertificateManagement_Rotate_Handler, - ServerStreams: true, - ClientStreams: true, - }, - { - StreamName: "Install", - Handler: _CertificateManagement_Install_Handler, - ServerStreams: true, - ClientStreams: true, - }, - }, - Metadata: "github.com/openconfig/gnoi/cert/cert.proto", -} - -func init() { proto.RegisterFile("github.com/openconfig/gnoi/cert/cert.proto", fileDescriptor0) } - -var fileDescriptor0 = []byte{ - // 1212 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x57, 0xdd, 0x72, 0xda, 0x46, - 0x14, 0xb6, 0x8c, 0x63, 0xe0, 0x80, 0x41, 0xde, 0x24, 0x8e, 0xa0, 0xc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 0xdf, 0x7c, 0x09, 0xd7, 0x15, 0xcd, 0x89, 0x1e, 0x40, 0x66, 0xd6, 0xd0, 0x37, 0x95, 0x3d, 0x80, - 0x23, 0x84, 0xf9, 0x87, 0x06, 0x3b, 0xea, 0x19, 0x43, 0xdf, 0x41, 0x21, 0xd9, 0xcb, 0x92, 0xeb, - 0xf6, 0x95, 0x45, 0xc6, 0x49, 0x8b, 0x49, 0x15, 0x3d, 0x9b, 0xfa, 0xf1, 0x24, 0xa8, 0xab, 0xd8, - 0xb1, 0xa9, 0x2f, 0xaa, 0x18, 0x3d, 0x28, 0x3a, 0x31, 0xa3, 0xea, 0xc4, 0x0a, 0xdc, 0x5a, 0x32, - 0x44, 0xe6, 0x36, 0x94, 0x17, 0x36, 0xbb, 0x69, 0xc0, 0xce, 0x5b, 0x12, 0x26, 0xc0, 0xc1, 0x44, - 0x33, 0x84, 0x5b, 0x29, 0xcd, 0x74, 0x3f, 0xe8, 0x73, 0x9e, 0xb0, 0x01, 0x37, 0xb4, 0xbb, 0x19, - 0xf5, 0x59, 0x92, 0x60, 0x68, 0xb2, 0x01, 0xc7, 0x65, 0x67, 0x5e, 0x60, 0xfe, 0xab, 0x41, 0x79, - 0x01, 0xa4, 0x88, 0x55, 0x53, 0xc4, 0xba, 0x58, 0x89, 0xf5, 0xff, 0x5d, 0x89, 0xaf, 0x20, 0x4f, - 0x58, 0xdf, 0xe3, 0x94, 0x85, 0x81, 0x91, 0x11, 0x21, 0x54, 0xd3, 0xe6, 0x8d, 0x18, 0x82, 0x67, - 0x60, 0xf4, 0x08, 0xb6, 0x5d, 0xde, 0x97, 0x08, 0xca, 0x99, 0x15, 0xd2, 0x78, 0xb2, 0x32, 0x58, - 0x4f, 0x2a, 0x7a, 0xd4, 0x25, 0xe6, 0x01, 0x54, 0x30, 0x79, 0xcf, 0xcf, 0x89, 0x22, 0xd1, 0xca, - 0x58, 0x33, 0xe9, 0xba, 0xfe, 0xa9, 0x41, 0x55, 0x45, 0x12, 0x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x9d, 0x41, 0x36, 0xbe, 0x50, 0x22, 0x85, 0xed, 0xd2, 0xeb, 0x73, - 0xf5, 0xf1, 0x6a, 0xe0, 0xc4, 0x97, 0x06, 0x50, 0x5e, 0x38, 0x97, 0xd0, 0xae, 0xea, 0x62, 0xaa, - 0x3a, 0xd4, 0xaa, 0x0f, 0x57, 0x40, 0xc6, 0xd3, 0xc6, 0x01, 0xa5, 0xd7, 0xad, 0x2a, 0xb8, 0xa5, - 0x9b, 0x5d, 0x15, 0xdc, 0x15, 0x1b, 0xdc, 0x81, 0xd2, 0xfc, 0xe0, 0xa3, 0x07, 0x8a, 0x81, 0x52, - 0xad, 0xb4, 0xea, 0xee, 0x87, 0x81, 0xf2, 0x23, 0xa7, 0x9b, 0xe2, 0xff, 0xed, 0xb3, 0xff, 0x02, - 0x00, 0x00, 0xff, 0xff, 0x34, 0xcc, 0xb3, 0x45, 0x0d, 0x0f, 0x00, 0x00, -} diff --git a/interface/interface.pb.go b/interface/interface.pb.go deleted file mode 100644 index df8e5867..00000000 --- a/interface/interface.pb.go +++ /dev/null @@ -1,311 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: github.com/openconfig/gnoi/interface/interface.proto - -/* -Package gnoi_interface is a generated protocol buffer package. - -It is generated from these files: - github.com/openconfig/gnoi/interface/interface.proto - -It has these top-level messages: - SetLoopbackModeRequest - SetLoopbackModeResponse - GetLoopbackModeRequest - GetLoopbackModeResponse - ClearInterfaceCountersRequest - ClearInterfaceCountersResponse -*/ -package gnoi_interface - -import proto "github.com/golang/protobuf/proto" -import fmt "fmt" -import math "math" -import gnoi "github.com/openconfig/reference/rpc/gnoi" - -import ( - context "golang.org/x/net/context" - grpc "google.golang.org/grpc" -) - -// 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 - -// SetLoopbackModeRequest requests the provide interface be have its loopback mode -// set to mode. Mode may be vendor specific. For example, on a transport -// device, available modes are "none", "mac", "phy", "phy_remote", -// "framer_facility", and "framer_terminal". -type SetLoopbackModeRequest struct { - Interface *gnoi.Path `protobuf:"bytes,1,opt,name=interface" json:"interface,omitempty"` - Mode string `protobuf:"bytes,2,opt,name=mode" json:"mode,omitempty"` -} - -func (m *SetLoopbackModeRequest) Reset() { *m = SetLoopbackModeRequest{} } -func (m *SetLoopbackModeRequest) String() string { return proto.CompactTextString(m) } -func (*SetLoopbackModeRequest) ProtoMessage() {} -func (*SetLoopbackModeRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } - -func (m *SetLoopbackModeRequest) GetInterface() *gnoi.Path { - if m != nil { - return m.Interface - } - return nil -} - -func (m *SetLoopbackModeRequest) GetMode() string { - if m != nil { - return m.Mode - } - return "" -} - -type SetLoopbackModeResponse struct { -} - -func (m *SetLoopbackModeResponse) Reset() { *m = SetLoopbackModeResponse{} } -func (m *SetLoopbackModeResponse) String() string { return proto.CompactTextString(m) } -func (*SetLoopbackModeResponse) ProtoMessage() {} -func (*SetLoopbackModeResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } - -type GetLoopbackModeRequest struct { - Interface *gnoi.Path `protobuf:"bytes,1,opt,name=interface" json:"interface,omitempty"` -} - -func (m *GetLoopbackModeRequest) Reset() { *m = GetLoopbackModeRequest{} } -func (m *GetLoopbackModeRequest) String() string { return proto.CompactTextString(m) } -func (*GetLoopbackModeRequest) ProtoMessage() {} -func (*GetLoopbackModeRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} } - -func (m *GetLoopbackModeRequest) GetInterface() *gnoi.Path { - if m != nil { - return m.Interface - } - return nil -} - -type GetLoopbackModeResponse struct { - Mode string `protobuf:"bytes,1,opt,name=mode" json:"mode,omitempty"` -} - -func (m *GetLoopbackModeResponse) Reset() { *m = GetLoopbackModeResponse{} } -func (m *GetLoopbackModeResponse) String() string { return proto.CompactTextString(m) } -func (*GetLoopbackModeResponse) ProtoMessage() {} -func (*GetLoopbackModeResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} } - -func (m *GetLoopbackModeResponse) GetMode() string { - if m != nil { - return m.Mode - } - return "" -} - -type ClearInterfaceCountersRequest struct { - Interface []*gnoi.Path `protobuf:"bytes,1,rep,name=interface" json:"interface,omitempty"` -} - -func (m *ClearInterfaceCountersRequest) Reset() { *m = ClearInterfaceCountersRequest{} } -func (m *ClearInterfaceCountersRequest) String() string { return proto.CompactTextString(m) } -func (*ClearInterfaceCountersRequest) ProtoMessage() {} -func (*ClearInterfaceCountersRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} } - -func (m *ClearInterfaceCountersRequest) GetInterface() []*gnoi.Path { - if m != nil { - return m.Interface - } - return nil -} - -type ClearInterfaceCountersResponse struct { -} - -func (m *ClearInterfaceCountersResponse) Reset() { *m = ClearInterfaceCountersResponse{} } -func (m *ClearInterfaceCountersResponse) String() string { return proto.CompactTextString(m) } -func (*ClearInterfaceCountersResponse) ProtoMessage() {} -func (*ClearInterfaceCountersResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} } - -func init() { - proto.RegisterType((*SetLoopbackModeRequest)(nil), "gnoi.interface.SetLoopbackModeRequest") - proto.RegisterType((*SetLoopbackModeResponse)(nil), "gnoi.interface.SetLoopbackModeResponse") - proto.RegisterType((*GetLoopbackModeRequest)(nil), "gnoi.interface.GetLoopbackModeRequest") - proto.RegisterType((*GetLoopbackModeResponse)(nil), "gnoi.interface.GetLoopbackModeResponse") - proto.RegisterType((*ClearInterfaceCountersRequest)(nil), "gnoi.interface.ClearInterfaceCountersRequest") - proto.RegisterType((*ClearInterfaceCountersResponse)(nil), "gnoi.interface.ClearInterfaceCountersResponse") -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// Client API for Interface service - -type InterfaceClient interface { - // SetLoopbackMode is used to set the mode of loopback on a interface. - SetLoopbackMode(ctx context.Context, in *SetLoopbackModeRequest, opts ...grpc.CallOption) (*SetLoopbackModeResponse, error) - // GetLoopbackMode is used to get the mode of loopback on a interface. - GetLoopbackMode(ctx context.Context, in *GetLoopbackModeRequest, opts ...grpc.CallOption) (*GetLoopbackModeResponse, error) - // ClearInterfaceCounters will reset the counters for the provided interface. - ClearInterfaceCounters(ctx context.Context, in *ClearInterfaceCountersRequest, opts ...grpc.CallOption) (*ClearInterfaceCountersResponse, error) -} - -type interfaceClient struct { - cc *grpc.ClientConn -} - -func NewInterfaceClient(cc *grpc.ClientConn) InterfaceClient { - return &interfaceClient{cc} -} - -func (c *interfaceClient) SetLoopbackMode(ctx context.Context, in *SetLoopbackModeRequest, opts ...grpc.CallOption) (*SetLoopbackModeResponse, error) { - out := new(SetLoopbackModeResponse) - err := grpc.Invoke(ctx, "/gnoi.interface.Interface/SetLoopbackMode", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *interfaceClient) GetLoopbackMode(ctx context.Context, in *GetLoopbackModeRequest, opts ...grpc.CallOption) (*GetLoopbackModeResponse, error) { - out := new(GetLoopbackModeResponse) - err := grpc.Invoke(ctx, "/gnoi.interface.Interface/GetLoopbackMode", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *interfaceClient) ClearInterfaceCounters(ctx context.Context, in *ClearInterfaceCountersRequest, opts ...grpc.CallOption) (*ClearInterfaceCountersResponse, error) { - out := new(ClearInterfaceCountersResponse) - err := grpc.Invoke(ctx, "/gnoi.interface.Interface/ClearInterfaceCounters", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// Server API for Interface service - -type InterfaceServer interface { - // SetLoopbackMode is used to set the mode of loopback on a interface. - SetLoopbackMode(context.Context, *SetLoopbackModeRequest) (*SetLoopbackModeResponse, error) - // GetLoopbackMode is used to get the mode of loopback on a interface. - GetLoopbackMode(context.Context, *GetLoopbackModeRequest) (*GetLoopbackModeResponse, error) - // ClearInterfaceCounters will reset the counters for the provided interface. - ClearInterfaceCounters(context.Context, *ClearInterfaceCountersRequest) (*ClearInterfaceCountersResponse, error) -} - -func RegisterInterfaceServer(s *grpc.Server, srv InterfaceServer) { - s.RegisterService(&_Interface_serviceDesc, srv) -} - -func _Interface_SetLoopbackMode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SetLoopbackModeRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(InterfaceServer).SetLoopbackMode(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.interface.Interface/SetLoopbackMode", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(InterfaceServer).SetLoopbackMode(ctx, req.(*SetLoopbackModeRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Interface_GetLoopbackMode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetLoopbackModeRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(InterfaceServer).GetLoopbackMode(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.interface.Interface/GetLoopbackMode", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(InterfaceServer).GetLoopbackMode(ctx, req.(*GetLoopbackModeRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Interface_ClearInterfaceCounters_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ClearInterfaceCountersRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(InterfaceServer).ClearInterfaceCounters(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.interface.Interface/ClearInterfaceCounters", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(InterfaceServer).ClearInterfaceCounters(ctx, req.(*ClearInterfaceCountersRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _Interface_serviceDesc = grpc.ServiceDesc{ - ServiceName: "gnoi.interface.Interface", - HandlerType: (*InterfaceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "SetLoopbackMode", - Handler: _Interface_SetLoopbackMode_Handler, - }, - { - MethodName: "GetLoopbackMode", - Handler: _Interface_GetLoopbackMode_Handler, - }, - { - MethodName: "ClearInterfaceCounters", - Handler: _Interface_ClearInterfaceCounters_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "github.com/openconfig/gnoi/interface/interface.proto", -} - -func init() { - proto.RegisterFile("github.com/openconfig/gnoi/interface/interface.proto", fileDescriptor0) -} - -var fileDescriptor0 = []byte{ - // 294 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x92, 0xc1, 0x4a, 0xf3, 0x40, - 0x10, 0xc7, 0xbf, 0xf4, 0x13, 0xa1, 0x23, 0x28, 0xec, 0xa1, 0xad, 0x01, 0x25, 0xe4, 0xa0, 0xb9, - 0x74, 0x03, 0xd5, 0x27, 0xb0, 0x87, 0x50, 0x50, 0x90, 0x08, 0xde, 0x93, 0xcd, 0x24, 0x0d, 0xda, - 0x9d, 0x75, 0xb3, 0x39, 0xf4, 0x35, 0x7d, 0x22, 0x49, 0x62, 0x53, 0xad, 0x89, 0x2d, 0x78, 0x1b, - 0x32, 0xc3, 0xef, 0x37, 0xf9, 0xcf, 0xc2, 0x6d, 0x96, 0x9b, 0x65, 0x19, 0x73, 0x41, 0x2b, 0x9f, - 0x14, 0x4a, 0x41, 0x32, 0xcd, 0x33, 0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a, 0xb7, 0xcd, 0x0f, - 0x1d, 0xdf, 0xa8, 0xe3, 0xe3, 0xfa, 0xb9, 0xde, 0x7c, 0x04, 0x00, 0x00, 0xff, 0xff, 0xe9, 0x0e, - 0x8c, 0x8d, 0x2c, 0x03, 0x00, 0x00, -} diff --git a/layer2/layer2.pb.go b/layer2/layer2.pb.go deleted file mode 100644 index 4b2918a6..00000000 --- a/layer2/layer2.pb.go +++ /dev/null @@ -1,593 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: github.com/openconfig/gnoi/layer2/layer2.proto - -/* -Package gnoi_layer2 is a generated protocol buffer package. - -It is generated from these files: - github.com/openconfig/gnoi/layer2/layer2.proto - -It has these top-level messages: - ClearNeighborDiscoveryRequest - ClearNeighborDiscoveryResponse - ClearSpanningTreeRequest - ClearSpanningTreeResponse - PerformBERTRequest - PerformBERTResponse - ClearLLDPInterfaceRequest - ClearLLDPInterfaceResponse - SendWakeOnLANRequest - SendWakeOnLANResponse -*/ -package gnoi_layer2 - -import proto "github.com/golang/protobuf/proto" -import fmt "fmt" -import math "math" -import gnoi "github.com/openconfig/reference/rpc/gnoi" - -import ( - context "golang.org/x/net/context" - grpc "google.golang.org/grpc" -) - -// 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 - -type PerformBERTResponse_BERTState int32 - -const ( - PerformBERTResponse_UNKNOWN PerformBERTResponse_BERTState = 0 - PerformBERTResponse_DISABLED PerformBERTResponse_BERTState = 1 - PerformBERTResponse_RUNNING PerformBERTResponse_BERTState = 2 - PerformBERTResponse_COMPLETE PerformBERTResponse_BERTState = 3 - PerformBERTResponse_ERROR PerformBERTResponse_BERTState = 4 -) - -var PerformBERTResponse_BERTState_name = map[int32]string{ - 0: "UNKNOWN", - 1: "DISABLED", - 2: "RUNNING", - 3: "COMPLETE", - 4: "ERROR", -} -var PerformBERTResponse_BERTState_value = map[string]int32{ - "UNKNOWN": 0, - "DISABLED": 1, - "RUNNING": 2, - "COMPLETE": 3, - "ERROR": 4, -} - -func (x PerformBERTResponse_BERTState) String() string { - return proto.EnumName(PerformBERTResponse_BERTState_name, int32(x)) -} -func (PerformBERTResponse_BERTState) EnumDescriptor() ([]byte, []int) { - return fileDescriptor0, []int{5, 0} -} - -type ClearNeighborDiscoveryRequest struct { - Protocol gnoi.L3Protocol `protobuf:"varint,1,opt,name=protocol,enum=gnoi.L3Protocol" json:"protocol,omitempty"` - Address string `protobuf:"bytes,2,opt,name=address" json:"address,omitempty"` -} - -func (m *ClearNeighborDiscoveryRequest) Reset() { *m = ClearNeighborDiscoveryRequest{} } -func (m *ClearNeighborDiscoveryRequest) String() string { return proto.CompactTextString(m) } -func (*ClearNeighborDiscoveryRequest) ProtoMessage() {} -func (*ClearNeighborDiscoveryRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } - -func (m *ClearNeighborDiscoveryRequest) GetProtocol() gnoi.L3Protocol { - if m != nil { - return m.Protocol - } - return gnoi.L3Protocol_UNSPECIFIED -} - -func (m *ClearNeighborDiscoveryRequest) GetAddress() string { - if m != nil { - return m.Address - } - return "" -} - -type ClearNeighborDiscoveryResponse struct { -} - -func (m *ClearNeighborDiscoveryResponse) Reset() { *m = ClearNeighborDiscoveryResponse{} } -func (m *ClearNeighborDiscoveryResponse) String() string { return proto.CompactTextString(m) } -func (*ClearNeighborDiscoveryResponse) ProtoMessage() {} -func (*ClearNeighborDiscoveryResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } - -type ClearSpanningTreeRequest struct { - Interface *gnoi.Path `protobuf:"bytes,1,opt,name=interface" json:"interface,omitempty"` -} - -func (m *ClearSpanningTreeRequest) Reset() { *m = ClearSpanningTreeRequest{} } -func (m *ClearSpanningTreeRequest) String() string { return proto.CompactTextString(m) } -func (*ClearSpanningTreeRequest) ProtoMessage() {} -func (*ClearSpanningTreeRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} } - -func (m *ClearSpanningTreeRequest) GetInterface() *gnoi.Path { - if m != nil { - return m.Interface - } - return nil -} - -type ClearSpanningTreeResponse struct { -} - -func (m *ClearSpanningTreeResponse) Reset() { *m = ClearSpanningTreeResponse{} } -func (m *ClearSpanningTreeResponse) String() string { return proto.CompactTextString(m) } -func (*ClearSpanningTreeResponse) ProtoMessage() {} -func (*ClearSpanningTreeResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} } - -type PerformBERTRequest struct { - // ID for retrieving a previous BERT run data - optional. - Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` - Interface *gnoi.Path `protobuf:"bytes,2,opt,name=interface" json:"interface,omitempty"` -} - -func (m *PerformBERTRequest) Reset() { *m = PerformBERTRequest{} } -func (m *PerformBERTRequest) String() string { return proto.CompactTextString(m) } -func (*PerformBERTRequest) ProtoMessage() {} -func (*PerformBERTRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} } - -func (m *PerformBERTRequest) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *PerformBERTRequest) GetInterface() *gnoi.Path { - if m != nil { - return m.Interface - } - return nil -} - -type PerformBERTResponse struct { - Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` - State PerformBERTResponse_BERTState `protobuf:"varint,2,opt,name=state,enum=gnoi.layer2.PerformBERTResponse_BERTState" json:"state,omitempty"` - ElapsedPeriod int64 `protobuf:"varint,3,opt,name=elapsed_period,json=elapsedPeriod" json:"elapsed_period,omitempty"` - Pattern []byte `protobuf:"bytes,4,opt,name=pattern,proto3" json:"pattern,omitempty"` - Errors int64 `protobuf:"varint,5,opt,name=errors" json:"errors,omitempty"` - ReceivedBits int64 `protobuf:"varint,6,opt,name=received_bits,json=receivedBits" json:"received_bits,omitempty"` -} - -func (m *PerformBERTResponse) Reset() { *m = PerformBERTResponse{} } -func (m *PerformBERTResponse) String() string { return proto.CompactTextString(m) } -func (*PerformBERTResponse) ProtoMessage() {} -func (*PerformBERTResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} } - -func (m *PerformBERTResponse) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *PerformBERTResponse) GetState() PerformBERTResponse_BERTState { - if m != nil { - return m.State - } - return PerformBERTResponse_UNKNOWN -} - -func (m *PerformBERTResponse) GetElapsedPeriod() int64 { - if m != nil { - return m.ElapsedPeriod - } - return 0 -} - -func (m *PerformBERTResponse) GetPattern() []byte { - if m != nil { - return m.Pattern - } - return nil -} - -func (m *PerformBERTResponse) GetErrors() int64 { - if m != nil { - return m.Errors - } - return 0 -} - -func (m *PerformBERTResponse) GetReceivedBits() int64 { - if m != nil { - return m.ReceivedBits - } - return 0 -} - -type ClearLLDPInterfaceRequest struct { - Interface *gnoi.Path `protobuf:"bytes,1,opt,name=interface" json:"interface,omitempty"` -} - -func (m *ClearLLDPInterfaceRequest) Reset() { *m = ClearLLDPInterfaceRequest{} } -func (m *ClearLLDPInterfaceRequest) String() string { return proto.CompactTextString(m) } -func (*ClearLLDPInterfaceRequest) ProtoMessage() {} -func (*ClearLLDPInterfaceRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} } - -func (m *ClearLLDPInterfaceRequest) GetInterface() *gnoi.Path { - if m != nil { - return m.Interface - } - return nil -} - -type ClearLLDPInterfaceResponse struct { -} - -func (m *ClearLLDPInterfaceResponse) Reset() { *m = ClearLLDPInterfaceResponse{} } -func (m *ClearLLDPInterfaceResponse) String() string { return proto.CompactTextString(m) } -func (*ClearLLDPInterfaceResponse) ProtoMessage() {} -func (*ClearLLDPInterfaceResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} } - -type SendWakeOnLANRequest struct { - Interface *gnoi.Path `protobuf:"bytes,1,opt,name=interface" json:"interface,omitempty"` - Address string `protobuf:"bytes,2,opt,name=address" json:"address,omitempty"` - MacAddress []byte `protobuf:"bytes,3,opt,name=mac_address,json=macAddress,proto3" json:"mac_address,omitempty"` -} - -func (m *SendWakeOnLANRequest) Reset() { *m = SendWakeOnLANRequest{} } -func (m *SendWakeOnLANRequest) String() string { return proto.CompactTextString(m) } -func (*SendWakeOnLANRequest) ProtoMessage() {} -func (*SendWakeOnLANRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} } - -func (m *SendWakeOnLANRequest) GetInterface() *gnoi.Path { - if m != nil { - return m.Interface - } - return nil -} - -func (m *SendWakeOnLANRequest) GetAddress() string { - if m != nil { - return m.Address - } - return "" -} - -func (m *SendWakeOnLANRequest) GetMacAddress() []byte { - if m != nil { - return m.MacAddress - } - return nil -} - -type SendWakeOnLANResponse struct { -} - -func (m *SendWakeOnLANResponse) Reset() { *m = SendWakeOnLANResponse{} } -func (m *SendWakeOnLANResponse) String() string { return proto.CompactTextString(m) } -func (*SendWakeOnLANResponse) ProtoMessage() {} -func (*SendWakeOnLANResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{9} } - -func init() { - proto.RegisterType((*ClearNeighborDiscoveryRequest)(nil), "gnoi.layer2.ClearNeighborDiscoveryRequest") - proto.RegisterType((*ClearNeighborDiscoveryResponse)(nil), "gnoi.layer2.ClearNeighborDiscoveryResponse") - proto.RegisterType((*ClearSpanningTreeRequest)(nil), "gnoi.layer2.ClearSpanningTreeRequest") - proto.RegisterType((*ClearSpanningTreeResponse)(nil), "gnoi.layer2.ClearSpanningTreeResponse") - proto.RegisterType((*PerformBERTRequest)(nil), "gnoi.layer2.PerformBERTRequest") - proto.RegisterType((*PerformBERTResponse)(nil), "gnoi.layer2.PerformBERTResponse") - proto.RegisterType((*ClearLLDPInterfaceRequest)(nil), "gnoi.layer2.ClearLLDPInterfaceRequest") - proto.RegisterType((*ClearLLDPInterfaceResponse)(nil), "gnoi.layer2.ClearLLDPInterfaceResponse") - proto.RegisterType((*SendWakeOnLANRequest)(nil), "gnoi.layer2.SendWakeOnLANRequest") - proto.RegisterType((*SendWakeOnLANResponse)(nil), "gnoi.layer2.SendWakeOnLANResponse") - proto.RegisterEnum("gnoi.layer2.PerformBERTResponse_BERTState", PerformBERTResponse_BERTState_name, PerformBERTResponse_BERTState_value) -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// Client API for Layer2 service - -type Layer2Client interface { - // ClearNeighborDiscovery will clear either a specific neighbor entry or - // clear the entire table based on parameters provided. - // TODO: This method is subject to deprecation once OpenConfig models this - // state. - ClearNeighborDiscovery(ctx context.Context, in *ClearNeighborDiscoveryRequest, opts ...grpc.CallOption) (*ClearNeighborDiscoveryResponse, error) - // ClearSpanningTree will reset a blocked spanning tree interface. - // TODO: This method is subject to deprecation once OpenConfig models this - // state. - ClearSpanningTree(ctx context.Context, in *ClearSpanningTreeRequest, opts ...grpc.CallOption) (*ClearSpanningTreeResponse, error) - // PerformBERT will perform a BERT operation on a port. The stream will - // return the current state of the operation as well as the ID for the - // operation. - PerformBERT(ctx context.Context, in *PerformBERTRequest, opts ...grpc.CallOption) (Layer2_PerformBERTClient, error) - // ClearLLDPInterface will clear all LLDP adjacencies on the provided - // interface. - ClearLLDPInterface(ctx context.Context, in *ClearLLDPInterfaceRequest, opts ...grpc.CallOption) (*ClearLLDPInterfaceResponse, error) - // SendWakeOnLAN will send a WOL event on the requested interface. - SendWakeOnLAN(ctx context.Context, in *SendWakeOnLANRequest, opts ...grpc.CallOption) (*SendWakeOnLANResponse, error) -} - -type layer2Client struct { - cc *grpc.ClientConn -} - -func NewLayer2Client(cc *grpc.ClientConn) Layer2Client { - return &layer2Client{cc} -} - -func (c *layer2Client) ClearNeighborDiscovery(ctx context.Context, in *ClearNeighborDiscoveryRequest, opts ...grpc.CallOption) (*ClearNeighborDiscoveryResponse, error) { - out := new(ClearNeighborDiscoveryResponse) - err := grpc.Invoke(ctx, "/gnoi.layer2.Layer2/ClearNeighborDiscovery", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *layer2Client) ClearSpanningTree(ctx context.Context, in *ClearSpanningTreeRequest, opts ...grpc.CallOption) (*ClearSpanningTreeResponse, error) { - out := new(ClearSpanningTreeResponse) - err := grpc.Invoke(ctx, "/gnoi.layer2.Layer2/ClearSpanningTree", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *layer2Client) PerformBERT(ctx context.Context, in *PerformBERTRequest, opts ...grpc.CallOption) (Layer2_PerformBERTClient, error) { - stream, err := grpc.NewClientStream(ctx, &_Layer2_serviceDesc.Streams[0], c.cc, "/gnoi.layer2.Layer2/PerformBERT", opts...) - if err != nil { - return nil, err - } - x := &layer2PerformBERTClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type Layer2_PerformBERTClient interface { - Recv() (*PerformBERTResponse, error) - grpc.ClientStream -} - -type layer2PerformBERTClient struct { - grpc.ClientStream -} - -func (x *layer2PerformBERTClient) Recv() (*PerformBERTResponse, error) { - m := new(PerformBERTResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *layer2Client) ClearLLDPInterface(ctx context.Context, in *ClearLLDPInterfaceRequest, opts ...grpc.CallOption) (*ClearLLDPInterfaceResponse, error) { - out := new(ClearLLDPInterfaceResponse) - err := grpc.Invoke(ctx, "/gnoi.layer2.Layer2/ClearLLDPInterface", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *layer2Client) SendWakeOnLAN(ctx context.Context, in *SendWakeOnLANRequest, opts ...grpc.CallOption) (*SendWakeOnLANResponse, error) { - out := new(SendWakeOnLANResponse) - err := grpc.Invoke(ctx, "/gnoi.layer2.Layer2/SendWakeOnLAN", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// Server API for Layer2 service - -type Layer2Server interface { - // ClearNeighborDiscovery will clear either a specific neighbor entry or - // clear the entire table based on parameters provided. - // TODO: This method is subject to deprecation once OpenConfig models this - // state. - ClearNeighborDiscovery(context.Context, *ClearNeighborDiscoveryRequest) (*ClearNeighborDiscoveryResponse, error) - // ClearSpanningTree will reset a blocked spanning tree interface. - // TODO: This method is subject to deprecation once OpenConfig models this - // state. - ClearSpanningTree(context.Context, *ClearSpanningTreeRequest) (*ClearSpanningTreeResponse, error) - // PerformBERT will perform a BERT operation on a port. The stream will - // return the current state of the operation as well as the ID for the - // operation. - PerformBERT(*PerformBERTRequest, Layer2_PerformBERTServer) error - // ClearLLDPInterface will clear all LLDP adjacencies on the provided - // interface. - ClearLLDPInterface(context.Context, *ClearLLDPInterfaceRequest) (*ClearLLDPInterfaceResponse, error) - // SendWakeOnLAN will send a WOL event on the requested interface. - SendWakeOnLAN(context.Context, *SendWakeOnLANRequest) (*SendWakeOnLANResponse, error) -} - -func RegisterLayer2Server(s *grpc.Server, srv Layer2Server) { - s.RegisterService(&_Layer2_serviceDesc, srv) -} - -func _Layer2_ClearNeighborDiscovery_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ClearNeighborDiscoveryRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(Layer2Server).ClearNeighborDiscovery(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.layer2.Layer2/ClearNeighborDiscovery", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(Layer2Server).ClearNeighborDiscovery(ctx, req.(*ClearNeighborDiscoveryRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Layer2_ClearSpanningTree_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ClearSpanningTreeRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(Layer2Server).ClearSpanningTree(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.layer2.Layer2/ClearSpanningTree", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(Layer2Server).ClearSpanningTree(ctx, req.(*ClearSpanningTreeRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Layer2_PerformBERT_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(PerformBERTRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(Layer2Server).PerformBERT(m, &layer2PerformBERTServer{stream}) -} - -type Layer2_PerformBERTServer interface { - Send(*PerformBERTResponse) error - grpc.ServerStream -} - -type layer2PerformBERTServer struct { - grpc.ServerStream -} - -func (x *layer2PerformBERTServer) Send(m *PerformBERTResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _Layer2_ClearLLDPInterface_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ClearLLDPInterfaceRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(Layer2Server).ClearLLDPInterface(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.layer2.Layer2/ClearLLDPInterface", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(Layer2Server).ClearLLDPInterface(ctx, req.(*ClearLLDPInterfaceRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Layer2_SendWakeOnLAN_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SendWakeOnLANRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(Layer2Server).SendWakeOnLAN(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.layer2.Layer2/SendWakeOnLAN", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(Layer2Server).SendWakeOnLAN(ctx, req.(*SendWakeOnLANRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _Layer2_serviceDesc = grpc.ServiceDesc{ - ServiceName: "gnoi.layer2.Layer2", - HandlerType: (*Layer2Server)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "ClearNeighborDiscovery", - Handler: _Layer2_ClearNeighborDiscovery_Handler, - }, - { - MethodName: "ClearSpanningTree", - Handler: _Layer2_ClearSpanningTree_Handler, - }, - { - MethodName: "ClearLLDPInterface", - Handler: _Layer2_ClearLLDPInterface_Handler, - }, - { - MethodName: "SendWakeOnLAN", - Handler: _Layer2_SendWakeOnLAN_Handler, - }, - }, - Streams: []grpc.StreamDesc{ - { - StreamName: "PerformBERT", - Handler: _Layer2_PerformBERT_Handler, - ServerStreams: true, - }, - }, - Metadata: "github.com/openconfig/gnoi/layer2/layer2.proto", -} - -func init() { proto.RegisterFile("github.com/openconfig/gnoi/layer2/layer2.proto", fileDescriptor0) } - -var fileDescriptor0 = []byte{ - // 609 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x94, 0x6b, 0x6f, 0x12, 0x4d, - 0x14, 0xc7, 0xbb, 0xd0, 0xd2, 0x72, 0x68, 0x09, 0xcf, 0x3c, 0x5a, 0x57, 0xbc, 0x14, 0xd7, 0x54, - 0x89, 0x9a, 0xc5, 0x50, 0x3f, 0x80, 0x6d, 0x21, 0xa6, 0x71, 0x5d, 0xc8, 0x40, 0x53, 0xdf, 0x35, - 0xcb, 0xee, 0x61, 0x3b, 0x11, 0x66, 0xd6, 0x99, 0x69, 0x93, 0xc6, 0x8f, 0xe5, 0xd7, 0xf3, 0x85, - 0x61, 0x2f, 0x58, 0x64, 0x5b, 0xec, 0xab, 0xcd, 0x9c, 0xcb, 0xef, 0x7f, 0x72, 0x2e, 0x0b, 0x76, - 0xc8, 0xf4, 0xc5, 0xe5, 0xc8, 0xf6, 0xc5, 0xb4, 0x25, 0x22, 0xe4, 0xbe, 0xe0, 0x63, 0x16, 0xb6, - 0x42, 0x2e, 0x58, 0x6b, 0xe2, 0x5d, 0xa3, 0x6c, 0xa7, 0x1f, 0x3b, 0x92, 0x42, 0x0b, 0x52, 0x99, - 0x79, 0xec, 0xc4, 0x54, 0xff, 0x90, 0x9f, 0x2c, 0x71, 0x8c, 0x12, 0xb9, 0x8f, 0x2d, 0x19, 0xf9, - 0x09, 0x4a, 0x5f, 0x47, 0xa8, 0x12, 0x84, 0x15, 0xc2, 0xb3, 0xe3, 0x09, 0x7a, 0xd2, 0x45, 0x16, - 0x5e, 0x8c, 0x84, 0xec, 0x30, 0xe5, 0x8b, 0x2b, 0x94, 0xd7, 0x14, 0xbf, 0x5f, 0xa2, 0xd2, 0xe4, - 0x1d, 0x6c, 0xc5, 0x91, 0xbe, 0x98, 0x98, 0x46, 0xc3, 0x68, 0x56, 0xdb, 0x35, 0x3b, 0x96, 0x75, - 0x0e, 0xfa, 0xa9, 0x9d, 0xce, 0x23, 0x88, 0x09, 0x9b, 0x5e, 0x10, 0x48, 0x54, 0xca, 0x2c, 0x34, - 0x8c, 0x66, 0x99, 0x66, 0x4f, 0xab, 0x01, 0xcf, 0x6f, 0x13, 0x52, 0x91, 0xe0, 0x0a, 0xad, 0x0e, - 0x98, 0x71, 0xc4, 0x20, 0xf2, 0x38, 0x67, 0x3c, 0x1c, 0x4a, 0xc4, 0xac, 0x8a, 0x26, 0x94, 0x19, - 0xd7, 0x28, 0xc7, 0x9e, 0x8f, 0x71, 0x19, 0x95, 0x36, 0x24, 0x65, 0xf4, 0x3d, 0x7d, 0x41, 0xff, - 0x38, 0xad, 0x27, 0xf0, 0x38, 0x87, 0x92, 0x4a, 0xb8, 0x40, 0xfa, 0x28, 0xc7, 0x42, 0x4e, 0x8f, - 0xba, 0x74, 0x98, 0xc1, 0xab, 0x50, 0x60, 0x41, 0x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e9, 0xa7, - 0x50, 0xcf, 0xc3, 0xa4, 0xa3, 0xfe, 0x01, 0x0f, 0x06, 0xc8, 0x83, 0x33, 0xef, 0x1b, 0xf6, 0xb8, - 0x73, 0xe8, 0xde, 0x9b, 0x7f, 0xfb, 0x2e, 0x93, 0x3d, 0xa8, 0x4c, 0x3d, 0xff, 0x3c, 0xf3, 0x16, - 0xe3, 0x4e, 0xc3, 0xd4, 0xf3, 0x0f, 0xd3, 0x65, 0x7f, 0x04, 0x0f, 0xff, 0x12, 0x4f, 0xaa, 0x6a, - 0xff, 0x2a, 0x42, 0xc9, 0x89, 0xc7, 0x4e, 0x14, 0xec, 0xe6, 0x1f, 0x04, 0x59, 0x5c, 0x8f, 0x3b, - 0xcf, 0xb3, 0xfe, 0xf6, 0x9f, 0x62, 0xd3, 0x9e, 0xac, 0x91, 0x00, 0xfe, 0x5b, 0xba, 0x0e, 0xb2, - 0xbf, 0xcc, 0xc8, 0xb9, 0xc1, 0xfa, 0xab, 0x55, 0x61, 0x73, 0x95, 0x21, 0x54, 0x6e, 0x2c, 0x35, - 0xd9, 0xbb, 0x7d, 0xdd, 0x13, 0x72, 0x63, 0xd5, 0x3d, 0x58, 0x6b, 0xef, 0x0d, 0x12, 0x02, 0x59, - 0x9e, 0x37, 0xc9, 0xa9, 0x2a, 0x6f, 0xaf, 0xea, 0xaf, 0x57, 0xc6, 0xcd, 0xcb, 0xff, 0x0a, 0x3b, - 0x0b, 0xd3, 0x23, 0x2f, 0x16, 0x72, 0xf3, 0xd6, 0xaa, 0x6e, 0xdd, 0x15, 0x92, 0x91, 0x47, 0xa5, - 0xf8, 0x47, 0x79, 0xf0, 0x3b, 0x00, 0x00, 0xff, 0xff, 0xa5, 0xac, 0xd7, 0xcd, 0xe9, 0x05, 0x00, - 0x00, -} diff --git a/mpls/mpls.pb.go b/mpls/mpls.pb.go deleted file mode 100644 index 7f54b021..00000000 --- a/mpls/mpls.pb.go +++ /dev/null @@ -1,772 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: github.com/openconfig/gnoi/mpls/mpls.proto - -/* -Package gnoi_mpls is a generated protocol buffer package. - -It is generated from these files: - github.com/openconfig/gnoi/mpls/mpls.proto - -It has these top-level messages: - ClearLSPRequest - ClearLSPResponse - ClearLSPCountersRequest - ClearLSPCountersResponse - MPLSPingPWEDestination - MPLSPingRSVPTEDestination - MPLSPingRequest - MPLSPingResponse -*/ -package gnoi_mpls - -import proto "github.com/golang/protobuf/proto" -import fmt "fmt" -import math "math" - -import ( - context "golang.org/x/net/context" - grpc "google.golang.org/grpc" -) - -// 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 - -type ClearLSPRequest_Mode int32 - -const ( - ClearLSPRequest_DEFAULT ClearLSPRequest_Mode = 0 - // Reoptimize the LSP using the current bandwidth. - ClearLSPRequest_NONAGGRESSIVE ClearLSPRequest_Mode = 0 - // Reoptimize the LSP using the current bandwidth. Only use IGP metric in - // calcuation. - ClearLSPRequest_AGGRESSIVE ClearLSPRequest_Mode = 1 - // Reset and restart all LSPs that originated from this routing device. - ClearLSPRequest_RESET ClearLSPRequest_Mode = 2 - // Apply the highest bandwidth collected on a tunnel without waiting for - // the current application period to end. Only use IGP metric in - // calcuation. - ClearLSPRequest_AUTOBW_AGGRESSIVE ClearLSPRequest_Mode = 3 - // Apply the highest bandwidth collected on a tunnel without waiting for - // the current application period to end. - ClearLSPRequest_AUTOBW_NONAGGRESSIVE ClearLSPRequest_Mode = 4 -) - -var ClearLSPRequest_Mode_name = map[int32]string{ - 0: "DEFAULT", - // Duplicate value: 0: "NONAGGRESSIVE", - 1: "AGGRESSIVE", - 2: "RESET", - 3: "AUTOBW_AGGRESSIVE", - 4: "AUTOBW_NONAGGRESSIVE", -} -var ClearLSPRequest_Mode_value = map[string]int32{ - "DEFAULT": 0, - "NONAGGRESSIVE": 0, - "AGGRESSIVE": 1, - "RESET": 2, - "AUTOBW_AGGRESSIVE": 3, - "AUTOBW_NONAGGRESSIVE": 4, -} - -func (x ClearLSPRequest_Mode) String() string { - return proto.EnumName(ClearLSPRequest_Mode_name, int32(x)) -} -func (ClearLSPRequest_Mode) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0, 0} } - -type MPLSPingRequest_ReplyMode int32 - -const ( - MPLSPingRequest_IPV4 MPLSPingRequest_ReplyMode = 0 - MPLSPingRequest_ROUTER_ALERT MPLSPingRequest_ReplyMode = 1 -) - -var MPLSPingRequest_ReplyMode_name = map[int32]string{ - 0: "IPV4", - 1: "ROUTER_ALERT", -} -var MPLSPingRequest_ReplyMode_value = map[string]int32{ - "IPV4": 0, - "ROUTER_ALERT": 1, -} - -func (x MPLSPingRequest_ReplyMode) String() string { - return proto.EnumName(MPLSPingRequest_ReplyMode_name, int32(x)) -} -func (MPLSPingRequest_ReplyMode) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{6, 0} } - -type MPLSPingResponse_EchoResponseCode int32 - -const ( - // A successful echo response was received. - MPLSPingResponse_SUCCESS MPLSPingResponse_EchoResponseCode = 0 - // The MPLS ping packet was not sent, for an unknown reason. - MPLSPingResponse_NOT_SENT MPLSPingResponse_EchoResponseCode = 1 - // The local system timed out waiting for an LSP ping response. - MPLSPingResponse_TIMEOUT MPLSPingResponse_EchoResponseCode = 2 -) - -var MPLSPingResponse_EchoResponseCode_name = map[int32]string{ - 0: "SUCCESS", - 1: "NOT_SENT", - 2: "TIMEOUT", -} -var MPLSPingResponse_EchoResponseCode_value = map[string]int32{ - "SUCCESS": 0, - "NOT_SENT": 1, - "TIMEOUT": 2, -} - -func (x MPLSPingResponse_EchoResponseCode) String() string { - return proto.EnumName(MPLSPingResponse_EchoResponseCode_name, int32(x)) -} -func (MPLSPingResponse_EchoResponseCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor0, []int{7, 0} -} - -// Request to clear a single tunnel on a target device. -type ClearLSPRequest struct { - Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` - Mode ClearLSPRequest_Mode `protobuf:"varint,3,opt,name=mode,enum=gnoi.mpls.ClearLSPRequest_Mode" json:"mode,omitempty"` -} - -func (m *ClearLSPRequest) Reset() { *m = ClearLSPRequest{} } -func (m *ClearLSPRequest) String() string { return proto.CompactTextString(m) } -func (*ClearLSPRequest) ProtoMessage() {} -func (*ClearLSPRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } - -func (m *ClearLSPRequest) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -func (m *ClearLSPRequest) GetMode() ClearLSPRequest_Mode { - if m != nil { - return m.Mode - } - return ClearLSPRequest_DEFAULT -} - -type ClearLSPResponse struct { -} - -func (m *ClearLSPResponse) Reset() { *m = ClearLSPResponse{} } -func (m *ClearLSPResponse) String() string { return proto.CompactTextString(m) } -func (*ClearLSPResponse) ProtoMessage() {} -func (*ClearLSPResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } - -// Request to clear a single tunnel counters on a target device. -type ClearLSPCountersRequest struct { - Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` -} - -func (m *ClearLSPCountersRequest) Reset() { *m = ClearLSPCountersRequest{} } -func (m *ClearLSPCountersRequest) String() string { return proto.CompactTextString(m) } -func (*ClearLSPCountersRequest) ProtoMessage() {} -func (*ClearLSPCountersRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} } - -func (m *ClearLSPCountersRequest) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -type ClearLSPCountersResponse struct { -} - -func (m *ClearLSPCountersResponse) Reset() { *m = ClearLSPCountersResponse{} } -func (m *ClearLSPCountersResponse) String() string { return proto.CompactTextString(m) } -func (*ClearLSPCountersResponse) ProtoMessage() {} -func (*ClearLSPCountersResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} } - -type MPLSPingPWEDestination struct { - // The address of the egress LER that the MPLS ping should be sent on when - // destined to a PWE service. - Eler string `protobuf:"bytes,1,opt,name=eler" json:"eler,omitempty"` - // The virtual circuit ID for the PWE via which the ping should be sent. - Vcid uint32 `protobuf:"varint,2,opt,name=vcid" json:"vcid,omitempty"` -} - -func (m *MPLSPingPWEDestination) Reset() { *m = MPLSPingPWEDestination{} } -func (m *MPLSPingPWEDestination) String() string { return proto.CompactTextString(m) } -func (*MPLSPingPWEDestination) ProtoMessage() {} -func (*MPLSPingPWEDestination) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} } - -func (m *MPLSPingPWEDestination) GetEler() string { - if m != nil { - return m.Eler - } - return "" -} - -func (m *MPLSPingPWEDestination) GetVcid() uint32 { - if m != nil { - return m.Vcid - } - return 0 -} - -// MPLSPingRSVPTEDestination specifies the destination for an MPLS Ping in -// terms of an absolute specification of an RSVP-TE LSP. It can be used to -// identify an individual RSVP-TE session via which a ping should be sent. -type MPLSPingRSVPTEDestination struct { - // The IPv4 or IPv6 address used by the system initiating (acting as the - // head-end) of the RSVP-TE LSP. - Src string `protobuf:"bytes,1,opt,name=src" json:"src,omitempty"` - // The IPv4 or IPv6 address used by the system terminating (acting as the - // tail-end) of the RSVP-TE LSP. - Dst string `protobuf:"bytes,2,opt,name=dst" json:"dst,omitempty"` - // The extended tunnel ID of the RSVP-TE LSP, expressed as an unsigned, 32b - // integer. - ExtendedTunnelId uint32 `protobuf:"varint,3,opt,name=extended_tunnel_id,json=extendedTunnelId" json:"extended_tunnel_id,omitempty"` -} - -func (m *MPLSPingRSVPTEDestination) Reset() { *m = MPLSPingRSVPTEDestination{} } -func (m *MPLSPingRSVPTEDestination) String() string { return proto.CompactTextString(m) } -func (*MPLSPingRSVPTEDestination) ProtoMessage() {} -func (*MPLSPingRSVPTEDestination) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} } - -func (m *MPLSPingRSVPTEDestination) GetSrc() string { - if m != nil { - return m.Src - } - return "" -} - -func (m *MPLSPingRSVPTEDestination) GetDst() string { - if m != nil { - return m.Dst - } - return "" -} - -func (m *MPLSPingRSVPTEDestination) GetExtendedTunnelId() uint32 { - if m != nil { - return m.ExtendedTunnelId - } - return 0 -} - -// MPLSPingRequest specifies the parameters that should be used as input from -// the client, to a system that is initiating an RFC4379 MPLS ping request. -type MPLSPingRequest struct { - // One field within the destination field should be specified to determine - // the destination of the LSP ping. - // - // Types that are valid to be assigned to Destination: - // *MPLSPingRequest_LdpFec - // *MPLSPingRequest_Fec129Pwe - // *MPLSPingRequest_RsvpteLspName - // *MPLSPingRequest_RsvpteLsp - Destination isMPLSPingRequest_Destination `protobuf_oneof:"destination"` - ReplyMode MPLSPingRequest_ReplyMode `protobuf:"varint,6,opt,name=reply_mode,json=replyMode,enum=gnoi.mpls.MPLSPingRequest_ReplyMode" json:"reply_mode,omitempty"` - // The number of MPLS echo request packets to send. - Count uint32 `protobuf:"varint,7,opt,name=count" json:"count,omitempty"` - // The size (in bytes) of each MPLS echo request packet. - Size uint32 `protobuf:"varint,8,opt,name=size" json:"size,omitempty"` - // The source IPv4 address that should be used in the request packet. - SourceAddress string `protobuf:"bytes,9,opt,name=source_address,json=sourceAddress" json:"source_address,omitempty"` - // The MPLS TTL that should be set in the packets sent. - MplsTtl uint32 `protobuf:"varint,10,opt,name=mpls_ttl,json=mplsTtl" json:"mpls_ttl,omitempty"` - // The value of the traffic class (TC, formerly known as EXP) bits that - // should be set in the MPLS ping packets. - TrafficClass uint32 `protobuf:"varint,11,opt,name=traffic_class,json=trafficClass" json:"traffic_class,omitempty"` -} - -func (m *MPLSPingRequest) Reset() { *m = MPLSPingRequest{} } -func (m *MPLSPingRequest) String() string { return proto.CompactTextString(m) } -func (*MPLSPingRequest) ProtoMessage() {} -func (*MPLSPingRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} } - -type isMPLSPingRequest_Destination interface { - isMPLSPingRequest_Destination() -} - -type MPLSPingRequest_LdpFec struct { - LdpFec string `protobuf:"bytes,1,opt,name=ldp_fec,json=ldpFec,oneof"` -} -type MPLSPingRequest_Fec129Pwe struct { - Fec129Pwe *MPLSPingPWEDestination `protobuf:"bytes,2,opt,name=fec129_pwe,json=fec129Pwe,oneof"` -} -type MPLSPingRequest_RsvpteLspName struct { - RsvpteLspName string `protobuf:"bytes,4,opt,name=rsvpte_lsp_name,json=rsvpteLspName,oneof"` -} -type MPLSPingRequest_RsvpteLsp struct { - RsvpteLsp *MPLSPingRSVPTEDestination `protobuf:"bytes,5,opt,name=rsvpte_lsp,json=rsvpteLsp,oneof"` -} - -func (*MPLSPingRequest_LdpFec) isMPLSPingRequest_Destination() {} -func (*MPLSPingRequest_Fec129Pwe) isMPLSPingRequest_Destination() {} -func (*MPLSPingRequest_RsvpteLspName) isMPLSPingRequest_Destination() {} -func (*MPLSPingRequest_RsvpteLsp) isMPLSPingRequest_Destination() {} - -func (m *MPLSPingRequest) GetDestination() isMPLSPingRequest_Destination { - if m != nil { - return m.Destination - } - return nil -} - -func (m *MPLSPingRequest) GetLdpFec() string { - if x, ok := m.GetDestination().(*MPLSPingRequest_LdpFec); ok { - return x.LdpFec - } - return "" -} - -func (m *MPLSPingRequest) GetFec129Pwe() *MPLSPingPWEDestination { - if x, ok := m.GetDestination().(*MPLSPingRequest_Fec129Pwe); ok { - return x.Fec129Pwe - } - return nil -} - -func (m *MPLSPingRequest) GetRsvpteLspName() string { - if x, ok := m.GetDestination().(*MPLSPingRequest_RsvpteLspName); ok { - return x.RsvpteLspName - } - return "" -} - -func (m *MPLSPingRequest) GetRsvpteLsp() *MPLSPingRSVPTEDestination { - if x, ok := m.GetDestination().(*MPLSPingRequest_RsvpteLsp); ok { - return x.RsvpteLsp - } - return nil -} - -func (m *MPLSPingRequest) GetReplyMode() MPLSPingRequest_ReplyMode { - if m != nil { - return m.ReplyMode - } - return MPLSPingRequest_IPV4 -} - -func (m *MPLSPingRequest) GetCount() uint32 { - if m != nil { - return m.Count - } - return 0 -} - -func (m *MPLSPingRequest) GetSize() uint32 { - if m != nil { - return m.Size - } - return 0 -} - -func (m *MPLSPingRequest) GetSourceAddress() string { - if m != nil { - return m.SourceAddress - } - return "" -} - -func (m *MPLSPingRequest) GetMplsTtl() uint32 { - if m != nil { - return m.MplsTtl - } - return 0 -} - -func (m *MPLSPingRequest) GetTrafficClass() uint32 { - if m != nil { - return m.TrafficClass - } - return 0 -} - -// XXX_OneofFuncs is for the internal use of the proto package. -func (*MPLSPingRequest) 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 _MPLSPingRequest_OneofMarshaler, _MPLSPingRequest_OneofUnmarshaler, _MPLSPingRequest_OneofSizer, []interface{}{ - (*MPLSPingRequest_LdpFec)(nil), - (*MPLSPingRequest_Fec129Pwe)(nil), - (*MPLSPingRequest_RsvpteLspName)(nil), - (*MPLSPingRequest_RsvpteLsp)(nil), - } -} - -func _MPLSPingRequest_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { - m := msg.(*MPLSPingRequest) - // destination - switch x := m.Destination.(type) { - case *MPLSPingRequest_LdpFec: - b.EncodeVarint(1<<3 | proto.WireBytes) - b.EncodeStringBytes(x.LdpFec) - case *MPLSPingRequest_Fec129Pwe: - b.EncodeVarint(2<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.Fec129Pwe); err != nil { - return err - } - case *MPLSPingRequest_RsvpteLspName: - b.EncodeVarint(4<<3 | proto.WireBytes) - b.EncodeStringBytes(x.RsvpteLspName) - case *MPLSPingRequest_RsvpteLsp: - b.EncodeVarint(5<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.RsvpteLsp); err != nil { - return err - } - case nil: - default: - return fmt.Errorf("MPLSPingRequest.Destination has unexpected type %T", x) - } - return nil -} - -func _MPLSPingRequest_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { - m := msg.(*MPLSPingRequest) - switch tag { - case 1: // destination.ldp_fec - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - x, err := b.DecodeStringBytes() - m.Destination = &MPLSPingRequest_LdpFec{x} - return true, err - case 2: // destination.fec129_pwe - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(MPLSPingPWEDestination) - err := b.DecodeMessage(msg) - m.Destination = &MPLSPingRequest_Fec129Pwe{msg} - return true, err - case 4: // destination.rsvpte_lsp_name - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - x, err := b.DecodeStringBytes() - m.Destination = &MPLSPingRequest_RsvpteLspName{x} - return true, err - case 5: // destination.rsvpte_lsp - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(MPLSPingRSVPTEDestination) - err := b.DecodeMessage(msg) - m.Destination = &MPLSPingRequest_RsvpteLsp{msg} - return true, err - default: - return false, nil - } -} - -func _MPLSPingRequest_OneofSizer(msg proto.Message) (n int) { - m := msg.(*MPLSPingRequest) - // destination - switch x := m.Destination.(type) { - case *MPLSPingRequest_LdpFec: - n += proto.SizeVarint(1<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(len(x.LdpFec))) - n += len(x.LdpFec) - case *MPLSPingRequest_Fec129Pwe: - s := proto.Size(x.Fec129Pwe) - n += proto.SizeVarint(2<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(s)) - n += s - case *MPLSPingRequest_RsvpteLspName: - n += proto.SizeVarint(4<<3 | proto.WireBytes) - n += proto.SizeVarint(uint64(len(x.RsvpteLspName))) - n += len(x.RsvpteLspName) - case *MPLSPingRequest_RsvpteLsp: - s := proto.Size(x.RsvpteLsp) - n += proto.SizeVarint(5<<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 -} - -// MPLSPingResponse (MPLSPong?) is sent from the target to the client based on -// each MPLS Echo Response packet it receives associated with an input MPLSPing -// RPC. -type MPLSPingResponse struct { - Seq uint32 `protobuf:"varint,1,opt,name=seq" json:"seq,omitempty"` - // The response that was received from the egress LER. - Response MPLSPingResponse_EchoResponseCode `protobuf:"varint,2,opt,name=response,enum=gnoi.mpls.MPLSPingResponse_EchoResponseCode" json:"response,omitempty"` - // The time (in nanoseconds) between transmission of the Echo Response, - // and the echo reply. - ResponseTime uint64 `protobuf:"varint,3,opt,name=response_time,json=responseTime" json:"response_time,omitempty"` -} - -func (m *MPLSPingResponse) Reset() { *m = MPLSPingResponse{} } -func (m *MPLSPingResponse) String() string { return proto.CompactTextString(m) } -func (*MPLSPingResponse) ProtoMessage() {} -func (*MPLSPingResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} } - -func (m *MPLSPingResponse) GetSeq() uint32 { - if m != nil { - return m.Seq - } - return 0 -} - -func (m *MPLSPingResponse) GetResponse() MPLSPingResponse_EchoResponseCode { - if m != nil { - return m.Response - } - return MPLSPingResponse_SUCCESS -} - -func (m *MPLSPingResponse) GetResponseTime() uint64 { - if m != nil { - return m.ResponseTime - } - return 0 -} - -func init() { - proto.RegisterType((*ClearLSPRequest)(nil), "gnoi.mpls.ClearLSPRequest") - proto.RegisterType((*ClearLSPResponse)(nil), "gnoi.mpls.ClearLSPResponse") - proto.RegisterType((*ClearLSPCountersRequest)(nil), "gnoi.mpls.ClearLSPCountersRequest") - proto.RegisterType((*ClearLSPCountersResponse)(nil), "gnoi.mpls.ClearLSPCountersResponse") - proto.RegisterType((*MPLSPingPWEDestination)(nil), "gnoi.mpls.MPLSPingPWEDestination") - proto.RegisterType((*MPLSPingRSVPTEDestination)(nil), "gnoi.mpls.MPLSPingRSVPTEDestination") - proto.RegisterType((*MPLSPingRequest)(nil), "gnoi.mpls.MPLSPingRequest") - proto.RegisterType((*MPLSPingResponse)(nil), "gnoi.mpls.MPLSPingResponse") - proto.RegisterEnum("gnoi.mpls.ClearLSPRequest_Mode", ClearLSPRequest_Mode_name, ClearLSPRequest_Mode_value) - proto.RegisterEnum("gnoi.mpls.MPLSPingRequest_ReplyMode", MPLSPingRequest_ReplyMode_name, MPLSPingRequest_ReplyMode_value) - proto.RegisterEnum("gnoi.mpls.MPLSPingResponse_EchoResponseCode", MPLSPingResponse_EchoResponseCode_name, MPLSPingResponse_EchoResponseCode_value) -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// Client API for MPLS service - -type MPLSClient interface { - // ClearLSP clears a single tunnel (requests for it's route to be - // recalculated). - ClearLSP(ctx context.Context, in *ClearLSPRequest, opts ...grpc.CallOption) (*ClearLSPResponse, error) - // ClearLSPCounters will clear the MPLS counters for the provided LSP. - ClearLSPCounters(ctx context.Context, in *ClearLSPCountersRequest, opts ...grpc.CallOption) (*ClearLSPCountersResponse, error) - // An MPLS ping, specified as per RFC4379. - MPLSPing(ctx context.Context, in *MPLSPingRequest, opts ...grpc.CallOption) (MPLS_MPLSPingClient, error) -} - -type mPLSClient struct { - cc *grpc.ClientConn -} - -func NewMPLSClient(cc *grpc.ClientConn) MPLSClient { - return &mPLSClient{cc} -} - -func (c *mPLSClient) ClearLSP(ctx context.Context, in *ClearLSPRequest, opts ...grpc.CallOption) (*ClearLSPResponse, error) { - out := new(ClearLSPResponse) - err := grpc.Invoke(ctx, "/gnoi.mpls.MPLS/ClearLSP", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *mPLSClient) ClearLSPCounters(ctx context.Context, in *ClearLSPCountersRequest, opts ...grpc.CallOption) (*ClearLSPCountersResponse, error) { - out := new(ClearLSPCountersResponse) - err := grpc.Invoke(ctx, "/gnoi.mpls.MPLS/ClearLSPCounters", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *mPLSClient) MPLSPing(ctx context.Context, in *MPLSPingRequest, opts ...grpc.CallOption) (MPLS_MPLSPingClient, error) { - stream, err := grpc.NewClientStream(ctx, &_MPLS_serviceDesc.Streams[0], c.cc, "/gnoi.mpls.MPLS/MPLSPing", opts...) - if err != nil { - return nil, err - } - x := &mPLSMPLSPingClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type MPLS_MPLSPingClient interface { - Recv() (*MPLSPingResponse, error) - grpc.ClientStream -} - -type mPLSMPLSPingClient struct { - grpc.ClientStream -} - -func (x *mPLSMPLSPingClient) Recv() (*MPLSPingResponse, error) { - m := new(MPLSPingResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -// Server API for MPLS service - -type MPLSServer interface { - // ClearLSP clears a single tunnel (requests for it's route to be - // recalculated). - ClearLSP(context.Context, *ClearLSPRequest) (*ClearLSPResponse, error) - // ClearLSPCounters will clear the MPLS counters for the provided LSP. - ClearLSPCounters(context.Context, *ClearLSPCountersRequest) (*ClearLSPCountersResponse, error) - // An MPLS ping, specified as per RFC4379. - MPLSPing(*MPLSPingRequest, MPLS_MPLSPingServer) error -} - -func RegisterMPLSServer(s *grpc.Server, srv MPLSServer) { - s.RegisterService(&_MPLS_serviceDesc, srv) -} - -func _MPLS_ClearLSP_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ClearLSPRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MPLSServer).ClearLSP(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.mpls.MPLS/ClearLSP", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MPLSServer).ClearLSP(ctx, req.(*ClearLSPRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _MPLS_ClearLSPCounters_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ClearLSPCountersRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MPLSServer).ClearLSPCounters(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.mpls.MPLS/ClearLSPCounters", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MPLSServer).ClearLSPCounters(ctx, req.(*ClearLSPCountersRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _MPLS_MPLSPing_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(MPLSPingRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(MPLSServer).MPLSPing(m, &mPLSMPLSPingServer{stream}) -} - -type MPLS_MPLSPingServer interface { - Send(*MPLSPingResponse) error - grpc.ServerStream -} - -type mPLSMPLSPingServer struct { - grpc.ServerStream -} - -func (x *mPLSMPLSPingServer) Send(m *MPLSPingResponse) error { - return x.ServerStream.SendMsg(m) -} - -var _MPLS_serviceDesc = grpc.ServiceDesc{ - ServiceName: "gnoi.mpls.MPLS", - HandlerType: (*MPLSServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "ClearLSP", - Handler: _MPLS_ClearLSP_Handler, - }, - { - MethodName: "ClearLSPCounters", - Handler: _MPLS_ClearLSPCounters_Handler, - }, - }, - Streams: []grpc.StreamDesc{ - { - StreamName: "MPLSPing", - Handler: _MPLS_MPLSPing_Handler, - ServerStreams: true, - }, - }, - Metadata: "github.com/openconfig/gnoi/mpls/mpls.proto", -} - -func init() { proto.RegisterFile("github.com/openconfig/gnoi/mpls/mpls.proto", fileDescriptor0) } - -var fileDescriptor0 = []byte{ - // 758 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x54, 0x4f, 0x6f, 0xe2, 0x46, - 0x14, 0xb7, 0xc1, 0x09, 0xf0, 0xc0, 0xc4, 0x19, 0xa5, 0xad, 0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ff, 0xca, 0x1a, - 0xfe, 0xcf, 0xe0, 0x05, 0x00, 0x00, -} diff --git a/system/system.pb.go b/system/system.pb.go deleted file mode 100644 index dc7e3d7f..00000000 --- a/system/system.pb.go +++ /dev/null @@ -1,1419 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: github.com/openconfig/gnoi/system/system.proto - -/* -Package gnoi_system is a generated protocol buffer package. - -It is generated from these files: - github.com/openconfig/gnoi/system/system.proto - -It has these top-level messages: - SwitchControlProcessorRequest - SwitchControlProcessorResponse - RebootRequest - RebootResponse - CancelRebootRequest - CancelRebootResponse - RebootStatusRequest - RebootStatusResponse - TimeRequest - TimeResponse - PingRequest - PingResponse - TracerouteRequest - TracerouteResponse - Package - SetPackageRequest - SetPackageResponse -*/ -package gnoi_system - -import proto "github.com/golang/protobuf/proto" -import fmt "fmt" -import math "math" -import gnoi "github.com/openconfig/reference/rpc/gnoi" - -import ( - context "golang.org/x/net/context" - grpc "google.golang.org/grpc" -) - -// 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 - -// A RebootMethod determines what should be done with a target when a Reboot is -// requested. Only the COLD method is required to be supported by all -// targets. Methods the target does not support should result in failure. -// -// It is vendor defined if a WARM reboot is the same as an NSF reboot. -type RebootMethod int32 - -const ( - RebootMethod_UNKNOWN RebootMethod = 0 - RebootMethod_COLD RebootMethod = 1 - RebootMethod_POWERDOWN RebootMethod = 2 - RebootMethod_HALT RebootMethod = 3 - RebootMethod_WARM RebootMethod = 4 - RebootMethod_NSF RebootMethod = 5 - RebootMethod_RESET RebootMethod = 6 - RebootMethod_POWERUP RebootMethod = 7 -) - -var RebootMethod_name = map[int32]string{ - 0: "UNKNOWN", - 1: "COLD", - 2: "POWERDOWN", - 3: "HALT", - 4: "WARM", - 5: "NSF", - 6: "RESET", - 7: "POWERUP", -} -var RebootMethod_value = map[string]int32{ - "UNKNOWN": 0, - "COLD": 1, - "POWERDOWN": 2, - "HALT": 3, - "WARM": 4, - "NSF": 5, - "RESET": 6, - "POWERUP": 7, -} - -func (x RebootMethod) String() string { - return proto.EnumName(RebootMethod_name, int32(x)) -} -func (RebootMethod) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } - -type TracerouteRequest_L4Protocol int32 - -const ( - TracerouteRequest_ICMP TracerouteRequest_L4Protocol = 0 - TracerouteRequest_TCP TracerouteRequest_L4Protocol = 1 - TracerouteRequest_UDP TracerouteRequest_L4Protocol = 2 -) - -var TracerouteRequest_L4Protocol_name = map[int32]string{ - 0: "ICMP", - 1: "TCP", - 2: "UDP", -} -var TracerouteRequest_L4Protocol_value = map[string]int32{ - "ICMP": 0, - "TCP": 1, - "UDP": 2, -} - -func (x TracerouteRequest_L4Protocol) String() string { - return proto.EnumName(TracerouteRequest_L4Protocol_name, int32(x)) -} -func (TracerouteRequest_L4Protocol) EnumDescriptor() ([]byte, []int) { - return fileDescriptor0, []int{12, 0} -} - -// State is the resulting state of a single traceoroute packet. -type TracerouteResponse_State int32 - -const ( - TracerouteResponse_DEFAULT TracerouteResponse_State = 0 - TracerouteResponse_NONE TracerouteResponse_State = 1 - TracerouteResponse_UNKNOWN TracerouteResponse_State = 2 - TracerouteResponse_ICMP TracerouteResponse_State = 3 - TracerouteResponse_HOST_UNREACHABLE TracerouteResponse_State = 4 - TracerouteResponse_NETWORK_UNREACHABLE TracerouteResponse_State = 5 - TracerouteResponse_PROTOCOL_UNREACHABLE TracerouteResponse_State = 6 - TracerouteResponse_SOURCE_ROUTE_FAILED TracerouteResponse_State = 7 - TracerouteResponse_FRAGMENTATION_NEEDED TracerouteResponse_State = 8 - TracerouteResponse_PROHIBITED TracerouteResponse_State = 9 - TracerouteResponse_PRECEDENCE_VIOLATION TracerouteResponse_State = 10 - TracerouteResponse_PRECEDENCE_CUTOFF TracerouteResponse_State = 11 -) - -var TracerouteResponse_State_name = map[int32]string{ - 0: "DEFAULT", - 1: "NONE", - 2: "UNKNOWN", - 3: "ICMP", - 4: "HOST_UNREACHABLE", - 5: "NETWORK_UNREACHABLE", - 6: "PROTOCOL_UNREACHABLE", - 7: "SOURCE_ROUTE_FAILED", - 8: "FRAGMENTATION_NEEDED", - 9: "PROHIBITED", - 10: "PRECEDENCE_VIOLATION", - 11: "PRECEDENCE_CUTOFF", -} -var TracerouteResponse_State_value = map[string]int32{ - "DEFAULT": 0, - "NONE": 1, - "UNKNOWN": 2, - "ICMP": 3, - "HOST_UNREACHABLE": 4, - "NETWORK_UNREACHABLE": 5, - "PROTOCOL_UNREACHABLE": 6, - "SOURCE_ROUTE_FAILED": 7, - "FRAGMENTATION_NEEDED": 8, - "PROHIBITED": 9, - "PRECEDENCE_VIOLATION": 10, - "PRECEDENCE_CUTOFF": 11, -} - -func (x TracerouteResponse_State) String() string { - return proto.EnumName(TracerouteResponse_State_name, int32(x)) -} -func (TracerouteResponse_State) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{13, 0} } - -type SwitchControlProcessorRequest struct { - ControlProcessor *gnoi.Path `protobuf:"bytes,1,opt,name=control_processor,json=controlProcessor" json:"control_processor,omitempty"` -} - -func (m *SwitchControlProcessorRequest) Reset() { *m = SwitchControlProcessorRequest{} } -func (m *SwitchControlProcessorRequest) String() string { return proto.CompactTextString(m) } -func (*SwitchControlProcessorRequest) ProtoMessage() {} -func (*SwitchControlProcessorRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } - -func (m *SwitchControlProcessorRequest) GetControlProcessor() *gnoi.Path { - if m != nil { - return m.ControlProcessor - } - return nil -} - -type SwitchControlProcessorResponse struct { - ControlProcessor *gnoi.Path `protobuf:"bytes,1,opt,name=control_processor,json=controlProcessor" json:"control_processor,omitempty"` - Version string `protobuf:"bytes,2,opt,name=version" json:"version,omitempty"` - Uptime int64 `protobuf:"varint,3,opt,name=uptime" json:"uptime,omitempty"` -} - -func (m *SwitchControlProcessorResponse) Reset() { *m = SwitchControlProcessorResponse{} } -func (m *SwitchControlProcessorResponse) String() string { return proto.CompactTextString(m) } -func (*SwitchControlProcessorResponse) ProtoMessage() {} -func (*SwitchControlProcessorResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } - -func (m *SwitchControlProcessorResponse) GetControlProcessor() *gnoi.Path { - if m != nil { - return m.ControlProcessor - } - return nil -} - -func (m *SwitchControlProcessorResponse) GetVersion() string { - if m != nil { - return m.Version - } - return "" -} - -func (m *SwitchControlProcessorResponse) GetUptime() int64 { - if m != nil { - return m.Uptime - } - return 0 -} - -// A RebootRequest requests the specified target be rebooted using the specified -// method aftar the specified delay. Only the DEFAULT method with a delay of 0 -// is guaranteed to be accepted for all target types. -type RebootRequest struct { - Method RebootMethod `protobuf:"varint,1,opt,name=method,enum=gnoi.system.RebootMethod" json:"method,omitempty"` - // Delay in nanoseconds before issuing reboot. - Delay uint64 `protobuf:"varint,2,opt,name=delay" json:"delay,omitempty"` - // Informational reason for the reboot. - Message string `protobuf:"bytes,3,opt,name=message" json:"message,omitempty"` - // Optional sub-components to reboot. - Subcomponents []*gnoi.Path `protobuf:"bytes,4,rep,name=subcomponents" json:"subcomponents,omitempty"` - // Force reboot if sanity checks fail. (ex. uncommited configuration) - Force bool `protobuf:"varint,5,opt,name=force" json:"force,omitempty"` -} - -func (m *RebootRequest) Reset() { *m = RebootRequest{} } -func (m *RebootRequest) String() string { return proto.CompactTextString(m) } -func (*RebootRequest) ProtoMessage() {} -func (*RebootRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} } - -func (m *RebootRequest) GetMethod() RebootMethod { - if m != nil { - return m.Method - } - return RebootMethod_UNKNOWN -} - -func (m *RebootRequest) GetDelay() uint64 { - if m != nil { - return m.Delay - } - return 0 -} - -func (m *RebootRequest) GetMessage() string { - if m != nil { - return m.Message - } - return "" -} - -func (m *RebootRequest) GetSubcomponents() []*gnoi.Path { - if m != nil { - return m.Subcomponents - } - return nil -} - -func (m *RebootRequest) GetForce() bool { - if m != nil { - return m.Force - } - return false -} - -type RebootResponse struct { -} - -func (m *RebootResponse) Reset() { *m = RebootResponse{} } -func (m *RebootResponse) String() string { return proto.CompactTextString(m) } -func (*RebootResponse) ProtoMessage() {} -func (*RebootResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} } - -// A CancelRebootRequest requests the cancelation of any outstanding reboot -// request. -type CancelRebootRequest struct { - Message string `protobuf:"bytes,1,opt,name=message" json:"message,omitempty"` - Subcomponents []*gnoi.Path `protobuf:"bytes,2,rep,name=subcomponents" json:"subcomponents,omitempty"` -} - -func (m *CancelRebootRequest) Reset() { *m = CancelRebootRequest{} } -func (m *CancelRebootRequest) String() string { return proto.CompactTextString(m) } -func (*CancelRebootRequest) ProtoMessage() {} -func (*CancelRebootRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} } - -func (m *CancelRebootRequest) GetMessage() string { - if m != nil { - return m.Message - } - return "" -} - -func (m *CancelRebootRequest) GetSubcomponents() []*gnoi.Path { - if m != nil { - return m.Subcomponents - } - return nil -} - -type CancelRebootResponse struct { -} - -func (m *CancelRebootResponse) Reset() { *m = CancelRebootResponse{} } -func (m *CancelRebootResponse) String() string { return proto.CompactTextString(m) } -func (*CancelRebootResponse) ProtoMessage() {} -func (*CancelRebootResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} } - -type RebootStatusRequest struct { - Subcomponents []*gnoi.Path `protobuf:"bytes,1,rep,name=subcomponents" json:"subcomponents,omitempty"` -} - -func (m *RebootStatusRequest) Reset() { *m = RebootStatusRequest{} } -func (m *RebootStatusRequest) String() string { return proto.CompactTextString(m) } -func (*RebootStatusRequest) ProtoMessage() {} -func (*RebootStatusRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} } - -func (m *RebootStatusRequest) GetSubcomponents() []*gnoi.Path { - if m != nil { - return m.Subcomponents - } - return nil -} - -type RebootStatusResponse struct { - Active bool `protobuf:"varint,1,opt,name=active" json:"active,omitempty"` - Wait uint64 `protobuf:"varint,2,opt,name=wait" json:"wait,omitempty"` - When uint64 `protobuf:"varint,3,opt,name=when" json:"when,omitempty"` - Reason string `protobuf:"bytes,4,opt,name=reason" json:"reason,omitempty"` - Count uint32 `protobuf:"varint,5,opt,name=count" json:"count,omitempty"` -} - -func (m *RebootStatusResponse) Reset() { *m = RebootStatusResponse{} } -func (m *RebootStatusResponse) String() string { return proto.CompactTextString(m) } -func (*RebootStatusResponse) ProtoMessage() {} -func (*RebootStatusResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} } - -func (m *RebootStatusResponse) GetActive() bool { - if m != nil { - return m.Active - } - return false -} - -func (m *RebootStatusResponse) GetWait() uint64 { - if m != nil { - return m.Wait - } - return 0 -} - -func (m *RebootStatusResponse) GetWhen() uint64 { - if m != nil { - return m.When - } - return 0 -} - -func (m *RebootStatusResponse) GetReason() string { - if m != nil { - return m.Reason - } - return "" -} - -func (m *RebootStatusResponse) GetCount() uint32 { - if m != nil { - return m.Count - } - return 0 -} - -// A TimeRequest requests the current time accodring to the target. -type TimeRequest struct { -} - -func (m *TimeRequest) Reset() { *m = TimeRequest{} } -func (m *TimeRequest) String() string { return proto.CompactTextString(m) } -func (*TimeRequest) ProtoMessage() {} -func (*TimeRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} } - -type TimeResponse struct { - Time uint64 `protobuf:"varint,1,opt,name=time" json:"time,omitempty"` -} - -func (m *TimeResponse) Reset() { *m = TimeResponse{} } -func (m *TimeResponse) String() string { return proto.CompactTextString(m) } -func (*TimeResponse) ProtoMessage() {} -func (*TimeResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{9} } - -func (m *TimeResponse) GetTime() uint64 { - if m != nil { - return m.Time - } - return 0 -} - -// A PingRequest describes the ping operation to perform. Only the destination -// fields is required. Any field not specified is set to a reasonable server -// specified value. Not all fields are supported by all vendors. -// -// A count of 0 defaults to a vendor specified value, typically 5. A count of -// -1 means continue until the RPC times out or is canceled. -// -// If the interval is -1 then a flood ping is issued. -// -// If the size is 0, the vendor default size will be used (typically 56 bytes). -type PingRequest struct { - Destination string `protobuf:"bytes,1,opt,name=destination" json:"destination,omitempty"` - Source string `protobuf:"bytes,2,opt,name=source" json:"source,omitempty"` - Count int32 `protobuf:"varint,3,opt,name=count" json:"count,omitempty"` - Interval int64 `protobuf:"varint,4,opt,name=interval" json:"interval,omitempty"` - Wait int64 `protobuf:"varint,5,opt,name=wait" json:"wait,omitempty"` - Size int32 `protobuf:"varint,6,opt,name=size" json:"size,omitempty"` - DoNotFragment bool `protobuf:"varint,7,opt,name=do_not_fragment,json=doNotFragment" json:"do_not_fragment,omitempty"` - DoNotResolve bool `protobuf:"varint,8,opt,name=do_not_resolve,json=doNotResolve" json:"do_not_resolve,omitempty"` - L3Protocol gnoi.L3Protocol `protobuf:"varint,9,opt,name=l3protocol,enum=gnoi.L3Protocol" json:"l3protocol,omitempty"` -} - -func (m *PingRequest) Reset() { *m = PingRequest{} } -func (m *PingRequest) String() string { return proto.CompactTextString(m) } -func (*PingRequest) ProtoMessage() {} -func (*PingRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{10} } - -func (m *PingRequest) GetDestination() string { - if m != nil { - return m.Destination - } - return "" -} - -func (m *PingRequest) GetSource() string { - if m != nil { - return m.Source - } - return "" -} - -func (m *PingRequest) GetCount() int32 { - if m != nil { - return m.Count - } - return 0 -} - -func (m *PingRequest) GetInterval() int64 { - if m != nil { - return m.Interval - } - return 0 -} - -func (m *PingRequest) GetWait() int64 { - if m != nil { - return m.Wait - } - return 0 -} - -func (m *PingRequest) GetSize() int32 { - if m != nil { - return m.Size - } - return 0 -} - -func (m *PingRequest) GetDoNotFragment() bool { - if m != nil { - return m.DoNotFragment - } - return false -} - -func (m *PingRequest) GetDoNotResolve() bool { - if m != nil { - return m.DoNotResolve - } - return false -} - -func (m *PingRequest) GetL3Protocol() gnoi.L3Protocol { - if m != nil { - return m.L3Protocol - } - return gnoi.L3Protocol_UNSPECIFIED -} - -// A PingResponse represents either the reponse to a single ping packet -// (the bytes field is non-zero) or the summary statistics (sent is non-zero). -// -// For a single ping packet, time is the round trip time, in nanoseconds. For -// summary statistics, it is the time spent by the ping operation. The time is -// not always present in summary statistics. The std_dev is not always present -// in summary statistics. -type PingResponse struct { - Source string `protobuf:"bytes,1,opt,name=source" json:"source,omitempty"` - Time int64 `protobuf:"varint,2,opt,name=time" json:"time,omitempty"` - Sent int32 `protobuf:"varint,3,opt,name=sent" json:"sent,omitempty"` - Received int32 `protobuf:"varint,4,opt,name=received" json:"received,omitempty"` - MinTime int64 `protobuf:"varint,5,opt,name=min_time,json=minTime" json:"min_time,omitempty"` - AvgTime int64 `protobuf:"varint,6,opt,name=avg_time,json=avgTime" json:"avg_time,omitempty"` - MaxTime int64 `protobuf:"varint,7,opt,name=max_time,json=maxTime" json:"max_time,omitempty"` - StdDev int64 `protobuf:"varint,8,opt,name=std_dev,json=stdDev" json:"std_dev,omitempty"` - Bytes int32 `protobuf:"varint,11,opt,name=bytes" json:"bytes,omitempty"` - Sequence int32 `protobuf:"varint,12,opt,name=sequence" json:"sequence,omitempty"` - Ttl int32 `protobuf:"varint,13,opt,name=ttl" json:"ttl,omitempty"` -} - -func (m *PingResponse) Reset() { *m = PingResponse{} } -func (m *PingResponse) String() string { return proto.CompactTextString(m) } -func (*PingResponse) ProtoMessage() {} -func (*PingResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{11} } - -func (m *PingResponse) GetSource() string { - if m != nil { - return m.Source - } - return "" -} - -func (m *PingResponse) GetTime() int64 { - if m != nil { - return m.Time - } - return 0 -} - -func (m *PingResponse) GetSent() int32 { - if m != nil { - return m.Sent - } - return 0 -} - -func (m *PingResponse) GetReceived() int32 { - if m != nil { - return m.Received - } - return 0 -} - -func (m *PingResponse) GetMinTime() int64 { - if m != nil { - return m.MinTime - } - return 0 -} - -func (m *PingResponse) GetAvgTime() int64 { - if m != nil { - return m.AvgTime - } - return 0 -} - -func (m *PingResponse) GetMaxTime() int64 { - if m != nil { - return m.MaxTime - } - return 0 -} - -func (m *PingResponse) GetStdDev() int64 { - if m != nil { - return m.StdDev - } - return 0 -} - -func (m *PingResponse) GetBytes() int32 { - if m != nil { - return m.Bytes - } - return 0 -} - -func (m *PingResponse) GetSequence() int32 { - if m != nil { - return m.Sequence - } - return 0 -} - -func (m *PingResponse) GetTtl() int32 { - if m != nil { - return m.Ttl - } - return 0 -} - -// A TracerouteRequest describes the traceroute operation to perform. Only the -// destination field is required. Any field not specified is set to a -// reasonable server specified value. Not all fields are supported by all -// vendors. -// -// If the hop_count is -1 the traceroute will continue forever. -// -type TracerouteRequest struct { - Source string `protobuf:"bytes,1,opt,name=source" json:"source,omitempty"` - Destination string `protobuf:"bytes,2,opt,name=destination" json:"destination,omitempty"` - InitialTtl uint32 `protobuf:"varint,3,opt,name=initial_ttl,json=initialTtl" json:"initial_ttl,omitempty"` - MaxTtl int32 `protobuf:"varint,4,opt,name=max_ttl,json=maxTtl" json:"max_ttl,omitempty"` - Wait int64 `protobuf:"varint,5,opt,name=wait" json:"wait,omitempty"` - DoNotFragment bool `protobuf:"varint,6,opt,name=do_not_fragment,json=doNotFragment" json:"do_not_fragment,omitempty"` - DoNotResolve bool `protobuf:"varint,7,opt,name=do_not_resolve,json=doNotResolve" json:"do_not_resolve,omitempty"` - L3Protocol gnoi.L3Protocol `protobuf:"varint,8,opt,name=l3protocol,enum=gnoi.L3Protocol" json:"l3protocol,omitempty"` - L4Protocol TracerouteRequest_L4Protocol `protobuf:"varint,9,opt,name=l4protocol,enum=gnoi.system.TracerouteRequest_L4Protocol" json:"l4protocol,omitempty"` -} - -func (m *TracerouteRequest) Reset() { *m = TracerouteRequest{} } -func (m *TracerouteRequest) String() string { return proto.CompactTextString(m) } -func (*TracerouteRequest) ProtoMessage() {} -func (*TracerouteRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{12} } - -func (m *TracerouteRequest) GetSource() string { - if m != nil { - return m.Source - } - return "" -} - -func (m *TracerouteRequest) GetDestination() string { - if m != nil { - return m.Destination - } - return "" -} - -func (m *TracerouteRequest) GetInitialTtl() uint32 { - if m != nil { - return m.InitialTtl - } - return 0 -} - -func (m *TracerouteRequest) GetMaxTtl() int32 { - if m != nil { - return m.MaxTtl - } - return 0 -} - -func (m *TracerouteRequest) GetWait() int64 { - if m != nil { - return m.Wait - } - return 0 -} - -func (m *TracerouteRequest) GetDoNotFragment() bool { - if m != nil { - return m.DoNotFragment - } - return false -} - -func (m *TracerouteRequest) GetDoNotResolve() bool { - if m != nil { - return m.DoNotResolve - } - return false -} - -func (m *TracerouteRequest) GetL3Protocol() gnoi.L3Protocol { - if m != nil { - return m.L3Protocol - } - return gnoi.L3Protocol_UNSPECIFIED -} - -func (m *TracerouteRequest) GetL4Protocol() TracerouteRequest_L4Protocol { - if m != nil { - return m.L4Protocol - } - return TracerouteRequest_ICMP -} - -// A TraceRouteResponse contains the result of a single traceoute packet. -// -// There may be an optional initial response that provides information about the -// traceroute request itself and contains at least one of the fields in the the -// initial block of fields and none of the fields following that block. All -// subsequent responses should not contain any of these fields. -// -// Typically multiple responses are received for each hop, as the packets are -// received. -// -// The mpls field maps names to values. Example names include "Label", "CoS", -// "TTL", "S", and "MRU". -// [Perhaps we should list the canonical names that must be used when -// applicable]. -type TracerouteResponse struct { - // The following fields are only filled in for the first message. - // If any of these fields are specified, all fields following this - // block are left unspecified. - DestinationName string `protobuf:"bytes,1,opt,name=destination_name,json=destinationName" json:"destination_name,omitempty"` - DestinationAddress string `protobuf:"bytes,2,opt,name=destination_address,json=destinationAddress" json:"destination_address,omitempty"` - Hops int32 `protobuf:"varint,3,opt,name=hops" json:"hops,omitempty"` - PacketSize int32 `protobuf:"varint,4,opt,name=packet_size,json=packetSize" json:"packet_size,omitempty"` - // The following fields provide the disposition of a single traceroute - // packet. - Hop int32 `protobuf:"varint,5,opt,name=hop" json:"hop,omitempty"` - Address string `protobuf:"bytes,6,opt,name=address" json:"address,omitempty"` - Name string `protobuf:"bytes,7,opt,name=name" json:"name,omitempty"` - Rtt int64 `protobuf:"varint,8,opt,name=rtt" json:"rtt,omitempty"` - State TracerouteResponse_State `protobuf:"varint,9,opt,name=state,enum=gnoi.system.TracerouteResponse_State" json:"state,omitempty"` - IcmpCode int32 `protobuf:"varint,10,opt,name=icmp_code,json=icmpCode" json:"icmp_code,omitempty"` - Mpls map[string]string `protobuf:"bytes,11,rep,name=mpls" json:"mpls,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` - AsPath []int32 `protobuf:"varint,12,rep,packed,name=as_path,json=asPath" json:"as_path,omitempty"` -} - -func (m *TracerouteResponse) Reset() { *m = TracerouteResponse{} } -func (m *TracerouteResponse) String() string { return proto.CompactTextString(m) } -func (*TracerouteResponse) ProtoMessage() {} -func (*TracerouteResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{13} } - -func (m *TracerouteResponse) GetDestinationName() string { - if m != nil { - return m.DestinationName - } - return "" -} - -func (m *TracerouteResponse) GetDestinationAddress() string { - if m != nil { - return m.DestinationAddress - } - return "" -} - -func (m *TracerouteResponse) GetHops() int32 { - if m != nil { - return m.Hops - } - return 0 -} - -func (m *TracerouteResponse) GetPacketSize() int32 { - if m != nil { - return m.PacketSize - } - return 0 -} - -func (m *TracerouteResponse) GetHop() int32 { - if m != nil { - return m.Hop - } - return 0 -} - -func (m *TracerouteResponse) GetAddress() string { - if m != nil { - return m.Address - } - return "" -} - -func (m *TracerouteResponse) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -func (m *TracerouteResponse) GetRtt() int64 { - if m != nil { - return m.Rtt - } - return 0 -} - -func (m *TracerouteResponse) GetState() TracerouteResponse_State { - if m != nil { - return m.State - } - return TracerouteResponse_DEFAULT -} - -func (m *TracerouteResponse) GetIcmpCode() int32 { - if m != nil { - return m.IcmpCode - } - return 0 -} - -func (m *TracerouteResponse) GetMpls() map[string]string { - if m != nil { - return m.Mpls - } - return nil -} - -func (m *TracerouteResponse) GetAsPath() []int32 { - if m != nil { - return m.AsPath - } - return nil -} - -// Package defines a single package file to be placed on the target. -type Package struct { - Filename string `protobuf:"bytes,1,opt,name=filename" json:"filename,omitempty"` - Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` - Hash *gnoi.HashType `protobuf:"bytes,3,opt,name=hash" json:"hash,omitempty"` - Version string `protobuf:"bytes,4,opt,name=version" json:"version,omitempty"` - Activate bool `protobuf:"varint,5,opt,name=activate" json:"activate,omitempty"` -} - -func (m *Package) Reset() { *m = Package{} } -func (m *Package) String() string { return proto.CompactTextString(m) } -func (*Package) ProtoMessage() {} -func (*Package) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{14} } - -func (m *Package) GetFilename() string { - if m != nil { - return m.Filename - } - return "" -} - -func (m *Package) GetData() []byte { - if m != nil { - return m.Data - } - return nil -} - -func (m *Package) GetHash() *gnoi.HashType { - if m != nil { - return m.Hash - } - return nil -} - -func (m *Package) GetVersion() string { - if m != nil { - return m.Version - } - return "" -} - -func (m *Package) GetActivate() bool { - if m != nil { - return m.Activate - } - return false -} - -// SetPackageRequest will place the package onto the target and optionally mark -// it as the next bootable image. -type SetPackageRequest struct { - Packages []*Package `protobuf:"bytes,1,rep,name=packages" json:"packages,omitempty"` -} - -func (m *SetPackageRequest) Reset() { *m = SetPackageRequest{} } -func (m *SetPackageRequest) String() string { return proto.CompactTextString(m) } -func (*SetPackageRequest) ProtoMessage() {} -func (*SetPackageRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{15} } - -func (m *SetPackageRequest) GetPackages() []*Package { - if m != nil { - return m.Packages - } - return nil -} - -type SetPackageResponse struct { -} - -func (m *SetPackageResponse) Reset() { *m = SetPackageResponse{} } -func (m *SetPackageResponse) String() string { return proto.CompactTextString(m) } -func (*SetPackageResponse) ProtoMessage() {} -func (*SetPackageResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{16} } - -func init() { - proto.RegisterType((*SwitchControlProcessorRequest)(nil), "gnoi.system.SwitchControlProcessorRequest") - proto.RegisterType((*SwitchControlProcessorResponse)(nil), "gnoi.system.SwitchControlProcessorResponse") - proto.RegisterType((*RebootRequest)(nil), "gnoi.system.RebootRequest") - proto.RegisterType((*RebootResponse)(nil), "gnoi.system.RebootResponse") - proto.RegisterType((*CancelRebootRequest)(nil), "gnoi.system.CancelRebootRequest") - proto.RegisterType((*CancelRebootResponse)(nil), "gnoi.system.CancelRebootResponse") - proto.RegisterType((*RebootStatusRequest)(nil), "gnoi.system.RebootStatusRequest") - proto.RegisterType((*RebootStatusResponse)(nil), "gnoi.system.RebootStatusResponse") - proto.RegisterType((*TimeRequest)(nil), "gnoi.system.TimeRequest") - proto.RegisterType((*TimeResponse)(nil), "gnoi.system.TimeResponse") - proto.RegisterType((*PingRequest)(nil), "gnoi.system.PingRequest") - proto.RegisterType((*PingResponse)(nil), "gnoi.system.PingResponse") - proto.RegisterType((*TracerouteRequest)(nil), "gnoi.system.TracerouteRequest") - proto.RegisterType((*TracerouteResponse)(nil), "gnoi.system.TracerouteResponse") - proto.RegisterType((*Package)(nil), "gnoi.system.Package") - proto.RegisterType((*SetPackageRequest)(nil), "gnoi.system.SetPackageRequest") - proto.RegisterType((*SetPackageResponse)(nil), "gnoi.system.SetPackageResponse") - proto.RegisterEnum("gnoi.system.RebootMethod", RebootMethod_name, RebootMethod_value) - proto.RegisterEnum("gnoi.system.TracerouteRequest_L4Protocol", TracerouteRequest_L4Protocol_name, TracerouteRequest_L4Protocol_value) - proto.RegisterEnum("gnoi.system.TracerouteResponse_State", TracerouteResponse_State_name, TracerouteResponse_State_value) -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// Client API for System service - -type SystemClient interface { - // Ping executes the ping command on the target and streams back - // the results. Some targets may not stream any results until all - // results are in. If a packet count is not explicitly provided, - // 5 is used. - Ping(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (System_PingClient, error) - // Traceroute executes the traceroute command on the target and streams back - // the results. Some targets may not stream any results until all - // results are in. If a hop count is not explicitly provided, - // 30 is used. - Traceroute(ctx context.Context, in *TracerouteRequest, opts ...grpc.CallOption) (System_TracerouteClient, error) - // Time returns the current time on the target. Time is typically used to - // test if a target is actually responding. - Time(ctx context.Context, in *TimeRequest, opts ...grpc.CallOption) (*TimeResponse, error) - // SetPackage places a software package (possibly including bootable images) - // on the target. - SetPackage(ctx context.Context, in *SetPackageRequest, opts ...grpc.CallOption) (*SetPackageResponse, error) - // SwitchControlProcessor will switch from the current route processor to the - // provided route processor. If the current route processor is the same as the - // one provided it is a NOOP. If the target does not exist an error is - // returned. - SwitchControlProcessor(ctx context.Context, in *SwitchControlProcessorRequest, opts ...grpc.CallOption) (*SwitchControlProcessorResponse, error) - // Reboot causes the target to reboot, possibly at some point in the future. - // If the method of reboot is not supported then the Reboot RPC will fail. - // If the reboot is immediate the command will block until the subcomponents - // have restarted. - // If a reboot on the active control processor is pending the service must - // reject all other reboot requests. - // If a reboot request for active control processor is initiated with other - // pending reboot requests it must be rejected. - Reboot(ctx context.Context, in *RebootRequest, opts ...grpc.CallOption) (*RebootResponse, error) - // RebootStatus returns the status of reboot for the target. - RebootStatus(ctx context.Context, in *RebootStatusRequest, opts ...grpc.CallOption) (*RebootStatusResponse, error) - // CancelReboot cancels any pending reboot request. - CancelReboot(ctx context.Context, in *CancelRebootRequest, opts ...grpc.CallOption) (*CancelRebootResponse, error) -} - -type systemClient struct { - cc *grpc.ClientConn -} - -func NewSystemClient(cc *grpc.ClientConn) SystemClient { - return &systemClient{cc} -} - -func (c *systemClient) Ping(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (System_PingClient, error) { - stream, err := grpc.NewClientStream(ctx, &_System_serviceDesc.Streams[0], c.cc, "/gnoi.system.System/Ping", opts...) - if err != nil { - return nil, err - } - x := &systemPingClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type System_PingClient interface { - Recv() (*PingResponse, error) - grpc.ClientStream -} - -type systemPingClient struct { - grpc.ClientStream -} - -func (x *systemPingClient) Recv() (*PingResponse, error) { - m := new(PingResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *systemClient) Traceroute(ctx context.Context, in *TracerouteRequest, opts ...grpc.CallOption) (System_TracerouteClient, error) { - stream, err := grpc.NewClientStream(ctx, &_System_serviceDesc.Streams[1], c.cc, "/gnoi.system.System/Traceroute", opts...) - if err != nil { - return nil, err - } - x := &systemTracerouteClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type System_TracerouteClient interface { - Recv() (*TracerouteResponse, error) - grpc.ClientStream -} - -type systemTracerouteClient struct { - grpc.ClientStream -} - -func (x *systemTracerouteClient) Recv() (*TracerouteResponse, error) { - m := new(TracerouteResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *systemClient) Time(ctx context.Context, in *TimeRequest, opts ...grpc.CallOption) (*TimeResponse, error) { - out := new(TimeResponse) - err := grpc.Invoke(ctx, "/gnoi.system.System/Time", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *systemClient) SetPackage(ctx context.Context, in *SetPackageRequest, opts ...grpc.CallOption) (*SetPackageResponse, error) { - out := new(SetPackageResponse) - err := grpc.Invoke(ctx, "/gnoi.system.System/SetPackage", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *systemClient) SwitchControlProcessor(ctx context.Context, in *SwitchControlProcessorRequest, opts ...grpc.CallOption) (*SwitchControlProcessorResponse, error) { - out := new(SwitchControlProcessorResponse) - err := grpc.Invoke(ctx, "/gnoi.system.System/SwitchControlProcessor", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *systemClient) Reboot(ctx context.Context, in *RebootRequest, opts ...grpc.CallOption) (*RebootResponse, error) { - out := new(RebootResponse) - err := grpc.Invoke(ctx, "/gnoi.system.System/Reboot", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *systemClient) RebootStatus(ctx context.Context, in *RebootStatusRequest, opts ...grpc.CallOption) (*RebootStatusResponse, error) { - out := new(RebootStatusResponse) - err := grpc.Invoke(ctx, "/gnoi.system.System/RebootStatus", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *systemClient) CancelReboot(ctx context.Context, in *CancelRebootRequest, opts ...grpc.CallOption) (*CancelRebootResponse, error) { - out := new(CancelRebootResponse) - err := grpc.Invoke(ctx, "/gnoi.system.System/CancelReboot", in, out, c.cc, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// Server API for System service - -type SystemServer interface { - // Ping executes the ping command on the target and streams back - // the results. Some targets may not stream any results until all - // results are in. If a packet count is not explicitly provided, - // 5 is used. - Ping(*PingRequest, System_PingServer) error - // Traceroute executes the traceroute command on the target and streams back - // the results. Some targets may not stream any results until all - // results are in. If a hop count is not explicitly provided, - // 30 is used. - Traceroute(*TracerouteRequest, System_TracerouteServer) error - // Time returns the current time on the target. Time is typically used to - // test if a target is actually responding. - Time(context.Context, *TimeRequest) (*TimeResponse, error) - // SetPackage places a software package (possibly including bootable images) - // on the target. - SetPackage(context.Context, *SetPackageRequest) (*SetPackageResponse, error) - // SwitchControlProcessor will switch from the current route processor to the - // provided route processor. If the current route processor is the same as the - // one provided it is a NOOP. If the target does not exist an error is - // returned. - SwitchControlProcessor(context.Context, *SwitchControlProcessorRequest) (*SwitchControlProcessorResponse, error) - // Reboot causes the target to reboot, possibly at some point in the future. - // If the method of reboot is not supported then the Reboot RPC will fail. - // If the reboot is immediate the command will block until the subcomponents - // have restarted. - // If a reboot on the active control processor is pending the service must - // reject all other reboot requests. - // If a reboot request for active control processor is initiated with other - // pending reboot requests it must be rejected. - Reboot(context.Context, *RebootRequest) (*RebootResponse, error) - // RebootStatus returns the status of reboot for the target. - RebootStatus(context.Context, *RebootStatusRequest) (*RebootStatusResponse, error) - // CancelReboot cancels any pending reboot request. - CancelReboot(context.Context, *CancelRebootRequest) (*CancelRebootResponse, error) -} - -func RegisterSystemServer(s *grpc.Server, srv SystemServer) { - s.RegisterService(&_System_serviceDesc, srv) -} - -func _System_Ping_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(PingRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(SystemServer).Ping(m, &systemPingServer{stream}) -} - -type System_PingServer interface { - Send(*PingResponse) error - grpc.ServerStream -} - -type systemPingServer struct { - grpc.ServerStream -} - -func (x *systemPingServer) Send(m *PingResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _System_Traceroute_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(TracerouteRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(SystemServer).Traceroute(m, &systemTracerouteServer{stream}) -} - -type System_TracerouteServer interface { - Send(*TracerouteResponse) error - grpc.ServerStream -} - -type systemTracerouteServer struct { - grpc.ServerStream -} - -func (x *systemTracerouteServer) Send(m *TracerouteResponse) error { - return x.ServerStream.SendMsg(m) -} - -func _System_Time_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TimeRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(SystemServer).Time(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.system.System/Time", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(SystemServer).Time(ctx, req.(*TimeRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _System_SetPackage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SetPackageRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(SystemServer).SetPackage(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.system.System/SetPackage", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(SystemServer).SetPackage(ctx, req.(*SetPackageRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _System_SwitchControlProcessor_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SwitchControlProcessorRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(SystemServer).SwitchControlProcessor(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.system.System/SwitchControlProcessor", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(SystemServer).SwitchControlProcessor(ctx, req.(*SwitchControlProcessorRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _System_Reboot_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RebootRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(SystemServer).Reboot(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.system.System/Reboot", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(SystemServer).Reboot(ctx, req.(*RebootRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _System_RebootStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RebootStatusRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(SystemServer).RebootStatus(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.system.System/RebootStatus", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(SystemServer).RebootStatus(ctx, req.(*RebootStatusRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _System_CancelReboot_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CancelRebootRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(SystemServer).CancelReboot(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/gnoi.system.System/CancelReboot", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(SystemServer).CancelReboot(ctx, req.(*CancelRebootRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _System_serviceDesc = grpc.ServiceDesc{ - ServiceName: "gnoi.system.System", - HandlerType: (*SystemServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "Time", - Handler: _System_Time_Handler, - }, - { - MethodName: "SetPackage", - Handler: _System_SetPackage_Handler, - }, - { - MethodName: "SwitchControlProcessor", - Handler: _System_SwitchControlProcessor_Handler, - }, - { - MethodName: "Reboot", - Handler: _System_Reboot_Handler, - }, - { - MethodName: "RebootStatus", - Handler: _System_RebootStatus_Handler, - }, - { - MethodName: "CancelReboot", - Handler: _System_CancelReboot_Handler, - }, - }, - Streams: []grpc.StreamDesc{ - { - StreamName: "Ping", - Handler: _System_Ping_Handler, - ServerStreams: true, - }, - { - StreamName: "Traceroute", - Handler: _System_Traceroute_Handler, - ServerStreams: true, - }, - }, - Metadata: "github.com/openconfig/gnoi/system/system.proto", -} - -func init() { proto.RegisterFile("github.com/openconfig/gnoi/system/system.proto", fileDescriptor0) } - -var fileDescriptor0 = []byte{ - // 1525 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x57, 0xdf, 0x6e, 0xdb, 0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, 0x3e, 0x67, 0x69, 0xea, 0x7b, - 0x09, 0xb4, 0x87, 0x12, 0xfc, 0x5d, 0x83, 0xa3, 0xf5, 0x48, 0x09, 0x2d, 0x8e, 0xa1, 0x84, 0x3d, - 0xee, 0x2f, 0xd4, 0x21, 0x2a, 0x4e, 0x22, 0x21, 0x04, 0x85, 0xcf, 0xd8, 0xe7, 0x09, 0xfa, 0x72, - 0x2d, 0x75, 0x53, 0x12, 0x4a, 0xe4, 0x85, 0x6e, 0x4a, 0x24, 0x07, 0x62, 0x82, 0x19, 0x0d, 0x8d, - 0x82, 0x04, 0x21, 0x91, 0x04, 0xb8, 0x1e, 0x9d, 0x87, 0x5c, 0x82, 0xbb, 0xe7, 0x28, 0xc1, 0xdc, - 0x83, 0x9a, 0xeb, 0xcf, 0x48, 0x72, 0x0e, 0xd3, 0x84, 0x5d, 0x25, 0x26, 0xc5, 0x20, 0x28, 0x48, - 0x3a, 0x69, 0x2a, 0x81, 0x24, 0xd3, 0x7f, 0x73, 0x50, 0xeb, 0xfb, 0xe1, 0x24, 0x3d, 0x7b, 0x03, - 0x6a, 0x63, 0xc2, 0xb8, 0x1f, 0x62, 0x2e, 0x28, 0xa9, 0xa0, 0xcf, 0xaa, 0x44, 0x49, 0x8c, 0xce, - 0x45, 0x63, 0x15, 0x5f, 0x13, 0x69, 0x55, 0x92, 0xa8, 0xbf, 0x98, 0x94, 0x84, 0xea, 0x50, 0xf1, - 0x43, 0x4e, 0xe2, 0x05, 0x0e, 0xe4, 0x11, 0xf2, 0xce, 0x52, 0x5e, 0x82, 0x50, 0x94, 0xfa, 0x25, - 0x08, 0xcc, 0xff, 0x1b, 0x31, 0x4a, 0x32, 0x88, 0x5c, 0xa3, 0x5f, 0xc3, 0xa3, 0x31, 0x1d, 0x85, - 0x94, 0x8f, 0x6e, 0x63, 0x3c, 0x99, 0x91, 0x90, 0x1b, 0x65, 0x89, 0xe6, 0xde, 0x98, 0xf6, 0x28, - 0x3f, 0x4f, 0x94, 0xe8, 0x97, 0xb0, 0x9f, 0xf8, 0xc5, 0x84, 0xd1, 0x60, 0x41, 0x8c, 0x8a, 0x74, - 0xdb, 0x95, 0x6e, 0x8e, 0xd2, 0xa1, 0x57, 0x00, 0xc1, 0x6b, 0xf9, 0x62, 0x78, 0x34, 0x30, 0xaa, - 0xf2, 0xc2, 0xe8, 0xaa, 0xb5, 0xdd, 0xd7, 0xfd, 0x44, 0xef, 0x64, 0x7c, 0xcc, 0xff, 0xe4, 0x60, - 0x57, 0x61, 0xb4, 0xea, 0x6a, 0x02, 0x81, 0xb6, 0x06, 0x41, 0x0a, 0x70, 0x4e, 0x1d, 0x48, 0xac, - 0xe5, 0x81, 0xc8, 0x12, 0x15, 0xb9, 0x16, 0xa0, 0xc4, 0xc4, 0x23, 0xfe, 0x82, 0x8c, 0x25, 0x28, - 0x45, 0x67, 0x29, 0xa3, 0x27, 0x50, 0x99, 0xf9, 0xe1, 0x48, 0xc6, 0x51, 0xc0, 0x94, 0x67, 0x7e, - 0x28, 0xfa, 0x28, 0x4c, 0x78, 0x31, 0x51, 0xa6, 0x92, 0x32, 0xe1, 0xc5, 0x24, 0x35, 0xcd, 0xf0, - 0x17, 0x65, 0x2a, 0x27, 0xbb, 0xf0, 0x17, 0x69, 0x7a, 0x0c, 0x65, 0xc6, 0xc7, 0xa3, 0x31, 0x59, - 0x48, 0x38, 0xf2, 0x4e, 0x89, 0xf1, 0x71, 0x87, 0x2c, 0x44, 0xc3, 0x6e, 0xee, 0x38, 0x61, 0x46, - 0x4d, 0x35, 0x4c, 0x0a, 0xa2, 0x36, 0x26, 0xb8, 0x10, 0x7a, 0xc4, 0xd8, 0x55, 0xb5, 0xa5, 0x32, - 0xd2, 0x21, 0xcf, 0x79, 0x60, 0xec, 0x49, 0xb5, 0x58, 0x9a, 0xff, 0xcc, 0xc3, 0x81, 0x1b, 0x63, - 0x8f, 0xc4, 0x74, 0xce, 0x53, 0xe2, 0x7d, 0x15, 0x9f, 0x0d, 0x72, 0xe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, 0x94, 0x53, 0x6a, 0x56, 0x45, 0x8d, 0x2d, 0xee, 0x6b, 0x03, 0x71, 0xfd, 0x17, 0xdf, - 0xf0, 0xc8, 0x86, 0xcd, 0x0e, 0xd9, 0x1b, 0x61, 0xb7, 0x8c, 0xf8, 0x1b, 0x61, 0xb7, 0x4e, 0xe8, - 0x3b, 0x37, 0x25, 0xf9, 0x09, 0x7c, 0xfd, 0x63, 0x00, 0x00, 0x00, 0xff, 0xff, 0x1c, 0x98, 0x98, - 0x50, 0x51, 0x0e, 0x00, 0x00, -} diff --git a/types.pb.go b/types.pb.go deleted file mode 100644 index 9a8d4a12..00000000 --- a/types.pb.go +++ /dev/null @@ -1,150 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: github.com/openconfig/gnoi/types.proto - -/* -Package gnoi is a generated protocol buffer package. - -It is generated from these files: - github.com/openconfig/gnoi/types.proto - -It has these top-level messages: - HashType - Path -*/ -package gnoi - -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 - -// Generic Layer 3 Protocol enumeration. -type L3Protocol int32 - -const ( - L3Protocol_UNSPECIFIED L3Protocol = 0 - L3Protocol_IPV4 L3Protocol = 1 - L3Protocol_IPV6 L3Protocol = 2 -) - -var L3Protocol_name = map[int32]string{ - 0: "UNSPECIFIED", - 1: "IPV4", - 2: "IPV6", -} -var L3Protocol_value = map[string]int32{ - "UNSPECIFIED": 0, - "IPV4": 1, - "IPV6": 2, -} - -func (x L3Protocol) String() string { - return proto.EnumName(L3Protocol_name, int32(x)) -} -func (L3Protocol) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } - -type HashType_HashMethod int32 - -const ( - HashType_UNSPECIFIED HashType_HashMethod = 0 - HashType_SHA256 HashType_HashMethod = 1 - HashType_SHA512 HashType_HashMethod = 2 -) - -var HashType_HashMethod_name = map[int32]string{ - 0: "UNSPECIFIED", - 1: "SHA256", - 2: "SHA512", -} -var HashType_HashMethod_value = map[string]int32{ - "UNSPECIFIED": 0, - "SHA256": 1, - "SHA512": 2, -} - -func (x HashType_HashMethod) String() string { - return proto.EnumName(HashType_HashMethod_name, int32(x)) -} -func (HashType_HashMethod) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0, 0} } - -// HashType defines the valid hash methods for data verification. UNSPECIFIED -// should be treated an error. -type HashType struct { - Method HashType_HashMethod `protobuf:"varint,1,opt,name=method,enum=gnoi.HashType_HashMethod" json:"method,omitempty"` - Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` -} - -func (m *HashType) Reset() { *m = HashType{} } -func (m *HashType) String() string { return proto.CompactTextString(m) } -func (*HashType) ProtoMessage() {} -func (*HashType) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } - -func (m *HashType) GetMethod() HashType_HashMethod { - if m != nil { - return m.Method - } - return HashType_UNSPECIFIED -} - -func (m *HashType) GetHash() []byte { - if m != nil { - return m.Hash - } - return nil -} - -// OpenConfig path representation of the target. -// eg. /interfaces/interface[name=et-1/0/0] -type Path struct { - Elements []string `protobuf:"bytes,1,rep,name=elements" json:"elements,omitempty"` -} - -func (m *Path) Reset() { *m = Path{} } -func (m *Path) String() string { return proto.CompactTextString(m) } -func (*Path) ProtoMessage() {} -func (*Path) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } - -func (m *Path) GetElements() []string { - if m != nil { - return m.Elements - } - return nil -} - -func init() { - proto.RegisterType((*HashType)(nil), "gnoi.HashType") - proto.RegisterType((*Path)(nil), "gnoi.Path") - proto.RegisterEnum("gnoi.L3Protocol", L3Protocol_name, L3Protocol_value) - proto.RegisterEnum("gnoi.HashType_HashMethod", HashType_HashMethod_name, HashType_HashMethod_value) -} - -func init() { proto.RegisterFile("github.com/openconfig/gnoi/types.proto", fileDescriptor0) } - -var fileDescriptor0 = []byte{ - // 233 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x4b, 0xcf, 0x2c, 0xc9, - 0x28, 0x4d, 0xd2, 0x4b, 0xce, 0xcf, 0xd5, 0xcf, 0x2f, 0x48, 0xcd, 0x4b, 0xce, 0xcf, 0x4b, 0xcb, - 0x4c, 0xd7, 0x4f, 0xcf, 0xcb, 0xcf, 0xd4, 0x2f, 0xa9, 0x2c, 0x48, 0x2d, 0xd6, 0x2b, 0x28, 0xca, - 0x2f, 0xc9, 0x17, 0x62, 0x01, 0x89, 0x28, 0x75, 0x30, 0x72, 0x71, 0x78, 0x24, 0x16, 0x67, 0x84, - 0x54, 0x16, 0xa4, 0x0a, 0x19, 0x72, 0xb1, 0xe5, 0xa6, 0x96, 0x64, 0xe4, 0xa7, 0x48, 0x30, 0x2a, - 0x30, 0x6a, 0xf0, 0x19, 0x49, 0xea, 0x81, 0xd4, 0xe8, 0xc1, 0xe4, 0xc1, 0x0c, 0x5f, 0xb0, 0x82, - 0x20, 0xa8, 0x42, 0x21, 0x21, 0x2e, 0x96, 0x8c, 0xc4, 0xe2, 0x0c, 0x09, 0x26, 0x05, 0x46, 0x0d, - 0x9e, 0x20, 0x30, 0x5b, 0xc9, 0x94, 0x8b, 0x0b, 0xa1, 0x52, 0x88, 0x9f, 0x8b, 0x3b, 0xd4, 0x2f, - 0x38, 0xc0, 0xd5, 0xd9, 0xd3, 0xcd, 0xd3, 0xd5, 0x45, 0x80, 0x41, 0x88, 0x8b, 0x8b, 0x2d, 0xd8, - 0xc3, 0xd1, 0xc8, 0xd4, 0x4c, 0x80, 0x11, 0xca, 0x36, 0x35, 0x34, 0x12, 0x60, 0x52, 0x52, 0xe2, - 0x62, 0x09, 0x48, 0x2c, 0xc9, 0x10, 0x92, 0xe2, 0xe2, 0x48, 0xcd, 0x49, 0xcd, 0x4d, 0xcd, 0x2b, - 0x29, 0x96, 0x60, 0x54, 0x60, 0xd6, 0xe0, 0x0c, 0x82, 0xf3, 0xb5, 0x0c, 0xb9, 0xb8, 0x7c, 0x8c, - 0x03, 0x40, 0xee, 0x4f, 0xce, 0xcf, 0xc1, 0x34, 0x9a, 0x83, 0x8b, 0xc5, 0x33, 0x20, 0xcc, 0x44, - 0x80, 0x11, 0xca, 0x32, 0x13, 0x60, 0x4a, 0x62, 0x03, 0x7b, 0xd7, 0x18, 0x10, 0x00, 0x00, 0xff, - 0xff, 0xb0, 0x4d, 0xd2, 0x1e, 0x18, 0x01, 0x00, 0x00, -} From 78fab628ef321ef467b3c4c225b0b5ba942341dc Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 17:00:16 +0530 Subject: [PATCH 233/238] Revert "squash! Update system set package to use streaming rpc Update build files Update gnoi.Path to compliant with gnmi.Path Update simple test to use new path" This reverts commit 95a7614a627f1865baa20025d4e6b1832a7121fe. --- file/BUILD.bazel | 4 ++-- file/file.proto | 16 +++++++++------- layer2/BUILD.bazel | 4 ++-- mpls/BUILD.bazel | 6 ++++++ system/BUILD.bazel | 4 ++-- system/system.proto | 2 +- 6 files changed, 22 insertions(+), 14 deletions(-) diff --git a/file/BUILD.bazel b/file/BUILD.bazel index 27b40159..efe3a090 100644 --- a/file/BUILD.bazel +++ b/file/BUILD.bazel @@ -4,7 +4,7 @@ proto_library( name = "file_proto", srcs = ["file.proto"], deps = [ - "//github.com/openconfig/gnoi:go_default_library" + "//github.com/openconfig/reference/rpc/gnoi:go_default_library" ], ) @@ -12,7 +12,7 @@ go_proto_library( name = "go_default_library", srcs = ["file.proto"], deps = [ - "//github.com/openconfig/gnoi:go_default_library" + "//github.com/openconfig/reference/rpc/gnoi:go_default_library" ], visibility = ["//visibility:public"], rules_go_repo_only_for_internal_use = "@", diff --git a/file/file.proto b/file/file.proto index e83bf8a7..84553edc 100644 --- a/file/file.proto +++ b/file/file.proto @@ -18,19 +18,19 @@ syntax = "proto3"; package gnoi.file; -import "github.com/openconfig/gnoi/types.proto"; +import "github.com/openconfig/reference/rpc/gnoi/types.proto"; service File { // Get read and streams the contents of a file from the target. // The file is streamed by sequential messages, each containing up to // 64KB of data. A final message is sent prior to closing the stream - // that contains the hash of the data sent. An error is returned + // that contains the MD5 checksum of the data sent. An error is returned // if the file does not exist or there was an error reading the file. rpc Get(GetRequest) returns (stream GetResponse) {} // Put streamd data into a file on the target. The file is sent in // sequential messages, each message containing up to 64KB of data. A final - // message must be sent that includes the hash of the data sent. An + // message must be sent that includes the MD5 checksum of the data sent. An // error is returned if the location does not exist or there is an error // writing the data. If no checksum is received, the target must assume the // the operation is incomplete and remove the partially transmitted file. The @@ -61,7 +61,8 @@ service File { // The contents to be written are streamed through multiple messages using the // contents field. Each message may contain up to 64KB of data. // -// The final message of the RPC contains the hash of the file contents. +// The final message of the RPC contains the MD5 checksum of the data sent in +// hexadecimal ASCII. message PutRequest { message Details { string remote_file = 1; @@ -74,7 +75,7 @@ message PutRequest { oneof request { Details open = 1; bytes contents = 2; - gnoi.HashType hash = 3; // hash of the file. + gnoi.HashType hash = 3; // MD5 checksum of the file. } } @@ -88,11 +89,12 @@ message GetRequest { } // A GetResponse either contains the next set of bytes read from the -// file or, as the last message, the hash of the data. +// file or, as the last message, the MD5 checksum of the data sent in +// hexadecimal ASCII. message GetResponse { oneof response { bytes contents = 1; - gnoi.HashType hash = 2; // hash of the file. + string checksum = 2; // MD5 checksum of the file. } } diff --git a/layer2/BUILD.bazel b/layer2/BUILD.bazel index 9c64d5c4..d0c8f771 100644 --- a/layer2/BUILD.bazel +++ b/layer2/BUILD.bazel @@ -4,7 +4,7 @@ proto_library( name = "layer2_proto", srcs = ["layer2.proto"], deps = [ - "//github.com/openconfig/gnoi:gnoi_proto", + "//github.com/openconfig/reference/rpc/gnoi:gnoi_proto", ], ) @@ -12,7 +12,7 @@ go_proto_library( name = "go_default_library", srcs = ["layer2.proto"], deps = [ - "//github.com/openconfig/gnoi:go_default_library" + "//github.com/openconfig/reference/rpc/gnoi:go_default_library" ], visibility = ["//visibility:public"], rules_go_repo_only_for_internal_use = "@", diff --git a/mpls/BUILD.bazel b/mpls/BUILD.bazel index d11fed74..e3c596a0 100644 --- a/mpls/BUILD.bazel +++ b/mpls/BUILD.bazel @@ -3,11 +3,17 @@ load("@io_bazel_rules_go//proto:go_proto_library.bzl", "go_proto_library") proto_library( name = "mpls_proto", srcs = ["mpls.proto"], + deps = [ + "//github.com/openconfig/reference/rpc/gnoi:gnoi_proto", + ], ) go_proto_library( name = "go_default_library", srcs = ["mpls.proto"], + deps = [ + "//github.com/openconfig/reference/rpc/gnoi:go_default_library" + ], visibility = ["//visibility:public"], rules_go_repo_only_for_internal_use = "@", has_services = 1, diff --git a/system/BUILD.bazel b/system/BUILD.bazel index b891d6e3..a57a8f47 100644 --- a/system/BUILD.bazel +++ b/system/BUILD.bazel @@ -4,7 +4,7 @@ proto_library( name = "system_proto", srcs = ["system.proto"], deps = [ - "//github.com/openconfig/gnoi:gnoi_proto", + "//github.com/openconfig/reference/rpc/gnoi:gnoi_proto", ], ) @@ -12,7 +12,7 @@ go_proto_library( name = "go_default_library", srcs = ["system.proto"], deps = [ - "//github.com/openconfig/gnoi:go_default_library" + "//github.com/openconfig/reference/rpc/gnoi:go_default_library" ], visibility = ["//visibility:public"], rules_go_repo_only_for_internal_use = "@", diff --git a/system/system.proto b/system/system.proto index 7c95d323..60df78ee 100644 --- a/system/system.proto +++ b/system/system.proto @@ -24,7 +24,7 @@ syntax = "proto3"; package gnoi.system; -import "github.com/openconfig/gnoi/types.proto"; +import "github.com/openconfig/reference/rpc/gnoi/types.proto"; // The gNOI service is a collection of operational RPC's that allow for the // management of a target outside of the configuration and telemetry pipeline. From df3f6d4d0eef074d03976e42e05cce9ae4f89b38 Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 17:00:18 +0530 Subject: [PATCH 234/238] Revert "Update to build to use the right gnoi protos" This reverts commit 27e81f5dbcf900550fda6b4943731c98ca9916cb. --- test/BUILD.bazel | 16 ++++++++-------- test/simple_test.go | 13 +++++++------ 2 files changed, 15 insertions(+), 14 deletions(-) diff --git a/test/BUILD.bazel b/test/BUILD.bazel index 3d53d7a8..2b065eeb 100644 --- a/test/BUILD.bazel +++ b/test/BUILD.bazel @@ -6,13 +6,13 @@ go_test( srcs = ["simple_test.go"], deps = [ "//github.com/golang/protobuf/proto:proto", - "//github.com/openconfig/gnoi:go_default_library", - "//github.com/openconfig/gnoi/bgp:go_default_library", - "//github.com/openconfig/gnoi/cert:go_default_library", - "//github.com/openconfig/gnoi/file:go_default_library", - "//github.com/openconfig/gnoi/interface:go_default_library", - "//github.com/openconfig/gnoi/layer2:go_default_library", - "//github.com/openconfig/gnoi/mpls:go_default_library", - "//github.com/openconfig/gnoi/system:go_default_library", + "//github.com/openconfig/reference/rpc/gnoi:go_default_library", + "//github.com/openconfig/reference/rpc/gnoi/bgp:go_default_library", + "//github.com/openconfig/reference/rpc/gnoi/cert:go_default_library", + "//github.com/openconfig/reference/rpc/gnoi/file:go_default_library", + "//github.com/openconfig/reference/rpc/gnoi/interface:go_default_library", + "//github.com/openconfig/reference/rpc/gnoi/layer2:go_default_library", + "//github.com/openconfig/reference/rpc/gnoi/mpls:go_default_library", + "//github.com/openconfig/reference/rpc/gnoi/system:go_default_library", ], ) diff --git a/test/simple_test.go b/test/simple_test.go index 5f26dbd6..d26176fe 100644 --- a/test/simple_test.go +++ b/test/simple_test.go @@ -4,8 +4,9 @@ import ( "testing" "github.com/golang/protobuf/proto/proto" - "github.com/openconfig/gnoi" - gbgp "github.com/openconfig/gnoi/bgp" + + gnoi "github.com/openconfig/reference/rpc/gnoi" + gbgp "github.com/openconfig/reference/rpc/gnoi/bgp" ) func TestGNOI(t *testing.T) { @@ -17,16 +18,16 @@ func TestGNOI(t *testing.T) { desc: "gnoi.Path", in: &gnoi.Path{ Origin: "oc", - Elem: []*gnoi.PathElem{{Name: "interfaces", Key: map[string]string{"name": "Ethernet1/1/0"}}}, + Elem: []*gnoi.PathElem{{name: "interfaces", key: map[string]string{"name": "Ethernet1/1/0"}}}, }, - want: "origin: \"oc\"\nelem: <\n name: \"interfaces\"\n key: <\n key: \"name\"\n value: \"Ethernet1/1/0\"\n >\n>\n", + want: "elements: \"foo\"\nelements: \"path\"\n", }, { desc: "gnoi.HashType", in: &gnoi.HashType{ - Method: gnoi.HashType_MD5, + Method: gnoi.HashMethod_MD5, Hash: []byte("foo"), }, - want: "method: MD5\nhash: \"foo\"\n", + want: "elements: \"foo\"\nelements: \"path\"\n", }, { desc: "bgp.ClearBGPNeighborRequest", in: &gbgp.ClearBGPNeighborRequest{ From d5ab4d38733cfe9022cde258b42e6366a931fe0d Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 17:00:19 +0530 Subject: [PATCH 235/238] Revert "squash! Update system set package to use streaming rpc Update build files Update gnoi.Path to compliant with gnmi.Path Update simple test to use new path" This reverts commit 79c5504504702a0e0c9a07d773b48bb1d7346692. --- file/BUILD.bazel | 6 ------ file/file.proto | 4 +--- system/system.proto | 16 +++++----------- test/BUILD | 18 ++++++++++++++++++ test/simple_test.go | 12 ++---------- types.proto | 18 +++--------------- 6 files changed, 29 insertions(+), 45 deletions(-) create mode 100644 test/BUILD diff --git a/file/BUILD.bazel b/file/BUILD.bazel index efe3a090..1a9026fa 100644 --- a/file/BUILD.bazel +++ b/file/BUILD.bazel @@ -3,17 +3,11 @@ load("@io_bazel_rules_go//proto:go_proto_library.bzl", "go_proto_library") proto_library( name = "file_proto", srcs = ["file.proto"], - deps = [ - "//github.com/openconfig/reference/rpc/gnoi:go_default_library" - ], ) go_proto_library( name = "go_default_library", srcs = ["file.proto"], - deps = [ - "//github.com/openconfig/reference/rpc/gnoi:go_default_library" - ], visibility = ["//visibility:public"], rules_go_repo_only_for_internal_use = "@", has_services = 1, diff --git a/file/file.proto b/file/file.proto index 84553edc..650099e3 100644 --- a/file/file.proto +++ b/file/file.proto @@ -18,8 +18,6 @@ syntax = "proto3"; package gnoi.file; -import "github.com/openconfig/reference/rpc/gnoi/types.proto"; - service File { // Get read and streams the contents of a file from the target. // The file is streamed by sequential messages, each containing up to @@ -75,7 +73,7 @@ message PutRequest { oneof request { Details open = 1; bytes contents = 2; - gnoi.HashType hash = 3; // MD5 checksum of the file. + bytes checksum = 3; // MD5 checksum of the file. } } diff --git a/system/system.proto b/system/system.proto index 60df78ee..23d78ee1 100644 --- a/system/system.proto +++ b/system/system.proto @@ -47,7 +47,7 @@ service System { // SetPackage places a software package (possibly including bootable images) // on the target. - rpc SetPackage(stream SetPackageRequest) returns (SetPackageResponse) {} + rpc SetPackage(SetPackageRequest) returns (SetPackageResponse) {} // SwitchControlProcessor will switch from the current route processor to the // provided route processor. If the current route processor is the same as the @@ -272,23 +272,17 @@ message TracerouteResponse { // Package defines a single package file to be placed on the target. message Package { string filename = 1; // Destination path and filename of the package. + bytes data = 2; // Contents of the package. + gnoi.HashType hash = 3; // Verification hash of data. string version = 4; // Version of the package. (vendor internal name) bool activate = 5; // For system packages this will take effect after reboot. } // SetPackageRequest will place the package onto the target and optionally mark -// it as the next bootable image. The initial message must be a package -// message containing the filename and information about the file. -// The final message must be a hash message contains the hash of the file -// contents. +// it as the next bootable image. message SetPackageRequest { - oneof request { - Package package = 1; - bytes contents = 2; - gnoi.HashType hash = 3; // Verification hash of data. - } + repeated Package packages = 1; } - message SetPackageResponse { } diff --git a/test/BUILD b/test/BUILD new file mode 100644 index 00000000..2b065eeb --- /dev/null +++ b/test/BUILD @@ -0,0 +1,18 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_test") + +go_test( + name = "simple_test", + size = "small", + srcs = ["simple_test.go"], + deps = [ + "//github.com/golang/protobuf/proto:proto", + "//github.com/openconfig/reference/rpc/gnoi:go_default_library", + "//github.com/openconfig/reference/rpc/gnoi/bgp:go_default_library", + "//github.com/openconfig/reference/rpc/gnoi/cert:go_default_library", + "//github.com/openconfig/reference/rpc/gnoi/file:go_default_library", + "//github.com/openconfig/reference/rpc/gnoi/interface:go_default_library", + "//github.com/openconfig/reference/rpc/gnoi/layer2:go_default_library", + "//github.com/openconfig/reference/rpc/gnoi/mpls:go_default_library", + "//github.com/openconfig/reference/rpc/gnoi/system:go_default_library", + ], +) diff --git a/test/simple_test.go b/test/simple_test.go index d26176fe..c423f365 100644 --- a/test/simple_test.go +++ b/test/simple_test.go @@ -15,17 +15,9 @@ func TestGNOI(t *testing.T) { in proto.Message want string }{{ - desc: "gnoi.Path", + desc: "gnoi", in: &gnoi.Path{ - Origin: "oc", - Elem: []*gnoi.PathElem{{name: "interfaces", key: map[string]string{"name": "Ethernet1/1/0"}}}, - }, - want: "elements: \"foo\"\nelements: \"path\"\n", - }, { - desc: "gnoi.HashType", - in: &gnoi.HashType{ - Method: gnoi.HashMethod_MD5, - Hash: []byte("foo"), + Elements: []string{"foo", "path"}, }, want: "elements: \"foo\"\nelements: \"path\"\n", }, { diff --git a/types.proto b/types.proto index 3b3ff11f..5df5735c 100644 --- a/types.proto +++ b/types.proto @@ -32,25 +32,13 @@ message HashType { UNSPECIFIED = 0; SHA256 = 1; SHA512 = 2; - MD5 = 3; } HashMethod method = 1; bytes hash = 2; } -// Path encodes a data tree path as a series of repeated strings, with -// each element of the path representing a data tree node name and the -// associated attributes. -// Reference: gNMI Specification Section 2.2.2. +// OpenConfig path representation of the target. +// eg. /interfaces/interface[name=et-1/0/0] message Path { - string origin = 2; // Label to disambiguate path. - repeated PathElem elem = 3; // Elements of the path. -} - -// PathElem encodes an element of a gNMI path, along with any attributes (keys) -// that may be associated with it. -// Reference: gNMI Specification Section 2.2.2. -message PathElem { - string name = 1; // The name of the element in the path. - map key = 2; // Map of key (attribute) name to value. + repeated string elements = 1; } From eff28d6f4973b366ac8cc972aa213ed92c2b6029 Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 17:02:35 +0530 Subject: [PATCH 236/238] Revert "Update system set package to use streaming rpc" This reverts commit 47d27386c556ec3440ae692e3c764328806db322. --- test/BUILD.bazel | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 test/BUILD.bazel diff --git a/test/BUILD.bazel b/test/BUILD.bazel deleted file mode 100644 index 2b065eeb..00000000 --- a/test/BUILD.bazel +++ /dev/null @@ -1,18 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_test") - -go_test( - name = "simple_test", - size = "small", - srcs = ["simple_test.go"], - deps = [ - "//github.com/golang/protobuf/proto:proto", - "//github.com/openconfig/reference/rpc/gnoi:go_default_library", - "//github.com/openconfig/reference/rpc/gnoi/bgp:go_default_library", - "//github.com/openconfig/reference/rpc/gnoi/cert:go_default_library", - "//github.com/openconfig/reference/rpc/gnoi/file:go_default_library", - "//github.com/openconfig/reference/rpc/gnoi/interface:go_default_library", - "//github.com/openconfig/reference/rpc/gnoi/layer2:go_default_library", - "//github.com/openconfig/reference/rpc/gnoi/mpls:go_default_library", - "//github.com/openconfig/reference/rpc/gnoi/system:go_default_library", - ], -) From 56eb7dc5f84005419908cb3fe4d228d0c57f37bf Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 13:27:21 +0530 Subject: [PATCH 237/238] Updated proto files. --- packet_capture/packet_capture.pb.go | 359 +++++++++++++++-------- packet_capture/packet_capture.proto | 71 ++++- packet_capture/packet_capture_grpc.pb.go | 16 +- 3 files changed, 300 insertions(+), 146 deletions(-) diff --git a/packet_capture/packet_capture.pb.go b/packet_capture/packet_capture.pb.go index 9b428c43..cc76922b 100644 --- a/packet_capture/packet_capture.pb.go +++ b/packet_capture/packet_capture.pb.go @@ -1,6 +1,6 @@ -// Code generated by protoc-gen-go. DO NOT EDIT +// Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.27.1 +// protoc-gen-go v1.28.1 // protoc v3.12.3 // source: packet_capture/packet_capture.proto @@ -169,18 +169,74 @@ func (Direction) EnumDescriptor() ([]byte, []int) { return file_packet_capture_packet_capture_proto_rawDescGZIP(), []int{2} } +type ChannelWidth int32 + +const ( + ChannelWidth_WIDTH_20MHz ChannelWidth = 0 + ChannelWidth_WIDTH_40MHz ChannelWidth = 1 + ChannelWidth_WIDTH_80MHz ChannelWidth = 2 + ChannelWidth_WIDTH_160MHz ChannelWidth = 3 +) + +// Enum value maps for ChannelWidth. +var ( + ChannelWidth_name = map[int32]string{ + 0: "WIDTH_20MHz", + 1: "WIDTH_40MHz", + 2: "WIDTH_80MHz", + 3: "WIDTH_160MHz", + } + ChannelWidth_value = map[string]int32{ + "WIDTH_20MHz": 0, + "WIDTH_40MHz": 1, + "WIDTH_80MHz": 2, + "WIDTH_160MHz": 3, + } +) + +func (x ChannelWidth) Enum() *ChannelWidth { + p := new(ChannelWidth) + *p = x + return p +} + +func (x ChannelWidth) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ChannelWidth) Descriptor() protoreflect.EnumDescriptor { + return file_packet_capture_packet_capture_proto_enumTypes[3].Descriptor() +} + +func (ChannelWidth) Type() protoreflect.EnumType { + return &file_packet_capture_packet_capture_proto_enumTypes[3] +} + +func (x ChannelWidth) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use ChannelWidth.Descriptor instead. +func (ChannelWidth) EnumDescriptor() ([]byte, []int) { + return file_packet_capture_packet_capture_proto_rawDescGZIP(), []int{3} +} + +// The capture is performed on the operating access radio(s) and it is not +// client impacting. type AccessCaptureType struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Operating band: 2.4G, 5G, 6G + // Operating band: 2.4G, 5G, 6G. OperatingBand []OperatingBand `protobuf:"varint,1,rep,packed,name=operating_band,json=operatingBand,proto3,enum=gnoi.pcap.OperatingBand" json:"operating_band,omitempty"` // Types that are assignable to FilterType: // *AccessCaptureType_Ssid // *AccessCaptureType_Mac FilterType isAccessCaptureType_FilterType `protobuf_oneof:"filter_type"` - // Capture packets in promiscuous mode + // Capture packets in promiscuous mode. When enabled, all possible packets + // meeting the criteria are captured. When disabled, only own tx/rx packets + // meeting the criteria are captured. PromiscuousMode bool `protobuf:"varint,4,opt,name=promiscuous_mode,json=promiscuousMode,proto3" json:"promiscuous_mode,omitempty"` } @@ -256,12 +312,12 @@ type isAccessCaptureType_FilterType interface { } type AccessCaptureType_Ssid struct { - // Optional, SSID of a VAP + // Optional, SSID of a VAP. Ssid string `protobuf:"bytes,2,opt,name=ssid,proto3,oneof"` } type AccessCaptureType_Mac struct { - // Optional, MAC addresss matching a BSSID or a client MAC + // Optional, MAC addresss matching a BSSID or a client MAC. Mac string `protobuf:"bytes,3,opt,name=mac,proto3,oneof"` } @@ -269,6 +325,9 @@ func (*AccessCaptureType_Ssid) isAccessCaptureType_FilterType() {} func (*AccessCaptureType_Mac) isAccessCaptureType_FilterType() {} +// A ScanCaptureType on a dedicated scan radio. If a dedicated scan radio does +// not exist, the device may turn an access radio(s) into scan radio(s), which +// may impact clients. type ScanCaptureType struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -316,15 +375,21 @@ func (x *ScanCaptureType) GetCombo() []*BandChannelCombo { return nil } +// BandChannelCombo specifies the bands and channels to capture on. type BandChannelCombo struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Operating band: 2.4G, 5G, 6G + // Operating band: 2.4G, 5G, 6G. OperatingBand OperatingBand `protobuf:"varint,1,opt,name=operating_band,json=operatingBand,proto3,enum=gnoi.pcap.OperatingBand" json:"operating_band,omitempty"` - // Channels + // Channels. Channel []string `protobuf:"bytes,2,rep,name=channel,proto3" json:"channel,omitempty"` + // Channel width: 20/40/80/160 MHz, if not specified defaults to 20MHz. + ChannelWidth ChannelWidth `protobuf:"varint,3,opt,name=channel_width,json=channelWidth,proto3,enum=gnoi.pcap.ChannelWidth" json:"channel_width,omitempty"` + // Each channel capture duration in milliseconds, if not specified + // defaults to something, supported by the platform. + DwellTime uint32 `protobuf:"varint,4,opt,name=dwell_time,json=dwellTime,proto3" json:"dwell_time,omitempty"` } func (x *BandChannelCombo) Reset() { @@ -373,6 +438,20 @@ func (x *BandChannelCombo) GetChannel() []string { return nil } +func (x *BandChannelCombo) GetChannelWidth() ChannelWidth { + if x != nil { + return x.ChannelWidth + } + return ChannelWidth_WIDTH_20MHz +} + +func (x *BandChannelCombo) GetDwellTime() uint32 { + if x != nil { + return x.DwellTime + } + return 0 +} + type Filter struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -387,8 +466,10 @@ type Filter struct { SrcNet string `protobuf:"bytes,2,opt,name=src_net,json=srcNet,proto3" json:"src_net,omitempty"` DestNet string `protobuf:"bytes,3,opt,name=dest_net,json=destNet,proto3" json:"dest_net,omitempty"` Protocol []Protocol `protobuf:"varint,4,rep,packed,name=protocol,proto3,enum=gnoi.pcap.Protocol" json:"protocol,omitempty"` - Port []uint32 `protobuf:"varint,5,rep,packed,name=port,proto3" json:"port,omitempty"` - Vlan []uint32 `protobuf:"varint,6,rep,packed,name=vlan,proto3" json:"vlan,omitempty"` + // The specific protocol port number to match, eg. HTTP=80. + Port []uint32 `protobuf:"varint,5,rep,packed,name=port,proto3" json:"port,omitempty"` + // A VLAN ID. + Vlan []uint32 `protobuf:"varint,6,rep,packed,name=vlan,proto3" json:"vlan,omitempty"` } func (x *Filter) Reset() { @@ -470,7 +551,7 @@ type WiredRequest struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Interface name + // Interface name. Ifname string `protobuf:"bytes,1,opt,name=ifname,proto3" json:"ifname,omitempty"` // The Direction to capture from, if not specified defaults to BOTH. Direction Direction `protobuf:"varint,2,opt,name=direction,proto3,enum=gnoi.pcap.Direction" json:"direction,omitempty"` @@ -554,10 +635,13 @@ type isWiredRequest_FilterType interface { } type WiredRequest_TcpdumpExpression struct { + // A tcpdump expression: https://www.tcpdump.org/manpages/pcap-filter.7.html + // if raw expressions are supported by the device. TcpdumpExpression string `protobuf:"bytes,3,opt,name=tcpdump_expression,json=tcpdumpExpression,proto3,oneof"` } type WiredRequest_Filter struct { + // A Filter as defined in a message. Filter *Filter `protobuf:"bytes,4,opt,name=filter,proto3,oneof"` } @@ -570,6 +654,14 @@ type WirelessRequest struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // A WirelessRequest may be on the access radio(s) or a dedicated scan + // radio(s). On a device with a dedicated scan radio, an AccessCaptureType or + // ScanCaptureType should not impact clients -- the access radios should not + // go off channel or stop servicing clients. On a device *without* a + // dedicated scan radio, an AccessCaptureType should not be client impacting. + // If ScanCaptureType is used on a device without a dedicated scan radio; the + // device MAY impact clients and honor the packet capture requirements. + // // Types that are assignable to CaptureType: // *WirelessRequest_AccessType // *WirelessRequest_ScanType @@ -634,12 +726,12 @@ type isWirelessRequest_CaptureType interface { } type WirelessRequest_AccessType struct { - // Access radio + // Access radio. AccessType *AccessCaptureType `protobuf:"bytes,1,opt,name=access_type,json=accessType,proto3,oneof"` } type WirelessRequest_ScanType struct { - // Scan radio + // Scan radio. ScanType *ScanCaptureType `protobuf:"bytes,2,opt,name=scan_type,json=scanType,proto3,oneof"` } @@ -656,12 +748,12 @@ type PcapRequest struct { // *PcapRequest_WiredRequest // *PcapRequest_WirelessRequest RequestType isPcapRequest_RequestType `protobuf_oneof:"request_type"` - // To trim the data during packet capture: 0 for entire packet + // Bytes to trim the data during packet capture: 0 for entire packet. TrimPayload uint32 `protobuf:"varint,3,opt,name=trim_payload,json=trimPayload,proto3" json:"trim_payload,omitempty"` // The number of pakets to capture, after which the capture will end; 0 for // for unlimited. PacketCount uint32 `protobuf:"varint,4,opt,name=packet_count,json=packetCount,proto3" json:"packet_count,omitempty"` - // Capture duration in nanosec; 0 for indefinite + // Capture duration in nanoseconds; 0 for indefinite. Duration uint64 `protobuf:"varint,5,opt,name=duration,proto3" json:"duration,omitempty"` } @@ -744,12 +836,12 @@ type isPcapRequest_RequestType interface { } type PcapRequest_WiredRequest struct { - // Wired capture request + // Wired capture request. WiredRequest *WiredRequest `protobuf:"bytes,1,opt,name=wired_request,json=wiredRequest,proto3,oneof"` } type PcapRequest_WirelessRequest struct { - // Wireless capture request + // Wireless capture request. WirelessRequest *WirelessRequest `protobuf:"bytes,2,opt,name=wireless_request,json=wirelessRequest,proto3,oneof"` } @@ -762,7 +854,7 @@ type Packet struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Packets + // The raw bytes making up the packet. Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` } @@ -810,6 +902,10 @@ type PcapResponse struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // A packet is the raw network packet that must be decoded. Libraries exist + // for different languages for decoding. + // Python: https://scapy.readthedocs.io/en/latest/api/scapy.layers.html + // GoLang: https://github.com/google/gopacket/blob/master/layers/layertypes.go Packets []*Packet `protobuf:"bytes,1,rep,name=packets,proto3" json:"packets,omitempty"` } @@ -874,86 +970,97 @@ var file_packet_capture_packet_capture_proto_rawDesc = []byte{ 0x0a, 0x05, 0x63, 0x6f, 0x6d, 0x62, 0x6f, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x70, 0x63, 0x61, 0x70, 0x2e, 0x42, 0x61, 0x6e, 0x64, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x43, 0x6f, 0x6d, 0x62, 0x6f, 0x52, 0x05, 0x63, 0x6f, 0x6d, 0x62, - 0x6f, 0x22, 0x6d, 0x0a, 0x10, 0x42, 0x61, 0x6e, 0x64, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, - 0x43, 0x6f, 0x6d, 0x62, 0x6f, 0x12, 0x3f, 0x0a, 0x0e, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, - 0x6e, 0x67, 0x5f, 0x62, 0x61, 0x6e, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x18, 0x2e, - 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x70, 0x63, 0x61, 0x70, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, - 0x69, 0x6e, 0x67, 0x42, 0x61, 0x6e, 0x64, 0x52, 0x0d, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, - 0x6e, 0x67, 0x42, 0x61, 0x6e, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, - 0x6c, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, - 0x22, 0xb6, 0x01, 0x0a, 0x06, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x1f, 0x0a, 0x0b, 0x66, - 0x69, 0x6c, 0x74, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x0a, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x17, 0x0a, 0x07, - 0x73, 0x72, 0x63, 0x5f, 0x6e, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, - 0x72, 0x63, 0x4e, 0x65, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x64, 0x65, 0x73, 0x74, 0x5f, 0x6e, 0x65, - 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x64, 0x65, 0x73, 0x74, 0x4e, 0x65, 0x74, - 0x12, 0x2f, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x04, 0x20, 0x03, - 0x28, 0x0e, 0x32, 0x13, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x70, 0x63, 0x61, 0x70, 0x2e, 0x50, - 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, - 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0d, 0x52, - 0x04, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x76, 0x6c, 0x61, 0x6e, 0x18, 0x06, 0x20, - 0x03, 0x28, 0x0d, 0x52, 0x04, 0x76, 0x6c, 0x61, 0x6e, 0x22, 0xc7, 0x01, 0x0a, 0x0c, 0x57, 0x69, - 0x72, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x69, 0x66, - 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x69, 0x66, 0x6e, 0x61, - 0x6d, 0x65, 0x12, 0x32, 0x0a, 0x09, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x14, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x70, 0x63, 0x61, - 0x70, 0x2e, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x09, 0x64, 0x69, 0x72, - 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2f, 0x0a, 0x12, 0x74, 0x63, 0x70, 0x64, 0x75, 0x6d, - 0x70, 0x5f, 0x65, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x09, 0x48, 0x00, 0x52, 0x11, 0x74, 0x63, 0x70, 0x64, 0x75, 0x6d, 0x70, 0x45, 0x78, 0x70, - 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x2b, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, - 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x70, - 0x63, 0x61, 0x70, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x48, 0x00, 0x52, 0x06, 0x66, 0x69, - 0x6c, 0x74, 0x65, 0x72, 0x42, 0x0d, 0x0a, 0x0b, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x5f, 0x74, - 0x79, 0x70, 0x65, 0x22, 0x9d, 0x01, 0x0a, 0x0f, 0x57, 0x69, 0x72, 0x65, 0x6c, 0x65, 0x73, 0x73, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3f, 0x0a, 0x0b, 0x61, 0x63, 0x63, 0x65, 0x73, - 0x73, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, - 0x6e, 0x6f, 0x69, 0x2e, 0x70, 0x63, 0x61, 0x70, 0x2e, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x43, - 0x61, 0x70, 0x74, 0x75, 0x72, 0x65, 0x54, 0x79, 0x70, 0x65, 0x48, 0x00, 0x52, 0x0a, 0x61, 0x63, - 0x63, 0x65, 0x73, 0x73, 0x54, 0x79, 0x70, 0x65, 0x12, 0x39, 0x0a, 0x09, 0x73, 0x63, 0x61, 0x6e, - 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6e, - 0x6f, 0x69, 0x2e, 0x70, 0x63, 0x61, 0x70, 0x2e, 0x53, 0x63, 0x61, 0x6e, 0x43, 0x61, 0x70, 0x74, - 0x75, 0x72, 0x65, 0x54, 0x79, 0x70, 0x65, 0x48, 0x00, 0x52, 0x08, 0x73, 0x63, 0x61, 0x6e, 0x54, - 0x79, 0x70, 0x65, 0x42, 0x0e, 0x0a, 0x0c, 0x63, 0x61, 0x70, 0x74, 0x75, 0x72, 0x65, 0x5f, 0x74, - 0x79, 0x70, 0x65, 0x22, 0x88, 0x02, 0x0a, 0x0b, 0x50, 0x63, 0x61, 0x70, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x3e, 0x0a, 0x0d, 0x77, 0x69, 0x72, 0x65, 0x64, 0x5f, 0x72, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6e, 0x6f, - 0x69, 0x2e, 0x70, 0x63, 0x61, 0x70, 0x2e, 0x57, 0x69, 0x72, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x0c, 0x77, 0x69, 0x72, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x47, 0x0a, 0x10, 0x77, 0x69, 0x72, 0x65, 0x6c, 0x65, 0x73, 0x73, 0x5f, - 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, - 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x70, 0x63, 0x61, 0x70, 0x2e, 0x57, 0x69, 0x72, 0x65, 0x6c, 0x65, - 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x0f, 0x77, 0x69, 0x72, - 0x65, 0x6c, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x21, 0x0a, 0x0c, - 0x74, 0x72, 0x69, 0x6d, 0x5f, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x0d, 0x52, 0x0b, 0x74, 0x72, 0x69, 0x6d, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, - 0x21, 0x0a, 0x0c, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, - 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0b, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x6f, 0x75, - 0x6e, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, - 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x0e, - 0x0a, 0x0c, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x22, 0x1c, - 0x0a, 0x06, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x3b, 0x0a, 0x0c, - 0x50, 0x63, 0x61, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2b, 0x0a, 0x07, - 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, - 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x70, 0x63, 0x61, 0x70, 0x2e, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, - 0x52, 0x07, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x2a, 0x44, 0x0a, 0x0d, 0x4f, 0x70, 0x65, - 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x42, 0x61, 0x6e, 0x64, 0x12, 0x0b, 0x0a, 0x07, 0x42, 0x41, - 0x4e, 0x44, 0x5f, 0x32, 0x47, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x42, 0x41, 0x4e, 0x44, 0x5f, - 0x35, 0x47, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x42, 0x41, 0x4e, 0x44, 0x5f, 0x36, 0x47, 0x10, - 0x02, 0x12, 0x0c, 0x0a, 0x08, 0x42, 0x41, 0x4e, 0x44, 0x5f, 0x41, 0x4c, 0x4c, 0x10, 0x03, 0x2a, - 0x1c, 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x07, 0x0a, 0x03, 0x54, - 0x43, 0x50, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x55, 0x44, 0x50, 0x10, 0x01, 0x2a, 0x25, 0x0a, - 0x09, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x06, 0x0a, 0x02, 0x52, 0x58, - 0x10, 0x00, 0x12, 0x06, 0x0a, 0x02, 0x54, 0x58, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x42, 0x4f, - 0x54, 0x48, 0x10, 0x02, 0x32, 0x4c, 0x0a, 0x0d, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x61, - 0x70, 0x74, 0x75, 0x72, 0x65, 0x12, 0x3b, 0x0a, 0x04, 0x50, 0x63, 0x61, 0x70, 0x12, 0x16, 0x2e, - 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x70, 0x63, 0x61, 0x70, 0x2e, 0x50, 0x63, 0x61, 0x70, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x70, 0x63, 0x61, - 0x70, 0x2e, 0x50, 0x63, 0x61, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, - 0x30, 0x01, 0x42, 0x21, 0x5a, 0x1f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, - 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x67, 0x6e, 0x6f, 0x69, - 0x2f, 0x70, 0x63, 0x61, 0x70, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x6f, 0x22, 0xca, 0x01, 0x0a, 0x10, 0x42, 0x61, 0x6e, 0x64, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, + 0x6c, 0x43, 0x6f, 0x6d, 0x62, 0x6f, 0x12, 0x3f, 0x0a, 0x0e, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, + 0x69, 0x6e, 0x67, 0x5f, 0x62, 0x61, 0x6e, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x18, + 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x70, 0x63, 0x61, 0x70, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, + 0x74, 0x69, 0x6e, 0x67, 0x42, 0x61, 0x6e, 0x64, 0x52, 0x0d, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, + 0x69, 0x6e, 0x67, 0x42, 0x61, 0x6e, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x68, 0x61, 0x6e, 0x6e, + 0x65, 0x6c, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, + 0x6c, 0x12, 0x3c, 0x0a, 0x0d, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x5f, 0x77, 0x69, 0x64, + 0x74, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x17, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, + 0x70, 0x63, 0x61, 0x70, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x57, 0x69, 0x64, 0x74, + 0x68, 0x52, 0x0c, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x57, 0x69, 0x64, 0x74, 0x68, 0x12, + 0x1d, 0x0a, 0x0a, 0x64, 0x77, 0x65, 0x6c, 0x6c, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x0d, 0x52, 0x09, 0x64, 0x77, 0x65, 0x6c, 0x6c, 0x54, 0x69, 0x6d, 0x65, 0x22, 0xb6, + 0x01, 0x0a, 0x06, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x1f, 0x0a, 0x0b, 0x66, 0x69, 0x6c, + 0x74, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, + 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x73, 0x72, + 0x63, 0x5f, 0x6e, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x72, 0x63, + 0x4e, 0x65, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x64, 0x65, 0x73, 0x74, 0x5f, 0x6e, 0x65, 0x74, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x64, 0x65, 0x73, 0x74, 0x4e, 0x65, 0x74, 0x12, 0x2f, + 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0e, + 0x32, 0x13, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x70, 0x63, 0x61, 0x70, 0x2e, 0x50, 0x72, 0x6f, + 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, + 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x04, 0x70, + 0x6f, 0x72, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x76, 0x6c, 0x61, 0x6e, 0x18, 0x06, 0x20, 0x03, 0x28, + 0x0d, 0x52, 0x04, 0x76, 0x6c, 0x61, 0x6e, 0x22, 0xc7, 0x01, 0x0a, 0x0c, 0x57, 0x69, 0x72, 0x65, + 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x69, 0x66, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x69, 0x66, 0x6e, 0x61, 0x6d, 0x65, + 0x12, 0x32, 0x0a, 0x09, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0e, 0x32, 0x14, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x70, 0x63, 0x61, 0x70, 0x2e, + 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x09, 0x64, 0x69, 0x72, 0x65, 0x63, + 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2f, 0x0a, 0x12, 0x74, 0x63, 0x70, 0x64, 0x75, 0x6d, 0x70, 0x5f, + 0x65, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, + 0x48, 0x00, 0x52, 0x11, 0x74, 0x63, 0x70, 0x64, 0x75, 0x6d, 0x70, 0x45, 0x78, 0x70, 0x72, 0x65, + 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x2b, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x70, 0x63, 0x61, + 0x70, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x48, 0x00, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, + 0x65, 0x72, 0x42, 0x0d, 0x0a, 0x0b, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x5f, 0x74, 0x79, 0x70, + 0x65, 0x22, 0x9d, 0x01, 0x0a, 0x0f, 0x57, 0x69, 0x72, 0x65, 0x6c, 0x65, 0x73, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3f, 0x0a, 0x0b, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, + 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6e, 0x6f, + 0x69, 0x2e, 0x70, 0x63, 0x61, 0x70, 0x2e, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x43, 0x61, 0x70, + 0x74, 0x75, 0x72, 0x65, 0x54, 0x79, 0x70, 0x65, 0x48, 0x00, 0x52, 0x0a, 0x61, 0x63, 0x63, 0x65, + 0x73, 0x73, 0x54, 0x79, 0x70, 0x65, 0x12, 0x39, 0x0a, 0x09, 0x73, 0x63, 0x61, 0x6e, 0x5f, 0x74, + 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6e, 0x6f, 0x69, + 0x2e, 0x70, 0x63, 0x61, 0x70, 0x2e, 0x53, 0x63, 0x61, 0x6e, 0x43, 0x61, 0x70, 0x74, 0x75, 0x72, + 0x65, 0x54, 0x79, 0x70, 0x65, 0x48, 0x00, 0x52, 0x08, 0x73, 0x63, 0x61, 0x6e, 0x54, 0x79, 0x70, + 0x65, 0x42, 0x0e, 0x0a, 0x0c, 0x63, 0x61, 0x70, 0x74, 0x75, 0x72, 0x65, 0x5f, 0x74, 0x79, 0x70, + 0x65, 0x22, 0x88, 0x02, 0x0a, 0x0b, 0x50, 0x63, 0x61, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x3e, 0x0a, 0x0d, 0x77, 0x69, 0x72, 0x65, 0x64, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, + 0x70, 0x63, 0x61, 0x70, 0x2e, 0x57, 0x69, 0x72, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x48, 0x00, 0x52, 0x0c, 0x77, 0x69, 0x72, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x47, 0x0a, 0x10, 0x77, 0x69, 0x72, 0x65, 0x6c, 0x65, 0x73, 0x73, 0x5f, 0x72, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6e, + 0x6f, 0x69, 0x2e, 0x70, 0x63, 0x61, 0x70, 0x2e, 0x57, 0x69, 0x72, 0x65, 0x6c, 0x65, 0x73, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x0f, 0x77, 0x69, 0x72, 0x65, 0x6c, + 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x74, 0x72, + 0x69, 0x6d, 0x5f, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, + 0x52, 0x0b, 0x74, 0x72, 0x69, 0x6d, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x21, 0x0a, + 0x0c, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x0d, 0x52, 0x0b, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x6f, 0x75, 0x6e, 0x74, + 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x04, 0x52, 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x0e, 0x0a, 0x0c, + 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x22, 0x1c, 0x0a, 0x06, + 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x3b, 0x0a, 0x0c, 0x50, 0x63, + 0x61, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2b, 0x0a, 0x07, 0x70, 0x61, + 0x63, 0x6b, 0x65, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x67, 0x6e, + 0x6f, 0x69, 0x2e, 0x70, 0x63, 0x61, 0x70, 0x2e, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x52, 0x07, + 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x2a, 0x44, 0x0a, 0x0d, 0x4f, 0x70, 0x65, 0x72, 0x61, + 0x74, 0x69, 0x6e, 0x67, 0x42, 0x61, 0x6e, 0x64, 0x12, 0x0b, 0x0a, 0x07, 0x42, 0x41, 0x4e, 0x44, + 0x5f, 0x32, 0x47, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x42, 0x41, 0x4e, 0x44, 0x5f, 0x35, 0x47, + 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x42, 0x41, 0x4e, 0x44, 0x5f, 0x36, 0x47, 0x10, 0x02, 0x12, + 0x0c, 0x0a, 0x08, 0x42, 0x41, 0x4e, 0x44, 0x5f, 0x41, 0x4c, 0x4c, 0x10, 0x03, 0x2a, 0x1c, 0x0a, + 0x08, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x07, 0x0a, 0x03, 0x54, 0x43, 0x50, + 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x55, 0x44, 0x50, 0x10, 0x01, 0x2a, 0x25, 0x0a, 0x09, 0x44, + 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x06, 0x0a, 0x02, 0x52, 0x58, 0x10, 0x00, + 0x12, 0x06, 0x0a, 0x02, 0x54, 0x58, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x42, 0x4f, 0x54, 0x48, + 0x10, 0x02, 0x2a, 0x53, 0x0a, 0x0c, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x57, 0x69, 0x64, + 0x74, 0x68, 0x12, 0x0f, 0x0a, 0x0b, 0x57, 0x49, 0x44, 0x54, 0x48, 0x5f, 0x32, 0x30, 0x4d, 0x48, + 0x7a, 0x10, 0x00, 0x12, 0x0f, 0x0a, 0x0b, 0x57, 0x49, 0x44, 0x54, 0x48, 0x5f, 0x34, 0x30, 0x4d, + 0x48, 0x7a, 0x10, 0x01, 0x12, 0x0f, 0x0a, 0x0b, 0x57, 0x49, 0x44, 0x54, 0x48, 0x5f, 0x38, 0x30, + 0x4d, 0x48, 0x7a, 0x10, 0x02, 0x12, 0x10, 0x0a, 0x0c, 0x57, 0x49, 0x44, 0x54, 0x48, 0x5f, 0x31, + 0x36, 0x30, 0x4d, 0x48, 0x7a, 0x10, 0x03, 0x32, 0x4c, 0x0a, 0x0d, 0x50, 0x61, 0x63, 0x6b, 0x65, + 0x74, 0x43, 0x61, 0x70, 0x74, 0x75, 0x72, 0x65, 0x12, 0x3b, 0x0a, 0x04, 0x50, 0x63, 0x61, 0x70, + 0x12, 0x16, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x70, 0x63, 0x61, 0x70, 0x2e, 0x50, 0x63, 0x61, + 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, + 0x70, 0x63, 0x61, 0x70, 0x2e, 0x50, 0x63, 0x61, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x00, 0x30, 0x01, 0x42, 0x21, 0x5a, 0x1f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, + 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x67, + 0x6e, 0x6f, 0x69, 0x2f, 0x70, 0x63, 0x61, 0x70, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -968,41 +1075,43 @@ func file_packet_capture_packet_capture_proto_rawDescGZIP() []byte { return file_packet_capture_packet_capture_proto_rawDescData } -var file_packet_capture_packet_capture_proto_enumTypes = make([]protoimpl.EnumInfo, 3) +var file_packet_capture_packet_capture_proto_enumTypes = make([]protoimpl.EnumInfo, 4) var file_packet_capture_packet_capture_proto_msgTypes = make([]protoimpl.MessageInfo, 9) var file_packet_capture_packet_capture_proto_goTypes = []interface{}{ (OperatingBand)(0), // 0: gnoi.pcap.OperatingBand (Protocol)(0), // 1: gnoi.pcap.Protocol (Direction)(0), // 2: gnoi.pcap.Direction - (*AccessCaptureType)(nil), // 3: gnoi.pcap.AccessCaptureType - (*ScanCaptureType)(nil), // 4: gnoi.pcap.ScanCaptureType - (*BandChannelCombo)(nil), // 5: gnoi.pcap.BandChannelCombo - (*Filter)(nil), // 6: gnoi.pcap.Filter - (*WiredRequest)(nil), // 7: gnoi.pcap.WiredRequest - (*WirelessRequest)(nil), // 8: gnoi.pcap.WirelessRequest - (*PcapRequest)(nil), // 9: gnoi.pcap.PcapRequest - (*Packet)(nil), // 10: gnoi.pcap.Packet - (*PcapResponse)(nil), // 11: gnoi.pcap.PcapResponse + (ChannelWidth)(0), // 3: gnoi.pcap.ChannelWidth + (*AccessCaptureType)(nil), // 4: gnoi.pcap.AccessCaptureType + (*ScanCaptureType)(nil), // 5: gnoi.pcap.ScanCaptureType + (*BandChannelCombo)(nil), // 6: gnoi.pcap.BandChannelCombo + (*Filter)(nil), // 7: gnoi.pcap.Filter + (*WiredRequest)(nil), // 8: gnoi.pcap.WiredRequest + (*WirelessRequest)(nil), // 9: gnoi.pcap.WirelessRequest + (*PcapRequest)(nil), // 10: gnoi.pcap.PcapRequest + (*Packet)(nil), // 11: gnoi.pcap.Packet + (*PcapResponse)(nil), // 12: gnoi.pcap.PcapResponse } var file_packet_capture_packet_capture_proto_depIdxs = []int32{ 0, // 0: gnoi.pcap.AccessCaptureType.operating_band:type_name -> gnoi.pcap.OperatingBand - 5, // 1: gnoi.pcap.ScanCaptureType.combo:type_name -> gnoi.pcap.BandChannelCombo + 6, // 1: gnoi.pcap.ScanCaptureType.combo:type_name -> gnoi.pcap.BandChannelCombo 0, // 2: gnoi.pcap.BandChannelCombo.operating_band:type_name -> gnoi.pcap.OperatingBand - 1, // 3: gnoi.pcap.Filter.protocol:type_name -> gnoi.pcap.Protocol - 2, // 4: gnoi.pcap.WiredRequest.direction:type_name -> gnoi.pcap.Direction - 6, // 5: gnoi.pcap.WiredRequest.filter:type_name -> gnoi.pcap.Filter - 3, // 6: gnoi.pcap.WirelessRequest.access_type:type_name -> gnoi.pcap.AccessCaptureType - 4, // 7: gnoi.pcap.WirelessRequest.scan_type:type_name -> gnoi.pcap.ScanCaptureType - 7, // 8: gnoi.pcap.PcapRequest.wired_request:type_name -> gnoi.pcap.WiredRequest - 8, // 9: gnoi.pcap.PcapRequest.wireless_request:type_name -> gnoi.pcap.WirelessRequest - 10, // 10: gnoi.pcap.PcapResponse.packets:type_name -> gnoi.pcap.Packet - 9, // 11: gnoi.pcap.PacketCapture.Pcap:input_type -> gnoi.pcap.PcapRequest - 11, // 12: gnoi.pcap.PacketCapture.Pcap:output_type -> gnoi.pcap.PcapResponse - 12, // [12:13] is the sub-list for method output_type - 11, // [11:12] is the sub-list for method input_type - 11, // [11:11] is the sub-list for extension type_name - 11, // [11:11] is the sub-list for extension extendee - 0, // [0:11] is the sub-list for field type_name + 3, // 3: gnoi.pcap.BandChannelCombo.channel_width:type_name -> gnoi.pcap.ChannelWidth + 1, // 4: gnoi.pcap.Filter.protocol:type_name -> gnoi.pcap.Protocol + 2, // 5: gnoi.pcap.WiredRequest.direction:type_name -> gnoi.pcap.Direction + 7, // 6: gnoi.pcap.WiredRequest.filter:type_name -> gnoi.pcap.Filter + 4, // 7: gnoi.pcap.WirelessRequest.access_type:type_name -> gnoi.pcap.AccessCaptureType + 5, // 8: gnoi.pcap.WirelessRequest.scan_type:type_name -> gnoi.pcap.ScanCaptureType + 8, // 9: gnoi.pcap.PcapRequest.wired_request:type_name -> gnoi.pcap.WiredRequest + 9, // 10: gnoi.pcap.PcapRequest.wireless_request:type_name -> gnoi.pcap.WirelessRequest + 11, // 11: gnoi.pcap.PcapResponse.packets:type_name -> gnoi.pcap.Packet + 10, // 12: gnoi.pcap.PacketCapture.Pcap:input_type -> gnoi.pcap.PcapRequest + 12, // 13: gnoi.pcap.PacketCapture.Pcap:output_type -> gnoi.pcap.PcapResponse + 13, // [13:14] is the sub-list for method output_type + 12, // [12:13] is the sub-list for method input_type + 12, // [12:12] is the sub-list for extension type_name + 12, // [12:12] is the sub-list for extension extendee + 0, // [0:12] is the sub-list for field type_name } func init() { file_packet_capture_packet_capture_proto_init() } @@ -1141,7 +1250,7 @@ func file_packet_capture_packet_capture_proto_init() { File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_packet_capture_packet_capture_proto_rawDesc, - NumEnums: 3, + NumEnums: 4, NumMessages: 9, NumExtensions: 0, NumServices: 1, diff --git a/packet_capture/packet_capture.proto b/packet_capture/packet_capture.proto index 786ef061..851b460e 100644 --- a/packet_capture/packet_capture.proto +++ b/packet_capture/packet_capture.proto @@ -6,8 +6,11 @@ option go_package = "github.com/openconfig/gnoi/pcap"; // The PacketCapture service exported by targets. service PacketCapture { - // Pcap starts packet capture on the target and streams back - // the results. + // Pcap starts packet capture on the target and streams back the results as + // raw data packets that should be appropriately decoded by the receiver. + // For example, most commonly an Ethernet decoder would be used for a typical + // WiredRequest. A WirelessRequest may require a Prism decoder or + // related 802.11 decoder. rpc Pcap(PcapRequest) returns (stream PcapResponse) {} } @@ -31,28 +34,48 @@ enum Direction { BOTH = 2; } +enum ChannelWidth { + WIDTH_20MHz = 0; + WIDTH_40MHz = 1; + WIDTH_80MHz = 2; + WIDTH_160MHz = 3; +} + +// The capture is performed on the operating access radio(s) and it is not +// client impacting. message AccessCaptureType { - // Operating band: 2.4G, 5G, 6G + // Operating band: 2.4G, 5G, 6G. repeated OperatingBand operating_band = 1; oneof filter_type { - // Optional, SSID of a VAP + // Optional, SSID of a VAP. string ssid = 2; - // Optional, MAC addresss matching a BSSID or a client MAC + // Optional, MAC addresss matching a BSSID or a client MAC. string mac = 3; } - // Capture packets in promiscuous mode + // Capture packets in promiscuous mode. When enabled, all possible packets + // meeting the criteria are captured. When disabled, only own tx/rx packets + // meeting the criteria are captured. bool promiscuous_mode = 4; } +// A ScanCaptureType on a dedicated scan radio. If a dedicated scan radio does +// not exist, the device may turn an access radio(s) into scan radio(s), which +// may impact clients. message ScanCaptureType { repeated BandChannelCombo combo = 1; } +// BandChannelCombo specifies the bands and channels to capture on. message BandChannelCombo { - // Operating band: 2.4G, 5G, 6G + // Operating band: 2.4G, 5G, 6G. OperatingBand operating_band = 1; - // Channels + // Channels. repeated string channel = 2; + // Channel width: 20/40/80/160 MHz, if not specified defaults to 20MHz. + ChannelWidth channel_width = 3; + // Each channel capture duration in milliseconds, if not specified + // defaults to something, supported by the platform. + uint32 dwell_time = 4; } message Filter { @@ -67,52 +90,68 @@ message Filter { string src_net = 2; string dest_net = 3; repeated Protocol protocol = 4; + // The specific protocol port number to match, eg. HTTP=80. repeated uint32 port = 5; + // A VLAN ID. repeated uint32 vlan = 6; } message WiredRequest { - // Interface name + // Interface name. string ifname = 1; // The Direction to capture from, if not specified defaults to BOTH. Direction direction = 2; // Filtering based on protocols. oneof filter_type { + // A tcpdump expression: https://www.tcpdump.org/manpages/pcap-filter.7.html + // if raw expressions are supported by the device. string tcpdump_expression = 3; + // A Filter as defined in a message. Filter filter = 4; } } message WirelessRequest { + // A WirelessRequest may be on the access radio(s) or a dedicated scan + // radio(s). On a device with a dedicated scan radio, an AccessCaptureType or + // ScanCaptureType should not impact clients -- the access radios should not + // go off channel or stop servicing clients. On a device *without* a + // dedicated scan radio, an AccessCaptureType should not be client impacting. + // If ScanCaptureType is used on a device without a dedicated scan radio; the + // device MAY impact clients and honor the packet capture requirements. oneof capture_type { - // Access radio + // Access radio. AccessCaptureType access_type = 1; - // Scan radio + // Scan radio. ScanCaptureType scan_type = 2; } } message PcapRequest { oneof request_type { - // Wired capture request + // Wired capture request. WiredRequest wired_request = 1; - // Wireless capture request + // Wireless capture request. WirelessRequest wireless_request = 2; } - // To trim the data during packet capture: 0 for entire packet + // Bytes to trim the data during packet capture: 0 for entire packet. uint32 trim_payload = 3; // The number of pakets to capture, after which the capture will end; 0 for // for unlimited. uint32 packet_count = 4; - // Capture duration in nanosec; 0 for indefinite + // Capture duration in nanoseconds; 0 for indefinite. uint64 duration = 5; } message Packet { - // Packets + // The raw bytes making up the packet. bytes data = 1; } message PcapResponse { + // A packet is the raw network packet that must be decoded. Libraries exist + // for different languages for decoding. + // Python: https://scapy.readthedocs.io/en/latest/api/scapy.layers.html + // GoLang: https://github.com/google/gopacket/blob/master/layers/layertypes.go repeated Packet packets = 1; } diff --git a/packet_capture/packet_capture_grpc.pb.go b/packet_capture/packet_capture_grpc.pb.go index 2eb5dce8..a18a0d81 100644 --- a/packet_capture/packet_capture_grpc.pb.go +++ b/packet_capture/packet_capture_grpc.pb.go @@ -1,4 +1,4 @@ -// Code generated by protoc-gen-go-grpc. DO NOT EDIT +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.2.0 // - protoc v3.12.3 @@ -22,8 +22,11 @@ const _ = grpc.SupportPackageIsVersion7 // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. type PacketCaptureClient interface { - // Pcap starts packet capture on the target and streams back - // the results. + // Pcap starts packet capture on the target and streams back the results as + // raw data packets that should be appropriately decoded by the receiver. + // For example, most commonly an Ethernet decoder would be used for a typical + // WiredRequest. A WirelessRequest may require a Prism decoder or + // related 802.11 decoder. Pcap(ctx context.Context, in *PcapRequest, opts ...grpc.CallOption) (PacketCapture_PcapClient, error) } @@ -71,8 +74,11 @@ func (x *packetCapturePcapClient) Recv() (*PcapResponse, error) { // All implementations must embed UnimplementedPacketCaptureServer // for forward compatibility type PacketCaptureServer interface { - // Pcap starts packet capture on the target and streams back - // the results. + // Pcap starts packet capture on the target and streams back the results as + // raw data packets that should be appropriately decoded by the receiver. + // For example, most commonly an Ethernet decoder would be used for a typical + // WiredRequest. A WirelessRequest may require a Prism decoder or + // related 802.11 decoder. Pcap(*PcapRequest, PacketCapture_PcapServer) error mustEmbedUnimplementedPacketCaptureServer() } From 0f5f2258891eeee6c2d5409520e63160a56b1664 Mon Sep 17 00:00:00 2001 From: Raj998 Date: Mon, 6 Jun 2022 13:27:21 +0530 Subject: [PATCH 238/238] Updated proto files. --- packet_capture/packet_capture.pb.go | 445 ++++++++++++++++------------ packet_capture/packet_capture.proto | 35 ++- 2 files changed, 276 insertions(+), 204 deletions(-) diff --git a/packet_capture/packet_capture.pb.go b/packet_capture/packet_capture.pb.go index cc76922b..e501a3ce 100644 --- a/packet_capture/packet_capture.pb.go +++ b/packet_capture/packet_capture.pb.go @@ -172,25 +172,25 @@ func (Direction) EnumDescriptor() ([]byte, []int) { type ChannelWidth int32 const ( - ChannelWidth_WIDTH_20MHz ChannelWidth = 0 - ChannelWidth_WIDTH_40MHz ChannelWidth = 1 - ChannelWidth_WIDTH_80MHz ChannelWidth = 2 - ChannelWidth_WIDTH_160MHz ChannelWidth = 3 + ChannelWidth_WIDTH_20MHZ ChannelWidth = 0 + ChannelWidth_WIDTH_40MHZ ChannelWidth = 1 + ChannelWidth_WIDTH_80MHZ ChannelWidth = 2 + ChannelWidth_WIDTH_160MHZ ChannelWidth = 3 ) // Enum value maps for ChannelWidth. var ( ChannelWidth_name = map[int32]string{ - 0: "WIDTH_20MHz", - 1: "WIDTH_40MHz", - 2: "WIDTH_80MHz", - 3: "WIDTH_160MHz", + 0: "WIDTH_20MHZ", + 1: "WIDTH_40MHZ", + 2: "WIDTH_80MHZ", + 3: "WIDTH_160MHZ", } ChannelWidth_value = map[string]int32{ - "WIDTH_20MHz": 0, - "WIDTH_40MHz": 1, - "WIDTH_80MHz": 2, - "WIDTH_160MHz": 3, + "WIDTH_20MHZ": 0, + "WIDTH_40MHZ": 1, + "WIDTH_80MHZ": 2, + "WIDTH_160MHZ": 3, } ) @@ -325,19 +325,19 @@ func (*AccessCaptureType_Ssid) isAccessCaptureType_FilterType() {} func (*AccessCaptureType_Mac) isAccessCaptureType_FilterType() {} -// A ScanCaptureType on a dedicated scan radio. If a dedicated scan radio does -// not exist, the device may turn an access radio(s) into scan radio(s), which -// may impact clients. -type ScanCaptureType struct { +type ChannelInfo struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Combo []*BandChannelCombo `protobuf:"bytes,1,rep,name=combo,proto3" json:"combo,omitempty"` + // Channels. + Channel string `protobuf:"bytes,1,opt,name=channel,proto3" json:"channel,omitempty"` + // Channel width: 20/40/80/160 MHz, if not specified defaults to 20MHz. + ChannelWidth ChannelWidth `protobuf:"varint,2,opt,name=channel_width,json=channelWidth,proto3,enum=gnoi.pcap.ChannelWidth" json:"channel_width,omitempty"` } -func (x *ScanCaptureType) Reset() { - *x = ScanCaptureType{} +func (x *ChannelInfo) Reset() { + *x = ChannelInfo{} if protoimpl.UnsafeEnabled { mi := &file_packet_capture_packet_capture_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -345,13 +345,13 @@ func (x *ScanCaptureType) Reset() { } } -func (x *ScanCaptureType) String() string { +func (x *ChannelInfo) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ScanCaptureType) ProtoMessage() {} +func (*ChannelInfo) ProtoMessage() {} -func (x *ScanCaptureType) ProtoReflect() protoreflect.Message { +func (x *ChannelInfo) ProtoReflect() protoreflect.Message { mi := &file_packet_capture_packet_capture_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -363,16 +363,23 @@ func (x *ScanCaptureType) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ScanCaptureType.ProtoReflect.Descriptor instead. -func (*ScanCaptureType) Descriptor() ([]byte, []int) { +// Deprecated: Use ChannelInfo.ProtoReflect.Descriptor instead. +func (*ChannelInfo) Descriptor() ([]byte, []int) { return file_packet_capture_packet_capture_proto_rawDescGZIP(), []int{1} } -func (x *ScanCaptureType) GetCombo() []*BandChannelCombo { +func (x *ChannelInfo) GetChannel() string { if x != nil { - return x.Combo + return x.Channel } - return nil + return "" +} + +func (x *ChannelInfo) GetChannelWidth() ChannelWidth { + if x != nil { + return x.ChannelWidth + } + return ChannelWidth_WIDTH_20MHZ } // BandChannelCombo specifies the bands and channels to capture on. @@ -383,13 +390,8 @@ type BandChannelCombo struct { // Operating band: 2.4G, 5G, 6G. OperatingBand OperatingBand `protobuf:"varint,1,opt,name=operating_band,json=operatingBand,proto3,enum=gnoi.pcap.OperatingBand" json:"operating_band,omitempty"` - // Channels. - Channel []string `protobuf:"bytes,2,rep,name=channel,proto3" json:"channel,omitempty"` - // Channel width: 20/40/80/160 MHz, if not specified defaults to 20MHz. - ChannelWidth ChannelWidth `protobuf:"varint,3,opt,name=channel_width,json=channelWidth,proto3,enum=gnoi.pcap.ChannelWidth" json:"channel_width,omitempty"` - // Each channel capture duration in milliseconds, if not specified - // defaults to something, supported by the platform. - DwellTime uint32 `protobuf:"varint,4,opt,name=dwell_time,json=dwellTime,proto3" json:"dwell_time,omitempty"` + // Channel Info. + ChannelInfo []*ChannelInfo `protobuf:"bytes,2,rep,name=channel_info,json=channelInfo,proto3" json:"channel_info,omitempty"` } func (x *BandChannelCombo) Reset() { @@ -431,21 +433,67 @@ func (x *BandChannelCombo) GetOperatingBand() OperatingBand { return OperatingBand_BAND_2G } -func (x *BandChannelCombo) GetChannel() []string { +func (x *BandChannelCombo) GetChannelInfo() []*ChannelInfo { if x != nil { - return x.Channel + return x.ChannelInfo } return nil } -func (x *BandChannelCombo) GetChannelWidth() ChannelWidth { +// A ScanCaptureType on a dedicated scan radio. If a dedicated scan radio does +// not exist, the device may turn an access radio(s) into scan radio(s), which +// may impact clients. +type ScanCaptureType struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Combo []*BandChannelCombo `protobuf:"bytes,1,rep,name=combo,proto3" json:"combo,omitempty"` + // Channel capture duration in nanoseconds, if not specified + // defaults to something, supported by the platform. + DwellTime uint64 `protobuf:"varint,2,opt,name=dwell_time,json=dwellTime,proto3" json:"dwell_time,omitempty"` +} + +func (x *ScanCaptureType) Reset() { + *x = ScanCaptureType{} + if protoimpl.UnsafeEnabled { + mi := &file_packet_capture_packet_capture_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ScanCaptureType) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ScanCaptureType) ProtoMessage() {} + +func (x *ScanCaptureType) ProtoReflect() protoreflect.Message { + mi := &file_packet_capture_packet_capture_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ScanCaptureType.ProtoReflect.Descriptor instead. +func (*ScanCaptureType) Descriptor() ([]byte, []int) { + return file_packet_capture_packet_capture_proto_rawDescGZIP(), []int{3} +} + +func (x *ScanCaptureType) GetCombo() []*BandChannelCombo { if x != nil { - return x.ChannelWidth + return x.Combo } - return ChannelWidth_WIDTH_20MHz + return nil } -func (x *BandChannelCombo) GetDwellTime() uint32 { +func (x *ScanCaptureType) GetDwellTime() uint64 { if x != nil { return x.DwellTime } @@ -475,7 +523,7 @@ type Filter struct { func (x *Filter) Reset() { *x = Filter{} if protoimpl.UnsafeEnabled { - mi := &file_packet_capture_packet_capture_proto_msgTypes[3] + mi := &file_packet_capture_packet_capture_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -488,7 +536,7 @@ func (x *Filter) String() string { func (*Filter) ProtoMessage() {} func (x *Filter) ProtoReflect() protoreflect.Message { - mi := &file_packet_capture_packet_capture_proto_msgTypes[3] + mi := &file_packet_capture_packet_capture_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -501,7 +549,7 @@ func (x *Filter) ProtoReflect() protoreflect.Message { // Deprecated: Use Filter.ProtoReflect.Descriptor instead. func (*Filter) Descriptor() ([]byte, []int) { - return file_packet_capture_packet_capture_proto_rawDescGZIP(), []int{3} + return file_packet_capture_packet_capture_proto_rawDescGZIP(), []int{4} } func (x *Filter) GetFilterName() string { @@ -566,7 +614,7 @@ type WiredRequest struct { func (x *WiredRequest) Reset() { *x = WiredRequest{} if protoimpl.UnsafeEnabled { - mi := &file_packet_capture_packet_capture_proto_msgTypes[4] + mi := &file_packet_capture_packet_capture_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -579,7 +627,7 @@ func (x *WiredRequest) String() string { func (*WiredRequest) ProtoMessage() {} func (x *WiredRequest) ProtoReflect() protoreflect.Message { - mi := &file_packet_capture_packet_capture_proto_msgTypes[4] + mi := &file_packet_capture_packet_capture_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -592,7 +640,7 @@ func (x *WiredRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use WiredRequest.ProtoReflect.Descriptor instead. func (*WiredRequest) Descriptor() ([]byte, []int) { - return file_packet_capture_packet_capture_proto_rawDescGZIP(), []int{4} + return file_packet_capture_packet_capture_proto_rawDescGZIP(), []int{5} } func (x *WiredRequest) GetIfname() string { @@ -671,7 +719,7 @@ type WirelessRequest struct { func (x *WirelessRequest) Reset() { *x = WirelessRequest{} if protoimpl.UnsafeEnabled { - mi := &file_packet_capture_packet_capture_proto_msgTypes[5] + mi := &file_packet_capture_packet_capture_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -684,7 +732,7 @@ func (x *WirelessRequest) String() string { func (*WirelessRequest) ProtoMessage() {} func (x *WirelessRequest) ProtoReflect() protoreflect.Message { - mi := &file_packet_capture_packet_capture_proto_msgTypes[5] + mi := &file_packet_capture_packet_capture_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -697,7 +745,7 @@ func (x *WirelessRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use WirelessRequest.ProtoReflect.Descriptor instead. func (*WirelessRequest) Descriptor() ([]byte, []int) { - return file_packet_capture_packet_capture_proto_rawDescGZIP(), []int{5} + return file_packet_capture_packet_capture_proto_rawDescGZIP(), []int{6} } func (m *WirelessRequest) GetCaptureType() isWirelessRequest_CaptureType { @@ -760,7 +808,7 @@ type PcapRequest struct { func (x *PcapRequest) Reset() { *x = PcapRequest{} if protoimpl.UnsafeEnabled { - mi := &file_packet_capture_packet_capture_proto_msgTypes[6] + mi := &file_packet_capture_packet_capture_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -773,7 +821,7 @@ func (x *PcapRequest) String() string { func (*PcapRequest) ProtoMessage() {} func (x *PcapRequest) ProtoReflect() protoreflect.Message { - mi := &file_packet_capture_packet_capture_proto_msgTypes[6] + mi := &file_packet_capture_packet_capture_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -786,7 +834,7 @@ func (x *PcapRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use PcapRequest.ProtoReflect.Descriptor instead. func (*PcapRequest) Descriptor() ([]byte, []int) { - return file_packet_capture_packet_capture_proto_rawDescGZIP(), []int{6} + return file_packet_capture_packet_capture_proto_rawDescGZIP(), []int{7} } func (m *PcapRequest) GetRequestType() isPcapRequest_RequestType { @@ -861,7 +909,7 @@ type Packet struct { func (x *Packet) Reset() { *x = Packet{} if protoimpl.UnsafeEnabled { - mi := &file_packet_capture_packet_capture_proto_msgTypes[7] + mi := &file_packet_capture_packet_capture_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -874,7 +922,7 @@ func (x *Packet) String() string { func (*Packet) ProtoMessage() {} func (x *Packet) ProtoReflect() protoreflect.Message { - mi := &file_packet_capture_packet_capture_proto_msgTypes[7] + mi := &file_packet_capture_packet_capture_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -887,7 +935,7 @@ func (x *Packet) ProtoReflect() protoreflect.Message { // Deprecated: Use Packet.ProtoReflect.Descriptor instead. func (*Packet) Descriptor() ([]byte, []int) { - return file_packet_capture_packet_capture_proto_rawDescGZIP(), []int{7} + return file_packet_capture_packet_capture_proto_rawDescGZIP(), []int{8} } func (x *Packet) GetData() []byte { @@ -912,7 +960,7 @@ type PcapResponse struct { func (x *PcapResponse) Reset() { *x = PcapResponse{} if protoimpl.UnsafeEnabled { - mi := &file_packet_capture_packet_capture_proto_msgTypes[8] + mi := &file_packet_capture_packet_capture_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -925,7 +973,7 @@ func (x *PcapResponse) String() string { func (*PcapResponse) ProtoMessage() {} func (x *PcapResponse) ProtoReflect() protoreflect.Message { - mi := &file_packet_capture_packet_capture_proto_msgTypes[8] + mi := &file_packet_capture_packet_capture_proto_msgTypes[9] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -938,7 +986,7 @@ func (x *PcapResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use PcapResponse.ProtoReflect.Descriptor instead. func (*PcapResponse) Descriptor() ([]byte, []int) { - return file_packet_capture_packet_capture_proto_rawDescGZIP(), []int{8} + return file_packet_capture_packet_capture_proto_rawDescGZIP(), []int{9} } func (x *PcapResponse) GetPackets() []*Packet { @@ -965,102 +1013,107 @@ var file_packet_capture_packet_capture_proto_rawDesc = []byte{ 0x63, 0x12, 0x29, 0x0a, 0x10, 0x70, 0x72, 0x6f, 0x6d, 0x69, 0x73, 0x63, 0x75, 0x6f, 0x75, 0x73, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0f, 0x70, 0x72, 0x6f, 0x6d, 0x69, 0x73, 0x63, 0x75, 0x6f, 0x75, 0x73, 0x4d, 0x6f, 0x64, 0x65, 0x42, 0x0d, 0x0a, 0x0b, - 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x22, 0x44, 0x0a, 0x0f, 0x53, - 0x63, 0x61, 0x6e, 0x43, 0x61, 0x70, 0x74, 0x75, 0x72, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x31, - 0x0a, 0x05, 0x63, 0x6f, 0x6d, 0x62, 0x6f, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, - 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x70, 0x63, 0x61, 0x70, 0x2e, 0x42, 0x61, 0x6e, 0x64, 0x43, 0x68, - 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x43, 0x6f, 0x6d, 0x62, 0x6f, 0x52, 0x05, 0x63, 0x6f, 0x6d, 0x62, - 0x6f, 0x22, 0xca, 0x01, 0x0a, 0x10, 0x42, 0x61, 0x6e, 0x64, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, - 0x6c, 0x43, 0x6f, 0x6d, 0x62, 0x6f, 0x12, 0x3f, 0x0a, 0x0e, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, - 0x69, 0x6e, 0x67, 0x5f, 0x62, 0x61, 0x6e, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x18, - 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x70, 0x63, 0x61, 0x70, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, - 0x74, 0x69, 0x6e, 0x67, 0x42, 0x61, 0x6e, 0x64, 0x52, 0x0d, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, - 0x69, 0x6e, 0x67, 0x42, 0x61, 0x6e, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x68, 0x61, 0x6e, 0x6e, - 0x65, 0x6c, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, - 0x6c, 0x12, 0x3c, 0x0a, 0x0d, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x5f, 0x77, 0x69, 0x64, - 0x74, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x17, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, - 0x70, 0x63, 0x61, 0x70, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x57, 0x69, 0x64, 0x74, - 0x68, 0x52, 0x0c, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x57, 0x69, 0x64, 0x74, 0x68, 0x12, - 0x1d, 0x0a, 0x0a, 0x64, 0x77, 0x65, 0x6c, 0x6c, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, - 0x01, 0x28, 0x0d, 0x52, 0x09, 0x64, 0x77, 0x65, 0x6c, 0x6c, 0x54, 0x69, 0x6d, 0x65, 0x22, 0xb6, - 0x01, 0x0a, 0x06, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x1f, 0x0a, 0x0b, 0x66, 0x69, 0x6c, - 0x74, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, - 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x73, 0x72, - 0x63, 0x5f, 0x6e, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x72, 0x63, - 0x4e, 0x65, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x64, 0x65, 0x73, 0x74, 0x5f, 0x6e, 0x65, 0x74, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x64, 0x65, 0x73, 0x74, 0x4e, 0x65, 0x74, 0x12, 0x2f, - 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0e, - 0x32, 0x13, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x70, 0x63, 0x61, 0x70, 0x2e, 0x50, 0x72, 0x6f, - 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, - 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x04, 0x70, - 0x6f, 0x72, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x76, 0x6c, 0x61, 0x6e, 0x18, 0x06, 0x20, 0x03, 0x28, - 0x0d, 0x52, 0x04, 0x76, 0x6c, 0x61, 0x6e, 0x22, 0xc7, 0x01, 0x0a, 0x0c, 0x57, 0x69, 0x72, 0x65, - 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x69, 0x66, 0x6e, 0x61, - 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x69, 0x66, 0x6e, 0x61, 0x6d, 0x65, - 0x12, 0x32, 0x0a, 0x09, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0e, 0x32, 0x14, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x70, 0x63, 0x61, 0x70, 0x2e, - 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x09, 0x64, 0x69, 0x72, 0x65, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2f, 0x0a, 0x12, 0x74, 0x63, 0x70, 0x64, 0x75, 0x6d, 0x70, 0x5f, - 0x65, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, - 0x48, 0x00, 0x52, 0x11, 0x74, 0x63, 0x70, 0x64, 0x75, 0x6d, 0x70, 0x45, 0x78, 0x70, 0x72, 0x65, - 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x2b, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, - 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x70, 0x63, 0x61, - 0x70, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x48, 0x00, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, - 0x65, 0x72, 0x42, 0x0d, 0x0a, 0x0b, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x5f, 0x74, 0x79, 0x70, - 0x65, 0x22, 0x9d, 0x01, 0x0a, 0x0f, 0x57, 0x69, 0x72, 0x65, 0x6c, 0x65, 0x73, 0x73, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3f, 0x0a, 0x0b, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, - 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6e, 0x6f, - 0x69, 0x2e, 0x70, 0x63, 0x61, 0x70, 0x2e, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x43, 0x61, 0x70, - 0x74, 0x75, 0x72, 0x65, 0x54, 0x79, 0x70, 0x65, 0x48, 0x00, 0x52, 0x0a, 0x61, 0x63, 0x63, 0x65, - 0x73, 0x73, 0x54, 0x79, 0x70, 0x65, 0x12, 0x39, 0x0a, 0x09, 0x73, 0x63, 0x61, 0x6e, 0x5f, 0x74, - 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6e, 0x6f, 0x69, - 0x2e, 0x70, 0x63, 0x61, 0x70, 0x2e, 0x53, 0x63, 0x61, 0x6e, 0x43, 0x61, 0x70, 0x74, 0x75, 0x72, - 0x65, 0x54, 0x79, 0x70, 0x65, 0x48, 0x00, 0x52, 0x08, 0x73, 0x63, 0x61, 0x6e, 0x54, 0x79, 0x70, - 0x65, 0x42, 0x0e, 0x0a, 0x0c, 0x63, 0x61, 0x70, 0x74, 0x75, 0x72, 0x65, 0x5f, 0x74, 0x79, 0x70, - 0x65, 0x22, 0x88, 0x02, 0x0a, 0x0b, 0x50, 0x63, 0x61, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x3e, 0x0a, 0x0d, 0x77, 0x69, 0x72, 0x65, 0x64, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, - 0x70, 0x63, 0x61, 0x70, 0x2e, 0x57, 0x69, 0x72, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x48, 0x00, 0x52, 0x0c, 0x77, 0x69, 0x72, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x47, 0x0a, 0x10, 0x77, 0x69, 0x72, 0x65, 0x6c, 0x65, 0x73, 0x73, 0x5f, 0x72, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6e, - 0x6f, 0x69, 0x2e, 0x70, 0x63, 0x61, 0x70, 0x2e, 0x57, 0x69, 0x72, 0x65, 0x6c, 0x65, 0x73, 0x73, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x0f, 0x77, 0x69, 0x72, 0x65, 0x6c, - 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x74, 0x72, - 0x69, 0x6d, 0x5f, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, - 0x52, 0x0b, 0x74, 0x72, 0x69, 0x6d, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x21, 0x0a, - 0x0c, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, 0x20, - 0x01, 0x28, 0x0d, 0x52, 0x0b, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x6f, 0x75, 0x6e, 0x74, - 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, - 0x28, 0x04, 0x52, 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x0e, 0x0a, 0x0c, - 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x22, 0x1c, 0x0a, 0x06, - 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x3b, 0x0a, 0x0c, 0x50, 0x63, - 0x61, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2b, 0x0a, 0x07, 0x70, 0x61, - 0x63, 0x6b, 0x65, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x67, 0x6e, - 0x6f, 0x69, 0x2e, 0x70, 0x63, 0x61, 0x70, 0x2e, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x52, 0x07, - 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x2a, 0x44, 0x0a, 0x0d, 0x4f, 0x70, 0x65, 0x72, 0x61, - 0x74, 0x69, 0x6e, 0x67, 0x42, 0x61, 0x6e, 0x64, 0x12, 0x0b, 0x0a, 0x07, 0x42, 0x41, 0x4e, 0x44, - 0x5f, 0x32, 0x47, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x42, 0x41, 0x4e, 0x44, 0x5f, 0x35, 0x47, - 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x42, 0x41, 0x4e, 0x44, 0x5f, 0x36, 0x47, 0x10, 0x02, 0x12, - 0x0c, 0x0a, 0x08, 0x42, 0x41, 0x4e, 0x44, 0x5f, 0x41, 0x4c, 0x4c, 0x10, 0x03, 0x2a, 0x1c, 0x0a, - 0x08, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x07, 0x0a, 0x03, 0x54, 0x43, 0x50, - 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x55, 0x44, 0x50, 0x10, 0x01, 0x2a, 0x25, 0x0a, 0x09, 0x44, - 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x06, 0x0a, 0x02, 0x52, 0x58, 0x10, 0x00, - 0x12, 0x06, 0x0a, 0x02, 0x54, 0x58, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x42, 0x4f, 0x54, 0x48, - 0x10, 0x02, 0x2a, 0x53, 0x0a, 0x0c, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x57, 0x69, 0x64, - 0x74, 0x68, 0x12, 0x0f, 0x0a, 0x0b, 0x57, 0x49, 0x44, 0x54, 0x48, 0x5f, 0x32, 0x30, 0x4d, 0x48, - 0x7a, 0x10, 0x00, 0x12, 0x0f, 0x0a, 0x0b, 0x57, 0x49, 0x44, 0x54, 0x48, 0x5f, 0x34, 0x30, 0x4d, - 0x48, 0x7a, 0x10, 0x01, 0x12, 0x0f, 0x0a, 0x0b, 0x57, 0x49, 0x44, 0x54, 0x48, 0x5f, 0x38, 0x30, - 0x4d, 0x48, 0x7a, 0x10, 0x02, 0x12, 0x10, 0x0a, 0x0c, 0x57, 0x49, 0x44, 0x54, 0x48, 0x5f, 0x31, - 0x36, 0x30, 0x4d, 0x48, 0x7a, 0x10, 0x03, 0x32, 0x4c, 0x0a, 0x0d, 0x50, 0x61, 0x63, 0x6b, 0x65, - 0x74, 0x43, 0x61, 0x70, 0x74, 0x75, 0x72, 0x65, 0x12, 0x3b, 0x0a, 0x04, 0x50, 0x63, 0x61, 0x70, - 0x12, 0x16, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x70, 0x63, 0x61, 0x70, 0x2e, 0x50, 0x63, 0x61, - 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, - 0x70, 0x63, 0x61, 0x70, 0x2e, 0x50, 0x63, 0x61, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x00, 0x30, 0x01, 0x42, 0x21, 0x5a, 0x1f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, - 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x67, - 0x6e, 0x6f, 0x69, 0x2f, 0x70, 0x63, 0x61, 0x70, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x22, 0x65, 0x0a, 0x0b, 0x43, + 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x68, + 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x68, 0x61, + 0x6e, 0x6e, 0x65, 0x6c, 0x12, 0x3c, 0x0a, 0x0d, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x5f, + 0x77, 0x69, 0x64, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x17, 0x2e, 0x67, 0x6e, + 0x6f, 0x69, 0x2e, 0x70, 0x63, 0x61, 0x70, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x57, + 0x69, 0x64, 0x74, 0x68, 0x52, 0x0c, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x57, 0x69, 0x64, + 0x74, 0x68, 0x22, 0x8e, 0x01, 0x0a, 0x10, 0x42, 0x61, 0x6e, 0x64, 0x43, 0x68, 0x61, 0x6e, 0x6e, + 0x65, 0x6c, 0x43, 0x6f, 0x6d, 0x62, 0x6f, 0x12, 0x3f, 0x0a, 0x0e, 0x6f, 0x70, 0x65, 0x72, 0x61, + 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x62, 0x61, 0x6e, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, + 0x18, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x70, 0x63, 0x61, 0x70, 0x2e, 0x4f, 0x70, 0x65, 0x72, + 0x61, 0x74, 0x69, 0x6e, 0x67, 0x42, 0x61, 0x6e, 0x64, 0x52, 0x0d, 0x6f, 0x70, 0x65, 0x72, 0x61, + 0x74, 0x69, 0x6e, 0x67, 0x42, 0x61, 0x6e, 0x64, 0x12, 0x39, 0x0a, 0x0c, 0x63, 0x68, 0x61, 0x6e, + 0x6e, 0x65, 0x6c, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, + 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x70, 0x63, 0x61, 0x70, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x6e, + 0x65, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0b, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x49, + 0x6e, 0x66, 0x6f, 0x22, 0x63, 0x0a, 0x0f, 0x53, 0x63, 0x61, 0x6e, 0x43, 0x61, 0x70, 0x74, 0x75, + 0x72, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x31, 0x0a, 0x05, 0x63, 0x6f, 0x6d, 0x62, 0x6f, 0x18, + 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x70, 0x63, 0x61, + 0x70, 0x2e, 0x42, 0x61, 0x6e, 0x64, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x43, 0x6f, 0x6d, + 0x62, 0x6f, 0x52, 0x05, 0x63, 0x6f, 0x6d, 0x62, 0x6f, 0x12, 0x1d, 0x0a, 0x0a, 0x64, 0x77, 0x65, + 0x6c, 0x6c, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x64, + 0x77, 0x65, 0x6c, 0x6c, 0x54, 0x69, 0x6d, 0x65, 0x22, 0xb6, 0x01, 0x0a, 0x06, 0x46, 0x69, 0x6c, + 0x74, 0x65, 0x72, 0x12, 0x1f, 0x0a, 0x0b, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x5f, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, + 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x73, 0x72, 0x63, 0x5f, 0x6e, 0x65, 0x74, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x72, 0x63, 0x4e, 0x65, 0x74, 0x12, 0x19, 0x0a, + 0x08, 0x64, 0x65, 0x73, 0x74, 0x5f, 0x6e, 0x65, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x07, 0x64, 0x65, 0x73, 0x74, 0x4e, 0x65, 0x74, 0x12, 0x2f, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x13, 0x2e, 0x67, 0x6e, 0x6f, + 0x69, 0x2e, 0x70, 0x63, 0x61, 0x70, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x52, + 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, + 0x74, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x12, 0x0a, + 0x04, 0x76, 0x6c, 0x61, 0x6e, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x04, 0x76, 0x6c, 0x61, + 0x6e, 0x22, 0xc7, 0x01, 0x0a, 0x0c, 0x57, 0x69, 0x72, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x69, 0x66, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x06, 0x69, 0x66, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x32, 0x0a, 0x09, 0x64, 0x69, + 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x14, 0x2e, + 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x70, 0x63, 0x61, 0x70, 0x2e, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x52, 0x09, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2f, + 0x0a, 0x12, 0x74, 0x63, 0x70, 0x64, 0x75, 0x6d, 0x70, 0x5f, 0x65, 0x78, 0x70, 0x72, 0x65, 0x73, + 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x11, 0x74, 0x63, + 0x70, 0x64, 0x75, 0x6d, 0x70, 0x45, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, + 0x2b, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x11, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x70, 0x63, 0x61, 0x70, 0x2e, 0x46, 0x69, 0x6c, 0x74, + 0x65, 0x72, 0x48, 0x00, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x42, 0x0d, 0x0a, 0x0b, + 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x22, 0x9d, 0x01, 0x0a, 0x0f, + 0x57, 0x69, 0x72, 0x65, 0x6c, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x3f, 0x0a, 0x0b, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x70, 0x63, 0x61, 0x70, + 0x2e, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x43, 0x61, 0x70, 0x74, 0x75, 0x72, 0x65, 0x54, 0x79, + 0x70, 0x65, 0x48, 0x00, 0x52, 0x0a, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x79, 0x70, 0x65, + 0x12, 0x39, 0x0a, 0x09, 0x73, 0x63, 0x61, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x70, 0x63, 0x61, 0x70, 0x2e, + 0x53, 0x63, 0x61, 0x6e, 0x43, 0x61, 0x70, 0x74, 0x75, 0x72, 0x65, 0x54, 0x79, 0x70, 0x65, 0x48, + 0x00, 0x52, 0x08, 0x73, 0x63, 0x61, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x42, 0x0e, 0x0a, 0x0c, 0x63, + 0x61, 0x70, 0x74, 0x75, 0x72, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x22, 0x88, 0x02, 0x0a, 0x0b, + 0x50, 0x63, 0x61, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3e, 0x0a, 0x0d, 0x77, + 0x69, 0x72, 0x65, 0x64, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x70, 0x63, 0x61, 0x70, 0x2e, 0x57, + 0x69, 0x72, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x0c, 0x77, + 0x69, 0x72, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x47, 0x0a, 0x10, 0x77, + 0x69, 0x72, 0x65, 0x6c, 0x65, 0x73, 0x73, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x70, 0x63, 0x61, + 0x70, 0x2e, 0x57, 0x69, 0x72, 0x65, 0x6c, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x48, 0x00, 0x52, 0x0f, 0x77, 0x69, 0x72, 0x65, 0x6c, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x74, 0x72, 0x69, 0x6d, 0x5f, 0x70, 0x61, 0x79, + 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0b, 0x74, 0x72, 0x69, 0x6d, + 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x61, 0x63, 0x6b, 0x65, + 0x74, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0b, 0x70, + 0x61, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x75, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x64, 0x75, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x0e, 0x0a, 0x0c, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x22, 0x1c, 0x0a, 0x06, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, + 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, + 0x64, 0x61, 0x74, 0x61, 0x22, 0x3b, 0x0a, 0x0c, 0x50, 0x63, 0x61, 0x70, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2b, 0x0a, 0x07, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x18, + 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x70, 0x63, 0x61, + 0x70, 0x2e, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x52, 0x07, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, + 0x73, 0x2a, 0x44, 0x0a, 0x0d, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x42, 0x61, + 0x6e, 0x64, 0x12, 0x0b, 0x0a, 0x07, 0x42, 0x41, 0x4e, 0x44, 0x5f, 0x32, 0x47, 0x10, 0x00, 0x12, + 0x0b, 0x0a, 0x07, 0x42, 0x41, 0x4e, 0x44, 0x5f, 0x35, 0x47, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, + 0x42, 0x41, 0x4e, 0x44, 0x5f, 0x36, 0x47, 0x10, 0x02, 0x12, 0x0c, 0x0a, 0x08, 0x42, 0x41, 0x4e, + 0x44, 0x5f, 0x41, 0x4c, 0x4c, 0x10, 0x03, 0x2a, 0x1c, 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x74, 0x6f, + 0x63, 0x6f, 0x6c, 0x12, 0x07, 0x0a, 0x03, 0x54, 0x43, 0x50, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, + 0x55, 0x44, 0x50, 0x10, 0x01, 0x2a, 0x25, 0x0a, 0x09, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, + 0x6f, 0x6e, 0x12, 0x06, 0x0a, 0x02, 0x52, 0x58, 0x10, 0x00, 0x12, 0x06, 0x0a, 0x02, 0x54, 0x58, + 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x42, 0x4f, 0x54, 0x48, 0x10, 0x02, 0x2a, 0x53, 0x0a, 0x0c, + 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x57, 0x69, 0x64, 0x74, 0x68, 0x12, 0x0f, 0x0a, 0x0b, + 0x57, 0x49, 0x44, 0x54, 0x48, 0x5f, 0x32, 0x30, 0x4d, 0x48, 0x5a, 0x10, 0x00, 0x12, 0x0f, 0x0a, + 0x0b, 0x57, 0x49, 0x44, 0x54, 0x48, 0x5f, 0x34, 0x30, 0x4d, 0x48, 0x5a, 0x10, 0x01, 0x12, 0x0f, + 0x0a, 0x0b, 0x57, 0x49, 0x44, 0x54, 0x48, 0x5f, 0x38, 0x30, 0x4d, 0x48, 0x5a, 0x10, 0x02, 0x12, + 0x10, 0x0a, 0x0c, 0x57, 0x49, 0x44, 0x54, 0x48, 0x5f, 0x31, 0x36, 0x30, 0x4d, 0x48, 0x5a, 0x10, + 0x03, 0x32, 0x4c, 0x0a, 0x0d, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x61, 0x70, 0x74, 0x75, + 0x72, 0x65, 0x12, 0x3b, 0x0a, 0x04, 0x50, 0x63, 0x61, 0x70, 0x12, 0x16, 0x2e, 0x67, 0x6e, 0x6f, + 0x69, 0x2e, 0x70, 0x63, 0x61, 0x70, 0x2e, 0x50, 0x63, 0x61, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x67, 0x6e, 0x6f, 0x69, 0x2e, 0x70, 0x63, 0x61, 0x70, 0x2e, 0x50, + 0x63, 0x61, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x30, 0x01, 0x42, + 0x21, 0x5a, 0x1f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x70, + 0x65, 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x67, 0x6e, 0x6f, 0x69, 0x2f, 0x70, 0x63, + 0x61, 0x70, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -1076,42 +1129,44 @@ func file_packet_capture_packet_capture_proto_rawDescGZIP() []byte { } var file_packet_capture_packet_capture_proto_enumTypes = make([]protoimpl.EnumInfo, 4) -var file_packet_capture_packet_capture_proto_msgTypes = make([]protoimpl.MessageInfo, 9) +var file_packet_capture_packet_capture_proto_msgTypes = make([]protoimpl.MessageInfo, 10) var file_packet_capture_packet_capture_proto_goTypes = []interface{}{ (OperatingBand)(0), // 0: gnoi.pcap.OperatingBand (Protocol)(0), // 1: gnoi.pcap.Protocol (Direction)(0), // 2: gnoi.pcap.Direction (ChannelWidth)(0), // 3: gnoi.pcap.ChannelWidth (*AccessCaptureType)(nil), // 4: gnoi.pcap.AccessCaptureType - (*ScanCaptureType)(nil), // 5: gnoi.pcap.ScanCaptureType + (*ChannelInfo)(nil), // 5: gnoi.pcap.ChannelInfo (*BandChannelCombo)(nil), // 6: gnoi.pcap.BandChannelCombo - (*Filter)(nil), // 7: gnoi.pcap.Filter - (*WiredRequest)(nil), // 8: gnoi.pcap.WiredRequest - (*WirelessRequest)(nil), // 9: gnoi.pcap.WirelessRequest - (*PcapRequest)(nil), // 10: gnoi.pcap.PcapRequest - (*Packet)(nil), // 11: gnoi.pcap.Packet - (*PcapResponse)(nil), // 12: gnoi.pcap.PcapResponse + (*ScanCaptureType)(nil), // 7: gnoi.pcap.ScanCaptureType + (*Filter)(nil), // 8: gnoi.pcap.Filter + (*WiredRequest)(nil), // 9: gnoi.pcap.WiredRequest + (*WirelessRequest)(nil), // 10: gnoi.pcap.WirelessRequest + (*PcapRequest)(nil), // 11: gnoi.pcap.PcapRequest + (*Packet)(nil), // 12: gnoi.pcap.Packet + (*PcapResponse)(nil), // 13: gnoi.pcap.PcapResponse } var file_packet_capture_packet_capture_proto_depIdxs = []int32{ 0, // 0: gnoi.pcap.AccessCaptureType.operating_band:type_name -> gnoi.pcap.OperatingBand - 6, // 1: gnoi.pcap.ScanCaptureType.combo:type_name -> gnoi.pcap.BandChannelCombo + 3, // 1: gnoi.pcap.ChannelInfo.channel_width:type_name -> gnoi.pcap.ChannelWidth 0, // 2: gnoi.pcap.BandChannelCombo.operating_band:type_name -> gnoi.pcap.OperatingBand - 3, // 3: gnoi.pcap.BandChannelCombo.channel_width:type_name -> gnoi.pcap.ChannelWidth - 1, // 4: gnoi.pcap.Filter.protocol:type_name -> gnoi.pcap.Protocol - 2, // 5: gnoi.pcap.WiredRequest.direction:type_name -> gnoi.pcap.Direction - 7, // 6: gnoi.pcap.WiredRequest.filter:type_name -> gnoi.pcap.Filter - 4, // 7: gnoi.pcap.WirelessRequest.access_type:type_name -> gnoi.pcap.AccessCaptureType - 5, // 8: gnoi.pcap.WirelessRequest.scan_type:type_name -> gnoi.pcap.ScanCaptureType - 8, // 9: gnoi.pcap.PcapRequest.wired_request:type_name -> gnoi.pcap.WiredRequest - 9, // 10: gnoi.pcap.PcapRequest.wireless_request:type_name -> gnoi.pcap.WirelessRequest - 11, // 11: gnoi.pcap.PcapResponse.packets:type_name -> gnoi.pcap.Packet - 10, // 12: gnoi.pcap.PacketCapture.Pcap:input_type -> gnoi.pcap.PcapRequest - 12, // 13: gnoi.pcap.PacketCapture.Pcap:output_type -> gnoi.pcap.PcapResponse - 13, // [13:14] is the sub-list for method output_type - 12, // [12:13] is the sub-list for method input_type - 12, // [12:12] is the sub-list for extension type_name - 12, // [12:12] is the sub-list for extension extendee - 0, // [0:12] is the sub-list for field type_name + 5, // 3: gnoi.pcap.BandChannelCombo.channel_info:type_name -> gnoi.pcap.ChannelInfo + 6, // 4: gnoi.pcap.ScanCaptureType.combo:type_name -> gnoi.pcap.BandChannelCombo + 1, // 5: gnoi.pcap.Filter.protocol:type_name -> gnoi.pcap.Protocol + 2, // 6: gnoi.pcap.WiredRequest.direction:type_name -> gnoi.pcap.Direction + 8, // 7: gnoi.pcap.WiredRequest.filter:type_name -> gnoi.pcap.Filter + 4, // 8: gnoi.pcap.WirelessRequest.access_type:type_name -> gnoi.pcap.AccessCaptureType + 7, // 9: gnoi.pcap.WirelessRequest.scan_type:type_name -> gnoi.pcap.ScanCaptureType + 9, // 10: gnoi.pcap.PcapRequest.wired_request:type_name -> gnoi.pcap.WiredRequest + 10, // 11: gnoi.pcap.PcapRequest.wireless_request:type_name -> gnoi.pcap.WirelessRequest + 12, // 12: gnoi.pcap.PcapResponse.packets:type_name -> gnoi.pcap.Packet + 11, // 13: gnoi.pcap.PacketCapture.Pcap:input_type -> gnoi.pcap.PcapRequest + 13, // 14: gnoi.pcap.PacketCapture.Pcap:output_type -> gnoi.pcap.PcapResponse + 14, // [14:15] is the sub-list for method output_type + 13, // [13:14] is the sub-list for method input_type + 13, // [13:13] is the sub-list for extension type_name + 13, // [13:13] is the sub-list for extension extendee + 0, // [0:13] is the sub-list for field type_name } func init() { file_packet_capture_packet_capture_proto_init() } @@ -1133,7 +1188,7 @@ func file_packet_capture_packet_capture_proto_init() { } } file_packet_capture_packet_capture_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ScanCaptureType); i { + switch v := v.(*ChannelInfo); i { case 0: return &v.state case 1: @@ -1157,7 +1212,7 @@ func file_packet_capture_packet_capture_proto_init() { } } file_packet_capture_packet_capture_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Filter); i { + switch v := v.(*ScanCaptureType); i { case 0: return &v.state case 1: @@ -1169,7 +1224,7 @@ func file_packet_capture_packet_capture_proto_init() { } } file_packet_capture_packet_capture_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WiredRequest); i { + switch v := v.(*Filter); i { case 0: return &v.state case 1: @@ -1181,7 +1236,7 @@ func file_packet_capture_packet_capture_proto_init() { } } file_packet_capture_packet_capture_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WirelessRequest); i { + switch v := v.(*WiredRequest); i { case 0: return &v.state case 1: @@ -1193,7 +1248,7 @@ func file_packet_capture_packet_capture_proto_init() { } } file_packet_capture_packet_capture_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PcapRequest); i { + switch v := v.(*WirelessRequest); i { case 0: return &v.state case 1: @@ -1205,7 +1260,7 @@ func file_packet_capture_packet_capture_proto_init() { } } file_packet_capture_packet_capture_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Packet); i { + switch v := v.(*PcapRequest); i { case 0: return &v.state case 1: @@ -1217,6 +1272,18 @@ func file_packet_capture_packet_capture_proto_init() { } } file_packet_capture_packet_capture_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Packet); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_packet_capture_packet_capture_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*PcapResponse); i { case 0: return &v.state @@ -1233,15 +1300,15 @@ func file_packet_capture_packet_capture_proto_init() { (*AccessCaptureType_Ssid)(nil), (*AccessCaptureType_Mac)(nil), } - file_packet_capture_packet_capture_proto_msgTypes[4].OneofWrappers = []interface{}{ + file_packet_capture_packet_capture_proto_msgTypes[5].OneofWrappers = []interface{}{ (*WiredRequest_TcpdumpExpression)(nil), (*WiredRequest_Filter)(nil), } - file_packet_capture_packet_capture_proto_msgTypes[5].OneofWrappers = []interface{}{ + file_packet_capture_packet_capture_proto_msgTypes[6].OneofWrappers = []interface{}{ (*WirelessRequest_AccessType)(nil), (*WirelessRequest_ScanType)(nil), } - file_packet_capture_packet_capture_proto_msgTypes[6].OneofWrappers = []interface{}{ + file_packet_capture_packet_capture_proto_msgTypes[7].OneofWrappers = []interface{}{ (*PcapRequest_WiredRequest)(nil), (*PcapRequest_WirelessRequest)(nil), } @@ -1251,7 +1318,7 @@ func file_packet_capture_packet_capture_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_packet_capture_packet_capture_proto_rawDesc, NumEnums: 4, - NumMessages: 9, + NumMessages: 10, NumExtensions: 0, NumServices: 1, }, diff --git a/packet_capture/packet_capture.proto b/packet_capture/packet_capture.proto index 851b460e..29354c24 100644 --- a/packet_capture/packet_capture.proto +++ b/packet_capture/packet_capture.proto @@ -35,10 +35,10 @@ enum Direction { } enum ChannelWidth { - WIDTH_20MHz = 0; - WIDTH_40MHz = 1; - WIDTH_80MHz = 2; - WIDTH_160MHz = 3; + WIDTH_20MHZ = 0; + WIDTH_40MHZ = 1; + WIDTH_80MHZ = 2; + WIDTH_160MHZ = 3; } // The capture is performed on the operating access radio(s) and it is not @@ -58,24 +58,29 @@ message AccessCaptureType { bool promiscuous_mode = 4; } -// A ScanCaptureType on a dedicated scan radio. If a dedicated scan radio does -// not exist, the device may turn an access radio(s) into scan radio(s), which -// may impact clients. -message ScanCaptureType { - repeated BandChannelCombo combo = 1; +message ChannelInfo { + // Channels. + string channel = 1; + // Channel width: 20/40/80/160 MHz, if not specified defaults to 20MHz. + ChannelWidth channel_width = 2; } // BandChannelCombo specifies the bands and channels to capture on. message BandChannelCombo { // Operating band: 2.4G, 5G, 6G. OperatingBand operating_band = 1; - // Channels. - repeated string channel = 2; - // Channel width: 20/40/80/160 MHz, if not specified defaults to 20MHz. - ChannelWidth channel_width = 3; - // Each channel capture duration in milliseconds, if not specified + // Channel Info. + repeated ChannelInfo channel_info = 2; +} + +// A ScanCaptureType on a dedicated scan radio. If a dedicated scan radio does +// not exist, the device may turn an access radio(s) into scan radio(s), which +// may impact clients. +message ScanCaptureType { + repeated BandChannelCombo combo = 1; + // Channel capture duration in nanoseconds, if not specified // defaults to something, supported by the platform. - uint32 dwell_time = 4; + uint64 dwell_time = 2; } message Filter {