alpha

package
v1.32.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 23, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Package alpha is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var File_alpha_proto protoreflect.FileDescriptor
View Source
var SDK_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "agones.dev.sdk.alpha.SDK",
	HandlerType: (*SDKServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "PlayerConnect",
			Handler:    _SDK_PlayerConnect_Handler,
		},
		{
			MethodName: "PlayerDisconnect",
			Handler:    _SDK_PlayerDisconnect_Handler,
		},
		{
			MethodName: "SetPlayerCapacity",
			Handler:    _SDK_SetPlayerCapacity_Handler,
		},
		{
			MethodName: "GetPlayerCapacity",
			Handler:    _SDK_GetPlayerCapacity_Handler,
		},
		{
			MethodName: "GetPlayerCount",
			Handler:    _SDK_GetPlayerCount_Handler,
		},
		{
			MethodName: "IsPlayerConnected",
			Handler:    _SDK_IsPlayerConnected_Handler,
		},
		{
			MethodName: "GetConnectedPlayers",
			Handler:    _SDK_GetConnectedPlayers_Handler,
		},
		{
			MethodName: "GetCounter",
			Handler:    _SDK_GetCounter_Handler,
		},
		{
			MethodName: "UpdateCounter",
			Handler:    _SDK_UpdateCounter_Handler,
		},
		{
			MethodName: "GetList",
			Handler:    _SDK_GetList_Handler,
		},
		{
			MethodName: "UpdateList",
			Handler:    _SDK_UpdateList_Handler,
		},
		{
			MethodName: "AddListValue",
			Handler:    _SDK_AddListValue_Handler,
		},
		{
			MethodName: "RemoveListValue",
			Handler:    _SDK_RemoveListValue_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "alpha.proto",
}

SDK_ServiceDesc is the grpc.ServiceDesc for SDK service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterSDKHandler

func RegisterSDKHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterSDKHandler registers the http handlers for service SDK to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterSDKHandlerClient

func RegisterSDKHandlerClient(ctx context.Context, mux *runtime.ServeMux, client SDKClient) error

RegisterSDKHandlerClient registers the http handlers for service SDK to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "SDKClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "SDKClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "SDKClient" to call the correct interceptors.

func RegisterSDKHandlerFromEndpoint

func RegisterSDKHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterSDKHandlerFromEndpoint is same as RegisterSDKHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterSDKHandlerServer

func RegisterSDKHandlerServer(ctx context.Context, mux *runtime.ServeMux, server SDKServer) error

RegisterSDKHandlerServer registers the http handlers for service SDK to "mux". UnaryRPC :call SDKServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterSDKHandlerFromEndpoint instead.

func RegisterSDKServer

func RegisterSDKServer(s grpc.ServiceRegistrar, srv SDKServer)

Types

type AddListValueRequest added in v1.31.0

type AddListValueRequest struct {

	// The name of the List to add a value to.
	Name  string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*AddListValueRequest) Descriptor deprecated added in v1.31.0

func (*AddListValueRequest) Descriptor() ([]byte, []int)

Deprecated: Use AddListValueRequest.ProtoReflect.Descriptor instead.

func (*AddListValueRequest) GetName added in v1.31.0

func (x *AddListValueRequest) GetName() string

func (*AddListValueRequest) GetValue added in v1.31.0

func (x *AddListValueRequest) GetValue() string

func (*AddListValueRequest) ProtoMessage added in v1.31.0

func (*AddListValueRequest) ProtoMessage()

func (*AddListValueRequest) ProtoReflect added in v1.31.0

func (x *AddListValueRequest) ProtoReflect() protoreflect.Message

func (*AddListValueRequest) Reset added in v1.31.0

func (x *AddListValueRequest) Reset()

func (*AddListValueRequest) String added in v1.31.0

func (x *AddListValueRequest) String() string

type Bool added in v1.6.0

type Bool struct {
	Bool bool `protobuf:"varint,1,opt,name=bool,proto3" json:"bool,omitempty"`
	// contains filtered or unexported fields
}

Store a boolean result

func (*Bool) Descriptor deprecated added in v1.6.0

func (*Bool) Descriptor() ([]byte, []int)

