v1

package
v0.3.0-alpha4 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Status_name = map[int32]string{
		0: "STATUS_UNSPECIFIED",
		1: "STATUS_VIEW",
		2: "STATUS_EDIT",
		3: "STATUS_HIDE",
	}
	Status_value = map[string]int32{
		"STATUS_UNSPECIFIED": 0,
		"STATUS_VIEW":        1,
		"STATUS_EDIT":        2,
		"STATUS_HIDE":        3,
	}
)

Enum value maps for Status.

View Source
var File_pkg_proto_property_v1_property_proto protoreflect.FileDescriptor
View Source
var PropertyService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "pkg.proto.property.v1.PropertyService",
	HandlerType: (*PropertyServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetAll",
			Handler:    _PropertyService_GetAll_Handler,
		},
		{
			MethodName: "Delete",
			Handler:    _PropertyService_Delete_Handler,
		},
		{
			MethodName: "Store",
			Handler:    _PropertyService_Store_Handler,
		},
		{
			MethodName: "Update",
			Handler:    _PropertyService_Update_Handler,
		},
		{
			MethodName: "GetByServiceIDKey",
			Handler:    _PropertyService_GetByServiceIDKey_Handler,
		},
		{
			MethodName: "GetAllByServiceID",
			Handler:    _PropertyService_GetAllByServiceID_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "pkg/proto/property/v1/property.proto",
}

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

Functions

func RegisterPropertyServiceServer

func RegisterPropertyServiceServer(s grpc.ServiceRegistrar, srv PropertyServiceServer)

Types

type DeleteRequest

