...

Source file src/google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/predict/prediction/video_classification.pb.go

Documentation: google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/predict/prediction

     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/prediction/video_classification.proto
    20  
    21  package prediction
    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  	durationpb "google.golang.org/protobuf/types/known/durationpb"
    30  	wrapperspb "google.golang.org/protobuf/types/known/wrapperspb"
    31  )
    32  
    33  const (
    34  	// Verify that this generated code is sufficiently up-to-date.
    35  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    36  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    37  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    38  )
    39  
    40  // Prediction output format for Video Classification.
    41  type VideoClassificationPredictionResult struct {
    42  	state         protoimpl.MessageState
    43  	sizeCache     protoimpl.SizeCache
    44  	unknownFields protoimpl.UnknownFields
    45  
    46  	// The resource ID of the AnnotationSpec that had been identified.
    47  	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
    48  	// The display name of the AnnotationSpec that had been identified.
    49  	DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
    50  	// The type of the prediction. The requested types can be configured
    51  	// via parameters. This will be one of
    52  	// - segment-classification
    53  	// - shot-classification
    54  	// - one-sec-interval-classification
    55  	Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
    56  	// The beginning, inclusive, of the video's time segment in which the
    57  	// AnnotationSpec has been identified. Expressed as a number of seconds as
    58  	// measured from the start of the video, with fractions up to a microsecond
    59  	// precision, and with "s" appended at the end. Note that for
    60  	// 'segment-classification' prediction type, this equals the original
    61  	// 'timeSegmentStart' from the input instance, for other types it is the
    62  	// start of a shot or a 1 second interval respectively.
    63  	TimeSegmentStart *durationpb.Duration `protobuf:"bytes,4,opt,name=time_segment_start,json=timeSegmentStart,proto3" json:"time_segment_start,omitempty"`
    64  	// The end, exclusive, of the video's time segment in which the
    65  	// AnnotationSpec has been identified. Expressed as a number of seconds as
    66  	// measured from the start of the video, with fractions up to a microsecond
    67  	// precision, and with "s" appended at the end. Note that for
    68  	// 'segment-classification' prediction type, this equals the original
    69  	// 'timeSegmentEnd' from the input instance, for other types it is the end
    70  	// of a shot or a 1 second interval respectively.
    71  	TimeSegmentEnd *durationpb.Duration `protobuf:"bytes,5,opt,name=time_segment_end,json=timeSegmentEnd,proto3" json:"time_segment_end,omitempty"`
    72  	// The Model's confidence in correction of this prediction, higher
    73  	// value means higher confidence.
    74  	Confidence *wrapperspb.FloatValue `protobuf:"bytes,6,opt,name=confidence,proto3" json:"confidence,omitempty"`
    75  }
    76  
    77  func (x *VideoClassificationPredictionResult) Reset() {
    78  	*x = VideoClassificationPredictionResult{}
    79  	if protoimpl.UnsafeEnabled {
    80  		mi := &file_google_cloud_aiplatform_v1_schema_predict_prediction_video_classification_proto_msgTypes[0]
    81  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    82  		ms.StoreMessageInfo(mi)
    83  	}
    84  }
    85  
    86  func (x *VideoClassificationPredictionResult) String() string {
    87  	return protoimpl.X.MessageStringOf(x)
    88  }
    89  
    90  func (*VideoClassificationPredictionResult) ProtoMessage() {}
    91  
    92  func (x *VideoClassificationPredictionResult) ProtoReflect() protoreflect.Message {
    93  	mi := &file_google_cloud_aiplatform_v1_schema_predict_prediction_video_classification_proto_msgTypes[0]
    94  	if protoimpl.UnsafeEnabled && x != nil {
    95  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    96  		if ms.LoadMessageInfo() == nil {
    97  			ms.StoreMessageInfo(mi)
    98  		}
    99  		return ms
   100  	}
   101  	return mi.MessageOf(x)
   102  }
   103  
   104  // Deprecated: Use VideoClassificationPredictionResult.ProtoReflect.Descriptor instead.
   105  func (*VideoClassificationPredictionResult) Descriptor() ([]byte, []int) {
   106  	return file_google_cloud_aiplatform_v1_schema_predict_prediction_video_classification_proto_rawDescGZIP(), []int{0}
   107  }
   108  
   109  func (x *VideoClassificationPredictionResult) GetId() string {
   110  	if x != nil {
   111  		return x.Id
   112  	}
   113  	return ""
   114  }
   115  
   116  func (x *VideoClassificationPredictionResult) GetDisplayName() string {
   117  	if x != nil {
   118  		return x.DisplayName
   119  	}
   120  	return ""
   121  }
   122  
   123  func (x *VideoClassificationPredictionResult) GetType() string {
   124  	if x != nil {
   125  		return x.Type
   126  	}
   127  	return ""
   128  }
   129  
   130  func (x *VideoClassificationPredictionResult) GetTimeSegmentStart() *durationpb.Duration {
   131  	if x != nil {
   132  		return x.TimeSegmentStart
   133  	}
   134  	return nil
   135  }
   136  
   137  func (x *VideoClassificationPredictionResult) GetTimeSegmentEnd() *durationpb.Duration {
   138  	if x != nil {
   139  		return x.TimeSegmentEnd
   140  	}
   141  	return nil
   142  }
   143  
   144  func (x *VideoClassificationPredictionResult) GetConfidence() *wrapperspb.FloatValue {
   145  	if x != nil {
   146  		return x.Confidence
   147  	}
   148  	return nil
   149  }
   150  
   151  var File_google_cloud_aiplatform_v1_schema_predict_prediction_video_classification_proto protoreflect.FileDescriptor
   152  
   153  var file_google_cloud_aiplatform_v1_schema_predict_prediction_video_classification_proto_rawDesc = []byte{
   154  	0x0a, 0x4f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x61,
   155  	0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x63, 0x68,
   156  	0x65, 0x6d, 0x61, 0x2f, 0x70, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x2f, 0x70, 0x72, 0x65, 0x64,
   157  	0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x69, 0x64, 0x65, 0x6f, 0x5f, 0x63, 0x6c, 0x61,
   158  	0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74,
   159  	0x6f, 0x12, 0x34, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e,
   160  	0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x73, 0x63,
   161  	0x68, 0x65, 0x6d, 0x61, 0x2e, 0x70, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x65,
   162  	0x64, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f,
   163  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f,
   164  	0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f,
   165  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x77, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72,
   166  	0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb7, 0x02, 0x0a, 0x23, 0x56, 0x69, 0x64, 0x65,
   167  	0x6f, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50,
   168  	0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12,
   169  	0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12,
   170  	0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18,
   171  	0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61,
   172  	0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,
   173  	0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x47, 0x0a, 0x12, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x73,
   174  	0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x18, 0x04, 0x20, 0x01,
   175  	0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
   176  	0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x10, 0x74,
   177  	0x69, 0x6d, 0x65, 0x53, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x74, 0x61, 0x72, 0x74, 0x12,
   178  	0x43, 0x0a, 0x10, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x5f,
   179  	0x65, 0x6e, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
   180  	0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61,
   181  	0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0e, 0x74, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x67, 0x6d, 0x65, 0x6e,
   182  	0x74, 0x45, 0x6e, 0x64, 0x12, 0x3b, 0x0a, 0x0a, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x64, 0x65, 0x6e,
   183  	0x63, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
   184  	0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x6c, 0x6f, 0x61, 0x74,
   185  	0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x64, 0x65, 0x6e, 0x63,
   186  	0x65, 0x42, 0xf1, 0x02, 0x0a, 0x38, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
   187  	0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72,
   188  	0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x70, 0x72, 0x65, 0x64,
   189  	0x69, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x28,
   190  	0x56, 0x69, 0x64, 0x65, 0x6f, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74,
   191  	0x69, 0x6f, 0x6e, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73,
   192  	0x75, 0x6c, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x5e, 0x67, 0x6f, 0x6f, 0x67,
   193  	0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65,
   194  	0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69,
   195  	0x73, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f,
   196  	0x72, 0x6d, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2f, 0x70, 0x72, 0x65,
   197  	0x64, 0x69, 0x63, 0x74, 0x2f, 0x70, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x3b,
   198  	0x70, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0xaa, 0x02, 0x34, 0x47, 0x6f, 0x6f,
   199  	0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x41, 0x49, 0x50, 0x6c, 0x61, 0x74,
   200  	0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x56, 0x31, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x50,
   201  	0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x2e, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x69, 0x6f,
   202  	0x6e, 0xca, 0x02, 0x34, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64,
   203  	0x5c, 0x41, 0x49, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x5c, 0x56, 0x31, 0x5c, 0x53,
   204  	0x63, 0x68, 0x65, 0x6d, 0x61, 0x5c, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x5c, 0x50, 0x72,
   205  	0x65, 0x64, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0xea, 0x02, 0x3a, 0x47, 0x6f, 0x6f, 0x67, 0x6c,
   206  	0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x41, 0x49, 0x50, 0x6c, 0x61, 0x74,
   207  	0x66, 0x6f, 0x72, 0x6d, 0x3a, 0x3a, 0x56, 0x31, 0x3a, 0x3a, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61,
   208  	0x3a, 0x3a, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x3a, 0x3a, 0x50, 0x72, 0x65, 0x64, 0x69,
   209  	0x63, 0x74, 0x69, 0x6f, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   210  }
   211  
   212  var (
   213  	file_google_cloud_aiplatform_v1_schema_predict_prediction_video_classification_proto_rawDescOnce sync.Once
   214  	file_google_cloud_aiplatform_v1_schema_predict_prediction_video_classification_proto_rawDescData = file_google_cloud_aiplatform_v1_schema_predict_prediction_video_classification_proto_rawDesc
   215  )
   216  
   217  func file_google_cloud_aiplatform_v1_schema_predict_prediction_video_classification_proto_rawDescGZIP() []byte {
   218  	file_google_cloud_aiplatform_v1_schema_predict_prediction_video_classification_proto_rawDescOnce.Do(func() {
   219  		file_google_cloud_aiplatform_v1_schema_predict_prediction_video_classification_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_aiplatform_v1_schema_predict_prediction_video_classification_proto_rawDescData)
   220  	})
   221  	return file_google_cloud_aiplatform_v1_schema_predict_prediction_video_classification_proto_rawDescData
   222  }
   223  
   224  var file_google_cloud_aiplatform_v1_schema_predict_prediction_video_classification_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   225  var file_google_cloud_aiplatform_v1_schema_predict_prediction_video_classification_proto_goTypes = []interface{}{
   226  	(*VideoClassificationPredictionResult)(nil), // 0: google.cloud.aiplatform.v1.schema.predict.prediction.VideoClassificationPredictionResult
   227  	(*durationpb.Duration)(nil),                 // 1: google.protobuf.Duration
   228  	(*wrapperspb.FloatValue)(nil),               // 2: google.protobuf.FloatValue
   229  }
   230  var file_google_cloud_aiplatform_v1_schema_predict_prediction_video_classification_proto_depIdxs = []int32{
   231  	1, // 0: google.cloud.aiplatform.v1.schema.predict.prediction.VideoClassificationPredictionResult.time_segment_start:type_name -> google.protobuf.Duration
   232  	1, // 1: google.cloud.aiplatform.v1.schema.predict.prediction.VideoClassificationPredictionResult.time_segment_end:type_name -> google.protobuf.Duration
   233  	2, // 2: google.cloud.aiplatform.v1.schema.predict.prediction.VideoClassificationPredictionResult.confidence:type_name -> google.protobuf.FloatValue
   234  	3, // [3:3] is the sub-list for method output_type
   235  	3, // [3:3] is the sub-list for method input_type
   236  	3, // [3:3] is the sub-list for extension type_name
   237  	3, // [3:3] is the sub-list for extension extendee
   238  	0, // [0:3] is the sub-list for field type_name
   239  }
   240  
   241  func init() {
   242  	file_google_cloud_aiplatform_v1_schema_predict_prediction_video_classification_proto_init()
   243  }
   244  func file_google_cloud_aiplatform_v1_schema_predict_prediction_video_classification_proto_init() {
   245  	if File_google_cloud_aiplatform_v1_schema_predict_prediction_video_classification_proto != nil {
   246  		return
   247  	}
   248  	if !protoimpl.UnsafeEnabled {
   249  		file_google_cloud_aiplatform_v1_schema_predict_prediction_video_classification_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   250  			switch v := v.(*VideoClassificationPredictionResult); i {
   251  			case 0:
   252  				return &v.state
   253  			case 1:
   254  				return &v.sizeCache
   255  			case 2:
   256  				return &v.unknownFields
   257  			default:
   258  				return nil
   259  			}
   260  		}
   261  	}
   262  	type x struct{}
   263  	out := protoimpl.TypeBuilder{
   264  		File: protoimpl.DescBuilder{
   265  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   266  			RawDescriptor: file_google_cloud_aiplatform_v1_schema_predict_prediction_video_classification_proto_rawDesc,
   267  			NumEnums:      0,
   268  			NumMessages:   1,
   269  			NumExtensions: 0,
   270  			NumServices:   0,
   271  		},
   272  		GoTypes:           file_google_cloud_aiplatform_v1_schema_predict_prediction_video_classification_proto_goTypes,
   273  		DependencyIndexes: file_google_cloud_aiplatform_v1_schema_predict_prediction_video_classification_proto_depIdxs,
   274  		MessageInfos:      file_google_cloud_aiplatform_v1_schema_predict_prediction_video_classification_proto_msgTypes,
   275  	}.Build()
   276  	File_google_cloud_aiplatform_v1_schema_predict_prediction_video_classification_proto = out.File
   277  	file_google_cloud_aiplatform_v1_schema_predict_prediction_video_classification_proto_rawDesc = nil
   278  	file_google_cloud_aiplatform_v1_schema_predict_prediction_video_classification_proto_goTypes = nil
   279  	file_google_cloud_aiplatform_v1_schema_predict_prediction_video_classification_proto_depIdxs = nil
   280  }
   281  

View as plain text