proto

package
v0.0.0-...-9a1c626 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2022 License: Apache-2.0 Imports: 9 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Consistency_name = map[int32]string{
		0:  "ANY",
		1:  "ONE",
		2:  "TWO",
		3:  "THREE",
		4:  "QUORUM",
		5:  "ALL",
		6:  "LOCAL_QUORUM",
		7:  "EACH_QUORUM",
		8:  "SERIAL",
		9:  "LOCAL_SERIAL",
		10: "LOCAL_ONE",
	}
	Consistency_value = map[string]int32{
		"ANY":          0,
		"ONE":          1,
		"TWO":          2,
		"THREE":        3,
		"QUORUM":       4,
		"ALL":          5,
		"LOCAL_QUORUM": 6,
		"EACH_QUORUM":  7,
		"SERIAL":       8,
		"LOCAL_SERIAL": 9,
		"LOCAL_ONE":    10,
	}
)

Enum value maps for Consistency.

View Source
var (
	TypeSpec_Basic_name = map[int32]string{
		0:  "CUSTOM",
		1:  "ASCII",
		2:  "BIGINT",
		3:  "BLOB",
		4:  "BOOLEAN",
		5:  "COUNTER",
		6:  "DECIMAL",
		7:  "DOUBLE",
		8:  "FLOAT",
		9:  "INT",
		10: "TEXT",
		11: "TIMESTAMP",
		12: "UUID",
		13: "VARCHAR",
		14: "VARINT",
		15: "TIMEUUID",
		16: "INET",
		17: "DATE",
		18: "TIME",
		19: "SMALLINT",
		20: "TINYINT",
	}
	TypeSpec_Basic_value = map[string]int32{
		"CUSTOM":    0,
		"ASCII":     1,
		"BIGINT":    2,
		"BLOB":      3,
		"BOOLEAN":   4,
		"COUNTER":   5,
		"DECIMAL":   6,
		"DOUBLE":    7,
		"FLOAT":     8,
		"INT":       9,
		"TEXT":      10,
		"TIMESTAMP": 11,
		"UUID":      12,
		"VARCHAR":   13,
		"VARINT":    14,
		"TIMEUUID":  15,
		"INET":      16,
		"DATE":      17,
		"TIME":      18,
		"SMALLINT":  19,
		"TINYINT":   20,
	}
)

Enum value maps for TypeSpec_Basic.

View Source
var (
	SchemaChange_Type_name = map[int32]string{
		0: "CREATED",
		1: "UPDATED",
		2: "DROPPED",
	}
	SchemaChange_Type_value = map[string]int32{
		"CREATED": 0,
		"UPDATED": 1,
		"DROPPED": 2,
	}
)

Enum value maps for SchemaChange_Type.

View Source
var (
	SchemaChange_Target_name = map[int32]string{
		0: "KEYSPACE",
		1: "TABLE",
		2: "TYPE",
		3: "FUNCTION",
		4: "AGGREGATE",
	}
	SchemaChange_Target_value = map[string]int32{
		"KEYSPACE":  0,
		"TABLE":     1,
		"TYPE":      2,
		"FUNCTION":  3,
		"AGGREGATE": 4,
	}
)

Enum value maps for SchemaChange_Target.

View Source
var (
	Batch_Type_name = map[int32]string{
		0: "LOGGED",
		1: "UNLOGGED",
		2: "COUNTER",
	}
	Batch_Type_value = map[string]int32{
		"LOGGED":   0,
		"UNLOGGED": 1,
		"COUNTER":  2,
	}
)

Enum value maps for Batch_Type.

View Source
var File_query_proto protoreflect.FileDescriptor
View Source
var File_stargate_proto protoreflect.FileDescriptor
View Source
var Stargate_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "stargate.Stargate",
	HandlerType: (*StargateServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ExecuteQuery",
			Handler:    _Stargate_ExecuteQuery_Handler,
		},
		{
			MethodName: "ExecuteBatch",
			Handler:    _Stargate_ExecuteBatch_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "stargate.proto",
}

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

Functions

func RegisterStargateServer

func RegisterStargateServer(s grpc.ServiceRegistrar, srv StargateServer)

Types

type AlreadyExists

type AlreadyExists struct {
	Keyspace string `protobuf:"bytes,1,opt,name=keyspace,proto3" json:"keyspace,omitempty"`
	Table    string `protobuf:"bytes,2,opt,name=table,proto3" json:"table,omitempty"`
	// contains filtered or unexported fields
}

Thrown when a query attempts to create a keyspace or table that already exists.

func (*AlreadyExists) Descriptor deprecated

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

Deprecated: Use AlreadyExists.ProtoReflect.Descriptor instead.

func (*AlreadyExists) GetKeyspace

func (x *AlreadyExists) GetKeyspace() string

func (*AlreadyExists) GetTable

func (x *AlreadyExists) GetTable() string

func (*AlreadyExists) ProtoMessage

func (*AlreadyExists) ProtoMessage()

func (*AlreadyExists) ProtoReflect

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

func (*AlreadyExists) Reset

func (x *AlreadyExists) Reset()

func (*AlreadyExists) String

func (x *AlreadyExists) String() string

type Batch

type Batch struct {

	// The type of batch.
	Type Batch_Type `protobuf:"varint,1,opt,name=type,proto3,enum=stargate.Batch_Type" json:"type,omitempty"`
	// The CQL queries with their values.
	Queries []*BatchQuery `protobuf:"bytes,2,rep,name=queries,proto3" json:"queries,omitempty"`
	// The execution parameters for the batch.
	Parameters *BatchParameters `protobuf:"bytes,3,opt,name=parameters,proto3" json:"parameters,omitempty"`
	// contains filtered or unexported fields
}

A batch containing multiple CQL queries.

func (*Batch) Descriptor deprecated

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

Deprecated: Use Batch.ProtoReflect.Descriptor instead.

func (*Batch) GetParameters

func (x *Batch) GetParameters() *BatchParameters

func (*Batch) GetQueries

func (x *Batch) GetQueries() []*BatchQuery

func (*Batch) GetType

func (x *Batch) GetType() Batch_Type

func (*Batch) ProtoMessage

func (*Batch) ProtoMessage()

func (*Batch) ProtoReflect

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

func (*Batch) Reset

func (x *Batch) Reset()

func (*Batch) String

func (x *Batch) String() string

type BatchParameters

type BatchParameters struct {

	// The keyspace to use when schema element names in the queries (tables, UDTs, functions) are not
	// fully qualified.
	Keyspace *wrapperspb.StringValue `protobuf:"bytes,1,opt,name=keyspace,proto3" json:"keyspace,omitempty"`
	// The consistency level.
	// If unset, it defaults to LOCAL_QUORUM.
	Consistency *ConsistencyValue `protobuf:"bytes,2,opt,name=consistency,proto3" json:"consistency,omitempty"`
	// Whether the server should collect tracing information about the execution of the query.
	// If this is set, then a Traces message will be included in the Response message.
	Tracing bool `protobuf:"varint,3,opt,name=tracing,proto3" json:"tracing,omitempty"`
	// The query timestamp (in microseconds). This is used to order mutations on the server.
	// If unset, the server will assign one based on the time it received the batch.
	Timestamp *wrapperspb.Int64Value `protobuf:"bytes,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// The serial consistency level (if the batch contains lightweight transactions).
	// If unset, it defaults to SERIAL.
	SerialConsistency *ConsistencyValue `protobuf:"bytes,5,opt,name=serial_consistency,json=serialConsistency,proto3" json:"serial_consistency,omitempty"`
	// Forces the current time for the query (for testing purposes).
	// This affects TTL cell liveness in read queries and local deletion time for tombstones and TTL
	// cells in update requests.
	NowInSeconds *wrapperspb.Int32Value `protobuf:"bytes,6,opt,name=now_in_seconds,json=nowInSeconds,proto3" json:"now_in_seconds,omitempty"`
	// The consistency level to use to retrieve the query trace (if tracing is set).
	// If unset, it defaults to ONE.
	TracingConsistency *ConsistencyValue `protobuf:"bytes,7,opt,name=tracing_consistency,json=tracingConsistency,proto3" json:"tracing_consistency,omitempty"`
	// Whether to omit ResultSet.columns in the response.
	// This can be used to optimize response size when the client already knows that information.
	SkipMetadata bool `protobuf:"varint,8,opt,name=skip_metadata,json=skipMetadata,proto3" json:"skip_metadata,omitempty"`
	// contains filtered or unexported fields
}

The execution parameters for a Batch message.

func (*BatchParameters) Descriptor deprecated

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

Deprecated: Use BatchParameters.ProtoReflect.Descriptor instead.

func (*BatchParameters) GetConsistency

func (x *BatchParameters) GetConsistency() *ConsistencyValue

func (*BatchParameters) GetKeyspace

func (x *BatchParameters) GetKeyspace() *wrapperspb.StringValue

func (*BatchParameters) GetNowInSeconds

func (x *BatchParameters) GetNowInSeconds() *wrapperspb.Int32Value

func (*BatchParameters) GetSerialConsistency

func (x *BatchParameters) GetSerialConsistency() *ConsistencyValue

func (*BatchParameters) GetSkipMetadata

func (x *BatchParameters) GetSkipMetadata() bool

func (*BatchParameters) GetTimestamp

func (x *BatchParameters) GetTimestamp() *wrapperspb.Int64Value

func (*BatchParameters) GetTracing

func (x *BatchParameters) GetTracing() bool

func (*BatchParameters) GetTracingConsistency

func (x *BatchParameters) GetTracingConsistency() *ConsistencyValue

func (*BatchParameters) ProtoMessage

func (*BatchParameters) ProtoMessage()

func (*BatchParameters) ProtoReflect

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

func (*BatchParameters) Reset

func (x *BatchParameters) Reset()

func (*BatchParameters) String

func (x *BatchParameters) String() string

type BatchQuery

type BatchQuery struct {

	// The query string. It can contain anonymous placeholders identified by a question mark (?), or
	// named placeholders prefixed by a column (:name).
	Cql string `protobuf:"bytes,1,opt,name=cql,proto3" json:"cql,omitempty"`
	// The values to fill the placeholders in the query string.
	Values *Values `protobuf:"bytes,2,opt,name=values,proto3" json:"values,omitempty"`
	// contains filtered or unexported fields
}

A query inside of a Batch message.

func (*BatchQuery) Descriptor deprecated

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

Deprecated: Use BatchQuery.ProtoReflect.Descriptor instead.

func (*BatchQuery) GetCql

func (x *BatchQuery) GetCql() string

func (*BatchQuery) GetValues

func (x *BatchQuery) GetValues() *Values

func (*BatchQuery) ProtoMessage

func (*BatchQuery) ProtoMessage()

func (*BatchQuery) ProtoReflect

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

func (*BatchQuery) Reset

func (x *BatchQuery) Reset()

func (*BatchQuery) String

func (x *BatchQuery) String() string

type Batch_Type

type Batch_Type int32
const (
	// A logged batch: Cassandra will first write the batch to its distributed batch log to ensure
	// the atomicity of the batch (atomicity meaning that if any statement in the batch succeeds,
	// all will eventually succeed).
	Batch_LOGGED Batch_Type = 0
	// A batch that doesn't use Cassandra's distributed batch log. Such batch are not guaranteed to
	// be atomic.
	Batch_UNLOGGED Batch_Type = 1
	// A counter batch. Note that such batch is the only type that can contain counter operations
	// and it can only contain these.
	Batch_COUNTER Batch_Type = 2
)

func (Batch_Type) Descriptor

func (Batch_Type) Descriptor() protoreflect.EnumDescriptor

func (Batch_Type) Enum

func (x Batch_Type) Enum() *Batch_Type

func (Batch_Type) EnumDescriptor deprecated

func (Batch_Type) EnumDescriptor() ([]byte, []int)

Deprecated: Use Batch_Type.Descriptor instead.

func (Batch_Type) Number

func (x Batch_Type) Number() protoreflect.EnumNumber

func (Batch_Type) String

func (x Batch_Type) String() string

func (Batch_Type) Type

type CasWriteUnknown

type CasWriteUnknown struct {

	// The consistency level of the operation that failed.
	Consistency Consistency `protobuf:"varint,1,opt,name=consistency,proto3,enum=stargate.Consistency" json:"consistency,omitempty"`
	// The number of replica that had acknowledged/responded to the operation before it failed.
	Received int32 `protobuf:"varint,2,opt,name=received,proto3" json:"received,omitempty"`
	// The minimum number of replica acknowledgements/responses that were required to fulfill the
	// operation.
	BlockFor int32 `protobuf:"varint,3,opt,name=block_for,json=blockFor,proto3" json:"block_for,omitempty"`
	// contains filtered or unexported fields
}

An exception occured due to a contended Compare And Set write/update. The CAS operation was only partially completed and the operation may or may not get completed by the contending CAS write or SERIAL/LOCAL_SERIAL read.

func (*CasWriteUnknown) Descriptor deprecated

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

Deprecated: Use CasWriteUnknown.ProtoReflect.Descriptor instead.

func (*CasWriteUnknown) GetBlockFor

func (x *CasWriteUnknown) GetBlockFor() int32

func (*CasWriteUnknown) GetConsistency

func (x *CasWriteUnknown) GetConsistency() Consistency

func (*CasWriteUnknown) GetReceived

func (x *CasWriteUnknown) GetReceived() int32

func (*CasWriteUnknown) ProtoMessage

func (*CasWriteUnknown) ProtoMessage()

func (*CasWriteUnknown) ProtoReflect

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

func (*CasWriteUnknown) Reset

func (x *CasWriteUnknown) Reset()

func (*CasWriteUnknown) String

func (x *CasWriteUnknown) String() string

type Collection

type Collection struct {
	Elements []*Value `protobuf:"bytes,1,rep,name=elements,proto3" json:"elements,omitempty"`
	// contains filtered or unexported fields
}

A CQL value for a collection type. For lists, sets and tuples, this contains the collection elements. For maps, this contains the key and values in order (e.g. key1, value1, key2, value2...)

func (*Collection) Descriptor deprecated

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

Deprecated: Use Collection.ProtoReflect.Descriptor instead.

func (*Collection) GetElements

func (x *Collection) GetElements() []*Value

func (*Collection) ProtoMessage

func (*Collection) ProtoMessage()

func (*Collection) ProtoReflect

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

func (*Collection) Reset

func (x *Collection) Reset()

func (*Collection) String

func (x *Collection) String() string

type ColumnSpec

type ColumnSpec struct {

	// The CQL type.
	Type *TypeSpec `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	// The name.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

Metadata about a CQL column.

func (*ColumnSpec) Descriptor deprecated

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

Deprecated: Use ColumnSpec.ProtoReflect.Descriptor instead.

func (*ColumnSpec) GetName

func (x *ColumnSpec) GetName() string

func (*ColumnSpec) GetType

func (x *ColumnSpec) GetType() *TypeSpec

func (*ColumnSpec) ProtoMessage

func (*ColumnSpec) ProtoMessage()

func (*ColumnSpec) ProtoReflect

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

func (*ColumnSpec) Reset

func (x *ColumnSpec) Reset()

func (*ColumnSpec) String

func (x *ColumnSpec) String() string

type Consistency

type Consistency int32

The consistency level used to execute a request.

const (
	Consistency_ANY          Consistency = 0
	Consistency_ONE          Consistency = 1
	Consistency_TWO          Consistency = 2
	Consistency_THREE        Consistency = 3
	Consistency_QUORUM       Consistency = 4
	Consistency_ALL          Consistency = 5
	Consistency_LOCAL_QUORUM Consistency = 6
	Consistency_EACH_QUORUM  Consistency = 7
	Consistency_SERIAL       Consistency = 8
	Consistency_LOCAL_SERIAL Consistency = 9
	Consistency_LOCAL_ONE    Consistency = 10
)

func (Consistency) Descriptor

func (Consistency) Enum

func (x Consistency) Enum() *Consistency

func (Consistency) EnumDescriptor deprecated

func (Consistency) EnumDescriptor() ([]byte, []int)

Deprecated: Use Consistency.Descriptor instead.

func (Consistency) Number

func (x Consistency) Number() protoreflect.EnumNumber

func (Consistency) String

func (x Consistency) String() string

func (Consistency) Type

type ConsistencyValue

type ConsistencyValue struct {
	Value Consistency `protobuf:"varint,1,opt,name=value,proto3,enum=stargate.Consistency" json:"value,omitempty"`
	// contains filtered or unexported fields
}

A wrapper message for Consistency, for cases where the consistency level can be unset.

func (*ConsistencyValue) Descriptor deprecated

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

Deprecated: Use ConsistencyValue.ProtoReflect.Descriptor instead.

func (*ConsistencyValue) GetValue

func (x *ConsistencyValue) GetValue() Consistency

func (*ConsistencyValue) ProtoMessage

func (*ConsistencyValue) ProtoMessage()

func (*ConsistencyValue) ProtoReflect

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

func (*ConsistencyValue) Reset

func (x *ConsistencyValue) Reset()

func (*ConsistencyValue) String

func (x *ConsistencyValue) String() string

type Decimal

type Decimal struct {
	Scale uint32 `protobuf:"varint,1,opt,name=scale,proto3" json:"scale,omitempty"`
	Value []byte `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*Decimal) Descriptor deprecated

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

Deprecated: Use Decimal.ProtoReflect.Descriptor instead.

func (*Decimal) GetScale

func (x *Decimal) GetScale() uint32

func (*Decimal) GetValue

func (x *Decimal) GetValue() []byte

func (*Decimal) ProtoMessage

func (*Decimal) ProtoMessage()

func (*Decimal) ProtoReflect

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

func (*Decimal) Reset

func (x *Decimal) Reset()

func (*Decimal) String

func (x *Decimal) String() string

type FunctionFailure

type FunctionFailure struct {

	// The keyspace containing the function.
	Keyspace string `protobuf:"bytes,1,opt,name=keyspace,proto3" json:"keyspace,omitempty"`
	// The name of the function.
	Function string `protobuf:"bytes,2,opt,name=function,proto3" json:"function,omitempty"`
	// The CQL types of the arguments of the function.
	ArgTypes []string `protobuf:"bytes,3,rep,name=arg_types,json=argTypes,proto3" json:"arg_types,omitempty"`
	// contains filtered or unexported fields
}

An error during the execution of a CQL function.

func (*FunctionFailure) Descriptor deprecated

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

Deprecated: Use FunctionFailure.ProtoReflect.Descriptor instead.

func (*FunctionFailure) GetArgTypes

func (x *FunctionFailure) GetArgTypes() []string

func (*FunctionFailure) GetFunction

func (x *FunctionFailure) GetFunction() string

func (*FunctionFailure) GetKeyspace

func (x *FunctionFailure) GetKeyspace() string

func (*FunctionFailure) ProtoMessage

func (*FunctionFailure) ProtoMessage()

func (*FunctionFailure) ProtoReflect

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

func (*FunctionFailure) Reset

func (x *FunctionFailure) Reset()

func (*FunctionFailure) String

func (x *FunctionFailure) String() string

type Inet

type Inet struct {
	Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

Either an IPv4 or IPv6 address stored as either 4 or 16 bytes, respectively. The addresses are encoded using big-endian byte order.

func (*Inet) Descriptor deprecated

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

Deprecated: Use Inet.ProtoReflect.Descriptor instead.

func (*Inet) GetValue

func (x *Inet) GetValue() []byte

func (*Inet) ProtoMessage

func (*Inet) ProtoMessage()

func (*Inet) ProtoReflect

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

func (*Inet) Reset

func (x *Inet) Reset()

func (*Inet) String

func (x *Inet) String() string

type Query

type Query struct {

	// The query string. It can contain anonymous placeholders identified by a question mark (?), or
	// named placeholders prefixed by a column (:name).
	Cql string `protobuf:"bytes,1,opt,name=cql,proto3" json:"cql,omitempty"`
	// The values to fill the placeholders in the query string.
	Values *Values `protobuf:"bytes,2,opt,name=values,proto3" json:"values,omitempty"`
	// The execution parameters for the query.
	Parameters *QueryParameters `protobuf:"bytes,3,opt,name=parameters,proto3" json:"parameters,omitempty"`
	// contains filtered or unexported fields
}

A single CQL query.

func (*Query) Descriptor deprecated

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

Deprecated: Use Query.ProtoReflect.Descriptor instead.

func (*Query) GetCql

func (x *Query) GetCql() string

func (*Query) GetParameters

func (x *Query) GetParameters() *QueryParameters

func (*Query) GetValues

func (x *Query) GetValues() *Values

func (*Query) ProtoMessage

func (*Query) ProtoMessage()

func (*Query) ProtoReflect

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

func (*Query) Reset

func (x *Query) Reset()

func (*Query) String

func (x *Query) String() string

type QueryParameters

type QueryParameters struct {

	// The keyspace to use when schema element names in the query (tables, UDTs, functions) are not
	// fully qualified.
	Keyspace *wrapperspb.StringValue `protobuf:"bytes,1,opt,name=keyspace,proto3" json:"keyspace,omitempty"`
	// The consistency level.
	// If unset, it defaults to LOCAL_QUORUM.
	Consistency *ConsistencyValue `protobuf:"bytes,2,opt,name=consistency,proto3" json:"consistency,omitempty"`
	// The maximum number of rows that will be returned in the response. If there are more results,
	// the response will contain a paging state, and additional queries will be needed to retrieve
	// subsequent pages.
	// Note that this is only a suggestion, the server reserves the right to return slightly smaller
	// or bigger pages.
	// If unset, it defaults to 100.
	PageSize *wrapperspb.Int32Value `protobuf:"bytes,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// A paging state that indicates where to resume iteration in the result set. This is used to
	// retrieve the next page of data when the number of results exceeds the page size.
	// This should be filled with the value returned by the previous response (see
	// ResultSet.paging_state). It is an opaque binary string that is only intended to be collected,
	// stored and reused; any attempt to modify its contents or reuse it with a different statement
	// will yield unpredictable results.
	PagingState *wrapperspb.BytesValue `protobuf:"bytes,4,opt,name=paging_state,json=pagingState,proto3" json:"paging_state,omitempty"`
	// Whether the server should collect tracing information about the execution of the query.
	// If this is set, then a Traces message will be included in the Response message.
	Tracing bool `protobuf:"varint,5,opt,name=tracing,proto3" json:"tracing,omitempty"`
	// Whether to omit ResultSet.columns in the response.
	// This can be used to optimize response size when the client already knows that information (for
	// example when fetching multiple pages for the same query).
	SkipMetadata bool `protobuf:"varint,6,opt,name=skip_metadata,json=skipMetadata,proto3" json:"skip_metadata,omitempty"`
	// The query timestamp (in microseconds). This is used to order mutations on the server.
	// If unset, the server will assign one based on the time it received the query.
	Timestamp *wrapperspb.Int64Value `protobuf:"bytes,7,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// The serial consistency level (if the query is a lightweight transaction).
	// If unset, it defaults to SERIAL.
	SerialConsistency *ConsistencyValue `protobuf:"bytes,8,opt,name=serial_consistency,json=serialConsistency,proto3" json:"serial_consistency,omitempty"`
	// Forces the current time for the query (for testing purposes).
	// This affects TTL cell liveness in read queries and local deletion time for tombstones and TTL
	// cells in update requests.
	NowInSeconds *wrapperspb.Int32Value `protobuf:"bytes,9,opt,name=now_in_seconds,json=nowInSeconds,proto3" json:"now_in_seconds,omitempty"`
	// The consistency level to use to retrieve the query trace (if tracing is set).
	// If unset, it defaults to ONE.
	TracingConsistency *ConsistencyValue `protobuf:"bytes,10,opt,name=tracing_consistency,json=tracingConsistency,proto3" json:"tracing_consistency,omitempty"`
	// contains filtered or unexported fields
}

The execution parameters for a Query message.

func (*QueryParameters) Descriptor deprecated

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

Deprecated: Use QueryParameters.ProtoReflect.Descriptor instead.

func (*QueryParameters) GetConsistency

func (x *QueryParameters) GetConsistency() *ConsistencyValue

func (*QueryParameters) GetKeyspace

func (x *QueryParameters) GetKeyspace() *wrapperspb.StringValue

func (*QueryParameters) GetNowInSeconds

func (x *QueryParameters) GetNowInSeconds() *wrapperspb.Int32Value

func (*QueryParameters) GetPageSize

func (x *QueryParameters) GetPageSize() *wrapperspb.Int32Value

func (*QueryParameters) GetPagingState

func (x *QueryParameters) GetPagingState() *wrapperspb.BytesValue

func (*QueryParameters) GetSerialConsistency

func (x *QueryParameters) GetSerialConsistency() *ConsistencyValue

func (*QueryParameters) GetSkipMetadata

func (x *QueryParameters) GetSkipMetadata() bool

func (*QueryParameters) GetTimestamp

func (x *QueryParameters) GetTimestamp() *wrapperspb.Int64Value

func (*QueryParameters) GetTracing

func (x *QueryParameters) GetTracing() bool

func (*QueryParameters) GetTracingConsistency

func (x *QueryParameters) GetTracingConsistency() *ConsistencyValue

func (*QueryParameters) ProtoMessage

func (*QueryParameters) ProtoMessage()

func (*QueryParameters) ProtoReflect

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

func (*QueryParameters) Reset

func (x *QueryParameters) Reset()

func (*QueryParameters) String

func (x *QueryParameters) String() string

type ReadFailure

type ReadFailure struct {

	// The consistency level of the operation that failed.
	Consistency Consistency `protobuf:"varint,1,opt,name=consistency,proto3,enum=stargate.Consistency" json:"consistency,omitempty"`
	// The number of replica that had acknowledged/responded to the operation before it failed.
	Received int32 `protobuf:"varint,2,opt,name=received,proto3" json:"received,omitempty"`
	// The minimum number of replica acknowledgements/responses that were required to fulfill the
	// operation.
	BlockFor int32 `protobuf:"varint,3,opt,name=block_for,json=blockFor,proto3" json:"block_for,omitempty"`
	// The number of replicas that experienced a failure while executing the request.
	NumFailures int32 `protobuf:"varint,4,opt,name=num_failures,json=numFailures,proto3" json:"num_failures,omitempty"`
	// Whether the actual data was amongst the received replica responses.
	// During reads, Cassandra doesn't request data from every replica to minimize internal network
	// traffic. Instead, some replicas are only asked for a checksum of the data. A read timeout may
	// occur even if enough replicas have responded to fulfill the consistency level, if only checksum
	// responses have been received. This field allows to detect that case.
	DataPresent bool `protobuf:"varint,5,opt,name=data_present,json=dataPresent,proto3" json:"data_present,omitempty"`
	// contains filtered or unexported fields
}

A non-timeout error during a read query. This happens when some of the replicas that were contacted by the coordinator replied with an error.

func (*ReadFailure) Descriptor deprecated

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

Deprecated: Use ReadFailure.ProtoReflect.Descriptor instead.

func (*ReadFailure) GetBlockFor

func (x *ReadFailure) GetBlockFor() int32

func (*ReadFailure) GetConsistency

func (x *ReadFailure) GetConsistency() Consistency

func (*ReadFailure) GetDataPresent

func (x *ReadFailure) GetDataPresent() bool

func (*ReadFailure) GetNumFailures

func (x *ReadFailure) GetNumFailures() int32

func (*ReadFailure) GetReceived

func (x *ReadFailure) GetReceived() int32

func (*ReadFailure) ProtoMessage

func (*ReadFailure) ProtoMessage()

func (*ReadFailure) ProtoReflect

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

func (*ReadFailure) Reset

func (x *ReadFailure) Reset()

func (*ReadFailure) String

func (x *ReadFailure) String() string

type ReadTimeout

type ReadTimeout struct {

	// The consistency level of the operation that failed.
	Consistency Consistency `protobuf:"varint,1,opt,name=consistency,proto3,enum=stargate.Consistency" json:"consistency,omitempty"`
	// The number of replica that had acknowledged/responded to the operation before it failed.
	Received int32 `protobuf:"varint,2,opt,name=received,proto3" json:"received,omitempty"`
	// The minimum number of replica acknowledgements/responses that were required to fulfill the
	// operation.
	BlockFor int32 `protobuf:"varint,3,opt,name=block_for,json=blockFor,proto3" json:"block_for,omitempty"`
	// Whether the actual data was amongst the received replica responses.
	// During reads, Cassandra doesn't request data from every replica to minimize internal network
	// traffic. Instead, some replicas are only asked for a checksum of the data. A read timeout may
	// occur even if enough replicas have responded to fulfill the consistency level, if only checksum
	// responses have been received. This field allows to detect that case.
	DataPresent bool `protobuf:"varint,4,opt,name=data_present,json=dataPresent,proto3" json:"data_present,omitempty"`
	// contains filtered or unexported fields
}

A server-side timeout during a read query.

func (*ReadTimeout) Descriptor deprecated

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

Deprecated: Use ReadTimeout.ProtoReflect.Descriptor instead.

func (*ReadTimeout) GetBlockFor

func (x *ReadTimeout) GetBlockFor() int32

func (*ReadTimeout) GetConsistency

func (x *ReadTimeout) GetConsistency() Consistency

func (*ReadTimeout) GetDataPresent

func (x *ReadTimeout) GetDataPresent() bool

func (*ReadTimeout) GetReceived

func (x *ReadTimeout) GetReceived() int32

func (*ReadTimeout) ProtoMessage

func (*ReadTimeout) ProtoMessage()

func (*ReadTimeout) ProtoReflect

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

func (*ReadTimeout) Reset

func (x *ReadTimeout) Reset()

func (*ReadTimeout) String

func (x *ReadTimeout) String() string

type Response

type Response struct {

	// Types that are assignable to Result:
	//	*Response_ResultSet
	//	*Response_SchemaChange
	Result isResponse_Result `protobuf_oneof:"result"`
	// The server-side warnings for the query, if any.
	Warnings []string `protobuf:"bytes,2,rep,name=warnings,proto3" json:"warnings,omitempty"`
	// The tracing information, if it was requested for the query.
	Traces *Traces `protobuf:"bytes,3,opt,name=traces,proto3" json:"traces,omitempty"`
	// contains filtered or unexported fields
}

The response to a Query or Batch message.

func (*Response) Descriptor deprecated

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

Deprecated: Use Response.ProtoReflect.Descriptor instead.

func (*Response) GetResult

func (m *Response) GetResult() isResponse_Result

func (*Response) GetResultSet

func (x *Response) GetResultSet() *ResultSet

func (*Response) GetSchemaChange

func (x *Response) GetSchemaChange() *SchemaChange

func (*Response) GetTraces

func (x *Response) GetTraces() *Traces

func (*Response) GetWarnings

func (x *Response) GetWarnings() []string

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) ProtoReflect

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

func (*Response) Reset

func (x *Response) Reset()

func (*Response) String

func (x *Response) String() string

type Response_ResultSet

type Response_ResultSet struct {
	// The result data.
	ResultSet *ResultSet `protobuf:"bytes,1,opt,name=result_set,json=resultSet,proto3,oneof"`
}

type Response_SchemaChange

type Response_SchemaChange struct {
	// How the query changed the CQL schema.
	SchemaChange *SchemaChange `protobuf:"bytes,4,opt,name=schema_change,json=schemaChange,proto3,oneof"`
}

type ResultSet

type ResultSet struct {

	// Metadata about the columns that this result set contains.
	// This may be omitted if explicitly requested by the client (see QueryParameters.skip_metadata
	// and BatchParameters.skip_metadata).
	Columns []*ColumnSpec `protobuf:"bytes,1,rep,name=columns,proto3" json:"columns,omitempty"`
	// The rows of CQL data.
	Rows []*Row `protobuf:"bytes,2,rep,name=rows,proto3" json:"rows,omitempty"`
	// If there are more pages, a paging state that will allow the client to build a new query for the
	// next page.
	PagingState *wrapperspb.BytesValue `protobuf:"bytes,3,opt,name=paging_state,json=pagingState,proto3" json:"paging_state,omitempty"`
	// contains filtered or unexported fields
}

The data returned in response to a CQL query.

func (*ResultSet) Descriptor deprecated

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

Deprecated: Use ResultSet.ProtoReflect.Descriptor instead.

func (*ResultSet) GetColumns

func (x *ResultSet) GetColumns() []*ColumnSpec

func (*ResultSet) GetPagingState

func (x *ResultSet) GetPagingState() *wrapperspb.BytesValue

func (*ResultSet) GetRows

func (x *ResultSet) GetRows() []*Row

func (*ResultSet) ProtoMessage

func (*ResultSet) ProtoMessage()

func (*ResultSet) ProtoReflect

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

func (*ResultSet) Reset

func (x *ResultSet) Reset()

func (*ResultSet) String

func (x *ResultSet) String() string

type Row

type Row struct {

	// The values for the columns (in the same order as ResultSet.columns).
	Values []*Value `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
	// contains filtered or unexported fields
}

A single row in a result set.

func (*Row) Descriptor deprecated

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

Deprecated: Use Row.ProtoReflect.Descriptor instead.

func (*Row) GetValues

func (x *Row) GetValues() []*Value

func (*Row) ProtoMessage

func (*Row) ProtoMessage()

func (*Row) ProtoReflect

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

func (*Row) Reset

func (x *Row) Reset()

func (*Row) String

func (x *Row) String() string

type SchemaChange

type SchemaChange struct {

	// The nature of the change (created, updated or dropped).
	ChangeType SchemaChange_Type `protobuf:"varint,1,opt,name=change_type,json=changeType,proto3,enum=stargate.SchemaChange_Type" json:"change_type,omitempty"`
	// The type of schema object that was affected.
	Target SchemaChange_Target `protobuf:"varint,2,opt,name=target,proto3,enum=stargate.SchemaChange_Target" json:"target,omitempty"`
	// The name of the keyspace.
	Keyspace string `protobuf:"bytes,3,opt,name=keyspace,proto3" json:"keyspace,omitempty"`
	// If the target is a keyspace element (table, type, etc), its name.
	Name *wrapperspb.StringValue `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	// If the target is a function or aggregate, the CQL types of the arguments.
	ArgumentTypes []string `protobuf:"bytes,5,rep,name=argument_types,json=argumentTypes,proto3" json:"argument_types,omitempty"`
	// contains filtered or unexported fields
}

If a Query message is a DDL statement, this will be included in the Response to describe the how the CQL schema was impacted.

func (*SchemaChange) Descriptor deprecated

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

Deprecated: Use SchemaChange.ProtoReflect.Descriptor instead.

func (*SchemaChange) GetArgumentTypes

func (x *SchemaChange) GetArgumentTypes() []string

func (*SchemaChange) GetChangeType

func (x *SchemaChange) GetChangeType() SchemaChange_Type

func (*SchemaChange) GetKeyspace

func (x *SchemaChange) GetKeyspace() string

func (*SchemaChange) GetName

func (x *SchemaChange) GetName() *wrapperspb.StringValue

func (*SchemaChange) GetTarget

func (x *SchemaChange) GetTarget() SchemaChange_Target

func (*SchemaChange) ProtoMessage

func (*SchemaChange) ProtoMessage()

func (*SchemaChange) ProtoReflect

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

func (*SchemaChange) Reset

func (x *SchemaChange) Reset()

func (*SchemaChange) String

func (x *SchemaChange) String() string

type SchemaChange_Target

type SchemaChange_Target int32
const (
	SchemaChange_KEYSPACE  SchemaChange_Target = 0
	SchemaChange_TABLE     SchemaChange_Target = 1
	SchemaChange_TYPE      SchemaChange_Target = 2
	SchemaChange_FUNCTION  SchemaChange_Target = 3
	SchemaChange_AGGREGATE SchemaChange_Target = 4
)

func (SchemaChange_Target) Descriptor

func (SchemaChange_Target) Enum

func (SchemaChange_Target) EnumDescriptor deprecated

func (SchemaChange_Target) EnumDescriptor() ([]byte, []int)

Deprecated: Use SchemaChange_Target.Descriptor instead.

func (SchemaChange_Target) Number

func (SchemaChange_Target) String

func (x SchemaChange_Target) String() string

func (SchemaChange_Target) Type

type SchemaChange_Type

type SchemaChange_Type int32
const (
	SchemaChange_CREATED SchemaChange_Type = 0
	SchemaChange_UPDATED SchemaChange_Type = 1
	SchemaChange_DROPPED SchemaChange_Type = 2
)

func (SchemaChange_Type) Descriptor

func (SchemaChange_Type) Enum

func (SchemaChange_Type) EnumDescriptor deprecated

func (SchemaChange_Type) EnumDescriptor() ([]byte, []int)

Deprecated: Use SchemaChange_Type.Descriptor instead.

func (SchemaChange_Type) Number

func (SchemaChange_Type) String

func (x SchemaChange_Type) String() string

func (SchemaChange_Type) Type

type StargateClient

type StargateClient interface {
	// Executes a single CQL query.
	ExecuteQuery(ctx context.Context, in *Query, opts ...grpc.CallOption) (*Response, error)
	// Executes a batch of CQL queries.
	ExecuteBatch(ctx context.Context, in *Batch, opts ...grpc.CallOption) (*Response, error)
}

StargateClient is the client API for Stargate 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 NewStargateClient

func NewStargateClient(cc grpc.ClientConnInterface) StargateClient

type StargateServer

type StargateServer interface {
	// Executes a single CQL query.
	ExecuteQuery(context.Context, *Query) (*Response, error)
	// Executes a batch of CQL queries.
	ExecuteBatch(context.Context, *Batch) (*Response, error)
	// contains filtered or unexported methods
}

StargateServer is the server API for Stargate service. All implementations must embed UnimplementedStargateServer for forward compatibility

type Traces

type Traces struct {

	// A technical identifier for this trace.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// The server-side duration of the query (in microseconds).
	Duration int64 `protobuf:"varint,2,opt,name=duration,proto3" json:"duration,omitempty"`
	// The server-side timestamp of the start of the query.
	StartedAt int64           `protobuf:"varint,3,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"`
	Events    []*Traces_Event `protobuf:"bytes,4,rep,name=events,proto3" json:"events,omitempty"`
	// contains filtered or unexported fields
}

Tracing information, included in the Response when it was requested by the client (see QueryParameters.tracing or BatchParameters.tracing)

func (*Traces) Descriptor deprecated

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

Deprecated: Use Traces.ProtoReflect.Descriptor instead.

func (*Traces) GetDuration

func (x *Traces) GetDuration() int64

func (*Traces) GetEvents

func (x *Traces) GetEvents() []*Traces_Event

func (*Traces) GetId

func (x *Traces) GetId() string

func (*Traces) GetStartedAt

func (x *Traces) GetStartedAt() int64

func (*Traces) ProtoMessage

func (*Traces) ProtoMessage()

func (*Traces) ProtoReflect

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

func (*Traces) Reset

func (x *Traces) Reset()

func (*Traces) String

func (x *Traces) String() string

type Traces_Event

type Traces_Event struct {

	// Which activity the event corresponds to.
	Activity string `protobuf:"bytes,1,opt,name=activity,proto3" json:"activity,omitempty"`
	// Identifies the host having generated the event.
	Source string `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"`
	// The number of microseconds elapsed on the source when this event occurred since the moment
	// when the source started handling the query.
	SourceElapsed int64 `protobuf:"varint,3,opt,name=source_elapsed,json=sourceElapsed,proto3" json:"source_elapsed,omitempty"`
	// The name of the server thread on which this event occurred.
	Thread string `protobuf:"bytes,4,opt,name=thread,proto3" json:"thread,omitempty"`
	// A technical identifier for the event.
	EventId string `protobuf:"bytes,5,opt,name=event_id,json=eventId,proto3" json:"event_id,omitempty"`
	// contains filtered or unexported fields
}

An event in a query trace.

func (*Traces_Event) Descriptor deprecated

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

Deprecated: Use Traces_Event.ProtoReflect.Descriptor instead.

func (*Traces_Event) GetActivity

func (x *Traces_Event) GetActivity() string

func (*Traces_Event) GetEventId

func (x *Traces_Event) GetEventId() string

func (*Traces_Event) GetSource

func (x *Traces_Event) GetSource() string

func (*Traces_Event) GetSourceElapsed

func (x *Traces_Event) GetSourceElapsed() int64

func (*Traces_Event) GetThread

func (x *Traces_Event) GetThread() string

func (*Traces_Event) ProtoMessage

func (*Traces_Event) ProtoMessage()

func (*Traces_Event) ProtoReflect

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

func (*Traces_Event) Reset

func (x *Traces_Event) Reset()

func (*Traces_Event) String

func (x *Traces_Event) String() string

type TypeSpec

type TypeSpec struct {

	// Types that are assignable to Spec:
	//	*TypeSpec_Basic_
	//	*TypeSpec_Map_
	//	*TypeSpec_List_
	//	*TypeSpec_Set_
	//	*TypeSpec_Udt_
	//	*TypeSpec_Tuple_
	Spec isTypeSpec_Spec `protobuf_oneof:"spec"`
	// contains filtered or unexported fields
}

A CQL column type.

func (*TypeSpec) Descriptor deprecated

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

Deprecated: Use TypeSpec.ProtoReflect.Descriptor instead.

func (*TypeSpec) GetBasic

func (x *TypeSpec) GetBasic() TypeSpec_Basic

func (*TypeSpec) GetList

func (x *TypeSpec) GetList() *TypeSpec_List

func (*TypeSpec) GetMap

func (x *TypeSpec) GetMap() *TypeSpec_Map

func (*TypeSpec) GetSet

func (x *TypeSpec) GetSet() *TypeSpec_Set

func (*TypeSpec) GetSpec

func (m *TypeSpec) GetSpec() isTypeSpec_Spec

func (*TypeSpec) GetTuple

func (x *TypeSpec) GetTuple() *TypeSpec_Tuple

func (*TypeSpec) GetUdt

func (x *TypeSpec) GetUdt() *TypeSpec_Udt

func (*TypeSpec) ProtoMessage

func (*TypeSpec) ProtoMessage()

func (*TypeSpec) ProtoReflect

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

func (*TypeSpec) Reset

func (x *TypeSpec) Reset()

func (*TypeSpec) String

func (x *TypeSpec) String() string

type TypeSpec_Basic

type TypeSpec_Basic int32

A CQL primitive type.

const (
	TypeSpec_CUSTOM    TypeSpec_Basic = 0
	TypeSpec_ASCII     TypeSpec_Basic = 1
	TypeSpec_BIGINT    TypeSpec_Basic = 2
	TypeSpec_BLOB      TypeSpec_Basic = 3
	TypeSpec_BOOLEAN   TypeSpec_Basic = 4
	TypeSpec_COUNTER   TypeSpec_Basic = 5
	TypeSpec_DECIMAL   TypeSpec_Basic = 6
	TypeSpec_DOUBLE    TypeSpec_Basic = 7
	TypeSpec_FLOAT     TypeSpec_Basic = 8
	TypeSpec_INT       TypeSpec_Basic = 9
	TypeSpec_TEXT      TypeSpec_Basic = 10
	TypeSpec_TIMESTAMP TypeSpec_Basic = 11
	TypeSpec_UUID      TypeSpec_Basic = 12
	TypeSpec_VARCHAR   TypeSpec_Basic = 13
	TypeSpec_VARINT    TypeSpec_Basic = 14
	TypeSpec_TIMEUUID  TypeSpec_Basic = 15
	TypeSpec_INET      TypeSpec_Basic = 16
	TypeSpec_DATE      TypeSpec_Basic = 17
	TypeSpec_TIME      TypeSpec_Basic = 18
	TypeSpec_SMALLINT  TypeSpec_Basic = 19
	TypeSpec_TINYINT   TypeSpec_Basic = 20
)

func (TypeSpec_Basic) Descriptor

func (TypeSpec_Basic) Enum

func (x TypeSpec_Basic) Enum() *TypeSpec_Basic

func (TypeSpec_Basic) EnumDescriptor deprecated

func (TypeSpec_Basic) EnumDescriptor() ([]byte, []int)

Deprecated: Use TypeSpec_Basic.Descriptor instead.

func (TypeSpec_Basic) Number

func (TypeSpec_Basic) String

func (x TypeSpec_Basic) String() string

func (TypeSpec_Basic) Type

type TypeSpec_Basic_

type TypeSpec_Basic_ struct {
	Basic TypeSpec_Basic `protobuf:"varint,1,opt,name=basic,proto3,enum=stargate.TypeSpec_Basic,oneof"`
}

type TypeSpec_List

type TypeSpec_List struct {
	Element *TypeSpec `protobuf:"bytes,1,opt,name=element,proto3" json:"element,omitempty"`
	// contains filtered or unexported fields
}

func (*TypeSpec_List) Descriptor deprecated

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

Deprecated: Use TypeSpec_List.ProtoReflect.Descriptor instead.

func (*TypeSpec_List) GetElement

func (x *TypeSpec_List) GetElement() *TypeSpec

func (*TypeSpec_List) ProtoMessage

func (*TypeSpec_List) ProtoMessage()

func (*TypeSpec_List) ProtoReflect

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

func (*TypeSpec_List) Reset

func (x *TypeSpec_List) Reset()

func (*TypeSpec_List) String

func (x *TypeSpec_List) String() string

type TypeSpec_List_

type TypeSpec_List_ struct {
	List *TypeSpec_List `protobuf:"bytes,3,opt,name=list,proto3,oneof"`
}

type TypeSpec_Map

type TypeSpec_Map struct {
	Key   *TypeSpec `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value *TypeSpec `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*TypeSpec_Map) Descriptor deprecated

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

Deprecated: Use TypeSpec_Map.ProtoReflect.Descriptor instead.

func (*TypeSpec_Map) GetKey

func (x *TypeSpec_Map) GetKey() *TypeSpec

func (*TypeSpec_Map) GetValue

func (x *TypeSpec_Map) GetValue() *TypeSpec

func (*TypeSpec_Map) ProtoMessage

func (*TypeSpec_Map) ProtoMessage()

func (*TypeSpec_Map) ProtoReflect

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

func (*TypeSpec_Map) Reset

func (x *TypeSpec_Map) Reset()

func (*TypeSpec_Map) String

func (x *TypeSpec_Map) String() string

type TypeSpec_Map_

type TypeSpec_Map_ struct {
	Map *TypeSpec_Map `protobuf:"bytes,2,opt,name=map,proto3,oneof"`
}

type TypeSpec_Set

type TypeSpec_Set struct {
	Element *TypeSpec `protobuf:"bytes,1,opt,name=element,proto3" json:"element,omitempty"`
	// contains filtered or unexported fields
}

func (*TypeSpec_Set) Descriptor deprecated

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

Deprecated: Use TypeSpec_Set.ProtoReflect.Descriptor instead.

func (*TypeSpec_Set) GetElement

func (x *TypeSpec_Set) GetElement() *TypeSpec

func (*TypeSpec_Set) ProtoMessage

func (*TypeSpec_Set) ProtoMessage()

func (*TypeSpec_Set) ProtoReflect

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

func (*TypeSpec_Set) Reset

func (x *TypeSpec_Set) Reset()

func (*TypeSpec_Set) String

func (x *TypeSpec_Set) String() string

type TypeSpec_Set_

type TypeSpec_Set_ struct {
	Set *TypeSpec_Set `protobuf:"bytes,4,opt,name=set,proto3,oneof"`
}

type TypeSpec_Tuple

type TypeSpec_Tuple struct {
	Elements []*TypeSpec `protobuf:"bytes,1,rep,name=elements,proto3" json:"elements,omitempty"`
	// contains filtered or unexported fields
}

A CQL tuple: a collection of anonymous fields.

func (*TypeSpec_Tuple) Descriptor deprecated

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

Deprecated: Use TypeSpec_Tuple.ProtoReflect.Descriptor instead.

func (*TypeSpec_Tuple) GetElements

func (x *TypeSpec_Tuple) GetElements() []*TypeSpec

func (*TypeSpec_Tuple) ProtoMessage

func (*TypeSpec_Tuple) ProtoMessage()

func (*TypeSpec_Tuple) ProtoReflect

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

func (*TypeSpec_Tuple) Reset

func (x *TypeSpec_Tuple) Reset()

func (*TypeSpec_Tuple) String

func (x *TypeSpec_Tuple) String() string

type TypeSpec_Tuple_

type TypeSpec_Tuple_ struct {
	Tuple *TypeSpec_Tuple `protobuf:"bytes,6,opt,name=tuple,proto3,oneof"`
}

type TypeSpec_Udt

type TypeSpec_Udt struct {
	Fields map[string]*TypeSpec `` /* 153-byte string literal not displayed */
	// contains filtered or unexported fields
}

A CQL User-Defined type: a collection of named fields.

func (*TypeSpec_Udt) Descriptor deprecated

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

Deprecated: Use TypeSpec_Udt.ProtoReflect.Descriptor instead.

func (*TypeSpec_Udt) GetFields

func (x *TypeSpec_Udt) GetFields() map[string]*TypeSpec

func (*TypeSpec_Udt) ProtoMessage

func (*TypeSpec_Udt) ProtoMessage()

func (*TypeSpec_Udt) ProtoReflect

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

func (*TypeSpec_Udt) Reset

func (x *TypeSpec_Udt) Reset()

func (*TypeSpec_Udt) String

func (x *TypeSpec_Udt) String() string

type TypeSpec_Udt_

type TypeSpec_Udt_ struct {
	Udt *TypeSpec_Udt `protobuf:"bytes,5,opt,name=udt,proto3,oneof"`
}

type UdtValue

type UdtValue struct {
	Fields map[string]*Value `` /* 153-byte string literal not displayed */
	// contains filtered or unexported fields
}

A value for a CQL user-defined type.

func (*UdtValue) Descriptor deprecated

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

Deprecated: Use UdtValue.ProtoReflect.Descriptor instead.

func (*UdtValue) GetFields

func (x *UdtValue) GetFields() map[string]*Value

func (*UdtValue) ProtoMessage

func (*UdtValue) ProtoMessage()

func (*UdtValue) ProtoReflect

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

func (*UdtValue) Reset

func (x *UdtValue) Reset()

func (*UdtValue) String

func (x *UdtValue) String() string

type Unavailable

type Unavailable struct {

	// The consistency level of the operation that failed.
	Consistency Consistency `protobuf:"varint,1,opt,name=consistency,proto3,enum=stargate.Consistency" json:"consistency,omitempty"`
	// The number of replica acknowledgements/responses required to perform the operation (with its
	// required consistency level).
	Required int32 `protobuf:"varint,2,opt,name=required,proto3" json:"required,omitempty"`
	// The number of replicas that were known to be alive by the coordinator node when it tried to
	// execute the operation.
	Alive int32 `protobuf:"varint,3,opt,name=alive,proto3" json:"alive,omitempty"`
	// contains filtered or unexported fields
}

Thrown when the coordinator knows there is not enough replicas alive to perform a query with the requested consistency level.

func (*Unavailable) Descriptor deprecated

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

Deprecated: Use Unavailable.ProtoReflect.Descriptor instead.

func (*Unavailable) GetAlive

func (x *Unavailable) GetAlive() int32

func (*Unavailable) GetConsistency

func (x *Unavailable) GetConsistency() Consistency

func (*Unavailable) GetRequired

func (x *Unavailable) GetRequired() int32

func (*Unavailable) ProtoMessage

func (*Unavailable) ProtoMessage()

func (*Unavailable) ProtoReflect

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

func (*Unavailable) Reset

func (x *Unavailable) Reset()

func (*Unavailable) String

func (x *Unavailable) String() string

type UnimplementedStargateServer

type UnimplementedStargateServer struct {
}

UnimplementedStargateServer must be embedded to have forward compatible implementations.

func (UnimplementedStargateServer) ExecuteBatch

func (UnimplementedStargateServer) ExecuteQuery

type UnsafeStargateServer

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

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

type Uuid

type Uuid struct {
	Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

A 128-bit (16-byte) UUID type encoded using big-endian byte order. For example, the UUID "00112233-4455-6677-8899-aabbccddeeff" would be store as the bytes: | 0x00 0x11 0x22 0x33 0x44 0x55 0x66 0x77 0x88 0x99 0xAA 0xBB 0xCC 0xDD 0xEE 0xFF | | MSB LSB |

func (*Uuid) Descriptor deprecated

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

Deprecated: Use Uuid.ProtoReflect.Descriptor instead.

func (*Uuid) GetValue

func (x *Uuid) GetValue() []byte

func (*Uuid) ProtoMessage

func (*Uuid) ProtoMessage()

func (*Uuid) ProtoReflect

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

func (*Uuid) Reset

func (x *Uuid) Reset()

func (*Uuid) String

func (x *Uuid) String() string

type Value

type Value struct {

	// Types that are assignable to Inner:
	//	*Value_Null_
	//	*Value_Unset_
	//	*Value_Int
	//	*Value_Float
	//	*Value_Double
	//	*Value_Boolean
	//	*Value_String_
	//	*Value_Bytes
	//	*Value_Inet
	//	*Value_Uuid
	//	*Value_Date
	//	*Value_Time
	//	*Value_Collection
	//	*Value_Udt
	//	*Value_Varint
	//	*Value_Decimal
	Inner isValue_Inner `protobuf_oneof:"inner"`
	// contains filtered or unexported fields
}

A CQL value. This is used both in requests to bind parameterized query strings, and in responses to represent the result data.

func (*Value) Descriptor deprecated

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

Deprecated: Use Value.ProtoReflect.Descriptor instead.

func (*Value) GetBoolean

func (x *Value) GetBoolean() bool

func (*Value) GetBytes

func (x *Value) GetBytes() []byte

func (*Value) GetCollection

func (x *Value) GetCollection() *Collection

func (*Value) GetDate

func (x *Value) GetDate() uint32

func (*Value) GetDecimal

func (x *Value) GetDecimal() *Decimal

func (*Value) GetDouble

func (x *Value) GetDouble() float64

func (*Value) GetFloat

func (x *Value) GetFloat() float32

func (*Value) GetInet

func (x *Value) GetInet() *Inet

func (*Value) GetInner

func (m *Value) GetInner() isValue_Inner

func (*Value) GetInt

func (x *Value) GetInt() int64

func (*Value) GetNull

func (x *Value) GetNull() *Value_Null

func (*Value) GetString_

func (x *Value) GetString_() string

func (*Value) GetTime

func (x *Value) GetTime() uint64

func (*Value) GetUdt

func (x *Value) GetUdt() *UdtValue

func (*Value) GetUnset

func (x *Value) GetUnset() *Value_Unset

func (*Value) GetUuid

func (x *Value) GetUuid() *Uuid

func (*Value) GetVarint

func (x *Value) GetVarint() *Varint

func (*Value) ProtoMessage

func (*Value) ProtoMessage()

func (*Value) ProtoReflect

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

func (*Value) Reset

func (x *Value) Reset()

func (*Value) String

func (x *Value) String() string

type Value_Boolean

type Value_Boolean struct {
	// CQL types: boolean
	Boolean bool `protobuf:"varint,6,opt,name=boolean,proto3,oneof"`
}

type Value_Bytes

type Value_Bytes struct {
	// CQL types: blob, custom
	Bytes []byte `protobuf:"bytes,8,opt,name=bytes,proto3,oneof"`
}

type Value_Collection

type Value_Collection struct {
	// CQL types: list, set, map, tuple
	Collection *Collection `protobuf:"bytes,13,opt,name=collection,proto3,oneof"`
}

type Value_Date

type Value_Date struct {
	// CQL types: date
	// An unsigned integer representing days with Unix epoch (January, 1 1970) at 2^31.
	// Examples:
	// 0:    -5877641-06-23
	// 2^31: 1970-1-1
	// 2^32: 5881580-07-11
	Date uint32 `protobuf:"varint,11,opt,name=date,proto3,oneof"`
}

type Value_Decimal

type Value_Decimal struct {
	// CQL types: decimal
	Decimal *Decimal `protobuf:"bytes,16,opt,name=decimal,proto3,oneof"`
}

type Value_Double

type Value_Double struct {
	// CQL types: double
	Double float64 `protobuf:"fixed64,5,opt,name=double,proto3,oneof"`
}

type Value_Float

type Value_Float struct {
	// CQL types: float
	Float float32 `protobuf:"fixed32,4,opt,name=float,proto3,oneof"`
}

type Value_Inet

type Value_Inet struct {
	// CQL types: inet
	Inet *Inet `protobuf:"bytes,9,opt,name=inet,proto3,oneof"`
}

type Value_Int

type Value_Int struct {
	// CQL types: tinyint, smallint, int, bigint, counter, timestamp
	Int int64 `protobuf:"zigzag64,3,opt,name=int,proto3,oneof"`
}

type Value_Null

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

func (*Value_Null) Descriptor deprecated

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

Deprecated: Use Value_Null.ProtoReflect.Descriptor instead.

func (*Value_Null) ProtoMessage

func (*Value_Null) ProtoMessage()

func (*Value_Null) ProtoReflect

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

func (*Value_Null) Reset

func (x *Value_Null) Reset()

func (*Value_Null) String

func (x *Value_Null) String() string

type Value_Null_

type Value_Null_ struct {
	// The CQL value NULL.
	Null *Value_Null `protobuf:"bytes,1,opt,name=null,proto3,oneof"`
}

type Value_String_

type Value_String_ struct {
	// CQL types: ascii, varchar, text
	String_ string `protobuf:"bytes,7,opt,name=string,proto3,oneof"`
}

type Value_Time

type Value_Time struct {
	// CQL types: time
	// An unsigned integer representing the number of nanoseconds since midnight. Valid values are
	// in the range 0 to 86399999999999 (inclusive).
	Time uint64 `protobuf:"varint,12,opt,name=time,proto3,oneof"`
}

type Value_Udt

type Value_Udt struct {
	// CQL types: user defined types
	Udt *UdtValue `protobuf:"bytes,14,opt,name=udt,proto3,oneof"`
}

type Value_Unset

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

func (*Value_Unset) Descriptor deprecated

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

Deprecated: Use Value_Unset.ProtoReflect.Descriptor instead.

func (*Value_Unset) ProtoMessage

func (*Value_Unset) ProtoMessage()

func (*Value_Unset) ProtoReflect

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

func (*Value_Unset) Reset

func (x *Value_Unset) Reset()

func (*Value_Unset) String

func (x *Value_Unset) String() string

type Value_Unset_

type Value_Unset_ struct {
	// An unset value.
	// This can only be used for bind values in requests.
	Unset *Value_Unset `protobuf:"bytes,2,opt,name=unset,proto3,oneof"`
}

type Value_Uuid

type Value_Uuid struct {
	// CQL types: uuid, timeuuid
	Uuid *Uuid `protobuf:"bytes,10,opt,name=uuid,proto3,oneof"`
}

type Value_Varint

type Value_Varint struct {
	// CQL types: varint
	Varint *Varint `protobuf:"bytes,15,opt,name=varint,proto3,oneof"`
}

type Values

type Values struct {

	// The values.
	Values []*Value `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
	// The value names, if the query uses named placeholders.
	ValueNames []string `protobuf:"bytes,2,rep,name=value_names,json=valueNames,proto3" json:"value_names,omitempty"`
	// contains filtered or unexported fields
}

The values to bind to the placeholders in a query.

func (*Values) Descriptor deprecated

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

Deprecated: Use Values.ProtoReflect.Descriptor instead.

func (*Values) GetValueNames

func (x *Values) GetValueNames() []string

func (*Values) GetValues

func (x *Values) GetValues() []*Value

func (*Values) ProtoMessage

func (*Values) ProtoMessage()

func (*Values) ProtoReflect

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

func (*Values) Reset

func (x *Values) Reset()

func (*Values) String

func (x *Values) String() string

type Varint

type Varint struct {
	Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*Varint) Descriptor deprecated

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

Deprecated: Use Varint.ProtoReflect.Descriptor instead.

func (*Varint) GetValue

func (x *Varint) GetValue() []byte

func (*Varint) ProtoMessage

func (*Varint) ProtoMessage()

func (*Varint) ProtoReflect

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

func (*Varint) Reset

func (x *Varint) Reset()

func (*Varint) String

func (x *Varint) String() string

type WriteFailure

type WriteFailure struct {

	// The consistency level of the operation that failed.
	Consistency Consistency `protobuf:"varint,1,opt,name=consistency,proto3,enum=stargate.Consistency" json:"consistency,omitempty"`
	// The number of replica that had acknowledged/responded to the operation before it failed.
	Received int32 `protobuf:"varint,2,opt,name=received,proto3" json:"received,omitempty"`
	// The minimum number of replica acknowledgements/responses that were required to fulfill the
	// operation.
	BlockFor int32 `protobuf:"varint,3,opt,name=block_for,json=blockFor,proto3" json:"block_for,omitempty"`
	// The number of replicas that experienced a failure while executing the request.
	NumFailures int32 `protobuf:"varint,4,opt,name=num_failures,json=numFailures,proto3" json:"num_failures,omitempty"`
	// The type of the write for which an error was raised.
	WriteType string `protobuf:"bytes,5,opt,name=write_type,json=writeType,proto3" json:"write_type,omitempty"`
	// contains filtered or unexported fields
}

A non-timeout error during a write query. This happens when some of the replicas that were contacted by the coordinator replied with an error.

func (*WriteFailure) Descriptor deprecated

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

Deprecated: Use WriteFailure.ProtoReflect.Descriptor instead.

func (*WriteFailure) GetBlockFor

func (x *WriteFailure) GetBlockFor() int32

func (*WriteFailure) GetConsistency

func (x *WriteFailure) GetConsistency() Consistency

func (*WriteFailure) GetNumFailures

func (x *WriteFailure) GetNumFailures() int32

func (*WriteFailure) GetReceived

func (x *WriteFailure) GetReceived() int32

func (*WriteFailure) GetWriteType

func (x *WriteFailure) GetWriteType() string

func (*WriteFailure) ProtoMessage

func (*WriteFailure) ProtoMessage()

func (*WriteFailure) ProtoReflect

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

func (*WriteFailure) Reset

func (x *WriteFailure) Reset()

func (*WriteFailure) String

func (x *WriteFailure) String() string

type WriteTimeout

type WriteTimeout struct {

	// The consistency level of the operation that failed.
	Consistency Consistency `protobuf:"varint,1,opt,name=consistency,proto3,enum=stargate.Consistency" json:"consistency,omitempty"`
	// The number of replica that had acknowledged/responded to the operation before it failed.
	Received int32 `protobuf:"varint,2,opt,name=received,proto3" json:"received,omitempty"`
	// The minimum number of replica acknowledgements/responses that were required to fulfill the
	// operation.
	BlockFor int32 `protobuf:"varint,3,opt,name=block_for,json=blockFor,proto3" json:"block_for,omitempty"`
	// The type of the write for which a timeout was raised.
	WriteType string `protobuf:"bytes,4,opt,name=write_type,json=writeType,proto3" json:"write_type,omitempty"`
	// contains filtered or unexported fields
}

A server-side timeout during a write query.

func (*WriteTimeout) Descriptor deprecated

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

Deprecated: Use WriteTimeout.ProtoReflect.Descriptor instead.

func (*WriteTimeout) GetBlockFor

func (x *WriteTimeout) GetBlockFor() int32

func (*WriteTimeout) GetConsistency

func (x *WriteTimeout) GetConsistency() Consistency

func (*WriteTimeout) GetReceived

func (x *WriteTimeout) GetReceived() int32

func (*WriteTimeout) GetWriteType

func (x *WriteTimeout) GetWriteType() string

func (*WriteTimeout) ProtoMessage

func (*WriteTimeout) ProtoMessage()

func (*WriteTimeout) ProtoReflect

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

func (*WriteTimeout) Reset

func (x *WriteTimeout) Reset()

func (*WriteTimeout) String

func (x *WriteTimeout) String() string

Jump to

Keyboard shortcuts

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