...

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

Documentation: google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/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/v1beta1/schema/predict/prediction/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  )
    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 output format for Image and Text Classification.
    39  type ClassificationPredictionResult struct {
    40  	state         protoimpl.MessageState
    41  	sizeCache     protoimpl.SizeCache
    42  	unknownFields protoimpl.UnknownFields
    43  
    44  	// The resource IDs of the AnnotationSpecs that had been identified.
    45  	Ids []int64 `protobuf:"varint,1,rep,packed,name=ids,proto3" json:"ids,omitempty"`
    46  	// The display names of the AnnotationSpecs that had been identified, order
    47  	// matches the IDs.
    48  	DisplayNames []string `protobuf:"bytes,2,rep,name=display_names,json=displayNames,proto3" json:"display_names,omitempty"`
    49  	// The Model's confidences in correctness of the predicted IDs, higher value
    50  	// means higher confidence. Order matches the Ids.
    51  	Confidences []float32 `protobuf:"fixed32,3,rep,packed,name=confidences,proto3" json:"confidences,omitempty"`
    52  }
    53  
    54  func (x *ClassificationPredictionResult) Reset() {
    55  	*x = ClassificationPredictionResult{}
    56  	if protoimpl.UnsafeEnabled {
    57  		mi := &file_google_cloud_aiplatform_v1beta1_schema_predict_prediction_classification_proto_msgTypes[0]
    58  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    59  		ms.StoreMessageInfo(mi)
    60  	}
    61  }
    62  
    63  func (x *ClassificationPredictionResult) String() string {
    64  	return protoimpl.X.MessageStringOf(x)
    65  }
    66  
    67  func (*ClassificationPredictionResult) ProtoMessage() {}
    68  
    69  func (x *ClassificationPredictionResult) ProtoReflect() protoreflect.Message {
    70  	mi := &file_google_cloud_aiplatform_v1beta1_schema_predict_prediction_classification_proto_msgTypes[0]
    71  	if protoimpl.UnsafeEnabled && x != nil {
    72  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    73  		if ms.LoadMessageInfo() == nil {
    74  			ms.StoreMessageInfo(mi)
    75  		}
    76  		return ms
    77  	}
    78  	return mi.MessageOf(x)
    79  }
    80  
    81  // Deprecated: Use ClassificationPredictionResult.ProtoReflect.Descriptor instead.
    82  func (*ClassificationPredictionResult) Descriptor() ([]byte, []int) {
    83  	return file_google_cloud_aiplatform_v1beta1_schema_predict_prediction_classification_proto_rawDescGZIP(), []int{0}
    84  }
    85  
    86  func (x *ClassificationPredictionResult) GetIds() []int64 {
    87  	if x != nil {
    88  		return x.Ids
    89  	}
    90  	return nil
    91  }
    92  
    93  func (x *ClassificationPredictionResult) GetDisplayNames() []string {
    94  	if x != nil {
    95  		return x.DisplayNames
    96  	}
    97  	return nil
    98  }
    99  
   100  func (x *ClassificationPredictionResult) GetConfidences() []float32 {
   101  	if x != nil {
   102  		return x.Confidences
   103  	}
   104  	return nil
   105  }
   106  
   107  var File_google_cloud_aiplatform_v1beta1_schema_predict_prediction_classification_proto protoreflect.FileDescriptor
   108  
   109  var file_google_cloud_aiplatform_v1beta1_schema_predict_prediction_classification_proto_rawDesc = []byte{
   110  	0x0a, 0x4e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x61,
   111  	0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61,
   112  	0x31, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2f, 0x70, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74,
   113  	0x2f, 0x70, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x63, 0x6c, 0x61, 0x73,
   114  	0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   115  	0x12, 0x39, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61,
   116  	0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61,
   117  	0x31, 0x2e, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x70, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74,
   118  	0x2e, 0x70, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x79, 0x0a, 0x1e, 0x43,
   119  	0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x65,
   120  	0x64, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x10, 0x0a,
   121  	0x03, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x03, 0x52, 0x03, 0x69, 0x64, 0x73, 0x12,
   122  	0x23, 0x0a, 0x0d, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x73,
   123  	0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e,
   124  	0x61, 0x6d, 0x65, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x64, 0x65, 0x6e,
   125  	0x63, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x02, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x66, 0x69,
   126  	0x64, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x42, 0x85, 0x03, 0x0a, 0x3d, 0x63, 0x6f, 0x6d, 0x2e, 0x67,
   127  	0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c,
   128  	0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x73,
   129  	0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x70, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x2e, 0x70, 0x72,
   130  	0x65, 0x64, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x23, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69,
   131  	0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x69,
   132  	0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a,
   133  	0x63, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f,
   134  	0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67,
   135  	0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x61, 0x69, 0x70,
   136  	0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f,
   137  	0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2f, 0x70, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x2f, 0x70,
   138  	0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x3b, 0x70, 0x72, 0x65, 0x64, 0x69, 0x63,
   139  	0x74, 0x69, 0x6f, 0x6e, 0xaa, 0x02, 0x39, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c,
   140  	0x6f, 0x75, 0x64, 0x2e, 0x41, 0x49, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x56,
   141  	0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x50, 0x72,
   142  	0x65, 0x64, 0x69, 0x63, 0x74, 0x2e, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e,
   143  	0xca, 0x02, 0x39, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c,
   144  	0x41, 0x49, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74,
   145  	0x61, 0x31, 0x5c, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5c, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63,
   146  	0x74, 0x5c, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0xea, 0x02, 0x3f, 0x47,
   147  	0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x41, 0x49,
   148  	0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61,
   149  	0x31, 0x3a, 0x3a, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x3a, 0x3a, 0x50, 0x72, 0x65, 0x64, 0x69,
   150  	0x63, 0x74, 0x3a, 0x3a, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x62, 0x06,
   151  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   152  }
   153  
   154  var (
   155  	file_google_cloud_aiplatform_v1beta1_schema_predict_prediction_classification_proto_rawDescOnce sync.Once
   156  	file_google_cloud_aiplatform_v1beta1_schema_predict_prediction_classification_proto_rawDescData = file_google_cloud_aiplatform_v1beta1_schema_predict_prediction_classification_proto_rawDesc
   157  )
   158  
   159  func file_google_cloud_aiplatform_v1beta1_schema_predict_prediction_classification_proto_rawDescGZIP() []byte {
   160  	file_google_cloud_aiplatform_v1beta1_schema_predict_prediction_classification_proto_rawDescOnce.Do(func() {
   161  		file_google_cloud_aiplatform_v1beta1_schema_predict_prediction_classification_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_aiplatform_v1beta1_schema_predict_prediction_classification_proto_rawDescData)
   162  	})
   163  	return file_google_cloud_aiplatform_v1beta1_schema_predict_prediction_classification_proto_rawDescData
   164  }
   165  
   166  var file_google_cloud_aiplatform_v1beta1_schema_predict_prediction_classification_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   167  var file_google_cloud_aiplatform_v1beta1_schema_predict_prediction_classification_proto_goTypes = []interface{}{
   168  	(*ClassificationPredictionResult)(nil), // 0: google.cloud.aiplatform.v1beta1.schema.predict.prediction.ClassificationPredictionResult
   169  }
   170  var file_google_cloud_aiplatform_v1beta1_schema_predict_prediction_classification_proto_depIdxs = []int32{
   171  	0, // [0:0] is the sub-list for method output_type
   172  	0, // [0:0] is the sub-list for method input_type
   173  	0, // [0:0] is the sub-list for extension type_name
   174  	0, // [0:0] is the sub-list for extension extendee
   175  	0, // [0:0] is the sub-list for field type_name
   176  }
   177  
   178  func init() {
   179  	file_google_cloud_aiplatform_v1beta1_schema_predict_prediction_classification_proto_init()
   180  }
   181  func file_google_cloud_aiplatform_v1beta1_schema_predict_prediction_classification_proto_init() {
   182  	if File_google_cloud_aiplatform_v1beta1_schema_predict_prediction_classification_proto != nil {
   183  		return
   184  	}
   185  	if !protoimpl.UnsafeEnabled {
   186  		file_google_cloud_aiplatform_v1beta1_schema_predict_prediction_classification_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   187  			switch v := v.(*ClassificationPredictionResult); i {
   188  			case 0:
   189  				return &v.state
   190  			case 1:
   191  				return &v.sizeCache
   192  			case 2:
   193  				return &v.unknownFields
   194  			default:
   195  				return nil
   196  			}
   197  		}
   198  	}
   199  	type x struct{}
   200  	out := protoimpl.TypeBuilder{
   201  		File: protoimpl.DescBuilder{
   202  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   203  			RawDescriptor: file_google_cloud_aiplatform_v1beta1_schema_predict_prediction_classification_proto_rawDesc,
   204  			NumEnums:      0,
   205  			NumMessages:   1,
   206  			NumExtensions: 0,
   207  			NumServices:   0,
   208  		},
   209  		GoTypes:           file_google_cloud_aiplatform_v1beta1_schema_predict_prediction_classification_proto_goTypes,
   210  		DependencyIndexes: file_google_cloud_aiplatform_v1beta1_schema_predict_prediction_classification_proto_depIdxs,
   211  		MessageInfos:      file_google_cloud_aiplatform_v1beta1_schema_predict_prediction_classification_proto_msgTypes,
   212  	}.Build()
   213  	File_google_cloud_aiplatform_v1beta1_schema_predict_prediction_classification_proto = out.File
   214  	file_google_cloud_aiplatform_v1beta1_schema_predict_prediction_classification_proto_rawDesc = nil
   215  	file_google_cloud_aiplatform_v1beta1_schema_predict_prediction_classification_proto_goTypes = nil
   216  	file_google_cloud_aiplatform_v1beta1_schema_predict_prediction_classification_proto_depIdxs = nil
   217  }
   218  

View as plain text