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.25.0-devel 18// protoc v3.12.2 19// source: google/cloud/aiplatform/v1beta1/user_action_reference.proto 20 21package aiplatform 22 23import ( 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) 32 33const ( 34 // Verify that this generated code is sufficiently up-to-date. 35 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 36 // Verify that runtime/protoimpl is sufficiently up-to-date. 37 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 38) 39 40// This is a compile-time assertion that a sufficiently up-to-date version 41// of the legacy proto package is being used. 42const _ = proto.ProtoPackageIsVersion4 43 44// References an API call. It contains more information about long running 45// operation and Jobs that are triggered by the API call. 46type UserActionReference struct { 47 state protoimpl.MessageState 48 sizeCache protoimpl.SizeCache 49 unknownFields protoimpl.UnknownFields 50 51 // Types that are assignable to Reference: 52 // *UserActionReference_Operation 53 // *UserActionReference_DataLabelingJob 54 Reference isUserActionReference_Reference `protobuf_oneof:"reference"` 55 // The method name of the API RPC call. For example, 56 // "/google.cloud.aiplatform.{apiVersion}.DatasetService.CreateDataset" 57 Method string `protobuf:"bytes,3,opt,name=method,proto3" json:"method,omitempty"` 58} 59 60func (x *UserActionReference) Reset() { 61 *x = UserActionReference{} 62 if protoimpl.UnsafeEnabled { 63 mi := &file_google_cloud_aiplatform_v1beta1_user_action_reference_proto_msgTypes[0] 64 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 65 ms.StoreMessageInfo(mi) 66 } 67} 68 69func (x *UserActionReference) String() string { 70 return protoimpl.X.MessageStringOf(x) 71} 72 73func (*UserActionReference) ProtoMessage() {} 74 75func (x *UserActionReference) ProtoReflect() protoreflect.Message { 76 mi := &file_google_cloud_aiplatform_v1beta1_user_action_reference_proto_msgTypes[0] 77 if protoimpl.UnsafeEnabled && x != nil { 78 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 79 if ms.LoadMessageInfo() == nil { 80 ms.StoreMessageInfo(mi) 81 } 82 return ms 83 } 84 return mi.MessageOf(x) 85} 86 87// Deprecated: Use UserActionReference.ProtoReflect.Descriptor instead. 88func (*UserActionReference) Descriptor() ([]byte, []int) { 89 return file_google_cloud_aiplatform_v1beta1_user_action_reference_proto_rawDescGZIP(), []int{0} 90} 91 92func (m *UserActionReference) GetReference() isUserActionReference_Reference { 93 if m != nil { 94 return m.Reference 95 } 96 return nil 97} 98 99func (x *UserActionReference) GetOperation() string { 100 if x, ok := x.GetReference().(*UserActionReference_Operation); ok { 101 return x.Operation 102 } 103 return "" 104} 105 106func (x *UserActionReference) GetDataLabelingJob() string { 107 if x, ok := x.GetReference().(*UserActionReference_DataLabelingJob); ok { 108 return x.DataLabelingJob 109 } 110 return "" 111} 112 113func (x *UserActionReference) GetMethod() string { 114 if x != nil { 115 return x.Method 116 } 117 return "" 118} 119 120type isUserActionReference_Reference interface { 121 isUserActionReference_Reference() 122} 123 124type UserActionReference_Operation struct { 125 // For API calls that return a long running operation. 126 // Resource name of the long running operation. 127 // Format: 128 // 'projects/{project}/locations/{location}/operations/{operation}' 129 Operation string `protobuf:"bytes,1,opt,name=operation,proto3,oneof"` 130} 131 132type UserActionReference_DataLabelingJob struct { 133 // For API calls that start a LabelingJob. 134 // Resource name of the LabelingJob. 135 // Format: 136 // 'projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}' 137 DataLabelingJob string `protobuf:"bytes,2,opt,name=data_labeling_job,json=dataLabelingJob,proto3,oneof"` 138} 139 140func (*UserActionReference_Operation) isUserActionReference_Reference() {} 141 142func (*UserActionReference_DataLabelingJob) isUserActionReference_Reference() {} 143 144var File_google_cloud_aiplatform_v1beta1_user_action_reference_proto protoreflect.FileDescriptor 145 146var file_google_cloud_aiplatform_v1beta1_user_action_reference_proto_rawDesc = []byte{ 147 0x0a, 0x3b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x61, 148 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 149 0x31, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x65, 150 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1f, 0x67, 151 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 152 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x1c, 153 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 154 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x88, 0x01, 0x0a, 155 0x13, 0x55, 0x73, 0x65, 0x72, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x66, 0x65, 0x72, 156 0x65, 0x6e, 0x63, 0x65, 0x12, 0x1e, 0x0a, 0x09, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 157 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x09, 0x6f, 0x70, 0x65, 0x72, 0x61, 158 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2c, 0x0a, 0x11, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x6c, 0x61, 0x62, 159 0x65, 0x6c, 0x69, 0x6e, 0x67, 0x5f, 0x6a, 0x6f, 0x62, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 160 0x00, 0x52, 0x0f, 0x64, 0x61, 0x74, 0x61, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x69, 0x6e, 0x67, 0x4a, 161 0x6f, 0x62, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x03, 0x20, 0x01, 162 0x28, 0x09, 0x52, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x42, 0x0b, 0x0a, 0x09, 0x72, 0x65, 163 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x42, 0x8c, 0x01, 0x0a, 0x23, 0x63, 0x6f, 0x6d, 0x2e, 164 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 165 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 166 0x18, 0x55, 0x73, 0x65, 0x72, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x66, 0x65, 0x72, 167 0x65, 0x6e, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x49, 0x67, 0x6f, 0x6f, 168 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 169 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 170 0x69, 0x73, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 171 0x6f, 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x3b, 0x61, 0x69, 0x70, 0x6c, 172 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 173} 174 175var ( 176 file_google_cloud_aiplatform_v1beta1_user_action_reference_proto_rawDescOnce sync.Once 177 file_google_cloud_aiplatform_v1beta1_user_action_reference_proto_rawDescData = file_google_cloud_aiplatform_v1beta1_user_action_reference_proto_rawDesc 178) 179 180func file_google_cloud_aiplatform_v1beta1_user_action_reference_proto_rawDescGZIP() []byte { 181 file_google_cloud_aiplatform_v1beta1_user_action_reference_proto_rawDescOnce.Do(func() { 182 file_google_cloud_aiplatform_v1beta1_user_action_reference_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_aiplatform_v1beta1_user_action_reference_proto_rawDescData) 183 }) 184 return file_google_cloud_aiplatform_v1beta1_user_action_reference_proto_rawDescData 185} 186 187var file_google_cloud_aiplatform_v1beta1_user_action_reference_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 188var file_google_cloud_aiplatform_v1beta1_user_action_reference_proto_goTypes = []interface{}{ 189 (*UserActionReference)(nil), // 0: google.cloud.aiplatform.v1beta1.UserActionReference 190} 191var file_google_cloud_aiplatform_v1beta1_user_action_reference_proto_depIdxs = []int32{ 192 0, // [0:0] is the sub-list for method output_type 193 0, // [0:0] is the sub-list for method input_type 194 0, // [0:0] is the sub-list for extension type_name 195 0, // [0:0] is the sub-list for extension extendee 196 0, // [0:0] is the sub-list for field type_name 197} 198 199func init() { file_google_cloud_aiplatform_v1beta1_user_action_reference_proto_init() } 200func file_google_cloud_aiplatform_v1beta1_user_action_reference_proto_init() { 201 if File_google_cloud_aiplatform_v1beta1_user_action_reference_proto != nil { 202 return 203 } 204 if !protoimpl.UnsafeEnabled { 205 file_google_cloud_aiplatform_v1beta1_user_action_reference_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 206 switch v := v.(*UserActionReference); i { 207 case 0: 208 return &v.state 209 case 1: 210 return &v.sizeCache 211 case 2: 212 return &v.unknownFields 213 default: 214 return nil 215 } 216 } 217 } 218 file_google_cloud_aiplatform_v1beta1_user_action_reference_proto_msgTypes[0].OneofWrappers = []interface{}{ 219 (*UserActionReference_Operation)(nil), 220 (*UserActionReference_DataLabelingJob)(nil), 221 } 222 type x struct{} 223 out := protoimpl.TypeBuilder{ 224 File: protoimpl.DescBuilder{ 225 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 226 RawDescriptor: file_google_cloud_aiplatform_v1beta1_user_action_reference_proto_rawDesc, 227 NumEnums: 0, 228 NumMessages: 1, 229 NumExtensions: 0, 230 NumServices: 0, 231 }, 232 GoTypes: file_google_cloud_aiplatform_v1beta1_user_action_reference_proto_goTypes, 233 DependencyIndexes: file_google_cloud_aiplatform_v1beta1_user_action_reference_proto_depIdxs, 234 MessageInfos: file_google_cloud_aiplatform_v1beta1_user_action_reference_proto_msgTypes, 235 }.Build() 236 File_google_cloud_aiplatform_v1beta1_user_action_reference_proto = out.File 237 file_google_cloud_aiplatform_v1beta1_user_action_reference_proto_rawDesc = nil 238 file_google_cloud_aiplatform_v1beta1_user_action_reference_proto_goTypes = nil 239 file_google_cloud_aiplatform_v1beta1_user_action_reference_proto_depIdxs = nil 240} 241