mirror of
https://github.com/genuinetools/reg.git
synced 2024-09-19 08:41:02 -04:00
552 lines
23 KiB
Go
552 lines
23 KiB
Go
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||
|
// source: google/devtools/cloudprofiler/v2/profiler.proto
|
||
|
|
||
|
package cloudprofiler // import "google.golang.org/genproto/googleapis/devtools/cloudprofiler/v2"
|
||
|
|
||
|
import proto "github.com/golang/protobuf/proto"
|
||
|
import fmt "fmt"
|
||
|
import math "math"
|
||
|
import duration "github.com/golang/protobuf/ptypes/duration"
|
||
|
import _ "github.com/golang/protobuf/ptypes/timestamp"
|
||
|
import _ "google.golang.org/genproto/googleapis/api/annotations"
|
||
|
|
||
|
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
|
||
|
|
||
|
// ProfileType is type of profiling data.
|
||
|
// NOTE: the enumeration member names are used (in lowercase) as unique string
|
||
|
// identifiers of profile types, so they must not be renamed.
|
||
|
type ProfileType int32
|
||
|
|
||
|
const (
|
||
|
// Unspecified profile type.
|
||
|
ProfileType_PROFILE_TYPE_UNSPECIFIED ProfileType = 0
|
||
|
// Thread CPU time sampling.
|
||
|
ProfileType_CPU ProfileType = 1
|
||
|
// Wallclock time sampling. More expensive as stops all threads.
|
||
|
ProfileType_WALL ProfileType = 2
|
||
|
// Heap allocation sampling.
|
||
|
ProfileType_HEAP ProfileType = 3
|
||
|
// Single-shot collection of all thread stacks.
|
||
|
ProfileType_THREADS ProfileType = 4
|
||
|
// Synchronization contention profile.
|
||
|
ProfileType_CONTENTION ProfileType = 5
|
||
|
)
|
||
|
|
||
|
var ProfileType_name = map[int32]string{
|
||
|
0: "PROFILE_TYPE_UNSPECIFIED",
|
||
|
1: "CPU",
|
||
|
2: "WALL",
|
||
|
3: "HEAP",
|
||
|
4: "THREADS",
|
||
|
5: "CONTENTION",
|
||
|
}
|
||
|
var ProfileType_value = map[string]int32{
|
||
|
"PROFILE_TYPE_UNSPECIFIED": 0,
|
||
|
"CPU": 1,
|
||
|
"WALL": 2,
|
||
|
"HEAP": 3,
|
||
|
"THREADS": 4,
|
||
|
"CONTENTION": 5,
|
||
|
}
|
||
|
|
||
|
func (x ProfileType) String() string {
|
||
|
return proto.EnumName(ProfileType_name, int32(x))
|
||
|
}
|
||
|
func (ProfileType) EnumDescriptor() ([]byte, []int) {
|
||
|
return fileDescriptor_profiler_7d2b72df1b5ba64c, []int{0}
|
||
|
}
|
||
|
|
||
|
// CreateProfileRequest describes a profile resource creation request.
|
||
|
// Deployment field must be populated for both online and offline modes.
|
||
|
// For the online mode, profile field is not set and the profile_type specifies
|
||
|
// the list of profile types supported by the agent. The creation call will hang
|
||
|
// until a profile of one of these types needs to be collected. For offline
|
||
|
// mode, profile field must be set, profile_type must be empty, and deployment
|
||
|
// field must be identical to the deployment in the profile.
|
||
|
type CreateProfileRequest struct {
|
||
|
// Deployment details.
|
||
|
Deployment *Deployment `protobuf:"bytes,1,opt,name=deployment,proto3" json:"deployment,omitempty"`
|
||
|
// Online mode: One or more profile types that the agent is capable of
|
||
|
// providing.
|
||
|
ProfileType []ProfileType `protobuf:"varint,2,rep,packed,name=profile_type,json=profileType,proto3,enum=google.devtools.cloudprofiler.v2.ProfileType" json:"profile_type,omitempty"`
|
||
|
// Offline mode: Contents of the profile to create.
|
||
|
Profile *Profile `protobuf:"bytes,3,opt,name=profile,proto3" json:"profile,omitempty"`
|
||
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||
|
XXX_unrecognized []byte `json:"-"`
|
||
|
XXX_sizecache int32 `json:"-"`
|
||
|
}
|
||
|
|
||
|
func (m *CreateProfileRequest) Reset() { *m = CreateProfileRequest{} }
|
||
|
func (m *CreateProfileRequest) String() string { return proto.CompactTextString(m) }
|
||
|
func (*CreateProfileRequest) ProtoMessage() {}
|
||
|
func (*CreateProfileRequest) Descriptor() ([]byte, []int) {
|
||
|
return fileDescriptor_profiler_7d2b72df1b5ba64c, []int{0}
|
||
|
}
|
||
|
func (m *CreateProfileRequest) XXX_Unmarshal(b []byte) error {
|
||
|
return xxx_messageInfo_CreateProfileRequest.Unmarshal(m, b)
|
||
|
}
|
||
|
func (m *CreateProfileRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||
|
return xxx_messageInfo_CreateProfileRequest.Marshal(b, m, deterministic)
|
||
|
}
|
||
|
func (dst *CreateProfileRequest) XXX_Merge(src proto.Message) {
|
||
|
xxx_messageInfo_CreateProfileRequest.Merge(dst, src)
|
||
|
}
|
||
|
func (m *CreateProfileRequest) XXX_Size() int {
|
||
|
return xxx_messageInfo_CreateProfileRequest.Size(m)
|
||
|
}
|
||
|
func (m *CreateProfileRequest) XXX_DiscardUnknown() {
|
||
|
xxx_messageInfo_CreateProfileRequest.DiscardUnknown(m)
|
||
|
}
|
||
|
|
||
|
var xxx_messageInfo_CreateProfileRequest proto.InternalMessageInfo
|
||
|
|
||
|
func (m *CreateProfileRequest) GetDeployment() *Deployment {
|
||
|
if m != nil {
|
||
|
return m.Deployment
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
func (m *CreateProfileRequest) GetProfileType() []ProfileType {
|
||
|
if m != nil {
|
||
|
return m.ProfileType
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
func (m *CreateProfileRequest) GetProfile() *Profile {
|
||
|
if m != nil {
|
||
|
return m.Profile
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
// UpdateProfileRequest contains the profile to update.
|
||
|
type UpdateProfileRequest struct {
|
||
|
// Profile to update
|
||
|
Profile *Profile `protobuf:"bytes,1,opt,name=profile,proto3" json:"profile,omitempty"`
|
||
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||
|
XXX_unrecognized []byte `json:"-"`
|
||
|
XXX_sizecache int32 `json:"-"`
|
||
|
}
|
||
|
|
||
|
func (m *UpdateProfileRequest) Reset() { *m = UpdateProfileRequest{} }
|
||
|
func (m *UpdateProfileRequest) String() string { return proto.CompactTextString(m) }
|
||
|
func (*UpdateProfileRequest) ProtoMessage() {}
|
||
|
func (*UpdateProfileRequest) Descriptor() ([]byte, []int) {
|
||
|
return fileDescriptor_profiler_7d2b72df1b5ba64c, []int{1}
|
||
|
}
|
||
|
func (m *UpdateProfileRequest) XXX_Unmarshal(b []byte) error {
|
||
|
return xxx_messageInfo_UpdateProfileRequest.Unmarshal(m, b)
|
||
|
}
|
||
|
func (m *UpdateProfileRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||
|
return xxx_messageInfo_UpdateProfileRequest.Marshal(b, m, deterministic)
|
||
|
}
|
||
|
func (dst *UpdateProfileRequest) XXX_Merge(src proto.Message) {
|
||
|
xxx_messageInfo_UpdateProfileRequest.Merge(dst, src)
|
||
|
}
|
||
|
func (m *UpdateProfileRequest) XXX_Size() int {
|
||
|
return xxx_messageInfo_UpdateProfileRequest.Size(m)
|
||
|
}
|
||
|
func (m *UpdateProfileRequest) XXX_DiscardUnknown() {
|
||
|
xxx_messageInfo_UpdateProfileRequest.DiscardUnknown(m)
|
||
|
}
|
||
|
|
||
|
var xxx_messageInfo_UpdateProfileRequest proto.InternalMessageInfo
|
||
|
|
||
|
func (m *UpdateProfileRequest) GetProfile() *Profile {
|
||
|
if m != nil {
|
||
|
return m.Profile
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
// Profile resource.
|
||
|
type Profile struct {
|
||
|
// Opaque, server-assigned, unique ID for this profile.
|
||
|
// Output only.
|
||
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||
|
// Type of profile.
|
||
|
// Input (for the offline mode) or output (for the online mode).
|
||
|
ProfileType ProfileType `protobuf:"varint,2,opt,name=profile_type,json=profileType,proto3,enum=google.devtools.cloudprofiler.v2.ProfileType" json:"profile_type,omitempty"`
|
||
|
// Deployment this profile corresponds to.
|
||
|
Deployment *Deployment `protobuf:"bytes,3,opt,name=deployment,proto3" json:"deployment,omitempty"`
|
||
|
// Duration of the profiling session.
|
||
|
// Input (for the offline mode) or output (for the online mode).
|
||
|
// The field represents requested profiling duration. It may slightly differ
|
||
|
// from the effective profiling duration, which is recorded in the profile
|
||
|
// data, in case the profiling can't be stopped immediately (e.g. in case
|
||
|
// stopping the profiling is handled asynchronously).
|
||
|
Duration *duration.Duration `protobuf:"bytes,4,opt,name=duration,proto3" json:"duration,omitempty"`
|
||
|
// Profile bytes, as a gzip compressed serialized proto, the format is
|
||
|
// https://github.com/google/pprof/blob/master/proto/profile.proto.
|
||
|
ProfileBytes []byte `protobuf:"bytes,5,opt,name=profile_bytes,json=profileBytes,proto3" json:"profile_bytes,omitempty"`
|
||
|
// Labels associated to this specific profile. These labels will get merged
|
||
|
// with the deployment labels for the final data set.
|
||
|
// See documentation on deployment labels for validation rules and limits.
|
||
|
// Input only, will not be populated on responses.
|
||
|
Labels map[string]string `protobuf:"bytes,6,rep,name=labels,proto3" json:"labels,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 (m *Profile) Reset() { *m = Profile{} }
|
||
|
func (m *Profile) String() string { return proto.CompactTextString(m) }
|
||
|
func (*Profile) ProtoMessage() {}
|
||
|
func (*Profile) Descriptor() ([]byte, []int) {
|
||
|
return fileDescriptor_profiler_7d2b72df1b5ba64c, []int{2}
|
||
|
}
|
||
|
func (m *Profile) XXX_Unmarshal(b []byte) error {
|
||
|
return xxx_messageInfo_Profile.Unmarshal(m, b)
|
||
|
}
|
||
|
func (m *Profile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||
|
return xxx_messageInfo_Profile.Marshal(b, m, deterministic)
|
||
|
}
|
||
|
func (dst *Profile) XXX_Merge(src proto.Message) {
|
||
|
xxx_messageInfo_Profile.Merge(dst, src)
|
||
|
}
|
||
|
func (m *Profile) XXX_Size() int {
|
||
|
return xxx_messageInfo_Profile.Size(m)
|
||
|
}
|
||
|
func (m *Profile) XXX_DiscardUnknown() {
|
||
|
xxx_messageInfo_Profile.DiscardUnknown(m)
|
||
|
}
|
||
|
|
||
|
var xxx_messageInfo_Profile proto.InternalMessageInfo
|
||
|
|
||
|
func (m *Profile) GetName() string {
|
||
|
if m != nil {
|
||
|
return m.Name
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
func (m *Profile) GetProfileType() ProfileType {
|
||
|
if m != nil {
|
||
|
return m.ProfileType
|
||
|
}
|
||
|
return ProfileType_PROFILE_TYPE_UNSPECIFIED
|
||
|
}
|
||
|
|
||
|
func (m *Profile) GetDeployment() *Deployment {
|
||
|
if m != nil {
|
||
|
return m.Deployment
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
func (m *Profile) GetDuration() *duration.Duration {
|
||
|
if m != nil {
|
||
|
return m.Duration
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
func (m *Profile) GetProfileBytes() []byte {
|
||
|
if m != nil {
|
||
|
return m.ProfileBytes
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
func (m *Profile) GetLabels() map[string]string {
|
||
|
if m != nil {
|
||
|
return m.Labels
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
// Deployment contains the deployment identification information.
|
||
|
type Deployment struct {
|
||
|
// Project ID is the ID of a cloud project.
|
||
|
// Validation regex: `^[a-z][-a-z0-9:.]{4,61}[a-z0-9]$`.
|
||
|
ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
|
||
|
// Target is the service name used to group related deployments:
|
||
|
// * Service name for GAE Flex / Standard.
|
||
|
// * Cluster and container name for GKE.
|
||
|
// * User-specified string for direct GCE profiling (e.g. Java).
|
||
|
// * Job name for Dataflow.
|
||
|
// Validation regex: `^[a-z]([-a-z0-9_.]{0,253}[a-z0-9])?$`.
|
||
|
Target string `protobuf:"bytes,2,opt,name=target,proto3" json:"target,omitempty"`
|
||
|
// Labels identify the deployment within the user universe and same target.
|
||
|
// Validation regex for label names: `^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$`.
|
||
|
// Value for an individual label must be <= 512 bytes, the total
|
||
|
// size of all label names and values must be <= 1024 bytes.
|
||
|
//
|
||
|
// Label named "language" can be used to record the programming language of
|
||
|
// the profiled deployment. The standard choices for the value include "java",
|
||
|
// "go", "python", "ruby", "nodejs", "php", "dotnet".
|
||
|
//
|
||
|
// For deployments running on Google Cloud Platform, "zone" or "region" label
|
||
|
// should be present describing the deployment location. An example of a zone
|
||
|
// is "us-central1-a", an example of a region is "us-central1" or
|
||
|
// "us-central".
|
||
|
Labels map[string]string `protobuf:"bytes,3,rep,name=labels,proto3" json:"labels,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 (m *Deployment) Reset() { *m = Deployment{} }
|
||
|
func (m *Deployment) String() string { return proto.CompactTextString(m) }
|
||
|
func (*Deployment) ProtoMessage() {}
|
||
|
func (*Deployment) Descriptor() ([]byte, []int) {
|
||
|
return fileDescriptor_profiler_7d2b72df1b5ba64c, []int{3}
|
||
|
}
|
||
|
func (m *Deployment) XXX_Unmarshal(b []byte) error {
|
||
|
return xxx_messageInfo_Deployment.Unmarshal(m, b)
|
||
|
}
|
||
|
func (m *Deployment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||
|
return xxx_messageInfo_Deployment.Marshal(b, m, deterministic)
|
||
|
}
|
||
|
func (dst *Deployment) XXX_Merge(src proto.Message) {
|
||
|
xxx_messageInfo_Deployment.Merge(dst, src)
|
||
|
}
|
||
|
func (m *Deployment) XXX_Size() int {
|
||
|
return xxx_messageInfo_Deployment.Size(m)
|
||
|
}
|
||
|
func (m *Deployment) XXX_DiscardUnknown() {
|
||
|
xxx_messageInfo_Deployment.DiscardUnknown(m)
|
||
|
}
|
||
|
|
||
|
var xxx_messageInfo_Deployment proto.InternalMessageInfo
|
||
|
|
||
|
func (m *Deployment) GetProjectId() string {
|
||
|
if m != nil {
|
||
|
return m.ProjectId
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
func (m *Deployment) GetTarget() string {
|
||
|
if m != nil {
|
||
|
return m.Target
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
func (m *Deployment) GetLabels() map[string]string {
|
||
|
if m != nil {
|
||
|
return m.Labels
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
func init() {
|
||
|
proto.RegisterType((*CreateProfileRequest)(nil), "google.devtools.cloudprofiler.v2.CreateProfileRequest")
|
||
|
proto.RegisterType((*UpdateProfileRequest)(nil), "google.devtools.cloudprofiler.v2.UpdateProfileRequest")
|
||
|
proto.RegisterType((*Profile)(nil), "google.devtools.cloudprofiler.v2.Profile")
|
||
|
proto.RegisterMapType((map[string]string)(nil), "google.devtools.cloudprofiler.v2.Profile.LabelsEntry")
|
||
|
proto.RegisterType((*Deployment)(nil), "google.devtools.cloudprofiler.v2.Deployment")
|
||
|
proto.RegisterMapType((map[string]string)(nil), "google.devtools.cloudprofiler.v2.Deployment.LabelsEntry")
|
||
|
proto.RegisterEnum("google.devtools.cloudprofiler.v2.ProfileType", ProfileType_name, ProfileType_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
|
||
|
|
||
|
// ProfilerServiceClient is the client API for ProfilerService service.
|
||
|
//
|
||
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
||
|
type ProfilerServiceClient interface {
|
||
|
// CreateProfile creates a new profile resource.
|
||
|
//
|
||
|
// In the online creation mode:
|
||
|
// * The server ensures that the new profiles are created at a constant rate
|
||
|
// per deployment, so the creation request may hang for some time until the
|
||
|
// next profile session is available.
|
||
|
// * The request may fail with ABORTED error if the creation is not
|
||
|
// available within ~1m, the response will indicate the duration of the
|
||
|
// backoff the client should take before attempting creating a profile
|
||
|
// again. The backoff duration is returned in google.rpc.RetryInfo extension
|
||
|
// on the response status. To a gRPC client, the extension will be return as
|
||
|
// a binary-serialized proto in the trailing metadata item named
|
||
|
// "google.rpc.retryinfo-bin".
|
||
|
//
|
||
|
// In the offline creation mode:
|
||
|
// * The client provides the profile to create along with the profile bytes,
|
||
|
// the server records it.
|
||
|
CreateProfile(ctx context.Context, in *CreateProfileRequest, opts ...grpc.CallOption) (*Profile, error)
|
||
|
// UpdateProfile updates the profile bytes and labels on the profile resource
|
||
|
// created in the online mode.
|
||
|
UpdateProfile(ctx context.Context, in *UpdateProfileRequest, opts ...grpc.CallOption) (*Profile, error)
|
||
|
}
|
||
|
|
||
|
type profilerServiceClient struct {
|
||
|
cc *grpc.ClientConn
|
||
|
}
|
||
|
|
||
|
func NewProfilerServiceClient(cc *grpc.ClientConn) ProfilerServiceClient {
|
||
|
return &profilerServiceClient{cc}
|
||
|
}
|
||
|
|
||
|
func (c *profilerServiceClient) CreateProfile(ctx context.Context, in *CreateProfileRequest, opts ...grpc.CallOption) (*Profile, error) {
|
||
|
out := new(Profile)
|
||
|
err := c.cc.Invoke(ctx, "/google.devtools.cloudprofiler.v2.ProfilerService/CreateProfile", in, out, opts...)
|
||
|
if err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
return out, nil
|
||
|
}
|
||
|
|
||
|
func (c *profilerServiceClient) UpdateProfile(ctx context.Context, in *UpdateProfileRequest, opts ...grpc.CallOption) (*Profile, error) {
|
||
|
out := new(Profile)
|
||
|
err := c.cc.Invoke(ctx, "/google.devtools.cloudprofiler.v2.ProfilerService/UpdateProfile", in, out, opts...)
|
||
|
if err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
return out, nil
|
||
|
}
|
||
|
|
||
|
// ProfilerServiceServer is the server API for ProfilerService service.
|
||
|
type ProfilerServiceServer interface {
|
||
|
// CreateProfile creates a new profile resource.
|
||
|
//
|
||
|
// In the online creation mode:
|
||
|
// * The server ensures that the new profiles are created at a constant rate
|
||
|
// per deployment, so the creation request may hang for some time until the
|
||
|
// next profile session is available.
|
||
|
// * The request may fail with ABORTED error if the creation is not
|
||
|
// available within ~1m, the response will indicate the duration of the
|
||
|
// backoff the client should take before attempting creating a profile
|
||
|
// again. The backoff duration is returned in google.rpc.RetryInfo extension
|
||
|
// on the response status. To a gRPC client, the extension will be return as
|
||
|
// a binary-serialized proto in the trailing metadata item named
|
||
|
// "google.rpc.retryinfo-bin".
|
||
|
//
|
||
|
// In the offline creation mode:
|
||
|
// * The client provides the profile to create along with the profile bytes,
|
||
|
// the server records it.
|
||
|
CreateProfile(context.Context, *CreateProfileRequest) (*Profile, error)
|
||
|
// UpdateProfile updates the profile bytes and labels on the profile resource
|
||
|
// created in the online mode.
|
||
|
UpdateProfile(context.Context, *UpdateProfileRequest) (*Profile, error)
|
||
|
}
|
||
|
|
||
|
func RegisterProfilerServiceServer(s *grpc.Server, srv ProfilerServiceServer) {
|
||
|
s.RegisterService(&_ProfilerService_serviceDesc, srv)
|
||
|
}
|
||
|
|
||
|
func _ProfilerService_CreateProfile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||
|
in := new(CreateProfileRequest)
|
||
|
if err := dec(in); err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
if interceptor == nil {
|
||
|
return srv.(ProfilerServiceServer).CreateProfile(ctx, in)
|
||
|
}
|
||
|
info := &grpc.UnaryServerInfo{
|
||
|
Server: srv,
|
||
|
FullMethod: "/google.devtools.cloudprofiler.v2.ProfilerService/CreateProfile",
|
||
|
}
|
||
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||
|
return srv.(ProfilerServiceServer).CreateProfile(ctx, req.(*CreateProfileRequest))
|
||
|
}
|
||
|
return interceptor(ctx, in, info, handler)
|
||
|
}
|
||
|
|
||
|
func _ProfilerService_UpdateProfile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||
|
in := new(UpdateProfileRequest)
|
||
|
if err := dec(in); err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
if interceptor == nil {
|
||
|
return srv.(ProfilerServiceServer).UpdateProfile(ctx, in)
|
||
|
}
|
||
|
info := &grpc.UnaryServerInfo{
|
||
|
Server: srv,
|
||
|
FullMethod: "/google.devtools.cloudprofiler.v2.ProfilerService/UpdateProfile",
|
||
|
}
|
||
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||
|
return srv.(ProfilerServiceServer).UpdateProfile(ctx, req.(*UpdateProfileRequest))
|
||
|
}
|
||
|
return interceptor(ctx, in, info, handler)
|
||
|
}
|
||
|
|
||
|
var _ProfilerService_serviceDesc = grpc.ServiceDesc{
|
||
|
ServiceName: "google.devtools.cloudprofiler.v2.ProfilerService",
|
||
|
HandlerType: (*ProfilerServiceServer)(nil),
|
||
|
Methods: []grpc.MethodDesc{
|
||
|
{
|
||
|
MethodName: "CreateProfile",
|
||
|
Handler: _ProfilerService_CreateProfile_Handler,
|
||
|
},
|
||
|
{
|
||
|
MethodName: "UpdateProfile",
|
||
|
Handler: _ProfilerService_UpdateProfile_Handler,
|
||
|
},
|
||
|
},
|
||
|
Streams: []grpc.StreamDesc{},
|
||
|
Metadata: "google/devtools/cloudprofiler/v2/profiler.proto",
|
||
|
}
|
||
|
|
||
|
func init() {
|
||
|
proto.RegisterFile("google/devtools/cloudprofiler/v2/profiler.proto", fileDescriptor_profiler_7d2b72df1b5ba64c)
|
||
|
}
|
||
|
|
||
|
var fileDescriptor_profiler_7d2b72df1b5ba64c = []byte{
|
||
|
// 661 bytes of a gzipped FileDescriptorProto
|
||
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x55, 0xcd, 0x6e, 0xd3, 0x40,
|
||
|
0x10, 0x66, 0xe3, 0x34, 0x69, 0x27, 0x6d, 0xb1, 0x56, 0x15, 0x32, 0x51, 0x81, 0x28, 0x5c, 0x42,
|
||
|
0x44, 0x6d, 0xc9, 0x55, 0x51, 0x5b, 0xc4, 0xa1, 0x4d, 0x5c, 0x35, 0x52, 0x9a, 0x58, 0x6e, 0x2a,
|
||
|
0x04, 0x1c, 0x22, 0xa7, 0xde, 0x5a, 0x06, 0xc7, 0x6b, 0xec, 0x4d, 0xa4, 0xa8, 0xea, 0x85, 0x57,
|
||
|
0xe0, 0x11, 0xb8, 0xc2, 0xbb, 0x20, 0xf1, 0x0a, 0x3c, 0x00, 0x77, 0x2e, 0xc8, 0xf6, 0x3a, 0x3f,
|
||
|
0x50, 0x94, 0x94, 0x72, 0xdb, 0x99, 0x9d, 0xef, 0xdb, 0x6f, 0x66, 0xd7, 0x9f, 0x41, 0xb1, 0x29,
|
||
|
0xb5, 0x5d, 0xa2, 0x58, 0x64, 0xc8, 0x28, 0x75, 0x43, 0xe5, 0xdc, 0xa5, 0x03, 0xcb, 0x0f, 0xe8,
|
||
|
0x85, 0xe3, 0x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