diff --git a/appengine/v1beta/appengine-api.json b/appengine/v1beta/appengine-api.json index b33ca8dc9b4..5ec2d105c21 100644 --- a/appengine/v1beta/appengine-api.json +++ b/appengine/v1beta/appengine-api.json @@ -1898,7 +1898,7 @@ } } }, - "revision": "20221205", + "revision": "20230114", "rootUrl": "https://appengine.googleapis.com/", "schemas": { "ApiConfigHandler": { @@ -2636,6 +2636,21 @@ }, "type": "object" }, + "FlexibleRuntimeSettings": { + "description": "Runtime settings for the App Engine flexible environment.", + "id": "FlexibleRuntimeSettings", + "properties": { + "operatingSystem": { + "description": "The operating system of the application runtime.", + "type": "string" + }, + "runtimeVersion": { + "description": "The runtime version of an App Engine flexible application.", + "type": "string" + } + }, + "type": "object" + }, "GoogleAppengineV1betaLocationMetadata": { "description": "Metadata for the given google.cloud.location.Location.", "id": "GoogleAppengineV1betaLocationMetadata", @@ -4118,6 +4133,10 @@ }, "type": "array" }, + "flexibleRuntimeSettings": { + "$ref": "FlexibleRuntimeSettings", + "description": "Settings for App Engine flexible runtimes." + }, "handlers": { "description": "An ordered list of URL-matching patterns that should be applied to incoming requests. The first matching URL handles the request and other request handlers are not attempted.Only returned in GET requests if view=FULL is set.", "items": { diff --git a/appengine/v1beta/appengine-gen.go b/appengine/v1beta/appengine-gen.go index a39548e00de..6b115e17f01 100644 --- a/appengine/v1beta/appengine-gen.go +++ b/appengine/v1beta/appengine-gen.go @@ -1648,6 +1648,40 @@ func (s *FirewallRule) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// FlexibleRuntimeSettings: Runtime settings for the App Engine flexible +// environment. +type FlexibleRuntimeSettings struct { + // OperatingSystem: The operating system of the application runtime. + OperatingSystem string `json:"operatingSystem,omitempty"` + + // RuntimeVersion: The runtime version of an App Engine flexible + // application. + RuntimeVersion string `json:"runtimeVersion,omitempty"` + + // ForceSendFields is a list of field names (e.g. "OperatingSystem") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "OperatingSystem") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *FlexibleRuntimeSettings) MarshalJSON() ([]byte, error) { + type NoMethod FlexibleRuntimeSettings + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleAppengineV1betaLocationMetadata: Metadata for the given // google.cloud.location.Location. type GoogleAppengineV1betaLocationMetadata struct { @@ -3990,6 +4024,9 @@ type Version struct { // page.Only returned in GET requests if view=FULL is set. ErrorHandlers []*ErrorHandler `json:"errorHandlers,omitempty"` + // FlexibleRuntimeSettings: Settings for App Engine flexible runtimes. + FlexibleRuntimeSettings *FlexibleRuntimeSettings `json:"flexibleRuntimeSettings,omitempty"` + // Handlers: An ordered list of URL-matching patterns that should be // applied to incoming requests. The first matching URL handles the // request and other request handlers are not attempted.Only returned in diff --git a/assuredworkloads/v1/assuredworkloads-api.json b/assuredworkloads/v1/assuredworkloads-api.json index da237acc68b..cd3a3a0f250 100644 --- a/assuredworkloads/v1/assuredworkloads-api.json +++ b/assuredworkloads/v1/assuredworkloads-api.json @@ -519,7 +519,7 @@ } } }, - "revision": "20221229", + "revision": "20230123", "rootUrl": "https://assuredworkloads.googleapis.com/", "schemas": { "GoogleCloudAssuredworkloadsV1AcknowledgeViolationRequest": { @@ -563,7 +563,8 @@ "ITAR", "AU_REGIONS_AND_US_SUPPORT", "ASSURED_WORKLOADS_FOR_PARTNERS", - "ISR_REGIONS" + "ISR_REGIONS", + "CA_PROTECTED_B" ], "enumDescriptions": [ "Unknown compliance regime.", @@ -579,7 +580,8 @@ "International Traffic in Arms Regulations", "Assured Workloads for Australia Regions and Support controls Available for public preview consumption. Don't create production workloads.", "Assured Workloads for Partners", - "Assured Workloads for Israel Regions" + "Assured Workloads for Israel Regions", + "Assured Workloads for Canada Protected B regime" ], "type": "string" }, @@ -907,7 +909,8 @@ "ITAR", "AU_REGIONS_AND_US_SUPPORT", "ASSURED_WORKLOADS_FOR_PARTNERS", - "ISR_REGIONS" + "ISR_REGIONS", + "CA_PROTECTED_B" ], "enumDescriptions": [ "Unknown compliance regime.", @@ -923,7 +926,8 @@ "International Traffic in Arms Regulations", "Assured Workloads for Australia Regions and Support controls Available for public preview consumption. Don't create production workloads.", "Assured Workloads for Partners", - "Assured Workloads for Israel Regions" + "Assured Workloads for Israel Regions", + "Assured Workloads for Canada Protected B regime" ], "type": "string" }, diff --git a/assuredworkloads/v1/assuredworkloads-gen.go b/assuredworkloads/v1/assuredworkloads-gen.go index 8dd1d2a8f4f..a3ee11a720a 100644 --- a/assuredworkloads/v1/assuredworkloads-gen.go +++ b/assuredworkloads/v1/assuredworkloads-gen.go @@ -268,6 +268,7 @@ type GoogleCloudAssuredworkloadsV1CreateWorkloadOperationMetadata struct { // consumption. Don't create production workloads. // "ASSURED_WORKLOADS_FOR_PARTNERS" - Assured Workloads for Partners // "ISR_REGIONS" - Assured Workloads for Israel Regions + // "CA_PROTECTED_B" - Assured Workloads for Canada Protected B regime ComplianceRegime string `json:"complianceRegime,omitempty"` // CreateTime: Optional. Time when the operation was created. @@ -765,6 +766,7 @@ type GoogleCloudAssuredworkloadsV1Workload struct { // consumption. Don't create production workloads. // "ASSURED_WORKLOADS_FOR_PARTNERS" - Assured Workloads for Partners // "ISR_REGIONS" - Assured Workloads for Israel Regions + // "CA_PROTECTED_B" - Assured Workloads for Canada Protected B regime ComplianceRegime string `json:"complianceRegime,omitempty"` // ComplianceStatus: Output only. Count of active Violations in the diff --git a/assuredworkloads/v1beta1/assuredworkloads-api.json b/assuredworkloads/v1beta1/assuredworkloads-api.json index c10b208a564..1a48aafbfc1 100644 --- a/assuredworkloads/v1beta1/assuredworkloads-api.json +++ b/assuredworkloads/v1beta1/assuredworkloads-api.json @@ -595,7 +595,7 @@ } } }, - "revision": "20221229", + "revision": "20230123", "rootUrl": "https://assuredworkloads.googleapis.com/", "schemas": { "GoogleCloudAssuredworkloadsV1beta1AcknowledgeViolationRequest": { @@ -925,7 +925,8 @@ "ITAR", "AU_REGIONS_AND_US_SUPPORT", "ASSURED_WORKLOADS_FOR_PARTNERS", - "ISR_REGIONS" + "ISR_REGIONS", + "CA_PROTECTED_B" ], "enumDescriptions": [ "Unknown compliance regime.", @@ -941,7 +942,8 @@ "International Traffic in Arms Regulations", "Assured Workloads for Australia Regions and Support controls Available for public preview consumption. Don't create production workloads.", "Assured Workloads for Partners;", - "Assured Workloads for Israel" + "Assured Workloads for Israel", + "Assured Workloads for Canada Protected B regime" ], "type": "string" }, diff --git a/assuredworkloads/v1beta1/assuredworkloads-gen.go b/assuredworkloads/v1beta1/assuredworkloads-gen.go index 5789d2889e6..fa8ba7f602f 100644 --- a/assuredworkloads/v1beta1/assuredworkloads-gen.go +++ b/assuredworkloads/v1beta1/assuredworkloads-gen.go @@ -790,6 +790,7 @@ type GoogleCloudAssuredworkloadsV1beta1Workload struct { // consumption. Don't create production workloads. // "ASSURED_WORKLOADS_FOR_PARTNERS" - Assured Workloads for Partners; // "ISR_REGIONS" - Assured Workloads for Israel + // "CA_PROTECTED_B" - Assured Workloads for Canada Protected B regime ComplianceRegime string `json:"complianceRegime,omitempty"` // ComplianceStatus: Output only. Count of active Violations in the diff --git a/cloudsearch/v1/cloudsearch-api.json b/cloudsearch/v1/cloudsearch-api.json index f369bf53bef..8c434e702e6 100644 --- a/cloudsearch/v1/cloudsearch-api.json +++ b/cloudsearch/v1/cloudsearch-api.json @@ -2077,7 +2077,7 @@ } } }, - "revision": "20221129", + "revision": "20230117", "rootUrl": "https://cloudsearch.googleapis.com/", "schemas": { "AbuseReportingConfig": { @@ -2562,61 +2562,6 @@ }, "type": "object" }, - "AppsDynamiteSharedAction": { - "description": "An action that describes the behavior when the form is submitted. For example, an Apps Script can be invoked to handle the form.", - "id": "AppsDynamiteSharedAction", - "properties": { - "function": { - "description": "Apps Script function to invoke when the containing element is clicked/activated.", - "type": "string" - }, - "interaction": { - "enum": [ - "INTERACTION_UNSPECIFIED", - "OPEN_DIALOG" - ], - "enumDescriptions": [ - "Default value if interaction is not specified.", - "A dialog opens by clicking the button." - ], - "type": "string" - }, - "loadIndicator": { - "enum": [ - "SPINNER", - "NONE" - ], - "enumDescriptions": [ - "Displays a spinner to indicate that content is loading.", - "Nothing is displayed." - ], - "type": "string" - }, - "parameters": { - "description": "List of action parameters.", - "items": { - "$ref": "AppsDynamiteSharedActionActionParameter" - }, - "type": "array" - } - }, - "type": "object" - }, - "AppsDynamiteSharedActionActionParameter": { - "description": "List of string parameters to supply when the action method is invoked. For example, consider three snooze buttons: snooze now, snooze 1 day, snooze next week. You might use action method = snooze(), passing the snooze type and snooze time in the list of string parameters.", - "id": "AppsDynamiteSharedActionActionParameter", - "properties": { - "key": { - "description": "The name of the parameter for the action script.", - "type": "string" - }, - "value": { - "description": "The value of the parameter.", - "type": "string" - } - }, - "type": "object" - }, "AppsDynamiteSharedActivityFeedAnnotationData": { "description": "Next Id: 7", "id": "AppsDynamiteSharedActivityFeedAnnotationData", @@ -2934,6 +2879,10 @@ "$ref": "GroupId", "description": "GroupId to which this attachment is uploaded." }, + "isClientSideTranscodedVideo": { + "description": "If the uploaded file is a video that has been transcoded on the client side Next tag: 18", + "type": "boolean" + }, "originalDimension": { "$ref": "AppsDynamiteSharedDimension", "description": "Original dimension of the content. Only set for image attachments." @@ -2985,80 +2934,6 @@ }, "type": "object" }, - "AppsDynamiteSharedBorderStyle": { - "description": "Represents the complete border style applied to widgets.", - "id": "AppsDynamiteSharedBorderStyle", - "properties": { - "cornerRadius": { - "description": "The corner radius for the border.", - "format": "int32", - "type": "integer" - }, - "strokeColor": { - "$ref": "Color", - "description": "The colors to use when the type is `BORDER_TYPE_STROKE`." - }, - "type": { - "description": "The border type.", - "enum": [ - "BORDER_TYPE_UNSPECIFIED", - "NO_BORDER", - "STROKE" - ], - "enumDescriptions": [ - "No value specified.", - "No border.", - "Outline." - ], - "type": "string" - } - }, - "type": "object" - }, - "AppsDynamiteSharedButton": { - "description": "A button. Can be a text button or an image button.", - "id": "AppsDynamiteSharedButton", - "properties": { - "altText": { - "description": "The alternative text used for accessibility. Has no effect when an icon is set; use `icon.alt_text` instead.", - "type": "string" - }, - "color": { - "$ref": "Color", - "description": "If set, the button is filled with a solid background." - }, - "disabled": { - "description": "If true, the button is displayed in a disabled state and doesn't respond to user actions.", - "type": "boolean" - }, - "icon": { - "$ref": "AppsDynamiteSharedIcon", - "description": "The icon image." - }, - "onClick": { - "$ref": "AppsDynamiteSharedOnClick", - "description": "The action to perform when the button is clicked." - }, - "text": { - "description": "The text of the button.", - "type": "string" - } - }, - "type": "object" - }, - "AppsDynamiteSharedButtonList": { - "description": "A list of buttons layed out horizontally.", - "id": "AppsDynamiteSharedButtonList", - "properties": { - "buttons": { - "items": { - "$ref": "AppsDynamiteSharedButton" - }, - "type": "array" - } - }, - "type": "object" - }, "AppsDynamiteSharedCalendarEventAnnotationData": { "id": "AppsDynamiteSharedCalendarEventAnnotationData", "properties": { @@ -3158,84 +3033,6 @@ }, "type": "object" }, - "AppsDynamiteSharedCard": { - "description": "A card is a UI element that can contain UI widgets such as text and images. For more information, see Cards . For example, the following JSON creates a card that has a header with the name, position, icons, and link for a contact, followed by a section with contact information like email and phone number. ``` { \"header\": { \"title\": \"Heba Salam\", \"subtitle\": \"Software Engineer\", \"imageStyle\": \"ImageStyle.AVATAR\", \"imageUrl\": \"https://example.com/heba_salam.png\", \"imageAltText\": \"Avatar for Heba Salam\" }, \"sections\" : [ { \"header\": \"Contact Info\", \"widgets\": [ { \"decorated_text\": { \"icon\": { \"knownIcon\": \"EMAIL\" }, \"content\": \"heba.salam@example.com\" } }, { \"decoratedText\": { \"icon\": { \"knownIcon\": \"PERSON\" }, \"content\": \"Online\" } }, { \"decoratedText\": { \"icon\": { \"knownIcon\": \"PHONE\" }, \"content\": \"+1 (555) 555-1234\" } }, { \"buttons\": [ { \"textButton\": { \"text\": \"Share\", }, \"onClick\": { \"openLink\": { \"url\": \"https://example.com/share\" } } }, { \"textButton\": { \"text\": \"Edit\", }, \"onClick\": { \"action\": { \"function\": \"goToView\", \"parameters\": [ { \"key\": \"viewType\", \"value\": \"EDIT\" } ], \"loadIndicator\": \"LoadIndicator.SPINNER\" } } } ] } ], \"collapsible\": true, \"uncollapsibleWidgetsCount\": 3 } ], \"cardActions\": [ { \"actionLabel\": \"Send Feedback\", \"onClick\": { \"openLink\": { \"url\": \"https://example.com/feedback\" } } } ], \"name\": \"contact-card-K3wB6arF2H9L\" } ```", - "id": "AppsDynamiteSharedCard", - "properties": { - "cardActions": { - "description": "The actions of this card. They are added to a card's generated toolbar menu. For example, the following JSON constructs a card action menu with Settings and Send Feedback options: ``` \"card_actions\": [ { \"actionLabel\": \"Setting\", \"onClick\": { \"action\": { \"functionName\": \"goToView\", \"parameters\": [ { \"key\": \"viewType\", \"value\": \"SETTING\" } ], \"loadIndicator\": \"LoadIndicator.SPINNER\" } } }, { \"actionLabel\": \"Send Feedback\", \"onClick\": { \"openLink\": { \"url\": \"https://example.com/feedback\" } } } ] ```", - "items": { - "$ref": "AppsDynamiteSharedCardCardAction" - }, - "type": "array" - }, - "header": { - "$ref": "AppsDynamiteSharedCardCardHeader", - "description": "The header of the card. A header usually contains a title and an image." - }, - "name": { - "description": "Name of the card, which is used as a identifier for the card in card navigation.", - "type": "string" - }, - "sections": { - "description": "Sections are separated by a line divider.", - "items": { - "$ref": "AppsDynamiteSharedCardSection" - }, - "type": "array" - } - }, - "type": "object" - }, - "AppsDynamiteSharedCardCardAction": { - "description": "A card action is the action associated with the card. For example, an invoice card might include actions such as delete invoice, email invoice, or open the invoice in a browser.", - "id": "AppsDynamiteSharedCardCardAction", - "properties": { - "actionLabel": { - "description": "The label that displays as the action menu item.", - "type": "string" - }, - "onClick": { - "$ref": "AppsDynamiteSharedOnClick", - "description": "The onclick action for this action item." - } - }, - "type": "object" - }, - "AppsDynamiteSharedCardCardHeader": { - "id": "AppsDynamiteSharedCardCardHeader", - "properties": { - "imageAltText": { - "description": "The alternative text of this image which is used for accessibility.", - "type": "string" - }, - "imageType": { - "description": "The image's type.", - "enum": [ - "SQUARE", - "CIRCLE" - ], - "enumDescriptions": [ - "Applies no cropping to the image.", - "Applies a circular mask to the image." - ], - "type": "string" - }, - "imageUrl": { - "description": "The URL of the image in the card header.", - "type": "string" - }, - "subtitle": { - "description": "The subtitle of the card header.", - "type": "string" - }, - "title": { - "description": "The title of the card header. The title must be specified. The header has a fixed height: if both a title and subtitle are specified, each takes up one line. If only the title is specified, it takes up both lines.", - "type": "string" - } - }, - "type": "object" - }, "AppsDynamiteSharedCardClickSuggestion": { "description": "Card click which identifies one suggestion provided by the app/bot.", "id": "AppsDynamiteSharedCardClickSuggestion", @@ -3251,33 +3048,6 @@ }, "type": "object" }, - "AppsDynamiteSharedCardSection": { - "description": "A section contains a collection of widgets that are rendered vertically in the order that they are specified. Across all platforms, cards have a narrow fixed width, so there is currently no need for layout properties, for example, float.", - "id": "AppsDynamiteSharedCardSection", - "properties": { - "collapsible": { - "description": "Indicates whether this section is collapsible. If a section is collapsible, the description must be given.", - "type": "boolean" - }, - "header": { - "description": "The header of the section. Formatted text is supported.", - "type": "string" - }, - "uncollapsibleWidgetsCount": { - "description": "The number of uncollapsible widgets. For example, when a section contains five widgets and the `numUncollapsibleWidget` is set to `2`, the first two widgets are always shown and the last three are collapsed as default. The `numUncollapsibleWidget` is taken into account only when collapsible is set to `true`.", - "format": "int32", - "type": "integer" - }, - "widgets": { - "description": "A section must contain at least 1 widget.", - "items": { - "$ref": "AppsDynamiteSharedWidget" - }, - "type": "array" - } - }, - "type": "object" - }, "AppsDynamiteSharedChatItem": { "description": "Next Id: 5", "id": "AppsDynamiteSharedChatItem", @@ -3413,7 +3183,7 @@ "A threaded room. Topics in this room are threaded, and users can reply to any topic.", "A DM with immutable group membership. It can be a 1:1 DM or a group DM with multiple human users.", "A post room. Topics in this room are organized in a post/reply style. See the design doc for more details: go/PostRoomsInDynamite. Deprecated. Post rooms are no longer supported.", - "Represents an Activity Feed space. These groups are modeled like flat rooms and contain items for users to catch up on important things. Each user should only have one group of this type. See go/activity-feed. LINT.ThenChange(//depot/google3/logs/proto/apps_dynamite/dynamite_visual_element_entry.proto:LoggingGroupType,//depot/google3/java/com/google/apps/dynamite/v1/web/ui/group/groups.js:LoggingGroupType)" + "Represents an Activity Feed space. These groups are modeled like flat rooms and contain items for users to catch up on important things. Each user should only have one group of this type. See go/activity-feed. Deprecated: The go/activity-feed project is cancelled and this should no longer be used. LINT.ThenChange(//depot/google3/logs/proto/apps_dynamite/dynamite_visual_element_entry.proto:LoggingGroupType,//depot/google3/java/com/google/apps/dynamite/v1/web/ui/group/groups.js:LoggingGroupType)" ], "type": "string" }, @@ -3432,169 +3202,46 @@ }, "type": "object" }, - "AppsDynamiteSharedColumns": { - "description": "Represents a Columns widget that displays a single row of columns.", - "id": "AppsDynamiteSharedColumns", + "AppsDynamiteSharedContentReportType": { + "description": "Denotes a type of content report a user can send.", + "id": "AppsDynamiteSharedContentReportType", "properties": { - "columnItems": { - "description": "Each card supports up to 2 columns.", - "items": { - "$ref": "AppsDynamiteSharedColumnsColumn" - }, - "type": "array" - }, - "wrapStyle": { - "description": "Controls how the column resizes based on screen width.", + "systemViolation": { + "description": "Required. Google-defined system violation, covering the most common violations.", "enum": [ - "WRAP_STYLE_UNSPECIFIED", - "NOWRAP", - "WRAP" + "VIOLATION_UNSPECIFIED", + "HARASSMENT", + "DISCRIMINATION", + "EXPLICIT_CONTENT", + "SPAM", + "CONFIDENTIAL_INFORMATION", + "SENSITIVE_INFORMATION", + "FRAUD", + "MALWARE", + "ILLEGAL_ACTIVITIES", + "OTHER" ], "enumDescriptions": [ - "Unspecified.", - "Column widgets don't wrap.", - "Column Widgets wrap." + "Default value if unset. Do not use directly. This value should not appear as a selectable violation during content reporting.", + "\"Harassment, offensive, or rude behavior\"", + "\"Discrimination or harmful stereotypes against anyone, including protected groups\"", + "\"Explicit content that's graphic, violent, or otherwise inappropriate\"", + "\"Spam\"", + "\"Confidential information\"", + "\"Sensitive information\"", + "Phishing, impersonation/misrepresentation, or deceiving other users into sharing information under false pretenses.", + "Malware, viruses, Trojan horses, corrupted files, destructive code, etc.", + "Promoting, organizing, or engaging in illegal activities.", + "\"Something else\"" ], "type": "string" } }, "type": "object" }, - "AppsDynamiteSharedColumnsColumn": { - "description": "Represents a Column that consists of widgets stacked vertically.", - "id": "AppsDynamiteSharedColumnsColumn", - "properties": { - "horizontalAlignment": { - "description": "The horizontal alignment of the column.", - "enum": [ - "HORIZONTAL_ALIGNMENT_UNSPECIFIED", - "START", - "CENTER", - "END" - ], - "enumDescriptions": [ - "Unspecified alignment.", - "Alignment to the start position.", - "Alignment to the center position.", - "Alignment to the end position." - ], - "type": "string" - }, - "horizontalSizeStyle": { - "description": "Specifies how the column content is sized horizontally.", - "enum": [ - "HORIZONTAL_SIZE_STYLE_UNSPECIFIED", - "FILL_AVAILABLE_SPACE", - "FILL_MINIMUM_SPACE" - ], - "enumDescriptions": [ - "Unspecified.", - "Fills up the available horizontal width. Default value if unspecified.", - "Fills up the minimum horizontal width." - ], - "type": "string" - }, - "verticalAlignment": { - "description": "The vertical alignment of the column.", - "enum": [ - "VERTICAL_ALIGNMENT_UNSPECIFIED", - "CENTER", - "TOP", - "BOTTOM" - ], - "enumDescriptions": [ - "Unspecified.", - "Aligns the widget in the center of the column. Default value if unspecified.", - "Aligns the widget at the top of the column.", - "Aligns the widget at the bottom of the column." - ], - "type": "string" - }, - "widgets": { - "description": "LINT.ThenChange(//google/apps/card/v1/card.proto) Array of widgets included in the column.", - "items": { - "$ref": "AppsDynamiteSharedColumnsColumnWidgets" - }, - "type": "array" - } - }, - "type": "object" - }, - "AppsDynamiteSharedColumnsColumnWidgets": { - "description": "LINT.IfChange The `column` widget can contain these widgets.", - "id": "AppsDynamiteSharedColumnsColumnWidgets", - "properties": { - "buttonList": { - "$ref": "AppsDynamiteSharedButtonList", - "description": "ButtonList widget." - }, - "dateTimePicker": { - "$ref": "AppsDynamiteSharedDateTimePicker", - "description": "DateTimePicker widget." - }, - "decoratedText": { - "$ref": "AppsDynamiteSharedDecoratedText", - "description": "DecoratedText widget." - }, - "image": { - "$ref": "AppsDynamiteSharedImage", - "description": "Image widget." - }, - "selectionInput": { - "$ref": "AppsDynamiteSharedSelectionInput", - "description": "SelectionInput widget." - }, - "textInput": { - "$ref": "AppsDynamiteSharedTextInput", - "description": "TextInput widget." - }, - "textParagraph": { - "$ref": "AppsDynamiteSharedTextParagraph", - "description": "Text paragraph widget." - } - }, - "type": "object" - }, - "AppsDynamiteSharedContentReportType": { - "description": "Denotes a type of content report a user can send.", - "id": "AppsDynamiteSharedContentReportType", - "properties": { - "systemViolation": { - "description": "Required. Google-defined system violation, covering the most common violations.", - "enum": [ - "VIOLATION_UNSPECIFIED", - "HARASSMENT", - "DISCRIMINATION", - "EXPLICIT_CONTENT", - "SPAM", - "CONFIDENTIAL_INFORMATION", - "SENSITIVE_INFORMATION", - "FRAUD", - "MALWARE", - "ILLEGAL_ACTIVITIES", - "OTHER" - ], - "enumDescriptions": [ - "Default value if unset. Do not use directly. This value should not appear as a selectable violation during content reporting.", - "\"Harassment, offensive, or rude behavior\"", - "\"Discrimination or harmful stereotypes against anyone, including protected groups\"", - "\"Explicit content that's graphic, violent, or otherwise inappropriate\"", - "\"Spam\"", - "\"Confidential information\"", - "\"Sensitive information\"", - "Phishing, impersonation/misrepresentation, or deceiving other users into sharing information under false pretenses.", - "Malware, viruses, Trojan horses, corrupted files, destructive code, etc.", - "Promoting, organizing, or engaging in illegal activities.", - "\"Something else\"" - ], - "type": "string" - } - }, - "type": "object" - }, - "AppsDynamiteSharedCustomEmoji": { - "description": "Proto representation of a custom emoji. May be used in both APIs and in Spanner, but certain fields should be restricted to one or the other. See the per-field documentation for details. NEXT_TAG: 14", - "id": "AppsDynamiteSharedCustomEmoji", + "AppsDynamiteSharedCustomEmoji": { + "description": "Proto representation of a custom emoji. May be used in both APIs and in Spanner, but certain fields should be restricted to one or the other. See the per-field documentation for details. NEXT_TAG: 14", + "id": "AppsDynamiteSharedCustomEmoji", "properties": { "blobId": { "description": "ID for the underlying image data in Blobstore. This field should *only* be present in Spanner or within the server, but should not be exposed in public APIs.", @@ -3664,132 +3311,6 @@ }, "type": "object" }, - "AppsDynamiteSharedDateTimePicker": { - "description": "The widget that lets users to specify a date and time.", - "id": "AppsDynamiteSharedDateTimePicker", - "properties": { - "label": { - "description": "The label for the field that displays to the user.", - "type": "string" - }, - "name": { - "description": "The name of the text input that's used in formInput, and uniquely identifies this input.", - "type": "string" - }, - "onChangeAction": { - "$ref": "AppsDynamiteSharedAction", - "description": "Triggered when the user clicks Save or Clear from the date/time picker dialog. This is only triggered if the value changed as a result of the Save/Clear operation." - }, - "timezoneOffsetDate": { - "description": "The number representing the time zone offset from UTC, in minutes. If set, the `value_ms_epoch` is displayed in the specified time zone. If not set, it uses the user's time zone setting on the client side.", - "format": "int32", - "type": "integer" - }, - "type": { - "description": "The type of the date/time picker.", - "enum": [ - "DATE_AND_TIME", - "DATE_ONLY", - "TIME_ONLY" - ], - "enumDescriptions": [ - "The user can select a date and time.", - "The user can only select a date.", - "The user can only select a time." - ], - "type": "string" - }, - "valueMsEpoch": { - "description": "The value to display as the default value before user input or previous user input. It is represented in milliseconds (Epoch time). For `DATE_AND_TIME` type, the full epoch value is used. For `DATE_ONLY` type, only date of the epoch time is used. For `TIME_ONLY` type, only time of the epoch time is used. For example, you can set epoch time to `3 * 60 * 60 * 1000` to represent 3am.", - "format": "int64", - "type": "string" - } - }, - "type": "object" - }, - "AppsDynamiteSharedDecoratedText": { - "description": "A widget that displays text with optional decorations such as a label above or below the text, an icon in front of the text, a selection widget or a button after the text.", - "id": "AppsDynamiteSharedDecoratedText", - "properties": { - "bottomLabel": { - "description": "The formatted text label that shows below the main text.", - "type": "string" - }, - "button": { - "$ref": "AppsDynamiteSharedButton", - "description": "A button that can be clicked to trigger an action." - }, - "endIcon": { - "$ref": "AppsDynamiteSharedIcon", - "description": "An icon displayed after the text." - }, - "icon": { - "$ref": "AppsDynamiteSharedIcon", - "description": "Deprecated in favor of start_icon." - }, - "onClick": { - "$ref": "AppsDynamiteSharedOnClick", - "description": "Only the top and bottom label and content region are clickable." - }, - "startIcon": { - "$ref": "AppsDynamiteSharedIcon", - "description": "The icon displayed in front of the text." - }, - "switchControl": { - "$ref": "AppsDynamiteSharedDecoratedTextSwitchControl", - "description": "A switch widget can be clicked to change its state or trigger an action." - }, - "text": { - "description": "Required. The main widget formatted text. See Text formatting for details.", - "type": "string" - }, - "topLabel": { - "description": "The formatted text label that shows above the main text.", - "type": "string" - }, - "wrapText": { - "description": "The wrap text setting. If `true`, the text is wrapped and displayed in multiline. Otherwise, the text is truncated.", - "type": "boolean" - } - }, - "type": "object" - }, - "AppsDynamiteSharedDecoratedTextSwitchControl": { - "id": "AppsDynamiteSharedDecoratedTextSwitchControl", - "properties": { - "controlType": { - "description": "The control type, either switch or checkbox.", - "enum": [ - "SWITCH", - "CHECKBOX", - "CHECK_BOX" - ], - "enumDescriptions": [ - "", - "Deprecated in favor of `CHECK_BOX`.", - "" - ], - "type": "string" - }, - "name": { - "description": "The name of the switch widget that's used in formInput.", - "type": "string" - }, - "onChangeAction": { - "$ref": "AppsDynamiteSharedAction", - "description": "The action when the switch state is changed." - }, - "selected": { - "description": "If the switch is selected.", - "type": "boolean" - }, - "value": { - "description": "The value is what is passed back in the callback.", - "type": "string" - } - }, - "type": "object" - }, "AppsDynamiteSharedDimension": { "description": "Dimension for the uploaded attachments.", "id": "AppsDynamiteSharedDimension", @@ -3805,12 +3326,6 @@ }, "type": "object" }, - "AppsDynamiteSharedDivider": { - "description": "A divider that appears in between widgets.", - "id": "AppsDynamiteSharedDivider", - "properties": {}, - "type": "object" - }, "AppsDynamiteSharedDlpMetricsMetadata": { "description": "LINT.IfChange", "id": "AppsDynamiteSharedDlpMetricsMetadata", @@ -3906,97 +3421,13 @@ }, "type": "object" }, - "AppsDynamiteSharedGrid": { - "description": "Represents a Grid widget that displays items in a configurable grid layout.", - "id": "AppsDynamiteSharedGrid", + "AppsDynamiteSharedGroupDetails": { + "description": "NEXT TAG: 3 A GroupDetails proto will store the information pertaining to single Group.", + "id": "AppsDynamiteSharedGroupDetails", "properties": { - "borderStyle": { - "$ref": "AppsDynamiteSharedBorderStyle", - "description": "The border style to apply to each grid item." - }, - "columnCount": { - "description": "The number of columns to display in the grid. A default value is used if this field isn't specified, and that default value is different depending on where the grid is shown (dialog versus companion).", - "format": "int32", - "type": "integer" - }, - "items": { - "description": "The items to display in the grid.", - "items": { - "$ref": "AppsDynamiteSharedGridGridItem" - }, - "type": "array" - }, - "onClick": { - "$ref": "AppsDynamiteSharedOnClick", - "description": "This callback is reused by each individual grid item, but with the item's identifier and index in the items list added to the callback's parameters." - }, - "title": { - "description": "The text that displays in the grid header.", - "type": "string" - } - }, - "type": "object" - }, - "AppsDynamiteSharedGridGridItem": { - "description": "Represents a single item in the grid layout.", - "id": "AppsDynamiteSharedGridGridItem", - "properties": { - "id": { - "description": "A user-specified identifier for this grid item. This identifier is returned in the parent Grid's onClick callback parameters.", - "type": "string" - }, - "image": { - "$ref": "AppsDynamiteSharedImageComponent", - "description": "The image that displays in the grid item." - }, - "layout": { - "description": "The layout to use for the grid item.", - "enum": [ - "GRID_ITEM_LAYOUT_UNSPECIFIED", - "TEXT_BELOW", - "TEXT_ABOVE" - ], - "enumDescriptions": [ - "No layout specified.", - "The title and subtitle are shown below the grid item's image.", - "The title and subtitle are shown above the grid item's image." - ], - "type": "string" - }, - "subtitle": { - "description": "The grid item's subtitle.", - "type": "string" - }, - "textAlignment": { - "description": "The horizontal alignment of the grid item's text.", - "enum": [ - "HORIZONTAL_ALIGNMENT_UNSPECIFIED", - "START", - "CENTER", - "END" - ], - "enumDescriptions": [ - "Unspecified alignment.", - "Alignment to the start position.", - "Alignment to the center position.", - "Alignment to the end position." - ], - "type": "string" - }, - "title": { - "description": "The grid item's title.", - "type": "string" - } - }, - "type": "object" - }, - "AppsDynamiteSharedGroupDetails": { - "description": "NEXT TAG: 3 A GroupDetails proto will store the information pertaining to single Group.", - "id": "AppsDynamiteSharedGroupDetails", - "properties": { - "description": { - "description": "A simple text that describes the purpose of a single Group, the general theme of the topics to be posted and/or the denominator of the Group participants.", - "type": "string" + "description": { + "description": "A simple text that describes the purpose of a single Group, the general theme of the topics to be posted and/or the denominator of the Group participants.", + "type": "string" }, "guidelines": { "description": "A simple text describing the rules and expectations from members when participating in conversation.", @@ -4024,106 +3455,6 @@ }, "type": "object" }, - "AppsDynamiteSharedIcon": { - "id": "AppsDynamiteSharedIcon", - "properties": { - "altText": { - "description": "The description of the icon, used for accessibility. The default value is provided if you don't specify one.", - "type": "string" - }, - "iconUrl": { - "description": "The icon specified by a URL.", - "type": "string" - }, - "imageType": { - "description": "The crop style applied to the image. In some cases, applying a `CIRCLE` crop causes the image to be drawn larger than a standard icon.", - "enum": [ - "SQUARE", - "CIRCLE" - ], - "enumDescriptions": [ - "Applies no cropping to the image.", - "Applies a circular mask to the image." - ], - "type": "string" - }, - "knownIcon": { - "description": "The icon specified by the string name of a list of known icons", - "type": "string" - } - }, - "type": "object" - }, - "AppsDynamiteSharedImage": { - "description": "An image that is specified by a URL and can have an onClick action.", - "id": "AppsDynamiteSharedImage", - "properties": { - "altText": { - "description": "The alternative text of this image, used for accessibility.", - "type": "string" - }, - "imageUrl": { - "description": "An image URL.", - "type": "string" - }, - "onClick": { - "$ref": "AppsDynamiteSharedOnClick" - } - }, - "type": "object" - }, - "AppsDynamiteSharedImageComponent": { - "id": "AppsDynamiteSharedImageComponent", - "properties": { - "altText": { - "description": "The accessibility label for the image.", - "type": "string" - }, - "borderStyle": { - "$ref": "AppsDynamiteSharedBorderStyle", - "description": "The border style to apply to the image." - }, - "cropStyle": { - "$ref": "AppsDynamiteSharedImageCropStyle", - "description": "The crop style to apply to the image." - }, - "imageUri": { - "description": "The image URL.", - "type": "string" - } - }, - "type": "object" - }, - "AppsDynamiteSharedImageCropStyle": { - "description": "Represents the crop style applied to an image.", - "id": "AppsDynamiteSharedImageCropStyle", - "properties": { - "aspectRatio": { - "description": "The aspect ratio to use if the crop type is `RECTANGLE_CUSTOM`.", - "format": "double", - "type": "number" - }, - "type": { - "description": "The crop type.", - "enum": [ - "IMAGE_CROP_TYPE_UNSPECIFIED", - "SQUARE", - "CIRCLE", - "RECTANGLE_CUSTOM", - "RECTANGLE_4_3" - ], - "enumDescriptions": [ - "No value specified.", - "Applies a square crop.", - "Applies a circular crop.", - "Applies a rectangular crop with a custom aspect ratio.", - "Applies a rectangular crop with a 4:3 aspect ratio." - ], - "type": "string" - } - }, - "type": "object" - }, "AppsDynamiteSharedJustification": { "description": "Data for rendering a justification for a document.", "id": "AppsDynamiteSharedJustification", @@ -4258,116 +3589,6 @@ }, "type": "object" }, - "AppsDynamiteSharedOnClick": { - "id": "AppsDynamiteSharedOnClick", - "properties": { - "action": { - "$ref": "AppsDynamiteSharedAction", - "description": "If specified, an action is triggered by this onClick." - }, - "hostAppAction": { - "$ref": "HostAppActionMarkup", - "description": "Triggers host app action on click directly without invoking form actions. This is currently not available to end-users and is used internal only." - }, - "openDynamicLinkAction": { - "$ref": "AppsDynamiteSharedAction", - "description": "An add-on triggers this action when the action needs to open a link. This differs from the open_link above in that this needs to talk to server to get the link. Thus some preparation work is required for web client to do before the open link action response comes back." - }, - "openLink": { - "$ref": "AppsDynamiteSharedOpenLink", - "description": "If specified, this onClick triggers an open link action." - } - }, - "type": "object" - }, - "AppsDynamiteSharedOpenLink": { - "id": "AppsDynamiteSharedOpenLink", - "properties": { - "appUri": { - "$ref": "AppsDynamiteSharedOpenLinkAppUri", - "description": "Represents the platform specific uri/intent to open on each client. For example: A companion_url will open in a companion window on the web. An iOS URL and android intent will open in the corresponding hosting apps. If these platform specific URLs can't be handled correctly, i.e. if the companion isn't supported on web and the hosting apps aren't available on the mobile platforms then the `uri` will open in a new browser window on all the platforms." - }, - "onClose": { - "enum": [ - "NOTHING", - "RELOAD" - ], - "enumDescriptions": [ - "Doesn’t reload the card after the child window closes. Reloads the card after the child window closes. If used in conjunction with [OpenAs.OVERLAY](/workspace/add-ons/reference/rpc/google.apps.card.v1#openas), the child window acts as a modal dialog and the main card is blocked until the child window closes.", - "" - ], - "type": "string" - }, - "openAs": { - "enum": [ - "FULL_SIZE", - "OVERLAY" - ], - "enumDescriptions": [ - "The link opens as a full size window (if that's the frame used by the client.", - "The link opens as an overlay, such as a pop-up." - ], - "type": "string" - }, - "url": { - "description": "The URL to open.", - "type": "string" - } - }, - "type": "object" - }, - "AppsDynamiteSharedOpenLinkAppUri": { - "description": "Represents the platform specific uri/intent to open for each client.", - "id": "AppsDynamiteSharedOpenLinkAppUri", - "properties": { - "androidIntent": { - "$ref": "AppsDynamiteSharedOpenLinkAppUriIntent", - "description": "An intent object to be opened in the corresponding android hosting app." - }, - "companionUri": { - "description": "A companion uri string to be opened in the chat companion window. on the web.", - "type": "string" - }, - "iosUri": { - "description": "A uri string to be opened in the corresponding iOS hosting app.", - "type": "string" - } - }, - "type": "object" - }, - "AppsDynamiteSharedOpenLinkAppUriIntent": { - "description": "Android intent.", - "id": "AppsDynamiteSharedOpenLinkAppUriIntent", - "properties": { - "extraData": { - "description": "A list of extra data for the android intent. For example, for a calendar event edit intent, the event title information can be passed as extra data.", - "items": { - "$ref": "AppsDynamiteSharedOpenLinkAppUriIntentExtraData" - }, - "type": "array" - }, - "intentAction": { - "description": "An android intent action string for the {@link android.content.Intent} object. For example: for the view intent action type, a valid value will be android.content.Intent.ACTION_VIEW.", - "type": "string" - } - }, - "type": "object" - }, - "AppsDynamiteSharedOpenLinkAppUriIntentExtraData": { - "description": "Extra data for an android intent. Valid keys are defined in the hosting app contract.", - "id": "AppsDynamiteSharedOpenLinkAppUriIntentExtraData", - "properties": { - "key": { - "description": "A key for the intent extra data.", - "type": "string" - }, - "value": { - "description": "Value for the given extra data key.", - "type": "string" - } - }, - "type": "object" - }, "AppsDynamiteSharedOrganizationInfo": { "description": "Contains info about the entity that something is, or is owned by.", "id": "AppsDynamiteSharedOrganizationInfo", @@ -4514,25 +3735,1011 @@ }, "type": "object" }, - "AppsDynamiteSharedSegmentedMembershipCounts": { - "id": "AppsDynamiteSharedSegmentedMembershipCounts", + "AppsDynamiteSharedSegmentedMembershipCounts": { + "id": "AppsDynamiteSharedSegmentedMembershipCounts", + "properties": { + "value": { + "items": { + "$ref": "AppsDynamiteSharedSegmentedMembershipCount" + }, + "type": "array" + } + }, + "type": "object" + }, + "AppsDynamiteSharedSpaceInfo": { + "description": "Defines the representation of a single matching space.", + "id": "AppsDynamiteSharedSpaceInfo", + "properties": { + "avatarInfo": { + "$ref": "AppsDynamiteSharedAvatarInfo" + }, + "avatarUrl": { + "type": "string" + }, + "description": { + "type": "string" + }, + "groupId": { + "$ref": "GroupId" + }, + "inviterEmail": { + "description": "The email address of the user that invited the calling user to the room, if available. This field will only be populated for direct invites, it will be empty if the user was indirectly invited to the group.", + "type": "string" + }, + "isExternal": { + "description": "Whether this is a space that enables guest access", + "type": "boolean" + }, + "name": { + "type": "string" + }, + "numMembers": { + "format": "int32", + "type": "integer" + }, + "userMembershipState": { + "description": "searching user's membership state in this space", + "enum": [ + "MEMBER_UNKNOWN", + "MEMBER_INVITED", + "MEMBER_JOINED", + "MEMBER_NOT_A_MEMBER", + "MEMBER_FAILED" + ], + "enumDescriptions": [ + "Default state, do not use", + "An invitation to the space has been sent", + "User has joined the space", + "User is not a member", + "This state should never be stored in Spanner. It is a state for responses to the clients to indicate that membership mutations have failed and the member is in its previous state." + ], + "type": "string" + } + }, + "type": "object" + }, + "AppsDynamiteSharedTasksAnnotationData": { + "description": "This is the internal version of the API proto at google3/google/chat/v1/gsuite_message_integration.proto", + "id": "AppsDynamiteSharedTasksAnnotationData", + "properties": { + "assigneeChange": { + "$ref": "AppsDynamiteSharedTasksAnnotationDataAssigneeChange" + }, + "completionChange": { + "$ref": "AppsDynamiteSharedTasksAnnotationDataCompletionChange" + }, + "creation": { + "$ref": "AppsDynamiteSharedTasksAnnotationDataCreation" + }, + "deletionChange": { + "$ref": "AppsDynamiteSharedTasksAnnotationDataDeletionChange" + }, + "taskId": { + "description": "ID of task. Will be used to create deep links to Tasks.", + "type": "string" + }, + "taskProperties": { + "$ref": "AppsDynamiteSharedTasksAnnotationDataTaskProperties", + "description": "Task properties after the update has been applied." + }, + "userDefinedMessage": { + "$ref": "AppsDynamiteSharedTasksAnnotationDataUserDefinedMessage" + } + }, + "type": "object" + }, + "AppsDynamiteSharedTasksAnnotationDataAssigneeChange": { + "id": "AppsDynamiteSharedTasksAnnotationDataAssigneeChange", + "properties": { + "oldAssignee": { + "$ref": "UserId", + "description": "Obfuscated user ID of previous assignee. Not set if the task was originally not assigned." + } + }, + "type": "object" + }, + "AppsDynamiteSharedTasksAnnotationDataCompletionChange": { + "id": "AppsDynamiteSharedTasksAnnotationDataCompletionChange", + "properties": {}, + "type": "object" + }, + "AppsDynamiteSharedTasksAnnotationDataCreation": { + "id": "AppsDynamiteSharedTasksAnnotationDataCreation", + "properties": {}, + "type": "object" + }, + "AppsDynamiteSharedTasksAnnotationDataDeletionChange": { + "id": "AppsDynamiteSharedTasksAnnotationDataDeletionChange", + "properties": {}, + "type": "object" + }, + "AppsDynamiteSharedTasksAnnotationDataTaskProperties": { + "description": "All relevant task properties for a Chat message.", + "id": "AppsDynamiteSharedTasksAnnotationDataTaskProperties", + "properties": { + "assignee": { + "$ref": "UserId", + "description": "Obfuscated user ID of new assignee. Not set if the task doesn't have an assignee." + }, + "completed": { + "description": "Whether the task is marked as completed.", + "type": "boolean" + }, + "deleted": { + "description": "Whether the task is marked as deleted.", + "type": "boolean" + }, + "description": { + "description": "The description of the task. If Task original description's length is greater than 1024, then Task BE sends the truncated description to Dynamite Integration Server.", + "type": "string" + }, + "startDate": { + "$ref": "Date", + "description": "Set if the task has a date but no time. Source of truth in Tasks BE: http://shortn/_wyT7eB4Ixv" + }, + "startTime": { + "description": "Set if the task has both a date and a time. Source of truth in Tasks BE: http://shortn/_u6cr0F5ttE", + "format": "google-datetime", + "type": "string" + }, + "title": { + "description": "The title of the task.", + "type": "string" + } + }, + "type": "object" + }, + "AppsDynamiteSharedTasksAnnotationDataUserDefinedMessage": { + "description": "Used for task card attachments on custom user messages that should be kept as is without generating an i18n event message, e.g. the user starts a conversation from an existing task. IMPORTANT: please don't populate this field yet as it could break existing flows until it's implemented. See code at http://shortn/_CM74CdENMx used by http://shortn/_5o85POJY8Q.", + "id": "AppsDynamiteSharedTasksAnnotationDataUserDefinedMessage", + "properties": {}, + "type": "object" + }, + "AppsDynamiteSharedTasksMessageIntegrationPayload": { + "description": "A payload containing Tasks metadata for rendering a live card. Currently not used by the Tasks integration.", + "id": "AppsDynamiteSharedTasksMessageIntegrationPayload", + "properties": {}, + "type": "object" + }, + "AppsDynamiteSharedUserBlockRelationship": { + "description": "User-block relationship", + "id": "AppsDynamiteSharedUserBlockRelationship", + "properties": { + "hasBlockedRequester": { + "type": "boolean" + }, + "isBlockedByRequester": { + "type": "boolean" + } + }, + "type": "object" + }, + "AppsDynamiteSharedVideoReference": { + "description": "Reference to a transcoded video attachment.", + "id": "AppsDynamiteSharedVideoReference", + "properties": { + "format": { + "description": "Available transcode format. Value is defined in video/storage/proto/content_header.proto", + "items": { + "format": "int32", + "type": "integer" + }, + "type": "array" + }, + "status": { + "description": "Transcode status", + "enum": [ + "UNKNOWN_STATUS", + "SUCCESS", + "ERROR", + "NOT_APPLICABLE", + "THUMBNAIL_SUCCESS", + "GO_LIVE_SUCCESS" + ], + "enumDescriptions": [ + "", + "", + "", + "", + "", + "" + ], + "type": "string" + } + }, + "type": "object" + }, + "AppsDynamiteStorageAction": { + "description": "An action that describes the behavior when the form is submitted. For example, an Apps Script can be invoked to handle the form.", + "id": "AppsDynamiteStorageAction", + "properties": { + "function": { + "description": "Apps Script function to invoke when the containing element is clicked/activated.", + "type": "string" + }, + "interaction": { + "enum": [ + "INTERACTION_UNSPECIFIED", + "OPEN_DIALOG" + ], + "enumDescriptions": [ + "Default value if interaction is not specified.", + "A dialog opens by clicking the button." + ], + "type": "string" + }, + "loadIndicator": { + "enum": [ + "SPINNER", + "NONE" + ], + "enumDescriptions": [ + "Displays a spinner to indicate that content is loading.", + "Nothing is displayed." + ], + "type": "string" + }, + "parameters": { + "description": "List of action parameters.", + "items": { + "$ref": "AppsDynamiteStorageActionActionParameter" + }, + "type": "array" + } + }, + "type": "object" + }, + "AppsDynamiteStorageActionActionParameter": { + "description": "List of string parameters to supply when the action method is invoked. For example, consider three snooze buttons: snooze now, snooze 1 day, snooze next week. You might use action method = snooze(), passing the snooze type and snooze time in the list of string parameters.", + "id": "AppsDynamiteStorageActionActionParameter", + "properties": { + "key": { + "description": "The name of the parameter for the action script.", + "type": "string" + }, + "value": { + "description": "The value of the parameter.", + "type": "string" + } + }, + "type": "object" + }, + "AppsDynamiteStorageBorderStyle": { + "description": "Represents the complete border style applied to widgets.", + "id": "AppsDynamiteStorageBorderStyle", + "properties": { + "cornerRadius": { + "description": "The corner radius for the border.", + "format": "int32", + "type": "integer" + }, + "strokeColor": { + "$ref": "Color", + "description": "The colors to use when the type is `BORDER_TYPE_STROKE`." + }, + "type": { + "description": "The border type.", + "enum": [ + "BORDER_TYPE_UNSPECIFIED", + "NO_BORDER", + "STROKE" + ], + "enumDescriptions": [ + "No value specified.", + "No border.", + "Outline." + ], + "type": "string" + } + }, + "type": "object" + }, + "AppsDynamiteStorageButton": { + "description": "A button. Can be a text button or an image button.", + "id": "AppsDynamiteStorageButton", + "properties": { + "altText": { + "description": "The alternative text used for accessibility. Has no effect when an icon is set; use `icon.alt_text` instead.", + "type": "string" + }, + "color": { + "$ref": "Color", + "description": "If set, the button is filled with a solid background." + }, + "disabled": { + "description": "If true, the button is displayed in a disabled state and doesn't respond to user actions.", + "type": "boolean" + }, + "icon": { + "$ref": "AppsDynamiteStorageIcon", + "description": "The icon image." + }, + "onClick": { + "$ref": "AppsDynamiteStorageOnClick", + "description": "The action to perform when the button is clicked." + }, + "text": { + "description": "The text of the button.", + "type": "string" + } + }, + "type": "object" + }, + "AppsDynamiteStorageButtonList": { + "description": "A list of buttons layed out horizontally.", + "id": "AppsDynamiteStorageButtonList", + "properties": { + "buttons": { + "items": { + "$ref": "AppsDynamiteStorageButton" + }, + "type": "array" + } + }, + "type": "object" + }, + "AppsDynamiteStorageCard": { + "description": "A card is a UI element that can contain UI widgets such as text and images. For more information, see Cards . For example, the following JSON creates a card that has a header with the name, position, icons, and link for a contact, followed by a section with contact information like email and phone number. ``` { \"header\": { \"title\": \"Heba Salam\", \"subtitle\": \"Software Engineer\", \"imageStyle\": \"ImageStyle.AVATAR\", \"imageUrl\": \"https://example.com/heba_salam.png\", \"imageAltText\": \"Avatar for Heba Salam\" }, \"sections\" : [ { \"header\": \"Contact Info\", \"widgets\": [ { \"decorated_text\": { \"icon\": { \"knownIcon\": \"EMAIL\" }, \"content\": \"heba.salam@example.com\" } }, { \"decoratedText\": { \"icon\": { \"knownIcon\": \"PERSON\" }, \"content\": \"Online\" } }, { \"decoratedText\": { \"icon\": { \"knownIcon\": \"PHONE\" }, \"content\": \"+1 (555) 555-1234\" } }, { \"buttons\": [ { \"textButton\": { \"text\": \"Share\", }, \"onClick\": { \"openLink\": { \"url\": \"https://example.com/share\" } } }, { \"textButton\": { \"text\": \"Edit\", }, \"onClick\": { \"action\": { \"function\": \"goToView\", \"parameters\": [ { \"key\": \"viewType\", \"value\": \"EDIT\" } ], \"loadIndicator\": \"LoadIndicator.SPINNER\" } } } ] } ], \"collapsible\": true, \"uncollapsibleWidgetsCount\": 3 } ], \"cardActions\": [ { \"actionLabel\": \"Send Feedback\", \"onClick\": { \"openLink\": { \"url\": \"https://example.com/feedback\" } } } ], \"name\": \"contact-card-K3wB6arF2H9L\" } ```", + "id": "AppsDynamiteStorageCard", + "properties": { + "cardActions": { + "description": "The actions of this card. They are added to a card's generated toolbar menu. For example, the following JSON constructs a card action menu with Settings and Send Feedback options: ``` \"card_actions\": [ { \"actionLabel\": \"Setting\", \"onClick\": { \"action\": { \"functionName\": \"goToView\", \"parameters\": [ { \"key\": \"viewType\", \"value\": \"SETTING\" } ], \"loadIndicator\": \"LoadIndicator.SPINNER\" } } }, { \"actionLabel\": \"Send Feedback\", \"onClick\": { \"openLink\": { \"url\": \"https://example.com/feedback\" } } } ] ```", + "items": { + "$ref": "AppsDynamiteStorageCardCardAction" + }, + "type": "array" + }, + "header": { + "$ref": "AppsDynamiteStorageCardCardHeader", + "description": "The header of the card. A header usually contains a title and an image." + }, + "name": { + "description": "Name of the card, which is used as a identifier for the card in card navigation.", + "type": "string" + }, + "sections": { + "description": "Sections are separated by a line divider.", + "items": { + "$ref": "AppsDynamiteStorageCardSection" + }, + "type": "array" + } + }, + "type": "object" + }, + "AppsDynamiteStorageCardCardAction": { + "description": "A card action is the action associated with the card. For example, an invoice card might include actions such as delete invoice, email invoice, or open the invoice in a browser.", + "id": "AppsDynamiteStorageCardCardAction", + "properties": { + "actionLabel": { + "description": "The label that displays as the action menu item.", + "type": "string" + }, + "onClick": { + "$ref": "AppsDynamiteStorageOnClick", + "description": "The onclick action for this action item." + } + }, + "type": "object" + }, + "AppsDynamiteStorageCardCardHeader": { + "id": "AppsDynamiteStorageCardCardHeader", + "properties": { + "imageAltText": { + "description": "The alternative text of this image which is used for accessibility.", + "type": "string" + }, + "imageType": { + "description": "The image's type.", + "enum": [ + "SQUARE", + "CIRCLE" + ], + "enumDescriptions": [ + "Applies no cropping to the image.", + "Applies a circular mask to the image." + ], + "type": "string" + }, + "imageUrl": { + "description": "The URL of the image in the card header.", + "type": "string" + }, + "subtitle": { + "description": "The subtitle of the card header.", + "type": "string" + }, + "title": { + "description": "The title of the card header. The title must be specified. The header has a fixed height: if both a title and subtitle are specified, each takes up one line. If only the title is specified, it takes up both lines.", + "type": "string" + } + }, + "type": "object" + }, + "AppsDynamiteStorageCardSection": { + "description": "A section contains a collection of widgets that are rendered vertically in the order that they are specified. Across all platforms, cards have a narrow fixed width, so there is currently no need for layout properties, for example, float.", + "id": "AppsDynamiteStorageCardSection", + "properties": { + "collapsible": { + "description": "Indicates whether this section is collapsible. If a section is collapsible, the description must be given.", + "type": "boolean" + }, + "header": { + "description": "The header of the section. Formatted text is supported.", + "type": "string" + }, + "uncollapsibleWidgetsCount": { + "description": "The number of uncollapsible widgets. For example, when a section contains five widgets and the `numUncollapsibleWidget` is set to `2`, the first two widgets are always shown and the last three are collapsed as default. The `numUncollapsibleWidget` is taken into account only when collapsible is set to `true`.", + "format": "int32", + "type": "integer" + }, + "widgets": { + "description": "A section must contain at least 1 widget.", + "items": { + "$ref": "AppsDynamiteStorageWidget" + }, + "type": "array" + } + }, + "type": "object" + }, + "AppsDynamiteStorageColumns": { + "description": "Represents a Columns widget that displays a single row of columns.", + "id": "AppsDynamiteStorageColumns", + "properties": { + "columnItems": { + "description": "Each card supports up to 2 columns.", + "items": { + "$ref": "AppsDynamiteStorageColumnsColumn" + }, + "type": "array" + }, + "wrapStyle": { + "description": "Controls how the column resizes based on screen width.", + "enum": [ + "WRAP_STYLE_UNSPECIFIED", + "NOWRAP", + "WRAP" + ], + "enumDescriptions": [ + "Unspecified.", + "Column widgets don't wrap.", + "Column Widgets wrap." + ], + "type": "string" + } + }, + "type": "object" + }, + "AppsDynamiteStorageColumnsColumn": { + "description": "Represents a Column that consists of widgets stacked vertically.", + "id": "AppsDynamiteStorageColumnsColumn", + "properties": { + "horizontalAlignment": { + "description": "The horizontal alignment of the column.", + "enum": [ + "HORIZONTAL_ALIGNMENT_UNSPECIFIED", + "START", + "CENTER", + "END" + ], + "enumDescriptions": [ + "Unspecified alignment.", + "Alignment to the start position.", + "Alignment to the center position.", + "Alignment to the end position." + ], + "type": "string" + }, + "horizontalSizeStyle": { + "description": "Specifies how the column content is sized horizontally.", + "enum": [ + "HORIZONTAL_SIZE_STYLE_UNSPECIFIED", + "FILL_AVAILABLE_SPACE", + "FILL_MINIMUM_SPACE" + ], + "enumDescriptions": [ + "Unspecified.", + "Fills up the available horizontal width. Default value if unspecified.", + "Fills up the minimum horizontal width." + ], + "type": "string" + }, + "verticalAlignment": { + "description": "The vertical alignment of the column.", + "enum": [ + "VERTICAL_ALIGNMENT_UNSPECIFIED", + "CENTER", + "TOP", + "BOTTOM" + ], + "enumDescriptions": [ + "Unspecified.", + "Aligns the widget in the center of the column. Default value if unspecified.", + "Aligns the widget at the top of the column.", + "Aligns the widget at the bottom of the column." + ], + "type": "string" + }, + "widgets": { + "description": "LINT.ThenChange(//depot/google3/google/apps/card/v1/card.proto) Array of widgets included in the column.", + "items": { + "$ref": "AppsDynamiteStorageColumnsColumnWidgets" + }, + "type": "array" + } + }, + "type": "object" + }, + "AppsDynamiteStorageColumnsColumnWidgets": { + "description": "LINT.IfChange The `column` widget can contain these widgets.", + "id": "AppsDynamiteStorageColumnsColumnWidgets", + "properties": { + "buttonList": { + "$ref": "AppsDynamiteStorageButtonList", + "description": "ButtonList widget." + }, + "dateTimePicker": { + "$ref": "AppsDynamiteStorageDateTimePicker", + "description": "DateTimePicker widget." + }, + "decoratedText": { + "$ref": "AppsDynamiteStorageDecoratedText", + "description": "DecoratedText widget." + }, + "image": { + "$ref": "AppsDynamiteStorageImage", + "description": "Image widget." + }, + "selectionInput": { + "$ref": "AppsDynamiteStorageSelectionInput", + "description": "SelectionInput widget." + }, + "textInput": { + "$ref": "AppsDynamiteStorageTextInput", + "description": "TextInput widget." + }, + "textParagraph": { + "$ref": "AppsDynamiteStorageTextParagraph", + "description": "Text paragraph widget." + } + }, + "type": "object" + }, + "AppsDynamiteStorageDateTimePicker": { + "description": "The widget that lets users to specify a date and time.", + "id": "AppsDynamiteStorageDateTimePicker", + "properties": { + "label": { + "description": "The label for the field that displays to the user.", + "type": "string" + }, + "name": { + "description": "The name of the text input that's used in formInput, and uniquely identifies this input.", + "type": "string" + }, + "onChangeAction": { + "$ref": "AppsDynamiteStorageAction", + "description": "Triggered when the user clicks Save or Clear from the date/time picker dialog. This is only triggered if the value changed as a result of the Save/Clear operation." + }, + "timezoneOffsetDate": { + "description": "The number representing the time zone offset from UTC, in minutes. If set, the `value_ms_epoch` is displayed in the specified time zone. If not set, it uses the user's time zone setting on the client side.", + "format": "int32", + "type": "integer" + }, + "type": { + "description": "The type of the date/time picker.", + "enum": [ + "DATE_AND_TIME", + "DATE_ONLY", + "TIME_ONLY" + ], + "enumDescriptions": [ + "The user can select a date and time.", + "The user can only select a date.", + "The user can only select a time." + ], + "type": "string" + }, + "valueMsEpoch": { + "description": "The value to display as the default value before user input or previous user input. It is represented in milliseconds (Epoch time). For `DATE_AND_TIME` type, the full epoch value is used. For `DATE_ONLY` type, only date of the epoch time is used. For `TIME_ONLY` type, only time of the epoch time is used. For example, you can set epoch time to `3 * 60 * 60 * 1000` to represent 3am.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, + "AppsDynamiteStorageDecoratedText": { + "description": "A widget that displays text with optional decorations such as a label above or below the text, an icon in front of the text, a selection widget or a button after the text.", + "id": "AppsDynamiteStorageDecoratedText", + "properties": { + "bottomLabel": { + "description": "The formatted text label that shows below the main text.", + "type": "string" + }, + "button": { + "$ref": "AppsDynamiteStorageButton", + "description": "A button that can be clicked to trigger an action." + }, + "endIcon": { + "$ref": "AppsDynamiteStorageIcon", + "description": "An icon displayed after the text." + }, + "icon": { + "$ref": "AppsDynamiteStorageIcon", + "description": "Deprecated in favor of start_icon." + }, + "onClick": { + "$ref": "AppsDynamiteStorageOnClick", + "description": "Only the top and bottom label and content region are clickable." + }, + "startIcon": { + "$ref": "AppsDynamiteStorageIcon", + "description": "The icon displayed in front of the text." + }, + "switchControl": { + "$ref": "AppsDynamiteStorageDecoratedTextSwitchControl", + "description": "A switch widget can be clicked to change its state or trigger an action." + }, + "text": { + "description": "Required. The main widget formatted text. See Text formatting for details.", + "type": "string" + }, + "topLabel": { + "description": "The formatted text label that shows above the main text.", + "type": "string" + }, + "wrapText": { + "description": "The wrap text setting. If `true`, the text is wrapped and displayed in multiline. Otherwise, the text is truncated.", + "type": "boolean" + } + }, + "type": "object" + }, + "AppsDynamiteStorageDecoratedTextSwitchControl": { + "id": "AppsDynamiteStorageDecoratedTextSwitchControl", + "properties": { + "controlType": { + "description": "The control type, either switch or checkbox.", + "enum": [ + "SWITCH", + "CHECKBOX", + "CHECK_BOX" + ], + "enumDescriptions": [ + "", + "Deprecated in favor of `CHECK_BOX`.", + "" + ], + "type": "string" + }, + "name": { + "description": "The name of the switch widget that's used in formInput.", + "type": "string" + }, + "onChangeAction": { + "$ref": "AppsDynamiteStorageAction", + "description": "The action when the switch state is changed." + }, + "selected": { + "description": "If the switch is selected.", + "type": "boolean" + }, + "value": { + "description": "The value is what is passed back in the callback.", + "type": "string" + } + }, + "type": "object" + }, + "AppsDynamiteStorageDivider": { + "description": "A divider that appears in between widgets.", + "id": "AppsDynamiteStorageDivider", + "properties": {}, + "type": "object" + }, + "AppsDynamiteStorageGrid": { + "description": "Represents a Grid widget that displays items in a configurable grid layout.", + "id": "AppsDynamiteStorageGrid", + "properties": { + "borderStyle": { + "$ref": "AppsDynamiteStorageBorderStyle", + "description": "The border style to apply to each grid item." + }, + "columnCount": { + "description": "The number of columns to display in the grid. A default value is used if this field isn't specified, and that default value is different depending on where the grid is shown (dialog versus companion).", + "format": "int32", + "type": "integer" + }, + "items": { + "description": "The items to display in the grid.", + "items": { + "$ref": "AppsDynamiteStorageGridGridItem" + }, + "type": "array" + }, + "onClick": { + "$ref": "AppsDynamiteStorageOnClick", + "description": "This callback is reused by each individual grid item, but with the item's identifier and index in the items list added to the callback's parameters." + }, + "title": { + "description": "The text that displays in the grid header.", + "type": "string" + } + }, + "type": "object" + }, + "AppsDynamiteStorageGridGridItem": { + "description": "Represents a single item in the grid layout.", + "id": "AppsDynamiteStorageGridGridItem", + "properties": { + "id": { + "description": "A user-specified identifier for this grid item. This identifier is returned in the parent Grid's onClick callback parameters.", + "type": "string" + }, + "image": { + "$ref": "AppsDynamiteStorageImageComponent", + "description": "The image that displays in the grid item." + }, + "layout": { + "description": "The layout to use for the grid item.", + "enum": [ + "GRID_ITEM_LAYOUT_UNSPECIFIED", + "TEXT_BELOW", + "TEXT_ABOVE" + ], + "enumDescriptions": [ + "No layout specified.", + "The title and subtitle are shown below the grid item's image.", + "The title and subtitle are shown above the grid item's image." + ], + "type": "string" + }, + "subtitle": { + "description": "The grid item's subtitle.", + "type": "string" + }, + "textAlignment": { + "description": "The horizontal alignment of the grid item's text.", + "enum": [ + "HORIZONTAL_ALIGNMENT_UNSPECIFIED", + "START", + "CENTER", + "END" + ], + "enumDescriptions": [ + "Unspecified alignment.", + "Alignment to the start position.", + "Alignment to the center position.", + "Alignment to the end position." + ], + "type": "string" + }, + "title": { + "description": "The grid item's title.", + "type": "string" + } + }, + "type": "object" + }, + "AppsDynamiteStorageIcon": { + "id": "AppsDynamiteStorageIcon", + "properties": { + "altText": { + "description": "The description of the icon, used for accessibility. The default value is provided if you don't specify one.", + "type": "string" + }, + "iconUrl": { + "description": "The icon specified by a URL.", + "type": "string" + }, + "imageType": { + "description": "The crop style applied to the image. In some cases, applying a `CIRCLE` crop causes the image to be drawn larger than a standard icon.", + "enum": [ + "SQUARE", + "CIRCLE" + ], + "enumDescriptions": [ + "Applies no cropping to the image.", + "Applies a circular mask to the image." + ], + "type": "string" + }, + "knownIcon": { + "description": "The icon specified by the string name of a list of known icons", + "type": "string" + } + }, + "type": "object" + }, + "AppsDynamiteStorageImage": { + "description": "An image that is specified by a URL and can have an onClick action.", + "id": "AppsDynamiteStorageImage", + "properties": { + "altText": { + "description": "The alternative text of this image, used for accessibility.", + "type": "string" + }, + "imageUrl": { + "description": "An image URL.", + "type": "string" + }, + "onClick": { + "$ref": "AppsDynamiteStorageOnClick" + } + }, + "type": "object" + }, + "AppsDynamiteStorageImageComponent": { + "id": "AppsDynamiteStorageImageComponent", + "properties": { + "altText": { + "description": "The accessibility label for the image.", + "type": "string" + }, + "borderStyle": { + "$ref": "AppsDynamiteStorageBorderStyle", + "description": "The border style to apply to the image." + }, + "cropStyle": { + "$ref": "AppsDynamiteStorageImageCropStyle", + "description": "The crop style to apply to the image." + }, + "imageUri": { + "description": "The image URL.", + "type": "string" + } + }, + "type": "object" + }, + "AppsDynamiteStorageImageCropStyle": { + "description": "Represents the crop style applied to an image.", + "id": "AppsDynamiteStorageImageCropStyle", + "properties": { + "aspectRatio": { + "description": "The aspect ratio to use if the crop type is `RECTANGLE_CUSTOM`.", + "format": "double", + "type": "number" + }, + "type": { + "description": "The crop type.", + "enum": [ + "IMAGE_CROP_TYPE_UNSPECIFIED", + "SQUARE", + "CIRCLE", + "RECTANGLE_CUSTOM", + "RECTANGLE_4_3" + ], + "enumDescriptions": [ + "No value specified.", + "Applies a square crop.", + "Applies a circular crop.", + "Applies a rectangular crop with a custom aspect ratio.", + "Applies a rectangular crop with a 4:3 aspect ratio." + ], + "type": "string" + } + }, + "type": "object" + }, + "AppsDynamiteStorageOnClick": { + "id": "AppsDynamiteStorageOnClick", + "properties": { + "action": { + "$ref": "AppsDynamiteStorageAction", + "description": "If specified, an action is triggered by this onClick." + }, + "hostAppAction": { + "$ref": "HostAppActionMarkup", + "description": "Triggers host app action on click directly without invoking form actions. This is currently not available to end-users and is used internal only." + }, + "openDynamicLinkAction": { + "$ref": "AppsDynamiteStorageAction", + "description": "An add-on triggers this action when the action needs to open a link. This differs from the open_link above in that this needs to talk to server to get the link. Thus some preparation work is required for web client to do before the open link action response comes back." + }, + "openLink": { + "$ref": "AppsDynamiteStorageOpenLink", + "description": "If specified, this onClick triggers an open link action." + } + }, + "type": "object" + }, + "AppsDynamiteStorageOpenLink": { + "id": "AppsDynamiteStorageOpenLink", + "properties": { + "appUri": { + "$ref": "AppsDynamiteStorageOpenLinkAppUri", + "description": "Represents the platform specific uri/intent to open on each client. For example: A companion_url will open in a companion window on the web. An iOS URL and android intent will open in the corresponding hosting apps. If these platform specific URLs can't be handled correctly, i.e. if the companion isn't supported on web and the hosting apps aren't available on the mobile platforms then the `uri` will open in a new browser window on all the platforms." + }, + "onClose": { + "enum": [ + "NOTHING", + "RELOAD" + ], + "enumDescriptions": [ + "Doesn’t reload the card after the child window closes. Reloads the card after the child window closes. If used in conjunction with [OpenAs.OVERLAY](/workspace/add-ons/reference/rpc/google.apps.card.v1#openas), the child window acts as a modal dialog and the main card is blocked until the child window closes.", + "" + ], + "type": "string" + }, + "openAs": { + "enum": [ + "FULL_SIZE", + "OVERLAY" + ], + "enumDescriptions": [ + "The link opens as a full size window (if that's the frame used by the client.", + "The link opens as an overlay, such as a pop-up." + ], + "type": "string" + }, + "url": { + "description": "The URL to open.", + "type": "string" + } + }, + "type": "object" + }, + "AppsDynamiteStorageOpenLinkAppUri": { + "description": "Represents the platform specific uri/intent to open for each client.", + "id": "AppsDynamiteStorageOpenLinkAppUri", + "properties": { + "androidIntent": { + "$ref": "AppsDynamiteStorageOpenLinkAppUriIntent", + "description": "An intent object to be opened in the corresponding android hosting app." + }, + "companionUri": { + "description": "A companion uri string to be opened in the chat companion window. on the web.", + "type": "string" + }, + "iosUri": { + "description": "A uri string to be opened in the corresponding iOS hosting app.", + "type": "string" + } + }, + "type": "object" + }, + "AppsDynamiteStorageOpenLinkAppUriIntent": { + "description": "Android intent.", + "id": "AppsDynamiteStorageOpenLinkAppUriIntent", "properties": { - "value": { + "extraData": { + "description": "A list of extra data for the android intent. For example, for a calendar event edit intent, the event title information can be passed as extra data.", "items": { - "$ref": "AppsDynamiteSharedSegmentedMembershipCount" + "$ref": "AppsDynamiteStorageOpenLinkAppUriIntentExtraData" }, "type": "array" + }, + "intentAction": { + "description": "An android intent action string for the {@link android.content.Intent} object. For example: for the view intent action type, a valid value will be android.content.Intent.ACTION_VIEW.", + "type": "string" + } + }, + "type": "object" + }, + "AppsDynamiteStorageOpenLinkAppUriIntentExtraData": { + "description": "Extra data for an android intent. Valid keys are defined in the hosting app contract.", + "id": "AppsDynamiteStorageOpenLinkAppUriIntentExtraData", + "properties": { + "key": { + "description": "A key for the intent extra data.", + "type": "string" + }, + "value": { + "description": "Value for the given extra data key.", + "type": "string" } }, "type": "object" }, - "AppsDynamiteSharedSelectionInput": { + "AppsDynamiteStorageSelectionInput": { "description": "A widget that creates a UI item (for example, a drop-down list) with options for users to select.", - "id": "AppsDynamiteSharedSelectionInput", + "id": "AppsDynamiteStorageSelectionInput", "properties": { "items": { "items": { - "$ref": "AppsDynamiteSharedSelectionInputSelectionItem" + "$ref": "AppsDynamiteStorageSelectionInputSelectionItem" }, "type": "array" }, @@ -4545,7 +4752,7 @@ "type": "string" }, "onChangeAction": { - "$ref": "AppsDynamiteSharedAction", + "$ref": "AppsDynamiteStorageAction", "description": "If specified, the form is submitted when the selection changes. If not specified, you must specify a separate button." }, "type": { @@ -4566,9 +4773,9 @@ }, "type": "object" }, - "AppsDynamiteSharedSelectionInputSelectionItem": { + "AppsDynamiteStorageSelectionInputSelectionItem": { "description": "The item in the switch control. A radio button, at most one of the items is selected.", - "id": "AppsDynamiteSharedSelectionInputSelectionItem", + "id": "AppsDynamiteStorageSelectionInputSelectionItem", "properties": { "selected": { "description": "If more than one item is selected for `RADIO_BUTTON` and `DROPDOWN`, the first selected item is treated as selected and the ones after are ignored.", @@ -4585,75 +4792,23 @@ }, "type": "object" }, - "AppsDynamiteSharedSpaceInfo": { - "description": "Defines the representation of a single matching space.", - "id": "AppsDynamiteSharedSpaceInfo", - "properties": { - "avatarInfo": { - "$ref": "AppsDynamiteSharedAvatarInfo" - }, - "avatarUrl": { - "type": "string" - }, - "description": { - "type": "string" - }, - "groupId": { - "$ref": "GroupId" - }, - "inviterEmail": { - "description": "The email address of the user that invited the calling user to the room, if available. This field will only be populated for direct invites, it will be empty if the user was indirectly invited to the group.", - "type": "string" - }, - "isExternal": { - "description": "Whether this is a space that enables guest access", - "type": "boolean" - }, - "name": { - "type": "string" - }, - "numMembers": { - "format": "int32", - "type": "integer" - }, - "userMembershipState": { - "description": "searching user's membership state in this space", - "enum": [ - "MEMBER_UNKNOWN", - "MEMBER_INVITED", - "MEMBER_JOINED", - "MEMBER_NOT_A_MEMBER", - "MEMBER_FAILED" - ], - "enumDescriptions": [ - "Default state, do not use", - "An invitation to the space has been sent", - "User has joined the space", - "User is not a member", - "This state should never be stored in Spanner. It is a state for responses to the clients to indicate that membership mutations have failed and the member is in its previous state." - ], - "type": "string" - } - }, - "type": "object" - }, - "AppsDynamiteSharedSuggestions": { + "AppsDynamiteStorageSuggestions": { "description": "A container wrapping elements necessary for showing suggestion items used in text input autocomplete.", - "id": "AppsDynamiteSharedSuggestions", + "id": "AppsDynamiteStorageSuggestions", "properties": { "items": { "description": "A list of suggestions items which will be used in are used in autocomplete.", "items": { - "$ref": "AppsDynamiteSharedSuggestionsSuggestionItem" + "$ref": "AppsDynamiteStorageSuggestionsSuggestionItem" }, "type": "array" } }, "type": "object" }, - "AppsDynamiteSharedSuggestionsSuggestionItem": { + "AppsDynamiteStorageSuggestionsSuggestionItem": { "description": "A suggestion item. Only supports text for now.", - "id": "AppsDynamiteSharedSuggestionsSuggestionItem", + "id": "AppsDynamiteStorageSuggestionsSuggestionItem", "properties": { "text": { "type": "string" @@ -4661,115 +4816,12 @@ }, "type": "object" }, - "AppsDynamiteSharedTasksAnnotationData": { - "description": "This is the internal version of the API proto at google3/google/chat/v1/gsuite_message_integration.proto", - "id": "AppsDynamiteSharedTasksAnnotationData", - "properties": { - "assigneeChange": { - "$ref": "AppsDynamiteSharedTasksAnnotationDataAssigneeChange" - }, - "completionChange": { - "$ref": "AppsDynamiteSharedTasksAnnotationDataCompletionChange" - }, - "creation": { - "$ref": "AppsDynamiteSharedTasksAnnotationDataCreation" - }, - "deletionChange": { - "$ref": "AppsDynamiteSharedTasksAnnotationDataDeletionChange" - }, - "taskId": { - "description": "ID of task. Will be used to create deep links to Tasks.", - "type": "string" - }, - "taskProperties": { - "$ref": "AppsDynamiteSharedTasksAnnotationDataTaskProperties", - "description": "Task properties after the update has been applied." - }, - "userDefinedMessage": { - "$ref": "AppsDynamiteSharedTasksAnnotationDataUserDefinedMessage" - } - }, - "type": "object" - }, - "AppsDynamiteSharedTasksAnnotationDataAssigneeChange": { - "id": "AppsDynamiteSharedTasksAnnotationDataAssigneeChange", - "properties": { - "oldAssignee": { - "$ref": "UserId", - "description": "Obfuscated user ID of previous assignee. Not set if the task was originally not assigned." - } - }, - "type": "object" - }, - "AppsDynamiteSharedTasksAnnotationDataCompletionChange": { - "id": "AppsDynamiteSharedTasksAnnotationDataCompletionChange", - "properties": {}, - "type": "object" - }, - "AppsDynamiteSharedTasksAnnotationDataCreation": { - "id": "AppsDynamiteSharedTasksAnnotationDataCreation", - "properties": {}, - "type": "object" - }, - "AppsDynamiteSharedTasksAnnotationDataDeletionChange": { - "id": "AppsDynamiteSharedTasksAnnotationDataDeletionChange", - "properties": {}, - "type": "object" - }, - "AppsDynamiteSharedTasksAnnotationDataTaskProperties": { - "description": "All relevant task properties for a Chat message.", - "id": "AppsDynamiteSharedTasksAnnotationDataTaskProperties", - "properties": { - "assignee": { - "$ref": "UserId", - "description": "Obfuscated user ID of new assignee. Not set if the task doesn't have an assignee." - }, - "completed": { - "description": "Whether the task is marked as completed.", - "type": "boolean" - }, - "deleted": { - "description": "Whether the task is marked as deleted.", - "type": "boolean" - }, - "description": { - "description": "The description of the task. If Task original description's length is greater than 1024, then Task BE sends the truncated description to Dynamite Integration Server.", - "type": "string" - }, - "startDate": { - "$ref": "Date", - "description": "Set if the task has a date but no time. Source of truth in Tasks BE: http://shortn/_wyT7eB4Ixv" - }, - "startTime": { - "description": "Set if the task has both a date and a time. Source of truth in Tasks BE: http://shortn/_u6cr0F5ttE", - "format": "google-datetime", - "type": "string" - }, - "title": { - "description": "The title of the task.", - "type": "string" - } - }, - "type": "object" - }, - "AppsDynamiteSharedTasksAnnotationDataUserDefinedMessage": { - "description": "Used for task card attachments on custom user messages that should be kept as is without generating an i18n event message, e.g. the user starts a conversation from an existing task. IMPORTANT: please don't populate this field yet as it could break existing flows until it's implemented. See code at http://shortn/_CM74CdENMx used by http://shortn/_5o85POJY8Q.", - "id": "AppsDynamiteSharedTasksAnnotationDataUserDefinedMessage", - "properties": {}, - "type": "object" - }, - "AppsDynamiteSharedTasksMessageIntegrationPayload": { - "description": "A payload containing Tasks metadata for rendering a live card. Currently not used by the Tasks integration.", - "id": "AppsDynamiteSharedTasksMessageIntegrationPayload", - "properties": {}, - "type": "object" - }, - "AppsDynamiteSharedTextInput": { + "AppsDynamiteStorageTextInput": { "description": "A text input is a UI item where users can input text. A text input can also have an onChange action and suggestions.", - "id": "AppsDynamiteSharedTextInput", + "id": "AppsDynamiteStorageTextInput", "properties": { "autoCompleteAction": { - "$ref": "AppsDynamiteSharedAction", + "$ref": "AppsDynamiteStorageAction", "description": "The refresh function that returns suggestions based on the user's input text. If the callback is not specified, autocomplete is done in client side based on the initial suggestion items." }, "hintText": { @@ -4777,7 +4829,7 @@ "type": "string" }, "initialSuggestions": { - "$ref": "AppsDynamiteSharedSuggestions", + "$ref": "AppsDynamiteStorageSuggestions", "description": "The initial suggestions made before any user input." }, "label": { @@ -4789,7 +4841,7 @@ "type": "string" }, "onChangeAction": { - "$ref": "AppsDynamiteSharedAction", + "$ref": "AppsDynamiteStorageAction", "description": "The onChange action, for example, invoke a function." }, "type": { @@ -4811,9 +4863,9 @@ }, "type": "object" }, - "AppsDynamiteSharedTextParagraph": { + "AppsDynamiteStorageTextParagraph": { "description": "A paragraph of text that supports formatting. See [Text formatting](workspace/add-ons/concepts/widgets#text_formatting\") for details.", - "id": "AppsDynamiteSharedTextParagraph", + "id": "AppsDynamiteStorageTextParagraph", "properties": { "text": { "description": "The text that's shown in the widget.", @@ -4822,80 +4874,32 @@ }, "type": "object" }, - "AppsDynamiteSharedUserBlockRelationship": { - "description": "User-block relationship", - "id": "AppsDynamiteSharedUserBlockRelationship", - "properties": { - "hasBlockedRequester": { - "type": "boolean" - }, - "isBlockedByRequester": { - "type": "boolean" - } - }, - "type": "object" - }, - "AppsDynamiteSharedVideoReference": { - "description": "Reference to a transcoded video attachment.", - "id": "AppsDynamiteSharedVideoReference", - "properties": { - "format": { - "description": "Available transcode format. Value is defined in video/storage/proto/content_header.proto", - "items": { - "format": "int32", - "type": "integer" - }, - "type": "array" - }, - "status": { - "description": "Transcode status", - "enum": [ - "UNKNOWN_STATUS", - "SUCCESS", - "ERROR", - "NOT_APPLICABLE", - "THUMBNAIL_SUCCESS", - "GO_LIVE_SUCCESS" - ], - "enumDescriptions": [ - "", - "", - "", - "", - "", - "" - ], - "type": "string" - } - }, - "type": "object" - }, - "AppsDynamiteSharedWidget": { + "AppsDynamiteStorageWidget": { "description": "A widget is a UI element that presents texts, images, etc.", - "id": "AppsDynamiteSharedWidget", + "id": "AppsDynamiteStorageWidget", "properties": { "buttonList": { - "$ref": "AppsDynamiteSharedButtonList", + "$ref": "AppsDynamiteStorageButtonList", "description": "A list of buttons. For example, the following JSON creates two buttons. The first is a filled text button and the second is an image button that opens a link: ``` \"buttonList\": { \"buttons\": [ \"button\": { \"text\": \"Edit\", \"Color\": { \"Red\": 255 \"Green\": 255 \"Blue\": 255 } \"disabled\": true }, \"button\": { \"icon\": { \"knownIcon\": \"INVITE\" \"altText\": \"check calendar\" }, \"onClick\": { \"openLink\": { \"url\": \"https://example.com/calendar\" } } }, ] } ```" }, "columns": { - "$ref": "AppsDynamiteSharedColumns", + "$ref": "AppsDynamiteStorageColumns", "description": "Displays a single row of columns with widgets stacked vertically in each column. For example, the following JSON creates a 2 column widget each containing a single item. ``` \"columns\": { \"wrapStyle\": \"WRAP\", \"columnItems\": [ { \"horizontalSizeStyle\": \"FILL_AVAILABLE_SPACE\", \"horizontalAlignment\": \"CENTER\", \"verticalAlignment\" : \"CENTER\", \"widgets\": [ { \"textParagraph\": { \"text\": \"First column text paragraph\", } } ] }, { \"horizontalSizeStyle\": \"FILL_AVAILABLE_SPACE\", \"horizontalAlignment\": \"CENTER\", \"verticalAlignment\" : \"CENTER\", \"widgets\": [ { \"textParagraph\": { \"text\": \"Second column text paragraph\", } } ] }, ] } } ```" }, "dateTimePicker": { - "$ref": "AppsDynamiteSharedDateTimePicker", + "$ref": "AppsDynamiteStorageDateTimePicker", "description": "Displays a selection/input widget for date/time. For example, the following JSON creates a date/time picker for an appointment time: ``` \"date_time_picker\": { \"name\": \"appointment_time\", \"label\": \"Book your appointment at:\", \"type\": \"DateTimePickerType.DATE_AND_TIME\", \"valueMsEpoch\": \"796435200000\" } ```" }, "decoratedText": { - "$ref": "AppsDynamiteSharedDecoratedText", + "$ref": "AppsDynamiteStorageDecoratedText", "description": "Displays a decorated text item in this widget. For example, the following JSON creates a decorated text widget showing email address: ``` \"decoratedText\": { \"icon\": { \"knownIcon\": \"EMAIL\" }, \"topLabel\": \"Email Address\", \"content\": \"heba.salam@example.com\", \"bottomLabel\": \"This is a new Email address!\", \"switchWidget\": { \"name\": \"has_send_welcome_email_to_heba_salam\", \"selected\": false, \"controlType\": \"ControlType.CHECKBOX\" } } ```" }, "divider": { - "$ref": "AppsDynamiteSharedDivider", + "$ref": "AppsDynamiteStorageDivider", "description": "Displays a divider. For example, the following JSON creates a divider: ``` \"divider\": { } ```" }, "grid": { - "$ref": "AppsDynamiteSharedGrid", + "$ref": "AppsDynamiteStorageGrid", "description": "Displays a grid with a collection of items. For example, the following JSON creates a 2 column grid with a single item: ``` \"grid\": { \"title\": \"A fine collection of items\", \"numColumns\": 2, \"borderStyle\": { \"type\": \"STROKE\", \"cornerRadius\": 4.0 }, \"items\": [ \"image\": { \"imageUri\": \"https://www.example.com/image.png\", \"cropStyle\": { \"type\": \"SQUARE\" }, \"borderStyle\": { \"type\": \"STROKE\" } }, \"title\": \"An item\", \"textAlignment\": \"CENTER\" ], \"onClick\": { \"openLink\": { \"url\":\"https://www.example.com\" } } } ```" }, "horizontalAlignment": { @@ -4915,19 +4919,19 @@ "type": "string" }, "image": { - "$ref": "AppsDynamiteSharedImage", + "$ref": "AppsDynamiteStorageImage", "description": "Displays an image in this widget. For example, the following JSON creates an image with alternative text: ``` \"image\": { \"imageUrl\": \"https://example.com/heba_salam.png\" \"altText\": \"Avatar for Heba Salam\" } ```" }, "selectionInput": { - "$ref": "AppsDynamiteSharedSelectionInput", + "$ref": "AppsDynamiteStorageSelectionInput", "description": "Displays a switch control in this widget. For example, the following JSON creates a dropdown selection for size: ``` \"switchControl\": { \"name\": \"size\", \"label\": \"Size\" \"type\": \"SelectionType.DROPDOWN\", \"items\": [ { \"text\": \"S\", \"value\": \"small\", \"selected\": false }, { \"text\": \"M\", \"value\": \"medium\", \"selected\": true }, { \"text\": \"L\", \"value\": \"large\", \"selected\": false }, { \"text\": \"XL\", \"value\": \"extra_large\", \"selected\": false } ] } ```" }, "textInput": { - "$ref": "AppsDynamiteSharedTextInput", + "$ref": "AppsDynamiteStorageTextInput", "description": "Displays a text input in this widget. For example, the following JSON creates a text input for mail address: ``` \"textInput\": { \"name\": \"mailing_address\", \"label\": \"Mailing Address\" } ``` As another example, the following JSON creates a text input for programming language with static suggestions: ``` \"textInput\": { \"name\": \"preferred_programing_language\", \"label\": \"Preferred Language\", \"initialSuggestions\": { \"items\": [ { \"text\": \"C++\" }, { \"text\": \"Java\" }, { \"text\": \"JavaScript\" }, { \"text\": \"Python\" } ] } } ```" }, "textParagraph": { - "$ref": "AppsDynamiteSharedTextParagraph", + "$ref": "AppsDynamiteStorageTextParagraph", "description": "Displays a text paragraph in this widget. For example, the following JSON creates a bolded text: ``` \"textParagraph\": { \"text\": \" *bold text*\" } ```" } }, @@ -5329,7 +5333,7 @@ "type": "string" }, "cardAddOnData": { - "$ref": "AppsDynamiteSharedCard", + "$ref": "AppsDynamiteStorageCard", "description": "Card AddOn attachment with the possibility for specifying editable widgets." }, "deprecatedAddOnData": { @@ -5817,6 +5821,25 @@ "readOnly": true, "type": "array" }, + "availableAccessTypes": { + "description": "List of available access types of the conference.", + "items": { + "enum": [ + "ACCESS_TYPE_UNSPECIFIED", + "ACCESS_TYPE_OPEN", + "ACCESS_TYPE_TRUSTED", + "ACCESS_TYPE_RESTRICTED" + ], + "enumDescriptions": [ + "Default value. This value is unused.", + "Anyone with meeting join information (url, phone access...) can join, no knocking required. (Subject to organization policies)", + "Members of the Host's organization, invited external users, and dial-in users can join without knocking, everyone else must knock. (Subject to organization policies)", + "Only participants invited by a host can automatically join, everyone else must knock and be admitted. (Subject to organization policies) Participants cannot dial out from the meeting. And only hosts can accept knocks." + ], + "type": "string" + }, + "type": "array" + }, "availableReactions": { "description": "Output only. The set of reactions that clients are allowed to send and can expect to receive. Note that a device in the conference should have the MAY_SEND_REACTIONS privilege to be able to send reactions.", "items": { @@ -7513,9 +7536,17 @@ "format": "double", "type": "number" }, + "messageSenderAffinityScore": { + "format": "double", + "type": "number" + }, "topicalityScore": { "format": "double", "type": "number" + }, + "unjoinedSpaceAffinityScore": { + "format": "double", + "type": "number" } }, "type": "object" @@ -13888,7 +13919,7 @@ "type": "object" }, "PrincipalProto": { - "description": "A Principal represents something to which permissions are assigned, often but not always a user or group of some kind. It is most appropriate for use in ACLs and authorization checks. Callers should prefer to use the wrapper classes in google3/security/credentials/public/principal.h google3/java/com/google/security/credentials/Principal.java google3/security/credentials/go/principal.go unless direct proto access is essential. If you update this protocol buffer, please update the wrapper classes as well.", + "description": "A Principal represents something to which permissions are assigned, often but not always a user or group of some kind. It is most appropriate for use in ACLs and authorization checks. Callers should prefer to use the wrapper classes in google3/security/credentials/public/principal.h google3/java/com/google/security/credentials/Principal.java google3/security/credentials/go/principal.go unless direct proto access is essential. If you update this protocol buffer, please update the wrapper classes as well. LINT.IfChange", "id": "PrincipalProto", "properties": { "allAuthenticatedUsers": { @@ -14165,7 +14196,7 @@ "$ref": "IntegerPropertyOptions" }, "isFacetable": { - "description": "Indicates that the property can be used for generating facets. Cannot be true for properties whose type is object. IsReturnable must be true to set this option. Only supported for boolean, enum, and text properties.", + "description": "Indicates that the property can be used for generating facets. Cannot be true for properties whose type is object. IsReturnable must be true to set this option. Only supported for boolean, enum, integer, and text properties.", "type": "boolean" }, "isRepeatable": { @@ -14647,7 +14678,7 @@ "type": "object" }, "RbacRoleProto": { - "description": "Principal associated with a given RBAC role. This principal is used by Sphinx Provisioning Service for RBAC (go/cedi-auth) provisionable (go/sphinx-rbacz-design).", + "description": "Principal associated with a given RBAC role. This principal is used by Sphinx Provisioning Service for RBAC provisionable (go/sphinx-rbacz).", "id": "RbacRoleProto", "properties": { "name": { @@ -14661,14 +14692,14 @@ "type": "string" }, "rbacRoleName": { - "description": "Format: \"RbacNamespaceName.RbacRoleName(/field=value)*\", e.g., \"hr.v1.Reader\", \"hr.v1.Reader/language=EN_US/country=USA/room=NYC-9th-11A201\".", + "description": "Format: \"role/z?\" - \"role\" is the Sphinx globally unique name of the Sphinx role that provisions the RBAC role. - \"/z?\" suffix indicates which Zanzibar environment stores the role membership data (\"/zd\": dev, \"/zs\": staging, \"/zp\": prod, \"/zt\": local test instance). Example: \"mysystem_myrole/zp\"", "type": "string" } }, "type": "object" }, "RbacSubjectProto": { - "description": "Principal associated with a given RBAC subject. This principal is used by Sphinx Provisioning Service for RBAC (go/cedi-auth) provisionable (go/sphinx-rbacz-design).", + "description": "Principal associated with a given RBAC subject. This principal is used by Sphinx Provisioning Service for RBAC provisionable (go/sphinx-rbacz).", "id": "RbacSubjectProto", "properties": { "username": { @@ -18195,12 +18226,16 @@ "description": "Information about the broadcast to YouTube.", "id": "YouTubeLiveBroadcastEvent", "properties": { + "brandAccountGaiaId": { + "description": "Input only. If the channel_id is for a YouTube Channel owned by a Brand Account, client is required to populate this field with the obfuscated gaia id of the Brand account when starting the broadcast.", + "type": "string" + }, "broadcastId": { "description": "Input only. The broadcast id, used to control the lifecycle of the event on YouTube", "type": "string" }, "channelId": { - "description": "YouTube channel associated with the broadcast.", + "description": "YouTube Channel associated with the broadcast.", "type": "string" }, "viewUrl": { diff --git a/cloudsearch/v1/cloudsearch-gen.go b/cloudsearch/v1/cloudsearch-gen.go index fd1db1d0bb8..65dcb54b9d0 100644 --- a/cloudsearch/v1/cloudsearch-gen.go +++ b/cloudsearch/v1/cloudsearch-gen.go @@ -1106,86 +1106,6 @@ func (s *AppId) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AppsDynamiteSharedAction: An action that describes the behavior when -// the form is submitted. For example, an Apps Script can be invoked to -// handle the form. -type AppsDynamiteSharedAction struct { - // Function: Apps Script function to invoke when the containing element - // is clicked/activated. - Function string `json:"function,omitempty"` - - // Possible values: - // "INTERACTION_UNSPECIFIED" - Default value if interaction is not - // specified. - // "OPEN_DIALOG" - A dialog opens by clicking the button. - Interaction string `json:"interaction,omitempty"` - - // Possible values: - // "SPINNER" - Displays a spinner to indicate that content is loading. - // "NONE" - Nothing is displayed. - LoadIndicator string `json:"loadIndicator,omitempty"` - - // Parameters: List of action parameters. - Parameters []*AppsDynamiteSharedActionActionParameter `json:"parameters,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Function") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Function") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *AppsDynamiteSharedAction) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteSharedAction - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// AppsDynamiteSharedActionActionParameter: List of string parameters to -// supply when the action method is invoked. For example, consider three -// snooze buttons: snooze now, snooze 1 day, snooze next week. You might -// use action method = snooze(), passing the snooze type and snooze time -// in the list of string parameters. -type AppsDynamiteSharedActionActionParameter struct { - // Key: The name of the parameter for the action script. - Key string `json:"key,omitempty"` - - // Value: The value of the parameter. - Value string `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Key") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Key") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *AppsDynamiteSharedActionActionParameter) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteSharedActionActionParameter - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // AppsDynamiteSharedActivityFeedAnnotationData: Next Id: 7 type AppsDynamiteSharedActivityFeedAnnotationData struct { // ActivityFeedMessageCreateTime: Timestamp of when the Activity Feed @@ -1684,6 +1604,10 @@ type AppsDynamiteSharedBackendUploadMetadata struct { // GroupId: GroupId to which this attachment is uploaded. GroupId *GroupId `json:"groupId,omitempty"` + // IsClientSideTranscodedVideo: If the uploaded file is a video that has + // been transcoded on the client side Next tag: 18 + IsClientSideTranscodedVideo bool `json:"isClientSideTranscodedVideo,omitempty"` + // OriginalDimension: Original dimension of the content. Only set for // image attachments. OriginalDimension *AppsDynamiteSharedDimension `json:"originalDimension,omitempty"` @@ -1751,120 +1675,6 @@ func (s *AppsDynamiteSharedBackendUploadMetadata) MarshalJSON() ([]byte, error) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AppsDynamiteSharedBorderStyle: Represents the complete border style -// applied to widgets. -type AppsDynamiteSharedBorderStyle struct { - // CornerRadius: The corner radius for the border. - CornerRadius int64 `json:"cornerRadius,omitempty"` - - // StrokeColor: The colors to use when the type is `BORDER_TYPE_STROKE`. - StrokeColor *Color `json:"strokeColor,omitempty"` - - // Type: The border type. - // - // Possible values: - // "BORDER_TYPE_UNSPECIFIED" - No value specified. - // "NO_BORDER" - No border. - // "STROKE" - Outline. - Type string `json:"type,omitempty"` - - // ForceSendFields is a list of field names (e.g. "CornerRadius") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CornerRadius") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *AppsDynamiteSharedBorderStyle) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteSharedBorderStyle - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// AppsDynamiteSharedButton: A button. Can be a text button or an image -// button. -type AppsDynamiteSharedButton struct { - // AltText: The alternative text used for accessibility. Has no effect - // when an icon is set; use `icon.alt_text` instead. - AltText string `json:"altText,omitempty"` - - // Color: If set, the button is filled with a solid background. - Color *Color `json:"color,omitempty"` - - // Disabled: If true, the button is displayed in a disabled state and - // doesn't respond to user actions. - Disabled bool `json:"disabled,omitempty"` - - // Icon: The icon image. - Icon *AppsDynamiteSharedIcon `json:"icon,omitempty"` - - // OnClick: The action to perform when the button is clicked. - OnClick *AppsDynamiteSharedOnClick `json:"onClick,omitempty"` - - // Text: The text of the button. - Text string `json:"text,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AltText") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AltText") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *AppsDynamiteSharedButton) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteSharedButton - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// AppsDynamiteSharedButtonList: A list of buttons layed out -// horizontally. -type AppsDynamiteSharedButtonList struct { - Buttons []*AppsDynamiteSharedButton `json:"buttons,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Buttons") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Buttons") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *AppsDynamiteSharedButtonList) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteSharedButtonList - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - type AppsDynamiteSharedCalendarEventAnnotationData struct { CalendarEvent *AppsDynamiteSharedCalendarEventAnnotationDataCalendarEvent `json:"calendarEvent,omitempty"` @@ -2043,51 +1853,19 @@ func (s *AppsDynamiteSharedCallMetadata) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AppsDynamiteSharedCard: A card is a UI element that can contain UI -// widgets such as text and images. For more information, see Cards . -// For example, the following JSON creates a card that has a header with -// the name, position, icons, and link for a contact, followed by a -// section with contact information like email and phone number. ``` { -// "header": { "title": "Heba Salam", "subtitle": "Software Engineer", -// "imageStyle": "ImageStyle.AVATAR", "imageUrl": -// "https://example.com/heba_salam.png", "imageAltText": "Avatar for -// Heba Salam" }, "sections" : [ { "header": "Contact Info", "widgets": -// [ { "decorated_text": { "icon": { "knownIcon": "EMAIL" }, "content": -// "heba.salam@example.com" } }, { "decoratedText": { "icon": { -// "knownIcon": "PERSON" }, "content": "Online" } }, { "decoratedText": -// { "icon": { "knownIcon": "PHONE" }, "content": "+1 (555) 555-1234" } -// }, { "buttons": [ { "textButton": { "text": "Share", }, "onClick": { -// "openLink": { "url": "https://example.com/share" } } }, { -// "textButton": { "text": "Edit", }, "onClick": { "action": { -// "function": "goToView", "parameters": [ { "key": "viewType", "value": -// "EDIT" } ], "loadIndicator": "LoadIndicator.SPINNER" } } } ] } ], -// "collapsible": true, "uncollapsibleWidgetsCount": 3 } ], -// "cardActions": [ { "actionLabel": "Send Feedback", "onClick": { -// "openLink": { "url": "https://example.com/feedback" } } } ], "name": -// "contact-card-K3wB6arF2H9L" } ``` -type AppsDynamiteSharedCard struct { - // CardActions: The actions of this card. They are added to a card's - // generated toolbar menu. For example, the following JSON constructs a - // card action menu with Settings and Send Feedback options: ``` - // "card_actions": [ { "actionLabel": "Setting", "onClick": { "action": - // { "functionName": "goToView", "parameters": [ { "key": "viewType", - // "value": "SETTING" } ], "loadIndicator": "LoadIndicator.SPINNER" } } - // }, { "actionLabel": "Send Feedback", "onClick": { "openLink": { - // "url": "https://example.com/feedback" } } } ] ``` - CardActions []*AppsDynamiteSharedCardCardAction `json:"cardActions,omitempty"` - - // Header: The header of the card. A header usually contains a title and - // an image. - Header *AppsDynamiteSharedCardCardHeader `json:"header,omitempty"` - - // Name: Name of the card, which is used as a identifier for the card in - // card navigation. - Name string `json:"name,omitempty"` +// AppsDynamiteSharedCardClickSuggestion: Card click which identifies +// one suggestion provided by the app/bot. +type AppsDynamiteSharedCardClickSuggestion struct { + // ActionId: Identify the button/action that created the suggestion. A + // simple example would be a card button within the stream, or the id + // which can identify a specific suggestion. + ActionId string `json:"actionId,omitempty"` - // Sections: Sections are separated by a line divider. - Sections []*AppsDynamiteSharedCardSection `json:"sections,omitempty"` + // SuggestionMessageId: The message_id for the message that was posted + // by the app/bot. + SuggestionMessageId *MessageId `json:"suggestionMessageId,omitempty"` - // ForceSendFields is a list of field names (e.g. "CardActions") to + // ForceSendFields is a list of field names (e.g. "ActionId") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -2095,33 +1873,36 @@ type AppsDynamiteSharedCard struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CardActions") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as + // NullFields is a list of field names (e.g. "ActionId") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` } -func (s *AppsDynamiteSharedCard) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteSharedCard +func (s *AppsDynamiteSharedCardClickSuggestion) MarshalJSON() ([]byte, error) { + type NoMethod AppsDynamiteSharedCardClickSuggestion raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AppsDynamiteSharedCardCardAction: A card action is the action -// associated with the card. For example, an invoice card might include -// actions such as delete invoice, email invoice, or open the invoice in -// a browser. -type AppsDynamiteSharedCardCardAction struct { - // ActionLabel: The label that displays as the action menu item. - ActionLabel string `json:"actionLabel,omitempty"` +// AppsDynamiteSharedChatItem: Next Id: 5 +type AppsDynamiteSharedChatItem struct { + // ActivityInfo: Information needed to render the specific type of feed + // item. + ActivityInfo []*AppsDynamiteSharedChatItemActivityInfo `json:"activityInfo,omitempty"` - // OnClick: The onclick action for this action item. - OnClick *AppsDynamiteSharedOnClick `json:"onClick,omitempty"` + // GroupInfo: Only populated on read path and should not be persisted in + // storage. + GroupInfo *AppsDynamiteSharedChatItemGroupInfo `json:"groupInfo,omitempty"` - // ForceSendFields is a list of field names (e.g. "ActionLabel") to + // MessageInfo: Additional information about the original chat message + // that isn't captured in the top-level message proto. + MessageInfo *AppsDynamiteSharedMessageInfo `json:"messageInfo,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ActivityInfo") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -2129,7 +1910,7 @@ type AppsDynamiteSharedCardCardAction struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ActionLabel") to include + // NullFields is a list of field names (e.g. "ActivityInfo") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as @@ -2138,179 +1919,14 @@ type AppsDynamiteSharedCardCardAction struct { NullFields []string `json:"-"` } -func (s *AppsDynamiteSharedCardCardAction) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteSharedCardCardAction +func (s *AppsDynamiteSharedChatItem) MarshalJSON() ([]byte, error) { + type NoMethod AppsDynamiteSharedChatItem raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -type AppsDynamiteSharedCardCardHeader struct { - // ImageAltText: The alternative text of this image which is used for - // accessibility. - ImageAltText string `json:"imageAltText,omitempty"` - - // ImageType: The image's type. - // - // Possible values: - // "SQUARE" - Applies no cropping to the image. - // "CIRCLE" - Applies a circular mask to the image. - ImageType string `json:"imageType,omitempty"` - - // ImageUrl: The URL of the image in the card header. - ImageUrl string `json:"imageUrl,omitempty"` - - // Subtitle: The subtitle of the card header. - Subtitle string `json:"subtitle,omitempty"` - - // Title: The title of the card header. The title must be specified. The - // header has a fixed height: if both a title and subtitle are - // specified, each takes up one line. If only the title is specified, it - // takes up both lines. - Title string `json:"title,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ImageAltText") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ImageAltText") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *AppsDynamiteSharedCardCardHeader) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteSharedCardCardHeader - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// AppsDynamiteSharedCardClickSuggestion: Card click which identifies -// one suggestion provided by the app/bot. -type AppsDynamiteSharedCardClickSuggestion struct { - // ActionId: Identify the button/action that created the suggestion. A - // simple example would be a card button within the stream, or the id - // which can identify a specific suggestion. - ActionId string `json:"actionId,omitempty"` - - // SuggestionMessageId: The message_id for the message that was posted - // by the app/bot. - SuggestionMessageId *MessageId `json:"suggestionMessageId,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ActionId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ActionId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *AppsDynamiteSharedCardClickSuggestion) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteSharedCardClickSuggestion - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// AppsDynamiteSharedCardSection: A section contains a collection of -// widgets that are rendered vertically in the order that they are -// specified. Across all platforms, cards have a narrow fixed width, so -// there is currently no need for layout properties, for example, float. -type AppsDynamiteSharedCardSection struct { - // Collapsible: Indicates whether this section is collapsible. If a - // section is collapsible, the description must be given. - Collapsible bool `json:"collapsible,omitempty"` - - // Header: The header of the section. Formatted text is supported. - Header string `json:"header,omitempty"` - - // UncollapsibleWidgetsCount: The number of uncollapsible widgets. For - // example, when a section contains five widgets and the - // `numUncollapsibleWidget` is set to `2`, the first two widgets are - // always shown and the last three are collapsed as default. The - // `numUncollapsibleWidget` is taken into account only when collapsible - // is set to `true`. - UncollapsibleWidgetsCount int64 `json:"uncollapsibleWidgetsCount,omitempty"` - - // Widgets: A section must contain at least 1 widget. - Widgets []*AppsDynamiteSharedWidget `json:"widgets,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Collapsible") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Collapsible") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *AppsDynamiteSharedCardSection) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteSharedCardSection - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// AppsDynamiteSharedChatItem: Next Id: 5 -type AppsDynamiteSharedChatItem struct { - // ActivityInfo: Information needed to render the specific type of feed - // item. - ActivityInfo []*AppsDynamiteSharedChatItemActivityInfo `json:"activityInfo,omitempty"` - - // GroupInfo: Only populated on read path and should not be persisted in - // storage. - GroupInfo *AppsDynamiteSharedChatItemGroupInfo `json:"groupInfo,omitempty"` - - // MessageInfo: Additional information about the original chat message - // that isn't captured in the top-level message proto. - MessageInfo *AppsDynamiteSharedMessageInfo `json:"messageInfo,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ActivityInfo") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ActivityInfo") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *AppsDynamiteSharedChatItem) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteSharedChatItem - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -type AppsDynamiteSharedChatItemActivityInfo struct { - FeedItemNudge *AppsDynamiteSharedChatItemActivityInfoFeedItemNudge `json:"feedItemNudge,omitempty"` +type AppsDynamiteSharedChatItemActivityInfo struct { + FeedItemNudge *AppsDynamiteSharedChatItemActivityInfoFeedItemNudge `json:"feedItemNudge,omitempty"` FeedItemReactions *AppsDynamiteSharedChatItemActivityInfoFeedItemReactions `json:"feedItemReactions,omitempty"` @@ -2486,7 +2102,8 @@ type AppsDynamiteSharedChatItemGroupInfo struct { // "ACTIVITY_FEED" - Represents an Activity Feed space. These groups // are modeled like flat rooms and contain items for users to catch up // on important things. Each user should only have one group of this - // type. See go/activity-feed. + // type. See go/activity-feed. Deprecated: The go/activity-feed project + // is cancelled and this should no longer be used. // LINT.ThenChange(//depot/google3/logs/proto/apps_dynamite/dynamite_visu // al_element_entry.proto:LoggingGroupType,//depot/google3/java/com/googl // e/apps/dynamite/v1/web/ui/group/groups.js:LoggingGroupType) @@ -2528,21 +2145,34 @@ func (s *AppsDynamiteSharedChatItemGroupInfo) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AppsDynamiteSharedColumns: Represents a Columns widget that displays -// a single row of columns. -type AppsDynamiteSharedColumns struct { - // ColumnItems: Each card supports up to 2 columns. - ColumnItems []*AppsDynamiteSharedColumnsColumn `json:"columnItems,omitempty"` - - // WrapStyle: Controls how the column resizes based on screen width. +// AppsDynamiteSharedContentReportType: Denotes a type of content report +// a user can send. +type AppsDynamiteSharedContentReportType struct { + // SystemViolation: Required. Google-defined system violation, covering + // the most common violations. // // Possible values: - // "WRAP_STYLE_UNSPECIFIED" - Unspecified. - // "NOWRAP" - Column widgets don't wrap. - // "WRAP" - Column Widgets wrap. - WrapStyle string `json:"wrapStyle,omitempty"` + // "VIOLATION_UNSPECIFIED" - Default value if unset. Do not use + // directly. This value should not appear as a selectable violation + // during content reporting. + // "HARASSMENT" - "Harassment, offensive, or rude behavior" + // "DISCRIMINATION" - "Discrimination or harmful stereotypes against + // anyone, including protected groups" + // "EXPLICIT_CONTENT" - "Explicit content that's graphic, violent, or + // otherwise inappropriate" + // "SPAM" - "Spam" + // "CONFIDENTIAL_INFORMATION" - "Confidential information" + // "SENSITIVE_INFORMATION" - "Sensitive information" + // "FRAUD" - Phishing, impersonation/misrepresentation, or deceiving + // other users into sharing information under false pretenses. + // "MALWARE" - Malware, viruses, Trojan horses, corrupted files, + // destructive code, etc. + // "ILLEGAL_ACTIVITIES" - Promoting, organizing, or engaging in + // illegal activities. + // "OTHER" - "Something else" + SystemViolation string `json:"systemViolation,omitempty"` - // ForceSendFields is a list of field names (e.g. "ColumnItems") to + // ForceSendFields is a list of field names (e.g. "SystemViolation") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -2550,66 +2180,7 @@ type AppsDynamiteSharedColumns struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ColumnItems") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *AppsDynamiteSharedColumns) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteSharedColumns - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// AppsDynamiteSharedColumnsColumn: Represents a Column that consists of -// widgets stacked vertically. -type AppsDynamiteSharedColumnsColumn struct { - // HorizontalAlignment: The horizontal alignment of the column. - // - // Possible values: - // "HORIZONTAL_ALIGNMENT_UNSPECIFIED" - Unspecified alignment. - // "START" - Alignment to the start position. - // "CENTER" - Alignment to the center position. - // "END" - Alignment to the end position. - HorizontalAlignment string `json:"horizontalAlignment,omitempty"` - - // HorizontalSizeStyle: Specifies how the column content is sized - // horizontally. - // - // Possible values: - // "HORIZONTAL_SIZE_STYLE_UNSPECIFIED" - Unspecified. - // "FILL_AVAILABLE_SPACE" - Fills up the available horizontal width. - // Default value if unspecified. - // "FILL_MINIMUM_SPACE" - Fills up the minimum horizontal width. - HorizontalSizeStyle string `json:"horizontalSizeStyle,omitempty"` - - // VerticalAlignment: The vertical alignment of the column. - // - // Possible values: - // "VERTICAL_ALIGNMENT_UNSPECIFIED" - Unspecified. - // "CENTER" - Aligns the widget in the center of the column. Default - // value if unspecified. - // "TOP" - Aligns the widget at the top of the column. - // "BOTTOM" - Aligns the widget at the bottom of the column. - VerticalAlignment string `json:"verticalAlignment,omitempty"` - - // Widgets: LINT.ThenChange(//google/apps/card/v1/card.proto) Array of - // widgets included in the column. - Widgets []*AppsDynamiteSharedColumnsColumnWidgets `json:"widgets,omitempty"` - - // ForceSendFields is a list of field names (e.g. "HorizontalAlignment") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "HorizontalAlignment") to + // NullFields is a list of field names (e.g. "SystemViolation") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the @@ -2619,119 +2190,21 @@ type AppsDynamiteSharedColumnsColumn struct { NullFields []string `json:"-"` } -func (s *AppsDynamiteSharedColumnsColumn) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteSharedColumnsColumn +func (s *AppsDynamiteSharedContentReportType) MarshalJSON() ([]byte, error) { + type NoMethod AppsDynamiteSharedContentReportType raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AppsDynamiteSharedColumnsColumnWidgets: LINT.IfChange The `column` -// widget can contain these widgets. -type AppsDynamiteSharedColumnsColumnWidgets struct { - // ButtonList: ButtonList widget. - ButtonList *AppsDynamiteSharedButtonList `json:"buttonList,omitempty"` - - // DateTimePicker: DateTimePicker widget. - DateTimePicker *AppsDynamiteSharedDateTimePicker `json:"dateTimePicker,omitempty"` - - // DecoratedText: DecoratedText widget. - DecoratedText *AppsDynamiteSharedDecoratedText `json:"decoratedText,omitempty"` - - // Image: Image widget. - Image *AppsDynamiteSharedImage `json:"image,omitempty"` - - // SelectionInput: SelectionInput widget. - SelectionInput *AppsDynamiteSharedSelectionInput `json:"selectionInput,omitempty"` - - // TextInput: TextInput widget. - TextInput *AppsDynamiteSharedTextInput `json:"textInput,omitempty"` - - // TextParagraph: Text paragraph widget. - TextParagraph *AppsDynamiteSharedTextParagraph `json:"textParagraph,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ButtonList") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ButtonList") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *AppsDynamiteSharedColumnsColumnWidgets) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteSharedColumnsColumnWidgets - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// AppsDynamiteSharedContentReportType: Denotes a type of content report -// a user can send. -type AppsDynamiteSharedContentReportType struct { - // SystemViolation: Required. Google-defined system violation, covering - // the most common violations. - // - // Possible values: - // "VIOLATION_UNSPECIFIED" - Default value if unset. Do not use - // directly. This value should not appear as a selectable violation - // during content reporting. - // "HARASSMENT" - "Harassment, offensive, or rude behavior" - // "DISCRIMINATION" - "Discrimination or harmful stereotypes against - // anyone, including protected groups" - // "EXPLICIT_CONTENT" - "Explicit content that's graphic, violent, or - // otherwise inappropriate" - // "SPAM" - "Spam" - // "CONFIDENTIAL_INFORMATION" - "Confidential information" - // "SENSITIVE_INFORMATION" - "Sensitive information" - // "FRAUD" - Phishing, impersonation/misrepresentation, or deceiving - // other users into sharing information under false pretenses. - // "MALWARE" - Malware, viruses, Trojan horses, corrupted files, - // destructive code, etc. - // "ILLEGAL_ACTIVITIES" - Promoting, organizing, or engaging in - // illegal activities. - // "OTHER" - "Something else" - SystemViolation string `json:"systemViolation,omitempty"` - - // ForceSendFields is a list of field names (e.g. "SystemViolation") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "SystemViolation") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. - NullFields []string `json:"-"` -} - -func (s *AppsDynamiteSharedContentReportType) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteSharedContentReportType - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// AppsDynamiteSharedCustomEmoji: Proto representation of a custom -// emoji. May be used in both APIs and in Spanner, but certain fields -// should be restricted to one or the other. See the per-field -// documentation for details. NEXT_TAG: 14 -type AppsDynamiteSharedCustomEmoji struct { - // BlobId: ID for the underlying image data in Blobstore. This field - // should *only* be present in Spanner or within the server, but should - // not be exposed in public APIs. - BlobId string `json:"blobId,omitempty"` +// AppsDynamiteSharedCustomEmoji: Proto representation of a custom +// emoji. May be used in both APIs and in Spanner, but certain fields +// should be restricted to one or the other. See the per-field +// documentation for details. NEXT_TAG: 14 +type AppsDynamiteSharedCustomEmoji struct { + // BlobId: ID for the underlying image data in Blobstore. This field + // should *only* be present in Spanner or within the server, but should + // not be exposed in public APIs. + BlobId string `json:"blobId,omitempty"` // ContentType: Content type of the file used to upload the emoji. Used // for takeout. Written to Spanner when the emoji is created. @@ -2815,171 +2288,6 @@ func (s *AppsDynamiteSharedCustomEmoji) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AppsDynamiteSharedDateTimePicker: The widget that lets users to -// specify a date and time. -type AppsDynamiteSharedDateTimePicker struct { - // Label: The label for the field that displays to the user. - Label string `json:"label,omitempty"` - - // Name: The name of the text input that's used in formInput, and - // uniquely identifies this input. - Name string `json:"name,omitempty"` - - // OnChangeAction: Triggered when the user clicks Save or Clear from the - // date/time picker dialog. This is only triggered if the value changed - // as a result of the Save/Clear operation. - OnChangeAction *AppsDynamiteSharedAction `json:"onChangeAction,omitempty"` - - // TimezoneOffsetDate: The number representing the time zone offset from - // UTC, in minutes. If set, the `value_ms_epoch` is displayed in the - // specified time zone. If not set, it uses the user's time zone setting - // on the client side. - TimezoneOffsetDate int64 `json:"timezoneOffsetDate,omitempty"` - - // Type: The type of the date/time picker. - // - // Possible values: - // "DATE_AND_TIME" - The user can select a date and time. - // "DATE_ONLY" - The user can only select a date. - // "TIME_ONLY" - The user can only select a time. - Type string `json:"type,omitempty"` - - // ValueMsEpoch: The value to display as the default value before user - // input or previous user input. It is represented in milliseconds - // (Epoch time). For `DATE_AND_TIME` type, the full epoch value is used. - // For `DATE_ONLY` type, only date of the epoch time is used. For - // `TIME_ONLY` type, only time of the epoch time is used. For example, - // you can set epoch time to `3 * 60 * 60 * 1000` to represent 3am. - ValueMsEpoch int64 `json:"valueMsEpoch,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "Label") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Label") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *AppsDynamiteSharedDateTimePicker) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteSharedDateTimePicker - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// AppsDynamiteSharedDecoratedText: A widget that displays text with -// optional decorations such as a label above or below the text, an icon -// in front of the text, a selection widget or a button after the text. -type AppsDynamiteSharedDecoratedText struct { - // BottomLabel: The formatted text label that shows below the main text. - BottomLabel string `json:"bottomLabel,omitempty"` - - // Button: A button that can be clicked to trigger an action. - Button *AppsDynamiteSharedButton `json:"button,omitempty"` - - // EndIcon: An icon displayed after the text. - EndIcon *AppsDynamiteSharedIcon `json:"endIcon,omitempty"` - - // Icon: Deprecated in favor of start_icon. - Icon *AppsDynamiteSharedIcon `json:"icon,omitempty"` - - // OnClick: Only the top and bottom label and content region are - // clickable. - OnClick *AppsDynamiteSharedOnClick `json:"onClick,omitempty"` - - // StartIcon: The icon displayed in front of the text. - StartIcon *AppsDynamiteSharedIcon `json:"startIcon,omitempty"` - - // SwitchControl: A switch widget can be clicked to change its state or - // trigger an action. - SwitchControl *AppsDynamiteSharedDecoratedTextSwitchControl `json:"switchControl,omitempty"` - - // Text: Required. The main widget formatted text. See Text formatting - // for details. - Text string `json:"text,omitempty"` - - // TopLabel: The formatted text label that shows above the main text. - TopLabel string `json:"topLabel,omitempty"` - - // WrapText: The wrap text setting. If `true`, the text is wrapped and - // displayed in multiline. Otherwise, the text is truncated. - WrapText bool `json:"wrapText,omitempty"` - - // ForceSendFields is a list of field names (e.g. "BottomLabel") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BottomLabel") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *AppsDynamiteSharedDecoratedText) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteSharedDecoratedText - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -type AppsDynamiteSharedDecoratedTextSwitchControl struct { - // ControlType: The control type, either switch or checkbox. - // - // Possible values: - // "SWITCH" - // "CHECKBOX" - Deprecated in favor of `CHECK_BOX`. - // "CHECK_BOX" - ControlType string `json:"controlType,omitempty"` - - // Name: The name of the switch widget that's used in formInput. - Name string `json:"name,omitempty"` - - // OnChangeAction: The action when the switch state is changed. - OnChangeAction *AppsDynamiteSharedAction `json:"onChangeAction,omitempty"` - - // Selected: If the switch is selected. - Selected bool `json:"selected,omitempty"` - - // Value: The value is what is passed back in the callback. - Value string `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ControlType") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ControlType") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *AppsDynamiteSharedDecoratedTextSwitchControl) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteSharedDecoratedTextSwitchControl - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // AppsDynamiteSharedDimension: Dimension for the uploaded attachments. type AppsDynamiteSharedDimension struct { Height int64 `json:"height,omitempty"` @@ -3009,10 +2317,6 @@ func (s *AppsDynamiteSharedDimension) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AppsDynamiteSharedDivider: A divider that appears in between widgets. -type AppsDynamiteSharedDivider struct { -} - // AppsDynamiteSharedDlpMetricsMetadata: LINT.IfChange type AppsDynamiteSharedDlpMetricsMetadata struct { // DlpStatus: [required] Describes the DLP status of message send and @@ -3170,117 +2474,13 @@ func (s *AppsDynamiteSharedFindDocumentSuggestion) MarshalJSON() ([]byte, error) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AppsDynamiteSharedGrid: Represents a Grid widget that displays items -// in a configurable grid layout. -type AppsDynamiteSharedGrid struct { - // BorderStyle: The border style to apply to each grid item. - BorderStyle *AppsDynamiteSharedBorderStyle `json:"borderStyle,omitempty"` - - // ColumnCount: The number of columns to display in the grid. A default - // value is used if this field isn't specified, and that default value - // is different depending on where the grid is shown (dialog versus - // companion). - ColumnCount int64 `json:"columnCount,omitempty"` - - // Items: The items to display in the grid. - Items []*AppsDynamiteSharedGridGridItem `json:"items,omitempty"` - - // OnClick: This callback is reused by each individual grid item, but - // with the item's identifier and index in the items list added to the - // callback's parameters. - OnClick *AppsDynamiteSharedOnClick `json:"onClick,omitempty"` - - // Title: The text that displays in the grid header. - Title string `json:"title,omitempty"` - - // ForceSendFields is a list of field names (e.g. "BorderStyle") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "BorderStyle") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *AppsDynamiteSharedGrid) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteSharedGrid - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// AppsDynamiteSharedGridGridItem: Represents a single item in the grid -// layout. -type AppsDynamiteSharedGridGridItem struct { - // Id: A user-specified identifier for this grid item. This identifier - // is returned in the parent Grid's onClick callback parameters. - Id string `json:"id,omitempty"` - - // Image: The image that displays in the grid item. - Image *AppsDynamiteSharedImageComponent `json:"image,omitempty"` - - // Layout: The layout to use for the grid item. - // - // Possible values: - // "GRID_ITEM_LAYOUT_UNSPECIFIED" - No layout specified. - // "TEXT_BELOW" - The title and subtitle are shown below the grid - // item's image. - // "TEXT_ABOVE" - The title and subtitle are shown above the grid - // item's image. - Layout string `json:"layout,omitempty"` - - // Subtitle: The grid item's subtitle. - Subtitle string `json:"subtitle,omitempty"` - - // TextAlignment: The horizontal alignment of the grid item's text. - // - // Possible values: - // "HORIZONTAL_ALIGNMENT_UNSPECIFIED" - Unspecified alignment. - // "START" - Alignment to the start position. - // "CENTER" - Alignment to the center position. - // "END" - Alignment to the end position. - TextAlignment string `json:"textAlignment,omitempty"` - - // Title: The grid item's title. - Title string `json:"title,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Id") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Id") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *AppsDynamiteSharedGridGridItem) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteSharedGridGridItem - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// AppsDynamiteSharedGroupDetails: NEXT TAG: 3 A GroupDetails proto will -// store the information pertaining to single Group. -type AppsDynamiteSharedGroupDetails struct { - // Description: A simple text that describes the purpose of a single - // Group, the general theme of the topics to be posted and/or the - // denominator of the Group participants. - Description string `json:"description,omitempty"` +// AppsDynamiteSharedGroupDetails: NEXT TAG: 3 A GroupDetails proto will +// store the information pertaining to single Group. +type AppsDynamiteSharedGroupDetails struct { + // Description: A simple text that describes the purpose of a single + // Group, the general theme of the topics to be posted and/or the + // denominator of the Group participants. + Description string `json:"description,omitempty"` // Guidelines: A simple text describing the rules and expectations from // members when participating in conversation. @@ -3339,176 +2539,6 @@ func (s *AppsDynamiteSharedGroupVisibility) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -type AppsDynamiteSharedIcon struct { - // AltText: The description of the icon, used for accessibility. The - // default value is provided if you don't specify one. - AltText string `json:"altText,omitempty"` - - // IconUrl: The icon specified by a URL. - IconUrl string `json:"iconUrl,omitempty"` - - // ImageType: The crop style applied to the image. In some cases, - // applying a `CIRCLE` crop causes the image to be drawn larger than a - // standard icon. - // - // Possible values: - // "SQUARE" - Applies no cropping to the image. - // "CIRCLE" - Applies a circular mask to the image. - ImageType string `json:"imageType,omitempty"` - - // KnownIcon: The icon specified by the string name of a list of known - // icons - KnownIcon string `json:"knownIcon,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AltText") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AltText") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *AppsDynamiteSharedIcon) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteSharedIcon - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// AppsDynamiteSharedImage: An image that is specified by a URL and can -// have an onClick action. -type AppsDynamiteSharedImage struct { - // AltText: The alternative text of this image, used for accessibility. - AltText string `json:"altText,omitempty"` - - // ImageUrl: An image URL. - ImageUrl string `json:"imageUrl,omitempty"` - - OnClick *AppsDynamiteSharedOnClick `json:"onClick,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AltText") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AltText") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *AppsDynamiteSharedImage) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteSharedImage - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -type AppsDynamiteSharedImageComponent struct { - // AltText: The accessibility label for the image. - AltText string `json:"altText,omitempty"` - - // BorderStyle: The border style to apply to the image. - BorderStyle *AppsDynamiteSharedBorderStyle `json:"borderStyle,omitempty"` - - // CropStyle: The crop style to apply to the image. - CropStyle *AppsDynamiteSharedImageCropStyle `json:"cropStyle,omitempty"` - - // ImageUri: The image URL. - ImageUri string `json:"imageUri,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AltText") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AltText") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *AppsDynamiteSharedImageComponent) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteSharedImageComponent - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// AppsDynamiteSharedImageCropStyle: Represents the crop style applied -// to an image. -type AppsDynamiteSharedImageCropStyle struct { - // AspectRatio: The aspect ratio to use if the crop type is - // `RECTANGLE_CUSTOM`. - AspectRatio float64 `json:"aspectRatio,omitempty"` - - // Type: The crop type. - // - // Possible values: - // "IMAGE_CROP_TYPE_UNSPECIFIED" - No value specified. - // "SQUARE" - Applies a square crop. - // "CIRCLE" - Applies a circular crop. - // "RECTANGLE_CUSTOM" - Applies a rectangular crop with a custom - // aspect ratio. - // "RECTANGLE_4_3" - Applies a rectangular crop with a 4:3 aspect - // ratio. - Type string `json:"type,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AspectRatio") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AspectRatio") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *AppsDynamiteSharedImageCropStyle) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteSharedImageCropStyle - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -func (s *AppsDynamiteSharedImageCropStyle) UnmarshalJSON(data []byte) error { - type NoMethod AppsDynamiteSharedImageCropStyle - var s1 struct { - AspectRatio gensupport.JSONFloat64 `json:"aspectRatio"` - *NoMethod - } - s1.NoMethod = (*NoMethod)(s) - if err := json.Unmarshal(data, &s1); err != nil { - return err - } - s.AspectRatio = float64(s1.AspectRatio) - return nil -} - // AppsDynamiteSharedJustification: Data for rendering a justification // for a document. type AppsDynamiteSharedJustification struct { @@ -3714,212 +2744,12 @@ func (s *AppsDynamiteSharedMessageIntegrationPayload) MarshalJSON() ([]byte, err return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -type AppsDynamiteSharedOnClick struct { - // Action: If specified, an action is triggered by this onClick. - Action *AppsDynamiteSharedAction `json:"action,omitempty"` +// AppsDynamiteSharedOrganizationInfo: Contains info about the entity +// that something is, or is owned by. +type AppsDynamiteSharedOrganizationInfo struct { + ConsumerInfo *AppsDynamiteSharedOrganizationInfoConsumerInfo `json:"consumerInfo,omitempty"` - // HostAppAction: Triggers host app action on click directly without - // invoking form actions. This is currently not available to end-users - // and is used internal only. - HostAppAction *HostAppActionMarkup `json:"hostAppAction,omitempty"` - - // OpenDynamicLinkAction: An add-on triggers this action when the action - // needs to open a link. This differs from the open_link above in that - // this needs to talk to server to get the link. Thus some preparation - // work is required for web client to do before the open link action - // response comes back. - OpenDynamicLinkAction *AppsDynamiteSharedAction `json:"openDynamicLinkAction,omitempty"` - - // OpenLink: If specified, this onClick triggers an open link action. - OpenLink *AppsDynamiteSharedOpenLink `json:"openLink,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Action") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Action") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *AppsDynamiteSharedOnClick) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteSharedOnClick - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -type AppsDynamiteSharedOpenLink struct { - // AppUri: Represents the platform specific uri/intent to open on each - // client. For example: A companion_url will open in a companion window - // on the web. An iOS URL and android intent will open in the - // corresponding hosting apps. If these platform specific URLs can't be - // handled correctly, i.e. if the companion isn't supported on web and - // the hosting apps aren't available on the mobile platforms then the - // `uri` will open in a new browser window on all the platforms. - AppUri *AppsDynamiteSharedOpenLinkAppUri `json:"appUri,omitempty"` - - // Possible values: - // "NOTHING" - Doesn’t reload the card after the child window - // closes. Reloads the card after the child window closes. If used in - // conjunction with - // [OpenAs.OVERLAY](/workspace/add-ons/reference/rpc/google.apps.card.v1# - // openas), the child window acts as a modal dialog and the main card is - // blocked until the child window closes. - // "RELOAD" - OnClose string `json:"onClose,omitempty"` - - // Possible values: - // "FULL_SIZE" - The link opens as a full size window (if that's the - // frame used by the client. - // "OVERLAY" - The link opens as an overlay, such as a pop-up. - OpenAs string `json:"openAs,omitempty"` - - // Url: The URL to open. - Url string `json:"url,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AppUri") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AppUri") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *AppsDynamiteSharedOpenLink) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteSharedOpenLink - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// AppsDynamiteSharedOpenLinkAppUri: Represents the platform specific -// uri/intent to open for each client. -type AppsDynamiteSharedOpenLinkAppUri struct { - // AndroidIntent: An intent object to be opened in the corresponding - // android hosting app. - AndroidIntent *AppsDynamiteSharedOpenLinkAppUriIntent `json:"androidIntent,omitempty"` - - // CompanionUri: A companion uri string to be opened in the chat - // companion window. on the web. - CompanionUri string `json:"companionUri,omitempty"` - - // IosUri: A uri string to be opened in the corresponding iOS hosting - // app. - IosUri string `json:"iosUri,omitempty"` - - // ForceSendFields is a list of field names (e.g. "AndroidIntent") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "AndroidIntent") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *AppsDynamiteSharedOpenLinkAppUri) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteSharedOpenLinkAppUri - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// AppsDynamiteSharedOpenLinkAppUriIntent: Android intent. -type AppsDynamiteSharedOpenLinkAppUriIntent struct { - // ExtraData: A list of extra data for the android intent. For example, - // for a calendar event edit intent, the event title information can be - // passed as extra data. - ExtraData []*AppsDynamiteSharedOpenLinkAppUriIntentExtraData `json:"extraData,omitempty"` - - // IntentAction: An android intent action string for the {@link - // android.content.Intent} object. For example: for the view intent - // action type, a valid value will be - // android.content.Intent.ACTION_VIEW. - IntentAction string `json:"intentAction,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ExtraData") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ExtraData") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *AppsDynamiteSharedOpenLinkAppUriIntent) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteSharedOpenLinkAppUriIntent - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// AppsDynamiteSharedOpenLinkAppUriIntentExtraData: Extra data for an -// android intent. Valid keys are defined in the hosting app contract. -type AppsDynamiteSharedOpenLinkAppUriIntentExtraData struct { - // Key: A key for the intent extra data. - Key string `json:"key,omitempty"` - - // Value: Value for the given extra data key. - Value string `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Key") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Key") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *AppsDynamiteSharedOpenLinkAppUriIntentExtraData) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteSharedOpenLinkAppUriIntentExtraData - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// AppsDynamiteSharedOrganizationInfo: Contains info about the entity -// that something is, or is owned by. -type AppsDynamiteSharedOrganizationInfo struct { - ConsumerInfo *AppsDynamiteSharedOrganizationInfoConsumerInfo `json:"consumerInfo,omitempty"` - - CustomerInfo *AppsDynamiteSharedOrganizationInfoCustomerInfo `json:"customerInfo,omitempty"` + CustomerInfo *AppsDynamiteSharedOrganizationInfoCustomerInfo `json:"customerInfo,omitempty"` // ForceSendFields is a list of field names (e.g. "ConsumerInfo") to // unconditionally include in API requests. By default, fields with @@ -4185,90 +3015,6 @@ func (s *AppsDynamiteSharedSegmentedMembershipCounts) MarshalJSON() ([]byte, err return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AppsDynamiteSharedSelectionInput: A widget that creates a UI item -// (for example, a drop-down list) with options for users to select. -type AppsDynamiteSharedSelectionInput struct { - Items []*AppsDynamiteSharedSelectionInputSelectionItem `json:"items,omitempty"` - - // Label: The label displayed ahead of the switch control. - Label string `json:"label,omitempty"` - - // Name: The name of the text input which is used in formInput. - Name string `json:"name,omitempty"` - - // OnChangeAction: If specified, the form is submitted when the - // selection changes. If not specified, you must specify a separate - // button. - OnChangeAction *AppsDynamiteSharedAction `json:"onChangeAction,omitempty"` - - // Possible values: - // "CHECK_BOX" - The selection type is a checkbox. - // "RADIO_BUTTON" - The selection type is a radio button. - // "SWITCH" - The selection type is a switch. - // "DROPDOWN" - The selection type is a dropdown. - Type string `json:"type,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Items") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Items") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *AppsDynamiteSharedSelectionInput) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteSharedSelectionInput - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// AppsDynamiteSharedSelectionInputSelectionItem: The item in the switch -// control. A radio button, at most one of the items is selected. -type AppsDynamiteSharedSelectionInputSelectionItem struct { - // Selected: If more than one item is selected for `RADIO_BUTTON` and - // `DROPDOWN`, the first selected item is treated as selected and the - // ones after are ignored. - Selected bool `json:"selected,omitempty"` - - // Text: The text to be displayed. - Text string `json:"text,omitempty"` - - // Value: The value associated with this item. The client should use - // this as a form input value. - Value string `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Selected") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Selected") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *AppsDynamiteSharedSelectionInputSelectionItem) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteSharedSelectionInputSelectionItem - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // AppsDynamiteSharedSpaceInfo: Defines the representation of a single // matching space. type AppsDynamiteSharedSpaceInfo struct { @@ -4328,15 +3074,1381 @@ func (s *AppsDynamiteSharedSpaceInfo) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AppsDynamiteSharedSuggestions: A container wrapping elements -// necessary for showing suggestion items used in text input -// autocomplete. -type AppsDynamiteSharedSuggestions struct { - // Items: A list of suggestions items which will be used in are used in - // autocomplete. - Items []*AppsDynamiteSharedSuggestionsSuggestionItem `json:"items,omitempty"` +// AppsDynamiteSharedTasksAnnotationData: This is the internal version +// of the API proto at +// google3/google/chat/v1/gsuite_message_integration.proto +type AppsDynamiteSharedTasksAnnotationData struct { + AssigneeChange *AppsDynamiteSharedTasksAnnotationDataAssigneeChange `json:"assigneeChange,omitempty"` + + CompletionChange *AppsDynamiteSharedTasksAnnotationDataCompletionChange `json:"completionChange,omitempty"` + + Creation *AppsDynamiteSharedTasksAnnotationDataCreation `json:"creation,omitempty"` + + DeletionChange *AppsDynamiteSharedTasksAnnotationDataDeletionChange `json:"deletionChange,omitempty"` + + // TaskId: ID of task. Will be used to create deep links to Tasks. + TaskId string `json:"taskId,omitempty"` + + // TaskProperties: Task properties after the update has been applied. + TaskProperties *AppsDynamiteSharedTasksAnnotationDataTaskProperties `json:"taskProperties,omitempty"` + + UserDefinedMessage *AppsDynamiteSharedTasksAnnotationDataUserDefinedMessage `json:"userDefinedMessage,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AssigneeChange") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AssigneeChange") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *AppsDynamiteSharedTasksAnnotationData) MarshalJSON() ([]byte, error) { + type NoMethod AppsDynamiteSharedTasksAnnotationData + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type AppsDynamiteSharedTasksAnnotationDataAssigneeChange struct { + // OldAssignee: Obfuscated user ID of previous assignee. Not set if the + // task was originally not assigned. + OldAssignee *UserId `json:"oldAssignee,omitempty"` + + // ForceSendFields is a list of field names (e.g. "OldAssignee") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "OldAssignee") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *AppsDynamiteSharedTasksAnnotationDataAssigneeChange) MarshalJSON() ([]byte, error) { + type NoMethod AppsDynamiteSharedTasksAnnotationDataAssigneeChange + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type AppsDynamiteSharedTasksAnnotationDataCompletionChange struct { +} + +type AppsDynamiteSharedTasksAnnotationDataCreation struct { +} + +type AppsDynamiteSharedTasksAnnotationDataDeletionChange struct { +} + +// AppsDynamiteSharedTasksAnnotationDataTaskProperties: All relevant +// task properties for a Chat message. +type AppsDynamiteSharedTasksAnnotationDataTaskProperties struct { + // Assignee: Obfuscated user ID of new assignee. Not set if the task + // doesn't have an assignee. + Assignee *UserId `json:"assignee,omitempty"` + + // Completed: Whether the task is marked as completed. + Completed bool `json:"completed,omitempty"` + + // Deleted: Whether the task is marked as deleted. + Deleted bool `json:"deleted,omitempty"` + + // Description: The description of the task. If Task original + // description's length is greater than 1024, then Task BE sends the + // truncated description to Dynamite Integration Server. + Description string `json:"description,omitempty"` + + // StartDate: Set if the task has a date but no time. Source of truth in + // Tasks BE: http://shortn/_wyT7eB4Ixv + StartDate *Date `json:"startDate,omitempty"` + + // StartTime: Set if the task has both a date and a time. Source of + // truth in Tasks BE: http://shortn/_u6cr0F5ttE + StartTime string `json:"startTime,omitempty"` + + // Title: The title of the task. + Title string `json:"title,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Assignee") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Assignee") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *AppsDynamiteSharedTasksAnnotationDataTaskProperties) MarshalJSON() ([]byte, error) { + type NoMethod AppsDynamiteSharedTasksAnnotationDataTaskProperties + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// AppsDynamiteSharedTasksAnnotationDataUserDefinedMessage: Used for +// task card attachments on custom user messages that should be kept as +// is without generating an i18n event message, e.g. the user starts a +// conversation from an existing task. IMPORTANT: please don't populate +// this field yet as it could break existing flows until it's +// implemented. See code at http://shortn/_CM74CdENMx used by +// http://shortn/_5o85POJY8Q. +type AppsDynamiteSharedTasksAnnotationDataUserDefinedMessage struct { +} + +// AppsDynamiteSharedTasksMessageIntegrationPayload: A payload +// containing Tasks metadata for rendering a live card. Currently not +// used by the Tasks integration. +type AppsDynamiteSharedTasksMessageIntegrationPayload struct { +} + +// AppsDynamiteSharedUserBlockRelationship: User-block relationship +type AppsDynamiteSharedUserBlockRelationship struct { + HasBlockedRequester bool `json:"hasBlockedRequester,omitempty"` + + IsBlockedByRequester bool `json:"isBlockedByRequester,omitempty"` + + // ForceSendFields is a list of field names (e.g. "HasBlockedRequester") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "HasBlockedRequester") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *AppsDynamiteSharedUserBlockRelationship) MarshalJSON() ([]byte, error) { + type NoMethod AppsDynamiteSharedUserBlockRelationship + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// AppsDynamiteSharedVideoReference: Reference to a transcoded video +// attachment. +type AppsDynamiteSharedVideoReference struct { + // Format: Available transcode format. Value is defined in + // video/storage/proto/content_header.proto + Format []int64 `json:"format,omitempty"` + + // Status: Transcode status + // + // Possible values: + // "UNKNOWN_STATUS" + // "SUCCESS" + // "ERROR" + // "NOT_APPLICABLE" + // "THUMBNAIL_SUCCESS" + // "GO_LIVE_SUCCESS" + Status string `json:"status,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Format") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Format") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *AppsDynamiteSharedVideoReference) MarshalJSON() ([]byte, error) { + type NoMethod AppsDynamiteSharedVideoReference + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// AppsDynamiteStorageAction: An action that describes the behavior when +// the form is submitted. For example, an Apps Script can be invoked to +// handle the form. +type AppsDynamiteStorageAction struct { + // Function: Apps Script function to invoke when the containing element + // is clicked/activated. + Function string `json:"function,omitempty"` + + // Possible values: + // "INTERACTION_UNSPECIFIED" - Default value if interaction is not + // specified. + // "OPEN_DIALOG" - A dialog opens by clicking the button. + Interaction string `json:"interaction,omitempty"` + + // Possible values: + // "SPINNER" - Displays a spinner to indicate that content is loading. + // "NONE" - Nothing is displayed. + LoadIndicator string `json:"loadIndicator,omitempty"` + + // Parameters: List of action parameters. + Parameters []*AppsDynamiteStorageActionActionParameter `json:"parameters,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Function") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Function") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *AppsDynamiteStorageAction) MarshalJSON() ([]byte, error) { + type NoMethod AppsDynamiteStorageAction + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// AppsDynamiteStorageActionActionParameter: List of string parameters +// to supply when the action method is invoked. For example, consider +// three snooze buttons: snooze now, snooze 1 day, snooze next week. You +// might use action method = snooze(), passing the snooze type and +// snooze time in the list of string parameters. +type AppsDynamiteStorageActionActionParameter struct { + // Key: The name of the parameter for the action script. + Key string `json:"key,omitempty"` + + // Value: The value of the parameter. + Value string `json:"value,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Key") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Key") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *AppsDynamiteStorageActionActionParameter) MarshalJSON() ([]byte, error) { + type NoMethod AppsDynamiteStorageActionActionParameter + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// AppsDynamiteStorageBorderStyle: Represents the complete border style +// applied to widgets. +type AppsDynamiteStorageBorderStyle struct { + // CornerRadius: The corner radius for the border. + CornerRadius int64 `json:"cornerRadius,omitempty"` + + // StrokeColor: The colors to use when the type is `BORDER_TYPE_STROKE`. + StrokeColor *Color `json:"strokeColor,omitempty"` + + // Type: The border type. + // + // Possible values: + // "BORDER_TYPE_UNSPECIFIED" - No value specified. + // "NO_BORDER" - No border. + // "STROKE" - Outline. + Type string `json:"type,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CornerRadius") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CornerRadius") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *AppsDynamiteStorageBorderStyle) MarshalJSON() ([]byte, error) { + type NoMethod AppsDynamiteStorageBorderStyle + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// AppsDynamiteStorageButton: A button. Can be a text button or an image +// button. +type AppsDynamiteStorageButton struct { + // AltText: The alternative text used for accessibility. Has no effect + // when an icon is set; use `icon.alt_text` instead. + AltText string `json:"altText,omitempty"` + + // Color: If set, the button is filled with a solid background. + Color *Color `json:"color,omitempty"` + + // Disabled: If true, the button is displayed in a disabled state and + // doesn't respond to user actions. + Disabled bool `json:"disabled,omitempty"` + + // Icon: The icon image. + Icon *AppsDynamiteStorageIcon `json:"icon,omitempty"` + + // OnClick: The action to perform when the button is clicked. + OnClick *AppsDynamiteStorageOnClick `json:"onClick,omitempty"` + + // Text: The text of the button. + Text string `json:"text,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AltText") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AltText") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *AppsDynamiteStorageButton) MarshalJSON() ([]byte, error) { + type NoMethod AppsDynamiteStorageButton + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// AppsDynamiteStorageButtonList: A list of buttons layed out +// horizontally. +type AppsDynamiteStorageButtonList struct { + Buttons []*AppsDynamiteStorageButton `json:"buttons,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Buttons") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Buttons") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *AppsDynamiteStorageButtonList) MarshalJSON() ([]byte, error) { + type NoMethod AppsDynamiteStorageButtonList + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// AppsDynamiteStorageCard: A card is a UI element that can contain UI +// widgets such as text and images. For more information, see Cards . +// For example, the following JSON creates a card that has a header with +// the name, position, icons, and link for a contact, followed by a +// section with contact information like email and phone number. ``` { +// "header": { "title": "Heba Salam", "subtitle": "Software Engineer", +// "imageStyle": "ImageStyle.AVATAR", "imageUrl": +// "https://example.com/heba_salam.png", "imageAltText": "Avatar for +// Heba Salam" }, "sections" : [ { "header": "Contact Info", "widgets": +// [ { "decorated_text": { "icon": { "knownIcon": "EMAIL" }, "content": +// "heba.salam@example.com" } }, { "decoratedText": { "icon": { +// "knownIcon": "PERSON" }, "content": "Online" } }, { "decoratedText": +// { "icon": { "knownIcon": "PHONE" }, "content": "+1 (555) 555-1234" } +// }, { "buttons": [ { "textButton": { "text": "Share", }, "onClick": { +// "openLink": { "url": "https://example.com/share" } } }, { +// "textButton": { "text": "Edit", }, "onClick": { "action": { +// "function": "goToView", "parameters": [ { "key": "viewType", "value": +// "EDIT" } ], "loadIndicator": "LoadIndicator.SPINNER" } } } ] } ], +// "collapsible": true, "uncollapsibleWidgetsCount": 3 } ], +// "cardActions": [ { "actionLabel": "Send Feedback", "onClick": { +// "openLink": { "url": "https://example.com/feedback" } } } ], "name": +// "contact-card-K3wB6arF2H9L" } ``` +type AppsDynamiteStorageCard struct { + // CardActions: The actions of this card. They are added to a card's + // generated toolbar menu. For example, the following JSON constructs a + // card action menu with Settings and Send Feedback options: ``` + // "card_actions": [ { "actionLabel": "Setting", "onClick": { "action": + // { "functionName": "goToView", "parameters": [ { "key": "viewType", + // "value": "SETTING" } ], "loadIndicator": "LoadIndicator.SPINNER" } } + // }, { "actionLabel": "Send Feedback", "onClick": { "openLink": { + // "url": "https://example.com/feedback" } } } ] ``` + CardActions []*AppsDynamiteStorageCardCardAction `json:"cardActions,omitempty"` + + // Header: The header of the card. A header usually contains a title and + // an image. + Header *AppsDynamiteStorageCardCardHeader `json:"header,omitempty"` + + // Name: Name of the card, which is used as a identifier for the card in + // card navigation. + Name string `json:"name,omitempty"` + + // Sections: Sections are separated by a line divider. + Sections []*AppsDynamiteStorageCardSection `json:"sections,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CardActions") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CardActions") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *AppsDynamiteStorageCard) MarshalJSON() ([]byte, error) { + type NoMethod AppsDynamiteStorageCard + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// AppsDynamiteStorageCardCardAction: A card action is the action +// associated with the card. For example, an invoice card might include +// actions such as delete invoice, email invoice, or open the invoice in +// a browser. +type AppsDynamiteStorageCardCardAction struct { + // ActionLabel: The label that displays as the action menu item. + ActionLabel string `json:"actionLabel,omitempty"` + + // OnClick: The onclick action for this action item. + OnClick *AppsDynamiteStorageOnClick `json:"onClick,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ActionLabel") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ActionLabel") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *AppsDynamiteStorageCardCardAction) MarshalJSON() ([]byte, error) { + type NoMethod AppsDynamiteStorageCardCardAction + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type AppsDynamiteStorageCardCardHeader struct { + // ImageAltText: The alternative text of this image which is used for + // accessibility. + ImageAltText string `json:"imageAltText,omitempty"` + + // ImageType: The image's type. + // + // Possible values: + // "SQUARE" - Applies no cropping to the image. + // "CIRCLE" - Applies a circular mask to the image. + ImageType string `json:"imageType,omitempty"` + + // ImageUrl: The URL of the image in the card header. + ImageUrl string `json:"imageUrl,omitempty"` + + // Subtitle: The subtitle of the card header. + Subtitle string `json:"subtitle,omitempty"` + + // Title: The title of the card header. The title must be specified. The + // header has a fixed height: if both a title and subtitle are + // specified, each takes up one line. If only the title is specified, it + // takes up both lines. + Title string `json:"title,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ImageAltText") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ImageAltText") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *AppsDynamiteStorageCardCardHeader) MarshalJSON() ([]byte, error) { + type NoMethod AppsDynamiteStorageCardCardHeader + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// AppsDynamiteStorageCardSection: A section contains a collection of +// widgets that are rendered vertically in the order that they are +// specified. Across all platforms, cards have a narrow fixed width, so +// there is currently no need for layout properties, for example, float. +type AppsDynamiteStorageCardSection struct { + // Collapsible: Indicates whether this section is collapsible. If a + // section is collapsible, the description must be given. + Collapsible bool `json:"collapsible,omitempty"` + + // Header: The header of the section. Formatted text is supported. + Header string `json:"header,omitempty"` + + // UncollapsibleWidgetsCount: The number of uncollapsible widgets. For + // example, when a section contains five widgets and the + // `numUncollapsibleWidget` is set to `2`, the first two widgets are + // always shown and the last three are collapsed as default. The + // `numUncollapsibleWidget` is taken into account only when collapsible + // is set to `true`. + UncollapsibleWidgetsCount int64 `json:"uncollapsibleWidgetsCount,omitempty"` + + // Widgets: A section must contain at least 1 widget. + Widgets []*AppsDynamiteStorageWidget `json:"widgets,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Collapsible") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Collapsible") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *AppsDynamiteStorageCardSection) MarshalJSON() ([]byte, error) { + type NoMethod AppsDynamiteStorageCardSection + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// AppsDynamiteStorageColumns: Represents a Columns widget that displays +// a single row of columns. +type AppsDynamiteStorageColumns struct { + // ColumnItems: Each card supports up to 2 columns. + ColumnItems []*AppsDynamiteStorageColumnsColumn `json:"columnItems,omitempty"` + + // WrapStyle: Controls how the column resizes based on screen width. + // + // Possible values: + // "WRAP_STYLE_UNSPECIFIED" - Unspecified. + // "NOWRAP" - Column widgets don't wrap. + // "WRAP" - Column Widgets wrap. + WrapStyle string `json:"wrapStyle,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ColumnItems") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ColumnItems") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *AppsDynamiteStorageColumns) MarshalJSON() ([]byte, error) { + type NoMethod AppsDynamiteStorageColumns + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// AppsDynamiteStorageColumnsColumn: Represents a Column that consists +// of widgets stacked vertically. +type AppsDynamiteStorageColumnsColumn struct { + // HorizontalAlignment: The horizontal alignment of the column. + // + // Possible values: + // "HORIZONTAL_ALIGNMENT_UNSPECIFIED" - Unspecified alignment. + // "START" - Alignment to the start position. + // "CENTER" - Alignment to the center position. + // "END" - Alignment to the end position. + HorizontalAlignment string `json:"horizontalAlignment,omitempty"` + + // HorizontalSizeStyle: Specifies how the column content is sized + // horizontally. + // + // Possible values: + // "HORIZONTAL_SIZE_STYLE_UNSPECIFIED" - Unspecified. + // "FILL_AVAILABLE_SPACE" - Fills up the available horizontal width. + // Default value if unspecified. + // "FILL_MINIMUM_SPACE" - Fills up the minimum horizontal width. + HorizontalSizeStyle string `json:"horizontalSizeStyle,omitempty"` + + // VerticalAlignment: The vertical alignment of the column. + // + // Possible values: + // "VERTICAL_ALIGNMENT_UNSPECIFIED" - Unspecified. + // "CENTER" - Aligns the widget in the center of the column. Default + // value if unspecified. + // "TOP" - Aligns the widget at the top of the column. + // "BOTTOM" - Aligns the widget at the bottom of the column. + VerticalAlignment string `json:"verticalAlignment,omitempty"` + + // Widgets: + // LINT.ThenChange(//depot/google3/google/apps/card/v1/card.proto) Array + // of widgets included in the column. + Widgets []*AppsDynamiteStorageColumnsColumnWidgets `json:"widgets,omitempty"` + + // ForceSendFields is a list of field names (e.g. "HorizontalAlignment") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "HorizontalAlignment") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *AppsDynamiteStorageColumnsColumn) MarshalJSON() ([]byte, error) { + type NoMethod AppsDynamiteStorageColumnsColumn + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// AppsDynamiteStorageColumnsColumnWidgets: LINT.IfChange The `column` +// widget can contain these widgets. +type AppsDynamiteStorageColumnsColumnWidgets struct { + // ButtonList: ButtonList widget. + ButtonList *AppsDynamiteStorageButtonList `json:"buttonList,omitempty"` + + // DateTimePicker: DateTimePicker widget. + DateTimePicker *AppsDynamiteStorageDateTimePicker `json:"dateTimePicker,omitempty"` + + // DecoratedText: DecoratedText widget. + DecoratedText *AppsDynamiteStorageDecoratedText `json:"decoratedText,omitempty"` + + // Image: Image widget. + Image *AppsDynamiteStorageImage `json:"image,omitempty"` + + // SelectionInput: SelectionInput widget. + SelectionInput *AppsDynamiteStorageSelectionInput `json:"selectionInput,omitempty"` + + // TextInput: TextInput widget. + TextInput *AppsDynamiteStorageTextInput `json:"textInput,omitempty"` + + // TextParagraph: Text paragraph widget. + TextParagraph *AppsDynamiteStorageTextParagraph `json:"textParagraph,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ButtonList") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ButtonList") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *AppsDynamiteStorageColumnsColumnWidgets) MarshalJSON() ([]byte, error) { + type NoMethod AppsDynamiteStorageColumnsColumnWidgets + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// AppsDynamiteStorageDateTimePicker: The widget that lets users to +// specify a date and time. +type AppsDynamiteStorageDateTimePicker struct { + // Label: The label for the field that displays to the user. + Label string `json:"label,omitempty"` + + // Name: The name of the text input that's used in formInput, and + // uniquely identifies this input. + Name string `json:"name,omitempty"` + + // OnChangeAction: Triggered when the user clicks Save or Clear from the + // date/time picker dialog. This is only triggered if the value changed + // as a result of the Save/Clear operation. + OnChangeAction *AppsDynamiteStorageAction `json:"onChangeAction,omitempty"` + + // TimezoneOffsetDate: The number representing the time zone offset from + // UTC, in minutes. If set, the `value_ms_epoch` is displayed in the + // specified time zone. If not set, it uses the user's time zone setting + // on the client side. + TimezoneOffsetDate int64 `json:"timezoneOffsetDate,omitempty"` + + // Type: The type of the date/time picker. + // + // Possible values: + // "DATE_AND_TIME" - The user can select a date and time. + // "DATE_ONLY" - The user can only select a date. + // "TIME_ONLY" - The user can only select a time. + Type string `json:"type,omitempty"` + + // ValueMsEpoch: The value to display as the default value before user + // input or previous user input. It is represented in milliseconds + // (Epoch time). For `DATE_AND_TIME` type, the full epoch value is used. + // For `DATE_ONLY` type, only date of the epoch time is used. For + // `TIME_ONLY` type, only time of the epoch time is used. For example, + // you can set epoch time to `3 * 60 * 60 * 1000` to represent 3am. + ValueMsEpoch int64 `json:"valueMsEpoch,omitempty,string"` + + // ForceSendFields is a list of field names (e.g. "Label") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Label") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *AppsDynamiteStorageDateTimePicker) MarshalJSON() ([]byte, error) { + type NoMethod AppsDynamiteStorageDateTimePicker + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// AppsDynamiteStorageDecoratedText: A widget that displays text with +// optional decorations such as a label above or below the text, an icon +// in front of the text, a selection widget or a button after the text. +type AppsDynamiteStorageDecoratedText struct { + // BottomLabel: The formatted text label that shows below the main text. + BottomLabel string `json:"bottomLabel,omitempty"` + + // Button: A button that can be clicked to trigger an action. + Button *AppsDynamiteStorageButton `json:"button,omitempty"` + + // EndIcon: An icon displayed after the text. + EndIcon *AppsDynamiteStorageIcon `json:"endIcon,omitempty"` + + // Icon: Deprecated in favor of start_icon. + Icon *AppsDynamiteStorageIcon `json:"icon,omitempty"` + + // OnClick: Only the top and bottom label and content region are + // clickable. + OnClick *AppsDynamiteStorageOnClick `json:"onClick,omitempty"` + + // StartIcon: The icon displayed in front of the text. + StartIcon *AppsDynamiteStorageIcon `json:"startIcon,omitempty"` + + // SwitchControl: A switch widget can be clicked to change its state or + // trigger an action. + SwitchControl *AppsDynamiteStorageDecoratedTextSwitchControl `json:"switchControl,omitempty"` + + // Text: Required. The main widget formatted text. See Text formatting + // for details. + Text string `json:"text,omitempty"` + + // TopLabel: The formatted text label that shows above the main text. + TopLabel string `json:"topLabel,omitempty"` + + // WrapText: The wrap text setting. If `true`, the text is wrapped and + // displayed in multiline. Otherwise, the text is truncated. + WrapText bool `json:"wrapText,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BottomLabel") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BottomLabel") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *AppsDynamiteStorageDecoratedText) MarshalJSON() ([]byte, error) { + type NoMethod AppsDynamiteStorageDecoratedText + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type AppsDynamiteStorageDecoratedTextSwitchControl struct { + // ControlType: The control type, either switch or checkbox. + // + // Possible values: + // "SWITCH" + // "CHECKBOX" - Deprecated in favor of `CHECK_BOX`. + // "CHECK_BOX" + ControlType string `json:"controlType,omitempty"` + + // Name: The name of the switch widget that's used in formInput. + Name string `json:"name,omitempty"` + + // OnChangeAction: The action when the switch state is changed. + OnChangeAction *AppsDynamiteStorageAction `json:"onChangeAction,omitempty"` + + // Selected: If the switch is selected. + Selected bool `json:"selected,omitempty"` + + // Value: The value is what is passed back in the callback. + Value string `json:"value,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ControlType") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ControlType") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *AppsDynamiteStorageDecoratedTextSwitchControl) MarshalJSON() ([]byte, error) { + type NoMethod AppsDynamiteStorageDecoratedTextSwitchControl + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// AppsDynamiteStorageDivider: A divider that appears in between +// widgets. +type AppsDynamiteStorageDivider struct { +} + +// AppsDynamiteStorageGrid: Represents a Grid widget that displays items +// in a configurable grid layout. +type AppsDynamiteStorageGrid struct { + // BorderStyle: The border style to apply to each grid item. + BorderStyle *AppsDynamiteStorageBorderStyle `json:"borderStyle,omitempty"` + + // ColumnCount: The number of columns to display in the grid. A default + // value is used if this field isn't specified, and that default value + // is different depending on where the grid is shown (dialog versus + // companion). + ColumnCount int64 `json:"columnCount,omitempty"` + + // Items: The items to display in the grid. + Items []*AppsDynamiteStorageGridGridItem `json:"items,omitempty"` + + // OnClick: This callback is reused by each individual grid item, but + // with the item's identifier and index in the items list added to the + // callback's parameters. + OnClick *AppsDynamiteStorageOnClick `json:"onClick,omitempty"` + + // Title: The text that displays in the grid header. + Title string `json:"title,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BorderStyle") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BorderStyle") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *AppsDynamiteStorageGrid) MarshalJSON() ([]byte, error) { + type NoMethod AppsDynamiteStorageGrid + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// AppsDynamiteStorageGridGridItem: Represents a single item in the grid +// layout. +type AppsDynamiteStorageGridGridItem struct { + // Id: A user-specified identifier for this grid item. This identifier + // is returned in the parent Grid's onClick callback parameters. + Id string `json:"id,omitempty"` + + // Image: The image that displays in the grid item. + Image *AppsDynamiteStorageImageComponent `json:"image,omitempty"` + + // Layout: The layout to use for the grid item. + // + // Possible values: + // "GRID_ITEM_LAYOUT_UNSPECIFIED" - No layout specified. + // "TEXT_BELOW" - The title and subtitle are shown below the grid + // item's image. + // "TEXT_ABOVE" - The title and subtitle are shown above the grid + // item's image. + Layout string `json:"layout,omitempty"` + + // Subtitle: The grid item's subtitle. + Subtitle string `json:"subtitle,omitempty"` + + // TextAlignment: The horizontal alignment of the grid item's text. + // + // Possible values: + // "HORIZONTAL_ALIGNMENT_UNSPECIFIED" - Unspecified alignment. + // "START" - Alignment to the start position. + // "CENTER" - Alignment to the center position. + // "END" - Alignment to the end position. + TextAlignment string `json:"textAlignment,omitempty"` + + // Title: The grid item's title. + Title string `json:"title,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Id") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Id") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *AppsDynamiteStorageGridGridItem) MarshalJSON() ([]byte, error) { + type NoMethod AppsDynamiteStorageGridGridItem + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type AppsDynamiteStorageIcon struct { + // AltText: The description of the icon, used for accessibility. The + // default value is provided if you don't specify one. + AltText string `json:"altText,omitempty"` + + // IconUrl: The icon specified by a URL. + IconUrl string `json:"iconUrl,omitempty"` + + // ImageType: The crop style applied to the image. In some cases, + // applying a `CIRCLE` crop causes the image to be drawn larger than a + // standard icon. + // + // Possible values: + // "SQUARE" - Applies no cropping to the image. + // "CIRCLE" - Applies a circular mask to the image. + ImageType string `json:"imageType,omitempty"` + + // KnownIcon: The icon specified by the string name of a list of known + // icons + KnownIcon string `json:"knownIcon,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AltText") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AltText") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *AppsDynamiteStorageIcon) MarshalJSON() ([]byte, error) { + type NoMethod AppsDynamiteStorageIcon + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// AppsDynamiteStorageImage: An image that is specified by a URL and can +// have an onClick action. +type AppsDynamiteStorageImage struct { + // AltText: The alternative text of this image, used for accessibility. + AltText string `json:"altText,omitempty"` + + // ImageUrl: An image URL. + ImageUrl string `json:"imageUrl,omitempty"` + + OnClick *AppsDynamiteStorageOnClick `json:"onClick,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AltText") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AltText") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *AppsDynamiteStorageImage) MarshalJSON() ([]byte, error) { + type NoMethod AppsDynamiteStorageImage + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type AppsDynamiteStorageImageComponent struct { + // AltText: The accessibility label for the image. + AltText string `json:"altText,omitempty"` + + // BorderStyle: The border style to apply to the image. + BorderStyle *AppsDynamiteStorageBorderStyle `json:"borderStyle,omitempty"` + + // CropStyle: The crop style to apply to the image. + CropStyle *AppsDynamiteStorageImageCropStyle `json:"cropStyle,omitempty"` + + // ImageUri: The image URL. + ImageUri string `json:"imageUri,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AltText") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AltText") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *AppsDynamiteStorageImageComponent) MarshalJSON() ([]byte, error) { + type NoMethod AppsDynamiteStorageImageComponent + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// AppsDynamiteStorageImageCropStyle: Represents the crop style applied +// to an image. +type AppsDynamiteStorageImageCropStyle struct { + // AspectRatio: The aspect ratio to use if the crop type is + // `RECTANGLE_CUSTOM`. + AspectRatio float64 `json:"aspectRatio,omitempty"` + + // Type: The crop type. + // + // Possible values: + // "IMAGE_CROP_TYPE_UNSPECIFIED" - No value specified. + // "SQUARE" - Applies a square crop. + // "CIRCLE" - Applies a circular crop. + // "RECTANGLE_CUSTOM" - Applies a rectangular crop with a custom + // aspect ratio. + // "RECTANGLE_4_3" - Applies a rectangular crop with a 4:3 aspect + // ratio. + Type string `json:"type,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AspectRatio") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AspectRatio") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *AppsDynamiteStorageImageCropStyle) MarshalJSON() ([]byte, error) { + type NoMethod AppsDynamiteStorageImageCropStyle + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *AppsDynamiteStorageImageCropStyle) UnmarshalJSON(data []byte) error { + type NoMethod AppsDynamiteStorageImageCropStyle + var s1 struct { + AspectRatio gensupport.JSONFloat64 `json:"aspectRatio"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.AspectRatio = float64(s1.AspectRatio) + return nil +} + +type AppsDynamiteStorageOnClick struct { + // Action: If specified, an action is triggered by this onClick. + Action *AppsDynamiteStorageAction `json:"action,omitempty"` + + // HostAppAction: Triggers host app action on click directly without + // invoking form actions. This is currently not available to end-users + // and is used internal only. + HostAppAction *HostAppActionMarkup `json:"hostAppAction,omitempty"` + + // OpenDynamicLinkAction: An add-on triggers this action when the action + // needs to open a link. This differs from the open_link above in that + // this needs to talk to server to get the link. Thus some preparation + // work is required for web client to do before the open link action + // response comes back. + OpenDynamicLinkAction *AppsDynamiteStorageAction `json:"openDynamicLinkAction,omitempty"` + + // OpenLink: If specified, this onClick triggers an open link action. + OpenLink *AppsDynamiteStorageOpenLink `json:"openLink,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Action") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Action") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *AppsDynamiteStorageOnClick) MarshalJSON() ([]byte, error) { + type NoMethod AppsDynamiteStorageOnClick + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type AppsDynamiteStorageOpenLink struct { + // AppUri: Represents the platform specific uri/intent to open on each + // client. For example: A companion_url will open in a companion window + // on the web. An iOS URL and android intent will open in the + // corresponding hosting apps. If these platform specific URLs can't be + // handled correctly, i.e. if the companion isn't supported on web and + // the hosting apps aren't available on the mobile platforms then the + // `uri` will open in a new browser window on all the platforms. + AppUri *AppsDynamiteStorageOpenLinkAppUri `json:"appUri,omitempty"` + + // Possible values: + // "NOTHING" - Doesn’t reload the card after the child window + // closes. Reloads the card after the child window closes. If used in + // conjunction with + // [OpenAs.OVERLAY](/workspace/add-ons/reference/rpc/google.apps.card.v1# + // openas), the child window acts as a modal dialog and the main card is + // blocked until the child window closes. + // "RELOAD" + OnClose string `json:"onClose,omitempty"` + + // Possible values: + // "FULL_SIZE" - The link opens as a full size window (if that's the + // frame used by the client. + // "OVERLAY" - The link opens as an overlay, such as a pop-up. + OpenAs string `json:"openAs,omitempty"` + + // Url: The URL to open. + Url string `json:"url,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AppUri") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AppUri") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *AppsDynamiteStorageOpenLink) MarshalJSON() ([]byte, error) { + type NoMethod AppsDynamiteStorageOpenLink + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// AppsDynamiteStorageOpenLinkAppUri: Represents the platform specific +// uri/intent to open for each client. +type AppsDynamiteStorageOpenLinkAppUri struct { + // AndroidIntent: An intent object to be opened in the corresponding + // android hosting app. + AndroidIntent *AppsDynamiteStorageOpenLinkAppUriIntent `json:"androidIntent,omitempty"` + + // CompanionUri: A companion uri string to be opened in the chat + // companion window. on the web. + CompanionUri string `json:"companionUri,omitempty"` + + // IosUri: A uri string to be opened in the corresponding iOS hosting + // app. + IosUri string `json:"iosUri,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AndroidIntent") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AndroidIntent") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *AppsDynamiteStorageOpenLinkAppUri) MarshalJSON() ([]byte, error) { + type NoMethod AppsDynamiteStorageOpenLinkAppUri + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// AppsDynamiteStorageOpenLinkAppUriIntent: Android intent. +type AppsDynamiteStorageOpenLinkAppUriIntent struct { + // ExtraData: A list of extra data for the android intent. For example, + // for a calendar event edit intent, the event title information can be + // passed as extra data. + ExtraData []*AppsDynamiteStorageOpenLinkAppUriIntentExtraData `json:"extraData,omitempty"` + + // IntentAction: An android intent action string for the {@link + // android.content.Intent} object. For example: for the view intent + // action type, a valid value will be + // android.content.Intent.ACTION_VIEW. + IntentAction string `json:"intentAction,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ExtraData") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ExtraData") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *AppsDynamiteStorageOpenLinkAppUriIntent) MarshalJSON() ([]byte, error) { + type NoMethod AppsDynamiteStorageOpenLinkAppUriIntent + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// AppsDynamiteStorageOpenLinkAppUriIntentExtraData: Extra data for an +// android intent. Valid keys are defined in the hosting app contract. +type AppsDynamiteStorageOpenLinkAppUriIntentExtraData struct { + // Key: A key for the intent extra data. + Key string `json:"key,omitempty"` + + // Value: Value for the given extra data key. + Value string `json:"value,omitempty"` - // ForceSendFields is a list of field names (e.g. "Items") to + // ForceSendFields is a list of field names (e.g. "Key") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -4344,7 +4456,7 @@ type AppsDynamiteSharedSuggestions struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Items") to include in API + // NullFields is a list of field names (e.g. "Key") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as @@ -4353,18 +4465,36 @@ type AppsDynamiteSharedSuggestions struct { NullFields []string `json:"-"` } -func (s *AppsDynamiteSharedSuggestions) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteSharedSuggestions +func (s *AppsDynamiteStorageOpenLinkAppUriIntentExtraData) MarshalJSON() ([]byte, error) { + type NoMethod AppsDynamiteStorageOpenLinkAppUriIntentExtraData raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AppsDynamiteSharedSuggestionsSuggestionItem: A suggestion item. Only -// supports text for now. -type AppsDynamiteSharedSuggestionsSuggestionItem struct { - Text string `json:"text,omitempty"` +// AppsDynamiteStorageSelectionInput: A widget that creates a UI item +// (for example, a drop-down list) with options for users to select. +type AppsDynamiteStorageSelectionInput struct { + Items []*AppsDynamiteStorageSelectionInputSelectionItem `json:"items,omitempty"` - // ForceSendFields is a list of field names (e.g. "Text") to + // Label: The label displayed ahead of the switch control. + Label string `json:"label,omitempty"` + + // Name: The name of the text input which is used in formInput. + Name string `json:"name,omitempty"` + + // OnChangeAction: If specified, the form is submitted when the + // selection changes. If not specified, you must specify a separate + // button. + OnChangeAction *AppsDynamiteStorageAction `json:"onChangeAction,omitempty"` + + // Possible values: + // "CHECK_BOX" - The selection type is a checkbox. + // "RADIO_BUTTON" - The selection type is a radio button. + // "SWITCH" - The selection type is a switch. + // "DROPDOWN" - The selection type is a dropdown. + Type string `json:"type,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Items") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -4372,7 +4502,7 @@ type AppsDynamiteSharedSuggestionsSuggestionItem struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Text") to include in API + // NullFields is a list of field names (e.g. "Items") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as @@ -4381,33 +4511,28 @@ type AppsDynamiteSharedSuggestionsSuggestionItem struct { NullFields []string `json:"-"` } -func (s *AppsDynamiteSharedSuggestionsSuggestionItem) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteSharedSuggestionsSuggestionItem +func (s *AppsDynamiteStorageSelectionInput) MarshalJSON() ([]byte, error) { + type NoMethod AppsDynamiteStorageSelectionInput raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AppsDynamiteSharedTasksAnnotationData: This is the internal version -// of the API proto at -// google3/google/chat/v1/gsuite_message_integration.proto -type AppsDynamiteSharedTasksAnnotationData struct { - AssigneeChange *AppsDynamiteSharedTasksAnnotationDataAssigneeChange `json:"assigneeChange,omitempty"` - - CompletionChange *AppsDynamiteSharedTasksAnnotationDataCompletionChange `json:"completionChange,omitempty"` - - Creation *AppsDynamiteSharedTasksAnnotationDataCreation `json:"creation,omitempty"` - - DeletionChange *AppsDynamiteSharedTasksAnnotationDataDeletionChange `json:"deletionChange,omitempty"` - - // TaskId: ID of task. Will be used to create deep links to Tasks. - TaskId string `json:"taskId,omitempty"` +// AppsDynamiteStorageSelectionInputSelectionItem: The item in the +// switch control. A radio button, at most one of the items is selected. +type AppsDynamiteStorageSelectionInputSelectionItem struct { + // Selected: If more than one item is selected for `RADIO_BUTTON` and + // `DROPDOWN`, the first selected item is treated as selected and the + // ones after are ignored. + Selected bool `json:"selected,omitempty"` - // TaskProperties: Task properties after the update has been applied. - TaskProperties *AppsDynamiteSharedTasksAnnotationDataTaskProperties `json:"taskProperties,omitempty"` + // Text: The text to be displayed. + Text string `json:"text,omitempty"` - UserDefinedMessage *AppsDynamiteSharedTasksAnnotationDataUserDefinedMessage `json:"userDefinedMessage,omitempty"` + // Value: The value associated with this item. The client should use + // this as a form input value. + Value string `json:"value,omitempty"` - // ForceSendFields is a list of field names (e.g. "AssigneeChange") to + // ForceSendFields is a list of field names (e.g. "Selected") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -4415,28 +4540,30 @@ type AppsDynamiteSharedTasksAnnotationData struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AssigneeChange") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "Selected") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` } -func (s *AppsDynamiteSharedTasksAnnotationData) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteSharedTasksAnnotationData +func (s *AppsDynamiteStorageSelectionInputSelectionItem) MarshalJSON() ([]byte, error) { + type NoMethod AppsDynamiteStorageSelectionInputSelectionItem raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -type AppsDynamiteSharedTasksAnnotationDataAssigneeChange struct { - // OldAssignee: Obfuscated user ID of previous assignee. Not set if the - // task was originally not assigned. - OldAssignee *UserId `json:"oldAssignee,omitempty"` +// AppsDynamiteStorageSuggestions: A container wrapping elements +// necessary for showing suggestion items used in text input +// autocomplete. +type AppsDynamiteStorageSuggestions struct { + // Items: A list of suggestions items which will be used in are used in + // autocomplete. + Items []*AppsDynamiteStorageSuggestionsSuggestionItem `json:"items,omitempty"` - // ForceSendFields is a list of field names (e.g. "OldAssignee") to + // ForceSendFields is a list of field names (e.g. "Items") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -4444,60 +4571,27 @@ type AppsDynamiteSharedTasksAnnotationDataAssigneeChange struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "OldAssignee") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as + // NullFields is a list of field names (e.g. "Items") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` } -func (s *AppsDynamiteSharedTasksAnnotationDataAssigneeChange) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteSharedTasksAnnotationDataAssigneeChange +func (s *AppsDynamiteStorageSuggestions) MarshalJSON() ([]byte, error) { + type NoMethod AppsDynamiteStorageSuggestions raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -type AppsDynamiteSharedTasksAnnotationDataCompletionChange struct { -} - -type AppsDynamiteSharedTasksAnnotationDataCreation struct { -} - -type AppsDynamiteSharedTasksAnnotationDataDeletionChange struct { -} - -// AppsDynamiteSharedTasksAnnotationDataTaskProperties: All relevant -// task properties for a Chat message. -type AppsDynamiteSharedTasksAnnotationDataTaskProperties struct { - // Assignee: Obfuscated user ID of new assignee. Not set if the task - // doesn't have an assignee. - Assignee *UserId `json:"assignee,omitempty"` - - // Completed: Whether the task is marked as completed. - Completed bool `json:"completed,omitempty"` - - // Deleted: Whether the task is marked as deleted. - Deleted bool `json:"deleted,omitempty"` - - // Description: The description of the task. If Task original - // description's length is greater than 1024, then Task BE sends the - // truncated description to Dynamite Integration Server. - Description string `json:"description,omitempty"` - - // StartDate: Set if the task has a date but no time. Source of truth in - // Tasks BE: http://shortn/_wyT7eB4Ixv - StartDate *Date `json:"startDate,omitempty"` - - // StartTime: Set if the task has both a date and a time. Source of - // truth in Tasks BE: http://shortn/_u6cr0F5ttE - StartTime string `json:"startTime,omitempty"` - - // Title: The title of the task. - Title string `json:"title,omitempty"` +// AppsDynamiteStorageSuggestionsSuggestionItem: A suggestion item. Only +// supports text for now. +type AppsDynamiteStorageSuggestionsSuggestionItem struct { + Text string `json:"text,omitempty"` - // ForceSendFields is a list of field names (e.g. "Assignee") to + // ForceSendFields is a list of field names (e.g. "Text") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -4505,8 +4599,8 @@ type AppsDynamiteSharedTasksAnnotationDataTaskProperties struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Assignee") to include in - // API requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "Text") to include in API + // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. @@ -4514,44 +4608,28 @@ type AppsDynamiteSharedTasksAnnotationDataTaskProperties struct { NullFields []string `json:"-"` } -func (s *AppsDynamiteSharedTasksAnnotationDataTaskProperties) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteSharedTasksAnnotationDataTaskProperties +func (s *AppsDynamiteStorageSuggestionsSuggestionItem) MarshalJSON() ([]byte, error) { + type NoMethod AppsDynamiteStorageSuggestionsSuggestionItem raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AppsDynamiteSharedTasksAnnotationDataUserDefinedMessage: Used for -// task card attachments on custom user messages that should be kept as -// is without generating an i18n event message, e.g. the user starts a -// conversation from an existing task. IMPORTANT: please don't populate -// this field yet as it could break existing flows until it's -// implemented. See code at http://shortn/_CM74CdENMx used by -// http://shortn/_5o85POJY8Q. -type AppsDynamiteSharedTasksAnnotationDataUserDefinedMessage struct { -} - -// AppsDynamiteSharedTasksMessageIntegrationPayload: A payload -// containing Tasks metadata for rendering a live card. Currently not -// used by the Tasks integration. -type AppsDynamiteSharedTasksMessageIntegrationPayload struct { -} - -// AppsDynamiteSharedTextInput: A text input is a UI item where users +// AppsDynamiteStorageTextInput: A text input is a UI item where users // can input text. A text input can also have an onChange action and // suggestions. -type AppsDynamiteSharedTextInput struct { +type AppsDynamiteStorageTextInput struct { // AutoCompleteAction: The refresh function that returns suggestions // based on the user's input text. If the callback is not specified, // autocomplete is done in client side based on the initial suggestion // items. - AutoCompleteAction *AppsDynamiteSharedAction `json:"autoCompleteAction,omitempty"` + AutoCompleteAction *AppsDynamiteStorageAction `json:"autoCompleteAction,omitempty"` // HintText: The hint text. HintText string `json:"hintText,omitempty"` // InitialSuggestions: The initial suggestions made before any user // input. - InitialSuggestions *AppsDynamiteSharedSuggestions `json:"initialSuggestions,omitempty"` + InitialSuggestions *AppsDynamiteStorageSuggestions `json:"initialSuggestions,omitempty"` // Label: At least one of label and hintText must be specified. Label string `json:"label,omitempty"` @@ -4560,7 +4638,7 @@ type AppsDynamiteSharedTextInput struct { Name string `json:"name,omitempty"` // OnChangeAction: The onChange action, for example, invoke a function. - OnChangeAction *AppsDynamiteSharedAction `json:"onChangeAction,omitempty"` + OnChangeAction *AppsDynamiteStorageAction `json:"onChangeAction,omitempty"` // Type: The style of the text, for example, a single line or multiple // lines. @@ -4591,16 +4669,16 @@ type AppsDynamiteSharedTextInput struct { NullFields []string `json:"-"` } -func (s *AppsDynamiteSharedTextInput) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteSharedTextInput +func (s *AppsDynamiteStorageTextInput) MarshalJSON() ([]byte, error) { + type NoMethod AppsDynamiteStorageTextInput raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AppsDynamiteSharedTextParagraph: A paragraph of text that supports +// AppsDynamiteStorageTextParagraph: A paragraph of text that supports // formatting. See Text formatting // (workspace/add-ons/concepts/widgets#text_formatting") for details. -type AppsDynamiteSharedTextParagraph struct { +type AppsDynamiteStorageTextParagraph struct { // Text: The text that's shown in the widget. Text string `json:"text,omitempty"` @@ -4621,86 +4699,15 @@ type AppsDynamiteSharedTextParagraph struct { NullFields []string `json:"-"` } -func (s *AppsDynamiteSharedTextParagraph) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteSharedTextParagraph - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// AppsDynamiteSharedUserBlockRelationship: User-block relationship -type AppsDynamiteSharedUserBlockRelationship struct { - HasBlockedRequester bool `json:"hasBlockedRequester,omitempty"` - - IsBlockedByRequester bool `json:"isBlockedByRequester,omitempty"` - - // ForceSendFields is a list of field names (e.g. "HasBlockedRequester") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "HasBlockedRequester") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. - NullFields []string `json:"-"` -} - -func (s *AppsDynamiteSharedUserBlockRelationship) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteSharedUserBlockRelationship - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// AppsDynamiteSharedVideoReference: Reference to a transcoded video -// attachment. -type AppsDynamiteSharedVideoReference struct { - // Format: Available transcode format. Value is defined in - // video/storage/proto/content_header.proto - Format []int64 `json:"format,omitempty"` - - // Status: Transcode status - // - // Possible values: - // "UNKNOWN_STATUS" - // "SUCCESS" - // "ERROR" - // "NOT_APPLICABLE" - // "THUMBNAIL_SUCCESS" - // "GO_LIVE_SUCCESS" - Status string `json:"status,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Format") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Format") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *AppsDynamiteSharedVideoReference) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteSharedVideoReference +func (s *AppsDynamiteStorageTextParagraph) MarshalJSON() ([]byte, error) { + type NoMethod AppsDynamiteStorageTextParagraph raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AppsDynamiteSharedWidget: A widget is a UI element that presents +// AppsDynamiteStorageWidget: A widget is a UI element that presents // texts, images, etc. -type AppsDynamiteSharedWidget struct { +type AppsDynamiteStorageWidget struct { // ButtonList: A list of buttons. For example, the following JSON // creates two buttons. The first is a filled text button and the second // is an image button that opens a link: ``` "buttonList": { "buttons": @@ -4708,7 +4715,7 @@ type AppsDynamiteSharedWidget struct { // "Blue": 255 } "disabled": true }, "button": { "icon": { "knownIcon": // "INVITE" "altText": "check calendar" }, "onClick": { "openLink": { // "url": "https://example.com/calendar" } } }, ] } ``` - ButtonList *AppsDynamiteSharedButtonList `json:"buttonList,omitempty"` + ButtonList *AppsDynamiteStorageButtonList `json:"buttonList,omitempty"` // Columns: Displays a single row of columns with widgets stacked // vertically in each column. For example, the following JSON creates a @@ -4721,7 +4728,7 @@ type AppsDynamiteSharedWidget struct { // "CENTER", "verticalAlignment" : "CENTER", "widgets": [ { // "textParagraph": { "text": "Second column text paragraph", } } ] }, ] // } } ``` - Columns *AppsDynamiteSharedColumns `json:"columns,omitempty"` + Columns *AppsDynamiteStorageColumns `json:"columns,omitempty"` // DateTimePicker: Displays a selection/input widget for date/time. For // example, the following JSON creates a date/time picker for an @@ -4729,7 +4736,7 @@ type AppsDynamiteSharedWidget struct { // "appointment_time", "label": "Book your appointment at:", "type": // "DateTimePickerType.DATE_AND_TIME", "valueMsEpoch": "796435200000" } // ``` - DateTimePicker *AppsDynamiteSharedDateTimePicker `json:"dateTimePicker,omitempty"` + DateTimePicker *AppsDynamiteStorageDateTimePicker `json:"dateTimePicker,omitempty"` // DecoratedText: Displays a decorated text item in this widget. For // example, the following JSON creates a decorated text widget showing @@ -4738,11 +4745,11 @@ type AppsDynamiteSharedWidget struct { // "bottomLabel": "This is a new Email address!", "switchWidget": { // "name": "has_send_welcome_email_to_heba_salam", "selected": false, // "controlType": "ControlType.CHECKBOX" } } ``` - DecoratedText *AppsDynamiteSharedDecoratedText `json:"decoratedText,omitempty"` + DecoratedText *AppsDynamiteStorageDecoratedText `json:"decoratedText,omitempty"` // Divider: Displays a divider. For example, the following JSON creates // a divider: ``` "divider": { } ``` - Divider *AppsDynamiteSharedDivider `json:"divider,omitempty"` + Divider *AppsDynamiteStorageDivider `json:"divider,omitempty"` // Grid: Displays a grid with a collection of items. For example, the // following JSON creates a 2 column grid with a single item: ``` @@ -4752,7 +4759,7 @@ type AppsDynamiteSharedWidget struct { // "cropStyle": { "type": "SQUARE" }, "borderStyle": { "type": "STROKE" // } }, "title": "An item", "textAlignment": "CENTER" ], "onClick": { // "openLink": { "url":"https://www.example.com" } } } ``` - Grid *AppsDynamiteSharedGrid `json:"grid,omitempty"` + Grid *AppsDynamiteStorageGrid `json:"grid,omitempty"` // HorizontalAlignment: The horizontal alignment of this widget. // @@ -4767,7 +4774,7 @@ type AppsDynamiteSharedWidget struct { // JSON creates an image with alternative text: ``` "image": { // "imageUrl": "https://example.com/heba_salam.png" "altText": "Avatar // for Heba Salam" } ``` - Image *AppsDynamiteSharedImage `json:"image,omitempty"` + Image *AppsDynamiteStorageImage `json:"image,omitempty"` // SelectionInput: Displays a switch control in this widget. For // example, the following JSON creates a dropdown selection for size: @@ -4776,7 +4783,7 @@ type AppsDynamiteSharedWidget struct { // "selected": false }, { "text": "M", "value": "medium", "selected": // true }, { "text": "L", "value": "large", "selected": false }, { // "text": "XL", "value": "extra_large", "selected": false } ] } ``` - SelectionInput *AppsDynamiteSharedSelectionInput `json:"selectionInput,omitempty"` + SelectionInput *AppsDynamiteStorageSelectionInput `json:"selectionInput,omitempty"` // TextInput: Displays a text input in this widget. For example, the // following JSON creates a text input for mail address: ``` @@ -4787,12 +4794,12 @@ type AppsDynamiteSharedWidget struct { // Language", "initialSuggestions": { "items": [ { "text": "C++" }, { // "text": "Java" }, { "text": "JavaScript" }, { "text": "Python" } ] } // } ``` - TextInput *AppsDynamiteSharedTextInput `json:"textInput,omitempty"` + TextInput *AppsDynamiteStorageTextInput `json:"textInput,omitempty"` // TextParagraph: Displays a text paragraph in this widget. For example, // the following JSON creates a bolded text: ``` "textParagraph": { // "text": " *bold text*" } ``` - TextParagraph *AppsDynamiteSharedTextParagraph `json:"textParagraph,omitempty"` + TextParagraph *AppsDynamiteStorageTextParagraph `json:"textParagraph,omitempty"` // ForceSendFields is a list of field names (e.g. "ButtonList") to // unconditionally include in API requests. By default, fields with @@ -4811,8 +4818,8 @@ type AppsDynamiteSharedWidget struct { NullFields []string `json:"-"` } -func (s *AppsDynamiteSharedWidget) MarshalJSON() ([]byte, error) { - type NoMethod AppsDynamiteSharedWidget +func (s *AppsDynamiteStorageWidget) MarshalJSON() ([]byte, error) { + type NoMethod AppsDynamiteStorageWidget raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } @@ -5375,7 +5382,7 @@ type Attachment struct { // CardAddOnData: Card AddOn attachment with the possibility for // specifying editable widgets. - CardAddOnData *AppsDynamiteSharedCard `json:"cardAddOnData,omitempty"` + CardAddOnData *AppsDynamiteStorageCard `json:"cardAddOnData,omitempty"` // DeprecatedAddOnData: Deprecated version of Gmail AddOn attachment. DeprecatedAddOnData *ContextualAddOnMarkup `json:"deprecatedAddOnData,omitempty"` @@ -6198,6 +6205,23 @@ type CallInfo struct { // conference. AttachedDocuments []*DocumentInfo `json:"attachedDocuments,omitempty"` + // AvailableAccessTypes: List of available access types of the + // conference. + // + // Possible values: + // "ACCESS_TYPE_UNSPECIFIED" - Default value. This value is unused. + // "ACCESS_TYPE_OPEN" - Anyone with meeting join information (url, + // phone access...) can join, no knocking required. (Subject to + // organization policies) + // "ACCESS_TYPE_TRUSTED" - Members of the Host's organization, invited + // external users, and dial-in users can join without knocking, everyone + // else must knock. (Subject to organization policies) + // "ACCESS_TYPE_RESTRICTED" - Only participants invited by a host can + // automatically join, everyone else must knock and be admitted. + // (Subject to organization policies) Participants cannot dial out from + // the meeting. And only hosts can accept knocks. + AvailableAccessTypes []string `json:"availableAccessTypes,omitempty"` + // AvailableReactions: Output only. The set of reactions that clients // are allowed to send and can expect to receive. Note that a device in // the conference should have the MAY_SEND_REACTIONS privilege to be @@ -9193,8 +9217,12 @@ type DynamiteMessagesScoringInfo struct { MessageAgeInDays float64 `json:"messageAgeInDays,omitempty"` + MessageSenderAffinityScore float64 `json:"messageSenderAffinityScore,omitempty"` + TopicalityScore float64 `json:"topicalityScore,omitempty"` + UnjoinedSpaceAffinityScore float64 `json:"unjoinedSpaceAffinityScore,omitempty"` + // ForceSendFields is a list of field names (e.g. "FinalScore") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -9221,11 +9249,13 @@ func (s *DynamiteMessagesScoringInfo) MarshalJSON() ([]byte, error) { func (s *DynamiteMessagesScoringInfo) UnmarshalJSON(data []byte) error { type NoMethod DynamiteMessagesScoringInfo var s1 struct { - FinalScore gensupport.JSONFloat64 `json:"finalScore"` - FreshnessScore gensupport.JSONFloat64 `json:"freshnessScore"` - JoinedSpaceAffinityScore gensupport.JSONFloat64 `json:"joinedSpaceAffinityScore"` - MessageAgeInDays gensupport.JSONFloat64 `json:"messageAgeInDays"` - TopicalityScore gensupport.JSONFloat64 `json:"topicalityScore"` + FinalScore gensupport.JSONFloat64 `json:"finalScore"` + FreshnessScore gensupport.JSONFloat64 `json:"freshnessScore"` + JoinedSpaceAffinityScore gensupport.JSONFloat64 `json:"joinedSpaceAffinityScore"` + MessageAgeInDays gensupport.JSONFloat64 `json:"messageAgeInDays"` + MessageSenderAffinityScore gensupport.JSONFloat64 `json:"messageSenderAffinityScore"` + TopicalityScore gensupport.JSONFloat64 `json:"topicalityScore"` + UnjoinedSpaceAffinityScore gensupport.JSONFloat64 `json:"unjoinedSpaceAffinityScore"` *NoMethod } s1.NoMethod = (*NoMethod)(s) @@ -9236,7 +9266,9 @@ func (s *DynamiteMessagesScoringInfo) UnmarshalJSON(data []byte) error { s.FreshnessScore = float64(s1.FreshnessScore) s.JoinedSpaceAffinityScore = float64(s1.JoinedSpaceAffinityScore) s.MessageAgeInDays = float64(s1.MessageAgeInDays) + s.MessageSenderAffinityScore = float64(s1.MessageSenderAffinityScore) s.TopicalityScore = float64(s1.TopicalityScore) + s.UnjoinedSpaceAffinityScore = float64(s1.UnjoinedSpaceAffinityScore) return nil } @@ -18171,7 +18203,7 @@ func (s *Principal) MarshalJSON() ([]byte, error) { // google3/java/com/google/security/credentials/Principal.java // google3/security/credentials/go/principal.go unless direct proto // access is essential. If you update this protocol buffer, please -// update the wrapper classes as well. +// update the wrapper classes as well. LINT.IfChange type PrincipalProto struct { // AllAuthenticatedUsers: scope = ALL_AUTHENTICATED_USERS AllAuthenticatedUsers *AllAuthenticatedUsersProto `json:"allAuthenticatedUsers,omitempty"` @@ -18424,7 +18456,7 @@ type PropertyDefinition struct { // IsFacetable: Indicates that the property can be used for generating // facets. Cannot be true for properties whose type is object. // IsReturnable must be true to set this option. Only supported for - // boolean, enum, and text properties. + // boolean, enum, integer, and text properties. IsFacetable bool `json:"isFacetable,omitempty"` // IsRepeatable: Indicates that multiple values are allowed for the @@ -19198,7 +19230,7 @@ func (s *Rank) MarshalJSON() ([]byte, error) { // RbacRoleProto: Principal associated with a given RBAC role. This // principal is used by Sphinx Provisioning Service for RBAC -// (go/cedi-auth) provisionable (go/sphinx-rbacz-design). +// provisionable (go/sphinx-rbacz). type RbacRoleProto struct { Name string `json:"name,omitempty"` @@ -19207,10 +19239,11 @@ type RbacRoleProto struct { // RbacNamespace: DEPRECATED as of 01.11.2019 RbacNamespace string `json:"rbacNamespace,omitempty"` - // RbacRoleName: Format: - // "RbacNamespaceName.RbacRoleName(/field=value)*", e.g., - // "hr.v1.Reader", - // "hr.v1.Reader/language=EN_US/country=USA/room=NYC-9th-11A201". + // RbacRoleName: Format: "role/z?" - "role" is the Sphinx globally + // unique name of the Sphinx role that provisions the RBAC role. - "/z?" + // suffix indicates which Zanzibar environment stores the role + // membership data ("/zd": dev, "/zs": staging, "/zp": prod, "/zt": + // local test instance). Example: "mysystem_myrole/zp" RbacRoleName string `json:"rbacRoleName,omitempty"` // ForceSendFields is a list of field names (e.g. "Name") to @@ -19238,7 +19271,7 @@ func (s *RbacRoleProto) MarshalJSON() ([]byte, error) { // RbacSubjectProto: Principal associated with a given RBAC subject. // This principal is used by Sphinx Provisioning Service for RBAC -// (go/cedi-auth) provisionable (go/sphinx-rbacz-design). +// provisionable (go/sphinx-rbacz). type RbacSubjectProto struct { // Username: Format "username" without "@domain", e.g., "bogdand". Username string `json:"username,omitempty"` @@ -25217,31 +25250,38 @@ func (s *YouTubeBroadcastStats) MarshalJSON() ([]byte, error) { // YouTubeLiveBroadcastEvent: Information about the broadcast to // YouTube. type YouTubeLiveBroadcastEvent struct { + // BrandAccountGaiaId: Input only. If the channel_id is for a YouTube + // Channel owned by a Brand Account, client is required to populate this + // field with the obfuscated gaia id of the Brand account when starting + // the broadcast. + BrandAccountGaiaId string `json:"brandAccountGaiaId,omitempty"` + // BroadcastId: Input only. The broadcast id, used to control the // lifecycle of the event on YouTube BroadcastId string `json:"broadcastId,omitempty"` - // ChannelId: YouTube channel associated with the broadcast. + // ChannelId: YouTube Channel associated with the broadcast. ChannelId string `json:"channelId,omitempty"` // ViewUrl: Output only. A URL that can be used to watch the meeting // broadcast. Will be populated by the backend. ViewUrl string `json:"viewUrl,omitempty"` - // ForceSendFields is a list of field names (e.g. "BroadcastId") to - // unconditionally include in API requests. By default, fields with + // ForceSendFields is a list of field names (e.g. "BrandAccountGaiaId") + // to unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "BroadcastId") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "BrandAccountGaiaId") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. NullFields []string `json:"-"` } diff --git a/contentwarehouse/v1/contentwarehouse-api.json b/contentwarehouse/v1/contentwarehouse-api.json index 590dcb674a8..2cbebaae2db 100644 --- a/contentwarehouse/v1/contentwarehouse-api.json +++ b/contentwarehouse/v1/contentwarehouse-api.json @@ -194,6 +194,34 @@ "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] + }, + "runPipeline": { + "description": "Run a predefined pipeline.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}:runPipeline", + "httpMethod": "POST", + "id": "contentwarehouse.projects.locations.runPipeline", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The resource name which owns the resources of the pipeline. Format: projects/{project_number}/locations/{location}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:runPipeline", + "request": { + "$ref": "GoogleCloudContentwarehouseV1RunPipelineRequest" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] } }, "resources": { @@ -1075,7 +1103,7 @@ } } }, - "revision": "20230106", + "revision": "20230113", "rootUrl": "https://contentwarehouse.googleapis.com/", "schemas": { "AbuseiamAbuseType": { @@ -3534,7 +3562,8 @@ "CDDB_AFFINITY", "DATA_STUDIO_SPACES_AFFINITY", "SOJI_AFFINITY", - "PLAY_MOVIES_ANDROID_AFFINITY" + "PLAY_MOVIES_ANDROID_AFFINITY", + "DATA_STUDIO_DOMAIN_ONLY_AFFINITY" ], "enumDescriptions": [ "", @@ -3775,6 +3804,7 @@ "", "", "", + "", "" ], "type": "string" @@ -4726,7 +4756,7 @@ "type": "object" }, "AppsPeopleOzExternalMergedpeopleapiEmailCertificate": { - "description": "Represents a hosted S/MIME certificate config for use with Gmail. See //caribou/smime/proto/certificate_status.proto. There can be zero or more certificates associated with an email address, be it profile email or contact email.", + "description": "Represents a S/MIME certificate config for use with Gmail. See //caribou/smime/proto/certificate_status.proto. There can be zero or more certificates associated with an email address, be it profile email or contact email.", "id": "AppsPeopleOzExternalMergedpeopleapiEmailCertificate", "properties": { "configurationName": { @@ -6657,6 +6687,7 @@ "type": "array" }, "pronoun": { + "description": "Pronouns are not supported for consumer profiles. See go/pronouns-in-people-system-prd for more details.", "items": { "$ref": "AppsPeopleOzExternalMergedpeopleapiPronoun" }, @@ -7433,6 +7464,13 @@ "AppsPeopleOzExternalMergedpeopleapiPhoto": { "id": "AppsPeopleOzExternalMergedpeopleapiPhoto", "properties": { + "decoration": { + "description": "Read-only. Use UpdatePersonPhoto to change photo decorations. If this photo is decorated, this field contains information about its decorations. For now, this will contain at most one entry.", + "items": { + "$ref": "SocialGraphApiProtoDecorationOverlay" + }, + "type": "array" + }, "emojiAvatarUrl": { "description": "URL of an emoji avatar as an image. See go/emoji-cdn. PeopleAPI will return the SVG format so that it can be scaled client side and so that the images will not be animated. All clients that use this field must also have fall-back handling for using the `Photo.url` field if this is empty. When we have FIFE-compatible emoji-image URLs we will drop this field and return the Photo.url instead. Clients that have their own go/emoji-rendering integration may prefer to render the emoji-avatar from `Photo.glyph` field using their rendering system so that the emoji version/style match the rest of the application. For further background, see go/chatroom-avatar-as-roster-metadata. This field will only be populated if all of: - The PersonFieldMetadata `container_type` for the Photo is NAMED_CHAT_ROOM - The chat room has an emoji type avatar image set", "type": "string" @@ -7463,6 +7501,10 @@ "description": "When is_monogram=true, this is the background color of the monogram photo as a hex RGB formatted string \"RRGGBB\".", "type": "string" }, + "originalPhoto": { + "$ref": "SocialGraphApiProtoImageReference", + "description": "Read-only. A reference to the original, undecorated profile photo in storage. This field is not stored. It is populated by a live read to /SocialGraphImageService.GetActiveProfilePhoto. This field is only returned when \"person.photo.original_photo\" is specified in the request mask." + }, "photoId": { "$ref": "AppsPeopleOzExternalMergedpeopleapiPhotoPhotoStorageId", "description": "For writes only. Indicates photo content for person photo-field update. Currently only used for profile-photo updates (not contact photos yet)." @@ -11792,7 +11834,7 @@ "description": "These are user configured restrictions indicating what the device is allowed to output from the privacy point of view." }, "popOnLockscreenCapability": { - "description": "Capability to support Pop on lockscreen. TODO(b/230626444) this is for short term workaround for TNG MA DF. Should be deprecated when long term solution is available. go/pop-on-lockscreen-for-tng-ma.", + "description": "Capability to support Pop on lockscreen.", "enum": [ "POP_ON_LOCKSCREEN_DEFAULT", "POP_ON_LOCKSCREEN_ENABLED", @@ -18464,6 +18506,19 @@ }, "type": "object" }, + "AssistantLogsProviderAnnotationLog": { + "description": "Provider annotation annotated from the query.", + "id": "AssistantLogsProviderAnnotationLog", + "properties": { + "packageNames": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "AssistantLogsQueryAnnotationLog": { "description": "Log about the query requirements", "id": "AssistantLogsQueryAnnotationLog", @@ -18479,6 +18534,10 @@ }, "type": "array" }, + "providerAnnotation": { + "$ref": "AssistantLogsProviderAnnotationLog", + "description": "Log the provider annotations annotated from the query." + }, "roomAnnotation": { "$ref": "AssistantLogsRoomAnnotationLog", "description": "TODO(b/171250187) Deprecates the optional RoomAnnotationLog and DeviceAnnotationLog. Deprecated, please use device_annotations." @@ -25527,164 +25586,6 @@ "properties": {}, "type": "object" }, - "EntitySignalsClassificationOutput": { - "description": "Output of the classifier.", - "id": "EntitySignalsClassificationOutput", - "properties": { - "labels": { - "description": "Filled if used logistic regression (see ewok.proto for available labels).", - "items": { - "$ref": "EntitySignalsWeightedRelevanceRating" - }, - "type": "array" - }, - "relevanceScore": { - "description": "If using linear regression, this is the output value of the regression. If using logistic regression, this is the weighted aggregated rating. See http://go/entitymetric", - "format": "float", - "type": "number" - } - }, - "type": "object" - }, - "EntitySignalsEntityClassification": { - "description": "Collection of input, extracted features and classification output.", - "id": "EntitySignalsEntityClassification", - "properties": { - "entityId": { - "description": "Entity id.", - "type": "string" - }, - "features": { - "description": "Input features used in classification.", - "items": { - "$ref": "EntitySignalsEntityFeature" - }, - "type": "array" - }, - "output": { - "$ref": "EntitySignalsClassificationOutput", - "description": "Classification output." - } - }, - "type": "object" - }, - "EntitySignalsEntityFeature": { - "id": "EntitySignalsEntityFeature", - "properties": { - "code": { - "enum": [ - "INVALID", - "NO_FEATURE_ENUM", - "WEBREF__ANCHOR_SCORE", - "WEBREF__BODY_SCORE", - "WEBREF__BUCKETIZED_TOPICALITY__0", - "WEBREF__BUCKETIZED_TOPICALITY__1", - "WEBREF__BUCKETIZED_TOPICALITY__2", - "WEBREF__BUCKETIZED_TOPICALITY__3", - "WEBREF__BUCKETIZED_TOPICALITY__4", - "WEBREF__CONFIDENCE_SCORE", - "WEBREF__CONNECTEDNESS", - "WEBREF__MENTION__MENTION_SCORE_AVG__BODY", - "WEBREF__MENTION__MENTION_SCORE_AVG__ANCHOR", - "WEBREF__MENTION__MENTION_SCORE_AVG__QUERY", - "WEBREF__MENTION__SUPPORT_SCORE_AVG__ANCHOR", - "WEBREF__MENTION__SUPPORT_SCORE_AVG__BODY", - "WEBREF__MENTION__SUPPORT_SCORE_AVG__QUERY", - "WEBREF__MENTION__TOKEN_WEIGHT_SUM__ANCHOR", - "WEBREF__MENTION__TOKEN_WEIGHT_SUM__BODY", - "WEBREF__MENTION__TOKEN_WEIGHT_SUM__QUERY", - "WEBREF__NB_SCORE", - "WEBREF__NORMALIZED_TOPICALITY", - "WEBREF__TOPICALITY", - "WEBREF__TOPICALITY_BUCKET__0", - "WEBREF__TOPICALITY_BUCKET__1", - "WEBREF__TOPICALITY_BUCKET__2", - "WEBREF__TOPICALITY_BUCKET__3", - "WEBREF__TOPICALITY_BUCKET__4", - "WEBREF__TOTAL_CANDIDATE_COUNT", - "ENTITY_SIGNALS__OTM__MAX", - "ENTITY_SIGNALS__OTM__GEO__AUTO", - "ENTITY_SIGNALS__OTM__GEO__HUMAN", - "ENTITY_SIGNALS__OTM__VERTICALS4__AUTO", - "ENTITY_SIGNALS__OTM__VERTICALS4__HUMAN" - ], - "enumDescriptions": [ - "used for e.g. empty feature names and parsing error", - "for the cases where there's no backing code", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "" - ], - "type": "string" - }, - "name": { - "description": "Name of the feature. For a completely list of available features, please check http://go/entityclassifierfeatures", - "type": "string" - }, - "value": { - "description": "Value of the feature.", - "format": "float", - "type": "number" - } - }, - "type": "object" - }, - "EntitySignalsWeightedRelevanceRating": { - "id": "EntitySignalsWeightedRelevanceRating", - "properties": { - "rating": { - "enum": [ - "UNRATED", - "NOT_RELEVANT", - "BARELY_RELEVANT", - "RELEVANT", - "IMPORTANT" - ], - "enumDescriptions": [ - "", - "", - "", - "", - "" - ], - "type": "string" - }, - "weight": { - "format": "float", - "type": "number" - } - }, - "type": "object" - }, "EventIdMessage": { "description": "An EventId is a 128 bit identifier that uniquely identifies an event, such as a query. The event time recorded to the nearest microsecond, along with information about the process generating the event, ensures that all EventIds are unique. Details of this EventId are described in a design document: http://www/eng/designdocs/sawmill/adlogs.html", "id": "EventIdMessage", @@ -26629,7 +26530,7 @@ "type": "integer" }, "ContentType": { - "description": "See enum ContentType in webutil/http/content-type.proto.", + "description": "See enum ContentType in //depot/google3/webutil/http/content-type.proto.", "format": "int32", "type": "integer" }, @@ -28546,7 +28447,9 @@ "PROVIDER_VIETGIS", "PROVIDER_UNITE", "PROVIDER_NEOGY", - "PROVIDER_AMPUP" + "PROVIDER_AMPUP", + "PROVIDER_LOOP", + "PROVIDER_ZEST" ], "enumDescriptions": [ "ABSTRACT The root of all provider types. This should never be present on an actual feature, but can be useful when calling InCategory.", @@ -29255,7 +29158,9 @@ "", "", "", - "Note: Next available value is 0x1270." + "", + "", + "Note: Next available value is 0x1270B." ], "type": "string" }, @@ -30481,7 +30386,7 @@ }, "replacedBy": { "$ref": "GeostoreFeatureIdListProto", - "description": "If the feature has been REPLACED by one or more other feature(s), this is the list of feature IDs of the replacement feature(s). Note that the other features may themselves be removed." + "description": "DEPRECATED - Use feature.metadata.feature_replacement_info instead. This field was never populated." }, "transitivelyDuplicateOf": { "$ref": "GeostoreFeatureIdProto", @@ -31121,7 +31026,7 @@ }, "geopoliticalGeometry": { "$ref": "GeostoreGeopoliticalGeometryProto", - "description": "RESERVED" + "description": "Geopolitical (unsimplified) polygons for a feature for different geopolitical use cases." }, "htmlText": { "description": "** DEPRECATED ** Features can have zero or more HTML texts associated with them. These might be HTML balloons used by Google Earth, for example.", @@ -32139,7 +32044,7 @@ }, "waterRemovedPolygon": { "$ref": "GeostorePolygonProto", - "description": "RESERVED" + "description": "A version of the geometry which has water removed but is not simplified (thus having equal or more vertices than polygon_for_display)." }, "website": { "description": "The official website of this feature. Stored as a repeated field to allow for multilingual official websites (see comments in url.proto).", @@ -33360,7 +33265,9 @@ "PROVIDER_VIETGIS", "PROVIDER_UNITE", "PROVIDER_NEOGY", - "PROVIDER_AMPUP" + "PROVIDER_AMPUP", + "PROVIDER_LOOP", + "PROVIDER_ZEST" ], "enumDescriptions": [ "ABSTRACT The root of all provider types. This should never be present on an actual feature, but can be useful when calling InCategory.", @@ -34069,7 +33976,9 @@ "", "", "", - "Note: Next available value is 0x1270." + "", + "", + "Note: Next available value is 0x1270B." ], "type": "string" } @@ -35505,7 +35414,9 @@ "PROVIDER_VIETGIS", "PROVIDER_UNITE", "PROVIDER_NEOGY", - "PROVIDER_AMPUP" + "PROVIDER_AMPUP", + "PROVIDER_LOOP", + "PROVIDER_ZEST" ], "enumDescriptions": [ "ABSTRACT The root of all provider types. This should never be present on an actual feature, but can be useful when calling InCategory.", @@ -36214,7 +36125,9 @@ "", "", "", - "Note: Next available value is 0x1270." + "", + "", + "Note: Next available value is 0x1270B." ], "type": "string" }, @@ -37962,7 +37875,9 @@ "PROVIDER_VIETGIS", "PROVIDER_UNITE", "PROVIDER_NEOGY", - "PROVIDER_AMPUP" + "PROVIDER_AMPUP", + "PROVIDER_LOOP", + "PROVIDER_ZEST" ], "enumDescriptions": [ "ABSTRACT The root of all provider types. This should never be present on an actual feature, but can be useful when calling InCategory.", @@ -38671,7 +38586,9 @@ "", "", "", - "Note: Next available value is 0x1270." + "", + "", + "Note: Next available value is 0x1270B." ], "type": "string" } @@ -43566,6 +43483,32 @@ }, "type": "object" }, + "GoogleCloudContentwarehouseV1ClassifySplitAndExtractPipeline": { + "description": "The configuration of the document classify/split and entity/kvp extraction pipeline.", + "id": "GoogleCloudContentwarehouseV1ClassifySplitAndExtractPipeline", + "properties": { + "classifySplitProcessorInfos": { + "$ref": "GoogleCloudContentwarehouseV1ProcessorInfo", + "description": "The classify or split processor information." + }, + "extractProcessorInfos": { + "description": "The entity or key-value pair extracting processor information.", + "items": { + "$ref": "GoogleCloudContentwarehouseV1ProcessorInfo" + }, + "type": "array" + }, + "inputPath": { + "description": "The input Cloud Storage folder. All files under this folder will be imported to Document Warehouse. Format: gs:///.", + "type": "string" + }, + "processorResultsFolderPath": { + "description": "The Cloud Storage folder path used to store the raw results from processors. Format: gs:///.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudContentwarehouseV1CloudAIDocumentOption": { "description": "Request Option for processing Cloud AI Document in CW Document.", "id": "GoogleCloudContentwarehouseV1CloudAIDocumentOption", @@ -44106,6 +44049,28 @@ }, "type": "object" }, + "GoogleCloudContentwarehouseV1ExportToCdwPipeline": { + "description": "The configuration of exporting documents from the Document Warehouse to CDW pipeline.", + "id": "GoogleCloudContentwarehouseV1ExportToCdwPipeline", + "properties": { + "documentIds": { + "description": "The list of all the documents to be processed.", + "items": { + "type": "string" + }, + "type": "array" + }, + "exportFolderPath": { + "description": "The Cloud Storage folder path used to store the exported documents before being sent to CDW. Format: gs:///.", + "type": "string" + }, + "processorInfo": { + "$ref": "GoogleCloudContentwarehouseV1ProcessorInfo", + "description": "The CDW processor information." + } + }, + "type": "object" + }, "GoogleCloudContentwarehouseV1FetchAclRequest": { "description": "Request message for DocumentService.FetchAcl", "id": "GoogleCloudContentwarehouseV1FetchAclRequest", @@ -44180,6 +44145,21 @@ "properties": {}, "type": "object" }, + "GoogleCloudContentwarehouseV1GcsIngestPipeline": { + "description": "The configuration of the Cloud Storage ingestion pipeline.", + "id": "GoogleCloudContentwarehouseV1GcsIngestPipeline", + "properties": { + "inputPath": { + "description": "The input Cloud Storage folder. All files under this folder will be imported to Document Warehouse. Format: gs:///.", + "type": "string" + }, + "schemaName": { + "description": "The Document schema resource name. All documents processed by this processor will use this schema. Format: projects/{project_number}/locations/{location}/documentSchemas/{document_schema_id}.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudContentwarehouseV1GetDocumentRequest": { "description": "Request message for DocumentService.GetDocument.", "id": "GoogleCloudContentwarehouseV1GetDocumentRequest", @@ -44539,6 +44519,25 @@ }, "type": "object" }, + "GoogleCloudContentwarehouseV1ProcessorInfo": { + "description": "The DocAI processor information.", + "id": "GoogleCloudContentwarehouseV1ProcessorInfo", + "properties": { + "documentType": { + "description": "The processor will process the documents with this document type.", + "type": "string" + }, + "processorName": { + "description": "The processor resource name. Format is `projects/{project}/locations/{location}/processors/{processor}`, or `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}`", + "type": "string" + }, + "schemaName": { + "description": "The Document schema resource name. All documents processed by this processor will use this schema. Format: projects/{project_number}/locations/{location}/documentSchemas/{document_schema_id}.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudContentwarehouseV1Property": { "description": "Property of a document.", "id": "GoogleCloudContentwarehouseV1Property", @@ -44935,6 +44934,25 @@ }, "type": "object" }, + "GoogleCloudContentwarehouseV1RunPipelineRequest": { + "description": "Request message for DocumentService.RunPipeline.", + "id": "GoogleCloudContentwarehouseV1RunPipelineRequest", + "properties": { + "classifySplitAndExtractPipeline": { + "$ref": "GoogleCloudContentwarehouseV1ClassifySplitAndExtractPipeline", + "description": "Classify/split and entity/kvp extraction pipeline." + }, + "exportCdwPipeline": { + "$ref": "GoogleCloudContentwarehouseV1ExportToCdwPipeline", + "description": "Export docuemnts from Document Warehouseing to CDW for training purpose." + }, + "gcsIngestPipeline": { + "$ref": "GoogleCloudContentwarehouseV1GcsIngestPipeline", + "description": "Cloud Storage ingestion pipeline." + } + }, + "type": "object" + }, "GoogleCloudContentwarehouseV1SearchDocumentsRequest": { "description": "Request message for DocumentService.SearchDocuments.", "id": "GoogleCloudContentwarehouseV1SearchDocumentsRequest", @@ -61022,7 +61040,15 @@ "SHOW_LIST", "MODIFY_LIST", "SHOW_NOTE", - "MODIFY_NOTE" + "MODIFY_NOTE", + "READ_SLEEP", + "WRITE_SLEEP", + "READ_ACTIVITY", + "WRITE_ACTIVITY", + "READ_NUTRITION", + "WRITE_NUTRITION", + "READ_WELLNESS", + "WRITE_WELLNESS" ], "enumDescriptions": [ "", @@ -61075,6 +61101,14 @@ "", "", "", + "", + "", + "", + "", + "", + "", + "", + "", "" ], "type": "string" @@ -84356,7 +84390,7 @@ "type": "object" }, "QualityNsrNsrData": { - "description": "NOTE: When adding a new field to be propagated to Raffia check if NsrPatternSignalSpec needs to be updated. Next ID: 51", + "description": "NOTE: When adding a new field to be propagated to Raffia check if NsrPatternSignalSpec needs to be updated. Next ID: 52", "id": "QualityNsrNsrData", "properties": { "articleScore": { @@ -84564,6 +84598,13 @@ "url": { "type": "string" }, + "versionedAsrData": { + "description": "Versioned map of ASR (authenticity) values.", + "items": { + "$ref": "QualityNsrVersionedFloatSignal" + }, + "type": "array" + }, "versionedData": { "description": "Versioned map of NSR values for experimenting with the next release.", "items": { @@ -84633,6 +84674,20 @@ }, "type": "array" }, + "lastTimeProcessedGoldmineInSeconds": { + "format": "int64", + "type": "string" + }, + "lastTimeProcessedMduInSeconds": { + "description": "This field is populated only during MDU population, so it's *not* present in docjoins, but it's present in production so that it can be displayed.", + "format": "int64", + "type": "string" + }, + "lastTimeProcessedRaffiaInSeconds": { + "description": "Records the last time each system has processed the proto. These are recorded as seconds from the unix epoch. Ideally these fields would be google.protobuf.Timestamp, but the scoring bundle (which depends on this proto) does not understand proto3 syntax. See cl/500942047 for details.", + "format": "int64", + "type": "string" + }, "raffiaLookupKey": { "type": "string" }, @@ -88447,7 +88502,7 @@ "description": "This is stored only for debugging purposes. Please consult dates@ team before making a dependency on this field." }, "date": { - "description": "LastSignificantUpdate as UNIX timestamp in seconds. This is the new signal (go/lsu-dd) from LSU Selector V2 (once that is enabled, see b/171879888 for status), falling back to the legacy V1 signal if the V2 signal does not exist. Please use the 'source' field to determine where the value comes from.", + "description": "LastSignificantUpdate as UNIX timestamp in seconds. This is the new signal (go/lsu-dd) from LSU Selector V2 (once that is enabled, see b/171879888 for status), falling back to the legacy V1 signal if the HIGH_PRECISION signal does not exist. Please use the 'source' field to determine where the value comes from.", "format": "int64", "type": "string" }, @@ -88455,6 +88510,18 @@ "description": "The source the signal comes from.", "enum": [ "UNSET", + "LSU_LOW_PRECISION", + "LSU_HIGH_PRECISION_UPDATE_MARKUP_SUPPORTED_BY_CONTENTAGE", + "LSU_HIGH_PRECISION_UPDATE_MARKUP_SUPPORTED_BY_ANNOTATION", + "LSU_HIGH_PRECISION_ANNOTATION_WITH_UPDATE_TAG", + "LSU_HIGH_PRECISION_PUBLICATION_MARKUP_SUPPORTED_BY_CONTENTAGE", + "LSU_HIGH_PRECISION_PUBLICATION_MARKUP_SUPPORTED_BY_ANNOTATION", + "LSU_HIGH_PRECISION_ANNOTATION_WITH_PATTERN_BYLINE_TAG", + "LSU_HIGH_PRECISION_RELIABLE_CONTENT_AGE_SUPPORTED_BY_ANNOTATION", + "LSU_MEDIUM_PRECISION_FRESH_SALIENT_ANNOTATION_LOW_SUPPORT", + "LSU_MEDIUM_PRECISION_FRESH_SALIENT_ANNOTATION_MEDIUM_SUPPORT", + "LSU_MEDIUM_PRECISION_FRESH_SALIENT_ANNOTATION_HIGH_SUPPORT", + "LSU_MEDIUM_PRECISION_FRESH_SALIENT_ANNOTATION_FULL_SUPPORT", "LSU_V1", "LSU_V2_UPDATE_MARKUP_SUPPORTED_BY_CONTENTAGE", "LSU_V2_UPDATE_MARKUP_SUPPORTED_BY_ANNOTATION", @@ -88462,11 +88529,7 @@ "LSU_V2_PUBLICATION_MARKUP_SUPPORTED_BY_CONTENTAGE", "LSU_V2_PUBLICATION_MARKUP_SUPPORTED_BY_ANNOTATION", "LSU_V2_ANNOTATION_WITH_PATTERN_BYLINE_TAG", - "LSU_V2_RELIABLE_CONTENT_AGE_SUPPORTED_BY_ANNOTATION", - "LSU_MEDIUM_PRECISION_FRESH_SALIENT_ANNOTATION_LOW_SUPPORT", - "LSU_MEDIUM_PRECISION_FRESH_SALIENT_ANNOTATION_MEDIUM_SUPPORT", - "LSU_MEDIUM_PRECISION_FRESH_SALIENT_ANNOTATION_HIGH_SUPPORT", - "LSU_MEDIUM_PRECISION_FRESH_SALIENT_ANNOTATION_FULL_SUPPORT" + "LSU_V2_RELIABLE_CONTENT_AGE_SUPPORTED_BY_ANNOTATION" ], "enumDescriptions": [ "", @@ -88481,6 +88544,14 @@ "", "", "", + "", + "Legacy names. Do not use. These are kept around for ~2 months to ease transitions.", + "", + "", + "", + "", + "", + "", "" ], "type": "string" @@ -88512,7 +88583,7 @@ "type": "boolean" }, "unboundedTimestampInSeconds": { - "description": "The timestamp that was picked up by the component indicated in the LastSignificantUpdateSource but was dropped due to exceeding the upper bound. Set only if it's not equal to final LSU.", + "description": "The timestamp that was picked up by the component indicated in the LastSignificantUpdateSource but was dropped due to exceeding the upper bound. Set only if it is not equal to final LSU.", "format": "int64", "type": "string" }, @@ -88520,6 +88591,18 @@ "description": "The source that produced the unbounded timestamp.", "enum": [ "UNSET", + "LSU_LOW_PRECISION", + "LSU_HIGH_PRECISION_UPDATE_MARKUP_SUPPORTED_BY_CONTENTAGE", + "LSU_HIGH_PRECISION_UPDATE_MARKUP_SUPPORTED_BY_ANNOTATION", + "LSU_HIGH_PRECISION_ANNOTATION_WITH_UPDATE_TAG", + "LSU_HIGH_PRECISION_PUBLICATION_MARKUP_SUPPORTED_BY_CONTENTAGE", + "LSU_HIGH_PRECISION_PUBLICATION_MARKUP_SUPPORTED_BY_ANNOTATION", + "LSU_HIGH_PRECISION_ANNOTATION_WITH_PATTERN_BYLINE_TAG", + "LSU_HIGH_PRECISION_RELIABLE_CONTENT_AGE_SUPPORTED_BY_ANNOTATION", + "LSU_MEDIUM_PRECISION_FRESH_SALIENT_ANNOTATION_LOW_SUPPORT", + "LSU_MEDIUM_PRECISION_FRESH_SALIENT_ANNOTATION_MEDIUM_SUPPORT", + "LSU_MEDIUM_PRECISION_FRESH_SALIENT_ANNOTATION_HIGH_SUPPORT", + "LSU_MEDIUM_PRECISION_FRESH_SALIENT_ANNOTATION_FULL_SUPPORT", "LSU_V1", "LSU_V2_UPDATE_MARKUP_SUPPORTED_BY_CONTENTAGE", "LSU_V2_UPDATE_MARKUP_SUPPORTED_BY_ANNOTATION", @@ -88527,11 +88610,7 @@ "LSU_V2_PUBLICATION_MARKUP_SUPPORTED_BY_CONTENTAGE", "LSU_V2_PUBLICATION_MARKUP_SUPPORTED_BY_ANNOTATION", "LSU_V2_ANNOTATION_WITH_PATTERN_BYLINE_TAG", - "LSU_V2_RELIABLE_CONTENT_AGE_SUPPORTED_BY_ANNOTATION", - "LSU_MEDIUM_PRECISION_FRESH_SALIENT_ANNOTATION_LOW_SUPPORT", - "LSU_MEDIUM_PRECISION_FRESH_SALIENT_ANNOTATION_MEDIUM_SUPPORT", - "LSU_MEDIUM_PRECISION_FRESH_SALIENT_ANNOTATION_HIGH_SUPPORT", - "LSU_MEDIUM_PRECISION_FRESH_SALIENT_ANNOTATION_FULL_SUPPORT" + "LSU_V2_RELIABLE_CONTENT_AGE_SUPPORTED_BY_ANNOTATION" ], "enumDescriptions": [ "", @@ -88546,6 +88625,14 @@ "", "", "", + "", + "Legacy names. Do not use. These are kept around for ~2 months to ease transitions.", + "", + "", + "", + "", + "", + "", "" ], "type": "string" @@ -89912,19 +89999,7 @@ "id": "RepositoryWebrefAnnotationDebugInfo", "properties": { "description": { - "type": "string" - }, - "infoString": { - "items": { - "type": "string" - }, - "type": "array" - }, - "rawClassification": { - "$ref": "EntitySignalsEntityClassification", - "description": "Raw classification output from relevance classifier for classifier training and debugging. See http://go/entityclassifier for details on the classifier." - }, - "url": { + "description": "Only use for debugging, this should not be displayed to user or used for any kind of logic/processing.", "type": "string" } }, @@ -90012,6 +90087,7 @@ "VIDEO_TRANSCRIPT", "VIDEO_OCR", "IMAGE_OCR", + "LENS", "ONLY_LOOKUP_METADATA", "EMBEDDED_CONTENT" ], @@ -90055,6 +90131,7 @@ "", "", "", + "", "Entries which are created in order to instruct the fprint-loader to load metadata for the contained ngrams.", "The embedded content in the document (e.g., within json scripts)." ], @@ -90526,15 +90603,6 @@ "description": "Detailed scores about the topicality of an entity. Next available tag: 16", "id": "RepositoryWebrefDetailedEntityScores", "properties": { - "anchorScore": { - "description": "Additional info regarding how the score of an annotation was obtained. These will no longer be set once the feature `topic2_detailed_scores` is enabled (Q4 2017).", - "format": "float", - "type": "number" - }, - "bodyScore": { - "format": "float", - "type": "number" - }, "connectedness": { "description": "Represents how much the entity is connected/related to the other entities in the document. This signal partially influences the topicality score, but it is not totally aligned with it: an entity can be very related to the rest of the document, but not central for understanding it. Likewise, an entity can be central to understand a document, but not very related to the rest of the document. The value is in [0, 1].", "format": "float", @@ -90567,15 +90635,6 @@ "format": "float", "type": "number" }, - "nbScore": { - "format": "float", - "type": "number" - }, - "newsTopicalityScore": { - "description": "DEPRECATED: this field is no longer set. As of early June 2018 it is referenced in hundreds of test files and is difficult to remove from the code base.", - "format": "float", - "type": "number" - }, "normalizedTopicality": { "description": "Representation of the topicality score that is normalized in [0, 1] and which sum over all entities in the document is 1. It represents the \"proportion\" of the document that talks about the entity. This score is less human interpretable as the bucketized topicality score (EntityAnnotations.topicality_score), but is more suited for some usages like aggregations.", "format": "float", @@ -90596,17 +90655,6 @@ "RepositoryWebrefDetailedMentionScores": { "id": "RepositoryWebrefDetailedMentionScores", "properties": { - "patternInfo": { - "items": { - "$ref": "RepositoryWebrefPatternInfo" - }, - "type": "array" - }, - "posteriorForLearning": { - "description": "How much confidence that a entity is annotated on a given name. NOTE: it's slightly different with normal annotation confidence.", - "format": "float", - "type": "number" - }, "resultEntityScore": { "description": "How much support this mention received from the results for PostRef. This is populated only if explicitly requested and different from 0.", "format": "float", @@ -91384,6 +91432,10 @@ "RepositoryWebrefEntityNameRatingsEntityNameRating": { "id": "RepositoryWebrefEntityNameRatingsEntityNameRating", "properties": { + "comment": { + "description": "Comment left by the rater to justify the rating decision.", + "type": "string" + }, "label": { "enum": [ "LABEL_UNSPECIFIED", @@ -91990,6 +92042,7 @@ "VIDEO_TRANSCRIPT", "VIDEO_OCR", "IMAGE_OCR", + "LENS", "ONLY_LOOKUP_METADATA", "EMBEDDED_CONTENT" ], @@ -92033,6 +92086,7 @@ "", "", "", + "", "Entries which are created in order to instruct the fprint-loader to load metadata for the contained ngrams.", "The embedded content in the document (e.g., within json scripts)." ], @@ -93533,25 +93587,6 @@ }, "type": "object" }, - "RepositoryWebrefPatternInfo": { - "id": "RepositoryWebrefPatternInfo", - "properties": { - "matchProbability": { - "description": "The confidence we can trust this pattern.", - "format": "float", - "type": "number" - }, - "otherSlotsMentioned": { - "description": "Whether other slots is mentioned in annotator. If they is no other slot, it is set to true.", - "type": "boolean" - }, - "pattern": { - "description": "The corresponding patterns matched on this candidate, which contains the pattern string and the slot number of the candidate in this pattern, such as [|/athletes|vs|/athletes|]_1.", - "type": "string" - } - }, - "type": "object" - }, "RepositoryWebrefPerDocRelevanceRating": { "description": "Per document ratings relevance ratings. Next id: 21.", "id": "RepositoryWebrefPerDocRelevanceRating", @@ -94346,7 +94381,8 @@ "INSTANT_QUERY", "VIDEO_TRANSCRIPT", "VIDEO_OCR", - "IMAGE_OCR" + "IMAGE_OCR", + "LENS" ], "enumDescriptions": [ "The document content (excluding the title) or the text of the query.", @@ -94363,7 +94399,8 @@ "One of the instant navboost queries of the document. They can be found in cdoc.doc_attachments().GetExtension(InstantNavBoostDocument:: message_set_extension).instant_nav_boost_document().", "The transcript of a video.", "The ocr text of a video.", - "The ocr text of an image." + "The ocr text of an image.", + "Fake segment that contains all Lens entity mids in a given image." ], "type": "string" }, @@ -94545,7 +94582,8 @@ "INSTANT_QUERY", "VIDEO_TRANSCRIPT", "VIDEO_OCR", - "IMAGE_OCR" + "IMAGE_OCR", + "LENS" ], "enumDescriptions": [ "The document content (excluding the title) or the text of the query.", @@ -94562,7 +94600,8 @@ "One of the instant navboost queries of the document. They can be found in cdoc.doc_attachments().GetExtension(InstantNavBoostDocument:: message_set_extension).instant_nav_boost_document().", "The transcript of a video.", "The ocr text of a video.", - "The ocr text of an image." + "The ocr text of an image.", + "Fake segment that contains all Lens entity mids in a given image." ], "type": "string" } @@ -94596,7 +94635,8 @@ "INSTANT_QUERY", "VIDEO_TRANSCRIPT", "VIDEO_OCR", - "IMAGE_OCR" + "IMAGE_OCR", + "LENS" ], "enumDescriptions": [ "The document content (excluding the title) or the text of the query.", @@ -94613,7 +94653,8 @@ "One of the instant navboost queries of the document. They can be found in cdoc.doc_attachments().GetExtension(InstantNavBoostDocument:: message_set_extension).instant_nav_boost_document().", "The transcript of a video.", "The ocr text of a video.", - "The ocr text of an image." + "The ocr text of an image.", + "Fake segment that contains all Lens entity mids in a given image." ], "type": "string" } @@ -97563,7 +97604,7 @@ "type": "array" }, "isInferred": { - "description": "Indicates whether the metadata was inferred using an ML model rather than from the schema.org fields.", + "description": "Indicates whether the metadata was inferred using an ML model rather than from the schema.org fields. Use optional so that explicitly setting to false will ensure the value is passed along to the KG instead of being indistinguisable from being unset and thus not set in the KG. This field was originally non-optional; changing to optional is backwards compatible, but protos created prior to being optional won't have has_is_inferred() (go/proto-proposals/proto3-presence#wire-format-semantic-changes).", "type": "boolean" }, "keyword": { @@ -99242,14 +99283,6 @@ "ScienceIndexSignal": { "id": "ScienceIndexSignal", "properties": { - "HoldingsId": { - "description": "Subscriber Access feature: List of Holdings IDs associated with this document. Should be present only for the documents with 'VisiblePrefixTerms' being set.", - "items": { - "format": "uint64", - "type": "string" - }, - "type": "array" - }, "HtmlTitleFp": { "description": "Fingerprint of the html title of the page. This is useful for checking if we have the same version of the page as websearch.", "format": "int64", @@ -101600,6 +101633,21 @@ "properties": {}, "type": "object" }, + "SocialGraphApiProtoDecorationOverlay": { + "description": "Settings that control how a SIBS decoration overlay is displayed.", + "id": "SocialGraphApiProtoDecorationOverlay", + "properties": { + "overlay": { + "$ref": "SocialGraphApiProtoPhotoOverlay", + "description": "Settings that describe how the decoration should be overlaid on the photo." + }, + "sibsId": { + "description": "SIBS ID of the decoration that is overlaid on the photo.", + "type": "string" + } + }, + "type": "object" + }, "SocialGraphApiProtoDelegatedGroupId": { "description": "Represents a delegated group id, delegated groups refer to groups that are owned by another gaiaId, but this user has access to.", "id": "SocialGraphApiProtoDelegatedGroupId", @@ -101642,6 +101690,17 @@ }, "type": "object" }, + "SocialGraphApiProtoImageReference": { + "description": "A reference to a photo in either Photos Backend or SGI storage. This message should be treated as an opaque blob to avoid a dependency on a specific storage backend.", + "id": "SocialGraphApiProtoImageReference", + "properties": { + "mediaId": { + "description": "Unique identifier for the photo. For now, this will always be a Photos Backend media key.", + "type": "string" + } + }, + "type": "object" + }, "SocialGraphApiProtoLimitedProfileNameSettings": { "id": "SocialGraphApiProtoLimitedProfileNameSettings", "properties": { @@ -101926,6 +101985,21 @@ }, "type": "object" }, + "SocialGraphApiProtoPhotoOverlay": { + "description": "Settings that control how a photo overlay is displayed.", + "id": "SocialGraphApiProtoPhotoOverlay", + "properties": { + "relativePosition": { + "$ref": "SocialGraphApiProtoRelativePosition", + "description": "Top left position of the overlay relative to the user's avatar." + }, + "relativeScale": { + "$ref": "SocialGraphApiProtoRelativeScale", + "description": "Scale of the overlay relative to the user's avatar." + } + }, + "type": "object" + }, "SocialGraphApiProtoPrompt": { "description": "Used in PeopleAPI layers + FBS/ContactsService (not in ProfileService)", "id": "SocialGraphApiProtoPrompt", @@ -102157,6 +102231,36 @@ "properties": {}, "type": "object" }, + "SocialGraphApiProtoRelativePosition": { + "description": "Position relative to the user's avatar. 0 = top/left, 1 = bottom/right.", + "id": "SocialGraphApiProtoRelativePosition", + "properties": { + "x": { + "format": "float", + "type": "number" + }, + "y": { + "format": "float", + "type": "number" + } + }, + "type": "object" + }, + "SocialGraphApiProtoRelativeScale": { + "description": "Scale relative to the user's avatar. x and y range from 0 (exclusive) to 1 (inclusive).", + "id": "SocialGraphApiProtoRelativeScale", + "properties": { + "x": { + "format": "float", + "type": "number" + }, + "y": { + "format": "float", + "type": "number" + } + }, + "type": "object" + }, "SocialGraphApiProtoSearchProfileData": { "description": "Data contained in every search profile. go/janata-profile-in-sgbe.", "id": "SocialGraphApiProtoSearchProfileData", @@ -107067,6 +107171,10 @@ "SECOND_PASS_POLARIS_WITH_RANKING_CHANGE_EVENT_LEVEL", "EXPLORATORY_BOOSTING_EVENT_LEVEL", "GEARHEAD_TOOLTIP_COOLWALK_DASHBOARD_UNAVAILABLE", + "TIMESLICED_SAFE_SELF_UPDATE", + "NORMAL_SELF_UPDATE", + "SECOND_PASS_BROAD_INTENT_QUERY_EVENT_LEVEL", + "SECOND_PASS_REWEIGHTING_TRIGGERED_EVENT_LEVEL", "EVENT_LEVEL_TEST_CODE_LIMIT", "RESERVED_4", "RESERVED_5", @@ -107654,6 +107762,7 @@ "IAP_HAS_UNREDEEMED_PROMOTIONS_CLIENT_SESSION_LEVEL", "SUBSCRIPTION_UPDATE_FOP_FOR_DCB_AS_PRIMARY_SIGNUP_SESSION_LEVEL", "SUBSCRIPTION_UPDATE_FOP_FOR_DCB_AS_PRIMARY_SUB_CENTER_SESSION_LEVEL", + "SUBS_PRICE_CHANGE_VERSION_TIME_CHECK_SESSION_LEVEL", "RENEW_TASK_DELAYED_SUBSCRIPTION_TARGETED", "RENEW_TASK_DELAYED_SUBSCRIPTION_NOT_TARGETED", "PRE_AUTH_TASK_DELAYED_SUBSCRIPTION_TARGETED", @@ -108005,6 +108114,10 @@ "SECOND_PASS_POLARIS_WITH_RANKING_CHANGE_SESSION_LEVEL", "EXPLORATORY_BOOSTING_SESSION_LEVEL", "PLAY_BOOKS_READING_PROGRESS_TOOLTIP_SESSION_LEVEL", + "NAV_SEARCH_D2D_EMBEDDING_BOOST_SESSION_LEVEL", + "HAS_NO_BACKUP_FOP_FOR_ORDER_SESSION_LEVEL", + "SECOND_PASS_BROAD_INTENT_QUERY_SESSION_LEVEL", + "SECOND_PASS_REWEIGHTING_TRIGGERED_SESSION_LEVEL", "SESSION_LEVEL_TEST_CODE_LIMIT", "SHOULD_SEE_LIVE_OP_CLUSTER_USER_LEVEL", "CART_ABANDONMENT_USER_LEVEL", @@ -108365,6 +108478,7 @@ "SUBS_HIGH_CHURN_FOP_OPTIONS_AVAILABLE_USER_LEVEL_V2", "SUBS_HIGH_CHURN_FOP_OPTIONS_AVAILABLE_WITH_EXISTING_FOP_USER_LEVEL", "SUBS_HIGH_CHURN_FOP_OPTIONS_AVAILABLE_WITHOUT_EXISTING_FOP_USER_LEVEL", + "SUBS_PRICE_CHANGE_VERSION_TIME_CHECK_USER_LEVEL", "WIDE_MEDIA_CLUSTER_INVALID_VIDEO_ASSET_USER_LEVEL", "WEBSKY_SEARCH_THIRD_PARTY_CONTENT_ELIGIBLE_QUERY_USER_LEVEL", "EDITORIAL_FCC_AT_USER_LEVEL", @@ -108735,6 +108849,10 @@ "Second pass polaris with ranking change event level.", "Exploratory boosting event level.", "Tooltip for unavailable dashboard support for selected navigation app.", + "Test code used when /selfUpdate endpoint last returned self_update_mode = TIMESLICED_SAFE_SELF_UPDATE, indicating that a safe self-update should be attempted.", + "Test code used when /selfUpdate endpoint last returned self_update_mode = NORMAL_SELF_UPDATE, indicating that either no self update is available or a normal self update should be performed.", + "Test code for second pass broad intent query event level.", + "Test code for second pass reweighting triggered event level.", "", "", "", @@ -109327,6 +109445,7 @@ "", "", "", + "", "Test codes for the feature and each early-access partners for the Play Store IAP sales project. go/play-store-iap-sales-dd", "", "", @@ -109673,6 +109792,10 @@ "Second pass polaris with ranking change session level.", "Exploratory boosting session level.", "Session level test code for reading progress tooltip.", + "Session level test code for Nav search d2d embedding boost.", + "Session level test code for orders that don’t have a backup fop.", + "Test code for second pass broad intent query session level.", + "Test code for second pass reweighting triggered session level.", "", "User should see the live op cluster.", "Cart abandonment flow for purchase flow.", @@ -110033,6 +110156,7 @@ "", "", "", + "User level test code that indicates users who go through time based check to determine if there's an eligible price change for this user.", "User level test code logged when the wide media card has invalid video asset in the asset agnostic 3x experiment.", "User level test code that indicates a user's search query qualifies them to see third party content in Websky search stream.", "User level test code that indicates that a user was served an editorial FCC (Flexible Content Cluster).", @@ -110433,7 +110557,8 @@ "OBJECTIVE_LIVE_STITCHABLE_ASSETS_DONE", "OBJECTIVE_CRAWL_ASSETS_DONE", "OBJECTIVE_VITAL_ASSETS_DONE", - "OBJECTIVE_SAM_FEATURES_DONE" + "OBJECTIVE_SAM_FEATURES_DONE", + "OBJECTIVE_SPEECH_RECOGNITION_DONE" ], "enumDescriptions": [ "Should not happen.", @@ -110456,7 +110581,8 @@ "All live server stitchable ad assets are complete.", "All requested crawl assets for Amarna are complete. This is only needed for genus which is shared by Amarna and other clients. As of 10/2020, YT UGC is the only genus, and crawl assets include MOVING_THUMBNAIL_{8K, 30K, 90K, 300K_24FPS} and ASSET_TIMED_ANCHOR_THUMBNAIL_SPORTS_MOMENT.", "A super set of OBJECTIVE_PRIMARY_ASSETS_DONE and a few other assets that are important for tracking the health of a video. Note: This is for internal health tracking and *not* intended for clients.", - "The set of features that Smart Auto Midrolls depends on for generating midroll ad breaks." + "The set of features that Smart Auto Midrolls depends on for generating midroll ad breaks.", + "" ], "type": "string" }, @@ -115946,10 +116072,12 @@ "MODEL_RACY_WATCHPAGE_2021_05_04_FLAGGED_HOME", "MODEL_RACY_WATCHPAGE_2021_05_04_FLAGGED_WATCHNEXT", "MODEL_RACY_WATCHPAGE_V4", + "MODEL_RACY_WATCHPAGE_RELEASE", "MODEL_RACY_SHORTS_WATCHPAGE_V1", "MODEL_RACY_SHORTS_WATCHPAGE_V1_FLAGGED", "MODEL_RACY_SHORTS_WATCHPAGE_V2", "MODEL_RACY_SHORTS_WATCHPAGE_V2_FLAGGED", + "MODEL_RACY_SHORTS_WATCHPAGE_RELEASE", "MODEL_RACY_THUMB_2019_04_02", "MODEL_RACY_THUMB_2019_08_12", "MODEL_RACY_THUMB_2019_08_12A", @@ -115959,6 +116087,7 @@ "MODEL_RACY_THUMB_2019_08_12E", "MODEL_RACY_THUMB_2019_08_12_CALIBRATED", "MODEL_RACY_THUMB_2019_08_12_FLAGGED", + "MODEL_RACY_THUMB_RELEASE", "MODEL_QUALITY_2019_09_24", "MODEL_QUALITY_2019_11_11", "MODEL_QUALITY_2020_11_12", @@ -115995,10 +116124,12 @@ "Flagged racy watchpage score v6 using racy watchpage model v3 calibrated for home.", "Flagged racy watchpage score v6 using racy watchpage model v3 calibrated for watchnext.", "Racy watchpage model v4 (go/racy-watchpage-v4).", + "Racy watchpage release version.", "Racy shorts watchpage model v1.", "", "Racy shorts watchpage model v2.", "", + "Racy shorts watchpage release version.", "Racy thumb model which corresponds to https://mldash.corp.google.com/experiments/156747527161891342", "Racy thumb model V3 based on cotraining. https://mldash.corp.google.com/experiments/2626243069925683800", "Historical: Used before 05/06/2020. Racy thumb model V3 based on cotraining. Variant 1. https://mldash.corp.google.com/experiments/2626243069925683800", @@ -116008,6 +116139,7 @@ "Historical: Used before 05/06/2020. Racy thumb model V3 based on cotraining. Variant 5. https://mldash.corp.google.com/experiments/2626243069925683800", "Racy thumb model V3 after calibration.", "Flagged racy watchpage model using racy thumbnail V3 score.", + "Racy thumbnail release version.", "Quality thumb model V2 trained using search page quality ratings.", "", "Quality thumb model V3.", diff --git a/contentwarehouse/v1/contentwarehouse-gen.go b/contentwarehouse/v1/contentwarehouse-gen.go index 424cd5383af..6657aacf640 100644 --- a/contentwarehouse/v1/contentwarehouse-gen.go +++ b/contentwarehouse/v1/contentwarehouse-gen.go @@ -3132,6 +3132,7 @@ type AppsPeopleOzExternalMergedpeopleapiAffinity struct { // "DATA_STUDIO_SPACES_AFFINITY" // "SOJI_AFFINITY" // "PLAY_MOVIES_ANDROID_AFFINITY" + // "DATA_STUDIO_DOMAIN_ONLY_AFFINITY" AffinityType string `json:"affinityType,omitempty"` // ContainerId: The ID of the container @@ -4732,7 +4733,7 @@ func (s *AppsPeopleOzExternalMergedpeopleapiEmail) MarshalJSON() ([]byte, error) } // AppsPeopleOzExternalMergedpeopleapiEmailCertificate: Represents a -// hosted S/MIME certificate config for use with Gmail. See +// S/MIME certificate config for use with Gmail. See // //caribou/smime/proto/certificate_status.proto. There can be zero or // more certificates associated with an email address, be it profile // email or contact email. @@ -7408,6 +7409,8 @@ type AppsPeopleOzExternalMergedpeopleapiPerson struct { // go/fbs-g+-deprecation. ProfileUrlRepeated []*AppsPeopleOzExternalMergedpeopleapiProfileUrl `json:"profileUrlRepeated,omitempty"` + // Pronoun: Pronouns are not supported for consumer profiles. See + // go/pronouns-in-people-system-prd for more details. Pronoun []*AppsPeopleOzExternalMergedpeopleapiPronoun `json:"pronoun,omitempty"` // ReadOnlyProfileInfo: Information about the profiles that are a part @@ -8277,6 +8280,12 @@ func (s *AppsPeopleOzExternalMergedpeopleapiPhoneExtendedData) MarshalJSON() ([] } type AppsPeopleOzExternalMergedpeopleapiPhoto struct { + // Decoration: Read-only. Use UpdatePersonPhoto to change photo + // decorations. If this photo is decorated, this field contains + // information about its decorations. For now, this will contain at most + // one entry. + Decoration []*SocialGraphApiProtoDecorationOverlay `json:"decoration,omitempty"` + // EmojiAvatarUrl: URL of an emoji avatar as an image. See go/emoji-cdn. // PeopleAPI will return the SVG format so that it can be scaled client // side and so that the images will not be animated. All clients that @@ -8325,6 +8334,13 @@ type AppsPeopleOzExternalMergedpeopleapiPhoto struct { // color of the monogram photo as a hex RGB formatted string "RRGGBB". MonogramBackground string `json:"monogramBackground,omitempty"` + // OriginalPhoto: Read-only. A reference to the original, undecorated + // profile photo in storage. This field is not stored. It is populated + // by a live read to /SocialGraphImageService.GetActiveProfilePhoto. + // This field is only returned when "person.photo.original_photo" is + // specified in the request mask. + OriginalPhoto *SocialGraphApiProtoImageReference `json:"originalPhoto,omitempty"` + // PhotoId: For writes only. Indicates photo content for person // photo-field update. Currently only used for profile-photo updates // (not contact photos yet). @@ -8346,7 +8362,7 @@ type AppsPeopleOzExternalMergedpeopleapiPhoto struct { // displaying the photo. Supported for place photos only. ViewerUrl string `json:"viewerUrl,omitempty"` - // ForceSendFields is a list of field names (e.g. "EmojiAvatarUrl") to + // ForceSendFields is a list of field names (e.g. "Decoration") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -8354,13 +8370,12 @@ type AppsPeopleOzExternalMergedpeopleapiPhoto struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "EmojiAvatarUrl") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "Decoration") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` } @@ -14335,9 +14350,6 @@ type AssistantApiDeviceCapabilities struct { OutputRestrictions *AssistantApiOutputRestrictions `json:"outputRestrictions,omitempty"` // PopOnLockscreenCapability: Capability to support Pop on lockscreen. - // TODO(b/230626444) this is for short term workaround for TNG MA DF. - // Should be deprecated when long term solution is available. - // go/pop-on-lockscreen-for-tng-ma. // // Possible values: // "POP_ON_LOCKSCREEN_DEFAULT" - Pop will default to enabled on @@ -23794,6 +23806,34 @@ func (s *AssistantLogsNearbyDevicesLog) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// AssistantLogsProviderAnnotationLog: Provider annotation annotated +// from the query. +type AssistantLogsProviderAnnotationLog struct { + PackageNames []string `json:"packageNames,omitempty"` + + // ForceSendFields is a list of field names (e.g. "PackageNames") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "PackageNames") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *AssistantLogsProviderAnnotationLog) MarshalJSON() ([]byte, error) { + type NoMethod AssistantLogsProviderAnnotationLog + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // AssistantLogsQueryAnnotationLog: Log about the query requirements type AssistantLogsQueryAnnotationLog struct { // DeviceAnnotation: Deprecated, please use room_annotations. @@ -23802,6 +23842,10 @@ type AssistantLogsQueryAnnotationLog struct { // DeviceAnnotations: Log the device annotations mentioned in the query. DeviceAnnotations []*AssistantLogsDeviceAnnotationLog `json:"deviceAnnotations,omitempty"` + // ProviderAnnotation: Log the provider annotations annotated from the + // query. + ProviderAnnotation *AssistantLogsProviderAnnotationLog `json:"providerAnnotation,omitempty"` + // RoomAnnotation: TODO(b/171250187) Deprecates the optional // RoomAnnotationLog and DeviceAnnotationLog. Deprecated, please use // device_annotations. @@ -32775,219 +32819,6 @@ func (s *EmbedsProvenance) MarshalJSON() ([]byte, error) { type EmbedsTransientData struct { } -// EntitySignalsClassificationOutput: Output of the classifier. -type EntitySignalsClassificationOutput struct { - // Labels: Filled if used logistic regression (see ewok.proto for - // available labels). - Labels []*EntitySignalsWeightedRelevanceRating `json:"labels,omitempty"` - - // RelevanceScore: If using linear regression, this is the output value - // of the regression. If using logistic regression, this is the weighted - // aggregated rating. See http://go/entitymetric - RelevanceScore float64 `json:"relevanceScore,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Labels") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Labels") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *EntitySignalsClassificationOutput) MarshalJSON() ([]byte, error) { - type NoMethod EntitySignalsClassificationOutput - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -func (s *EntitySignalsClassificationOutput) UnmarshalJSON(data []byte) error { - type NoMethod EntitySignalsClassificationOutput - var s1 struct { - RelevanceScore gensupport.JSONFloat64 `json:"relevanceScore"` - *NoMethod - } - s1.NoMethod = (*NoMethod)(s) - if err := json.Unmarshal(data, &s1); err != nil { - return err - } - s.RelevanceScore = float64(s1.RelevanceScore) - return nil -} - -// EntitySignalsEntityClassification: Collection of input, extracted -// features and classification output. -type EntitySignalsEntityClassification struct { - // EntityId: Entity id. - EntityId string `json:"entityId,omitempty"` - - // Features: Input features used in classification. - Features []*EntitySignalsEntityFeature `json:"features,omitempty"` - - // Output: Classification output. - Output *EntitySignalsClassificationOutput `json:"output,omitempty"` - - // ForceSendFields is a list of field names (e.g. "EntityId") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "EntityId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *EntitySignalsEntityClassification) MarshalJSON() ([]byte, error) { - type NoMethod EntitySignalsEntityClassification - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -type EntitySignalsEntityFeature struct { - // Possible values: - // "INVALID" - used for e.g. empty feature names and parsing error - // "NO_FEATURE_ENUM" - for the cases where there's no backing code - // "WEBREF__ANCHOR_SCORE" - // "WEBREF__BODY_SCORE" - // "WEBREF__BUCKETIZED_TOPICALITY__0" - // "WEBREF__BUCKETIZED_TOPICALITY__1" - // "WEBREF__BUCKETIZED_TOPICALITY__2" - // "WEBREF__BUCKETIZED_TOPICALITY__3" - // "WEBREF__BUCKETIZED_TOPICALITY__4" - // "WEBREF__CONFIDENCE_SCORE" - // "WEBREF__CONNECTEDNESS" - // "WEBREF__MENTION__MENTION_SCORE_AVG__BODY" - // "WEBREF__MENTION__MENTION_SCORE_AVG__ANCHOR" - // "WEBREF__MENTION__MENTION_SCORE_AVG__QUERY" - // "WEBREF__MENTION__SUPPORT_SCORE_AVG__ANCHOR" - // "WEBREF__MENTION__SUPPORT_SCORE_AVG__BODY" - // "WEBREF__MENTION__SUPPORT_SCORE_AVG__QUERY" - // "WEBREF__MENTION__TOKEN_WEIGHT_SUM__ANCHOR" - // "WEBREF__MENTION__TOKEN_WEIGHT_SUM__BODY" - // "WEBREF__MENTION__TOKEN_WEIGHT_SUM__QUERY" - // "WEBREF__NB_SCORE" - // "WEBREF__NORMALIZED_TOPICALITY" - // "WEBREF__TOPICALITY" - // "WEBREF__TOPICALITY_BUCKET__0" - // "WEBREF__TOPICALITY_BUCKET__1" - // "WEBREF__TOPICALITY_BUCKET__2" - // "WEBREF__TOPICALITY_BUCKET__3" - // "WEBREF__TOPICALITY_BUCKET__4" - // "WEBREF__TOTAL_CANDIDATE_COUNT" - // "ENTITY_SIGNALS__OTM__MAX" - // "ENTITY_SIGNALS__OTM__GEO__AUTO" - // "ENTITY_SIGNALS__OTM__GEO__HUMAN" - // "ENTITY_SIGNALS__OTM__VERTICALS4__AUTO" - // "ENTITY_SIGNALS__OTM__VERTICALS4__HUMAN" - Code string `json:"code,omitempty"` - - // Name: Name of the feature. For a completely list of available - // features, please check http://go/entityclassifierfeatures - Name string `json:"name,omitempty"` - - // Value: Value of the feature. - Value float64 `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Code") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Code") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *EntitySignalsEntityFeature) MarshalJSON() ([]byte, error) { - type NoMethod EntitySignalsEntityFeature - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -func (s *EntitySignalsEntityFeature) UnmarshalJSON(data []byte) error { - type NoMethod EntitySignalsEntityFeature - var s1 struct { - Value gensupport.JSONFloat64 `json:"value"` - *NoMethod - } - s1.NoMethod = (*NoMethod)(s) - if err := json.Unmarshal(data, &s1); err != nil { - return err - } - s.Value = float64(s1.Value) - return nil -} - -type EntitySignalsWeightedRelevanceRating struct { - // Possible values: - // "UNRATED" - // "NOT_RELEVANT" - // "BARELY_RELEVANT" - // "RELEVANT" - // "IMPORTANT" - Rating string `json:"rating,omitempty"` - - Weight float64 `json:"weight,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Rating") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Rating") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *EntitySignalsWeightedRelevanceRating) MarshalJSON() ([]byte, error) { - type NoMethod EntitySignalsWeightedRelevanceRating - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -func (s *EntitySignalsWeightedRelevanceRating) UnmarshalJSON(data []byte) error { - type NoMethod EntitySignalsWeightedRelevanceRating - var s1 struct { - Weight gensupport.JSONFloat64 `json:"weight"` - *NoMethod - } - s1.NoMethod = (*NoMethod)(s) - if err := json.Unmarshal(data, &s1); err != nil { - return err - } - s.Weight = float64(s1.Weight) - return nil -} - // EventIdMessage: An EventId is a 128 bit identifier that uniquely // identifies an event, such as a query. The event time recorded to the // nearest microsecond, along with information about the process @@ -34479,7 +34310,8 @@ type GDocumentBaseContent struct { // is the length of the representation string. ContentLength int64 `json:"ContentLength,omitempty"` - // ContentType: See enum ContentType in webutil/http/content-type.proto. + // ContentType: See enum ContentType in + // //depot/google3/webutil/http/content-type.proto. ContentType int64 `json:"ContentType,omitempty"` // CrawlTime: Seconds since Unix epoch. @@ -37314,7 +37146,9 @@ type GeostoreDataSourceProto struct { // "PROVIDER_VIETGIS" // "PROVIDER_UNITE" // "PROVIDER_NEOGY" - // "PROVIDER_AMPUP" - Note: Next available value is 0x1270. + // "PROVIDER_AMPUP" + // "PROVIDER_LOOP" + // "PROVIDER_ZEST" - Note: Next available value is 0x1270B. Provider string `json:"provider,omitempty"` // RawMetadata: For every key that is used in raw_data from this source, @@ -38638,9 +38472,9 @@ type GeostoreFeatureIdForwardingsProto struct { // won't be set. InactiveDuplicate []*GeostoreFeatureIdProto `json:"inactiveDuplicate,omitempty"` - // ReplacedBy: If the feature has been REPLACED by one or more other - // feature(s), this is the list of feature IDs of the replacement - // feature(s). Note that the other features may themselves be removed. + // ReplacedBy: DEPRECATED - Use + // feature.metadata.feature_replacement_info instead. This field was + // never populated. ReplacedBy *GeostoreFeatureIdListProto `json:"replacedBy,omitempty"` // TransitivelyDuplicateOf: If the feature has been transitively marked @@ -39258,7 +39092,8 @@ type GeostoreFeatureProto struct { // non-point use cases for which this field would be useful. GeometryPrecisionMeters float64 `json:"geometryPrecisionMeters,omitempty"` - // GeopoliticalGeometry: RESERVED + // GeopoliticalGeometry: Geopolitical (unsimplified) polygons for a + // feature for different geopolitical use cases. GeopoliticalGeometry *GeostoreGeopoliticalGeometryProto `json:"geopoliticalGeometry,omitempty"` // HtmlText: ** DEPRECATED ** Features can have zero or more HTML texts @@ -40178,7 +40013,9 @@ type GeostoreFeatureProto struct { // levels. VerticalOrdering *GeostoreVerticalOrderingProto `json:"verticalOrdering,omitempty"` - // WaterRemovedPolygon: RESERVED + // WaterRemovedPolygon: A version of the geometry which has water + // removed but is not simplified (thus having equal or more vertices + // than polygon_for_display). WaterRemovedPolygon *GeostorePolygonProto `json:"waterRemovedPolygon,omitempty"` // Website: The official website of this feature. Stored as a repeated @@ -41721,7 +41558,9 @@ type GeostoreInternalSourceSummaryProto struct { // "PROVIDER_VIETGIS" // "PROVIDER_UNITE" // "PROVIDER_NEOGY" - // "PROVIDER_AMPUP" - Note: Next available value is 0x1270. + // "PROVIDER_AMPUP" + // "PROVIDER_LOOP" + // "PROVIDER_ZEST" - Note: Next available value is 0x1270B. Provider string `json:"provider,omitempty"` // ForceSendFields is a list of field names (e.g. "Dataset") to @@ -43889,7 +43728,9 @@ type GeostoreOntologyRawGConceptInstanceProto struct { // "PROVIDER_VIETGIS" // "PROVIDER_UNITE" // "PROVIDER_NEOGY" - // "PROVIDER_AMPUP" - Note: Next available value is 0x1270. + // "PROVIDER_AMPUP" + // "PROVIDER_LOOP" + // "PROVIDER_ZEST" - Note: Next available value is 0x1270B. Provider string `json:"provider,omitempty"` SourceDataset string `json:"sourceDataset,omitempty"` @@ -46370,7 +46211,9 @@ type GeostoreProvenanceProto struct { // "PROVIDER_VIETGIS" // "PROVIDER_UNITE" // "PROVIDER_NEOGY" - // "PROVIDER_AMPUP" - Note: Next available value is 0x1270. + // "PROVIDER_AMPUP" + // "PROVIDER_LOOP" + // "PROVIDER_ZEST" - Note: Next available value is 0x1270B. Provider string `json:"provider,omitempty"` // ForceSendFields is a list of field names (e.g. "Dataset") to @@ -53586,6 +53429,51 @@ func (s *GoogleCloudContentwarehouseV1AddToFolderAction) MarshalJSON() ([]byte, return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudContentwarehouseV1ClassifySplitAndExtractPipeline: The +// configuration of the document classify/split and entity/kvp +// extraction pipeline. +type GoogleCloudContentwarehouseV1ClassifySplitAndExtractPipeline struct { + // ClassifySplitProcessorInfos: The classify or split processor + // information. + ClassifySplitProcessorInfos *GoogleCloudContentwarehouseV1ProcessorInfo `json:"classifySplitProcessorInfos,omitempty"` + + // ExtractProcessorInfos: The entity or key-value pair extracting + // processor information. + ExtractProcessorInfos []*GoogleCloudContentwarehouseV1ProcessorInfo `json:"extractProcessorInfos,omitempty"` + + // InputPath: The input Cloud Storage folder. All files under this + // folder will be imported to Document Warehouse. Format: gs:///. + InputPath string `json:"inputPath,omitempty"` + + // ProcessorResultsFolderPath: The Cloud Storage folder path used to + // store the raw results from processors. Format: gs:///. + ProcessorResultsFolderPath string `json:"processorResultsFolderPath,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "ClassifySplitProcessorInfos") to unconditionally include in API + // requests. By default, fields with empty or default values are omitted + // from API requests. However, any non-pointer, non-interface field + // appearing in ForceSendFields will be sent to the server regardless of + // whether the field is empty or not. This may be used to include empty + // fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. + // "ClassifySplitProcessorInfos") to include in API requests with the + // JSON null value. By default, fields with empty values are omitted + // from API requests. However, any field with an empty value appearing + // in NullFields will be sent to the server as null. It is an error if a + // field in this list has a non-empty value. This may be used to include + // null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudContentwarehouseV1ClassifySplitAndExtractPipeline) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContentwarehouseV1ClassifySplitAndExtractPipeline + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudContentwarehouseV1CloudAIDocumentOption: Request Option // for processing Cloud AI Document in CW Document. type GoogleCloudContentwarehouseV1CloudAIDocumentOption struct { @@ -54501,6 +54389,42 @@ func (s *GoogleCloudContentwarehouseV1EnumValue) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudContentwarehouseV1ExportToCdwPipeline: The configuration +// of exporting documents from the Document Warehouse to CDW pipeline. +type GoogleCloudContentwarehouseV1ExportToCdwPipeline struct { + // DocumentIds: The list of all the documents to be processed. + DocumentIds []string `json:"documentIds,omitempty"` + + // ExportFolderPath: The Cloud Storage folder path used to store the + // exported documents before being sent to CDW. Format: gs:///. + ExportFolderPath string `json:"exportFolderPath,omitempty"` + + // ProcessorInfo: The CDW processor information. + ProcessorInfo *GoogleCloudContentwarehouseV1ProcessorInfo `json:"processorInfo,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DocumentIds") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DocumentIds") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudContentwarehouseV1ExportToCdwPipeline) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContentwarehouseV1ExportToCdwPipeline + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudContentwarehouseV1FetchAclRequest: Request message for // DocumentService.FetchAcl type GoogleCloudContentwarehouseV1FetchAclRequest struct { @@ -54641,6 +54565,42 @@ func (s *GoogleCloudContentwarehouseV1FloatArray) MarshalJSON() ([]byte, error) type GoogleCloudContentwarehouseV1FloatTypeOptions struct { } +// GoogleCloudContentwarehouseV1GcsIngestPipeline: The configuration of +// the Cloud Storage ingestion pipeline. +type GoogleCloudContentwarehouseV1GcsIngestPipeline struct { + // InputPath: The input Cloud Storage folder. All files under this + // folder will be imported to Document Warehouse. Format: gs:///. + InputPath string `json:"inputPath,omitempty"` + + // SchemaName: The Document schema resource name. All documents + // processed by this processor will use this schema. Format: + // projects/{project_number}/locations/{location}/documentSchemas/{docume + // nt_schema_id}. + SchemaName string `json:"schemaName,omitempty"` + + // ForceSendFields is a list of field names (e.g. "InputPath") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "InputPath") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudContentwarehouseV1GcsIngestPipeline) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContentwarehouseV1GcsIngestPipeline + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudContentwarehouseV1GetDocumentRequest: Request message for // DocumentService.GetDocument. type GoogleCloudContentwarehouseV1GetDocumentRequest struct { @@ -55320,6 +55280,48 @@ func (s *GoogleCloudContentwarehouseV1MergeFieldsOptions) MarshalJSON() ([]byte, return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudContentwarehouseV1ProcessorInfo: The DocAI processor +// information. +type GoogleCloudContentwarehouseV1ProcessorInfo struct { + // DocumentType: The processor will process the documents with this + // document type. + DocumentType string `json:"documentType,omitempty"` + + // ProcessorName: The processor resource name. Format is + // `projects/{project}/locations/{location}/processors/{processor}`, or + // `projects/{project}/locations/{location}/processors/{processor}/proces + // sorVersions/{processorVersion}` + ProcessorName string `json:"processorName,omitempty"` + + // SchemaName: The Document schema resource name. All documents + // processed by this processor will use this schema. Format: + // projects/{project_number}/locations/{location}/documentSchemas/{docume + // nt_schema_id}. + SchemaName string `json:"schemaName,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DocumentType") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DocumentType") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudContentwarehouseV1ProcessorInfo) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContentwarehouseV1ProcessorInfo + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudContentwarehouseV1Property: Property of a document. type GoogleCloudContentwarehouseV1Property struct { // DateTimeValues: Date time property values. It is not supported by @@ -56007,6 +56009,45 @@ func (s *GoogleCloudContentwarehouseV1RuleSet) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudContentwarehouseV1RunPipelineRequest: Request message for +// DocumentService.RunPipeline. +type GoogleCloudContentwarehouseV1RunPipelineRequest struct { + // ClassifySplitAndExtractPipeline: Classify/split and entity/kvp + // extraction pipeline. + ClassifySplitAndExtractPipeline *GoogleCloudContentwarehouseV1ClassifySplitAndExtractPipeline `json:"classifySplitAndExtractPipeline,omitempty"` + + // ExportCdwPipeline: Export docuemnts from Document Warehouseing to CDW + // for training purpose. + ExportCdwPipeline *GoogleCloudContentwarehouseV1ExportToCdwPipeline `json:"exportCdwPipeline,omitempty"` + + // GcsIngestPipeline: Cloud Storage ingestion pipeline. + GcsIngestPipeline *GoogleCloudContentwarehouseV1GcsIngestPipeline `json:"gcsIngestPipeline,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "ClassifySplitAndExtractPipeline") to unconditionally include in API + // requests. By default, fields with empty or default values are omitted + // from API requests. However, any non-pointer, non-interface field + // appearing in ForceSendFields will be sent to the server regardless of + // whether the field is empty or not. This may be used to include empty + // fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. + // "ClassifySplitAndExtractPipeline") to include in API requests with + // the JSON null value. By default, fields with empty values are omitted + // from API requests. However, any field with an empty value appearing + // in NullFields will be sent to the server as null. It is an error if a + // field in this list has a non-empty value. This may be used to include + // null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudContentwarehouseV1RunPipelineRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudContentwarehouseV1RunPipelineRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudContentwarehouseV1SearchDocumentsRequest: Request message // for DocumentService.SearchDocuments. type GoogleCloudContentwarehouseV1SearchDocumentsRequest struct { @@ -78175,6 +78216,14 @@ type KnowledgeAnswersSensitivityMyActivityPolicy struct { // "MODIFY_LIST" // "SHOW_NOTE" // "MODIFY_NOTE" + // "READ_SLEEP" + // "WRITE_SLEEP" + // "READ_ACTIVITY" + // "WRITE_ACTIVITY" + // "READ_NUTRITION" + // "WRITE_NUTRITION" + // "READ_WELLNESS" + // "WRITE_WELLNESS" MyActivityRedactedAction string `json:"myActivityRedactedAction,omitempty"` // MyActivityRedactionKey: This field will be translated by footprints @@ -106094,7 +106143,7 @@ func (s *QualityNsrNSRVersionedData) UnmarshalJSON(data []byte) error { } // QualityNsrNsrData: NOTE: When adding a new field to be propagated to -// Raffia check if NsrPatternSignalSpec needs to be updated. Next ID: 51 +// Raffia check if NsrPatternSignalSpec needs to be updated. Next ID: 52 type QualityNsrNsrData struct { // ArticleScore: Score from article classification of the site. ArticleScore float64 `json:"articleScore,omitempty"` @@ -106246,6 +106295,9 @@ type QualityNsrNsrData struct { Url string `json:"url,omitempty"` + // VersionedAsrData: Versioned map of ASR (authenticity) values. + VersionedAsrData []*QualityNsrVersionedFloatSignal `json:"versionedAsrData,omitempty"` + // VersionedData: Versioned map of NSR values for experimenting with the // next release. VersionedData []*QualityNsrNSRVersionedData `json:"versionedData,omitempty"` @@ -106423,6 +106475,20 @@ type QualityNsrNsrDataMetadata struct { // raffia; in those cases, goldmine related fields are empty. GoldmineLookupKeys []string `json:"goldmineLookupKeys,omitempty"` + LastTimeProcessedGoldmineInSeconds int64 `json:"lastTimeProcessedGoldmineInSeconds,omitempty,string"` + + // LastTimeProcessedMduInSeconds: This field is populated only during + // MDU population, so it's *not* present in docjoins, but it's present + // in production so that it can be displayed. + LastTimeProcessedMduInSeconds int64 `json:"lastTimeProcessedMduInSeconds,omitempty,string"` + + // LastTimeProcessedRaffiaInSeconds: Records the last time each system + // has processed the proto. These are recorded as seconds from the unix + // epoch. Ideally these fields would be google.protobuf.Timestamp, but + // the scoring bundle (which depends on this proto) does not understand + // proto3 syntax. See cl/500942047 for details. + LastTimeProcessedRaffiaInSeconds int64 `json:"lastTimeProcessedRaffiaInSeconds,omitempty,string"` + RaffiaLookupKey string `json:"raffiaLookupKey,omitempty"` // RaffiaLookupKeyPerField: Returns the raffia lookup key per each field @@ -110965,35 +111031,46 @@ type QualityTimebasedLastSignificantUpdate struct { // Date: LastSignificantUpdate as UNIX timestamp in seconds. This is the // new signal (go/lsu-dd) from LSU Selector V2 (once that is enabled, // see b/171879888 for status), falling back to the legacy V1 signal if - // the V2 signal does not exist. Please use the 'source' field to - // determine where the value comes from. + // the HIGH_PRECISION signal does not exist. Please use the 'source' + // field to determine where the value comes from. Date int64 `json:"date,omitempty,string"` // Source: The source the signal comes from. // // Possible values: // "UNSET" - // "LSU_V1" - The signal from legacy selector + // "LSU_LOW_PRECISION" - The signal from legacy selector // (quality/timebased/lastsignificantupdate/lsu-selector.h). It's a // fallback for clients relying on ~100% recall of the signal. - // "LSU_V2_UPDATE_MARKUP_SUPPORTED_BY_CONTENTAGE" - The signal comes - // from update markup date supported by ContentAge. - // "LSU_V2_UPDATE_MARKUP_SUPPORTED_BY_ANNOTATION" - The signal comes - // from update markup date supported by annotation. - // "LSU_V2_ANNOTATION_WITH_UPDATE_TAG" - The signal comes from date - // annotation representing update date of a page. - // "LSU_V2_PUBLICATION_MARKUP_SUPPORTED_BY_CONTENTAGE" - The signal - // comes from publication markup date supported by ContentAge. - // "LSU_V2_PUBLICATION_MARKUP_SUPPORTED_BY_ANNOTATION" - The signal - // comes from publication markup date supported by annotation. - // "LSU_V2_ANNOTATION_WITH_PATTERN_BYLINE_TAG" - The signal comes from - // date annotation often selected as a byline. - // "LSU_V2_RELIABLE_CONTENT_AGE_SUPPORTED_BY_ANNOTATION" - The signal - // comes from ContentAge that's supported by date annotation. + // "LSU_HIGH_PRECISION_UPDATE_MARKUP_SUPPORTED_BY_CONTENTAGE" - The + // signal comes from update markup date supported by ContentAge. + // "LSU_HIGH_PRECISION_UPDATE_MARKUP_SUPPORTED_BY_ANNOTATION" - The + // signal comes from update markup date supported by annotation. + // "LSU_HIGH_PRECISION_ANNOTATION_WITH_UPDATE_TAG" - The signal comes + // from date annotation representing update date of a page. + // "LSU_HIGH_PRECISION_PUBLICATION_MARKUP_SUPPORTED_BY_CONTENTAGE" - + // The signal comes from publication markup date supported by + // ContentAge. + // "LSU_HIGH_PRECISION_PUBLICATION_MARKUP_SUPPORTED_BY_ANNOTATION" - + // The signal comes from publication markup date supported by + // annotation. + // "LSU_HIGH_PRECISION_ANNOTATION_WITH_PATTERN_BYLINE_TAG" - The + // signal comes from date annotation often selected as a byline. + // "LSU_HIGH_PRECISION_RELIABLE_CONTENT_AGE_SUPPORTED_BY_ANNOTATION" - + // The signal comes from ContentAge that's supported by date annotation. // "LSU_MEDIUM_PRECISION_FRESH_SALIENT_ANNOTATION_LOW_SUPPORT" // "LSU_MEDIUM_PRECISION_FRESH_SALIENT_ANNOTATION_MEDIUM_SUPPORT" // "LSU_MEDIUM_PRECISION_FRESH_SALIENT_ANNOTATION_HIGH_SUPPORT" // "LSU_MEDIUM_PRECISION_FRESH_SALIENT_ANNOTATION_FULL_SUPPORT" + // "LSU_V1" - Legacy names. Do not use. These are kept around for ~2 + // months to ease transitions. + // "LSU_V2_UPDATE_MARKUP_SUPPORTED_BY_CONTENTAGE" + // "LSU_V2_UPDATE_MARKUP_SUPPORTED_BY_ANNOTATION" + // "LSU_V2_ANNOTATION_WITH_UPDATE_TAG" + // "LSU_V2_PUBLICATION_MARKUP_SUPPORTED_BY_CONTENTAGE" + // "LSU_V2_PUBLICATION_MARKUP_SUPPORTED_BY_ANNOTATION" + // "LSU_V2_ANNOTATION_WITH_PATTERN_BYLINE_TAG" + // "LSU_V2_RELIABLE_CONTENT_AGE_SUPPORTED_BY_ANNOTATION" Source string `json:"source,omitempty"` // ForceSendFields is a list of field names (e.g. "AdjustmentInfo") to @@ -111038,7 +111115,7 @@ type QualityTimebasedLastSignificantUpdateAdjustments struct { // UnboundedTimestampInSeconds: The timestamp that was picked up by the // component indicated in the LastSignificantUpdateSource but was - // dropped due to exceeding the upper bound. Set only if it's not equal + // dropped due to exceeding the upper bound. Set only if it is not equal // to final LSU. UnboundedTimestampInSeconds int64 `json:"unboundedTimestampInSeconds,omitempty,string"` @@ -111047,27 +111124,38 @@ type QualityTimebasedLastSignificantUpdateAdjustments struct { // // Possible values: // "UNSET" - // "LSU_V1" - The signal from legacy selector + // "LSU_LOW_PRECISION" - The signal from legacy selector // (quality/timebased/lastsignificantupdate/lsu-selector.h). It's a // fallback for clients relying on ~100% recall of the signal. - // "LSU_V2_UPDATE_MARKUP_SUPPORTED_BY_CONTENTAGE" - The signal comes - // from update markup date supported by ContentAge. - // "LSU_V2_UPDATE_MARKUP_SUPPORTED_BY_ANNOTATION" - The signal comes - // from update markup date supported by annotation. - // "LSU_V2_ANNOTATION_WITH_UPDATE_TAG" - The signal comes from date - // annotation representing update date of a page. - // "LSU_V2_PUBLICATION_MARKUP_SUPPORTED_BY_CONTENTAGE" - The signal - // comes from publication markup date supported by ContentAge. - // "LSU_V2_PUBLICATION_MARKUP_SUPPORTED_BY_ANNOTATION" - The signal - // comes from publication markup date supported by annotation. - // "LSU_V2_ANNOTATION_WITH_PATTERN_BYLINE_TAG" - The signal comes from - // date annotation often selected as a byline. - // "LSU_V2_RELIABLE_CONTENT_AGE_SUPPORTED_BY_ANNOTATION" - The signal - // comes from ContentAge that's supported by date annotation. + // "LSU_HIGH_PRECISION_UPDATE_MARKUP_SUPPORTED_BY_CONTENTAGE" - The + // signal comes from update markup date supported by ContentAge. + // "LSU_HIGH_PRECISION_UPDATE_MARKUP_SUPPORTED_BY_ANNOTATION" - The + // signal comes from update markup date supported by annotation. + // "LSU_HIGH_PRECISION_ANNOTATION_WITH_UPDATE_TAG" - The signal comes + // from date annotation representing update date of a page. + // "LSU_HIGH_PRECISION_PUBLICATION_MARKUP_SUPPORTED_BY_CONTENTAGE" - + // The signal comes from publication markup date supported by + // ContentAge. + // "LSU_HIGH_PRECISION_PUBLICATION_MARKUP_SUPPORTED_BY_ANNOTATION" - + // The signal comes from publication markup date supported by + // annotation. + // "LSU_HIGH_PRECISION_ANNOTATION_WITH_PATTERN_BYLINE_TAG" - The + // signal comes from date annotation often selected as a byline. + // "LSU_HIGH_PRECISION_RELIABLE_CONTENT_AGE_SUPPORTED_BY_ANNOTATION" - + // The signal comes from ContentAge that's supported by date annotation. // "LSU_MEDIUM_PRECISION_FRESH_SALIENT_ANNOTATION_LOW_SUPPORT" // "LSU_MEDIUM_PRECISION_FRESH_SALIENT_ANNOTATION_MEDIUM_SUPPORT" // "LSU_MEDIUM_PRECISION_FRESH_SALIENT_ANNOTATION_HIGH_SUPPORT" // "LSU_MEDIUM_PRECISION_FRESH_SALIENT_ANNOTATION_FULL_SUPPORT" + // "LSU_V1" - Legacy names. Do not use. These are kept around for ~2 + // months to ease transitions. + // "LSU_V2_UPDATE_MARKUP_SUPPORTED_BY_CONTENTAGE" + // "LSU_V2_UPDATE_MARKUP_SUPPORTED_BY_ANNOTATION" + // "LSU_V2_ANNOTATION_WITH_UPDATE_TAG" + // "LSU_V2_PUBLICATION_MARKUP_SUPPORTED_BY_CONTENTAGE" + // "LSU_V2_PUBLICATION_MARKUP_SUPPORTED_BY_ANNOTATION" + // "LSU_V2_ANNOTATION_WITH_PATTERN_BYLINE_TAG" + // "LSU_V2_RELIABLE_CONTENT_AGE_SUPPORTED_BY_ANNOTATION" UnboundedTimestampSource string `json:"unboundedTimestampSource,omitempty"` // UpperboundTimestampInSeconds: The upperbound value derived from @@ -112777,17 +112865,10 @@ func (s *RepositoryWebrefAnnotatedCategoryInfo) UnmarshalJSON(data []byte) error // RepositoryWebrefAnnotationDebugInfo: Debug info about the concept // annotations. Note that it might not be present in the output. type RepositoryWebrefAnnotationDebugInfo struct { + // Description: Only use for debugging, this should not be displayed to + // user or used for any kind of logic/processing. Description string `json:"description,omitempty"` - InfoString []string `json:"infoString,omitempty"` - - // RawClassification: Raw classification output from relevance - // classifier for classifier training and debugging. See - // http://go/entityclassifier for details on the classifier. - RawClassification *EntitySignalsEntityClassification `json:"rawClassification,omitempty"` - - Url string `json:"url,omitempty"` - // ForceSendFields is a list of field names (e.g. "Description") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -112934,6 +113015,7 @@ type RepositoryWebrefAnnotationStatsPerType struct { // "VIDEO_TRANSCRIPT" // "VIDEO_OCR" // "IMAGE_OCR" + // "LENS" // "ONLY_LOOKUP_METADATA" - Entries which are created in order to // instruct the fprint-loader to load metadata for the contained ngrams. // "EMBEDDED_CONTENT" - The embedded content in the document (e.g., @@ -113867,13 +113949,6 @@ func (s *RepositoryWebrefConceptNameMetadata) MarshalJSON() ([]byte, error) { // RepositoryWebrefDetailedEntityScores: Detailed scores about the // topicality of an entity. Next available tag: 16 type RepositoryWebrefDetailedEntityScores struct { - // AnchorScore: Additional info regarding how the score of an annotation - // was obtained. These will no longer be set once the feature - // `topic2_detailed_scores` is enabled (Q4 2017). - AnchorScore float64 `json:"anchorScore,omitempty"` - - BodyScore float64 `json:"bodyScore,omitempty"` - // Connectedness: Represents how much the entity is connected/related to // the other entities in the document. This signal partially influences // the topicality score, but it is not totally aligned with it: an @@ -113915,13 +113990,6 @@ type RepositoryWebrefDetailedEntityScores struct { // LocalEntityAnnotations::Instance::location_confidence. LocalEntityLocationConfidence float64 `json:"localEntityLocationConfidence,omitempty"` - NbScore float64 `json:"nbScore,omitempty"` - - // NewsTopicalityScore: DEPRECATED: this field is no longer set. As of - // early June 2018 it is referenced in hundreds of test files and is - // difficult to remove from the code base. - NewsTopicalityScore float64 `json:"newsTopicalityScore,omitempty"` - // NormalizedTopicality: Representation of the topicality score that is // normalized in [0, 1] and which sum over all entities in the document // is 1. It represents the "proportion" of the document that talks about @@ -113942,7 +114010,7 @@ type RepositoryWebrefDetailedEntityScores struct { // http://go/entityclassifier for details on the classifier. RelevanceScore float64 `json:"relevanceScore,omitempty"` - // ForceSendFields is a list of field names (e.g. "AnchorScore") to + // ForceSendFields is a list of field names (e.g. "Connectedness") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -113950,7 +114018,7 @@ type RepositoryWebrefDetailedEntityScores struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AnchorScore") to include + // NullFields is a list of field names (e.g. "Connectedness") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as @@ -113968,14 +114036,10 @@ func (s *RepositoryWebrefDetailedEntityScores) MarshalJSON() ([]byte, error) { func (s *RepositoryWebrefDetailedEntityScores) UnmarshalJSON(data []byte) error { type NoMethod RepositoryWebrefDetailedEntityScores var s1 struct { - AnchorScore gensupport.JSONFloat64 `json:"anchorScore"` - BodyScore gensupport.JSONFloat64 `json:"bodyScore"` Connectedness gensupport.JSONFloat64 `json:"connectedness"` DocScore gensupport.JSONFloat64 `json:"docScore"` GeoTopicNormalizedScore gensupport.JSONFloat64 `json:"geoTopicNormalizedScore"` LocalEntityLocationConfidence gensupport.JSONFloat64 `json:"localEntityLocationConfidence"` - NbScore gensupport.JSONFloat64 `json:"nbScore"` - NewsTopicalityScore gensupport.JSONFloat64 `json:"newsTopicalityScore"` NormalizedTopicality gensupport.JSONFloat64 `json:"normalizedTopicality"` RelevanceScore gensupport.JSONFloat64 `json:"relevanceScore"` *NoMethod @@ -113984,46 +114048,36 @@ func (s *RepositoryWebrefDetailedEntityScores) UnmarshalJSON(data []byte) error if err := json.Unmarshal(data, &s1); err != nil { return err } - s.AnchorScore = float64(s1.AnchorScore) - s.BodyScore = float64(s1.BodyScore) s.Connectedness = float64(s1.Connectedness) s.DocScore = float64(s1.DocScore) s.GeoTopicNormalizedScore = float64(s1.GeoTopicNormalizedScore) s.LocalEntityLocationConfidence = float64(s1.LocalEntityLocationConfidence) - s.NbScore = float64(s1.NbScore) - s.NewsTopicalityScore = float64(s1.NewsTopicalityScore) s.NormalizedTopicality = float64(s1.NormalizedTopicality) s.RelevanceScore = float64(s1.RelevanceScore) return nil } type RepositoryWebrefDetailedMentionScores struct { - PatternInfo []*RepositoryWebrefPatternInfo `json:"patternInfo,omitempty"` - - // PosteriorForLearning: How much confidence that a entity is annotated - // on a given name. NOTE: it's slightly different with normal annotation - // confidence. - PosteriorForLearning float64 `json:"posteriorForLearning,omitempty"` - // ResultEntityScore: How much support this mention received from the // results for PostRef. This is populated only if explicitly requested // and different from 0. ResultEntityScore float64 `json:"resultEntityScore,omitempty"` - // ForceSendFields is a list of field names (e.g. "PatternInfo") to - // unconditionally include in API requests. By default, fields with + // ForceSendFields is a list of field names (e.g. "ResultEntityScore") + // to unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "PatternInfo") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ResultEntityScore") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. NullFields []string `json:"-"` } @@ -114036,15 +114090,13 @@ func (s *RepositoryWebrefDetailedMentionScores) MarshalJSON() ([]byte, error) { func (s *RepositoryWebrefDetailedMentionScores) UnmarshalJSON(data []byte) error { type NoMethod RepositoryWebrefDetailedMentionScores var s1 struct { - PosteriorForLearning gensupport.JSONFloat64 `json:"posteriorForLearning"` - ResultEntityScore gensupport.JSONFloat64 `json:"resultEntityScore"` + ResultEntityScore gensupport.JSONFloat64 `json:"resultEntityScore"` *NoMethod } s1.NoMethod = (*NoMethod)(s) if err := json.Unmarshal(data, &s1); err != nil { return err } - s.PosteriorForLearning = float64(s1.PosteriorForLearning) s.ResultEntityScore = float64(s1.ResultEntityScore) return nil } @@ -115004,6 +115056,9 @@ func (s *RepositoryWebrefEntityNameRatings) MarshalJSON() ([]byte, error) { } type RepositoryWebrefEntityNameRatingsEntityNameRating struct { + // Comment: Comment left by the rater to justify the rating decision. + Comment string `json:"comment,omitempty"` + // Possible values: // "LABEL_UNSPECIFIED" // "LABEL_GOOD" @@ -115019,7 +115074,7 @@ type RepositoryWebrefEntityNameRatingsEntityNameRating struct { // raters. Source string `json:"source,omitempty"` - // ForceSendFields is a list of field names (e.g. "Label") to + // ForceSendFields is a list of field names (e.g. "Comment") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -115027,8 +115082,8 @@ type RepositoryWebrefEntityNameRatingsEntityNameRating struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Label") to include in API - // requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "Comment") to include in + // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. @@ -115826,6 +115881,7 @@ type RepositoryWebrefFprintModifierProto struct { // "VIDEO_TRANSCRIPT" // "VIDEO_OCR" // "IMAGE_OCR" + // "LENS" // "ONLY_LOOKUP_METADATA" - Entries which are created in order to // instruct the fprint-loader to load metadata for the contained ngrams. // "EMBEDDED_CONTENT" - The embedded content in the document (e.g., @@ -118060,57 +118116,6 @@ func (s *RepositoryWebrefOysterType) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -type RepositoryWebrefPatternInfo struct { - // MatchProbability: The confidence we can trust this pattern. - MatchProbability float64 `json:"matchProbability,omitempty"` - - // OtherSlotsMentioned: Whether other slots is mentioned in annotator. - // If they is no other slot, it is set to true. - OtherSlotsMentioned bool `json:"otherSlotsMentioned,omitempty"` - - // Pattern: The corresponding patterns matched on this candidate, which - // contains the pattern string and the slot number of the candidate in - // this pattern, such as [|/athletes|vs|/athletes|]_1. - Pattern string `json:"pattern,omitempty"` - - // ForceSendFields is a list of field names (e.g. "MatchProbability") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "MatchProbability") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. - NullFields []string `json:"-"` -} - -func (s *RepositoryWebrefPatternInfo) MarshalJSON() ([]byte, error) { - type NoMethod RepositoryWebrefPatternInfo - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -func (s *RepositoryWebrefPatternInfo) UnmarshalJSON(data []byte) error { - type NoMethod RepositoryWebrefPatternInfo - var s1 struct { - MatchProbability gensupport.JSONFloat64 `json:"matchProbability"` - *NoMethod - } - s1.NoMethod = (*NoMethod)(s) - if err := json.Unmarshal(data, &s1); err != nil { - return err - } - s.MatchProbability = float64(s1.MatchProbability) - return nil -} - // RepositoryWebrefPerDocRelevanceRating: Per document ratings relevance // ratings. Next id: 21. type RepositoryWebrefPerDocRelevanceRating struct { @@ -119169,6 +119174,8 @@ type RepositoryWebrefRefconMentionSpans struct { // "VIDEO_TRANSCRIPT" - The transcript of a video. // "VIDEO_OCR" - The ocr text of a video. // "IMAGE_OCR" - The ocr text of an image. + // "LENS" - Fake segment that contains all Lens entity mids in a given + // image. Segment []string `json:"segment,omitempty"` // ShortToken: Fingerprinted tokens which form the mention span. We are @@ -119479,6 +119486,8 @@ type RepositoryWebrefSegmentMention struct { // "VIDEO_TRANSCRIPT" - The transcript of a video. // "VIDEO_OCR" - The ocr text of a video. // "IMAGE_OCR" - The ocr text of an image. + // "LENS" - Fake segment that contains all Lens entity mids in a given + // image. SegmentType string `json:"segmentType,omitempty"` // ForceSendFields is a list of field names (e.g. "Mention") to @@ -119539,6 +119548,8 @@ type RepositoryWebrefSegmentMentions struct { // "VIDEO_TRANSCRIPT" - The transcript of a video. // "VIDEO_OCR" - The ocr text of a video. // "IMAGE_OCR" - The ocr text of an image. + // "LENS" - Fake segment that contains all Lens entity mids in a given + // image. SegmentType string `json:"segmentType,omitempty"` // ForceSendFields is a list of field names (e.g. "Mention") to @@ -123636,7 +123647,13 @@ type ResearchScienceSearchReconciledMetadata struct { IsBasedOn []string `json:"isBasedOn,omitempty"` // IsInferred: Indicates whether the metadata was inferred using an ML - // model rather than from the schema.org fields. + // model rather than from the schema.org fields. Use optional so that + // explicitly setting to false will ensure the value is passed along to + // the KG instead of being indistinguisable from being unset and thus + // not set in the KG. This field was originally non-optional; changing + // to optional is backwards compatible, but protos created prior to + // being optional won't have has_is_inferred() + // (go/proto-proposals/proto3-presence#wire-format-semantic-changes). IsInferred bool `json:"isInferred,omitempty"` // Keyword: Keywords describing the dataset. @@ -125391,11 +125408,6 @@ func (s *ScienceCitationUnionCatalog) MarshalJSON() ([]byte, error) { } type ScienceIndexSignal struct { - // HoldingsId: Subscriber Access feature: List of Holdings IDs - // associated with this document. Should be present only for the - // documents with 'VisiblePrefixTerms' being set. - HoldingsId googleapi.Uint64s `json:"HoldingsId,omitempty"` - // HtmlTitleFp: Fingerprint of the html title of the page. This is // useful for checking if we have the same version of the page as // websearch. @@ -125443,7 +125455,7 @@ type ScienceIndexSignal struct { Author []*ScienceIndexSignalAuthor `json:"author,omitempty"` - // ForceSendFields is a list of field names (e.g. "HoldingsId") to + // ForceSendFields is a list of field names (e.g. "HtmlTitleFp") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -125451,10 +125463,10 @@ type ScienceIndexSignal struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "HoldingsId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as + // NullFields is a list of field names (e.g. "HtmlTitleFp") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` @@ -129405,6 +129417,39 @@ func (s *SocialGraphApiProtoContactState) MarshalJSON() ([]byte, error) { type SocialGraphApiProtoDailyRecurrence struct { } +// SocialGraphApiProtoDecorationOverlay: Settings that control how a +// SIBS decoration overlay is displayed. +type SocialGraphApiProtoDecorationOverlay struct { + // Overlay: Settings that describe how the decoration should be overlaid + // on the photo. + Overlay *SocialGraphApiProtoPhotoOverlay `json:"overlay,omitempty"` + + // SibsId: SIBS ID of the decoration that is overlaid on the photo. + SibsId string `json:"sibsId,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Overlay") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Overlay") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *SocialGraphApiProtoDecorationOverlay) MarshalJSON() ([]byte, error) { + type NoMethod SocialGraphApiProtoDecorationOverlay + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // SocialGraphApiProtoDelegatedGroupId: Represents a delegated group id, // delegated groups refer to groups that are owned by another gaiaId, // but this user has access to. @@ -129497,6 +129542,37 @@ func (s *SocialGraphApiProtoHostAppInfo) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// SocialGraphApiProtoImageReference: A reference to a photo in either +// Photos Backend or SGI storage. This message should be treated as an +// opaque blob to avoid a dependency on a specific storage backend. +type SocialGraphApiProtoImageReference struct { + // MediaId: Unique identifier for the photo. For now, this will always + // be a Photos Backend media key. + MediaId string `json:"mediaId,omitempty"` + + // ForceSendFields is a list of field names (e.g. "MediaId") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "MediaId") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *SocialGraphApiProtoImageReference) MarshalJSON() ([]byte, error) { + type NoMethod SocialGraphApiProtoImageReference + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + type SocialGraphApiProtoLimitedProfileNameSettings struct { // PartialNameOptions: Required. Describes which shortening option the // user implicitly chose for their limited profile. E.g., if 'John Doe' @@ -130032,6 +130108,40 @@ func (s *SocialGraphApiProtoPartialNameOptionsTwoPartNameSpec) MarshalJSON() ([] return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// SocialGraphApiProtoPhotoOverlay: Settings that control how a photo +// overlay is displayed. +type SocialGraphApiProtoPhotoOverlay struct { + // RelativePosition: Top left position of the overlay relative to the + // user's avatar. + RelativePosition *SocialGraphApiProtoRelativePosition `json:"relativePosition,omitempty"` + + // RelativeScale: Scale of the overlay relative to the user's avatar. + RelativeScale *SocialGraphApiProtoRelativeScale `json:"relativeScale,omitempty"` + + // ForceSendFields is a list of field names (e.g. "RelativePosition") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "RelativePosition") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *SocialGraphApiProtoPhotoOverlay) MarshalJSON() ([]byte, error) { + type NoMethod SocialGraphApiProtoPhotoOverlay + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // SocialGraphApiProtoPrompt: Used in PeopleAPI layers + // FBS/ContactsService (not in ProfileService) type SocialGraphApiProtoPrompt struct { @@ -130376,6 +130486,98 @@ func (s *SocialGraphApiProtoRecurrence) MarshalJSON() ([]byte, error) { type SocialGraphApiProtoRecurrenceRepeatForever struct { } +// SocialGraphApiProtoRelativePosition: Position relative to the user's +// avatar. 0 = top/left, 1 = bottom/right. +type SocialGraphApiProtoRelativePosition struct { + X float64 `json:"x,omitempty"` + + Y float64 `json:"y,omitempty"` + + // ForceSendFields is a list of field names (e.g. "X") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "X") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *SocialGraphApiProtoRelativePosition) MarshalJSON() ([]byte, error) { + type NoMethod SocialGraphApiProtoRelativePosition + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *SocialGraphApiProtoRelativePosition) UnmarshalJSON(data []byte) error { + type NoMethod SocialGraphApiProtoRelativePosition + var s1 struct { + X gensupport.JSONFloat64 `json:"x"` + Y gensupport.JSONFloat64 `json:"y"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.X = float64(s1.X) + s.Y = float64(s1.Y) + return nil +} + +// SocialGraphApiProtoRelativeScale: Scale relative to the user's +// avatar. x and y range from 0 (exclusive) to 1 (inclusive). +type SocialGraphApiProtoRelativeScale struct { + X float64 `json:"x,omitempty"` + + Y float64 `json:"y,omitempty"` + + // ForceSendFields is a list of field names (e.g. "X") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "X") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *SocialGraphApiProtoRelativeScale) MarshalJSON() ([]byte, error) { + type NoMethod SocialGraphApiProtoRelativeScale + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *SocialGraphApiProtoRelativeScale) UnmarshalJSON(data []byte) error { + type NoMethod SocialGraphApiProtoRelativeScale + var s1 struct { + X gensupport.JSONFloat64 `json:"x"` + Y gensupport.JSONFloat64 `json:"y"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.X = float64(s1.X) + s.Y = float64(s1.Y) + return nil +} + // SocialGraphApiProtoSearchProfileData: Data contained in every search // profile. go/janata-profile-in-sgbe. type SocialGraphApiProtoSearchProfileData struct { @@ -137079,6 +137281,18 @@ type VendingConsumerProtoTrustedGenomeAnnotation struct { // level. // "GEARHEAD_TOOLTIP_COOLWALK_DASHBOARD_UNAVAILABLE" - Tooltip for // unavailable dashboard support for selected navigation app. + // "TIMESLICED_SAFE_SELF_UPDATE" - Test code used when /selfUpdate + // endpoint last returned self_update_mode = + // TIMESLICED_SAFE_SELF_UPDATE, indicating that a safe self-update + // should be attempted. + // "NORMAL_SELF_UPDATE" - Test code used when /selfUpdate endpoint + // last returned self_update_mode = NORMAL_SELF_UPDATE, indicating that + // either no self update is available or a normal self update should be + // performed. + // "SECOND_PASS_BROAD_INTENT_QUERY_EVENT_LEVEL" - Test code for second + // pass broad intent query event level. + // "SECOND_PASS_REWEIGHTING_TRIGGERED_EVENT_LEVEL" - Test code for + // second pass reweighting triggered event level. // "EVENT_LEVEL_TEST_CODE_LIMIT" // "RESERVED_4" // "RESERVED_5" @@ -137748,7 +137962,8 @@ type VendingConsumerProtoTrustedGenomeAnnotation struct { // // "SUBSCRIPTION_UPDATE_FOP_FOR_DCB_AS_PRIMARY_SUB_CENTER_SESSION_LEVEL" // - is dcb. Subscription update fop flow at sub center when the primary - // "RENEW_TASK_DELAYED_SUBSCRIPTION_TARGETED" - fop is dcb. + // "SUBS_PRICE_CHANGE_VERSION_TIME_CHECK_SESSION_LEVEL" - fop is dcb. + // "RENEW_TASK_DELAYED_SUBSCRIPTION_TARGETED" // "RENEW_TASK_DELAYED_SUBSCRIPTION_NOT_TARGETED" // "PRE_AUTH_TASK_DELAYED_SUBSCRIPTION_TARGETED" // "PRE_AUTH_TASK_DELAYED_SUBSCRIPTION_NOT_TARGETED" @@ -138343,6 +138558,14 @@ type VendingConsumerProtoTrustedGenomeAnnotation struct { // level. // "PLAY_BOOKS_READING_PROGRESS_TOOLTIP_SESSION_LEVEL" - Session level // test code for reading progress tooltip. + // "NAV_SEARCH_D2D_EMBEDDING_BOOST_SESSION_LEVEL" - Session level test + // code for Nav search d2d embedding boost. + // "HAS_NO_BACKUP_FOP_FOR_ORDER_SESSION_LEVEL" - Session level test + // code for orders that don’t have a backup fop. + // "SECOND_PASS_BROAD_INTENT_QUERY_SESSION_LEVEL" - Test code for + // second pass broad intent query session level. + // "SECOND_PASS_REWEIGHTING_TRIGGERED_SESSION_LEVEL" - Test code for + // second pass reweighting triggered session level. // "SESSION_LEVEL_TEST_CODE_LIMIT" // "SHOULD_SEE_LIVE_OP_CLUSTER_USER_LEVEL" - User should see the live // op cluster. @@ -138870,6 +139093,9 @@ type VendingConsumerProtoTrustedGenomeAnnotation struct { // // "SUBS_HIGH_CHURN_FOP_OPTIONS_AVAILABLE_WITHOUT_EXISTING_FOP_USER_LEVEL // " + // "SUBS_PRICE_CHANGE_VERSION_TIME_CHECK_USER_LEVEL" - User level test + // code that indicates users who go through time based check to + // determine if there's an eligible price change for this user. // "WIDE_MEDIA_CLUSTER_INVALID_VIDEO_ASSET_USER_LEVEL" - User level // test code logged when the wide media card has invalid video asset in // the asset agnostic 3x experiment. @@ -139471,6 +139697,7 @@ type VideoAssetsVenomTransition struct { // internal health tracking and *not* intended for clients. // "OBJECTIVE_SAM_FEATURES_DONE" - The set of features that Smart Auto // Midrolls depends on for generating midroll ad breaks. + // "OBJECTIVE_SPEECH_RECOGNITION_DONE" Objective string `json:"objective,omitempty"` // Outcome: Whether the objective is reached or not. REQUIRED. @@ -147266,10 +147493,13 @@ type VideoThumbnailsThumbnailScore struct { // watchnext. // "MODEL_RACY_WATCHPAGE_V4" - Racy watchpage model v4 // (go/racy-watchpage-v4). + // "MODEL_RACY_WATCHPAGE_RELEASE" - Racy watchpage release version. // "MODEL_RACY_SHORTS_WATCHPAGE_V1" - Racy shorts watchpage model v1. // "MODEL_RACY_SHORTS_WATCHPAGE_V1_FLAGGED" // "MODEL_RACY_SHORTS_WATCHPAGE_V2" - Racy shorts watchpage model v2. // "MODEL_RACY_SHORTS_WATCHPAGE_V2_FLAGGED" + // "MODEL_RACY_SHORTS_WATCHPAGE_RELEASE" - Racy shorts watchpage + // release version. // "MODEL_RACY_THUMB_2019_04_02" - Racy thumb model which corresponds // to https://mldash.corp.google.com/experiments/156747527161891342 // "MODEL_RACY_THUMB_2019_08_12" - Racy thumb model V3 based on @@ -147294,6 +147524,7 @@ type VideoThumbnailsThumbnailScore struct { // after calibration. // "MODEL_RACY_THUMB_2019_08_12_FLAGGED" - Flagged racy watchpage // model using racy thumbnail V3 score. + // "MODEL_RACY_THUMB_RELEASE" - Racy thumbnail release version. // "MODEL_QUALITY_2019_09_24" - Quality thumb model V2 trained using // search page quality ratings. // "MODEL_QUALITY_2019_11_11" @@ -156074,6 +156305,149 @@ func (c *ProjectsLocationsInitializeCall) Do(opts ...googleapi.CallOption) (*Goo } +// method id "contentwarehouse.projects.locations.runPipeline": + +type ProjectsLocationsRunPipelineCall struct { + s *Service + name string + googlecloudcontentwarehousev1runpipelinerequest *GoogleCloudContentwarehouseV1RunPipelineRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// RunPipeline: Run a predefined pipeline. +// +// - name: The resource name which owns the resources of the pipeline. +// Format: projects/{project_number}/locations/{location}. +func (r *ProjectsLocationsService) RunPipeline(name string, googlecloudcontentwarehousev1runpipelinerequest *GoogleCloudContentwarehouseV1RunPipelineRequest) *ProjectsLocationsRunPipelineCall { + c := &ProjectsLocationsRunPipelineCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudcontentwarehousev1runpipelinerequest = googlecloudcontentwarehousev1runpipelinerequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsRunPipelineCall) Fields(s ...googleapi.Field) *ProjectsLocationsRunPipelineCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsRunPipelineCall) Context(ctx context.Context) *ProjectsLocationsRunPipelineCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsRunPipelineCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRunPipelineCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudcontentwarehousev1runpipelinerequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:runPipeline") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "contentwarehouse.projects.locations.runPipeline" call. +// Exactly one of *GoogleLongrunningOperation or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsRunPipelineCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleLongrunningOperation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Run a predefined pipeline.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}:runPipeline", + // "httpMethod": "POST", + // "id": "contentwarehouse.projects.locations.runPipeline", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The resource name which owns the resources of the pipeline. Format: projects/{project_number}/locations/{location}.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}:runPipeline", + // "request": { + // "$ref": "GoogleCloudContentwarehouseV1RunPipelineRequest" + // }, + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "contentwarehouse.projects.locations.documentSchemas.create": type ProjectsLocationsDocumentSchemasCreateCall struct { diff --git a/documentai/v1/documentai-api.json b/documentai/v1/documentai-api.json index 8bafc3bdb19..72e1e3daf76 100644 --- a/documentai/v1/documentai-api.json +++ b/documentai/v1/documentai-api.json @@ -1042,7 +1042,7 @@ } } }, - "revision": "20230117", + "revision": "20230120", "rootUrl": "https://documentai.googleapis.com/", "schemas": { "GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadata": { @@ -1219,17 +1219,6 @@ }, "type": "object" }, - "GoogleCloudDocumentaiUiv1beta3DeleteDataLabelingJobOperationMetadata": { - "description": "The long running operation metadata for DeleteDataLabelingJob.", - "id": "GoogleCloudDocumentaiUiv1beta3DeleteDataLabelingJobOperationMetadata", - "properties": { - "commonMetadata": { - "$ref": "GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata", - "description": "The basic metadata of the long running operation." - } - }, - "type": "object" - }, "GoogleCloudDocumentaiUiv1beta3DeleteLabelerPoolOperationMetadata": { "description": "The long running operation metadata for DeleteLabelerPool.", "id": "GoogleCloudDocumentaiUiv1beta3DeleteLabelerPoolOperationMetadata", @@ -1539,6 +1528,28 @@ "properties": {}, "type": "object" }, + "GoogleCloudDocumentaiUiv1beta3ImportProcessorVersionMetadata": { + "description": "The long running operation metadata for the ImportProcessorVersion method.", + "id": "GoogleCloudDocumentaiUiv1beta3ImportProcessorVersionMetadata", + "properties": { + "commonMetadata": { + "$ref": "GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata", + "description": "The basic metadata for the long running operation." + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiUiv1beta3ImportProcessorVersionResponse": { + "description": "The response message for the ImportProcessorVersion method.", + "id": "GoogleCloudDocumentaiUiv1beta3ImportProcessorVersionResponse", + "properties": { + "processorVersion": { + "description": "The destination processor version name.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadata": { "description": "The metadata proto of ResyncDataset method.", "id": "GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadata", @@ -1641,7 +1652,7 @@ "BASE_OCR_REVISION" ], "enumDescriptions": [ - "Unspecified case, fallback to read the first (OCR) revision.", + "Unspecified case, fallback to read the LATEST_HUMAN_REVIEW.", "The latest revision made by a human.", "The latest revision based on timestamp.", "The first (OCR) revision." @@ -1671,7 +1682,7 @@ "LATEST_TIMESTAMP" ], "enumDescriptions": [ - "Unspecified case, fallback to read the first (OCR) revision.", + "Unspecified case, fallback to read the LATEST_HUMAN_REVIEW.", "The latest revision made by a human.", "The latest revision based on timestamp." ], diff --git a/documentai/v1/documentai-gen.go b/documentai/v1/documentai-gen.go index 3c8063699bb..24c52cbedba 100644 --- a/documentai/v1/documentai-gen.go +++ b/documentai/v1/documentai-gen.go @@ -501,36 +501,6 @@ func (s *GoogleCloudDocumentaiUiv1beta3CreateLabelerPoolOperationMetadata) Marsh return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudDocumentaiUiv1beta3DeleteDataLabelingJobOperationMetadata: -// The long running operation metadata for DeleteDataLabelingJob. -type GoogleCloudDocumentaiUiv1beta3DeleteDataLabelingJobOperationMetadata struct { - // CommonMetadata: The basic metadata of the long running operation. - CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"` - - // ForceSendFields is a list of field names (e.g. "CommonMetadata") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CommonMetadata") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudDocumentaiUiv1beta3DeleteDataLabelingJobOperationMetadata) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDocumentaiUiv1beta3DeleteDataLabelingJobOperationMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // GoogleCloudDocumentaiUiv1beta3DeleteLabelerPoolOperationMetadata: The // long running operation metadata for DeleteLabelerPool. type GoogleCloudDocumentaiUiv1beta3DeleteLabelerPoolOperationMetadata struct { @@ -1156,6 +1126,67 @@ func (s *GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataIndividualImportSt type GoogleCloudDocumentaiUiv1beta3ImportDocumentsResponse struct { } +// GoogleCloudDocumentaiUiv1beta3ImportProcessorVersionMetadata: The +// long running operation metadata for the ImportProcessorVersion +// method. +type GoogleCloudDocumentaiUiv1beta3ImportProcessorVersionMetadata struct { + // CommonMetadata: The basic metadata for the long running operation. + CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CommonMetadata") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CommonMetadata") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDocumentaiUiv1beta3ImportProcessorVersionMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDocumentaiUiv1beta3ImportProcessorVersionMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDocumentaiUiv1beta3ImportProcessorVersionResponse: The +// response message for the ImportProcessorVersion method. +type GoogleCloudDocumentaiUiv1beta3ImportProcessorVersionResponse struct { + // ProcessorVersion: The destination processor version name. + ProcessorVersion string `json:"processorVersion,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ProcessorVersion") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ProcessorVersion") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDocumentaiUiv1beta3ImportProcessorVersionResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDocumentaiUiv1beta3ImportProcessorVersionResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadata: The metadata // proto of ResyncDataset method. type GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadata struct { @@ -1303,7 +1334,7 @@ type GoogleCloudDocumentaiUiv1beta3RevisionRef struct { // // Possible values: // "REVISION_CASE_UNSPECIFIED" - Unspecified case, fallback to read - // the first (OCR) revision. + // the LATEST_HUMAN_REVIEW. // "LATEST_HUMAN_REVIEW" - The latest revision made by a human. // "LATEST_TIMESTAMP" - The latest revision based on timestamp. // "BASE_OCR_REVISION" - The first (OCR) revision. @@ -1348,7 +1379,7 @@ type GoogleCloudDocumentaiUiv1beta3RevisionReference struct { // // Possible values: // "REVISION_CASE_UNSPECIFIED" - Unspecified case, fallback to read - // the first (OCR) revision. + // the LATEST_HUMAN_REVIEW. // "LATEST_HUMAN_REVIEW" - The latest revision made by a human. // "LATEST_TIMESTAMP" - The latest revision based on timestamp. RevisionCase string `json:"revisionCase,omitempty"` diff --git a/documentai/v1beta2/documentai-api.json b/documentai/v1beta2/documentai-api.json index c716f9b4802..0365a24ae01 100644 --- a/documentai/v1beta2/documentai-api.json +++ b/documentai/v1beta2/documentai-api.json @@ -292,7 +292,7 @@ } } }, - "revision": "20230117", + "revision": "20230120", "rootUrl": "https://documentai.googleapis.com/", "schemas": { "GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadata": { @@ -469,17 +469,6 @@ }, "type": "object" }, - "GoogleCloudDocumentaiUiv1beta3DeleteDataLabelingJobOperationMetadata": { - "description": "The long running operation metadata for DeleteDataLabelingJob.", - "id": "GoogleCloudDocumentaiUiv1beta3DeleteDataLabelingJobOperationMetadata", - "properties": { - "commonMetadata": { - "$ref": "GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata", - "description": "The basic metadata of the long running operation." - } - }, - "type": "object" - }, "GoogleCloudDocumentaiUiv1beta3DeleteLabelerPoolOperationMetadata": { "description": "The long running operation metadata for DeleteLabelerPool.", "id": "GoogleCloudDocumentaiUiv1beta3DeleteLabelerPoolOperationMetadata", @@ -789,6 +778,28 @@ "properties": {}, "type": "object" }, + "GoogleCloudDocumentaiUiv1beta3ImportProcessorVersionMetadata": { + "description": "The long running operation metadata for the ImportProcessorVersion method.", + "id": "GoogleCloudDocumentaiUiv1beta3ImportProcessorVersionMetadata", + "properties": { + "commonMetadata": { + "$ref": "GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata", + "description": "The basic metadata for the long running operation." + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiUiv1beta3ImportProcessorVersionResponse": { + "description": "The response message for the ImportProcessorVersion method.", + "id": "GoogleCloudDocumentaiUiv1beta3ImportProcessorVersionResponse", + "properties": { + "processorVersion": { + "description": "The destination processor version name.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadata": { "description": "The metadata proto of ResyncDataset method.", "id": "GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadata", @@ -891,7 +902,7 @@ "BASE_OCR_REVISION" ], "enumDescriptions": [ - "Unspecified case, fallback to read the first (OCR) revision.", + "Unspecified case, fallback to read the LATEST_HUMAN_REVIEW.", "The latest revision made by a human.", "The latest revision based on timestamp.", "The first (OCR) revision." @@ -921,7 +932,7 @@ "LATEST_TIMESTAMP" ], "enumDescriptions": [ - "Unspecified case, fallback to read the first (OCR) revision.", + "Unspecified case, fallback to read the LATEST_HUMAN_REVIEW.", "The latest revision made by a human.", "The latest revision based on timestamp." ], diff --git a/documentai/v1beta2/documentai-gen.go b/documentai/v1beta2/documentai-gen.go index a369b98a066..b185623b3ef 100644 --- a/documentai/v1beta2/documentai-gen.go +++ b/documentai/v1beta2/documentai-gen.go @@ -453,36 +453,6 @@ func (s *GoogleCloudDocumentaiUiv1beta3CreateLabelerPoolOperationMetadata) Marsh return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudDocumentaiUiv1beta3DeleteDataLabelingJobOperationMetadata: -// The long running operation metadata for DeleteDataLabelingJob. -type GoogleCloudDocumentaiUiv1beta3DeleteDataLabelingJobOperationMetadata struct { - // CommonMetadata: The basic metadata of the long running operation. - CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"` - - // ForceSendFields is a list of field names (e.g. "CommonMetadata") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CommonMetadata") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudDocumentaiUiv1beta3DeleteDataLabelingJobOperationMetadata) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDocumentaiUiv1beta3DeleteDataLabelingJobOperationMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // GoogleCloudDocumentaiUiv1beta3DeleteLabelerPoolOperationMetadata: The // long running operation metadata for DeleteLabelerPool. type GoogleCloudDocumentaiUiv1beta3DeleteLabelerPoolOperationMetadata struct { @@ -1108,6 +1078,67 @@ func (s *GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataIndividualImportSt type GoogleCloudDocumentaiUiv1beta3ImportDocumentsResponse struct { } +// GoogleCloudDocumentaiUiv1beta3ImportProcessorVersionMetadata: The +// long running operation metadata for the ImportProcessorVersion +// method. +type GoogleCloudDocumentaiUiv1beta3ImportProcessorVersionMetadata struct { + // CommonMetadata: The basic metadata for the long running operation. + CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CommonMetadata") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CommonMetadata") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDocumentaiUiv1beta3ImportProcessorVersionMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDocumentaiUiv1beta3ImportProcessorVersionMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDocumentaiUiv1beta3ImportProcessorVersionResponse: The +// response message for the ImportProcessorVersion method. +type GoogleCloudDocumentaiUiv1beta3ImportProcessorVersionResponse struct { + // ProcessorVersion: The destination processor version name. + ProcessorVersion string `json:"processorVersion,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ProcessorVersion") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ProcessorVersion") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDocumentaiUiv1beta3ImportProcessorVersionResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDocumentaiUiv1beta3ImportProcessorVersionResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadata: The metadata // proto of ResyncDataset method. type GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadata struct { @@ -1255,7 +1286,7 @@ type GoogleCloudDocumentaiUiv1beta3RevisionRef struct { // // Possible values: // "REVISION_CASE_UNSPECIFIED" - Unspecified case, fallback to read - // the first (OCR) revision. + // the LATEST_HUMAN_REVIEW. // "LATEST_HUMAN_REVIEW" - The latest revision made by a human. // "LATEST_TIMESTAMP" - The latest revision based on timestamp. // "BASE_OCR_REVISION" - The first (OCR) revision. @@ -1300,7 +1331,7 @@ type GoogleCloudDocumentaiUiv1beta3RevisionReference struct { // // Possible values: // "REVISION_CASE_UNSPECIFIED" - Unspecified case, fallback to read - // the first (OCR) revision. + // the LATEST_HUMAN_REVIEW. // "LATEST_HUMAN_REVIEW" - The latest revision made by a human. // "LATEST_TIMESTAMP" - The latest revision based on timestamp. RevisionCase string `json:"revisionCase,omitempty"` diff --git a/documentai/v1beta3/documentai-api.json b/documentai/v1beta3/documentai-api.json index dd15f4d301a..18ac8e47977 100644 --- a/documentai/v1beta3/documentai-api.json +++ b/documentai/v1beta3/documentai-api.json @@ -984,7 +984,7 @@ } } }, - "revision": "20230117", + "revision": "20230120", "rootUrl": "https://documentai.googleapis.com/", "schemas": { "GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadata": { @@ -1161,17 +1161,6 @@ }, "type": "object" }, - "GoogleCloudDocumentaiUiv1beta3DeleteDataLabelingJobOperationMetadata": { - "description": "The long running operation metadata for DeleteDataLabelingJob.", - "id": "GoogleCloudDocumentaiUiv1beta3DeleteDataLabelingJobOperationMetadata", - "properties": { - "commonMetadata": { - "$ref": "GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata", - "description": "The basic metadata of the long running operation." - } - }, - "type": "object" - }, "GoogleCloudDocumentaiUiv1beta3DeleteLabelerPoolOperationMetadata": { "description": "The long running operation metadata for DeleteLabelerPool.", "id": "GoogleCloudDocumentaiUiv1beta3DeleteLabelerPoolOperationMetadata", @@ -1481,6 +1470,28 @@ "properties": {}, "type": "object" }, + "GoogleCloudDocumentaiUiv1beta3ImportProcessorVersionMetadata": { + "description": "The long running operation metadata for the ImportProcessorVersion method.", + "id": "GoogleCloudDocumentaiUiv1beta3ImportProcessorVersionMetadata", + "properties": { + "commonMetadata": { + "$ref": "GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata", + "description": "The basic metadata for the long running operation." + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiUiv1beta3ImportProcessorVersionResponse": { + "description": "The response message for the ImportProcessorVersion method.", + "id": "GoogleCloudDocumentaiUiv1beta3ImportProcessorVersionResponse", + "properties": { + "processorVersion": { + "description": "The destination processor version name.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadata": { "description": "The metadata proto of ResyncDataset method.", "id": "GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadata", @@ -1583,7 +1594,7 @@ "BASE_OCR_REVISION" ], "enumDescriptions": [ - "Unspecified case, fallback to read the first (OCR) revision.", + "Unspecified case, fallback to read the LATEST_HUMAN_REVIEW.", "The latest revision made by a human.", "The latest revision based on timestamp.", "The first (OCR) revision." @@ -1613,7 +1624,7 @@ "LATEST_TIMESTAMP" ], "enumDescriptions": [ - "Unspecified case, fallback to read the first (OCR) revision.", + "Unspecified case, fallback to read the LATEST_HUMAN_REVIEW.", "The latest revision made by a human.", "The latest revision based on timestamp." ], diff --git a/documentai/v1beta3/documentai-gen.go b/documentai/v1beta3/documentai-gen.go index ebe0b8a1e12..db0123de080 100644 --- a/documentai/v1beta3/documentai-gen.go +++ b/documentai/v1beta3/documentai-gen.go @@ -477,36 +477,6 @@ func (s *GoogleCloudDocumentaiUiv1beta3CreateLabelerPoolOperationMetadata) Marsh return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudDocumentaiUiv1beta3DeleteDataLabelingJobOperationMetadata: -// The long running operation metadata for DeleteDataLabelingJob. -type GoogleCloudDocumentaiUiv1beta3DeleteDataLabelingJobOperationMetadata struct { - // CommonMetadata: The basic metadata of the long running operation. - CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"` - - // ForceSendFields is a list of field names (e.g. "CommonMetadata") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CommonMetadata") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudDocumentaiUiv1beta3DeleteDataLabelingJobOperationMetadata) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDocumentaiUiv1beta3DeleteDataLabelingJobOperationMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // GoogleCloudDocumentaiUiv1beta3DeleteLabelerPoolOperationMetadata: The // long running operation metadata for DeleteLabelerPool. type GoogleCloudDocumentaiUiv1beta3DeleteLabelerPoolOperationMetadata struct { @@ -1132,6 +1102,67 @@ func (s *GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataIndividualImportSt type GoogleCloudDocumentaiUiv1beta3ImportDocumentsResponse struct { } +// GoogleCloudDocumentaiUiv1beta3ImportProcessorVersionMetadata: The +// long running operation metadata for the ImportProcessorVersion +// method. +type GoogleCloudDocumentaiUiv1beta3ImportProcessorVersionMetadata struct { + // CommonMetadata: The basic metadata for the long running operation. + CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CommonMetadata") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CommonMetadata") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDocumentaiUiv1beta3ImportProcessorVersionMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDocumentaiUiv1beta3ImportProcessorVersionMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDocumentaiUiv1beta3ImportProcessorVersionResponse: The +// response message for the ImportProcessorVersion method. +type GoogleCloudDocumentaiUiv1beta3ImportProcessorVersionResponse struct { + // ProcessorVersion: The destination processor version name. + ProcessorVersion string `json:"processorVersion,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ProcessorVersion") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ProcessorVersion") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDocumentaiUiv1beta3ImportProcessorVersionResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDocumentaiUiv1beta3ImportProcessorVersionResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadata: The metadata // proto of ResyncDataset method. type GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadata struct { @@ -1279,7 +1310,7 @@ type GoogleCloudDocumentaiUiv1beta3RevisionRef struct { // // Possible values: // "REVISION_CASE_UNSPECIFIED" - Unspecified case, fallback to read - // the first (OCR) revision. + // the LATEST_HUMAN_REVIEW. // "LATEST_HUMAN_REVIEW" - The latest revision made by a human. // "LATEST_TIMESTAMP" - The latest revision based on timestamp. // "BASE_OCR_REVISION" - The first (OCR) revision. @@ -1324,7 +1355,7 @@ type GoogleCloudDocumentaiUiv1beta3RevisionReference struct { // // Possible values: // "REVISION_CASE_UNSPECIFIED" - Unspecified case, fallback to read - // the first (OCR) revision. + // the LATEST_HUMAN_REVIEW. // "LATEST_HUMAN_REVIEW" - The latest revision made by a human. // "LATEST_TIMESTAMP" - The latest revision based on timestamp. RevisionCase string `json:"revisionCase,omitempty"` diff --git a/integrations/v1alpha/integrations-api.json b/integrations/v1alpha/integrations-api.json index 357bab7e258..623f04097f2 100644 --- a/integrations/v1alpha/integrations-api.json +++ b/integrations/v1alpha/integrations-api.json @@ -663,6 +663,31 @@ }, "integrations": { "methods": { + "delete": { + "description": "Delete the selected integration and all versions inside", + "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}", + "httpMethod": "DELETE", + "id": "integrations.projects.locations.integrations.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The location resource of the request.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+name}", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "execute": { "description": "Executes integrations synchronously by passing the trigger id in the request body. The request is not returned until the requested executions are either fulfilled or experienced an error. If the integration name is not specified (passing `-`), all of the associated integration under the given trigger_id will be executed. Otherwise only the specified integration for the given `trigger_id` is executed. This is helpful for execution the integration from UI.", "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}:execute", @@ -1096,6 +1121,71 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "delete": { + "description": "Soft-deletes the integration. Changes the status of the integration to ARCHIVED. If the integration being ARCHIVED is tagged as \"HEAD\", the tag is removed from this snapshot and set to the previous non-ARCHIVED snapshot. The PUBLISH_REQUESTED, DUE_FOR_DELETION tags are removed too. This RPC throws an exception if the version being deleted is DRAFT, and if the `locked_by` user is not the same as the user performing the Delete. Audit fields updated include last_modified_timestamp, last_modified_by. Any existing lock is released when Deleting a integration. Currently, there is no undelete mechanism.", + "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}/versions/{versionsId}", + "httpMethod": "DELETE", + "id": "integrations.projects.locations.integrations.versions.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The version to delete. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+/versions/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+name}", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "download": { + "description": "Downloads an integration. Retrieves the `IntegrationVersion` for a given `integration_id` and returns the response as a string.", + "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}/versions/{versionsId}:download", + "httpMethod": "GET", + "id": "integrations.projects.locations.integrations.versions.download", + "parameterOrder": [ + "name" + ], + "parameters": { + "fileFormat": { + "description": "File format for download request.", + "enum": [ + "FILE_FORMAT_UNSPECIFIED", + "JSON", + "YAML" + ], + "enumDescriptions": [ + "Unspecified file format", + "JSON File Format", + "YAML File Format" + ], + "location": "query", + "type": "string" + }, + "name": { + "description": "Required. The version to download. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+/versions/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+name}:download", + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaDownloadIntegrationVersionResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "get": { "description": "Get a integration in the specified project.", "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}/versions/{versionsId}", @@ -1263,6 +1353,62 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "unpublish": { + "description": "Sets the status of the ACTIVE integration to SNAPSHOT with a new tag \"PREVIOUSLY_PUBLISHED\" after validating it. The \"HEAD\" and \"PUBLISH_REQUESTED\" tags do not change. This RPC throws an exception if the version being snapshot is not ACTIVE. Audit fields added include action, action_by, action_timestamp.", + "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}/versions/{versionsId}:unpublish", + "httpMethod": "POST", + "id": "integrations.projects.locations.integrations.versions.unpublish", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The version to deactivate. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+/versions/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+name}:unpublish", + "request": { + "$ref": "GoogleCloudIntegrationsV1alphaUnpublishIntegrationVersionRequest" + }, + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "upload": { + "description": "Uploads an integration. The content can be a previously downloaded integration. Performs the same function as CreateDraftIntegrationVersion, but accepts input in a string format, which holds the complete representation of the IntegrationVersion content.", + "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}/versions:upload", + "httpMethod": "POST", + "id": "integrations.projects.locations.integrations.versions.upload", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The version to upload. Format: projects/{project}/locations/{location}/integrations/{integration}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+parent}/versions:upload", + "request": { + "$ref": "GoogleCloudIntegrationsV1alphaUploadIntegrationVersionRequest" + }, + "response": { + "$ref": "GoogleCloudIntegrationsV1alphaUploadIntegrationVersionResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "validate": { "description": "Validates the given integration. If the id doesn't exist, a NotFoundException is thrown. If validation fails a CanonicalCodeException is thrown. If there was no failure an empty response is returned.", "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}/versions/{versionsId}:validate", @@ -2275,6 +2421,31 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "delete": { + "description": "Soft-deletes the integration. Changes the status of the integration to ARCHIVED. If the integration being ARCHIVED is tagged as \"HEAD\", the tag is removed from this snapshot and set to the previous non-ARCHIVED snapshot. The PUBLISH_REQUESTED, DUE_FOR_DELETION tags are removed too. This RPC throws an exception if the version being deleted is DRAFT, and if the `locked_by` user is not the same as the user performing the Delete. Audit fields updated include last_modified_timestamp, last_modified_by. Any existing lock is released when Deleting a integration. Currently, there is no undelete mechanism.", + "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/versions/{versionsId}", + "httpMethod": "DELETE", + "id": "integrations.projects.locations.products.integrations.versions.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The version to delete. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/versions/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+name}", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "download": { "description": "Downloads an integration. Retrieves the `IntegrationVersion` for a given `integration_id` and returns the response as a string.", "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/versions/{versionsId}:download", @@ -2507,6 +2678,34 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "unpublish": { + "description": "Sets the status of the ACTIVE integration to SNAPSHOT with a new tag \"PREVIOUSLY_PUBLISHED\" after validating it. The \"HEAD\" and \"PUBLISH_REQUESTED\" tags do not change. This RPC throws an exception if the version being snapshot is not ACTIVE. Audit fields added include action, action_by, action_timestamp.", + "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/versions/{versionsId}:unpublish", + "httpMethod": "POST", + "id": "integrations.projects.locations.products.integrations.versions.unpublish", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The version to deactivate. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/versions/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+name}:unpublish", + "request": { + "$ref": "GoogleCloudIntegrationsV1alphaUnpublishIntegrationVersionRequest" + }, + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "updateBundle": { "description": "THIS METHOD WILL BE MOVED TO A SEPARATE SERVICE. RPC to update the Bundle", "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/versions/{versionsId}:updateBundle", @@ -3360,7 +3559,7 @@ } } }, - "revision": "20230110", + "revision": "20230117", "rootUrl": "https://integrations.googleapis.com/", "schemas": { "CrmlogErrorCode": { @@ -7175,7 +7374,7 @@ "type": "object" }, "EnterpriseCrmFrontendsEventbusProtoTaskConfig": { - "description": "The task configuration details. This is not the implementation of Task. There might be multiple TaskConfigs for the same Task. Next available id: 27", + "description": "The task configuration details. This is not the implementation of Task. There might be multiple TaskConfigs for the same Task.", "id": "EnterpriseCrmFrontendsEventbusProtoTaskConfig", "properties": { "alertConfigs": { @@ -7317,7 +7516,7 @@ "type": "string" }, "taskSpec": { - "description": "A string template that allows user to configure task parameters (with either literal default values or tokens which will be resolved at execution time) for the task. It will eventually replace the old \"parameters\" field. Please refer to go/eventbus-task-spec-example for detailed usage example.", + "description": "A string template that allows user to configure task parameters (with either literal default values or tokens which will be resolved at execution time) for the task. It will eventually replace the old \"parameters\" field.", "type": "string" }, "taskTemplateName": { @@ -10832,6 +11031,12 @@ }, "type": "object" }, + "GoogleCloudIntegrationsV1alphaUnpublishIntegrationVersionRequest": { + "description": "Request for UnpublishIntegrationVersion.", + "id": "GoogleCloudIntegrationsV1alphaUnpublishIntegrationVersionRequest", + "properties": {}, + "type": "object" + }, "GoogleCloudIntegrationsV1alphaUpdateBundleRequest": { "description": "THIS METHOD WILL BE MOVED TO A SEPARATE SERVICE. Request message for Bundle update", "id": "GoogleCloudIntegrationsV1alphaUpdateBundleRequest", diff --git a/integrations/v1alpha/integrations-gen.go b/integrations/v1alpha/integrations-gen.go index d432da0b315..31a561f767c 100644 --- a/integrations/v1alpha/integrations-gen.go +++ b/integrations/v1alpha/integrations-gen.go @@ -5552,7 +5552,7 @@ func (s *EnterpriseCrmFrontendsEventbusProtoStringParameterArray) MarshalJSON() // EnterpriseCrmFrontendsEventbusProtoTaskConfig: The task configuration // details. This is not the implementation of Task. There might be -// multiple TaskConfigs for the same Task. Next available id: 27 +// multiple TaskConfigs for the same Task. type EnterpriseCrmFrontendsEventbusProtoTaskConfig struct { // AlertConfigs: Alert configurations on error rate, warning rate, // number of runs, durations, etc. @@ -5693,8 +5693,7 @@ type EnterpriseCrmFrontendsEventbusProtoTaskConfig struct { // TaskSpec: A string template that allows user to configure task // parameters (with either literal default values or tokens which will // be resolved at execution time) for the task. It will eventually - // replace the old "parameters" field. Please refer to - // go/eventbus-task-spec-example for detailed usage example. + // replace the old "parameters" field. TaskSpec string `json:"taskSpec,omitempty"` // TaskTemplateName: Used to define task-template name if task is of @@ -10782,6 +10781,11 @@ func (s *GoogleCloudIntegrationsV1alphaTriggerConfig) MarshalJSON() ([]byte, err return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudIntegrationsV1alphaUnpublishIntegrationVersionRequest: +// Request for UnpublishIntegrationVersion. +type GoogleCloudIntegrationsV1alphaUnpublishIntegrationVersionRequest struct { +} + // GoogleCloudIntegrationsV1alphaUpdateBundleRequest: THIS METHOD WILL // BE MOVED TO A SEPARATE SERVICE. Request message for Bundle update type GoogleCloudIntegrationsV1alphaUpdateBundleRequest struct { @@ -13802,6 +13806,138 @@ func (c *ProjectsLocationsConnectionsRuntimeEntitySchemasListCall) Pages(ctx con } } +// method id "integrations.projects.locations.integrations.delete": + +type ProjectsLocationsIntegrationsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Delete the selected integration and all versions inside +// +// - name: The location resource of the request. +func (r *ProjectsLocationsIntegrationsService) Delete(name string) *ProjectsLocationsIntegrationsDeleteCall { + c := &ProjectsLocationsIntegrationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsIntegrationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsIntegrationsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsIntegrationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsIntegrationsDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsIntegrationsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsIntegrationsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.integrations.delete" call. +// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsIntegrationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleProtobufEmpty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Delete the selected integration and all versions inside", + // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}", + // "httpMethod": "DELETE", + // "id": "integrations.projects.locations.integrations.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The location resource of the request.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1alpha/{+name}", + // "response": { + // "$ref": "GoogleProtobufEmpty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "integrations.projects.locations.integrations.execute": type ProjectsLocationsIntegrationsExecuteCall struct { @@ -15741,24 +15877,32 @@ func (c *ProjectsLocationsIntegrationsVersionsDeactivateCall) Do(opts ...googlea } -// method id "integrations.projects.locations.integrations.versions.get": +// method id "integrations.projects.locations.integrations.versions.delete": -type ProjectsLocationsIntegrationsVersionsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsIntegrationsVersionsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Get: Get a integration in the specified project. +// Delete: Soft-deletes the integration. Changes the status of the +// integration to ARCHIVED. If the integration being ARCHIVED is tagged +// as "HEAD", the tag is removed from this snapshot and set to the +// previous non-ARCHIVED snapshot. The PUBLISH_REQUESTED, +// DUE_FOR_DELETION tags are removed too. This RPC throws an exception +// if the version being deleted is DRAFT, and if the `locked_by` user is +// not the same as the user performing the Delete. Audit fields updated +// include last_modified_timestamp, last_modified_by. Any existing lock +// is released when Deleting a integration. Currently, there is no +// undelete mechanism. // -// - name: The version to retrieve. Format: +// - name: The version to delete. Format: // projects/{project}/locations/{location}/integrations/{integration}/v // ersions/{version}. -func (r *ProjectsLocationsIntegrationsVersionsService) Get(name string) *ProjectsLocationsIntegrationsVersionsGetCall { - c := &ProjectsLocationsIntegrationsVersionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsIntegrationsVersionsService) Delete(name string) *ProjectsLocationsIntegrationsVersionsDeleteCall { + c := &ProjectsLocationsIntegrationsVersionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -15766,54 +15910,41 @@ func (r *ProjectsLocationsIntegrationsVersionsService) Get(name string) *Project // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsIntegrationsVersionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsIntegrationsVersionsGetCall { +func (c *ProjectsLocationsIntegrationsVersionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsIntegrationsVersionsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. -func (c *ProjectsLocationsIntegrationsVersionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsIntegrationsVersionsGetCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsIntegrationsVersionsGetCall) Context(ctx context.Context) *ProjectsLocationsIntegrationsVersionsGetCall { +func (c *ProjectsLocationsIntegrationsVersionsDeleteCall) Context(ctx context.Context) *ProjectsLocationsIntegrationsVersionsDeleteCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsIntegrationsVersionsGetCall) Header() http.Header { +func (c *ProjectsLocationsIntegrationsVersionsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsIntegrationsVersionsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsIntegrationsVersionsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("DELETE", urls, body) if err != nil { return nil, err } @@ -15824,16 +15955,14 @@ func (c *ProjectsLocationsIntegrationsVersionsGetCall) doRequest(alt string) (*h return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "integrations.projects.locations.integrations.versions.get" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaIntegrationVersion or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaIntegrationVersion.ServerResponse.Heade -// r or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsIntegrationsVersionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaIntegrationVersion, error) { +// Do executes the "integrations.projects.locations.integrations.versions.delete" call. +// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsIntegrationsVersionsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -15852,7 +15981,7 @@ func (c *ProjectsLocationsIntegrationsVersionsGetCall) Do(opts ...googleapi.Call if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudIntegrationsV1alphaIntegrationVersion{ + ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -15864,16 +15993,16 @@ func (c *ProjectsLocationsIntegrationsVersionsGetCall) Do(opts ...googleapi.Call } return ret, nil // { - // "description": "Get a integration in the specified project.", + // "description": "Soft-deletes the integration. Changes the status of the integration to ARCHIVED. If the integration being ARCHIVED is tagged as \"HEAD\", the tag is removed from this snapshot and set to the previous non-ARCHIVED snapshot. The PUBLISH_REQUESTED, DUE_FOR_DELETION tags are removed too. This RPC throws an exception if the version being deleted is DRAFT, and if the `locked_by` user is not the same as the user performing the Delete. Audit fields updated include last_modified_timestamp, last_modified_by. Any existing lock is released when Deleting a integration. Currently, there is no undelete mechanism.", // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}/versions/{versionsId}", - // "httpMethod": "GET", - // "id": "integrations.projects.locations.integrations.versions.get", + // "httpMethod": "DELETE", + // "id": "integrations.projects.locations.integrations.versions.delete", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The version to retrieve. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", + // "description": "Required. The version to delete. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+/versions/[^/]+$", // "required": true, @@ -15882,7 +16011,7 @@ func (c *ProjectsLocationsIntegrationsVersionsGetCall) Do(opts ...googleapi.Call // }, // "path": "v1alpha/{+name}", // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaIntegrationVersion" + // "$ref": "GoogleProtobufEmpty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -15891,88 +16020,213 @@ func (c *ProjectsLocationsIntegrationsVersionsGetCall) Do(opts ...googleapi.Call } -// method id "integrations.projects.locations.integrations.versions.list": +// method id "integrations.projects.locations.integrations.versions.download": -type ProjectsLocationsIntegrationsVersionsListCall struct { +type ProjectsLocationsIntegrationsVersionsDownloadCall struct { s *Service - parent string + name string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// List: Returns the list of all integration versions in the specified -// project. +// Download: Downloads an integration. Retrieves the +// `IntegrationVersion` for a given `integration_id` and returns the +// response as a string. // -// - parent: The parent resource where this version will be created. -// Format: -// projects/{project}/locations/{location}/integrations/{integration} -// Specifically, when parent equals: 1. -// projects//locations//integrations/, Meaning: "List versions (with -// filter) for a particular integration". 2. -// projects//locations//integrations/- Meaning: "List versions (with -// filter) for a client within a particular region". 3. -// projects//locations/-/integrations/- Meaning: "List versions (with -// filter) for a client". -func (r *ProjectsLocationsIntegrationsVersionsService) List(parent string) *ProjectsLocationsIntegrationsVersionsListCall { - c := &ProjectsLocationsIntegrationsVersionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent +// - name: The version to download. Format: +// projects/{project}/locations/{location}/integrations/{integration}/v +// ersions/{version}. +func (r *ProjectsLocationsIntegrationsVersionsService) Download(name string) *ProjectsLocationsIntegrationsVersionsDownloadCall { + c := &ProjectsLocationsIntegrationsVersionsDownloadCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } -// FieldMask sets the optional parameter "fieldMask": The field mask -// which specifies the particular data to be returned. -func (c *ProjectsLocationsIntegrationsVersionsListCall) FieldMask(fieldMask string) *ProjectsLocationsIntegrationsVersionsListCall { - c.urlParams_.Set("fieldMask", fieldMask) +// FileFormat sets the optional parameter "fileFormat": File format for +// download request. +// +// Possible values: +// +// "FILE_FORMAT_UNSPECIFIED" - Unspecified file format +// "JSON" - JSON File Format +// "YAML" - YAML File Format +func (c *ProjectsLocationsIntegrationsVersionsDownloadCall) FileFormat(fileFormat string) *ProjectsLocationsIntegrationsVersionsDownloadCall { + c.urlParams_.Set("fileFormat", fileFormat) return c } -// Filter sets the optional parameter "filter": Filter on fields of -// IntegrationVersion. Fields can be compared with literal values by use -// of ":" (containment), "=" (equality), ">" (greater), "<" (less than), -// >=" (greater than or equal to), "<=" (less than or equal to), and -// "!=" (inequality) operators. Negation, conjunction, and disjunction -// are written using NOT, AND, and OR keywords. For example, -// organization_id=\"1\" AND state=ACTIVE AND description:"test". -// Filtering cannot be performed on repeated fields like `task_config`. -func (c *ProjectsLocationsIntegrationsVersionsListCall) Filter(filter string) *ProjectsLocationsIntegrationsVersionsListCall { - c.urlParams_.Set("filter", filter) +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsIntegrationsVersionsDownloadCall) Fields(s ...googleapi.Field) *ProjectsLocationsIntegrationsVersionsDownloadCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// OrderBy sets the optional parameter "orderBy": The results would be -// returned in order you specified here. Currently supported sort keys -// are: Descending sort order for "last_modified_time", "created_time", -// "snapshot_number" Ascending sort order for "name". -func (c *ProjectsLocationsIntegrationsVersionsListCall) OrderBy(orderBy string) *ProjectsLocationsIntegrationsVersionsListCall { - c.urlParams_.Set("orderBy", orderBy) +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsIntegrationsVersionsDownloadCall) IfNoneMatch(entityTag string) *ProjectsLocationsIntegrationsVersionsDownloadCall { + c.ifNoneMatch_ = entityTag return c } -// PageSize sets the optional parameter "pageSize": The maximum number -// of versions to return. The service may return fewer than this value. -// If unspecified, at most 50 versions will be returned. The maximum -// value is 1000; values above 1000 will be coerced to 1000. -func (c *ProjectsLocationsIntegrationsVersionsListCall) PageSize(pageSize int64) *ProjectsLocationsIntegrationsVersionsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsIntegrationsVersionsDownloadCall) Context(ctx context.Context) *ProjectsLocationsIntegrationsVersionsDownloadCall { + c.ctx_ = ctx return c } -// PageToken sets the optional parameter "pageToken": A page token, -// received from a previous `ListIntegrationVersions` call. Provide this -// to retrieve the subsequent page. When paginating, all other -// parameters provided to `ListIntegrationVersions` must match the call -// that provided the page token. -func (c *ProjectsLocationsIntegrationsVersionsListCall) PageToken(pageToken string) *ProjectsLocationsIntegrationsVersionsListCall { - c.urlParams_.Set("pageToken", pageToken) +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsIntegrationsVersionsDownloadCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsIntegrationsVersionsDownloadCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}:download") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.integrations.versions.download" call. +// Exactly one of +// *GoogleCloudIntegrationsV1alphaDownloadIntegrationVersionResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIntegrationsV1alphaDownloadIntegrationVersionResponse.Serv +// erResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsIntegrationsVersionsDownloadCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaDownloadIntegrationVersionResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleCloudIntegrationsV1alphaDownloadIntegrationVersionResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Downloads an integration. Retrieves the `IntegrationVersion` for a given `integration_id` and returns the response as a string.", + // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}/versions/{versionsId}:download", + // "httpMethod": "GET", + // "id": "integrations.projects.locations.integrations.versions.download", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "fileFormat": { + // "description": "File format for download request.", + // "enum": [ + // "FILE_FORMAT_UNSPECIFIED", + // "JSON", + // "YAML" + // ], + // "enumDescriptions": [ + // "Unspecified file format", + // "JSON File Format", + // "YAML File Format" + // ], + // "location": "query", + // "type": "string" + // }, + // "name": { + // "description": "Required. The version to download. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+/versions/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1alpha/{+name}:download", + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaDownloadIntegrationVersionResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "integrations.projects.locations.integrations.versions.get": + +type ProjectsLocationsIntegrationsVersionsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Get a integration in the specified project. +// +// - name: The version to retrieve. Format: +// projects/{project}/locations/{location}/integrations/{integration}/v +// ersions/{version}. +func (r *ProjectsLocationsIntegrationsVersionsService) Get(name string) *ProjectsLocationsIntegrationsVersionsGetCall { + c := &ProjectsLocationsIntegrationsVersionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsIntegrationsVersionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsIntegrationsVersionsListCall { +func (c *ProjectsLocationsIntegrationsVersionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsIntegrationsVersionsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -15982,7 +16236,7 @@ func (c *ProjectsLocationsIntegrationsVersionsListCall) Fields(s ...googleapi.Fi // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *ProjectsLocationsIntegrationsVersionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsIntegrationsVersionsListCall { +func (c *ProjectsLocationsIntegrationsVersionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsIntegrationsVersionsGetCall { c.ifNoneMatch_ = entityTag return c } @@ -15990,21 +16244,21 @@ func (c *ProjectsLocationsIntegrationsVersionsListCall) IfNoneMatch(entityTag st // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsIntegrationsVersionsListCall) Context(ctx context.Context) *ProjectsLocationsIntegrationsVersionsListCall { +func (c *ProjectsLocationsIntegrationsVersionsGetCall) Context(ctx context.Context) *ProjectsLocationsIntegrationsVersionsGetCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsIntegrationsVersionsListCall) Header() http.Header { +func (c *ProjectsLocationsIntegrationsVersionsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsIntegrationsVersionsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsIntegrationsVersionsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -16017,7 +16271,7 @@ func (c *ProjectsLocationsIntegrationsVersionsListCall) doRequest(alt string) (* var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/versions") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -16025,22 +16279,21 @@ func (c *ProjectsLocationsIntegrationsVersionsListCall) doRequest(alt string) (* } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "integrations.projects.locations.integrations.versions.list" call. -// Exactly one of -// *GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse or +// Do executes the "integrations.projects.locations.integrations.versions.get" call. +// Exactly one of *GoogleCloudIntegrationsV1alphaIntegrationVersion or // error will be non-nil. Any non-2xx status code is an error. Response // headers are in either -// *GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse.ServerR -// esponse.Header or (if a response was returned at all) in +// *GoogleCloudIntegrationsV1alphaIntegrationVersion.ServerResponse.Heade +// r or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was // returned. -func (c *ProjectsLocationsIntegrationsVersionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse, error) { +func (c *ProjectsLocationsIntegrationsVersionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaIntegrationVersion, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -16059,7 +16312,7 @@ func (c *ProjectsLocationsIntegrationsVersionsListCall) Do(opts ...googleapi.Cal if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse{ + ret := &GoogleCloudIntegrationsV1alphaIntegrationVersion{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -16071,52 +16324,592 @@ func (c *ProjectsLocationsIntegrationsVersionsListCall) Do(opts ...googleapi.Cal } return ret, nil // { - // "description": "Returns the list of all integration versions in the specified project.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}/versions", + // "description": "Get a integration in the specified project.", + // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}/versions/{versionsId}", // "httpMethod": "GET", - // "id": "integrations.projects.locations.integrations.versions.list", + // "id": "integrations.projects.locations.integrations.versions.get", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { - // "fieldMask": { - // "description": "The field mask which specifies the particular data to be returned.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // }, - // "filter": { - // "description": "Filter on fields of IntegrationVersion. Fields can be compared with literal values by use of \":\" (containment), \"=\" (equality), \"\u003e\" (greater), \"\u003c\" (less than), \u003e=\" (greater than or equal to), \"\u003c=\" (less than or equal to), and \"!=\" (inequality) operators. Negation, conjunction, and disjunction are written using NOT, AND, and OR keywords. For example, organization_id=\\\"1\\\" AND state=ACTIVE AND description:\"test\". Filtering cannot be performed on repeated fields like `task_config`.", - // "location": "query", - // "type": "string" - // }, - // "orderBy": { - // "description": "The results would be returned in order you specified here. Currently supported sort keys are: Descending sort order for \"last_modified_time\", \"created_time\", \"snapshot_number\" Ascending sort order for \"name\".", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "The maximum number of versions to return. The service may return fewer than this value. If unspecified, at most 50 versions will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A page token, received from a previous `ListIntegrationVersions` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListIntegrationVersions` must match the call that provided the page token.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The parent resource where this version will be created. Format: projects/{project}/locations/{location}/integrations/{integration} Specifically, when parent equals: 1. projects//locations//integrations/, Meaning: \"List versions (with filter) for a particular integration\". 2. projects//locations//integrations/- Meaning: \"List versions (with filter) for a client within a particular region\". 3. projects//locations/-/integrations/- Meaning: \"List versions (with filter) for a client\".", + // "name": { + // "description": "Required. The version to retrieve. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+/versions/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1alpha/{+parent}/versions", + // "path": "v1alpha/{+name}", // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse" + // "$ref": "GoogleCloudIntegrationsV1alphaIntegrationVersion" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "integrations.projects.locations.integrations.versions.list": + +type ProjectsLocationsIntegrationsVersionsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Returns the list of all integration versions in the specified +// project. +// +// - parent: The parent resource where this version will be created. +// Format: +// projects/{project}/locations/{location}/integrations/{integration} +// Specifically, when parent equals: 1. +// projects//locations//integrations/, Meaning: "List versions (with +// filter) for a particular integration". 2. +// projects//locations//integrations/- Meaning: "List versions (with +// filter) for a client within a particular region". 3. +// projects//locations/-/integrations/- Meaning: "List versions (with +// filter) for a client". +func (r *ProjectsLocationsIntegrationsVersionsService) List(parent string) *ProjectsLocationsIntegrationsVersionsListCall { + c := &ProjectsLocationsIntegrationsVersionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// FieldMask sets the optional parameter "fieldMask": The field mask +// which specifies the particular data to be returned. +func (c *ProjectsLocationsIntegrationsVersionsListCall) FieldMask(fieldMask string) *ProjectsLocationsIntegrationsVersionsListCall { + c.urlParams_.Set("fieldMask", fieldMask) + return c +} + +// Filter sets the optional parameter "filter": Filter on fields of +// IntegrationVersion. Fields can be compared with literal values by use +// of ":" (containment), "=" (equality), ">" (greater), "<" (less than), +// >=" (greater than or equal to), "<=" (less than or equal to), and +// "!=" (inequality) operators. Negation, conjunction, and disjunction +// are written using NOT, AND, and OR keywords. For example, +// organization_id=\"1\" AND state=ACTIVE AND description:"test". +// Filtering cannot be performed on repeated fields like `task_config`. +func (c *ProjectsLocationsIntegrationsVersionsListCall) Filter(filter string) *ProjectsLocationsIntegrationsVersionsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// OrderBy sets the optional parameter "orderBy": The results would be +// returned in order you specified here. Currently supported sort keys +// are: Descending sort order for "last_modified_time", "created_time", +// "snapshot_number" Ascending sort order for "name". +func (c *ProjectsLocationsIntegrationsVersionsListCall) OrderBy(orderBy string) *ProjectsLocationsIntegrationsVersionsListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of versions to return. The service may return fewer than this value. +// If unspecified, at most 50 versions will be returned. The maximum +// value is 1000; values above 1000 will be coerced to 1000. +func (c *ProjectsLocationsIntegrationsVersionsListCall) PageSize(pageSize int64) *ProjectsLocationsIntegrationsVersionsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token, +// received from a previous `ListIntegrationVersions` call. Provide this +// to retrieve the subsequent page. When paginating, all other +// parameters provided to `ListIntegrationVersions` must match the call +// that provided the page token. +func (c *ProjectsLocationsIntegrationsVersionsListCall) PageToken(pageToken string) *ProjectsLocationsIntegrationsVersionsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsIntegrationsVersionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsIntegrationsVersionsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsIntegrationsVersionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsIntegrationsVersionsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsIntegrationsVersionsListCall) Context(ctx context.Context) *ProjectsLocationsIntegrationsVersionsListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsIntegrationsVersionsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsIntegrationsVersionsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/versions") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.integrations.versions.list" call. +// Exactly one of +// *GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse.ServerR +// esponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsIntegrationsVersionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Returns the list of all integration versions in the specified project.", + // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}/versions", + // "httpMethod": "GET", + // "id": "integrations.projects.locations.integrations.versions.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "fieldMask": { + // "description": "The field mask which specifies the particular data to be returned.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // }, + // "filter": { + // "description": "Filter on fields of IntegrationVersion. Fields can be compared with literal values by use of \":\" (containment), \"=\" (equality), \"\u003e\" (greater), \"\u003c\" (less than), \u003e=\" (greater than or equal to), \"\u003c=\" (less than or equal to), and \"!=\" (inequality) operators. Negation, conjunction, and disjunction are written using NOT, AND, and OR keywords. For example, organization_id=\\\"1\\\" AND state=ACTIVE AND description:\"test\". Filtering cannot be performed on repeated fields like `task_config`.", + // "location": "query", + // "type": "string" + // }, + // "orderBy": { + // "description": "The results would be returned in order you specified here. Currently supported sort keys are: Descending sort order for \"last_modified_time\", \"created_time\", \"snapshot_number\" Ascending sort order for \"name\".", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "The maximum number of versions to return. The service may return fewer than this value. If unspecified, at most 50 versions will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "A page token, received from a previous `ListIntegrationVersions` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListIntegrationVersions` must match the call that provided the page token.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The parent resource where this version will be created. Format: projects/{project}/locations/{location}/integrations/{integration} Specifically, when parent equals: 1. projects//locations//integrations/, Meaning: \"List versions (with filter) for a particular integration\". 2. projects//locations//integrations/- Meaning: \"List versions (with filter) for a client within a particular region\". 3. projects//locations/-/integrations/- Meaning: \"List versions (with filter) for a client\".", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1alpha/{+parent}/versions", + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsIntegrationsVersionsListCall) Pages(ctx context.Context, f func(*GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "integrations.projects.locations.integrations.versions.patch": + +type ProjectsLocationsIntegrationsVersionsPatchCall struct { + s *Service + name string + googlecloudintegrationsv1alphaintegrationversion *GoogleCloudIntegrationsV1alphaIntegrationVersion + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Update a integration with a draft version in the specified +// project. +// +// - name: Output only. Auto-generated primary key. +func (r *ProjectsLocationsIntegrationsVersionsService) Patch(name string, googlecloudintegrationsv1alphaintegrationversion *GoogleCloudIntegrationsV1alphaIntegrationVersion) *ProjectsLocationsIntegrationsVersionsPatchCall { + c := &ProjectsLocationsIntegrationsVersionsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudintegrationsv1alphaintegrationversion = googlecloudintegrationsv1alphaintegrationversion + return c +} + +// UpdateMask sets the optional parameter "updateMask": Field mask +// specifying the fields in the above integration that have been +// modified and need to be updated. +func (c *ProjectsLocationsIntegrationsVersionsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsIntegrationsVersionsPatchCall { + c.urlParams_.Set("updateMask", updateMask) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsIntegrationsVersionsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsIntegrationsVersionsPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsIntegrationsVersionsPatchCall) Context(ctx context.Context) *ProjectsLocationsIntegrationsVersionsPatchCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsIntegrationsVersionsPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsIntegrationsVersionsPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphaintegrationversion) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.integrations.versions.patch" call. +// Exactly one of *GoogleCloudIntegrationsV1alphaIntegrationVersion or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIntegrationsV1alphaIntegrationVersion.ServerResponse.Heade +// r or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsIntegrationsVersionsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaIntegrationVersion, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleCloudIntegrationsV1alphaIntegrationVersion{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Update a integration with a draft version in the specified project.", + // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}/versions/{versionsId}", + // "httpMethod": "PATCH", + // "id": "integrations.projects.locations.integrations.versions.patch", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Output only. Auto-generated primary key.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+/versions/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "updateMask": { + // "description": "Field mask specifying the fields in the above integration that have been modified and need to be updated.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1alpha/{+name}", + // "request": { + // "$ref": "GoogleCloudIntegrationsV1alphaIntegrationVersion" + // }, + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaIntegrationVersion" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "integrations.projects.locations.integrations.versions.publish": + +type ProjectsLocationsIntegrationsVersionsPublishCall struct { + s *Service + name string + googlecloudintegrationsv1alphapublishintegrationversionrequest *GoogleCloudIntegrationsV1alphaPublishIntegrationVersionRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Publish: This RPC throws an exception if the integration is in +// ARCHIVED or ACTIVE state. This RPC throws an exception if the version +// being published is DRAFT, and if the `locked_by` user is not the same +// as the user performing the Publish. Audit fields updated include +// last_published_timestamp, last_published_by, last_modified_timestamp, +// last_modified_by. Any existing lock is on this integration is +// released. +// +// - name: The version to publish. Format: +// projects/{project}/locations/{location}/integrations/{integration}/v +// ersions/{version}. +func (r *ProjectsLocationsIntegrationsVersionsService) Publish(name string, googlecloudintegrationsv1alphapublishintegrationversionrequest *GoogleCloudIntegrationsV1alphaPublishIntegrationVersionRequest) *ProjectsLocationsIntegrationsVersionsPublishCall { + c := &ProjectsLocationsIntegrationsVersionsPublishCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudintegrationsv1alphapublishintegrationversionrequest = googlecloudintegrationsv1alphapublishintegrationversionrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsIntegrationsVersionsPublishCall) Fields(s ...googleapi.Field) *ProjectsLocationsIntegrationsVersionsPublishCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsIntegrationsVersionsPublishCall) Context(ctx context.Context) *ProjectsLocationsIntegrationsVersionsPublishCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsIntegrationsVersionsPublishCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsIntegrationsVersionsPublishCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphapublishintegrationversionrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}:publish") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.integrations.versions.publish" call. +// Exactly one of +// *GoogleCloudIntegrationsV1alphaPublishIntegrationVersionResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIntegrationsV1alphaPublishIntegrationVersionResponse.Serve +// rResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsIntegrationsVersionsPublishCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaPublishIntegrationVersionResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleCloudIntegrationsV1alphaPublishIntegrationVersionResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "This RPC throws an exception if the integration is in ARCHIVED or ACTIVE state. This RPC throws an exception if the version being published is DRAFT, and if the `locked_by` user is not the same as the user performing the Publish. Audit fields updated include last_published_timestamp, last_published_by, last_modified_timestamp, last_modified_by. Any existing lock is on this integration is released.", + // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}/versions/{versionsId}:publish", + // "httpMethod": "POST", + // "id": "integrations.projects.locations.integrations.versions.publish", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The version to publish. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+/versions/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1alpha/{+name}:publish", + // "request": { + // "$ref": "GoogleCloudIntegrationsV1alphaPublishIntegrationVersionRequest" + // }, + // "response": { + // "$ref": "GoogleCloudIntegrationsV1alphaPublishIntegrationVersionResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -16125,61 +16918,44 @@ func (c *ProjectsLocationsIntegrationsVersionsListCall) Do(opts ...googleapi.Cal } -// Pages invokes f for each page of results. -// A non-nil error returned from f will halt the iteration. -// The provided context supersedes any context provided to the Context method. -func (c *ProjectsLocationsIntegrationsVersionsListCall) Pages(ctx context.Context, f func(*GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse) error) error { - c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point - for { - x, err := c.Do() - if err != nil { - return err - } - if err := f(x); err != nil { - return err - } - if x.NextPageToken == "" { - return nil - } - c.PageToken(x.NextPageToken) - } -} - -// method id "integrations.projects.locations.integrations.versions.patch": +// method id "integrations.projects.locations.integrations.versions.takeoverEditLock": -type ProjectsLocationsIntegrationsVersionsPatchCall struct { - s *Service - name string - googlecloudintegrationsv1alphaintegrationversion *GoogleCloudIntegrationsV1alphaIntegrationVersion - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsIntegrationsVersionsTakeoverEditLockCall struct { + s *Service + integrationVersion string + googlecloudintegrationsv1alphatakeovereditlockrequest *GoogleCloudIntegrationsV1alphaTakeoverEditLockRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Patch: Update a integration with a draft version in the specified -// project. +// TakeoverEditLock: Clears the `locked_by` and `locked_at_timestamp`in +// the DRAFT version of this integration. It then performs the same +// action as the CreateDraftIntegrationVersion (i.e., copies the DRAFT +// version of the integration as a SNAPSHOT and then creates a new DRAFT +// version with the `locked_by` set to the `user_taking_over` and the +// `locked_at_timestamp` set to the current timestamp). Both the +// `locked_by` and `user_taking_over` are notified via email about the +// takeover. This RPC throws an exception if the integration is not in +// DRAFT status or if the `locked_by` and `locked_at_timestamp` fields +// are not set.The TakeoverEdit lock is treated the same as an edit of +// the integration, and hence shares ACLs with edit. Audit fields +// updated include last_modified_timestamp, last_modified_by. // -// - name: Output only. Auto-generated primary key. -func (r *ProjectsLocationsIntegrationsVersionsService) Patch(name string, googlecloudintegrationsv1alphaintegrationversion *GoogleCloudIntegrationsV1alphaIntegrationVersion) *ProjectsLocationsIntegrationsVersionsPatchCall { - c := &ProjectsLocationsIntegrationsVersionsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - c.googlecloudintegrationsv1alphaintegrationversion = googlecloudintegrationsv1alphaintegrationversion - return c -} - -// UpdateMask sets the optional parameter "updateMask": Field mask -// specifying the fields in the above integration that have been -// modified and need to be updated. -func (c *ProjectsLocationsIntegrationsVersionsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsIntegrationsVersionsPatchCall { - c.urlParams_.Set("updateMask", updateMask) +// - integrationVersion: The version to take over edit lock. Format: +// projects/{project}/locations/{location}/integrations/{integration}/v +// ersions/{version}. +func (r *ProjectsLocationsIntegrationsVersionsService) TakeoverEditLock(integrationVersion string, googlecloudintegrationsv1alphatakeovereditlockrequest *GoogleCloudIntegrationsV1alphaTakeoverEditLockRequest) *ProjectsLocationsIntegrationsVersionsTakeoverEditLockCall { + c := &ProjectsLocationsIntegrationsVersionsTakeoverEditLockCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.integrationVersion = integrationVersion + c.googlecloudintegrationsv1alphatakeovereditlockrequest = googlecloudintegrationsv1alphatakeovereditlockrequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsIntegrationsVersionsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsIntegrationsVersionsPatchCall { +func (c *ProjectsLocationsIntegrationsVersionsTakeoverEditLockCall) Fields(s ...googleapi.Field) *ProjectsLocationsIntegrationsVersionsTakeoverEditLockCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -16187,21 +16963,21 @@ func (c *ProjectsLocationsIntegrationsVersionsPatchCall) Fields(s ...googleapi.F // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsIntegrationsVersionsPatchCall) Context(ctx context.Context) *ProjectsLocationsIntegrationsVersionsPatchCall { +func (c *ProjectsLocationsIntegrationsVersionsTakeoverEditLockCall) Context(ctx context.Context) *ProjectsLocationsIntegrationsVersionsTakeoverEditLockCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsIntegrationsVersionsPatchCall) Header() http.Header { +func (c *ProjectsLocationsIntegrationsVersionsTakeoverEditLockCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsIntegrationsVersionsPatchCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsIntegrationsVersionsTakeoverEditLockCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -16209,36 +16985,37 @@ func (c *ProjectsLocationsIntegrationsVersionsPatchCall) doRequest(alt string) ( } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphaintegrationversion) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphatakeovereditlockrequest) if err != nil { return nil, err } reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+integrationVersion}:takeoverEditLock") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PATCH", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "integrationVersion": c.integrationVersion, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "integrations.projects.locations.integrations.versions.patch" call. -// Exactly one of *GoogleCloudIntegrationsV1alphaIntegrationVersion or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaIntegrationVersion.ServerResponse.Heade -// r or (if a response was returned at all) in +// Do executes the "integrations.projects.locations.integrations.versions.takeoverEditLock" call. +// Exactly one of +// *GoogleCloudIntegrationsV1alphaTakeoverEditLockResponse or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleCloudIntegrationsV1alphaTakeoverEditLockResponse.ServerResponse +// .Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was // returned. -func (c *ProjectsLocationsIntegrationsVersionsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaIntegrationVersion, error) { +func (c *ProjectsLocationsIntegrationsVersionsTakeoverEditLockCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaTakeoverEditLockResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -16257,7 +17034,7 @@ func (c *ProjectsLocationsIntegrationsVersionsPatchCall) Do(opts ...googleapi.Ca if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudIntegrationsV1alphaIntegrationVersion{ + ret := &GoogleCloudIntegrationsV1alphaTakeoverEditLockResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -16269,34 +17046,28 @@ func (c *ProjectsLocationsIntegrationsVersionsPatchCall) Do(opts ...googleapi.Ca } return ret, nil // { - // "description": "Update a integration with a draft version in the specified project.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}/versions/{versionsId}", - // "httpMethod": "PATCH", - // "id": "integrations.projects.locations.integrations.versions.patch", + // "description": "Clears the `locked_by` and `locked_at_timestamp`in the DRAFT version of this integration. It then performs the same action as the CreateDraftIntegrationVersion (i.e., copies the DRAFT version of the integration as a SNAPSHOT and then creates a new DRAFT version with the `locked_by` set to the `user_taking_over` and the `locked_at_timestamp` set to the current timestamp). Both the `locked_by` and `user_taking_over` are notified via email about the takeover. This RPC throws an exception if the integration is not in DRAFT status or if the `locked_by` and `locked_at_timestamp` fields are not set.The TakeoverEdit lock is treated the same as an edit of the integration, and hence shares ACLs with edit. Audit fields updated include last_modified_timestamp, last_modified_by.", + // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}/versions/{versionsId}:takeoverEditLock", + // "httpMethod": "POST", + // "id": "integrations.projects.locations.integrations.versions.takeoverEditLock", // "parameterOrder": [ - // "name" + // "integrationVersion" // ], // "parameters": { - // "name": { - // "description": "Output only. Auto-generated primary key.", + // "integrationVersion": { + // "description": "Required. The version to take over edit lock. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+/versions/[^/]+$", // "required": true, // "type": "string" - // }, - // "updateMask": { - // "description": "Field mask specifying the fields in the above integration that have been modified and need to be updated.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" // } // }, - // "path": "v1alpha/{+name}", + // "path": "v1alpha/{+integrationVersion}:takeoverEditLock", // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaIntegrationVersion" + // "$ref": "GoogleCloudIntegrationsV1alphaTakeoverEditLockRequest" // }, // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaIntegrationVersion" + // "$ref": "GoogleCloudIntegrationsV1alphaTakeoverEditLockResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -16305,39 +17076,37 @@ func (c *ProjectsLocationsIntegrationsVersionsPatchCall) Do(opts ...googleapi.Ca } -// method id "integrations.projects.locations.integrations.versions.publish": +// method id "integrations.projects.locations.integrations.versions.unpublish": -type ProjectsLocationsIntegrationsVersionsPublishCall struct { - s *Service - name string - googlecloudintegrationsv1alphapublishintegrationversionrequest *GoogleCloudIntegrationsV1alphaPublishIntegrationVersionRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsIntegrationsVersionsUnpublishCall struct { + s *Service + name string + googlecloudintegrationsv1alphaunpublishintegrationversionrequest *GoogleCloudIntegrationsV1alphaUnpublishIntegrationVersionRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Publish: This RPC throws an exception if the integration is in -// ARCHIVED or ACTIVE state. This RPC throws an exception if the version -// being published is DRAFT, and if the `locked_by` user is not the same -// as the user performing the Publish. Audit fields updated include -// last_published_timestamp, last_published_by, last_modified_timestamp, -// last_modified_by. Any existing lock is on this integration is -// released. +// Unpublish: Sets the status of the ACTIVE integration to SNAPSHOT with +// a new tag "PREVIOUSLY_PUBLISHED" after validating it. The "HEAD" and +// "PUBLISH_REQUESTED" tags do not change. This RPC throws an exception +// if the version being snapshot is not ACTIVE. Audit fields added +// include action, action_by, action_timestamp. // -// - name: The version to publish. Format: +// - name: The version to deactivate. Format: // projects/{project}/locations/{location}/integrations/{integration}/v // ersions/{version}. -func (r *ProjectsLocationsIntegrationsVersionsService) Publish(name string, googlecloudintegrationsv1alphapublishintegrationversionrequest *GoogleCloudIntegrationsV1alphaPublishIntegrationVersionRequest) *ProjectsLocationsIntegrationsVersionsPublishCall { - c := &ProjectsLocationsIntegrationsVersionsPublishCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsIntegrationsVersionsService) Unpublish(name string, googlecloudintegrationsv1alphaunpublishintegrationversionrequest *GoogleCloudIntegrationsV1alphaUnpublishIntegrationVersionRequest) *ProjectsLocationsIntegrationsVersionsUnpublishCall { + c := &ProjectsLocationsIntegrationsVersionsUnpublishCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.googlecloudintegrationsv1alphapublishintegrationversionrequest = googlecloudintegrationsv1alphapublishintegrationversionrequest + c.googlecloudintegrationsv1alphaunpublishintegrationversionrequest = googlecloudintegrationsv1alphaunpublishintegrationversionrequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsIntegrationsVersionsPublishCall) Fields(s ...googleapi.Field) *ProjectsLocationsIntegrationsVersionsPublishCall { +func (c *ProjectsLocationsIntegrationsVersionsUnpublishCall) Fields(s ...googleapi.Field) *ProjectsLocationsIntegrationsVersionsUnpublishCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -16345,21 +17114,21 @@ func (c *ProjectsLocationsIntegrationsVersionsPublishCall) Fields(s ...googleapi // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsIntegrationsVersionsPublishCall) Context(ctx context.Context) *ProjectsLocationsIntegrationsVersionsPublishCall { +func (c *ProjectsLocationsIntegrationsVersionsUnpublishCall) Context(ctx context.Context) *ProjectsLocationsIntegrationsVersionsUnpublishCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsIntegrationsVersionsPublishCall) Header() http.Header { +func (c *ProjectsLocationsIntegrationsVersionsUnpublishCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsIntegrationsVersionsPublishCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsIntegrationsVersionsUnpublishCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -16367,14 +17136,14 @@ func (c *ProjectsLocationsIntegrationsVersionsPublishCall) doRequest(alt string) } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphapublishintegrationversionrequest) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphaunpublishintegrationversionrequest) if err != nil { return nil, err } reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}:publish") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}:unpublish") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -16387,17 +17156,14 @@ func (c *ProjectsLocationsIntegrationsVersionsPublishCall) doRequest(alt string) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "integrations.projects.locations.integrations.versions.publish" call. -// Exactly one of -// *GoogleCloudIntegrationsV1alphaPublishIntegrationVersionResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudIntegrationsV1alphaPublishIntegrationVersionResponse.Serve -// rResponse.Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsIntegrationsVersionsPublishCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaPublishIntegrationVersionResponse, error) { +// Do executes the "integrations.projects.locations.integrations.versions.unpublish" call. +// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsIntegrationsVersionsUnpublishCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -16416,7 +17182,7 @@ func (c *ProjectsLocationsIntegrationsVersionsPublishCall) Do(opts ...googleapi. if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudIntegrationsV1alphaPublishIntegrationVersionResponse{ + ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -16428,28 +17194,28 @@ func (c *ProjectsLocationsIntegrationsVersionsPublishCall) Do(opts ...googleapi. } return ret, nil // { - // "description": "This RPC throws an exception if the integration is in ARCHIVED or ACTIVE state. This RPC throws an exception if the version being published is DRAFT, and if the `locked_by` user is not the same as the user performing the Publish. Audit fields updated include last_published_timestamp, last_published_by, last_modified_timestamp, last_modified_by. Any existing lock is on this integration is released.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}/versions/{versionsId}:publish", + // "description": "Sets the status of the ACTIVE integration to SNAPSHOT with a new tag \"PREVIOUSLY_PUBLISHED\" after validating it. The \"HEAD\" and \"PUBLISH_REQUESTED\" tags do not change. This RPC throws an exception if the version being snapshot is not ACTIVE. Audit fields added include action, action_by, action_timestamp.", + // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}/versions/{versionsId}:unpublish", // "httpMethod": "POST", - // "id": "integrations.projects.locations.integrations.versions.publish", + // "id": "integrations.projects.locations.integrations.versions.unpublish", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The version to publish. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", + // "description": "Required. The version to deactivate. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+/versions/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1alpha/{+name}:publish", + // "path": "v1alpha/{+name}:unpublish", // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaPublishIntegrationVersionRequest" + // "$ref": "GoogleCloudIntegrationsV1alphaUnpublishIntegrationVersionRequest" // }, // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaPublishIntegrationVersionResponse" + // "$ref": "GoogleProtobufEmpty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -16458,44 +17224,36 @@ func (c *ProjectsLocationsIntegrationsVersionsPublishCall) Do(opts ...googleapi. } -// method id "integrations.projects.locations.integrations.versions.takeoverEditLock": +// method id "integrations.projects.locations.integrations.versions.upload": -type ProjectsLocationsIntegrationsVersionsTakeoverEditLockCall struct { - s *Service - integrationVersion string - googlecloudintegrationsv1alphatakeovereditlockrequest *GoogleCloudIntegrationsV1alphaTakeoverEditLockRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsIntegrationsVersionsUploadCall struct { + s *Service + parent string + googlecloudintegrationsv1alphauploadintegrationversionrequest *GoogleCloudIntegrationsV1alphaUploadIntegrationVersionRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// TakeoverEditLock: Clears the `locked_by` and `locked_at_timestamp`in -// the DRAFT version of this integration. It then performs the same -// action as the CreateDraftIntegrationVersion (i.e., copies the DRAFT -// version of the integration as a SNAPSHOT and then creates a new DRAFT -// version with the `locked_by` set to the `user_taking_over` and the -// `locked_at_timestamp` set to the current timestamp). Both the -// `locked_by` and `user_taking_over` are notified via email about the -// takeover. This RPC throws an exception if the integration is not in -// DRAFT status or if the `locked_by` and `locked_at_timestamp` fields -// are not set.The TakeoverEdit lock is treated the same as an edit of -// the integration, and hence shares ACLs with edit. Audit fields -// updated include last_modified_timestamp, last_modified_by. +// Upload: Uploads an integration. The content can be a previously +// downloaded integration. Performs the same function as +// CreateDraftIntegrationVersion, but accepts input in a string format, +// which holds the complete representation of the IntegrationVersion +// content. // -// - integrationVersion: The version to take over edit lock. Format: -// projects/{project}/locations/{location}/integrations/{integration}/v -// ersions/{version}. -func (r *ProjectsLocationsIntegrationsVersionsService) TakeoverEditLock(integrationVersion string, googlecloudintegrationsv1alphatakeovereditlockrequest *GoogleCloudIntegrationsV1alphaTakeoverEditLockRequest) *ProjectsLocationsIntegrationsVersionsTakeoverEditLockCall { - c := &ProjectsLocationsIntegrationsVersionsTakeoverEditLockCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.integrationVersion = integrationVersion - c.googlecloudintegrationsv1alphatakeovereditlockrequest = googlecloudintegrationsv1alphatakeovereditlockrequest +// - parent: The version to upload. Format: +// projects/{project}/locations/{location}/integrations/{integration}. +func (r *ProjectsLocationsIntegrationsVersionsService) Upload(parent string, googlecloudintegrationsv1alphauploadintegrationversionrequest *GoogleCloudIntegrationsV1alphaUploadIntegrationVersionRequest) *ProjectsLocationsIntegrationsVersionsUploadCall { + c := &ProjectsLocationsIntegrationsVersionsUploadCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudintegrationsv1alphauploadintegrationversionrequest = googlecloudintegrationsv1alphauploadintegrationversionrequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsIntegrationsVersionsTakeoverEditLockCall) Fields(s ...googleapi.Field) *ProjectsLocationsIntegrationsVersionsTakeoverEditLockCall { +func (c *ProjectsLocationsIntegrationsVersionsUploadCall) Fields(s ...googleapi.Field) *ProjectsLocationsIntegrationsVersionsUploadCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -16503,21 +17261,21 @@ func (c *ProjectsLocationsIntegrationsVersionsTakeoverEditLockCall) Fields(s ... // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsIntegrationsVersionsTakeoverEditLockCall) Context(ctx context.Context) *ProjectsLocationsIntegrationsVersionsTakeoverEditLockCall { +func (c *ProjectsLocationsIntegrationsVersionsUploadCall) Context(ctx context.Context) *ProjectsLocationsIntegrationsVersionsUploadCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsIntegrationsVersionsTakeoverEditLockCall) Header() http.Header { +func (c *ProjectsLocationsIntegrationsVersionsUploadCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsIntegrationsVersionsTakeoverEditLockCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsIntegrationsVersionsUploadCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -16525,14 +17283,14 @@ func (c *ProjectsLocationsIntegrationsVersionsTakeoverEditLockCall) doRequest(al } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphatakeovereditlockrequest) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphauploadintegrationversionrequest) if err != nil { return nil, err } reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+integrationVersion}:takeoverEditLock") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/versions:upload") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -16540,22 +17298,22 @@ func (c *ProjectsLocationsIntegrationsVersionsTakeoverEditLockCall) doRequest(al } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "integrationVersion": c.integrationVersion, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "integrations.projects.locations.integrations.versions.takeoverEditLock" call. +// Do executes the "integrations.projects.locations.integrations.versions.upload" call. // Exactly one of -// *GoogleCloudIntegrationsV1alphaTakeoverEditLockResponse or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GoogleCloudIntegrationsV1alphaTakeoverEditLockResponse.ServerResponse -// .Header or (if a response was returned at all) in +// *GoogleCloudIntegrationsV1alphaUploadIntegrationVersionResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudIntegrationsV1alphaUploadIntegrationVersionResponse.Server +// Response.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was // returned. -func (c *ProjectsLocationsIntegrationsVersionsTakeoverEditLockCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaTakeoverEditLockResponse, error) { +func (c *ProjectsLocationsIntegrationsVersionsUploadCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIntegrationsV1alphaUploadIntegrationVersionResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -16574,7 +17332,7 @@ func (c *ProjectsLocationsIntegrationsVersionsTakeoverEditLockCall) Do(opts ...g if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudIntegrationsV1alphaTakeoverEditLockResponse{ + ret := &GoogleCloudIntegrationsV1alphaUploadIntegrationVersionResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -16586,28 +17344,28 @@ func (c *ProjectsLocationsIntegrationsVersionsTakeoverEditLockCall) Do(opts ...g } return ret, nil // { - // "description": "Clears the `locked_by` and `locked_at_timestamp`in the DRAFT version of this integration. It then performs the same action as the CreateDraftIntegrationVersion (i.e., copies the DRAFT version of the integration as a SNAPSHOT and then creates a new DRAFT version with the `locked_by` set to the `user_taking_over` and the `locked_at_timestamp` set to the current timestamp). Both the `locked_by` and `user_taking_over` are notified via email about the takeover. This RPC throws an exception if the integration is not in DRAFT status or if the `locked_by` and `locked_at_timestamp` fields are not set.The TakeoverEdit lock is treated the same as an edit of the integration, and hence shares ACLs with edit. Audit fields updated include last_modified_timestamp, last_modified_by.", - // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}/versions/{versionsId}:takeoverEditLock", + // "description": "Uploads an integration. The content can be a previously downloaded integration. Performs the same function as CreateDraftIntegrationVersion, but accepts input in a string format, which holds the complete representation of the IntegrationVersion content.", + // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/integrations/{integrationsId}/versions:upload", // "httpMethod": "POST", - // "id": "integrations.projects.locations.integrations.versions.takeoverEditLock", + // "id": "integrations.projects.locations.integrations.versions.upload", // "parameterOrder": [ - // "integrationVersion" + // "parent" // ], // "parameters": { - // "integrationVersion": { - // "description": "Required. The version to take over edit lock. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", + // "parent": { + // "description": "Required. The version to upload. Format: projects/{project}/locations/{location}/integrations/{integration}", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+/versions/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/integrations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1alpha/{+integrationVersion}:takeoverEditLock", + // "path": "v1alpha/{+parent}/versions:upload", // "request": { - // "$ref": "GoogleCloudIntegrationsV1alphaTakeoverEditLockRequest" + // "$ref": "GoogleCloudIntegrationsV1alphaUploadIntegrationVersionRequest" // }, // "response": { - // "$ref": "GoogleCloudIntegrationsV1alphaTakeoverEditLockResponse" + // "$ref": "GoogleCloudIntegrationsV1alphaUploadIntegrationVersionResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -21429,6 +22187,149 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsDeactivateCall) Do(opts .. } +// method id "integrations.projects.locations.products.integrations.versions.delete": + +type ProjectsLocationsProductsIntegrationsVersionsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Soft-deletes the integration. Changes the status of the +// integration to ARCHIVED. If the integration being ARCHIVED is tagged +// as "HEAD", the tag is removed from this snapshot and set to the +// previous non-ARCHIVED snapshot. The PUBLISH_REQUESTED, +// DUE_FOR_DELETION tags are removed too. This RPC throws an exception +// if the version being deleted is DRAFT, and if the `locked_by` user is +// not the same as the user performing the Delete. Audit fields updated +// include last_modified_timestamp, last_modified_by. Any existing lock +// is released when Deleting a integration. Currently, there is no +// undelete mechanism. +// +// - name: The version to delete. Format: +// projects/{project}/locations/{location}/integrations/{integration}/v +// ersions/{version}. +func (r *ProjectsLocationsProductsIntegrationsVersionsService) Delete(name string) *ProjectsLocationsProductsIntegrationsVersionsDeleteCall { + c := &ProjectsLocationsProductsIntegrationsVersionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsProductsIntegrationsVersionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsVersionsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsProductsIntegrationsVersionsDeleteCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsVersionsDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsProductsIntegrationsVersionsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsProductsIntegrationsVersionsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.products.integrations.versions.delete" call. +// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsProductsIntegrationsVersionsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleProtobufEmpty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Soft-deletes the integration. Changes the status of the integration to ARCHIVED. If the integration being ARCHIVED is tagged as \"HEAD\", the tag is removed from this snapshot and set to the previous non-ARCHIVED snapshot. The PUBLISH_REQUESTED, DUE_FOR_DELETION tags are removed too. This RPC throws an exception if the version being deleted is DRAFT, and if the `locked_by` user is not the same as the user performing the Delete. Audit fields updated include last_modified_timestamp, last_modified_by. Any existing lock is released when Deleting a integration. Currently, there is no undelete mechanism.", + // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/versions/{versionsId}", + // "httpMethod": "DELETE", + // "id": "integrations.projects.locations.products.integrations.versions.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The version to delete. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/versions/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1alpha/{+name}", + // "response": { + // "$ref": "GoogleProtobufEmpty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "integrations.projects.locations.products.integrations.versions.download": type ProjectsLocationsProductsIntegrationsVersionsDownloadCall struct { @@ -22636,6 +23537,154 @@ func (c *ProjectsLocationsProductsIntegrationsVersionsTakeoverEditLockCall) Do(o } +// method id "integrations.projects.locations.products.integrations.versions.unpublish": + +type ProjectsLocationsProductsIntegrationsVersionsUnpublishCall struct { + s *Service + name string + googlecloudintegrationsv1alphaunpublishintegrationversionrequest *GoogleCloudIntegrationsV1alphaUnpublishIntegrationVersionRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Unpublish: Sets the status of the ACTIVE integration to SNAPSHOT with +// a new tag "PREVIOUSLY_PUBLISHED" after validating it. The "HEAD" and +// "PUBLISH_REQUESTED" tags do not change. This RPC throws an exception +// if the version being snapshot is not ACTIVE. Audit fields added +// include action, action_by, action_timestamp. +// +// - name: The version to deactivate. Format: +// projects/{project}/locations/{location}/integrations/{integration}/v +// ersions/{version}. +func (r *ProjectsLocationsProductsIntegrationsVersionsService) Unpublish(name string, googlecloudintegrationsv1alphaunpublishintegrationversionrequest *GoogleCloudIntegrationsV1alphaUnpublishIntegrationVersionRequest) *ProjectsLocationsProductsIntegrationsVersionsUnpublishCall { + c := &ProjectsLocationsProductsIntegrationsVersionsUnpublishCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudintegrationsv1alphaunpublishintegrationversionrequest = googlecloudintegrationsv1alphaunpublishintegrationversionrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsProductsIntegrationsVersionsUnpublishCall) Fields(s ...googleapi.Field) *ProjectsLocationsProductsIntegrationsVersionsUnpublishCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsProductsIntegrationsVersionsUnpublishCall) Context(ctx context.Context) *ProjectsLocationsProductsIntegrationsVersionsUnpublishCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsProductsIntegrationsVersionsUnpublishCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsProductsIntegrationsVersionsUnpublishCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudintegrationsv1alphaunpublishintegrationversionrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}:unpublish") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "integrations.projects.locations.products.integrations.versions.unpublish" call. +// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsProductsIntegrationsVersionsUnpublishCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleProtobufEmpty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Sets the status of the ACTIVE integration to SNAPSHOT with a new tag \"PREVIOUSLY_PUBLISHED\" after validating it. The \"HEAD\" and \"PUBLISH_REQUESTED\" tags do not change. This RPC throws an exception if the version being snapshot is not ACTIVE. Audit fields added include action, action_by, action_timestamp.", + // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/products/{productsId}/integrations/{integrationsId}/versions/{versionsId}:unpublish", + // "httpMethod": "POST", + // "id": "integrations.projects.locations.products.integrations.versions.unpublish", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The version to deactivate. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{version}", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/products/[^/]+/integrations/[^/]+/versions/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1alpha/{+name}:unpublish", + // "request": { + // "$ref": "GoogleCloudIntegrationsV1alphaUnpublishIntegrationVersionRequest" + // }, + // "response": { + // "$ref": "GoogleProtobufEmpty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "integrations.projects.locations.products.integrations.versions.updateBundle": type ProjectsLocationsProductsIntegrationsVersionsUpdateBundleCall struct { diff --git a/monitoring/v3/monitoring-api.json b/monitoring/v3/monitoring-api.json index eacec3dd04a..cac762165e4 100644 --- a/monitoring/v3/monitoring-api.json +++ b/monitoring/v3/monitoring-api.json @@ -2714,7 +2714,7 @@ } } }, - "revision": "20230115", + "revision": "20230123", "rootUrl": "https://monitoring.googleapis.com/", "schemas": { "Aggregation": { @@ -4629,7 +4629,7 @@ }, "forecastOptions": { "$ref": "ForecastOptions", - "description": "When this field is present, the MetricThreshold condition forecasts whether the time series is predicted to violate the threshold within the forecast_horizion. When this field is not set, the MetricThreshold tests the current value of the timeseries against the threshold." + "description": "When this field is present, the MetricThreshold condition forecasts whether the time series is predicted to violate the threshold within the forecast_horizon. When this field is not set, the MetricThreshold tests the current value of the timeseries against the threshold." }, "thresholdValue": { "description": "A value against which to compare the time series.", diff --git a/monitoring/v3/monitoring-gen.go b/monitoring/v3/monitoring-gen.go index 24a08abe5fc..013c2e34e4e 100644 --- a/monitoring/v3/monitoring-gen.go +++ b/monitoring/v3/monitoring-gen.go @@ -4092,7 +4092,7 @@ type MetricThreshold struct { // ForecastOptions: When this field is present, the MetricThreshold // condition forecasts whether the time series is predicted to violate - // the threshold within the forecast_horizion. When this field is not + // the threshold within the forecast_horizon. When this field is not // set, the MetricThreshold tests the current value of the timeseries // against the threshold. ForecastOptions *ForecastOptions `json:"forecastOptions,omitempty"` diff --git a/securitycenter/v1beta2/securitycenter-api.json b/securitycenter/v1beta2/securitycenter-api.json index 0f63b7a3fee..2c3b065a7c2 100644 --- a/securitycenter/v1beta2/securitycenter-api.json +++ b/securitycenter/v1beta2/securitycenter-api.json @@ -1981,7 +1981,7 @@ } } }, - "revision": "20221220", + "revision": "20230123", "rootUrl": "https://securitycenter.googleapis.com/", "schemas": { "Access": { @@ -2024,11 +2024,11 @@ "type": "string" }, "userAgentFamily": { - "description": "What kind of user agent is associated, e.g. operating system shells, embedded or stand-alone applications, etc.", + "description": "What kind of user agent is associated, for example operating system shells, embedded or stand-alone applications, etc.", "type": "string" }, "userName": { - "description": "A string representing a username. This is likely not an IAM principal. For instance, this may be the system user name if the finding is VM-related, or this may be some type of application login user name, depending on the type of finding.", + "description": "A string that represents the username of a user, user account, or other entity involved in the access event. What the entity is and what its role in the access event is depends on the finding that this field appears in. The entity is likely not an IAM principal, but could be a user that is logged into an operating system, if the finding is VM-related, or a user that is logged into some type of application that is involved in the access event.", "type": "string" } }, diff --git a/securitycenter/v1beta2/securitycenter-gen.go b/securitycenter/v1beta2/securitycenter-gen.go index 39655600b9c..ea64022581d 100644 --- a/securitycenter/v1beta2/securitycenter-gen.go +++ b/securitycenter/v1beta2/securitycenter-gen.go @@ -474,14 +474,17 @@ type Access struct { // call to, e.g. "iam.googleapis.com" ServiceName string `json:"serviceName,omitempty"` - // UserAgentFamily: What kind of user agent is associated, e.g. + // UserAgentFamily: What kind of user agent is associated, for example // operating system shells, embedded or stand-alone applications, etc. UserAgentFamily string `json:"userAgentFamily,omitempty"` - // UserName: A string representing a username. This is likely not an IAM - // principal. For instance, this may be the system user name if the - // finding is VM-related, or this may be some type of application login - // user name, depending on the type of finding. + // UserName: A string that represents the username of a user, user + // account, or other entity involved in the access event. What the + // entity is and what its role in the access event is depends on the + // finding that this field appears in. The entity is likely not an IAM + // principal, but could be a user that is logged into an operating + // system, if the finding is VM-related, or a user that is logged into + // some type of application that is involved in the access event. UserName string `json:"userName,omitempty"` // ForceSendFields is a list of field names (e.g. "CallerIp") to diff --git a/youtube/v3/youtube-api.json b/youtube/v3/youtube-api.json index 0c3d47a811d..b6f22ca402e 100644 --- a/youtube/v3/youtube-api.json +++ b/youtube/v3/youtube-api.json @@ -2412,7 +2412,7 @@ "type": "string" }, "hl": { - "description": "Returen content in specified language", + "description": "Return content in specified language", "location": "query", "type": "string" }, @@ -3831,7 +3831,7 @@ } } }, - "revision": "20221114", + "revision": "20230123", "rootUrl": "https://youtube.googleapis.com/", "schemas": { "AbuseReport": { diff --git a/youtube/v3/youtube-gen.go b/youtube/v3/youtube-gen.go index 6b47e948745..e22bc4e90a4 100644 --- a/youtube/v3/youtube-gen.go +++ b/youtube/v3/youtube-gen.go @@ -20025,7 +20025,7 @@ func (c *PlaylistsListCall) ChannelId(channelId string) *PlaylistsListCall { return c } -// Hl sets the optional parameter "hl": Returen content in specified +// Hl sets the optional parameter "hl": Return content in specified // language func (c *PlaylistsListCall) Hl(hl string) *PlaylistsListCall { c.urlParams_.Set("hl", hl) @@ -20214,7 +20214,7 @@ func (c *PlaylistsListCall) Do(opts ...googleapi.CallOption) (*PlaylistListRespo // "type": "string" // }, // "hl": { - // "description": "Returen content in specified language", + // "description": "Return content in specified language", // "location": "query", // "type": "string" // },