proto

package
v0.0.0-...-3fd877b Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BracketsValidateResponse_BracketsValidationResult_name = map[int32]string{
		0: "UNKNOWN",
		1: "BALANCED",
		2: "NOT_BALANCED",
	}
	BracketsValidateResponse_BracketsValidationResult_value = map[string]int32{
		"UNKNOWN":      0,
		"BALANCED":     1,
		"NOT_BALANCED": 2,
	}
)

Enum value maps for BracketsValidateResponse_BracketsValidationResult.

View Source
var File_internal_proto_brackets_proto protoreflect.FileDescriptor

Functions

func RegisterBracketsServiceServer

func RegisterBracketsServiceServer(s grpc.ServiceRegistrar, srv BracketsServiceServer)

Types

type BracketsFixRequest

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

func (*BracketsFixRequest) Descriptor deprecated

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

Deprecated: Use BracketsFixRequest.ProtoReflect.Descriptor instead.

func (*BracketsFixRequest) GetInput

func (x *BracketsFixRequest) GetInput() string

func (*BracketsFixRequest) ProtoMessage

func (*BracketsFixRequest) ProtoMessage()

func (*BracketsFixRequest) ProtoReflect

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

func (*BracketsFixRequest) Reset

func (x *BracketsFixRequest) Reset()

func (*BracketsFixRequest) String

func (x *BracketsFixRequest) String() string

type BracketsFixResponse

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

func (*BracketsFixResponse) Descriptor deprecated

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

Deprecated: Use BracketsFixResponse.ProtoReflect.Descriptor instead.

func (*BracketsFixResponse) GetResult

func (x *BracketsFixResponse) GetResult() string

func (*BracketsFixResponse) ProtoMessage

func (*BracketsFixResponse) ProtoMessage()

func (*BracketsFixResponse) ProtoReflect

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

func (*BracketsFixResponse) Reset

func (x *BracketsFixResponse) Reset()

func (*BracketsFixResponse) String

func (x *BracketsFixResponse) String() string

type BracketsServiceClient

type BracketsServiceClient interface {
	Validate(ctx context.Context, in *BracketsValidateRequest, opts ...grpc.CallOption) (*BracketsValidateResponse, error)
	Fix(ctx context.Context, in *BracketsFixRequest, opts ...grpc.CallOption) (*BracketsFixResponse, error)
}

BracketsServiceClient is the client API for BracketsService 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.

type BracketsServiceServer

type BracketsServiceServer interface {
	Validate(context.Context, *BracketsValidateRequest) (*BracketsValidateResponse, error)
	Fix(context.Context, *BracketsFixRequest) (*BracketsFixResponse, error)
	// contains filtered or unexported methods
}

BracketsServiceServer is the server API for BracketsService service. All implementations must embed UnimplementedBracketsServiceServer for forward compatibility

type BracketsValidateRequest

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

func (*BracketsValidateRequest) Descriptor deprecated

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

Deprecated: Use BracketsValidateRequest.ProtoReflect.Descriptor instead.

func (*BracketsValidateRequest) GetInput

func (x *BracketsValidateRequest) GetInput() string

func (*BracketsValidateRequest) ProtoMessage

func (*BracketsValidateRequest) ProtoMessage()

func (*BracketsValidateRequest) ProtoReflect

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

func (*BracketsValidateRequest) Reset

func (x *BracketsValidateRequest) Reset()

func (*BracketsValidateRequest) String

func (x *BracketsValidateRequest) String() string

type BracketsValidateResponse

type BracketsValidateResponse struct {
	Result BracketsValidateResponse_BracketsValidationResult `protobuf:"varint,1,opt,name=result,proto3,enum=BracketsValidateResponse_BracketsValidationResult" json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*BracketsValidateResponse) Descriptor deprecated

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

Deprecated: Use BracketsValidateResponse.ProtoReflect.Descriptor instead.

func (*BracketsValidateResponse) GetResult

func (*BracketsValidateResponse) ProtoMessage

func (*BracketsValidateResponse) ProtoMessage()

func (*BracketsValidateResponse) ProtoReflect

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

func (*BracketsValidateResponse) Reset

func (x *BracketsValidateResponse) Reset()

func (*BracketsValidateResponse) String

func (x *BracketsValidateResponse) String() string

type BracketsValidateResponse_BracketsValidationResult

type BracketsValidateResponse_BracketsValidationResult int32
const (
	BracketsValidateResponse_UNKNOWN      BracketsValidateResponse_BracketsValidationResult = 0
	BracketsValidateResponse_BALANCED     BracketsValidateResponse_BracketsValidationResult = 1
	BracketsValidateResponse_NOT_BALANCED BracketsValidateResponse_BracketsValidationResult = 2
)

func (BracketsValidateResponse_BracketsValidationResult) Descriptor

func (BracketsValidateResponse_BracketsValidationResult) Enum

func (BracketsValidateResponse_BracketsValidationResult) EnumDescriptor deprecated

Deprecated: Use BracketsValidateResponse_BracketsValidationResult.Descriptor instead.

func (BracketsValidateResponse_BracketsValidationResult) Number

func (BracketsValidateResponse_BracketsValidationResult) String

func (BracketsValidateResponse_BracketsValidationResult) Type

type UnimplementedBracketsServiceServer

type UnimplementedBracketsServiceServer struct {
}

UnimplementedBracketsServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedBracketsServiceServer) Fix

func (UnimplementedBracketsServiceServer) Validate

type UnsafeBracketsServiceServer

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

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

Jump to

Keyboard shortcuts

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