| 1 |
// Copyright 2023 Google LLC |
| 2 |
// |
| 3 |
// Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 |
// you may not use this file except in compliance with the License. |
| 5 |
// You may obtain a copy of the License at |
| 6 |
// |
| 7 |
// http://www.apache.org/licenses/LICENSE-2.0 |
| 8 |
// |
| 9 |
// Unless required by applicable law or agreed to in writing, software |
| 10 |
// distributed under the License is distributed on an "AS IS" BASIS, |
| 11 |
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 |
// See the License for the specific language governing permissions and |
| 13 |
// limitations under the License. |
| 14 |
|
| 15 |
// Code generated by protoc-gen-go. DO NOT EDIT. |
| 16 |
// versions: |
| 17 |
// protoc-gen-go v1.26.0 |
| 18 |
// protoc v3.21.9 |
| 19 |
// source: google/devtools/cloudprofiler/v2/profiler.proto |
| 20 |
|
| 21 |
package cloudprofiler |
| 22 |
|
| 23 |
import ( |
| 24 |
context "context" |
| 25 |
reflect "reflect" |
| 26 |
sync "sync" |
| 27 |
|
| 28 |
_ "google.golang.org/genproto/googleapis/api/annotations" |
| 29 |
grpc "google.golang.org/grpc" |
| 30 |
codes "google.golang.org/grpc/codes" |
| 31 |
status "google.golang.org/grpc/status" |
| 32 |
protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| 33 |
protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| 34 |
durationpb "google.golang.org/protobuf/types/known/durationpb" |
| 35 |
fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" |
| 36 |
) |
| 37 |
|
| 38 |
const ( |
| 39 |
// Verify that this generated code is sufficiently up-to-date. |
| 40 |
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| 41 |
// Verify that runtime/protoimpl is sufficiently up-to-date. |
| 42 |
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| 43 |
) |
| 44 |
|
| 45 |
// ProfileType is type of profiling data. |
| 46 |
// NOTE: the enumeration member names are used (in lowercase) as unique string |
| 47 |
// identifiers of profile types, so they must not be renamed. |
| 48 |
type ProfileType int32 |
| 49 |
|
| 50 |
const ( |
| 51 |
// Unspecified profile type. |
| 52 |
ProfileType_PROFILE_TYPE_UNSPECIFIED ProfileType = 0 |
| 53 |
// Thread CPU time sampling. |
| 54 |
ProfileType_CPU ProfileType = 1 |
| 55 |
// Wallclock time sampling. More expensive as stops all threads. |
| 56 |
ProfileType_WALL ProfileType = 2 |
| 57 |
// In-use heap profile. Represents a snapshot of the allocations that are |
| 58 |
// live at the time of the profiling. |
| 59 |
ProfileType_HEAP ProfileType = 3 |
| 60 |
// Single-shot collection of all thread stacks. |
| 61 |
ProfileType_THREADS ProfileType = 4 |
| 62 |
// Synchronization contention profile. |
| 63 |
ProfileType_CONTENTION ProfileType = 5 |
| 64 |
// Peak heap profile. |
| 65 |
ProfileType_PEAK_HEAP ProfileType = 6 |
| 66 |
// Heap allocation profile. It represents the aggregation of all allocations |
| 67 |
// made over the duration of the profile. All allocations are included, |
| 68 |
// including those that might have been freed by the end of the profiling |
| 69 |
// interval. The profile is in particular useful for garbage collecting |
| 70 |
// languages to understand which parts of the code create most of the garbage |
| 71 |
// collection pressure to see if those can be optimized. |
| 72 |
ProfileType_HEAP_ALLOC ProfileType = 7 |
| 73 |
) |
| 74 |
|
| 75 |
// Enum value maps for ProfileType. |
| 76 |
var ( |
| 77 |
ProfileType_name = map[int32]string{ |
| 78 |
0: "PROFILE_TYPE_UNSPECIFIED", |
| 79 |
1: "CPU", |
| 80 |
2: "WALL", |
| 81 |
3: "HEAP", |
| 82 |
4: "THREADS", |
| 83 |
5: "CONTENTION", |
| 84 |
6: "PEAK_HEAP", |
| 85 |
7: "HEAP_ALLOC", |
| 86 |
} |
| 87 |
ProfileType_value = map[string]int32{ |
| 88 |
"PROFILE_TYPE_UNSPECIFIED": 0, |
| 89 |
"CPU": 1, |
| 90 |
"WALL": 2, |
| 91 |
"HEAP": 3, |
| 92 |
"THREADS": 4, |
| 93 |
"CONTENTION": 5, |
| 94 |
"PEAK_HEAP": 6, |
| 95 |
"HEAP_ALLOC": 7, |
| 96 |
} |
| 97 |
) |
| 98 |
|
| 99 |
func (x ProfileType) Enum() *ProfileType { |
| 100 |
p := new(ProfileType) |
| 101 |
*p = x |
| 102 |
return p |
| 103 |
} |
| 104 |
|
| 105 |
func (x ProfileType) String() string { |
| 106 |
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| 107 |
} |
| 108 |
|
| 109 |
func (ProfileType) Descriptor() protoreflect.EnumDescriptor { |
| 110 |
return file_google_devtools_cloudprofiler_v2_profiler_proto_enumTypes[0].Descriptor() |
| 111 |
} |
| 112 |
|
| 113 |
func (ProfileType) Type() protoreflect.EnumType { |
| 114 |
return &file_google_devtools_cloudprofiler_v2_profiler_proto_enumTypes[0] |
| 115 |
} |
| 116 |
|
| 117 |
func (x ProfileType) Number() protoreflect.EnumNumber { |
| 118 |
return protoreflect.EnumNumber(x) |
| 119 |
} |
| 120 |
|
| 121 |
// Deprecated: Use ProfileType.Descriptor instead. |
| 122 |
func (ProfileType) EnumDescriptor() ([]byte, []int) { |
| 123 |
return file_google_devtools_cloudprofiler_v2_profiler_proto_rawDescGZIP(), []int{0} |
| 124 |
} |
| 125 |
|
| 126 |
// CreateProfileRequest describes a profile resource online creation request. |
| 127 |
// The deployment field must be populated. The profile_type specifies the list |
| 128 |
// of profile types supported by the agent. The creation call will hang until a |
| 129 |
// profile of one of these types needs to be collected. |
| 130 |
type CreateProfileRequest struct { |
| 131 |
state protoimpl.MessageState |
| 132 |
sizeCache protoimpl.SizeCache |
| 133 |
unknownFields protoimpl.UnknownFields |
| 134 |
|
| 135 |
// Parent project to create the profile in. |
| 136 |
Parent string `protobuf:"bytes,4,opt,name=parent,proto3" json:"parent,omitempty"` |
| 137 |
// Deployment details. |
| 138 |
Deployment *Deployment `protobuf:"bytes,1,opt,name=deployment,proto3" json:"deployment,omitempty"` |
| 139 |
// One or more profile types that the agent is capable of providing. |
| 140 |
ProfileType []ProfileType `protobuf:"varint,2,rep,packed,name=profile_type,json=profileType,proto3,enum=google.devtools.cloudprofiler.v2.ProfileType" json:"profile_type,omitempty"` |
| 141 |
} |
| 142 |
|
| 143 |
func (x *CreateProfileRequest) Reset() { |
| 144 |
*x = CreateProfileRequest{} |
| 145 |
if protoimpl.UnsafeEnabled { |
| 146 |
mi := &file_google_devtools_cloudprofiler_v2_profiler_proto_msgTypes[0] |
| 147 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 148 |
ms.StoreMessageInfo(mi) |
| 149 |
} |
| 150 |
} |
| 151 |
|
| 152 |
func (x *CreateProfileRequest) String() string { |
| 153 |
return protoimpl.X.MessageStringOf(x) |
| 154 |
} |
| 155 |
|
| 156 |
func (*CreateProfileRequest) ProtoMessage() {} |
| 157 |
|
| 158 |
func (x *CreateProfileRequest) ProtoReflect() protoreflect.Message { |
| 159 |
mi := &file_google_devtools_cloudprofiler_v2_profiler_proto_msgTypes[0] |
| 160 |
if protoimpl.UnsafeEnabled && x != nil { |
| 161 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 162 |
if ms.LoadMessageInfo() == nil { |
| 163 |
ms.StoreMessageInfo(mi) |
| 164 |
} |
| 165 |
return ms |
| 166 |
} |
| 167 |
return mi.MessageOf(x) |
| 168 |
} |
| 169 |
|
| 170 |
// Deprecated: Use CreateProfileRequest.ProtoReflect.Descriptor instead. |
| 171 |
func (*CreateProfileRequest) Descriptor() ([]byte, []int) { |
| 172 |
return file_google_devtools_cloudprofiler_v2_profiler_proto_rawDescGZIP(), []int{0} |
| 173 |
} |
| 174 |
|
| 175 |
func (x *CreateProfileRequest) GetParent() string { |
| 176 |
if x != nil { |
| 177 |
return x.Parent |
| 178 |
} |
| 179 |
return "" |
| 180 |
} |
| 181 |
|
| 182 |
func (x *CreateProfileRequest) GetDeployment() *Deployment { |
| 183 |
if x != nil { |
| 184 |
return x.Deployment |
| 185 |
} |
| 186 |
return nil |
| 187 |
} |
| 188 |
|
| 189 |
func (x *CreateProfileRequest) GetProfileType() []ProfileType { |
| 190 |
if x != nil { |
| 191 |
return x.ProfileType |
| 192 |
} |
| 193 |
return nil |
| 194 |
} |
| 195 |
|
| 196 |
// CreateOfflineProfileRequest describes a profile resource offline creation |
| 197 |
// request. |
| 198 |
type CreateOfflineProfileRequest struct { |
| 199 |
state protoimpl.MessageState |
| 200 |
sizeCache protoimpl.SizeCache |
| 201 |
unknownFields protoimpl.UnknownFields |
| 202 |
|
| 203 |
// Parent project to create the profile in. |
| 204 |
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` |
| 205 |
// Contents of the profile to create. |
| 206 |
Profile *Profile `protobuf:"bytes,2,opt,name=profile,proto3" json:"profile,omitempty"` |
| 207 |
} |
| 208 |
|
| 209 |
func (x *CreateOfflineProfileRequest) Reset() { |
| 210 |
*x = CreateOfflineProfileRequest{} |
| 211 |
if protoimpl.UnsafeEnabled { |
| 212 |
mi := &file_google_devtools_cloudprofiler_v2_profiler_proto_msgTypes[1] |
| 213 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 214 |
ms.StoreMessageInfo(mi) |
| 215 |
} |
| 216 |
} |
| 217 |
|
| 218 |
func (x *CreateOfflineProfileRequest) String() string { |
| 219 |
return protoimpl.X.MessageStringOf(x) |
| 220 |
} |
| 221 |
|
| 222 |
func (*CreateOfflineProfileRequest) ProtoMessage() {} |
| 223 |
|
| 224 |
func (x *CreateOfflineProfileRequest) ProtoReflect() protoreflect.Message { |
| 225 |
mi := &file_google_devtools_cloudprofiler_v2_profiler_proto_msgTypes[1] |
| 226 |
if protoimpl.UnsafeEnabled && x != nil { |
| 227 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 228 |
if ms.LoadMessageInfo() == nil { |
| 229 |
ms.StoreMessageInfo(mi) |
| 230 |
} |
| 231 |
return ms |
| 232 |
} |
| 233 |
return mi.MessageOf(x) |
| 234 |
} |
| 235 |
|
| 236 |
// Deprecated: Use CreateOfflineProfileRequest.ProtoReflect.Descriptor instead. |
| 237 |
func (*CreateOfflineProfileRequest) Descriptor() ([]byte, []int) { |
| 238 |
return file_google_devtools_cloudprofiler_v2_profiler_proto_rawDescGZIP(), []int{1} |
| 239 |
} |
| 240 |
|
| 241 |
func (x *CreateOfflineProfileRequest) GetParent() string { |
| 242 |
if x != nil { |
| 243 |
return x.Parent |
| 244 |
} |
| 245 |
return "" |
| 246 |
} |
| 247 |
|
| 248 |
func (x *CreateOfflineProfileRequest) GetProfile() *Profile { |
| 249 |
if x != nil { |
| 250 |
return x.Profile |
| 251 |
} |
| 252 |
return nil |
| 253 |
} |
| 254 |
|
| 255 |
// UpdateProfileRequest contains the profile to update. |
| 256 |
type UpdateProfileRequest struct { |
| 257 |
state protoimpl.MessageState |
| 258 |
sizeCache protoimpl.SizeCache |
| 259 |
unknownFields protoimpl.UnknownFields |
| 260 |
|
| 261 |
// Profile to update. |
| 262 |
Profile *Profile `protobuf:"bytes,1,opt,name=profile,proto3" json:"profile,omitempty"` |
| 263 |
// Field mask used to specify the fields to be overwritten. Currently only |
| 264 |
// profile_bytes and labels fields are supported by UpdateProfile, so only |
| 265 |
// those fields can be specified in the mask. When no mask is provided, all |
| 266 |
// fields are overwritten. |
| 267 |
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` |
| 268 |
} |
| 269 |
|
| 270 |
func (x *UpdateProfileRequest) Reset() { |
| 271 |
*x = UpdateProfileRequest{} |
| 272 |
if protoimpl.UnsafeEnabled { |
| 273 |
mi := &file_google_devtools_cloudprofiler_v2_profiler_proto_msgTypes[2] |
| 274 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 275 |
ms.StoreMessageInfo(mi) |
| 276 |
} |
| 277 |
} |
| 278 |
|
| 279 |
func (x *UpdateProfileRequest) String() string { |
| 280 |
return protoimpl.X.MessageStringOf(x) |
| 281 |
} |
| 282 |
|
| 283 |
func (*UpdateProfileRequest) ProtoMessage() {} |
| 284 |
|
| 285 |
func (x *UpdateProfileRequest) ProtoReflect() protoreflect.Message { |
| 286 |
mi := &file_google_devtools_cloudprofiler_v2_profiler_proto_msgTypes[2] |
| 287 |
if protoimpl.UnsafeEnabled && x != nil { |
| 288 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 289 |
if ms.LoadMessageInfo() == nil { |
| 290 |
ms.StoreMessageInfo(mi) |
| 291 |
} |
| 292 |
return ms |
| 293 |
} |
| 294 |
return mi.MessageOf(x) |
| 295 |
} |
| 296 |
|
| 297 |
// Deprecated: Use UpdateProfileRequest.ProtoReflect.Descriptor instead. |
| 298 |
func (*UpdateProfileRequest) Descriptor() ([]byte, []int) { |
| 299 |
return file_google_devtools_cloudprofiler_v2_profiler_proto_rawDescGZIP(), []int{2} |
| 300 |
} |
| 301 |
|
| 302 |
func (x *UpdateProfileRequest) GetProfile() *Profile { |
| 303 |
if x != nil { |
| 304 |
return x.Profile |
| 305 |
} |
| 306 |
return nil |
| 307 |
} |
| 308 |
|
| 309 |
func (x *UpdateProfileRequest) GetUpdateMask() *fieldmaskpb.FieldMask { |
| 310 |
if x != nil { |
| 311 |
return x.UpdateMask |
| 312 |
} |
| 313 |
return nil |
| 314 |
} |
| 315 |
|
| 316 |
// Profile resource. |
| 317 |
type Profile struct { |
| 318 |
state protoimpl.MessageState |
| 319 |
sizeCache protoimpl.SizeCache |
| 320 |
unknownFields protoimpl.UnknownFields |
| 321 |
|
| 322 |
// Output only. Opaque, server-assigned, unique ID for this profile. |
| 323 |
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| 324 |
// Type of profile. |
| 325 |
// For offline mode, this must be specified when creating the profile. For |
| 326 |
// online mode it is assigned and returned by the server. |
| 327 |
ProfileType ProfileType `protobuf:"varint,2,opt,name=profile_type,json=profileType,proto3,enum=google.devtools.cloudprofiler.v2.ProfileType" json:"profile_type,omitempty"` |
| 328 |
// Deployment this profile corresponds to. |
| 329 |
Deployment *Deployment `protobuf:"bytes,3,opt,name=deployment,proto3" json:"deployment,omitempty"` |
| 330 |
// Duration of the profiling session. |
| 331 |
// Input (for the offline mode) or output (for the online mode). |
| 332 |
// The field represents requested profiling duration. It may slightly differ |
| 333 |
// from the effective profiling duration, which is recorded in the profile |
| 334 |
// data, in case the profiling can't be stopped immediately (e.g. in case |
| 335 |
// stopping the profiling is handled asynchronously). |
| 336 |
Duration *durationpb.Duration `protobuf:"bytes,4,opt,name=duration,proto3" json:"duration,omitempty"` |
| 337 |
// Input only. Profile bytes, as a gzip compressed serialized proto, the |
| 338 |
// format is https://github.com/google/pprof/blob/master/proto/profile.proto. |
| 339 |
ProfileBytes []byte `protobuf:"bytes,5,opt,name=profile_bytes,json=profileBytes,proto3" json:"profile_bytes,omitempty"` |
| 340 |
// Input only. Labels associated to this specific profile. These labels will |
| 341 |
// get merged with the deployment labels for the final data set. See |
| 342 |
// documentation on deployment labels for validation rules and limits. |
| 343 |
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"` |
| 344 |
} |
| 345 |
|
| 346 |
func (x *Profile) Reset() { |
| 347 |
*x = Profile{} |
| 348 |
if protoimpl.UnsafeEnabled { |
| 349 |
mi := &file_google_devtools_cloudprofiler_v2_profiler_proto_msgTypes[3] |
| 350 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 351 |
ms.StoreMessageInfo(mi) |
| 352 |
} |
| 353 |
} |
| 354 |
|
| 355 |
func (x *Profile) String() string { |
| 356 |
return protoimpl.X.MessageStringOf(x) |
| 357 |
} |
| 358 |
|
| 359 |
func (*Profile) ProtoMessage() {} |
| 360 |
|
| 361 |
func (x *Profile) ProtoReflect() protoreflect.Message { |
| 362 |
mi := &file_google_devtools_cloudprofiler_v2_profiler_proto_msgTypes[3] |
| 363 |
if protoimpl.UnsafeEnabled && x != nil { |
| 364 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 365 |
if ms.LoadMessageInfo() == nil { |
| 366 |
ms.StoreMessageInfo(mi) |
| 367 |
} |
| 368 |
return ms |
| 369 |
} |
| 370 |
return mi.MessageOf(x) |
| 371 |
} |
| 372 |
|
| 373 |
// Deprecated: Use Profile.ProtoReflect.Descriptor instead. |
| 374 |
func (*Profile) Descriptor() ([]byte, []int) { |
| 375 |
return file_google_devtools_cloudprofiler_v2_profiler_proto_rawDescGZIP(), []int{3} |
| 376 |
} |
| 377 |
|
| 378 |
func (x *Profile) GetName() string { |
| 379 |
if x != nil { |
| 380 |
return x.Name |
| 381 |
} |
| 382 |
return "" |
| 383 |
} |
| 384 |
|
| 385 |
func (x *Profile) GetProfileType() ProfileType { |
| 386 |
if x != nil { |
| 387 |
return x.ProfileType |
| 388 |
} |
| 389 |
return ProfileType_PROFILE_TYPE_UNSPECIFIED |
| 390 |
} |
| 391 |
|
| 392 |
func (x *Profile) GetDeployment() *Deployment { |
| 393 |
if x != nil { |
| 394 |
return x.Deployment |
| 395 |
} |
| 396 |
return nil |
| 397 |
} |
| 398 |
|
| 399 |
func (x *Profile) GetDuration() *durationpb.Duration { |
| 400 |
if x != nil { |
| 401 |
return x.Duration |
| 402 |
} |
| 403 |
return nil |
| 404 |
} |
| 405 |
|
| 406 |
func (x *Profile) GetProfileBytes() []byte { |
| 407 |
if x != nil { |
| 408 |
return x.ProfileBytes |
| 409 |
} |
| 410 |
return nil |
| 411 |
} |
| 412 |
|
| 413 |
func (x *Profile) GetLabels() map[string]string { |
| 414 |
if x != nil { |
| 415 |
return x.Labels |
| 416 |
} |
| 417 |
return nil |
| 418 |
} |
| 419 |
|
| 420 |
// Deployment contains the deployment identification information. |
| 421 |
type Deployment struct { |
| 422 |
state protoimpl.MessageState |
| 423 |
sizeCache protoimpl.SizeCache |
| 424 |
unknownFields protoimpl.UnknownFields |
| 425 |
|
| 426 |
// Project ID is the ID of a cloud project. |
| 427 |
// Validation regex: `^[a-z][-a-z0-9:.]{4,61}[a-z0-9]$`. |
| 428 |
ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` |
| 429 |
// Target is the service name used to group related deployments: |
| 430 |
// * Service name for App Engine Flex / Standard. |
| 431 |
// * Cluster and container name for GKE. |
| 432 |
// * User-specified string for direct Compute Engine profiling (e.g. Java). |
| 433 |
// * Job name for Dataflow. |
| 434 |
// Validation regex: `^[a-z0-9]([-a-z0-9_.]{0,253}[a-z0-9])?$`. |
| 435 |
Target string `protobuf:"bytes,2,opt,name=target,proto3" json:"target,omitempty"` |
| 436 |
// Labels identify the deployment within the user universe and same target. |
| 437 |
// Validation regex for label names: `^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$`. |
| 438 |
// Value for an individual label must be <= 512 bytes, the total |
| 439 |
// size of all label names and values must be <= 1024 bytes. |
| 440 |
// |
| 441 |
// Label named "language" can be used to record the programming language of |
| 442 |
// the profiled deployment. The standard choices for the value include "java", |
| 443 |
// "go", "python", "ruby", "nodejs", "php", "dotnet". |
| 444 |
// |
| 445 |
// For deployments running on Google Cloud Platform, "zone" or "region" label |
| 446 |
// should be present describing the deployment location. An example of a zone |
| 447 |
// is "us-central1-a", an example of a region is "us-central1" or |
| 448 |
// "us-central". |
| 449 |
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"` |
| 450 |
} |
| 451 |
|
| 452 |
func (x *Deployment) Reset() { |
| 453 |
*x = Deployment{} |
| 454 |
if protoimpl.UnsafeEnabled { |
| 455 |
mi := &file_google_devtools_cloudprofiler_v2_profiler_proto_msgTypes[4] |
| 456 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 457 |
ms.StoreMessageInfo(mi) |
| 458 |
} |
| 459 |
} |
| 460 |
|
| 461 |
func (x *Deployment) String() string { |
| 462 |
return protoimpl.X.MessageStringOf(x) |
| 463 |
} |
| 464 |
|
| 465 |
func (*Deployment) ProtoMessage() {} |
| 466 |
|
| 467 |
func (x *Deployment) ProtoReflect() protoreflect.Message { |
| 468 |
mi := &file_google_devtools_cloudprofiler_v2_profiler_proto_msgTypes[4] |
| 469 |
if protoimpl.UnsafeEnabled && x != nil { |
| 470 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 471 |
if ms.LoadMessageInfo() == nil { |
| 472 |
ms.StoreMessageInfo(mi) |
| 473 |
} |
| 474 |
return ms |
| 475 |
} |
| 476 |
return mi.MessageOf(x) |
| 477 |
} |
| 478 |
|
| 479 |
// Deprecated: Use Deployment.ProtoReflect.Descriptor instead. |
| 480 |
func (*Deployment) Descriptor() ([]byte, []int) { |
| 481 |
return file_google_devtools_cloudprofiler_v2_profiler_proto_rawDescGZIP(), []int{4} |
| 482 |
} |
| 483 |
|
| 484 |
func (x *Deployment) GetProjectId() string { |
| 485 |
if x != nil { |
| 486 |
return x.ProjectId |
| 487 |
} |
| 488 |
return "" |
| 489 |
} |
| 490 |
|
| 491 |
func (x *Deployment) GetTarget() string { |
| 492 |
if x != nil { |
| 493 |
return x.Target |
| 494 |
} |
| 495 |
return "" |
| 496 |
} |
| 497 |
|
| 498 |
func (x *Deployment) GetLabels() map[string]string { |
| 499 |
if x != nil { |
| 500 |
return x.Labels |
| 501 |
} |
| 502 |
return nil |
| 503 |
} |
| 504 |
|
| 505 |
var File_google_devtools_cloudprofiler_v2_profiler_proto protoreflect.FileDescriptor |
| 506 |
|
| 507 |
var file_google_devtools_cloudprofiler_v2_profiler_proto_rawDesc = []byte{ |
| 508 |
0x0a, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x64, 0x65, 0x76, 0x74, 0x6f, 0x6f, 0x6c, |
| 509 |
0x73, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x72, 0x2f, |
| 510 |
0x76, 0x32, 0x2f, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, |
| 511 |
0x6f, 0x12, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x65, 0x76, 0x74, 0x6f, 0x6f, |
| 512 |
0x6c, 0x73, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x72, |
| 513 |
0x2e, 0x76, 0x32, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, |
| 514 |
0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, |
| 515 |
0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c, |
| 516 |
0x69, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, |
| 517 |
0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, |
| 518 |
0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, |
| 519 |
0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, |
| 520 |
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, |
| 521 |
0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, |
| 522 |
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, |
| 523 |
0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6d, 0x61, |
| 524 |
0x73, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x80, 0x02, 0x0a, 0x14, 0x43, 0x72, 0x65, |
| 525 |
0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, |
| 526 |
0x74, 0x12, 0x48, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, |
| 527 |
0x09, 0x42, 0x30, 0xfa, 0x41, 0x2d, 0x0a, 0x2b, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x72, 0x65, 0x73, |
| 528 |
0x6f, 0x75, 0x72, 0x63, 0x65, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x2e, 0x67, 0x6f, 0x6f, |
| 529 |
0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x50, 0x72, 0x6f, 0x6a, |
| 530 |
0x65, 0x63, 0x74, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x4c, 0x0a, 0x0a, 0x64, |
| 531 |
0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, |
| 532 |
0x2c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x65, 0x76, 0x74, 0x6f, 0x6f, 0x6c, |
| 533 |
0x73, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x72, 0x2e, |
| 534 |
0x76, 0x32, 0x2e, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x0a, 0x64, |
| 535 |
0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x50, 0x0a, 0x0c, 0x70, 0x72, 0x6f, |
| 536 |
0x66, 0x69, 0x6c, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0e, 0x32, |
| 537 |
0x2d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x65, 0x76, 0x74, 0x6f, 0x6f, 0x6c, |
| 538 |
0x73, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x72, 0x2e, |
| 539 |
0x76, 0x32, 0x2e, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0b, |
| 540 |
0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x54, 0x79, 0x70, 0x65, 0x22, 0xac, 0x01, 0x0a, 0x1b, |
| 541 |
0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4f, 0x66, 0x66, 0x6c, 0x69, 0x6e, 0x65, 0x50, 0x72, 0x6f, |
| 542 |
0x66, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x48, 0x0a, 0x06, 0x70, |
| 543 |
0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xfa, 0x41, 0x2d, |
| 544 |
0x0a, 0x2b, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x6d, |
| 545 |
0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, |
| 546 |
0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x06, 0x70, |
| 547 |
0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x43, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, |
| 548 |
0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, |
| 549 |
0x64, 0x65, 0x76, 0x74, 0x6f, 0x6f, 0x6c, 0x73, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x70, 0x72, |
| 550 |
0x6f, 0x66, 0x69, 0x6c, 0x65, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, |
| 551 |
0x65, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x22, 0x98, 0x01, 0x0a, 0x14, 0x55, |
| 552 |
0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, |
| 553 |
0x65, 0x73, 0x74, 0x12, 0x43, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x01, |
| 554 |
0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x65, |
| 555 |
0x76, 0x74, 0x6f, 0x6f, 0x6c, 0x73, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x70, 0x72, 0x6f, 0x66, |
| 556 |
0x69, 0x6c, 0x65, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x52, |
| 557 |
0x07, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x12, 0x3b, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, |
| 558 |
0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, |
| 559 |
0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, |
| 560 |
0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, |
| 561 |
0x65, 0x4d, 0x61, 0x73, 0x6b, 0x22, 0x84, 0x04, 0x0a, 0x07, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, |
| 562 |
0x65, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, |
| 563 |
0x03, 0xe0, 0x41, 0x03, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x50, 0x0a, 0x0c, 0x70, 0x72, |
| 564 |
0x6f, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, |
| 565 |
0x32, 0x2d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x65, 0x76, 0x74, 0x6f, 0x6f, |
| 566 |
0x6c, 0x73, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x72, |
| 567 |
0x2e, 0x76, 0x32, 0x2e, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, |
| 568 |
0x0b, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x4c, 0x0a, 0x0a, |
| 569 |
0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, |
| 570 |
0x32, 0x2c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x65, 0x76, 0x74, 0x6f, 0x6f, |
| 571 |
0x6c, 0x73, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x72, |
| 572 |
0x2e, 0x76, 0x32, 0x2e, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x0a, |
| 573 |
0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x35, 0x0a, 0x08, 0x64, 0x75, |
| 574 |
0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, |
| 575 |
0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, |
| 576 |
0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, |
| 577 |
0x6e, 0x12, 0x28, 0x0a, 0x0d, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x62, 0x79, 0x74, |
| 578 |
0x65, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x42, 0x03, 0xe0, 0x41, 0x04, 0x52, 0x0c, 0x70, |
| 579 |
0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12, 0x52, 0x0a, 0x06, 0x6c, |
| 580 |
0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x67, 0x6f, |
| 581 |
0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x65, 0x76, 0x74, 0x6f, 0x6f, 0x6c, 0x73, 0x2e, 0x63, 0x6c, |
| 582 |
0x6f, 0x75, 0x64, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x50, |
| 583 |
0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, |
| 584 |
0x72, 0x79, 0x42, 0x03, 0xe0, 0x41, 0x04, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x1a, |
| 585 |
0x39, 0x0a, 0x0b, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, |
| 586 |
0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, |
| 587 |
0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, |
| 588 |
0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x3a, 0x50, 0xea, 0x41, 0x4d, 0x0a, |
| 589 |
0x24, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x72, 0x2e, 0x67, |
| 590 |
0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x50, 0x72, |
| 591 |
0x6f, 0x66, 0x69, 0x6c, 0x65, 0x12, 0x25, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, |
| 592 |
0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, |
| 593 |
0x65, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x7d, 0x22, 0xd0, 0x01, 0x0a, |
| 594 |
0x0a, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x70, |
| 595 |
0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, |
| 596 |
0x09, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x61, |
| 597 |
0x72, 0x67, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, |
| 598 |
0x65, 0x74, 0x12, 0x50, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x03, 0x20, 0x03, |
| 599 |
0x28, 0x0b, 0x32, 0x38, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x65, 0x76, 0x74, |
| 600 |
0x6f, 0x6f, 0x6c, 0x73, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, |
| 601 |
0x65, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, |
| 602 |
0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x6c, 0x61, |
| 603 |
0x62, 0x65, 0x6c, 0x73, 0x1a, 0x39, 0x0a, 0x0b, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, |
| 604 |
0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, |
| 605 |
0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, |
| 606 |
0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x2a, |
| 607 |
0x84, 0x01, 0x0a, 0x0b, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, |
| 608 |
0x1c, 0x0a, 0x18, 0x50, 0x52, 0x4f, 0x46, 0x49, 0x4c, 0x45, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, |
| 609 |
0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x07, 0x0a, |
| 610 |
0x03, 0x43, 0x50, 0x55, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x57, 0x41, 0x4c, 0x4c, 0x10, 0x02, |
| 611 |
0x12, 0x08, 0x0a, 0x04, 0x48, 0x45, 0x41, 0x50, 0x10, 0x03, 0x12, 0x0b, 0x0a, 0x07, 0x54, 0x48, |
| 612 |
0x52, 0x45, 0x41, 0x44, 0x53, 0x10, 0x04, 0x12, 0x0e, 0x0a, 0x0a, 0x43, 0x4f, 0x4e, 0x54, 0x45, |
| 613 |
0x4e, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x05, 0x12, 0x0d, 0x0a, 0x09, 0x50, 0x45, 0x41, 0x4b, 0x5f, |
| 614 |
0x48, 0x45, 0x41, 0x50, 0x10, 0x06, 0x12, 0x0e, 0x0a, 0x0a, 0x48, 0x45, 0x41, 0x50, 0x5f, 0x41, |
| 615 |
0x4c, 0x4c, 0x4f, 0x43, 0x10, 0x07, 0x32, 0xfe, 0x05, 0x0a, 0x0f, 0x50, 0x72, 0x6f, 0x66, 0x69, |
| 616 |
0x6c, 0x65, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x9f, 0x01, 0x0a, 0x0d, 0x43, |
| 617 |
0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x12, 0x36, 0x2e, 0x67, |
| 618 |
0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x65, 0x76, 0x74, 0x6f, 0x6f, 0x6c, 0x73, 0x2e, 0x63, |
| 619 |
0x6c, 0x6f, 0x75, 0x64, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x72, 0x2e, 0x76, 0x32, 0x2e, |
| 620 |
0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x71, |
| 621 |
0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x65, |
| 622 |
0x76, 0x74, 0x6f, 0x6f, 0x6c, 0x73, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x70, 0x72, 0x6f, 0x66, |
| 623 |
0x69, 0x6c, 0x65, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x22, |
| 624 |
0x2b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x25, 0x22, 0x20, 0x2f, 0x76, 0x32, 0x2f, 0x7b, 0x70, 0x61, |
| 625 |
0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, |
| 626 |
0x2f, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x3a, 0x01, 0x2a, 0x12, 0xd2, 0x01, 0x0a, |
| 627 |
0x14, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4f, 0x66, 0x66, 0x6c, 0x69, 0x6e, 0x65, 0x50, 0x72, |
| 628 |
0x6f, 0x66, 0x69, 0x6c, 0x65, 0x12, 0x3d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, |
| 629 |
0x65, 0x76, 0x74, 0x6f, 0x6f, 0x6c, 0x73, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x70, 0x72, 0x6f, |
| 630 |
0x66, 0x69, 0x6c, 0x65, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4f, |
| 631 |
0x66, 0x66, 0x6c, 0x69, 0x6e, 0x65, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x71, |
| 632 |
0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x65, |
| 633 |
0x76, 0x74, 0x6f, 0x6f, 0x6c, 0x73, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x70, 0x72, 0x6f, 0x66, |
| 634 |
0x69, 0x6c, 0x65, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x22, |
| 635 |
0x50, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x39, 0x22, 0x2e, 0x2f, 0x76, 0x32, 0x2f, 0x7b, 0x70, 0x61, |
| 636 |
0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, |
| 637 |
0x2f, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x3a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, |
| 638 |
0x4f, 0x66, 0x66, 0x6c, 0x69, 0x6e, 0x65, 0x3a, 0x07, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, |
| 639 |
0xda, 0x41, 0x0e, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x2c, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, |
| 640 |
0x65, 0x12, 0xc3, 0x01, 0x0a, 0x0d, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x66, |
| 641 |
0x69, 0x6c, 0x65, 0x12, 0x36, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x65, 0x76, |
| 642 |
0x74, 0x6f, 0x6f, 0x6c, 0x73, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x70, 0x72, 0x6f, 0x66, 0x69, |
| 643 |
0x6c, 0x65, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, |
| 644 |
0x66, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x67, 0x6f, |
| 645 |
0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x65, 0x76, 0x74, 0x6f, 0x6f, 0x6c, 0x73, 0x2e, 0x63, 0x6c, |
| 646 |
0x6f, 0x75, 0x64, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x50, |
| 647 |
0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x22, 0x4f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x33, 0x32, 0x28, |
| 648 |
0x2f, 0x76, 0x32, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x2e, 0x6e, 0x61, 0x6d, |
| 649 |
0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x72, 0x6f, |
| 650 |
0x66, 0x69, 0x6c, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x07, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, |
| 651 |
0x65, 0xda, 0x41, 0x13, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x2c, 0x75, 0x70, 0x64, 0x61, |
| 652 |
0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x1a, 0xad, 0x01, 0xca, 0x41, 0x1c, 0x63, 0x6c, 0x6f, |
| 653 |
0x75, 0x64, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x72, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, |
| 654 |
0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0xd2, 0x41, 0x8a, 0x01, 0x68, 0x74, 0x74, |
| 655 |
0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, |
| 656 |
0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x63, 0x6c, 0x6f, |
| 657 |
0x75, 0x64, 0x2d, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2c, 0x68, 0x74, 0x74, 0x70, |
| 658 |
0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, |
| 659 |
0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x6d, 0x6f, 0x6e, 0x69, |
| 660 |
0x74, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x2c, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, |
| 661 |
0x77, 0x77, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, |
| 662 |
0x6d, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x69, 0x6e, |
| 663 |
0x67, 0x2e, 0x77, 0x72, 0x69, 0x74, 0x65, 0x42, 0xda, 0x01, 0x0a, 0x24, 0x63, 0x6f, 0x6d, 0x2e, |
| 664 |
0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x65, 0x76, 0x74, 0x6f, 0x6f, 0x6c, 0x73, 0x2e, |
| 665 |
0x63, 0x6c, 0x6f, 0x75, 0x64, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x72, 0x2e, 0x76, 0x32, |
| 666 |
0x42, 0x0d, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, |
| 667 |
0x01, 0x5a, 0x4d, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, |
| 668 |
0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, |
| 669 |
0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x64, 0x65, 0x76, 0x74, 0x6f, 0x6f, 0x6c, |
| 670 |
0x73, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x72, 0x2f, |
| 671 |
0x76, 0x32, 0x3b, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x72, |
| 672 |
0xaa, 0x02, 0x18, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, |
| 673 |
0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x72, 0x2e, 0x56, 0x32, 0xca, 0x02, 0x18, 0x47, 0x6f, |
| 674 |
0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x50, 0x72, 0x6f, 0x66, 0x69, |
| 675 |
0x6c, 0x65, 0x72, 0x5c, 0x56, 0x32, 0xea, 0x02, 0x1b, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, |
| 676 |
0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x72, |
| 677 |
0x3a, 0x3a, 0x56, 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, |
| 678 |
} |
| 679 |
|
| 680 |
var ( |
| 681 |
file_google_devtools_cloudprofiler_v2_profiler_proto_rawDescOnce sync.Once |
| 682 |
file_google_devtools_cloudprofiler_v2_profiler_proto_rawDescData = file_google_devtools_cloudprofiler_v2_profiler_proto_rawDesc |
| 683 |
) |
| 684 |
|
| 685 |
func file_google_devtools_cloudprofiler_v2_profiler_proto_rawDescGZIP() []byte { |
| 686 |
file_google_devtools_cloudprofiler_v2_profiler_proto_rawDescOnce.Do(func() { |
| 687 |
file_google_devtools_cloudprofiler_v2_profiler_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_devtools_cloudprofiler_v2_profiler_proto_rawDescData) |
| 688 |
}) |
| 689 |
return file_google_devtools_cloudprofiler_v2_profiler_proto_rawDescData |
| 690 |
} |
| 691 |
|
| 692 |
var file_google_devtools_cloudprofiler_v2_profiler_proto_enumTypes = make([]protoimpl.EnumInfo, 1) |
| 693 |
var file_google_devtools_cloudprofiler_v2_profiler_proto_msgTypes = make([]protoimpl.MessageInfo, 7) |
| 694 |
var file_google_devtools_cloudprofiler_v2_profiler_proto_goTypes = []interface{}{ |
| 695 |
(ProfileType)(0), // 0: google.devtools.cloudprofiler.v2.ProfileType |
| 696 |
(*CreateProfileRequest)(nil), // 1: google.devtools.cloudprofiler.v2.CreateProfileRequest |
| 697 |
(*CreateOfflineProfileRequest)(nil), // 2: google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest |
| 698 |
(*UpdateProfileRequest)(nil), // 3: google.devtools.cloudprofiler.v2.UpdateProfileRequest |
| 699 |
(*Profile)(nil), // 4: google.devtools.cloudprofiler.v2.Profile |
| 700 |
(*Deployment)(nil), // 5: google.devtools.cloudprofiler.v2.Deployment |
| 701 |
nil, // 6: google.devtools.cloudprofiler.v2.Profile.LabelsEntry |
| 702 |
nil, // 7: google.devtools.cloudprofiler.v2.Deployment.LabelsEntry |
| 703 |
(*fieldmaskpb.FieldMask)(nil), // 8: google.protobuf.FieldMask |
| 704 |
(*durationpb.Duration)(nil), // 9: google.protobuf.Duration |
| 705 |
} |
| 706 |
var file_google_devtools_cloudprofiler_v2_profiler_proto_depIdxs = []int32{ |
| 707 |
5, // 0: google.devtools.cloudprofiler.v2.CreateProfileRequest.deployment:type_name -> google.devtools.cloudprofiler.v2.Deployment |
| 708 |
0, // 1: google.devtools.cloudprofiler.v2.CreateProfileRequest.profile_type:type_name -> google.devtools.cloudprofiler.v2.ProfileType |
| 709 |
4, // 2: google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest.profile:type_name -> google.devtools.cloudprofiler.v2.Profile |
| 710 |
4, // 3: google.devtools.cloudprofiler.v2.UpdateProfileRequest.profile:type_name -> google.devtools.cloudprofiler.v2.Profile |
| 711 |
8, // 4: google.devtools.cloudprofiler.v2.UpdateProfileRequest.update_mask:type_name -> google.protobuf.FieldMask |
| 712 |
0, // 5: google.devtools.cloudprofiler.v2.Profile.profile_type:type_name -> google.devtools.cloudprofiler.v2.ProfileType |
| 713 |
5, // 6: google.devtools.cloudprofiler.v2.Profile.deployment:type_name -> google.devtools.cloudprofiler.v2.Deployment |
| 714 |
9, // 7: google.devtools.cloudprofiler.v2.Profile.duration:type_name -> google.protobuf.Duration |
| 715 |
6, // 8: google.devtools.cloudprofiler.v2.Profile.labels:type_name -> google.devtools.cloudprofiler.v2.Profile.LabelsEntry |
| 716 |
7, // 9: google.devtools.cloudprofiler.v2.Deployment.labels:type_name -> google.devtools.cloudprofiler.v2.Deployment.LabelsEntry |
| 717 |
1, // 10: google.devtools.cloudprofiler.v2.ProfilerService.CreateProfile:input_type -> google.devtools.cloudprofiler.v2.CreateProfileRequest |
| 718 |
2, // 11: google.devtools.cloudprofiler.v2.ProfilerService.CreateOfflineProfile:input_type -> google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest |
| 719 |
3, // 12: google.devtools.cloudprofiler.v2.ProfilerService.UpdateProfile:input_type -> google.devtools.cloudprofiler.v2.UpdateProfileRequest |
| 720 |
4, // 13: google.devtools.cloudprofiler.v2.ProfilerService.CreateProfile:output_type -> google.devtools.cloudprofiler.v2.Profile |
| 721 |
4, // 14: google.devtools.cloudprofiler.v2.ProfilerService.CreateOfflineProfile:output_type -> google.devtools.cloudprofiler.v2.Profile |
| 722 |
4, // 15: google.devtools.cloudprofiler.v2.ProfilerService.UpdateProfile:output_type -> google.devtools.cloudprofiler.v2.Profile |
| 723 |
13, // [13:16] is the sub-list for method output_type |
| 724 |
10, // [10:13] is the sub-list for method input_type |
| 725 |
10, // [10:10] is the sub-list for extension type_name |
| 726 |
10, // [10:10] is the sub-list for extension extendee |
| 727 |
0, // [0:10] is the sub-list for field type_name |
| 728 |
} |
| 729 |
|
| 730 |
func init() { file_google_devtools_cloudprofiler_v2_profiler_proto_init() } |
| 731 |
func file_google_devtools_cloudprofiler_v2_profiler_proto_init() { |
| 732 |
if File_google_devtools_cloudprofiler_v2_profiler_proto != nil { |
| 733 |
return |
| 734 |
} |
| 735 |
if !protoimpl.UnsafeEnabled { |
| 736 |
file_google_devtools_cloudprofiler_v2_profiler_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { |
| 737 |
switch v := v.(*CreateProfileRequest); i { |
| 738 |
case 0: |
| 739 |
return &v.state |
| 740 |
case 1: |
| 741 |
return &v.sizeCache |
| 742 |
case 2: |
| 743 |
return &v.unknownFields |
| 744 |
default: |
| 745 |
return nil |
| 746 |
} |
| 747 |
} |
| 748 |
file_google_devtools_cloudprofiler_v2_profiler_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { |
| 749 |
switch v := v.(*CreateOfflineProfileRequest); i { |
| 750 |
case 0: |
| 751 |
return &v.state |
| 752 |
case 1: |
| 753 |
return &v.sizeCache |
| 754 |
case 2: |
| 755 |
return &v.unknownFields |
| 756 |
default: |
| 757 |
return nil |
| 758 |
} |
| 759 |
} |
| 760 |
file_google_devtools_cloudprofiler_v2_profiler_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { |
| 761 |
switch v := v.(*UpdateProfileRequest); i { |
| 762 |
case 0: |
| 763 |
return &v.state |
| 764 |
case 1: |
| 765 |
return &v.sizeCache |
| 766 |
case 2: |
| 767 |
return &v.unknownFields |
| 768 |
default: |
| 769 |
return nil |
| 770 |
} |
| 771 |
} |
| 772 |
file_google_devtools_cloudprofiler_v2_profiler_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { |
| 773 |
switch v := v.(*Profile); i { |
| 774 |
case 0: |
| 775 |
return &v.state |
| 776 |
case 1: |
| 777 |
return &v.sizeCache |
| 778 |
case 2: |
| 779 |
return &v.unknownFields |
| 780 |
default: |
| 781 |
return nil |
| 782 |
} |
| 783 |
} |
| 784 |
file_google_devtools_cloudprofiler_v2_profiler_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { |
| 785 |
switch v := v.(*Deployment); i { |
| 786 |
case 0: |
| 787 |
return &v.state |
| 788 |
case 1: |
| 789 |
return &v.sizeCache |
| 790 |
case 2: |
| 791 |
return &v.unknownFields |
| 792 |
default: |
| 793 |
return nil |
| 794 |
} |
| 795 |
} |
| 796 |
} |
| 797 |
type x struct{} |
| 798 |
out := protoimpl.TypeBuilder{ |
| 799 |
File: protoimpl.DescBuilder{ |
| 800 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 801 |
RawDescriptor: file_google_devtools_cloudprofiler_v2_profiler_proto_rawDesc, |
| 802 |
NumEnums: 1, |
| 803 |
NumMessages: 7, |
| 804 |
NumExtensions: 0, |
| 805 |
NumServices: 1, |
| 806 |
}, |
| 807 |
GoTypes: file_google_devtools_cloudprofiler_v2_profiler_proto_goTypes, |
| 808 |
DependencyIndexes: file_google_devtools_cloudprofiler_v2_profiler_proto_depIdxs, |
| 809 |
EnumInfos: file_google_devtools_cloudprofiler_v2_profiler_proto_enumTypes, |
| 810 |
MessageInfos: file_google_devtools_cloudprofiler_v2_profiler_proto_msgTypes, |
| 811 |
}.Build() |
| 812 |
File_google_devtools_cloudprofiler_v2_profiler_proto = out.File |
| 813 |
file_google_devtools_cloudprofiler_v2_profiler_proto_rawDesc = nil |
| 814 |
file_google_devtools_cloudprofiler_v2_profiler_proto_goTypes = nil |
| 815 |
file_google_devtools_cloudprofiler_v2_profiler_proto_depIdxs = nil |
| 816 |
} |
| 817 |
|
| 818 |
// Reference imports to suppress errors if they are not otherwise used. |
| 819 |
var _ context.Context |
| 820 |
var _ grpc.ClientConnInterface |
| 821 |
|
| 822 |
// This is a compile-time assertion to ensure that this generated file |
| 823 |
// is compatible with the grpc package it is being compiled against. |
| 824 |
const _ = grpc.SupportPackageIsVersion6 |
| 825 |
|
| 826 |
// ProfilerServiceClient is the client API for ProfilerService service. |
| 827 |
// |
| 828 |
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. |
| 829 |
type ProfilerServiceClient interface { |
| 830 |
// CreateProfile creates a new profile resource in the online mode. |
| 831 |
// |
| 832 |
// The server ensures that the new profiles are created at a constant rate per |
| 833 |
// deployment, so the creation request may hang for some time until the next |
| 834 |
// profile session is available. |
| 835 |
// |
| 836 |
// The request may fail with ABORTED error if the creation is not available |
| 837 |
// within ~1m, the response will indicate the duration of the backoff the |
| 838 |
// client should take before attempting creating a profile again. The backoff |
| 839 |
// duration is returned in google.rpc.RetryInfo extension on the response |
| 840 |
// status. To a gRPC client, the extension will be return as a |
| 841 |
// binary-serialized proto in the trailing metadata item named |
| 842 |
// "google.rpc.retryinfo-bin". |
| 843 |
CreateProfile(ctx context.Context, in *CreateProfileRequest, opts ...grpc.CallOption) (*Profile, error) |
| 844 |
// CreateOfflineProfile creates a new profile resource in the offline mode. |
| 845 |
// The client provides the profile to create along with the profile bytes, the |
| 846 |
// server records it. |
| 847 |
CreateOfflineProfile(ctx context.Context, in *CreateOfflineProfileRequest, opts ...grpc.CallOption) (*Profile, error) |
| 848 |
// UpdateProfile updates the profile bytes and labels on the profile resource |
| 849 |
// created in the online mode. Updating the bytes for profiles created in the |
| 850 |
// offline mode is currently not supported: the profile content must be |
| 851 |
// provided at the time of the profile creation. |
| 852 |
UpdateProfile(ctx context.Context, in *UpdateProfileRequest, opts ...grpc.CallOption) (*Profile, error) |
| 853 |
} |
| 854 |
|
| 855 |
type profilerServiceClient struct { |
| 856 |
cc grpc.ClientConnInterface |
| 857 |
} |
| 858 |
|
| 859 |
func NewProfilerServiceClient(cc grpc.ClientConnInterface) ProfilerServiceClient { |
| 860 |
return &profilerServiceClient{cc} |
| 861 |
} |
| 862 |
|
| 863 |
func (c *profilerServiceClient) CreateProfile(ctx context.Context, in *CreateProfileRequest, opts ...grpc.CallOption) (*Profile, error) { |
| 864 |
out := new(Profile) |
| 865 |
err := c.cc.Invoke(ctx, "/google.devtools.cloudprofiler.v2.ProfilerService/CreateProfile", in, out, opts...) |
| 866 |
if err != nil { |
| 867 |
return nil, err |
| 868 |
} |
| 869 |
return out, nil |
| 870 |
} |
| 871 |
|
| 872 |
func (c *profilerServiceClient) CreateOfflineProfile(ctx context.Context, in *CreateOfflineProfileRequest, opts ...grpc.CallOption) (*Profile, error) { |
| 873 |
out := new(Profile) |
| 874 |
err := c.cc.Invoke(ctx, "/google.devtools.cloudprofiler.v2.ProfilerService/CreateOfflineProfile", in, out, opts...) |
| 875 |
if err != nil { |
| 876 |
return nil, err |
| 877 |
} |
| 878 |
return out, nil |
| 879 |
} |
| 880 |
|
| 881 |
func (c *profilerServiceClient) UpdateProfile(ctx context.Context, in *UpdateProfileRequest, opts ...grpc.CallOption) (*Profile, error) { |
| 882 |
out := new(Profile) |
| 883 |
err := c.cc.Invoke(ctx, "/google.devtools.cloudprofiler.v2.ProfilerService/UpdateProfile", in, out, opts...) |
| 884 |
if err != nil { |
| 885 |
return nil, err |
| 886 |
} |
| 887 |
return out, nil |
| 888 |
} |
| 889 |
|
| 890 |
// ProfilerServiceServer is the server API for ProfilerService service. |
| 891 |
type ProfilerServiceServer interface { |
| 892 |
// CreateProfile creates a new profile resource in the online mode. |
| 893 |
// |
| 894 |
// The server ensures that the new profiles are created at a constant rate per |
| 895 |
// deployment, so the creation request may hang for some time until the next |
| 896 |
// profile session is available. |
| 897 |
// |
| 898 |
// The request may fail with ABORTED error if the creation is not available |
| 899 |
// within ~1m, the response will indicate the duration of the backoff the |
| 900 |
// client should take before attempting creating a profile again. The backoff |
| 901 |
// duration is returned in google.rpc.RetryInfo extension on the response |
| 902 |
// status. To a gRPC client, the extension will be return as a |
| 903 |
// binary-serialized proto in the trailing metadata item named |
| 904 |
// "google.rpc.retryinfo-bin". |
| 905 |
CreateProfile(context.Context, *CreateProfileRequest) (*Profile, error) |
| 906 |
// CreateOfflineProfile creates a new profile resource in the offline mode. |
| 907 |
// The client provides the profile to create along with the profile bytes, the |
| 908 |
// server records it. |
| 909 |
CreateOfflineProfile(context.Context, *CreateOfflineProfileRequest) (*Profile, error) |
| 910 |
// UpdateProfile updates the profile bytes and labels on the profile resource |
| 911 |
// created in the online mode. Updating the bytes for profiles created in the |
| 912 |
// offline mode is currently not supported: the profile content must be |
| 913 |
// provided at the time of the profile creation. |
| 914 |
UpdateProfile(context.Context, *UpdateProfileRequest) (*Profile, error) |
| 915 |
} |
| 916 |
|
| 917 |
// UnimplementedProfilerServiceServer can be embedded to have forward compatible implementations. |
| 918 |
type UnimplementedProfilerServiceServer struct { |
| 919 |
} |
| 920 |
|
| 921 |
func (*UnimplementedProfilerServiceServer) CreateProfile(context.Context, *CreateProfileRequest) (*Profile, error) { |
| 922 |
return nil, status.Errorf(codes.Unimplemented, "method CreateProfile not implemented") |
| 923 |
} |
| 924 |
func (*UnimplementedProfilerServiceServer) CreateOfflineProfile(context.Context, *CreateOfflineProfileRequest) (*Profile, error) { |
| 925 |
return nil, status.Errorf(codes.Unimplemented, "method CreateOfflineProfile not implemented") |
| 926 |
} |
| 927 |
func (*UnimplementedProfilerServiceServer) UpdateProfile(context.Context, *UpdateProfileRequest) (*Profile, error) { |
| 928 |
return nil, status.Errorf(codes.Unimplemented, "method UpdateProfile not implemented") |
| 929 |
} |
| 930 |
|
| 931 |
func RegisterProfilerServiceServer(s *grpc.Server, srv ProfilerServiceServer) { |
| 932 |
s.RegisterService(&_ProfilerService_serviceDesc, srv) |
| 933 |
} |
| 934 |
|
| 935 |
func _ProfilerService_CreateProfile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 936 |
in := new(CreateProfileRequest) |
| 937 |
if err := dec(in); err != nil { |
| 938 |
return nil, err |
| 939 |
} |
| 940 |
if interceptor == nil { |
| 941 |
return srv.(ProfilerServiceServer).CreateProfile(ctx, in) |
| 942 |
} |
| 943 |
info := &grpc.UnaryServerInfo{ |
| 944 |
Server: srv, |
| 945 |
FullMethod: "/google.devtools.cloudprofiler.v2.ProfilerService/CreateProfile", |
| 946 |
} |
| 947 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 948 |
return srv.(ProfilerServiceServer).CreateProfile(ctx, req.(*CreateProfileRequest)) |
| 949 |
} |
| 950 |
return interceptor(ctx, in, info, handler) |
| 951 |
} |
| 952 |
|
| 953 |
func _ProfilerService_CreateOfflineProfile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 954 |
in := new(CreateOfflineProfileRequest) |
| 955 |
if err := dec(in); err != nil { |
| 956 |
return nil, err |
| 957 |
} |
| 958 |
if interceptor == nil { |
| 959 |
return srv.(ProfilerServiceServer).CreateOfflineProfile(ctx, in) |
| 960 |
} |
| 961 |
info := &grpc.UnaryServerInfo{ |
| 962 |
Server: srv, |
| 963 |
FullMethod: "/google.devtools.cloudprofiler.v2.ProfilerService/CreateOfflineProfile", |
| 964 |
} |
| 965 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 966 |
return srv.(ProfilerServiceServer).CreateOfflineProfile(ctx, req.(*CreateOfflineProfileRequest)) |
| 967 |
} |
| 968 |
return interceptor(ctx, in, info, handler) |
| 969 |
} |
| 970 |
|
| 971 |
func _ProfilerService_UpdateProfile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 972 |
in := new(UpdateProfileRequest) |
| 973 |
if err := dec(in); err != nil { |
| 974 |
return nil, err |
| 975 |
} |
| 976 |
if interceptor == nil { |
| 977 |
return srv.(ProfilerServiceServer).UpdateProfile(ctx, in) |
| 978 |
} |
| 979 |
info := &grpc.UnaryServerInfo{ |
| 980 |
Server: srv, |
| 981 |
FullMethod: "/google.devtools.cloudprofiler.v2.ProfilerService/UpdateProfile", |
| 982 |
} |
| 983 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 984 |
return srv.(ProfilerServiceServer).UpdateProfile(ctx, req.(*UpdateProfileRequest)) |
| 985 |
} |
| 986 |
return interceptor(ctx, in, info, handler) |
| 987 |
} |
| 988 |
|
| 989 |
var _ProfilerService_serviceDesc = grpc.ServiceDesc{ |
| 990 |
ServiceName: "google.devtools.cloudprofiler.v2.ProfilerService", |
| 991 |
HandlerType: (*ProfilerServiceServer)(nil), |
| 992 |
Methods: []grpc.MethodDesc{ |
| 993 |
{ |
| 994 |
MethodName: "CreateProfile", |
| 995 |
Handler: _ProfilerService_CreateProfile_Handler, |
| 996 |
}, |
| 997 |
{ |
| 998 |
MethodName: "CreateOfflineProfile", |
| 999 |
Handler: _ProfilerService_CreateOfflineProfile_Handler, |
| 1000 |
}, |
| 1001 |
{ |
| 1002 |
MethodName: "UpdateProfile", |
| 1003 |
Handler: _ProfilerService_UpdateProfile_Handler, |
| 1004 |
}, |
| 1005 |
}, |
| 1006 |
Streams: []grpc.StreamDesc{}, |
| 1007 |
Metadata: "google/devtools/cloudprofiler/v2/profiler.proto", |
| 1008 |
} |