Deprecated: Use Bool.ProtoReflect.Descriptor instead.

func (*Bool) GetBool added in v1.6.0

func (x *Bool) GetBool() bool

func (*Bool) ProtoMessage added in v1.6.0

func (*Bool) ProtoMessage()

func (*Bool) ProtoReflect added in v1.29.0

func (x *Bool) ProtoReflect() protoreflect.Message

func (*Bool) Reset added in v1.6.0

func (x *Bool) Reset()

func (*Bool) String added in v1.6.0

func (x *Bool) String() string

type Count

type Count struct {
	Count int64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
	// contains filtered or unexported fields
}

Store a count variable.

func (*Count) Descriptor deprecated

func (*Count) Descriptor() ([]byte, []int)

Deprecated: Use Count.ProtoReflect.Descriptor instead.

func (*Count) GetCount

func (x *Count) GetCount() int64

func (*Count) ProtoMessage

func (*Count) ProtoMessage()

func (*Count) ProtoReflect added in v1.29.0

func (x *Count) ProtoReflect() protoreflect.Message

func (*Count) Reset

func (x *Count) Reset()

func (*Count) String

func (x *Count) String() string

type Counter added in v1.31.0

type Counter struct {

	// The name of the Counter
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The current count of the Counter
	Count int64 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
	// The maximum capacity of the Counter
	Capacity int64 `protobuf:"varint,3,opt,name=capacity,proto3" json:"capacity,omitempty"`
	// contains filtered or unexported fields
}

A representation of a Counter.

func (*Counter) Descriptor deprecated added in v1.31.0

func (*Counter) Descriptor() ([]byte, []int)

Deprecated: Use Counter.ProtoReflect.Descriptor instead.

func (*Counter) GetCapacity added in v1.31.0

func (x *Counter) GetCapacity() int64

func (*Counter) GetCount added in v1.31.0

func (x *Counter) GetCount() int64

func (*Counter) GetName added in v1.31.0

func (x *Counter) GetName() string

func (*Counter) ProtoMessage added in v1.31.0

func (*Counter) ProtoMessage()

func (*Counter) ProtoReflect added in v1.31.0

func (x *Counter) ProtoReflect() protoreflect.Message

func (*Counter) Reset added in v1.31.0

func (x *Counter) Reset()

func (*Counter) String added in v1.31.0

func (x *Counter) String() string

type Empty

type Empty struct {
	// contains filtered or unexported fields
}

I am Empty

func (*Empty) Descriptor deprecated

func (*Empty) Descriptor() ([]byte, []int)

Deprecated: Use Empty.ProtoReflect.Descriptor instead.

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) ProtoReflect added in v1.29.0

func (x *Empty) ProtoReflect() protoreflect.Message

func (*Empty) Reset

func (x *Empty) Reset()

func (*Empty) String

func (x *Empty) String() string

type GetCounterRequest added in v1.31.0

type GetCounterRequest struct {

	// The name of the Counter to get
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*GetCounterRequest) Descriptor deprecated added in v1.31.0

