google.golang.org/grpc@v1.72.2/credentials/alts/internal/proto/grpc_gcp/transport_security_common.pb.go (about)

     1  // Copyright 2018 The gRPC Authors
     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  // The canonical version of this proto can be found at
    16  // https://github.com/grpc/grpc-proto/blob/master/grpc/gcp/transport_security_common.proto
    17  
    18  // Code generated by protoc-gen-go. DO NOT EDIT.
    19  // versions:
    20  // 	protoc-gen-go v1.36.5
    21  // 	protoc        v5.27.1
    22  // source: grpc/gcp/transport_security_common.proto
    23  
    24  package grpc_gcp
    25  
    26  import (
    27  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    28  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    29  	reflect "reflect"
    30  	sync "sync"
    31  	unsafe "unsafe"
    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  // The security level of the created channel. The list is sorted in increasing
    42  // level of security. This order must always be maintained.
    43  type SecurityLevel int32
    44  
    45  const (
    46  	SecurityLevel_SECURITY_NONE         SecurityLevel = 0
    47  	SecurityLevel_INTEGRITY_ONLY        SecurityLevel = 1
    48  	SecurityLevel_INTEGRITY_AND_PRIVACY SecurityLevel = 2
    49  )
    50  
    51  // Enum value maps for SecurityLevel.
    52  var (
    53  	SecurityLevel_name = map[int32]string{
    54  		0: "SECURITY_NONE",
    55  		1: "INTEGRITY_ONLY",
    56  		2: "INTEGRITY_AND_PRIVACY",
    57  	}
    58  	SecurityLevel_value = map[string]int32{
    59  		"SECURITY_NONE":         0,
    60  		"INTEGRITY_ONLY":        1,
    61  		"INTEGRITY_AND_PRIVACY": 2,
    62  	}
    63  )
    64  
    65  func (x SecurityLevel) Enum() *SecurityLevel {
    66  	p := new(SecurityLevel)
    67  	*p = x
    68  	return p
    69  }
    70  
    71  func (x SecurityLevel) String() string {
    72  	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
    73  }
    74  
    75  func (SecurityLevel) Descriptor() protoreflect.EnumDescriptor {
    76  	return file_grpc_gcp_transport_security_common_proto_enumTypes[0].Descriptor()
    77  }
    78  
    79  func (SecurityLevel) Type() protoreflect.EnumType {
    80  	return &file_grpc_gcp_transport_security_common_proto_enumTypes[0]
    81  }
    82  
    83  func (x SecurityLevel) Number() protoreflect.EnumNumber {
    84  	return protoreflect.EnumNumber(x)
    85  }
    86  
    87  // Deprecated: Use SecurityLevel.Descriptor instead.
    88  func (SecurityLevel) EnumDescriptor() ([]byte, []int) {
    89  	return file_grpc_gcp_transport_security_common_proto_rawDescGZIP(), []int{0}
    90  }
    91  
    92  // Max and min supported RPC protocol versions.
    93  type RpcProtocolVersions struct {
    94  	state protoimpl.MessageState `protogen:"open.v1"`
    95  	// Maximum supported RPC version.
    96  	MaxRpcVersion *RpcProtocolVersions_Version `protobuf:"bytes,1,opt,name=max_rpc_version,json=maxRpcVersion,proto3" json:"max_rpc_version,omitempty"`
    97  	// Minimum supported RPC version.
    98  	MinRpcVersion *RpcProtocolVersions_Version `protobuf:"bytes,2,opt,name=min_rpc_version,json=minRpcVersion,proto3" json:"min_rpc_version,omitempty"`
    99  	unknownFields protoimpl.UnknownFields
   100  	sizeCache     protoimpl.SizeCache
   101  }
   102  
   103  func (x *RpcProtocolVersions) Reset() {
   104  	*x = RpcProtocolVersions{}
   105  	mi := &file_grpc_gcp_transport_security_common_proto_msgTypes[0]
   106  	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   107  	ms.StoreMessageInfo(mi)
   108  }
   109  
   110  func (x *RpcProtocolVersions) String() string {
   111  	return protoimpl.X.MessageStringOf(x)
   112  }
   113  
   114  func (*RpcProtocolVersions) ProtoMessage() {}
   115  
   116  func (x *RpcProtocolVersions) ProtoReflect() protoreflect.Message {
   117  	mi := &file_grpc_gcp_transport_security_common_proto_msgTypes[0]
   118  	if x != nil {
   119  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   120  		if ms.LoadMessageInfo() == nil {
   121  			ms.StoreMessageInfo(mi)
   122  		}
   123  		return ms
   124  	}
   125  	return mi.MessageOf(x)
   126  }
   127  
   128  // Deprecated: Use RpcProtocolVersions.ProtoReflect.Descriptor instead.
   129  func (*RpcProtocolVersions) Descriptor() ([]byte, []int) {
   130  	return file_grpc_gcp_transport_security_common_proto_rawDescGZIP(), []int{0}
   131  }
   132  
   133  func (x *RpcProtocolVersions) GetMaxRpcVersion() *RpcProtocolVersions_Version {
   134  	if x != nil {
   135  		return x.MaxRpcVersion
   136  	}
   137  	return nil
   138  }
   139  
   140  func (x *RpcProtocolVersions) GetMinRpcVersion() *RpcProtocolVersions_Version {
   141  	if x != nil {
   142  		return x.MinRpcVersion
   143  	}
   144  	return nil
   145  }
   146  
   147  // RPC version contains a major version and a minor version.
   148  type RpcProtocolVersions_Version struct {
   149  	state         protoimpl.MessageState `protogen:"open.v1"`
   150  	Major         uint32                 `protobuf:"varint,1,opt,name=major,proto3" json:"major,omitempty"`
   151  	Minor         uint32                 `protobuf:"varint,2,opt,name=minor,proto3" json:"minor,omitempty"`
   152  	unknownFields protoimpl.UnknownFields
   153  	sizeCache     protoimpl.SizeCache
   154  }
   155  
   156  func (x *RpcProtocolVersions_Version) Reset() {
   157  	*x = RpcProtocolVersions_Version{}
   158  	mi := &file_grpc_gcp_transport_security_common_proto_msgTypes[1]
   159  	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   160  	ms.StoreMessageInfo(mi)
   161  }
   162  
   163  func (x *RpcProtocolVersions_Version) String() string {
   164  	return protoimpl.X.MessageStringOf(x)
   165  }
   166  
   167  func (*RpcProtocolVersions_Version) ProtoMessage() {}
   168  
   169  func (x *RpcProtocolVersions_Version) ProtoReflect() protoreflect.Message {
   170  	mi := &file_grpc_gcp_transport_security_common_proto_msgTypes[1]
   171  	if x != nil {
   172  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   173  		if ms.LoadMessageInfo() == nil {
   174  			ms.StoreMessageInfo(mi)
   175  		}
   176  		return ms
   177  	}
   178  	return mi.MessageOf(x)
   179  }
   180  
   181  // Deprecated: Use RpcProtocolVersions_Version.ProtoReflect.Descriptor instead.
   182  func (*RpcProtocolVersions_Version) Descriptor() ([]byte, []int) {
   183  	return file_grpc_gcp_transport_security_common_proto_rawDescGZIP(), []int{0, 0}
   184  }
   185  
   186  func (x *RpcProtocolVersions_Version) GetMajor() uint32 {
   187  	if x != nil {
   188  		return x.Major
   189  	}
   190  	return 0
   191  }
   192  
   193  func (x *RpcProtocolVersions_Version) GetMinor() uint32 {
   194  	if x != nil {
   195  		return x.Minor
   196  	}
   197  	return 0
   198  }
   199  
   200  var File_grpc_gcp_transport_security_common_proto protoreflect.FileDescriptor
   201  
   202  var file_grpc_gcp_transport_security_common_proto_rawDesc = string([]byte{
   203  	0x0a, 0x28, 0x67, 0x72, 0x70, 0x63, 0x2f, 0x67, 0x63, 0x70, 0x2f, 0x74, 0x72, 0x61, 0x6e, 0x73,
   204  	0x70, 0x6f, 0x72, 0x74, 0x5f, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x5f, 0x63, 0x6f,
   205  	0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x67, 0x72, 0x70, 0x63,
   206  	0x2e, 0x67, 0x63, 0x70, 0x22, 0xea, 0x01, 0x0a, 0x13, 0x52, 0x70, 0x63, 0x50, 0x72, 0x6f, 0x74,
   207  	0x6f, 0x63, 0x6f, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x4d, 0x0a, 0x0f,
   208  	0x6d, 0x61, 0x78, 0x5f, 0x72, 0x70, 0x63, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18,
   209  	0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x67, 0x63, 0x70,
   210  	0x2e, 0x52, 0x70, 0x63, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x56, 0x65, 0x72, 0x73,
   211  	0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x0d, 0x6d, 0x61,
   212  	0x78, 0x52, 0x70, 0x63, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x4d, 0x0a, 0x0f, 0x6d,
   213  	0x69, 0x6e, 0x5f, 0x72, 0x70, 0x63, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02,
   214  	0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x67, 0x63, 0x70, 0x2e,
   215  	0x52, 0x70, 0x63, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69,
   216  	0x6f, 0x6e, 0x73, 0x2e, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x0d, 0x6d, 0x69, 0x6e,
   217  	0x52, 0x70, 0x63, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x1a, 0x35, 0x0a, 0x07, 0x56, 0x65,
   218  	0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x6d, 0x61, 0x6a, 0x6f, 0x72, 0x18, 0x01,
   219  	0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x6d, 0x61, 0x6a, 0x6f, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x6d,
   220  	0x69, 0x6e, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x6d, 0x69, 0x6e, 0x6f,
   221  	0x72, 0x2a, 0x51, 0x0a, 0x0d, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x4c, 0x65, 0x76,
   222  	0x65, 0x6c, 0x12, 0x11, 0x0a, 0x0d, 0x53, 0x45, 0x43, 0x55, 0x52, 0x49, 0x54, 0x59, 0x5f, 0x4e,
   223  	0x4f, 0x4e, 0x45, 0x10, 0x00, 0x12, 0x12, 0x0a, 0x0e, 0x49, 0x4e, 0x54, 0x45, 0x47, 0x52, 0x49,
   224  	0x54, 0x59, 0x5f, 0x4f, 0x4e, 0x4c, 0x59, 0x10, 0x01, 0x12, 0x19, 0x0a, 0x15, 0x49, 0x4e, 0x54,
   225  	0x45, 0x47, 0x52, 0x49, 0x54, 0x59, 0x5f, 0x41, 0x4e, 0x44, 0x5f, 0x50, 0x52, 0x49, 0x56, 0x41,
   226  	0x43, 0x59, 0x10, 0x02, 0x42, 0x78, 0x0a, 0x15, 0x69, 0x6f, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e,
   227  	0x61, 0x6c, 0x74, 0x73, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x42, 0x1c, 0x54,
   228  	0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79,
   229  	0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3f, 0x67,
   230  	0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67,
   231  	0x2f, 0x67, 0x72, 0x70, 0x63, 0x2f, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c,
   232  	0x73, 0x2f, 0x61, 0x6c, 0x74, 0x73, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f,
   233  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x5f, 0x67, 0x63, 0x70, 0x62, 0x06,
   234  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   235  })
   236  
   237  var (
   238  	file_grpc_gcp_transport_security_common_proto_rawDescOnce sync.Once
   239  	file_grpc_gcp_transport_security_common_proto_rawDescData []byte
   240  )
   241  
   242  func file_grpc_gcp_transport_security_common_proto_rawDescGZIP() []byte {
   243  	file_grpc_gcp_transport_security_common_proto_rawDescOnce.Do(func() {
   244  		file_grpc_gcp_transport_security_common_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_grpc_gcp_transport_security_common_proto_rawDesc), len(file_grpc_gcp_transport_security_common_proto_rawDesc)))
   245  	})
   246  	return file_grpc_gcp_transport_security_common_proto_rawDescData
   247  }
   248  
   249  var file_grpc_gcp_transport_security_common_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
   250  var file_grpc_gcp_transport_security_common_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
   251  var file_grpc_gcp_transport_security_common_proto_goTypes = []any{
   252  	(SecurityLevel)(0),                  // 0: grpc.gcp.SecurityLevel
   253  	(*RpcProtocolVersions)(nil),         // 1: grpc.gcp.RpcProtocolVersions
   254  	(*RpcProtocolVersions_Version)(nil), // 2: grpc.gcp.RpcProtocolVersions.Version
   255  }
   256  var file_grpc_gcp_transport_security_common_proto_depIdxs = []int32{
   257  	2, // 0: grpc.gcp.RpcProtocolVersions.max_rpc_version:type_name -> grpc.gcp.RpcProtocolVersions.Version
   258  	2, // 1: grpc.gcp.RpcProtocolVersions.min_rpc_version:type_name -> grpc.gcp.RpcProtocolVersions.Version
   259  	2, // [2:2] is the sub-list for method output_type
   260  	2, // [2:2] is the sub-list for method input_type
   261  	2, // [2:2] is the sub-list for extension type_name
   262  	2, // [2:2] is the sub-list for extension extendee
   263  	0, // [0:2] is the sub-list for field type_name
   264  }
   265  
   266  func init() { file_grpc_gcp_transport_security_common_proto_init() }
   267  func file_grpc_gcp_transport_security_common_proto_init() {
   268  	if File_grpc_gcp_transport_security_common_proto != nil {
   269  		return
   270  	}
   271  	type x struct{}
   272  	out := protoimpl.TypeBuilder{
   273  		File: protoimpl.DescBuilder{
   274  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   275  			RawDescriptor: unsafe.Slice(unsafe.StringData(file_grpc_gcp_transport_security_common_proto_rawDesc), len(file_grpc_gcp_transport_security_common_proto_rawDesc)),
   276  			NumEnums:      1,
   277  			NumMessages:   2,
   278  			NumExtensions: 0,
   279  			NumServices:   0,
   280  		},
   281  		GoTypes:           file_grpc_gcp_transport_security_common_proto_goTypes,
   282  		DependencyIndexes: file_grpc_gcp_transport_security_common_proto_depIdxs,
   283  		EnumInfos:         file_grpc_gcp_transport_security_common_proto_enumTypes,
   284  		MessageInfos:      file_grpc_gcp_transport_security_common_proto_msgTypes,
   285  	}.Build()
   286  	File_grpc_gcp_transport_security_common_proto = out.File
   287  	file_grpc_gcp_transport_security_common_proto_goTypes = nil
   288  	file_grpc_gcp_transport_security_common_proto_depIdxs = nil
   289  }