...

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

Documentation: google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/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/v1beta1/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_v1beta1_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_v1beta1_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_v1beta1_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_v1beta1_schema_predict_instance_text_extraction_proto protoreflect.FileDescriptor
   112  
   113  var file_google_cloud_aiplatform_v1beta1_schema_predict_instance_text_extraction_proto_rawDesc = []byte{
   114  	0x0a, 0x4d, 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, 0x62, 0x65, 0x74, 0x61,
   116  	0x31, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2f, 0x70, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74,
   117  	0x2f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x2f, 0x74, 0x65, 0x78, 0x74, 0x5f, 0x65,
   118  	0x78, 0x74, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
   119  	0x37, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69,
   120  	0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31,
   121  	0x2e, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x70, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x2e,
   122  	0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x22, 0x6b, 0x0a, 0x20, 0x54, 0x65, 0x78, 0x74,
   123  	0x45, 0x78, 0x74, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63,
   124  	0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x18, 0x0a, 0x07,
   125  	0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63,
   126  	0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x69, 0x6d, 0x65, 0x5f, 0x74,
   127  	0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x69, 0x6d, 0x65, 0x54,
   128  	0x79, 0x70, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,
   129  	0x52, 0x03, 0x6b, 0x65, 0x79, 0x42, 0xfb, 0x02, 0x0a, 0x3b, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f,
   130  	0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61,
   131  	0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x73, 0x63,
   132  	0x68, 0x65, 0x6d, 0x61, 0x2e, 0x70, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x2e, 0x69, 0x6e, 0x73,
   133  	0x74, 0x61, 0x6e, 0x63, 0x65, 0x42, 0x25, 0x54, 0x65, 0x78, 0x74, 0x45, 0x78, 0x74, 0x72, 0x61,
   134  	0x63, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49,
   135  	0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x5f,
   136  	0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72,
   137  	0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
   138  	0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x61, 0x69, 0x70, 0x6c,
   139  	0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x73,
   140  	0x63, 0x68, 0x65, 0x6d, 0x61, 0x2f, 0x70, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x2f, 0x69, 0x6e,
   141  	0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x3b, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0xaa,
   142  	0x02, 0x37, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x41,
   143  	0x49, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61,
   144  	0x31, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74,
   145  	0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0xca, 0x02, 0x37, 0x47, 0x6f, 0x6f, 0x67,
   146  	0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x41, 0x49, 0x50, 0x6c, 0x61, 0x74, 0x66,
   147  	0x6f, 0x72, 0x6d, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x5c, 0x53, 0x63, 0x68, 0x65,
   148  	0x6d, 0x61, 0x5c, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x5c, 0x49, 0x6e, 0x73, 0x74, 0x61,
   149  	0x6e, 0x63, 0x65, 0xea, 0x02, 0x3d, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c,
   150  	0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x41, 0x49, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x3a,
   151  	0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x3a, 0x3a, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61,
   152  	0x3a, 0x3a, 0x50, 0x72, 0x65, 0x64, 0x69, 0x63, 0x74, 0x3a, 0x3a, 0x49, 0x6e, 0x73, 0x74, 0x61,
   153  	0x6e, 0x63, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   154  }
   155  
   156  var (
   157  	file_google_cloud_aiplatform_v1beta1_schema_predict_instance_text_extraction_proto_rawDescOnce sync.Once
   158  	file_google_cloud_aiplatform_v1beta1_schema_predict_instance_text_extraction_proto_rawDescData = file_google_cloud_aiplatform_v1beta1_schema_predict_instance_text_extraction_proto_rawDesc
   159  )
   160  
   161  func file_google_cloud_aiplatform_v1beta1_schema_predict_instance_text_extraction_proto_rawDescGZIP() []byte {
   162  	file_google_cloud_aiplatform_v1beta1_schema_predict_instance_text_extraction_proto_rawDescOnce.Do(func() {
   163  		file_google_cloud_aiplatform_v1beta1_schema_predict_instance_text_extraction_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_aiplatform_v1beta1_schema_predict_instance_text_extraction_proto_rawDescData)
   164  	})
   165  	return file_google_cloud_aiplatform_v1beta1_schema_predict_instance_text_extraction_proto_rawDescData
   166  }
   167  
   168  var file_google_cloud_aiplatform_v1beta1_schema_predict_instance_text_extraction_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   169  var file_google_cloud_aiplatform_v1beta1_schema_predict_instance_text_extraction_proto_goTypes = []interface{}{
   170  	(*TextExtractionPredictionInstance)(nil), // 0: google.cloud.aiplatform.v1beta1.schema.predict.instance.TextExtractionPredictionInstance
   171  }
   172  var file_google_cloud_aiplatform_v1beta1_schema_predict_instance_text_extraction_proto_depIdxs = []int32{
   173  	0, // [0:0] is the sub-list for method output_type
   174  	0, // [0:0] is the sub-list for method input_type
   175  	0, // [0:0] is the sub-list for extension type_name
   176  	0, // [0:0] is the sub-list for extension extendee
   177  	0, // [0:0] is the sub-list for field type_name
   178  }
   179  
   180  func init() {
   181  	file_google_cloud_aiplatform_v1beta1_schema_predict_instance_text_extraction_proto_init()
   182  }
   183  func file_google_cloud_aiplatform_v1beta1_schema_predict_instance_text_extraction_proto_init() {
   184  	if File_google_cloud_aiplatform_v1beta1_schema_predict_instance_text_extraction_proto != nil {
   185  		return
   186  	}
   187  	if !protoimpl.UnsafeEnabled {
   188  		file_google_cloud_aiplatform_v1beta1_schema_predict_instance_text_extraction_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   189  			switch v := v.(*TextExtractionPredictionInstance); i {
   190  			case 0:
   191  				return &v.state
   192  			case 1:
   193  				return &v.sizeCache
   194  			case 2:
   195  				return &v.unknownFields
   196  			default:
   197  				return nil
   198  			}
   199  		}
   200  	}
   201  	type x struct{}
   202  	out := protoimpl.TypeBuilder{
   203  		File: protoimpl.DescBuilder{
   204  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   205  			RawDescriptor: file_google_cloud_aiplatform_v1beta1_schema_predict_instance_text_extraction_proto_rawDesc,
   206  			NumEnums:      0,
   207  			NumMessages:   1,
   208  			NumExtensions: 0,
   209  			NumServices:   0,
   210  		},
   211  		GoTypes:           file_google_cloud_aiplatform_v1beta1_schema_predict_instance_text_extraction_proto_goTypes,
   212  		DependencyIndexes: file_google_cloud_aiplatform_v1beta1_schema_predict_instance_text_extraction_proto_depIdxs,
   213  		MessageInfos:      file_google_cloud_aiplatform_v1beta1_schema_predict_instance_text_extraction_proto_msgTypes,
   214  	}.Build()
   215  	File_google_cloud_aiplatform_v1beta1_schema_predict_instance_text_extraction_proto = out.File
   216  	file_google_cloud_aiplatform_v1beta1_schema_predict_instance_text_extraction_proto_rawDesc = nil
   217  	file_google_cloud_aiplatform_v1beta1_schema_predict_instance_text_extraction_proto_goTypes = nil
   218  	file_google_cloud_aiplatform_v1beta1_schema_predict_instance_text_extraction_proto_depIdxs = nil
   219  }
   220  

View as plain text