...

Source file src/google.golang.org/genproto/googleapis/cloud/enterpriseknowledgegraph/v1/operation_metadata.pb.go

Documentation: google.golang.org/genproto/googleapis/cloud/enterpriseknowledgegraph/v1

     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.21.5
    19  // source: google/cloud/enterpriseknowledgegraph/v1/operation_metadata.proto
    20  
    21  package enterpriseknowledgegraph
    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  	timestamppb "google.golang.org/protobuf/types/known/timestamppb"
    30  )
    31  
    32  const (
    33  	// Verify that this generated code is sufficiently up-to-date.
    34  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    35  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    36  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    37  )
    38  
    39  // State of the longrunning operation.
    40  type CommonOperationMetadata_State int32
    41  
    42  const (
    43  	// Unspecified state.
    44  	CommonOperationMetadata_STATE_UNSPECIFIED CommonOperationMetadata_State = 0
    45  	// Operation is still running.
    46  	CommonOperationMetadata_RUNNING CommonOperationMetadata_State = 1
    47  	// Operation is being cancelled.
    48  	CommonOperationMetadata_CANCELLING CommonOperationMetadata_State = 2
    49  	// Operation succeeded.
    50  	CommonOperationMetadata_SUCCEEDED CommonOperationMetadata_State = 3
    51  	// Operation failed.
    52  	CommonOperationMetadata_FAILED CommonOperationMetadata_State = 4
    53  	// Operation is cancelled.
    54  	CommonOperationMetadata_CANCELLED CommonOperationMetadata_State = 5
    55  	// Operation is pending not running yet.
    56  	CommonOperationMetadata_PENDING CommonOperationMetadata_State = 6
    57  )
    58  
    59  // Enum value maps for CommonOperationMetadata_State.
    60  var (
    61  	CommonOperationMetadata_State_name = map[int32]string{
    62  		0: "STATE_UNSPECIFIED",
    63  		1: "RUNNING",
    64  		2: "CANCELLING",
    65  		3: "SUCCEEDED",
    66  		4: "FAILED",
    67  		5: "CANCELLED",
    68  		6: "PENDING",
    69  	}
    70  	CommonOperationMetadata_State_value = map[string]int32{
    71  		"STATE_UNSPECIFIED": 0,
    72  		"RUNNING":           1,
    73  		"CANCELLING":        2,
    74  		"SUCCEEDED":         3,
    75  		"FAILED":            4,
    76  		"CANCELLED":         5,
    77  		"PENDING":           6,
    78  	}
    79  )
    80  
    81  func (x CommonOperationMetadata_State) Enum() *CommonOperationMetadata_State {
    82  	p := new(CommonOperationMetadata_State)
    83  	*p = x
    84  	return p
    85  }
    86  
    87  func (x CommonOperationMetadata_State) String() string {
    88  	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
    89  }
    90  
    91  func (CommonOperationMetadata_State) Descriptor() protoreflect.EnumDescriptor {
    92  	return file_google_cloud_enterpriseknowledgegraph_v1_operation_metadata_proto_enumTypes[0].Descriptor()
    93  }
    94  
    95  func (CommonOperationMetadata_State) Type() protoreflect.EnumType {
    96  	return &file_google_cloud_enterpriseknowledgegraph_v1_operation_metadata_proto_enumTypes[0]
    97  }
    98  
    99  func (x CommonOperationMetadata_State) Number() protoreflect.EnumNumber {
   100  	return protoreflect.EnumNumber(x)
   101  }
   102  
   103  // Deprecated: Use CommonOperationMetadata_State.Descriptor instead.
   104  func (CommonOperationMetadata_State) EnumDescriptor() ([]byte, []int) {
   105  	return file_google_cloud_enterpriseknowledgegraph_v1_operation_metadata_proto_rawDescGZIP(), []int{0, 0}
   106  }
   107  
   108  // The common metadata for long running operations.
   109  type CommonOperationMetadata struct {
   110  	state         protoimpl.MessageState
   111  	sizeCache     protoimpl.SizeCache
   112  	unknownFields protoimpl.UnknownFields
   113  
   114  	// The state of the operation.
   115  	State CommonOperationMetadata_State `protobuf:"varint,1,opt,name=state,proto3,enum=google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata_State" json:"state,omitempty"`
   116  	// The creation time of the operation.
   117  	CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
   118  	// The last update time of the operation.
   119  	UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
   120  }
   121  
   122  func (x *CommonOperationMetadata) Reset() {
   123  	*x = CommonOperationMetadata{}
   124  	if protoimpl.UnsafeEnabled {
   125  		mi := &file_google_cloud_enterpriseknowledgegraph_v1_operation_metadata_proto_msgTypes[0]
   126  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   127  		ms.StoreMessageInfo(mi)
   128  	}
   129  }
   130  
   131  func (x *CommonOperationMetadata) String() string {
   132  	return protoimpl.X.MessageStringOf(x)
   133  }
   134  
   135  func (*CommonOperationMetadata) ProtoMessage() {}
   136  
   137  func (x *CommonOperationMetadata) ProtoReflect() protoreflect.Message {
   138  	mi := &file_google_cloud_enterpriseknowledgegraph_v1_operation_metadata_proto_msgTypes[0]
   139  	if protoimpl.UnsafeEnabled && x != nil {
   140  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   141  		if ms.LoadMessageInfo() == nil {
   142  			ms.StoreMessageInfo(mi)
   143  		}
   144  		return ms
   145  	}
   146  	return mi.MessageOf(x)
   147  }
   148  
   149  // Deprecated: Use CommonOperationMetadata.ProtoReflect.Descriptor instead.
   150  func (*CommonOperationMetadata) Descriptor() ([]byte, []int) {
   151  	return file_google_cloud_enterpriseknowledgegraph_v1_operation_metadata_proto_rawDescGZIP(), []int{0}
   152  }
   153  
   154  func (x *CommonOperationMetadata) GetState() CommonOperationMetadata_State {
   155  	if x != nil {
   156  		return x.State
   157  	}
   158  	return CommonOperationMetadata_STATE_UNSPECIFIED
   159  }
   160  
   161  func (x *CommonOperationMetadata) GetCreateTime() *timestamppb.Timestamp {
   162  	if x != nil {
   163  		return x.CreateTime
   164  	}
   165  	return nil
   166  }
   167  
   168  func (x *CommonOperationMetadata) GetUpdateTime() *timestamppb.Timestamp {
   169  	if x != nil {
   170  		return x.UpdateTime
   171  	}
   172  	return nil
   173  }
   174  
   175  var File_google_cloud_enterpriseknowledgegraph_v1_operation_metadata_proto protoreflect.FileDescriptor
   176  
   177  var file_google_cloud_enterpriseknowledgegraph_v1_operation_metadata_proto_rawDesc = []byte{
   178  	0x0a, 0x41, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x65,
   179  	0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, 0x69, 0x73, 0x65, 0x6b, 0x6e, 0x6f, 0x77, 0x6c, 0x65, 0x64,
   180  	0x67, 0x65, 0x67, 0x72, 0x61, 0x70, 0x68, 0x2f, 0x76, 0x31, 0x2f, 0x6f, 0x70, 0x65, 0x72, 0x61,
   181  	0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x70, 0x72,
   182  	0x6f, 0x74, 0x6f, 0x12, 0x28, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75,
   183  	0x64, 0x2e, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, 0x69, 0x73, 0x65, 0x6b, 0x6e, 0x6f, 0x77,
   184  	0x6c, 0x65, 0x64, 0x67, 0x65, 0x67, 0x72, 0x61, 0x70, 0x68, 0x2e, 0x76, 0x31, 0x1a, 0x1f, 0x67,
   185  	0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74,
   186  	0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xe6,
   187  	0x02, 0x0a, 0x17, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69,
   188  	0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x5d, 0x0a, 0x05, 0x73, 0x74,
   189  	0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x47, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
   190  	0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72,
   191  	0x69, 0x73, 0x65, 0x6b, 0x6e, 0x6f, 0x77, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x67, 0x72, 0x61, 0x70,
   192  	0x68, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x4f, 0x70, 0x65, 0x72, 0x61,
   193  	0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x53, 0x74, 0x61,
   194  	0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x3b, 0x0a, 0x0b, 0x63, 0x72, 0x65,
   195  	0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a,
   196  	0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
   197  	0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61,
   198  	0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x3b, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65,
   199  	0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f,
   200  	0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69,
   201  	0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54,
   202  	0x69, 0x6d, 0x65, 0x22, 0x72, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x15, 0x0a, 0x11,
   203  	0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45,
   204  	0x44, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x52, 0x55, 0x4e, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x01,
   205  	0x12, 0x0e, 0x0a, 0x0a, 0x43, 0x41, 0x4e, 0x43, 0x45, 0x4c, 0x4c, 0x49, 0x4e, 0x47, 0x10, 0x02,
   206  	0x12, 0x0d, 0x0a, 0x09, 0x53, 0x55, 0x43, 0x43, 0x45, 0x45, 0x44, 0x45, 0x44, 0x10, 0x03, 0x12,
   207  	0x0a, 0x0a, 0x06, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, 0x04, 0x12, 0x0d, 0x0a, 0x09, 0x43,
   208  	0x41, 0x4e, 0x43, 0x45, 0x4c, 0x4c, 0x45, 0x44, 0x10, 0x05, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x45,
   209  	0x4e, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x06, 0x42, 0xae, 0x02, 0x0a, 0x2c, 0x63, 0x6f, 0x6d, 0x2e,
   210  	0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x65, 0x6e, 0x74,
   211  	0x65, 0x72, 0x70, 0x72, 0x69, 0x73, 0x65, 0x6b, 0x6e, 0x6f, 0x77, 0x6c, 0x65, 0x64, 0x67, 0x65,
   212  	0x67, 0x72, 0x61, 0x70, 0x68, 0x2e, 0x76, 0x31, 0x42, 0x16, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74,
   213  	0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x50, 0x72, 0x6f, 0x74, 0x6f,
   214  	0x50, 0x01, 0x5a, 0x60, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e,
   215  	0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67,
   216  	0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f,
   217  	0x65, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, 0x69, 0x73, 0x65, 0x6b, 0x6e, 0x6f, 0x77, 0x6c, 0x65,
   218  	0x64, 0x67, 0x65, 0x67, 0x72, 0x61, 0x70, 0x68, 0x2f, 0x76, 0x31, 0x3b, 0x65, 0x6e, 0x74, 0x65,
   219  	0x72, 0x70, 0x72, 0x69, 0x73, 0x65, 0x6b, 0x6e, 0x6f, 0x77, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x67,
   220  	0x72, 0x61, 0x70, 0x68, 0xaa, 0x02, 0x28, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c,
   221  	0x6f, 0x75, 0x64, 0x2e, 0x45, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, 0x69, 0x73, 0x65, 0x4b, 0x6e,
   222  	0x6f, 0x77, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x47, 0x72, 0x61, 0x70, 0x68, 0x2e, 0x56, 0x31, 0xca,
   223  	0x02, 0x28, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x45,
   224  	0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, 0x69, 0x73, 0x65, 0x4b, 0x6e, 0x6f, 0x77, 0x6c, 0x65, 0x64,
   225  	0x67, 0x65, 0x47, 0x72, 0x61, 0x70, 0x68, 0x5c, 0x56, 0x31, 0xea, 0x02, 0x2b, 0x47, 0x6f, 0x6f,
   226  	0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x45, 0x6e, 0x74, 0x65,
   227  	0x72, 0x70, 0x72, 0x69, 0x73, 0x65, 0x4b, 0x6e, 0x6f, 0x77, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x47,
   228  	0x72, 0x61, 0x70, 0x68, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   229  }
   230  
   231  var (
   232  	file_google_cloud_enterpriseknowledgegraph_v1_operation_metadata_proto_rawDescOnce sync.Once
   233  	file_google_cloud_enterpriseknowledgegraph_v1_operation_metadata_proto_rawDescData = file_google_cloud_enterpriseknowledgegraph_v1_operation_metadata_proto_rawDesc
   234  )
   235  
   236  func file_google_cloud_enterpriseknowledgegraph_v1_operation_metadata_proto_rawDescGZIP() []byte {
   237  	file_google_cloud_enterpriseknowledgegraph_v1_operation_metadata_proto_rawDescOnce.Do(func() {
   238  		file_google_cloud_enterpriseknowledgegraph_v1_operation_metadata_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_enterpriseknowledgegraph_v1_operation_metadata_proto_rawDescData)
   239  	})
   240  	return file_google_cloud_enterpriseknowledgegraph_v1_operation_metadata_proto_rawDescData
   241  }
   242  
   243  var file_google_cloud_enterpriseknowledgegraph_v1_operation_metadata_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
   244  var file_google_cloud_enterpriseknowledgegraph_v1_operation_metadata_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   245  var file_google_cloud_enterpriseknowledgegraph_v1_operation_metadata_proto_goTypes = []interface{}{
   246  	(CommonOperationMetadata_State)(0), // 0: google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.State
   247  	(*CommonOperationMetadata)(nil),    // 1: google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata
   248  	(*timestamppb.Timestamp)(nil),      // 2: google.protobuf.Timestamp
   249  }
   250  var file_google_cloud_enterpriseknowledgegraph_v1_operation_metadata_proto_depIdxs = []int32{
   251  	0, // 0: google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.state:type_name -> google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.State
   252  	2, // 1: google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.create_time:type_name -> google.protobuf.Timestamp
   253  	2, // 2: google.cloud.enterpriseknowledgegraph.v1.CommonOperationMetadata.update_time:type_name -> google.protobuf.Timestamp
   254  	3, // [3:3] is the sub-list for method output_type
   255  	3, // [3:3] is the sub-list for method input_type
   256  	3, // [3:3] is the sub-list for extension type_name
   257  	3, // [3:3] is the sub-list for extension extendee
   258  	0, // [0:3] is the sub-list for field type_name
   259  }
   260  
   261  func init() { file_google_cloud_enterpriseknowledgegraph_v1_operation_metadata_proto_init() }
   262  func file_google_cloud_enterpriseknowledgegraph_v1_operation_metadata_proto_init() {
   263  	if File_google_cloud_enterpriseknowledgegraph_v1_operation_metadata_proto != nil {
   264  		return
   265  	}
   266  	if !protoimpl.UnsafeEnabled {
   267  		file_google_cloud_enterpriseknowledgegraph_v1_operation_metadata_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   268  			switch v := v.(*CommonOperationMetadata); i {
   269  			case 0:
   270  				return &v.state
   271  			case 1:
   272  				return &v.sizeCache
   273  			case 2:
   274  				return &v.unknownFields
   275  			default:
   276  				return nil
   277  			}
   278  		}
   279  	}
   280  	type x struct{}
   281  	out := protoimpl.TypeBuilder{
   282  		File: protoimpl.DescBuilder{
   283  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   284  			RawDescriptor: file_google_cloud_enterpriseknowledgegraph_v1_operation_metadata_proto_rawDesc,
   285  			NumEnums:      1,
   286  			NumMessages:   1,
   287  			NumExtensions: 0,
   288  			NumServices:   0,
   289  		},
   290  		GoTypes:           file_google_cloud_enterpriseknowledgegraph_v1_operation_metadata_proto_goTypes,
   291  		DependencyIndexes: file_google_cloud_enterpriseknowledgegraph_v1_operation_metadata_proto_depIdxs,
   292  		EnumInfos:         file_google_cloud_enterpriseknowledgegraph_v1_operation_metadata_proto_enumTypes,
   293  		MessageInfos:      file_google_cloud_enterpriseknowledgegraph_v1_operation_metadata_proto_msgTypes,
   294  	}.Build()
   295  	File_google_cloud_enterpriseknowledgegraph_v1_operation_metadata_proto = out.File
   296  	file_google_cloud_enterpriseknowledgegraph_v1_operation_metadata_proto_rawDesc = nil
   297  	file_google_cloud_enterpriseknowledgegraph_v1_operation_metadata_proto_goTypes = nil
   298  	file_google_cloud_enterpriseknowledgegraph_v1_operation_metadata_proto_depIdxs = nil
   299  }
   300  

View as plain text