...

Source file src/google.golang.org/genproto/googleapis/cloud/networksecurity/v1/common.pb.go

Documentation: google.golang.org/genproto/googleapis/cloud/networksecurity/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.12.2
    19  // source: google/cloud/networksecurity/v1/common.proto
    20  
    21  package networksecurity
    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_networksecurity_v1_common_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_networksecurity_v1_common_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_networksecurity_v1_common_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_networksecurity_v1_common_proto protoreflect.FileDescriptor
   147  
   148  var file_google_cloud_networksecurity_v1_common_proto_rawDesc = []byte{
   149  	0x0a, 0x2c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x6e,
   150  	0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x2f, 0x76,
   151  	0x31, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1f,
   152  	0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6e, 0x65, 0x74,
   153  	0x77, 0x6f, 0x72, 0x6b, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x2e, 0x76, 0x31, 0x1a,
   154  	0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c,
   155  	0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   156  	0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
   157  	0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74,
   158  	0x6f, 0x22, 0xd5, 0x02, 0x0a, 0x11, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d,
   159  	0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x40, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74,
   160  	0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67,
   161  	0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54,
   162  	0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0a, 0x63,
   163  	0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x3a, 0x0a, 0x08, 0x65, 0x6e, 0x64,
   164  	0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f,
   165  	0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69,
   166  	0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x07, 0x65, 0x6e,
   167  	0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18,
   168  	0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x06, 0x74, 0x61, 0x72, 0x67,
   169  	0x65, 0x74, 0x12, 0x17, 0x0a, 0x04, 0x76, 0x65, 0x72, 0x62, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09,
   170  	0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x04, 0x76, 0x65, 0x72, 0x62, 0x12, 0x2a, 0x0a, 0x0e, 0x73,
   171  	0x74, 0x61, 0x74, 0x75, 0x73, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x05, 0x20,
   172  	0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0d, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73,
   173  	0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x3a, 0x0a, 0x16, 0x72, 0x65, 0x71, 0x75, 0x65,
   174  	0x73, 0x74, 0x65, 0x64, 0x5f, 0x63, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f,
   175  	0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x15, 0x72, 0x65,
   176  	0x71, 0x75, 0x65, 0x73, 0x74, 0x65, 0x64, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x6c, 0x61, 0x74,
   177  	0x69, 0x6f, 0x6e, 0x12, 0x24, 0x0a, 0x0b, 0x61, 0x70, 0x69, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69,
   178  	0x6f, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0a, 0x61,
   179  	0x70, 0x69, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x42, 0xed, 0x01, 0x0a, 0x23, 0x63, 0x6f,
   180  	0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6e,
   181  	0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x2e, 0x76,
   182  	0x31, 0x42, 0x0b, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01,
   183  	0x5a, 0x4e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e,
   184  	0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f,
   185  	0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x6e, 0x65,
   186  	0x74, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x2f, 0x76, 0x31,
   187  	0x3b, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79,
   188  	0xaa, 0x02, 0x1f, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e,
   189  	0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x2e,
   190  	0x56, 0x31, 0xca, 0x02, 0x1f, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75,
   191  	0x64, 0x5c, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74,
   192  	0x79, 0x5c, 0x56, 0x31, 0xea, 0x02, 0x22, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43,
   193  	0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x53, 0x65, 0x63,
   194  	0x75, 0x72, 0x69, 0x74, 0x79, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   195  	0x33,
   196  }
   197  
   198  var (
   199  	file_google_cloud_networksecurity_v1_common_proto_rawDescOnce sync.Once
   200  	file_google_cloud_networksecurity_v1_common_proto_rawDescData = file_google_cloud_networksecurity_v1_common_proto_rawDesc
   201  )
   202  
   203  func file_google_cloud_networksecurity_v1_common_proto_rawDescGZIP() []byte {
   204  	file_google_cloud_networksecurity_v1_common_proto_rawDescOnce.Do(func() {
   205  		file_google_cloud_networksecurity_v1_common_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_networksecurity_v1_common_proto_rawDescData)
   206  	})
   207  	return file_google_cloud_networksecurity_v1_common_proto_rawDescData
   208  }
   209  
   210  var file_google_cloud_networksecurity_v1_common_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   211  var file_google_cloud_networksecurity_v1_common_proto_goTypes = []interface{}{
   212  	(*OperationMetadata)(nil),     // 0: google.cloud.networksecurity.v1.OperationMetadata
   213  	(*timestamppb.Timestamp)(nil), // 1: google.protobuf.Timestamp
   214  }
   215  var file_google_cloud_networksecurity_v1_common_proto_depIdxs = []int32{
   216  	1, // 0: google.cloud.networksecurity.v1.OperationMetadata.create_time:type_name -> google.protobuf.Timestamp
   217  	1, // 1: google.cloud.networksecurity.v1.OperationMetadata.end_time:type_name -> google.protobuf.Timestamp
   218  	2, // [2:2] is the sub-list for method output_type
   219  	2, // [2:2] is the sub-list for method input_type
   220  	2, // [2:2] is the sub-list for extension type_name
   221  	2, // [2:2] is the sub-list for extension extendee
   222  	0, // [0:2] is the sub-list for field type_name
   223  }
   224  
   225  func init() { file_google_cloud_networksecurity_v1_common_proto_init() }
   226  func file_google_cloud_networksecurity_v1_common_proto_init() {
   227  	if File_google_cloud_networksecurity_v1_common_proto != nil {
   228  		return
   229  	}
   230  	if !protoimpl.UnsafeEnabled {
   231  		file_google_cloud_networksecurity_v1_common_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   232  			switch v := v.(*OperationMetadata); i {
   233  			case 0:
   234  				return &v.state
   235  			case 1:
   236  				return &v.sizeCache
   237  			case 2:
   238  				return &v.unknownFields
   239  			default:
   240  				return nil
   241  			}
   242  		}
   243  	}
   244  	type x struct{}
   245  	out := protoimpl.TypeBuilder{
   246  		File: protoimpl.DescBuilder{
   247  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   248  			RawDescriptor: file_google_cloud_networksecurity_v1_common_proto_rawDesc,
   249  			NumEnums:      0,
   250  			NumMessages:   1,
   251  			NumExtensions: 0,
   252  			NumServices:   0,
   253  		},
   254  		GoTypes:           file_google_cloud_networksecurity_v1_common_proto_goTypes,
   255  		DependencyIndexes: file_google_cloud_networksecurity_v1_common_proto_depIdxs,
   256  		MessageInfos:      file_google_cloud_networksecurity_v1_common_proto_msgTypes,
   257  	}.Build()
   258  	File_google_cloud_networksecurity_v1_common_proto = out.File
   259  	file_google_cloud_networksecurity_v1_common_proto_rawDesc = nil
   260  	file_google_cloud_networksecurity_v1_common_proto_goTypes = nil
   261  	file_google_cloud_networksecurity_v1_common_proto_depIdxs = nil
   262  }
   263  

View as plain text