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