Skip to content

Commit

Permalink
feat(cloudsearch): update the API
Browse files Browse the repository at this point in the history
#### cloudsearch:v1

The following keys were added:
- schemas.DynamiteMessagesScoringInfo.properties.commonContactCount.format
- schemas.DynamiteMessagesScoringInfo.properties.commonContactCount.type
- schemas.DynamiteMessagesScoringInfo.properties.commonCountToContactListCountRatio.format
- schemas.DynamiteMessagesScoringInfo.properties.commonCountToContactListCountRatio.type
- schemas.DynamiteMessagesScoringInfo.properties.commonCountToMembershipCountRatio.format
- schemas.DynamiteMessagesScoringInfo.properties.commonCountToMembershipCountRatio.type
- schemas.DynamiteMessagesScoringInfo.properties.creatorGaiaId.format
- schemas.DynamiteMessagesScoringInfo.properties.creatorGaiaId.type
- schemas.DynamiteMessagesScoringInfo.properties.creatorInSearcherContactList.type
- schemas.DynamiteMessagesScoringInfo.properties.dasContactCount.format
- schemas.DynamiteMessagesScoringInfo.properties.dasContactCount.type
- schemas.DynamiteMessagesScoringInfo.properties.spaceId.format
- schemas.DynamiteMessagesScoringInfo.properties.spaceId.type
- schemas.DynamiteMessagesScoringInfo.properties.spaceMembershipCount.format
- schemas.DynamiteMessagesScoringInfo.properties.spaceMembershipCount.type

The following keys were changed:
- schemas.Annotation.properties.requiredMessageFeaturesMetadata.description
- schemas.AppsDynamiteSharedBackendUploadMetadata.properties.dlpScanOutcome.enum
- schemas.AppsDynamiteSharedBackendUploadMetadata.properties.dlpScanOutcome.enumDescriptions
- schemas.DlpScanSummary.properties.scanOutcome.enum
- schemas.DlpScanSummary.properties.scanOutcome.enumDescriptions
- schemas.Message.properties.dlpScanOutcome.enum
- schemas.Message.properties.dlpScanOutcome.enumDescriptions
  • Loading branch information
