Debian Codegraph @

googleapis/cloud/aiplatform/logging/prediction.pb.go

raw
1 // Copyright 2020 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.12.2
19 // source: google/cloud/aiplatform/logging/prediction.proto
20
21 package logging
22
23 import (
24 reflect "reflect"
25 sync "sync"
26
27 status "google.golang.org/genproto/googleapis/rpc/status"
28 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
29 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
30 )
31
32 const (
33 // Verify that this generated code is sufficiently up-to-date.
34 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
35 // Verify that runtime/protoimpl is sufficiently up-to-date.
36 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
37 )
38
39 // The access log entry definition of online prediction.
40 type OnlinePredictionLogEntry struct {
41 state protoimpl.MessageState
42 sizeCache protoimpl.SizeCache
43 unknownFields protoimpl.UnknownFields
44
45 // The resource name of the endpoint as referred to in the original request.
46 // For example, projects/12323/locations/us-central1/endpoints/123.
47 Endpoint string `protobuf:"bytes,1,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
48 // The ID of the deployed model used to serve this predict request.
49 DeployedModelId string `protobuf:"bytes,2,opt,name=deployed_model_id,json=deployedModelId,proto3" json:"deployed_model_id,omitempty"`
50 // The number of instances in the prediction request.
51 InstanceCount int64 `protobuf:"varint,3,opt,name=instance_count,json=instanceCount,proto3" json:"instance_count,omitempty"`
52 // The number of successfully predicted instances in the response.
53 // Populated when prediction succeeds.
54 PredictionCount int64 `protobuf:"varint,4,opt,name=prediction_count,json=predictionCount,proto3" json:"prediction_count,omitempty"`
55 // The error code and message.
56 // Populated when prediction fails.
57 Error *status.Status `protobuf:"bytes,5,opt,name=error,proto3" json:"error,omitempty"`
58 }
59
60 func (x *OnlinePredictionLogEntry) Reset() {
61 *x = OnlinePredictionLogEntry{}
62 if protoimpl.UnsafeEnabled {
63 mi := &file_google_cloud_aiplatform_logging_prediction_proto_msgTypes[0]
64 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
65 ms.StoreMessageInfo(mi)
66 }
67 }
68
69 func (x *OnlinePredictionLogEntry) String() string {
70 return protoimpl.X.MessageStringOf(x)
71 }
72
73 func (*OnlinePredictionLogEntry) ProtoMessage() {}
74
75 func (x *OnlinePredictionLogEntry) ProtoReflect() protoreflect.Message {
76 mi := &file_google_cloud_aiplatform_logging_prediction_proto_msgTypes[0]
77 if protoimpl.UnsafeEnabled && x != nil {
78 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
79 if ms.LoadMessageInfo() == nil {
80 ms.StoreMessageInfo(mi)
81 }
82 return ms
83 }
84 return mi.MessageOf(x)
85 }
86
87 // Deprecated: Use OnlinePredictionLogEntry.ProtoReflect.Descriptor instead.
88 func (*OnlinePredictionLogEntry) Descriptor() ([]byte, []int) {
89 return file_google_cloud_aiplatform_logging_prediction_proto_rawDescGZIP(), []int{0}
90 }
91
92 func (x *OnlinePredictionLogEntry) GetEndpoint() string {
93 if x != nil {
94 return x.Endpoint
95 }
96 return ""
97 }
98
99 func (x *OnlinePredictionLogEntry) GetDeployedModelId() string {
100 if x != nil {
101 return x.DeployedModelId
102 }
103 return ""
104 }
105
106 func (x *OnlinePredictionLogEntry) GetInstanceCount() int64 {
107 if x != nil {
108 return x.InstanceCount
109 }
110 return 0
111 }
112
113 func (x *OnlinePredictionLogEntry) GetPredictionCount() int64 {
114 if x != nil {
115 return x.PredictionCount
116 }
117 return 0
118 }
119
120 func (x *OnlinePredictionLogEntry) GetError() *status.Status {
121 if x != nil {
122 return x.Error
123 }
124 return nil
125 }
126
127 var File_google_cloud_aiplatform_logging_prediction_proto protoreflect.FileDescriptor
128
129 var file_google_cloud_aiplatform_logging_prediction_proto_rawDesc = []byte{
130 0x0a, 0x30, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x61,
131 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x6c, 0x6f, 0x67, 0x67, 0x69, 0x6e,
132 0x67, 0x2f, 0x70, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f,
133 0x74, 0x6f, 0x12, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64,
134 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x6c, 0x6f, 0x67, 0x67,
135 0x69, 0x6e, 0x67, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x72, 0x70, 0x63, 0x2f,
136 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xde, 0x01, 0x0a,
137 0x18, 0x4f, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x69, 0x6f,
138 0x6e, 0x4c, 0x6f, 0x67, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x65, 0x6e, 0x64,
139 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x6e, 0x64,
140 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x2a, 0x0a, 0x11, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x65,
141 0x64, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
142 0x52, 0x0f, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x65, 0x64, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x49,
143 0x64, 0x12, 0x25, 0x0a, 0x0e, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x63, 0x6f,
144 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x69, 0x6e, 0x73, 0x74, 0x61,
145 0x6e, 0x63, 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x29, 0x0a, 0x10, 0x70, 0x72, 0x65, 0x64,
146 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01,
147 0x28, 0x03, 0x52, 0x0f, 0x70, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f,
148 0x75, 0x6e, 0x74, 0x12, 0x28, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x05, 0x20, 0x01,
149 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x72, 0x70, 0x63, 0x2e,
150 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x42, 0x80, 0x01,
151 0x0a, 0x23, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f,
152 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x6c, 0x6f,
153 0x67, 0x67, 0x69, 0x6e, 0x67, 0x42, 0x0f, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x69, 0x6f,
154 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x46, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
155 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70,
156 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f,
157 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d,
158 0x2f, 0x6c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x3b, 0x6c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67,
159 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
160 }
161
162 var (
163 file_google_cloud_aiplatform_logging_prediction_proto_rawDescOnce sync.Once
164 file_google_cloud_aiplatform_logging_prediction_proto_rawDescData = file_google_cloud_aiplatform_logging_prediction_proto_rawDesc
165 )
166
167 func file_google_cloud_aiplatform_logging_prediction_proto_rawDescGZIP() []byte {
168 file_google_cloud_aiplatform_logging_prediction_proto_rawDescOnce.Do(func() {
169 file_google_cloud_aiplatform_logging_prediction_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_aiplatform_logging_prediction_proto_rawDescData)
170 })
171 return file_google_cloud_aiplatform_logging_prediction_proto_rawDescData
172 }
173
174 var file_google_cloud_aiplatform_logging_prediction_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
175 var file_google_cloud_aiplatform_logging_prediction_proto_goTypes = []interface{}{
176 (*OnlinePredictionLogEntry)(nil), // 0: google.cloud.aiplatform.logging.OnlinePredictionLogEntry
177 (*status.Status)(nil), // 1: google.rpc.Status
178 }
179 var file_google_cloud_aiplatform_logging_prediction_proto_depIdxs = []int32{
180 1, // 0: google.cloud.aiplatform.logging.OnlinePredictionLogEntry.error:type_name -> google.rpc.Status
181 1, // [1:1] is the sub-list for method output_type
182 1, // [1:1] is the sub-list for method input_type
183 1, // [1:1] is the sub-list for extension type_name
184 1, // [1:1] is the sub-list for extension extendee
185 0, // [0:1] is the sub-list for field type_name
186 }
187
188 func init() { file_google_cloud_aiplatform_logging_prediction_proto_init() }
189 func file_google_cloud_aiplatform_logging_prediction_proto_init() {
190 if File_google_cloud_aiplatform_logging_prediction_proto != nil {
191 return
192 }
193 if !protoimpl.UnsafeEnabled {
194 file_google_cloud_aiplatform_logging_prediction_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
195 switch v := v.(*OnlinePredictionLogEntry); i {
196 case 0:
197 return &v.state
198 case 1:
199 return &v.sizeCache
200 case 2:
201 return &v.unknownFields
202 default:
203 return nil
204 }
205 }
206 }
207 type x struct{}
208 out := protoimpl.TypeBuilder{
209 File: protoimpl.DescBuilder{
210 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
211 RawDescriptor: file_google_cloud_aiplatform_logging_prediction_proto_rawDesc,
212 NumEnums: 0,
213 NumMessages: 1,
214 NumExtensions: 0,
215 NumServices: 0,
216 },
217 GoTypes: file_google_cloud_aiplatform_logging_prediction_proto_goTypes,
218 DependencyIndexes: file_google_cloud_aiplatform_logging_prediction_proto_depIdxs,
219 MessageInfos: file_google_cloud_aiplatform_logging_prediction_proto_msgTypes,
220 }.Build()
221 File_google_cloud_aiplatform_logging_prediction_proto = out.File
222 file_google_cloud_aiplatform_logging_prediction_proto_rawDesc = nil
223 file_google_cloud_aiplatform_logging_prediction_proto_goTypes = nil
224 file_google_cloud_aiplatform_logging_prediction_proto_depIdxs = nil
225 }