- 1.86.0 (latest)
- 1.85.1
- 1.84.1
- 1.83.0
- 1.82.0
- 1.81.1
- 1.80.0
- 1.79.0
- 1.78.0
- 1.77.0
- 1.76.1
- 1.75.0
- 1.74.0
- 1.73.0
- 1.72.0
- 1.71.0
- 1.70.0
- 1.69.0
- 1.68.0
- 1.67.0
- 1.66.0
- 1.65.0
- 1.64.0
- 1.63.0
- 1.62.0
- 1.61.0
- 1.60.0
- 1.59.0
- 1.58.0
- 1.57.0
- 1.56.0
- 1.55.0
- 1.54.0
- 1.53.1
- 1.52.0
- 1.49.0
- 1.48.0
- 1.47.0
- 1.46.0
- 1.45.1
- 1.44.0
- 1.43.0
- 1.42.0
- 1.41.0
- 1.40.0
- 1.39.0
- 1.38.0
- 1.37.0
- 1.36.0
- 1.35.0
- 1.34.1
- 1.33.0
- 1.32.0
- 1.31.0
- 1.30.1
- 1.29.0
- 1.28.0
- 1.27.0
- 1.26.0
- 1.25.0
- 1.24.1
- 1.23.0
- 1.22.0
- 1.21.0
- 1.20.0
- 1.19.0
- 1.18.0
- 1.17.0
- 1.16.0
- 1.15.0
- 1.14.1
- 1.13.0
Variables
File_google_spanner_adapter_v1_adapter_proto
var File_google_spanner_adapter_v1_adapter_proto protoreflect.FileDescriptor
Functions
func RegisterAdapterServer
func RegisterAdapterServer(s *grpc.Server, srv AdapterServer)
AdaptMessageRequest
type AdaptMessageRequest struct {
// Required. The database session in which the adapter request is processed.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Required. Identifier for the underlying wire protocol.
Protocol string `protobuf:"bytes,2,opt,name=protocol,proto3" json:"protocol,omitempty"`
// Optional. Uninterpreted bytes from the underlying wire protocol.
Payload []byte `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"`
// Optional. Opaque request state passed by the client to the server.
Attachments map[string]string `protobuf:"bytes,4,rep,name=attachments,proto3" json:"attachments,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// contains filtered or unexported fields
}
Message sent by the client to the adapter.
func (*AdaptMessageRequest) Descriptor
func (*AdaptMessageRequest) Descriptor() ([]byte, []int)
Deprecated: Use AdaptMessageRequest.ProtoReflect.Descriptor instead.
func (*AdaptMessageRequest) GetAttachments
func (x *AdaptMessageRequest) GetAttachments() map[string]string
func (*AdaptMessageRequest) GetName
func (x *AdaptMessageRequest) GetName() string
func (*AdaptMessageRequest) GetPayload
func (x *AdaptMessageRequest) GetPayload() []byte
func (*AdaptMessageRequest) GetProtocol
func (x *AdaptMessageRequest) GetProtocol() string
func (*AdaptMessageRequest) ProtoMessage
func (*AdaptMessageRequest) ProtoMessage()
func (*AdaptMessageRequest) ProtoReflect
func (x *AdaptMessageRequest) ProtoReflect() protoreflect.Message
func (*AdaptMessageRequest) Reset
func (x *AdaptMessageRequest) Reset()
func (*AdaptMessageRequest) String
func (x *AdaptMessageRequest) String() string
AdaptMessageResponse
type AdaptMessageResponse struct {
// Optional. Uninterpreted bytes from the underlying wire protocol.
Payload []byte `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"`
// Optional. Opaque state updates to be applied by the client.
StateUpdates map[string]string `protobuf:"bytes,2,rep,name=state_updates,json=stateUpdates,proto3" json:"state_updates,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// Optional. Indicates whether this is the last
// [AdaptMessageResponse][google.spanner.adapter.v1.AdaptMessageResponse] in
// the stream. This field may be optionally set by the server. Clients should
// not rely on this field being set in all cases.
Last bool `protobuf:"varint,3,opt,name=last,proto3" json:"last,omitempty"`
// contains filtered or unexported fields
}
Message sent by the adapter to the client.
func (*AdaptMessageResponse) Descriptor
func (*AdaptMessageResponse) Descriptor() ([]byte, []int)
Deprecated: Use AdaptMessageResponse.ProtoReflect.Descriptor instead.
func (*AdaptMessageResponse) GetLast
func (x *AdaptMessageResponse) GetLast() bool
func (*AdaptMessageResponse) GetPayload
func (x *AdaptMessageResponse) GetPayload() []byte
func (*AdaptMessageResponse) GetStateUpdates
func (x *AdaptMessageResponse) GetStateUpdates() map[string]string
func (*AdaptMessageResponse) ProtoMessage
func (*AdaptMessageResponse) ProtoMessage()
func (*AdaptMessageResponse) ProtoReflect
func (x *AdaptMessageResponse) ProtoReflect() protoreflect.Message
func (*AdaptMessageResponse) Reset
func (x *AdaptMessageResponse) Reset()
func (*AdaptMessageResponse) String
func (x *AdaptMessageResponse) String() string
AdapterClient
type AdapterClient interface {
// Creates a new session to be used for requests made by the adapter.
// A session identifies a specific incarnation of a database resource and is
// meant to be reused across many `AdaptMessage` calls.
CreateSession(ctx context.Context, in *CreateSessionRequest, opts ...grpc.CallOption) (*Session, error)
// Handles a single message from the client and returns the result as a
// stream. The server will interpret the message frame and respond with
// message frames to the client.
AdaptMessage(ctx context.Context, in *AdaptMessageRequest, opts ...grpc.CallOption) (Adapter_AdaptMessageClient, error)
}
AdapterClient is the client API for Adapter service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewAdapterClient
func NewAdapterClient(cc grpc.ClientConnInterface) AdapterClient
AdapterServer
type AdapterServer interface {
// Creates a new session to be used for requests made by the adapter.
// A session identifies a specific incarnation of a database resource and is
// meant to be reused across many `AdaptMessage` calls.
CreateSession(context.Context, *CreateSessionRequest) (*Session, error)
// Handles a single message from the client and returns the result as a
// stream. The server will interpret the message frame and respond with
// message frames to the client.
AdaptMessage(*AdaptMessageRequest, Adapter_AdaptMessageServer) error
}
AdapterServer is the server API for Adapter service.
Adapter_AdaptMessageClient
type Adapter_AdaptMessageClient interface {
Recv() (*AdaptMessageResponse, error)
grpc.ClientStream
}
Adapter_AdaptMessageServer
type Adapter_AdaptMessageServer interface {
Send(*AdaptMessageResponse) error
grpc.ServerStream
}
CreateSessionRequest
type CreateSessionRequest struct {
// Required. The database in which the new session is created.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Required. The session to create.
Session *Session `protobuf:"bytes,2,opt,name=session,proto3" json:"session,omitempty"`
// contains filtered or unexported fields
}
The request for [CreateSessionRequest][Adapter.CreateSessionRequest].
func (*CreateSessionRequest) Descriptor
func (*CreateSessionRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateSessionRequest.ProtoReflect.Descriptor instead.
func (*CreateSessionRequest) GetParent
func (x *CreateSessionRequest) GetParent() string
func (*CreateSessionRequest) GetSession
func (x *CreateSessionRequest) GetSession() *Session
func (*CreateSessionRequest) ProtoMessage
func (*CreateSessionRequest) ProtoMessage()
func (*CreateSessionRequest) ProtoReflect
func (x *CreateSessionRequest) ProtoReflect() protoreflect.Message
func (*CreateSessionRequest) Reset
func (x *CreateSessionRequest) Reset()
func (*CreateSessionRequest) String
func (x *CreateSessionRequest) String() string
Session
type Session struct {
// Identifier. The name of the session. This is always system-assigned.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
A session in the Cloud Spanner Adapter API.
func (*Session) Descriptor
Deprecated: Use Session.ProtoReflect.Descriptor instead.
func (*Session) GetName
func (*Session) ProtoMessage
func (*Session) ProtoMessage()
func (*Session) ProtoReflect
func (x *Session) ProtoReflect() protoreflect.Message
func (*Session) Reset
func (x *Session) Reset()
func (*Session) String
UnimplementedAdapterServer
type UnimplementedAdapterServer struct {
}
UnimplementedAdapterServer can be embedded to have forward compatible implementations.
func (*UnimplementedAdapterServer) AdaptMessage
func (*UnimplementedAdapterServer) AdaptMessage(*AdaptMessageRequest, Adapter_AdaptMessageServer) error
func (*UnimplementedAdapterServer) CreateSession
func (*UnimplementedAdapterServer) CreateSession(context.Context, *CreateSessionRequest) (*Session, error)