yoshi-automation authored and sofisl committed Feb 9, 2023
1 parent 3e7b5ff commit e743154
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 3 deletions.
41 changes: 39 additions & 2 deletions discovery/cloudsearch-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -2077,7 +2077,7 @@
}
}
},
"revision": "20230117",
"revision": "20230124",
"rootUrl": "https://cloudsearch.googleapis.com/",
"schemas": {
"AbuseReportingConfig": {
Expand Down Expand Up @@ -2396,7 +2396,7 @@
},
"requiredMessageFeaturesMetadata": {
"$ref": "RequiredMessageFeaturesMetadata",
"description": "Metadata that defines all of the required features that must be rendered in the message. Clients can use this to see whether they support the entire message, or show a fallback chip otherwise. See go/message-quoting-client-to-server for details. LINT.ThenChange( //depot/google3/java/com/google/apps/dynamite/v1/allshared/parser/AnnotationSanitizer.java, //depot/google3/java/com/google/apps/dynamite/v1/backend/action/common/SystemMessageHelper.java, //depot/google3/java/com/google/caribou/eli/mediation/chat/AnnotationTranslator.java )"
"description": "Metadata that defines all of the required features that must be rendered in the message. Clients can use this to see whether they support the entire message, or show a fallback chip otherwise. See go/message-quoting-client-to-server for details. LINT.ThenChange( //depot/google3/java/com/google/apps/dynamite/v1/allshared/parser/AnnotationSanitizer.java, //depot/google3/java/com/google/apps/dynamite/v1/backend/action/common/SystemMessageHelper.java, //depot/google3/java/com/google/caribou/eli/mediation/chat/AnnotationConverter.java )"
},
"roomUpdated": {
"$ref": "RoomUpdatedMetadata"
Expand Down Expand Up @@ -2830,6 +2830,7 @@
"SCAN_SKIPPED_NO_MESSAGE",
"SCAN_SKIPPED_USER_ACKNOWLEDGED_WARNING",
"SCAN_SKIPPED_MESSAGE_FROM_UNSUPPORTED_ORIGIN",
"SCAN_SKIPPED_MESSAGE_SENT_DURING_SPACE_MIGRATION",
"SCAN_RULE_EVALUATION_SKIPPED_NO_RULES_FOUND",
"SCAN_RULE_EVALUATION_SKIPPED_NO_APPLICABLE_RULES_FOR_ACTION_PARAMS",
"SCAN_RULE_EVALUATION_SKIPPED_NO_APPLICABLE_RULES_FOR_TRIGGER",
Expand Down Expand Up @@ -2858,6 +2859,7 @@
"Rule fetch and evaluation are skipped because there is no message to scan. Deprecated: this should not happen since there must be message or attachment for DLP scan.",
"Rule fetch and evaluation are skipped because the user has acknowledged the warning on the message that triggered the Warn violation and sent the message anyway.",
"Scanning was skipped because the message originated from Interop or Babel.",
"Scanning was skipped because the message was sent while the space is in migration mode. See go/migration-mode for details.",
"Rule fetch happened, but rule evaluation is skipped because no rules were found.",
"Rule fetch happened, but rule evaluation is skipped because none of the rules are applicable to the given action params.",
"Rule fetch happened, but rule evaluation is skipped because none of the rules are applicable to the given trigger.",
Expand Down Expand Up @@ -7161,6 +7163,7 @@
"SCAN_SKIPPED_NO_MESSAGE",
"SCAN_SKIPPED_USER_ACKNOWLEDGED_WARNING",
"SCAN_SKIPPED_MESSAGE_FROM_UNSUPPORTED_ORIGIN",
"SCAN_SKIPPED_MESSAGE_SENT_DURING_SPACE_MIGRATION",
"SCAN_RULE_EVALUATION_SKIPPED_NO_RULES_FOUND",
"SCAN_RULE_EVALUATION_SKIPPED_NO_APPLICABLE_RULES_FOR_ACTION_PARAMS",
"SCAN_RULE_EVALUATION_SKIPPED_NO_APPLICABLE_RULES_FOR_TRIGGER",
Expand Down Expand Up @@ -7189,6 +7192,7 @@
"Rule fetch and evaluation are skipped because there is no message to scan. Deprecated: this should not happen since there must be message or attachment for DLP scan.",
"Rule fetch and evaluation are skipped because the user has acknowledged the warning on the message that triggered the Warn violation and sent the message anyway.",
"Scanning was skipped because the message originated from Interop or Babel.",
"Scanning was skipped because the message was sent while the space is in migration mode. See go/migration-mode for details.",
"Rule fetch happened, but rule evaluation is skipped because no rules were found.",
"Rule fetch happened, but rule evaluation is skipped because none of the rules are applicable to the given action params.",
"Rule fetch happened, but rule evaluation is skipped because none of the rules are applicable to the given trigger.",
Expand Down Expand Up @@ -7520,6 +7524,29 @@
"description": "This is the proto for holding message level scoring information. This data is used for logging in query-api server and for testing purposes.",
"id": "DynamiteMessagesScoringInfo",
"properties": {
"commonContactCount": {
"format": "int64",
"type": "string"
},
"commonCountToContactListCountRatio": {
"format": "double",
"type": "number"
},
"commonCountToMembershipCountRatio": {
"format": "double",
"type": "number"
},
"creatorGaiaId": {
"format": "int64",
"type": "string"
},
"creatorInSearcherContactList": {
"type": "boolean"
},
"dasContactCount": {
"format": "int64",
"type": "string"
},
"finalScore": {
"format": "double",
"type": "number"
Expand All @@ -7540,6 +7567,14 @@
"format": "double",
"type": "number"
},
"spaceId": {
"format": "int64",
"type": "string"
},
"spaceMembershipCount": {
"format": "int64",
"type": "string"
},
"topicalityScore": {
"format": "double",
"type": "number"
Expand Down Expand Up @@ -12725,6 +12760,7 @@
"SCAN_SKIPPED_NO_MESSAGE",
"SCAN_SKIPPED_USER_ACKNOWLEDGED_WARNING",
"SCAN_SKIPPED_MESSAGE_FROM_UNSUPPORTED_ORIGIN",
"SCAN_SKIPPED_MESSAGE_SENT_DURING_SPACE_MIGRATION",
"SCAN_RULE_EVALUATION_SKIPPED_NO_RULES_FOUND",
"SCAN_RULE_EVALUATION_SKIPPED_NO_APPLICABLE_RULES_FOR_ACTION_PARAMS",
"SCAN_RULE_EVALUATION_SKIPPED_NO_APPLICABLE_RULES_FOR_TRIGGER",
Expand Down Expand Up @@ -12753,6 +12789,7 @@
"Rule fetch and evaluation are skipped because there is no message to scan. Deprecated: this should not happen since there must be message or attachment for DLP scan.",
"Rule fetch and evaluation are skipped because the user has acknowledged the warning on the message that triggered the Warn violation and sent the message anyway.",
"Scanning was skipped because the message originated from Interop or Babel.",
"Scanning was skipped because the message was sent while the space is in migration mode. See go/migration-mode for details.",
"Rule fetch happened, but rule evaluation is skipped because no rules were found.",
"Rule fetch happened, but rule evaluation is skipped because none of the rules are applicable to the given action params.",
"Rule fetch happened, but rule evaluation is skipped because none of the rules are applicable to the given trigger.",
Expand Down
10 changes: 9 additions & 1 deletion src/apis/cloudsearch/v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ export namespace cloudsearch_v1 {
membershipChanged?: Schema$MembershipChangedMetadata;
readReceiptsSettingsMetadata?: Schema$ReadReceiptsSettingsUpdatedMetadata;
/**
* Metadata that defines all of the required features that must be rendered in the message. Clients can use this to see whether they support the entire message, or show a fallback chip otherwise. See go/message-quoting-client-to-server for details. LINT.ThenChange( //depot/google3/java/com/google/apps/dynamite/v1/allshared/parser/AnnotationSanitizer.java, //depot/google3/java/com/google/apps/dynamite/v1/backend/action/common/SystemMessageHelper.java, //depot/google3/java/com/google/caribou/eli/mediation/chat/AnnotationTranslator.java )
* Metadata that defines all of the required features that must be rendered in the message. Clients can use this to see whether they support the entire message, or show a fallback chip otherwise. See go/message-quoting-client-to-server for details. LINT.ThenChange( //depot/google3/java/com/google/apps/dynamite/v1/allshared/parser/AnnotationSanitizer.java, //depot/google3/java/com/google/apps/dynamite/v1/backend/action/common/SystemMessageHelper.java, //depot/google3/java/com/google/caribou/eli/mediation/chat/AnnotationConverter.java )
*/
requiredMessageFeaturesMetadata?: Schema$RequiredMessageFeaturesMetadata;
roomUpdated?: Schema$RoomUpdatedMetadata;
Expand Down Expand Up @@ -3392,11 +3392,19 @@ export namespace cloudsearch_v1 {
* This is the proto for holding message level scoring information. This data is used for logging in query-api server and for testing purposes.
*/
export interface Schema$DynamiteMessagesScoringInfo {
commonContactCount?: string | null;
commonCountToContactListCountRatio?: number | null;
commonCountToMembershipCountRatio?: number | null;
creatorGaiaId?: string | null;
creatorInSearcherContactList?: boolean | null;
dasContactCount?: string | null;
finalScore?: number | null;
freshnessScore?: number | null;
joinedSpaceAffinityScore?: number | null;
messageAgeInDays?: number | null;
messageSenderAffinityScore?: number | null;
spaceId?: string | null;
spaceMembershipCount?: string | null;
topicalityScore?: number | null;
unjoinedSpaceAffinityScore?: number | null;
}
Expand Down

0 comments on commit e743154

Please sign in to comment.