proto

package
v0.0.0-...-1020a2c Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2022 License: GPL-2.0, GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Type_name = map[int32]string{
		0: "PUBLIC",
		1: "CONFIDENTIAL",
	}
	Type_value = map[string]int32{
		"PUBLIC":       0,
		"CONFIDENTIAL": 1,
	}
)

Enum value maps for Type.

View Source
var ClientService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "client.ClientService",
	HandlerType: (*ClientServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Create",
			Handler:    _ClientService_Create_Handler,
		},
		{
			MethodName: "Update",
			Handler:    _ClientService_Update_Handler,
		},
		{
			MethodName: "FindMany",
			Handler:    _ClientService_FindMany_Handler,
		},
		{
			MethodName: "FindById",
			Handler:    _ClientService_FindById_Handler,
		},
		{
			MethodName: "DeleteById",
			Handler:    _ClientService_DeleteById_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "client/client.proto",
}

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

View Source
var File_client_client_proto protoreflect.FileDescriptor

Functions

func RegisterClientServiceServer

func RegisterClientServiceServer(s grpc.ServiceRegistrar, srv ClientServiceServer)

Types

type Client

type Client struct {
	Id             int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Type           Type   `protobuf:"varint,2,opt,name=type,proto3,enum=client.Type" json:"type,omitempty"`
	Name           string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	Identifier     string `protobuf:"bytes,4,opt,name=identifier,proto3" json:"identifier,omitempty"`
	Secret         string `protobuf:"bytes,5,opt,name=secret,proto3" json:"secret,omitempty"`
	Description    string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"`
	InformativeUri string `protobuf:"bytes,7,opt,name=informative_uri,json=informativeUri,proto3" json:"informative_uri,omitempty"`
	RedirectUri    string `protobuf:"bytes,8,opt,name=redirect_uri,json=redirectUri,proto3" json:"redirect_uri,omitempty"`
	// contains filtered or unexported fields
}

func (*Client) Descriptor deprecated

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

Deprecated: Use Client.ProtoReflect.Descriptor instead.

func (*Client) GetDescription

func (x *Client) GetDescription() string

func (*Client) GetId

func (x *Client) GetId() int64

func (*Client) GetIdentifier

func (x *Client) GetIdentifier() string

func (*Client) GetInformativeUri

func (x *Client) GetInformativeUri() string

func (*Client) GetName

func (x *Client) GetName() string

func (*Client) GetRedirectUri

func (x *Client) GetRedirectUri() string

func (*Client) GetSecret

func (x *Client) GetSecret() string

func (*Client) GetType

func (x *Client) GetType() Type

func (*Client) ProtoMessage

func (*Client) ProtoMessage()

func (*Client) ProtoReflect

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

func (*Client) Reset

func (x *Client) Reset()

func (*Client) String

func (x *Client) String() string

type ClientServiceClient

type ClientServiceClient interface {
	Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error)
	Update(ctx context.Context, in *UpdateRequest, opts ...grpc.CallOption) (*UpdateResponse, error)
	FindMany(ctx context.Context, in *FindManyRequest, opts ...grpc.CallOption) (*FindManyResponse, error)
	FindById(ctx context.Context, in *FindByIdRequest, opts ...grpc.CallOption) (*FindByIdResponse, error)
	DeleteById(ctx context.Context, in *DeleteByIdRequest, opts ...grpc.CallOption) (*DeleteByIdResponse, error)
}

ClientServiceClient is the client API for ClientService 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 ClientServiceServer

type ClientServiceServer interface {
	Create(context.Context, *CreateRequest) (*CreateResponse, error)
	Update(context.Context, *UpdateRequest) (*UpdateResponse, error)
	FindMany(context.Context, *FindManyRequest) (*FindManyResponse, error)
	FindById(context.Context, *FindByIdRequest) (*FindByIdResponse, error)
	DeleteById(context.Context, *DeleteByIdRequest) (*DeleteByIdResponse, error)
	// contains filtered or unexported methods
}

ClientServiceServer is the server API for ClientService service. All implementations must embed UnimplementedClientServiceServer for forward compatibility

type CreateRequest

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

func (*CreateRequest) Descriptor deprecated

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

Deprecated: Use CreateRequest.ProtoReflect.Descriptor instead.

func (*CreateRequest) GetInput

func (x *CreateRequest) GetInput() *UpsertInputClient

func (*CreateRequest) ProtoMessage

func (*CreateRequest) ProtoMessage()

func (*CreateRequest) ProtoReflect

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

func (*CreateRequest) Reset

func (x *CreateRequest) Reset()

func (*CreateRequest) String

func (x *CreateRequest) String() string

type CreateResponse

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

func (*CreateResponse) Descriptor deprecated

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

Deprecated: Use CreateResponse.ProtoReflect.Descriptor instead.

