Documentation ¶
Index ¶
- Variables
- func RegisterShelfServiceServer(s grpc.ServiceRegistrar, srv ShelfServiceServer)
- type BatchGetShelvesRequest
- func (*BatchGetShelvesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *BatchGetShelvesRequest) GetIds() []string
- func (*BatchGetShelvesRequest) ProtoMessage()
- func (x *BatchGetShelvesRequest) ProtoReflect() protoreflect.Message
- func (x *BatchGetShelvesRequest) Reset()
- func (x *BatchGetShelvesRequest) String() string
- type BatchGetShelvesResponse
- func (*BatchGetShelvesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *BatchGetShelvesResponse) GetShelves() []*Shelf
- func (*BatchGetShelvesResponse) ProtoMessage()
- func (x *BatchGetShelvesResponse) ProtoReflect() protoreflect.Message
- func (x *BatchGetShelvesResponse) Reset()
- func (x *BatchGetShelvesResponse) String() string
- type CreateShelfRequest
- func (*CreateShelfRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateShelfRequest) GetExampleId() string
- func (x *CreateShelfRequest) GetShelf() *Shelf
- func (*CreateShelfRequest) ProtoMessage()
- func (x *CreateShelfRequest) ProtoReflect() protoreflect.Message
- func (x *CreateShelfRequest) Reset()
- func (x *CreateShelfRequest) String() string
- type CreateShelfResponse
- func (*CreateShelfResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateShelfResponse) GetShelf() *Shelf
- func (*CreateShelfResponse) ProtoMessage()
- func (x *CreateShelfResponse) ProtoReflect() protoreflect.Message
- func (x *CreateShelfResponse) Reset()
- func (x *CreateShelfResponse) String() string
- type DeleteShelfRequest
- type DeleteShelfResponse
- func (*DeleteShelfResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteShelfResponse) GetShelf() *Shelf
- func (*DeleteShelfResponse) ProtoMessage()
- func (x *DeleteShelfResponse) ProtoReflect() protoreflect.Message
- func (x *DeleteShelfResponse) Reset()
- func (x *DeleteShelfResponse) String() string
- type GetShelfRequest
- type GetShelfResponse
- type ListShelvesRequest
- func (*ListShelvesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListShelvesRequest) GetAfterTime() *timestamppb.Timestamp
- func (x *ListShelvesRequest) GetBeforeTime() *timestamppb.Timestamp
- func (x *ListShelvesRequest) GetExampleId() string
- func (x *ListShelvesRequest) GetMaxSize() uint64
- func (x *ListShelvesRequest) GetStart() uint64
- func (*ListShelvesRequest) ProtoMessage()
- func (x *ListShelvesRequest) ProtoReflect() protoreflect.Message
- func (x *ListShelvesRequest) Reset()
- func (x *ListShelvesRequest) String() string
- type ListShelvesResponse
- func (*ListShelvesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListShelvesResponse) GetNext() bool
- func (x *ListShelvesResponse) GetShelves() []*Shelf
- func (*ListShelvesResponse) ProtoMessage()
- func (x *ListShelvesResponse) ProtoReflect() protoreflect.Message
- func (x *ListShelvesResponse) Reset()
- func (x *ListShelvesResponse) String() string
- type Shelf
- func (*Shelf) Descriptor() ([]byte, []int)deprecated
- func (x *Shelf) GetCreateTime() *timestamppb.Timestamp
- func (x *Shelf) GetDisplayName() string
- func (x *Shelf) GetExampleId() string
- func (x *Shelf) GetId() string
- func (x *Shelf) GetUpdateTime() *timestamppb.Timestamp
- func (*Shelf) ProtoMessage()
- func (x *Shelf) ProtoReflect() protoreflect.Message
- func (x *Shelf) Reset()
- func (x *Shelf) String() string
- type ShelfServiceClient
- type ShelfServiceServer
- type UnimplementedShelfServiceServer
- func (UnimplementedShelfServiceServer) BatchGetShelves(context.Context, *BatchGetShelvesRequest) (*BatchGetShelvesResponse, error)
- func (UnimplementedShelfServiceServer) CreateShelf(context.Context, *CreateShelfRequest) (*CreateShelfResponse, error)
- func (UnimplementedShelfServiceServer) DeleteShelf(context.Context, *DeleteShelfRequest) (*DeleteShelfResponse, error)
- func (UnimplementedShelfServiceServer) GetShelf(context.Context, *GetShelfRequest) (*GetShelfResponse, error)
- func (UnimplementedShelfServiceServer) ListShelves(context.Context, *ListShelvesRequest) (*ListShelvesResponse, error)
- func (UnimplementedShelfServiceServer) UpdateShelf(context.Context, *UpdateShelfRequest) (*UpdateShelfResponse, error)
- type UnsafeShelfServiceServer
- type UpdateShelfRequest
- func (*UpdateShelfRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateShelfRequest) GetId() string
- func (x *UpdateShelfRequest) GetShelf() *Shelf
- func (x *UpdateShelfRequest) GetUpdateMask() *fieldmaskpb.FieldMask
- func (*UpdateShelfRequest) ProtoMessage()
- func (x *UpdateShelfRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateShelfRequest) Reset()
- func (x *UpdateShelfRequest) String() string
- type UpdateShelfResponse
- func (*UpdateShelfResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateShelfResponse) GetShelf() *Shelf
- func (*UpdateShelfResponse) ProtoMessage()
- func (x *UpdateShelfResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateShelfResponse) Reset()
- func (x *UpdateShelfResponse) String() string
Constants ¶
This section is empty.
Variables ¶
var File_acme_shelf_v1_request_response_proto protoreflect.FileDescriptor
var File_acme_shelf_v1_resource_proto protoreflect.FileDescriptor
var File_acme_shelf_v1_service_proto protoreflect.FileDescriptor
var ShelfService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "acme.shelf.v1.ShelfService", HandlerType: (*ShelfServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ListShelves", Handler: _ShelfService_ListShelves_Handler, }, { MethodName: "BatchGetShelves", Handler: _ShelfService_BatchGetShelves_Handler, }, { MethodName: "GetShelf", Handler: _ShelfService_GetShelf_Handler, }, { MethodName: "CreateShelf", Handler: _ShelfService_CreateShelf_Handler, }, { MethodName: "UpdateShelf", Handler: _ShelfService_UpdateShelf_Handler, }, { MethodName: "DeleteShelf", Handler: _ShelfService_DeleteShelf_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "acme/shelf/v1/service.proto", }
ShelfService_ServiceDesc is the grpc.ServiceDesc for ShelfService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterShelfServiceServer ¶
func RegisterShelfServiceServer(s grpc.ServiceRegistrar, srv ShelfServiceServer)
Types ¶
type BatchGetShelvesRequest ¶
type BatchGetShelvesRequest struct { // The ids of the requested shelves. Ids []string `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"` // contains filtered or unexported fields }
The standard BatchGet request definition.
func (*BatchGetShelvesRequest) Descriptor
deprecated
func (*BatchGetShelvesRequest) Descriptor() ([]byte, []int)
Deprecated: Use BatchGetShelvesRequest.ProtoReflect.Descriptor instead.
func (*BatchGetShelvesRequest) GetIds ¶
func (x *BatchGetShelvesRequest) GetIds() []string
func (*BatchGetShelvesRequest) ProtoMessage ¶
func (*BatchGetShelvesRequest) ProtoMessage()
func (*BatchGetShelvesRequest) ProtoReflect ¶
func (x *BatchGetShelvesRequest) ProtoReflect() protoreflect.Message
func (*BatchGetShelvesRequest) Reset ¶
func (x *BatchGetShelvesRequest) Reset()
func (*BatchGetShelvesRequest) String ¶
func (x *BatchGetShelvesRequest) String() string
type BatchGetShelvesResponse ¶
type BatchGetShelvesResponse struct { // The retrieved shelves. Shelves []*Shelf `protobuf:"bytes,1,rep,name=shelves,proto3" json:"shelves,omitempty"` // contains filtered or unexported fields }
The standard BatchGet response definition.
func (*BatchGetShelvesResponse) Descriptor
deprecated
func (*BatchGetShelvesResponse) Descriptor() ([]byte, []int)
Deprecated: Use BatchGetShelvesResponse.ProtoReflect.Descriptor instead.
func (*BatchGetShelvesResponse) GetShelves ¶
func (x *BatchGetShelvesResponse) GetShelves() []*Shelf
func (*BatchGetShelvesResponse) ProtoMessage ¶
func (*BatchGetShelvesResponse) ProtoMessage()
func (*BatchGetShelvesResponse) ProtoReflect ¶
func (x *BatchGetShelvesResponse) ProtoReflect() protoreflect.Message
func (*BatchGetShelvesResponse) Reset ¶
func (x *BatchGetShelvesResponse) Reset()
func (*BatchGetShelvesResponse) String ¶
func (x *BatchGetShelvesResponse) String() string
type CreateShelfRequest ¶
type CreateShelfRequest struct { // The shelf to create. Shelf *Shelf `protobuf:"bytes,1,opt,name=shelf,proto3" json:"shelf,omitempty"` // The unique id of the parent example where the shelf is to be created. ExampleId string `protobuf:"bytes,4,opt,name=example_id,json=exampleId,proto3" json:"example_id,omitempty"` // contains filtered or unexported fields }
The standard Create request definition.
func (*CreateShelfRequest) Descriptor
deprecated
func (*CreateShelfRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateShelfRequest.ProtoReflect.Descriptor instead.
func (*CreateShelfRequest) GetExampleId ¶
func (x *CreateShelfRequest) GetExampleId() string
func (*CreateShelfRequest) GetShelf ¶
func (x *CreateShelfRequest) GetShelf() *Shelf
func (*CreateShelfRequest) ProtoMessage ¶
func (*CreateShelfRequest) ProtoMessage()
func (*CreateShelfRequest) ProtoReflect ¶
func (x *CreateShelfRequest) ProtoReflect() protoreflect.Message
func (*CreateShelfRequest) Reset ¶
func (x *CreateShelfRequest) Reset()
func (*CreateShelfRequest) String ¶
func (x *CreateShelfRequest) String() string
type CreateShelfResponse ¶
type CreateShelfResponse struct { // The created shelf. Shelf *Shelf `protobuf:"bytes,1,opt,name=shelf,proto3" json:"shelf,omitempty"` // contains filtered or unexported fields }
The standard Create response definition.
func (*CreateShelfResponse) Descriptor
deprecated
func (*CreateShelfResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateShelfResponse.ProtoReflect.Descriptor instead.
func (*CreateShelfResponse) GetShelf ¶
func (x *CreateShelfResponse) GetShelf() *Shelf
func (*CreateShelfResponse) ProtoMessage ¶
func (*CreateShelfResponse) ProtoMessage()
func (*CreateShelfResponse) ProtoReflect ¶
func (x *CreateShelfResponse) ProtoReflect() protoreflect.Message
func (*CreateShelfResponse) Reset ¶
func (x *CreateShelfResponse) Reset()
func (*CreateShelfResponse) String ¶
func (x *CreateShelfResponse) String() string
type DeleteShelfRequest ¶
type DeleteShelfRequest struct { // The id of the shelf to be deleted. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
The standard Delete request definition.
func (*DeleteShelfRequest) Descriptor
deprecated
func (*DeleteShelfRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteShelfRequest.ProtoReflect.Descriptor instead.
func (*DeleteShelfRequest) GetId ¶
func (x *DeleteShelfRequest) GetId() string
func (*DeleteShelfRequest) ProtoMessage ¶
func (*DeleteShelfRequest) ProtoMessage()
func (*DeleteShelfRequest) ProtoReflect ¶
func (x *DeleteShelfRequest) ProtoReflect() protoreflect.Message
func (*DeleteShelfRequest) Reset ¶
func (x *DeleteShelfRequest) Reset()
func (*DeleteShelfRequest) String ¶
func (x *DeleteShelfRequest) String() string
type DeleteShelfResponse ¶
type DeleteShelfResponse struct { // The deleted shelf. Shelf *Shelf `protobuf:"bytes,1,opt,name=shelf,proto3" json:"shelf,omitempty"` // contains filtered or unexported fields }
The standard Delete response definition.
func (*DeleteShelfResponse) Descriptor
deprecated
func (*DeleteShelfResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteShelfResponse.ProtoReflect.Descriptor instead.
func (*DeleteShelfResponse) GetShelf ¶
func (x *DeleteShelfResponse) GetShelf() *Shelf
func (*DeleteShelfResponse) ProtoMessage ¶
func (*DeleteShelfResponse) ProtoMessage()
func (*DeleteShelfResponse) ProtoReflect ¶
func (x *DeleteShelfResponse) ProtoReflect() protoreflect.Message
func (*DeleteShelfResponse) Reset ¶
func (x *DeleteShelfResponse) Reset()
func (*DeleteShelfResponse) String ¶
func (x *DeleteShelfResponse) String() string
type GetShelfRequest ¶
type GetShelfRequest struct { // The id of the requested shelf. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
The standard Get request definition.
func (*GetShelfRequest) Descriptor
deprecated
func (*GetShelfRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetShelfRequest.ProtoReflect.Descriptor instead.
func (*GetShelfRequest) GetId ¶
func (x *GetShelfRequest) GetId() string
func (*GetShelfRequest) ProtoMessage ¶
func (*GetShelfRequest) ProtoMessage()
func (*GetShelfRequest) ProtoReflect ¶
func (x *GetShelfRequest) ProtoReflect() protoreflect.Message
func (*GetShelfRequest) Reset ¶
func (x *GetShelfRequest) Reset()
func (*GetShelfRequest) String ¶
func (x *GetShelfRequest) String() string
type GetShelfResponse ¶
type GetShelfResponse struct { // The retrieved shelf. Shelf *Shelf `protobuf:"bytes,1,opt,name=shelf,proto3" json:"shelf,omitempty"` // contains filtered or unexported fields }
The standard Get response definition.
func (*GetShelfResponse) Descriptor
deprecated
func (*GetShelfResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetShelfResponse.ProtoReflect.Descriptor instead.
func (*GetShelfResponse) GetShelf ¶
func (x *GetShelfResponse) GetShelf() *Shelf
func (*GetShelfResponse) ProtoMessage ¶
func (*GetShelfResponse) ProtoMessage()
func (*GetShelfResponse) ProtoReflect ¶
func (x *GetShelfResponse) ProtoReflect() protoreflect.Message
func (*GetShelfResponse) Reset ¶
func (x *GetShelfResponse) Reset()
func (*GetShelfResponse) String ¶
func (x *GetShelfResponse) String() string
type ListShelvesRequest ¶
type ListShelvesRequest struct { // Only retrieve shelves after this time. AfterTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=after_time,json=afterTime,proto3" json:"after_time,omitempty"` // Only retrieve shelves before this time. BeforeTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=before_time,json=beforeTime,proto3" json:"before_time,omitempty"` // The start index for pagination. Start uint64 `protobuf:"varint,3,opt,name=start,proto3" json:"start,omitempty"` // The maximum number of shelves to return. MaxSize uint64 `protobuf:"varint,4,opt,name=max_size,json=maxSize,proto3" json:"max_size,omitempty"` // The unique id of the parent example for which to list the shelves. ExampleId string `protobuf:"bytes,5,opt,name=example_id,json=exampleId,proto3" json:"example_id,omitempty"` // contains filtered or unexported fields }
The standard List request definition.
func (*ListShelvesRequest) Descriptor
deprecated
func (*ListShelvesRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListShelvesRequest.ProtoReflect.Descriptor instead.
func (*ListShelvesRequest) GetAfterTime ¶
func (x *ListShelvesRequest) GetAfterTime() *timestamppb.Timestamp
func (*ListShelvesRequest) GetBeforeTime ¶
func (x *ListShelvesRequest) GetBeforeTime() *timestamppb.Timestamp
func (*ListShelvesRequest) GetExampleId ¶
func (x *ListShelvesRequest) GetExampleId() string
func (*ListShelvesRequest) GetMaxSize ¶
func (x *ListShelvesRequest) GetMaxSize() uint64
func (*ListShelvesRequest) GetStart ¶
func (x *ListShelvesRequest) GetStart() uint64
func (*ListShelvesRequest) ProtoMessage ¶
func (*ListShelvesRequest) ProtoMessage()
func (*ListShelvesRequest) ProtoReflect ¶
func (x *ListShelvesRequest) ProtoReflect() protoreflect.Message
func (*ListShelvesRequest) Reset ¶
func (x *ListShelvesRequest) Reset()
func (*ListShelvesRequest) String ¶
func (x *ListShelvesRequest) String() string
type ListShelvesResponse ¶
type ListShelvesResponse struct { // The retrieved list of shelves. Shelves []*Shelf `protobuf:"bytes,1,rep,name=shelves,proto3" json:"shelves,omitempty"` // True if more shelves are available. Next bool `protobuf:"varint,2,opt,name=next,proto3" json:"next,omitempty"` // contains filtered or unexported fields }
The standard List response definition.
func (*ListShelvesResponse) Descriptor
deprecated
func (*ListShelvesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListShelvesResponse.ProtoReflect.Descriptor instead.
func (*ListShelvesResponse) GetNext ¶
func (x *ListShelvesResponse) GetNext() bool
func (*ListShelvesResponse) GetShelves ¶
func (x *ListShelvesResponse) GetShelves() []*Shelf
func (*ListShelvesResponse) ProtoMessage ¶
func (*ListShelvesResponse) ProtoMessage()
func (*ListShelvesResponse) ProtoReflect ¶
func (x *ListShelvesResponse) ProtoReflect() protoreflect.Message
func (*ListShelvesResponse) Reset ¶
func (x *ListShelvesResponse) Reset()
func (*ListShelvesResponse) String ¶
func (x *ListShelvesResponse) String() string
type Shelf ¶
type Shelf struct { // The unique shelf id. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // Indicates when the shelf was created. CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Indicates when the shelf was last updated. UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // The unique id of the parent example resource. ExampleId string `protobuf:"bytes,4,opt,name=example_id,json=exampleId,proto3" json:"example_id,omitempty"` // The display name for the shelf. DisplayName string `protobuf:"bytes,5,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` // contains filtered or unexported fields }
The default Shelf resource representation.
func (*Shelf) Descriptor
deprecated
func (*Shelf) GetCreateTime ¶
func (x *Shelf) GetCreateTime() *timestamppb.Timestamp
func (*Shelf) GetDisplayName ¶
func (*Shelf) GetExampleId ¶
func (*Shelf) GetUpdateTime ¶
func (x *Shelf) GetUpdateTime() *timestamppb.Timestamp
func (*Shelf) ProtoMessage ¶
func (*Shelf) ProtoMessage()
func (*Shelf) ProtoReflect ¶
func (x *Shelf) ProtoReflect() protoreflect.Message
type ShelfServiceClient ¶
type ShelfServiceClient interface { // ListShelves retrieves a list of shelf resources from the server. ListShelves(ctx context.Context, in *ListShelvesRequest, opts ...grpc.CallOption) (*ListShelvesResponse, error) // BatchGetShelves retrieves multiple shelf resources from the server. BatchGetShelves(ctx context.Context, in *BatchGetShelvesRequest, opts ...grpc.CallOption) (*BatchGetShelvesResponse, error) // GetShelf retrieves a single shelf resource from the server. GetShelf(ctx context.Context, in *GetShelfRequest, opts ...grpc.CallOption) (*GetShelfResponse, error) // CreateShelf creates a new shelf resource on the server. CreateShelf(ctx context.Context, in *CreateShelfRequest, opts ...grpc.CallOption) (*CreateShelfResponse, error) // UpdateShelf updates the shelf resource on the server. UpdateShelf(ctx context.Context, in *UpdateShelfRequest, opts ...grpc.CallOption) (*UpdateShelfResponse, error) // DeleteShelf deletes the shelf resource from the server. DeleteShelf(ctx context.Context, in *DeleteShelfRequest, opts ...grpc.CallOption) (*DeleteShelfResponse, error) }
ShelfServiceClient is the client API for ShelfService 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 NewShelfServiceClient ¶
func NewShelfServiceClient(cc grpc.ClientConnInterface) ShelfServiceClient
type ShelfServiceServer ¶
type ShelfServiceServer interface { // ListShelves retrieves a list of shelf resources from the server. ListShelves(context.Context, *ListShelvesRequest) (*ListShelvesResponse, error) // BatchGetShelves retrieves multiple shelf resources from the server. BatchGetShelves(context.Context, *BatchGetShelvesRequest) (*BatchGetShelvesResponse, error) // GetShelf retrieves a single shelf resource from the server. GetShelf(context.Context, *GetShelfRequest) (*GetShelfResponse, error) // CreateShelf creates a new shelf resource on the server. CreateShelf(context.Context, *CreateShelfRequest) (*CreateShelfResponse, error) // UpdateShelf updates the shelf resource on the server. UpdateShelf(context.Context, *UpdateShelfRequest) (*UpdateShelfResponse, error) // DeleteShelf deletes the shelf resource from the server. DeleteShelf(context.Context, *DeleteShelfRequest) (*DeleteShelfResponse, error) }
ShelfServiceServer is the server API for ShelfService service. All implementations should embed UnimplementedShelfServiceServer for forward compatibility
type UnimplementedShelfServiceServer ¶
type UnimplementedShelfServiceServer struct { }
UnimplementedShelfServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedShelfServiceServer) BatchGetShelves ¶
func (UnimplementedShelfServiceServer) BatchGetShelves(context.Context, *BatchGetShelvesRequest) (*BatchGetShelvesResponse, error)
func (UnimplementedShelfServiceServer) CreateShelf ¶
func (UnimplementedShelfServiceServer) CreateShelf(context.Context, *CreateShelfRequest) (*CreateShelfResponse, error)
func (UnimplementedShelfServiceServer) DeleteShelf ¶
func (UnimplementedShelfServiceServer) DeleteShelf(context.Context, *DeleteShelfRequest) (*DeleteShelfResponse, error)
func (UnimplementedShelfServiceServer) GetShelf ¶
func (UnimplementedShelfServiceServer) GetShelf(context.Context, *GetShelfRequest) (*GetShelfResponse, error)
func (UnimplementedShelfServiceServer) ListShelves ¶
func (UnimplementedShelfServiceServer) ListShelves(context.Context, *ListShelvesRequest) (*ListShelvesResponse, error)
func (UnimplementedShelfServiceServer) UpdateShelf ¶
func (UnimplementedShelfServiceServer) UpdateShelf(context.Context, *UpdateShelfRequest) (*UpdateShelfResponse, error)
type UnsafeShelfServiceServer ¶
type UnsafeShelfServiceServer interface {
// contains filtered or unexported methods
}
UnsafeShelfServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ShelfServiceServer will result in compilation errors.
type UpdateShelfRequest ¶
type UpdateShelfRequest struct { // The id of the shelf to be updated. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // The shelf which replaces the shelf on the server. Shelf *Shelf `protobuf:"bytes,2,opt,name=shelf,proto3" json:"shelf,omitempty"` // The update mask applied to the shelf. See https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask. UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // contains filtered or unexported fields }
The standard Update request definition.
func (*UpdateShelfRequest) Descriptor
deprecated
func (*UpdateShelfRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateShelfRequest.ProtoReflect.Descriptor instead.
func (*UpdateShelfRequest) GetId ¶
func (x *UpdateShelfRequest) GetId() string
func (*UpdateShelfRequest) GetShelf ¶
func (x *UpdateShelfRequest) GetShelf() *Shelf
func (*UpdateShelfRequest) GetUpdateMask ¶
func (x *UpdateShelfRequest) GetUpdateMask() *fieldmaskpb.FieldMask
func (*UpdateShelfRequest) ProtoMessage ¶
func (*UpdateShelfRequest) ProtoMessage()
func (*UpdateShelfRequest) ProtoReflect ¶
func (x *UpdateShelfRequest) ProtoReflect() protoreflect.Message
func (*UpdateShelfRequest) Reset ¶
func (x *UpdateShelfRequest) Reset()
func (*UpdateShelfRequest) String ¶
func (x *UpdateShelfRequest) String() string
type UpdateShelfResponse ¶
type UpdateShelfResponse struct { // The updated shelf. Shelf *Shelf `protobuf:"bytes,1,opt,name=shelf,proto3" json:"shelf,omitempty"` // contains filtered or unexported fields }
The standard Update response definition.
func (*UpdateShelfResponse) Descriptor
deprecated
func (*UpdateShelfResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateShelfResponse.ProtoReflect.Descriptor instead.
func (*UpdateShelfResponse) GetShelf ¶
func (x *UpdateShelfResponse) GetShelf() *Shelf
func (*UpdateShelfResponse) ProtoMessage ¶
func (*UpdateShelfResponse) ProtoMessage()
func (*UpdateShelfResponse) ProtoReflect ¶
func (x *UpdateShelfResponse) ProtoReflect() protoreflect.Message
func (*UpdateShelfResponse) Reset ¶
func (x *UpdateShelfResponse) Reset()
func (*UpdateShelfResponse) String ¶
func (x *UpdateShelfResponse) String() string