remote_action_v1

package
v0.0.0-...-29d49c9 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	LockAction_name = map[int32]string{
		0: "LOCK_ACTION_UNSPECIFIED",
		1: "LOCK_ACTION_LOCK",
		2: "LOCK_ACTION_UNLOCK",
	}
	LockAction_value = map[string]int32{
		"LOCK_ACTION_UNSPECIFIED": 0,
		"LOCK_ACTION_LOCK":        1,
		"LOCK_ACTION_UNLOCK":      2,
	}
)

Enum value maps for LockAction.

View Source
var File_remote_action_v1_remote_action_proto protoreflect.FileDescriptor
View Source
var RemoteActionService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "remote_action.RemoteActionService",
	HandlerType: (*RemoteActionServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ToggleLock",
			Handler:    _RemoteActionService_ToggleLock_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "remote_action/v1/remote_action.proto",
}

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

Functions

func RegisterRemoteActionServiceServer

func RegisterRemoteActionServiceServer(s grpc.ServiceRegistrar, srv RemoteActionServiceServer)

Types

type LockAction

type LockAction int32
const (
	LockAction_LOCK_ACTION_UNSPECIFIED LockAction = 0
	LockAction_LOCK_ACTION_LOCK        LockAction = 1
	LockAction_LOCK_ACTION_UNLOCK      LockAction = 2
)

func (LockAction) Descriptor

func (LockAction) Descriptor() protoreflect.EnumDescriptor

func (LockAction) Enum

func (x LockAction) Enum() *LockAction

func (LockAction) EnumDescriptor deprecated

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

Deprecated: Use LockAction.Descriptor instead.

func (LockAction) Number

func (x LockAction) Number() protoreflect.EnumNumber

func (LockAction) String

func (x LockAction) String() string

func (LockAction) Type

type RemoteActionResponse

