github.com/cloudwan/edgelq-sdk@v1.15.4/iam/client/v1alpha2/project_invitation/project_invitation_service.pb.client.go (about)

     1  // Code generated by protoc-gen-goten-client
     2  // API: ProjectInvitationService
     3  // DO NOT EDIT!!!
     4  
     5  package project_invitation_client
     6  
     7  import (
     8  	"context"
     9  
    10  	"google.golang.org/grpc"
    11  	"google.golang.org/protobuf/runtime/protoimpl"
    12  )
    13  
    14  // proto imports
    15  import (
    16  	project_invitation "github.com/cloudwan/edgelq-sdk/iam/resources/v1alpha2/project_invitation"
    17  	emptypb "google.golang.org/protobuf/types/known/emptypb"
    18  )
    19  
    20  // Reference imports to suppress errors if they are not otherwise used.
    21  var (
    22  	_ = protoimpl.DescBuilder{}
    23  	_ = new(context.Context)
    24  	_ = grpc.ClientConn{}
    25  )
    26  
    27  // make sure we're using proto imports
    28  var (
    29  	_ = &project_invitation.ProjectInvitation{}
    30  	_ = &emptypb.Empty{}
    31  )
    32  
    33  // This is a compile-time assertion to ensure that this generated file
    34  // is compatible with the proto package it is being compiled against.
    35  // A compilation error at this line likely means your copy of the
    36  // proto package needs to be updated.
    37  const (
    38  	// Verify that this generated code is sufficiently up-to-date.
    39  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    40  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    41  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    42  )
    43  
    44  // This is a compile-time assertion to ensure that this generated file
    45  // is compatible with the grpc package it is being compiled against.
    46  const _ = grpc.SupportPackageIsVersion6
    47  
    48  // ProjectInvitationServiceClient is the client API for ProjectInvitationService.
    49  //
    50  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
    51  type ProjectInvitationServiceClient interface {
    52  	GetProjectInvitation(ctx context.Context, in *GetProjectInvitationRequest, opts ...grpc.CallOption) (*project_invitation.ProjectInvitation, error)
    53  	BatchGetProjectInvitations(ctx context.Context, in *BatchGetProjectInvitationsRequest, opts ...grpc.CallOption) (*BatchGetProjectInvitationsResponse, error)
    54  	ListProjectInvitations(ctx context.Context, in *ListProjectInvitationsRequest, opts ...grpc.CallOption) (*ListProjectInvitationsResponse, error)
    55  	WatchProjectInvitation(ctx context.Context, in *WatchProjectInvitationRequest, opts ...grpc.CallOption) (WatchProjectInvitationClientStream, error)
    56  	WatchProjectInvitations(ctx context.Context, in *WatchProjectInvitationsRequest, opts ...grpc.CallOption) (WatchProjectInvitationsClientStream, error)
    57  	CreateProjectInvitation(ctx context.Context, in *CreateProjectInvitationRequest, opts ...grpc.CallOption) (*project_invitation.ProjectInvitation, error)
    58  	UpdateProjectInvitation(ctx context.Context, in *UpdateProjectInvitationRequest, opts ...grpc.CallOption) (*project_invitation.ProjectInvitation, error)
    59  	DeleteProjectInvitation(ctx context.Context, in *DeleteProjectInvitationRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
    60  	AcceptProjectInvitation(ctx context.Context, in *AcceptProjectInvitationRequest, opts ...grpc.CallOption) (*AcceptProjectInvitationResponse, error)
    61  	DeclineProjectInvitation(ctx context.Context, in *DeclineProjectInvitationRequest, opts ...grpc.CallOption) (*DeclineProjectInvitationResponse, error)
    62  	ListMyProjectInvitations(ctx context.Context, in *ListMyProjectInvitationsRequest, opts ...grpc.CallOption) (*ListMyProjectInvitationsResponse, error)
    63  	ResendProjectInvitation(ctx context.Context, in *ResendProjectInvitationRequest, opts ...grpc.CallOption) (*ResendProjectInvitationResponse, error)
    64  }
    65  
    66  type client struct {
    67  	cc grpc.ClientConnInterface
    68  }
    69  
    70  func NewProjectInvitationServiceClient(cc grpc.ClientConnInterface) ProjectInvitationServiceClient {
    71  	return &client{cc}
    72  }
    73  
    74  func (c *client) GetProjectInvitation(ctx context.Context, in *GetProjectInvitationRequest, opts ...grpc.CallOption) (*project_invitation.ProjectInvitation, error) {
    75  	out := new(project_invitation.ProjectInvitation)
    76  	err := c.cc.Invoke(ctx, "/ntt.iam.v1alpha2.ProjectInvitationService/GetProjectInvitation", in, out, opts...)
    77  	if err != nil {
    78  		return nil, err
    79  	}
    80  	return out, nil
    81  }
    82  
    83  func (c *client) BatchGetProjectInvitations(ctx context.Context, in *BatchGetProjectInvitationsRequest, opts ...grpc.CallOption) (*BatchGetProjectInvitationsResponse, error) {
    84  	out := new(BatchGetProjectInvitationsResponse)
    85  	err := c.cc.Invoke(ctx, "/ntt.iam.v1alpha2.ProjectInvitationService/BatchGetProjectInvitations", in, out, opts...)
    86  	if err != nil {
    87  		return nil, err
    88  	}
    89  	return out, nil
    90  }
    91  
    92  func (c *client) ListProjectInvitations(ctx context.Context, in *ListProjectInvitationsRequest, opts ...grpc.CallOption) (*ListProjectInvitationsResponse, error) {
    93  	out := new(ListProjectInvitationsResponse)
    94  	err := c.cc.Invoke(ctx, "/ntt.iam.v1alpha2.ProjectInvitationService/ListProjectInvitations", in, out, opts...)
    95  	if err != nil {
    96  		return nil, err
    97  	}
    98  	return out, nil
    99  }
   100  
   101  func (c *client) WatchProjectInvitation(ctx context.Context, in *WatchProjectInvitationRequest, opts ...grpc.CallOption) (WatchProjectInvitationClientStream, error) {
   102  	stream, err := c.cc.NewStream(ctx,
   103  		&grpc.StreamDesc{
   104  			StreamName:    "WatchProjectInvitation",
   105  			ServerStreams: true,
   106  		},
   107  		"/ntt.iam.v1alpha2.ProjectInvitationService/WatchProjectInvitation", opts...)
   108  	if err != nil {
   109  		return nil, err
   110  	}
   111  	x := &watchProjectInvitationWatchProjectInvitationClient{stream}
   112  	if err := x.ClientStream.SendMsg(in); err != nil {
   113  		return nil, err
   114  	}
   115  	if err := x.ClientStream.CloseSend(); err != nil {
   116  		return nil, err
   117  	}
   118  	return x, nil
   119  }
   120  
   121  type WatchProjectInvitationClientStream interface {
   122  	Recv() (*WatchProjectInvitationResponse, error)
   123  	grpc.ClientStream
   124  }
   125  
   126  type watchProjectInvitationWatchProjectInvitationClient struct {
   127  	grpc.ClientStream
   128  }
   129  
   130  func (x *watchProjectInvitationWatchProjectInvitationClient) Recv() (*WatchProjectInvitationResponse, error) {
   131  	m := new(WatchProjectInvitationResponse)
   132  	if err := x.ClientStream.RecvMsg(m); err != nil {
   133  		return nil, err
   134  	}
   135  	return m, nil
   136  }
   137  
   138  func (c *client) WatchProjectInvitations(ctx context.Context, in *WatchProjectInvitationsRequest, opts ...grpc.CallOption) (WatchProjectInvitationsClientStream, error) {
   139  	stream, err := c.cc.NewStream(ctx,
   140  		&grpc.StreamDesc{
   141  			StreamName:    "WatchProjectInvitations",
   142  			ServerStreams: true,
   143  		},
   144  		"/ntt.iam.v1alpha2.ProjectInvitationService/WatchProjectInvitations", opts...)
   145  	if err != nil {
   146  		return nil, err
   147  	}
   148  	x := &watchProjectInvitationsWatchProjectInvitationsClient{stream}
   149  	if err := x.ClientStream.SendMsg(in); err != nil {
   150  		return nil, err
   151  	}
   152  	if err := x.ClientStream.CloseSend(); err != nil {
   153  		return nil, err
   154  	}
   155  	return x, nil
   156  }
   157  
   158  type WatchProjectInvitationsClientStream interface {
   159  	Recv() (*WatchProjectInvitationsResponse, error)
   160  	grpc.ClientStream
   161  }
   162  
   163  type watchProjectInvitationsWatchProjectInvitationsClient struct {
   164  	grpc.ClientStream
   165  }
   166  
   167  func (x *watchProjectInvitationsWatchProjectInvitationsClient) Recv() (*WatchProjectInvitationsResponse, error) {
   168  	m := new(WatchProjectInvitationsResponse)
   169  	if err := x.ClientStream.RecvMsg(m); err != nil {
   170  		return nil, err
   171  	}
   172  	return m, nil
   173  }
   174  
   175  func (c *client) CreateProjectInvitation(ctx context.Context, in *CreateProjectInvitationRequest, opts ...grpc.CallOption) (*project_invitation.ProjectInvitation, error) {
   176  	out := new(project_invitation.ProjectInvitation)
   177  	err := c.cc.Invoke(ctx, "/ntt.iam.v1alpha2.ProjectInvitationService/CreateProjectInvitation", in, out, opts...)
   178  	if err != nil {
   179  		return nil, err
   180  	}
   181  	return out, nil
   182  }
   183  
   184  func (c *client) UpdateProjectInvitation(ctx context.Context, in *UpdateProjectInvitationRequest, opts ...grpc.CallOption) (*project_invitation.ProjectInvitation, error) {
   185  	out := new(project_invitation.ProjectInvitation)
   186  	err := c.cc.Invoke(ctx, "/ntt.iam.v1alpha2.ProjectInvitationService/UpdateProjectInvitation", in, out, opts...)
   187  	if err != nil {
   188  		return nil, err
   189  	}
   190  	return out, nil
   191  }
   192  
   193  func (c *client) DeleteProjectInvitation(ctx context.Context, in *DeleteProjectInvitationRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
   194  	out := new(emptypb.Empty)
   195  	err := c.cc.Invoke(ctx, "/ntt.iam.v1alpha2.ProjectInvitationService/DeleteProjectInvitation", in, out, opts...)
   196  	if err != nil {
   197  		return nil, err
   198  	}
   199  	return out, nil
   200  }
   201  
   202  func (c *client) AcceptProjectInvitation(ctx context.Context, in *AcceptProjectInvitationRequest, opts ...grpc.CallOption) (*AcceptProjectInvitationResponse, error) {
   203  	out := new(AcceptProjectInvitationResponse)
   204  	err := c.cc.Invoke(ctx, "/ntt.iam.v1alpha2.ProjectInvitationService/AcceptProjectInvitation", in, out, opts...)
   205  	if err != nil {
   206  		return nil, err
   207  	}
   208  	return out, nil
   209  }
   210  
   211  func (c *client) DeclineProjectInvitation(ctx context.Context, in *DeclineProjectInvitationRequest, opts ...grpc.CallOption) (*DeclineProjectInvitationResponse, error) {
   212  	out := new(DeclineProjectInvitationResponse)
   213  	err := c.cc.Invoke(ctx, "/ntt.iam.v1alpha2.ProjectInvitationService/DeclineProjectInvitation", in, out, opts...)
   214  	if err != nil {
   215  		return nil, err
   216  	}
   217  	return out, nil
   218  }
   219  
   220  func (c *client) ListMyProjectInvitations(ctx context.Context, in *ListMyProjectInvitationsRequest, opts ...grpc.CallOption) (*ListMyProjectInvitationsResponse, error) {
   221  	out := new(ListMyProjectInvitationsResponse)
   222  	err := c.cc.Invoke(ctx, "/ntt.iam.v1alpha2.ProjectInvitationService/ListMyProjectInvitations", in, out, opts...)
   223  	if err != nil {
   224  		return nil, err
   225  	}
   226  	return out, nil
   227  }
   228  
   229  func (c *client) ResendProjectInvitation(ctx context.Context, in *ResendProjectInvitationRequest, opts ...grpc.CallOption) (*ResendProjectInvitationResponse, error) {
   230  	out := new(ResendProjectInvitationResponse)
   231  	err := c.cc.Invoke(ctx, "/ntt.iam.v1alpha2.ProjectInvitationService/ResendProjectInvitation", in, out, opts...)
   232  	if err != nil {
   233  		return nil, err
   234  	}
   235  	return out, nil
   236  }