Namespace Google.Apis.DriveLabels.v2.Data
Classes
GoogleAppsDriveLabelsV2BadgeColors
The color derived from BadgeConfig and changed to the closest recommended supported color.
GoogleAppsDriveLabelsV2BadgeConfig
Badge status of the label.
GoogleAppsDriveLabelsV2BatchDeleteLabelPermissionsRequest
Deletes one of more Label Permissions.
GoogleAppsDriveLabelsV2BatchUpdateLabelPermissionsRequest
Updates one or more Label Permissions.
GoogleAppsDriveLabelsV2BatchUpdateLabelPermissionsResponse
Response for updating one or more Label Permissions.
GoogleAppsDriveLabelsV2DateLimits
Limits for date Field type.
GoogleAppsDriveLabelsV2DeleteLabelPermissionRequest
Deletes a Label Permission. Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing.
GoogleAppsDriveLabelsV2DeltaUpdateLabelRequest
The set of requests for updating aspects of a Label. If any request is not valid, no requests will be applied.
GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestCreateFieldRequest
Request to create a Field within a Label.
GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestCreateSelectionChoiceRequest
Request to create a Selection Choice.
GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDeleteFieldRequest
Request to delete the Field.
GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDeleteSelectionChoiceRequest
Request to delete a Choice.
GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDisableFieldRequest
Request to disable the Field.
GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestDisableSelectionChoiceRequest
Request to disable a Choice.
GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestEnableFieldRequest
Request to enable the Field.
GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestEnableSelectionChoiceRequest
Request to enable a Choice.
GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestRequest
A single kind of update to apply to a Label.
GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateFieldPropertiesRequest
Request to update Field properties.
GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateFieldTypeRequest
Request to change the type of a Field.
GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateLabelPropertiesRequest
Updates basic properties of a Label.
GoogleAppsDriveLabelsV2DeltaUpdateLabelRequestUpdateSelectionChoicePropertiesRequest
Request to update a Choice properties.
GoogleAppsDriveLabelsV2DeltaUpdateLabelResponse
Response for Label update.
GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseCreateFieldResponse
Response following Field create.
GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseCreateSelectionChoiceResponse
Response following Selection Choice create.
GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDeleteFieldResponse
Response following Field delete.
GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDeleteSelectionChoiceResponse
Response following Choice delete.
GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDisableFieldResponse
Response following Field disable.
GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseDisableSelectionChoiceResponse
Response following Choice disable.
GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseEnableFieldResponse
Response following Field enable.
GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseEnableSelectionChoiceResponse
Response following Choice enable.
GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseResponse
A single response from an update.
GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateFieldPropertiesResponse
Response following update to Field properties.
GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateFieldTypeResponse
Response following update to Field type.
GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateLabelPropertiesResponse
Response following update to Label properties.
GoogleAppsDriveLabelsV2DeltaUpdateLabelResponseUpdateSelectionChoicePropertiesResponse
Response following update to Selection Choice properties.
GoogleAppsDriveLabelsV2DisableLabelRequest
Request to deprecate a published Label.
GoogleAppsDriveLabelsV2EnableLabelRequest
Request to enable a label.
GoogleAppsDriveLabelsV2Field
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.
GoogleAppsDriveLabelsV2FieldAppliedCapabilities
The capabilities related to this field on applied metadata.
GoogleAppsDriveLabelsV2FieldDateOptions
Options for the date field type.
GoogleAppsDriveLabelsV2FieldDisplayHints
UI display hints for rendering a field.
GoogleAppsDriveLabelsV2FieldIntegerOptions
Options for the Integer field type.
GoogleAppsDriveLabelsV2FieldLimits
Field constants governing the structure of a Field; such as, the maximum title length, minimum and maximum field values or length, etc.
GoogleAppsDriveLabelsV2FieldListOptions
Options for a multi-valued variant of an associated field type.
GoogleAppsDriveLabelsV2FieldProperties
The basic properties of the field.
GoogleAppsDriveLabelsV2FieldSchemaCapabilities
The capabilities related to this field when editing the field.
GoogleAppsDriveLabelsV2FieldSelectionOptions
Options for the selection field type.
GoogleAppsDriveLabelsV2FieldSelectionOptionsChoice
Selection field choice.
GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceAppliedCapabilities
The capabilities related to this choice on applied metadata.
GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceDisplayHints
UI display hints for rendering an option.
GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceProperties
Basic properties of the choice.
GoogleAppsDriveLabelsV2FieldSelectionOptionsChoiceSchemaCapabilities
The capabilities related to this choice when editing the choice.
GoogleAppsDriveLabelsV2FieldTextOptions
Options for the Text field type.
GoogleAppsDriveLabelsV2FieldUserOptions
Options for the user field type.
GoogleAppsDriveLabelsV2IntegerLimits
Limits for integer Field type.
GoogleAppsDriveLabelsV2Label
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.
GoogleAppsDriveLabelsV2LabelAppliedCapabilities
The capabilities a user has on this label's applied metadata.
GoogleAppsDriveLabelsV2LabelAppliedLabelPolicy
Behavior of this label when it's applied to Drive items.
GoogleAppsDriveLabelsV2LabelDisplayHints
UI display hints for rendering the label.
GoogleAppsDriveLabelsV2LabelLimits
Label constraints governing the structure of a Label; such as, the maximum number of Fields allowed and maximum length of the label title.
GoogleAppsDriveLabelsV2LabelLock
A Lock that can be applied to a Label, Field, or Choice.
GoogleAppsDriveLabelsV2LabelLockCapabilities
A description of a user's capabilities on a LabelLock.
GoogleAppsDriveLabelsV2LabelPermission
The permission that applies to a principal (user, group, audience) on a label.
GoogleAppsDriveLabelsV2LabelProperties
Basic properties of the label.
GoogleAppsDriveLabelsV2LabelSchemaCapabilities
The capabilities related to this label when editing the label.
GoogleAppsDriveLabelsV2Lifecycle
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.
GoogleAppsDriveLabelsV2LifecycleDisabledPolicy
The policy that governs how to treat a disabled label, field, or selection choice in different contexts.
GoogleAppsDriveLabelsV2ListLabelLocksResponse
The response to a ListLabelLocksRequest.
GoogleAppsDriveLabelsV2ListLabelPermissionsResponse
Response for listing the permissions on a Label.
GoogleAppsDriveLabelsV2ListLabelsResponse
Response for listing Labels.
GoogleAppsDriveLabelsV2ListLimits
Limits for list-variant of a Field type.
GoogleAppsDriveLabelsV2LockStatus
Contains information about whether a label component should be considered locked.
GoogleAppsDriveLabelsV2LongTextLimits
Limits for long text Field type.
GoogleAppsDriveLabelsV2PublishLabelRequest
Request to publish a label.
GoogleAppsDriveLabelsV2SelectionLimits
Limits for selection Field type.
GoogleAppsDriveLabelsV2TextLimits
Limits for text Field type.
GoogleAppsDriveLabelsV2UpdateLabelCopyModeRequest
Request to update the CopyMode
of the given Label. Changes to this policy are not revisioned, do not require
publishing, and take effect immediately. \
GoogleAppsDriveLabelsV2UpdateLabelPermissionRequest
Updates a Label Permission. Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing.
GoogleAppsDriveLabelsV2UserCapabilities
The capabilities of a user.
GoogleAppsDriveLabelsV2UserInfo
Information about a user.
GoogleAppsDriveLabelsV2UserLimits
Limits for Field.Type.USER.
GoogleAppsDriveLabelsV2WriteControl
Provides control over how write requests are executed. When not specified, the last write wins.
GoogleProtobufEmpty
A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }
GoogleTypeColor
Represents a color in the RGBA color space. This representation is designed for simplicity of conversion to and
from color representations in various languages over compactness. For example, the fields of this representation
can be trivially provided to the constructor of java.awt.Color
in Java; it can also be trivially provided to
UIColor's +colorWithRed:green:blue:alpha
method in iOS; and, with just a little work, it can be easily
formatted into a CSS rgba()
string in JavaScript. This reference page doesn't have information about the
absolute color space that should be used to interpret the RGB value—for example, sRGB, Adobe RGB, DCI-P3, and
BT.2020. By default, applications should assume the sRGB color space. When color equality needs to be decided,
implementations, unless documented otherwise, treat two colors as equal if all their red, green, blue, and alpha
values each differ by at most 1e-5
. Example (Java): import com.google.type.Color; // ... public static
java.awt.Color fromProto(Color protocolor) { float alpha = protocolor.hasAlpha() ?
protocolor.getAlpha().getValue() : 1.0; return new java.awt.Color( protocolor.getRed(), protocolor.getGreen(),
protocolor.getBlue(), alpha); } public static Color toProto(java.awt.Color color) { float red = (float)
color.getRed(); float green = (float) color.getGreen(); float blue = (float) color.getBlue(); float denominator
= 255.0; Color.Builder resultBuilder = Color .newBuilder() .setRed(red / denominator) .setGreen(green /
denominator) .setBlue(blue / denominator); int alpha = color.getAlpha(); if (alpha != 255) { result.setAlpha(
FloatValue .newBuilder() .setValue(((float) alpha) / denominator) .build()); } return resultBuilder.build(); }
// ... Example (iOS / Obj-C): // ... static UIColor* fromProto(Color* protocolor) { float red = [protocolor
red]; float green = [protocolor green]; float blue = [protocolor blue]; FloatValue* alpha_wrapper = [protocolor
alpha]; float alpha = 1.0; if (alpha_wrapper != nil) { alpha = [alpha_wrapper value]; } return [UIColor
colorWithRed:red green:green blue:blue alpha:alpha]; } static Color* toProto(UIColor* color) { CGFloat red,
green, blue, alpha; if (![color getRed:&red green:&green blue:&blue
alpha:&alpha]) { return nil; } Color* result = [[Color alloc] init]; [result setRed:red]; [result
setGreen:green]; [result setBlue:blue]; if (alpha <= 0.9999) { [result
setAlpha:floatWrapperWithValue(alpha)]; } [result autorelease]; return result; } // ... Example (JavaScript): //
... var protoToCssColor = function(rgb_color) { var redFrac = rgb_color.red || 0.0; var greenFrac =
rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0; var red = Math.floor(redFrac * 255); var green =
Math.floor(greenFrac * 255); var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) { return
rgbToCssColor(red, green, blue); } var alphaFrac = rgb_color.alpha.value || 0.0; var rgbParams = [red, green,
blue].join(','); return ['rgba(', rgbParams, ',', alphaFrac, ')'].join(''); }; var rgbToCssColor = function(red,
green, blue) { var rgbNumber = new Number((red << 16) | (green << 8) | blue); var
hexString = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; var resultBuilder = ['#']; for (var
i = 0; i < missingZeros; i++) { resultBuilder.push('0'); } resultBuilder.push(hexString); return
resultBuilder.join(''); }; // ...
GoogleTypeDate
Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp