...

Source file src/google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/predict/prediction/image_segmentation.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/image_segmentation.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 Segmentation.
    39  type ImageSegmentationPredictionResult struct {
    40  	state         protoimpl.MessageState
    41  	sizeCache     protoimpl.SizeCache
    42  	unknownFields protoimpl.UnknownFields
    43  
    44  	// A PNG image where each pixel in the mask represents the category in which
    45  	// the pixel in the original image was predicted to belong to. The size of
    46  	// this image will be the same as the original image. The mapping between the
    47  	// AnntoationSpec and the color can be found in model's metadata. The model
    48  	// will choose the most likely category and if none of the categories reach
    49  	// the confidence threshold, the pixel will be marked as background.
    50  	CategoryMask string `protobuf:"bytes,1,opt,name=category_mask,json=categoryMask,proto3" json:"category_mask,omitempty"`
    51  	// A one channel image which is encoded as an 8bit lossless PNG. The size of
    52  	// the image will be the same as the original image. For a specific pixel,
    53  	// darker color means less confidence in correctness of the cateogry in the
    54  	// categoryMask for the corresponding pixel. Black means no confidence and
    55  	// white means complete confidence.
    56  	ConfidenceMask string `protobuf:"bytes,2,opt,name=confidence_mask,json=confidenceMask,proto3" json:"confidence_mask,omitempty"`
    57  }
    58  
    59  func (x *ImageSegmentationPredictionResult) Reset() {
    60  	*x = ImageSegmentationPredictionResult{}
    61  	if protoimpl.UnsafeEnabled {
    62  		mi := &file_google_cloud_aiplatform_v1_schema_predict_prediction_image_segmentation_proto_msgTypes[0]
    63  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    64  		ms.StoreMessageInfo(mi)
    65  	}
    66  }
    67  
    68  func (x *ImageSegmentationPredictionResult) String() string {
    69  	return protoimpl.X.MessageStringOf(x)
    70  }
    71  
    72  func (*ImageSegmentationPredictionResult) ProtoMessage() {}
    73  
    74  func (x *ImageSegmentationPredictionResult) ProtoReflect() protoreflect.Message {
    75  	mi := &file_google_cloud_aiplatform_v1_schema_predict_prediction_image_segmentation_proto_msgTypes[0]
    76  	if protoimpl.UnsafeEnabled && x != nil {
    77  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    78  		if ms.LoadMessageInfo() == nil {
    79  			ms.StoreMessageInfo(mi)
    80  		}
    81  		return ms
    82  	}
    83  	return mi.MessageOf(x)
    84  }
    85  
    86  // Deprecated: Use ImageSegmentationPredictionResult.ProtoReflect.Descriptor instead.
    87  func (*ImageSegmentationPredictionResult) Descriptor() ([]byte, []int) {
    88  	return file_google_cloud_aiplatform_v1_schema_predict_prediction_image_segmentation_proto_rawDescGZIP(), []int{0}
    89  }
    90  
    91  func (x *ImageSegmentationPredictionResult) GetCategoryMask() string {
    92  	if x != nil {
    93  		return x.CategoryMask
    94  	}
    95  	return ""
    96  }
    97  
    98  func (x *ImageSegmentationPredictionResult) GetConfidenceMask() string {
    99  	if x != nil {
   100  		return x.ConfidenceMask
   101  	}
   102  	return ""
   103  }
   104  
   105  var File_google_cloud_aiplatform_v1_schema_predict_prediction_image_segmentation_proto protoreflect.FileDescriptor
   106  
   107  var file_google_cloud_aiplatform_v1_schema_predict_prediction_image_segmentation_proto_rawDesc = []byte{
   108  	0x0a, 0x4d, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x61,
   109  	0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x63, 0x68,
   110  	0x65, 0x6d, 0x61, 0x2f, 0x70, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x2f, 0x70, 0x72, 0x65, 0x64,
   111  	0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x65, 0x67,
   112  	0x6d, 0x65, 0x6e, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
   113  	0x34, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69,
   114  	0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x73, 0x63, 0x68, 0x65,
   115  	0x6d, 0x61, 0x2e, 0x70, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x65, 0x64, 0x69,
   116  	0x63, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x71, 0x0a, 0x21, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x53, 0x65,
   117  	0x67, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63,
   118  	0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x61,
   119  	0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28,
   120  	0x09, 0x52, 0x0c, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x4d, 0x61, 0x73, 0x6b, 0x12,
   121  	0x27, 0x0a, 0x0f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x5f, 0x6d, 0x61,
   122  	0x73, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x64,
   123  	0x65, 0x6e, 0x63, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x42, 0xef, 0x02, 0x0a, 0x38, 0x63, 0x6f, 0x6d,
   124  	0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69,
   125  	0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x73, 0x63, 0x68, 0x65,
   126  	0x6d, 0x61, 0x2e, 0x70, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x65, 0x64, 0x69,
   127  	0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x26, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x53, 0x65, 0x67, 0x6d,
   128  	0x65, 0x6e, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x69,
   129  	0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a,
   130  	0x5e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f,
   131  	0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67,
   132  	0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x61, 0x69, 0x70,
   133  	0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d,
   134  	0x61, 0x2f, 0x70, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x2f, 0x70, 0x72, 0x65, 0x64, 0x69, 0x63,
   135  	0x74, 0x69, 0x6f, 0x6e, 0x3b, 0x70, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0xaa,
   136  	0x02, 0x34, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x41,
   137  	0x49, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x56, 0x31, 0x2e, 0x53, 0x63, 0x68,
   138  	0x65, 0x6d, 0x61, 0x2e, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x2e, 0x50, 0x72, 0x65, 0x64,
   139  	0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0xca, 0x02, 0x34, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c,
   140  	0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x41, 0x49, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d,
   141  	0x5c, 0x56, 0x31, 0x5c, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5c, 0x50, 0x72, 0x65, 0x64, 0x69,
   142  	0x63, 0x74, 0x5c, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0xea, 0x02, 0x3a,
   143  	0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x41,
   144  	0x49, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x3a, 0x3a, 0x56, 0x31, 0x3a, 0x3a, 0x53,
   145  	0x63, 0x68, 0x65, 0x6d, 0x61, 0x3a, 0x3a, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x3a, 0x3a,
   146  	0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
   147  	0x6f, 0x33,
   148  }
   149  
   150  var (
   151  	file_google_cloud_aiplatform_v1_schema_predict_prediction_image_segmentation_proto_rawDescOnce sync.Once
   152  	file_google_cloud_aiplatform_v1_schema_predict_prediction_image_segmentation_proto_rawDescData = file_google_cloud_aiplatform_v1_schema_predict_prediction_image_segmentation_proto_rawDesc
   153  )
   154  
   155  func file_google_cloud_aiplatform_v1_schema_predict_prediction_image_segmentation_proto_rawDescGZIP() []byte {
   156  	file_google_cloud_aiplatform_v1_schema_predict_prediction_image_segmentation_proto_rawDescOnce.Do(func() {
   157  		file_google_cloud_aiplatform_v1_schema_predict_prediction_image_segmentation_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_aiplatform_v1_schema_predict_prediction_image_segmentation_proto_rawDescData)
   158  	})
   159  	return file_google_cloud_aiplatform_v1_schema_predict_prediction_image_segmentation_proto_rawDescData
   160  }
   161  
   162  var file_google_cloud_aiplatform_v1_schema_predict_prediction_image_segmentation_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   163  var file_google_cloud_aiplatform_v1_schema_predict_prediction_image_segmentation_proto_goTypes = []interface{}{
   164  	(*ImageSegmentationPredictionResult)(nil), // 0: google.cloud.aiplatform.v1.schema.predict.prediction.ImageSegmentationPredictionResult
   165  }
   166  var file_google_cloud_aiplatform_v1_schema_predict_prediction_image_segmentation_proto_depIdxs = []int32{
   167  	0, // [0:0] is the sub-list for method output_type
   168  	0, // [0:0] is the sub-list for method input_type
   169  	0, // [0:0] is the sub-list for extension type_name
   170  	0, // [0:0] is the sub-list for extension extendee
   171  	0, // [0:0] is the sub-list for field type_name
   172  }
   173  
   174  func init() {
   175  	file_google_cloud_aiplatform_v1_schema_predict_prediction_image_segmentation_proto_init()
   176  }
   177  func file_google_cloud_aiplatform_v1_schema_predict_prediction_image_segmentation_proto_init() {
   178  	if File_google_cloud_aiplatform_v1_schema_predict_prediction_image_segmentation_proto != nil {
   179  		return
   180  	}
   181  	if !protoimpl.UnsafeEnabled {
   182  		file_google_cloud_aiplatform_v1_schema_predict_prediction_image_segmentation_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   183  			switch v := v.(*ImageSegmentationPredictionResult); i {
   184  			case 0:
   185  				return &v.state
   186  			case 1:
   187  				return &v.sizeCache
   188  			case 2:
   189  				return &v.unknownFields
   190  			default:
   191  				return nil
   192  			}
   193  		}
   194  	}
   195  	type x struct{}
   196  	out := protoimpl.TypeBuilder{
   197  		File: protoimpl.DescBuilder{
   198  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   199  			RawDescriptor: file_google_cloud_aiplatform_v1_schema_predict_prediction_image_segmentation_proto_rawDesc,
   200  			NumEnums:      0,
   201  			NumMessages:   1,
   202  			NumExtensions: 0,
   203  			NumServices:   0,
   204  		},
   205  		GoTypes:           file_google_cloud_aiplatform_v1_schema_predict_prediction_image_segmentation_proto_goTypes,
   206  		DependencyIndexes: file_google_cloud_aiplatform_v1_schema_predict_prediction_image_segmentation_proto_depIdxs,
   207  		MessageInfos:      file_google_cloud_aiplatform_v1_schema_predict_prediction_image_segmentation_proto_msgTypes,
   208  	}.Build()
   209  	File_google_cloud_aiplatform_v1_schema_predict_prediction_image_segmentation_proto = out.File
   210  	file_google_cloud_aiplatform_v1_schema_predict_prediction_image_segmentation_proto_rawDesc = nil
   211  	file_google_cloud_aiplatform_v1_schema_predict_prediction_image_segmentation_proto_goTypes = nil
   212  	file_google_cloud_aiplatform_v1_schema_predict_prediction_image_segmentation_proto_depIdxs = nil
   213  }
   214  

View as plain text