Enum value maps for Delete_Type.
var ( Delete_Type_name = map[int32]string{ 0: "TYPE_UNSPECIFIED", 1: "TRASH", 2: "PERMANENT_DELETE", } Delete_Type_value = map[string]int32{ "TYPE_UNSPECIFIED": 0, "TRASH": 1, "PERMANENT_DELETE": 2, } )
Enum value maps for Restore_Type.
var ( Restore_Type_name = map[int32]string{ 0: "TYPE_UNSPECIFIED", 1: "UNTRASH", } Restore_Type_value = map[string]int32{ "TYPE_UNSPECIFIED": 0, "UNTRASH": 1, } )
Enum value maps for Permission_Role.
var ( Permission_Role_name = map[int32]string{ 0: "ROLE_UNSPECIFIED", 1: "OWNER", 2: "ORGANIZER", 3: "FILE_ORGANIZER", 4: "EDITOR", 5: "COMMENTER", 6: "VIEWER", 7: "PUBLISHED_VIEWER", } Permission_Role_value = map[string]int32{ "ROLE_UNSPECIFIED": 0, "OWNER": 1, "ORGANIZER": 2, "FILE_ORGANIZER": 3, "EDITOR": 4, "COMMENTER": 5, "VIEWER": 6, "PUBLISHED_VIEWER": 7, } )
Enum value maps for Comment_Post_Subtype.
var ( Comment_Post_Subtype_name = map[int32]string{ 0: "SUBTYPE_UNSPECIFIED", 1: "ADDED", 2: "DELETED", 3: "REPLY_ADDED", 4: "REPLY_DELETED", 5: "RESOLVED", 6: "REOPENED", } Comment_Post_Subtype_value = map[string]int32{ "SUBTYPE_UNSPECIFIED": 0, "ADDED": 1, "DELETED": 2, "REPLY_ADDED": 3, "REPLY_DELETED": 4, "RESOLVED": 5, "REOPENED": 6, } )
Enum value maps for Comment_Assignment_Subtype.
var ( Comment_Assignment_Subtype_name = map[int32]string{ 0: "SUBTYPE_UNSPECIFIED", 1: "ADDED", 2: "DELETED", 3: "REPLY_ADDED", 4: "REPLY_DELETED", 5: "RESOLVED", 6: "REOPENED", 7: "REASSIGNED", } Comment_Assignment_Subtype_value = map[string]int32{ "SUBTYPE_UNSPECIFIED": 0, "ADDED": 1, "DELETED": 2, "REPLY_ADDED": 3, "REPLY_DELETED": 4, "RESOLVED": 5, "REOPENED": 6, "REASSIGNED": 7, } )
Enum value maps for Comment_Suggestion_Subtype.
var ( Comment_Suggestion_Subtype_name = map[int32]string{ 0: "SUBTYPE_UNSPECIFIED", 1: "ADDED", 2: "DELETED", 3: "REPLY_ADDED", 4: "REPLY_DELETED", 7: "ACCEPTED", 8: "REJECTED", 9: "ACCEPT_DELETED", 10: "REJECT_DELETED", } Comment_Suggestion_Subtype_value = map[string]int32{ "SUBTYPE_UNSPECIFIED": 0, "ADDED": 1, "DELETED": 2, "REPLY_ADDED": 3, "REPLY_DELETED": 4, "ACCEPTED": 7, "REJECTED": 8, "ACCEPT_DELETED": 9, "REJECT_DELETED": 10, } )
Enum value maps for DataLeakPreventionChange_Type.
var ( DataLeakPreventionChange_Type_name = map[int32]string{ 0: "TYPE_UNSPECIFIED", 1: "FLAGGED", 2: "CLEARED", } DataLeakPreventionChange_Type_value = map[string]int32{ "TYPE_UNSPECIFIED": 0, "FLAGGED": 1, "CLEARED": 2, } )
Enum value maps for ApplicationReference_Type.
var ( ApplicationReference_Type_name = map[int32]string{ 0: "UNSPECIFIED_REFERENCE_TYPE", 1: "LINK", 2: "DISCUSS", } ApplicationReference_Type_value = map[string]int32{ "UNSPECIFIED_REFERENCE_TYPE": 0, "LINK": 1, "DISCUSS": 2, } )
Enum value maps for SettingsChange_RestrictionChange_Feature.
var ( SettingsChange_RestrictionChange_Feature_name = map[int32]string{ 0: "FEATURE_UNSPECIFIED", 1: "SHARING_OUTSIDE_DOMAIN", 2: "DIRECT_SHARING", 3: "ITEM_DUPLICATION", 4: "DRIVE_FILE_STREAM", 5: "FILE_ORGANIZER_CAN_SHARE_FOLDERS", } SettingsChange_RestrictionChange_Feature_value = map[string]int32{ "FEATURE_UNSPECIFIED": 0, "SHARING_OUTSIDE_DOMAIN": 1, "DIRECT_SHARING": 2, "ITEM_DUPLICATION": 3, "DRIVE_FILE_STREAM": 4, "FILE_ORGANIZER_CAN_SHARE_FOLDERS": 5, } )
Enum value maps for SettingsChange_RestrictionChange_Restriction.
var ( SettingsChange_RestrictionChange_Restriction_name = map[int32]string{ 0: "RESTRICTION_UNSPECIFIED", 1: "UNRESTRICTED", 2: "FULLY_RESTRICTED", } SettingsChange_RestrictionChange_Restriction_value = map[string]int32{ "RESTRICTION_UNSPECIFIED": 0, "UNRESTRICTED": 1, "FULLY_RESTRICTED": 2, } )
Enum value maps for AppliedLabelChange_AppliedLabelChangeDetail_Type.
var ( AppliedLabelChange_AppliedLabelChangeDetail_Type_name = map[int32]string{ 0: "TYPE_UNSPECIFIED", 1: "LABEL_ADDED", 2: "LABEL_REMOVED", 3: "LABEL_FIELD_VALUE_CHANGED", 4: "LABEL_APPLIED_BY_ITEM_CREATE", } AppliedLabelChange_AppliedLabelChangeDetail_Type_value = map[string]int32{ "TYPE_UNSPECIFIED": 0, "LABEL_ADDED": 1, "LABEL_REMOVED": 2, "LABEL_FIELD_VALUE_CHANGED": 3, "LABEL_APPLIED_BY_ITEM_CREATE": 4, } )
Enum value maps for SystemEvent_Type.
var ( SystemEvent_Type_name = map[int32]string{ 0: "TYPE_UNSPECIFIED", 1: "USER_DELETION", 2: "TRASH_AUTO_PURGE", } SystemEvent_Type_value = map[string]int32{ "TYPE_UNSPECIFIED": 0, "USER_DELETION": 1, "TRASH_AUTO_PURGE": 2, } )
Enum value maps for DriveItem_Folder_Type.
var ( DriveItem_Folder_Type_name = map[int32]string{ 0: "TYPE_UNSPECIFIED", 1: "MY_DRIVE_ROOT", 2: "TEAM_DRIVE_ROOT", 3: "STANDARD_FOLDER", } DriveItem_Folder_Type_value = map[string]int32{ "TYPE_UNSPECIFIED": 0, "MY_DRIVE_ROOT": 1, "TEAM_DRIVE_ROOT": 2, "STANDARD_FOLDER": 3, } )
Enum value maps for DriveItem_DriveFolder_Type.
var ( DriveItem_DriveFolder_Type_name = map[int32]string{ 0: "TYPE_UNSPECIFIED", 1: "MY_DRIVE_ROOT", 2: "SHARED_DRIVE_ROOT", 3: "STANDARD_FOLDER", } DriveItem_DriveFolder_Type_value = map[string]int32{ "TYPE_UNSPECIFIED": 0, "MY_DRIVE_ROOT": 1, "SHARED_DRIVE_ROOT": 2, "STANDARD_FOLDER": 3, } )
var File_google_apps_drive_activity_v2_action_proto protoreflect.FileDescriptor
var File_google_apps_drive_activity_v2_actor_proto protoreflect.FileDescriptor
var File_google_apps_drive_activity_v2_common_proto protoreflect.FileDescriptor
var File_google_apps_drive_activity_v2_drive_activity_service_proto protoreflect.FileDescriptor
var File_google_apps_drive_activity_v2_query_drive_activity_request_proto protoreflect.FileDescriptor
var File_google_apps_drive_activity_v2_query_drive_activity_response_proto protoreflect.FileDescriptor
var File_google_apps_drive_activity_v2_target_proto protoreflect.FileDescriptor
func RegisterDriveActivityServiceServer(s *grpc.Server, srv DriveActivityServiceServer)
Information about the action.
type Action struct { // The type and detailed information about the action. Detail *ActionDetail `protobuf:"bytes,1,opt,name=detail,proto3" json:"detail,omitempty"` // The actor responsible for this action (or empty if all actors are // responsible). Actor *Actor `protobuf:"bytes,3,opt,name=actor,proto3" json:"actor,omitempty"` // The target this action affects (or empty if affecting all targets). This // represents the state of the target immediately after this action occurred. Target *Target `protobuf:"bytes,4,opt,name=target,proto3" json:"target,omitempty"` // When the action occurred (or empty if same time as entire activity). // // Types that are assignable to Time: // // *Action_Timestamp // *Action_TimeRange Time isAction_Time `protobuf_oneof:"time"` // contains filtered or unexported fields }
func (*Action) Descriptor() ([]byte, []int)
Deprecated: Use Action.ProtoReflect.Descriptor instead.
func (x *Action) GetActor() *Actor
func (x *Action) GetDetail() *ActionDetail
func (x *Action) GetTarget() *Target
func (m *Action) GetTime() isAction_Time
func (x *Action) GetTimeRange() *TimeRange
func (x *Action) GetTimestamp() *timestamppb.Timestamp
func (*Action) ProtoMessage()
func (x *Action) ProtoReflect() protoreflect.Message
func (x *Action) Reset()
func (x *Action) String() string
Data describing the type and additional information of an action.
type ActionDetail struct { // Data describing the type and additional information of an action. // // Types that are assignable to ActionDetail: // // *ActionDetail_Create // *ActionDetail_Edit // *ActionDetail_Move // *ActionDetail_Rename // *ActionDetail_Delete // *ActionDetail_Restore // *ActionDetail_PermissionChange // *ActionDetail_Comment // *ActionDetail_DlpChange // *ActionDetail_Reference // *ActionDetail_SettingsChange // *ActionDetail_AppliedLabelChange ActionDetail isActionDetail_ActionDetail `protobuf_oneof:"action_detail"` // contains filtered or unexported fields }
func (*ActionDetail) Descriptor() ([]byte, []int)
Deprecated: Use ActionDetail.ProtoReflect.Descriptor instead.
func (m *ActionDetail) GetActionDetail() isActionDetail_ActionDetail
func (x *ActionDetail) GetAppliedLabelChange() *AppliedLabelChange
func (x *ActionDetail) GetComment() *Comment
func (x *ActionDetail) GetCreate() *Create
func (x *ActionDetail) GetDelete() *Delete
func (x *ActionDetail) GetDlpChange() *DataLeakPreventionChange
func (x *ActionDetail) GetEdit() *Edit
func (x *ActionDetail) GetMove() *Move
func (x *ActionDetail) GetPermissionChange() *PermissionChange
func (x *ActionDetail) GetReference() *ApplicationReference
func (x *ActionDetail) GetRename() *Rename
func (x *ActionDetail) GetRestore() *Restore
func (x *ActionDetail) GetSettingsChange() *SettingsChange
func (*ActionDetail) ProtoMessage()
func (x *ActionDetail) ProtoReflect() protoreflect.Message
func (x *ActionDetail) Reset()
func (x *ActionDetail) String() string
type ActionDetail_AppliedLabelChange struct { // Label was changed. AppliedLabelChange *AppliedLabelChange `protobuf:"bytes,19,opt,name=applied_label_change,json=appliedLabelChange,proto3,oneof"` }
type ActionDetail_Comment struct { // A change about comments was made. Comment *Comment `protobuf:"bytes,8,opt,name=comment,proto3,oneof"` }
type ActionDetail_Create struct { // An object was created. Create *Create `protobuf:"bytes,1,opt,name=create,proto3,oneof"` }
type ActionDetail_Delete struct { // An object was deleted. Delete *Delete `protobuf:"bytes,5,opt,name=delete,proto3,oneof"` }
type ActionDetail_DlpChange struct { // A change happened in data leak prevention status. DlpChange *DataLeakPreventionChange `protobuf:"bytes,9,opt,name=dlp_change,json=dlpChange,proto3,oneof"` }
type ActionDetail_Edit struct { // An object was edited. Edit *Edit `protobuf:"bytes,2,opt,name=edit,proto3,oneof"` }
type ActionDetail_Move struct { // An object was moved. Move *Move `protobuf:"bytes,3,opt,name=move,proto3,oneof"` }
type ActionDetail_PermissionChange struct { // The permission on an object was changed. PermissionChange *PermissionChange `protobuf:"bytes,7,opt,name=permission_change,json=permissionChange,proto3,oneof"` }
type ActionDetail_Reference struct { // An object was referenced in an application outside of Drive/Docs. Reference *ApplicationReference `protobuf:"bytes,12,opt,name=reference,proto3,oneof"` }
type ActionDetail_Rename struct { // An object was renamed. Rename *Rename `protobuf:"bytes,4,opt,name=rename,proto3,oneof"` }
type ActionDetail_Restore struct { // A deleted object was restored. Restore *Restore `protobuf:"bytes,6,opt,name=restore,proto3,oneof"` }
type ActionDetail_SettingsChange struct { // Settings were changed. SettingsChange *SettingsChange `protobuf:"bytes,13,opt,name=settings_change,json=settingsChange,proto3,oneof"` }
type Action_TimeRange struct { // The action occurred over this time range. TimeRange *TimeRange `protobuf:"bytes,6,opt,name=time_range,json=timeRange,proto3,oneof"` }
type Action_Timestamp struct { // The action occurred at this specific time. Timestamp *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=timestamp,proto3,oneof"` }
The actor of a Drive activity.
type Actor struct { // The type of actor. // // Types that are assignable to Type: // // *Actor_User // *Actor_Anonymous // *Actor_Impersonation // *Actor_System // *Actor_Administrator Type isActor_Type `protobuf_oneof:"type"` // contains filtered or unexported fields }
func (*Actor) Descriptor() ([]byte, []int)
Deprecated: Use Actor.ProtoReflect.Descriptor instead.
func (x *Actor) GetAdministrator() *Administrator
func (x *Actor) GetAnonymous() *AnonymousUser
func (x *Actor) GetImpersonation() *Impersonation
func (x *Actor) GetSystem() *SystemEvent
func (m *Actor) GetType() isActor_Type
func (x *Actor) GetUser() *User
func (*Actor) ProtoMessage()
func (x *Actor) ProtoReflect() protoreflect.Message
func (x *Actor) Reset()
func (x *Actor) String() string
type Actor_Administrator struct { // An administrator. Administrator *Administrator `protobuf:"bytes,5,opt,name=administrator,proto3,oneof"` }
type Actor_Anonymous struct { // An anonymous user. Anonymous *AnonymousUser `protobuf:"bytes,2,opt,name=anonymous,proto3,oneof"` }
type Actor_Impersonation struct { // An account acting on behalf of another. Impersonation *Impersonation `protobuf:"bytes,3,opt,name=impersonation,proto3,oneof"` }
type Actor_System struct { // A non-user actor (i.e. system triggered). System *SystemEvent `protobuf:"bytes,4,opt,name=system,proto3,oneof"` }
type Actor_User struct { // An end user. User *User `protobuf:"bytes,1,opt,name=user,proto3,oneof"` }
Empty message representing an administrator.
type Administrator struct {
// contains filtered or unexported fields
}
func (*Administrator) Descriptor() ([]byte, []int)
Deprecated: Use Administrator.ProtoReflect.Descriptor instead.
func (*Administrator) ProtoMessage()
func (x *Administrator) ProtoReflect() protoreflect.Message
func (x *Administrator) Reset()
func (x *Administrator) String() string
Empty message representing an anonymous user or indicating the authenticated user should be anonymized.
type AnonymousUser struct {
// contains filtered or unexported fields
}
func (*AnonymousUser) Descriptor() ([]byte, []int)
Deprecated: Use AnonymousUser.ProtoReflect.Descriptor instead.
func (*AnonymousUser) ProtoMessage()
func (x *AnonymousUser) ProtoReflect() protoreflect.Message
func (x *AnonymousUser) Reset()
func (x *AnonymousUser) String() string
Activity in applications other than Drive.
type ApplicationReference struct { // The reference type corresponding to this event. Type ApplicationReference_Type `protobuf:"varint,1,opt,name=type,proto3,enum=google.apps.drive.activity.v2.ApplicationReference_Type" json:"type,omitempty"` // contains filtered or unexported fields }
func (*ApplicationReference) Descriptor() ([]byte, []int)
Deprecated: Use ApplicationReference.ProtoReflect.Descriptor instead.
func (x *ApplicationReference) GetType() ApplicationReference_Type
func (*ApplicationReference) ProtoMessage()
func (x *ApplicationReference) ProtoReflect() protoreflect.Message
func (x *ApplicationReference) Reset()
func (x *ApplicationReference) String() string
The type of the action.
type ApplicationReference_Type int32
const ( // The type is not available. ApplicationReference_UNSPECIFIED_REFERENCE_TYPE ApplicationReference_Type = 0 // The links of one or more Drive items were posted. ApplicationReference_LINK ApplicationReference_Type = 1 // Comments were made regarding a Drive item. ApplicationReference_DISCUSS ApplicationReference_Type = 2 )
func (ApplicationReference_Type) Descriptor() protoreflect.EnumDescriptor
func (x ApplicationReference_Type) Enum() *ApplicationReference_Type
func (ApplicationReference_Type) EnumDescriptor() ([]byte, []int)
Deprecated: Use ApplicationReference_Type.Descriptor instead.
func (x ApplicationReference_Type) Number() protoreflect.EnumNumber
func (x ApplicationReference_Type) String() string
func (ApplicationReference_Type) Type() protoreflect.EnumType
Label changes that were made on the Target.
type AppliedLabelChange struct { // Changes that were made to the Label on the Target. Changes []*AppliedLabelChange_AppliedLabelChangeDetail `protobuf:"bytes,1,rep,name=changes,proto3" json:"changes,omitempty"` // contains filtered or unexported fields }
func (*AppliedLabelChange) Descriptor() ([]byte, []int)
Deprecated: Use AppliedLabelChange.ProtoReflect.Descriptor instead.
func (x *AppliedLabelChange) GetChanges() []*AppliedLabelChange_AppliedLabelChangeDetail
func (*AppliedLabelChange) ProtoMessage()
func (x *AppliedLabelChange) ProtoReflect() protoreflect.Message
func (x *AppliedLabelChange) Reset()
func (x *AppliedLabelChange) String() string
A change made to a Label on the Target.
type AppliedLabelChange_AppliedLabelChangeDetail struct { // The Label name representing the Label that changed. // This name always contains the revision of the Label that was used // when this Action occurred. The format is // `labels/id@revision`. Label string `protobuf:"bytes,1,opt,name=label,proto3" json:"label,omitempty"` // The types of changes made to the Label on the Target. Types []AppliedLabelChange_AppliedLabelChangeDetail_Type `protobuf:"varint,2,rep,packed,name=types,proto3,enum=google.apps.drive.activity.v2.AppliedLabelChange_AppliedLabelChangeDetail_Type" json:"types,omitempty"` // The human-readable title of the label that changed. Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"` // Field Changes. Only present if `types` contains // `LABEL_FIELD_VALUE_CHANGED`. FieldChanges []*AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange `protobuf:"bytes,4,rep,name=field_changes,json=fieldChanges,proto3" json:"field_changes,omitempty"` // contains filtered or unexported fields }
func (*AppliedLabelChange_AppliedLabelChangeDetail) Descriptor() ([]byte, []int)
Deprecated: Use AppliedLabelChange_AppliedLabelChangeDetail.ProtoReflect.Descriptor instead.
func (x *AppliedLabelChange_AppliedLabelChangeDetail) GetFieldChanges() []*AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange
func (x *AppliedLabelChange_AppliedLabelChangeDetail) GetLabel() string
func (x *AppliedLabelChange_AppliedLabelChangeDetail) GetTitle() string
func (x *AppliedLabelChange_AppliedLabelChangeDetail) GetTypes() []AppliedLabelChange_AppliedLabelChangeDetail_Type
func (*AppliedLabelChange_AppliedLabelChangeDetail) ProtoMessage()
func (x *AppliedLabelChange_AppliedLabelChangeDetail) ProtoReflect() protoreflect.Message
func (x *AppliedLabelChange_AppliedLabelChangeDetail) Reset()
func (x *AppliedLabelChange_AppliedLabelChangeDetail) String() string
Change to a Field value.
type AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange struct { // The ID of this field. Field IDs are unique within a Label. FieldId *string `protobuf:"bytes,1,opt,name=field_id,json=fieldId,proto3,oneof" json:"field_id,omitempty"` // The value that was previously set on the field. If not present, // the field was newly set. At least one of {old_value|new_value} is // always set. OldValue *AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue `protobuf:"bytes,2,opt,name=old_value,json=oldValue,proto3,oneof" json:"old_value,omitempty"` // The value that is now set on the field. If not present, the field was // cleared. At least one of {old_value|new_value} is always set. NewValue *AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue `protobuf:"bytes,3,opt,name=new_value,json=newValue,proto3,oneof" json:"new_value,omitempty"` // The human-readable display name for this field. DisplayName *string `protobuf:"bytes,4,opt,name=display_name,json=displayName,proto3,oneof" json:"display_name,omitempty"` // contains filtered or unexported fields }
func (*AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange) Descriptor() ([]byte, []int)
Deprecated: Use AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange.ProtoReflect.Descriptor instead.
func (x *AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange) GetDisplayName() string
func (x *AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange) GetFieldId() string
func (x *AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange) GetNewValue() *AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue
func (x *AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange) GetOldValue() *AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue
func (*AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange) ProtoMessage()
func (x *AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange) ProtoReflect() protoreflect.Message
func (x *AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange) Reset()
func (x *AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange) String() string
Contains a value of a Field.
type AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue struct { // Field values for all Field types. // // Types that are assignable to Value: // // *AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue_Text_ // *AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue_TextList_ // *AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue_Selection_ // *AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue_SelectionList_ // *AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue_Integer_ // *AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue_User // *AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue_UserList_ // *AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue_Date_ Value isAppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue_Value `protobuf_oneof:"value"` // contains filtered or unexported fields }
func (*AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue) Descriptor() ([]byte, []int)
Deprecated: Use AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue.ProtoReflect.Descriptor instead.
func (x *AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue) GetDate() *AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue_Date
func (x *AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue) GetInteger() *AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue_Integer
func (x *AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue) GetSelection() *AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue_Selection
func (x *AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue) GetSelectionList() *AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue_SelectionList
func (x *AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue) GetText() *AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue_Text
func (x *AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue) GetTextList() *AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue_TextList
func (x *AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue) GetUser() *AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue_SingleUser
func (x *AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue) GetUserList() *AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue_UserList
func (m *AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue) GetValue() isAppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue_Value
func (*AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue) ProtoMessage()
func (x *AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue) ProtoReflect() protoreflect.Message
func (x *AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue) Reset()
func (x *AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue) String() string
Wrapper for Date Field value.
type AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue_Date struct { // Date value. Value *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=value,proto3,oneof" json:"value,omitempty"` // contains filtered or unexported fields }
func (*AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue_Date) Descriptor() ([]byte, []int)
Deprecated: Use AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue_Date.ProtoReflect.Descriptor instead.
func (x *AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue_Date) GetValue() *timestamppb.Timestamp
func (*AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue_Date) ProtoMessage()
func (x *AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue_Date) ProtoReflect() protoreflect.Message
func (x *AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue_Date) Reset()
func (x *AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue_Date) String() string
type AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue_Date_ struct { // Date Field value. Date *AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue_Date `protobuf:"bytes,9,opt,name=date,proto3,oneof"` }
Wrapper for Integer Field value.
type AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue_Integer struct { // Integer value. Value *int64 `protobuf:"varint,1,opt,name=value,proto3,oneof" json:"value,omitempty"` // contains filtered or unexported fields }
func (*AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue_Integer) Descriptor() ([]byte, []int)
Deprecated: Use AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue_Integer.ProtoReflect.Descriptor instead.
func (x *AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue_Integer) GetValue() int64
func (*AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue_Integer) ProtoMessage()
func (x *AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue_Integer) ProtoReflect() protoreflect.Message
func (x *AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue_Integer) Reset()
func (x *AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue_Integer) String() string
type AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue_Integer_ struct { // Integer Field value. Integer *AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue_Integer `protobuf:"bytes,6,opt,name=integer,proto3,oneof"` }
Wrapper for Selection Field value as combined value/display_name pair for selected choice.
type AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue_Selection struct { // Selection value as Field Choice ID. Value *string `protobuf:"bytes,1,opt,name=value,proto3,oneof" json:"value,omitempty"` // Selection value as human-readable display string. DisplayName *string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3,oneof" json:"display_name,omitempty"` // contains filtered or unexported fields }
func (*AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue_Selection) Descriptor() ([]byte, []int)
Deprecated: Use AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue_Selection.ProtoReflect.Descriptor instead.
func (x *AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue_Selection) GetDisplayName() string
func (x *AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue_Selection) GetValue() string
func (*AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue_Selection) ProtoMessage()
func (x *AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue_Selection) ProtoReflect() protoreflect.Message
func (x *AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue_Selection) Reset()
func (x *AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue_Selection) String() string
Wrapper for SelectionList Field value.
type AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue_SelectionList struct { // Selection values. Values []*AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue_Selection `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"` // contains filtered or unexported fields }
func (*AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue_SelectionList) Descriptor() ([]byte, []int)
Deprecated: Use AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue_SelectionList.ProtoReflect.Descriptor instead.
func (x *AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue_SelectionList) GetValues() []*AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue_Selection
func (*AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue_SelectionList) ProtoMessage()
func (x *AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue_SelectionList) ProtoReflect() protoreflect.Message
func (x *AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue_SelectionList) Reset()
func (x *AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue_SelectionList) String() string
type AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue_SelectionList_ struct { // Selection List Field value. SelectionList *AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue_SelectionList `protobuf:"bytes,5,opt,name=selection_list,json=selectionList,proto3,oneof"` }
type AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue_Selection_ struct { // Selection Field value. Selection *AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue_Selection `protobuf:"bytes,4,opt,name=selection,proto3,oneof"` }
Wrapper for User Field value.
type AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue_SingleUser struct { // User value as email. Value *string `protobuf:"bytes,1,opt,name=value,proto3,oneof" json:"value,omitempty"` // contains filtered or unexported fields }
func (*AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue_SingleUser) Descriptor() ([]byte, []int)
Deprecated: Use AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue_SingleUser.ProtoReflect.Descriptor instead.
func (x *AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue_SingleUser) GetValue() string
func (*AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue_SingleUser) ProtoMessage()
func (x *AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue_SingleUser) ProtoReflect() protoreflect.Message
func (x *AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue_SingleUser) Reset()
func (x *AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue_SingleUser) String() string
Wrapper for Text Field value.
type AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue_Text struct { // Value of Text Field. Value *string `protobuf:"bytes,1,opt,name=value,proto3,oneof" json:"value,omitempty"` // contains filtered or unexported fields }
func (*AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue_Text) Descriptor() ([]byte, []int)
Deprecated: Use AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue_Text.ProtoReflect.Descriptor instead.
func (x *AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue_Text) GetValue() string
func (*AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue_Text) ProtoMessage()
func (x *AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue_Text) ProtoReflect() protoreflect.Message
func (x *AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue_Text) Reset()
func (x *AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue_Text) String() string
Wrapper for Text List Field value.
type AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue_TextList struct { // Text values. Values []*AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue_Text `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"` // contains filtered or unexported fields }
func (*AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue_TextList) Descriptor() ([]byte, []int)
Deprecated: Use AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue_TextList.ProtoReflect.Descriptor instead.
func (x *AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue_TextList) GetValues() []*AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue_Text
func (*AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue_TextList) ProtoMessage()
func (x *AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue_TextList) ProtoReflect() protoreflect.Message
func (x *AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue_TextList) Reset()
func (x *AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue_TextList) String() string
type AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue_TextList_ struct { // Text List Field value. TextList *AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue_TextList `protobuf:"bytes,3,opt,name=text_list,json=textList,proto3,oneof"` }
type AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue_Text_ struct { // Text Field value. Text *AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue_Text `protobuf:"bytes,1,opt,name=text,proto3,oneof"` }
type AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue_User struct { // User Field value. User *AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue_SingleUser `protobuf:"bytes,7,opt,name=user,proto3,oneof"` }
Wrapper for UserList Field value.
type AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue_UserList struct { // User values. Values []*AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue_SingleUser `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"` // contains filtered or unexported fields }
func (*AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue_UserList) Descriptor() ([]byte, []int)
Deprecated: Use AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue_UserList.ProtoReflect.Descriptor instead.
func (x *AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue_UserList) GetValues() []*AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue_SingleUser
func (*AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue_UserList) ProtoMessage()
func (x *AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue_UserList) ProtoReflect() protoreflect.Message
func (x *AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue_UserList) Reset()
func (x *AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue_UserList) String() string
type AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue_UserList_ struct { // User List Field value. UserList *AppliedLabelChange_AppliedLabelChangeDetail_FieldValueChange_FieldValue_UserList `protobuf:"bytes,8,opt,name=user_list,json=userList,proto3,oneof"` }
The type of Label change
type AppliedLabelChange_AppliedLabelChangeDetail_Type int32
const ( // The type of change to this Label is not available. AppliedLabelChange_AppliedLabelChangeDetail_TYPE_UNSPECIFIED AppliedLabelChange_AppliedLabelChangeDetail_Type = 0 // The identified Label was added to the Target. AppliedLabelChange_AppliedLabelChangeDetail_LABEL_ADDED AppliedLabelChange_AppliedLabelChangeDetail_Type = 1 // The identified Label was removed from the Target. AppliedLabelChange_AppliedLabelChangeDetail_LABEL_REMOVED AppliedLabelChange_AppliedLabelChangeDetail_Type = 2 // Field values were changed on the Target. AppliedLabelChange_AppliedLabelChangeDetail_LABEL_FIELD_VALUE_CHANGED AppliedLabelChange_AppliedLabelChangeDetail_Type = 3 // The Label was applied as a side-effect of Drive item creation. AppliedLabelChange_AppliedLabelChangeDetail_LABEL_APPLIED_BY_ITEM_CREATE AppliedLabelChange_AppliedLabelChangeDetail_Type = 4 )
func (AppliedLabelChange_AppliedLabelChangeDetail_Type) Descriptor() protoreflect.EnumDescriptor
func (x AppliedLabelChange_AppliedLabelChangeDetail_Type) Enum() *AppliedLabelChange_AppliedLabelChangeDetail_Type
func (AppliedLabelChange_AppliedLabelChangeDetail_Type) EnumDescriptor() ([]byte, []int)
Deprecated: Use AppliedLabelChange_AppliedLabelChangeDetail_Type.Descriptor instead.
func (x AppliedLabelChange_AppliedLabelChangeDetail_Type) Number() protoreflect.EnumNumber
func (x AppliedLabelChange_AppliedLabelChangeDetail_Type) String() string
func (AppliedLabelChange_AppliedLabelChangeDetail_Type) Type() protoreflect.EnumType
A change about comments on an object.
type Comment struct { // The type of changed comment. // // Types that are assignable to Type: // // *Comment_Post_ // *Comment_Assignment_ // *Comment_Suggestion_ Type isComment_Type `protobuf_oneof:"type"` // Users who are mentioned in this comment. MentionedUsers []*User `protobuf:"bytes,7,rep,name=mentioned_users,json=mentionedUsers,proto3" json:"mentioned_users,omitempty"` // contains filtered or unexported fields }
func (*Comment) Descriptor() ([]byte, []int)
Deprecated: Use Comment.ProtoReflect.Descriptor instead.
func (x *Comment) GetAssignment() *Comment_Assignment
func (x *Comment) GetMentionedUsers() []*User
func (x *Comment) GetPost() *Comment_Post
func (x *Comment) GetSuggestion() *Comment_Suggestion
func (m *Comment) GetType() isComment_Type
func (*Comment) ProtoMessage()
func (x *Comment) ProtoReflect() protoreflect.Message
func (x *Comment) Reset()
func (x *Comment) String() string
A comment with an assignment.
type Comment_Assignment struct { // The sub-type of this event. Subtype Comment_Assignment_Subtype `protobuf:"varint,1,opt,name=subtype,proto3,enum=google.apps.drive.activity.v2.Comment_Assignment_Subtype" json:"subtype,omitempty"` // The user to whom the comment was assigned. AssignedUser *User `protobuf:"bytes,7,opt,name=assigned_user,json=assignedUser,proto3" json:"assigned_user,omitempty"` // contains filtered or unexported fields }
func (*Comment_Assignment) Descriptor() ([]byte, []int)
Deprecated: Use Comment_Assignment.ProtoReflect.Descriptor instead.
func (x *Comment_Assignment) GetAssignedUser() *User
func (x *Comment_Assignment) GetSubtype() Comment_Assignment_Subtype
func (*Comment_Assignment) ProtoMessage()
func (x *Comment_Assignment) ProtoReflect() protoreflect.Message
func (x *Comment_Assignment) Reset()
func (x *Comment_Assignment) String() string
type Comment_Assignment_ struct { // A change on an assignment. Assignment *Comment_Assignment `protobuf:"bytes,2,opt,name=assignment,proto3,oneof"` }
More detailed information about the change.
type Comment_Assignment_Subtype int32
const ( // Subtype not available. Comment_Assignment_SUBTYPE_UNSPECIFIED Comment_Assignment_Subtype = 0 // An assignment was added. Comment_Assignment_ADDED Comment_Assignment_Subtype = 1 // An assignment was deleted. Comment_Assignment_DELETED Comment_Assignment_Subtype = 2 // An assignment reply was added. Comment_Assignment_REPLY_ADDED Comment_Assignment_Subtype = 3 // An assignment reply was deleted. Comment_Assignment_REPLY_DELETED Comment_Assignment_Subtype = 4 // An assignment was resolved. Comment_Assignment_RESOLVED Comment_Assignment_Subtype = 5 // A resolved assignment was reopened. Comment_Assignment_REOPENED Comment_Assignment_Subtype = 6 // An assignment was reassigned. Comment_Assignment_REASSIGNED Comment_Assignment_Subtype = 7 )
func (Comment_Assignment_Subtype) Descriptor() protoreflect.EnumDescriptor
func (x Comment_Assignment_Subtype) Enum() *Comment_Assignment_Subtype
func (Comment_Assignment_Subtype) EnumDescriptor() ([]byte, []int)
Deprecated: Use Comment_Assignment_Subtype.Descriptor instead.
func (x Comment_Assignment_Subtype) Number() protoreflect.EnumNumber
func (x Comment_Assignment_Subtype) String() string
func (Comment_Assignment_Subtype) Type() protoreflect.EnumType
A regular posted comment.
type Comment_Post struct { // The sub-type of this event. Subtype Comment_Post_Subtype `protobuf:"varint,1,opt,name=subtype,proto3,enum=google.apps.drive.activity.v2.Comment_Post_Subtype" json:"subtype,omitempty"` // contains filtered or unexported fields }
func (*Comment_Post) Descriptor() ([]byte, []int)
Deprecated: Use Comment_Post.ProtoReflect.Descriptor instead.
func (x *Comment_Post) GetSubtype() Comment_Post_Subtype
func (*Comment_Post) ProtoMessage()
func (x *Comment_Post) ProtoReflect() protoreflect.Message
func (x *Comment_Post) Reset()
func (x *Comment_Post) String() string
type Comment_Post_ struct { // A change on a regular posted comment. Post *Comment_Post `protobuf:"bytes,1,opt,name=post,proto3,oneof"` }
More detailed information about the change.
type Comment_Post_Subtype int32
const ( // Subtype not available. Comment_Post_SUBTYPE_UNSPECIFIED Comment_Post_Subtype = 0 // A post was added. Comment_Post_ADDED Comment_Post_Subtype = 1 // A post was deleted. Comment_Post_DELETED Comment_Post_Subtype = 2 // A reply was added. Comment_Post_REPLY_ADDED Comment_Post_Subtype = 3 // A reply was deleted. Comment_Post_REPLY_DELETED Comment_Post_Subtype = 4 // A posted comment was resolved. Comment_Post_RESOLVED Comment_Post_Subtype = 5 // A posted comment was reopened. Comment_Post_REOPENED Comment_Post_Subtype = 6 )
func (Comment_Post_Subtype) Descriptor() protoreflect.EnumDescriptor
func (x Comment_Post_Subtype) Enum() *Comment_Post_Subtype
func (Comment_Post_Subtype) EnumDescriptor() ([]byte, []int)
Deprecated: Use Comment_Post_Subtype.Descriptor instead.
func (x Comment_Post_Subtype) Number() protoreflect.EnumNumber
func (x Comment_Post_Subtype) String() string
func (Comment_Post_Subtype) Type() protoreflect.EnumType
A suggestion.
type Comment_Suggestion struct { // The sub-type of this event. Subtype Comment_Suggestion_Subtype `protobuf:"varint,1,opt,name=subtype,proto3,enum=google.apps.drive.activity.v2.Comment_Suggestion_Subtype" json:"subtype,omitempty"` // contains filtered or unexported fields }
func (*Comment_Suggestion) Descriptor() ([]byte, []int)
Deprecated: Use Comment_Suggestion.ProtoReflect.Descriptor instead.
func (x *Comment_Suggestion) GetSubtype() Comment_Suggestion_Subtype
func (*Comment_Suggestion) ProtoMessage()
func (x *Comment_Suggestion) ProtoReflect() protoreflect.Message
func (x *Comment_Suggestion) Reset()
func (x *Comment_Suggestion) String() string
type Comment_Suggestion_ struct { // A change on a suggestion. Suggestion *Comment_Suggestion `protobuf:"bytes,3,opt,name=suggestion,proto3,oneof"` }
More detailed information about the change.
type Comment_Suggestion_Subtype int32
const ( // Subtype not available. Comment_Suggestion_SUBTYPE_UNSPECIFIED Comment_Suggestion_Subtype = 0 // A suggestion was added. Comment_Suggestion_ADDED Comment_Suggestion_Subtype = 1 // A suggestion was deleted. Comment_Suggestion_DELETED Comment_Suggestion_Subtype = 2 // A suggestion reply was added. Comment_Suggestion_REPLY_ADDED Comment_Suggestion_Subtype = 3 // A suggestion reply was deleted. Comment_Suggestion_REPLY_DELETED Comment_Suggestion_Subtype = 4 // A suggestion was accepted. Comment_Suggestion_ACCEPTED Comment_Suggestion_Subtype = 7 // A suggestion was rejected. Comment_Suggestion_REJECTED Comment_Suggestion_Subtype = 8 // An accepted suggestion was deleted. Comment_Suggestion_ACCEPT_DELETED Comment_Suggestion_Subtype = 9 // A rejected suggestion was deleted. Comment_Suggestion_REJECT_DELETED Comment_Suggestion_Subtype = 10 )
func (Comment_Suggestion_Subtype) Descriptor() protoreflect.EnumDescriptor
func (x Comment_Suggestion_Subtype) Enum() *Comment_Suggestion_Subtype
func (Comment_Suggestion_Subtype) EnumDescriptor() ([]byte, []int)
Deprecated: Use Comment_Suggestion_Subtype.Descriptor instead.
func (x Comment_Suggestion_Subtype) Number() protoreflect.EnumNumber
func (x Comment_Suggestion_Subtype) String() string
func (Comment_Suggestion_Subtype) Type() protoreflect.EnumType
How the individual activities are consolidated. If a set of activities is related they can be consolidated into one combined activity, such as one actor performing the same action on multiple targets, or multiple actors performing the same action on a single target. The strategy defines the rules for which activities are related.
type ConsolidationStrategy struct { // How the individual activities are consolidated. // // Types that are assignable to Strategy: // // *ConsolidationStrategy_None // *ConsolidationStrategy_Legacy_ Strategy isConsolidationStrategy_Strategy `protobuf_oneof:"strategy"` // contains filtered or unexported fields }
func (*ConsolidationStrategy) Descriptor() ([]byte, []int)
Deprecated: Use ConsolidationStrategy.ProtoReflect.Descriptor instead.
func (x *ConsolidationStrategy) GetLegacy() *ConsolidationStrategy_Legacy
func (x *ConsolidationStrategy) GetNone() *ConsolidationStrategy_NoConsolidation
func (m *ConsolidationStrategy) GetStrategy() isConsolidationStrategy_Strategy
func (*ConsolidationStrategy) ProtoMessage()
func (x *ConsolidationStrategy) ProtoReflect() protoreflect.Message
func (x *ConsolidationStrategy) Reset()
func (x *ConsolidationStrategy) String() string
A strategy that consolidates activities using the grouping rules from the legacy V1 Activity API. Similar actions occurring within a window of time can be grouped across multiple targets (such as moving a set of files at once) or multiple actors (such as several users editing the same item). Grouping rules for this strategy are specific to each type of action.
type ConsolidationStrategy_Legacy struct {
// contains filtered or unexported fields
}
func (*ConsolidationStrategy_Legacy) Descriptor() ([]byte, []int)
Deprecated: Use ConsolidationStrategy_Legacy.ProtoReflect.Descriptor instead.
func (*ConsolidationStrategy_Legacy) ProtoMessage()
func (x *ConsolidationStrategy_Legacy) ProtoReflect() protoreflect.Message
func (x *ConsolidationStrategy_Legacy) Reset()
func (x *ConsolidationStrategy_Legacy) String() string
type ConsolidationStrategy_Legacy_ struct { // The individual activities are consolidated using the legacy strategy. Legacy *ConsolidationStrategy_Legacy `protobuf:"bytes,2,opt,name=legacy,proto3,oneof"` }
A strategy that does no consolidation of individual activities.
type ConsolidationStrategy_NoConsolidation struct {
// contains filtered or unexported fields
}
func (*ConsolidationStrategy_NoConsolidation) Descriptor() ([]byte, []int)
Deprecated: Use ConsolidationStrategy_NoConsolidation.ProtoReflect.Descriptor instead.
func (*ConsolidationStrategy_NoConsolidation) ProtoMessage()
func (x *ConsolidationStrategy_NoConsolidation) ProtoReflect() protoreflect.Message
func (x *ConsolidationStrategy_NoConsolidation) Reset()
func (x *ConsolidationStrategy_NoConsolidation) String() string
type ConsolidationStrategy_None struct { // The individual activities are not consolidated. None *ConsolidationStrategy_NoConsolidation `protobuf:"bytes,1,opt,name=none,proto3,oneof"` }
An object was created.
type Create struct { // The origin of the new object. // // Types that are assignable to Origin: // // *Create_New_ // *Create_Upload_ // *Create_Copy_ Origin isCreate_Origin `protobuf_oneof:"origin"` // contains filtered or unexported fields }
func (*Create) Descriptor() ([]byte, []int)
Deprecated: Use Create.ProtoReflect.Descriptor instead.
func (x *Create) GetCopy() *Create_Copy
func (x *Create) GetNew() *Create_New
func (m *Create) GetOrigin() isCreate_Origin
func (x *Create) GetUpload() *Create_Upload
func (*Create) ProtoMessage()
func (x *Create) ProtoReflect() protoreflect.Message
func (x *Create) Reset()
func (x *Create) String() string
An object was created by copying an existing object.
type Create_Copy struct { // The original object. OriginalObject *TargetReference `protobuf:"bytes,1,opt,name=original_object,json=originalObject,proto3" json:"original_object,omitempty"` // contains filtered or unexported fields }
func (*Create_Copy) Descriptor() ([]byte, []int)
Deprecated: Use Create_Copy.ProtoReflect.Descriptor instead.
func (x *Create_Copy) GetOriginalObject() *TargetReference
func (*Create_Copy) ProtoMessage()
func (x *Create_Copy) ProtoReflect() protoreflect.Message
func (x *Create_Copy) Reset()
func (x *Create_Copy) String() string
type Create_Copy_ struct { // If present, indicates the object was created by copying an existing Drive // object. Copy *Create_Copy `protobuf:"bytes,3,opt,name=copy,proto3,oneof"` }
An object was created from scratch.
type Create_New struct {
// contains filtered or unexported fields
}
func (*Create_New) Descriptor() ([]byte, []int)
Deprecated: Use Create_New.ProtoReflect.Descriptor instead.
func (*Create_New) ProtoMessage()
func (x *Create_New) ProtoReflect() protoreflect.Message
func (x *Create_New) Reset()
func (x *Create_New) String() string
type Create_New_ struct { // If present, indicates the object was newly created (e.g. as a blank // document), not derived from a Drive object or external object. New *Create_New `protobuf:"bytes,1,opt,name=new,proto3,oneof"` }
An object was uploaded into Drive.
type Create_Upload struct {
// contains filtered or unexported fields
}
func (*Create_Upload) Descriptor() ([]byte, []int)
Deprecated: Use Create_Upload.ProtoReflect.Descriptor instead.
func (*Create_Upload) ProtoMessage()
func (x *Create_Upload) ProtoReflect() protoreflect.Message
func (x *Create_Upload) Reset()
func (x *Create_Upload) String() string
type Create_Upload_ struct { // If present, indicates the object originated externally and was uploaded // to Drive. Upload *Create_Upload `protobuf:"bytes,2,opt,name=upload,proto3,oneof"` }
A change in the object's data leak prevention status.
type DataLeakPreventionChange struct { // The type of Data Leak Prevention (DLP) change. Type DataLeakPreventionChange_Type `protobuf:"varint,1,opt,name=type,proto3,enum=google.apps.drive.activity.v2.DataLeakPreventionChange_Type" json:"type,omitempty"` // contains filtered or unexported fields }
func (*DataLeakPreventionChange) Descriptor() ([]byte, []int)
Deprecated: Use DataLeakPreventionChange.ProtoReflect.Descriptor instead.
func (x *DataLeakPreventionChange) GetType() DataLeakPreventionChange_Type
func (*DataLeakPreventionChange) ProtoMessage()
func (x *DataLeakPreventionChange) ProtoReflect() protoreflect.Message
func (x *DataLeakPreventionChange) Reset()
func (x *DataLeakPreventionChange) String() string
The type of the change.
type DataLeakPreventionChange_Type int32
const ( // An update to the DLP state that is neither FLAGGED or CLEARED. DataLeakPreventionChange_TYPE_UNSPECIFIED DataLeakPreventionChange_Type = 0 // Document has been flagged as containing sensitive content. DataLeakPreventionChange_FLAGGED DataLeakPreventionChange_Type = 1 // Document is no longer flagged as containing sensitive content. DataLeakPreventionChange_CLEARED DataLeakPreventionChange_Type = 2 )
func (DataLeakPreventionChange_Type) Descriptor() protoreflect.EnumDescriptor
func (x DataLeakPreventionChange_Type) Enum() *DataLeakPreventionChange_Type
func (DataLeakPreventionChange_Type) EnumDescriptor() ([]byte, []int)
Deprecated: Use DataLeakPreventionChange_Type.Descriptor instead.
func (x DataLeakPreventionChange_Type) Number() protoreflect.EnumNumber
func (x DataLeakPreventionChange_Type) String() string
func (DataLeakPreventionChange_Type) Type() protoreflect.EnumType
An object was deleted.
type Delete struct { // The type of delete action taken. Type Delete_Type `protobuf:"varint,1,opt,name=type,proto3,enum=google.apps.drive.activity.v2.Delete_Type" json:"type,omitempty"` // contains filtered or unexported fields }
func (*Delete) Descriptor() ([]byte, []int)
Deprecated: Use Delete.ProtoReflect.Descriptor instead.
func (x *Delete) GetType() Delete_Type
func (*Delete) ProtoMessage()
func (x *Delete) ProtoReflect() protoreflect.Message
func (x *Delete) Reset()
func (x *Delete) String() string
The type of deletion.
type Delete_Type int32
const ( // Deletion type is not available. Delete_TYPE_UNSPECIFIED Delete_Type = 0 // An object was put into the trash. Delete_TRASH Delete_Type = 1 // An object was deleted permanently. Delete_PERMANENT_DELETE Delete_Type = 2 )
func (Delete_Type) Descriptor() protoreflect.EnumDescriptor
func (x Delete_Type) Enum() *Delete_Type
func (Delete_Type) EnumDescriptor() ([]byte, []int)
Deprecated: Use Delete_Type.Descriptor instead.
func (x Delete_Type) Number() protoreflect.EnumNumber
func (x Delete_Type) String() string
func (Delete_Type) Type() protoreflect.EnumType
Information about a domain.
type Domain struct { // The name of the domain, e.g. `google.com`. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // An opaque string used to identify this domain. LegacyId string `protobuf:"bytes,3,opt,name=legacy_id,json=legacyId,proto3" json:"legacy_id,omitempty"` // contains filtered or unexported fields }
func (*Domain) Descriptor() ([]byte, []int)
Deprecated: Use Domain.ProtoReflect.Descriptor instead.
func (x *Domain) GetLegacyId() string
func (x *Domain) GetName() string
func (*Domain) ProtoMessage()
func (x *Domain) ProtoReflect() protoreflect.Message
func (x *Domain) Reset()
func (x *Domain) String() string
Information about a shared drive.
type Drive struct { // The resource name of the shared drive. The format is // `COLLECTION_ID/DRIVE_ID`. Clients should not assume a specific collection // ID for this resource name. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The title of the shared drive. Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` // The root of this shared drive. Root *DriveItem `protobuf:"bytes,3,opt,name=root,proto3" json:"root,omitempty"` // contains filtered or unexported fields }
func (*Drive) Descriptor() ([]byte, []int)
Deprecated: Use Drive.ProtoReflect.Descriptor instead.
func (x *Drive) GetName() string
func (x *Drive) GetRoot() *DriveItem
func (x *Drive) GetTitle() string
func (*Drive) ProtoMessage()
func (x *Drive) ProtoReflect() protoreflect.Message
func (x *Drive) Reset()
func (x *Drive) String() string
A single Drive activity comprising one or more Actions by one or more Actors on one or more Targets. Some Action groupings occur spontaneously, such as moving an item into a shared folder triggering a permission change. Other groupings of related Actions, such as multiple Actors editing one item or moving multiple files into a new folder, are controlled by the selection of a ConsolidationStrategy in the QueryDriveActivityRequest.
type DriveActivity struct { // Key information about the primary action for this activity. This is either // representative, or the most important, of all actions in the activity, // according to the ConsolidationStrategy in the request. PrimaryActionDetail *ActionDetail `protobuf:"bytes,2,opt,name=primary_action_detail,json=primaryActionDetail,proto3" json:"primary_action_detail,omitempty"` // All actor(s) responsible for the activity. Actors []*Actor `protobuf:"bytes,3,rep,name=actors,proto3" json:"actors,omitempty"` // Details on all actions in this activity. Actions []*Action `protobuf:"bytes,4,rep,name=actions,proto3" json:"actions,omitempty"` // All Google Drive objects this activity is about (e.g. file, folder, drive). // This represents the state of the target immediately after the actions // occurred. Targets []*Target `protobuf:"bytes,5,rep,name=targets,proto3" json:"targets,omitempty"` // The period of time when this activity occurred. // // Types that are assignable to Time: // // *DriveActivity_Timestamp // *DriveActivity_TimeRange Time isDriveActivity_Time `protobuf_oneof:"time"` // contains filtered or unexported fields }
func (*DriveActivity) Descriptor() ([]byte, []int)
Deprecated: Use DriveActivity.ProtoReflect.Descriptor instead.
func (x *DriveActivity) GetActions() []*Action
func (x *DriveActivity) GetActors() []*Actor
func (x *DriveActivity) GetPrimaryActionDetail() *ActionDetail
func (x *DriveActivity) GetTargets() []*Target
func (m *DriveActivity) GetTime() isDriveActivity_Time
func (x *DriveActivity) GetTimeRange() *TimeRange
func (x *DriveActivity) GetTimestamp() *timestamppb.Timestamp
func (*DriveActivity) ProtoMessage()
func (x *DriveActivity) ProtoReflect() protoreflect.Message
func (x *DriveActivity) Reset()
func (x *DriveActivity) String() string
DriveActivityServiceClient is the client API for DriveActivityService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type DriveActivityServiceClient interface { // Query past activity in Google Drive. QueryDriveActivity(ctx context.Context, in *QueryDriveActivityRequest, opts ...grpc.CallOption) (*QueryDriveActivityResponse, error) }
func NewDriveActivityServiceClient(cc grpc.ClientConnInterface) DriveActivityServiceClient
DriveActivityServiceServer is the server API for DriveActivityService service.
type DriveActivityServiceServer interface { // Query past activity in Google Drive. QueryDriveActivity(context.Context, *QueryDriveActivityRequest) (*QueryDriveActivityResponse, error) }
type DriveActivity_TimeRange struct { // The activity occurred over this time range. TimeRange *TimeRange `protobuf:"bytes,7,opt,name=time_range,json=timeRange,proto3,oneof"` }
type DriveActivity_Timestamp struct { // The activity occurred at this specific time. Timestamp *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=timestamp,proto3,oneof"` }
A Drive item, such as a file or folder.
type DriveItem struct { // The target Drive item. The format is `items/ITEM_ID`. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The title of the Drive item. Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` // This field is deprecated; please use the `driveFile` field instead. // // Deprecated: Do not use. File *DriveItem_File `protobuf:"bytes,3,opt,name=file,proto3" json:"file,omitempty"` // This field is deprecated; please use the `driveFolder` field instead. // // Deprecated: Do not use. Folder *DriveItem_Folder `protobuf:"bytes,4,opt,name=folder,proto3" json:"folder,omitempty"` // If present, this describes the type of the Drive item. // // Types that are assignable to ItemType: // // *DriveItem_DriveFile_ // *DriveItem_DriveFolder_ ItemType isDriveItem_ItemType `protobuf_oneof:"item_type"` // The MIME type of the Drive item. See // https://developers.google.com/drive/v3/web/mime-types. MimeType string `protobuf:"bytes,6,opt,name=mime_type,json=mimeType,proto3" json:"mime_type,omitempty"` // Information about the owner of this Drive item. Owner *Owner `protobuf:"bytes,7,opt,name=owner,proto3" json:"owner,omitempty"` // contains filtered or unexported fields }
func (*DriveItem) Descriptor() ([]byte, []int)
Deprecated: Use DriveItem.ProtoReflect.Descriptor instead.
func (x *DriveItem) GetDriveFile() *DriveItem_DriveFile
func (x *DriveItem) GetDriveFolder() *DriveItem_DriveFolder
func (x *DriveItem) GetFile() *DriveItem_File
Deprecated: Do not use.
func (x *DriveItem) GetFolder() *DriveItem_Folder
Deprecated: Do not use.
func (m *DriveItem) GetItemType() isDriveItem_ItemType
func (x *DriveItem) GetMimeType() string
func (x *DriveItem) GetName() string
func (x *DriveItem) GetOwner() *Owner
func (x *DriveItem) GetTitle() string
func (*DriveItem) ProtoMessage()
func (x *DriveItem) ProtoReflect() protoreflect.Message
func (x *DriveItem) Reset()
func (x *DriveItem) String() string
A lightweight reference to a Drive item, such as a file or folder.
type DriveItemReference struct { // The target Drive item. The format is `items/ITEM_ID`. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The title of the Drive item. Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` // This field is deprecated; please use the `driveFile` field instead. // // Deprecated: Do not use. File *DriveItem_File `protobuf:"bytes,3,opt,name=file,proto3" json:"file,omitempty"` // This field is deprecated; please use the `driveFolder` field instead. // // Deprecated: Do not use. Folder *DriveItem_Folder `protobuf:"bytes,4,opt,name=folder,proto3" json:"folder,omitempty"` // If present, this describes the type of the Drive item. // // Types that are assignable to ItemType: // // *DriveItemReference_DriveFile // *DriveItemReference_DriveFolder ItemType isDriveItemReference_ItemType `protobuf_oneof:"item_type"` // contains filtered or unexported fields }
func (*DriveItemReference) Descriptor() ([]byte, []int)
Deprecated: Use DriveItemReference.ProtoReflect.Descriptor instead.
func (x *DriveItemReference) GetDriveFile() *DriveItem_DriveFile
func (x *DriveItemReference) GetDriveFolder() *DriveItem_DriveFolder
func (x *DriveItemReference) GetFile() *DriveItem_File
Deprecated: Do not use.
func (x *DriveItemReference) GetFolder() *DriveItem_Folder
Deprecated: Do not use.
func (m *DriveItemReference) GetItemType() isDriveItemReference_ItemType
func (x *DriveItemReference) GetName() string
func (x *DriveItemReference) GetTitle() string
func (*DriveItemReference) ProtoMessage()
func (x *DriveItemReference) ProtoReflect() protoreflect.Message
func (x *DriveItemReference) Reset()
func (x *DriveItemReference) String() string
type DriveItemReference_DriveFile struct { // The Drive item is a file. DriveFile *DriveItem_DriveFile `protobuf:"bytes,8,opt,name=drive_file,json=driveFile,proto3,oneof"` }
type DriveItemReference_DriveFolder struct { // The Drive item is a folder. Includes information about the type of // folder. DriveFolder *DriveItem_DriveFolder `protobuf:"bytes,9,opt,name=drive_folder,json=driveFolder,proto3,oneof"` }
A Drive item which is a file.
type DriveItem_DriveFile struct {
// contains filtered or unexported fields
}
func (*DriveItem_DriveFile) Descriptor() ([]byte, []int)
Deprecated: Use DriveItem_DriveFile.ProtoReflect.Descriptor instead.
func (*DriveItem_DriveFile) ProtoMessage()
func (x *DriveItem_DriveFile) ProtoReflect() protoreflect.Message
func (x *DriveItem_DriveFile) Reset()
func (x *DriveItem_DriveFile) String() string
type DriveItem_DriveFile_ struct { // The Drive item is a file. DriveFile *DriveItem_DriveFile `protobuf:"bytes,8,opt,name=drive_file,json=driveFile,proto3,oneof"` }
A Drive item which is a folder.
type DriveItem_DriveFolder struct { // The type of Drive folder. Type DriveItem_DriveFolder_Type `protobuf:"varint,6,opt,name=type,proto3,enum=google.apps.drive.activity.v2.DriveItem_DriveFolder_Type" json:"type,omitempty"` // contains filtered or unexported fields }
func (*DriveItem_DriveFolder) Descriptor() ([]byte, []int)
Deprecated: Use DriveItem_DriveFolder.ProtoReflect.Descriptor instead.
func (x *DriveItem_DriveFolder) GetType() DriveItem_DriveFolder_Type
func (*DriveItem_DriveFolder) ProtoMessage()
func (x *DriveItem_DriveFolder) ProtoReflect() protoreflect.Message
func (x *DriveItem_DriveFolder) Reset()
func (x *DriveItem_DriveFolder) String() string
type DriveItem_DriveFolder_ struct { // The Drive item is a folder. Includes information about the type of // folder. DriveFolder *DriveItem_DriveFolder `protobuf:"bytes,9,opt,name=drive_folder,json=driveFolder,proto3,oneof"` }
The type of a Drive folder.
type DriveItem_DriveFolder_Type int32
const ( // The folder type is unknown. DriveItem_DriveFolder_TYPE_UNSPECIFIED DriveItem_DriveFolder_Type = 0 // The folder is the root of a user's MyDrive. DriveItem_DriveFolder_MY_DRIVE_ROOT DriveItem_DriveFolder_Type = 1 // The folder is the root of a shared drive. DriveItem_DriveFolder_SHARED_DRIVE_ROOT DriveItem_DriveFolder_Type = 2 // The folder is a standard, non-root, folder. DriveItem_DriveFolder_STANDARD_FOLDER DriveItem_DriveFolder_Type = 3 )
func (DriveItem_DriveFolder_Type) Descriptor() protoreflect.EnumDescriptor
func (x DriveItem_DriveFolder_Type) Enum() *DriveItem_DriveFolder_Type
func (DriveItem_DriveFolder_Type) EnumDescriptor() ([]byte, []int)
Deprecated: Use DriveItem_DriveFolder_Type.Descriptor instead.
func (x DriveItem_DriveFolder_Type) Number() protoreflect.EnumNumber
func (x DriveItem_DriveFolder_Type) String() string
func (DriveItem_DriveFolder_Type) Type() protoreflect.EnumType
This item is deprecated; please see `DriveFile` instead.
Deprecated: Do not use.
type DriveItem_File struct {
// contains filtered or unexported fields
}
func (*DriveItem_File) Descriptor() ([]byte, []int)
Deprecated: Use DriveItem_File.ProtoReflect.Descriptor instead.
func (*DriveItem_File) ProtoMessage()
func (x *DriveItem_File) ProtoReflect() protoreflect.Message
func (x *DriveItem_File) Reset()
func (x *DriveItem_File) String() string
This item is deprecated; please see `DriveFolder` instead.
Deprecated: Do not use.
type DriveItem_Folder struct { // This field is deprecated; please see `DriveFolder.type` instead. Type DriveItem_Folder_Type `protobuf:"varint,6,opt,name=type,proto3,enum=google.apps.drive.activity.v2.DriveItem_Folder_Type" json:"type,omitempty"` // contains filtered or unexported fields }
func (*DriveItem_Folder) Descriptor() ([]byte, []int)
Deprecated: Use DriveItem_Folder.ProtoReflect.Descriptor instead.
func (x *DriveItem_Folder) GetType() DriveItem_Folder_Type
func (*DriveItem_Folder) ProtoMessage()
func (x *DriveItem_Folder) ProtoReflect() protoreflect.Message
func (x *DriveItem_Folder) Reset()
func (x *DriveItem_Folder) String() string
This item is deprecated; please see `DriveFolder.Type` instead.
Deprecated: Do not use.
type DriveItem_Folder_Type int32
const ( // This item is deprecated; please see `DriveFolder.Type` instead. DriveItem_Folder_TYPE_UNSPECIFIED DriveItem_Folder_Type = 0 // This item is deprecated; please see `DriveFolder.Type` instead. DriveItem_Folder_MY_DRIVE_ROOT DriveItem_Folder_Type = 1 // This item is deprecated; please see `DriveFolder.Type` instead. DriveItem_Folder_TEAM_DRIVE_ROOT DriveItem_Folder_Type = 2 // This item is deprecated; please see `DriveFolder.Type` instead. DriveItem_Folder_STANDARD_FOLDER DriveItem_Folder_Type = 3 )
func (DriveItem_Folder_Type) Descriptor() protoreflect.EnumDescriptor
func (x DriveItem_Folder_Type) Enum() *DriveItem_Folder_Type
func (DriveItem_Folder_Type) EnumDescriptor() ([]byte, []int)
Deprecated: Use DriveItem_Folder_Type.Descriptor instead.
func (x DriveItem_Folder_Type) Number() protoreflect.EnumNumber
func (x DriveItem_Folder_Type) String() string
func (DriveItem_Folder_Type) Type() protoreflect.EnumType
A lightweight reference to a shared drive.
type DriveReference struct { // The resource name of the shared drive. The format is // `COLLECTION_ID/DRIVE_ID`. Clients should not assume a specific collection // ID for this resource name. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The title of the shared drive. Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` // contains filtered or unexported fields }
func (*DriveReference) Descriptor() ([]byte, []int)
Deprecated: Use DriveReference.ProtoReflect.Descriptor instead.
func (x *DriveReference) GetName() string
func (x *DriveReference) GetTitle() string
func (*DriveReference) ProtoMessage()
func (x *DriveReference) ProtoReflect() protoreflect.Message
func (x *DriveReference) Reset()
func (x *DriveReference) String() string
An empty message indicating an object was edited.
type Edit struct {
// contains filtered or unexported fields
}
func (*Edit) Descriptor() ([]byte, []int)
Deprecated: Use Edit.ProtoReflect.Descriptor instead.
func (*Edit) ProtoMessage()
func (x *Edit) ProtoReflect() protoreflect.Message
func (x *Edit) Reset()
func (x *Edit) String() string
A comment on a file.
type FileComment struct { // The comment in the discussion thread. This identifier is an opaque string // compatible with the Drive API; see // https://developers.google.com/drive/v3/reference/comments/get LegacyCommentId string `protobuf:"bytes,1,opt,name=legacy_comment_id,json=legacyCommentId,proto3" json:"legacy_comment_id,omitempty"` // The discussion thread to which the comment was added. This identifier is an // opaque string compatible with the Drive API and references the first // comment in a discussion; see // https://developers.google.com/drive/v3/reference/comments/get LegacyDiscussionId string `protobuf:"bytes,2,opt,name=legacy_discussion_id,json=legacyDiscussionId,proto3" json:"legacy_discussion_id,omitempty"` // The link to the discussion thread containing this comment, for example, // `https://docs.google.com/DOCUMENT_ID/edit?disco=THREAD_ID`. LinkToDiscussion string `protobuf:"bytes,3,opt,name=link_to_discussion,json=linkToDiscussion,proto3" json:"link_to_discussion,omitempty"` // The Drive item containing this comment. Parent *DriveItem `protobuf:"bytes,4,opt,name=parent,proto3" json:"parent,omitempty"` // contains filtered or unexported fields }
func (*FileComment) Descriptor() ([]byte, []int)
Deprecated: Use FileComment.ProtoReflect.Descriptor instead.
func (x *FileComment) GetLegacyCommentId() string
func (x *FileComment) GetLegacyDiscussionId() string
func (x *FileComment) GetLinkToDiscussion() string
func (x *FileComment) GetParent() *DriveItem
func (*FileComment) ProtoMessage()
func (x *FileComment) ProtoReflect() protoreflect.Message
func (x *FileComment) Reset()
func (x *FileComment) String() string
Information about a group.
type Group struct { // The email address of the group. Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` // The title of the group. Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` // contains filtered or unexported fields }
func (*Group) Descriptor() ([]byte, []int)
Deprecated: Use Group.ProtoReflect.Descriptor instead.
func (x *Group) GetEmail() string
func (x *Group) GetTitle() string
func (*Group) ProtoMessage()
func (x *Group) ProtoReflect() protoreflect.Message
func (x *Group) Reset()
func (x *Group) String() string
Information about an impersonation, where an admin acts on behalf of an end user. Information about the acting admin is not currently available.
type Impersonation struct { // The impersonated user. ImpersonatedUser *User `protobuf:"bytes,1,opt,name=impersonated_user,json=impersonatedUser,proto3" json:"impersonated_user,omitempty"` // contains filtered or unexported fields }
func (*Impersonation) Descriptor() ([]byte, []int)
Deprecated: Use Impersonation.ProtoReflect.Descriptor instead.
func (x *Impersonation) GetImpersonatedUser() *User
func (*Impersonation) ProtoMessage()
func (x *Impersonation) ProtoReflect() protoreflect.Message
func (x *Impersonation) Reset()
func (x *Impersonation) String() string
An object was moved.
type Move struct { // The added parent object(s). AddedParents []*TargetReference `protobuf:"bytes,1,rep,name=added_parents,json=addedParents,proto3" json:"added_parents,omitempty"` // The removed parent object(s). RemovedParents []*TargetReference `protobuf:"bytes,2,rep,name=removed_parents,json=removedParents,proto3" json:"removed_parents,omitempty"` // contains filtered or unexported fields }
func (*Move) Descriptor() ([]byte, []int)
Deprecated: Use Move.ProtoReflect.Descriptor instead.
func (x *Move) GetAddedParents() []*TargetReference
func (x *Move) GetRemovedParents() []*TargetReference
func (*Move) ProtoMessage()
func (x *Move) ProtoReflect() protoreflect.Message
func (x *Move) Reset()
func (x *Move) String() string
Information about the owner of a Drive item.
type Owner struct { // The owner of the Drive item. // // Types that are assignable to Owner: // // *Owner_User // *Owner_Drive Owner isOwner_Owner `protobuf_oneof:"owner"` // This field is deprecated; please use the `drive` field instead. // // Deprecated: Do not use. TeamDrive *TeamDriveReference `protobuf:"bytes,2,opt,name=team_drive,json=teamDrive,proto3" json:"team_drive,omitempty"` // The domain of the Drive item owner. Domain *Domain `protobuf:"bytes,3,opt,name=domain,proto3" json:"domain,omitempty"` // contains filtered or unexported fields }
func (*Owner) Descriptor() ([]byte, []int)
Deprecated: Use Owner.ProtoReflect.Descriptor instead.
func (x *Owner) GetDomain() *Domain
func (x *Owner) GetDrive() *DriveReference
func (m *Owner) GetOwner() isOwner_Owner
func (x *Owner) GetTeamDrive() *TeamDriveReference
Deprecated: Do not use.
func (x *Owner) GetUser() *User
func (*Owner) ProtoMessage()
func (x *Owner) ProtoReflect() protoreflect.Message
func (x *Owner) Reset()
func (x *Owner) String() string
type Owner_Drive struct { // The drive that owns the item. Drive *DriveReference `protobuf:"bytes,4,opt,name=drive,proto3,oneof"` }
type Owner_User struct { // The user that owns the Drive item. User *User `protobuf:"bytes,1,opt,name=user,proto3,oneof"` }
The permission setting of an object.
type Permission struct { // Indicates the // [Google Drive permissions // role](https://developers.google.com/drive/web/manage-sharing#roles). The // role determines a user's ability to read, write, and comment on items. Role Permission_Role `protobuf:"varint,1,opt,name=role,proto3,enum=google.apps.drive.activity.v2.Permission_Role" json:"role,omitempty"` // The entity granted the role. // // Types that are assignable to Scope: // // *Permission_User // *Permission_Group // *Permission_Domain // *Permission_Anyone_ Scope isPermission_Scope `protobuf_oneof:"scope"` // If true, the item can be discovered (e.g. in the user's "Shared with me" // collection) without needing a link to the item. AllowDiscovery bool `protobuf:"varint,6,opt,name=allow_discovery,json=allowDiscovery,proto3" json:"allow_discovery,omitempty"` // contains filtered or unexported fields }
func (*Permission) Descriptor() ([]byte, []int)
Deprecated: Use Permission.ProtoReflect.Descriptor instead.
func (x *Permission) GetAllowDiscovery() bool
func (x *Permission) GetAnyone() *Permission_Anyone
func (x *Permission) GetDomain() *Domain
func (x *Permission) GetGroup() *Group
func (x *Permission) GetRole() Permission_Role
func (m *Permission) GetScope() isPermission_Scope
func (x *Permission) GetUser() *User
func (*Permission) ProtoMessage()
func (x *Permission) ProtoReflect() protoreflect.Message
func (x *Permission) Reset()
func (x *Permission) String() string
A change of the permission setting on an item.
type PermissionChange struct { // The set of permissions added by this change. AddedPermissions []*Permission `protobuf:"bytes,1,rep,name=added_permissions,json=addedPermissions,proto3" json:"added_permissions,omitempty"` // The set of permissions removed by this change. RemovedPermissions []*Permission `protobuf:"bytes,2,rep,name=removed_permissions,json=removedPermissions,proto3" json:"removed_permissions,omitempty"` // contains filtered or unexported fields }
func (*PermissionChange) Descriptor() ([]byte, []int)
Deprecated: Use PermissionChange.ProtoReflect.Descriptor instead.
func (x *PermissionChange) GetAddedPermissions() []*Permission
func (x *PermissionChange) GetRemovedPermissions() []*Permission
func (*PermissionChange) ProtoMessage()
func (x *PermissionChange) ProtoReflect() protoreflect.Message
func (x *PermissionChange) Reset()
func (x *PermissionChange) String() string
Represents any user (including a logged out user).
type Permission_Anyone struct {
// contains filtered or unexported fields
}
func (*Permission_Anyone) Descriptor() ([]byte, []int)
Deprecated: Use Permission_Anyone.ProtoReflect.Descriptor instead.
func (*Permission_Anyone) ProtoMessage()
func (x *Permission_Anyone) ProtoReflect() protoreflect.Message
func (x *Permission_Anyone) Reset()
func (x *Permission_Anyone) String() string
type Permission_Anyone_ struct { // If set, this permission applies to anyone, even logged out users. Anyone *Permission_Anyone `protobuf:"bytes,5,opt,name=anyone,proto3,oneof"` }
type Permission_Domain struct { // The domain to whom this permission applies. Domain *Domain `protobuf:"bytes,4,opt,name=domain,proto3,oneof"` }
type Permission_Group struct { // The group to whom this permission applies. Group *Group `protobuf:"bytes,3,opt,name=group,proto3,oneof"` }
The [Google Drive permissions roles](https://developers.google.com/drive/web/manage-sharing#roles).
type Permission_Role int32
const ( // The role is not available. Permission_ROLE_UNSPECIFIED Permission_Role = 0 // A role granting full access. Permission_OWNER Permission_Role = 1 // A role granting the ability to manage people and settings. Permission_ORGANIZER Permission_Role = 2 // A role granting the ability to contribute and manage content. Permission_FILE_ORGANIZER Permission_Role = 3 // A role granting the ability to contribute content. This role is sometimes // also known as "writer". Permission_EDITOR Permission_Role = 4 // A role granting the ability to view and comment on content. Permission_COMMENTER Permission_Role = 5 // A role granting the ability to view content. This role is sometimes also // known as "reader". Permission_VIEWER Permission_Role = 6 // A role granting the ability to view content only after it has been // published to the web. This role is sometimes also known as "published // reader". See https://support.google.com/sites/answer/6372880 for more // information. Permission_PUBLISHED_VIEWER Permission_Role = 7 )
func (Permission_Role) Descriptor() protoreflect.EnumDescriptor
func (x Permission_Role) Enum() *Permission_Role
func (Permission_Role) EnumDescriptor() ([]byte, []int)
Deprecated: Use Permission_Role.Descriptor instead.
func (x Permission_Role) Number() protoreflect.EnumNumber
func (x Permission_Role) String() string
func (Permission_Role) Type() protoreflect.EnumType
type Permission_User struct { // The user to whom this permission applies. User *User `protobuf:"bytes,2,opt,name=user,proto3,oneof"` }
The request message for querying Drive activity.
type QueryDriveActivityRequest struct { // The primary criteria in the query. The default is // ancestorName = `items/root`, if no key is specified. // // Types that are assignable to Key: // // *QueryDriveActivityRequest_ItemName // *QueryDriveActivityRequest_AncestorName Key isQueryDriveActivityRequest_Key `protobuf_oneof:"key"` // Details on how to consolidate related actions that make up the activity. If // not set, then related actions aren't consolidated. ConsolidationStrategy *ConsolidationStrategy `protobuf:"bytes,5,opt,name=consolidation_strategy,json=consolidationStrategy,proto3" json:"consolidation_strategy,omitempty"` // The minimum number of activities desired in the response; the server // attempts to return at least this quantity. The server may also return fewer // activities if it has a partial response ready before the request times out. // If not set, a default value is used. PageSize int32 `protobuf:"varint,6,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // The token identifies which page of results to return. Set this to the // next_page_token value returned from a previous query to obtain the // following page of results. If not set, the first page of results is // returned. PageToken string `protobuf:"bytes,7,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // The filtering for items returned from this query request. The format of the // filter string is a sequence of expressions, joined by an optional "AND", // where each expression is of the form "field operator value". // // Supported fields: // // - `time`: Uses numerical operators on date values either in // terms of milliseconds since Jan 1, 1970 or in <a // href="https://www.rfc-editor.org/rfc/rfc3339" target="_blank">RFC // 3339</a> format. Examples: // // - `time > 1452409200000 AND time <= 1492812924310` // // - `time >= "2016-01-10T01:02:03-05:00"` // // - `detail.action_detail_case`: Uses the "has" operator (:) and // either a singular value or a list of allowed action types enclosed in // parentheses, separated by a space. To exclude a result from the // response, prepend a hyphen (`-`) to the beginning of the filter string. // Examples: // // - `detail.action_detail_case:RENAME` // // - `detail.action_detail_case:(CREATE RESTORE)` // // - `-detail.action_detail_case:MOVE` Filter string `protobuf:"bytes,8,opt,name=filter,proto3" json:"filter,omitempty"` // contains filtered or unexported fields }
func (*QueryDriveActivityRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryDriveActivityRequest.ProtoReflect.Descriptor instead.
func (x *QueryDriveActivityRequest) GetAncestorName() string
func (x *QueryDriveActivityRequest) GetConsolidationStrategy() *ConsolidationStrategy
func (x *QueryDriveActivityRequest) GetFilter() string
func (x *QueryDriveActivityRequest) GetItemName() string
func (m *QueryDriveActivityRequest) GetKey() isQueryDriveActivityRequest_Key
func (x *QueryDriveActivityRequest) GetPageSize() int32
func (x *QueryDriveActivityRequest) GetPageToken() string
func (*QueryDriveActivityRequest) ProtoMessage()
func (x *QueryDriveActivityRequest) ProtoReflect() protoreflect.Message
func (x *QueryDriveActivityRequest) Reset()
func (x *QueryDriveActivityRequest) String() string
type QueryDriveActivityRequest_AncestorName struct { // Return activities for this Drive folder, plus all children and // descendants. The format is `items/ITEM_ID`. AncestorName string `protobuf:"bytes,2,opt,name=ancestor_name,json=ancestorName,proto3,oneof"` }
type QueryDriveActivityRequest_ItemName struct { // Return activities for this Drive item. The format is // `items/ITEM_ID`. ItemName string `protobuf:"bytes,1,opt,name=item_name,json=itemName,proto3,oneof"` }
Response message for querying Drive activity.
type QueryDriveActivityResponse struct { // List of activity requested. Activities []*DriveActivity `protobuf:"bytes,1,rep,name=activities,proto3" json:"activities,omitempty"` // Token to retrieve the next page of results, or // empty if there are no more results in the list. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` // contains filtered or unexported fields }
func (*QueryDriveActivityResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryDriveActivityResponse.ProtoReflect.Descriptor instead.
func (x *QueryDriveActivityResponse) GetActivities() []*DriveActivity
func (x *QueryDriveActivityResponse) GetNextPageToken() string
func (*QueryDriveActivityResponse) ProtoMessage()
func (x *QueryDriveActivityResponse) ProtoReflect() protoreflect.Message
func (x *QueryDriveActivityResponse) Reset()
func (x *QueryDriveActivityResponse) String() string
An object was renamed.
type Rename struct { // The previous title of the drive object. OldTitle string `protobuf:"bytes,1,opt,name=old_title,json=oldTitle,proto3" json:"old_title,omitempty"` // The new title of the drive object. NewTitle string `protobuf:"bytes,2,opt,name=new_title,json=newTitle,proto3" json:"new_title,omitempty"` // contains filtered or unexported fields }
func (*Rename) Descriptor() ([]byte, []int)
Deprecated: Use Rename.ProtoReflect.Descriptor instead.
func (x *Rename) GetNewTitle() string
func (x *Rename) GetOldTitle() string
func (*Rename) ProtoMessage()
func (x *Rename) ProtoReflect() protoreflect.Message
func (x *Rename) Reset()
func (x *Rename) String() string
A deleted object was restored.
type Restore struct { // The type of restore action taken. Type Restore_Type `protobuf:"varint,1,opt,name=type,proto3,enum=google.apps.drive.activity.v2.Restore_Type" json:"type,omitempty"` // contains filtered or unexported fields }
func (*Restore) Descriptor() ([]byte, []int)
Deprecated: Use Restore.ProtoReflect.Descriptor instead.
func (x *Restore) GetType() Restore_Type
func (*Restore) ProtoMessage()
func (x *Restore) ProtoReflect() protoreflect.Message
func (x *Restore) Reset()
func (x *Restore) String() string
The type of restoration.
type Restore_Type int32
const ( // The type is not available. Restore_TYPE_UNSPECIFIED Restore_Type = 0 // An object was restored from the trash. Restore_UNTRASH Restore_Type = 1 )
func (Restore_Type) Descriptor() protoreflect.EnumDescriptor
func (x Restore_Type) Enum() *Restore_Type
func (Restore_Type) EnumDescriptor() ([]byte, []int)
Deprecated: Use Restore_Type.Descriptor instead.
func (x Restore_Type) Number() protoreflect.EnumNumber
func (x Restore_Type) String() string
func (Restore_Type) Type() protoreflect.EnumType
Information about settings changes.
type SettingsChange struct { // The set of changes made to restrictions. RestrictionChanges []*SettingsChange_RestrictionChange `protobuf:"bytes,1,rep,name=restriction_changes,json=restrictionChanges,proto3" json:"restriction_changes,omitempty"` // contains filtered or unexported fields }
func (*SettingsChange) Descriptor() ([]byte, []int)
Deprecated: Use SettingsChange.ProtoReflect.Descriptor instead.
func (x *SettingsChange) GetRestrictionChanges() []*SettingsChange_RestrictionChange
func (*SettingsChange) ProtoMessage()
func (x *SettingsChange) ProtoReflect() protoreflect.Message
func (x *SettingsChange) Reset()
func (x *SettingsChange) String() string
Information about restriction policy changes to a feature.
type SettingsChange_RestrictionChange struct { // The feature which had a change in restriction policy. Feature SettingsChange_RestrictionChange_Feature `protobuf:"varint,1,opt,name=feature,proto3,enum=google.apps.drive.activity.v2.SettingsChange_RestrictionChange_Feature" json:"feature,omitempty"` // The restriction in place after the change. NewRestriction SettingsChange_RestrictionChange_Restriction `protobuf:"varint,2,opt,name=new_restriction,json=newRestriction,proto3,enum=google.apps.drive.activity.v2.SettingsChange_RestrictionChange_Restriction" json:"new_restriction,omitempty"` // contains filtered or unexported fields }
func (*SettingsChange_RestrictionChange) Descriptor() ([]byte, []int)
Deprecated: Use SettingsChange_RestrictionChange.ProtoReflect.Descriptor instead.
func (x *SettingsChange_RestrictionChange) GetFeature() SettingsChange_RestrictionChange_Feature
func (x *SettingsChange_RestrictionChange) GetNewRestriction() SettingsChange_RestrictionChange_Restriction
func (*SettingsChange_RestrictionChange) ProtoMessage()
func (x *SettingsChange_RestrictionChange) ProtoReflect() protoreflect.Message
func (x *SettingsChange_RestrictionChange) Reset()
func (x *SettingsChange_RestrictionChange) String() string
The feature which had changes to its restriction policy.
type SettingsChange_RestrictionChange_Feature int32
const ( // The feature which changed restriction settings was not available. SettingsChange_RestrictionChange_FEATURE_UNSPECIFIED SettingsChange_RestrictionChange_Feature = 0 // When restricted, this prevents items from being shared outside the // domain. SettingsChange_RestrictionChange_SHARING_OUTSIDE_DOMAIN SettingsChange_RestrictionChange_Feature = 1 // When restricted, this prevents direct sharing of individual items. SettingsChange_RestrictionChange_DIRECT_SHARING SettingsChange_RestrictionChange_Feature = 2 // When restricted, this prevents actions like copy, download, and print // that might result in uncontrolled duplicates of items. SettingsChange_RestrictionChange_ITEM_DUPLICATION SettingsChange_RestrictionChange_Feature = 3 // When restricted, this prevents use of Drive File Stream. SettingsChange_RestrictionChange_DRIVE_FILE_STREAM SettingsChange_RestrictionChange_Feature = 4 // When restricted, this limits sharing of folders to managers only. SettingsChange_RestrictionChange_FILE_ORGANIZER_CAN_SHARE_FOLDERS SettingsChange_RestrictionChange_Feature = 5 )
func (SettingsChange_RestrictionChange_Feature) Descriptor() protoreflect.EnumDescriptor
func (x SettingsChange_RestrictionChange_Feature) Enum() *SettingsChange_RestrictionChange_Feature
func (SettingsChange_RestrictionChange_Feature) EnumDescriptor() ([]byte, []int)
Deprecated: Use SettingsChange_RestrictionChange_Feature.Descriptor instead.
func (x SettingsChange_RestrictionChange_Feature) Number() protoreflect.EnumNumber
func (x SettingsChange_RestrictionChange_Feature) String() string
func (SettingsChange_RestrictionChange_Feature) Type() protoreflect.EnumType
The restriction applicable to a feature.
type SettingsChange_RestrictionChange_Restriction int32
const ( // The type of restriction is not available. SettingsChange_RestrictionChange_RESTRICTION_UNSPECIFIED SettingsChange_RestrictionChange_Restriction = 0 // The feature is available without restriction. SettingsChange_RestrictionChange_UNRESTRICTED SettingsChange_RestrictionChange_Restriction = 1 // The use of this feature is fully restricted. SettingsChange_RestrictionChange_FULLY_RESTRICTED SettingsChange_RestrictionChange_Restriction = 2 )
func (SettingsChange_RestrictionChange_Restriction) Descriptor() protoreflect.EnumDescriptor
func (x SettingsChange_RestrictionChange_Restriction) Enum() *SettingsChange_RestrictionChange_Restriction
func (SettingsChange_RestrictionChange_Restriction) EnumDescriptor() ([]byte, []int)
Deprecated: Use SettingsChange_RestrictionChange_Restriction.Descriptor instead.
func (x SettingsChange_RestrictionChange_Restriction) Number() protoreflect.EnumNumber
func (x SettingsChange_RestrictionChange_Restriction) String() string
func (SettingsChange_RestrictionChange_Restriction) Type() protoreflect.EnumType
Event triggered by system operations instead of end users.
type SystemEvent struct { // The type of the system event that may triggered activity. Type SystemEvent_Type `protobuf:"varint,1,opt,name=type,proto3,enum=google.apps.drive.activity.v2.SystemEvent_Type" json:"type,omitempty"` // contains filtered or unexported fields }
func (*SystemEvent) Descriptor() ([]byte, []int)
Deprecated: Use SystemEvent.ProtoReflect.Descriptor instead.
func (x *SystemEvent) GetType() SystemEvent_Type
func (*SystemEvent) ProtoMessage()
func (x *SystemEvent) ProtoReflect() protoreflect.Message
func (x *SystemEvent) Reset()
func (x *SystemEvent) String() string
The types of system events that may trigger activity.
type SystemEvent_Type int32
const ( // The event type is unspecified. SystemEvent_TYPE_UNSPECIFIED SystemEvent_Type = 0 // The event is a consequence of a user account being deleted. SystemEvent_USER_DELETION SystemEvent_Type = 1 // The event is due to the system automatically purging trash. SystemEvent_TRASH_AUTO_PURGE SystemEvent_Type = 2 )
func (SystemEvent_Type) Descriptor() protoreflect.EnumDescriptor
func (x SystemEvent_Type) Enum() *SystemEvent_Type
func (SystemEvent_Type) EnumDescriptor() ([]byte, []int)
Deprecated: Use SystemEvent_Type.Descriptor instead.
func (x SystemEvent_Type) Number() protoreflect.EnumNumber
func (x SystemEvent_Type) String() string
func (SystemEvent_Type) Type() protoreflect.EnumType
Information about the target of activity.
For more information on how activity history is shared with users, see [Activity history visibility](https://developers.google.com/drive/activity/v2#activityhistory).
type Target struct { // The type of target object. // // Types that are assignable to Object: // // *Target_DriveItem // *Target_Drive // *Target_FileComment Object isTarget_Object `protobuf_oneof:"object"` // This field is deprecated; please use the `drive` field instead. // // Deprecated: Do not use. TeamDrive *TeamDrive `protobuf:"bytes,2,opt,name=team_drive,json=teamDrive,proto3" json:"team_drive,omitempty"` // contains filtered or unexported fields }
func (*Target) Descriptor() ([]byte, []int)
Deprecated: Use Target.ProtoReflect.Descriptor instead.
func (x *Target) GetDrive() *Drive
func (x *Target) GetDriveItem() *DriveItem
func (x *Target) GetFileComment() *FileComment
func (m *Target) GetObject() isTarget_Object
func (x *Target) GetTeamDrive() *TeamDrive
Deprecated: Do not use.
func (*Target) ProtoMessage()
func (x *Target) ProtoReflect() protoreflect.Message
func (x *Target) Reset()
func (x *Target) String() string
A lightweight reference to the target of activity.
type TargetReference struct { // The type of target object. // // Types that are assignable to Object: // // *TargetReference_DriveItem // *TargetReference_Drive Object isTargetReference_Object `protobuf_oneof:"object"` // This field is deprecated; please use the `drive` field instead. // // Deprecated: Do not use. TeamDrive *TeamDriveReference `protobuf:"bytes,2,opt,name=team_drive,json=teamDrive,proto3" json:"team_drive,omitempty"` // contains filtered or unexported fields }
func (*TargetReference) Descriptor() ([]byte, []int)
Deprecated: Use TargetReference.ProtoReflect.Descriptor instead.
func (x *TargetReference) GetDrive() *DriveReference
func (x *TargetReference) GetDriveItem() *DriveItemReference
func (m *TargetReference) GetObject() isTargetReference_Object
func (x *TargetReference) GetTeamDrive() *TeamDriveReference
Deprecated: Do not use.
func (*TargetReference) ProtoMessage()
func (x *TargetReference) ProtoReflect() protoreflect.Message
func (x *TargetReference) Reset()
func (x *TargetReference) String() string
type TargetReference_Drive struct { // The target is a shared drive. Drive *DriveReference `protobuf:"bytes,3,opt,name=drive,proto3,oneof"` }
type TargetReference_DriveItem struct { // The target is a Drive item. DriveItem *DriveItemReference `protobuf:"bytes,1,opt,name=drive_item,json=driveItem,proto3,oneof"` }
type Target_Drive struct { // The target is a shared drive. Drive *Drive `protobuf:"bytes,5,opt,name=drive,proto3,oneof"` }
type Target_DriveItem struct { // The target is a Drive item. DriveItem *DriveItem `protobuf:"bytes,1,opt,name=drive_item,json=driveItem,proto3,oneof"` }
type Target_FileComment struct { // The target is a comment on a Drive file. FileComment *FileComment `protobuf:"bytes,3,opt,name=file_comment,json=fileComment,proto3,oneof"` }
This item is deprecated; please see `Drive` instead.
Deprecated: Do not use.
type TeamDrive struct { // This field is deprecated; please see `Drive.name` instead. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // This field is deprecated; please see `Drive.title` instead. Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` // This field is deprecated; please see `Drive.root` instead. Root *DriveItem `protobuf:"bytes,3,opt,name=root,proto3" json:"root,omitempty"` // contains filtered or unexported fields }
func (*TeamDrive) Descriptor() ([]byte, []int)
Deprecated: Use TeamDrive.ProtoReflect.Descriptor instead.
func (x *TeamDrive) GetName() string
func (x *TeamDrive) GetRoot() *DriveItem
func (x *TeamDrive) GetTitle() string
func (*TeamDrive) ProtoMessage()
func (x *TeamDrive) ProtoReflect() protoreflect.Message
func (x *TeamDrive) Reset()
func (x *TeamDrive) String() string
This item is deprecated; please see `DriveReference` instead.
Deprecated: Do not use.
type TeamDriveReference struct { // This field is deprecated; please see `DriveReference.name` instead. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // This field is deprecated; please see `DriveReference.title` instead. Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` // contains filtered or unexported fields }
func (*TeamDriveReference) Descriptor() ([]byte, []int)
Deprecated: Use TeamDriveReference.ProtoReflect.Descriptor instead.
func (x *TeamDriveReference) GetName() string
func (x *TeamDriveReference) GetTitle() string
func (*TeamDriveReference) ProtoMessage()
func (x *TeamDriveReference) ProtoReflect() protoreflect.Message
func (x *TeamDriveReference) Reset()
func (x *TeamDriveReference) String() string
Information about time ranges.
type TimeRange struct { // The start of the time range. StartTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` // The end of the time range. EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // contains filtered or unexported fields }
func (*TimeRange) Descriptor() ([]byte, []int)
Deprecated: Use TimeRange.ProtoReflect.Descriptor instead.
func (x *TimeRange) GetEndTime() *timestamppb.Timestamp
func (x *TimeRange) GetStartTime() *timestamppb.Timestamp
func (*TimeRange) ProtoMessage()
func (x *TimeRange) ProtoReflect() protoreflect.Message
func (x *TimeRange) Reset()
func (x *TimeRange) String() string
UnimplementedDriveActivityServiceServer can be embedded to have forward compatible implementations.
type UnimplementedDriveActivityServiceServer struct { }
func (*UnimplementedDriveActivityServiceServer) QueryDriveActivity(context.Context, *QueryDriveActivityRequest) (*QueryDriveActivityResponse, error)
Information about an end user.
type User struct { // The type of user, such as known, unknown, and deleted. // // Types that are assignable to Type: // // *User_KnownUser_ // *User_DeletedUser_ // *User_UnknownUser_ Type isUser_Type `protobuf_oneof:"type"` // contains filtered or unexported fields }
func (*User) Descriptor() ([]byte, []int)
Deprecated: Use User.ProtoReflect.Descriptor instead.
func (x *User) GetDeletedUser() *User_DeletedUser
func (x *User) GetKnownUser() *User_KnownUser
func (m *User) GetType() isUser_Type
func (x *User) GetUnknownUser() *User_UnknownUser
func (*User) ProtoMessage()
func (x *User) ProtoReflect() protoreflect.Message
func (x *User) Reset()
func (x *User) String() string
A user whose account has since been deleted.
type User_DeletedUser struct {
// contains filtered or unexported fields
}
func (*User_DeletedUser) Descriptor() ([]byte, []int)
Deprecated: Use User_DeletedUser.ProtoReflect.Descriptor instead.
func (*User_DeletedUser) ProtoMessage()
func (x *User_DeletedUser) ProtoReflect() protoreflect.Message
func (x *User_DeletedUser) Reset()
func (x *User_DeletedUser) String() string
type User_DeletedUser_ struct { // A user whose account has since been deleted. DeletedUser *User_DeletedUser `protobuf:"bytes,3,opt,name=deleted_user,json=deletedUser,proto3,oneof"` }
A known user.
type User_KnownUser struct { // The identifier for this user that can be used with the People API to get // more information. The format is `people/ACCOUNT_ID`. See // https://developers.google.com/people/. PersonName string `protobuf:"bytes,1,opt,name=person_name,json=personName,proto3" json:"person_name,omitempty"` // True if this is the user making the request. IsCurrentUser bool `protobuf:"varint,2,opt,name=is_current_user,json=isCurrentUser,proto3" json:"is_current_user,omitempty"` // contains filtered or unexported fields }
func (*User_KnownUser) Descriptor() ([]byte, []int)
Deprecated: Use User_KnownUser.ProtoReflect.Descriptor instead.
func (x *User_KnownUser) GetIsCurrentUser() bool
func (x *User_KnownUser) GetPersonName() string
func (*User_KnownUser) ProtoMessage()
func (x *User_KnownUser) ProtoReflect() protoreflect.Message
func (x *User_KnownUser) Reset()
func (x *User_KnownUser) String() string
type User_KnownUser_ struct { // A known user. KnownUser *User_KnownUser `protobuf:"bytes,2,opt,name=known_user,json=knownUser,proto3,oneof"` }
A user about whom nothing is currently known.
type User_UnknownUser struct {
// contains filtered or unexported fields
}
func (*User_UnknownUser) Descriptor() ([]byte, []int)
Deprecated: Use User_UnknownUser.ProtoReflect.Descriptor instead.
func (*User_UnknownUser) ProtoMessage()
func (x *User_UnknownUser) ProtoReflect() protoreflect.Message
func (x *User_UnknownUser) Reset()
func (x *User_UnknownUser) String() string
type User_UnknownUser_ struct { // A user about whom nothing is currently known. UnknownUser *User_UnknownUser `protobuf:"bytes,4,opt,name=unknown_user,json=unknownUser,proto3,oneof"` }