type DeleteRequest struct {
	ServiceId *v1.UUID `protobuf:"bytes,1,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"`
	Key       string   `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteRequest) Descriptor deprecated

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

Deprecated: Use DeleteRequest.ProtoReflect.Descriptor instead.

func (*DeleteRequest) GetKey

func (x *DeleteRequest) GetKey() string

func (*DeleteRequest) GetServiceId

func (x *DeleteRequest) GetServiceId() *v1.UUID

func (*DeleteRequest) ProtoMessage

func (*DeleteRequest) ProtoMessage()

func (*DeleteRequest) ProtoReflect

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

func (*DeleteRequest) Reset

func (x *DeleteRequest) Reset()

func (*DeleteRequest) String

func (x *DeleteRequest) String() string

type DeleteResponse

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

func (*DeleteResponse) Descriptor deprecated

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

Deprecated: Use DeleteResponse.ProtoReflect.Descriptor instead.

func (*DeleteResponse) ProtoMessage

func (*DeleteResponse) ProtoMessage()

func (*DeleteResponse) ProtoReflect

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

func (*DeleteResponse) Reset

func (x *DeleteResponse) Reset()

func (*DeleteResponse) String

func (x *DeleteResponse) String() string

type GetAllByServiceIDRequest

type GetAllByServiceIDRequest struct {
	ServiceId *v1.UUID `protobuf:"bytes,1,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetAllByServiceIDRequest) Descriptor deprecated

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

Deprecated: Use GetAllByServiceIDRequest.ProtoReflect.Descriptor instead.

func (*GetAllByServiceIDRequest) GetServiceId

func (x *GetAllByServiceIDRequest) GetServiceId() *v1.UUID

func (*GetAllByServiceIDRequest) ProtoMessage

func (*GetAllByServiceIDRequest) ProtoMessage()

func (*GetAllByServiceIDRequest) ProtoReflect

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

func (*GetAllByServiceIDRequest) Reset

func (x *GetAllByServiceIDRequest) Reset()

func (*GetAllByServiceIDRequest) String

func (x *GetAllByServiceIDRequest) String() string

type GetAllByServiceIDResponse

type GetAllByServiceIDResponse struct {
	Properties []*Property `protobuf:"bytes,1,rep,name=properties,proto3" json:"properties,omitempty"`
	// contains filtered or unexported fields
}

func (*GetAllByServiceIDResponse) Descriptor deprecated

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

Deprecated: Use GetAllByServiceIDResponse.ProtoReflect.Descriptor instead.

func (*GetAllByServiceIDResponse) GetProperties

func (x *GetAllByServiceIDResponse) GetProperties() []*Property

func (*GetAllByServiceIDResponse) ProtoMessage

func (*GetAllByServiceIDResponse) ProtoMessage()

func (*GetAllByServiceIDResponse) ProtoReflect

func (*GetAllByServiceIDResponse) Reset

func (x *GetAllByServiceIDResponse) Reset()

func (*GetAllByServiceIDResponse) String

func (x *GetAllByServiceIDResponse) String() string

type GetAllRequest

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

func (*GetAllRequest) Descriptor deprecated

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

Deprecated: Use GetAllRequest.ProtoReflect.Descriptor instead.

func (*GetAllRequest) ProtoMessage

func (*GetAllRequest) ProtoMessage()

func (*GetAllRequest) ProtoReflect

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

func (*GetAllRequest) Reset

func (x *GetAllRequest) Reset()

func (*GetAllRequest) String

func (x *GetAllRequest) String() string

type GetAllResponse

type GetAllResponse struct {
	Properties []*Property `protobuf:"bytes,1,rep,name=properties,proto3" json:"properties,omitempty"`
	// contains filtered or unexported fields
}

func (*GetAllResponse) Descriptor deprecated

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

Deprecated: Use GetAllResponse.ProtoReflect.Descriptor instead.

func (*GetAllResponse) GetProperties

func (x *GetAllResponse) GetProperties() []*Property

func (*GetAllResponse) ProtoMessage

func (*GetAllResponse) ProtoMessage()

func (*GetAllResponse) ProtoReflect

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

func (*GetAllResponse) Reset

func (x *GetAllResponse) Reset()

func (*GetAllResponse) String

func (x *GetAllResponse) String() string

type GetByServiceIDKeyRequest

type GetByServiceIDKeyRequest struct {
	ServiceId *v1.UUID `protobuf:"bytes,1,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"`
	Key       string   `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
	// contains filtered or unexported fields
}

func (*GetByServiceIDKeyRequest) Descriptor deprecated

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

Deprecated: Use GetByServiceIDKeyRequest.ProtoReflect.Descriptor instead.

func (*GetByServiceIDKeyRequest) GetKey

func (x *GetByServiceIDKeyRequest) GetKey() string

func (*GetByServiceIDKeyRequest) GetServiceId

func (x *GetByServiceIDKeyRequest) GetServiceId() *v1.UUID

func (*GetByServiceIDKeyRequest) ProtoMessage

func (*GetByServiceIDKeyRequest) ProtoMessage()

func (*GetByServiceIDKeyRequest) ProtoReflect

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

func (*GetByServiceIDKeyRequest) Reset

func (x *GetByServiceIDKeyRequest) Reset()

func (*GetByServiceIDKeyRequest) String

func (x *GetByServiceIDKeyRequest) String() string

type GetByServiceIDKeyResponse

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

func (*GetByServiceIDKeyResponse) Descriptor deprecated

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

Deprecated: Use GetByServiceIDKeyResponse.ProtoReflect.Descriptor instead.

func (*GetByServiceIDKeyResponse) GetProperty

func (x *GetByServiceIDKeyResponse) GetProperty() *Property

func (*GetByServiceIDKeyResponse) ProtoMessage

func (*GetByServiceIDKeyResponse) ProtoMessage()

func (*GetByServiceIDKeyResponse) ProtoReflect

func (*GetByServiceIDKeyResponse) Reset

func (x *GetByServiceIDKeyResponse) Reset()

func (*GetByServiceIDKeyResponse) String

func (x *GetByServiceIDKeyResponse) String() string

type Property

type Property struct {
	ServiceId *v1.UUID                `protobuf:"bytes,1,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"`
	Key       string                  `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
	Value     *wrapperspb.StringValue `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
	Status    Status                  `protobuf:"varint,4,opt,name=status,proto3,enum=pkg.proto.property.v1.Status" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*Property) Descriptor deprecated

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

Deprecated: Use Property.ProtoReflect.Descriptor instead.

func (*Property) GetKey

func (x *Property) GetKey() string

func (*Property) GetServiceId

func (x *Property) GetServiceId() *v1.UUID

func (*Property) GetStatus

func (x *Property) GetStatus() Status

func (*Property) GetValue

func (x *Property) GetValue() *wrapperspb.StringValue

func (*Property) ProtoMessage

func (*Property) ProtoMessage()

func (*Property) ProtoReflect

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

func (*Property) Reset

func (x *Property) Reset()

func (*Property) String

func (x *Property) String() string

type PropertyServiceClient

type PropertyServiceClient interface {
	GetAll(ctx context.Context, in *GetAllRequest, opts ...grpc.CallOption) (*GetAllResponse, error)
	Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error)
	Store(ctx context.Context, in *StoreRequest, opts ...grpc.CallOption) (*StoreResponse, error)
	Update(ctx context.Context, in *UpdateRequest, opts ...grpc.CallOption) (*UpdateResponse, error)
	GetByServiceIDKey(ctx context.Context, in *GetByServiceIDKeyRequest, opts ...grpc.CallOption) (*GetByServiceIDKeyResponse, error)
	GetAllByServiceID(ctx context.Context, in *GetAllByServiceIDRequest, opts ...grpc.CallOption) (*GetAllByServiceIDResponse, error)
}

