Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterResourceDirectoryServer(s grpc.ServiceRegistrar, srv ResourceDirectoryServer)
- type GetLatestDeviceETagsRequest
- func (*GetLatestDeviceETagsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetLatestDeviceETagsRequest) GetDeviceId() string
- func (x *GetLatestDeviceETagsRequest) GetLimit() uint32
- func (*GetLatestDeviceETagsRequest) ProtoMessage()
- func (x *GetLatestDeviceETagsRequest) ProtoReflect() protoreflect.Message
- func (x *GetLatestDeviceETagsRequest) Reset()
- func (x *GetLatestDeviceETagsRequest) String() string
- type GetLatestDeviceETagsResponse
- func (*GetLatestDeviceETagsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetLatestDeviceETagsResponse) GetEtags() [][]byte
- func (*GetLatestDeviceETagsResponse) ProtoMessage()
- func (x *GetLatestDeviceETagsResponse) ProtoReflect() protoreflect.Message
- func (x *GetLatestDeviceETagsResponse) Reset()
- func (x *GetLatestDeviceETagsResponse) String() string
- type ResourceDirectoryClient
- type ResourceDirectoryServer
- type UnimplementedResourceDirectoryServer
- type UnsafeResourceDirectoryServer
Constants ¶
const (
ResourceDirectory_GetLatestDeviceETags_FullMethodName = "/resourcedirectory.pb.ResourceDirectory/GetLatestDeviceETags"
)
Variables ¶
var File_resource_directory_pb_getLatestDeviceETags_proto protoreflect.FileDescriptor
var ResourceDirectory_ServiceDesc = grpc.ServiceDesc{ ServiceName: "resourcedirectory.pb.ResourceDirectory", HandlerType: (*ResourceDirectoryServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetLatestDeviceETags", Handler: _ResourceDirectory_GetLatestDeviceETags_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "resource-directory/pb/service.proto", }
ResourceDirectory_ServiceDesc is the grpc.ServiceDesc for ResourceDirectory service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterResourceDirectoryServer ¶
func RegisterResourceDirectoryServer(s grpc.ServiceRegistrar, srv ResourceDirectoryServer)
Types ¶
type GetLatestDeviceETagsRequest ¶
type GetLatestDeviceETagsRequest struct { DeviceId string `protobuf:"bytes,1,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` // device id Limit uint32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` // limit of the number of etags, 0 means no limit // contains filtered or unexported fields }
func (*GetLatestDeviceETagsRequest) Descriptor
deprecated
func (*GetLatestDeviceETagsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetLatestDeviceETagsRequest.ProtoReflect.Descriptor instead.
func (*GetLatestDeviceETagsRequest) GetDeviceId ¶
func (x *GetLatestDeviceETagsRequest) GetDeviceId() string
func (*GetLatestDeviceETagsRequest) GetLimit ¶
func (x *GetLatestDeviceETagsRequest) GetLimit() uint32
func (*GetLatestDeviceETagsRequest) ProtoMessage ¶
func (*GetLatestDeviceETagsRequest) ProtoMessage()
func (*GetLatestDeviceETagsRequest) ProtoReflect ¶
func (x *GetLatestDeviceETagsRequest) ProtoReflect() protoreflect.Message
func (*GetLatestDeviceETagsRequest) Reset ¶
func (x *GetLatestDeviceETagsRequest) Reset()
func (*GetLatestDeviceETagsRequest) String ¶
func (x *GetLatestDeviceETagsRequest) String() string
type GetLatestDeviceETagsResponse ¶
type GetLatestDeviceETagsResponse struct { // contains filtered or unexported fields }
func (*GetLatestDeviceETagsResponse) Descriptor
deprecated
func (*GetLatestDeviceETagsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetLatestDeviceETagsResponse.ProtoReflect.Descriptor instead.
func (*GetLatestDeviceETagsResponse) GetEtags ¶
func (x *GetLatestDeviceETagsResponse) GetEtags() [][]byte
func (*GetLatestDeviceETagsResponse) ProtoMessage ¶
func (*GetLatestDeviceETagsResponse) ProtoMessage()
func (*GetLatestDeviceETagsResponse) ProtoReflect ¶
func (x *GetLatestDeviceETagsResponse) ProtoReflect() protoreflect.Message
func (*GetLatestDeviceETagsResponse) Reset ¶
func (x *GetLatestDeviceETagsResponse) Reset()
func (*GetLatestDeviceETagsResponse) String ¶
func (x *GetLatestDeviceETagsResponse) String() string
type ResourceDirectoryClient ¶
type ResourceDirectoryClient interface { // Get the most recent device etags, each corresponding to a different resource in order of most recent to least recent. GetLatestDeviceETags(ctx context.Context, in *GetLatestDeviceETagsRequest, opts ...grpc.CallOption) (*GetLatestDeviceETagsResponse, error) }
ResourceDirectoryClient is the client API for ResourceDirectory 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 NewResourceDirectoryClient ¶
func NewResourceDirectoryClient(cc grpc.ClientConnInterface) ResourceDirectoryClient
type ResourceDirectoryServer ¶
type ResourceDirectoryServer interface { // Get the most recent device etags, each corresponding to a different resource in order of most recent to least recent. GetLatestDeviceETags(context.Context, *GetLatestDeviceETagsRequest) (*GetLatestDeviceETagsResponse, error) // contains filtered or unexported methods }
ResourceDirectoryServer is the server API for ResourceDirectory service. All implementations must embed UnimplementedResourceDirectoryServer for forward compatibility
type UnimplementedResourceDirectoryServer ¶
type UnimplementedResourceDirectoryServer struct { }
UnimplementedResourceDirectoryServer must be embedded to have forward compatible implementations.
func (UnimplementedResourceDirectoryServer) GetLatestDeviceETags ¶
func (UnimplementedResourceDirectoryServer) GetLatestDeviceETags(context.Context, *GetLatestDeviceETagsRequest) (*GetLatestDeviceETagsResponse, error)
type UnsafeResourceDirectoryServer ¶
type UnsafeResourceDirectoryServer interface {
// contains filtered or unexported methods
}
UnsafeResourceDirectoryServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ResourceDirectoryServer will result in compilation errors.