Documentation ¶
Index ¶
- Variables
- type Entity
- func (*Entity) Descriptor() ([]byte, []int)deprecated
- func (x *Entity) GetDeleted() bool
- func (x *Entity) GetEtag() string
- func (x *Entity) GetId() *ResourceID
- func (x *Entity) GetLastModifiedTime() *timestamppb.Timestamp
- func (x *Entity) GetMimeType() string
- func (x *Entity) GetName() string
- func (x *Entity) GetParentId() *ResourceID
- func (x *Entity) GetPermissions() string
- func (x *Entity) GetRef() *Reference
- func (x *Entity) GetShareRootName() string
- func (x *Entity) GetSize() uint64
- func (x *Entity) GetType() uint64
- func (m *Entity) MarshalJSON() ([]byte, error)
- func (*Entity) ProtoMessage()
- func (x *Entity) ProtoReflect() protoreflect.Message
- func (x *Entity) Reset()
- func (x *Entity) String() string
- func (m *Entity) UnmarshalJSON(b []byte) error
- type Match
- func (*Match) Descriptor() ([]byte, []int)deprecated
- func (x *Match) GetEntity() *Entity
- func (x *Match) GetScore() float32
- func (m *Match) MarshalJSON() ([]byte, error)
- func (*Match) ProtoMessage()
- func (x *Match) ProtoReflect() protoreflect.Message
- func (x *Match) Reset()
- func (x *Match) String() string
- func (m *Match) UnmarshalJSON(b []byte) error
- type Reference
- func (*Reference) Descriptor() ([]byte, []int)deprecated
- func (x *Reference) GetPath() string
- func (x *Reference) GetResourceId() *ResourceID
- func (m *Reference) MarshalJSON() ([]byte, error)
- func (*Reference) ProtoMessage()
- func (x *Reference) ProtoReflect() protoreflect.Message
- func (x *Reference) Reset()
- func (x *Reference) String() string
- func (m *Reference) UnmarshalJSON(b []byte) error
- type ResourceID
- func (*ResourceID) Descriptor() ([]byte, []int)deprecated
- func (x *ResourceID) GetOpaqueId() string
- func (x *ResourceID) GetSpaceId() string
- func (x *ResourceID) GetStorageId() string
- func (m *ResourceID) MarshalJSON() ([]byte, error)
- func (*ResourceID) ProtoMessage()
- func (x *ResourceID) ProtoReflect() protoreflect.Message
- func (x *ResourceID) Reset()
- func (x *ResourceID) String() string
- func (m *ResourceID) UnmarshalJSON(b []byte) error
Constants ¶
This section is empty.
Variables ¶
var EntityJSONMarshaler = new(jsonpb.Marshaler)
EntityJSONMarshaler describes the default jsonpb.Marshaler used by all instances of Entity. This struct is safe to replace or modify but should not be done so concurrently.
var EntityJSONUnmarshaler = new(jsonpb.Unmarshaler)
EntityJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all instances of Entity. This struct is safe to replace or modify but should not be done so concurrently.
var File_ocis_messages_search_v0_search_proto protoreflect.FileDescriptor
var MatchJSONMarshaler = new(jsonpb.Marshaler)
MatchJSONMarshaler describes the default jsonpb.Marshaler used by all instances of Match. This struct is safe to replace or modify but should not be done so concurrently.
var MatchJSONUnmarshaler = new(jsonpb.Unmarshaler)
MatchJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all instances of Match. This struct is safe to replace or modify but should not be done so concurrently.
var ReferenceJSONMarshaler = new(jsonpb.Marshaler)
ReferenceJSONMarshaler describes the default jsonpb.Marshaler used by all instances of Reference. This struct is safe to replace or modify but should not be done so concurrently.
var ReferenceJSONUnmarshaler = new(jsonpb.Unmarshaler)
ReferenceJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all instances of Reference. This struct is safe to replace or modify but should not be done so concurrently.
var ResourceIDJSONMarshaler = new(jsonpb.Marshaler)
ResourceIDJSONMarshaler describes the default jsonpb.Marshaler used by all instances of ResourceID. This struct is safe to replace or modify but should not be done so concurrently.
var ResourceIDJSONUnmarshaler = new(jsonpb.Unmarshaler)
ResourceIDJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all instances of ResourceID. This struct is safe to replace or modify but should not be done so concurrently.
Functions ¶
This section is empty.
Types ¶
type Entity ¶
type Entity struct { Ref *Reference `protobuf:"bytes,1,opt,name=ref,proto3" json:"ref,omitempty"` Id *ResourceID `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` Etag string `protobuf:"bytes,4,opt,name=etag,proto3" json:"etag,omitempty"` Size uint64 `protobuf:"varint,5,opt,name=size,proto3" json:"size,omitempty"` LastModifiedTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=last_modified_time,json=lastModifiedTime,proto3" json:"last_modified_time,omitempty"` MimeType string `protobuf:"bytes,7,opt,name=mime_type,json=mimeType,proto3" json:"mime_type,omitempty"` Permissions string `protobuf:"bytes,8,opt,name=permissions,proto3" json:"permissions,omitempty"` Type uint64 `protobuf:"varint,9,opt,name=type,proto3" json:"type,omitempty"` Deleted bool `protobuf:"varint,10,opt,name=deleted,proto3" json:"deleted,omitempty"` ParentId *ResourceID `protobuf:"bytes,12,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"` // contains filtered or unexported fields }
func (*Entity) Descriptor
deprecated
func (*Entity) GetDeleted ¶
func (*Entity) GetId ¶
func (x *Entity) GetId() *ResourceID
func (*Entity) GetLastModifiedTime ¶
func (x *Entity) GetLastModifiedTime() *timestamppb.Timestamp
func (*Entity) GetMimeType ¶
func (*Entity) GetParentId ¶
func (x *Entity) GetParentId() *ResourceID
func (*Entity) GetPermissions ¶
func (*Entity) GetShareRootName ¶
func (*Entity) MarshalJSON ¶
MarshalJSON satisfies the encoding/json Marshaler interface. This method uses the more correct jsonpb package to correctly marshal the message.
func (*Entity) ProtoMessage ¶
func (*Entity) ProtoMessage()
func (*Entity) ProtoReflect ¶
func (x *Entity) ProtoReflect() protoreflect.Message
func (*Entity) UnmarshalJSON ¶
UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method uses the more correct jsonpb package to correctly unmarshal the message.
type Match ¶
type Match struct { // the matched entity Entity *Entity `protobuf:"bytes,1,opt,name=entity,proto3" json:"entity,omitempty"` // the match score Score float32 `protobuf:"fixed32,2,opt,name=score,proto3" json:"score,omitempty"` // contains filtered or unexported fields }
func (*Match) Descriptor
deprecated
func (*Match) MarshalJSON ¶
MarshalJSON satisfies the encoding/json Marshaler interface. This method uses the more correct jsonpb package to correctly marshal the message.
func (*Match) ProtoMessage ¶
func (*Match) ProtoMessage()
func (*Match) ProtoReflect ¶
func (x *Match) ProtoReflect() protoreflect.Message
func (*Match) UnmarshalJSON ¶
UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method uses the more correct jsonpb package to correctly unmarshal the message.
type Reference ¶
type Reference struct { ResourceId *ResourceID `protobuf:"bytes,1,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"` Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` // contains filtered or unexported fields }
func (*Reference) Descriptor
deprecated
func (*Reference) GetResourceId ¶
func (x *Reference) GetResourceId() *ResourceID
func (*Reference) MarshalJSON ¶
MarshalJSON satisfies the encoding/json Marshaler interface. This method uses the more correct jsonpb package to correctly marshal the message.
func (*Reference) ProtoMessage ¶
func (*Reference) ProtoMessage()
func (*Reference) ProtoReflect ¶
func (x *Reference) ProtoReflect() protoreflect.Message
func (*Reference) UnmarshalJSON ¶
UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method uses the more correct jsonpb package to correctly unmarshal the message.
type ResourceID ¶
type ResourceID struct { StorageId string `protobuf:"bytes,1,opt,name=storage_id,json=storageId,proto3" json:"storage_id,omitempty"` OpaqueId string `protobuf:"bytes,2,opt,name=opaque_id,json=opaqueId,proto3" json:"opaque_id,omitempty"` SpaceId string `protobuf:"bytes,3,opt,name=space_id,json=spaceId,proto3" json:"space_id,omitempty"` // contains filtered or unexported fields }
func (*ResourceID) Descriptor
deprecated
func (*ResourceID) Descriptor() ([]byte, []int)
Deprecated: Use ResourceID.ProtoReflect.Descriptor instead.
func (*ResourceID) GetOpaqueId ¶
func (x *ResourceID) GetOpaqueId() string
func (*ResourceID) GetSpaceId ¶
func (x *ResourceID) GetSpaceId() string
func (*ResourceID) GetStorageId ¶
func (x *ResourceID) GetStorageId() string
func (*ResourceID) MarshalJSON ¶
func (m *ResourceID) MarshalJSON() ([]byte, error)
MarshalJSON satisfies the encoding/json Marshaler interface. This method uses the more correct jsonpb package to correctly marshal the message.
func (*ResourceID) ProtoMessage ¶
func (*ResourceID) ProtoMessage()
func (*ResourceID) ProtoReflect ¶
func (x *ResourceID) ProtoReflect() protoreflect.Message
func (*ResourceID) Reset ¶
func (x *ResourceID) Reset()
func (*ResourceID) String ¶
func (x *ResourceID) String() string
func (*ResourceID) UnmarshalJSON ¶
func (m *ResourceID) UnmarshalJSON(b []byte) error
UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method uses the more correct jsonpb package to correctly unmarshal the message.