...

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

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

     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/instance/text_extraction.proto
    20  
    21  package instance
    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 input format for Text Extraction.
    39  type TextExtractionPredictionInstance struct {
    40  	state         protoimpl.MessageState
    41  	sizeCache     protoimpl.SizeCache
    42  	unknownFields protoimpl.UnknownFields
    43  
    44  	// The text snippet to make the predictions on.
    45  	Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
    46  	// The MIME type of the text snippet. The supported MIME types are listed
    47  	// below.
    48  	// - text/plain
    49  	MimeType string `protobuf:"bytes,2,opt,name=mime_type,json=mimeType,proto3" json:"mime_type,omitempty"`
    50  	// This field is only used for batch prediction. If a key is provided, the
    51  	// batch prediction result will by mapped to this key. If omitted, then the
    52  	// batch prediction result will contain the entire input instance. Vertex AI
    53  	// will not check if keys in the request are duplicates, so it is up to the
    54  	// caller to ensure the keys are unique.
    55  	Key string `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"`
    56  }
    57  
    58  func (x *TextExtractionPredictionInstance) Reset() {
    59  	*x = TextExtractionPredictionInstance{}
    60  	if protoimpl.UnsafeEnabled {
    61  		mi := &file_google_cloud_aiplatform_v1_schema_predict_instance_text_extraction_proto_msgTypes[0]
    62  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    63  		ms.StoreMessageInfo(mi)
    64  	}
    65  }
    66  
    67  func (x *TextExtractionPredictionInstance) String() string {
    68  	return protoimpl.X.MessageStringOf(x)
    69  }
    70  
    71  func (*TextExtractionPredictionInstance) ProtoMessage() {}
    72  
    73  func (x *TextExtractionPredictionInstance) ProtoReflect() protoreflect.Message {
    74  	mi := &file_google_cloud_aiplatform_v1_schema_predict_instance_text_extraction_proto_msgTypes[0]
    75  	if protoimpl.UnsafeEnabled && x != nil {
    76  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    77  		if ms.LoadMessageInfo() == nil {
    78  			ms.StoreMessageInfo(mi)
    79  		}
    80  		return ms
    81  	}
    82  	return mi.MessageOf(x)
    83  }
    84  
    85  // Deprecated: Use TextExtractionPredictionInstance.ProtoReflect.Descriptor instead.
    86  func (*TextExtractionPredictionInstance) Descriptor() ([]byte, []int) {
    87  	return file_google_cloud_aiplatform_v1_schema_predict_instance_text_extraction_proto_rawDescGZIP(), []int{0}
    88  }
    89  
    90  func (x *TextExtractionPredictionInstance) GetContent() string {
    91  	if x != nil {
    92  		return x.Content
    93  	}
    94  	return ""
    95  }
    96  
    97  func (x *TextExtractionPredictionInstance) GetMimeType() string {
    98  	if x != nil {
    99  		return x.MimeType
   100  	}
   101  	return ""
   102  }
   103  
   104  func (x *TextExtractionPredictionInstance) GetKey() string {
   105  	if x != nil {
   106  		return x.Key
   107  	}
   108  	return ""
   109  }
   110  
   111  var File_google_cloud_aiplatform_v1_schema_predict_instance_text_extraction_proto protoreflect.FileDescriptor
   112  
   113  var file_google_cloud_aiplatform_v1_schema_predict_instance_text_extraction_proto_rawDesc = []byte{
   114  	0x0a, 0x48, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x61,
   115  	0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x63, 0x68,
   116  	0x65, 0x6d, 0x61, 0x2f, 0x70, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x2f, 0x69, 0x6e, 0x73, 0x74,
   117  	0x61, 0x6e, 0x63, 0x65, 0x2f, 0x74, 0x65, 0x78, 0x74, 0x5f, 0x65, 0x78, 0x74, 0x72, 0x61, 0x63,
   118  	0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x32, 0x67, 0x6f, 0x6f, 0x67,
   119  	0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66,
   120  	0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x70, 0x72,
   121  	0x65, 0x64, 0x69, 0x63, 0x74, 0x2e, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x22, 0x6b,
   122  	0x0a, 0x20, 0x54, 0x65, 0x78, 0x74, 0x45, 0x78, 0x74, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e,
   123  	0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e,
   124  	0x63, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20,
   125  	0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x1b, 0x0a, 0x09,
   126  	0x6d, 0x69, 0x6d, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
   127  	0x08, 0x6d, 0x69, 0x6d, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79,
   128  	0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x42, 0xe2, 0x02, 0x0a, 0x36,
   129  	0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64,
   130  	0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x73,
   131  	0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x70, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x2e, 0x69, 0x6e,
   132  	0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x42, 0x25, 0x54, 0x65, 0x78, 0x74, 0x45, 0x78, 0x74, 0x72,
   133  	0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e,
   134  	0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a,
   135  	0x5a, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f,
   136  	0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67,
   137  	0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x61, 0x69, 0x70,
   138  	0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d,
   139  	0x61, 0x2f, 0x70, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x2f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e,
   140  	0x63, 0x65, 0x3b, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0xaa, 0x02, 0x32, 0x47, 0x6f,
   141  	0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x41, 0x49, 0x50, 0x6c, 0x61,
   142  	0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x56, 0x31, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e,
   143  	0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65,
   144  	0xca, 0x02, 0x32, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c,
   145  	0x41, 0x49, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x5c, 0x56, 0x31, 0x5c, 0x53, 0x63,
   146  	0x68, 0x65, 0x6d, 0x61, 0x5c, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x5c, 0x49, 0x6e, 0x73,
   147  	0x74, 0x61, 0x6e, 0x63, 0x65, 0xea, 0x02, 0x38, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a,
   148  	0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x41, 0x49, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72,
   149  	0x6d, 0x3a, 0x3a, 0x56, 0x31, 0x3a, 0x3a, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x3a, 0x3a, 0x50,
   150  	0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x3a, 0x3a, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65,
   151  	0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   152  }
   153  
   154  var (
   155  	file_google_cloud_aiplatform_v1_schema_predict_instance_text_extraction_proto_rawDescOnce sync.Once
   156  	file_google_cloud_aiplatform_v1_schema_predict_instance_text_extraction_proto_rawDescData = file_google_cloud_aiplatform_v1_schema_predict_instance_text_extraction_proto_rawDesc
   157  )
   158  
   159  func file_google_cloud_aiplatform_v1_schema_predict_instance_text_extraction_proto_rawDescGZIP() []byte {
   160  	file_google_cloud_aiplatform_v1_schema_predict_instance_text_extraction_proto_rawDescOnce.Do(func() {
   161  		file_google_cloud_aiplatform_v1_schema_predict_instance_text_extraction_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_aiplatform_v1_schema_predict_instance_text_extraction_proto_rawDescData)
   162  	})
   163  	return file_google_cloud_aiplatform_v1_schema_predict_instance_text_extraction_proto_rawDescData
   164  }
   165  
   166  var file_google_cloud_aiplatform_v1_schema_predict_instance_text_extraction_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   167  var file_google_cloud_aiplatform_v1_schema_predict_instance_text_extraction_proto_goTypes = []interface{}{
   168  	(*TextExtractionPredictionInstance)(nil), // 0: google.cloud.aiplatform.v1.schema.predict.instance.TextExtractionPredictionInstance
   169  }
   170  var file_google_cloud_aiplatform_v1_schema_predict_instance_text_extraction_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() { file_google_cloud_aiplatform_v1_schema_predict_instance_text_extraction_proto_init() }
   179  func file_google_cloud_aiplatform_v1_schema_predict_instance_text_extraction_proto_init() {
   180  	if File_google_cloud_aiplatform_v1_schema_predict_instance_text_extraction_proto != nil {
   181  		return
   182  	}
   183  	if !protoimpl.UnsafeEnabled {
   184  		file_google_cloud_aiplatform_v1_schema_predict_instance_text_extraction_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   185  			switch v := v.(*TextExtractionPredictionInstance); i {
   186  			case 0:
   187  				return &v.state
   188  			case 1:
   189  				return &v.sizeCache
   190  			case 2:
   191  				return &v.unknownFields
   192  			default:
   193  				return nil
   194  			}
   195  		}
   196  	}
   197  	type x struct{}
   198  	out := protoimpl.TypeBuilder{
   199  		File: protoimpl.DescBuilder{
   200  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   201  			RawDescriptor: file_google_cloud_aiplatform_v1_schema_predict_instance_text_extraction_proto_rawDesc,
   202  			NumEnums:      0,
   203  			NumMessages:   1,
   204  			NumExtensions: 0,
   205  			NumServices:   0,
   206  		},
   207  		GoTypes:           file_google_cloud_aiplatform_v1_schema_predict_instance_text_extraction_proto_goTypes,
   208  		DependencyIndexes: file_google_cloud_aiplatform_v1_schema_predict_instance_text_extraction_proto_depIdxs,
   209  		MessageInfos:      file_google_cloud_aiplatform_v1_schema_predict_instance_text_extraction_proto_msgTypes,
   210  	}.Build()
   211  	File_google_cloud_aiplatform_v1_schema_predict_instance_text_extraction_proto = out.File
   212  	file_google_cloud_aiplatform_v1_schema_predict_instance_text_extraction_proto_rawDesc = nil
   213  	file_google_cloud_aiplatform_v1_schema_predict_instance_text_extraction_proto_goTypes = nil
   214  	file_google_cloud_aiplatform_v1_schema_predict_instance_text_extraction_proto_depIdxs = nil
   215  }
   216  

View as plain text