type RemoteActionResponse struct {
	Result         string          `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
	FailMsg        string          `protobuf:"bytes,2,opt,name=fail_msg,json=failMsg,proto3" json:"fail_msg,omitempty"`
	ResponseString *ResponseString `protobuf:"bytes,3,opt,name=response_string,json=responseString,proto3" json:"response_string,omitempty"`
	// contains filtered or unexported fields
}

func (*RemoteActionResponse) Descriptor deprecated

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

Deprecated: Use RemoteActionResponse.ProtoReflect.Descriptor instead.

func (*RemoteActionResponse) GetFailMsg

func (x *RemoteActionResponse) GetFailMsg() string

func (*RemoteActionResponse) GetResponseString

func (x *RemoteActionResponse) GetResponseString() *ResponseString

func (*RemoteActionResponse) GetResult

func (x *RemoteActionResponse) GetResult() string

func (*RemoteActionResponse) ProtoMessage

func (*RemoteActionResponse) ProtoMessage()

func (*RemoteActionResponse) ProtoReflect

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

func (*RemoteActionResponse) Reset

func (x *RemoteActionResponse) Reset()

func (*RemoteActionResponse) String

func (x *RemoteActionResponse) String() string

type RemoteActionServiceClient

type RemoteActionServiceClient interface {
	ToggleLock(ctx context.Context, in *ToggleLockRequest, opts ...grpc.CallOption) (*RemoteActionResponse, error)
}

RemoteActionServiceClient is the client API for RemoteActionService 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 RemoteActionServiceServer

type RemoteActionServiceServer interface {
	ToggleLock(context.Context, *ToggleLockRequest) (*RemoteActionResponse, error)
	// contains filtered or unexported methods
}

RemoteActionServiceServer is the server API for RemoteActionService service. All implementations must embed UnimplementedRemoteActionServiceServer for forward compatibility

type ResponseString

type ResponseString struct {
	ErrorSubCode string `protobuf:"bytes,1,opt,name=error_sub_code,json=errorSubCode,proto3" json:"error_sub_code,omitempty"`
	SystemName   string `protobuf:"bytes,2,opt,name=system_name,json=systemName,proto3" json:"system_name,omitempty"`
	FunctionName string `protobuf:"bytes,3,opt,name=function_name,json=functionName,proto3" json:"function_name,omitempty"`
	ErrorMessage string `protobuf:"bytes,4,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"`
	ErrorCode    int32  `protobuf:"varint,5,opt,name=error_code,json=errorCode,proto3" json:"error_code,omitempty"`
	ServiceName  string `protobuf:"bytes,6,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"`
	// contains filtered or unexported fields
}

func (*ResponseString) Descriptor deprecated

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

Deprecated: Use ResponseString.ProtoReflect.Descriptor instead.

func (*ResponseString) GetErrorCode

func (x *ResponseString) GetErrorCode() int32

func (*ResponseString) GetErrorMessage

func (x *ResponseString) GetErrorMessage() string

func (*ResponseString) GetErrorSubCode

func (x *ResponseString) GetErrorSubCode() string

func (*ResponseString) GetFunctionName

func (x *ResponseString) GetFunctionName() string

func (*ResponseString) GetServiceName

func (x *ResponseString) GetServiceName() string

func (*ResponseString) GetSystemName

func (x *ResponseString) GetSystemName() string

func (*ResponseString) ProtoMessage

func (*ResponseString) ProtoMessage()

func (*ResponseString) ProtoReflect

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

func (*ResponseString) Reset

func (x *ResponseString) Reset()

func (*ResponseString) String

func (x *ResponseString) String() string

type ToggleLockRequest

type ToggleLockRequest struct {
	Username       string     `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	Pin            string     `protobuf:"bytes,2,opt,name=pin,proto3" json:"pin,omitempty"`
	JwtToken       string     `protobuf:"bytes,3,opt,name=jwt_token,json=jwtToken,proto3" json:"jwt_token,omitempty"`
	RegistrationId string     `protobuf:"bytes,4,opt,name=registration_id,json=registrationId,proto3" json:"registration_id,omitempty"`
	Vin            string     `protobuf:"bytes,5,opt,name=vin,proto3" json:"vin,omitempty"`
	Generation     string     `protobuf:"bytes,6,opt,name=generation,proto3" json:"generation,omitempty"`
	LockAction     LockAction `protobuf:"varint,7,opt,name=lock_action,json=lockAction,proto3,enum=remote_action.LockAction" json:"lock_action,omitempty"`
	// contains filtered or unexported fields
}

func (*ToggleLockRequest) Descriptor deprecated

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

Deprecated: Use ToggleLockRequest.ProtoReflect.Descriptor instead.

func (*ToggleLockRequest) GetGeneration

func (x *ToggleLockRequest) GetGeneration() string

func (*ToggleLockRequest) GetJwtToken

func (x *ToggleLockRequest) GetJwtToken() string

func (*ToggleLockRequest) GetLockAction

func (x *ToggleLockRequest) GetLockAction() LockAction

func (*ToggleLockRequest) GetPin

func (x *ToggleLockRequest) GetPin() string

func (*ToggleLockRequest) GetRegistrationId

func (x *ToggleLockRequest) GetRegistrationId() string

func (*ToggleLockRequest) GetUsername

func (x *ToggleLockRequest) GetUsername() string

func (*ToggleLockRequest) GetVin

func (x *ToggleLockRequest) GetVin() string

func (*ToggleLockRequest) ProtoMessage

func (*ToggleLockRequest) ProtoMessage()

func (*ToggleLockRequest) ProtoReflect

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

func (*ToggleLockRequest) Reset

func (x *ToggleLockRequest) Reset()

func (*ToggleLockRequest) String

func (x *ToggleLockRequest) String() string

type UnimplementedRemoteActionServiceServer

type UnimplementedRemoteActionServiceServer struct {
}

UnimplementedRemoteActionServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedRemoteActionServiceServer) ToggleLock

type UnsafeRemoteActionServiceServer

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

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

Jump to

Keyboard shortcuts

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