func (*GetCounterRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetCounterRequest.ProtoReflect.Descriptor instead.

func (*GetCounterRequest) GetName added in v1.31.0

func (x *GetCounterRequest) GetName() string

func (*GetCounterRequest) ProtoMessage added in v1.31.0

func (*GetCounterRequest) ProtoMessage()

func (*GetCounterRequest) ProtoReflect added in v1.31.0

func (x *GetCounterRequest) ProtoReflect() protoreflect.Message

func (*GetCounterRequest) Reset added in v1.31.0

func (x *GetCounterRequest) Reset()

func (*GetCounterRequest) String added in v1.31.0

func (x *GetCounterRequest) String() string

type GetListRequest added in v1.31.0

type GetListRequest struct {

	// The name of the List to get
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*GetListRequest) Descriptor deprecated added in v1.31.0

func (*GetListRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetListRequest.ProtoReflect.Descriptor instead.

func (*GetListRequest) GetName added in v1.31.0

func (x *GetListRequest) GetName() string

func (*GetListRequest) ProtoMessage added in v1.31.0

func (*GetListRequest) ProtoMessage()

func (*GetListRequest) ProtoReflect added in v1.31.0

func (x *GetListRequest) ProtoReflect() protoreflect.Message

func (*GetListRequest) Reset added in v1.31.0

func (x *GetListRequest) Reset()

func (*GetListRequest) String added in v1.31.0

func (x *GetListRequest) String() string

type List added in v1.31.0

type List struct {

	// The name of the List
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The maximum capacity of the List
	Capacity int64 `protobuf:"varint,2,opt,name=capacity,proto3" json:"capacity,omitempty"`
	// The array of items in the List ["v1", "v2", …]
	Values []string `protobuf:"bytes,3,rep,name=values,proto3" json:"values,omitempty"`
	// contains filtered or unexported fields
}

A representation of a List.

func (*List) Descriptor deprecated added in v1.31.0

func (*List) Descriptor() ([]byte, []int)

Deprecated: Use List.ProtoReflect.Descriptor instead.

func (*List) GetCapacity added in v1.31.0

func (x *List) GetCapacity() int64

func (*List) GetName added in v1.31.0

func (x *List) GetName() string

func (*List) GetValues added in v1.31.0

func (x *List) GetValues() []string

func (*List) ProtoMessage added in v1.31.0

func (*List) ProtoMessage()

func (*List) ProtoReflect added in v1.31.0

func (x *List) ProtoReflect() protoreflect.Message

func (*List) Reset added in v1.31.0

func (x *List) Reset()

func (*List) String added in v1.31.0

func (x *List) String() string

type PlayerID added in v1.6.0

type PlayerID struct {
	PlayerID string `protobuf:"bytes,1,opt,name=playerID,proto3" json:"playerID,omitempty"`
	// contains filtered or unexported fields
}

The unique identifier for a given player.

func (*PlayerID) Descriptor deprecated added in v1.6.0

func (*PlayerID) Descriptor() ([]byte, []int)

Deprecated: Use PlayerID.ProtoReflect.Descriptor instead.

func (*PlayerID) GetPlayerID added in v1.6.0

func (x *PlayerID) GetPlayerID() string

func (*PlayerID) ProtoMessage added in v1.6.0

func (*PlayerID) ProtoMessage()

func (*PlayerID) ProtoReflect added in v1.29.0

func (x *PlayerID) ProtoReflect() protoreflect.Message

func (*PlayerID) Reset added in v1.6.0

func (x *PlayerID) Reset()

func (*PlayerID) String added in v1.6.0

func (x *PlayerID) String() string

type PlayerIDList added in v1.6.0

type PlayerIDList struct {
	List []string `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
	// contains filtered or unexported fields
}

List of Player IDs

func (*PlayerIDList) Descriptor deprecated added in v1.6.0

func (*PlayerIDList) Descriptor() ([]byte, []int)

Deprecated: Use PlayerIDList.ProtoReflect.Descriptor instead.

func (*PlayerIDList) GetList added in v1.6.0

func (x *PlayerIDList) GetList() []string

func (*PlayerIDList) ProtoMessage added in v1.6.0

func (*PlayerIDList) ProtoMessage()

func (*PlayerIDList) ProtoReflect added in v1.29.0

func (x *PlayerIDList) ProtoReflect() protoreflect.Message

func (*PlayerIDList) Reset added in v1.6.0

func (x *PlayerIDList) Reset()

func (*PlayerIDList) String added in v1.6.0

func (x *PlayerIDList) String() string

type RemoveListValueRequest added in v1.31.0

type RemoveListValueRequest struct {

	// The name of the List to remove a value from.
	Name  string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*RemoveListValueRequest) Descriptor deprecated added in v1.31.0

func (*RemoveListValueRequest) Descriptor() ([]byte, []int)

Deprecated: Use RemoveListValueRequest.ProtoReflect.Descriptor instead.

func (*RemoveListValueRequest) GetName added in v1.31.0

func (x *RemoveListValueRequest) GetName() string

func (*RemoveListValueRequest) GetValue added in v1.31.0

func (x *RemoveListValueRequest) GetValue() string

func (*RemoveListValueRequest) ProtoMessage added in v1.31.0

func (*RemoveListValueRequest) ProtoMessage()

func (*RemoveListValueRequest) ProtoReflect added in v1.31.0

func (x *RemoveListValueRequest) ProtoReflect() protoreflect.Message

func (*RemoveListValueRequest) Reset added in v1.31.0

func (x *RemoveListValueRequest) Reset()

func (*RemoveListValueRequest) String added in v1.31.0

func (x *RemoveListValueRequest) String() string

type SDKClient

type SDKClient interface {
	// PlayerConnect increases the SDK’s stored player count by one, and appends this playerID to GameServer.Status.Players.IDs.
	//
	// GameServer.Status.Players.Count and GameServer.Status.Players.IDs are then set to update the player count and id list a second from now,
	// unless there is already an update pending, in which case the update joins that batch operation.
	//
	// PlayerConnect returns true and adds the playerID to the list of playerIDs if this playerID was not already in the
	// list of connected playerIDs.
	//
	// If the playerID exists within the list of connected playerIDs, PlayerConnect will return false, and the list of
	// connected playerIDs will be left unchanged.
	//
	// An error will be returned if the playerID was not already in the list of connected playerIDs but the player capacity for
	// the server has been reached. The playerID will not be added to the list of playerIDs.
	//
	// Warning: Do not use this method if you are manually managing GameServer.Status.Players.IDs and GameServer.Status.Players.Count
	// through the Kubernetes API, as indeterminate results will occur.
	PlayerConnect(ctx context.Context, in *PlayerID, opts ...grpc.CallOption) (*Bool, error)
	// Decreases the SDK’s stored player count by one, and removes the playerID from GameServer.Status.Players.IDs.
	//
	// GameServer.Status.Players.Count and GameServer.Status.Players.IDs are then set to update the player count and id list a second from now,
	// unless there is already an update pending, in which case the update joins that batch operation.
	//
	// PlayerDisconnect will return true and remove the supplied playerID from the list of connected playerIDs if the
	// playerID value exists within the list.
	//
	// If the playerID was not in the list of connected playerIDs, the call will return false, and the connected playerID list
	// will be left unchanged.
	//
	// Warning: Do not use this method if you are manually managing GameServer.status.players.IDs and GameServer.status.players.Count
	// through the Kubernetes API, as indeterminate results will occur.
	PlayerDisconnect(ctx context.Context, in *PlayerID, opts ...grpc.CallOption) (*Bool, error)
	// Update the GameServer.Status.Players.Capacity value with a new capacity.
	SetPlayerCapacity(ctx context.Context, in *Count, opts ...grpc.CallOption) (*Empty, error)
	// Retrieves the current player capacity. This is always accurate from what has been set through this SDK,
	// even if the value has yet to be updated on the GameServer status resource.
	//
	// If GameServer.Status.Players.Capacity is set manually through the Kubernetes API, use SDK.GameServer() or SDK.WatchGameServer() instead to view this value.
	GetPlayerCapacity(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Count, error)
	// Retrieves the current player count. This is always accurate from what has been set through this SDK,
	// even if the value has yet to be updated on the GameServer status resource.
	//
	// If GameServer.Status.Players.Count is set manually through the Kubernetes API, use SDK.GameServer() or SDK.WatchGameServer() instead to view this value.
	GetPlayerCount(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Count, error)
	// Returns if the playerID is currently connected to the GameServer. This is always accurate from what has been set through this SDK,
	// even if the value has yet to be updated on the GameServer status resource.
	//
	// If GameServer.Status.Players.IDs is set manually through the Kubernetes API, use SDK.GameServer() or SDK.WatchGameServer() instead to determine connected status.
	IsPlayerConnected(ctx context.Context, in *PlayerID, opts ...grpc.CallOption) (*Bool, error)
	// Returns the list of the currently connected player ids. This is always accurate from what has been set through this SDK,
	// even if the value has yet to be updated on the GameServer status resource.
	//
	// If GameServer.Status.Players.IDs is set manually through the Kubernetes API, use SDK.GameServer() or SDK.WatchGameServer() instead to view this value.
	GetConnectedPlayers(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*PlayerIDList, error)
	// Gets a Counter. Returns NOT_FOUND if the Counter does not exist.
	GetCounter(ctx context.Context, in *GetCounterRequest, opts ...grpc.CallOption) (*Counter, error)
	// UpdateCounter returns the updated Counter. Returns NOT_FOUND if the Counter does not exist (name cannot be updated).
	// Returns OUT_OF_RANGE if the Count is out of range [0,Capacity].
	// Returns INVALID_ARGUMENT if the field mask path(s) are not field(s) of the Counter.
	// If a field mask path(s) is specified, but the value is not set in the request Counter object,
	// then the default value for the variable will be set (i.e. 0 for "capacity" or "count").
	UpdateCounter(ctx context.Context, in *UpdateCounterRequest, opts ...grpc.CallOption) (*Counter, error)
	// Gets a List. Returns NOT_FOUND if the List does not exist.
	GetList(ctx context.Context, in *GetListRequest, opts ...grpc.CallOption) (*List, error)
	// UpdateList returns the updated List. Returns NOT_FOUND if the List does not exist (name cannot be updated).
	// **THIS WILL OVERWRITE ALL EXISTING LIST.VALUES WITH ANY REQUEST LIST.VALUES**
	// Use AddListValue() or RemoveListValue() for modifying the List.Values field.
	// Returns INVALID_ARGUMENT if the field mask path(s) are not field(s) of the List.
	// If a field mask path(s) is specified, but the value is not set in the request List object,
	// then the default value for the variable will be set (i.e. 0 for "capacity", empty list for "values").
	UpdateList(ctx context.Context, in *UpdateListRequest, opts ...grpc.CallOption) (*List, error)
	// Adds a value to a List and returns updated List. Returns NOT_FOUND if the List does not exist.
	// Returns ALREADY_EXISTS if the value is already in the List.
	// Returns OUT_OF_RANGE if the List is already at Capacity.
	AddListValue(ctx context.Context, in *AddListValueRequest, opts ...grpc.CallOption) (*List, error)
	// Removes a value from a List and returns updated List. Returns NOT_FOUND if the List does not exist.
	// Returns NOT_FOUND if the value is not in the List.
	RemoveListValue(ctx context.Context, in *RemoveListValueRequest, opts ...grpc.CallOption) (*List, error)
}

SDKClient is the client API for SDK service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewSDKClient

func NewSDKClient(cc grpc.ClientConnInterface) SDKClient

type SDKServer

type SDKServer interface {
	// PlayerConnect increases the SDK’s stored player count by one, and appends this playerID to GameServer.Status.Players.IDs.
	//
	// GameServer.Status.Players.Count and GameServer.Status.Players.IDs are then set to update the player count and id list a second from now,
	// unless there is already an update pending, in which case the update joins that batch operation.
	//
	// PlayerConnect returns true and adds the playerID to the list of playerIDs if this playerID was not already in the
	// list of connected playerIDs.
	//
	// If the playerID exists within the list of connected playerIDs, PlayerConnect will return false, and the list of
	// connected playerIDs will be left unchanged.
	//
	// An error will be returned if the playerID was not already in the list of connected playerIDs but the player capacity for
	// the server has been reached. The playerID will not be added to the list of playerIDs.
	//
	// Warning: Do not use this method if you are manually managing GameServer.Status.Players.IDs and GameServer.Status.Players.Count
	// through the Kubernetes API, as indeterminate results will occur.
	PlayerConnect(context.Context, *PlayerID) (*Bool, error)
	// Decreases the SDK’s stored player count by one, and removes the playerID from GameServer.Status.Players.IDs.
	//
	// GameServer.Status.Players.Count and GameServer.Status.Players.IDs are then set to update the player count and id list a second from now,
	// unless there is already an update pending, in which case the update joins that batch operation.
	//
	// PlayerDisconnect will return true and remove the supplied playerID from the list of connected playerIDs if the
	// playerID value exists within the list.
	//
	// If the playerID was not in the list of connected playerIDs, the call will return false, and the connected playerID list
	// will be left unchanged.
	//
	// Warning: Do not use this method if you are manually managing GameServer.status.players.IDs and GameServer.status.players.Count
	// through the Kubernetes API, as indeterminate results will occur.
	PlayerDisconnect(context.Context, *PlayerID) (*Bool, error)
	// Update the GameServer.Status.Players.Capacity value with a new capacity.
	SetPlayerCapacity(context.Context, *Count) (*Empty, error)
	// Retrieves the current player capacity. This is always accurate from what has been set through this SDK,
	// even if the value has yet to be updated on the GameServer status resource.
	//
	// If GameServer.Status.Players.Capacity is set manually through the Kubernetes API, use SDK.GameServer() or SDK.WatchGameServer() instead to view this value.
	GetPlayerCapacity(context.Context, *Empty) (*Count, error)
	// Retrieves the current player count. This is always accurate from what has been set through this SDK,
	// even if the value has yet to be updated on the GameServer status resource.
	//
	// If GameServer.Status.Players.Count is set manually through the Kubernetes API, use SDK.GameServer() or SDK.WatchGameServer() instead to view this value.
	GetPlayerCount(context.Context, *Empty) (*Count, error)
	// Returns if the playerID is currently connected to the GameServer. This is always accurate from what has been set through this SDK,
	// even if the value has yet to be updated on the GameServer status resource.
	//
	// If GameServer.Status.Players.IDs is set manually through the Kubernetes API, use SDK.GameServer() or SDK.WatchGameServer() instead to determine connected status.
	IsPlayerConnected(context.Context, *PlayerID) (*Bool, error)
	// Returns the list of the currently connected player ids. This is always accurate from what has been set through this SDK,
	// even if the value has yet to be updated on the GameServer status resource.
	//
	// If GameServer.Status.Players.IDs is set manually through the Kubernetes API, use SDK.GameServer() or SDK.WatchGameServer() instead to view this value.
	GetConnectedPlayers(context.Context, *Empty) (*PlayerIDList, error)
	// Gets a Counter. Returns NOT_FOUND if the Counter does not exist.
	GetCounter(context.Context, *GetCounterRequest) (*Counter, error)
	// UpdateCounter returns the updated Counter. Returns NOT_FOUND if the Counter does not exist (name cannot be updated).
	// Returns OUT_OF_RANGE if the Count is out of range [0,Capacity].
	// Returns INVALID_ARGUMENT if the field mask path(s) are not field(s) of the Counter.
	// If a field mask path(s) is specified, but the value is not set in the request Counter object,
	// then the default value for the variable will be set (i.e. 0 for "capacity" or "count").
	UpdateCounter(context.Context, *UpdateCounterRequest) (*Counter, error)
	// Gets a List. Returns NOT_FOUND if the List does not exist.
	GetList(context.Context, *GetListRequest) (*List, error)
	// UpdateList returns the updated List. Returns NOT_FOUND if the List does not exist (name cannot be updated).
	// **THIS WILL OVERWRITE ALL EXISTING LIST.VALUES WITH ANY REQUEST LIST.VALUES**
	// Use AddListValue() or RemoveListValue() for modifying the List.Values field.
	// Returns INVALID_ARGUMENT if the field mask path(s) are not field(s) of the List.
	// If a field mask path(s) is specified, but the value is not set in the request List object,
	// then the default value for the variable will be set (i.e. 0 for "capacity", empty list for "values").
	UpdateList(context.Context, *UpdateListRequest) (*List, error)
	// Adds a value to a List and returns updated List. Returns NOT_FOUND if the List does not exist.
	// Returns ALREADY_EXISTS if the value is already in the List.
	// Returns OUT_OF_RANGE if the List is already at Capacity.
	AddListValue(context.Context, *AddListValueRequest) (*List, error)
	// Removes a value from a List and returns updated List. Returns NOT_FOUND if the List does not exist.
	// Returns NOT_FOUND if the value is not in the List.
	RemoveListValue(context.Context, *RemoveListValueRequest) (*List, error)
}

SDKServer is the server API for SDK service. All implementations should embed UnimplementedSDKServer for forward compatibility

type UnimplementedSDKServer added in v1.29.0

type UnimplementedSDKServer struct {
}

UnimplementedSDKServer should be embedded to have forward compatible implementations.

func (UnimplementedSDKServer) AddListValue added in v1.31.0

func (UnimplementedSDKServer) GetConnectedPlayers added in v1.29.0

func (UnimplementedSDKServer) GetConnectedPlayers(context.Context, *Empty) (*PlayerIDList, error)

func (UnimplementedSDKServer) GetCounter added in v1.31.0

func (UnimplementedSDKServer) GetList added in v1.31.0

func (UnimplementedSDKServer) GetPlayerCapacity added in v1.29.0

func (UnimplementedSDKServer) GetPlayerCapacity(context.Context, *Empty) (*Count, error)

func (UnimplementedSDKServer) GetPlayerCount added in v1.29.0

func (UnimplementedSDKServer) GetPlayerCount(context.Context, *Empty) (*Count, error)

func (UnimplementedSDKServer) IsPlayerConnected added in v1.29.0

func (UnimplementedSDKServer) IsPlayerConnected(context.Context, *PlayerID) (*Bool, error)

func (UnimplementedSDKServer) PlayerConnect added in v1.29.0

func (UnimplementedSDKServer) PlayerDisconnect added in v1.29.0

func (UnimplementedSDKServer) PlayerDisconnect(context.Context, *PlayerID) (*Bool, error)

func (UnimplementedSDKServer) RemoveListValue added in v1.31.0

func (UnimplementedSDKServer) SetPlayerCapacity added in v1.29.0

func (UnimplementedSDKServer) SetPlayerCapacity(context.Context, *Count) (*Empty, error)

func (UnimplementedSDKServer) UpdateCounter added in v1.31.0

func (UnimplementedSDKServer) UpdateList added in v1.31.0

type UnsafeSDKServer added in v1.29.0

type UnsafeSDKServer interface {
	// contains filtered or unexported methods
}

UnsafeSDKServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SDKServer will result in compilation errors.

type UpdateCounterRequest added in v1.31.0

type UpdateCounterRequest struct {

	// The Counter to update
	Counter *Counter `protobuf:"bytes,1,opt,name=counter,proto3" json:"counter,omitempty"`
	// Required. Mask (list) of fields to update.
	// Fields are specified relative to the Counter
	// (e.g. `count`, `capacity`; *not* `Counter.count` or `Counter.capacity`).
	UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateCounterRequest) Descriptor deprecated added in v1.31.0

func (*UpdateCounterRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateCounterRequest.ProtoReflect.Descriptor instead.

func (*UpdateCounterRequest) GetCounter added in v1.31.0

func (x *UpdateCounterRequest) GetCounter() *Counter

func (*UpdateCounterRequest) GetUpdateMask added in v1.31.0

func (x *UpdateCounterRequest) GetUpdateMask() *fieldmaskpb.FieldMask

func (*UpdateCounterRequest) ProtoMessage added in v1.31.0

func (*UpdateCounterRequest) ProtoMessage()

func (*UpdateCounterRequest) ProtoReflect added in v1.31.0

func (x *UpdateCounterRequest) ProtoReflect() protoreflect.Message

func (*UpdateCounterRequest) Reset added in v1.31.0

func (x *UpdateCounterRequest) Reset()

func (*UpdateCounterRequest) String added in v1.31.0

func (x *UpdateCounterRequest) String() string

type UpdateListRequest added in v1.31.0

type UpdateListRequest struct {

	// The List to update
	List *List `protobuf:"bytes,1,opt,name=list,proto3" json:"list,omitempty"`
	// Required. Mask (list) of fields to update.
	// Fields are specified relative to the List
	// (e.g. `capacity`, `values`; *not* `List.capacity` or `List.values`).
	UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateListRequest) Descriptor deprecated added in v1.31.0

func (*UpdateListRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateListRequest.ProtoReflect.Descriptor instead.

func (*UpdateListRequest) GetList added in v1.31.0

func (x *UpdateListRequest) GetList() *List

func (*UpdateListRequest) GetUpdateMask added in v1.31.0

func (x *UpdateListRequest) GetUpdateMask() *fieldmaskpb.FieldMask

func (*UpdateListRequest) ProtoMessage added in v1.31.0

func (*UpdateListRequest) ProtoMessage()

func (*UpdateListRequest) ProtoReflect added in v1.31.0

func (x *UpdateListRequest) ProtoReflect() protoreflect.Message

func (*UpdateListRequest) Reset added in v1.31.0

func (x *UpdateListRequest) Reset()

func (*UpdateListRequest) String added in v1.31.0

func (x *UpdateListRequest) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL