chore: seperate auth header to a message (#10)
This commit is contained in:
+338
-94
@@ -29,8 +29,8 @@ type RequestHeader struct {
|
|||||||
Catalog string `protobuf:"bytes,1,opt,name=catalog,proto3" json:"catalog,omitempty"`
|
Catalog string `protobuf:"bytes,1,opt,name=catalog,proto3" json:"catalog,omitempty"`
|
||||||
// The `schema` that is selected to be used in this request.
|
// The `schema` that is selected to be used in this request.
|
||||||
Schema string `protobuf:"bytes,2,opt,name=schema,proto3" json:"schema,omitempty"`
|
Schema string `protobuf:"bytes,2,opt,name=schema,proto3" json:"schema,omitempty"`
|
||||||
// The `authorization` header string, much like http's authorization header.
|
// The `authorization` header, much like http's authorization header.
|
||||||
Authorization string `protobuf:"bytes,3,opt,name=authorization,proto3" json:"authorization,omitempty"`
|
Authorization *AuthHeader `protobuf:"bytes,3,opt,name=authorization,proto3" json:"authorization,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *RequestHeader) Reset() {
|
func (x *RequestHeader) Reset() {
|
||||||
@@ -79,10 +79,193 @@ func (x *RequestHeader) GetSchema() string {
|
|||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *RequestHeader) GetAuthorization() string {
|
func (x *RequestHeader) GetAuthorization() *AuthHeader {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.Authorization
|
return x.Authorization
|
||||||
}
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
type AuthHeader struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
// Types that are assignable to AuthScheme:
|
||||||
|
//
|
||||||
|
// *AuthHeader_Basic
|
||||||
|
// *AuthHeader_Token
|
||||||
|
AuthScheme isAuthHeader_AuthScheme `protobuf_oneof:"auth_scheme"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *AuthHeader) Reset() {
|
||||||
|
*x = AuthHeader{}
|
||||||
|
if protoimpl.UnsafeEnabled {
|
||||||
|
mi := &file_greptime_v1_database_proto_msgTypes[1]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *AuthHeader) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*AuthHeader) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *AuthHeader) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_greptime_v1_database_proto_msgTypes[1]
|
||||||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
if ms.LoadMessageInfo() == nil {
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
return ms
|
||||||
|
}
|
||||||
|
return mi.MessageOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Deprecated: Use AuthHeader.ProtoReflect.Descriptor instead.
|
||||||
|
func (*AuthHeader) Descriptor() ([]byte, []int) {
|
||||||
|
return file_greptime_v1_database_proto_rawDescGZIP(), []int{1}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m *AuthHeader) GetAuthScheme() isAuthHeader_AuthScheme {
|
||||||
|
if m != nil {
|
||||||
|
return m.AuthScheme
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *AuthHeader) GetBasic() *Basic {
|
||||||
|
if x, ok := x.GetAuthScheme().(*AuthHeader_Basic); ok {
|
||||||
|
return x.Basic
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *AuthHeader) GetToken() *Token {
|
||||||
|
if x, ok := x.GetAuthScheme().(*AuthHeader_Token); ok {
|
||||||
|
return x.Token
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
type isAuthHeader_AuthScheme interface {
|
||||||
|
isAuthHeader_AuthScheme()
|
||||||
|
}
|
||||||
|
|
||||||
|
type AuthHeader_Basic struct {
|
||||||
|
Basic *Basic `protobuf:"bytes,1,opt,name=basic,proto3,oneof"`
|
||||||
|
}
|
||||||
|
|
||||||
|
type AuthHeader_Token struct {
|
||||||
|
Token *Token `protobuf:"bytes,2,opt,name=token,proto3,oneof"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*AuthHeader_Basic) isAuthHeader_AuthScheme() {}
|
||||||
|
|
||||||
|
func (*AuthHeader_Token) isAuthHeader_AuthScheme() {}
|
||||||
|
|
||||||
|
type Basic struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
|
||||||
|
Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *Basic) Reset() {
|
||||||
|
*x = Basic{}
|
||||||
|
if protoimpl.UnsafeEnabled {
|
||||||
|
mi := &file_greptime_v1_database_proto_msgTypes[2]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *Basic) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*Basic) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *Basic) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_greptime_v1_database_proto_msgTypes[2]
|
||||||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
if ms.LoadMessageInfo() == nil {
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
return ms
|
||||||
|
}
|
||||||
|
return mi.MessageOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Deprecated: Use Basic.ProtoReflect.Descriptor instead.
|
||||||
|
func (*Basic) Descriptor() ([]byte, []int) {
|
||||||
|
return file_greptime_v1_database_proto_rawDescGZIP(), []int{2}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *Basic) GetUsername() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.Username
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *Basic) GetPassword() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.Password
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
type Token struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *Token) Reset() {
|
||||||
|
*x = Token{}
|
||||||
|
if protoimpl.UnsafeEnabled {
|
||||||
|
mi := &file_greptime_v1_database_proto_msgTypes[3]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *Token) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*Token) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *Token) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_greptime_v1_database_proto_msgTypes[3]
|
||||||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
if ms.LoadMessageInfo() == nil {
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
return ms
|
||||||
|
}
|
||||||
|
return mi.MessageOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Deprecated: Use Token.ProtoReflect.Descriptor instead.
|
||||||
|
func (*Token) Descriptor() ([]byte, []int) {
|
||||||
|
return file_greptime_v1_database_proto_rawDescGZIP(), []int{3}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *Token) GetToken() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.Token
|
||||||
|
}
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -103,7 +286,7 @@ type GreptimeRequest struct {
|
|||||||
func (x *GreptimeRequest) Reset() {
|
func (x *GreptimeRequest) Reset() {
|
||||||
*x = GreptimeRequest{}
|
*x = GreptimeRequest{}
|
||||||
if protoimpl.UnsafeEnabled {
|
if protoimpl.UnsafeEnabled {
|
||||||
mi := &file_greptime_v1_database_proto_msgTypes[1]
|
mi := &file_greptime_v1_database_proto_msgTypes[4]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
@@ -116,7 +299,7 @@ func (x *GreptimeRequest) String() string {
|
|||||||
func (*GreptimeRequest) ProtoMessage() {}
|
func (*GreptimeRequest) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *GreptimeRequest) ProtoReflect() protoreflect.Message {
|
func (x *GreptimeRequest) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_greptime_v1_database_proto_msgTypes[1]
|
mi := &file_greptime_v1_database_proto_msgTypes[4]
|
||||||
if protoimpl.UnsafeEnabled && x != nil {
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
@@ -129,7 +312,7 @@ func (x *GreptimeRequest) ProtoReflect() protoreflect.Message {
|
|||||||
|
|
||||||
// Deprecated: Use GreptimeRequest.ProtoReflect.Descriptor instead.
|
// Deprecated: Use GreptimeRequest.ProtoReflect.Descriptor instead.
|
||||||
func (*GreptimeRequest) Descriptor() ([]byte, []int) {
|
func (*GreptimeRequest) Descriptor() ([]byte, []int) {
|
||||||
return file_greptime_v1_database_proto_rawDescGZIP(), []int{1}
|
return file_greptime_v1_database_proto_rawDescGZIP(), []int{4}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *GreptimeRequest) GetHeader() *RequestHeader {
|
func (x *GreptimeRequest) GetHeader() *RequestHeader {
|
||||||
@@ -204,7 +387,7 @@ type QueryRequest struct {
|
|||||||
func (x *QueryRequest) Reset() {
|
func (x *QueryRequest) Reset() {
|
||||||
*x = QueryRequest{}
|
*x = QueryRequest{}
|
||||||
if protoimpl.UnsafeEnabled {
|
if protoimpl.UnsafeEnabled {
|
||||||
mi := &file_greptime_v1_database_proto_msgTypes[2]
|
mi := &file_greptime_v1_database_proto_msgTypes[5]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
@@ -217,7 +400,7 @@ func (x *QueryRequest) String() string {
|
|||||||
func (*QueryRequest) ProtoMessage() {}
|
func (*QueryRequest) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *QueryRequest) ProtoReflect() protoreflect.Message {
|
func (x *QueryRequest) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_greptime_v1_database_proto_msgTypes[2]
|
mi := &file_greptime_v1_database_proto_msgTypes[5]
|
||||||
if protoimpl.UnsafeEnabled && x != nil {
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
@@ -230,7 +413,7 @@ func (x *QueryRequest) ProtoReflect() protoreflect.Message {
|
|||||||
|
|
||||||
// Deprecated: Use QueryRequest.ProtoReflect.Descriptor instead.
|
// Deprecated: Use QueryRequest.ProtoReflect.Descriptor instead.
|
||||||
func (*QueryRequest) Descriptor() ([]byte, []int) {
|
func (*QueryRequest) Descriptor() ([]byte, []int) {
|
||||||
return file_greptime_v1_database_proto_rawDescGZIP(), []int{2}
|
return file_greptime_v1_database_proto_rawDescGZIP(), []int{5}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *QueryRequest) GetQuery() isQueryRequest_Query {
|
func (m *QueryRequest) GetQuery() isQueryRequest_Query {
|
||||||
@@ -289,7 +472,7 @@ type InsertRequest struct {
|
|||||||
func (x *InsertRequest) Reset() {
|
func (x *InsertRequest) Reset() {
|
||||||
*x = InsertRequest{}
|
*x = InsertRequest{}
|
||||||
if protoimpl.UnsafeEnabled {
|
if protoimpl.UnsafeEnabled {
|
||||||
mi := &file_greptime_v1_database_proto_msgTypes[3]
|
mi := &file_greptime_v1_database_proto_msgTypes[6]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
@@ -302,7 +485,7 @@ func (x *InsertRequest) String() string {
|
|||||||
func (*InsertRequest) ProtoMessage() {}
|
func (*InsertRequest) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *InsertRequest) ProtoReflect() protoreflect.Message {
|
func (x *InsertRequest) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_greptime_v1_database_proto_msgTypes[3]
|
mi := &file_greptime_v1_database_proto_msgTypes[6]
|
||||||
if protoimpl.UnsafeEnabled && x != nil {
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
@@ -315,7 +498,7 @@ func (x *InsertRequest) ProtoReflect() protoreflect.Message {
|
|||||||
|
|
||||||
// Deprecated: Use InsertRequest.ProtoReflect.Descriptor instead.
|
// Deprecated: Use InsertRequest.ProtoReflect.Descriptor instead.
|
||||||
func (*InsertRequest) Descriptor() ([]byte, []int) {
|
func (*InsertRequest) Descriptor() ([]byte, []int) {
|
||||||
return file_greptime_v1_database_proto_rawDescGZIP(), []int{3}
|
return file_greptime_v1_database_proto_rawDescGZIP(), []int{6}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *InsertRequest) GetTableName() string {
|
func (x *InsertRequest) GetTableName() string {
|
||||||
@@ -357,7 +540,7 @@ type AffectedRows struct {
|
|||||||
func (x *AffectedRows) Reset() {
|
func (x *AffectedRows) Reset() {
|
||||||
*x = AffectedRows{}
|
*x = AffectedRows{}
|
||||||
if protoimpl.UnsafeEnabled {
|
if protoimpl.UnsafeEnabled {
|
||||||
mi := &file_greptime_v1_database_proto_msgTypes[4]
|
mi := &file_greptime_v1_database_proto_msgTypes[7]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
@@ -370,7 +553,7 @@ func (x *AffectedRows) String() string {
|
|||||||
func (*AffectedRows) ProtoMessage() {}
|
func (*AffectedRows) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *AffectedRows) ProtoReflect() protoreflect.Message {
|
func (x *AffectedRows) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_greptime_v1_database_proto_msgTypes[4]
|
mi := &file_greptime_v1_database_proto_msgTypes[7]
|
||||||
if protoimpl.UnsafeEnabled && x != nil {
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
@@ -383,7 +566,7 @@ func (x *AffectedRows) ProtoReflect() protoreflect.Message {
|
|||||||
|
|
||||||
// Deprecated: Use AffectedRows.ProtoReflect.Descriptor instead.
|
// Deprecated: Use AffectedRows.ProtoReflect.Descriptor instead.
|
||||||
func (*AffectedRows) Descriptor() ([]byte, []int) {
|
func (*AffectedRows) Descriptor() ([]byte, []int) {
|
||||||
return file_greptime_v1_database_proto_rawDescGZIP(), []int{4}
|
return file_greptime_v1_database_proto_rawDescGZIP(), []int{7}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *AffectedRows) GetValue() uint32 {
|
func (x *AffectedRows) GetValue() uint32 {
|
||||||
@@ -404,7 +587,7 @@ type FlightMetadata struct {
|
|||||||
func (x *FlightMetadata) Reset() {
|
func (x *FlightMetadata) Reset() {
|
||||||
*x = FlightMetadata{}
|
*x = FlightMetadata{}
|
||||||
if protoimpl.UnsafeEnabled {
|
if protoimpl.UnsafeEnabled {
|
||||||
mi := &file_greptime_v1_database_proto_msgTypes[5]
|
mi := &file_greptime_v1_database_proto_msgTypes[8]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
@@ -417,7 +600,7 @@ func (x *FlightMetadata) String() string {
|
|||||||
func (*FlightMetadata) ProtoMessage() {}
|
func (*FlightMetadata) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *FlightMetadata) ProtoReflect() protoreflect.Message {
|
func (x *FlightMetadata) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_greptime_v1_database_proto_msgTypes[5]
|
mi := &file_greptime_v1_database_proto_msgTypes[8]
|
||||||
if protoimpl.UnsafeEnabled && x != nil {
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
@@ -430,7 +613,7 @@ func (x *FlightMetadata) ProtoReflect() protoreflect.Message {
|
|||||||
|
|
||||||
// Deprecated: Use FlightMetadata.ProtoReflect.Descriptor instead.
|
// Deprecated: Use FlightMetadata.ProtoReflect.Descriptor instead.
|
||||||
func (*FlightMetadata) Descriptor() ([]byte, []int) {
|
func (*FlightMetadata) Descriptor() ([]byte, []int) {
|
||||||
return file_greptime_v1_database_proto_rawDescGZIP(), []int{5}
|
return file_greptime_v1_database_proto_rawDescGZIP(), []int{8}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *FlightMetadata) GetAffectedRows() *AffectedRows {
|
func (x *FlightMetadata) GetAffectedRows() *AffectedRows {
|
||||||
@@ -448,57 +631,72 @@ var file_greptime_v1_database_proto_rawDesc = []byte{
|
|||||||
0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x1a, 0x15, 0x67, 0x72, 0x65, 0x70, 0x74,
|
0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x1a, 0x15, 0x67, 0x72, 0x65, 0x70, 0x74,
|
||||||
0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x64, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x64, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
||||||
0x1a, 0x18, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f,
|
0x1a, 0x18, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f,
|
||||||
0x6c, 0x75, 0x6d, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x67, 0x0a, 0x0d, 0x52, 0x65,
|
0x6c, 0x75, 0x6d, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x80, 0x01, 0x0a, 0x0d, 0x52,
|
||||||
0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x63,
|
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x18, 0x0a, 0x07,
|
||||||
0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x61,
|
0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63,
|
||||||
0x74, 0x61, 0x6c, 0x6f, 0x67, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18,
|
0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61,
|
||||||
0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x24, 0x0a,
|
0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x3d,
|
||||||
0x0d, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03,
|
0x0a, 0x0d, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18,
|
||||||
0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74,
|
0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65,
|
||||||
0x69, 0x6f, 0x6e, 0x22, 0xe6, 0x01, 0x0a, 0x0f, 0x47, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65,
|
0x2e, 0x76, 0x31, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x0d,
|
||||||
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x32, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65,
|
0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x73, 0x0a,
|
||||||
0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69,
|
0x0a, 0x41, 0x75, 0x74, 0x68, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x2a, 0x0a, 0x05, 0x62,
|
||||||
0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x65, 0x61,
|
0x61, 0x73, 0x69, 0x63, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x72, 0x65,
|
||||||
0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x34, 0x0a, 0x06, 0x69,
|
0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x73, 0x69, 0x63, 0x48, 0x00,
|
||||||
0x6e, 0x73, 0x65, 0x72, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x72,
|
0x52, 0x05, 0x62, 0x61, 0x73, 0x69, 0x63, 0x12, 0x2a, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e,
|
||||||
0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x73, 0x65, 0x72, 0x74,
|
0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d,
|
||||||
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x06, 0x69, 0x6e, 0x73, 0x65, 0x72,
|
0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x48, 0x00, 0x52, 0x05, 0x74, 0x6f,
|
||||||
0x74, 0x12, 0x31, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b,
|
0x6b, 0x65, 0x6e, 0x42, 0x0d, 0x0a, 0x0b, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x73, 0x63, 0x68, 0x65,
|
||||||
0x32, 0x19, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x51,
|
0x6d, 0x65, 0x22, 0x3f, 0x0a, 0x05, 0x42, 0x61, 0x73, 0x69, 0x63, 0x12, 0x1a, 0x0a, 0x08, 0x75,
|
||||||
0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x05, 0x71,
|
0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75,
|
||||||
0x75, 0x65, 0x72, 0x79, 0x12, 0x2b, 0x0a, 0x03, 0x64, 0x64, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28,
|
0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77,
|
||||||
0x0b, 0x32, 0x17, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e,
|
0x6f, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77,
|
||||||
0x44, 0x64, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x03, 0x64, 0x64,
|
0x6f, 0x72, 0x64, 0x22, 0x1d, 0x0a, 0x05, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x14, 0x0a, 0x05,
|
||||||
0x6c, 0x42, 0x09, 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x50, 0x0a, 0x0c,
|
0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b,
|
||||||
0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x03,
|
0x65, 0x6e, 0x22, 0xe6, 0x01, 0x0a, 0x0f, 0x47, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x52,
|
||||||
0x73, 0x71, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x03, 0x73, 0x71, 0x6c,
|
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x32, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72,
|
||||||
0x12, 0x23, 0x0a, 0x0c, 0x6c, 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, 0x5f, 0x70, 0x6c, 0x61, 0x6e,
|
0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d,
|
||||||
0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x48, 0x00, 0x52, 0x0b, 0x6c, 0x6f, 0x67, 0x69, 0x63, 0x61,
|
0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x65, 0x61, 0x64,
|
||||||
0x6c, 0x50, 0x6c, 0x61, 0x6e, 0x42, 0x07, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x22, 0x9f,
|
0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x34, 0x0a, 0x06, 0x69, 0x6e,
|
||||||
0x01, 0x0a, 0x0d, 0x49, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
|
0x73, 0x65, 0x72, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x72, 0x65,
|
||||||
0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01,
|
0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x52,
|
||||||
0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12,
|
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x06, 0x69, 0x6e, 0x73, 0x65, 0x72, 0x74,
|
||||||
0x2d, 0x0a, 0x07, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b,
|
0x12, 0x31, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32,
|
||||||
0x32, 0x13, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43,
|
0x19, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75,
|
||||||
0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x52, 0x07, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x1b,
|
0x65, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x05, 0x71, 0x75,
|
||||||
0x0a, 0x09, 0x72, 0x6f, 0x77, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28,
|
0x65, 0x72, 0x79, 0x12, 0x2b, 0x0a, 0x03, 0x64, 0x64, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b,
|
||||||
0x0d, 0x52, 0x08, 0x72, 0x6f, 0x77, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x72,
|
0x32, 0x17, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44,
|
||||||
0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01,
|
0x64, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x03, 0x64, 0x64, 0x6c,
|
||||||
0x28, 0x0d, 0x52, 0x0c, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72,
|
0x42, 0x09, 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x50, 0x0a, 0x0c, 0x51,
|
||||||
0x22, 0x24, 0x0a, 0x0c, 0x41, 0x66, 0x66, 0x65, 0x63, 0x74, 0x65, 0x64, 0x52, 0x6f, 0x77, 0x73,
|
0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x03, 0x73,
|
||||||
0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52,
|
0x71, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x03, 0x73, 0x71, 0x6c, 0x12,
|
||||||
0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x50, 0x0a, 0x0e, 0x46, 0x6c, 0x69, 0x67, 0x68, 0x74,
|
0x23, 0x0a, 0x0c, 0x6c, 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, 0x5f, 0x70, 0x6c, 0x61, 0x6e, 0x18,
|
||||||
0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x3e, 0x0a, 0x0d, 0x61, 0x66, 0x66, 0x65,
|
0x02, 0x20, 0x01, 0x28, 0x0c, 0x48, 0x00, 0x52, 0x0b, 0x6c, 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c,
|
||||||
0x63, 0x74, 0x65, 0x64, 0x5f, 0x72, 0x6f, 0x77, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32,
|
0x50, 0x6c, 0x61, 0x6e, 0x42, 0x07, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x22, 0x9f, 0x01,
|
||||||
0x19, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x66,
|
0x0a, 0x0d, 0x49, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
|
||||||
0x66, 0x65, 0x63, 0x74, 0x65, 0x64, 0x52, 0x6f, 0x77, 0x73, 0x52, 0x0c, 0x61, 0x66, 0x66, 0x65,
|
0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20,
|
||||||
0x63, 0x74, 0x65, 0x64, 0x52, 0x6f, 0x77, 0x73, 0x42, 0x51, 0x0a, 0x0e, 0x69, 0x6f, 0x2e, 0x67,
|
0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2d,
|
||||||
0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x08, 0x44, 0x61, 0x74, 0x61,
|
0x0a, 0x07, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32,
|
||||||
0x62, 0x61, 0x73, 0x65, 0x5a, 0x35, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d,
|
0x13, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f,
|
||||||
0x2f, 0x47, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x54, 0x65, 0x61, 0x6d, 0x2f, 0x67, 0x72,
|
0x6c, 0x75, 0x6d, 0x6e, 0x52, 0x07, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x1b, 0x0a,
|
||||||
0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f,
|
0x09, 0x72, 0x6f, 0x77, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d,
|
||||||
0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f,
|
0x52, 0x08, 0x72, 0x6f, 0x77, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65,
|
||||||
0x74, 0x6f, 0x33,
|
0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28,
|
||||||
|
0x0d, 0x52, 0x0c, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x22,
|
||||||
|
0x24, 0x0a, 0x0c, 0x41, 0x66, 0x66, 0x65, 0x63, 0x74, 0x65, 0x64, 0x52, 0x6f, 0x77, 0x73, 0x12,
|
||||||
|
0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05,
|
||||||
|
0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x50, 0x0a, 0x0e, 0x46, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x4d,
|
||||||
|
0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x3e, 0x0a, 0x0d, 0x61, 0x66, 0x66, 0x65, 0x63,
|
||||||
|
0x74, 0x65, 0x64, 0x5f, 0x72, 0x6f, 0x77, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19,
|
||||||
|
0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x66, 0x66,
|
||||||
|
0x65, 0x63, 0x74, 0x65, 0x64, 0x52, 0x6f, 0x77, 0x73, 0x52, 0x0c, 0x61, 0x66, 0x66, 0x65, 0x63,
|
||||||
|
0x74, 0x65, 0x64, 0x52, 0x6f, 0x77, 0x73, 0x42, 0x51, 0x0a, 0x0e, 0x69, 0x6f, 0x2e, 0x67, 0x72,
|
||||||
|
0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x08, 0x44, 0x61, 0x74, 0x61, 0x62,
|
||||||
|
0x61, 0x73, 0x65, 0x5a, 0x35, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f,
|
||||||
|
0x47, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x54, 0x65, 0x61, 0x6d, 0x2f, 0x67, 0x72, 0x65,
|
||||||
|
0x70, 0x74, 0x69, 0x6d, 0x65, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x67,
|
||||||
|
0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
|
||||||
|
0x6f, 0x33,
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
@@ -513,29 +711,35 @@ func file_greptime_v1_database_proto_rawDescGZIP() []byte {
|
|||||||
return file_greptime_v1_database_proto_rawDescData
|
return file_greptime_v1_database_proto_rawDescData
|
||||||
}
|
}
|
||||||
|
|
||||||
var file_greptime_v1_database_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
|
var file_greptime_v1_database_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
|
||||||
var file_greptime_v1_database_proto_goTypes = []interface{}{
|
var file_greptime_v1_database_proto_goTypes = []interface{}{
|
||||||
(*RequestHeader)(nil), // 0: greptime.v1.RequestHeader
|
(*RequestHeader)(nil), // 0: greptime.v1.RequestHeader
|
||||||
(*GreptimeRequest)(nil), // 1: greptime.v1.GreptimeRequest
|
(*AuthHeader)(nil), // 1: greptime.v1.AuthHeader
|
||||||
(*QueryRequest)(nil), // 2: greptime.v1.QueryRequest
|
(*Basic)(nil), // 2: greptime.v1.Basic
|
||||||
(*InsertRequest)(nil), // 3: greptime.v1.InsertRequest
|
(*Token)(nil), // 3: greptime.v1.Token
|
||||||
(*AffectedRows)(nil), // 4: greptime.v1.AffectedRows
|
(*GreptimeRequest)(nil), // 4: greptime.v1.GreptimeRequest
|
||||||
(*FlightMetadata)(nil), // 5: greptime.v1.FlightMetadata
|
(*QueryRequest)(nil), // 5: greptime.v1.QueryRequest
|
||||||
(*DdlRequest)(nil), // 6: greptime.v1.DdlRequest
|
(*InsertRequest)(nil), // 6: greptime.v1.InsertRequest
|
||||||
(*Column)(nil), // 7: greptime.v1.Column
|
(*AffectedRows)(nil), // 7: greptime.v1.AffectedRows
|
||||||
|
(*FlightMetadata)(nil), // 8: greptime.v1.FlightMetadata
|
||||||
|
(*DdlRequest)(nil), // 9: greptime.v1.DdlRequest
|
||||||
|
(*Column)(nil), // 10: greptime.v1.Column
|
||||||
}
|
}
|
||||||
var file_greptime_v1_database_proto_depIdxs = []int32{
|
var file_greptime_v1_database_proto_depIdxs = []int32{
|
||||||
0, // 0: greptime.v1.GreptimeRequest.header:type_name -> greptime.v1.RequestHeader
|
1, // 0: greptime.v1.RequestHeader.authorization:type_name -> greptime.v1.AuthHeader
|
||||||
3, // 1: greptime.v1.GreptimeRequest.insert:type_name -> greptime.v1.InsertRequest
|
2, // 1: greptime.v1.AuthHeader.basic:type_name -> greptime.v1.Basic
|
||||||
2, // 2: greptime.v1.GreptimeRequest.query:type_name -> greptime.v1.QueryRequest
|
3, // 2: greptime.v1.AuthHeader.token:type_name -> greptime.v1.Token
|
||||||
6, // 3: greptime.v1.GreptimeRequest.ddl:type_name -> greptime.v1.DdlRequest
|
0, // 3: greptime.v1.GreptimeRequest.header:type_name -> greptime.v1.RequestHeader
|
||||||
7, // 4: greptime.v1.InsertRequest.columns:type_name -> greptime.v1.Column
|
6, // 4: greptime.v1.GreptimeRequest.insert:type_name -> greptime.v1.InsertRequest
|
||||||
4, // 5: greptime.v1.FlightMetadata.affected_rows:type_name -> greptime.v1.AffectedRows
|
5, // 5: greptime.v1.GreptimeRequest.query:type_name -> greptime.v1.QueryRequest
|
||||||
6, // [6:6] is the sub-list for method output_type
|
9, // 6: greptime.v1.GreptimeRequest.ddl:type_name -> greptime.v1.DdlRequest
|
||||||
6, // [6:6] is the sub-list for method input_type
|
10, // 7: greptime.v1.InsertRequest.columns:type_name -> greptime.v1.Column
|
||||||
6, // [6:6] is the sub-list for extension type_name
|
7, // 8: greptime.v1.FlightMetadata.affected_rows:type_name -> greptime.v1.AffectedRows
|
||||||
6, // [6:6] is the sub-list for extension extendee
|
9, // [9:9] is the sub-list for method output_type
|
||||||
0, // [0:6] is the sub-list for field type_name
|
9, // [9:9] is the sub-list for method input_type
|
||||||
|
9, // [9:9] is the sub-list for extension type_name
|
||||||
|
9, // [9:9] is the sub-list for extension extendee
|
||||||
|
0, // [0:9] is the sub-list for field type_name
|
||||||
}
|
}
|
||||||
|
|
||||||
func init() { file_greptime_v1_database_proto_init() }
|
func init() { file_greptime_v1_database_proto_init() }
|
||||||
@@ -559,7 +763,7 @@ func file_greptime_v1_database_proto_init() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
file_greptime_v1_database_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
file_greptime_v1_database_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||||
switch v := v.(*GreptimeRequest); i {
|
switch v := v.(*AuthHeader); i {
|
||||||
case 0:
|
case 0:
|
||||||
return &v.state
|
return &v.state
|
||||||
case 1:
|
case 1:
|
||||||
@@ -571,7 +775,7 @@ func file_greptime_v1_database_proto_init() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
file_greptime_v1_database_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
file_greptime_v1_database_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
||||||
switch v := v.(*QueryRequest); i {
|
switch v := v.(*Basic); i {
|
||||||
case 0:
|
case 0:
|
||||||
return &v.state
|
return &v.state
|
||||||
case 1:
|
case 1:
|
||||||
@@ -583,7 +787,7 @@ func file_greptime_v1_database_proto_init() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
file_greptime_v1_database_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
file_greptime_v1_database_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
||||||
switch v := v.(*InsertRequest); i {
|
switch v := v.(*Token); i {
|
||||||
case 0:
|
case 0:
|
||||||
return &v.state
|
return &v.state
|
||||||
case 1:
|
case 1:
|
||||||
@@ -595,7 +799,7 @@ func file_greptime_v1_database_proto_init() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
file_greptime_v1_database_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
file_greptime_v1_database_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
||||||
switch v := v.(*AffectedRows); i {
|
switch v := v.(*GreptimeRequest); i {
|
||||||
case 0:
|
case 0:
|
||||||
return &v.state
|
return &v.state
|
||||||
case 1:
|
case 1:
|
||||||
@@ -607,6 +811,42 @@ func file_greptime_v1_database_proto_init() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
file_greptime_v1_database_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
file_greptime_v1_database_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
||||||
|
switch v := v.(*QueryRequest); i {
|
||||||
|
case 0:
|
||||||
|
return &v.state
|
||||||
|
case 1:
|
||||||
|
return &v.sizeCache
|
||||||
|
case 2:
|
||||||
|
return &v.unknownFields
|
||||||
|
default:
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
file_greptime_v1_database_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
|
||||||
|
switch v := v.(*InsertRequest); i {
|
||||||
|
case 0:
|
||||||
|
return &v.state
|
||||||
|
case 1:
|
||||||
|
return &v.sizeCache
|
||||||
|
case 2:
|
||||||
|
return &v.unknownFields
|
||||||
|
default:
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
file_greptime_v1_database_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
|
||||||
|
switch v := v.(*AffectedRows); i {
|
||||||
|
case 0:
|
||||||
|
return &v.state
|
||||||
|
case 1:
|
||||||
|
return &v.sizeCache
|
||||||
|
case 2:
|
||||||
|
return &v.unknownFields
|
||||||
|
default:
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
file_greptime_v1_database_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
|
||||||
switch v := v.(*FlightMetadata); i {
|
switch v := v.(*FlightMetadata); i {
|
||||||
case 0:
|
case 0:
|
||||||
return &v.state
|
return &v.state
|
||||||
@@ -620,11 +860,15 @@ func file_greptime_v1_database_proto_init() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
file_greptime_v1_database_proto_msgTypes[1].OneofWrappers = []interface{}{
|
file_greptime_v1_database_proto_msgTypes[1].OneofWrappers = []interface{}{
|
||||||
|
(*AuthHeader_Basic)(nil),
|
||||||
|
(*AuthHeader_Token)(nil),
|
||||||
|
}
|
||||||
|
file_greptime_v1_database_proto_msgTypes[4].OneofWrappers = []interface{}{
|
||||||
(*GreptimeRequest_Insert)(nil),
|
(*GreptimeRequest_Insert)(nil),
|
||||||
(*GreptimeRequest_Query)(nil),
|
(*GreptimeRequest_Query)(nil),
|
||||||
(*GreptimeRequest_Ddl)(nil),
|
(*GreptimeRequest_Ddl)(nil),
|
||||||
}
|
}
|
||||||
file_greptime_v1_database_proto_msgTypes[2].OneofWrappers = []interface{}{
|
file_greptime_v1_database_proto_msgTypes[5].OneofWrappers = []interface{}{
|
||||||
(*QueryRequest_Sql)(nil),
|
(*QueryRequest_Sql)(nil),
|
||||||
(*QueryRequest_LogicalPlan)(nil),
|
(*QueryRequest_LogicalPlan)(nil),
|
||||||
}
|
}
|
||||||
@@ -634,7 +878,7 @@ func file_greptime_v1_database_proto_init() {
|
|||||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||||
RawDescriptor: file_greptime_v1_database_proto_rawDesc,
|
RawDescriptor: file_greptime_v1_database_proto_rawDesc,
|
||||||
NumEnums: 0,
|
NumEnums: 0,
|
||||||
NumMessages: 6,
|
NumMessages: 9,
|
||||||
NumExtensions: 0,
|
NumExtensions: 0,
|
||||||
NumServices: 0,
|
NumServices: 0,
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -14,8 +14,24 @@ message RequestHeader {
|
|||||||
string catalog = 1;
|
string catalog = 1;
|
||||||
// The `schema` that is selected to be used in this request.
|
// The `schema` that is selected to be used in this request.
|
||||||
string schema = 2;
|
string schema = 2;
|
||||||
// The `authorization` header string, much like http's authorization header.
|
// The `authorization` header, much like http's authorization header.
|
||||||
string authorization = 3;
|
AuthHeader authorization = 3;
|
||||||
|
}
|
||||||
|
|
||||||
|
message AuthHeader {
|
||||||
|
oneof auth_scheme {
|
||||||
|
Basic basic = 1;
|
||||||
|
Token token = 2;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
message Basic {
|
||||||
|
string username = 1;
|
||||||
|
string password = 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
message Token {
|
||||||
|
string token = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
message GreptimeRequest {
|
message GreptimeRequest {
|
||||||
|
|||||||
Reference in New Issue
Block a user