API Reference google_api_drive_labels v0.3.0
View SourceModules
API client metadata for GoogleApi.DriveLabels.V2.
API calls for all endpoints tagged Labels
.
API calls for all endpoints tagged Limits
.
API calls for all endpoints tagged Users
.
Handle Tesla connections for GoogleApi.DriveLabels.V2.
The color derived from BadgeConfig and changed to the closest recommended supported color.
Badge status of the label.
Deletes one of more Label Permissions.
Updates one or more Label Permissions.
Response for updating one or more Label Permissions.
Limits for date Field type.
Deletes a Label Permission. Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing.
The set of requests for updating aspects of a Label. If any request is not valid, no requests will be applied.
Request to create a Field within a Label.
Request to create a Selection Choice.
Request to delete the Field.
Request to delete a Choice.
Request to disable the Field.
Request to disable a Choice.
Request to enable the Field.
Request to enable a Choice.
A single kind of update to apply to a Label.
Request to update Field properties.
Request to change the type of a Field.
Updates basic properties of a Label.
Request to update a Choice properties.
Response for Label update.
Response following Field create.
Response following Selection Choice create.
Response following Field delete.
Response following Choice delete.
Response following Field disable.
Response following Choice disable.
Response following Field enable.
Response following Choice enable.
A single response from an update.
Response following update to Field properties.
Response following update to Field type.
Response following update to Label properties.
Response following update to Selection Choice properties.
Request to deprecate a published Label.
Request to enable a label.
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.
The capabilities related to this field on applied metadata.
Options for the date field type.
UI display hints for rendering a field.
Options for the Integer field type.
Field constants governing the structure of a Field; such as, the maximum title length, minimum and maximum field values or length, etc.
Options for a multi-valued variant of an associated field type.
The basic properties of the field.
The capabilities related to this field when editing the field.
Options for the selection field type.
Selection field choice.
The capabilities related to this choice on applied metadata.
UI display hints for rendering an option.
Basic properties of the choice.
The capabilities related to this choice when editing the choice.
Options for the Text field type.
Options for the user field type.
Limits for integer Field type.
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.
The capabilities a user has on this label's applied metadata.
Behavior of this label when it's applied to Drive items.
UI display hints for rendering the label.
Label constraints governing the structure of a Label; such as, the maximum number of Fields allowed and maximum length of the label title.
A Lock that can be applied to a Label, Field, or Choice.
A description of a user's capabilities on a LabelLock.
The permission that applies to a principal (user, group, audience) on a label.
Basic properties of the label.
The capabilities related to this label when editing the label.
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.
The policy that governs how to treat a disabled label, field, or selection choice in different contexts.
The response to a ListLabelLocksRequest.
Response for listing the permissions on a Label.
Response for listing Labels.
Limits for list-variant of a Field type.
Contains information about whether a label component should be considered locked.
Limits for long text Field type.
Request to publish a label.
Limits for selection Field type.
Limits for text Field type.
Request to update the CopyMode
of the given Label. Changes to this policy are not revisioned, do not require publishing, and take effect immediately. \
Updates a Label Permission. Permissions affect the Label resource as a whole, are not revisioned, and do not require publishing.
The capabilities of a user.
Information about a user.
Limits for Field.Type.USER.
Provides control over how write requests are executed. When not specified, the last write wins.
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); }
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(''); }; // ...
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