Debian Codegraph @

googleapis/cloud/aiplatform/v1/schema/predict/params/video_classification.pb.go

raw
1 // Copyright 2021 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/v1/schema/predict/params/video_classification.proto
20
21 package params
22
23 import (
24 reflect "reflect"
25 sync "sync"
26
27 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
28 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
29 )
30
31 const (
32 // Verify that this generated code is sufficiently up-to-date.
33 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
34 // Verify that runtime/protoimpl is sufficiently up-to-date.
35 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
36 )
37
38 // Prediction model parameters for Video Classification.
39 type VideoClassificationPredictionParams struct {
40 state protoimpl.MessageState
41 sizeCache protoimpl.SizeCache
42 unknownFields protoimpl.UnknownFields
43
44 // The Model only returns predictions with at least this confidence score.
45 // Default value is 0.0
46 ConfidenceThreshold float32 `protobuf:"fixed32,1,opt,name=confidence_threshold,json=confidenceThreshold,proto3" json:"confidence_threshold,omitempty"`
47 // The Model only returns up to that many top, by confidence score,
48 // predictions per instance. If this number is very high, the Model may return
49 // fewer predictions. Default value is 10,000.
50 MaxPredictions int32 `protobuf:"varint,2,opt,name=max_predictions,json=maxPredictions,proto3" json:"max_predictions,omitempty"`
51 // Set to true to request segment-level classification. Vertex AI returns
52 // labels and their confidence scores for the entire time segment of the
53 // video that user specified in the input instance.
54 // Default value is true
55 SegmentClassification bool `protobuf:"varint,3,opt,name=segment_classification,json=segmentClassification,proto3" json:"segment_classification,omitempty"`
56 // Set to true to request shot-level classification. Vertex AI determines
57 // the boundaries for each camera shot in the entire time segment of the
58 // video that user specified in the input instance. Vertex AI then
59 // returns labels and their confidence scores for each detected shot, along
60 // with the start and end time of the shot.
61 // WARNING: Model evaluation is not done for this classification type,
62 // the quality of it depends on the training data, but there are no metrics
63 // provided to describe that quality.
64 // Default value is false
65 ShotClassification bool `protobuf:"varint,4,opt,name=shot_classification,json=shotClassification,proto3" json:"shot_classification,omitempty"`
66 // Set to true to request classification for a video at one-second intervals.
67 // Vertex AI returns labels and their confidence scores for each second of
68 // the entire time segment of the video that user specified in the input
69 // WARNING: Model evaluation is not done for this classification type, the
70 // quality of it depends on the training data, but there are no metrics
71 // provided to describe that quality. Default value is false
72 OneSecIntervalClassification bool `protobuf:"varint,5,opt,name=one_sec_interval_classification,json=oneSecIntervalClassification,proto3" json:"one_sec_interval_classification,omitempty"`
73 }
74
75 func (x *VideoClassificationPredictionParams) Reset() {
76 *x = VideoClassificationPredictionParams{}
77 if protoimpl.UnsafeEnabled {
78 mi := &file_google_cloud_aiplatform_v1_schema_predict_params_video_classification_proto_msgTypes[0]
79 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
80 ms.StoreMessageInfo(mi)
81 }
82 }
83
84 func (x *VideoClassificationPredictionParams) String() string {
85 return protoimpl.X.MessageStringOf(x)
86 }
87
88 func (*VideoClassificationPredictionParams) ProtoMessage() {}
89
90 func (x *VideoClassificationPredictionParams) ProtoReflect() protoreflect.Message {
91 mi := &file_google_cloud_aiplatform_v1_schema_predict_params_video_classification_proto_msgTypes[0]
92 if protoimpl.UnsafeEnabled && x != nil {
93 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
94 if ms.LoadMessageInfo() == nil {
95 ms.StoreMessageInfo(mi)
96 }
97 return ms
98 }
99 return mi.MessageOf(x)
100 }
101
102 // Deprecated: Use VideoClassificationPredictionParams.ProtoReflect.Descriptor instead.
103 func (*VideoClassificationPredictionParams) Descriptor() ([]byte, []int) {
104 return file_google_cloud_aiplatform_v1_schema_predict_params_video_classification_proto_rawDescGZIP(), []int{0}
105 }
106
107 func (x *VideoClassificationPredictionParams) GetConfidenceThreshold() float32 {
108 if x != nil {
109 return x.ConfidenceThreshold
110 }
111 return 0
112 }
113
114 func (x *VideoClassificationPredictionParams) GetMaxPredictions() int32 {
115 if x != nil {
116 return x.MaxPredictions
117 }
118 return 0
119 }
120
121 func (x *VideoClassificationPredictionParams) GetSegmentClassification() bool {
122 if x != nil {
123 return x.SegmentClassification
124 }
125 return false
126 }
127
128 func (x *VideoClassificationPredictionParams) GetShotClassification() bool {
129 if x != nil {
130 return x.ShotClassification
131 }
132 return false
133 }
134
135 func (x *VideoClassificationPredictionParams) GetOneSecIntervalClassification() bool {
136 if x != nil {
137 return x.OneSecIntervalClassification
138 }
139 return false
140 }
141
142 var File_google_cloud_aiplatform_v1_schema_predict_params_video_classification_proto protoreflect.FileDescriptor
143
144 var file_google_cloud_aiplatform_v1_schema_predict_params_video_classification_proto_rawDesc = []byte{
145 0x0a, 0x4b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x61,
146 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x63, 0x68,
147 0x65, 0x6d, 0x61, 0x2f, 0x70, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x2f, 0x70, 0x61, 0x72, 0x61,
148 0x6d, 0x73, 0x2f, 0x76, 0x69, 0x64, 0x65, 0x6f, 0x5f, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66,
149 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x30, 0x67,
150 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c,
151 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61,
152 0x2e, 0x70, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x2e, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22,
153 0xb0, 0x02, 0x0a, 0x23, 0x56, 0x69, 0x64, 0x65, 0x6f, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66,
154 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x69, 0x6f,
155 0x6e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x31, 0x0a, 0x14, 0x63, 0x6f, 0x6e, 0x66, 0x69,
156 0x64, 0x65, 0x6e, 0x63, 0x65, 0x5f, 0x74, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x18,
157 0x01, 0x20, 0x01, 0x28, 0x02, 0x52, 0x13, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x64, 0x65, 0x6e, 0x63,
158 0x65, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x12, 0x27, 0x0a, 0x0f, 0x6d, 0x61,
159 0x78, 0x5f, 0x70, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20,
160 0x01, 0x28, 0x05, 0x52, 0x0e, 0x6d, 0x61, 0x78, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x69,
161 0x6f, 0x6e, 0x73, 0x12, 0x35, 0x0a, 0x16, 0x73, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x63,
162 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20,
163 0x01, 0x28, 0x08, 0x52, 0x15, 0x73, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x6c, 0x61, 0x73,
164 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2f, 0x0a, 0x13, 0x73, 0x68,
165 0x6f, 0x74, 0x5f, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f,
166 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x12, 0x73, 0x68, 0x6f, 0x74, 0x43, 0x6c, 0x61,
167 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x45, 0x0a, 0x1f, 0x6f,
168 0x6e, 0x65, 0x5f, 0x73, 0x65, 0x63, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x5f,
169 0x63, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05,
170 0x20, 0x01, 0x28, 0x08, 0x52, 0x1c, 0x6f, 0x6e, 0x65, 0x53, 0x65, 0x63, 0x49, 0x6e, 0x74, 0x65,
171 0x72, 0x76, 0x61, 0x6c, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69,
172 0x6f, 0x6e, 0x42, 0xd9, 0x02, 0x0a, 0x34, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
173 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f,
174 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x70, 0x72, 0x65,
175 0x64, 0x69, 0x63, 0x74, 0x2e, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0x28, 0x56, 0x69, 0x64,
176 0x65, 0x6f, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e,
177 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73,
178 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x56, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
179 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72,
180 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x63,
181 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f,
182 0x76, 0x31, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2f, 0x70, 0x72, 0x65, 0x64, 0x69, 0x63,
183 0x74, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x3b, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0xaa,
184 0x02, 0x30, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x41,
185 0x49, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x56, 0x31, 0x2e, 0x53, 0x63, 0x68,
186 0x65, 0x6d, 0x61, 0x2e, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x2e, 0x50, 0x61, 0x72, 0x61,
187 0x6d, 0x73, 0xca, 0x02, 0x30, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75,
188 0x64, 0x5c, 0x41, 0x49, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x5c, 0x56, 0x31, 0x5c,
189 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5c, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x5c, 0x50,
190 0x61, 0x72, 0x61, 0x6d, 0x73, 0xea, 0x02, 0x36, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a,
191 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x41, 0x49, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72,
192 0x6d, 0x3a, 0x3a, 0x56, 0x31, 0x3a, 0x3a, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x3a, 0x3a, 0x50,
193 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x3a, 0x3a, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x62, 0x06,
194 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
195 }
196
197 var (
198 file_google_cloud_aiplatform_v1_schema_predict_params_video_classification_proto_rawDescOnce sync.Once
199 file_google_cloud_aiplatform_v1_schema_predict_params_video_classification_proto_rawDescData = file_google_cloud_aiplatform_v1_schema_predict_params_video_classification_proto_rawDesc
200 )
201
202 func file_google_cloud_aiplatform_v1_schema_predict_params_video_classification_proto_rawDescGZIP() []byte {
203 file_google_cloud_aiplatform_v1_schema_predict_params_video_classification_proto_rawDescOnce.Do(func() {
204 file_google_cloud_aiplatform_v1_schema_predict_params_video_classification_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_aiplatform_v1_schema_predict_params_video_classification_proto_rawDescData)
205 })
206 return file_google_cloud_aiplatform_v1_schema_predict_params_video_classification_proto_rawDescData
207 }
208
209 var file_google_cloud_aiplatform_v1_schema_predict_params_video_classification_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
210 var file_google_cloud_aiplatform_v1_schema_predict_params_video_classification_proto_goTypes = []interface{}{
211 (*VideoClassificationPredictionParams)(nil), // 0: google.cloud.aiplatform.v1.schema.predict.params.VideoClassificationPredictionParams
212 }
213 var file_google_cloud_aiplatform_v1_schema_predict_params_video_classification_proto_depIdxs = []int32{
214 0, // [0:0] is the sub-list for method output_type
215 0, // [0:0] is the sub-list for method input_type
216 0, // [0:0] is the sub-list for extension type_name
217 0, // [0:0] is the sub-list for extension extendee
218 0, // [0:0] is the sub-list for field type_name
219 }
220
221 func init() { file_google_cloud_aiplatform_v1_schema_predict_params_video_classification_proto_init() }
222 func file_google_cloud_aiplatform_v1_schema_predict_params_video_classification_proto_init() {
223 if File_google_cloud_aiplatform_v1_schema_predict_params_video_classification_proto != nil {
224 return
225 }
226 if !protoimpl.UnsafeEnabled {
227 file_google_cloud_aiplatform_v1_schema_predict_params_video_classification_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
228 switch v := v.(*VideoClassificationPredictionParams); i {
229 case 0:
230 return &v.state
231 case 1:
232 return &v.sizeCache
233 case 2:
234 return &v.unknownFields
235 default:
236 return nil
237 }
238 }
239 }
240 type x struct{}
241 out := protoimpl.TypeBuilder{
242 File: protoimpl.DescBuilder{
243 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
244 RawDescriptor: file_google_cloud_aiplatform_v1_schema_predict_params_video_classification_proto_rawDesc,
245 NumEnums: 0,
246 NumMessages: 1,
247 NumExtensions: 0,
248 NumServices: 0,
249 },
250 GoTypes: file_google_cloud_aiplatform_v1_schema_predict_params_video_classification_proto_goTypes,
251 DependencyIndexes: file_google_cloud_aiplatform_v1_schema_predict_params_video_classification_proto_depIdxs,
252 MessageInfos: file_google_cloud_aiplatform_v1_schema_predict_params_video_classification_proto_msgTypes,
253 }.Build()
254 File_google_cloud_aiplatform_v1_schema_predict_params_video_classification_proto = out.File
255 file_google_cloud_aiplatform_v1_schema_predict_params_video_classification_proto_rawDesc = nil
256 file_google_cloud_aiplatform_v1_schema_predict_params_video_classification_proto_goTypes = nil
257 file_google_cloud_aiplatform_v1_schema_predict_params_video_classification_proto_depIdxs = nil
258 }