github.com/cloudwan/edgelq-sdk@v1.15.4/monitoring/client/v3/time_serie/time_serie_service.pb.client.go (about)

     1  // Code generated by protoc-gen-goten-client
     2  // API: TimeSerieService
     3  // DO NOT EDIT!!!
     4  
     5  package time_serie_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  	time_serie "github.com/cloudwan/edgelq-sdk/monitoring/resources/v3/time_serie"
    17  )
    18  
    19  // Reference imports to suppress errors if they are not otherwise used.
    20  var (
    21  	_ = protoimpl.DescBuilder{}
    22  	_ = new(context.Context)
    23  	_ = grpc.ClientConn{}
    24  )
    25  
    26  // make sure we're using proto imports
    27  var (
    28  	_ = &time_serie.Point{}
    29  )
    30  
    31  // This is a compile-time assertion to ensure that this generated file
    32  // is compatible with the proto package it is being compiled against.
    33  // A compilation error at this line likely means your copy of the
    34  // proto package needs to be updated.
    35  const (
    36  	// Verify that this generated code is sufficiently up-to-date.
    37  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    38  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    39  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    40  )
    41  
    42  // This is a compile-time assertion to ensure that this generated file
    43  // is compatible with the grpc package it is being compiled against.
    44  const _ = grpc.SupportPackageIsVersion6
    45  
    46  // TimeSerieServiceClient is the client API for TimeSerieService.
    47  //
    48  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
    49  type TimeSerieServiceClient interface {
    50  	ListTimeSeries(ctx context.Context, in *ListTimeSeriesRequest, opts ...grpc.CallOption) (*ListTimeSeriesResponse, error)
    51  	CreateTimeSeries(ctx context.Context, in *CreateTimeSeriesRequest, opts ...grpc.CallOption) (*CreateTimeSeriesResponse, error)
    52  }
    53  
    54  type client struct {
    55  	cc grpc.ClientConnInterface
    56  }
    57  
    58  func NewTimeSerieServiceClient(cc grpc.ClientConnInterface) TimeSerieServiceClient {
    59  	return &client{cc}
    60  }
    61  
    62  func (c *client) ListTimeSeries(ctx context.Context, in *ListTimeSeriesRequest, opts ...grpc.CallOption) (*ListTimeSeriesResponse, error) {
    63  	out := new(ListTimeSeriesResponse)
    64  	err := c.cc.Invoke(ctx, "/ntt.monitoring.v3.TimeSerieService/ListTimeSeries", in, out, opts...)
    65  	if err != nil {
    66  		return nil, err
    67  	}
    68  	return out, nil
    69  }
    70  
    71  func (c *client) CreateTimeSeries(ctx context.Context, in *CreateTimeSeriesRequest, opts ...grpc.CallOption) (*CreateTimeSeriesResponse, error) {
    72  	out := new(CreateTimeSeriesResponse)
    73  	err := c.cc.Invoke(ctx, "/ntt.monitoring.v3.TimeSerieService/CreateTimeSeries", in, out, opts...)
    74  	if err != nil {
    75  		return nil, err
    76  	}
    77  	return out, nil
    78  }