...

Source file src/google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/predict/prediction/text_sentiment.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/text_sentiment.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 Text Sentiment
    39  type TextSentimentPredictionResult struct {
    40  	state         protoimpl.MessageState
    41  	sizeCache     protoimpl.SizeCache
    42  	unknownFields protoimpl.UnknownFields
    43  
    44  	// The integer sentiment labels between 0 (inclusive) and sentimentMax label
    45  	// (inclusive), while 0 maps to the least positive sentiment and
    46  	// sentimentMax maps to the most positive one. The higher the score is, the
    47  	// more positive the sentiment in the text snippet is. Note: sentimentMax is
    48  	// an integer value between 1 (inclusive) and 10 (inclusive).
    49  	Sentiment int32 `protobuf:"varint,1,opt,name=sentiment,proto3" json:"sentiment,omitempty"`
    50  }
    51  
    52  func (x *TextSentimentPredictionResult) Reset() {
    53  	*x = TextSentimentPredictionResult{}
    54  	if protoimpl.UnsafeEnabled {
    55  		mi := &file_google_cloud_aiplatform_v1beta1_schema_predict_prediction_text_sentiment_proto_msgTypes[0]
    56  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    57  		ms.StoreMessageInfo(mi)
    58  	}
    59  }
    60  
    61  func (x *TextSentimentPredictionResult) String() string {
    62  	return protoimpl.X.MessageStringOf(x)
    63  }
    64  
    65  func (*TextSentimentPredictionResult) ProtoMessage() {}
    66  
    67  func (x *TextSentimentPredictionResult) ProtoReflect() protoreflect.Message {
    68  	mi := &file_google_cloud_aiplatform_v1beta1_schema_predict_prediction_text_sentiment_proto_msgTypes[0]
    69  	if protoimpl.UnsafeEnabled && x != nil {
    70  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    71  		if ms.LoadMessageInfo() == nil {
    72  			ms.StoreMessageInfo(mi)
    73  		}
    74  		return ms
    75  	}
    76  	return mi.MessageOf(x)
    77  }
    78  
    79  // Deprecated: Use TextSentimentPredictionResult.ProtoReflect.Descriptor instead.
    80  func (*TextSentimentPredictionResult) Descriptor() ([]byte, []int) {
    81  	return file_google_cloud_aiplatform_v1beta1_schema_predict_prediction_text_sentiment_proto_rawDescGZIP(), []int{0}
    82  }
    83  
    84  func (x *TextSentimentPredictionResult) GetSentiment() int32 {
    85  	if x != nil {
    86  		return x.Sentiment
    87  	}
    88  	return 0
    89  }
    90  
    91  var File_google_cloud_aiplatform_v1beta1_schema_predict_prediction_text_sentiment_proto protoreflect.FileDescriptor
    92  
    93  var file_google_cloud_aiplatform_v1beta1_schema_predict_prediction_text_sentiment_proto_rawDesc = []byte{
    94  	0x0a, 0x4e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x61,
    95  	0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61,
    96  	0x31, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2f, 0x70, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74,
    97  	0x2f, 0x70, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x74, 0x65, 0x78, 0x74,
    98  	0x5f, 0x73, 0x65, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
    99  	0x12, 0x39, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61,
   100  	0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61,
   101  	0x31, 0x2e, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x70, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74,
   102  	0x2e, 0x70, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3d, 0x0a, 0x1d, 0x54,
   103  	0x65, 0x78, 0x74, 0x53, 0x65, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x50, 0x72, 0x65, 0x64,
   104  	0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x1c, 0x0a, 0x09,
   105  	0x73, 0x65, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52,
   106  	0x09, 0x73, 0x65, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x84, 0x03, 0x0a, 0x3d, 0x63,
   107  	0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e,
   108  	0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74,
   109  	0x61, 0x31, 0x2e, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x70, 0x72, 0x65, 0x64, 0x69, 0x63,
   110  	0x74, 0x2e, 0x70, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x22, 0x54, 0x65,
   111  	0x78, 0x74, 0x53, 0x65, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x50, 0x72, 0x65, 0x64, 0x69,
   112  	0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f,
   113  	0x50, 0x01, 0x5a, 0x63, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e,
   114  	0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67,
   115  	0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f,
   116  	0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74,
   117  	0x61, 0x31, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2f, 0x70, 0x72, 0x65, 0x64, 0x69, 0x63,
   118  	0x74, 0x2f, 0x70, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x3b, 0x70, 0x72, 0x65,
   119  	0x64, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0xaa, 0x02, 0x39, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
   120  	0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x41, 0x49, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72,
   121  	0x6d, 0x2e, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61,
   122  	0x2e, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x2e, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74,
   123  	0x69, 0x6f, 0x6e, 0xca, 0x02, 0x39, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f,
   124  	0x75, 0x64, 0x5c, 0x41, 0x49, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x5c, 0x56, 0x31,
   125  	0x62, 0x65, 0x74, 0x61, 0x31, 0x5c, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5c, 0x50, 0x72, 0x65,
   126  	0x64, 0x69, 0x63, 0x74, 0x5c, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0xea,
   127  	0x02, 0x3f, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a,
   128  	0x3a, 0x41, 0x49, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x3a, 0x3a, 0x56, 0x31, 0x62,
   129  	0x65, 0x74, 0x61, 0x31, 0x3a, 0x3a, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x3a, 0x3a, 0x50, 0x72,
   130  	0x65, 0x64, 0x69, 0x63, 0x74, 0x3a, 0x3a, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x69, 0x6f,
   131  	0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   132  }
   133  
   134  var (
   135  	file_google_cloud_aiplatform_v1beta1_schema_predict_prediction_text_sentiment_proto_rawDescOnce sync.Once
   136  	file_google_cloud_aiplatform_v1beta1_schema_predict_prediction_text_sentiment_proto_rawDescData = file_google_cloud_aiplatform_v1beta1_schema_predict_prediction_text_sentiment_proto_rawDesc
   137  )
   138  
   139  func file_google_cloud_aiplatform_v1beta1_schema_predict_prediction_text_sentiment_proto_rawDescGZIP() []byte {
   140  	file_google_cloud_aiplatform_v1beta1_schema_predict_prediction_text_sentiment_proto_rawDescOnce.Do(func() {
   141  		file_google_cloud_aiplatform_v1beta1_schema_predict_prediction_text_sentiment_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_aiplatform_v1beta1_schema_predict_prediction_text_sentiment_proto_rawDescData)
   142  	})
   143  	return file_google_cloud_aiplatform_v1beta1_schema_predict_prediction_text_sentiment_proto_rawDescData
   144  }
   145  
   146  var file_google_cloud_aiplatform_v1beta1_schema_predict_prediction_text_sentiment_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   147  var file_google_cloud_aiplatform_v1beta1_schema_predict_prediction_text_sentiment_proto_goTypes = []interface{}{
   148  	(*TextSentimentPredictionResult)(nil), // 0: google.cloud.aiplatform.v1beta1.schema.predict.prediction.TextSentimentPredictionResult
   149  }
   150  var file_google_cloud_aiplatform_v1beta1_schema_predict_prediction_text_sentiment_proto_depIdxs = []int32{
   151  	0, // [0:0] is the sub-list for method output_type
   152  	0, // [0:0] is the sub-list for method input_type
   153  	0, // [0:0] is the sub-list for extension type_name
   154  	0, // [0:0] is the sub-list for extension extendee
   155  	0, // [0:0] is the sub-list for field type_name
   156  }
   157  
   158  func init() {
   159  	file_google_cloud_aiplatform_v1beta1_schema_predict_prediction_text_sentiment_proto_init()
   160  }
   161  func file_google_cloud_aiplatform_v1beta1_schema_predict_prediction_text_sentiment_proto_init() {
   162  	if File_google_cloud_aiplatform_v1beta1_schema_predict_prediction_text_sentiment_proto != nil {
   163  		return
   164  	}
   165  	if !protoimpl.UnsafeEnabled {
   166  		file_google_cloud_aiplatform_v1beta1_schema_predict_prediction_text_sentiment_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   167  			switch v := v.(*TextSentimentPredictionResult); i {
   168  			case 0:
   169  				return &v.state
   170  			case 1:
   171  				return &v.sizeCache
   172  			case 2:
   173  				return &v.unknownFields
   174  			default:
   175  				return nil
   176  			}
   177  		}
   178  	}
   179  	type x struct{}
   180  	out := protoimpl.TypeBuilder{
   181  		File: protoimpl.DescBuilder{
   182  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   183  			RawDescriptor: file_google_cloud_aiplatform_v1beta1_schema_predict_prediction_text_sentiment_proto_rawDesc,
   184  			NumEnums:      0,
   185  			NumMessages:   1,
   186  			NumExtensions: 0,
   187  			NumServices:   0,
   188  		},
   189  		GoTypes:           file_google_cloud_aiplatform_v1beta1_schema_predict_prediction_text_sentiment_proto_goTypes,
   190  		DependencyIndexes: file_google_cloud_aiplatform_v1beta1_schema_predict_prediction_text_sentiment_proto_depIdxs,
   191  		MessageInfos:      file_google_cloud_aiplatform_v1beta1_schema_predict_prediction_text_sentiment_proto_msgTypes,
   192  	}.Build()
   193  	File_google_cloud_aiplatform_v1beta1_schema_predict_prediction_text_sentiment_proto = out.File
   194  	file_google_cloud_aiplatform_v1beta1_schema_predict_prediction_text_sentiment_proto_rawDesc = nil
   195  	file_google_cloud_aiplatform_v1beta1_schema_predict_prediction_text_sentiment_proto_goTypes = nil
   196  	file_google_cloud_aiplatform_v1beta1_schema_predict_prediction_text_sentiment_proto_depIdxs = nil
   197  }
   198  

View as plain text