...

Source file src/google.golang.org/genproto/googleapis/cloud/batch/v1main/batch.pb.go

Documentation: google.golang.org/genproto/googleapis/cloud/batch/v1main

     1  // Copyright 2022 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/batch/v1main/batch.proto
    20  
    21  package batch
    22  
    23  import (
    24  	reflect "reflect"
    25  	sync "sync"
    26  
    27  	_ "google.golang.org/genproto/googleapis/api/annotations"
    28  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    29  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    30  	timestamppb "google.golang.org/protobuf/types/known/timestamppb"
    31  )
    32  
    33  const (
    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  // Represents the metadata of the long-running operation.
    41  type OperationMetadata struct {
    42  	state         protoimpl.MessageState
    43  	sizeCache     protoimpl.SizeCache
    44  	unknownFields protoimpl.UnknownFields
    45  
    46  	// Output only. The time the operation was created.
    47  	CreateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
    48  	// Output only. The time the operation finished running.
    49  	EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
    50  	// Output only. Server-defined resource path for the target of the operation.
    51  	Target string `protobuf:"bytes,3,opt,name=target,proto3" json:"target,omitempty"`
    52  	// Output only. Name of the verb executed by the operation.
    53  	Verb string `protobuf:"bytes,4,opt,name=verb,proto3" json:"verb,omitempty"`
    54  	// Output only. Human-readable status of the operation, if any.
    55  	StatusMessage string `protobuf:"bytes,5,opt,name=status_message,json=statusMessage,proto3" json:"status_message,omitempty"`
    56  	// Output only. Identifies whether the user has requested cancellation
    57  	// of the operation. Operations that have successfully been cancelled
    58  	// have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
    59  	// corresponding to `Code.CANCELLED`.
    60  	RequestedCancellation bool `protobuf:"varint,6,opt,name=requested_cancellation,json=requestedCancellation,proto3" json:"requested_cancellation,omitempty"`
    61  	// Output only. API version used to start the operation.
    62  	ApiVersion string `protobuf:"bytes,7,opt,name=api_version,json=apiVersion,proto3" json:"api_version,omitempty"`
    63  }
    64  
    65  func (x *OperationMetadata) Reset() {
    66  	*x = OperationMetadata{}
    67  	if protoimpl.UnsafeEnabled {
    68  		mi := &file_google_cloud_batch_v1main_batch_proto_msgTypes[0]
    69  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    70  		ms.StoreMessageInfo(mi)
    71  	}
    72  }
    73  
    74  func (x *OperationMetadata) String() string {
    75  	return protoimpl.X.MessageStringOf(x)
    76  }
    77  
    78  func (*OperationMetadata) ProtoMessage() {}
    79  
    80  func (x *OperationMetadata) ProtoReflect() protoreflect.Message {
    81  	mi := &file_google_cloud_batch_v1main_batch_proto_msgTypes[0]
    82  	if protoimpl.UnsafeEnabled && x != nil {
    83  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    84  		if ms.LoadMessageInfo() == nil {
    85  			ms.StoreMessageInfo(mi)
    86  		}
    87  		return ms
    88  	}
    89  	return mi.MessageOf(x)
    90  }
    91  
    92  // Deprecated: Use OperationMetadata.ProtoReflect.Descriptor instead.
    93  func (*OperationMetadata) Descriptor() ([]byte, []int) {
    94  	return file_google_cloud_batch_v1main_batch_proto_rawDescGZIP(), []int{0}
    95  }
    96  
    97  func (x *OperationMetadata) GetCreateTime() *timestamppb.Timestamp {
    98  	if x != nil {
    99  		return x.CreateTime
   100  	}
   101  	return nil
   102  }
   103  
   104  func (x *OperationMetadata) GetEndTime() *timestamppb.Timestamp {
   105  	if x != nil {
   106  		return x.EndTime
   107  	}
   108  	return nil
   109  }
   110  
   111  func (x *OperationMetadata) GetTarget() string {
   112  	if x != nil {
   113  		return x.Target
   114  	}
   115  	return ""
   116  }
   117  
   118  func (x *OperationMetadata) GetVerb() string {
   119  	if x != nil {
   120  		return x.Verb
   121  	}
   122  	return ""
   123  }
   124  
   125  func (x *OperationMetadata) GetStatusMessage() string {
   126  	if x != nil {
   127  		return x.StatusMessage
   128  	}
   129  	return ""
   130  }
   131  
   132  func (x *OperationMetadata) GetRequestedCancellation() bool {
   133  	if x != nil {
   134  		return x.RequestedCancellation
   135  	}
   136  	return false
   137  }
   138  
   139  func (x *OperationMetadata) GetApiVersion() string {
   140  	if x != nil {
   141  		return x.ApiVersion
   142  	}
   143  	return ""
   144  }
   145  
   146  var File_google_cloud_batch_v1main_batch_proto protoreflect.FileDescriptor
   147  
   148  var file_google_cloud_batch_v1main_batch_proto_rawDesc = []byte{
   149  	0x0a, 0x25, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x62,
   150  	0x61, 0x74, 0x63, 0x68, 0x2f, 0x76, 0x31, 0x6d, 0x61, 0x69, 0x6e, 0x2f, 0x62, 0x61, 0x74, 0x63,
   151  	0x68, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
   152  	0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x62, 0x61, 0x74, 0x63, 0x68, 0x2e, 0x76, 0x31, 0x6d, 0x61,
   153  	0x69, 0x6e, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61,
   154  	0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   155  	0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c, 0x69,
   156  	0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
   157  	0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61,
   158  	0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67,
   159  	0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e,
   160  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72,
   161  	0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70,
   162  	0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xd5, 0x02, 0x0a, 0x11, 0x4f, 0x70, 0x65, 0x72, 0x61,
   163  	0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x40, 0x0a, 0x0b,
   164  	0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
   165  	0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   166  	0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0,
   167  	0x41, 0x03, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x3a,
   168  	0x0a, 0x08, 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,
   169  	0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
   170  	0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41,
   171  	0x03, 0x52, 0x07, 0x65, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x06, 0x74, 0x61,
   172  	0x72, 0x67, 0x65, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52,
   173  	0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x17, 0x0a, 0x04, 0x76, 0x65, 0x72, 0x62, 0x18,
   174  	0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x04, 0x76, 0x65, 0x72, 0x62,
   175  	0x12, 0x2a, 0x0a, 0x0e, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61,
   176  	0x67, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0d, 0x73,
   177  	0x74, 0x61, 0x74, 0x75, 0x73, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x3a, 0x0a, 0x16,
   178  	0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x63, 0x61, 0x6e, 0x63, 0x65, 0x6c,
   179  	0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x42, 0x03, 0xe0, 0x41,
   180  	0x03, 0x52, 0x15, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, 0x64, 0x43, 0x61, 0x6e, 0x63,
   181  	0x65, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x0a, 0x0b, 0x61, 0x70, 0x69, 0x5f,
   182  	0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0,
   183  	0x41, 0x03, 0x52, 0x0a, 0x61, 0x70, 0x69, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x42, 0x73,
   184  	0x0a, 0x1d, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f,
   185  	0x75, 0x64, 0x2e, 0x62, 0x61, 0x74, 0x63, 0x68, 0x2e, 0x76, 0x31, 0x6d, 0x61, 0x69, 0x6e, 0x42,
   186  	0x0a, 0x42, 0x61, 0x74, 0x63, 0x68, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3e, 0x67,
   187  	0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67,
   188  	0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
   189  	0x61, 0x70, 0x69, 0x73, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68,
   190  	0x2f, 0x76, 0x31, 0x6d, 0x61, 0x69, 0x6e, 0x3b, 0x62, 0x61, 0x74, 0x63, 0x68, 0xa2, 0x02, 0x03,
   191  	0x47, 0x43, 0x42, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   192  }
   193  
   194  var (
   195  	file_google_cloud_batch_v1main_batch_proto_rawDescOnce sync.Once
   196  	file_google_cloud_batch_v1main_batch_proto_rawDescData = file_google_cloud_batch_v1main_batch_proto_rawDesc
   197  )
   198  
   199  func file_google_cloud_batch_v1main_batch_proto_rawDescGZIP() []byte {
   200  	file_google_cloud_batch_v1main_batch_proto_rawDescOnce.Do(func() {
   201  		file_google_cloud_batch_v1main_batch_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_batch_v1main_batch_proto_rawDescData)
   202  	})
   203  	return file_google_cloud_batch_v1main_batch_proto_rawDescData
   204  }
   205  
   206  var file_google_cloud_batch_v1main_batch_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   207  var file_google_cloud_batch_v1main_batch_proto_goTypes = []interface{}{
   208  	(*OperationMetadata)(nil),     // 0: google.cloud.batch.v1main.OperationMetadata
   209  	(*timestamppb.Timestamp)(nil), // 1: google.protobuf.Timestamp
   210  }
   211  var file_google_cloud_batch_v1main_batch_proto_depIdxs = []int32{
   212  	1, // 0: google.cloud.batch.v1main.OperationMetadata.create_time:type_name -> google.protobuf.Timestamp
   213  	1, // 1: google.cloud.batch.v1main.OperationMetadata.end_time:type_name -> google.protobuf.Timestamp
   214  	2, // [2:2] is the sub-list for method output_type
   215  	2, // [2:2] is the sub-list for method input_type
   216  	2, // [2:2] is the sub-list for extension type_name
   217  	2, // [2:2] is the sub-list for extension extendee
   218  	0, // [0:2] is the sub-list for field type_name
   219  }
   220  
   221  func init() { file_google_cloud_batch_v1main_batch_proto_init() }
   222  func file_google_cloud_batch_v1main_batch_proto_init() {
   223  	if File_google_cloud_batch_v1main_batch_proto != nil {
   224  		return
   225  	}
   226  	if !protoimpl.UnsafeEnabled {
   227  		file_google_cloud_batch_v1main_batch_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   228  			switch v := v.(*OperationMetadata); i {
   229  			case 0:
   230  				return &v.state
   231  			case 1:
   232  				return &v.sizeCache
   233  			case 2:
   234  				return &v.unknownFields
   235  			default:
   236  				return nil
   237  			}
   238  		}
   239  	}
   240  	type x struct{}
   241  	out := protoimpl.TypeBuilder{
   242  		File: protoimpl.DescBuilder{
   243  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   244  			RawDescriptor: file_google_cloud_batch_v1main_batch_proto_rawDesc,
   245  			NumEnums:      0,
   246  			NumMessages:   1,
   247  			NumExtensions: 0,
   248  			NumServices:   0,
   249  		},
   250  		GoTypes:           file_google_cloud_batch_v1main_batch_proto_goTypes,
   251  		DependencyIndexes: file_google_cloud_batch_v1main_batch_proto_depIdxs,
   252  		MessageInfos:      file_google_cloud_batch_v1main_batch_proto_msgTypes,
   253  	}.Build()
   254  	File_google_cloud_batch_v1main_batch_proto = out.File
   255  	file_google_cloud_batch_v1main_batch_proto_rawDesc = nil
   256  	file_google_cloud_batch_v1main_batch_proto_goTypes = nil
   257  	file_google_cloud_batch_v1main_batch_proto_depIdxs = nil
   258  }
   259  

View as plain text