google.golang.org/grpc@v1.72.2/credentials/alts/internal/proto/grpc_gcp/altscontext.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/altscontext.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/altscontext.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  type AltsContext struct {
    42  	state protoimpl.MessageState `protogen:"open.v1"`
    43  	// The application protocol negotiated for this connection.
    44  	ApplicationProtocol string `protobuf:"bytes,1,opt,name=application_protocol,json=applicationProtocol,proto3" json:"application_protocol,omitempty"`
    45  	// The record protocol negotiated for this connection.
    46  	RecordProtocol string `protobuf:"bytes,2,opt,name=record_protocol,json=recordProtocol,proto3" json:"record_protocol,omitempty"`
    47  	// The security level of the created secure channel.
    48  	SecurityLevel SecurityLevel `protobuf:"varint,3,opt,name=security_level,json=securityLevel,proto3,enum=grpc.gcp.SecurityLevel" json:"security_level,omitempty"`
    49  	// The peer service account.
    50  	PeerServiceAccount string `protobuf:"bytes,4,opt,name=peer_service_account,json=peerServiceAccount,proto3" json:"peer_service_account,omitempty"`
    51  	// The local service account.
    52  	LocalServiceAccount string `protobuf:"bytes,5,opt,name=local_service_account,json=localServiceAccount,proto3" json:"local_service_account,omitempty"`
    53  	// The RPC protocol versions supported by the peer.
    54  	PeerRpcVersions *RpcProtocolVersions `protobuf:"bytes,6,opt,name=peer_rpc_versions,json=peerRpcVersions,proto3" json:"peer_rpc_versions,omitempty"`
    55  	// Additional attributes of the peer.
    56  	PeerAttributes map[string]string `protobuf:"bytes,7,rep,name=peer_attributes,json=peerAttributes,proto3" json:"peer_attributes,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
    57  	unknownFields  protoimpl.UnknownFields
    58  	sizeCache      protoimpl.SizeCache
    59  }
    60  
    61  func (x *AltsContext) Reset() {
    62  	*x = AltsContext{}
    63  	mi := &file_grpc_gcp_altscontext_proto_msgTypes[0]
    64  	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    65  	ms.StoreMessageInfo(mi)
    66  }
    67  
    68  func (x *AltsContext) String() string {
    69  	return protoimpl.X.MessageStringOf(x)
    70  }
    71  
    72  func (*AltsContext) ProtoMessage() {}
    73  
    74  func (x *AltsContext) ProtoReflect() protoreflect.Message {
    75  	mi := &file_grpc_gcp_altscontext_proto_msgTypes[0]
    76  	if x != nil {
    77  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    78  		if ms.LoadMessageInfo() == nil {
    79  			ms.StoreMessageInfo(mi)
    80  		}
    81  		return ms
    82  	}
    83  	return mi.MessageOf(x)
    84  }
    85  
    86  // Deprecated: Use AltsContext.ProtoReflect.Descriptor instead.
    87  func (*AltsContext) Descriptor() ([]byte, []int) {
    88  	return file_grpc_gcp_altscontext_proto_rawDescGZIP(), []int{0}
    89  }
    90  
    91  func (x *AltsContext) GetApplicationProtocol() string {
    92  	if x != nil {
    93  		return x.ApplicationProtocol
    94  	}
    95  	return ""
    96  }
    97  
    98  func (x *AltsContext) GetRecordProtocol() string {
    99  	if x != nil {
   100  		return x.RecordProtocol
   101  	}
   102  	return ""
   103  }
   104  
   105  func (x *AltsContext) GetSecurityLevel() SecurityLevel {
   106  	if x != nil {
   107  		return x.SecurityLevel
   108  	}
   109  	return SecurityLevel_SECURITY_NONE
   110  }
   111  
   112  func (x *AltsContext) GetPeerServiceAccount() string {
   113  	if x != nil {
   114  		return x.PeerServiceAccount
   115  	}
   116  	return ""
   117  }
   118  
   119  func (x *AltsContext) GetLocalServiceAccount() string {
   120  	if x != nil {
   121  		return x.LocalServiceAccount
   122  	}
   123  	return ""
   124  }
   125  
   126  func (x *AltsContext) GetPeerRpcVersions() *RpcProtocolVersions {
   127  	if x != nil {
   128  		return x.PeerRpcVersions
   129  	}
   130  	return nil
   131  }
   132  
   133  func (x *AltsContext) GetPeerAttributes() map[string]string {
   134  	if x != nil {
   135  		return x.PeerAttributes
   136  	}
   137  	return nil
   138  }
   139  
   140  var File_grpc_gcp_altscontext_proto protoreflect.FileDescriptor
   141  
   142  var file_grpc_gcp_altscontext_proto_rawDesc = string([]byte{
   143  	0x0a, 0x1a, 0x67, 0x72, 0x70, 0x63, 0x2f, 0x67, 0x63, 0x70, 0x2f, 0x61, 0x6c, 0x74, 0x73, 0x63,
   144  	0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x67, 0x72,
   145  	0x70, 0x63, 0x2e, 0x67, 0x63, 0x70, 0x1a, 0x28, 0x67, 0x72, 0x70, 0x63, 0x2f, 0x67, 0x63, 0x70,
   146  	0x2f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x73, 0x65, 0x63, 0x75, 0x72,
   147  	0x69, 0x74, 0x79, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   148  	0x22, 0xf1, 0x03, 0x0a, 0x0b, 0x41, 0x6c, 0x74, 0x73, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74,
   149  	0x12, 0x31, 0x0a, 0x14, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f,
   150  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x13,
   151  	0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f,
   152  	0x63, 0x6f, 0x6c, 0x12, 0x27, 0x0a, 0x0f, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x5f, 0x70, 0x72,
   153  	0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x72, 0x65,
   154  	0x63, 0x6f, 0x72, 0x64, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x3e, 0x0a, 0x0e,
   155  	0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x03,
   156  	0x20, 0x01, 0x28, 0x0e, 0x32, 0x17, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x67, 0x63, 0x70, 0x2e,
   157  	0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52, 0x0d, 0x73,
   158  	0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x30, 0x0a, 0x14,
   159  	0x70, 0x65, 0x65, 0x72, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x61, 0x63, 0x63,
   160  	0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x12, 0x70, 0x65, 0x65, 0x72,
   161  	0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x32,
   162  	0x0a, 0x15, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f,
   163  	0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x13, 0x6c,
   164  	0x6f, 0x63, 0x61, 0x6c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75,
   165  	0x6e, 0x74, 0x12, 0x49, 0x0a, 0x11, 0x70, 0x65, 0x65, 0x72, 0x5f, 0x72, 0x70, 0x63, 0x5f, 0x76,
   166  	0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e,
   167  	0x67, 0x72, 0x70, 0x63, 0x2e, 0x67, 0x63, 0x70, 0x2e, 0x52, 0x70, 0x63, 0x50, 0x72, 0x6f, 0x74,
   168  	0x6f, 0x63, 0x6f, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x0f, 0x70, 0x65,
   169  	0x65, 0x72, 0x52, 0x70, 0x63, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x52, 0x0a,
   170  	0x0f, 0x70, 0x65, 0x65, 0x72, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73,
   171  	0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x67, 0x63,
   172  	0x70, 0x2e, 0x41, 0x6c, 0x74, 0x73, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x2e, 0x50, 0x65,
   173  	0x65, 0x72, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72,
   174  	0x79, 0x52, 0x0e, 0x70, 0x65, 0x65, 0x72, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65,
   175  	0x73, 0x1a, 0x41, 0x0a, 0x13, 0x50, 0x65, 0x65, 0x72, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75,
   176  	0x74, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18,
   177  	0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61,
   178  	0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65,
   179  	0x3a, 0x02, 0x38, 0x01, 0x42, 0x6c, 0x0a, 0x15, 0x69, 0x6f, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e,
   180  	0x61, 0x6c, 0x74, 0x73, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x42, 0x10, 0x41,
   181  	0x6c, 0x74, 0x73, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50,
   182  	0x01, 0x5a, 0x3f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67,
   183  	0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x2f, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e,
   184  	0x74, 0x69, 0x61, 0x6c, 0x73, 0x2f, 0x61, 0x6c, 0x74, 0x73, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72,
   185  	0x6e, 0x61, 0x6c, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x5f, 0x67,
   186  	0x63, 0x70, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   187  })
   188  
   189  var (
   190  	file_grpc_gcp_altscontext_proto_rawDescOnce sync.Once
   191  	file_grpc_gcp_altscontext_proto_rawDescData []byte
   192  )
   193  
   194  func file_grpc_gcp_altscontext_proto_rawDescGZIP() []byte {
   195  	file_grpc_gcp_altscontext_proto_rawDescOnce.Do(func() {
   196  		file_grpc_gcp_altscontext_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_grpc_gcp_altscontext_proto_rawDesc), len(file_grpc_gcp_altscontext_proto_rawDesc)))
   197  	})
   198  	return file_grpc_gcp_altscontext_proto_rawDescData
   199  }
   200  
   201  var file_grpc_gcp_altscontext_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
   202  var file_grpc_gcp_altscontext_proto_goTypes = []any{
   203  	(*AltsContext)(nil),         // 0: grpc.gcp.AltsContext
   204  	nil,                         // 1: grpc.gcp.AltsContext.PeerAttributesEntry
   205  	(SecurityLevel)(0),          // 2: grpc.gcp.SecurityLevel
   206  	(*RpcProtocolVersions)(nil), // 3: grpc.gcp.RpcProtocolVersions
   207  }
   208  var file_grpc_gcp_altscontext_proto_depIdxs = []int32{
   209  	2, // 0: grpc.gcp.AltsContext.security_level:type_name -> grpc.gcp.SecurityLevel
   210  	3, // 1: grpc.gcp.AltsContext.peer_rpc_versions:type_name -> grpc.gcp.RpcProtocolVersions
   211  	1, // 2: grpc.gcp.AltsContext.peer_attributes:type_name -> grpc.gcp.AltsContext.PeerAttributesEntry
   212  	3, // [3:3] is the sub-list for method output_type
   213  	3, // [3:3] is the sub-list for method input_type
   214  	3, // [3:3] is the sub-list for extension type_name
   215  	3, // [3:3] is the sub-list for extension extendee
   216  	0, // [0:3] is the sub-list for field type_name
   217  }
   218  
   219  func init() { file_grpc_gcp_altscontext_proto_init() }
   220  func file_grpc_gcp_altscontext_proto_init() {
   221  	if File_grpc_gcp_altscontext_proto != nil {
   222  		return
   223  	}
   224  	file_grpc_gcp_transport_security_common_proto_init()
   225  	type x struct{}
   226  	out := protoimpl.TypeBuilder{
   227  		File: protoimpl.DescBuilder{
   228  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   229  			RawDescriptor: unsafe.Slice(unsafe.StringData(file_grpc_gcp_altscontext_proto_rawDesc), len(file_grpc_gcp_altscontext_proto_rawDesc)),
   230  			NumEnums:      0,
   231  			NumMessages:   2,
   232  			NumExtensions: 0,
   233  			NumServices:   0,
   234  		},
   235  		GoTypes:           file_grpc_gcp_altscontext_proto_goTypes,
   236  		DependencyIndexes: file_grpc_gcp_altscontext_proto_depIdxs,
   237  		MessageInfos:      file_grpc_gcp_altscontext_proto_msgTypes,
   238  	}.Build()
   239  	File_grpc_gcp_altscontext_proto = out.File
   240  	file_grpc_gcp_altscontext_proto_goTypes = nil
   241  	file_grpc_gcp_altscontext_proto_depIdxs = nil
   242  }