PropertyServiceClient is the client API for PropertyService 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 PropertyServiceServer

type PropertyServiceServer interface {
	GetAll(context.Context, *GetAllRequest) (*GetAllResponse, error)
	Delete(context.Context, *DeleteRequest) (*DeleteResponse, error)
	Store(context.Context, *StoreRequest) (*StoreResponse, error)
	Update(context.Context, *UpdateRequest) (*UpdateResponse, error)
	GetByServiceIDKey(context.Context, *GetByServiceIDKeyRequest) (*GetByServiceIDKeyResponse, error)
	GetAllByServiceID(context.Context, *GetAllByServiceIDRequest) (*GetAllByServiceIDResponse, error)
	// contains filtered or unexported methods
}

PropertyServiceServer is the server API for PropertyService service. All implementations must embed UnimplementedPropertyServiceServer for forward compatibility

type Status

type Status int32
const (
	Status_STATUS_UNSPECIFIED Status = 0
	Status_STATUS_VIEW        Status = 1
	Status_STATUS_EDIT        Status = 2
	Status_STATUS_HIDE        Status = 3
)

func (Status) Descriptor

func (Status) Descriptor() protoreflect.EnumDescriptor

func (Status) Enum

func (x Status) Enum() *Status

func (Status) EnumDescriptor deprecated

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

Deprecated: Use Status.Descriptor instead.

func (Status) Number

func (x Status) Number() protoreflect.EnumNumber

func (Status) String

func (x Status) String() string

func (Status) Type

func (Status) Type() protoreflect.EnumType

type StoreRequest

type StoreRequest struct {
	Properties []*Property `protobuf:"bytes,1,rep,name=properties,proto3" json:"properties,omitempty"`
	// contains filtered or unexported fields
}

func (*StoreRequest) Descriptor deprecated

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

Deprecated: Use StoreRequest.ProtoReflect.Descriptor instead.

func (*StoreRequest) GetProperties

func (x *StoreRequest) GetProperties() []*Property

func (*StoreRequest) ProtoMessage

func (*StoreRequest) ProtoMessage()

func (*StoreRequest) ProtoReflect

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

func (*StoreRequest) Reset

func (x *StoreRequest) Reset()

func (*StoreRequest) String

func (x *StoreRequest) String() string

type StoreResponse

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

func (*StoreResponse) Descriptor deprecated

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

Deprecated: Use StoreResponse.ProtoReflect.Descriptor instead.

func (*StoreResponse) ProtoMessage

func (*StoreResponse) ProtoMessage()

func (*StoreResponse) ProtoReflect

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

func (*StoreResponse) Reset

func (x *StoreResponse) Reset()

func (*StoreResponse) String

func (x *StoreResponse) String() string

type UnimplementedPropertyServiceServer

type UnimplementedPropertyServiceServer struct {
}

UnimplementedPropertyServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedPropertyServiceServer) Delete

func (UnimplementedPropertyServiceServer) GetAll

func (UnimplementedPropertyServiceServer) GetAllByServiceID

func (UnimplementedPropertyServiceServer) GetByServiceIDKey

func (UnimplementedPropertyServiceServer) Store

func (UnimplementedPropertyServiceServer) Update

type UnsafePropertyServiceServer

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

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

type UpdateRequest

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

func (*UpdateRequest) Descriptor deprecated

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

Deprecated: Use UpdateRequest.ProtoReflect.Descriptor instead.

func (*UpdateRequest) GetProperty

func (x *UpdateRequest) GetProperty() *Property

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 {
	// contains filtered or unexported fields
}

func (*UpdateResponse) Descriptor deprecated

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

Deprecated: Use UpdateResponse.ProtoReflect.Descriptor instead.

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

Jump to

Keyboard shortcuts

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