| // Code generated by protoc-gen-go. DO NOT EDIT. |
| // source: grpc/gcp/handshaker.proto |
| |
| package grpc_gcp // import "google.golang.org/grpc/credentials/alts/internal/proto/grpc_gcp" |
| |
| import proto "github.com/golang/protobuf/proto" |
| import fmt "fmt" |
| import math "math" |
| |
| import ( |
| context "golang.org/x/net/context" |
| grpc "google.golang.org/grpc" |
| ) |
| |
| // Reference imports to suppress errors if they are not otherwise used. |
| var _ = proto.Marshal |
| var _ = fmt.Errorf |
| var _ = math.Inf |
| |
| // This is a compile-time assertion to ensure that this generated file |
| // is compatible with the proto package it is being compiled against. |
| // A compilation error at this line likely means your copy of the |
| // proto package needs to be updated. |
| const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package |
| |
| type HandshakeProtocol int32 |
| |
| const ( |
| // Default value. |
| HandshakeProtocol_HANDSHAKE_PROTOCOL_UNSPECIFIED HandshakeProtocol = 0 |
| // TLS handshake protocol. |
| HandshakeProtocol_TLS HandshakeProtocol = 1 |
| // Application Layer Transport Security handshake protocol. |
| HandshakeProtocol_ALTS HandshakeProtocol = 2 |
| ) |
| |
| var HandshakeProtocol_name = map[int32]string{ |
| 0: "HANDSHAKE_PROTOCOL_UNSPECIFIED", |
| 1: "TLS", |
| 2: "ALTS", |
| } |
| var HandshakeProtocol_value = map[string]int32{ |
| "HANDSHAKE_PROTOCOL_UNSPECIFIED": 0, |
| "TLS": 1, |
| "ALTS": 2, |
| } |
| |
| func (x HandshakeProtocol) String() string { |
| return proto.EnumName(HandshakeProtocol_name, int32(x)) |
| } |
| func (HandshakeProtocol) EnumDescriptor() ([]byte, []int) { |
| return fileDescriptor_handshaker_1dfe659b12ea825e, []int{0} |
| } |
| |
| type NetworkProtocol int32 |
| |
| const ( |
| NetworkProtocol_NETWORK_PROTOCOL_UNSPECIFIED NetworkProtocol = 0 |
| NetworkProtocol_TCP NetworkProtocol = 1 |
| NetworkProtocol_UDP NetworkProtocol = 2 |
| ) |
| |
| var NetworkProtocol_name = map[int32]string{ |
| 0: "NETWORK_PROTOCOL_UNSPECIFIED", |
| 1: "TCP", |
| 2: "UDP", |
| } |
| var NetworkProtocol_value = map[string]int32{ |
| "NETWORK_PROTOCOL_UNSPECIFIED": 0, |
| "TCP": 1, |
| "UDP": 2, |
| } |
| |
| func (x NetworkProtocol) String() string { |
| return proto.EnumName(NetworkProtocol_name, int32(x)) |
| } |
| func (NetworkProtocol) EnumDescriptor() ([]byte, []int) { |
| return fileDescriptor_handshaker_1dfe659b12ea825e, []int{1} |
| } |
| |
| type Endpoint struct { |
| // IP address. It should contain an IPv4 or IPv6 string literal, e.g. |
| // "192.168.0.1" or "2001:db8::1". |
| IpAddress string `protobuf:"bytes,1,opt,name=ip_address,json=ipAddress,proto3" json:"ip_address,omitempty"` |
| // Port number. |
| Port int32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"` |
| // Network protocol (e.g., TCP, UDP) associated with this endpoint. |
| Protocol NetworkProtocol `protobuf:"varint,3,opt,name=protocol,proto3,enum=grpc.gcp.NetworkProtocol" json:"protocol,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *Endpoint) Reset() { *m = Endpoint{} } |
| func (m *Endpoint) String() string { return proto.CompactTextString(m) } |
| func (*Endpoint) ProtoMessage() {} |
| func (*Endpoint) Descriptor() ([]byte, []int) { |
| return fileDescriptor_handshaker_1dfe659b12ea825e, []int{0} |
| } |
| func (m *Endpoint) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_Endpoint.Unmarshal(m, b) |
| } |
| func (m *Endpoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_Endpoint.Marshal(b, m, deterministic) |
| } |
| func (dst *Endpoint) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_Endpoint.Merge(dst, src) |
| } |
| func (m *Endpoint) XXX_Size() int { |
| return xxx_messageInfo_Endpoint.Size(m) |
| } |
| func (m *Endpoint) XXX_DiscardUnknown() { |
| xxx_messageInfo_Endpoint.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_Endpoint proto.InternalMessageInfo |
| |
| func (m *Endpoint) GetIpAddress() string { |
| if m != nil { |
| return m.IpAddress |
| } |
| return "" |
| } |
| |
| func (m *Endpoint) GetPort() int32 { |
| if m != nil { |
| return m.Port |
| } |
| return 0 |
| } |
| |
| func (m *Endpoint) GetProtocol() NetworkProtocol { |
| if m != nil { |
| return m.Protocol |
| } |
| return NetworkProtocol_NETWORK_PROTOCOL_UNSPECIFIED |
| } |
| |
| type Identity struct { |
| // Types that are valid to be assigned to IdentityOneof: |
| // *Identity_ServiceAccount |
| // *Identity_Hostname |
| IdentityOneof isIdentity_IdentityOneof `protobuf_oneof:"identity_oneof"` |
| // Additional attributes of the identity. |
| Attributes map[string]string `protobuf:"bytes,3,rep,name=attributes,proto3" json:"attributes,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *Identity) Reset() { *m = Identity{} } |
| func (m *Identity) String() string { return proto.CompactTextString(m) } |
| func (*Identity) ProtoMessage() {} |
| func (*Identity) Descriptor() ([]byte, []int) { |
| return fileDescriptor_handshaker_1dfe659b12ea825e, []int{1} |
| } |
| func (m *Identity) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_Identity.Unmarshal(m, b) |
| } |
| func (m *Identity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_Identity.Marshal(b, m, deterministic) |
| } |
| func (dst *Identity) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_Identity.Merge(dst, src) |
| } |
| func (m *Identity) XXX_Size() int { |
| return xxx_messageInfo_Identity.Size(m) |
| } |
| func (m *Identity) XXX_DiscardUnknown() { |
| xxx_messageInfo_Identity.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_Identity proto.InternalMessageInfo |
| |
| type isIdentity_IdentityOneof interface { |
| isIdentity_IdentityOneof() |
| } |
| |
| type Identity_ServiceAccount struct { |
| ServiceAccount string `protobuf:"bytes,1,opt,name=service_account,json=serviceAccount,proto3,oneof"` |
| } |
| |
| type Identity_Hostname struct { |
| Hostname string `protobuf:"bytes,2,opt,name=hostname,proto3,oneof"` |
| } |
| |
| func (*Identity_ServiceAccount) isIdentity_IdentityOneof() {} |
| |
| func (*Identity_Hostname) isIdentity_IdentityOneof() {} |
| |
| func (m *Identity) GetIdentityOneof() isIdentity_IdentityOneof { |
| if m != nil { |
| return m.IdentityOneof |
| } |
| return nil |
| } |
| |
| func (m *Identity) GetServiceAccount() string { |
| if x, ok := m.GetIdentityOneof().(*Identity_ServiceAccount); ok { |
| return x.ServiceAccount |
| } |
| return "" |
| } |
| |
| func (m *Identity) GetHostname() string { |
| if x, ok := m.GetIdentityOneof().(*Identity_Hostname); ok { |
| return x.Hostname |
| } |
| return "" |
| } |
| |
| func (m *Identity) GetAttributes() map[string]string { |
| if m != nil { |
| return m.Attributes |
| } |
| return nil |
| } |
| |
| // XXX_OneofFuncs is for the internal use of the proto package. |
| func (*Identity) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { |
| return _Identity_OneofMarshaler, _Identity_OneofUnmarshaler, _Identity_OneofSizer, []interface{}{ |
| (*Identity_ServiceAccount)(nil), |
| (*Identity_Hostname)(nil), |
| } |
| } |
| |
| func _Identity_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { |
| m := msg.(*Identity) |
| // identity_oneof |
| switch x := m.IdentityOneof.(type) { |
| case *Identity_ServiceAccount: |
| b.EncodeVarint(1<<3 | proto.WireBytes) |
| b.EncodeStringBytes(x.ServiceAccount) |
| case *Identity_Hostname: |
| b.EncodeVarint(2<<3 | proto.WireBytes) |
| b.EncodeStringBytes(x.Hostname) |
| case nil: |
| default: |
| return fmt.Errorf("Identity.IdentityOneof has unexpected type %T", x) |
| } |
| return nil |
| } |
| |
| func _Identity_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { |
| m := msg.(*Identity) |
| switch tag { |
| case 1: // identity_oneof.service_account |
| if wire != proto.WireBytes { |
| return true, proto.ErrInternalBadWireType |
| } |
| x, err := b.DecodeStringBytes() |
| m.IdentityOneof = &Identity_ServiceAccount{x} |
| return true, err |
| case 2: // identity_oneof.hostname |
| if wire != proto.WireBytes { |
| return true, proto.ErrInternalBadWireType |
| } |
| x, err := b.DecodeStringBytes() |
| m.IdentityOneof = &Identity_Hostname{x} |
| return true, err |
| default: |
| return false, nil |
| } |
| } |
| |
| func _Identity_OneofSizer(msg proto.Message) (n int) { |
| m := msg.(*Identity) |
| // identity_oneof |
| switch x := m.IdentityOneof.(type) { |
| case *Identity_ServiceAccount: |
| n += 1 // tag and wire |
| n += proto.SizeVarint(uint64(len(x.ServiceAccount))) |
| n += len(x.ServiceAccount) |
| case *Identity_Hostname: |
| n += 1 // tag and wire |
| n += proto.SizeVarint(uint64(len(x.Hostname))) |
| n += len(x.Hostname) |
| case nil: |
| default: |
| panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) |
| } |
| return n |
| } |
| |
| type StartClientHandshakeReq struct { |
| // Handshake security protocol requested by the client. |
| HandshakeSecurityProtocol HandshakeProtocol `protobuf:"varint,1,opt,name=handshake_security_protocol,json=handshakeSecurityProtocol,proto3,enum=grpc.gcp.HandshakeProtocol" json:"handshake_security_protocol,omitempty"` |
| // The application protocols supported by the client, e.g., "h2" (for http2), |
| // "grpc". |
| ApplicationProtocols []string `protobuf:"bytes,2,rep,name=application_protocols,json=applicationProtocols,proto3" json:"application_protocols,omitempty"` |
| // The record protocols supported by the client, e.g., |
| // "ALTSRP_GCM_AES128". |
| RecordProtocols []string `protobuf:"bytes,3,rep,name=record_protocols,json=recordProtocols,proto3" json:"record_protocols,omitempty"` |
| // (Optional) Describes which server identities are acceptable by the client. |
| // If target identities are provided and none of them matches the peer |
| // identity of the server, handshake will fail. |
| TargetIdentities []*Identity `protobuf:"bytes,4,rep,name=target_identities,json=targetIdentities,proto3" json:"target_identities,omitempty"` |
| // (Optional) Application may specify a local identity. Otherwise, the |
| // handshaker chooses a default local identity. |
| LocalIdentity *Identity `protobuf:"bytes,5,opt,name=local_identity,json=localIdentity,proto3" json:"local_identity,omitempty"` |
| // (Optional) Local endpoint information of the connection to the server, |
| // such as local IP address, port number, and network protocol. |
| LocalEndpoint *Endpoint `protobuf:"bytes,6,opt,name=local_endpoint,json=localEndpoint,proto3" json:"local_endpoint,omitempty"` |
| // (Optional) Endpoint information of the remote server, such as IP address, |
| // port number, and network protocol. |
| RemoteEndpoint *Endpoint `protobuf:"bytes,7,opt,name=remote_endpoint,json=remoteEndpoint,proto3" json:"remote_endpoint,omitempty"` |
| // (Optional) If target name is provided, a secure naming check is performed |
| // to verify that the peer authenticated identity is indeed authorized to run |
| // the target name. |
| TargetName string `protobuf:"bytes,8,opt,name=target_name,json=targetName,proto3" json:"target_name,omitempty"` |
| // (Optional) RPC protocol versions supported by the client. |
| RpcVersions *RpcProtocolVersions `protobuf:"bytes,9,opt,name=rpc_versions,json=rpcVersions,proto3" json:"rpc_versions,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *StartClientHandshakeReq) Reset() { *m = StartClientHandshakeReq{} } |
| func (m *StartClientHandshakeReq) String() string { return proto.CompactTextString(m) } |
| func (*StartClientHandshakeReq) ProtoMessage() {} |
| func (*StartClientHandshakeReq) Descriptor() ([]byte, []int) { |
| return fileDescriptor_handshaker_1dfe659b12ea825e, []int{2} |
| } |
| func (m *StartClientHandshakeReq) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_StartClientHandshakeReq.Unmarshal(m, b) |
| } |
| func (m *StartClientHandshakeReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_StartClientHandshakeReq.Marshal(b, m, deterministic) |
| } |
| func (dst *StartClientHandshakeReq) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_StartClientHandshakeReq.Merge(dst, src) |
| } |
| func (m *StartClientHandshakeReq) XXX_Size() int { |
| return xxx_messageInfo_StartClientHandshakeReq.Size(m) |
| } |
| func (m *StartClientHandshakeReq) XXX_DiscardUnknown() { |
| xxx_messageInfo_StartClientHandshakeReq.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_StartClientHandshakeReq proto.InternalMessageInfo |
| |
| func (m *StartClientHandshakeReq) GetHandshakeSecurityProtocol() HandshakeProtocol { |
| if m != nil { |
| return m.HandshakeSecurityProtocol |
| } |
| return HandshakeProtocol_HANDSHAKE_PROTOCOL_UNSPECIFIED |
| } |
| |
| func (m *StartClientHandshakeReq) GetApplicationProtocols() []string { |
| if m != nil { |
| return m.ApplicationProtocols |
| } |
| return nil |
| } |
| |
| func (m *StartClientHandshakeReq) GetRecordProtocols() []string { |
| if m != nil { |
| return m.RecordProtocols |
| } |
| return nil |
| } |
| |
| func (m *StartClientHandshakeReq) GetTargetIdentities() []*Identity { |
| if m != nil { |
| return m.TargetIdentities |
| } |
| return nil |
| } |
| |
| func (m *StartClientHandshakeReq) GetLocalIdentity() *Identity { |
| if m != nil { |
| return m.LocalIdentity |
| } |
| return nil |
| } |
| |
| func (m *StartClientHandshakeReq) GetLocalEndpoint() *Endpoint { |
| if m != nil { |
| return m.LocalEndpoint |
| } |
| return nil |
| } |
| |
| func (m *StartClientHandshakeReq) GetRemoteEndpoint() *Endpoint { |
| if m != nil { |
| return m.RemoteEndpoint |
| } |
| return nil |
| } |
| |
| func (m *StartClientHandshakeReq) GetTargetName() string { |
| if m != nil { |
| return m.TargetName |
| } |
| return "" |
| } |
| |
| func (m *StartClientHandshakeReq) GetRpcVersions() *RpcProtocolVersions { |
| if m != nil { |
| return m.RpcVersions |
| } |
| return nil |
| } |
| |
| type ServerHandshakeParameters struct { |
| // The record protocols supported by the server, e.g., |
| // "ALTSRP_GCM_AES128". |
| RecordProtocols []string `protobuf:"bytes,1,rep,name=record_protocols,json=recordProtocols,proto3" json:"record_protocols,omitempty"` |
| // (Optional) A list of local identities supported by the server, if |
| // specified. Otherwise, the handshaker chooses a default local identity. |
| LocalIdentities []*Identity `protobuf:"bytes,2,rep,name=local_identities,json=localIdentities,proto3" json:"local_identities,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *ServerHandshakeParameters) Reset() { *m = ServerHandshakeParameters{} } |
| func (m *ServerHandshakeParameters) String() string { return proto.CompactTextString(m) } |
| func (*ServerHandshakeParameters) ProtoMessage() {} |
| func (*ServerHandshakeParameters) Descriptor() ([]byte, []int) { |
| return fileDescriptor_handshaker_1dfe659b12ea825e, []int{3} |
| } |
| func (m *ServerHandshakeParameters) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_ServerHandshakeParameters.Unmarshal(m, b) |
| } |
| func (m *ServerHandshakeParameters) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_ServerHandshakeParameters.Marshal(b, m, deterministic) |
| } |
| func (dst *ServerHandshakeParameters) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_ServerHandshakeParameters.Merge(dst, src) |
| } |
| func (m *ServerHandshakeParameters) XXX_Size() int { |
| return xxx_messageInfo_ServerHandshakeParameters.Size(m) |
| } |
| func (m *ServerHandshakeParameters) XXX_DiscardUnknown() { |
| xxx_messageInfo_ServerHandshakeParameters.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_ServerHandshakeParameters proto.InternalMessageInfo |
| |
| func (m *ServerHandshakeParameters) GetRecordProtocols() []string { |
| if m != nil { |
| return m.RecordProtocols |
| } |
| return nil |
| } |
| |
| func (m *ServerHandshakeParameters) GetLocalIdentities() []*Identity { |
| if m != nil { |
| return m.LocalIdentities |
| } |
| return nil |
| } |
| |
| type StartServerHandshakeReq struct { |
| // The application protocols supported by the server, e.g., "h2" (for http2), |
| // "grpc". |
| ApplicationProtocols []string `protobuf:"bytes,1,rep,name=application_protocols,json=applicationProtocols,proto3" json:"application_protocols,omitempty"` |
| // Handshake parameters (record protocols and local identities supported by |
| // the server) mapped by the handshake protocol. Each handshake security |
| // protocol (e.g., TLS or ALTS) has its own set of record protocols and local |
| // identities. Since protobuf does not support enum as key to the map, the key |
| // to handshake_parameters is the integer value of HandshakeProtocol enum. |
| HandshakeParameters map[int32]*ServerHandshakeParameters `protobuf:"bytes,2,rep,name=handshake_parameters,json=handshakeParameters,proto3" json:"handshake_parameters,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` |
| // Bytes in out_frames returned from the peer's HandshakerResp. It is possible |
| // that the peer's out_frames are split into multiple HandshakReq messages. |
| InBytes []byte `protobuf:"bytes,3,opt,name=in_bytes,json=inBytes,proto3" json:"in_bytes,omitempty"` |
| // (Optional) Local endpoint information of the connection to the client, |
| // such as local IP address, port number, and network protocol. |
| LocalEndpoint *Endpoint `protobuf:"bytes,4,opt,name=local_endpoint,json=localEndpoint,proto3" json:"local_endpoint,omitempty"` |
| // (Optional) Endpoint information of the remote client, such as IP address, |
| // port number, and network protocol. |
| RemoteEndpoint *Endpoint `protobuf:"bytes,5,opt,name=remote_endpoint,json=remoteEndpoint,proto3" json:"remote_endpoint,omitempty"` |
| // (Optional) RPC protocol versions supported by the server. |
| RpcVersions *RpcProtocolVersions `protobuf:"bytes,6,opt,name=rpc_versions,json=rpcVersions,proto3" json:"rpc_versions,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *StartServerHandshakeReq) Reset() { *m = StartServerHandshakeReq{} } |
| func (m *StartServerHandshakeReq) String() string { return proto.CompactTextString(m) } |
| func (*StartServerHandshakeReq) ProtoMessage() {} |
| func (*StartServerHandshakeReq) Descriptor() ([]byte, []int) { |
| return fileDescriptor_handshaker_1dfe659b12ea825e, []int{4} |
| } |
| func (m *StartServerHandshakeReq) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_StartServerHandshakeReq.Unmarshal(m, b) |
| } |
| func (m *StartServerHandshakeReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_StartServerHandshakeReq.Marshal(b, m, deterministic) |
| } |
| func (dst *StartServerHandshakeReq) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_StartServerHandshakeReq.Merge(dst, src) |
| } |
| func (m *StartServerHandshakeReq) XXX_Size() int { |
| return xxx_messageInfo_StartServerHandshakeReq.Size(m) |
| } |
| func (m *StartServerHandshakeReq) XXX_DiscardUnknown() { |
| xxx_messageInfo_StartServerHandshakeReq.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_StartServerHandshakeReq proto.InternalMessageInfo |
| |
| func (m *StartServerHandshakeReq) GetApplicationProtocols() []string { |
| if m != nil { |
| return m.ApplicationProtocols |
| } |
| return nil |
| } |
| |
| func (m *StartServerHandshakeReq) GetHandshakeParameters() map[int32]*ServerHandshakeParameters { |
| if m != nil { |
| return m.HandshakeParameters |
| } |
| return nil |
| } |
| |
| func (m *StartServerHandshakeReq) GetInBytes() []byte { |
| if m != nil { |
| return m.InBytes |
| } |
| return nil |
| } |
| |
| func (m *StartServerHandshakeReq) GetLocalEndpoint() *Endpoint { |
| if m != nil { |
| return m.LocalEndpoint |
| } |
| return nil |
| } |
| |
| func (m *StartServerHandshakeReq) GetRemoteEndpoint() *Endpoint { |
| if m != nil { |
| return m.RemoteEndpoint |
| } |
| return nil |
| } |
| |
| func (m *StartServerHandshakeReq) GetRpcVersions() *RpcProtocolVersions { |
| if m != nil { |
| return m.RpcVersions |
| } |
| return nil |
| } |
| |
| type NextHandshakeMessageReq struct { |
| // Bytes in out_frames returned from the peer's HandshakerResp. It is possible |
| // that the peer's out_frames are split into multiple NextHandshakerMessageReq |
| // messages. |
| InBytes []byte `protobuf:"bytes,1,opt,name=in_bytes,json=inBytes,proto3" json:"in_bytes,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *NextHandshakeMessageReq) Reset() { *m = NextHandshakeMessageReq{} } |
| func (m *NextHandshakeMessageReq) String() string { return proto.CompactTextString(m) } |
| func (*NextHandshakeMessageReq) ProtoMessage() {} |
| func (*NextHandshakeMessageReq) Descriptor() ([]byte, []int) { |
| return fileDescriptor_handshaker_1dfe659b12ea825e, []int{5} |
| } |
| func (m *NextHandshakeMessageReq) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_NextHandshakeMessageReq.Unmarshal(m, b) |
| } |
| func (m *NextHandshakeMessageReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_NextHandshakeMessageReq.Marshal(b, m, deterministic) |
| } |
| func (dst *NextHandshakeMessageReq) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_NextHandshakeMessageReq.Merge(dst, src) |
| } |
| func (m *NextHandshakeMessageReq) XXX_Size() int { |
| return xxx_messageInfo_NextHandshakeMessageReq.Size(m) |
| } |
| func (m *NextHandshakeMessageReq) XXX_DiscardUnknown() { |
| xxx_messageInfo_NextHandshakeMessageReq.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_NextHandshakeMessageReq proto.InternalMessageInfo |
| |
| func (m *NextHandshakeMessageReq) GetInBytes() []byte { |
| if m != nil { |
| return m.InBytes |
| } |
| return nil |
| } |
| |
| type HandshakerReq struct { |
| // Types that are valid to be assigned to ReqOneof: |
| // *HandshakerReq_ClientStart |
| // *HandshakerReq_ServerStart |
| // *HandshakerReq_Next |
| ReqOneof isHandshakerReq_ReqOneof `protobuf_oneof:"req_oneof"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *HandshakerReq) Reset() { *m = HandshakerReq{} } |
| func (m *HandshakerReq) String() string { return proto.CompactTextString(m) } |
| func (*HandshakerReq) ProtoMessage() {} |
| func (*HandshakerReq) Descriptor() ([]byte, []int) { |
| return fileDescriptor_handshaker_1dfe659b12ea825e, []int{6} |
| } |
| func (m *HandshakerReq) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_HandshakerReq.Unmarshal(m, b) |
| } |
| func (m *HandshakerReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_HandshakerReq.Marshal(b, m, deterministic) |
| } |
| func (dst *HandshakerReq) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_HandshakerReq.Merge(dst, src) |
| } |
| func (m *HandshakerReq) XXX_Size() int { |
| return xxx_messageInfo_HandshakerReq.Size(m) |
| } |
| func (m *HandshakerReq) XXX_DiscardUnknown() { |
| xxx_messageInfo_HandshakerReq.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_HandshakerReq proto.InternalMessageInfo |
| |
| type isHandshakerReq_ReqOneof interface { |
| isHandshakerReq_ReqOneof() |
| } |
| |
| type HandshakerReq_ClientStart struct { |
| ClientStart *StartClientHandshakeReq `protobuf:"bytes,1,opt,name=client_start,json=clientStart,proto3,oneof"` |
| } |
| |
| type HandshakerReq_ServerStart struct { |
| ServerStart *StartServerHandshakeReq `protobuf:"bytes,2,opt,name=server_start,json=serverStart,proto3,oneof"` |
| } |
| |
| type HandshakerReq_Next struct { |
| Next *NextHandshakeMessageReq `protobuf:"bytes,3,opt,name=next,proto3,oneof"` |
| } |
| |
| func (*HandshakerReq_ClientStart) isHandshakerReq_ReqOneof() {} |
| |
| func (*HandshakerReq_ServerStart) isHandshakerReq_ReqOneof() {} |
| |
| func (*HandshakerReq_Next) isHandshakerReq_ReqOneof() {} |
| |
| func (m *HandshakerReq) GetReqOneof() isHandshakerReq_ReqOneof { |
| if m != nil { |
| return m.ReqOneof |
| } |
| return nil |
| } |
| |
| func (m *HandshakerReq) GetClientStart() *StartClientHandshakeReq { |
| if x, ok := m.GetReqOneof().(*HandshakerReq_ClientStart); ok { |
| return x.ClientStart |
| } |
| return nil |
| } |
| |
| func (m *HandshakerReq) GetServerStart() *StartServerHandshakeReq { |
| if x, ok := m.GetReqOneof().(*HandshakerReq_ServerStart); ok { |
| return x.ServerStart |
| } |
| return nil |
| } |
| |
| func (m *HandshakerReq) GetNext() *NextHandshakeMessageReq { |
| if x, ok := m.GetReqOneof().(*HandshakerReq_Next); ok { |
| return x.Next |
| } |
| return nil |
| } |
| |
| // XXX_OneofFuncs is for the internal use of the proto package. |
| func (*HandshakerReq) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { |
| return _HandshakerReq_OneofMarshaler, _HandshakerReq_OneofUnmarshaler, _HandshakerReq_OneofSizer, []interface{}{ |
| (*HandshakerReq_ClientStart)(nil), |
| (*HandshakerReq_ServerStart)(nil), |
| (*HandshakerReq_Next)(nil), |
| } |
| } |
| |
| func _HandshakerReq_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { |
| m := msg.(*HandshakerReq) |
| // req_oneof |
| switch x := m.ReqOneof.(type) { |
| case *HandshakerReq_ClientStart: |
| b.EncodeVarint(1<<3 | proto.WireBytes) |
| if err := b.EncodeMessage(x.ClientStart); err != nil { |
| return err |
| } |
| case *HandshakerReq_ServerStart: |
| b.EncodeVarint(2<<3 | proto.WireBytes) |
| if err := b.EncodeMessage(x.ServerStart); err != nil { |
| return err |
| } |
| case *HandshakerReq_Next: |
| b.EncodeVarint(3<<3 | proto.WireBytes) |
| if err := b.EncodeMessage(x.Next); err != nil { |
| return err |
| } |
| case nil: |
| default: |
| return fmt.Errorf("HandshakerReq.ReqOneof has unexpected type %T", x) |
| } |
| return nil |
| } |
| |
| func _HandshakerReq_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { |
| m := msg.(*HandshakerReq) |
| switch tag { |
| case 1: // req_oneof.client_start |
| if wire != proto.WireBytes { |
| return true, proto.ErrInternalBadWireType |
| } |
| msg := new(StartClientHandshakeReq) |
| err := b.DecodeMessage(msg) |
| m.ReqOneof = &HandshakerReq_ClientStart{msg} |
| return true, err |
| case 2: // req_oneof.server_start |
| if wire != proto.WireBytes { |
| return true, proto.ErrInternalBadWireType |
| } |
| msg := new(StartServerHandshakeReq) |
| err := b.DecodeMessage(msg) |
| m.ReqOneof = &HandshakerReq_ServerStart{msg} |
| return true, err |
| case 3: // req_oneof.next |
| if wire != proto.WireBytes { |
| return true, proto.ErrInternalBadWireType |
| } |
| msg := new(NextHandshakeMessageReq) |
| err := b.DecodeMessage(msg) |
| m.ReqOneof = &HandshakerReq_Next{msg} |
| return true, err |
| default: |
| return false, nil |
| } |
| } |
| |
| func _HandshakerReq_OneofSizer(msg proto.Message) (n int) { |
| m := msg.(*HandshakerReq) |
| // req_oneof |
| switch x := m.ReqOneof.(type) { |
| case *HandshakerReq_ClientStart: |
| s := proto.Size(x.ClientStart) |
| n += 1 // tag and wire |
| n += proto.SizeVarint(uint64(s)) |
| n += s |
| case *HandshakerReq_ServerStart: |
| s := proto.Size(x.ServerStart) |
| n += 1 // tag and wire |
| n += proto.SizeVarint(uint64(s)) |
| n += s |
| case *HandshakerReq_Next: |
| s := proto.Size(x.Next) |
| n += 1 // tag and wire |
| n += proto.SizeVarint(uint64(s)) |
| n += s |
| case nil: |
| default: |
| panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) |
| } |
| return n |
| } |
| |
| type HandshakerResult struct { |
| // The application protocol negotiated for this connection. |
| ApplicationProtocol string `protobuf:"bytes,1,opt,name=application_protocol,json=applicationProtocol,proto3" json:"application_protocol,omitempty"` |
| // The record protocol negotiated for this connection. |
| RecordProtocol string `protobuf:"bytes,2,opt,name=record_protocol,json=recordProtocol,proto3" json:"record_protocol,omitempty"` |
| // Cryptographic key data. The key data may be more than the key length |
| // required for the record protocol, thus the client of the handshaker |
| // service needs to truncate the key data into the right key length. |
| KeyData []byte `protobuf:"bytes,3,opt,name=key_data,json=keyData,proto3" json:"key_data,omitempty"` |
| // The authenticated identity of the peer. |
| PeerIdentity *Identity `protobuf:"bytes,4,opt,name=peer_identity,json=peerIdentity,proto3" json:"peer_identity,omitempty"` |
| // The local identity used in the handshake. |
| LocalIdentity *Identity `protobuf:"bytes,5,opt,name=local_identity,json=localIdentity,proto3" json:"local_identity,omitempty"` |
| // Indicate whether the handshaker service client should keep the channel |
| // between the handshaker service open, e.g., in order to handle |
| // post-handshake messages in the future. |
| KeepChannelOpen bool `protobuf:"varint,6,opt,name=keep_channel_open,json=keepChannelOpen,proto3" json:"keep_channel_open,omitempty"` |
| // The RPC protocol versions supported by the peer. |
| PeerRpcVersions *RpcProtocolVersions `protobuf:"bytes,7,opt,name=peer_rpc_versions,json=peerRpcVersions,proto3" json:"peer_rpc_versions,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *HandshakerResult) Reset() { *m = HandshakerResult{} } |
| func (m *HandshakerResult) String() string { return proto.CompactTextString(m) } |
| func (*HandshakerResult) ProtoMessage() {} |
| func (*HandshakerResult) Descriptor() ([]byte, []int) { |
| return fileDescriptor_handshaker_1dfe659b12ea825e, []int{7} |
| } |
| func (m *HandshakerResult) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_HandshakerResult.Unmarshal(m, b) |
| } |
| func (m *HandshakerResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_HandshakerResult.Marshal(b, m, deterministic) |
| } |
| func (dst *HandshakerResult) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_HandshakerResult.Merge(dst, src) |
| } |
| func (m *HandshakerResult) XXX_Size() int { |
| return xxx_messageInfo_HandshakerResult.Size(m) |
| } |
| func (m *HandshakerResult) XXX_DiscardUnknown() { |
| xxx_messageInfo_HandshakerResult.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_HandshakerResult proto.InternalMessageInfo |
| |
| func (m *HandshakerResult) GetApplicationProtocol() string { |
| if m != nil { |
| return m.ApplicationProtocol |
| } |
| return "" |
| } |
| |
| func (m *HandshakerResult) GetRecordProtocol() string { |
| if m != nil { |
| return m.RecordProtocol |
| } |
| return "" |
| } |
| |
| func (m *HandshakerResult) GetKeyData() []byte { |
| if m != nil { |
| return m.KeyData |
| } |
| return nil |
| } |
| |
| func (m *HandshakerResult) GetPeerIdentity() *Identity { |
| if m != nil { |
| return m.PeerIdentity |
| } |
| return nil |
| } |
| |
| func (m *HandshakerResult) GetLocalIdentity() *Identity { |
| if m != nil { |
| return m.LocalIdentity |
| } |
| return nil |
| } |
| |
| func (m *HandshakerResult) GetKeepChannelOpen() bool { |
| if m != nil { |
| return m.KeepChannelOpen |
| } |
| return false |
| } |
| |
| func (m *HandshakerResult) GetPeerRpcVersions() *RpcProtocolVersions { |
| if m != nil { |
| return m.PeerRpcVersions |
| } |
| return nil |
| } |
| |
| type HandshakerStatus struct { |
| // The status code. This could be the gRPC status code. |
| Code uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` |
| // The status details. |
| Details string `protobuf:"bytes,2,opt,name=details,proto3" json:"details,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *HandshakerStatus) Reset() { *m = HandshakerStatus{} } |
| func (m *HandshakerStatus) String() string { return proto.CompactTextString(m) } |
| func (*HandshakerStatus) ProtoMessage() {} |
| func (*HandshakerStatus) Descriptor() ([]byte, []int) { |
| return fileDescriptor_handshaker_1dfe659b12ea825e, []int{8} |
| } |
| func (m *HandshakerStatus) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_HandshakerStatus.Unmarshal(m, b) |
| } |
| func (m *HandshakerStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_HandshakerStatus.Marshal(b, m, deterministic) |
| } |
| func (dst *HandshakerStatus) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_HandshakerStatus.Merge(dst, src) |
| } |
| func (m *HandshakerStatus) XXX_Size() int { |
| return xxx_messageInfo_HandshakerStatus.Size(m) |
| } |
| func (m *HandshakerStatus) XXX_DiscardUnknown() { |
| xxx_messageInfo_HandshakerStatus.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_HandshakerStatus proto.InternalMessageInfo |
| |
| func (m *HandshakerStatus) GetCode() uint32 { |
| if m != nil { |
| return m.Code |
| } |
| return 0 |
| } |
| |
| func (m *HandshakerStatus) GetDetails() string { |
| if m != nil { |
| return m.Details |
| } |
| return "" |
| } |
| |
| type HandshakerResp struct { |
| // Frames to be given to the peer for the NextHandshakeMessageReq. May be |
| // empty if no out_frames have to be sent to the peer or if in_bytes in the |
| // HandshakerReq are incomplete. All the non-empty out frames must be sent to |
| // the peer even if the handshaker status is not OK as these frames may |
| // contain the alert frames. |
| OutFrames []byte `protobuf:"bytes,1,opt,name=out_frames,json=outFrames,proto3" json:"out_frames,omitempty"` |
| // Number of bytes in the in_bytes consumed by the handshaker. It is possible |
| // that part of in_bytes in HandshakerReq was unrelated to the handshake |
| // process. |
| BytesConsumed uint32 `protobuf:"varint,2,opt,name=bytes_consumed,json=bytesConsumed,proto3" json:"bytes_consumed,omitempty"` |
| // This is set iff the handshake was successful. out_frames may still be set |
| // to frames that needs to be forwarded to the peer. |
| Result *HandshakerResult `protobuf:"bytes,3,opt,name=result,proto3" json:"result,omitempty"` |
| // Status of the handshaker. |
| Status *HandshakerStatus `protobuf:"bytes,4,opt,name=status,proto3" json:"status,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *HandshakerResp) Reset() { *m = HandshakerResp{} } |
| func (m *HandshakerResp) String() string { return proto.CompactTextString(m) } |
| func (*HandshakerResp) ProtoMessage() {} |
| func (*HandshakerResp) Descriptor() ([]byte, []int) { |
| return fileDescriptor_handshaker_1dfe659b12ea825e, []int{9} |
| } |
| func (m *HandshakerResp) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_HandshakerResp.Unmarshal(m, b) |
| } |
| func (m *HandshakerResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_HandshakerResp.Marshal(b, m, deterministic) |
| } |
| func (dst *HandshakerResp) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_HandshakerResp.Merge(dst, src) |
| } |
| func (m *HandshakerResp) XXX_Size() int { |
| return xxx_messageInfo_HandshakerResp.Size(m) |
| } |
| func (m *HandshakerResp) XXX_DiscardUnknown() { |
| xxx_messageInfo_HandshakerResp.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_HandshakerResp proto.InternalMessageInfo |
| |
| func (m *HandshakerResp) GetOutFrames() []byte { |
| if m != nil { |
| return m.OutFrames |
| } |
| return nil |
| } |
| |
| func (m *HandshakerResp) GetBytesConsumed() uint32 { |
| if m != nil { |
| return m.BytesConsumed |
| } |
| return 0 |
| } |
| |
| func (m *HandshakerResp) GetResult() *HandshakerResult { |
| if m != nil { |
| return m.Result |
| } |
| return nil |
| } |
| |
| func (m *HandshakerResp) GetStatus() *HandshakerStatus { |
| if m != nil { |
| return m.Status |
| } |
| return nil |
| } |
| |
| func init() { |
| proto.RegisterType((*Endpoint)(nil), "grpc.gcp.Endpoint") |
| proto.RegisterType((*Identity)(nil), "grpc.gcp.Identity") |
| proto.RegisterMapType((map[string]string)(nil), "grpc.gcp.Identity.AttributesEntry") |
| proto.RegisterType((*StartClientHandshakeReq)(nil), "grpc.gcp.StartClientHandshakeReq") |
| proto.RegisterType((*ServerHandshakeParameters)(nil), "grpc.gcp.ServerHandshakeParameters") |
| proto.RegisterType((*StartServerHandshakeReq)(nil), "grpc.gcp.StartServerHandshakeReq") |
| proto.RegisterMapType((map[int32]*ServerHandshakeParameters)(nil), "grpc.gcp.StartServerHandshakeReq.HandshakeParametersEntry") |
| proto.RegisterType((*NextHandshakeMessageReq)(nil), "grpc.gcp.NextHandshakeMessageReq") |
| proto.RegisterType((*HandshakerReq)(nil), "grpc.gcp.HandshakerReq") |
| proto.RegisterType((*HandshakerResult)(nil), "grpc.gcp.HandshakerResult") |
| proto.RegisterType((*HandshakerStatus)(nil), "grpc.gcp.HandshakerStatus") |
| proto.RegisterType((*HandshakerResp)(nil), "grpc.gcp.HandshakerResp") |
| proto.RegisterEnum("grpc.gcp.HandshakeProtocol", HandshakeProtocol_name, HandshakeProtocol_value) |
| proto.RegisterEnum("grpc.gcp.NetworkProtocol", NetworkProtocol_name, NetworkProtocol_value) |
| } |
| |
| // Reference imports to suppress errors if they are not otherwise used. |
| var _ context.Context |
| var _ grpc.ClientConn |
| |
| // This is a compile-time assertion to ensure that this generated file |
| // is compatible with the grpc package it is being compiled against. |
| const _ = grpc.SupportPackageIsVersion4 |
| |
| // HandshakerServiceClient is the client API for HandshakerService service. |
| // |
| // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. |
| type HandshakerServiceClient interface { |
| // Handshaker service accepts a stream of handshaker request, returning a |
| // stream of handshaker response. Client is expected to send exactly one |
| // message with either client_start or server_start followed by one or more |
| // messages with next. Each time client sends a request, the handshaker |
| // service expects to respond. Client does not have to wait for service's |
| // response before sending next request. |
| DoHandshake(ctx context.Context, opts ...grpc.CallOption) (HandshakerService_DoHandshakeClient, error) |
| } |
| |
| type handshakerServiceClient struct { |
| cc *grpc.ClientConn |
| } |
| |
| func NewHandshakerServiceClient(cc *grpc.ClientConn) HandshakerServiceClient { |
| return &handshakerServiceClient{cc} |
| } |
| |
| func (c *handshakerServiceClient) DoHandshake(ctx context.Context, opts ...grpc.CallOption) (HandshakerService_DoHandshakeClient, error) { |
| stream, err := c.cc.NewStream(ctx, &_HandshakerService_serviceDesc.Streams[0], "/grpc.gcp.HandshakerService/DoHandshake", opts...) |
| if err != nil { |
| return nil, err |
| } |
| x := &handshakerServiceDoHandshakeClient{stream} |
| return x, nil |
| } |
| |
| type HandshakerService_DoHandshakeClient interface { |
| Send(*HandshakerReq) error |
| Recv() (*HandshakerResp, error) |
| grpc.ClientStream |
| } |
| |
| type handshakerServiceDoHandshakeClient struct { |
| grpc.ClientStream |
| } |
| |
| func (x *handshakerServiceDoHandshakeClient) Send(m *HandshakerReq) error { |
| return x.ClientStream.SendMsg(m) |
| } |
| |
| func (x *handshakerServiceDoHandshakeClient) Recv() (*HandshakerResp, error) { |
| m := new(HandshakerResp) |
| if err := x.ClientStream.RecvMsg(m); err != nil { |
| return nil, err |
| } |
| return m, nil |
| } |
| |
| // HandshakerServiceServer is the server API for HandshakerService service. |
| type HandshakerServiceServer interface { |
| // Handshaker service accepts a stream of handshaker request, returning a |
| // stream of handshaker response. Client is expected to send exactly one |
| // message with either client_start or server_start followed by one or more |
| // messages with next. Each time client sends a request, the handshaker |
| // service expects to respond. Client does not have to wait for service's |
| // response before sending next request. |
| DoHandshake(HandshakerService_DoHandshakeServer) error |
| } |
| |
| func RegisterHandshakerServiceServer(s *grpc.Server, srv HandshakerServiceServer) { |
| s.RegisterService(&_HandshakerService_serviceDesc, srv) |
| } |
| |
| func _HandshakerService_DoHandshake_Handler(srv interface{}, stream grpc.ServerStream) error { |
| return srv.(HandshakerServiceServer).DoHandshake(&handshakerServiceDoHandshakeServer{stream}) |
| } |
| |
| type HandshakerService_DoHandshakeServer interface { |
| Send(*HandshakerResp) error |
| Recv() (*HandshakerReq, error) |
| grpc.ServerStream |
| } |
| |
| type handshakerServiceDoHandshakeServer struct { |
| grpc.ServerStream |
| } |
| |
| func (x *handshakerServiceDoHandshakeServer) Send(m *HandshakerResp) error { |
| return x.ServerStream.SendMsg(m) |
| } |
| |
| func (x *handshakerServiceDoHandshakeServer) Recv() (*HandshakerReq, error) { |
| m := new(HandshakerReq) |
| if err := x.ServerStream.RecvMsg(m); err != nil { |
| return nil, err |
| } |
| return m, nil |
| } |
| |
| var _HandshakerService_serviceDesc = grpc.ServiceDesc{ |
| ServiceName: "grpc.gcp.HandshakerService", |
| HandlerType: (*HandshakerServiceServer)(nil), |
| Methods: []grpc.MethodDesc{}, |
| Streams: []grpc.StreamDesc{ |
| { |
| StreamName: "DoHandshake", |
| Handler: _HandshakerService_DoHandshake_Handler, |
| ServerStreams: true, |
| ClientStreams: true, |
| }, |
| }, |
| Metadata: "grpc/gcp/handshaker.proto", |
| } |
| |
| func init() { |
| proto.RegisterFile("grpc/gcp/handshaker.proto", fileDescriptor_handshaker_1dfe659b12ea825e) |
| } |
| |
| var fileDescriptor_handshaker_1dfe659b12ea825e = []byte{ |
| // 1168 bytes of a gzipped FileDescriptorProto |
| 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x56, 0xdf, 0x6e, 0x1a, 0xc7, |
| 0x17, 0xf6, 0x02, 0xb6, 0xf1, 0xc1, 0xfc, 0xf1, 0xc4, 0x51, 0xd6, 0x4e, 0xf2, 0xfb, 0x51, 0xaa, |
| 0xaa, 0x24, 0x17, 0xd0, 0x92, 0x56, 0x69, 0x52, 0x45, 0x09, 0x60, 0x2c, 0xdc, 0xa4, 0x18, 0x2d, |
| 0x4e, 0x2b, 0x35, 0x17, 0xab, 0xc9, 0x32, 0xc1, 0x2b, 0x96, 0x99, 0xf5, 0xcc, 0xe0, 0x86, 0x07, |
| 0xe8, 0xe3, 0xf4, 0x15, 0xfa, 0x36, 0x95, 0xfa, 0x00, 0xbd, 0x6f, 0xb5,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