Documentation ¶
Index ¶
- Variables
- func RegisterLabelServiceServer(s *grpc.Server, srv LabelServiceServer)
- type BadgeColors
- func (*BadgeColors) Descriptor() ([]byte, []int)deprecated
- func (x *BadgeColors) GetBackgroundColor() *color.Color
- func (x *BadgeColors) GetForegroundColor() *color.Color
- func (x *BadgeColors) GetSoloColor() *color.Color
- func (*BadgeColors) ProtoMessage()
- func (x *BadgeColors) ProtoReflect() protoreflect.Message
- func (x *BadgeColors) Reset()
- func (x *BadgeColors) String() string
- type BadgeConfig
- func (*BadgeConfig) Descriptor() ([]byte, []int)deprecated
- func (x *BadgeConfig) GetColor() *color.Color
- func (x *BadgeConfig) GetPriorityOverride() int64
- func (*BadgeConfig) ProtoMessage()
- func (x *BadgeConfig) ProtoReflect() protoreflect.Message
- func (x *BadgeConfig) Reset()
- func (x *BadgeConfig) String() string
- type ExceptionDetail
- type ExceptionType
- func (ExceptionType) Descriptor() protoreflect.EnumDescriptor
- func (x ExceptionType) Enum() *ExceptionType
- func (ExceptionType) EnumDescriptor() ([]byte, []int)deprecated
- func (x ExceptionType) Number() protoreflect.EnumNumber
- func (x ExceptionType) String() string
- func (ExceptionType) Type() protoreflect.EnumType
- type Field
- func (*Field) Descriptor() ([]byte, []int)deprecated
- func (x *Field) GetAppliedCapabilities() *Field_AppliedCapabilities
- func (x *Field) GetCreateTime() *timestamppb.Timestamp
- func (x *Field) GetCreator() *UserInfo
- func (x *Field) GetDateOptions() *Field_DateOptions
- func (x *Field) GetDisableTime() *timestamppb.Timestamp
- func (x *Field) GetDisabler() *UserInfo
- func (x *Field) GetDisplayHints() *Field_DisplayHints
- func (x *Field) GetId() string
- func (x *Field) GetIntegerOptions() *Field_IntegerOptions
- func (x *Field) GetLifecycle() *Lifecycle
- func (x *Field) GetLockStatus() *LockStatus
- func (x *Field) GetProperties() *Field_Properties
- func (x *Field) GetPublisher() *UserInfo
- func (x *Field) GetQueryKey() string
- func (x *Field) GetSchemaCapabilities() *Field_SchemaCapabilities
- func (x *Field) GetSelectionOptions() *Field_SelectionOptions
- func (x *Field) GetTextOptions() *Field_TextOptions
- func (m *Field) GetType() isField_Type
- func (x *Field) GetUpdateTime() *timestamppb.Timestamp
- func (x *Field) GetUpdater() *UserInfo
- func (x *Field) GetUserOptions() *Field_UserOptions
- func (*Field) ProtoMessage()
- func (x *Field) ProtoReflect() protoreflect.Message
- func (x *Field) Reset()
- func (x *Field) String() string
- type Field_AppliedCapabilities
- func (*Field_AppliedCapabilities) Descriptor() ([]byte, []int)deprecated
- func (x *Field_AppliedCapabilities) GetCanRead() bool
- func (x *Field_AppliedCapabilities) GetCanSearch() bool
- func (x *Field_AppliedCapabilities) GetCanWrite() bool
- func (*Field_AppliedCapabilities) ProtoMessage()
- func (x *Field_AppliedCapabilities) ProtoReflect() protoreflect.Message
- func (x *Field_AppliedCapabilities) Reset()
- func (x *Field_AppliedCapabilities) String() string
- type Field_DateOptions
- func (*Field_DateOptions) Descriptor() ([]byte, []int)deprecated
- func (x *Field_DateOptions) GetDateFormat() string
- func (x *Field_DateOptions) GetDateFormatType() Field_DateOptions_DateFormat
- func (x *Field_DateOptions) GetMaxValue() *date.Date
- func (x *Field_DateOptions) GetMinValue() *date.Date
- func (*Field_DateOptions) ProtoMessage()
- func (x *Field_DateOptions) ProtoReflect() protoreflect.Message
- func (x *Field_DateOptions) Reset()
- func (x *Field_DateOptions) String() string
- type Field_DateOptions_
- type Field_DateOptions_DateFormat
- func (Field_DateOptions_DateFormat) Descriptor() protoreflect.EnumDescriptor
- func (x Field_DateOptions_DateFormat) Enum() *Field_DateOptions_DateFormat
- func (Field_DateOptions_DateFormat) EnumDescriptor() ([]byte, []int)deprecated
- func (x Field_DateOptions_DateFormat) Number() protoreflect.EnumNumber
- func (x Field_DateOptions_DateFormat) String() string
- func (Field_DateOptions_DateFormat) Type() protoreflect.EnumType
- type Field_DisplayHints
- func (*Field_DisplayHints) Descriptor() ([]byte, []int)deprecated
- func (x *Field_DisplayHints) GetDisabled() bool
- func (x *Field_DisplayHints) GetHiddenInSearch() bool
- func (x *Field_DisplayHints) GetRequired() bool
- func (x *Field_DisplayHints) GetShownInApply() bool
- func (*Field_DisplayHints) ProtoMessage()
- func (x *Field_DisplayHints) ProtoReflect() protoreflect.Message
- func (x *Field_DisplayHints) Reset()
- func (x *Field_DisplayHints) String() string
- type Field_IntegerOptions
- func (*Field_IntegerOptions) Descriptor() ([]byte, []int)deprecated
- func (x *Field_IntegerOptions) GetMaxValue() int64
- func (x *Field_IntegerOptions) GetMinValue() int64
- func (*Field_IntegerOptions) ProtoMessage()
- func (x *Field_IntegerOptions) ProtoReflect() protoreflect.Message
- func (x *Field_IntegerOptions) Reset()
- func (x *Field_IntegerOptions) String() string
- type Field_IntegerOptions_
- type Field_ListOptions
- type Field_Properties
- func (*Field_Properties) Descriptor() ([]byte, []int)deprecated
- func (x *Field_Properties) GetDisplayName() string
- func (x *Field_Properties) GetInsertBeforeField() string
- func (x *Field_Properties) GetRequired() bool
- func (*Field_Properties) ProtoMessage()
- func (x *Field_Properties) ProtoReflect() protoreflect.Message
- func (x *Field_Properties) Reset()
- func (x *Field_Properties) String() string
- type Field_SchemaCapabilities
- func (*Field_SchemaCapabilities) Descriptor() ([]byte, []int)deprecated
- func (x *Field_SchemaCapabilities) GetCanDelete() bool
- func (x *Field_SchemaCapabilities) GetCanDisable() bool
- func (x *Field_SchemaCapabilities) GetCanEnable() bool
- func (x *Field_SchemaCapabilities) GetCanUpdate() bool
- func (*Field_SchemaCapabilities) ProtoMessage()
- func (x *Field_SchemaCapabilities) ProtoReflect() protoreflect.Message
- func (x *Field_SchemaCapabilities) Reset()
- func (x *Field_SchemaCapabilities) String() string
- type Field_SelectionOptions
- func (*Field_SelectionOptions) Descriptor() ([]byte, []int)deprecated
- func (x *Field_SelectionOptions) GetChoices() []*Field_SelectionOptions_Choice
- func (x *Field_SelectionOptions) GetListOptions() *Field_ListOptions
- func (*Field_SelectionOptions) ProtoMessage()
- func (x *Field_SelectionOptions) ProtoReflect() protoreflect.Message
- func (x *Field_SelectionOptions) Reset()
- func (x *Field_SelectionOptions) String() string
- type Field_SelectionOptions_
- type Field_SelectionOptions_Choice
- func (*Field_SelectionOptions_Choice) Descriptor() ([]byte, []int)deprecated
- func (x *Field_SelectionOptions_Choice) GetAppliedCapabilities() *Field_SelectionOptions_Choice_AppliedCapabilities
- func (x *Field_SelectionOptions_Choice) GetCreateTime() *timestamppb.Timestamp
- func (x *Field_SelectionOptions_Choice) GetCreator() *UserInfo
- func (x *Field_SelectionOptions_Choice) GetDisableTime() *timestamppb.Timestamp
- func (x *Field_SelectionOptions_Choice) GetDisabler() *UserInfo
- func (x *Field_SelectionOptions_Choice) GetDisplayHints() *Field_SelectionOptions_Choice_DisplayHints
- func (x *Field_SelectionOptions_Choice) GetId() string
- func (x *Field_SelectionOptions_Choice) GetLifecycle() *Lifecycle
- func (x *Field_SelectionOptions_Choice) GetLockStatus() *LockStatus
- func (x *Field_SelectionOptions_Choice) GetProperties() *Field_SelectionOptions_Choice_Properties
- func (x *Field_SelectionOptions_Choice) GetPublishTime() *timestamppb.Timestamp
- func (x *Field_SelectionOptions_Choice) GetPublisher() *UserInfo
- func (x *Field_SelectionOptions_Choice) GetSchemaCapabilities() *Field_SelectionOptions_Choice_SchemaCapabilities
- func (x *Field_SelectionOptions_Choice) GetUpdateTime() *timestamppb.Timestamp
- func (x *Field_SelectionOptions_Choice) GetUpdater() *UserInfo
- func (*Field_SelectionOptions_Choice) ProtoMessage()
- func (x *Field_SelectionOptions_Choice) ProtoReflect() protoreflect.Message
- func (x *Field_SelectionOptions_Choice) Reset()
- func (x *Field_SelectionOptions_Choice) String() string
- type Field_SelectionOptions_Choice_AppliedCapabilities
- func (*Field_SelectionOptions_Choice_AppliedCapabilities) Descriptor() ([]byte, []int)deprecated
- func (x *Field_SelectionOptions_Choice_AppliedCapabilities) GetCanRead() bool
- func (x *Field_SelectionOptions_Choice_AppliedCapabilities) GetCanSearch() bool
- func (x *Field_SelectionOptions_Choice_AppliedCapabilities) GetCanSelect() bool
- func (*Field_SelectionOptions_Choice_AppliedCapabilities) ProtoMessage()
- func (x *Field_SelectionOptions_Choice_AppliedCapabilities) ProtoReflect() protoreflect.Message
- func (x *Field_SelectionOptions_Choice_AppliedCapabilities) Reset()
- func (x *Field_SelectionOptions_Choice_AppliedCapabilities) String() string
- type Field_SelectionOptions_Choice_DisplayHints
- func (*Field_SelectionOptions_Choice_DisplayHints) Descriptor() ([]byte, []int)deprecated
- func (x *Field_SelectionOptions_Choice_DisplayHints) GetBadgeColors() *BadgeColors
- func (x *Field_SelectionOptions_Choice_DisplayHints) GetBadgePriority() int64
- func (x *Field_SelectionOptions_Choice_DisplayHints) GetDarkBadgeColors() *BadgeColors
- func (x *Field_SelectionOptions_Choice_DisplayHints) GetDisabled() bool
- func (x *Field_SelectionOptions_Choice_DisplayHints) GetHiddenInSearch() bool
- func (x *Field_SelectionOptions_Choice_DisplayHints) GetShownInApply() bool
- func (*Field_SelectionOptions_Choice_DisplayHints) ProtoMessage()
- func (x *Field_SelectionOptions_Choice_DisplayHints) ProtoReflect() protoreflect.Message
- func (x *Field_SelectionOptions_Choice_DisplayHints) Reset()
- func (x *Field_SelectionOptions_Choice_DisplayHints) String() string
- type Field_SelectionOptions_Choice_Properties
- func (*Field_SelectionOptions_Choice_Properties) Descriptor() ([]byte, []int)deprecated
- func (x *Field_SelectionOptions_Choice_Properties) GetBadgeConfig() *BadgeConfig
- func (x *Field_SelectionOptions_Choice_Properties) GetDescription() string
- func (x *Field_SelectionOptions_Choice_Properties) GetDisplayName() string
- func (x *Field_SelectionOptions_Choice_Properties) GetInsertBeforeChoice() string
- func (*Field_SelectionOptions_Choice_Properties) ProtoMessage()
- func (x *Field_SelectionOptions_Choice_Properties) ProtoReflect() protoreflect.Message
- func (x *Field_SelectionOptions_Choice_Properties) Reset()
- func (x *Field_SelectionOptions_Choice_Properties) String() string
- type Field_SelectionOptions_Choice_SchemaCapabilities
- func (*Field_SelectionOptions_Choice_SchemaCapabilities) Descriptor() ([]byte, []int)deprecated
- func (x *Field_SelectionOptions_Choice_SchemaCapabilities) GetCanDelete() bool
- func (x *Field_SelectionOptions_Choice_SchemaCapabilities) GetCanDisable() bool
- func (x *Field_SelectionOptions_Choice_SchemaCapabilities) GetCanEnable() bool
- func (x *Field_SelectionOptions_Choice_SchemaCapabilities) GetCanUpdate() bool
- func (*Field_SelectionOptions_Choice_SchemaCapabilities) ProtoMessage()
- func (x *Field_SelectionOptions_Choice_SchemaCapabilities) ProtoReflect() protoreflect.Message
- func (x *Field_SelectionOptions_Choice_SchemaCapabilities) Reset()
- func (x *Field_SelectionOptions_Choice_SchemaCapabilities) String() string
- type Field_TextOptions
- func (*Field_TextOptions) Descriptor() ([]byte, []int)deprecated
- func (x *Field_TextOptions) GetMaxLength() int32
- func (x *Field_TextOptions) GetMinLength() int32
- func (*Field_TextOptions) ProtoMessage()
- func (x *Field_TextOptions) ProtoReflect() protoreflect.Message
- func (x *Field_TextOptions) Reset()
- func (x *Field_TextOptions) String() string
- type Field_TextOptions_
- type Field_UserOptions
- func (*Field_UserOptions) Descriptor() ([]byte, []int)deprecated
- func (x *Field_UserOptions) GetListOptions() *Field_ListOptions
- func (*Field_UserOptions) ProtoMessage()
- func (x *Field_UserOptions) ProtoReflect() protoreflect.Message
- func (x *Field_UserOptions) Reset()
- func (x *Field_UserOptions) String() string
- type Field_UserOptions_
- type GetLabelRequest
- func (*GetLabelRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetLabelRequest) GetLanguageCode() string
- func (x *GetLabelRequest) GetName() string
- func (x *GetLabelRequest) GetUseAdminAccess() bool
- func (x *GetLabelRequest) GetView() LabelView
- func (*GetLabelRequest) ProtoMessage()
- func (x *GetLabelRequest) ProtoReflect() protoreflect.Message
- func (x *GetLabelRequest) Reset()
- func (x *GetLabelRequest) String() string
- type InvalidArgument
- func (*InvalidArgument) Descriptor() ([]byte, []int)deprecated
- func (x *InvalidArgument) GetFieldViolations() []*InvalidArgument_FieldViolation
- func (*InvalidArgument) ProtoMessage()
- func (x *InvalidArgument) ProtoReflect() protoreflect.Message
- func (x *InvalidArgument) Reset()
- func (x *InvalidArgument) String() string
- type InvalidArgument_FieldViolation
- func (*InvalidArgument_FieldViolation) Descriptor() ([]byte, []int)deprecated
- func (x *InvalidArgument_FieldViolation) GetDisplayMessage() string
- func (x *InvalidArgument_FieldViolation) GetField() string
- func (x *InvalidArgument_FieldViolation) GetReason() InvalidArgument_FieldViolation_Reason
- func (*InvalidArgument_FieldViolation) ProtoMessage()
- func (x *InvalidArgument_FieldViolation) ProtoReflect() protoreflect.Message
- func (x *InvalidArgument_FieldViolation) Reset()
- func (x *InvalidArgument_FieldViolation) String() string
- type InvalidArgument_FieldViolation_Reason
- func (InvalidArgument_FieldViolation_Reason) Descriptor() protoreflect.EnumDescriptor
- func (x InvalidArgument_FieldViolation_Reason) Enum() *InvalidArgument_FieldViolation_Reason
- func (InvalidArgument_FieldViolation_Reason) EnumDescriptor() ([]byte, []int)deprecated
- func (x InvalidArgument_FieldViolation_Reason) Number() protoreflect.EnumNumber
- func (x InvalidArgument_FieldViolation_Reason) String() string
- func (InvalidArgument_FieldViolation_Reason) Type() protoreflect.EnumType
- type Label
- func (*Label) Descriptor() ([]byte, []int)deprecated
- func (x *Label) GetAppliedCapabilities() *Label_AppliedCapabilities
- func (x *Label) GetAppliedLabelPolicy() *Label_AppliedLabelPolicy
- func (x *Label) GetCreateTime() *timestamppb.Timestamp
- func (x *Label) GetCreator() *UserInfo
- func (x *Label) GetDisableTime() *timestamppb.Timestamp
- func (x *Label) GetDisabler() *UserInfo
- func (x *Label) GetDisplayHints() *Label_DisplayHints
- func (x *Label) GetFields() []*Field
- func (x *Label) GetId() string
- func (x *Label) GetLabelType() Label_LabelType
- func (x *Label) GetLearnMoreUri() string
- func (x *Label) GetLifecycle() *Lifecycle
- func (x *Label) GetLockStatus() *LockStatus
- func (x *Label) GetName() string
- func (x *Label) GetProperties() *Label_Properties
- func (x *Label) GetPublishTime() *timestamppb.Timestamp
- func (x *Label) GetPublisher() *UserInfo
- func (x *Label) GetRevisionCreateTime() *timestamppb.Timestamp
- func (x *Label) GetRevisionCreator() *UserInfo
- func (x *Label) GetRevisionId() string
- func (x *Label) GetSchemaCapabilities() *Label_SchemaCapabilities
- func (*Label) ProtoMessage()
- func (x *Label) ProtoReflect() protoreflect.Message
- func (x *Label) Reset()
- func (x *Label) String() string
- type LabelPermission
- type LabelPermission_LabelRole
- func (LabelPermission_LabelRole) Descriptor() protoreflect.EnumDescriptor
- func (x LabelPermission_LabelRole) Enum() *LabelPermission_LabelRole
- func (LabelPermission_LabelRole) EnumDescriptor() ([]byte, []int)deprecated
- func (x LabelPermission_LabelRole) Number() protoreflect.EnumNumber
- func (x LabelPermission_LabelRole) String() string
- func (LabelPermission_LabelRole) Type() protoreflect.EnumType
- type LabelServiceClient
- type LabelServiceServer
- type LabelView
- type Label_AppliedCapabilities
- func (*Label_AppliedCapabilities) Descriptor() ([]byte, []int)deprecated
- func (x *Label_AppliedCapabilities) GetCanApply() bool
- func (x *Label_AppliedCapabilities) GetCanRead() bool
- func (x *Label_AppliedCapabilities) GetCanRemove() bool
- func (*Label_AppliedCapabilities) ProtoMessage()
- func (x *Label_AppliedCapabilities) ProtoReflect() protoreflect.Message
- func (x *Label_AppliedCapabilities) Reset()
- func (x *Label_AppliedCapabilities) String() string
- type Label_AppliedLabelPolicy
- func (*Label_AppliedLabelPolicy) Descriptor() ([]byte, []int)deprecated
- func (x *Label_AppliedLabelPolicy) GetCopyMode() Label_AppliedLabelPolicy_CopyMode
- func (*Label_AppliedLabelPolicy) ProtoMessage()
- func (x *Label_AppliedLabelPolicy) ProtoReflect() protoreflect.Message
- func (x *Label_AppliedLabelPolicy) Reset()
- func (x *Label_AppliedLabelPolicy) String() string
- type Label_AppliedLabelPolicy_CopyMode
- func (Label_AppliedLabelPolicy_CopyMode) Descriptor() protoreflect.EnumDescriptor
- func (x Label_AppliedLabelPolicy_CopyMode) Enum() *Label_AppliedLabelPolicy_CopyMode
- func (Label_AppliedLabelPolicy_CopyMode) EnumDescriptor() ([]byte, []int)deprecated
- func (x Label_AppliedLabelPolicy_CopyMode) Number() protoreflect.EnumNumber
- func (x Label_AppliedLabelPolicy_CopyMode) String() string
- func (Label_AppliedLabelPolicy_CopyMode) Type() protoreflect.EnumType
- type Label_DisplayHints
- func (*Label_DisplayHints) Descriptor() ([]byte, []int)deprecated
- func (x *Label_DisplayHints) GetDisabled() bool
- func (x *Label_DisplayHints) GetHiddenInSearch() bool
- func (x *Label_DisplayHints) GetPriority() int64
- func (x *Label_DisplayHints) GetShownInApply() bool
- func (*Label_DisplayHints) ProtoMessage()
- func (x *Label_DisplayHints) ProtoReflect() protoreflect.Message
- func (x *Label_DisplayHints) Reset()
- func (x *Label_DisplayHints) String() string
- type Label_LabelType
- func (Label_LabelType) Descriptor() protoreflect.EnumDescriptor
- func (x Label_LabelType) Enum() *Label_LabelType
- func (Label_LabelType) EnumDescriptor() ([]byte, []int)deprecated
- func (x Label_LabelType) Number() protoreflect.EnumNumber
- func (x Label_LabelType) String() string
- func (Label_LabelType) Type() protoreflect.EnumType
- type Label_Properties
- func (*Label_Properties) Descriptor() ([]byte, []int)deprecated
- func (x *Label_Properties) GetDescription() string
- func (x *Label_Properties) GetTitle() string
- func (*Label_Properties) ProtoMessage()
- func (x *Label_Properties) ProtoReflect() protoreflect.Message
- func (x *Label_Properties) Reset()
- func (x *Label_Properties) String() string
- type Label_SchemaCapabilities
- func (*Label_SchemaCapabilities) Descriptor() ([]byte, []int)deprecated
- func (x *Label_SchemaCapabilities) GetCanDelete() bool
- func (x *Label_SchemaCapabilities) GetCanDisable() bool
- func (x *Label_SchemaCapabilities) GetCanEnable() bool
- func (x *Label_SchemaCapabilities) GetCanUpdate() bool
- func (*Label_SchemaCapabilities) ProtoMessage()
- func (x *Label_SchemaCapabilities) ProtoReflect() protoreflect.Message
- func (x *Label_SchemaCapabilities) Reset()
- func (x *Label_SchemaCapabilities) String() string
- type Lifecycle
- func (*Lifecycle) Descriptor() ([]byte, []int)deprecated
- func (x *Lifecycle) GetDisabledPolicy() *Lifecycle_DisabledPolicy
- func (x *Lifecycle) GetHasUnpublishedChanges() bool
- func (x *Lifecycle) GetState() Lifecycle_State
- func (*Lifecycle) ProtoMessage()
- func (x *Lifecycle) ProtoReflect() protoreflect.Message
- func (x *Lifecycle) Reset()
- func (x *Lifecycle) String() string
- type Lifecycle_DisabledPolicy
- func (*Lifecycle_DisabledPolicy) Descriptor() ([]byte, []int)deprecated
- func (x *Lifecycle_DisabledPolicy) GetHideInSearch() bool
- func (x *Lifecycle_DisabledPolicy) GetShowInApply() bool
- func (*Lifecycle_DisabledPolicy) ProtoMessage()
- func (x *Lifecycle_DisabledPolicy) ProtoReflect() protoreflect.Message
- func (x *Lifecycle_DisabledPolicy) Reset()
- func (x *Lifecycle_DisabledPolicy) String() string
- type Lifecycle_State
- func (Lifecycle_State) Descriptor() protoreflect.EnumDescriptor
- func (x Lifecycle_State) Enum() *Lifecycle_State
- func (Lifecycle_State) EnumDescriptor() ([]byte, []int)deprecated
- func (x Lifecycle_State) Number() protoreflect.EnumNumber
- func (x Lifecycle_State) String() string
- func (Lifecycle_State) Type() protoreflect.EnumType
- type ListLabelsRequest
- func (*ListLabelsRequest) Descriptor() ([]byte, []int)deprecated
- func (m *ListLabelsRequest) GetAccess() isListLabelsRequest_Access
- func (x *ListLabelsRequest) GetLanguageCode() string
- func (x *ListLabelsRequest) GetMinimumRole() LabelPermission_LabelRole
- func (x *ListLabelsRequest) GetPageSize() int32
- func (x *ListLabelsRequest) GetPageToken() string
- func (x *ListLabelsRequest) GetPublishedOnly() bool
- func (x *ListLabelsRequest) GetUseAdminAccess() bool
- func (x *ListLabelsRequest) GetView() LabelView
- func (*ListLabelsRequest) ProtoMessage()
- func (x *ListLabelsRequest) ProtoReflect() protoreflect.Message
- func (x *ListLabelsRequest) Reset()
- func (x *ListLabelsRequest) String() string
- type ListLabelsRequest_MinimumRole
- type ListLabelsRequest_UseAdminAccess
- type ListLabelsResponse
- func (*ListLabelsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListLabelsResponse) GetLabels() []*Label
- func (x *ListLabelsResponse) GetNextPageToken() string
- func (*ListLabelsResponse) ProtoMessage()
- func (x *ListLabelsResponse) ProtoReflect() protoreflect.Message
- func (x *ListLabelsResponse) Reset()
- func (x *ListLabelsResponse) String() string
- type LockStatus
- type PreconditionFailure
- func (*PreconditionFailure) Descriptor() ([]byte, []int)deprecated
- func (x *PreconditionFailure) GetViolation() []*PreconditionFailure_Violation
- func (*PreconditionFailure) ProtoMessage()
- func (x *PreconditionFailure) ProtoReflect() protoreflect.Message
- func (x *PreconditionFailure) Reset()
- func (x *PreconditionFailure) String() string
- type PreconditionFailure_Violation
- func (*PreconditionFailure_Violation) Descriptor() ([]byte, []int)deprecated
- func (x *PreconditionFailure_Violation) GetDisplayMessage() string
- func (x *PreconditionFailure_Violation) GetField() string
- func (x *PreconditionFailure_Violation) GetReason() PreconditionFailure_Violation_Reason
- func (*PreconditionFailure_Violation) ProtoMessage()
- func (x *PreconditionFailure_Violation) ProtoReflect() protoreflect.Message
- func (x *PreconditionFailure_Violation) Reset()
- func (x *PreconditionFailure_Violation) String() string
- type PreconditionFailure_Violation_Reason
- func (PreconditionFailure_Violation_Reason) Descriptor() protoreflect.EnumDescriptor
- func (x PreconditionFailure_Violation_Reason) Enum() *PreconditionFailure_Violation_Reason
- func (PreconditionFailure_Violation_Reason) EnumDescriptor() ([]byte, []int)deprecated
- func (x PreconditionFailure_Violation_Reason) Number() protoreflect.EnumNumber
- func (x PreconditionFailure_Violation_Reason) String() string
- func (PreconditionFailure_Violation_Reason) Type() protoreflect.EnumType
- type UnimplementedLabelServiceServer
- type UserInfo
Constants ¶
This section is empty.
Variables ¶
var ( Lifecycle_State_name = map[int32]string{ 0: "STATE_UNSPECIFIED", 1: "UNPUBLISHED_DRAFT", 2: "PUBLISHED", 3: "DISABLED", 4: "DELETED", } Lifecycle_State_value = map[string]int32{ "STATE_UNSPECIFIED": 0, "UNPUBLISHED_DRAFT": 1, "PUBLISHED": 2, "DISABLED": 3, "DELETED": 4, } )
Enum value maps for Lifecycle_State.
var ( InvalidArgument_FieldViolation_Reason_name = map[int32]string{ 0: "REASON_UNSPECIFIED", 1: "FIELD_REQUIRED", 2: "INVALID_VALUE", 3: "VALUE_OUT_OF_RANGE", 4: "STRING_VALUE_TOO_LONG", 5: "MAX_ENTRIES_EXCEEDED", 6: "FIELD_NOT_FOUND", 7: "CHOICE_NOT_FOUND", } InvalidArgument_FieldViolation_Reason_value = map[string]int32{ "REASON_UNSPECIFIED": 0, "FIELD_REQUIRED": 1, "INVALID_VALUE": 2, "VALUE_OUT_OF_RANGE": 3, "STRING_VALUE_TOO_LONG": 4, "MAX_ENTRIES_EXCEEDED": 5, "FIELD_NOT_FOUND": 6, "CHOICE_NOT_FOUND": 7, } )
Enum value maps for InvalidArgument_FieldViolation_Reason.
var ( PreconditionFailure_Violation_Reason_name = map[int32]string{ 0: "REASON_UNSPECIFIED", 1: "CANNOT_DISABLE", 2: "CANNOT_ENABLE", 3: "CANNOT_PUBLISH", 4: "CANNOT_UNPUBLISH", 5: "CANNOT_DELETE", 6: "CANNOT_RESTRICT_RANGE", 7: "CANNOT_CHANGE_PUBLISHED_FIELD", 8: "CANNOT_CREATE_MORE_LABELS", 9: "CANNOT_CHANGE_PUBLISHED_FIELD_TYPE", 10: "CANNOT_MODIFY_LOCKED_COMPONENT", } PreconditionFailure_Violation_Reason_value = map[string]int32{ "REASON_UNSPECIFIED": 0, "CANNOT_DISABLE": 1, "CANNOT_ENABLE": 2, "CANNOT_PUBLISH": 3, "CANNOT_UNPUBLISH": 4, "CANNOT_DELETE": 5, "CANNOT_RESTRICT_RANGE": 6, "CANNOT_CHANGE_PUBLISHED_FIELD": 7, "CANNOT_CREATE_MORE_LABELS": 8, "CANNOT_CHANGE_PUBLISHED_FIELD_TYPE": 9, "CANNOT_MODIFY_LOCKED_COMPONENT": 10, } )
Enum value maps for PreconditionFailure_Violation_Reason.
var ( ExceptionType_name = map[int32]string{ 0: "EXCEPTION_TYPE_UNSPECIFIED", 1: "FIELD_REQUIRED", 2: "METAMODEL_ALREADY_EXISTS", 3: "METAMODEL_NOT_FOUND", 4: "ILLEGAL_METAMODEL_STATE_TRANSITION", 5: "INVALID_METAMODEL_DEPRECATION_POLICY", 6: "METAMODEL_DELETION_DENIED_UNTIL", 7: "INVALID_FIELD", 8: "METAMODEL_PRECONDITION_FAILED", 9: "DUPLICATE_FIELD_KEY", 10: "ILLEGAL_FIELD_REMOVAL", 11: "ILLEGAL_FIELD_OPTIONS_FOR_FIELD", 12: "UNSUPPORTED_CHANGE_TO_PUBLISHED_METAMODEL", 13: "ILLEGAL_METAMODEL_STATE_TRANSITION_IN_UPDATE", 14: "PAGE_TOKEN_EXPIRED", 15: "NOT_AUTHORIZED", 16: "ILLEGAL_FIELD_STATE_TRANSITION", 17: "ILLEGAL_CHOICE_SET_OPTION_STATE_TRANSITION", 18: "INVALID_CHOICE_SET_OPTIONS", 19: "INVALID_FIELD_KEY", 20: "INVALID_FIELD_PROPERTY_RANGE", 21: "INVALID_LOCALIZED_STRING", 22: "ILLEGAL_CHANGE_TO_PUBLISHED_FIELD", 23: "INVALID_FIELD_UPDATE_NOT_INCLUSIVE", 24: "INVALID_CHOICE_SET_STATE", 500: "INTERNAL_SERVER_ERROR", } ExceptionType_value = map[string]int32{ "EXCEPTION_TYPE_UNSPECIFIED": 0, "FIELD_REQUIRED": 1, "METAMODEL_ALREADY_EXISTS": 2, "METAMODEL_NOT_FOUND": 3, "ILLEGAL_METAMODEL_STATE_TRANSITION": 4, "INVALID_METAMODEL_DEPRECATION_POLICY": 5, "METAMODEL_DELETION_DENIED_UNTIL": 6, "INVALID_FIELD": 7, "METAMODEL_PRECONDITION_FAILED": 8, "DUPLICATE_FIELD_KEY": 9, "ILLEGAL_FIELD_REMOVAL": 10, "ILLEGAL_FIELD_OPTIONS_FOR_FIELD": 11, "UNSUPPORTED_CHANGE_TO_PUBLISHED_METAMODEL": 12, "ILLEGAL_METAMODEL_STATE_TRANSITION_IN_UPDATE": 13, "PAGE_TOKEN_EXPIRED": 14, "NOT_AUTHORIZED": 15, "ILLEGAL_FIELD_STATE_TRANSITION": 16, "ILLEGAL_CHOICE_SET_OPTION_STATE_TRANSITION": 17, "INVALID_CHOICE_SET_OPTIONS": 18, "INVALID_FIELD_KEY": 19, "INVALID_FIELD_PROPERTY_RANGE": 20, "INVALID_LOCALIZED_STRING": 21, "ILLEGAL_CHANGE_TO_PUBLISHED_FIELD": 22, "INVALID_FIELD_UPDATE_NOT_INCLUSIVE": 23, "INVALID_CHOICE_SET_STATE": 24, "INTERNAL_SERVER_ERROR": 500, } )
Enum value maps for ExceptionType.
var ( Field_DateOptions_DateFormat_name = map[int32]string{ 0: "DATE_FORMAT_UNSPECIFIED", 1: "LONG_DATE", 2: "SHORT_DATE", } Field_DateOptions_DateFormat_value = map[string]int32{ "DATE_FORMAT_UNSPECIFIED": 0, "LONG_DATE": 1, "SHORT_DATE": 2, } )
Enum value maps for Field_DateOptions_DateFormat.
var ( Label_LabelType_name = map[int32]string{ 0: "LABEL_TYPE_UNSPECIFIED", 1: "SHARED", 2: "ADMIN", } Label_LabelType_value = map[string]int32{ "LABEL_TYPE_UNSPECIFIED": 0, "SHARED": 1, "ADMIN": 2, } )
Enum value maps for Label_LabelType.
var ( Label_AppliedLabelPolicy_CopyMode_name = map[int32]string{ 0: "COPY_MODE_UNSPECIFIED", 1: "DO_NOT_COPY", 2: "ALWAYS_COPY", 3: "COPY_APPLIABLE", } Label_AppliedLabelPolicy_CopyMode_value = map[string]int32{ "COPY_MODE_UNSPECIFIED": 0, "DO_NOT_COPY": 1, "ALWAYS_COPY": 2, "COPY_APPLIABLE": 3, } )
Enum value maps for Label_AppliedLabelPolicy_CopyMode.
var ( LabelPermission_LabelRole_name = map[int32]string{ 0: "LABEL_ROLE_UNSPECIFIED", 1: "READER", 2: "APPLIER", 3: "ORGANIZER", 4: "EDITOR", } LabelPermission_LabelRole_value = map[string]int32{ "LABEL_ROLE_UNSPECIFIED": 0, "READER": 1, "APPLIER": 2, "ORGANIZER": 3, "EDITOR": 4, } )
Enum value maps for LabelPermission_LabelRole.
var ( LabelView_name = map[int32]string{ 0: "LABEL_VIEW_BASIC", 1: "LABEL_VIEW_FULL", } LabelView_value = map[string]int32{ "LABEL_VIEW_BASIC": 0, "LABEL_VIEW_FULL": 1, } )
Enum value maps for LabelView.
var File_google_apps_drive_labels_v2_common_proto protoreflect.FileDescriptor
var File_google_apps_drive_labels_v2_error_details_proto protoreflect.FileDescriptor
var File_google_apps_drive_labels_v2_exception_detail_proto protoreflect.FileDescriptor
var File_google_apps_drive_labels_v2_field_proto protoreflect.FileDescriptor
var File_google_apps_drive_labels_v2_label_permission_proto protoreflect.FileDescriptor
var File_google_apps_drive_labels_v2_label_proto protoreflect.FileDescriptor
var File_google_apps_drive_labels_v2_label_service_proto protoreflect.FileDescriptor
var File_google_apps_drive_labels_v2_requests_proto protoreflect.FileDescriptor
Functions ¶
func RegisterLabelServiceServer ¶
func RegisterLabelServiceServer(s *grpc.Server, srv LabelServiceServer)
Types ¶
type BadgeColors ¶
type BadgeColors struct { // Output only. Badge background that pairs with the foreground. BackgroundColor *color.Color `protobuf:"bytes,1,opt,name=background_color,json=backgroundColor,proto3" json:"background_color,omitempty"` // Output only. Badge foreground that pairs with the background. ForegroundColor *color.Color `protobuf:"bytes,2,opt,name=foreground_color,json=foregroundColor,proto3" json:"foreground_color,omitempty"` // Output only. Color that can be used for text without a background. SoloColor *color.Color `protobuf:"bytes,3,opt,name=solo_color,json=soloColor,proto3" json:"solo_color,omitempty"` // contains filtered or unexported fields }
The color derived from BadgeConfig and changed to the closest recommended supported color.
func (*BadgeColors) Descriptor
deprecated
func (*BadgeColors) Descriptor() ([]byte, []int)
Deprecated: Use BadgeColors.ProtoReflect.Descriptor instead.
func (*BadgeColors) GetBackgroundColor ¶
func (x *BadgeColors) GetBackgroundColor() *color.Color
func (*BadgeColors) GetForegroundColor ¶
func (x *BadgeColors) GetForegroundColor() *color.Color
func (*BadgeColors) GetSoloColor ¶
func (x *BadgeColors) GetSoloColor() *color.Color
func (*BadgeColors) ProtoMessage ¶
func (*BadgeColors) ProtoMessage()
func (*BadgeColors) ProtoReflect ¶
func (x *BadgeColors) ProtoReflect() protoreflect.Message
func (*BadgeColors) Reset ¶
func (x *BadgeColors) Reset()
func (*BadgeColors) String ¶
func (x *BadgeColors) String() string
type BadgeConfig ¶
type BadgeConfig struct { // The color of the badge. When not specified, no badge is rendered. // The background, foreground, and solo (light and dark mode) colors set here // are changed in the Drive UI into the closest recommended supported color. Color *color.Color `protobuf:"bytes,1,opt,name=color,proto3" json:"color,omitempty"` // Override the default global priority of this badge. // When set to 0, the default priority heuristic is used. PriorityOverride int64 `protobuf:"varint,2,opt,name=priority_override,json=priorityOverride,proto3" json:"priority_override,omitempty"` // contains filtered or unexported fields }
Badge status of the label.
func (*BadgeConfig) Descriptor
deprecated
func (*BadgeConfig) Descriptor() ([]byte, []int)
Deprecated: Use BadgeConfig.ProtoReflect.Descriptor instead.
func (*BadgeConfig) GetColor ¶
func (x *BadgeConfig) GetColor() *color.Color
func (*BadgeConfig) GetPriorityOverride ¶
func (x *BadgeConfig) GetPriorityOverride() int64
func (*BadgeConfig) ProtoMessage ¶
func (*BadgeConfig) ProtoMessage()
func (*BadgeConfig) ProtoReflect ¶
func (x *BadgeConfig) ProtoReflect() protoreflect.Message
func (*BadgeConfig) Reset ¶
func (x *BadgeConfig) Reset()
func (*BadgeConfig) String ¶
func (x *BadgeConfig) String() string
type ExceptionDetail ¶
type ExceptionDetail struct { // The type of exception that occurred. // required ErrorType ExceptionType `` /* 136-byte string literal not displayed */ // contains filtered or unexported fields }
Normalized internal-only message that identifies the exact exception that caused the error on the server.
func (*ExceptionDetail) Descriptor
deprecated
func (*ExceptionDetail) Descriptor() ([]byte, []int)
Deprecated: Use ExceptionDetail.ProtoReflect.Descriptor instead.
func (*ExceptionDetail) GetErrorType ¶
func (x *ExceptionDetail) GetErrorType() ExceptionType
func (*ExceptionDetail) ProtoMessage ¶
func (*ExceptionDetail) ProtoMessage()
func (*ExceptionDetail) ProtoReflect ¶
func (x *ExceptionDetail) ProtoReflect() protoreflect.Message
func (*ExceptionDetail) Reset ¶
func (x *ExceptionDetail) Reset()
func (*ExceptionDetail) String ¶
func (x *ExceptionDetail) String() string
type ExceptionType ¶
type ExceptionType int32
Every ExceptionType maps to one and only one Exception class. This allows internal clients to identify the exact server exception that caused the error for debugging and logging purposes. Add new ExceptionTypes to EXCEPTION_TYPE_TO_ERROR_CODE_MAP in j/c/g/apps/boq/metadata/model/service/exceptions/CategoryExceptionHelper
const ( // Unknown ExceptionType. ExceptionType_EXCEPTION_TYPE_UNSPECIFIED ExceptionType = 0 // The required field is missing. ExceptionType_FIELD_REQUIRED ExceptionType = 1 // Unable to create a metamodel with the given ID because it already exists. ExceptionType_METAMODEL_ALREADY_EXISTS ExceptionType = 2 // Metamodel was not found ExceptionType_METAMODEL_NOT_FOUND ExceptionType = 3 // Metamodel state transition isn't allowed. ExceptionType_ILLEGAL_METAMODEL_STATE_TRANSITION ExceptionType = 4 // Metamodel deprecation policy is invalid. ExceptionType_INVALID_METAMODEL_DEPRECATION_POLICY ExceptionType = 5 // Cannot delete a metamodel due to the pending deprecation policy. ExceptionType_METAMODEL_DELETION_DENIED_UNTIL ExceptionType = 6 // A Field value is invalid. ExceptionType_INVALID_FIELD ExceptionType = 7 // Precondition failed when updating a metamodel ExceptionType_METAMODEL_PRECONDITION_FAILED ExceptionType = 8 // Multiple fields had the same key. ExceptionType_DUPLICATE_FIELD_KEY ExceptionType = 9 // Removing a field from a Metamodel (e.g. a published Metamodel) is not // permitted. ExceptionType_ILLEGAL_FIELD_REMOVAL ExceptionType = 10 // Cannot specify field options for a different field type. ExceptionType_ILLEGAL_FIELD_OPTIONS_FOR_FIELD ExceptionType = 11 // Some changes are not supported ExceptionType_UNSUPPORTED_CHANGE_TO_PUBLISHED_METAMODEL ExceptionType = 12 // Cannot change the metamodel state in an update ExceptionType_ILLEGAL_METAMODEL_STATE_TRANSITION_IN_UPDATE ExceptionType = 13 // The page token is expired ExceptionType_PAGE_TOKEN_EXPIRED ExceptionType = 14 // The user is not authorized to make the request. ExceptionType_NOT_AUTHORIZED ExceptionType = 15 // Illegal field state transition ExceptionType_ILLEGAL_FIELD_STATE_TRANSITION ExceptionType = 16 // Illegal choice set option state transition ExceptionType_ILLEGAL_CHOICE_SET_OPTION_STATE_TRANSITION ExceptionType = 17 // Invalid choice set options ExceptionType_INVALID_CHOICE_SET_OPTIONS ExceptionType = 18 // Invalid field key ExceptionType_INVALID_FIELD_KEY ExceptionType = 19 // A specified property on a field is outside the allowed range. ExceptionType_INVALID_FIELD_PROPERTY_RANGE ExceptionType = 20 // A localized string wasn't valid. This may be because the locale is invalid, // its missing a default value, or the translation is empty for a set locale. ExceptionType_INVALID_LOCALIZED_STRING ExceptionType = 21 // cannot change a property on a published field ExceptionType_ILLEGAL_CHANGE_TO_PUBLISHED_FIELD ExceptionType = 22 // A field update is not inclusive of the previous value ExceptionType_INVALID_FIELD_UPDATE_NOT_INCLUSIVE ExceptionType = 23 // A field update is not inclusive of the previous value ExceptionType_INVALID_CHOICE_SET_STATE ExceptionType = 24 // An unknown error occurred ExceptionType_INTERNAL_SERVER_ERROR ExceptionType = 500 )
func (ExceptionType) Descriptor ¶
func (ExceptionType) Descriptor() protoreflect.EnumDescriptor
func (ExceptionType) Enum ¶
func (x ExceptionType) Enum() *ExceptionType
func (ExceptionType) EnumDescriptor
deprecated
func (ExceptionType) EnumDescriptor() ([]byte, []int)
Deprecated: Use ExceptionType.Descriptor instead.
func (ExceptionType) Number ¶
func (x ExceptionType) Number() protoreflect.EnumNumber
func (ExceptionType) String ¶
func (x ExceptionType) String() string
func (ExceptionType) Type ¶
func (ExceptionType) Type() protoreflect.EnumType
type Field ¶
type Field struct { // The data type and options of this field. // Once published, the data type cannot be changed. // // Types that are assignable to Type: // // *Field_TextOptions_ // *Field_IntegerOptions_ // *Field_DateOptions_ // *Field_SelectionOptions_ // *Field_UserOptions_ Type isField_Type `protobuf_oneof:"type"` // Output only. The key of a field, unique within a label or library. // // This value is autogenerated. Matches the regex: `([a-zA-Z0-9])+` Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // Output only. The key to use when constructing Drive search queries to find // files based on values defined for this field on files. // For example, "`{query_key}` > 2001-01-01". QueryKey string `protobuf:"bytes,2,opt,name=query_key,json=queryKey,proto3" json:"query_key,omitempty"` // The basic properties of the field. Properties *Field_Properties `protobuf:"bytes,3,opt,name=properties,proto3" json:"properties,omitempty"` // Output only. The lifecycle of this field. Lifecycle *Lifecycle `protobuf:"bytes,4,opt,name=lifecycle,proto3" json:"lifecycle,omitempty"` // Output only. UI display hints for rendering a field. DisplayHints *Field_DisplayHints `protobuf:"bytes,5,opt,name=display_hints,json=displayHints,proto3" json:"display_hints,omitempty"` // Output only. The capabilities this user has when editing this field. SchemaCapabilities *Field_SchemaCapabilities `protobuf:"bytes,6,opt,name=schema_capabilities,json=schemaCapabilities,proto3" json:"schema_capabilities,omitempty"` // Output only. The capabilities this user has on this field and its value // when the label is applied on Drive items. AppliedCapabilities *Field_AppliedCapabilities `protobuf:"bytes,7,opt,name=applied_capabilities,json=appliedCapabilities,proto3" json:"applied_capabilities,omitempty"` // Output only. The user who created this field. Creator *UserInfo `protobuf:"bytes,8,opt,name=creator,proto3" json:"creator,omitempty"` // Output only. The time this field was created. CreateTime *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The user who modified this field. Updater *UserInfo `protobuf:"bytes,10,opt,name=updater,proto3" json:"updater,omitempty"` // Output only. The time this field was updated. UpdateTime *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Output only. The user who published this field. This value has no meaning // when the field is not published. Publisher *UserInfo `protobuf:"bytes,12,opt,name=publisher,proto3" json:"publisher,omitempty"` // Output only. The user who disabled this field. This value has no meaning // when the field is not disabled. Disabler *UserInfo `protobuf:"bytes,13,opt,name=disabler,proto3" json:"disabler,omitempty"` // Output only. The time this field was disabled. This value has no meaning // when the field is not disabled. DisableTime *timestamppb.Timestamp `protobuf:"bytes,14,opt,name=disable_time,json=disableTime,proto3" json:"disable_time,omitempty"` // Output only. The LockStatus of this field. LockStatus *LockStatus `protobuf:"bytes,15,opt,name=lock_status,json=lockStatus,proto3" json:"lock_status,omitempty"` // contains filtered or unexported fields }
Defines a field that has a display name, data type, and other configuration options. This field defines the kind of metadata that may be set on a Drive item.
func (*Field) Descriptor
deprecated
func (*Field) GetAppliedCapabilities ¶
func (x *Field) GetAppliedCapabilities() *Field_AppliedCapabilities
func (*Field) GetCreateTime ¶
func (x *Field) GetCreateTime() *timestamppb.Timestamp
func (*Field) GetCreator ¶
func (*Field) GetDateOptions ¶
func (x *Field) GetDateOptions() *Field_DateOptions
func (*Field) GetDisableTime ¶
func (x *Field) GetDisableTime() *timestamppb.Timestamp
func (*Field) GetDisabler ¶
func (*Field) GetDisplayHints ¶
func (x *Field) GetDisplayHints() *Field_DisplayHints
func (*Field) GetIntegerOptions ¶
func (x *Field) GetIntegerOptions() *Field_IntegerOptions
func (*Field) GetLifecycle ¶
func (*Field) GetLockStatus ¶
func (x *Field) GetLockStatus() *LockStatus
func (*Field) GetProperties ¶
func (x *Field) GetProperties() *Field_Properties
func (*Field) GetPublisher ¶
func (*Field) GetQueryKey ¶
func (*Field) GetSchemaCapabilities ¶
func (x *Field) GetSchemaCapabilities() *Field_SchemaCapabilities
func (*Field) GetSelectionOptions ¶
func (x *Field) GetSelectionOptions() *Field_SelectionOptions
func (*Field) GetTextOptions ¶
func (x *Field) GetTextOptions() *Field_TextOptions
func (*Field) GetUpdateTime ¶
func (x *Field) GetUpdateTime() *timestamppb.Timestamp
func (*Field) GetUpdater ¶
func (*Field) GetUserOptions ¶
func (x *Field) GetUserOptions() *Field_UserOptions
func (*Field) ProtoMessage ¶
func (*Field) ProtoMessage()
func (*Field) ProtoReflect ¶
func (x *Field) ProtoReflect() protoreflect.Message
type Field_AppliedCapabilities ¶
type Field_AppliedCapabilities struct { // Whether the user can read related applied metadata on items. CanRead bool `protobuf:"varint,1,opt,name=can_read,json=canRead,proto3" json:"can_read,omitempty"` // Whether the user can search for Drive items referencing this field. CanSearch bool `protobuf:"varint,2,opt,name=can_search,json=canSearch,proto3" json:"can_search,omitempty"` // Whether the user can set this field on Drive items. CanWrite bool `protobuf:"varint,3,opt,name=can_write,json=canWrite,proto3" json:"can_write,omitempty"` // contains filtered or unexported fields }
The capabilities related to this field on applied metadata.
func (*Field_AppliedCapabilities) Descriptor
deprecated
func (*Field_AppliedCapabilities) Descriptor() ([]byte, []int)
Deprecated: Use Field_AppliedCapabilities.ProtoReflect.Descriptor instead.
func (*Field_AppliedCapabilities) GetCanRead ¶
func (x *Field_AppliedCapabilities) GetCanRead() bool
func (*Field_AppliedCapabilities) GetCanSearch ¶
func (x *Field_AppliedCapabilities) GetCanSearch() bool
func (*Field_AppliedCapabilities) GetCanWrite ¶
func (x *Field_AppliedCapabilities) GetCanWrite() bool
func (*Field_AppliedCapabilities) ProtoMessage ¶
func (*Field_AppliedCapabilities) ProtoMessage()
func (*Field_AppliedCapabilities) ProtoReflect ¶
func (x *Field_AppliedCapabilities) ProtoReflect() protoreflect.Message
func (*Field_AppliedCapabilities) Reset ¶
func (x *Field_AppliedCapabilities) Reset()
func (*Field_AppliedCapabilities) String ¶
func (x *Field_AppliedCapabilities) String() string
type Field_DateOptions ¶
type Field_DateOptions struct { // Localized date formatting option. Field values are rendered in // this format according to their locale. DateFormatType Field_DateOptions_DateFormat `` /* 168-byte string literal not displayed */ // Output only. ICU date format. DateFormat string `protobuf:"bytes,2,opt,name=date_format,json=dateFormat,proto3" json:"date_format,omitempty"` // Output only. Minimum valid value (year, month, day). MinValue *date.Date `protobuf:"bytes,3,opt,name=min_value,json=minValue,proto3" json:"min_value,omitempty"` // Output only. Maximum valid value (year, month, day). MaxValue *date.Date `protobuf:"bytes,4,opt,name=max_value,json=maxValue,proto3" json:"max_value,omitempty"` // contains filtered or unexported fields }
Options for the date field type.
func (*Field_DateOptions) Descriptor
deprecated
func (*Field_DateOptions) Descriptor() ([]byte, []int)
Deprecated: Use Field_DateOptions.ProtoReflect.Descriptor instead.
func (*Field_DateOptions) GetDateFormat ¶
func (x *Field_DateOptions) GetDateFormat() string
func (*Field_DateOptions) GetDateFormatType ¶
func (x *Field_DateOptions) GetDateFormatType() Field_DateOptions_DateFormat
func (*Field_DateOptions) GetMaxValue ¶
func (x *Field_DateOptions) GetMaxValue() *date.Date
func (*Field_DateOptions) GetMinValue ¶
func (x *Field_DateOptions) GetMinValue() *date.Date
func (*Field_DateOptions) ProtoMessage ¶
func (*Field_DateOptions) ProtoMessage()
func (*Field_DateOptions) ProtoReflect ¶
func (x *Field_DateOptions) ProtoReflect() protoreflect.Message
func (*Field_DateOptions) Reset ¶
func (x *Field_DateOptions) Reset()
func (*Field_DateOptions) String ¶
func (x *Field_DateOptions) String() string
type Field_DateOptions_ ¶
type Field_DateOptions_ struct { // Date field options. DateOptions *Field_DateOptions `protobuf:"bytes,19,opt,name=date_options,json=dateOptions,proto3,oneof"` }
type Field_DateOptions_DateFormat ¶
type Field_DateOptions_DateFormat int32
Localized date format options.
const ( // Date format unspecified. Field_DateOptions_DATE_FORMAT_UNSPECIFIED Field_DateOptions_DateFormat = 0 // Includes full month name. // For example, January 12, 1999 // (MMMM d, y) Field_DateOptions_LONG_DATE Field_DateOptions_DateFormat = 1 // Short, numeric, representation. // For example, 12/13/99 // (M/d/yy) Field_DateOptions_SHORT_DATE Field_DateOptions_DateFormat = 2 )
func (Field_DateOptions_DateFormat) Descriptor ¶
func (Field_DateOptions_DateFormat) Descriptor() protoreflect.EnumDescriptor
func (Field_DateOptions_DateFormat) Enum ¶
func (x Field_DateOptions_DateFormat) Enum() *Field_DateOptions_DateFormat
func (Field_DateOptions_DateFormat) EnumDescriptor
deprecated
func (Field_DateOptions_DateFormat) EnumDescriptor() ([]byte, []int)
Deprecated: Use Field_DateOptions_DateFormat.Descriptor instead.
func (Field_DateOptions_DateFormat) Number ¶
func (x Field_DateOptions_DateFormat) Number() protoreflect.EnumNumber
func (Field_DateOptions_DateFormat) String ¶
func (x Field_DateOptions_DateFormat) String() string
func (Field_DateOptions_DateFormat) Type ¶
func (Field_DateOptions_DateFormat) Type() protoreflect.EnumType
type Field_DisplayHints ¶
type Field_DisplayHints struct { // Whether the field should be shown as required in the UI. Required bool `protobuf:"varint,1,opt,name=required,proto3" json:"required,omitempty"` // Whether the field should be shown in the UI as disabled. Disabled bool `protobuf:"varint,2,opt,name=disabled,proto3" json:"disabled,omitempty"` // This field should be hidden in the search menu when searching for Drive // items. HiddenInSearch bool `protobuf:"varint,3,opt,name=hidden_in_search,json=hiddenInSearch,proto3" json:"hidden_in_search,omitempty"` // This field should be shown in the apply menu when applying values to a // Drive item. ShownInApply bool `protobuf:"varint,4,opt,name=shown_in_apply,json=shownInApply,proto3" json:"shown_in_apply,omitempty"` // contains filtered or unexported fields }
UI display hints for rendering a field.
func (*Field_DisplayHints) Descriptor
deprecated
func (*Field_DisplayHints) Descriptor() ([]byte, []int)
Deprecated: Use Field_DisplayHints.ProtoReflect.Descriptor instead.
func (*Field_DisplayHints) GetDisabled ¶
func (x *Field_DisplayHints) GetDisabled() bool
func (*Field_DisplayHints) GetHiddenInSearch ¶
func (x *Field_DisplayHints) GetHiddenInSearch() bool
func (*Field_DisplayHints) GetRequired ¶
func (x *Field_DisplayHints) GetRequired() bool
func (*Field_DisplayHints) GetShownInApply ¶
func (x *Field_DisplayHints) GetShownInApply() bool
func (*Field_DisplayHints) ProtoMessage ¶
func (*Field_DisplayHints) ProtoMessage()
func (*Field_DisplayHints) ProtoReflect ¶
func (x *Field_DisplayHints) ProtoReflect() protoreflect.Message
func (*Field_DisplayHints) Reset ¶
func (x *Field_DisplayHints) Reset()
func (*Field_DisplayHints) String ¶
func (x *Field_DisplayHints) String() string
type Field_IntegerOptions ¶
type Field_IntegerOptions struct { // Output only. The minimum valid value for the integer field. MinValue int64 `protobuf:"varint,1,opt,name=min_value,json=minValue,proto3" json:"min_value,omitempty"` // Output only. The maximum valid value for the integer field. MaxValue int64 `protobuf:"varint,2,opt,name=max_value,json=maxValue,proto3" json:"max_value,omitempty"` // contains filtered or unexported fields }
Options for the Integer field type.
func (*Field_IntegerOptions) Descriptor
deprecated
func (*Field_IntegerOptions) Descriptor() ([]byte, []int)
Deprecated: Use Field_IntegerOptions.ProtoReflect.Descriptor instead.
func (*Field_IntegerOptions) GetMaxValue ¶
func (x *Field_IntegerOptions) GetMaxValue() int64
func (*Field_IntegerOptions) GetMinValue ¶
func (x *Field_IntegerOptions) GetMinValue() int64
func (*Field_IntegerOptions) ProtoMessage ¶
func (*Field_IntegerOptions) ProtoMessage()
func (*Field_IntegerOptions) ProtoReflect ¶
func (x *Field_IntegerOptions) ProtoReflect() protoreflect.Message
func (*Field_IntegerOptions) Reset ¶
func (x *Field_IntegerOptions) Reset()
func (*Field_IntegerOptions) String ¶
func (x *Field_IntegerOptions) String() string
type Field_IntegerOptions_ ¶
type Field_IntegerOptions_ struct { // Integer field options. IntegerOptions *Field_IntegerOptions `protobuf:"bytes,18,opt,name=integer_options,json=integerOptions,proto3,oneof"` }
type Field_ListOptions ¶
type Field_ListOptions struct { // Maximum number of entries permitted. MaxEntries int32 `protobuf:"varint,1,opt,name=max_entries,json=maxEntries,proto3" json:"max_entries,omitempty"` // contains filtered or unexported fields }
Options for a multi-valued variant of an associated field type.
func (*Field_ListOptions) Descriptor
deprecated
func (*Field_ListOptions) Descriptor() ([]byte, []int)
Deprecated: Use Field_ListOptions.ProtoReflect.Descriptor instead.
func (*Field_ListOptions) GetMaxEntries ¶
func (x *Field_ListOptions) GetMaxEntries() int32
func (*Field_ListOptions) ProtoMessage ¶
func (*Field_ListOptions) ProtoMessage()
func (*Field_ListOptions) ProtoReflect ¶
func (x *Field_ListOptions) ProtoReflect() protoreflect.Message
func (*Field_ListOptions) Reset ¶
func (x *Field_ListOptions) Reset()
func (*Field_ListOptions) String ¶
func (x *Field_ListOptions) String() string
type Field_Properties ¶
type Field_Properties struct { // Required. The display text to show in the UI identifying this field. DisplayName string `protobuf:"bytes,1,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` // Whether the field should be marked as required. Required bool `protobuf:"varint,2,opt,name=required,proto3" json:"required,omitempty"` // Input only. Insert or move this field before the indicated field. If // empty, the field is placed at the end of the list. InsertBeforeField string `protobuf:"bytes,3,opt,name=insert_before_field,json=insertBeforeField,proto3" json:"insert_before_field,omitempty"` // contains filtered or unexported fields }
The basic properties of the field.
func (*Field_Properties) Descriptor
deprecated
func (*Field_Properties) Descriptor() ([]byte, []int)
Deprecated: Use Field_Properties.ProtoReflect.Descriptor instead.
func (*Field_Properties) GetDisplayName ¶
func (x *Field_Properties) GetDisplayName() string
func (*Field_Properties) GetInsertBeforeField ¶
func (x *Field_Properties) GetInsertBeforeField() string
func (*Field_Properties) GetRequired ¶
func (x *Field_Properties) GetRequired() bool
func (*Field_Properties) ProtoMessage ¶
func (*Field_Properties) ProtoMessage()
func (*Field_Properties) ProtoReflect ¶
func (x *Field_Properties) ProtoReflect() protoreflect.Message
func (*Field_Properties) Reset ¶
func (x *Field_Properties) Reset()
func (*Field_Properties) String ¶
func (x *Field_Properties) String() string
type Field_SchemaCapabilities ¶
type Field_SchemaCapabilities struct { // Whether the user can change this field. CanUpdate bool `protobuf:"varint,1,opt,name=can_update,json=canUpdate,proto3" json:"can_update,omitempty"` // Whether the user can delete this field. // The user must have permission and the field must be deprecated. CanDelete bool `protobuf:"varint,2,opt,name=can_delete,json=canDelete,proto3" json:"can_delete,omitempty"` // Whether the user can disable this field. // The user must have permission and this field must not already be // disabled. CanDisable bool `protobuf:"varint,3,opt,name=can_disable,json=canDisable,proto3" json:"can_disable,omitempty"` // Whether the user can enable this field. // The user must have permission and this field must be disabled. CanEnable bool `protobuf:"varint,4,opt,name=can_enable,json=canEnable,proto3" json:"can_enable,omitempty"` // contains filtered or unexported fields }
The capabilities related to this field when editing the field.
func (*Field_SchemaCapabilities) Descriptor
deprecated
func (*Field_SchemaCapabilities) Descriptor() ([]byte, []int)
Deprecated: Use Field_SchemaCapabilities.ProtoReflect.Descriptor instead.
func (*Field_SchemaCapabilities) GetCanDelete ¶
func (x *Field_SchemaCapabilities) GetCanDelete() bool
func (*Field_SchemaCapabilities) GetCanDisable ¶
func (x *Field_SchemaCapabilities) GetCanDisable() bool
func (*Field_SchemaCapabilities) GetCanEnable ¶
func (x *Field_SchemaCapabilities) GetCanEnable() bool
func (*Field_SchemaCapabilities) GetCanUpdate ¶
func (x *Field_SchemaCapabilities) GetCanUpdate() bool
func (*Field_SchemaCapabilities) ProtoMessage ¶
func (*Field_SchemaCapabilities) ProtoMessage()
func (*Field_SchemaCapabilities) ProtoReflect ¶
func (x *Field_SchemaCapabilities) ProtoReflect() protoreflect.Message
func (*Field_SchemaCapabilities) Reset ¶
func (x *Field_SchemaCapabilities) Reset()
func (*Field_SchemaCapabilities) String ¶
func (x *Field_SchemaCapabilities) String() string
type Field_SelectionOptions ¶
type Field_SelectionOptions struct { // When specified, indicates this field supports a list of values. // Once the field is published, this cannot be changed. ListOptions *Field_ListOptions `protobuf:"bytes,1,opt,name=list_options,json=listOptions,proto3" json:"list_options,omitempty"` // The options available for this selection field. // The list order is consistent, and modified with `insert_before_choice`. Choices []*Field_SelectionOptions_Choice `protobuf:"bytes,2,rep,name=choices,proto3" json:"choices,omitempty"` // contains filtered or unexported fields }
Options for the selection field type.
func (*Field_SelectionOptions) Descriptor
deprecated
func (*Field_SelectionOptions) Descriptor() ([]byte, []int)
Deprecated: Use Field_SelectionOptions.ProtoReflect.Descriptor instead.
func (*Field_SelectionOptions) GetChoices ¶
func (x *Field_SelectionOptions) GetChoices() []*Field_SelectionOptions_Choice
func (*Field_SelectionOptions) GetListOptions ¶
func (x *Field_SelectionOptions) GetListOptions() *Field_ListOptions
func (*Field_SelectionOptions) ProtoMessage ¶
func (*Field_SelectionOptions) ProtoMessage()
func (*Field_SelectionOptions) ProtoReflect ¶
func (x *Field_SelectionOptions) ProtoReflect() protoreflect.Message
func (*Field_SelectionOptions) Reset ¶
func (x *Field_SelectionOptions) Reset()
func (*Field_SelectionOptions) String ¶
func (x *Field_SelectionOptions) String() string
type Field_SelectionOptions_ ¶
type Field_SelectionOptions_ struct { // Selection field options. SelectionOptions *Field_SelectionOptions `protobuf:"bytes,20,opt,name=selection_options,json=selectionOptions,proto3,oneof"` }
type Field_SelectionOptions_Choice ¶
type Field_SelectionOptions_Choice struct { // The unique value of the choice. // This ID is autogenerated. Matches the regex: `([a-zA-Z0-9_])+`. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // Basic properties of the choice. Properties *Field_SelectionOptions_Choice_Properties `protobuf:"bytes,2,opt,name=properties,proto3" json:"properties,omitempty"` // Output only. Lifecycle of the choice. Lifecycle *Lifecycle `protobuf:"bytes,3,opt,name=lifecycle,proto3" json:"lifecycle,omitempty"` // Output only. UI display hints for rendering a choice. DisplayHints *Field_SelectionOptions_Choice_DisplayHints `protobuf:"bytes,4,opt,name=display_hints,json=displayHints,proto3" json:"display_hints,omitempty"` // Output only. The capabilities related to this option when editing the // option. SchemaCapabilities *Field_SelectionOptions_Choice_SchemaCapabilities `protobuf:"bytes,5,opt,name=schema_capabilities,json=schemaCapabilities,proto3" json:"schema_capabilities,omitempty"` // Output only. The capabilities related to this choice on applied // metadata. AppliedCapabilities *Field_SelectionOptions_Choice_AppliedCapabilities `protobuf:"bytes,6,opt,name=applied_capabilities,json=appliedCapabilities,proto3" json:"applied_capabilities,omitempty"` // Output only. The user who created this choice. Creator *UserInfo `protobuf:"bytes,7,opt,name=creator,proto3" json:"creator,omitempty"` // Output only. The time this choice was created. CreateTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The user who updated this choice last. Updater *UserInfo `protobuf:"bytes,9,opt,name=updater,proto3" json:"updater,omitempty"` // Output only. The time this choice was updated last. UpdateTime *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Output only. The user who published this choice. This value has no // meaning when the choice is not published. Publisher *UserInfo `protobuf:"bytes,11,opt,name=publisher,proto3" json:"publisher,omitempty"` // Output only. The time this choice was published. This value has no // meaning when the choice is not published. PublishTime *timestamppb.Timestamp `protobuf:"bytes,12,opt,name=publish_time,json=publishTime,proto3" json:"publish_time,omitempty"` // Output only. The user who disabled this choice. This value has no // meaning when the option is not disabled. Disabler *UserInfo `protobuf:"bytes,13,opt,name=disabler,proto3" json:"disabler,omitempty"` // Output only. The time this choice was disabled. This value has no // meaning when the choice is not disabled. DisableTime *timestamppb.Timestamp `protobuf:"bytes,14,opt,name=disable_time,json=disableTime,proto3" json:"disable_time,omitempty"` // Output only. The LockStatus of this choice. LockStatus *LockStatus `protobuf:"bytes,15,opt,name=lock_status,json=lockStatus,proto3" json:"lock_status,omitempty"` // contains filtered or unexported fields }
Selection field choice.
func (*Field_SelectionOptions_Choice) Descriptor
deprecated
func (*Field_SelectionOptions_Choice) Descriptor() ([]byte, []int)
Deprecated: Use Field_SelectionOptions_Choice.ProtoReflect.Descriptor instead.
func (*Field_SelectionOptions_Choice) GetAppliedCapabilities ¶
func (x *Field_SelectionOptions_Choice) GetAppliedCapabilities() *Field_SelectionOptions_Choice_AppliedCapabilities
func (*Field_SelectionOptions_Choice) GetCreateTime ¶
func (x *Field_SelectionOptions_Choice) GetCreateTime() *timestamppb.Timestamp
func (*Field_SelectionOptions_Choice) GetCreator ¶
func (x *Field_SelectionOptions_Choice) GetCreator() *UserInfo
func (*Field_SelectionOptions_Choice) GetDisableTime ¶
func (x *Field_SelectionOptions_Choice) GetDisableTime() *timestamppb.Timestamp
func (*Field_SelectionOptions_Choice) GetDisabler ¶
func (x *Field_SelectionOptions_Choice) GetDisabler() *UserInfo
func (*Field_SelectionOptions_Choice) GetDisplayHints ¶
func (x *Field_SelectionOptions_Choice) GetDisplayHints() *Field_SelectionOptions_Choice_DisplayHints
func (*Field_SelectionOptions_Choice) GetId ¶
func (x *Field_SelectionOptions_Choice) GetId() string
func (*Field_SelectionOptions_Choice) GetLifecycle ¶
func (x *Field_SelectionOptions_Choice) GetLifecycle() *Lifecycle
func (*Field_SelectionOptions_Choice) GetLockStatus ¶
func (x *Field_SelectionOptions_Choice) GetLockStatus() *LockStatus
func (*Field_SelectionOptions_Choice) GetProperties ¶
func (x *Field_SelectionOptions_Choice) GetProperties() *Field_SelectionOptions_Choice_Properties
func (*Field_SelectionOptions_Choice) GetPublishTime ¶
func (x *Field_SelectionOptions_Choice) GetPublishTime() *timestamppb.Timestamp
func (*Field_SelectionOptions_Choice) GetPublisher ¶
func (x *Field_SelectionOptions_Choice) GetPublisher() *UserInfo
func (*Field_SelectionOptions_Choice) GetSchemaCapabilities ¶
func (x *Field_SelectionOptions_Choice) GetSchemaCapabilities() *Field_SelectionOptions_Choice_SchemaCapabilities
func (*Field_SelectionOptions_Choice) GetUpdateTime ¶
func (x *Field_SelectionOptions_Choice) GetUpdateTime() *timestamppb.Timestamp
func (*Field_SelectionOptions_Choice) GetUpdater ¶
func (x *Field_SelectionOptions_Choice) GetUpdater() *UserInfo
func (*Field_SelectionOptions_Choice) ProtoMessage ¶
func (*Field_SelectionOptions_Choice) ProtoMessage()
func (*Field_SelectionOptions_Choice) ProtoReflect ¶
func (x *Field_SelectionOptions_Choice) ProtoReflect() protoreflect.Message
func (*Field_SelectionOptions_Choice) Reset ¶
func (x *Field_SelectionOptions_Choice) Reset()
func (*Field_SelectionOptions_Choice) String ¶
func (x *Field_SelectionOptions_Choice) String() string
type Field_SelectionOptions_Choice_AppliedCapabilities ¶
type Field_SelectionOptions_Choice_AppliedCapabilities struct { // Whether the user can read related applied metadata on items. CanRead bool `protobuf:"varint,1,opt,name=can_read,json=canRead,proto3" json:"can_read,omitempty"` // Whether the user can use this choice in search queries. CanSearch bool `protobuf:"varint,2,opt,name=can_search,json=canSearch,proto3" json:"can_search,omitempty"` // Whether the user can select this choice on an item. CanSelect bool `protobuf:"varint,3,opt,name=can_select,json=canSelect,proto3" json:"can_select,omitempty"` // contains filtered or unexported fields }
The capabilities related to this choice on applied metadata.
func (*Field_SelectionOptions_Choice_AppliedCapabilities) Descriptor
deprecated
func (*Field_SelectionOptions_Choice_AppliedCapabilities) Descriptor() ([]byte, []int)
Deprecated: Use Field_SelectionOptions_Choice_AppliedCapabilities.ProtoReflect.Descriptor instead.
func (*Field_SelectionOptions_Choice_AppliedCapabilities) GetCanRead ¶
func (x *Field_SelectionOptions_Choice_AppliedCapabilities) GetCanRead() bool
func (*Field_SelectionOptions_Choice_AppliedCapabilities) GetCanSearch ¶
func (x *Field_SelectionOptions_Choice_AppliedCapabilities) GetCanSearch() bool
func (*Field_SelectionOptions_Choice_AppliedCapabilities) GetCanSelect ¶
func (x *Field_SelectionOptions_Choice_AppliedCapabilities) GetCanSelect() bool
func (*Field_SelectionOptions_Choice_AppliedCapabilities) ProtoMessage ¶
func (*Field_SelectionOptions_Choice_AppliedCapabilities) ProtoMessage()
func (*Field_SelectionOptions_Choice_AppliedCapabilities) ProtoReflect ¶
func (x *Field_SelectionOptions_Choice_AppliedCapabilities) ProtoReflect() protoreflect.Message
func (*Field_SelectionOptions_Choice_AppliedCapabilities) Reset ¶
func (x *Field_SelectionOptions_Choice_AppliedCapabilities) Reset()
func (*Field_SelectionOptions_Choice_AppliedCapabilities) String ¶
func (x *Field_SelectionOptions_Choice_AppliedCapabilities) String() string
type Field_SelectionOptions_Choice_DisplayHints ¶
type Field_SelectionOptions_Choice_DisplayHints struct { // Whether the option should be shown in the UI as disabled. Disabled bool `protobuf:"varint,1,opt,name=disabled,proto3" json:"disabled,omitempty"` // This option should be hidden in the search menu when searching for // Drive items. HiddenInSearch bool `protobuf:"varint,2,opt,name=hidden_in_search,json=hiddenInSearch,proto3" json:"hidden_in_search,omitempty"` // This option should be shown in the apply menu when applying values to // a Drive item. ShownInApply bool `protobuf:"varint,3,opt,name=shown_in_apply,json=shownInApply,proto3" json:"shown_in_apply,omitempty"` // The colors to use for the badge. Changed to Google Material colors // based on the chosen `properties.badge_config.color`. BadgeColors *BadgeColors `protobuf:"bytes,4,opt,name=badge_colors,json=badgeColors,proto3" json:"badge_colors,omitempty"` // The dark-mode color to use for the badge. Changed to Google Material // colors based on the chosen `properties.badge_config.color`. DarkBadgeColors *BadgeColors `protobuf:"bytes,5,opt,name=dark_badge_colors,json=darkBadgeColors,proto3" json:"dark_badge_colors,omitempty"` // The priority of this badge. Used to compare and sort between multiple // badges. A lower number means the badge should be shown first. // When a badging configuration is not present, this will be 0. // Otherwise, this will be set to `BadgeConfig.priority_override` or the // default heuristic which prefers creation date of the label, and field // and option priority. BadgePriority int64 `protobuf:"varint,6,opt,name=badge_priority,json=badgePriority,proto3" json:"badge_priority,omitempty"` // contains filtered or unexported fields }
UI display hints for rendering an option.
func (*Field_SelectionOptions_Choice_DisplayHints) Descriptor
deprecated
func (*Field_SelectionOptions_Choice_DisplayHints) Descriptor() ([]byte, []int)
Deprecated: Use Field_SelectionOptions_Choice_DisplayHints.ProtoReflect.Descriptor instead.
func (*Field_SelectionOptions_Choice_DisplayHints) GetBadgeColors ¶
func (x *Field_SelectionOptions_Choice_DisplayHints) GetBadgeColors() *BadgeColors
func (*Field_SelectionOptions_Choice_DisplayHints) GetBadgePriority ¶
func (x *Field_SelectionOptions_Choice_DisplayHints) GetBadgePriority() int64
func (*Field_SelectionOptions_Choice_DisplayHints) GetDarkBadgeColors ¶
func (x *Field_SelectionOptions_Choice_DisplayHints) GetDarkBadgeColors() *BadgeColors
func (*Field_SelectionOptions_Choice_DisplayHints) GetDisabled ¶
func (x *Field_SelectionOptions_Choice_DisplayHints) GetDisabled() bool
func (*Field_SelectionOptions_Choice_DisplayHints) GetHiddenInSearch ¶
func (x *Field_SelectionOptions_Choice_DisplayHints) GetHiddenInSearch() bool
func (*Field_SelectionOptions_Choice_DisplayHints) GetShownInApply ¶
func (x *Field_SelectionOptions_Choice_DisplayHints) GetShownInApply() bool
func (*Field_SelectionOptions_Choice_DisplayHints) ProtoMessage ¶
func (*Field_SelectionOptions_Choice_DisplayHints) ProtoMessage()
func (*Field_SelectionOptions_Choice_DisplayHints) ProtoReflect ¶
func (x *Field_SelectionOptions_Choice_DisplayHints) ProtoReflect() protoreflect.Message
func (*Field_SelectionOptions_Choice_DisplayHints) Reset ¶
func (x *Field_SelectionOptions_Choice_DisplayHints) Reset()
func (*Field_SelectionOptions_Choice_DisplayHints) String ¶
func (x *Field_SelectionOptions_Choice_DisplayHints) String() string
type Field_SelectionOptions_Choice_Properties ¶
type Field_SelectionOptions_Choice_Properties struct { // Required. The display text to show in the UI identifying this field. DisplayName string `protobuf:"bytes,1,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` // The description of this label. Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` // The badge configuration for this choice. When set, the // label that owns this choice is considered a "badged label". BadgeConfig *BadgeConfig `protobuf:"bytes,3,opt,name=badge_config,json=badgeConfig,proto3" json:"badge_config,omitempty"` // Input only. Insert or move this choice before the indicated choice. // If empty, the choice is placed at the end of the list. InsertBeforeChoice string `protobuf:"bytes,4,opt,name=insert_before_choice,json=insertBeforeChoice,proto3" json:"insert_before_choice,omitempty"` // contains filtered or unexported fields }
Basic properties of the choice.
func (*Field_SelectionOptions_Choice_Properties) Descriptor
deprecated
func (*Field_SelectionOptions_Choice_Properties) Descriptor() ([]byte, []int)
Deprecated: Use Field_SelectionOptions_Choice_Properties.ProtoReflect.Descriptor instead.
func (*Field_SelectionOptions_Choice_Properties) GetBadgeConfig ¶
func (x *Field_SelectionOptions_Choice_Properties) GetBadgeConfig() *BadgeConfig
func (*Field_SelectionOptions_Choice_Properties) GetDescription ¶
func (x *Field_SelectionOptions_Choice_Properties) GetDescription() string
func (*Field_SelectionOptions_Choice_Properties) GetDisplayName ¶
func (x *Field_SelectionOptions_Choice_Properties) GetDisplayName() string
func (*Field_SelectionOptions_Choice_Properties) GetInsertBeforeChoice ¶
func (x *Field_SelectionOptions_Choice_Properties) GetInsertBeforeChoice() string
func (*Field_SelectionOptions_Choice_Properties) ProtoMessage ¶
func (*Field_SelectionOptions_Choice_Properties) ProtoMessage()
func (*Field_SelectionOptions_Choice_Properties) ProtoReflect ¶
func (x *Field_SelectionOptions_Choice_Properties) ProtoReflect() protoreflect.Message
func (*Field_SelectionOptions_Choice_Properties) Reset ¶
func (x *Field_SelectionOptions_Choice_Properties) Reset()
func (*Field_SelectionOptions_Choice_Properties) String ¶
func (x *Field_SelectionOptions_Choice_Properties) String() string
type Field_SelectionOptions_Choice_SchemaCapabilities ¶
type Field_SelectionOptions_Choice_SchemaCapabilities struct { // Whether the user can update this choice. CanUpdate bool `protobuf:"varint,1,opt,name=can_update,json=canUpdate,proto3" json:"can_update,omitempty"` // Whether the user can delete this choice. CanDelete bool `protobuf:"varint,2,opt,name=can_delete,json=canDelete,proto3" json:"can_delete,omitempty"` // Whether the user can disable this choice. CanDisable bool `protobuf:"varint,3,opt,name=can_disable,json=canDisable,proto3" json:"can_disable,omitempty"` // Whether the user can enable this choice. CanEnable bool `protobuf:"varint,4,opt,name=can_enable,json=canEnable,proto3" json:"can_enable,omitempty"` // contains filtered or unexported fields }
The capabilities related to this choice when editing the choice.
func (*Field_SelectionOptions_Choice_SchemaCapabilities) Descriptor
deprecated
func (*Field_SelectionOptions_Choice_SchemaCapabilities) Descriptor() ([]byte, []int)
Deprecated: Use Field_SelectionOptions_Choice_SchemaCapabilities.ProtoReflect.Descriptor instead.
func (*Field_SelectionOptions_Choice_SchemaCapabilities) GetCanDelete ¶
func (x *Field_SelectionOptions_Choice_SchemaCapabilities) GetCanDelete() bool
func (*Field_SelectionOptions_Choice_SchemaCapabilities) GetCanDisable ¶
func (x *Field_SelectionOptions_Choice_SchemaCapabilities) GetCanDisable() bool
func (*Field_SelectionOptions_Choice_SchemaCapabilities) GetCanEnable ¶
func (x *Field_SelectionOptions_Choice_SchemaCapabilities) GetCanEnable() bool
func (*Field_SelectionOptions_Choice_SchemaCapabilities) GetCanUpdate ¶
func (x *Field_SelectionOptions_Choice_SchemaCapabilities) GetCanUpdate() bool
func (*Field_SelectionOptions_Choice_SchemaCapabilities) ProtoMessage ¶
func (*Field_SelectionOptions_Choice_SchemaCapabilities) ProtoMessage()
func (*Field_SelectionOptions_Choice_SchemaCapabilities) ProtoReflect ¶
func (x *Field_SelectionOptions_Choice_SchemaCapabilities) ProtoReflect() protoreflect.Message
func (*Field_SelectionOptions_Choice_SchemaCapabilities) Reset ¶
func (x *Field_SelectionOptions_Choice_SchemaCapabilities) Reset()
func (*Field_SelectionOptions_Choice_SchemaCapabilities) String ¶
func (x *Field_SelectionOptions_Choice_SchemaCapabilities) String() string
type Field_TextOptions ¶
type Field_TextOptions struct { // Output only. The minimum valid length of values for the text field. MinLength int32 `protobuf:"varint,1,opt,name=min_length,json=minLength,proto3" json:"min_length,omitempty"` // Output only. The maximum valid length of values for the text field. MaxLength int32 `protobuf:"varint,2,opt,name=max_length,json=maxLength,proto3" json:"max_length,omitempty"` // contains filtered or unexported fields }
Options for the Text field type.
func (*Field_TextOptions) Descriptor
deprecated
func (*Field_TextOptions) Descriptor() ([]byte, []int)
Deprecated: Use Field_TextOptions.ProtoReflect.Descriptor instead.
func (*Field_TextOptions) GetMaxLength ¶
func (x *Field_TextOptions) GetMaxLength() int32
func (*Field_TextOptions) GetMinLength ¶
func (x *Field_TextOptions) GetMinLength() int32
func (*Field_TextOptions) ProtoMessage ¶
func (*Field_TextOptions) ProtoMessage()
func (*Field_TextOptions) ProtoReflect ¶
func (x *Field_TextOptions) ProtoReflect() protoreflect.Message
func (*Field_TextOptions) Reset ¶
func (x *Field_TextOptions) Reset()
func (*Field_TextOptions) String ¶
func (x *Field_TextOptions) String() string
type Field_TextOptions_ ¶
type Field_TextOptions_ struct { // Text field options. TextOptions *Field_TextOptions `protobuf:"bytes,16,opt,name=text_options,json=textOptions,proto3,oneof"` }
type Field_UserOptions ¶
type Field_UserOptions struct { // When specified, indicates that this field supports a list of values. // Once the field is published, this cannot be changed. ListOptions *Field_ListOptions `protobuf:"bytes,1,opt,name=list_options,json=listOptions,proto3" json:"list_options,omitempty"` // contains filtered or unexported fields }
Options for the user field type.
func (*Field_UserOptions) Descriptor
deprecated
func (*Field_UserOptions) Descriptor() ([]byte, []int)
Deprecated: Use Field_UserOptions.ProtoReflect.Descriptor instead.
func (*Field_UserOptions) GetListOptions ¶
func (x *Field_UserOptions) GetListOptions() *Field_ListOptions
func (*Field_UserOptions) ProtoMessage ¶
func (*Field_UserOptions) ProtoMessage()
func (*Field_UserOptions) ProtoReflect ¶
func (x *Field_UserOptions) ProtoReflect() protoreflect.Message
func (*Field_UserOptions) Reset ¶
func (x *Field_UserOptions) Reset()
func (*Field_UserOptions) String ¶
func (x *Field_UserOptions) String() string
type Field_UserOptions_ ¶
type Field_UserOptions_ struct { // User field options. UserOptions *Field_UserOptions `protobuf:"bytes,21,opt,name=user_options,json=userOptions,proto3,oneof"` }
type GetLabelRequest ¶
type GetLabelRequest struct { // Required. Label resource name. // // May be any of: // // * `labels/{id}` (equivalent to labels/{id}@latest) // * `labels/{id}@latest` // * `labels/{id}@published` // * `labels/{id}@{revision_id}` Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Set to `true` in order to use the user's admin credentials. The server // verifies that the user is an admin for the label before allowing access. UseAdminAccess bool `protobuf:"varint,2,opt,name=use_admin_access,json=useAdminAccess,proto3" json:"use_admin_access,omitempty"` // The BCP-47 language code to use for evaluating localized field labels. // When not specified, values in the default configured language are used. LanguageCode string `protobuf:"bytes,3,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"` // When specified, only certain fields belonging to the indicated view are // returned. View LabelView `protobuf:"varint,4,opt,name=view,proto3,enum=google.apps.drive.labels.v2.LabelView" json:"view,omitempty"` // contains filtered or unexported fields }
Request to get a label by resource name.
func (*GetLabelRequest) Descriptor
deprecated
func (*GetLabelRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetLabelRequest.ProtoReflect.Descriptor instead.
func (*GetLabelRequest) GetLanguageCode ¶
func (x *GetLabelRequest) GetLanguageCode() string
func (*GetLabelRequest) GetName ¶
func (x *GetLabelRequest) GetName() string
func (*GetLabelRequest) GetUseAdminAccess ¶
func (x *GetLabelRequest) GetUseAdminAccess() bool
func (*GetLabelRequest) GetView ¶
func (x *GetLabelRequest) GetView() LabelView
func (*GetLabelRequest) ProtoMessage ¶
func (*GetLabelRequest) ProtoMessage()
func (*GetLabelRequest) ProtoReflect ¶
func (x *GetLabelRequest) ProtoReflect() protoreflect.Message
func (*GetLabelRequest) Reset ¶
func (x *GetLabelRequest) Reset()
func (*GetLabelRequest) String ¶
func (x *GetLabelRequest) String() string
type InvalidArgument ¶
type InvalidArgument struct { // Describes all violations in a client request. FieldViolations []*InvalidArgument_FieldViolation `protobuf:"bytes,1,rep,name=field_violations,json=fieldViolations,proto3" json:"field_violations,omitempty"` // contains filtered or unexported fields }
Describes violations in a request to create or update a Label or its Fields.
func (*InvalidArgument) Descriptor
deprecated
func (*InvalidArgument) Descriptor() ([]byte, []int)
Deprecated: Use InvalidArgument.ProtoReflect.Descriptor instead.
func (*InvalidArgument) GetFieldViolations ¶
func (x *InvalidArgument) GetFieldViolations() []*InvalidArgument_FieldViolation
func (*InvalidArgument) ProtoMessage ¶
func (*InvalidArgument) ProtoMessage()
func (*InvalidArgument) ProtoReflect ¶
func (x *InvalidArgument) ProtoReflect() protoreflect.Message
func (*InvalidArgument) Reset ¶
func (x *InvalidArgument) Reset()
func (*InvalidArgument) String ¶
func (x *InvalidArgument) String() string
type InvalidArgument_FieldViolation ¶
type InvalidArgument_FieldViolation struct { // The path to the field where this violation occurred. This path is // specified using `FieldMask` format: // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask Field string `protobuf:"bytes,1,opt,name=field,proto3" json:"field,omitempty"` // The detailed reason for this FieldViolation. Reason InvalidArgument_FieldViolation_Reason `` /* 137-byte string literal not displayed */ // A message that describes the violation. This message is intended to // be shown to end users, and is localized into the requesting user's // preferred language. DisplayMessage string `protobuf:"bytes,3,opt,name=display_message,json=displayMessage,proto3" json:"display_message,omitempty"` // contains filtered or unexported fields }
Describes the Field in which the violation occurred.
func (*InvalidArgument_FieldViolation) Descriptor
deprecated
func (*InvalidArgument_FieldViolation) Descriptor() ([]byte, []int)
Deprecated: Use InvalidArgument_FieldViolation.ProtoReflect.Descriptor instead.
func (*InvalidArgument_FieldViolation) GetDisplayMessage ¶
func (x *InvalidArgument_FieldViolation) GetDisplayMessage() string
func (*InvalidArgument_FieldViolation) GetField ¶
func (x *InvalidArgument_FieldViolation) GetField() string
func (*InvalidArgument_FieldViolation) GetReason ¶
func (x *InvalidArgument_FieldViolation) GetReason() InvalidArgument_FieldViolation_Reason
func (*InvalidArgument_FieldViolation) ProtoMessage ¶
func (*InvalidArgument_FieldViolation) ProtoMessage()
func (*InvalidArgument_FieldViolation) ProtoReflect ¶
func (x *InvalidArgument_FieldViolation) ProtoReflect() protoreflect.Message
func (*InvalidArgument_FieldViolation) Reset ¶
func (x *InvalidArgument_FieldViolation) Reset()
func (*InvalidArgument_FieldViolation) String ¶
func (x *InvalidArgument_FieldViolation) String() string
type InvalidArgument_FieldViolation_Reason ¶
type InvalidArgument_FieldViolation_Reason int32
Possible reasons a field is invalid.
const ( // Unknown reason. InvalidArgument_FieldViolation_REASON_UNSPECIFIED InvalidArgument_FieldViolation_Reason = 0 // The referenced field is required. InvalidArgument_FieldViolation_FIELD_REQUIRED InvalidArgument_FieldViolation_Reason = 1 // The referenced value was invalid. InvalidArgument_FieldViolation_INVALID_VALUE InvalidArgument_FieldViolation_Reason = 2 // The specified numeric value is out of the allowed range. InvalidArgument_FieldViolation_VALUE_OUT_OF_RANGE InvalidArgument_FieldViolation_Reason = 3 // The specified string value was too long. InvalidArgument_FieldViolation_STRING_VALUE_TOO_LONG InvalidArgument_FieldViolation_Reason = 4 // The number of entries exceeded the maximum. InvalidArgument_FieldViolation_MAX_ENTRIES_EXCEEDED InvalidArgument_FieldViolation_Reason = 5 // The specified field is not found in the Label. InvalidArgument_FieldViolation_FIELD_NOT_FOUND InvalidArgument_FieldViolation_Reason = 6 // The specified choice is not found in the Field. InvalidArgument_FieldViolation_CHOICE_NOT_FOUND InvalidArgument_FieldViolation_Reason = 7 )
func (InvalidArgument_FieldViolation_Reason) Descriptor ¶
func (InvalidArgument_FieldViolation_Reason) Descriptor() protoreflect.EnumDescriptor
func (InvalidArgument_FieldViolation_Reason) EnumDescriptor
deprecated
func (InvalidArgument_FieldViolation_Reason) EnumDescriptor() ([]byte, []int)
Deprecated: Use InvalidArgument_FieldViolation_Reason.Descriptor instead.
func (InvalidArgument_FieldViolation_Reason) Number ¶
func (x InvalidArgument_FieldViolation_Reason) Number() protoreflect.EnumNumber
func (InvalidArgument_FieldViolation_Reason) String ¶
func (x InvalidArgument_FieldViolation_Reason) String() string
func (InvalidArgument_FieldViolation_Reason) Type ¶
func (InvalidArgument_FieldViolation_Reason) Type() protoreflect.EnumType
type Label ¶
type Label struct { // Output only. Resource name of the label. Will be in the form of either: // `labels/{id}` or `labels/{id}@{revision_id}` depending on the request. // See `id` and `revision_id` below. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Output only. Globally unique identifier of this label. ID makes up part of // the label `name`, but unlike `name`, ID is consistent between revisions. // Matches the regex: `([a-zA-Z0-9])+` Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` // Output only. Revision ID of the label. Revision ID might be part of the // label `name` depending on the request issued. A new revision is created // whenever revisioned properties of a label are changed. Matches the regex: // `([a-zA-Z0-9])+` RevisionId string `protobuf:"bytes,3,opt,name=revision_id,json=revisionId,proto3" json:"revision_id,omitempty"` // Required. The type of label. LabelType Label_LabelType `` /* 138-byte string literal not displayed */ // Output only. The user who created this label. Creator *UserInfo `protobuf:"bytes,5,opt,name=creator,proto3" json:"creator,omitempty"` // Output only. The time this label was created. CreateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The user who created this label revision. RevisionCreator *UserInfo `protobuf:"bytes,7,opt,name=revision_creator,json=revisionCreator,proto3" json:"revision_creator,omitempty"` // Output only. The time this label revision was created. RevisionCreateTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=revision_create_time,json=revisionCreateTime,proto3" json:"revision_create_time,omitempty"` // Output only. The user who published this label. This value has no meaning // when the label is not published. Publisher *UserInfo `protobuf:"bytes,9,opt,name=publisher,proto3" json:"publisher,omitempty"` // Output only. The time this label was published. This value has no meaning // when the label is not published. PublishTime *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=publish_time,json=publishTime,proto3" json:"publish_time,omitempty"` // Output only. The user who disabled this label. This value has no meaning // when the label is not disabled. Disabler *UserInfo `protobuf:"bytes,11,opt,name=disabler,proto3" json:"disabler,omitempty"` // Output only. The time this label was disabled. This value has no meaning // when the label is not disabled. DisableTime *timestamppb.Timestamp `protobuf:"bytes,12,opt,name=disable_time,json=disableTime,proto3" json:"disable_time,omitempty"` // Required. The basic properties of the label. Properties *Label_Properties `protobuf:"bytes,14,opt,name=properties,proto3" json:"properties,omitempty"` // Output only. The lifecycle state of the label including whether it's // published, deprecated, and has draft changes. Lifecycle *Lifecycle `protobuf:"bytes,15,opt,name=lifecycle,proto3" json:"lifecycle,omitempty"` // Output only. UI display hints for rendering the label. DisplayHints *Label_DisplayHints `protobuf:"bytes,16,opt,name=display_hints,json=displayHints,proto3" json:"display_hints,omitempty"` // Output only. The capabilities related to this label on applied metadata. AppliedCapabilities *Label_AppliedCapabilities `protobuf:"bytes,17,opt,name=applied_capabilities,json=appliedCapabilities,proto3" json:"applied_capabilities,omitempty"` // Output only. The capabilities the user has on this label. SchemaCapabilities *Label_SchemaCapabilities `protobuf:"bytes,18,opt,name=schema_capabilities,json=schemaCapabilities,proto3" json:"schema_capabilities,omitempty"` // Output only. Behavior of this label when it's applied to Drive items. AppliedLabelPolicy *Label_AppliedLabelPolicy `protobuf:"bytes,19,opt,name=applied_label_policy,json=appliedLabelPolicy,proto3" json:"applied_label_policy,omitempty"` // List of fields in descending priority order. Fields []*Field `protobuf:"bytes,20,rep,name=fields,proto3" json:"fields,omitempty"` // Custom URL to present to users to allow them to learn more about this label // and how it should be used. LearnMoreUri string `protobuf:"bytes,21,opt,name=learn_more_uri,json=learnMoreUri,proto3" json:"learn_more_uri,omitempty"` // Output only. The LockStatus of this label. LockStatus *LockStatus `protobuf:"bytes,22,opt,name=lock_status,json=lockStatus,proto3" json:"lock_status,omitempty"` // contains filtered or unexported fields }
A label defines a taxonomy that can be applied to Drive items in order to organize and search across items. Labels can be simple strings, or can contain fields that describe additional metadata that can be further used to organize and search Drive items.
func (*Label) Descriptor
deprecated
func (*Label) GetAppliedCapabilities ¶
func (x *Label) GetAppliedCapabilities() *Label_AppliedCapabilities
func (*Label) GetAppliedLabelPolicy ¶
func (x *Label) GetAppliedLabelPolicy() *Label_AppliedLabelPolicy
func (*Label) GetCreateTime ¶
func (x *Label) GetCreateTime() *timestamppb.Timestamp
func (*Label) GetCreator ¶
func (*Label) GetDisableTime ¶
func (x *Label) GetDisableTime() *timestamppb.Timestamp
func (*Label) GetDisabler ¶
func (*Label) GetDisplayHints ¶
func (x *Label) GetDisplayHints() *Label_DisplayHints
func (*Label) GetLabelType ¶
func (x *Label) GetLabelType() Label_LabelType
func (*Label) GetLearnMoreUri ¶
func (*Label) GetLifecycle ¶
func (*Label) GetLockStatus ¶
func (x *Label) GetLockStatus() *LockStatus
func (*Label) GetProperties ¶
func (x *Label) GetProperties() *Label_Properties
func (*Label) GetPublishTime ¶
func (x *Label) GetPublishTime() *timestamppb.Timestamp
func (*Label) GetPublisher ¶
func (*Label) GetRevisionCreateTime ¶
func (x *Label) GetRevisionCreateTime() *timestamppb.Timestamp
func (*Label) GetRevisionCreator ¶
func (*Label) GetRevisionId ¶
func (*Label) GetSchemaCapabilities ¶
func (x *Label) GetSchemaCapabilities() *Label_SchemaCapabilities
func (*Label) ProtoMessage ¶
func (*Label) ProtoMessage()
func (*Label) ProtoReflect ¶
func (x *Label) ProtoReflect() protoreflect.Message
type LabelPermission ¶
type LabelPermission struct {
// contains filtered or unexported fields
}
The permission that applies to a principal (user, group, audience) on a label.
func (*LabelPermission) Descriptor
deprecated
func (*LabelPermission) Descriptor() ([]byte, []int)
Deprecated: Use LabelPermission.ProtoReflect.Descriptor instead.
func (*LabelPermission) ProtoMessage ¶
func (*LabelPermission) ProtoMessage()
func (*LabelPermission) ProtoReflect ¶
func (x *LabelPermission) ProtoReflect() protoreflect.Message
func (*LabelPermission) Reset ¶
func (x *LabelPermission) Reset()
func (*LabelPermission) String ¶
func (x *LabelPermission) String() string
type LabelPermission_LabelRole ¶
type LabelPermission_LabelRole int32
Roles are concentric with subsequent role.
const ( // Unknown role. LabelPermission_LABEL_ROLE_UNSPECIFIED LabelPermission_LabelRole = 0 // A reader can read the label and associated metadata applied to Drive // items. LabelPermission_READER LabelPermission_LabelRole = 1 // An applier can write associated metadata on Drive items in which they // also have write access to. Implies `READER`. LabelPermission_APPLIER LabelPermission_LabelRole = 2 // An organizer can pin this label in shared drives they manage // and add new appliers to the label. LabelPermission_ORGANIZER LabelPermission_LabelRole = 3 // Editors can make any update including deleting the label which // also deletes the associated Drive item metadata. Implies `APPLIER`. LabelPermission_EDITOR LabelPermission_LabelRole = 4 )
func (LabelPermission_LabelRole) Descriptor ¶
func (LabelPermission_LabelRole) Descriptor() protoreflect.EnumDescriptor
func (LabelPermission_LabelRole) Enum ¶
func (x LabelPermission_LabelRole) Enum() *LabelPermission_LabelRole
func (LabelPermission_LabelRole) EnumDescriptor
deprecated
func (LabelPermission_LabelRole) EnumDescriptor() ([]byte, []int)
Deprecated: Use LabelPermission_LabelRole.Descriptor instead.
func (LabelPermission_LabelRole) Number ¶
func (x LabelPermission_LabelRole) Number() protoreflect.EnumNumber
func (LabelPermission_LabelRole) String ¶
func (x LabelPermission_LabelRole) String() string
func (LabelPermission_LabelRole) Type ¶
func (LabelPermission_LabelRole) Type() protoreflect.EnumType
type LabelServiceClient ¶
type LabelServiceClient interface { // List labels. ListLabels(ctx context.Context, in *ListLabelsRequest, opts ...grpc.CallOption) (*ListLabelsResponse, error) // Get a label by its resource name. // Resource name may be any of: // // - `labels/{id}` - See `labels/{id}@latest` // - `labels/{id}@latest` - Gets the latest revision of the label. // - `labels/{id}@published` - Gets the current published revision of the // label. // - `labels/{id}@{revision_id}` - Gets the label at the specified revision // ID. GetLabel(ctx context.Context, in *GetLabelRequest, opts ...grpc.CallOption) (*Label, error) }
LabelServiceClient is the client API for LabelService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewLabelServiceClient ¶
func NewLabelServiceClient(cc grpc.ClientConnInterface) LabelServiceClient
type LabelServiceServer ¶
type LabelServiceServer interface { // List labels. ListLabels(context.Context, *ListLabelsRequest) (*ListLabelsResponse, error) // Get a label by its resource name. // Resource name may be any of: // // - `labels/{id}` - See `labels/{id}@latest` // - `labels/{id}@latest` - Gets the latest revision of the label. // - `labels/{id}@published` - Gets the current published revision of the // label. // - `labels/{id}@{revision_id}` - Gets the label at the specified revision // ID. GetLabel(context.Context, *GetLabelRequest) (*Label, error) }
LabelServiceServer is the server API for LabelService service.
type LabelView ¶
type LabelView int32
Resource view that can be applied to label responses. The default value `LABEL_VIEW_BASIC` implies the field mask: `name,id,revision_id,label_type,properties.*`\
func (LabelView) Descriptor ¶
func (LabelView) Descriptor() protoreflect.EnumDescriptor
func (LabelView) EnumDescriptor
deprecated
func (LabelView) Number ¶
func (x LabelView) Number() protoreflect.EnumNumber
func (LabelView) Type ¶
func (LabelView) Type() protoreflect.EnumType
type Label_AppliedCapabilities ¶
type Label_AppliedCapabilities struct { // Whether the user can read applied metadata related to this label. CanRead bool `protobuf:"varint,1,opt,name=can_read,json=canRead,proto3" json:"can_read,omitempty"` // Whether the user can apply this label to items. CanApply bool `protobuf:"varint,2,opt,name=can_apply,json=canApply,proto3" json:"can_apply,omitempty"` // Whether the user can remove this label from items. CanRemove bool `protobuf:"varint,3,opt,name=can_remove,json=canRemove,proto3" json:"can_remove,omitempty"` // contains filtered or unexported fields }
The capabilities a user has on this label's applied metadata.
func (*Label_AppliedCapabilities) Descriptor
deprecated
func (*Label_AppliedCapabilities) Descriptor() ([]byte, []int)
Deprecated: Use Label_AppliedCapabilities.ProtoReflect.Descriptor instead.
func (*Label_AppliedCapabilities) GetCanApply ¶
func (x *Label_AppliedCapabilities) GetCanApply() bool
func (*Label_AppliedCapabilities) GetCanRead ¶
func (x *Label_AppliedCapabilities) GetCanRead() bool
func (*Label_AppliedCapabilities) GetCanRemove ¶
func (x *Label_AppliedCapabilities) GetCanRemove() bool
func (*Label_AppliedCapabilities) ProtoMessage ¶
func (*Label_AppliedCapabilities) ProtoMessage()
func (*Label_AppliedCapabilities) ProtoReflect ¶
func (x *Label_AppliedCapabilities) ProtoReflect() protoreflect.Message
func (*Label_AppliedCapabilities) Reset ¶
func (x *Label_AppliedCapabilities) Reset()
func (*Label_AppliedCapabilities) String ¶
func (x *Label_AppliedCapabilities) String() string
type Label_AppliedLabelPolicy ¶
type Label_AppliedLabelPolicy struct { // Indicates how the applied label and field values should be copied when // a Drive item is copied. CopyMode Label_AppliedLabelPolicy_CopyMode `` /* 153-byte string literal not displayed */ // contains filtered or unexported fields }
Behavior of this label when it's applied to Drive items.
func (*Label_AppliedLabelPolicy) Descriptor
deprecated
func (*Label_AppliedLabelPolicy) Descriptor() ([]byte, []int)
Deprecated: Use Label_AppliedLabelPolicy.ProtoReflect.Descriptor instead.
func (*Label_AppliedLabelPolicy) GetCopyMode ¶
func (x *Label_AppliedLabelPolicy) GetCopyMode() Label_AppliedLabelPolicy_CopyMode
func (*Label_AppliedLabelPolicy) ProtoMessage ¶
func (*Label_AppliedLabelPolicy) ProtoMessage()
func (*Label_AppliedLabelPolicy) ProtoReflect ¶
func (x *Label_AppliedLabelPolicy) ProtoReflect() protoreflect.Message
func (*Label_AppliedLabelPolicy) Reset ¶
func (x *Label_AppliedLabelPolicy) Reset()
func (*Label_AppliedLabelPolicy) String ¶
func (x *Label_AppliedLabelPolicy) String() string
type Label_AppliedLabelPolicy_CopyMode ¶
type Label_AppliedLabelPolicy_CopyMode int32
Indicates how the applied label and field values should be copied when a Drive item is copied.
const ( // Copy mode unspecified. Label_AppliedLabelPolicy_COPY_MODE_UNSPECIFIED Label_AppliedLabelPolicy_CopyMode = 0 // The applied label and field values are not copied by default when // the Drive item it's applied to is copied. Label_AppliedLabelPolicy_DO_NOT_COPY Label_AppliedLabelPolicy_CopyMode = 1 // The applied label and field values are always copied when the // Drive item it's applied to is copied. // Only admins can use this mode. Label_AppliedLabelPolicy_ALWAYS_COPY Label_AppliedLabelPolicy_CopyMode = 2 // The applied label and field values are copied if the // label is appliable by the user making the copy. Label_AppliedLabelPolicy_COPY_APPLIABLE Label_AppliedLabelPolicy_CopyMode = 3 )
func (Label_AppliedLabelPolicy_CopyMode) Descriptor ¶
func (Label_AppliedLabelPolicy_CopyMode) Descriptor() protoreflect.EnumDescriptor
func (Label_AppliedLabelPolicy_CopyMode) Enum ¶
func (x Label_AppliedLabelPolicy_CopyMode) Enum() *Label_AppliedLabelPolicy_CopyMode
func (Label_AppliedLabelPolicy_CopyMode) EnumDescriptor
deprecated
func (Label_AppliedLabelPolicy_CopyMode) EnumDescriptor() ([]byte, []int)
Deprecated: Use Label_AppliedLabelPolicy_CopyMode.Descriptor instead.
func (Label_AppliedLabelPolicy_CopyMode) Number ¶
func (x Label_AppliedLabelPolicy_CopyMode) Number() protoreflect.EnumNumber
func (Label_AppliedLabelPolicy_CopyMode) String ¶
func (x Label_AppliedLabelPolicy_CopyMode) String() string
func (Label_AppliedLabelPolicy_CopyMode) Type ¶
func (Label_AppliedLabelPolicy_CopyMode) Type() protoreflect.EnumType
type Label_DisplayHints ¶
type Label_DisplayHints struct { // Whether the label should be shown in the UI as disabled. Disabled bool `protobuf:"varint,1,opt,name=disabled,proto3" json:"disabled,omitempty"` // This label should be hidden in the search menu when searching for Drive // items. HiddenInSearch bool `protobuf:"varint,2,opt,name=hidden_in_search,json=hiddenInSearch,proto3" json:"hidden_in_search,omitempty"` // This label should be shown in the apply menu when applying values to a // Drive item. ShownInApply bool `protobuf:"varint,3,opt,name=shown_in_apply,json=shownInApply,proto3" json:"shown_in_apply,omitempty"` // Order to display label in a list. Priority int64 `protobuf:"varint,4,opt,name=priority,proto3" json:"priority,omitempty"` // contains filtered or unexported fields }
UI display hints for rendering the label.
func (*Label_DisplayHints) Descriptor
deprecated
func (*Label_DisplayHints) Descriptor() ([]byte, []int)
Deprecated: Use Label_DisplayHints.ProtoReflect.Descriptor instead.
func (*Label_DisplayHints) GetDisabled ¶
func (x *Label_DisplayHints) GetDisabled() bool
func (*Label_DisplayHints) GetHiddenInSearch ¶
func (x *Label_DisplayHints) GetHiddenInSearch() bool
func (*Label_DisplayHints) GetPriority ¶
func (x *Label_DisplayHints) GetPriority() int64
func (*Label_DisplayHints) GetShownInApply ¶
func (x *Label_DisplayHints) GetShownInApply() bool
func (*Label_DisplayHints) ProtoMessage ¶
func (*Label_DisplayHints) ProtoMessage()
func (*Label_DisplayHints) ProtoReflect ¶
func (x *Label_DisplayHints) ProtoReflect() protoreflect.Message
func (*Label_DisplayHints) Reset ¶
func (x *Label_DisplayHints) Reset()
func (*Label_DisplayHints) String ¶
func (x *Label_DisplayHints) String() string
type Label_LabelType ¶
type Label_LabelType int32
The type of this label.
const ( // Unknown label type. Label_LABEL_TYPE_UNSPECIFIED Label_LabelType = 0 // Shared labels may be shared with users to apply to Drive items. Label_SHARED Label_LabelType = 1 // Admin-owned label. Only creatable and editable by admins. Supports some // additional admin-only features. Label_ADMIN Label_LabelType = 2 )
func (Label_LabelType) Descriptor ¶
func (Label_LabelType) Descriptor() protoreflect.EnumDescriptor
func (Label_LabelType) Enum ¶
func (x Label_LabelType) Enum() *Label_LabelType
func (Label_LabelType) EnumDescriptor
deprecated
func (Label_LabelType) EnumDescriptor() ([]byte, []int)
Deprecated: Use Label_LabelType.Descriptor instead.
func (Label_LabelType) Number ¶
func (x Label_LabelType) Number() protoreflect.EnumNumber
func (Label_LabelType) String ¶
func (x Label_LabelType) String() string
func (Label_LabelType) Type ¶
func (Label_LabelType) Type() protoreflect.EnumType
type Label_Properties ¶
type Label_Properties struct { // Required. Title of the label. Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` // The description of the label. Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` // contains filtered or unexported fields }
Basic properties of the label.
func (*Label_Properties) Descriptor
deprecated
func (*Label_Properties) Descriptor() ([]byte, []int)
Deprecated: Use Label_Properties.ProtoReflect.Descriptor instead.
func (*Label_Properties) GetDescription ¶
func (x *Label_Properties) GetDescription() string
func (*Label_Properties) GetTitle ¶
func (x *Label_Properties) GetTitle() string
func (*Label_Properties) ProtoMessage ¶
func (*Label_Properties) ProtoMessage()
func (*Label_Properties) ProtoReflect ¶
func (x *Label_Properties) ProtoReflect() protoreflect.Message
func (*Label_Properties) Reset ¶
func (x *Label_Properties) Reset()
func (*Label_Properties) String ¶
func (x *Label_Properties) String() string
type Label_SchemaCapabilities ¶
type Label_SchemaCapabilities struct { // Whether the user can change this label. CanUpdate bool `protobuf:"varint,1,opt,name=can_update,json=canUpdate,proto3" json:"can_update,omitempty"` // Whether the user can delete this label. // The user must have permission and the label must be disabled. CanDelete bool `protobuf:"varint,2,opt,name=can_delete,json=canDelete,proto3" json:"can_delete,omitempty"` // Whether the user can disable this label. // The user must have permission and this label must not already be // disabled. CanDisable bool `protobuf:"varint,3,opt,name=can_disable,json=canDisable,proto3" json:"can_disable,omitempty"` // Whether the user can enable this label. // The user must have permission and this label must be disabled. CanEnable bool `protobuf:"varint,4,opt,name=can_enable,json=canEnable,proto3" json:"can_enable,omitempty"` // contains filtered or unexported fields }
The capabilities related to this label when editing the label.
func (*Label_SchemaCapabilities) Descriptor
deprecated
func (*Label_SchemaCapabilities) Descriptor() ([]byte, []int)
Deprecated: Use Label_SchemaCapabilities.ProtoReflect.Descriptor instead.
func (*Label_SchemaCapabilities) GetCanDelete ¶
func (x *Label_SchemaCapabilities) GetCanDelete() bool
func (*Label_SchemaCapabilities) GetCanDisable ¶
func (x *Label_SchemaCapabilities) GetCanDisable() bool
func (*Label_SchemaCapabilities) GetCanEnable ¶
func (x *Label_SchemaCapabilities) GetCanEnable() bool
func (*Label_SchemaCapabilities) GetCanUpdate ¶
func (x *Label_SchemaCapabilities) GetCanUpdate() bool
func (*Label_SchemaCapabilities) ProtoMessage ¶
func (*Label_SchemaCapabilities) ProtoMessage()
func (*Label_SchemaCapabilities) ProtoReflect ¶
func (x *Label_SchemaCapabilities) ProtoReflect() protoreflect.Message
func (*Label_SchemaCapabilities) Reset ¶
func (x *Label_SchemaCapabilities) Reset()
func (*Label_SchemaCapabilities) String ¶
func (x *Label_SchemaCapabilities) String() string
type Lifecycle ¶
type Lifecycle struct { // Output only. The state of the object associated with this lifecycle. State Lifecycle_State `protobuf:"varint,1,opt,name=state,proto3,enum=google.apps.drive.labels.v2.Lifecycle_State" json:"state,omitempty"` // Output only. Whether the object associated with this lifecycle has // unpublished changes. HasUnpublishedChanges bool `` /* 127-byte string literal not displayed */ // The policy that governs how to show a disabled label, field, or selection // choice. DisabledPolicy *Lifecycle_DisabledPolicy `protobuf:"bytes,3,opt,name=disabled_policy,json=disabledPolicy,proto3" json:"disabled_policy,omitempty"` // contains filtered or unexported fields }
The lifecycle state of an object, such as label, field, or choice. The lifecycle enforces the following transitions:
* `UNPUBLISHED_DRAFT` (starting state) * `UNPUBLISHED_DRAFT` -> `PUBLISHED` * `UNPUBLISHED_DRAFT` -> (Deleted) * `PUBLISHED` -> `DISABLED` * `DISABLED` -> `PUBLISHED` * `DISABLED` -> (Deleted)
The published and disabled states have some distinct characteristics:
- Published—Some kinds of changes might be made to an object in this state, in which case `has_unpublished_changes` will be true. Also, some kinds of changes are not permitted. Generally, any change that would invalidate or cause new restrictions on existing metadata related to the label are rejected.
- Disabled—When disabled, the configured `DisabledPolicy` takes effect.
func (*Lifecycle) Descriptor
deprecated
func (*Lifecycle) GetDisabledPolicy ¶
func (x *Lifecycle) GetDisabledPolicy() *Lifecycle_DisabledPolicy
func (*Lifecycle) GetHasUnpublishedChanges ¶
func (*Lifecycle) GetState ¶
func (x *Lifecycle) GetState() Lifecycle_State
func (*Lifecycle) ProtoMessage ¶
func (*Lifecycle) ProtoMessage()
func (*Lifecycle) ProtoReflect ¶
func (x *Lifecycle) ProtoReflect() protoreflect.Message
type Lifecycle_DisabledPolicy ¶
type Lifecycle_DisabledPolicy struct { // Whether to hide this disabled object in the search menu for Drive items. // // * When `false`, the object is generally shown in the UI as disabled but // it appears in the search results when searching for Drive items. // - When `true`, the object is generally hidden in the UI when // searching for Drive items. HideInSearch bool `protobuf:"varint,1,opt,name=hide_in_search,json=hideInSearch,proto3" json:"hide_in_search,omitempty"` // Whether to show this disabled object in the apply menu on Drive items. // // - When `true`, the object is generally shown in the UI as disabled // and is unselectable. // - When `false`, the object is generally hidden in the UI. ShowInApply bool `protobuf:"varint,2,opt,name=show_in_apply,json=showInApply,proto3" json:"show_in_apply,omitempty"` // contains filtered or unexported fields }
The policy that governs how to treat a disabled label, field, or selection choice in different contexts.
func (*Lifecycle_DisabledPolicy) Descriptor
deprecated
func (*Lifecycle_DisabledPolicy) Descriptor() ([]byte, []int)
Deprecated: Use Lifecycle_DisabledPolicy.ProtoReflect.Descriptor instead.
func (*Lifecycle_DisabledPolicy) GetHideInSearch ¶
func (x *Lifecycle_DisabledPolicy) GetHideInSearch() bool
func (*Lifecycle_DisabledPolicy) GetShowInApply ¶
func (x *Lifecycle_DisabledPolicy) GetShowInApply() bool
func (*Lifecycle_DisabledPolicy) ProtoMessage ¶
func (*Lifecycle_DisabledPolicy) ProtoMessage()
func (*Lifecycle_DisabledPolicy) ProtoReflect ¶
func (x *Lifecycle_DisabledPolicy) ProtoReflect() protoreflect.Message
func (*Lifecycle_DisabledPolicy) Reset ¶
func (x *Lifecycle_DisabledPolicy) Reset()
func (*Lifecycle_DisabledPolicy) String ¶
func (x *Lifecycle_DisabledPolicy) String() string
type Lifecycle_State ¶
type Lifecycle_State int32
The state of the object associated with this lifecycle.
const ( // Unknown State. Lifecycle_STATE_UNSPECIFIED Lifecycle_State = 0 // The initial state of an object. Once published, the object can never // return to this state. Once an object is published, certain kinds of // changes are no longer permitted. Lifecycle_UNPUBLISHED_DRAFT Lifecycle_State = 1 // The object has been published. The object might have unpublished draft // changes as indicated by `has_unpublished_changes`. Lifecycle_PUBLISHED Lifecycle_State = 2 // The object has been published and has since been disabled. The object // might have unpublished draft changes as indicated by // `has_unpublished_changes`. Lifecycle_DISABLED Lifecycle_State = 3 // The object has been deleted. Lifecycle_DELETED Lifecycle_State = 4 )
func (Lifecycle_State) Descriptor ¶
func (Lifecycle_State) Descriptor() protoreflect.EnumDescriptor
func (Lifecycle_State) Enum ¶
func (x Lifecycle_State) Enum() *Lifecycle_State
func (Lifecycle_State) EnumDescriptor
deprecated
func (Lifecycle_State) EnumDescriptor() ([]byte, []int)
Deprecated: Use Lifecycle_State.Descriptor instead.
func (Lifecycle_State) Number ¶
func (x Lifecycle_State) Number() protoreflect.EnumNumber
func (Lifecycle_State) String ¶
func (x Lifecycle_State) String() string
func (Lifecycle_State) Type ¶
func (Lifecycle_State) Type() protoreflect.EnumType
type ListLabelsRequest ¶
type ListLabelsRequest struct { // Types that are assignable to Access: // // *ListLabelsRequest_UseAdminAccess // *ListLabelsRequest_MinimumRole Access isListLabelsRequest_Access `protobuf_oneof:"access"` // Whether to include only published labels in the results. // // - When `true`, only the current published label revisions are returned. // Disabled labels are included. Returned label resource names // reference the published revision (`labels/{id}/{revision_id}`). // - When `false`, the current label revisions are returned, which might not // be published. Returned label resource names don't reference a specific // revision (`labels/{id}`). PublishedOnly bool `protobuf:"varint,1,opt,name=published_only,json=publishedOnly,proto3" json:"published_only,omitempty"` // The BCP-47 language code to use for evaluating localized field labels. // When not specified, values in the default configured language are used. LanguageCode string `protobuf:"bytes,5,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"` // Maximum number of labels to return per page. Default: 50. Max: 200. PageSize int32 `protobuf:"varint,6,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // The token of the page to return. PageToken string `protobuf:"bytes,7,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // When specified, only certain fields belonging to the indicated view are // returned. View LabelView `protobuf:"varint,8,opt,name=view,proto3,enum=google.apps.drive.labels.v2.LabelView" json:"view,omitempty"` // contains filtered or unexported fields }
Request to list labels available to the current user.
func (*ListLabelsRequest) Descriptor
deprecated
func (*ListLabelsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListLabelsRequest.ProtoReflect.Descriptor instead.
func (*ListLabelsRequest) GetAccess ¶
func (m *ListLabelsRequest) GetAccess() isListLabelsRequest_Access
func (*ListLabelsRequest) GetLanguageCode ¶
func (x *ListLabelsRequest) GetLanguageCode() string
func (*ListLabelsRequest) GetMinimumRole ¶
func (x *ListLabelsRequest) GetMinimumRole() LabelPermission_LabelRole
func (*ListLabelsRequest) GetPageSize ¶
func (x *ListLabelsRequest) GetPageSize() int32
func (*ListLabelsRequest) GetPageToken ¶
func (x *ListLabelsRequest) GetPageToken() string
func (*ListLabelsRequest) GetPublishedOnly ¶
func (x *ListLabelsRequest) GetPublishedOnly() bool
func (*ListLabelsRequest) GetUseAdminAccess ¶
func (x *ListLabelsRequest) GetUseAdminAccess() bool
func (*ListLabelsRequest) GetView ¶
func (x *ListLabelsRequest) GetView() LabelView
func (*ListLabelsRequest) ProtoMessage ¶
func (*ListLabelsRequest) ProtoMessage()
func (*ListLabelsRequest) ProtoReflect ¶
func (x *ListLabelsRequest) ProtoReflect() protoreflect.Message
func (*ListLabelsRequest) Reset ¶
func (x *ListLabelsRequest) Reset()
func (*ListLabelsRequest) String ¶
func (x *ListLabelsRequest) String() string
type ListLabelsRequest_MinimumRole ¶
type ListLabelsRequest_MinimumRole struct { // Specifies the level of access the user must have on the returned Labels. // The minimum role a user must have on a label. // Defaults to `READER`. MinimumRole LabelPermission_LabelRole `` /* 130-byte string literal not displayed */ }
type ListLabelsRequest_UseAdminAccess ¶
type ListLabelsRequest_UseAdminAccess struct { // Set to `true` in order to use the user's admin credentials. This will // return all Labels within the customer. UseAdminAccess bool `protobuf:"varint,3,opt,name=use_admin_access,json=useAdminAccess,proto3,oneof"` }
type ListLabelsResponse ¶
type ListLabelsResponse struct { // Labels. Labels []*Label `protobuf:"bytes,1,rep,name=labels,proto3" json:"labels,omitempty"` // The token of the next page in the response. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` // contains filtered or unexported fields }
Response for listing Labels.
func (*ListLabelsResponse) Descriptor
deprecated
func (*ListLabelsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListLabelsResponse.ProtoReflect.Descriptor instead.
func (*ListLabelsResponse) GetLabels ¶
func (x *ListLabelsResponse) GetLabels() []*Label
func (*ListLabelsResponse) GetNextPageToken ¶
func (x *ListLabelsResponse) GetNextPageToken() string
func (*ListLabelsResponse) ProtoMessage ¶
func (*ListLabelsResponse) ProtoMessage()
func (*ListLabelsResponse) ProtoReflect ¶
func (x *ListLabelsResponse) ProtoReflect() protoreflect.Message
func (*ListLabelsResponse) Reset ¶
func (x *ListLabelsResponse) Reset()
func (*ListLabelsResponse) String ¶
func (x *ListLabelsResponse) String() string
type LockStatus ¶
type LockStatus struct { // Output only. Indicates whether this label component is the (direct) target // of a LabelLock. A label component can be implicitly locked even if it's // not the direct target of a LabelLock, in which case this field is set to // false. Locked bool `protobuf:"varint,1,opt,name=locked,proto3" json:"locked,omitempty"` // contains filtered or unexported fields }
Contains information about whether a label component should be considered locked.
func (*LockStatus) Descriptor
deprecated
func (*LockStatus) Descriptor() ([]byte, []int)
Deprecated: Use LockStatus.ProtoReflect.Descriptor instead.
func (*LockStatus) GetLocked ¶
func (x *LockStatus) GetLocked() bool
func (*LockStatus) ProtoMessage ¶
func (*LockStatus) ProtoMessage()
func (*LockStatus) ProtoReflect ¶
func (x *LockStatus) ProtoReflect() protoreflect.Message
func (*LockStatus) Reset ¶
func (x *LockStatus) Reset()
func (*LockStatus) String ¶
func (x *LockStatus) String() string
type PreconditionFailure ¶
type PreconditionFailure struct { // Describes all violations in a client request. Violation []*PreconditionFailure_Violation `protobuf:"bytes,1,rep,name=violation,proto3" json:"violation,omitempty"` // contains filtered or unexported fields }
Describes what preconditions have failed.
func (*PreconditionFailure) Descriptor
deprecated
func (*PreconditionFailure) Descriptor() ([]byte, []int)
Deprecated: Use PreconditionFailure.ProtoReflect.Descriptor instead.
func (*PreconditionFailure) GetViolation ¶
func (x *PreconditionFailure) GetViolation() []*PreconditionFailure_Violation
func (*PreconditionFailure) ProtoMessage ¶
func (*PreconditionFailure) ProtoMessage()
func (*PreconditionFailure) ProtoReflect ¶
func (x *PreconditionFailure) ProtoReflect() protoreflect.Message
func (*PreconditionFailure) Reset ¶
func (x *PreconditionFailure) Reset()
func (*PreconditionFailure) String ¶
func (x *PreconditionFailure) String() string
type PreconditionFailure_Violation ¶
type PreconditionFailure_Violation struct { // The path to the field where this violation occurred. This path is // specified using `FieldMask` format: // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask Field string `protobuf:"bytes,1,opt,name=field,proto3" json:"field,omitempty"` // The type of this violation. Reason PreconditionFailure_Violation_Reason `` /* 136-byte string literal not displayed */ // A message that describes the violation. This message is intended to // be shown to end users, and is localized into the requesting user's // preferred language. DisplayMessage string `protobuf:"bytes,3,opt,name=display_message,json=displayMessage,proto3" json:"display_message,omitempty"` // contains filtered or unexported fields }
Specific failure reason.
func (*PreconditionFailure_Violation) Descriptor
deprecated
func (*PreconditionFailure_Violation) Descriptor() ([]byte, []int)
Deprecated: Use PreconditionFailure_Violation.ProtoReflect.Descriptor instead.
func (*PreconditionFailure_Violation) GetDisplayMessage ¶
func (x *PreconditionFailure_Violation) GetDisplayMessage() string
func (*PreconditionFailure_Violation) GetField ¶
func (x *PreconditionFailure_Violation) GetField() string
func (*PreconditionFailure_Violation) GetReason ¶
func (x *PreconditionFailure_Violation) GetReason() PreconditionFailure_Violation_Reason
func (*PreconditionFailure_Violation) ProtoMessage ¶
func (*PreconditionFailure_Violation) ProtoMessage()
func (*PreconditionFailure_Violation) ProtoReflect ¶
func (x *PreconditionFailure_Violation) ProtoReflect() protoreflect.Message
func (*PreconditionFailure_Violation) Reset ¶
func (x *PreconditionFailure_Violation) Reset()
func (*PreconditionFailure_Violation) String ¶
func (x *PreconditionFailure_Violation) String() string
type PreconditionFailure_Violation_Reason ¶
type PreconditionFailure_Violation_Reason int32
The possible reasons a the violation occurred.
const ( // Unknown violation type. PreconditionFailure_Violation_REASON_UNSPECIFIED PreconditionFailure_Violation_Reason = 0 // This Resource cannot be Disabled. Only Published resources can be // Disabled. PreconditionFailure_Violation_CANNOT_DISABLE PreconditionFailure_Violation_Reason = 1 // This Resource cannot be Enabled. Only Disabled resources can be // Enabled. PreconditionFailure_Violation_CANNOT_ENABLE PreconditionFailure_Violation_Reason = 2 // This Resource cannot be Published. Only Draft or Disabled resources // can be Published. PreconditionFailure_Violation_CANNOT_PUBLISH PreconditionFailure_Violation_Reason = 3 // This Resource cannot be Unpublished. Once published, resources may // not be set in "Draft" state. PreconditionFailure_Violation_CANNOT_UNPUBLISH PreconditionFailure_Violation_Reason = 4 // This Resource cannot be Deleted. Only Disabled resources // can be Deleted. PreconditionFailure_Violation_CANNOT_DELETE PreconditionFailure_Violation_Reason = 5 // The request modified a range in a Field, but the new range does // not include the previous range. When this error happens, `field` points // at the Field where the violation occurred. PreconditionFailure_Violation_CANNOT_RESTRICT_RANGE PreconditionFailure_Violation_Reason = 6 // The specified change cannot be made to published Resources. PreconditionFailure_Violation_CANNOT_CHANGE_PUBLISHED_FIELD PreconditionFailure_Violation_Reason = 7 // The customer cannot create new labels because the maximum number // of labels for the customer has been reached. PreconditionFailure_Violation_CANNOT_CREATE_MORE_LABELS PreconditionFailure_Violation_Reason = 8 // The Field type cannot be changed because the Field has been published. PreconditionFailure_Violation_CANNOT_CHANGE_PUBLISHED_FIELD_TYPE PreconditionFailure_Violation_Reason = 9 // The Label component is locked and cannot be modified PreconditionFailure_Violation_CANNOT_MODIFY_LOCKED_COMPONENT PreconditionFailure_Violation_Reason = 10 )
func (PreconditionFailure_Violation_Reason) Descriptor ¶
func (PreconditionFailure_Violation_Reason) Descriptor() protoreflect.EnumDescriptor
func (PreconditionFailure_Violation_Reason) Enum ¶
func (x PreconditionFailure_Violation_Reason) Enum() *PreconditionFailure_Violation_Reason
func (PreconditionFailure_Violation_Reason) EnumDescriptor
deprecated
func (PreconditionFailure_Violation_Reason) EnumDescriptor() ([]byte, []int)
Deprecated: Use PreconditionFailure_Violation_Reason.Descriptor instead.
func (PreconditionFailure_Violation_Reason) Number ¶
func (x PreconditionFailure_Violation_Reason) Number() protoreflect.EnumNumber
func (PreconditionFailure_Violation_Reason) String ¶
func (x PreconditionFailure_Violation_Reason) String() string
func (PreconditionFailure_Violation_Reason) Type ¶
func (PreconditionFailure_Violation_Reason) Type() protoreflect.EnumType
type UnimplementedLabelServiceServer ¶
type UnimplementedLabelServiceServer struct { }
UnimplementedLabelServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedLabelServiceServer) GetLabel ¶
func (*UnimplementedLabelServiceServer) GetLabel(context.Context, *GetLabelRequest) (*Label, error)
func (*UnimplementedLabelServiceServer) ListLabels ¶
func (*UnimplementedLabelServiceServer) ListLabels(context.Context, *ListLabelsRequest) (*ListLabelsResponse, error)
type UserInfo ¶
type UserInfo struct { // The identifier for this user that can be used with the People API to get // more information. // For example, people/12345678. Person string `protobuf:"bytes,1,opt,name=person,proto3" json:"person,omitempty"` // contains filtered or unexported fields }
Information about a user.
func (*UserInfo) Descriptor
deprecated
func (*UserInfo) ProtoMessage ¶
func (*UserInfo) ProtoMessage()
func (*UserInfo) ProtoReflect ¶
func (x *UserInfo) ProtoReflect() protoreflect.Message