...

Source file src/google.golang.org/genproto/googleapis/cloud/visualinspection/v1beta1/image.pb.go

Documentation: google.golang.org/genproto/googleapis/cloud/visualinspection/v1beta1

     1  // Copyright 2020 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.25.0
    18  // 	protoc        v3.13.0
    19  // source: google/cloud/visualinspection/v1beta1/image.proto
    20  
    21  package visualinspection
    22  
    23  import (
    24  	reflect "reflect"
    25  	sync "sync"
    26  
    27  	proto "github.com/golang/protobuf/proto"
    28  	_ "google.golang.org/genproto/googleapis/api/annotations"
    29  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    30  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    31  	timestamppb "google.golang.org/protobuf/types/known/timestamppb"
    32  )
    33  
    34  const (
    35  	// Verify that this generated code is sufficiently up-to-date.
    36  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    37  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    38  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    39  )
    40  
    41  // This is a compile-time assertion that a sufficiently up-to-date version
    42  // of the legacy proto package is being used.
    43  const _ = proto.ProtoPackageIsVersion4
    44  
    45  // A piece of data in a Dataset.
    46  type Image struct {
    47  	state         protoimpl.MessageState
    48  	sizeCache     protoimpl.SizeCache
    49  	unknownFields protoimpl.UnknownFields
    50  
    51  	// Output only. Resource name of the Image generated by the system.
    52  	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    53  	// Output only. Timestamp when this Image was created.
    54  	CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
    55  	// The labels with user-defined metadata to organize your Images.
    56  	//
    57  	// Label keys and values can be no longer than 64 characters
    58  	// (Unicode codepoints), can only contain lowercase letters, numeric
    59  	// characters, underscores and dashes. International characters are allowed.
    60  	// Label keys must start with a letter.
    61  	//
    62  	// See https://goo.gl/xmQnxf for more information on and examples of labels.
    63  	Labels map[string]string `protobuf:"bytes,3,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
    64  	// Output only. Source Google Cloud Storage uri for the Image.
    65  	SourceGcsUri string `protobuf:"bytes,4,opt,name=source_gcs_uri,json=sourceGcsUri,proto3" json:"source_gcs_uri,omitempty"`
    66  	// Output only. Encoded image bytes. This field is only set when used to
    67  	// contain image predictions such as segmentation image masks by online
    68  	// prediction.
    69  	ImageBytes []byte `protobuf:"bytes,7,opt,name=image_bytes,json=imageBytes,proto3" json:"image_bytes,omitempty"`
    70  }
    71  
    72  func (x *Image) Reset() {
    73  	*x = Image{}
    74  	if protoimpl.UnsafeEnabled {
    75  		mi := &file_google_cloud_visualinspection_v1beta1_image_proto_msgTypes[0]
    76  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    77  		ms.StoreMessageInfo(mi)
    78  	}
    79  }
    80  
    81  func (x *Image) String() string {
    82  	return protoimpl.X.MessageStringOf(x)
    83  }
    84  
    85  func (*Image) ProtoMessage() {}
    86  
    87  func (x *Image) ProtoReflect() protoreflect.Message {
    88  	mi := &file_google_cloud_visualinspection_v1beta1_image_proto_msgTypes[0]
    89  	if protoimpl.UnsafeEnabled && x != nil {
    90  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    91  		if ms.LoadMessageInfo() == nil {
    92  			ms.StoreMessageInfo(mi)
    93  		}
    94  		return ms
    95  	}
    96  	return mi.MessageOf(x)
    97  }
    98  
    99  // Deprecated: Use Image.ProtoReflect.Descriptor instead.
   100  func (*Image) Descriptor() ([]byte, []int) {
   101  	return file_google_cloud_visualinspection_v1beta1_image_proto_rawDescGZIP(), []int{0}
   102  }
   103  
   104  func (x *Image) GetName() string {
   105  	if x != nil {
   106  		return x.Name
   107  	}
   108  	return ""
   109  }
   110  
   111  func (x *Image) GetCreateTime() *timestamppb.Timestamp {
   112  	if x != nil {
   113  		return x.CreateTime
   114  	}
   115  	return nil
   116  }
   117  
   118  func (x *Image) GetLabels() map[string]string {
   119  	if x != nil {
   120  		return x.Labels
   121  	}
   122  	return nil
   123  }
   124  
   125  func (x *Image) GetSourceGcsUri() string {
   126  	if x != nil {
   127  		return x.SourceGcsUri
   128  	}
   129  	return ""
   130  }
   131  
   132  func (x *Image) GetImageBytes() []byte {
   133  	if x != nil {
   134  		return x.ImageBytes
   135  	}
   136  	return nil
   137  }
   138  
   139  var File_google_cloud_visualinspection_v1beta1_image_proto protoreflect.FileDescriptor
   140  
   141  var file_google_cloud_visualinspection_v1beta1_image_proto_rawDesc = []byte{
   142  	0x0a, 0x31, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x76,
   143  	0x69, 0x73, 0x75, 0x61, 0x6c, 0x69, 0x6e, 0x73, 0x70, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f,
   144  	0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72,
   145  	0x6f, 0x74, 0x6f, 0x12, 0x25, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75,
   146  	0x64, 0x2e, 0x76, 0x69, 0x73, 0x75, 0x61, 0x6c, 0x69, 0x6e, 0x73, 0x70, 0x65, 0x63, 0x74, 0x69,
   147  	0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67,
   148  	0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f,
   149  	0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
   150  	0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76,
   151  	0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
   152  	0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70,
   153  	0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f,
   154  	0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e,
   155  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb7, 0x03, 0x0a, 0x05, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x12,
   156  	0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0,
   157  	0x41, 0x03, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x40, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61,
   158  	0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e,
   159  	0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e,
   160  	0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0a,
   161  	0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x50, 0x0a, 0x06, 0x6c, 0x61,
   162  	0x62, 0x65, 0x6c, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x38, 0x2e, 0x67, 0x6f, 0x6f,
   163  	0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x69, 0x73, 0x75, 0x61, 0x6c,
   164  	0x69, 0x6e, 0x73, 0x70, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74,
   165  	0x61, 0x31, 0x2e, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45,
   166  	0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x29, 0x0a, 0x0e,
   167  	0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x67, 0x63, 0x73, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x04,
   168  	0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0c, 0x73, 0x6f, 0x75, 0x72, 0x63,
   169  	0x65, 0x47, 0x63, 0x73, 0x55, 0x72, 0x69, 0x12, 0x24, 0x0a, 0x0b, 0x69, 0x6d, 0x61, 0x67, 0x65,
   170  	0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0c, 0x42, 0x03, 0xe0, 0x41,
   171  	0x03, 0x52, 0x0a, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x42, 0x79, 0x74, 0x65, 0x73, 0x1a, 0x39, 0x0a,
   172  	0x0b, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03,
   173  	0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14,
   174  	0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76,
   175  	0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x3a, 0x75, 0xea, 0x41, 0x72, 0x0a, 0x25, 0x76,
   176  	0x69, 0x73, 0x75, 0x61, 0x6c, 0x69, 0x6e, 0x73, 0x70, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e,
   177  	0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x49,
   178  	0x6d, 0x61, 0x67, 0x65, 0x12, 0x49, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b,
   179  	0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f,
   180  	0x6e, 0x73, 0x2f, 0x7b, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x7d, 0x2f, 0x64, 0x61,
   181  	0x74, 0x61, 0x73, 0x65, 0x74, 0x73, 0x2f, 0x7b, 0x64, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x7d,
   182  	0x2f, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x73, 0x2f, 0x7b, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x7d, 0x42,
   183  	0xff, 0x01, 0x0a, 0x29, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63,
   184  	0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x69, 0x73, 0x75, 0x61, 0x6c, 0x69, 0x6e, 0x73, 0x70, 0x65,
   185  	0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x50, 0x01, 0x5a,
   186  	0x55, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f,
   187  	0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67,
   188  	0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x76, 0x69, 0x73,
   189  	0x75, 0x61, 0x6c, 0x69, 0x6e, 0x73, 0x70, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31,
   190  	0x62, 0x65, 0x74, 0x61, 0x31, 0x3b, 0x76, 0x69, 0x73, 0x75, 0x61, 0x6c, 0x69, 0x6e, 0x73, 0x70,
   191  	0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0xaa, 0x02, 0x25, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
   192  	0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x56, 0x69, 0x73, 0x75, 0x61, 0x6c, 0x49, 0x6e, 0x73, 0x70,
   193  	0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02,
   194  	0x25, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x56, 0x69,
   195  	0x73, 0x75, 0x61, 0x6c, 0x49, 0x6e, 0x73, 0x70, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5c, 0x56,
   196  	0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xea, 0x02, 0x28, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a,
   197  	0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x56, 0x69, 0x73, 0x75, 0x61, 0x6c, 0x49, 0x6e,
   198  	0x73, 0x70, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61,
   199  	0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   200  }
   201  
   202  var (
   203  	file_google_cloud_visualinspection_v1beta1_image_proto_rawDescOnce sync.Once
   204  	file_google_cloud_visualinspection_v1beta1_image_proto_rawDescData = file_google_cloud_visualinspection_v1beta1_image_proto_rawDesc
   205  )
   206  
   207  func file_google_cloud_visualinspection_v1beta1_image_proto_rawDescGZIP() []byte {
   208  	file_google_cloud_visualinspection_v1beta1_image_proto_rawDescOnce.Do(func() {
   209  		file_google_cloud_visualinspection_v1beta1_image_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_visualinspection_v1beta1_image_proto_rawDescData)
   210  	})
   211  	return file_google_cloud_visualinspection_v1beta1_image_proto_rawDescData
   212  }
   213  
   214  var file_google_cloud_visualinspection_v1beta1_image_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
   215  var file_google_cloud_visualinspection_v1beta1_image_proto_goTypes = []interface{}{
   216  	(*Image)(nil),                 // 0: google.cloud.visualinspection.v1beta1.Image
   217  	nil,                           // 1: google.cloud.visualinspection.v1beta1.Image.LabelsEntry
   218  	(*timestamppb.Timestamp)(nil), // 2: google.protobuf.Timestamp
   219  }
   220  var file_google_cloud_visualinspection_v1beta1_image_proto_depIdxs = []int32{
   221  	2, // 0: google.cloud.visualinspection.v1beta1.Image.create_time:type_name -> google.protobuf.Timestamp
   222  	1, // 1: google.cloud.visualinspection.v1beta1.Image.labels:type_name -> google.cloud.visualinspection.v1beta1.Image.LabelsEntry
   223  	2, // [2:2] is the sub-list for method output_type
   224  	2, // [2:2] is the sub-list for method input_type
   225  	2, // [2:2] is the sub-list for extension type_name
   226  	2, // [2:2] is the sub-list for extension extendee
   227  	0, // [0:2] is the sub-list for field type_name
   228  }
   229  
   230  func init() { file_google_cloud_visualinspection_v1beta1_image_proto_init() }
   231  func file_google_cloud_visualinspection_v1beta1_image_proto_init() {
   232  	if File_google_cloud_visualinspection_v1beta1_image_proto != nil {
   233  		return
   234  	}
   235  	if !protoimpl.UnsafeEnabled {
   236  		file_google_cloud_visualinspection_v1beta1_image_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   237  			switch v := v.(*Image); i {
   238  			case 0:
   239  				return &v.state
   240  			case 1:
   241  				return &v.sizeCache
   242  			case 2:
   243  				return &v.unknownFields
   244  			default:
   245  				return nil
   246  			}
   247  		}
   248  	}
   249  	type x struct{}
   250  	out := protoimpl.TypeBuilder{
   251  		File: protoimpl.DescBuilder{
   252  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   253  			RawDescriptor: file_google_cloud_visualinspection_v1beta1_image_proto_rawDesc,
   254  			NumEnums:      0,
   255  			NumMessages:   2,
   256  			NumExtensions: 0,
   257  			NumServices:   0,
   258  		},
   259  		GoTypes:           file_google_cloud_visualinspection_v1beta1_image_proto_goTypes,
   260  		DependencyIndexes: file_google_cloud_visualinspection_v1beta1_image_proto_depIdxs,
   261  		MessageInfos:      file_google_cloud_visualinspection_v1beta1_image_proto_msgTypes,
   262  	}.Build()
   263  	File_google_cloud_visualinspection_v1beta1_image_proto = out.File
   264  	file_google_cloud_visualinspection_v1beta1_image_proto_rawDesc = nil
   265  	file_google_cloud_visualinspection_v1beta1_image_proto_goTypes = nil
   266  	file_google_cloud_visualinspection_v1beta1_image_proto_depIdxs = nil
   267  }
   268  

View as plain text