From 50b0f4620dacb11a6c88e7c7660082a5e6300e9d Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Lallement Date: Tue, 24 Oct 2023 13:30:08 +0200 Subject: [PATCH] Updated version of protoc Co-authored-by: Didier Roche --- adsys.pb.go | 7 +------ adsys_grpc.pb.go | 43 +++++++++++++++++++++++++++++++------------ 2 files changed, 32 insertions(+), 18 deletions(-) diff --git a/adsys.pb.go b/adsys.pb.go index 8e603f17a..45b7065da 100644 --- a/adsys.pb.go +++ b/adsys.pb.go @@ -1,13 +1,12 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.25.0 +// protoc-gen-go v1.31.0 // protoc v3.21.12 // source: adsys.proto package adsys import ( - proto "github.com/golang/protobuf/proto" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" @@ -21,10 +20,6 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) -// This is a compile-time assertion that a sufficiently up-to-date version -// of the legacy proto package is being used. -const _ = proto.ProtoPackageIsVersion4 - type Empty struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache diff --git a/adsys_grpc.pb.go b/adsys_grpc.pb.go index dbbc37f61..75af5bcc5 100644 --- a/adsys_grpc.pb.go +++ b/adsys_grpc.pb.go @@ -1,4 +1,8 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.3.0 +// - protoc v3.21.12 +// source: adsys.proto package adsys @@ -14,6 +18,21 @@ import ( // Requires gRPC-Go v1.32.0 or later. const _ = grpc.SupportPackageIsVersion7 +const ( + Service_Cat_FullMethodName = "/service/Cat" + Service_Version_FullMethodName = "/service/Version" + Service_Status_FullMethodName = "/service/Status" + Service_Stop_FullMethodName = "/service/Stop" + Service_UpdatePolicy_FullMethodName = "/service/UpdatePolicy" + Service_DumpPolicies_FullMethodName = "/service/DumpPolicies" + Service_DumpPoliciesDefinitions_FullMethodName = "/service/DumpPoliciesDefinitions" + Service_GetDoc_FullMethodName = "/service/GetDoc" + Service_ListDoc_FullMethodName = "/service/ListDoc" + Service_ListUsers_FullMethodName = "/service/ListUsers" + Service_GPOListScript_FullMethodName = "/service/GPOListScript" + Service_CertAutoEnrollScript_FullMethodName = "/service/CertAutoEnrollScript" +) + // ServiceClient is the client API for Service 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. @@ -41,7 +60,7 @@ func NewServiceClient(cc grpc.ClientConnInterface) ServiceClient { } func (c *serviceClient) Cat(ctx context.Context, in *Empty, opts ...grpc.CallOption) (Service_CatClient, error) { - stream, err := c.cc.NewStream(ctx, &Service_ServiceDesc.Streams[0], "/service/Cat", opts...) + stream, err := c.cc.NewStream(ctx, &Service_ServiceDesc.Streams[0], Service_Cat_FullMethodName, opts...) if err != nil { return nil, err } @@ -73,7 +92,7 @@ func (x *serviceCatClient) Recv() (*StringResponse, error) { } func (c *serviceClient) Version(ctx context.Context, in *Empty, opts ...grpc.CallOption) (Service_VersionClient, error) { - stream, err := c.cc.NewStream(ctx, &Service_ServiceDesc.Streams[1], "/service/Version", opts...) + stream, err := c.cc.NewStream(ctx, &Service_ServiceDesc.Streams[1], Service_Version_FullMethodName, opts...) if err != nil { return nil, err } @@ -105,7 +124,7 @@ func (x *serviceVersionClient) Recv() (*StringResponse, error) { } func (c *serviceClient) Status(ctx context.Context, in *Empty, opts ...grpc.CallOption) (Service_StatusClient, error) { - stream, err := c.cc.NewStream(ctx, &Service_ServiceDesc.Streams[2], "/service/Status", opts...) + stream, err := c.cc.NewStream(ctx, &Service_ServiceDesc.Streams[2], Service_Status_FullMethodName, opts...) if err != nil { return nil, err } @@ -137,7 +156,7 @@ func (x *serviceStatusClient) Recv() (*StringResponse, error) { } func (c *serviceClient) Stop(ctx context.Context, in *StopRequest, opts ...grpc.CallOption) (Service_StopClient, error) { - stream, err := c.cc.NewStream(ctx, &Service_ServiceDesc.Streams[3], "/service/Stop", opts...) + stream, err := c.cc.NewStream(ctx, &Service_ServiceDesc.Streams[3], Service_Stop_FullMethodName, opts...) if err != nil { return nil, err } @@ -169,7 +188,7 @@ func (x *serviceStopClient) Recv() (*Empty, error) { } func (c *serviceClient) UpdatePolicy(ctx context.Context, in *UpdatePolicyRequest, opts ...grpc.CallOption) (Service_UpdatePolicyClient, error) { - stream, err := c.cc.NewStream(ctx, &Service_ServiceDesc.Streams[4], "/service/UpdatePolicy", opts...) + stream, err := c.cc.NewStream(ctx, &Service_ServiceDesc.Streams[4], Service_UpdatePolicy_FullMethodName, opts...) if err != nil { return nil, err } @@ -201,7 +220,7 @@ func (x *serviceUpdatePolicyClient) Recv() (*Empty, error) { } func (c *serviceClient) DumpPolicies(ctx context.Context, in *DumpPoliciesRequest, opts ...grpc.CallOption) (Service_DumpPoliciesClient, error) { - stream, err := c.cc.NewStream(ctx, &Service_ServiceDesc.Streams[5], "/service/DumpPolicies", opts...) + stream, err := c.cc.NewStream(ctx, &Service_ServiceDesc.Streams[5], Service_DumpPolicies_FullMethodName, opts...) if err != nil { return nil, err } @@ -233,7 +252,7 @@ func (x *serviceDumpPoliciesClient) Recv() (*StringResponse, error) { } func (c *serviceClient) DumpPoliciesDefinitions(ctx context.Context, in *DumpPolicyDefinitionsRequest, opts ...grpc.CallOption) (Service_DumpPoliciesDefinitionsClient, error) { - stream, err := c.cc.NewStream(ctx, &Service_ServiceDesc.Streams[6], "/service/DumpPoliciesDefinitions", opts...) + stream, err := c.cc.NewStream(ctx, &Service_ServiceDesc.Streams[6], Service_DumpPoliciesDefinitions_FullMethodName, opts...) if err != nil { return nil, err } @@ -265,7 +284,7 @@ func (x *serviceDumpPoliciesDefinitionsClient) Recv() (*DumpPolicyDefinitionsRes } func (c *serviceClient) GetDoc(ctx context.Context, in *GetDocRequest, opts ...grpc.CallOption) (Service_GetDocClient, error) { - stream, err := c.cc.NewStream(ctx, &Service_ServiceDesc.Streams[7], "/service/GetDoc", opts...) + stream, err := c.cc.NewStream(ctx, &Service_ServiceDesc.Streams[7], Service_GetDoc_FullMethodName, opts...) if err != nil { return nil, err } @@ -297,7 +316,7 @@ func (x *serviceGetDocClient) Recv() (*StringResponse, error) { } func (c *serviceClient) ListDoc(ctx context.Context, in *Empty, opts ...grpc.CallOption) (Service_ListDocClient, error) { - stream, err := c.cc.NewStream(ctx, &Service_ServiceDesc.Streams[8], "/service/ListDoc", opts...) + stream, err := c.cc.NewStream(ctx, &Service_ServiceDesc.Streams[8], Service_ListDoc_FullMethodName, opts...) if err != nil { return nil, err } @@ -329,7 +348,7 @@ func (x *serviceListDocClient) Recv() (*ListDocReponse, error) { } func (c *serviceClient) ListUsers(ctx context.Context, in *ListUsersRequest, opts ...grpc.CallOption) (Service_ListUsersClient, error) { - stream, err := c.cc.NewStream(ctx, &Service_ServiceDesc.Streams[9], "/service/ListUsers", opts...) + stream, err := c.cc.NewStream(ctx, &Service_ServiceDesc.Streams[9], Service_ListUsers_FullMethodName, opts...) if err != nil { return nil, err } @@ -361,7 +380,7 @@ func (x *serviceListUsersClient) Recv() (*StringResponse, error) { } func (c *serviceClient) GPOListScript(ctx context.Context, in *Empty, opts ...grpc.CallOption) (Service_GPOListScriptClient, error) { - stream, err := c.cc.NewStream(ctx, &Service_ServiceDesc.Streams[10], "/service/GPOListScript", opts...) + stream, err := c.cc.NewStream(ctx, &Service_ServiceDesc.Streams[10], Service_GPOListScript_FullMethodName, opts...) if err != nil { return nil, err } @@ -393,7 +412,7 @@ func (x *serviceGPOListScriptClient) Recv() (*StringResponse, error) { } func (c *serviceClient) CertAutoEnrollScript(ctx context.Context, in *Empty, opts ...grpc.CallOption) (Service_CertAutoEnrollScriptClient, error) { - stream, err := c.cc.NewStream(ctx, &Service_ServiceDesc.Streams[11], "/service/CertAutoEnrollScript", opts...) + stream, err := c.cc.NewStream(ctx, &Service_ServiceDesc.Streams[11], Service_CertAutoEnrollScript_FullMethodName, opts...) if err != nil { return nil, err }