Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterOrganismServiceServer(s grpc.ServiceRegistrar, srv OrganismServiceServer)
- type DeleteOrganismRequest
- func (*DeleteOrganismRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteOrganismRequest) GetId() int64
- func (*DeleteOrganismRequest) ProtoMessage()
- func (x *DeleteOrganismRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteOrganismRequest) Reset()
- func (x *DeleteOrganismRequest) String() string
- func (this *DeleteOrganismRequest) Validate() error
- type NewOrganism
- func (*NewOrganism) Descriptor() ([]byte, []int)deprecated
- func (x *NewOrganism) GetAttributes() *OrganismAttributes
- func (x *NewOrganism) GetCreatedAt() *timestamppb.Timestamp
- func (x *NewOrganism) GetCreatedBy() string
- func (*NewOrganism) ProtoMessage()
- func (x *NewOrganism) ProtoReflect() protoreflect.Message
- func (x *NewOrganism) Reset()
- func (x *NewOrganism) String() string
- func (this *NewOrganism) Validate() error
- type Organism
- func (*Organism) Descriptor() ([]byte, []int)deprecated
- func (x *Organism) GetAttributes() *OrganismAttributes
- func (x *Organism) GetCreatedAt() *timestamppb.Timestamp
- func (x *Organism) GetCreatedBy() string
- func (x *Organism) GetOrganismId() int64
- func (x *Organism) GetUpdatedAt() *timestamppb.Timestamp
- func (x *Organism) GetUpdatedBy() string
- func (*Organism) ProtoMessage()
- func (x *Organism) ProtoReflect() protoreflect.Message
- func (x *Organism) Reset()
- func (x *Organism) String() string
- func (this *Organism) Validate() error
- type OrganismAttributes
- func (*OrganismAttributes) Descriptor() ([]byte, []int)deprecated
- func (x *OrganismAttributes) GetAbbreviation() string
- func (x *OrganismAttributes) GetCommonName() string
- func (x *OrganismAttributes) GetGenus() string
- func (x *OrganismAttributes) GetSpecies() string
- func (*OrganismAttributes) ProtoMessage()
- func (x *OrganismAttributes) ProtoReflect() protoreflect.Message
- func (x *OrganismAttributes) Reset()
- func (x *OrganismAttributes) String() string
- func (this *OrganismAttributes) Validate() error
- type OrganismCollection
- func (*OrganismCollection) Descriptor() ([]byte, []int)deprecated
- func (x *OrganismCollection) GetData() []*Organism
- func (*OrganismCollection) ProtoMessage()
- func (x *OrganismCollection) ProtoReflect() protoreflect.Message
- func (x *OrganismCollection) Reset()
- func (x *OrganismCollection) String() string
- func (this *OrganismCollection) Validate() error
- type OrganismId
- type OrganismServiceClient
- type OrganismServiceServer
- type OrganismUpdate
- func (*OrganismUpdate) Descriptor() ([]byte, []int)deprecated
- func (x *OrganismUpdate) GetAttributes() *OrganismAttributes
- func (x *OrganismUpdate) GetId() string
- func (x *OrganismUpdate) GetUpdatedBy() string
- func (*OrganismUpdate) ProtoMessage()
- func (x *OrganismUpdate) ProtoReflect() protoreflect.Message
- func (x *OrganismUpdate) Reset()
- func (x *OrganismUpdate) String() string
- func (this *OrganismUpdate) Validate() error
- type UnimplementedOrganismServiceServer
- func (UnimplementedOrganismServiceServer) CreateOrganism(context.Context, *NewOrganism) (*Organism, error)
- func (UnimplementedOrganismServiceServer) DeleteOrganism(context.Context, *DeleteOrganismRequest) (*emptypb.Empty, error)
- func (UnimplementedOrganismServiceServer) GetOrganism(context.Context, *OrganismId) (*Organism, error)
- func (UnimplementedOrganismServiceServer) ListOrganisms(context.Context, *emptypb.Empty) (*OrganismCollection, error)
- func (UnimplementedOrganismServiceServer) UpdateOrganism(context.Context, *OrganismUpdate) (*Organism, error)
- type UnsafeOrganismServiceServer
Constants ¶
const ( OrganismService_CreateOrganism_FullMethodName = "/dictybase.organism.OrganismService/CreateOrganism" OrganismService_GetOrganism_FullMethodName = "/dictybase.organism.OrganismService/GetOrganism" OrganismService_UpdateOrganism_FullMethodName = "/dictybase.organism.OrganismService/UpdateOrganism" OrganismService_DeleteOrganism_FullMethodName = "/dictybase.organism.OrganismService/DeleteOrganism" OrganismService_ListOrganisms_FullMethodName = "/dictybase.organism.OrganismService/ListOrganisms" )
Variables ¶
var File_dictybase_organism_organism_proto protoreflect.FileDescriptor
var OrganismService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "dictybase.organism.OrganismService", HandlerType: (*OrganismServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateOrganism", Handler: _OrganismService_CreateOrganism_Handler, }, { MethodName: "GetOrganism", Handler: _OrganismService_GetOrganism_Handler, }, { MethodName: "UpdateOrganism", Handler: _OrganismService_UpdateOrganism_Handler, }, { MethodName: "DeleteOrganism", Handler: _OrganismService_DeleteOrganism_Handler, }, { MethodName: "ListOrganisms", Handler: _OrganismService_ListOrganisms_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "dictybase/organism/organism.proto", }
OrganismService_ServiceDesc is the grpc.ServiceDesc for OrganismService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterOrganismServiceServer ¶
func RegisterOrganismServiceServer(s grpc.ServiceRegistrar, srv OrganismServiceServer)
Types ¶
type DeleteOrganismRequest ¶
type DeleteOrganismRequest struct { // unique identifier for the organism Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DeleteOrganismRequest) Descriptor
deprecated
func (*DeleteOrganismRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteOrganismRequest.ProtoReflect.Descriptor instead.
func (*DeleteOrganismRequest) GetId ¶
func (x *DeleteOrganismRequest) GetId() int64
func (*DeleteOrganismRequest) ProtoMessage ¶
func (*DeleteOrganismRequest) ProtoMessage()
func (*DeleteOrganismRequest) ProtoReflect ¶
func (x *DeleteOrganismRequest) ProtoReflect() protoreflect.Message
func (*DeleteOrganismRequest) Reset ¶
func (x *DeleteOrganismRequest) Reset()
func (*DeleteOrganismRequest) String ¶
func (x *DeleteOrganismRequest) String() string
func (*DeleteOrganismRequest) Validate ¶
func (this *DeleteOrganismRequest) Validate() error
type NewOrganism ¶
type NewOrganism struct { Attributes *OrganismAttributes `protobuf:"bytes,1,opt,name=attributes,proto3" json:"attributes,omitempty"` // email id of the user who created the content CreatedBy string `protobuf:"bytes,2,opt,name=created_by,json=createdBy,proto3" json:"created_by,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // contains filtered or unexported fields }
func (*NewOrganism) Descriptor
deprecated
func (*NewOrganism) Descriptor() ([]byte, []int)
Deprecated: Use NewOrganism.ProtoReflect.Descriptor instead.
func (*NewOrganism) GetAttributes ¶
func (x *NewOrganism) GetAttributes() *OrganismAttributes
func (*NewOrganism) GetCreatedAt ¶
func (x *NewOrganism) GetCreatedAt() *timestamppb.Timestamp
func (*NewOrganism) GetCreatedBy ¶
func (x *NewOrganism) GetCreatedBy() string
func (*NewOrganism) ProtoMessage ¶
func (*NewOrganism) ProtoMessage()
func (*NewOrganism) ProtoReflect ¶
func (x *NewOrganism) ProtoReflect() protoreflect.Message
func (*NewOrganism) Reset ¶
func (x *NewOrganism) Reset()
func (*NewOrganism) String ¶
func (x *NewOrganism) String() string
func (*NewOrganism) Validate ¶
func (this *NewOrganism) Validate() error
type Organism ¶
type Organism struct { Attributes *OrganismAttributes `protobuf:"bytes,1,opt,name=attributes,proto3" json:"attributes,omitempty"` // email id of the user who created the content CreatedBy string `protobuf:"bytes,2,opt,name=created_by,json=createdBy,proto3" json:"created_by,omitempty"` // email id of the user who updated the content UpdatedBy string `protobuf:"bytes,3,opt,name=updated_by,json=updatedBy,proto3" json:"updated_by,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // Unique identifier for the organism OrganismId int64 `protobuf:"varint,6,opt,name=organism_id,json=organismId,proto3" json:"organism_id,omitempty"` // contains filtered or unexported fields }
func (*Organism) Descriptor
deprecated
func (*Organism) GetAttributes ¶
func (x *Organism) GetAttributes() *OrganismAttributes
func (*Organism) GetCreatedAt ¶
func (x *Organism) GetCreatedAt() *timestamppb.Timestamp
func (*Organism) GetCreatedBy ¶
func (*Organism) GetOrganismId ¶
func (*Organism) GetUpdatedAt ¶
func (x *Organism) GetUpdatedAt() *timestamppb.Timestamp
func (*Organism) GetUpdatedBy ¶
func (*Organism) ProtoMessage ¶
func (*Organism) ProtoMessage()
func (*Organism) ProtoReflect ¶
func (x *Organism) ProtoReflect() protoreflect.Message
type OrganismAttributes ¶
type OrganismAttributes struct { // Abbreviated name of the organism Abbreviation string `protobuf:"bytes,1,opt,name=abbreviation,proto3" json:"abbreviation,omitempty"` // Common name of the organism CommonName string `protobuf:"bytes,2,opt,name=common_name,json=commonName,proto3" json:"common_name,omitempty"` // Genus name Genus string `protobuf:"bytes,3,opt,name=genus,proto3" json:"genus,omitempty"` // Species name Species string `protobuf:"bytes,4,opt,name=species,proto3" json:"species,omitempty"` // contains filtered or unexported fields }
func (*OrganismAttributes) Descriptor
deprecated
func (*OrganismAttributes) Descriptor() ([]byte, []int)
Deprecated: Use OrganismAttributes.ProtoReflect.Descriptor instead.
func (*OrganismAttributes) GetAbbreviation ¶
func (x *OrganismAttributes) GetAbbreviation() string
func (*OrganismAttributes) GetCommonName ¶
func (x *OrganismAttributes) GetCommonName() string
func (*OrganismAttributes) GetGenus ¶
func (x *OrganismAttributes) GetGenus() string
func (*OrganismAttributes) GetSpecies ¶
func (x *OrganismAttributes) GetSpecies() string
func (*OrganismAttributes) ProtoMessage ¶
func (*OrganismAttributes) ProtoMessage()
func (*OrganismAttributes) ProtoReflect ¶
func (x *OrganismAttributes) ProtoReflect() protoreflect.Message
func (*OrganismAttributes) Reset ¶
func (x *OrganismAttributes) Reset()
func (*OrganismAttributes) String ¶
func (x *OrganismAttributes) String() string
func (*OrganismAttributes) Validate ¶
func (this *OrganismAttributes) Validate() error
type OrganismCollection ¶
type OrganismCollection struct { // Collection of organisms Data []*Organism `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*OrganismCollection) Descriptor
deprecated
func (*OrganismCollection) Descriptor() ([]byte, []int)
Deprecated: Use OrganismCollection.ProtoReflect.Descriptor instead.
func (*OrganismCollection) GetData ¶
func (x *OrganismCollection) GetData() []*Organism
func (*OrganismCollection) ProtoMessage ¶
func (*OrganismCollection) ProtoMessage()
func (*OrganismCollection) ProtoReflect ¶
func (x *OrganismCollection) ProtoReflect() protoreflect.Message
func (*OrganismCollection) Reset ¶
func (x *OrganismCollection) Reset()
func (*OrganismCollection) String ¶
func (x *OrganismCollection) String() string
func (*OrganismCollection) Validate ¶
func (this *OrganismCollection) Validate() error
type OrganismId ¶
type OrganismId struct { // unique identifier for the organism Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*OrganismId) Descriptor
deprecated
func (*OrganismId) Descriptor() ([]byte, []int)
Deprecated: Use OrganismId.ProtoReflect.Descriptor instead.
func (*OrganismId) GetId ¶
func (x *OrganismId) GetId() int64
func (*OrganismId) ProtoMessage ¶
func (*OrganismId) ProtoMessage()
func (*OrganismId) ProtoReflect ¶
func (x *OrganismId) ProtoReflect() protoreflect.Message
func (*OrganismId) Reset ¶
func (x *OrganismId) Reset()
func (*OrganismId) String ¶
func (x *OrganismId) String() string
func (*OrganismId) Validate ¶
func (this *OrganismId) Validate() error
type OrganismServiceClient ¶
type OrganismServiceClient interface { // Create a new organism CreateOrganism(ctx context.Context, in *NewOrganism, opts ...grpc.CallOption) (*Organism, error) // Retrieve an organism by ID GetOrganism(ctx context.Context, in *OrganismId, opts ...grpc.CallOption) (*Organism, error) // Update an existing organism UpdateOrganism(ctx context.Context, in *OrganismUpdate, opts ...grpc.CallOption) (*Organism, error) // Delete an organism DeleteOrganism(ctx context.Context, in *DeleteOrganismRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) // List all organisms ListOrganisms(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*OrganismCollection, error) }
OrganismServiceClient is the client API for OrganismService 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.
func NewOrganismServiceClient ¶
func NewOrganismServiceClient(cc grpc.ClientConnInterface) OrganismServiceClient
type OrganismServiceServer ¶
type OrganismServiceServer interface { // Create a new organism CreateOrganism(context.Context, *NewOrganism) (*Organism, error) // Retrieve an organism by ID GetOrganism(context.Context, *OrganismId) (*Organism, error) // Update an existing organism UpdateOrganism(context.Context, *OrganismUpdate) (*Organism, error) // Delete an organism DeleteOrganism(context.Context, *DeleteOrganismRequest) (*emptypb.Empty, error) // List all organisms ListOrganisms(context.Context, *emptypb.Empty) (*OrganismCollection, error) // contains filtered or unexported methods }
OrganismServiceServer is the server API for OrganismService service. All implementations must embed UnimplementedOrganismServiceServer for forward compatibility
type OrganismUpdate ¶
type OrganismUpdate struct { // unique identifier for the organism Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Attributes *OrganismAttributes `protobuf:"bytes,2,opt,name=attributes,proto3" json:"attributes,omitempty"` // email id of the user who updated the content UpdatedBy string `protobuf:"bytes,3,opt,name=updated_by,json=updatedBy,proto3" json:"updated_by,omitempty"` // contains filtered or unexported fields }
func (*OrganismUpdate) Descriptor
deprecated
func (*OrganismUpdate) Descriptor() ([]byte, []int)
Deprecated: Use OrganismUpdate.ProtoReflect.Descriptor instead.
func (*OrganismUpdate) GetAttributes ¶
func (x *OrganismUpdate) GetAttributes() *OrganismAttributes
func (*OrganismUpdate) GetId ¶
func (x *OrganismUpdate) GetId() string
func (*OrganismUpdate) GetUpdatedBy ¶
func (x *OrganismUpdate) GetUpdatedBy() string
func (*OrganismUpdate) ProtoMessage ¶
func (*OrganismUpdate) ProtoMessage()
func (*OrganismUpdate) ProtoReflect ¶
func (x *OrganismUpdate) ProtoReflect() protoreflect.Message
func (*OrganismUpdate) Reset ¶
func (x *OrganismUpdate) Reset()
func (*OrganismUpdate) String ¶
func (x *OrganismUpdate) String() string
func (*OrganismUpdate) Validate ¶
func (this *OrganismUpdate) Validate() error
type UnimplementedOrganismServiceServer ¶
type UnimplementedOrganismServiceServer struct { }
UnimplementedOrganismServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedOrganismServiceServer) CreateOrganism ¶
func (UnimplementedOrganismServiceServer) CreateOrganism(context.Context, *NewOrganism) (*Organism, error)
func (UnimplementedOrganismServiceServer) DeleteOrganism ¶
func (UnimplementedOrganismServiceServer) DeleteOrganism(context.Context, *DeleteOrganismRequest) (*emptypb.Empty, error)
func (UnimplementedOrganismServiceServer) GetOrganism ¶
func (UnimplementedOrganismServiceServer) GetOrganism(context.Context, *OrganismId) (*Organism, error)
func (UnimplementedOrganismServiceServer) ListOrganisms ¶
func (UnimplementedOrganismServiceServer) ListOrganisms(context.Context, *emptypb.Empty) (*OrganismCollection, error)
func (UnimplementedOrganismServiceServer) UpdateOrganism ¶
func (UnimplementedOrganismServiceServer) UpdateOrganism(context.Context, *OrganismUpdate) (*Organism, error)
type UnsafeOrganismServiceServer ¶
type UnsafeOrganismServiceServer interface {
// contains filtered or unexported methods
}
UnsafeOrganismServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to OrganismServiceServer will result in compilation errors.