blob: a8a61e069c08dec91bf71b81332aa83f8804b103 [file] [edit]
// Copyright 2025 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.11
// protoc v6.33.2
// source: google/appengine/v1/instance.proto
package appenginepb
import (
reflect "reflect"
sync "sync"
unsafe "unsafe"
_ "google.golang.org/genproto/googleapis/api/annotations"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// Availability of the instance.
type Instance_Availability int32
const (
Instance_UNSPECIFIED Instance_Availability = 0
Instance_RESIDENT Instance_Availability = 1
Instance_DYNAMIC Instance_Availability = 2
)
// Enum value maps for Instance_Availability.
var (
Instance_Availability_name = map[int32]string{
0: "UNSPECIFIED",
1: "RESIDENT",
2: "DYNAMIC",
}
Instance_Availability_value = map[string]int32{
"UNSPECIFIED": 0,
"RESIDENT": 1,
"DYNAMIC": 2,
}
)
func (x Instance_Availability) Enum() *Instance_Availability {
p := new(Instance_Availability)
*p = x
return p
}
func (x Instance_Availability) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Instance_Availability) Descriptor() protoreflect.EnumDescriptor {
return file_google_appengine_v1_instance_proto_enumTypes[0].Descriptor()
}
func (Instance_Availability) Type() protoreflect.EnumType {
return &file_google_appengine_v1_instance_proto_enumTypes[0]
}
func (x Instance_Availability) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Instance_Availability.Descriptor instead.
func (Instance_Availability) EnumDescriptor() ([]byte, []int) {
return file_google_appengine_v1_instance_proto_rawDescGZIP(), []int{0, 0}
}
// Liveness health check status for Flex instances.
type Instance_Liveness_LivenessState int32
const (
// There is no liveness health check for the instance. Only applicable for
// instances in App Engine standard environment.
Instance_Liveness_LIVENESS_STATE_UNSPECIFIED Instance_Liveness_LivenessState = 0
// The health checking system is aware of the instance but its health is
// not known at the moment.
Instance_Liveness_UNKNOWN Instance_Liveness_LivenessState = 1
// The instance is reachable i.e. a connection to the application health
// checking endpoint can be established, and conforms to the requirements
// defined by the health check.
Instance_Liveness_HEALTHY Instance_Liveness_LivenessState = 2
// The instance is reachable, but does not conform to the requirements
// defined by the health check.
Instance_Liveness_UNHEALTHY Instance_Liveness_LivenessState = 3
// The instance is being drained. The existing connections to the instance
// have time to complete, but the new ones are being refused.
Instance_Liveness_DRAINING Instance_Liveness_LivenessState = 4
// The instance is unreachable i.e. a connection to the application health
// checking endpoint cannot be established, or the server does not respond
// within the specified timeout.
Instance_Liveness_TIMEOUT Instance_Liveness_LivenessState = 5
)
// Enum value maps for Instance_Liveness_LivenessState.
var (
Instance_Liveness_LivenessState_name = map[int32]string{
0: "LIVENESS_STATE_UNSPECIFIED",
1: "UNKNOWN",
2: "HEALTHY",
3: "UNHEALTHY",
4: "DRAINING",
5: "TIMEOUT",
}
Instance_Liveness_LivenessState_value = map[string]int32{
"LIVENESS_STATE_UNSPECIFIED": 0,
"UNKNOWN": 1,
"HEALTHY": 2,
"UNHEALTHY": 3,
"DRAINING": 4,
"TIMEOUT": 5,
}
)
func (x Instance_Liveness_LivenessState) Enum() *Instance_Liveness_LivenessState {
p := new(Instance_Liveness_LivenessState)
*p = x
return p
}
func (x Instance_Liveness_LivenessState) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Instance_Liveness_LivenessState) Descriptor() protoreflect.EnumDescriptor {
return file_google_appengine_v1_instance_proto_enumTypes[1].Descriptor()
}
func (Instance_Liveness_LivenessState) Type() protoreflect.EnumType {
return &file_google_appengine_v1_instance_proto_enumTypes[1]
}
func (x Instance_Liveness_LivenessState) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Instance_Liveness_LivenessState.Descriptor instead.
func (Instance_Liveness_LivenessState) EnumDescriptor() ([]byte, []int) {
return file_google_appengine_v1_instance_proto_rawDescGZIP(), []int{0, 0, 0}
}
// An Instance resource is the computing unit that App Engine uses to
// automatically scale an application.
type Instance struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Output only. Full path to the Instance resource in the API.
// Example: `apps/myapp/services/default/versions/v1/instances/instance-1`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Output only. Relative name of the instance within the version.
// Example: `instance-1`.
Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
// Output only. App Engine release this instance is running on.
AppEngineRelease string `protobuf:"bytes,3,opt,name=app_engine_release,json=appEngineRelease,proto3" json:"app_engine_release,omitempty"`
// Output only. Availability of the instance.
Availability Instance_Availability `protobuf:"varint,4,opt,name=availability,proto3,enum=google.appengine.v1.Instance_Availability" json:"availability,omitempty"`
// Output only. Name of the virtual machine where this instance lives. Only applicable
// for instances in App Engine flexible environment.
VmName string `protobuf:"bytes,5,opt,name=vm_name,json=vmName,proto3" json:"vm_name,omitempty"`
// Output only. Zone where the virtual machine is located. Only applicable for instances
// in App Engine flexible environment.
VmZoneName string `protobuf:"bytes,6,opt,name=vm_zone_name,json=vmZoneName,proto3" json:"vm_zone_name,omitempty"`
// Output only. Virtual machine ID of this instance. Only applicable for instances in
// App Engine flexible environment.
VmId string `protobuf:"bytes,7,opt,name=vm_id,json=vmId,proto3" json:"vm_id,omitempty"`
// Output only. Time that this instance was started.
//
// @OutputOnly
StartTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
// Output only. Number of requests since this instance was started.
Requests int32 `protobuf:"varint,9,opt,name=requests,proto3" json:"requests,omitempty"`
// Output only. Number of errors since this instance was started.
Errors int32 `protobuf:"varint,10,opt,name=errors,proto3" json:"errors,omitempty"`
// Output only. Average queries per second (QPS) over the last minute.
Qps float32 `protobuf:"fixed32,11,opt,name=qps,proto3" json:"qps,omitempty"`
// Output only. Average latency (ms) over the last minute.
AverageLatency int32 `protobuf:"varint,12,opt,name=average_latency,json=averageLatency,proto3" json:"average_latency,omitempty"`
// Output only. Total memory in use (bytes).
MemoryUsage int64 `protobuf:"varint,13,opt,name=memory_usage,json=memoryUsage,proto3" json:"memory_usage,omitempty"`
// Output only. Status of the virtual machine where this instance lives. Only applicable
// for instances in App Engine flexible environment.
VmStatus string `protobuf:"bytes,14,opt,name=vm_status,json=vmStatus,proto3" json:"vm_status,omitempty"`
// Output only. Whether this instance is in debug mode. Only applicable for instances in
// App Engine flexible environment.
VmDebugEnabled bool `protobuf:"varint,15,opt,name=vm_debug_enabled,json=vmDebugEnabled,proto3" json:"vm_debug_enabled,omitempty"`
// Output only. The IP address of this instance. Only applicable for instances in App
// Engine flexible environment.
VmIp string `protobuf:"bytes,16,opt,name=vm_ip,json=vmIp,proto3" json:"vm_ip,omitempty"`
// Output only. The liveness health check of this instance. Only applicable for instances
// in App Engine flexible environment.
VmLiveness Instance_Liveness_LivenessState `protobuf:"varint,17,opt,name=vm_liveness,json=vmLiveness,proto3,enum=google.appengine.v1.Instance_Liveness_LivenessState" json:"vm_liveness,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Instance) Reset() {
*x = Instance{}
mi := &file_google_appengine_v1_instance_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Instance) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Instance) ProtoMessage() {}
func (x *Instance) ProtoReflect() protoreflect.Message {
mi := &file_google_appengine_v1_instance_proto_msgTypes[0]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Instance.ProtoReflect.Descriptor instead.
func (*Instance) Descriptor() ([]byte, []int) {
return file_google_appengine_v1_instance_proto_rawDescGZIP(), []int{0}
}
func (x *Instance) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *Instance) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *Instance) GetAppEngineRelease() string {
if x != nil {
return x.AppEngineRelease
}
return ""
}
func (x *Instance) GetAvailability() Instance_Availability {
if x != nil {
return x.Availability
}
return Instance_UNSPECIFIED
}
func (x *Instance) GetVmName() string {
if x != nil {
return x.VmName
}
return ""
}
func (x *Instance) GetVmZoneName() string {
if x != nil {
return x.VmZoneName
}
return ""
}
func (x *Instance) GetVmId() string {
if x != nil {
return x.VmId
}
return ""
}
func (x *Instance) GetStartTime() *timestamppb.Timestamp {
if x != nil {
return x.StartTime
}
return nil
}
func (x *Instance) GetRequests() int32 {
if x != nil {
return x.Requests
}
return 0
}
func (x *Instance) GetErrors() int32 {
if x != nil {
return x.Errors
}
return 0
}
func (x *Instance) GetQps() float32 {
if x != nil {
return x.Qps
}
return 0
}
func (x *Instance) GetAverageLatency() int32 {
if x != nil {
return x.AverageLatency
}
return 0
}
func (x *Instance) GetMemoryUsage() int64 {
if x != nil {
return x.MemoryUsage
}
return 0
}
func (x *Instance) GetVmStatus() string {
if x != nil {
return x.VmStatus
}
return ""
}
func (x *Instance) GetVmDebugEnabled() bool {
if x != nil {
return x.VmDebugEnabled
}
return false
}
func (x *Instance) GetVmIp() string {
if x != nil {
return x.VmIp
}
return ""
}
func (x *Instance) GetVmLiveness() Instance_Liveness_LivenessState {
if x != nil {
return x.VmLiveness
}
return Instance_Liveness_LIVENESS_STATE_UNSPECIFIED
}
// Wrapper for LivenessState enum.
type Instance_Liveness struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Instance_Liveness) Reset() {
*x = Instance_Liveness{}
mi := &file_google_appengine_v1_instance_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Instance_Liveness) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Instance_Liveness) ProtoMessage() {}
func (x *Instance_Liveness) ProtoReflect() protoreflect.Message {
mi := &file_google_appengine_v1_instance_proto_msgTypes[1]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Instance_Liveness.ProtoReflect.Descriptor instead.
func (*Instance_Liveness) Descriptor() ([]byte, []int) {
return file_google_appengine_v1_instance_proto_rawDescGZIP(), []int{0, 0}
}
var File_google_appengine_v1_instance_proto protoreflect.FileDescriptor
const file_google_appengine_v1_instance_proto_rawDesc = "" +
"\n" +
"\"google/appengine/v1/instance.proto\x12\x13google.appengine.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xfd\a\n" +
"\bInstance\x12\x17\n" +
"\x04name\x18\x01 \x01(\tB\x03\xe0A\x03R\x04name\x12\x13\n" +
"\x02id\x18\x02 \x01(\tB\x03\xe0A\x03R\x02id\x121\n" +
"\x12app_engine_release\x18\x03 \x01(\tB\x03\xe0A\x03R\x10appEngineRelease\x12S\n" +
"\favailability\x18\x04 \x01(\x0e2*.google.appengine.v1.Instance.AvailabilityB\x03\xe0A\x03R\favailability\x12\x1c\n" +
"\avm_name\x18\x05 \x01(\tB\x03\xe0A\x03R\x06vmName\x12%\n" +
"\fvm_zone_name\x18\x06 \x01(\tB\x03\xe0A\x03R\n" +
"vmZoneName\x12\x18\n" +
"\x05vm_id\x18\a \x01(\tB\x03\xe0A\x03R\x04vmId\x12>\n" +
"\n" +
"start_time\x18\b \x01(\v2\x1a.google.protobuf.TimestampB\x03\xe0A\x03R\tstartTime\x12\x1f\n" +
"\brequests\x18\t \x01(\x05B\x03\xe0A\x03R\brequests\x12\x1b\n" +
"\x06errors\x18\n" +
" \x01(\x05B\x03\xe0A\x03R\x06errors\x12\x15\n" +
"\x03qps\x18\v \x01(\x02B\x03\xe0A\x03R\x03qps\x12,\n" +
"\x0faverage_latency\x18\f \x01(\x05B\x03\xe0A\x03R\x0eaverageLatency\x12&\n" +
"\fmemory_usage\x18\r \x01(\x03B\x03\xe0A\x03R\vmemoryUsage\x12 \n" +
"\tvm_status\x18\x0e \x01(\tB\x03\xe0A\x03R\bvmStatus\x12-\n" +
"\x10vm_debug_enabled\x18\x0f \x01(\bB\x03\xe0A\x03R\x0evmDebugEnabled\x12\x18\n" +
"\x05vm_ip\x18\x10 \x01(\tB\x03\xe0A\x03R\x04vmIp\x12Z\n" +
"\vvm_liveness\x18\x11 \x01(\x0e24.google.appengine.v1.Instance.Liveness.LivenessStateB\x03\xe0A\x03R\n" +
"vmLiveness\x1a\x7f\n" +
"\bLiveness\"s\n" +
"\rLivenessState\x12\x1e\n" +
"\x1aLIVENESS_STATE_UNSPECIFIED\x10\x00\x12\v\n" +
"\aUNKNOWN\x10\x01\x12\v\n" +
"\aHEALTHY\x10\x02\x12\r\n" +
"\tUNHEALTHY\x10\x03\x12\f\n" +
"\bDRAINING\x10\x04\x12\v\n" +
"\aTIMEOUT\x10\x05\":\n" +
"\fAvailability\x12\x0f\n" +
"\vUNSPECIFIED\x10\x00\x12\f\n" +
"\bRESIDENT\x10\x01\x12\v\n" +
"\aDYNAMIC\x10\x02:m\xeaAj\n" +
"!appengine.googleapis.com/Instance\x12Eapps/{app}/services/{service}/versions/{version}/instances/{instance}B\xbe\x01\n" +
"\x17com.google.appengine.v1B\rInstanceProtoP\x01Z;cloud.google.com/go/appengine/apiv1/appenginepb;appenginepb\xaa\x02\x19Google.Cloud.AppEngine.V1\xca\x02\x19Google\\Cloud\\AppEngine\\V1\xea\x02\x1cGoogle::Cloud::AppEngine::V1b\x06proto3"
var (
file_google_appengine_v1_instance_proto_rawDescOnce sync.Once
file_google_appengine_v1_instance_proto_rawDescData []byte
)
func file_google_appengine_v1_instance_proto_rawDescGZIP() []byte {
file_google_appengine_v1_instance_proto_rawDescOnce.Do(func() {
file_google_appengine_v1_instance_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_google_appengine_v1_instance_proto_rawDesc), len(file_google_appengine_v1_instance_proto_rawDesc)))
})
return file_google_appengine_v1_instance_proto_rawDescData
}
var file_google_appengine_v1_instance_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
var file_google_appengine_v1_instance_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_google_appengine_v1_instance_proto_goTypes = []any{
(Instance_Availability)(0), // 0: google.appengine.v1.Instance.Availability
(Instance_Liveness_LivenessState)(0), // 1: google.appengine.v1.Instance.Liveness.LivenessState
(*Instance)(nil), // 2: google.appengine.v1.Instance
(*Instance_Liveness)(nil), // 3: google.appengine.v1.Instance.Liveness
(*timestamppb.Timestamp)(nil), // 4: google.protobuf.Timestamp
}
var file_google_appengine_v1_instance_proto_depIdxs = []int32{
0, // 0: google.appengine.v1.Instance.availability:type_name -> google.appengine.v1.Instance.Availability
4, // 1: google.appengine.v1.Instance.start_time:type_name -> google.protobuf.Timestamp
1, // 2: google.appengine.v1.Instance.vm_liveness:type_name -> google.appengine.v1.Instance.Liveness.LivenessState
3, // [3:3] is the sub-list for method output_type
3, // [3:3] is the sub-list for method input_type
3, // [3:3] is the sub-list for extension type_name
3, // [3:3] is the sub-list for extension extendee
0, // [0:3] is the sub-list for field type_name
}
func init() { file_google_appengine_v1_instance_proto_init() }
func file_google_appengine_v1_instance_proto_init() {
if File_google_appengine_v1_instance_proto != nil {
return
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_google_appengine_v1_instance_proto_rawDesc), len(file_google_appengine_v1_instance_proto_rawDesc)),
NumEnums: 2,
NumMessages: 2,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_google_appengine_v1_instance_proto_goTypes,
DependencyIndexes: file_google_appengine_v1_instance_proto_depIdxs,
EnumInfos: file_google_appengine_v1_instance_proto_enumTypes,
MessageInfos: file_google_appengine_v1_instance_proto_msgTypes,
}.Build()
File_google_appengine_v1_instance_proto = out.File
file_google_appengine_v1_instance_proto_goTypes = nil
file_google_appengine_v1_instance_proto_depIdxs = nil
}