func (*CreateResponse) GetId

func (x *CreateResponse) GetId() int64

func (*CreateResponse) ProtoMessage

func (*CreateResponse) ProtoMessage()

func (*CreateResponse) ProtoReflect

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

func (*CreateResponse) Reset

func (x *CreateResponse) Reset()

func (*CreateResponse) String

func (x *CreateResponse) String() string

type DeleteByIdRequest

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

func (*DeleteByIdRequest) Descriptor deprecated

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

Deprecated: Use DeleteByIdRequest.ProtoReflect.Descriptor instead.

func (*DeleteByIdRequest) GetId

func (x *DeleteByIdRequest) GetId() int64

func (*DeleteByIdRequest) ProtoMessage

func (*DeleteByIdRequest) ProtoMessage()

func (*DeleteByIdRequest) ProtoReflect

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

func (*DeleteByIdRequest) Reset

func (x *DeleteByIdRequest) Reset()

func (*DeleteByIdRequest) String

func (x *DeleteByIdRequest) String() string

type DeleteByIdResponse

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

func (*DeleteByIdResponse) Descriptor deprecated

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

Deprecated: Use DeleteByIdResponse.ProtoReflect.Descriptor instead.

func (*DeleteByIdResponse) ProtoMessage

func (*DeleteByIdResponse) ProtoMessage()

func (*DeleteByIdResponse) ProtoReflect

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

func (*DeleteByIdResponse) Reset

func (x *DeleteByIdResponse) Reset()

func (*DeleteByIdResponse) String

func (x *DeleteByIdResponse) String() string

type FindByIdRequest

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

func (*FindByIdRequest) Descriptor deprecated

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

Deprecated: Use FindByIdRequest.ProtoReflect.Descriptor instead.

func (*FindByIdRequest) GetId

func (x *FindByIdRequest) GetId() int64

func (*FindByIdRequest) ProtoMessage

func (*FindByIdRequest) ProtoMessage()

func (*FindByIdRequest) ProtoReflect

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

func (*FindByIdRequest) Reset

func (x *FindByIdRequest) Reset()

func (*FindByIdRequest) String

func (x *FindByIdRequest) String() string

type FindByIdResponse

type FindByIdResponse struct {
	Client *Client `protobuf:"bytes,1,opt,name=client,proto3" json:"client,omitempty"`
	// contains filtered or unexported fields
}

func (*FindByIdResponse) Descriptor deprecated

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

Deprecated: Use FindByIdResponse.ProtoReflect.Descriptor instead.

func (*FindByIdResponse) GetClient

func (x *FindByIdResponse) GetClient() *Client

func (*FindByIdResponse) ProtoMessage

func (*FindByIdResponse) ProtoMessage()

func (*FindByIdResponse) ProtoReflect

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

func (*FindByIdResponse) Reset

func (x *FindByIdResponse) Reset()

func (*FindByIdResponse) String

func (x *FindByIdResponse) String() string

type FindManyRequest

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

func (*FindManyRequest) Descriptor deprecated

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

Deprecated: Use FindManyRequest.ProtoReflect.Descriptor instead.

func (*FindManyRequest) ProtoMessage

func (*FindManyRequest) ProtoMessage()

func (*FindManyRequest) ProtoReflect

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

func (*FindManyRequest) Reset

func (x *FindManyRequest) Reset()

func (*FindManyRequest) String

func (x *FindManyRequest) String() string

type FindManyResponse

type FindManyResponse struct {
	Clients []*Client `protobuf:"bytes,1,rep,name=clients,proto3" json:"clients,omitempty"`
	// contains filtered or unexported fields
}

func (*FindManyResponse) Descriptor deprecated

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

Deprecated: Use FindManyResponse.ProtoReflect.Descriptor instead.

func (*FindManyResponse) GetClients

func (x *FindManyResponse) GetClients() []*Client

func (*FindManyResponse) ProtoMessage

func (*FindManyResponse) ProtoMessage()

func (*FindManyResponse) ProtoReflect

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

func (*FindManyResponse) Reset

func (x *FindManyResponse) Reset()

func (*FindManyResponse) String

func (x *FindManyResponse) String() string

type InputClient

