pb

package
v2.13.0 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2023 License: Apache-2.0, MIT Imports: 8 Imported by: 0

README

Protocol Documentation

Table of Contents

Top

resource-directory/pb/getLatestDeviceETags.proto

GetLatestDeviceETagsRequest
Field Type Label Description
device_id string device id
limit uint32 limit of the number of etags, 0 means no limit

GetLatestDeviceETagsResponse
Field Type Label Description
etags bytes repeated the most recent device etags, each corresponding to a different resource in order of most recent to least recent.

Top

resource-directory/pb/service.proto

ResourceDirectory

Internal API for Resource Directory

Method Name Request Type Response Type Description
GetLatestDeviceETags GetLatestDeviceETagsRequest GetLatestDeviceETagsResponse Get the most recent device etags, each corresponding to a different resource in order of most recent to least recent.

Scalar Value Types

.proto Type Notes C++ Java Python Go C# PHP Ruby
double double double float float64 double float Float
float float float float float32 float float Float
int32 Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint32 instead. int32 int int int32 int integer Bignum or Fixnum (as required)
int64 Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint64 instead. int64 long int/long int64 long integer/string Bignum
uint32 Uses variable-length encoding. uint32 int int/long uint32 uint integer Bignum or Fixnum (as required)
uint64 Uses variable-length encoding. uint64 long int/long uint64 ulong integer/string Bignum or Fixnum (as required)
sint32 Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int32s. int32 int int int32 int integer Bignum or Fixnum (as required)
sint64 Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int64s. int64 long int/long int64 long integer/string Bignum
fixed32 Always four bytes. More efficient than uint32 if values are often greater than 2^28. uint32 int int uint32 uint integer Bignum or Fixnum (as required)
fixed64 Always eight bytes. More efficient than uint64 if values are often greater than 2^56. uint64 long int/long uint64 ulong integer/string Bignum
sfixed32 Always four bytes. int32 int int int32 int integer Bignum or Fixnum (as required)
sfixed64 Always eight bytes. int64 long int/long int64 long integer/string Bignum
bool bool boolean boolean bool bool boolean TrueClass/FalseClass
string A string must always contain UTF-8 encoded or 7-bit ASCII text. string String str/unicode string string string String (UTF-8)
bytes May contain any arbitrary sequence of bytes. string ByteString str []byte ByteString string String (ASCII-8BIT)

Documentation

Index

Constants

View Source
const (
	ResourceDirectory_GetLatestDeviceETags_FullMethodName = "/resourcedirectory.pb.ResourceDirectory/GetLatestDeviceETags"
)

Variables

View Source
var File_resource_directory_pb_getLatestDeviceETags_proto protoreflect.FileDescriptor
View Source
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 (*GetLatestDeviceETagsRequest) Reset

func (x *GetLatestDeviceETagsRequest) Reset()

func (*GetLatestDeviceETagsRequest) String

func (x *GetLatestDeviceETagsRequest) String() string

type GetLatestDeviceETagsResponse

type GetLatestDeviceETagsResponse struct {
	Etags [][]byte `protobuf:"bytes,1,rep,name=etags,proto3" json:"etags,omitempty"` // the most recent device etags, each corresponding to a different resource in order of most recent to least recent.
	// 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 (*GetLatestDeviceETagsResponse) Reset

func (x *GetLatestDeviceETagsResponse) Reset()

func (*GetLatestDeviceETagsResponse) 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.

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

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.

Jump to

Keyboard shortcuts

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