type InputClient struct {
	Type           Type   `protobuf:"varint,1,opt,name=type,proto3,enum=client.Type" json:"type,omitempty"`
	Name           string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Identifier     string `protobuf:"bytes,3,opt,name=identifier,proto3" json:"identifier,omitempty"`
	Secret         string `protobuf:"bytes,4,opt,name=secret,proto3" json:"secret,omitempty"`
	Description    string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`
	InformativeUri string `protobuf:"bytes,6,opt,name=informative_uri,json=informativeUri,proto3" json:"informative_uri,omitempty"`
	RedirectUri    string `protobuf:"bytes,7,opt,name=redirect_uri,json=redirectUri,proto3" json:"redirect_uri,omitempty"`
	// contains filtered or unexported fields
}

func (*InputClient) Descriptor deprecated

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

Deprecated: Use InputClient.ProtoReflect.Descriptor instead.

func (*InputClient) GetDescription

func (x *InputClient) GetDescription() string

func (*InputClient) GetIdentifier

func (x *InputClient) GetIdentifier() string

func (*InputClient) GetInformativeUri

func (x *InputClient) GetInformativeUri() string

func (*InputClient) GetName

func (x *InputClient) GetName() string

func (*InputClient) GetRedirectUri

func (x *InputClient) GetRedirectUri() string

func (*InputClient) GetSecret

func (x *InputClient) GetSecret() string

func (*InputClient) GetType

func (x *InputClient) GetType() Type

func (*InputClient) ProtoMessage

func (*InputClient) ProtoMessage()

func (*InputClient) ProtoReflect

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

func (*InputClient) Reset

func (x *InputClient) Reset()

func (*InputClient) String

func (x *InputClient) String() string

type Type

type Type int32
const (
	Type_PUBLIC       Type = 0
	Type_CONFIDENTIAL Type = 1
)

func (Type) Descriptor

func (Type) Descriptor() protoreflect.EnumDescriptor

func (Type) Enum

func (x Type) Enum() *Type

func (Type) EnumDescriptor deprecated

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

Deprecated: Use Type.Descriptor instead.

func (Type) Number

func (x Type) Number() protoreflect.EnumNumber

func (Type) String

func (x Type) String() string

func (Type) Type

func (Type) Type() protoreflect.EnumType

type UnimplementedClientServiceServer

type UnimplementedClientServiceServer struct {
}

UnimplementedClientServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedClientServiceServer) Create

func (UnimplementedClientServiceServer) DeleteById

func (UnimplementedClientServiceServer) FindById

func (UnimplementedClientServiceServer) FindMany

func (UnimplementedClientServiceServer) Update

type UnsafeClientServiceServer

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

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

type UpdateRequest

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

func (*UpdateRequest) Descriptor deprecated

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

Deprecated: Use UpdateRequest.ProtoReflect.Descriptor instead.

func (*UpdateRequest) GetInput

func (x *UpdateRequest) GetInput() *UpsertInputClient

func (*UpdateRequest) ProtoMessage

func (*UpdateRequest) ProtoMessage()

func (*UpdateRequest) ProtoReflect

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

func (*UpdateRequest) Reset

func (x *UpdateRequest) Reset()

func (*UpdateRequest) String

func (x *UpdateRequest) String() string

type UpdateResponse

type UpdateResponse struct {
	Client *Client `protobuf:"bytes,1,opt,name=client,proto3" json:"client,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateResponse) Descriptor deprecated

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

Deprecated: Use UpdateResponse.ProtoReflect.Descriptor instead.

func (*UpdateResponse) GetClient

func (x *UpdateResponse) GetClient() *Client

func (*UpdateResponse) ProtoMessage

func (*UpdateResponse) ProtoMessage()

func (*UpdateResponse) ProtoReflect

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

func (*UpdateResponse) Reset

func (x *UpdateResponse) Reset()

func (*UpdateResponse) String

func (x *UpdateResponse) String() string

type UpsertInputClient

type UpsertInputClient struct {
	Type           Type   `protobuf:"varint,1,opt,name=type,proto3,enum=client.Type" json:"type,omitempty"`
	Name           string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Description    string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	InformativeUri string `protobuf:"bytes,4,opt,name=informative_uri,json=informativeUri,proto3" json:"informative_uri,omitempty"`
	RedirectUri    string `protobuf:"bytes,5,opt,name=redirect_uri,json=redirectUri,proto3" json:"redirect_uri,omitempty"`
	// contains filtered or unexported fields
}

func (*UpsertInputClient) Descriptor deprecated

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

Deprecated: Use UpsertInputClient.ProtoReflect.Descriptor instead.

func (*UpsertInputClient) GetDescription

func (x *UpsertInputClient) GetDescription() string

func (*UpsertInputClient) GetInformativeUri

func (x *UpsertInputClient) GetInformativeUri() string

func (*UpsertInputClient) GetName

func (x *UpsertInputClient) GetName() string

func (*UpsertInputClient) GetRedirectUri

func (x *UpsertInputClient) GetRedirectUri() string

func (*UpsertInputClient) GetType

func (x *UpsertInputClient) GetType() Type

func (*UpsertInputClient) ProtoMessage

func (*UpsertInputClient) ProtoMessage()

func (*UpsertInputClient) ProtoReflect

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

func (*UpsertInputClient) Reset

func (x *UpsertInputClient) Reset()

func (*UpsertInputClient) String

func (x *UpsertInputClient) String() string

Jump to

Keyboard shortcuts

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