diff --git a/aiplatform/v1/aiplatform-api.json b/aiplatform/v1/aiplatform-api.json index 203864d1b15..8ab7b4a735d 100644 --- a/aiplatform/v1/aiplatform-api.json +++ b/aiplatform/v1/aiplatform-api.json @@ -12998,7 +12998,7 @@ } } }, - "revision": "20231012", + "revision": "20231023", "rootUrl": "https://aiplatform.googleapis.com/", "schemas": { "GoogleApiHttpBody": { @@ -14711,7 +14711,7 @@ "type": "string" }, "protectedArtifactLocationId": { - "description": "The ID of the location to store protected artifacts. e.g. us-central1. Populate only when the location is different than CustomJob location. For unprotected artifacts, the value of this field is ignored. List of supported locations: https://cloud.google.com/vertex-ai/docs/general/locations", + "description": "The ID of the location to store protected artifacts. e.g. us-central1. Populate only when the location is different than CustomJob location. List of supported locations: https://cloud.google.com/vertex-ai/docs/general/locations", "type": "string" }, "reservedIpRanges": { @@ -26815,7 +26815,7 @@ "type": "object" }, "GoogleCloudAiplatformV1Study": { - "description": "A message representing a Study.", + "description": "A message representing a Study. Next id: 12", "id": "GoogleCloudAiplatformV1Study", "properties": { "createTime": { @@ -26933,6 +26933,10 @@ "$ref": "GoogleCloudAiplatformV1StudySpecParameterSpec" }, "type": "array" + }, + "studyStoppingConfig": { + "$ref": "GoogleCloudAiplatformV1StudySpecStudyStoppingConfig", + "description": "Conditions for automated stopping of a Study. Enable automated stopping by configuring at least one condition." } }, "type": "object" @@ -27238,6 +27242,62 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1StudySpecStudyStoppingConfig": { + "description": "The configuration (stopping conditions) for automated stopping of a Study. Conditions include trial budgets, time budgets, and convergence detection.", + "id": "GoogleCloudAiplatformV1StudySpecStudyStoppingConfig", + "properties": { + "maxDurationNoProgress": { + "description": "If the objective value has not improved for this much time, stop the study. WARNING: Effective only for single-objective studies.", + "format": "google-duration", + "type": "string" + }, + "maxNumTrials": { + "description": "If there are more than this many trials, stop the study.", + "format": "int32", + "type": "integer" + }, + "maxNumTrialsNoProgress": { + "description": "If the objective value has not improved for this many consecutive trials, stop the study. WARNING: Effective only for single-objective studies.", + "format": "int32", + "type": "integer" + }, + "maximumRuntimeConstraint": { + "$ref": "GoogleCloudAiplatformV1StudyTimeConstraint", + "description": "If the specified time or duration has passed, stop the study." + }, + "minNumTrials": { + "description": "If there are fewer than this many COMPLETED trials, do not stop the study.", + "format": "int32", + "type": "integer" + }, + "minimumRuntimeConstraint": { + "$ref": "GoogleCloudAiplatformV1StudyTimeConstraint", + "description": "Each \"stopping rule\" in this proto specifies an \"if\" condition. Before Vizier would generate a new suggestion, it first checks each specified stopping rule, from top to bottom in this list. Note that the first few rules (e.g. minimum_runtime_constraint, min_num_trials) will prevent other stopping rules from being evaluated until they are met. For example, setting `min_num_trials=5` and `always_stop_after= 1 hour` means that the Study will ONLY stop after it has 5 COMPLETED trials, even if more than an hour has passed since its creation. It follows the first applicable rule (whose \"if\" condition is satisfied) to make a stopping decision. If none of the specified rules are applicable, then Vizier decides that the study should not stop. If Vizier decides that the study should stop, the study enters STOPPING state (or STOPPING_ASAP if should_stop_asap = true). IMPORTANT: The automatic study state transition happens precisely as described above; that is, deleting trials or updating StudyConfig NEVER automatically moves the study state back to ACTIVE. If you want to _resume_ a Study that was stopped, 1) change the stopping conditions if necessary, 2) activate the study, and then 3) ask for suggestions. If the specified time or duration has not passed, do not stop the study." + }, + "shouldStopAsap": { + "description": "If true, a Study enters STOPPING_ASAP whenever it would normally enters STOPPING state. The bottom line is: set to true if you want to interrupt on-going evaluations of Trials as soon as the study stopping condition is met. (Please see Study.State documentation for the source of truth).", + "type": "boolean" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1StudyTimeConstraint": { + "description": "Time-based Constraint for Study", + "id": "GoogleCloudAiplatformV1StudyTimeConstraint", + "properties": { + "endTime": { + "description": "Compares the wallclock time to this time. Must use UTC timezone.", + "format": "google-datetime", + "type": "string" + }, + "maxDuration": { + "description": "Counts the wallclock time passed since the creation of this Study.", + "format": "google-duration", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1SuggestTrialsMetadata": { "description": "Details of operations that perform Trials suggestion.", "id": "GoogleCloudAiplatformV1SuggestTrialsMetadata", diff --git a/aiplatform/v1/aiplatform-gen.go b/aiplatform/v1/aiplatform-gen.go index 7687a4a879b..1ff83557183 100644 --- a/aiplatform/v1/aiplatform-gen.go +++ b/aiplatform/v1/aiplatform-gen.go @@ -4424,8 +4424,7 @@ type GoogleCloudAiplatformV1CustomJobSpec struct { // ProtectedArtifactLocationId: The ID of the location to store // protected artifacts. e.g. us-central1. Populate only when the - // location is different than CustomJob location. For unprotected - // artifacts, the value of this field is ignored. List of supported + // location is different than CustomJob location. List of supported // locations: https://cloud.google.com/vertex-ai/docs/general/locations ProtectedArtifactLocationId string `json:"protectedArtifactLocationId,omitempty"` @@ -27498,7 +27497,8 @@ func (s *GoogleCloudAiplatformV1StringArray) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudAiplatformV1Study: A message representing a Study. +// GoogleCloudAiplatformV1Study: A message representing a Study. Next +// id: 12 type GoogleCloudAiplatformV1Study struct { // CreateTime: Output only. Time at which the study was created. CreateTime string `json:"createTime,omitempty"` @@ -27615,6 +27615,10 @@ type GoogleCloudAiplatformV1StudySpec struct { // Parameters: Required. The set of parameters to tune. Parameters []*GoogleCloudAiplatformV1StudySpecParameterSpec `json:"parameters,omitempty"` + // StudyStoppingConfig: Conditions for automated stopping of a Study. + // Enable automated stopping by configuring at least one condition. + StudyStoppingConfig *GoogleCloudAiplatformV1StudySpecStudyStoppingConfig `json:"studyStoppingConfig,omitempty"` + // ForceSendFields is a list of field names (e.g. "Algorithm") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -28311,6 +28315,121 @@ func (s *GoogleCloudAiplatformV1StudySpecParameterSpecIntegerValueSpec) MarshalJ return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1StudySpecStudyStoppingConfig: The +// configuration (stopping conditions) for automated stopping of a +// Study. Conditions include trial budgets, time budgets, and +// convergence detection. +type GoogleCloudAiplatformV1StudySpecStudyStoppingConfig struct { + // MaxDurationNoProgress: If the objective value has not improved for + // this much time, stop the study. WARNING: Effective only for + // single-objective studies. + MaxDurationNoProgress string `json:"maxDurationNoProgress,omitempty"` + + // MaxNumTrials: If there are more than this many trials, stop the + // study. + MaxNumTrials int64 `json:"maxNumTrials,omitempty"` + + // MaxNumTrialsNoProgress: If the objective value has not improved for + // this many consecutive trials, stop the study. WARNING: Effective only + // for single-objective studies. + MaxNumTrialsNoProgress int64 `json:"maxNumTrialsNoProgress,omitempty"` + + // MaximumRuntimeConstraint: If the specified time or duration has + // passed, stop the study. + MaximumRuntimeConstraint *GoogleCloudAiplatformV1StudyTimeConstraint `json:"maximumRuntimeConstraint,omitempty"` + + // MinNumTrials: If there are fewer than this many COMPLETED trials, do + // not stop the study. + MinNumTrials int64 `json:"minNumTrials,omitempty"` + + // MinimumRuntimeConstraint: Each "stopping rule" in this proto + // specifies an "if" condition. Before Vizier would generate a new + // suggestion, it first checks each specified stopping rule, from top to + // bottom in this list. Note that the first few rules (e.g. + // minimum_runtime_constraint, min_num_trials) will prevent other + // stopping rules from being evaluated until they are met. For example, + // setting `min_num_trials=5` and `always_stop_after= 1 hour` means that + // the Study will ONLY stop after it has 5 COMPLETED trials, even if + // more than an hour has passed since its creation. It follows the first + // applicable rule (whose "if" condition is satisfied) to make a + // stopping decision. If none of the specified rules are applicable, + // then Vizier decides that the study should not stop. If Vizier decides + // that the study should stop, the study enters STOPPING state (or + // STOPPING_ASAP if should_stop_asap = true). IMPORTANT: The automatic + // study state transition happens precisely as described above; that is, + // deleting trials or updating StudyConfig NEVER automatically moves the + // study state back to ACTIVE. If you want to _resume_ a Study that was + // stopped, 1) change the stopping conditions if necessary, 2) activate + // the study, and then 3) ask for suggestions. If the specified time or + // duration has not passed, do not stop the study. + MinimumRuntimeConstraint *GoogleCloudAiplatformV1StudyTimeConstraint `json:"minimumRuntimeConstraint,omitempty"` + + // ShouldStopAsap: If true, a Study enters STOPPING_ASAP whenever it + // would normally enters STOPPING state. The bottom line is: set to true + // if you want to interrupt on-going evaluations of Trials as soon as + // the study stopping condition is met. (Please see Study.State + // documentation for the source of truth). + ShouldStopAsap bool `json:"shouldStopAsap,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "MaxDurationNoProgress") 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. "MaxDurationNoProgress") 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 *GoogleCloudAiplatformV1StudySpecStudyStoppingConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1StudySpecStudyStoppingConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1StudyTimeConstraint: Time-based Constraint for +// Study +type GoogleCloudAiplatformV1StudyTimeConstraint struct { + // EndTime: Compares the wallclock time to this time. Must use UTC + // timezone. + EndTime string `json:"endTime,omitempty"` + + // MaxDuration: Counts the wallclock time passed since the creation of + // this Study. + MaxDuration string `json:"maxDuration,omitempty"` + + // ForceSendFields is a list of field names (e.g. "EndTime") 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. "EndTime") 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 *GoogleCloudAiplatformV1StudyTimeConstraint) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1StudyTimeConstraint + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1SuggestTrialsMetadata: Details of operations // that perform Trials suggestion. type GoogleCloudAiplatformV1SuggestTrialsMetadata struct { diff --git a/aiplatform/v1beta1/aiplatform-api.json b/aiplatform/v1beta1/aiplatform-api.json index 98fda2df0e5..802250b068d 100644 --- a/aiplatform/v1beta1/aiplatform-api.json +++ b/aiplatform/v1beta1/aiplatform-api.json @@ -16094,7 +16094,7 @@ } } }, - "revision": "20231012", + "revision": "20231023", "rootUrl": "https://aiplatform.googleapis.com/", "schemas": { "GoogleApiHttpBody": { @@ -17987,7 +17987,7 @@ "type": "string" }, "protectedArtifactLocationId": { - "description": "The ID of the location to store protected artifacts. e.g. us-central1. Populate only when the location is different than CustomJob location. For unprotected artifacts, the value of this field is ignored. List of supported locations: https://cloud.google.com/vertex-ai/docs/general/locations", + "description": "The ID of the location to store protected artifacts. e.g. us-central1. Populate only when the location is different than CustomJob location. List of supported locations: https://cloud.google.com/vertex-ai/docs/general/locations", "type": "string" }, "reservedIpRanges": { @@ -31302,7 +31302,7 @@ "type": "object" }, "GoogleCloudAiplatformV1beta1Study": { - "description": "A message representing a Study.", + "description": "A message representing a Study. Next id: 12", "id": "GoogleCloudAiplatformV1beta1Study", "properties": { "createTime": { @@ -31426,6 +31426,10 @@ }, "type": "array" }, + "studyStoppingConfig": { + "$ref": "GoogleCloudAiplatformV1beta1StudySpecStudyStoppingConfig", + "description": "Conditions for automated stopping of a Study. Enable automated stopping by configuring at least one condition." + }, "transferLearningConfig": { "$ref": "GoogleCloudAiplatformV1beta1StudySpecTransferLearningConfig", "description": "The configuration info/options for transfer learning. Currently supported for Vertex AI Vizier service, not HyperParameterTuningJob" @@ -31765,6 +31769,45 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1beta1StudySpecStudyStoppingConfig": { + "description": "The configuration (stopping conditions) for automated stopping of a Study. Conditions include trial budgets, time budgets, and convergence detection.", + "id": "GoogleCloudAiplatformV1beta1StudySpecStudyStoppingConfig", + "properties": { + "maxDurationNoProgress": { + "description": "If the objective value has not improved for this much time, stop the study. WARNING: Effective only for single-objective studies.", + "format": "google-duration", + "type": "string" + }, + "maxNumTrials": { + "description": "If there are more than this many trials, stop the study.", + "format": "int32", + "type": "integer" + }, + "maxNumTrialsNoProgress": { + "description": "If the objective value has not improved for this many consecutive trials, stop the study. WARNING: Effective only for single-objective studies.", + "format": "int32", + "type": "integer" + }, + "maximumRuntimeConstraint": { + "$ref": "GoogleCloudAiplatformV1beta1StudyTimeConstraint", + "description": "If the specified time or duration has passed, stop the study." + }, + "minNumTrials": { + "description": "If there are fewer than this many COMPLETED trials, do not stop the study.", + "format": "int32", + "type": "integer" + }, + "minimumRuntimeConstraint": { + "$ref": "GoogleCloudAiplatformV1beta1StudyTimeConstraint", + "description": "Each \"stopping rule\" in this proto specifies an \"if\" condition. Before Vizier would generate a new suggestion, it first checks each specified stopping rule, from top to bottom in this list. Note that the first few rules (e.g. minimum_runtime_constraint, min_num_trials) will prevent other stopping rules from being evaluated until they are met. For example, setting `min_num_trials=5` and `always_stop_after= 1 hour` means that the Study will ONLY stop after it has 5 COMPLETED trials, even if more than an hour has passed since its creation. It follows the first applicable rule (whose \"if\" condition is satisfied) to make a stopping decision. If none of the specified rules are applicable, then Vizier decides that the study should not stop. If Vizier decides that the study should stop, the study enters STOPPING state (or STOPPING_ASAP if should_stop_asap = true). IMPORTANT: The automatic study state transition happens precisely as described above; that is, deleting trials or updating StudyConfig NEVER automatically moves the study state back to ACTIVE. If you want to _resume_ a Study that was stopped, 1) change the stopping conditions if necessary, 2) activate the study, and then 3) ask for suggestions. If the specified time or duration has not passed, do not stop the study." + }, + "shouldStopAsap": { + "description": "If true, a Study enters STOPPING_ASAP whenever it would normally enters STOPPING state. The bottom line is: set to true if you want to interrupt on-going evaluations of Trials as soon as the study stopping condition is met. (Please see Study.State documentation for the source of truth).", + "type": "boolean" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1StudySpecTransferLearningConfig": { "description": "This contains flag for manually disabling transfer learning for a study. The names of prior studies being used for transfer learning (if any) are also listed here.", "id": "GoogleCloudAiplatformV1beta1StudySpecTransferLearningConfig", @@ -31784,6 +31827,23 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1beta1StudyTimeConstraint": { + "description": "Time-based Constraint for Study", + "id": "GoogleCloudAiplatformV1beta1StudyTimeConstraint", + "properties": { + "endTime": { + "description": "Compares the wallclock time to this time. Must use UTC timezone.", + "format": "google-datetime", + "type": "string" + }, + "maxDuration": { + "description": "Counts the wallclock time passed since the creation of this Study.", + "format": "google-duration", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1SuggestTrialsMetadata": { "description": "Details of operations that perform Trials suggestion.", "id": "GoogleCloudAiplatformV1beta1SuggestTrialsMetadata", diff --git a/aiplatform/v1beta1/aiplatform-gen.go b/aiplatform/v1beta1/aiplatform-gen.go index 11e8e216be9..c79bfb18e09 100644 --- a/aiplatform/v1beta1/aiplatform-gen.go +++ b/aiplatform/v1beta1/aiplatform-gen.go @@ -5156,8 +5156,7 @@ type GoogleCloudAiplatformV1beta1CustomJobSpec struct { // ProtectedArtifactLocationId: The ID of the location to store // protected artifacts. e.g. us-central1. Populate only when the - // location is different than CustomJob location. For unprotected - // artifacts, the value of this field is ignored. List of supported + // location is different than CustomJob location. List of supported // locations: https://cloud.google.com/vertex-ai/docs/general/locations ProtectedArtifactLocationId string `json:"protectedArtifactLocationId,omitempty"` @@ -30641,6 +30640,7 @@ func (s *GoogleCloudAiplatformV1beta1StringArray) MarshalJSON() ([]byte, error) } // GoogleCloudAiplatformV1beta1Study: A message representing a Study. +// Next id: 12 type GoogleCloudAiplatformV1beta1Study struct { // CreateTime: Output only. Time at which the study was created. CreateTime string `json:"createTime,omitempty"` @@ -30761,6 +30761,10 @@ type GoogleCloudAiplatformV1beta1StudySpec struct { // Parameters: Required. The set of parameters to tune. Parameters []*GoogleCloudAiplatformV1beta1StudySpecParameterSpec `json:"parameters,omitempty"` + // StudyStoppingConfig: Conditions for automated stopping of a Study. + // Enable automated stopping by configuring at least one condition. + StudyStoppingConfig *GoogleCloudAiplatformV1beta1StudySpecStudyStoppingConfig `json:"studyStoppingConfig,omitempty"` + // TransferLearningConfig: The configuration info/options for transfer // learning. Currently supported for Vertex AI Vizier service, not // HyperParameterTuningJob @@ -31522,6 +31526,87 @@ func (s *GoogleCloudAiplatformV1beta1StudySpecParameterSpecIntegerValueSpec) Mar return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1beta1StudySpecStudyStoppingConfig: The +// configuration (stopping conditions) for automated stopping of a +// Study. Conditions include trial budgets, time budgets, and +// convergence detection. +type GoogleCloudAiplatformV1beta1StudySpecStudyStoppingConfig struct { + // MaxDurationNoProgress: If the objective value has not improved for + // this much time, stop the study. WARNING: Effective only for + // single-objective studies. + MaxDurationNoProgress string `json:"maxDurationNoProgress,omitempty"` + + // MaxNumTrials: If there are more than this many trials, stop the + // study. + MaxNumTrials int64 `json:"maxNumTrials,omitempty"` + + // MaxNumTrialsNoProgress: If the objective value has not improved for + // this many consecutive trials, stop the study. WARNING: Effective only + // for single-objective studies. + MaxNumTrialsNoProgress int64 `json:"maxNumTrialsNoProgress,omitempty"` + + // MaximumRuntimeConstraint: If the specified time or duration has + // passed, stop the study. + MaximumRuntimeConstraint *GoogleCloudAiplatformV1beta1StudyTimeConstraint `json:"maximumRuntimeConstraint,omitempty"` + + // MinNumTrials: If there are fewer than this many COMPLETED trials, do + // not stop the study. + MinNumTrials int64 `json:"minNumTrials,omitempty"` + + // MinimumRuntimeConstraint: Each "stopping rule" in this proto + // specifies an "if" condition. Before Vizier would generate a new + // suggestion, it first checks each specified stopping rule, from top to + // bottom in this list. Note that the first few rules (e.g. + // minimum_runtime_constraint, min_num_trials) will prevent other + // stopping rules from being evaluated until they are met. For example, + // setting `min_num_trials=5` and `always_stop_after= 1 hour` means that + // the Study will ONLY stop after it has 5 COMPLETED trials, even if + // more than an hour has passed since its creation. It follows the first + // applicable rule (whose "if" condition is satisfied) to make a + // stopping decision. If none of the specified rules are applicable, + // then Vizier decides that the study should not stop. If Vizier decides + // that the study should stop, the study enters STOPPING state (or + // STOPPING_ASAP if should_stop_asap = true). IMPORTANT: The automatic + // study state transition happens precisely as described above; that is, + // deleting trials or updating StudyConfig NEVER automatically moves the + // study state back to ACTIVE. If you want to _resume_ a Study that was + // stopped, 1) change the stopping conditions if necessary, 2) activate + // the study, and then 3) ask for suggestions. If the specified time or + // duration has not passed, do not stop the study. + MinimumRuntimeConstraint *GoogleCloudAiplatformV1beta1StudyTimeConstraint `json:"minimumRuntimeConstraint,omitempty"` + + // ShouldStopAsap: If true, a Study enters STOPPING_ASAP whenever it + // would normally enters STOPPING state. The bottom line is: set to true + // if you want to interrupt on-going evaluations of Trials as soon as + // the study stopping condition is met. (Please see Study.State + // documentation for the source of truth). + ShouldStopAsap bool `json:"shouldStopAsap,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "MaxDurationNoProgress") 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. "MaxDurationNoProgress") 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 *GoogleCloudAiplatformV1beta1StudySpecStudyStoppingConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1StudySpecStudyStoppingConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1beta1StudySpecTransferLearningConfig: This // contains flag for manually disabling transfer learning for a study. // The names of prior studies being used for transfer learning (if any) @@ -31560,6 +31645,40 @@ func (s *GoogleCloudAiplatformV1beta1StudySpecTransferLearningConfig) MarshalJSO return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1beta1StudyTimeConstraint: Time-based +// Constraint for Study +type GoogleCloudAiplatformV1beta1StudyTimeConstraint struct { + // EndTime: Compares the wallclock time to this time. Must use UTC + // timezone. + EndTime string `json:"endTime,omitempty"` + + // MaxDuration: Counts the wallclock time passed since the creation of + // this Study. + MaxDuration string `json:"maxDuration,omitempty"` + + // ForceSendFields is a list of field names (e.g. "EndTime") 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. "EndTime") 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 *GoogleCloudAiplatformV1beta1StudyTimeConstraint) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1StudyTimeConstraint + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1beta1SuggestTrialsMetadata: Details of // operations that perform Trials suggestion. type GoogleCloudAiplatformV1beta1SuggestTrialsMetadata struct { diff --git a/api-list.json b/api-list.json index da7ab17d554..6c90ba44999 100644 --- a/api-list.json +++ b/api-list.json @@ -796,6 +796,21 @@ "documentationLink": "https://cloud.google.com/", "preferred": true }, + { + "kind": "discovery#directoryItem", + "id": "biglake:v1", + "name": "biglake", + "version": "v1", + "title": "BigLake API", + "description": "The BigLake API provides access to BigLake Metastore, a serverless, fully managed, and highly available metastore for open-source data that can be used for querying Apache Iceberg tables in BigQuery.", + "discoveryRestUrl": "https://biglake.googleapis.com/$discovery/rest?version=v1", + "icons": { + "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", + "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" + }, + "documentationLink": "https://cloud.google.com/bigquery/", + "preferred": true + }, { "kind": "discovery#directoryItem", "id": "bigquery:v2", diff --git a/appengine/v1/appengine-api.json b/appengine/v1/appengine-api.json index 9cc272c0540..5eda718c29c 100644 --- a/appengine/v1/appengine-api.json +++ b/appengine/v1/appengine-api.json @@ -1610,7 +1610,7 @@ } } }, - "revision": "20231016", + "revision": "20231024", "rootUrl": "https://appengine.googleapis.com/", "schemas": { "ApiConfigHandler": { @@ -3829,6 +3829,14 @@ "$ref": "FlexibleRuntimeSettings", "description": "Settings for App Engine flexible runtimes." }, + "generatedCustomerMetadata": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL.", + "type": "any" + }, + "description": "Additional Google Generated Customer Metadata, this field won't be provided by default and can be requested by setting the IncludeExtraData field in GetVersionRequest", + "type": "object" + }, "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/v1/appengine-gen.go b/appengine/v1/appengine-gen.go index ccbef315cac..542047cd1e0 100644 --- a/appengine/v1/appengine-gen.go +++ b/appengine/v1/appengine-gen.go @@ -3913,6 +3913,11 @@ type Version struct { // FlexibleRuntimeSettings: Settings for App Engine flexible runtimes. FlexibleRuntimeSettings *FlexibleRuntimeSettings `json:"flexibleRuntimeSettings,omitempty"` + // GeneratedCustomerMetadata: Additional Google Generated Customer + // Metadata, this field won't be provided by default and can be + // requested by setting the IncludeExtraData field in GetVersionRequest + GeneratedCustomerMetadata googleapi.RawMessage `json:"generatedCustomerMetadata,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/biglake/v1/biglake-api.json b/biglake/v1/biglake-api.json new file mode 100644 index 00000000000..b4117f31bd7 --- /dev/null +++ b/biglake/v1/biglake-api.json @@ -0,0 +1,910 @@ +{ + "auth": { + "oauth2": { + "scopes": { + "https://www.googleapis.com/auth/bigquery": { + "description": "View and manage your data in Google BigQuery and see the email address for your Google Account" + }, + "https://www.googleapis.com/auth/cloud-platform": { + "description": "See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account." + } + } + } + }, + "basePath": "", + "baseUrl": "https://biglake.googleapis.com/", + "batchPath": "batch", + "canonicalName": "BigLake Service", + "description": "The BigLake API provides access to BigLake Metastore, a serverless, fully managed, and highly available metastore for open-source data that can be used for querying Apache Iceberg tables in BigQuery.", + "discoveryVersion": "v1", + "documentationLink": "https://cloud.google.com/bigquery/", + "fullyEncodeReservedExpansion": true, + "icons": { + "x16": "http://www.google.com/images/icons/product/search-16.gif", + "x32": "http://www.google.com/images/icons/product/search-32.gif" + }, + "id": "biglake:v1", + "kind": "discovery#restDescription", + "mtlsRootUrl": "https://biglake.mtls.googleapis.com/", + "name": "biglake", + "ownerDomain": "google.com", + "ownerName": "Google", + "parameters": { + "$.xgafv": { + "description": "V1 error format.", + "enum": [ + "1", + "2" + ], + "enumDescriptions": [ + "v1 error format", + "v2 error format" + ], + "location": "query", + "type": "string" + }, + "access_token": { + "description": "OAuth access token.", + "location": "query", + "type": "string" + }, + "alt": { + "default": "json", + "description": "Data format for response.", + "enum": [ + "json", + "media", + "proto" + ], + "enumDescriptions": [ + "Responses with Content-Type of application/json", + "Media download with context-dependent Content-Type", + "Responses with Content-Type of application/x-protobuf" + ], + "location": "query", + "type": "string" + }, + "callback": { + "description": "JSONP", + "location": "query", + "type": "string" + }, + "fields": { + "description": "Selector specifying which fields to include in a partial response.", + "location": "query", + "type": "string" + }, + "key": { + "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.", + "location": "query", + "type": "string" + }, + "oauth_token": { + "description": "OAuth 2.0 token for the current user.", + "location": "query", + "type": "string" + }, + "prettyPrint": { + "default": "true", + "description": "Returns response with indentations and line breaks.", + "location": "query", + "type": "boolean" + }, + "quotaUser": { + "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.", + "location": "query", + "type": "string" + }, + "uploadType": { + "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").", + "location": "query", + "type": "string" + }, + "upload_protocol": { + "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").", + "location": "query", + "type": "string" + } + }, + "protocol": "rest", + "resources": { + "projects": { + "resources": { + "locations": { + "resources": { + "catalogs": { + "methods": { + "create": { + "description": "Creates a new catalog.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/catalogs", + "httpMethod": "POST", + "id": "biglake.projects.locations.catalogs.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "catalogId": { + "description": "Required. The ID to use for the catalog, which will become the final component of the catalog's resource name.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent resource where this catalog will be created. Format: projects/{project_id_or_number}/locations/{location_id}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/catalogs", + "request": { + "$ref": "Catalog" + }, + "response": { + "$ref": "Catalog" + }, + "scopes": [ + "https://www.googleapis.com/auth/bigquery", + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes an existing catalog specified by the catalog ID.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}", + "httpMethod": "DELETE", + "id": "biglake.projects.locations.catalogs.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the catalog to delete. Format: projects/{project_id_or_number}/locations/{location_id}/catalogs/{catalog_id}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/catalogs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "Catalog" + }, + "scopes": [ + "https://www.googleapis.com/auth/bigquery", + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets the catalog specified by the resource name.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}", + "httpMethod": "GET", + "id": "biglake.projects.locations.catalogs.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the catalog to retrieve. Format: projects/{project_id_or_number}/locations/{location_id}/catalogs/{catalog_id}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/catalogs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "Catalog" + }, + "scopes": [ + "https://www.googleapis.com/auth/bigquery", + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "List all catalogs in a specified project.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/catalogs", + "httpMethod": "GET", + "id": "biglake.projects.locations.catalogs.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "The maximum number of catalogs to return. The service may return fewer than this value. If unspecified, at most 50 catalogs 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 `ListCatalogs` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListCatalogs` must match the call that provided the page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent, which owns this collection of catalogs. Format: projects/{project_id_or_number}/locations/{location_id}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/catalogs", + "response": { + "$ref": "ListCatalogsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/bigquery", + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, + "resources": { + "databases": { + "methods": { + "create": { + "description": "Creates a new database.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/databases", + "httpMethod": "POST", + "id": "biglake.projects.locations.catalogs.databases.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "databaseId": { + "description": "Required. The ID to use for the database, which will become the final component of the database's resource name.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent resource where this database will be created. Format: projects/{project_id_or_number}/locations/{location_id}/catalogs/{catalog_id}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/catalogs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/databases", + "request": { + "$ref": "Database" + }, + "response": { + "$ref": "Database" + }, + "scopes": [ + "https://www.googleapis.com/auth/bigquery", + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes an existing database specified by the database ID.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/databases/{databasesId}", + "httpMethod": "DELETE", + "id": "biglake.projects.locations.catalogs.databases.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the database to delete. Format: projects/{project_id_or_number}/locations/{location_id}/catalogs/{catalog_id}/databases/{database_id}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/databases/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "Database" + }, + "scopes": [ + "https://www.googleapis.com/auth/bigquery", + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets the database specified by the resource name.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/databases/{databasesId}", + "httpMethod": "GET", + "id": "biglake.projects.locations.catalogs.databases.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the database to retrieve. Format: projects/{project_id_or_number}/locations/{location_id}/catalogs/{catalog_id}/databases/{database_id}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/databases/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "Database" + }, + "scopes": [ + "https://www.googleapis.com/auth/bigquery", + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "List all databases in a specified catalog.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/databases", + "httpMethod": "GET", + "id": "biglake.projects.locations.catalogs.databases.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "The maximum number of databases to return. The service may return fewer than this value. If unspecified, at most 50 databases 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 `ListDatabases` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListDatabases` must match the call that provided the page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent, which owns this collection of databases. Format: projects/{project_id_or_number}/locations/{location_id}/catalogs/{catalog_id}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/catalogs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/databases", + "response": { + "$ref": "ListDatabasesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/bigquery", + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates an existing database specified by the database ID.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/databases/{databasesId}", + "httpMethod": "PATCH", + "id": "biglake.projects.locations.catalogs.databases.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Output only. The resource name. Format: projects/{project_id_or_number}/locations/{location_id}/catalogs/{catalog_id}/databases/{database_id}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/databases/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "The list of fields to update. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask If not set, defaults to all of the fields that are allowed to update.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "Database" + }, + "response": { + "$ref": "Database" + }, + "scopes": [ + "https://www.googleapis.com/auth/bigquery", + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, + "resources": { + "tables": { + "methods": { + "create": { + "description": "Creates a new table.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/databases/{databasesId}/tables", + "httpMethod": "POST", + "id": "biglake.projects.locations.catalogs.databases.tables.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The parent resource where this table will be created. Format: projects/{project_id_or_number}/locations/{location_id}/catalogs/{catalog_id}/databases/{database_id}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/databases/[^/]+$", + "required": true, + "type": "string" + }, + "tableId": { + "description": "Required. The ID to use for the table, which will become the final component of the table's resource name.", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+parent}/tables", + "request": { + "$ref": "Table" + }, + "response": { + "$ref": "Table" + }, + "scopes": [ + "https://www.googleapis.com/auth/bigquery", + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes an existing table specified by the table ID.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/databases/{databasesId}/tables/{tablesId}", + "httpMethod": "DELETE", + "id": "biglake.projects.locations.catalogs.databases.tables.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the table to delete. Format: projects/{project_id_or_number}/locations/{location_id}/catalogs/{catalog_id}/databases/{database_id}/tables/{table_id}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/databases/[^/]+/tables/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "Table" + }, + "scopes": [ + "https://www.googleapis.com/auth/bigquery", + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets the table specified by the resource name.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/databases/{databasesId}/tables/{tablesId}", + "httpMethod": "GET", + "id": "biglake.projects.locations.catalogs.databases.tables.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the table to retrieve. Format: projects/{project_id_or_number}/locations/{location_id}/catalogs/{catalog_id}/databases/{database_id}/tables/{table_id}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/databases/[^/]+/tables/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "Table" + }, + "scopes": [ + "https://www.googleapis.com/auth/bigquery", + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "List all tables in a specified database.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/databases/{databasesId}/tables", + "httpMethod": "GET", + "id": "biglake.projects.locations.catalogs.databases.tables.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "The maximum number of tables to return. The service may return fewer than this value. If unspecified, at most 50 tables 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 `ListTables` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListTables` must match the call that provided the page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent, which owns this collection of tables. Format: projects/{project_id_or_number}/locations/{location_id}/catalogs/{catalog_id}/databases/{database_id}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/databases/[^/]+$", + "required": true, + "type": "string" + }, + "view": { + "description": "The view for the returned tables.", + "enum": [ + "TABLE_VIEW_UNSPECIFIED", + "BASIC", + "FULL" + ], + "enumDescriptions": [ + "Default value. The API will default to the BASIC view.", + "Include only table names. This is the default value.", + "Include everything." + ], + "location": "query", + "type": "string" + } + }, + "path": "v1/{+parent}/tables", + "response": { + "$ref": "ListTablesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/bigquery", + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates an existing table specified by the table ID.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/databases/{databasesId}/tables/{tablesId}", + "httpMethod": "PATCH", + "id": "biglake.projects.locations.catalogs.databases.tables.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Output only. The resource name. Format: projects/{project_id_or_number}/locations/{location_id}/catalogs/{catalog_id}/databases/{database_id}/tables/{table_id}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/databases/[^/]+/tables/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "The list of fields to update. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask If not set, defaults to all of the fields that are allowed to update.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "Table" + }, + "response": { + "$ref": "Table" + }, + "scopes": [ + "https://www.googleapis.com/auth/bigquery", + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "rename": { + "description": "Renames an existing table specified by the table ID.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/databases/{databasesId}/tables/{tablesId}:rename", + "httpMethod": "POST", + "id": "biglake.projects.locations.catalogs.databases.tables.rename", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The table's `name` field is used to identify the table to rename. Format: projects/{project_id_or_number}/locations/{location_id}/catalogs/{catalog_id}/databases/{database_id}/tables/{table_id}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/databases/[^/]+/tables/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:rename", + "request": { + "$ref": "RenameTableRequest" + }, + "response": { + "$ref": "Table" + }, + "scopes": [ + "https://www.googleapis.com/auth/bigquery", + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } + } + } + } + } + } + } + } + }, + "revision": "20231016", + "rootUrl": "https://biglake.googleapis.com/", + "schemas": { + "Catalog": { + "description": "Catalog is the container of databases.", + "id": "Catalog", + "properties": { + "createTime": { + "description": "Output only. The creation time of the catalog.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "deleteTime": { + "description": "Output only. The deletion time of the catalog. Only set after the catalog is deleted.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "expireTime": { + "description": "Output only. The time when this catalog is considered expired. Only set after the catalog is deleted.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "name": { + "description": "Output only. The resource name. Format: projects/{project_id_or_number}/locations/{location_id}/catalogs/{catalog_id}", + "readOnly": true, + "type": "string" + }, + "updateTime": { + "description": "Output only. The last modification time of the catalog.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "Database": { + "description": "Database is the container of tables.", + "id": "Database", + "properties": { + "createTime": { + "description": "Output only. The creation time of the database.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "deleteTime": { + "description": "Output only. The deletion time of the database. Only set after the database is deleted.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "expireTime": { + "description": "Output only. The time when this database is considered expired. Only set after the database is deleted.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "hiveOptions": { + "$ref": "HiveDatabaseOptions", + "description": "Options of a Hive database." + }, + "name": { + "description": "Output only. The resource name. Format: projects/{project_id_or_number}/locations/{location_id}/catalogs/{catalog_id}/databases/{database_id}", + "readOnly": true, + "type": "string" + }, + "type": { + "description": "The database type.", + "enum": [ + "TYPE_UNSPECIFIED", + "HIVE" + ], + "enumDescriptions": [ + "The type is not specified.", + "Represents a database storing tables compatible with Hive Metastore tables." + ], + "type": "string" + }, + "updateTime": { + "description": "Output only. The last modification time of the database.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "HiveDatabaseOptions": { + "description": "Options of a Hive database.", + "id": "HiveDatabaseOptions", + "properties": { + "locationUri": { + "description": "Cloud Storage folder URI where the database data is stored, starting with \"gs://\".", + "type": "string" + }, + "parameters": { + "additionalProperties": { + "type": "string" + }, + "description": "Stores user supplied Hive database parameters.", + "type": "object" + } + }, + "type": "object" + }, + "HiveTableOptions": { + "description": "Options of a Hive table.", + "id": "HiveTableOptions", + "properties": { + "parameters": { + "additionalProperties": { + "type": "string" + }, + "description": "Stores user supplied Hive table parameters.", + "type": "object" + }, + "storageDescriptor": { + "$ref": "StorageDescriptor", + "description": "Stores physical storage information of the data." + }, + "tableType": { + "description": "Hive table type. For example, MANAGED_TABLE, EXTERNAL_TABLE.", + "type": "string" + } + }, + "type": "object" + }, + "ListCatalogsResponse": { + "description": "Response message for the ListCatalogs method.", + "id": "ListCatalogsResponse", + "properties": { + "catalogs": { + "description": "The catalogs from the specified project.", + "items": { + "$ref": "Catalog" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.", + "type": "string" + } + }, + "type": "object" + }, + "ListDatabasesResponse": { + "description": "Response message for the ListDatabases method.", + "id": "ListDatabasesResponse", + "properties": { + "databases": { + "description": "The databases from the specified catalog.", + "items": { + "$ref": "Database" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.", + "type": "string" + } + }, + "type": "object" + }, + "ListTablesResponse": { + "description": "Response message for the ListTables method.", + "id": "ListTablesResponse", + "properties": { + "nextPageToken": { + "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.", + "type": "string" + }, + "tables": { + "description": "The tables from the specified database.", + "items": { + "$ref": "Table" + }, + "type": "array" + } + }, + "type": "object" + }, + "RenameTableRequest": { + "description": "Request message for the RenameTable method in MetastoreService", + "id": "RenameTableRequest", + "properties": { + "newName": { + "description": "Required. The new `name` for the specified table, must be in the same database. Format: projects/{project_id_or_number}/locations/{location_id}/catalogs/{catalog_id}/databases/{database_id}/tables/{table_id}", + "type": "string" + } + }, + "type": "object" + }, + "SerDeInfo": { + "description": "Serializer and deserializer information.", + "id": "SerDeInfo", + "properties": { + "serializationLib": { + "description": "The fully qualified Java class name of the serialization library.", + "type": "string" + } + }, + "type": "object" + }, + "StorageDescriptor": { + "description": "Stores physical storage information of the data.", + "id": "StorageDescriptor", + "properties": { + "inputFormat": { + "description": "The fully qualified Java class name of the input format.", + "type": "string" + }, + "locationUri": { + "description": "Cloud Storage folder URI where the table data is stored, starting with \"gs://\".", + "type": "string" + }, + "outputFormat": { + "description": "The fully qualified Java class name of the output format.", + "type": "string" + }, + "serdeInfo": { + "$ref": "SerDeInfo", + "description": "Serializer and deserializer information." + } + }, + "type": "object" + }, + "Table": { + "description": "Represents a table.", + "id": "Table", + "properties": { + "createTime": { + "description": "Output only. The creation time of the table.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "deleteTime": { + "description": "Output only. The deletion time of the table. Only set after the table is deleted.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "etag": { + "description": "The checksum of a table object computed by the server based on the value of other fields. It may be sent on update requests to ensure the client has an up-to-date value before proceeding. It is only checked for update table operations.", + "type": "string" + }, + "expireTime": { + "description": "Output only. The time when this table is considered expired. Only set after the table is deleted.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "hiveOptions": { + "$ref": "HiveTableOptions", + "description": "Options of a Hive table." + }, + "name": { + "description": "Output only. The resource name. Format: projects/{project_id_or_number}/locations/{location_id}/catalogs/{catalog_id}/databases/{database_id}/tables/{table_id}", + "readOnly": true, + "type": "string" + }, + "type": { + "description": "The table type.", + "enum": [ + "TYPE_UNSPECIFIED", + "HIVE" + ], + "enumDescriptions": [ + "The type is not specified.", + "Represents a table compatible with Hive Metastore tables." + ], + "type": "string" + }, + "updateTime": { + "description": "Output only. The last modification time of the table.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + } + }, + "servicePath": "", + "title": "BigLake API", + "version": "v1", + "version_module": true +} \ No newline at end of file diff --git a/biglake/v1/biglake-gen.go b/biglake/v1/biglake-gen.go new file mode 100644 index 00000000000..b5f828bf554 --- /dev/null +++ b/biglake/v1/biglake-gen.go @@ -0,0 +1,3092 @@ +// Copyright 2023 Google LLC. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Code generated file. DO NOT EDIT. + +// Package biglake provides access to the BigLake API. +// +// For product documentation, see: https://cloud.google.com/bigquery/ +// +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// +// # Creating a client +// +// Usage example: +// +// import "google.golang.org/api/biglake/v1" +// ... +// ctx := context.Background() +// biglakeService, err := biglake.NewService(ctx) +// +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// +// # Other authentication options +// +// By default, all available scopes (see "Constants") are used to authenticate. +// To restrict scopes, use [google.golang.org/api/option.WithScopes]: +// +// biglakeService, err := biglake.NewService(ctx, option.WithScopes(biglake.CloudPlatformScope)) +// +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: +// +// biglakeService, err := biglake.NewService(ctx, option.WithAPIKey("AIza...")) +// +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: +// +// config := &oauth2.Config{...} +// // ... +// token, err := config.Exchange(ctx, ...) +// biglakeService, err := biglake.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) +// +// See [google.golang.org/api/option.ClientOption] for details on options. +package biglake // import "google.golang.org/api/biglake/v1" + +import ( + "bytes" + "context" + "encoding/json" + "errors" + "fmt" + "io" + "net/http" + "net/url" + "strconv" + "strings" + + googleapi "google.golang.org/api/googleapi" + internal "google.golang.org/api/internal" + gensupport "google.golang.org/api/internal/gensupport" + option "google.golang.org/api/option" + internaloption "google.golang.org/api/option/internaloption" + htransport "google.golang.org/api/transport/http" +) + +// Always reference these packages, just in case the auto-generated code +// below doesn't. +var _ = bytes.NewBuffer +var _ = strconv.Itoa +var _ = fmt.Sprintf +var _ = json.NewDecoder +var _ = io.Copy +var _ = url.Parse +var _ = gensupport.MarshalJSON +var _ = googleapi.Version +var _ = errors.New +var _ = strings.Replace +var _ = context.Canceled +var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version + +const apiId = "biglake:v1" +const apiName = "biglake" +const apiVersion = "v1" +const basePath = "https://biglake.googleapis.com/" +const mtlsBasePath = "https://biglake.mtls.googleapis.com/" + +// OAuth2 scopes used by this API. +const ( + // View and manage your data in Google BigQuery and see the email + // address for your Google Account + BigqueryScope = "https://www.googleapis.com/auth/bigquery" + + // See, edit, configure, and delete your Google Cloud data and see the + // email address for your Google Account. + CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform" +) + +// NewService creates a new Service. +func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { + scopesOption := internaloption.WithDefaultScopes( + "https://www.googleapis.com/auth/bigquery", + "https://www.googleapis.com/auth/cloud-platform", + ) + // NOTE: prepend, so we don't override user-specified scopes. + opts = append([]option.ClientOption{scopesOption}, opts...) + opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath)) + client, endpoint, err := htransport.NewClient(ctx, opts...) + if err != nil { + return nil, err + } + s, err := New(client) + if err != nil { + return nil, err + } + if endpoint != "" { + s.BasePath = endpoint + } + return s, nil +} + +// New creates a new Service. It uses the provided http.Client for requests. +// +// Deprecated: please use NewService instead. +// To provide a custom HTTP client, use option.WithHTTPClient. +// If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead. +func New(client *http.Client) (*Service, error) { + if client == nil { + return nil, errors.New("client is nil") + } + s := &Service{client: client, BasePath: basePath} + s.Projects = NewProjectsService(s) + return s, nil +} + +type Service struct { + client *http.Client + BasePath string // API endpoint base URL + UserAgent string // optional additional User-Agent fragment + + Projects *ProjectsService +} + +func (s *Service) userAgent() string { + if s.UserAgent == "" { + return googleapi.UserAgent + } + return googleapi.UserAgent + " " + s.UserAgent +} + +func NewProjectsService(s *Service) *ProjectsService { + rs := &ProjectsService{s: s} + rs.Locations = NewProjectsLocationsService(s) + return rs +} + +type ProjectsService struct { + s *Service + + Locations *ProjectsLocationsService +} + +func NewProjectsLocationsService(s *Service) *ProjectsLocationsService { + rs := &ProjectsLocationsService{s: s} + rs.Catalogs = NewProjectsLocationsCatalogsService(s) + return rs +} + +type ProjectsLocationsService struct { + s *Service + + Catalogs *ProjectsLocationsCatalogsService +} + +func NewProjectsLocationsCatalogsService(s *Service) *ProjectsLocationsCatalogsService { + rs := &ProjectsLocationsCatalogsService{s: s} + rs.Databases = NewProjectsLocationsCatalogsDatabasesService(s) + return rs +} + +type ProjectsLocationsCatalogsService struct { + s *Service + + Databases *ProjectsLocationsCatalogsDatabasesService +} + +func NewProjectsLocationsCatalogsDatabasesService(s *Service) *ProjectsLocationsCatalogsDatabasesService { + rs := &ProjectsLocationsCatalogsDatabasesService{s: s} + rs.Tables = NewProjectsLocationsCatalogsDatabasesTablesService(s) + return rs +} + +type ProjectsLocationsCatalogsDatabasesService struct { + s *Service + + Tables *ProjectsLocationsCatalogsDatabasesTablesService +} + +func NewProjectsLocationsCatalogsDatabasesTablesService(s *Service) *ProjectsLocationsCatalogsDatabasesTablesService { + rs := &ProjectsLocationsCatalogsDatabasesTablesService{s: s} + return rs +} + +type ProjectsLocationsCatalogsDatabasesTablesService struct { + s *Service +} + +// Catalog: Catalog is the container of databases. +type Catalog struct { + // CreateTime: Output only. The creation time of the catalog. + CreateTime string `json:"createTime,omitempty"` + + // DeleteTime: Output only. The deletion time of the catalog. Only set + // after the catalog is deleted. + DeleteTime string `json:"deleteTime,omitempty"` + + // ExpireTime: Output only. The time when this catalog is considered + // expired. Only set after the catalog is deleted. + ExpireTime string `json:"expireTime,omitempty"` + + // Name: Output only. The resource name. Format: + // projects/{project_id_or_number}/locations/{location_id}/catalogs/{cata + // log_id} + Name string `json:"name,omitempty"` + + // UpdateTime: Output only. The last modification time of the catalog. + UpdateTime string `json:"updateTime,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "CreateTime") 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. "CreateTime") 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 *Catalog) MarshalJSON() ([]byte, error) { + type NoMethod Catalog + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Database: Database is the container of tables. +type Database struct { + // CreateTime: Output only. The creation time of the database. + CreateTime string `json:"createTime,omitempty"` + + // DeleteTime: Output only. The deletion time of the database. Only set + // after the database is deleted. + DeleteTime string `json:"deleteTime,omitempty"` + + // ExpireTime: Output only. The time when this database is considered + // expired. Only set after the database is deleted. + ExpireTime string `json:"expireTime,omitempty"` + + // HiveOptions: Options of a Hive database. + HiveOptions *HiveDatabaseOptions `json:"hiveOptions,omitempty"` + + // Name: Output only. The resource name. Format: + // projects/{project_id_or_number}/locations/{location_id}/catalogs/{cata + // log_id}/databases/{database_id} + Name string `json:"name,omitempty"` + + // Type: The database type. + // + // Possible values: + // "TYPE_UNSPECIFIED" - The type is not specified. + // "HIVE" - Represents a database storing tables compatible with Hive + // Metastore tables. + Type string `json:"type,omitempty"` + + // UpdateTime: Output only. The last modification time of the database. + UpdateTime string `json:"updateTime,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "CreateTime") 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. "CreateTime") 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 *Database) MarshalJSON() ([]byte, error) { + type NoMethod Database + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// HiveDatabaseOptions: Options of a Hive database. +type HiveDatabaseOptions struct { + // LocationUri: Cloud Storage folder URI where the database data is + // stored, starting with "gs://". + LocationUri string `json:"locationUri,omitempty"` + + // Parameters: Stores user supplied Hive database parameters. + Parameters map[string]string `json:"parameters,omitempty"` + + // ForceSendFields is a list of field names (e.g. "LocationUri") 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. "LocationUri") 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 *HiveDatabaseOptions) MarshalJSON() ([]byte, error) { + type NoMethod HiveDatabaseOptions + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// HiveTableOptions: Options of a Hive table. +type HiveTableOptions struct { + // Parameters: Stores user supplied Hive table parameters. + Parameters map[string]string `json:"parameters,omitempty"` + + // StorageDescriptor: Stores physical storage information of the data. + StorageDescriptor *StorageDescriptor `json:"storageDescriptor,omitempty"` + + // TableType: Hive table type. For example, MANAGED_TABLE, + // EXTERNAL_TABLE. + TableType string `json:"tableType,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Parameters") 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. "Parameters") 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 *HiveTableOptions) MarshalJSON() ([]byte, error) { + type NoMethod HiveTableOptions + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ListCatalogsResponse: Response message for the ListCatalogs method. +type ListCatalogsResponse struct { + // Catalogs: The catalogs from the specified project. + Catalogs []*Catalog `json:"catalogs,omitempty"` + + // NextPageToken: A token, which can be sent as `page_token` to retrieve + // the next page. If this field is omitted, there are no subsequent + // pages. + NextPageToken string `json:"nextPageToken,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Catalogs") 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. "Catalogs") 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 *ListCatalogsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListCatalogsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ListDatabasesResponse: Response message for the ListDatabases method. +type ListDatabasesResponse struct { + // Databases: The databases from the specified catalog. + Databases []*Database `json:"databases,omitempty"` + + // NextPageToken: A token, which can be sent as `page_token` to retrieve + // the next page. If this field is omitted, there are no subsequent + // pages. + NextPageToken string `json:"nextPageToken,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Databases") 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. "Databases") 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 *ListDatabasesResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListDatabasesResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ListTablesResponse: Response message for the ListTables method. +type ListTablesResponse struct { + // NextPageToken: A token, which can be sent as `page_token` to retrieve + // the next page. If this field is omitted, there are no subsequent + // pages. + NextPageToken string `json:"nextPageToken,omitempty"` + + // Tables: The tables from the specified database. + Tables []*Table `json:"tables,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "NextPageToken") 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. "NextPageToken") 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 *ListTablesResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListTablesResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// RenameTableRequest: Request message for the RenameTable method in +// MetastoreService +type RenameTableRequest struct { + // NewName: Required. The new `name` for the specified table, must be in + // the same database. Format: + // projects/{project_id_or_number}/locations/{location_id}/catalogs/{cata + // log_id}/databases/{database_id}/tables/{table_id} + NewName string `json:"newName,omitempty"` + + // ForceSendFields is a list of field names (e.g. "NewName") 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. "NewName") 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 *RenameTableRequest) MarshalJSON() ([]byte, error) { + type NoMethod RenameTableRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// SerDeInfo: Serializer and deserializer information. +type SerDeInfo struct { + // SerializationLib: The fully qualified Java class name of the + // serialization library. + SerializationLib string `json:"serializationLib,omitempty"` + + // ForceSendFields is a list of field names (e.g. "SerializationLib") 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. "SerializationLib") 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 *SerDeInfo) MarshalJSON() ([]byte, error) { + type NoMethod SerDeInfo + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// StorageDescriptor: Stores physical storage information of the data. +type StorageDescriptor struct { + // InputFormat: The fully qualified Java class name of the input format. + InputFormat string `json:"inputFormat,omitempty"` + + // LocationUri: Cloud Storage folder URI where the table data is stored, + // starting with "gs://". + LocationUri string `json:"locationUri,omitempty"` + + // OutputFormat: The fully qualified Java class name of the output + // format. + OutputFormat string `json:"outputFormat,omitempty"` + + // SerdeInfo: Serializer and deserializer information. + SerdeInfo *SerDeInfo `json:"serdeInfo,omitempty"` + + // ForceSendFields is a list of field names (e.g. "InputFormat") 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. "InputFormat") 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 *StorageDescriptor) MarshalJSON() ([]byte, error) { + type NoMethod StorageDescriptor + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Table: Represents a table. +type Table struct { + // CreateTime: Output only. The creation time of the table. + CreateTime string `json:"createTime,omitempty"` + + // DeleteTime: Output only. The deletion time of the table. Only set + // after the table is deleted. + DeleteTime string `json:"deleteTime,omitempty"` + + // Etag: The checksum of a table object computed by the server based on + // the value of other fields. It may be sent on update requests to + // ensure the client has an up-to-date value before proceeding. It is + // only checked for update table operations. + Etag string `json:"etag,omitempty"` + + // ExpireTime: Output only. The time when this table is considered + // expired. Only set after the table is deleted. + ExpireTime string `json:"expireTime,omitempty"` + + // HiveOptions: Options of a Hive table. + HiveOptions *HiveTableOptions `json:"hiveOptions,omitempty"` + + // Name: Output only. The resource name. Format: + // projects/{project_id_or_number}/locations/{location_id}/catalogs/{cata + // log_id}/databases/{database_id}/tables/{table_id} + Name string `json:"name,omitempty"` + + // Type: The table type. + // + // Possible values: + // "TYPE_UNSPECIFIED" - The type is not specified. + // "HIVE" - Represents a table compatible with Hive Metastore tables. + Type string `json:"type,omitempty"` + + // UpdateTime: Output only. The last modification time of the table. + UpdateTime string `json:"updateTime,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "CreateTime") 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. "CreateTime") 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 *Table) MarshalJSON() ([]byte, error) { + type NoMethod Table + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// method id "biglake.projects.locations.catalogs.create": + +type ProjectsLocationsCatalogsCreateCall struct { + s *Service + parent string + catalog *Catalog + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a new catalog. +// +// - parent: The parent resource where this catalog will be created. +// Format: projects/{project_id_or_number}/locations/{location_id}. +func (r *ProjectsLocationsCatalogsService) Create(parent string, catalog *Catalog) *ProjectsLocationsCatalogsCreateCall { + c := &ProjectsLocationsCatalogsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.catalog = catalog + return c +} + +// CatalogId sets the optional parameter "catalogId": Required. The ID +// to use for the catalog, which will become the final component of the +// catalog's resource name. +func (c *ProjectsLocationsCatalogsCreateCall) CatalogId(catalogId string) *ProjectsLocationsCatalogsCreateCall { + c.urlParams_.Set("catalogId", catalogId) + 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 *ProjectsLocationsCatalogsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsCatalogsCreateCall { + 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 *ProjectsLocationsCatalogsCreateCall) Context(ctx context.Context) *ProjectsLocationsCatalogsCreateCall { + 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 *ProjectsLocationsCatalogsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCatalogsCreateCall) 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.catalog) + 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/{+parent}/catalogs") + 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{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "biglake.projects.locations.catalogs.create" call. +// Exactly one of *Catalog or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Catalog.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 *ProjectsLocationsCatalogsCreateCall) Do(opts ...googleapi.CallOption) (*Catalog, 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 := &Catalog{ + 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": "Creates a new catalog.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/catalogs", + // "httpMethod": "POST", + // "id": "biglake.projects.locations.catalogs.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "catalogId": { + // "description": "Required. The ID to use for the catalog, which will become the final component of the catalog's resource name.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The parent resource where this catalog will be created. Format: projects/{project_id_or_number}/locations/{location_id}", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/catalogs", + // "request": { + // "$ref": "Catalog" + // }, + // "response": { + // "$ref": "Catalog" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/bigquery", + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "biglake.projects.locations.catalogs.delete": + +type ProjectsLocationsCatalogsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes an existing catalog specified by the catalog ID. +// +// - name: The name of the catalog to delete. Format: +// projects/{project_id_or_number}/locations/{location_id}/catalogs/{ca +// talog_id}. +func (r *ProjectsLocationsCatalogsService) Delete(name string) *ProjectsLocationsCatalogsDeleteCall { + c := &ProjectsLocationsCatalogsDeleteCall{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 *ProjectsLocationsCatalogsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsCatalogsDeleteCall { + 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 *ProjectsLocationsCatalogsDeleteCall) Context(ctx context.Context) *ProjectsLocationsCatalogsDeleteCall { + 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 *ProjectsLocationsCatalogsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCatalogsDeleteCall) 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, "v1/{+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 "biglake.projects.locations.catalogs.delete" call. +// Exactly one of *Catalog or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Catalog.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 *ProjectsLocationsCatalogsDeleteCall) Do(opts ...googleapi.CallOption) (*Catalog, 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 := &Catalog{ + 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": "Deletes an existing catalog specified by the catalog ID.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}", + // "httpMethod": "DELETE", + // "id": "biglake.projects.locations.catalogs.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the catalog to delete. Format: projects/{project_id_or_number}/locations/{location_id}/catalogs/{catalog_id}", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/catalogs/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "Catalog" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/bigquery", + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "biglake.projects.locations.catalogs.get": + +type ProjectsLocationsCatalogsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets the catalog specified by the resource name. +// +// - name: The name of the catalog to retrieve. Format: +// projects/{project_id_or_number}/locations/{location_id}/catalogs/{ca +// talog_id}. +func (r *ProjectsLocationsCatalogsService) Get(name string) *ProjectsLocationsCatalogsGetCall { + c := &ProjectsLocationsCatalogsGetCall{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 *ProjectsLocationsCatalogsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCatalogsGetCall { + 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 *ProjectsLocationsCatalogsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCatalogsGetCall { + 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 *ProjectsLocationsCatalogsGetCall) Context(ctx context.Context) *ProjectsLocationsCatalogsGetCall { + 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 *ProjectsLocationsCatalogsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCatalogsGetCall) 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, "v1/{+name}") + 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 "biglake.projects.locations.catalogs.get" call. +// Exactly one of *Catalog or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Catalog.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 *ProjectsLocationsCatalogsGetCall) Do(opts ...googleapi.CallOption) (*Catalog, 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 := &Catalog{ + 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": "Gets the catalog specified by the resource name.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}", + // "httpMethod": "GET", + // "id": "biglake.projects.locations.catalogs.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the catalog to retrieve. Format: projects/{project_id_or_number}/locations/{location_id}/catalogs/{catalog_id}", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/catalogs/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "Catalog" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/bigquery", + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "biglake.projects.locations.catalogs.list": + +type ProjectsLocationsCatalogsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: List all catalogs in a specified project. +// +// - parent: The parent, which owns this collection of catalogs. Format: +// projects/{project_id_or_number}/locations/{location_id}. +func (r *ProjectsLocationsCatalogsService) List(parent string) *ProjectsLocationsCatalogsListCall { + c := &ProjectsLocationsCatalogsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of catalogs to return. The service may return fewer than this value. +// If unspecified, at most 50 catalogs will be returned. The maximum +// value is 1000; values above 1000 will be coerced to 1000. +func (c *ProjectsLocationsCatalogsListCall) PageSize(pageSize int64) *ProjectsLocationsCatalogsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token, +// received from a previous `ListCatalogs` call. Provide this to +// retrieve the subsequent page. When paginating, all other parameters +// provided to `ListCatalogs` must match the call that provided the page +// token. +func (c *ProjectsLocationsCatalogsListCall) PageToken(pageToken string) *ProjectsLocationsCatalogsListCall { + 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 *ProjectsLocationsCatalogsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCatalogsListCall { + 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 *ProjectsLocationsCatalogsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCatalogsListCall { + 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 *ProjectsLocationsCatalogsListCall) Context(ctx context.Context) *ProjectsLocationsCatalogsListCall { + 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 *ProjectsLocationsCatalogsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCatalogsListCall) 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, "v1/{+parent}/catalogs") + 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 "biglake.projects.locations.catalogs.list" call. +// Exactly one of *ListCatalogsResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ListCatalogsResponse.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 *ProjectsLocationsCatalogsListCall) Do(opts ...googleapi.CallOption) (*ListCatalogsResponse, 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 := &ListCatalogsResponse{ + 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": "List all catalogs in a specified project.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/catalogs", + // "httpMethod": "GET", + // "id": "biglake.projects.locations.catalogs.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "pageSize": { + // "description": "The maximum number of catalogs to return. The service may return fewer than this value. If unspecified, at most 50 catalogs 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 `ListCatalogs` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListCatalogs` must match the call that provided the page token.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The parent, which owns this collection of catalogs. Format: projects/{project_id_or_number}/locations/{location_id}", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/catalogs", + // "response": { + // "$ref": "ListCatalogsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/bigquery", + // "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 *ProjectsLocationsCatalogsListCall) Pages(ctx context.Context, f func(*ListCatalogsResponse) 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 "biglake.projects.locations.catalogs.databases.create": + +type ProjectsLocationsCatalogsDatabasesCreateCall struct { + s *Service + parent string + database *Database + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a new database. +// +// - parent: The parent resource where this database will be created. +// Format: +// projects/{project_id_or_number}/locations/{location_id}/catalogs/{ca +// talog_id}. +func (r *ProjectsLocationsCatalogsDatabasesService) Create(parent string, database *Database) *ProjectsLocationsCatalogsDatabasesCreateCall { + c := &ProjectsLocationsCatalogsDatabasesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.database = database + return c +} + +// DatabaseId sets the optional parameter "databaseId": Required. The ID +// to use for the database, which will become the final component of the +// database's resource name. +func (c *ProjectsLocationsCatalogsDatabasesCreateCall) DatabaseId(databaseId string) *ProjectsLocationsCatalogsDatabasesCreateCall { + c.urlParams_.Set("databaseId", databaseId) + 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 *ProjectsLocationsCatalogsDatabasesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsCatalogsDatabasesCreateCall { + 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 *ProjectsLocationsCatalogsDatabasesCreateCall) Context(ctx context.Context) *ProjectsLocationsCatalogsDatabasesCreateCall { + 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 *ProjectsLocationsCatalogsDatabasesCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCatalogsDatabasesCreateCall) 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.database) + 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/{+parent}/databases") + 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{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "biglake.projects.locations.catalogs.databases.create" call. +// Exactly one of *Database or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Database.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 *ProjectsLocationsCatalogsDatabasesCreateCall) Do(opts ...googleapi.CallOption) (*Database, 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 := &Database{ + 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": "Creates a new database.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/databases", + // "httpMethod": "POST", + // "id": "biglake.projects.locations.catalogs.databases.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "databaseId": { + // "description": "Required. The ID to use for the database, which will become the final component of the database's resource name.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The parent resource where this database will be created. Format: projects/{project_id_or_number}/locations/{location_id}/catalogs/{catalog_id}", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/catalogs/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/databases", + // "request": { + // "$ref": "Database" + // }, + // "response": { + // "$ref": "Database" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/bigquery", + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "biglake.projects.locations.catalogs.databases.delete": + +type ProjectsLocationsCatalogsDatabasesDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes an existing database specified by the database ID. +// +// - name: The name of the database to delete. Format: +// projects/{project_id_or_number}/locations/{location_id}/catalogs/{ca +// talog_id}/databases/{database_id}. +func (r *ProjectsLocationsCatalogsDatabasesService) Delete(name string) *ProjectsLocationsCatalogsDatabasesDeleteCall { + c := &ProjectsLocationsCatalogsDatabasesDeleteCall{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 *ProjectsLocationsCatalogsDatabasesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsCatalogsDatabasesDeleteCall { + 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 *ProjectsLocationsCatalogsDatabasesDeleteCall) Context(ctx context.Context) *ProjectsLocationsCatalogsDatabasesDeleteCall { + 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 *ProjectsLocationsCatalogsDatabasesDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCatalogsDatabasesDeleteCall) 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, "v1/{+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 "biglake.projects.locations.catalogs.databases.delete" call. +// Exactly one of *Database or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Database.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 *ProjectsLocationsCatalogsDatabasesDeleteCall) Do(opts ...googleapi.CallOption) (*Database, 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 := &Database{ + 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": "Deletes an existing database specified by the database ID.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/databases/{databasesId}", + // "httpMethod": "DELETE", + // "id": "biglake.projects.locations.catalogs.databases.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the database to delete. Format: projects/{project_id_or_number}/locations/{location_id}/catalogs/{catalog_id}/databases/{database_id}", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/databases/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "Database" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/bigquery", + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "biglake.projects.locations.catalogs.databases.get": + +type ProjectsLocationsCatalogsDatabasesGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets the database specified by the resource name. +// +// - name: The name of the database to retrieve. Format: +// projects/{project_id_or_number}/locations/{location_id}/catalogs/{ca +// talog_id}/databases/{database_id}. +func (r *ProjectsLocationsCatalogsDatabasesService) Get(name string) *ProjectsLocationsCatalogsDatabasesGetCall { + c := &ProjectsLocationsCatalogsDatabasesGetCall{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 *ProjectsLocationsCatalogsDatabasesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCatalogsDatabasesGetCall { + 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 *ProjectsLocationsCatalogsDatabasesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCatalogsDatabasesGetCall { + 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 *ProjectsLocationsCatalogsDatabasesGetCall) Context(ctx context.Context) *ProjectsLocationsCatalogsDatabasesGetCall { + 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 *ProjectsLocationsCatalogsDatabasesGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCatalogsDatabasesGetCall) 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, "v1/{+name}") + 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 "biglake.projects.locations.catalogs.databases.get" call. +// Exactly one of *Database or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Database.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 *ProjectsLocationsCatalogsDatabasesGetCall) Do(opts ...googleapi.CallOption) (*Database, 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 := &Database{ + 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": "Gets the database specified by the resource name.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/databases/{databasesId}", + // "httpMethod": "GET", + // "id": "biglake.projects.locations.catalogs.databases.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the database to retrieve. Format: projects/{project_id_or_number}/locations/{location_id}/catalogs/{catalog_id}/databases/{database_id}", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/databases/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "Database" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/bigquery", + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "biglake.projects.locations.catalogs.databases.list": + +type ProjectsLocationsCatalogsDatabasesListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: List all databases in a specified catalog. +// +// - parent: The parent, which owns this collection of databases. +// Format: +// projects/{project_id_or_number}/locations/{location_id}/catalogs/{ca +// talog_id}. +func (r *ProjectsLocationsCatalogsDatabasesService) List(parent string) *ProjectsLocationsCatalogsDatabasesListCall { + c := &ProjectsLocationsCatalogsDatabasesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of databases to return. The service may return fewer than this value. +// If unspecified, at most 50 databases will be returned. The maximum +// value is 1000; values above 1000 will be coerced to 1000. +func (c *ProjectsLocationsCatalogsDatabasesListCall) PageSize(pageSize int64) *ProjectsLocationsCatalogsDatabasesListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token, +// received from a previous `ListDatabases` call. Provide this to +// retrieve the subsequent page. When paginating, all other parameters +// provided to `ListDatabases` must match the call that provided the +// page token. +func (c *ProjectsLocationsCatalogsDatabasesListCall) PageToken(pageToken string) *ProjectsLocationsCatalogsDatabasesListCall { + 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 *ProjectsLocationsCatalogsDatabasesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCatalogsDatabasesListCall { + 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 *ProjectsLocationsCatalogsDatabasesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCatalogsDatabasesListCall { + 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 *ProjectsLocationsCatalogsDatabasesListCall) Context(ctx context.Context) *ProjectsLocationsCatalogsDatabasesListCall { + 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 *ProjectsLocationsCatalogsDatabasesListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCatalogsDatabasesListCall) 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, "v1/{+parent}/databases") + 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 "biglake.projects.locations.catalogs.databases.list" call. +// Exactly one of *ListDatabasesResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ListDatabasesResponse.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 *ProjectsLocationsCatalogsDatabasesListCall) Do(opts ...googleapi.CallOption) (*ListDatabasesResponse, 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 := &ListDatabasesResponse{ + 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": "List all databases in a specified catalog.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/databases", + // "httpMethod": "GET", + // "id": "biglake.projects.locations.catalogs.databases.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "pageSize": { + // "description": "The maximum number of databases to return. The service may return fewer than this value. If unspecified, at most 50 databases 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 `ListDatabases` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListDatabases` must match the call that provided the page token.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The parent, which owns this collection of databases. Format: projects/{project_id_or_number}/locations/{location_id}/catalogs/{catalog_id}", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/catalogs/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/databases", + // "response": { + // "$ref": "ListDatabasesResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/bigquery", + // "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 *ProjectsLocationsCatalogsDatabasesListCall) Pages(ctx context.Context, f func(*ListDatabasesResponse) 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 "biglake.projects.locations.catalogs.databases.patch": + +type ProjectsLocationsCatalogsDatabasesPatchCall struct { + s *Service + name string + database *Database + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates an existing database specified by the database ID. +// +// - name: Output only. The resource name. Format: +// projects/{project_id_or_number}/locations/{location_id}/catalogs/{ca +// talog_id}/databases/{database_id}. +func (r *ProjectsLocationsCatalogsDatabasesService) Patch(name string, database *Database) *ProjectsLocationsCatalogsDatabasesPatchCall { + c := &ProjectsLocationsCatalogsDatabasesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.database = database + return c +} + +// UpdateMask sets the optional parameter "updateMask": The list of +// fields to update. For the `FieldMask` definition, see +// https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask +// If not set, defaults to all of the fields that are allowed to update. +func (c *ProjectsLocationsCatalogsDatabasesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsCatalogsDatabasesPatchCall { + 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 *ProjectsLocationsCatalogsDatabasesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCatalogsDatabasesPatchCall { + 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 *ProjectsLocationsCatalogsDatabasesPatchCall) Context(ctx context.Context) *ProjectsLocationsCatalogsDatabasesPatchCall { + 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 *ProjectsLocationsCatalogsDatabasesPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCatalogsDatabasesPatchCall) 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.database) + 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}") + 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 "biglake.projects.locations.catalogs.databases.patch" call. +// Exactly one of *Database or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Database.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 *ProjectsLocationsCatalogsDatabasesPatchCall) Do(opts ...googleapi.CallOption) (*Database, 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 := &Database{ + 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": "Updates an existing database specified by the database ID.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/databases/{databasesId}", + // "httpMethod": "PATCH", + // "id": "biglake.projects.locations.catalogs.databases.patch", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Output only. The resource name. Format: projects/{project_id_or_number}/locations/{location_id}/catalogs/{catalog_id}/databases/{database_id}", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/databases/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "updateMask": { + // "description": "The list of fields to update. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask If not set, defaults to all of the fields that are allowed to update.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "request": { + // "$ref": "Database" + // }, + // "response": { + // "$ref": "Database" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/bigquery", + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "biglake.projects.locations.catalogs.databases.tables.create": + +type ProjectsLocationsCatalogsDatabasesTablesCreateCall struct { + s *Service + parent string + table *Table + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a new table. +// +// - parent: The parent resource where this table will be created. +// Format: +// projects/{project_id_or_number}/locations/{location_id}/catalogs/{ca +// talog_id}/databases/{database_id}. +func (r *ProjectsLocationsCatalogsDatabasesTablesService) Create(parent string, table *Table) *ProjectsLocationsCatalogsDatabasesTablesCreateCall { + c := &ProjectsLocationsCatalogsDatabasesTablesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.table = table + return c +} + +// TableId sets the optional parameter "tableId": Required. The ID to +// use for the table, which will become the final component of the +// table's resource name. +func (c *ProjectsLocationsCatalogsDatabasesTablesCreateCall) TableId(tableId string) *ProjectsLocationsCatalogsDatabasesTablesCreateCall { + c.urlParams_.Set("tableId", tableId) + 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 *ProjectsLocationsCatalogsDatabasesTablesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsCatalogsDatabasesTablesCreateCall { + 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 *ProjectsLocationsCatalogsDatabasesTablesCreateCall) Context(ctx context.Context) *ProjectsLocationsCatalogsDatabasesTablesCreateCall { + 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 *ProjectsLocationsCatalogsDatabasesTablesCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCatalogsDatabasesTablesCreateCall) 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.table) + 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/{+parent}/tables") + 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{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "biglake.projects.locations.catalogs.databases.tables.create" call. +// Exactly one of *Table or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Table.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 *ProjectsLocationsCatalogsDatabasesTablesCreateCall) Do(opts ...googleapi.CallOption) (*Table, 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 := &Table{ + 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": "Creates a new table.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/databases/{databasesId}/tables", + // "httpMethod": "POST", + // "id": "biglake.projects.locations.catalogs.databases.tables.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. The parent resource where this table will be created. Format: projects/{project_id_or_number}/locations/{location_id}/catalogs/{catalog_id}/databases/{database_id}", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/databases/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "tableId": { + // "description": "Required. The ID to use for the table, which will become the final component of the table's resource name.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/tables", + // "request": { + // "$ref": "Table" + // }, + // "response": { + // "$ref": "Table" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/bigquery", + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "biglake.projects.locations.catalogs.databases.tables.delete": + +type ProjectsLocationsCatalogsDatabasesTablesDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes an existing table specified by the table ID. +// +// - name: The name of the table to delete. Format: +// projects/{project_id_or_number}/locations/{location_id}/catalogs/{ca +// talog_id}/databases/{database_id}/tables/{table_id}. +func (r *ProjectsLocationsCatalogsDatabasesTablesService) Delete(name string) *ProjectsLocationsCatalogsDatabasesTablesDeleteCall { + c := &ProjectsLocationsCatalogsDatabasesTablesDeleteCall{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 *ProjectsLocationsCatalogsDatabasesTablesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsCatalogsDatabasesTablesDeleteCall { + 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 *ProjectsLocationsCatalogsDatabasesTablesDeleteCall) Context(ctx context.Context) *ProjectsLocationsCatalogsDatabasesTablesDeleteCall { + 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 *ProjectsLocationsCatalogsDatabasesTablesDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCatalogsDatabasesTablesDeleteCall) 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, "v1/{+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 "biglake.projects.locations.catalogs.databases.tables.delete" call. +// Exactly one of *Table or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Table.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 *ProjectsLocationsCatalogsDatabasesTablesDeleteCall) Do(opts ...googleapi.CallOption) (*Table, 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 := &Table{ + 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": "Deletes an existing table specified by the table ID.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/databases/{databasesId}/tables/{tablesId}", + // "httpMethod": "DELETE", + // "id": "biglake.projects.locations.catalogs.databases.tables.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the table to delete. Format: projects/{project_id_or_number}/locations/{location_id}/catalogs/{catalog_id}/databases/{database_id}/tables/{table_id}", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/databases/[^/]+/tables/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "Table" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/bigquery", + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "biglake.projects.locations.catalogs.databases.tables.get": + +type ProjectsLocationsCatalogsDatabasesTablesGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets the table specified by the resource name. +// +// - name: The name of the table to retrieve. Format: +// projects/{project_id_or_number}/locations/{location_id}/catalogs/{ca +// talog_id}/databases/{database_id}/tables/{table_id}. +func (r *ProjectsLocationsCatalogsDatabasesTablesService) Get(name string) *ProjectsLocationsCatalogsDatabasesTablesGetCall { + c := &ProjectsLocationsCatalogsDatabasesTablesGetCall{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 *ProjectsLocationsCatalogsDatabasesTablesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCatalogsDatabasesTablesGetCall { + 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 *ProjectsLocationsCatalogsDatabasesTablesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCatalogsDatabasesTablesGetCall { + 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 *ProjectsLocationsCatalogsDatabasesTablesGetCall) Context(ctx context.Context) *ProjectsLocationsCatalogsDatabasesTablesGetCall { + 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 *ProjectsLocationsCatalogsDatabasesTablesGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCatalogsDatabasesTablesGetCall) 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, "v1/{+name}") + 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 "biglake.projects.locations.catalogs.databases.tables.get" call. +// Exactly one of *Table or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Table.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 *ProjectsLocationsCatalogsDatabasesTablesGetCall) Do(opts ...googleapi.CallOption) (*Table, 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 := &Table{ + 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": "Gets the table specified by the resource name.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/databases/{databasesId}/tables/{tablesId}", + // "httpMethod": "GET", + // "id": "biglake.projects.locations.catalogs.databases.tables.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the table to retrieve. Format: projects/{project_id_or_number}/locations/{location_id}/catalogs/{catalog_id}/databases/{database_id}/tables/{table_id}", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/databases/[^/]+/tables/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "Table" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/bigquery", + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "biglake.projects.locations.catalogs.databases.tables.list": + +type ProjectsLocationsCatalogsDatabasesTablesListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: List all tables in a specified database. +// +// - parent: The parent, which owns this collection of tables. Format: +// projects/{project_id_or_number}/locations/{location_id}/catalogs/{ca +// talog_id}/databases/{database_id}. +func (r *ProjectsLocationsCatalogsDatabasesTablesService) List(parent string) *ProjectsLocationsCatalogsDatabasesTablesListCall { + c := &ProjectsLocationsCatalogsDatabasesTablesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of tables to return. The service may return fewer than this value. If +// unspecified, at most 50 tables will be returned. The maximum value is +// 1000; values above 1000 will be coerced to 1000. +func (c *ProjectsLocationsCatalogsDatabasesTablesListCall) PageSize(pageSize int64) *ProjectsLocationsCatalogsDatabasesTablesListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token, +// received from a previous `ListTables` call. Provide this to retrieve +// the subsequent page. When paginating, all other parameters provided +// to `ListTables` must match the call that provided the page token. +func (c *ProjectsLocationsCatalogsDatabasesTablesListCall) PageToken(pageToken string) *ProjectsLocationsCatalogsDatabasesTablesListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// View sets the optional parameter "view": The view for the returned +// tables. +// +// Possible values: +// +// "TABLE_VIEW_UNSPECIFIED" - Default value. The API will default to +// +// the BASIC view. +// +// "BASIC" - Include only table names. This is the default value. +// "FULL" - Include everything. +func (c *ProjectsLocationsCatalogsDatabasesTablesListCall) View(view string) *ProjectsLocationsCatalogsDatabasesTablesListCall { + c.urlParams_.Set("view", view) + 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 *ProjectsLocationsCatalogsDatabasesTablesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCatalogsDatabasesTablesListCall { + 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 *ProjectsLocationsCatalogsDatabasesTablesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCatalogsDatabasesTablesListCall { + 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 *ProjectsLocationsCatalogsDatabasesTablesListCall) Context(ctx context.Context) *ProjectsLocationsCatalogsDatabasesTablesListCall { + 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 *ProjectsLocationsCatalogsDatabasesTablesListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCatalogsDatabasesTablesListCall) 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, "v1/{+parent}/tables") + 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 "biglake.projects.locations.catalogs.databases.tables.list" call. +// Exactly one of *ListTablesResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ListTablesResponse.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 *ProjectsLocationsCatalogsDatabasesTablesListCall) Do(opts ...googleapi.CallOption) (*ListTablesResponse, 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 := &ListTablesResponse{ + 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": "List all tables in a specified database.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/databases/{databasesId}/tables", + // "httpMethod": "GET", + // "id": "biglake.projects.locations.catalogs.databases.tables.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "pageSize": { + // "description": "The maximum number of tables to return. The service may return fewer than this value. If unspecified, at most 50 tables 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 `ListTables` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListTables` must match the call that provided the page token.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The parent, which owns this collection of tables. Format: projects/{project_id_or_number}/locations/{location_id}/catalogs/{catalog_id}/databases/{database_id}", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/databases/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "view": { + // "description": "The view for the returned tables.", + // "enum": [ + // "TABLE_VIEW_UNSPECIFIED", + // "BASIC", + // "FULL" + // ], + // "enumDescriptions": [ + // "Default value. The API will default to the BASIC view.", + // "Include only table names. This is the default value.", + // "Include everything." + // ], + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/tables", + // "response": { + // "$ref": "ListTablesResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/bigquery", + // "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 *ProjectsLocationsCatalogsDatabasesTablesListCall) Pages(ctx context.Context, f func(*ListTablesResponse) 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 "biglake.projects.locations.catalogs.databases.tables.patch": + +type ProjectsLocationsCatalogsDatabasesTablesPatchCall struct { + s *Service + name string + table *Table + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates an existing table specified by the table ID. +// +// - name: Output only. The resource name. Format: +// projects/{project_id_or_number}/locations/{location_id}/catalogs/{ca +// talog_id}/databases/{database_id}/tables/{table_id}. +func (r *ProjectsLocationsCatalogsDatabasesTablesService) Patch(name string, table *Table) *ProjectsLocationsCatalogsDatabasesTablesPatchCall { + c := &ProjectsLocationsCatalogsDatabasesTablesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.table = table + return c +} + +// UpdateMask sets the optional parameter "updateMask": The list of +// fields to update. For the `FieldMask` definition, see +// https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask +// If not set, defaults to all of the fields that are allowed to update. +func (c *ProjectsLocationsCatalogsDatabasesTablesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsCatalogsDatabasesTablesPatchCall { + 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 *ProjectsLocationsCatalogsDatabasesTablesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCatalogsDatabasesTablesPatchCall { + 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 *ProjectsLocationsCatalogsDatabasesTablesPatchCall) Context(ctx context.Context) *ProjectsLocationsCatalogsDatabasesTablesPatchCall { + 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 *ProjectsLocationsCatalogsDatabasesTablesPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCatalogsDatabasesTablesPatchCall) 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.table) + 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}") + 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 "biglake.projects.locations.catalogs.databases.tables.patch" call. +// Exactly one of *Table or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Table.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 *ProjectsLocationsCatalogsDatabasesTablesPatchCall) Do(opts ...googleapi.CallOption) (*Table, 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 := &Table{ + 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": "Updates an existing table specified by the table ID.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/databases/{databasesId}/tables/{tablesId}", + // "httpMethod": "PATCH", + // "id": "biglake.projects.locations.catalogs.databases.tables.patch", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Output only. The resource name. Format: projects/{project_id_or_number}/locations/{location_id}/catalogs/{catalog_id}/databases/{database_id}/tables/{table_id}", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/databases/[^/]+/tables/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "updateMask": { + // "description": "The list of fields to update. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask If not set, defaults to all of the fields that are allowed to update.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "request": { + // "$ref": "Table" + // }, + // "response": { + // "$ref": "Table" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/bigquery", + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "biglake.projects.locations.catalogs.databases.tables.rename": + +type ProjectsLocationsCatalogsDatabasesTablesRenameCall struct { + s *Service + name string + renametablerequest *RenameTableRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Rename: Renames an existing table specified by the table ID. +// +// - name: The table's `name` field is used to identify the table to +// rename. Format: +// projects/{project_id_or_number}/locations/{location_id}/catalogs/{ca +// talog_id}/databases/{database_id}/tables/{table_id}. +func (r *ProjectsLocationsCatalogsDatabasesTablesService) Rename(name string, renametablerequest *RenameTableRequest) *ProjectsLocationsCatalogsDatabasesTablesRenameCall { + c := &ProjectsLocationsCatalogsDatabasesTablesRenameCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.renametablerequest = renametablerequest + 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 *ProjectsLocationsCatalogsDatabasesTablesRenameCall) Fields(s ...googleapi.Field) *ProjectsLocationsCatalogsDatabasesTablesRenameCall { + 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 *ProjectsLocationsCatalogsDatabasesTablesRenameCall) Context(ctx context.Context) *ProjectsLocationsCatalogsDatabasesTablesRenameCall { + 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 *ProjectsLocationsCatalogsDatabasesTablesRenameCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCatalogsDatabasesTablesRenameCall) 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.renametablerequest) + 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}:rename") + 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 "biglake.projects.locations.catalogs.databases.tables.rename" call. +// Exactly one of *Table or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Table.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 *ProjectsLocationsCatalogsDatabasesTablesRenameCall) Do(opts ...googleapi.CallOption) (*Table, 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 := &Table{ + 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": "Renames an existing table specified by the table ID.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/databases/{databasesId}/tables/{tablesId}:rename", + // "httpMethod": "POST", + // "id": "biglake.projects.locations.catalogs.databases.tables.rename", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The table's `name` field is used to identify the table to rename. Format: projects/{project_id_or_number}/locations/{location_id}/catalogs/{catalog_id}/databases/{database_id}/tables/{table_id}", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/databases/[^/]+/tables/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}:rename", + // "request": { + // "$ref": "RenameTableRequest" + // }, + // "response": { + // "$ref": "Table" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/bigquery", + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} diff --git a/compute/v0.alpha/compute-api.json b/compute/v0.alpha/compute-api.json index 0460baf4d82..cf4e70af0c1 100644 --- a/compute/v0.alpha/compute-api.json +++ b/compute/v0.alpha/compute-api.json @@ -11418,6 +11418,59 @@ "https://www.googleapis.com/auth/compute" ] }, + "deleteNetworkInterface": { + "description": "Deletes one network interface from an active instance. InstancesDeleteNetworkInterfaceRequest indicates: - instance from which to delete, using project+zone+resource_id fields; - network interface to be deleted, using network_interface_name field; Only VLAN interface deletion is supported for now.", + "flatPath": "projects/{project}/zones/{zone}/instances/{instance}/deleteNetworkInterface", + "httpMethod": "POST", + "id": "compute.instances.deleteNetworkInterface", + "parameterOrder": [ + "project", + "zone", + "instance", + "networkInterfaceName" + ], + "parameters": { + "instance": { + "description": "The instance name for this request stored as resource_id. Name should conform to RFC1035 or be an unsigned long integer.", + "location": "path", + "required": true, + "type": "string" + }, + "networkInterfaceName": { + "description": "The name of the network interface to be deleted from the instance. Only VLAN network interface deletion is supported.", + "location": "query", + "required": true, + "type": "string" + }, + "project": { + "description": "Project ID for this request.", + "location": "path", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" + }, + "requestId": { + "description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).", + "location": "query", + "type": "string" + }, + "zone": { + "description": "The name of the zone for this request.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + "required": true, + "type": "string" + } + }, + "path": "projects/{project}/zones/{zone}/instances/{instance}/deleteNetworkInterface", + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute" + ] + }, "detachDisk": { "description": "Detaches a disk from an instance.", "flatPath": "projects/{project}/zones/{zone}/instances/{instance}/detachDisk", @@ -43489,7 +43542,7 @@ } } }, - "revision": "20231011", + "revision": "20231017", "rootUrl": "https://compute.googleapis.com/", "schemas": { "AWSV4Signature": { @@ -46786,7 +46839,7 @@ "type": "string" }, "ipAddressSelectionPolicy": { - "description": "Specifies preference of traffic to the backend (from the proxy and from the client for proxyless gRPC). The possible values are: - IPV4_ONLY: Only send IPv4 traffic to the backends of the Backend Service (Instance Group, Managed Instance Group, Network Endpoint Group) regardless of traffic from the client to the proxy. Only IPv4 health-checks are used to check the health of the backends. This is the default setting. - PREFER_IPV6: Prioritize the connection to the endpoints IPv6 address over its IPv4 address (provided there is a healthy IPv6 address). - IPV6_ONLY: Only send IPv6 traffic to the backends of the Backend Service (Instance Group, Managed Instance Group, Network Endpoint Group) regardless of traffic from the client to the proxy. Only IPv6 health-checks are used to check the health of the backends. This field is applicable to either: - Advanced Global External HTTPS Load Balancing (load balancing scheme EXTERNAL_MANAGED), - Regional External HTTPS Load Balancing, - Internal TCP Proxy (load balancing scheme INTERNAL_MANAGED), - Regional Internal HTTPS Load Balancing (load balancing scheme INTERNAL_MANAGED), - Traffic Director with Envoy proxies and proxyless gRPC (load balancing scheme INTERNAL_SELF_MANAGED). ", + "description": "Specifies a preference for traffic sent from the proxy to the backend (or from the client to the backend for proxyless gRPC). The possible values are: - IPV4_ONLY: Only send IPv4 traffic to the backends of the backend service (Instance Group, Managed Instance Group, Network Endpoint Group), regardless of traffic from the client to the proxy. Only IPv4 health checks are used to check the health of the backends. This is the default setting. - PREFER_IPV6: Prioritize the connection to the endpoint's IPv6 address over its IPv4 address (provided there is a healthy IPv6 address). - IPV6_ONLY: Only send IPv6 traffic to the backends of the backend service (Instance Group, Managed Instance Group, Network Endpoint Group), regardless of traffic from the client to the proxy. Only IPv6 health checks are used to check the health of the backends. This field is applicable to either: - Advanced Global External HTTPS Load Balancing (load balancing scheme EXTERNAL_MANAGED), - Regional External HTTPS Load Balancing, - Internal TCP Proxy (load balancing scheme INTERNAL_MANAGED), - Regional Internal HTTPS Load Balancing (load balancing scheme INTERNAL_MANAGED), - Traffic Director with Envoy proxies and proxyless gRPC (load balancing scheme INTERNAL_SELF_MANAGED). ", "enum": [ "IPV4_ONLY", "IPV6_ONLY", @@ -48694,6 +48747,13 @@ "description": "[Output Only] Commitment end time in RFC3339 text format.", "type": "string" }, + "existingReservations": { + "description": "Specifies the already existing reservations to attach to the Commitment. This field is optional, and it can be a full or partial URL. For example, the following are valid URLs to an reservation: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /reservations/reservation - projects/project/zones/zone/reservations/reservation ", + "items": { + "type": "string" + }, + "type": "array" + }, "id": { "description": "[Output Only] The unique identifier for the resource. This identifier is defined by the server.", "format": "uint64", @@ -68023,10 +68083,6 @@ "description": "Optional port number of network endpoint. If not specified, the defaultPort for the network endpoint group will be used.", "format": "int32", "type": "integer" - }, - "zone": { - "description": "The name of the zone where the instance hosting the network endpoint is located (valid only for regional GCE_VM_IP_PORT NEGs). It should comply with RFC1035. The zone must belong to the region of the Network Endpoint Group.", - "type": "string" } }, "type": "object" @@ -74156,7 +74212,7 @@ "description": "[Output Only] The Cloud Armor Managed Protection (CAMP) tier for this project. It can be one of the following values: CA_STANDARD, CAMP_PLUS_MONTHLY. If this field is not specified, it is assumed to be CA_STANDARD.", "enum": [ "CAMP_PLUS_ANNUAL", - "CAMP_PLUS_MONTHLY", + "CAMP_PLUS_PAYGO", "CA_STANDARD" ], "enumDescriptions": [ @@ -74313,7 +74369,7 @@ "description": "Managed protection tier to be set.", "enum": [ "CAMP_PLUS_ANNUAL", - "CAMP_PLUS_MONTHLY", + "CAMP_PLUS_PAYGO", "CA_STANDARD" ], "enumDescriptions": [ @@ -79603,6 +79659,10 @@ "description": "Contains output only fields. Use this sub-message for actual values set on Instance attributes as compared to the value requested by the user (intent) in their instance CRUD calls.", "id": "ResourceStatus", "properties": { + "lastInstanceTerminationDetails": { + "$ref": "ResourceStatusLastInstanceTerminationDetails", + "description": "[Output Only] Contains last termination details why the instance was terminated." + }, "physicalHost": { "description": "[Output Only] An opaque ID of the host on which the VM is running.", "type": "string" @@ -79620,6 +79680,48 @@ }, "type": "object" }, + "ResourceStatusLastInstanceTerminationDetails": { + "id": "ResourceStatusLastInstanceTerminationDetails", + "properties": { + "terminationReason": { + "description": "Reason for termination", + "enum": [ + "BAD_BILLING_ACCOUNT", + "CLOUD_ABUSE_DETECTED", + "DISK_ERROR", + "FREE_TRIAL_EXPIRED", + "INSTANCE_UPDATE_REQUIRED_RESTART", + "INTERNAL_ERROR", + "KMS_REJECTION", + "MANAGED_INSTANCE_GROUP", + "OS_TERMINATED", + "PREEMPTED", + "SCHEDULED_STOP", + "SHUTDOWN_DUE_TO_MAINTENANCE", + "UNSPECIFIED_TERMINATION_REASON", + "USER_TERMINATED" + ], + "enumDescriptions": [ + "Terminated due to bad billing", + "Terminated by Cloud Abuse team", + "Terminated due to disk errors", + "Terminated due to free trial expired", + "Instance.update initiated which required RESTART", + "Terminated due to internal error", + "Terminated due to Key Management Service (KMS) key failure.", + "Terminated by managed instance group", + "Terminated from the OS level", + "Terminated due to preemption", + "Terminated due to scheduled stop", + "Terminated due to maintenance", + "The termination reason is not specified", + "Terminated by user" + ], + "type": "string" + } + }, + "type": "object" + }, "ResourceStatusScheduling": { "id": "ResourceStatusScheduling", "properties": { @@ -83415,7 +83517,7 @@ "description": "[Output Only] The minimum managed protection tier required for this rule. [Deprecated] Use requiredManagedProtectionTiers instead.", "enum": [ "CAMP_PLUS_ANNUAL", - "CAMP_PLUS_MONTHLY", + "CAMP_PLUS_PAYGO", "CA_STANDARD" ], "enumDescriptions": [ diff --git a/compute/v0.alpha/compute-gen.go b/compute/v0.alpha/compute-gen.go index be2599142d4..a8e43197a62 100644 --- a/compute/v0.alpha/compute-gen.go +++ b/compute/v0.alpha/compute-gen.go @@ -6212,25 +6212,26 @@ type BackendService struct { // identifier is defined by the server. Id uint64 `json:"id,omitempty,string"` - // IpAddressSelectionPolicy: Specifies preference of traffic to the - // backend (from the proxy and from the client for proxyless gRPC). The - // possible values are: - IPV4_ONLY: Only send IPv4 traffic to the - // backends of the Backend Service (Instance Group, Managed Instance - // Group, Network Endpoint Group) regardless of traffic from the client - // to the proxy. Only IPv4 health-checks are used to check the health of - // the backends. This is the default setting. - PREFER_IPV6: Prioritize - // the connection to the endpoints IPv6 address over its IPv4 address - // (provided there is a healthy IPv6 address). - IPV6_ONLY: Only send - // IPv6 traffic to the backends of the Backend Service (Instance Group, - // Managed Instance Group, Network Endpoint Group) regardless of traffic - // from the client to the proxy. Only IPv6 health-checks are used to - // check the health of the backends. This field is applicable to either: - // - Advanced Global External HTTPS Load Balancing (load balancing - // scheme EXTERNAL_MANAGED), - Regional External HTTPS Load Balancing, - - // Internal TCP Proxy (load balancing scheme INTERNAL_MANAGED), - - // Regional Internal HTTPS Load Balancing (load balancing scheme - // INTERNAL_MANAGED), - Traffic Director with Envoy proxies and - // proxyless gRPC (load balancing scheme INTERNAL_SELF_MANAGED). + // IpAddressSelectionPolicy: Specifies a preference for traffic sent + // from the proxy to the backend (or from the client to the backend for + // proxyless gRPC). The possible values are: - IPV4_ONLY: Only send IPv4 + // traffic to the backends of the backend service (Instance Group, + // Managed Instance Group, Network Endpoint Group), regardless of + // traffic from the client to the proxy. Only IPv4 health checks are + // used to check the health of the backends. This is the default + // setting. - PREFER_IPV6: Prioritize the connection to the endpoint's + // IPv6 address over its IPv4 address (provided there is a healthy IPv6 + // address). - IPV6_ONLY: Only send IPv6 traffic to the backends of the + // backend service (Instance Group, Managed Instance Group, Network + // Endpoint Group), regardless of traffic from the client to the proxy. + // Only IPv6 health checks are used to check the health of the backends. + // This field is applicable to either: - Advanced Global External HTTPS + // Load Balancing (load balancing scheme EXTERNAL_MANAGED), - Regional + // External HTTPS Load Balancing, - Internal TCP Proxy (load balancing + // scheme INTERNAL_MANAGED), - Regional Internal HTTPS Load Balancing + // (load balancing scheme INTERNAL_MANAGED), - Traffic Director with + // Envoy proxies and proxyless gRPC (load balancing scheme + // INTERNAL_SELF_MANAGED). // // Possible values: // "IPV4_ONLY" - Only send IPv4 traffic to the backends of the Backend @@ -9141,6 +9142,15 @@ type Commitment struct { // format. EndTimestamp string `json:"endTimestamp,omitempty"` + // ExistingReservations: Specifies the already existing reservations to + // attach to the Commitment. This field is optional, and it can be a + // full or partial URL. For example, the following are valid URLs to an + // reservation: - + // https://www.googleapis.com/compute/v1/projects/project/zones/zone + // /reservations/reservation - + // projects/project/zones/zone/reservations/reservation + ExistingReservations []string `json:"existingReservations,omitempty"` + // Id: [Output Only] The unique identifier for the resource. This // identifier is defined by the server. Id uint64 `json:"id,omitempty,string"` @@ -36687,12 +36697,6 @@ type NetworkEndpoint struct { // defaultPort for the network endpoint group will be used. Port int64 `json:"port,omitempty"` - // Zone: The name of the zone where the instance hosting the network - // endpoint is located (valid only for regional GCE_VM_IP_PORT NEGs). It - // should comply with RFC1035. The zone must belong to the region of the - // Network Endpoint Group. - Zone string `json:"zone,omitempty"` - // ForceSendFields is a list of field names (e.g. "Annotations") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -45079,7 +45083,7 @@ type Project struct { // // Possible values: // "CAMP_PLUS_ANNUAL" - Plus tier protection annual. - // "CAMP_PLUS_MONTHLY" - Plus tier protection monthly. + // "CAMP_PLUS_PAYGO" - Plus tier protection monthly. // "CA_STANDARD" - Standard protection. ManagedProtectionTier string `json:"managedProtectionTier,omitempty"` @@ -45352,7 +45356,7 @@ type ProjectsSetManagedProtectionTierRequest struct { // // Possible values: // "CAMP_PLUS_ANNUAL" - Plus tier protection annual. - // "CAMP_PLUS_MONTHLY" - Plus tier protection monthly. + // "CAMP_PLUS_PAYGO" - Plus tier protection monthly. // "CA_STANDARD" - Standard protection. ManagedProtectionTier string `json:"managedProtectionTier,omitempty"` @@ -52570,6 +52574,10 @@ func (s *ResourcePolicyWeeklyCycleDayOfWeek) MarshalJSON() ([]byte, error) { // actual values set on Instance attributes as compared to the value // requested by the user (intent) in their instance CRUD calls. type ResourceStatus struct { + // LastInstanceTerminationDetails: [Output Only] Contains last + // termination details why the instance was terminated. + LastInstanceTerminationDetails *ResourceStatusLastInstanceTerminationDetails `json:"lastInstanceTerminationDetails,omitempty"` + // PhysicalHost: [Output Only] An opaque ID of the host on which the VM // is running. PhysicalHost string `json:"physicalHost,omitempty"` @@ -52581,25 +52589,74 @@ type ResourceStatus struct { // instance.serviceIntegrationSpecs. ServiceIntegrationStatuses map[string]ResourceStatusServiceIntegrationStatus `json:"serviceIntegrationStatuses,omitempty"` - // ForceSendFields is a list of field names (e.g. "PhysicalHost") to - // unconditionally include in API requests. By default, fields with + // ForceSendFields is a list of field names (e.g. + // "LastInstanceTerminationDetails") 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. + // "LastInstanceTerminationDetails") 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 *ResourceStatus) MarshalJSON() ([]byte, error) { + type NoMethod ResourceStatus + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type ResourceStatusLastInstanceTerminationDetails struct { + // TerminationReason: Reason for termination + // + // Possible values: + // "BAD_BILLING_ACCOUNT" - Terminated due to bad billing + // "CLOUD_ABUSE_DETECTED" - Terminated by Cloud Abuse team + // "DISK_ERROR" - Terminated due to disk errors + // "FREE_TRIAL_EXPIRED" - Terminated due to free trial expired + // "INSTANCE_UPDATE_REQUIRED_RESTART" - Instance.update initiated + // which required RESTART + // "INTERNAL_ERROR" - Terminated due to internal error + // "KMS_REJECTION" - Terminated due to Key Management Service (KMS) + // key failure. + // "MANAGED_INSTANCE_GROUP" - Terminated by managed instance group + // "OS_TERMINATED" - Terminated from the OS level + // "PREEMPTED" - Terminated due to preemption + // "SCHEDULED_STOP" - Terminated due to scheduled stop + // "SHUTDOWN_DUE_TO_MAINTENANCE" - Terminated due to maintenance + // "UNSPECIFIED_TERMINATION_REASON" - The termination reason is not + // specified + // "USER_TERMINATED" - Terminated by user + TerminationReason string `json:"terminationReason,omitempty"` + + // ForceSendFields is a list of field names (e.g. "TerminationReason") + // 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. "PhysicalHost") 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. "TerminationReason") 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 *ResourceStatus) MarshalJSON() ([]byte, error) { - type NoMethod ResourceStatus +func (s *ResourceStatusLastInstanceTerminationDetails) MarshalJSON() ([]byte, error) { + type NoMethod ResourceStatusLastInstanceTerminationDetails raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } @@ -57662,7 +57719,7 @@ type SecurityPolicyRule struct { // // Possible values: // "CAMP_PLUS_ANNUAL" - Plus tier protection annual. - // "CAMP_PLUS_MONTHLY" - Plus tier protection monthly. + // "CAMP_PLUS_PAYGO" - Plus tier protection monthly. // "CA_STANDARD" - Standard protection. RuleManagedProtectionTier string `json:"ruleManagedProtectionTier,omitempty"` @@ -124361,6 +124418,199 @@ func (c *InstancesDeleteAccessConfigCall) Do(opts ...googleapi.CallOption) (*Ope } +// method id "compute.instances.deleteNetworkInterface": + +type InstancesDeleteNetworkInterfaceCall struct { + s *Service + project string + zone string + instance string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// DeleteNetworkInterface: Deletes one network interface from an active +// instance. InstancesDeleteNetworkInterfaceRequest indicates: - +// instance from which to delete, using project+zone+resource_id fields; +// - network interface to be deleted, using network_interface_name +// field; Only VLAN interface deletion is supported for now. +// +// - instance: The instance name for this request stored as resource_id. +// Name should conform to RFC1035 or be an unsigned long integer. +// - networkInterfaceName: The name of the network interface to be +// deleted from the instance. Only VLAN network interface deletion is +// supported. +// - project: Project ID for this request. +// - zone: The name of the zone for this request. +func (r *InstancesService) DeleteNetworkInterface(project string, zone string, instance string, networkInterfaceName string) *InstancesDeleteNetworkInterfaceCall { + c := &InstancesDeleteNetworkInterfaceCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + c.zone = zone + c.instance = instance + c.urlParams_.Set("networkInterfaceName", networkInterfaceName) + return c +} + +// RequestId sets the optional parameter "requestId": An optional +// request ID to identify requests. Specify a unique request ID so that +// if you must retry your request, the server will know to ignore the +// request if it has already been completed. For example, consider a +// situation where you make an initial request and the request times +// out. If you make the request again with the same request ID, the +// server can check if original operation with the same request ID was +// received, and if so, will ignore the second request. This prevents +// clients from accidentally creating duplicate commitments. The request +// ID must be a valid UUID with the exception that zero UUID is not +// supported ( 00000000-0000-0000-0000-000000000000). +func (c *InstancesDeleteNetworkInterfaceCall) RequestId(requestId string) *InstancesDeleteNetworkInterfaceCall { + c.urlParams_.Set("requestId", requestId) + 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 *InstancesDeleteNetworkInterfaceCall) Fields(s ...googleapi.Field) *InstancesDeleteNetworkInterfaceCall { + 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 *InstancesDeleteNetworkInterfaceCall) Context(ctx context.Context) *InstancesDeleteNetworkInterfaceCall { + 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 *InstancesDeleteNetworkInterfaceCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *InstancesDeleteNetworkInterfaceCall) 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, "projects/{project}/zones/{zone}/instances/{instance}/deleteNetworkInterface") + 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{ + "project": c.project, + "zone": c.zone, + "instance": c.instance, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "compute.instances.deleteNetworkInterface" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.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 *InstancesDeleteNetworkInterfaceCall) Do(opts ...googleapi.CallOption) (*Operation, 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 := &Operation{ + 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": "Deletes one network interface from an active instance. InstancesDeleteNetworkInterfaceRequest indicates: - instance from which to delete, using project+zone+resource_id fields; - network interface to be deleted, using network_interface_name field; Only VLAN interface deletion is supported for now.", + // "flatPath": "projects/{project}/zones/{zone}/instances/{instance}/deleteNetworkInterface", + // "httpMethod": "POST", + // "id": "compute.instances.deleteNetworkInterface", + // "parameterOrder": [ + // "project", + // "zone", + // "instance", + // "networkInterfaceName" + // ], + // "parameters": { + // "instance": { + // "description": "The instance name for this request stored as resource_id. Name should conform to RFC1035 or be an unsigned long integer.", + // "location": "path", + // "required": true, + // "type": "string" + // }, + // "networkInterfaceName": { + // "description": "The name of the network interface to be deleted from the instance. Only VLAN network interface deletion is supported.", + // "location": "query", + // "required": true, + // "type": "string" + // }, + // "project": { + // "description": "Project ID for this request.", + // "location": "path", + // "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + // "required": true, + // "type": "string" + // }, + // "requestId": { + // "description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).", + // "location": "query", + // "type": "string" + // }, + // "zone": { + // "description": "The name of the zone for this request.", + // "location": "path", + // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + // "required": true, + // "type": "string" + // } + // }, + // "path": "projects/{project}/zones/{zone}/instances/{instance}/deleteNetworkInterface", + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/compute" + // ] + // } + +} + // method id "compute.instances.detachDisk": type InstancesDetachDiskCall struct { diff --git a/compute/v1/compute-api.json b/compute/v1/compute-api.json index 198e2145190..1a3d484e212 100644 --- a/compute/v1/compute-api.json +++ b/compute/v1/compute-api.json @@ -18033,6 +18033,44 @@ }, "publicAdvertisedPrefixes": { "methods": { + "announce": { + "description": "Announces the specified PublicAdvertisedPrefix", + "flatPath": "projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}/announce", + "httpMethod": "POST", + "id": "compute.publicAdvertisedPrefixes.announce", + "parameterOrder": [ + "project", + "publicAdvertisedPrefix" + ], + "parameters": { + "project": { + "description": "Project ID for this request.", + "location": "path", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" + }, + "publicAdvertisedPrefix": { + "description": "The name of the public advertised prefix. It should comply with RFC1035.", + "location": "path", + "required": true, + "type": "string" + }, + "requestId": { + "description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).", + "location": "query", + "type": "string" + } + }, + "path": "projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}/announce", + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute" + ] + }, "delete": { "description": "Deletes the specified PublicAdvertisedPrefix", "flatPath": "projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}", @@ -18237,6 +18275,44 @@ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/compute" ] + }, + "withdraw": { + "description": "Withdraws the specified PublicAdvertisedPrefix", + "flatPath": "projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}/withdraw", + "httpMethod": "POST", + "id": "compute.publicAdvertisedPrefixes.withdraw", + "parameterOrder": [ + "project", + "publicAdvertisedPrefix" + ], + "parameters": { + "project": { + "description": "Project ID for this request.", + "location": "path", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" + }, + "publicAdvertisedPrefix": { + "description": "The name of the public advertised prefix. It should comply with RFC1035.", + "location": "path", + "required": true, + "type": "string" + }, + "requestId": { + "description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).", + "location": "query", + "type": "string" + } + }, + "path": "projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}/withdraw", + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute" + ] } } }, @@ -18307,6 +18383,51 @@ "https://www.googleapis.com/auth/compute.readonly" ] }, + "announce": { + "description": "Announces the specified PublicDelegatedPrefix in the given region.", + "flatPath": "projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}/announce", + "httpMethod": "POST", + "id": "compute.publicDelegatedPrefixes.announce", + "parameterOrder": [ + "project", + "region", + "publicDelegatedPrefix" + ], + "parameters": { + "project": { + "description": "Project ID for this request.", + "location": "path", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" + }, + "publicDelegatedPrefix": { + "description": "The name of the public delegated prefix. It should comply with RFC1035.", + "location": "path", + "required": true, + "type": "string" + }, + "region": { + "description": "The name of the region where the public delegated prefix is located. It should comply with RFC1035.", + "location": "path", + "required": true, + "type": "string" + }, + "requestId": { + "description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).", + "location": "query", + "type": "string" + } + }, + "path": "projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}/announce", + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute" + ] + }, "delete": { "description": "Deletes the specified PublicDelegatedPrefix in the given region.", "flatPath": "projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}", @@ -18551,6 +18672,51 @@ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/compute" ] + }, + "withdraw": { + "description": "Withdraws the specified PublicDelegatedPrefix in the given region.", + "flatPath": "projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}/withdraw", + "httpMethod": "POST", + "id": "compute.publicDelegatedPrefixes.withdraw", + "parameterOrder": [ + "project", + "region", + "publicDelegatedPrefix" + ], + "parameters": { + "project": { + "description": "Project ID for this request.", + "location": "path", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" + }, + "publicDelegatedPrefix": { + "description": "The name of the public delegated prefix. It should comply with RFC1035.", + "location": "path", + "required": true, + "type": "string" + }, + "region": { + "description": "The name of the region where the public delegated prefix is located. It should comply with RFC1035.", + "location": "path", + "required": true, + "type": "string" + }, + "requestId": { + "description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).", + "location": "query", + "type": "string" + } + }, + "path": "projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}/withdraw", + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute" + ] } } }, @@ -29199,6 +29365,77 @@ } } }, + "snapshotSettings": { + "methods": { + "get": { + "description": "Get snapshot settings.", + "flatPath": "projects/{project}/global/snapshotSettings", + "httpMethod": "GET", + "id": "compute.snapshotSettings.get", + "parameterOrder": [ + "project" + ], + "parameters": { + "project": { + "description": "Project ID for this request.", + "location": "path", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" + } + }, + "path": "projects/{project}/global/snapshotSettings", + "response": { + "$ref": "SnapshotSettings" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute", + "https://www.googleapis.com/auth/compute.readonly" + ] + }, + "patch": { + "description": "Patch snapshot settings.", + "flatPath": "projects/{project}/global/snapshotSettings", + "httpMethod": "PATCH", + "id": "compute.snapshotSettings.patch", + "parameterOrder": [ + "project" + ], + "parameters": { + "project": { + "description": "Project ID for this request.", + "location": "path", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" + }, + "requestId": { + "description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).", + "location": "query", + "type": "string" + }, + "updateMask": { + "description": "update_mask indicates fields to be updated as part of this request.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "projects/{project}/global/snapshotSettings", + "request": { + "$ref": "SnapshotSettings" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute" + ] + } + } + }, "snapshots": { "methods": { "delete": { @@ -35030,7 +35267,7 @@ } } }, - "revision": "20231011", + "revision": "20231017", "rootUrl": "https://compute.googleapis.com/", "schemas": { "AWSV4Signature": { @@ -60790,6 +61027,18 @@ "description": "A public advertised prefix represents an aggregated IP prefix or netblock which customers bring to cloud. The IP prefix is a single unit of route advertisement and is announced globally to the internet.", "id": "PublicAdvertisedPrefix", "properties": { + "byoipApiVersion": { + "description": "[Output Only] The version of BYOIP API.", + "enum": [ + "V1", + "V2" + ], + "enumDescriptions": [ + "This public advertised prefix can be used to create both regional and global public delegated prefixes. It usually takes 4 weeks to create or delete a public delegated prefix. The BGP status cannot be changed.", + "This public advertised prefix can only be used to create regional public delegated prefixes. Public delegated prefix creation and deletion takes minutes and the BGP status can be modified." + ], + "type": "string" + }, "creationTimestamp": { "description": "[Output Only] Creation timestamp in RFC3339 text format.", "type": "string" @@ -60831,6 +61080,20 @@ "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", "type": "string" }, + "pdpScope": { + "description": "Specifies how child public delegated prefix will be scoped. It could be one of following values: - `REGIONAL`: The public delegated prefix is regional only. The provisioning will take a few minutes. - `GLOBAL`: The public delegated prefix is global only. The provisioning will take ~4 weeks. - `GLOBAL_AND_REGIONAL` [output only]: The public delegated prefixes is BYOIP V1 legacy prefix. This is output only value and no longer supported in BYOIP V2. ", + "enum": [ + "GLOBAL", + "GLOBAL_AND_REGIONAL", + "REGIONAL" + ], + "enumDescriptions": [ + "The public delegated prefix is global only. The provisioning will take ~4 weeks.", + "The public delegated prefixes is BYOIP V1 legacy prefix. This is output only value and no longer supported in BYOIP V2.", + "The public delegated prefix is regional only. The provisioning will take a few minutes." + ], + "type": "string" + }, "publicDelegatedPrefixs": { "description": "[Output Only] The list of public delegated prefixes that exist for this public advertised prefix.", "items": { @@ -60849,20 +61112,24 @@ "status": { "description": "The status of the public advertised prefix. Possible values include: - `INITIAL`: RPKI validation is complete. - `PTR_CONFIGURED`: User has configured the PTR. - `VALIDATED`: Reverse DNS lookup is successful. - `REVERSE_DNS_LOOKUP_FAILED`: Reverse DNS lookup failed. - `PREFIX_CONFIGURATION_IN_PROGRESS`: The prefix is being configured. - `PREFIX_CONFIGURATION_COMPLETE`: The prefix is fully configured. - `PREFIX_REMOVAL_IN_PROGRESS`: The prefix is being removed. ", "enum": [ + "ANNOUNCED_TO_INTERNET", "INITIAL", "PREFIX_CONFIGURATION_COMPLETE", "PREFIX_CONFIGURATION_IN_PROGRESS", "PREFIX_REMOVAL_IN_PROGRESS", "PTR_CONFIGURED", + "READY_TO_ANNOUNCE", "REVERSE_DNS_LOOKUP_FAILED", "VALIDATED" ], "enumDescriptions": [ + "The prefix is announced to Internet.", "RPKI validation is complete.", "The prefix is fully configured.", "The prefix is being configured.", "The prefix is being removed.", "User has configured the PTR.", + "The prefix is currently withdrawn but ready to be announced.", "Reverse DNS lookup failed.", "Reverse DNS lookup is successful." ], @@ -61053,6 +61320,18 @@ "description": "A PublicDelegatedPrefix resource represents an IP block within a PublicAdvertisedPrefix that is configured within a single cloud scope (global or region). IPs in the block can be allocated to resources within that scope. Public delegated prefixes may be further broken up into smaller IP blocks in the same scope as the parent block.", "id": "PublicDelegatedPrefix", "properties": { + "byoipApiVersion": { + "description": "[Output Only] The version of BYOIP API.", + "enum": [ + "V1", + "V2" + ], + "enumDescriptions": [ + "This public delegated prefix usually takes 4 weeks to delete, and the BGP status cannot be changed. Announce and Withdraw APIs can not be used on this prefix.", + "This public delegated prefix takes minutes to delete. Announce and Withdraw APIs can be used on this prefix to change the BGP status." + ], + "type": "string" + }, "creationTimestamp": { "description": "[Output Only] Creation timestamp in RFC3339 text format.", "type": "string" @@ -61117,12 +61396,16 @@ "description": "[Output Only] The status of the public delegated prefix, which can be one of following values: - `INITIALIZING` The public delegated prefix is being initialized and addresses cannot be created yet. - `READY_TO_ANNOUNCE` The public delegated prefix is a live migration prefix and is active. - `ANNOUNCED` The public delegated prefix is active. - `DELETING` The public delegated prefix is being deprovsioned. ", "enum": [ "ANNOUNCED", + "ANNOUNCED_TO_GOOGLE", + "ANNOUNCED_TO_INTERNET", "DELETING", "INITIALIZING", "READY_TO_ANNOUNCE" ], "enumDescriptions": [ "The public delegated prefix is active.", + "The prefix is announced within Google network.", + "The prefix is announced to Internet and within Google.", "The public delegated prefix is being deprovsioned.", "The public delegated prefix is being initialized and addresses cannot be created yet.", "The public delegated prefix is currently withdrawn but ready to be announced." @@ -69467,6 +69750,10 @@ "$ref": "CustomerEncryptionKey", "description": "The customer-supplied encryption key of the source disk. Required if the source disk is protected by a customer-supplied encryption key." }, + "sourceDiskForRecoveryCheckpoint": { + "description": "The source disk whose recovery checkpoint will be used to create this snapshot.", + "type": "string" + }, "sourceDiskId": { "description": "[Output Only] The ID value of the disk used to create this snapshot. This value may be used to determine whether the snapshot was taken from the current or a previous instance of a given disk name.", "type": "string" @@ -69676,6 +69963,56 @@ }, "type": "object" }, + "SnapshotSettings": { + "id": "SnapshotSettings", + "properties": { + "storageLocation": { + "$ref": "SnapshotSettingsStorageLocationSettings", + "description": "Policy of which storage location is going to be resolved, and additional data that particularizes how the policy is going to be carried out." + } + }, + "type": "object" + }, + "SnapshotSettingsStorageLocationSettings": { + "id": "SnapshotSettingsStorageLocationSettings", + "properties": { + "locations": { + "additionalProperties": { + "$ref": "SnapshotSettingsStorageLocationSettingsStorageLocationPreference" + }, + "description": "When the policy is SPECIFIC_LOCATIONS, snapshots will be stored in the locations listed in this field. Keys are GCS bucket locations.", + "type": "object" + }, + "policy": { + "description": "The chosen location policy.", + "enum": [ + "LOCAL_REGION", + "NEAREST_MULTI_REGION", + "SPECIFIC_LOCATIONS", + "STORAGE_LOCATION_POLICY_UNSPECIFIED" + ], + "enumDescriptions": [ + "Store snapshot in the same region as with the originating disk. No additional parameters are needed.", + "Store snapshot to the nearest multi region GCS bucket, relative to the originating disk. No additional parameters are needed.", + "Store snapshot in the specific locations, as specified by the user. The list of regions to store must be defined under the `locations` field.", + "" + ], + "type": "string" + } + }, + "type": "object" + }, + "SnapshotSettingsStorageLocationSettingsStorageLocationPreference": { + "description": "A structure for specifying storage locations.", + "id": "SnapshotSettingsStorageLocationSettingsStorageLocationPreference", + "properties": { + "name": { + "description": "Name of the location. It should be one of the GCS buckets.", + "type": "string" + } + }, + "type": "object" + }, "SourceDiskEncryptionKey": { "id": "SourceDiskEncryptionKey", "properties": { diff --git a/compute/v1/compute-gen.go b/compute/v1/compute-gen.go index bcdeaf221b9..06d94490af0 100644 --- a/compute/v1/compute-gen.go +++ b/compute/v1/compute-gen.go @@ -234,6 +234,7 @@ func New(client *http.Client) (*Service, error) { s.Routes = NewRoutesService(s) s.SecurityPolicies = NewSecurityPoliciesService(s) s.ServiceAttachments = NewServiceAttachmentsService(s) + s.SnapshotSettings = NewSnapshotSettingsService(s) s.Snapshots = NewSnapshotsService(s) s.SslCertificates = NewSslCertificatesService(s) s.SslPolicies = NewSslPoliciesService(s) @@ -409,6 +410,8 @@ type Service struct { ServiceAttachments *ServiceAttachmentsService + SnapshotSettings *SnapshotSettingsService + Snapshots *SnapshotsService SslCertificates *SslCertificatesService @@ -1126,6 +1129,15 @@ type ServiceAttachmentsService struct { s *Service } +func NewSnapshotSettingsService(s *Service) *SnapshotSettingsService { + rs := &SnapshotSettingsService{s: s} + return rs +} + +type SnapshotSettingsService struct { + s *Service +} + func NewSnapshotsService(s *Service) *SnapshotsService { rs := &SnapshotsService{s: s} return rs @@ -38052,6 +38064,18 @@ func (s *ProjectsSetDefaultNetworkTierRequest) MarshalJSON() ([]byte, error) { // IP prefix is a single unit of route advertisement and is announced // globally to the internet. type PublicAdvertisedPrefix struct { + // ByoipApiVersion: [Output Only] The version of BYOIP API. + // + // Possible values: + // "V1" - This public advertised prefix can be used to create both + // regional and global public delegated prefixes. It usually takes 4 + // weeks to create or delete a public delegated prefix. The BGP status + // cannot be changed. + // "V2" - This public advertised prefix can only be used to create + // regional public delegated prefixes. Public delegated prefix creation + // and deletion takes minutes and the BGP status can be modified. + ByoipApiVersion string `json:"byoipApiVersion,omitempty"` + // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text // format. CreationTimestamp string `json:"creationTimestamp,omitempty"` @@ -38094,6 +38118,24 @@ type PublicAdvertisedPrefix struct { // last character, which cannot be a dash. Name string `json:"name,omitempty"` + // PdpScope: Specifies how child public delegated prefix will be scoped. + // It could be one of following values: - `REGIONAL`: The public + // delegated prefix is regional only. The provisioning will take a few + // minutes. - `GLOBAL`: The public delegated prefix is global only. The + // provisioning will take ~4 weeks. - `GLOBAL_AND_REGIONAL` [output + // only]: The public delegated prefixes is BYOIP V1 legacy prefix. This + // is output only value and no longer supported in BYOIP V2. + // + // Possible values: + // "GLOBAL" - The public delegated prefix is global only. The + // provisioning will take ~4 weeks. + // "GLOBAL_AND_REGIONAL" - The public delegated prefixes is BYOIP V1 + // legacy prefix. This is output only value and no longer supported in + // BYOIP V2. + // "REGIONAL" - The public delegated prefix is regional only. The + // provisioning will take a few minutes. + PdpScope string `json:"pdpScope,omitempty"` + // PublicDelegatedPrefixs: [Output Only] The list of public delegated // prefixes that exist for this public advertised prefix. PublicDelegatedPrefixs []*PublicAdvertisedPrefixPublicDelegatedPrefix `json:"publicDelegatedPrefixs,omitempty"` @@ -38115,12 +38157,15 @@ type PublicAdvertisedPrefix struct { // removed. // // Possible values: + // "ANNOUNCED_TO_INTERNET" - The prefix is announced to Internet. // "INITIAL" - RPKI validation is complete. // "PREFIX_CONFIGURATION_COMPLETE" - The prefix is fully configured. // "PREFIX_CONFIGURATION_IN_PROGRESS" - The prefix is being // configured. // "PREFIX_REMOVAL_IN_PROGRESS" - The prefix is being removed. // "PTR_CONFIGURED" - User has configured the PTR. + // "READY_TO_ANNOUNCE" - The prefix is currently withdrawn but ready + // to be announced. // "REVERSE_DNS_LOOKUP_FAILED" - Reverse DNS lookup failed. // "VALIDATED" - Reverse DNS lookup is successful. Status string `json:"status,omitempty"` @@ -38129,15 +38174,15 @@ type PublicAdvertisedPrefix struct { // server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "CreationTimestamp") - // to unconditionally include in API requests. By default, fields with + // ForceSendFields is a list of field names (e.g. "ByoipApiVersion") 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. "CreationTimestamp") to + // NullFields is a list of field names (e.g. "ByoipApiVersion") 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 @@ -38397,6 +38442,17 @@ func (s *PublicAdvertisedPrefixPublicDelegatedPrefix) MarshalJSON() ([]byte, err // may be further broken up into smaller IP blocks in the same scope as // the parent block. type PublicDelegatedPrefix struct { + // ByoipApiVersion: [Output Only] The version of BYOIP API. + // + // Possible values: + // "V1" - This public delegated prefix usually takes 4 weeks to + // delete, and the BGP status cannot be changed. Announce and Withdraw + // APIs can not be used on this prefix. + // "V2" - This public delegated prefix takes minutes to delete. + // Announce and Withdraw APIs can be used on this prefix to change the + // BGP status. + ByoipApiVersion string `json:"byoipApiVersion,omitempty"` + // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text // format. CreationTimestamp string `json:"creationTimestamp,omitempty"` @@ -38465,6 +38521,10 @@ type PublicDelegatedPrefix struct { // // Possible values: // "ANNOUNCED" - The public delegated prefix is active. + // "ANNOUNCED_TO_GOOGLE" - The prefix is announced within Google + // network. + // "ANNOUNCED_TO_INTERNET" - The prefix is announced to Internet and + // within Google. // "DELETING" - The public delegated prefix is being deprovsioned. // "INITIALIZING" - The public delegated prefix is being initialized // and addresses cannot be created yet. @@ -38476,15 +38536,15 @@ type PublicDelegatedPrefix struct { // server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "CreationTimestamp") - // to unconditionally include in API requests. By default, fields with + // ForceSendFields is a list of field names (e.g. "ByoipApiVersion") 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. "CreationTimestamp") to + // NullFields is a list of field names (e.g. "ByoipApiVersion") 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 @@ -49869,6 +49929,10 @@ type Snapshot struct { // customer-supplied encryption key. SourceDiskEncryptionKey *CustomerEncryptionKey `json:"sourceDiskEncryptionKey,omitempty"` + // SourceDiskForRecoveryCheckpoint: The source disk whose recovery + // checkpoint will be used to create this snapshot. + SourceDiskForRecoveryCheckpoint string `json:"sourceDiskForRecoveryCheckpoint,omitempty"` + // SourceDiskId: [Output Only] The ID value of the disk used to create // this snapshot. This value may be used to determine whether the // snapshot was taken from the current or a previous instance of a given @@ -50132,6 +50196,112 @@ func (s *SnapshotListWarningData) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +type SnapshotSettings struct { + // StorageLocation: Policy of which storage location is going to be + // resolved, and additional data that particularizes how the policy is + // going to be carried out. + StorageLocation *SnapshotSettingsStorageLocationSettings `json:"storageLocation,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "StorageLocation") 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. "StorageLocation") 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 *SnapshotSettings) MarshalJSON() ([]byte, error) { + type NoMethod SnapshotSettings + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type SnapshotSettingsStorageLocationSettings struct { + // Locations: When the policy is SPECIFIC_LOCATIONS, snapshots will be + // stored in the locations listed in this field. Keys are GCS bucket + // locations. + Locations map[string]SnapshotSettingsStorageLocationSettingsStorageLocationPreference `json:"locations,omitempty"` + + // Policy: The chosen location policy. + // + // Possible values: + // "LOCAL_REGION" - Store snapshot in the same region as with the + // originating disk. No additional parameters are needed. + // "NEAREST_MULTI_REGION" - Store snapshot to the nearest multi region + // GCS bucket, relative to the originating disk. No additional + // parameters are needed. + // "SPECIFIC_LOCATIONS" - Store snapshot in the specific locations, as + // specified by the user. The list of regions to store must be defined + // under the `locations` field. + // "STORAGE_LOCATION_POLICY_UNSPECIFIED" + Policy string `json:"policy,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Locations") 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. "Locations") 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 *SnapshotSettingsStorageLocationSettings) MarshalJSON() ([]byte, error) { + type NoMethod SnapshotSettingsStorageLocationSettings + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// SnapshotSettingsStorageLocationSettingsStorageLocationPreference: A +// structure for specifying storage locations. +type SnapshotSettingsStorageLocationSettingsStorageLocationPreference struct { + // Name: Name of the location. It should be one of the GCS buckets. + Name string `json:"name,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Name") 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. "Name") 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 *SnapshotSettingsStorageLocationSettingsStorageLocationPreference) MarshalJSON() ([]byte, error) { + type NoMethod SnapshotSettingsStorageLocationSettingsStorageLocationPreference + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + type SourceDiskEncryptionKey struct { // DiskEncryptionKey: The customer-supplied encryption key of the source // disk. Required if the source disk is protected by a customer-supplied @@ -138594,6 +138764,172 @@ func (c *ProjectsSetUsageExportBucketCall) Do(opts ...googleapi.CallOption) (*Op } +// method id "compute.publicAdvertisedPrefixes.announce": + +type PublicAdvertisedPrefixesAnnounceCall struct { + s *Service + project string + publicAdvertisedPrefix string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Announce: Announces the specified PublicAdvertisedPrefix +// +// - project: Project ID for this request. +// - publicAdvertisedPrefix: The name of the public advertised prefix. +// It should comply with RFC1035. +func (r *PublicAdvertisedPrefixesService) Announce(project string, publicAdvertisedPrefix string) *PublicAdvertisedPrefixesAnnounceCall { + c := &PublicAdvertisedPrefixesAnnounceCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + c.publicAdvertisedPrefix = publicAdvertisedPrefix + return c +} + +// RequestId sets the optional parameter "requestId": An optional +// request ID to identify requests. Specify a unique request ID so that +// if you must retry your request, the server will know to ignore the +// request if it has already been completed. For example, consider a +// situation where you make an initial request and the request times +// out. If you make the request again with the same request ID, the +// server can check if original operation with the same request ID was +// received, and if so, will ignore the second request. This prevents +// clients from accidentally creating duplicate commitments. The request +// ID must be a valid UUID with the exception that zero UUID is not +// supported ( 00000000-0000-0000-0000-000000000000). +func (c *PublicAdvertisedPrefixesAnnounceCall) RequestId(requestId string) *PublicAdvertisedPrefixesAnnounceCall { + c.urlParams_.Set("requestId", requestId) + 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 *PublicAdvertisedPrefixesAnnounceCall) Fields(s ...googleapi.Field) *PublicAdvertisedPrefixesAnnounceCall { + 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 *PublicAdvertisedPrefixesAnnounceCall) Context(ctx context.Context) *PublicAdvertisedPrefixesAnnounceCall { + 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 *PublicAdvertisedPrefixesAnnounceCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *PublicAdvertisedPrefixesAnnounceCall) 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, "projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}/announce") + 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{ + "project": c.project, + "publicAdvertisedPrefix": c.publicAdvertisedPrefix, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "compute.publicAdvertisedPrefixes.announce" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.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 *PublicAdvertisedPrefixesAnnounceCall) Do(opts ...googleapi.CallOption) (*Operation, 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 := &Operation{ + 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": "Announces the specified PublicAdvertisedPrefix", + // "flatPath": "projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}/announce", + // "httpMethod": "POST", + // "id": "compute.publicAdvertisedPrefixes.announce", + // "parameterOrder": [ + // "project", + // "publicAdvertisedPrefix" + // ], + // "parameters": { + // "project": { + // "description": "Project ID for this request.", + // "location": "path", + // "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + // "required": true, + // "type": "string" + // }, + // "publicAdvertisedPrefix": { + // "description": "The name of the public advertised prefix. It should comply with RFC1035.", + // "location": "path", + // "required": true, + // "type": "string" + // }, + // "requestId": { + // "description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}/announce", + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/compute" + // ] + // } + +} + // method id "compute.publicAdvertisedPrefixes.delete": type PublicAdvertisedPrefixesDeleteCall struct { @@ -139545,6 +139881,172 @@ func (c *PublicAdvertisedPrefixesPatchCall) Do(opts ...googleapi.CallOption) (*O } +// method id "compute.publicAdvertisedPrefixes.withdraw": + +type PublicAdvertisedPrefixesWithdrawCall struct { + s *Service + project string + publicAdvertisedPrefix string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Withdraw: Withdraws the specified PublicAdvertisedPrefix +// +// - project: Project ID for this request. +// - publicAdvertisedPrefix: The name of the public advertised prefix. +// It should comply with RFC1035. +func (r *PublicAdvertisedPrefixesService) Withdraw(project string, publicAdvertisedPrefix string) *PublicAdvertisedPrefixesWithdrawCall { + c := &PublicAdvertisedPrefixesWithdrawCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + c.publicAdvertisedPrefix = publicAdvertisedPrefix + return c +} + +// RequestId sets the optional parameter "requestId": An optional +// request ID to identify requests. Specify a unique request ID so that +// if you must retry your request, the server will know to ignore the +// request if it has already been completed. For example, consider a +// situation where you make an initial request and the request times +// out. If you make the request again with the same request ID, the +// server can check if original operation with the same request ID was +// received, and if so, will ignore the second request. This prevents +// clients from accidentally creating duplicate commitments. The request +// ID must be a valid UUID with the exception that zero UUID is not +// supported ( 00000000-0000-0000-0000-000000000000). +func (c *PublicAdvertisedPrefixesWithdrawCall) RequestId(requestId string) *PublicAdvertisedPrefixesWithdrawCall { + c.urlParams_.Set("requestId", requestId) + 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 *PublicAdvertisedPrefixesWithdrawCall) Fields(s ...googleapi.Field) *PublicAdvertisedPrefixesWithdrawCall { + 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 *PublicAdvertisedPrefixesWithdrawCall) Context(ctx context.Context) *PublicAdvertisedPrefixesWithdrawCall { + 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 *PublicAdvertisedPrefixesWithdrawCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *PublicAdvertisedPrefixesWithdrawCall) 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, "projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}/withdraw") + 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{ + "project": c.project, + "publicAdvertisedPrefix": c.publicAdvertisedPrefix, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "compute.publicAdvertisedPrefixes.withdraw" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.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 *PublicAdvertisedPrefixesWithdrawCall) Do(opts ...googleapi.CallOption) (*Operation, 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 := &Operation{ + 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": "Withdraws the specified PublicAdvertisedPrefix", + // "flatPath": "projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}/withdraw", + // "httpMethod": "POST", + // "id": "compute.publicAdvertisedPrefixes.withdraw", + // "parameterOrder": [ + // "project", + // "publicAdvertisedPrefix" + // ], + // "parameters": { + // "project": { + // "description": "Project ID for this request.", + // "location": "path", + // "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + // "required": true, + // "type": "string" + // }, + // "publicAdvertisedPrefix": { + // "description": "The name of the public advertised prefix. It should comply with RFC1035.", + // "location": "path", + // "required": true, + // "type": "string" + // }, + // "requestId": { + // "description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}/withdraw", + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/compute" + // ] + // } + +} + // method id "compute.publicDelegatedPrefixes.aggregatedList": type PublicDelegatedPrefixesAggregatedListCall struct { @@ -139856,6 +140358,185 @@ func (c *PublicDelegatedPrefixesAggregatedListCall) Pages(ctx context.Context, f } } +// method id "compute.publicDelegatedPrefixes.announce": + +type PublicDelegatedPrefixesAnnounceCall struct { + s *Service + project string + region string + publicDelegatedPrefix string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Announce: Announces the specified PublicDelegatedPrefix in the given +// region. +// +// - project: Project ID for this request. +// - publicDelegatedPrefix: The name of the public delegated prefix. It +// should comply with RFC1035. +// - region: The name of the region where the public delegated prefix is +// located. It should comply with RFC1035. +func (r *PublicDelegatedPrefixesService) Announce(project string, region string, publicDelegatedPrefix string) *PublicDelegatedPrefixesAnnounceCall { + c := &PublicDelegatedPrefixesAnnounceCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + c.region = region + c.publicDelegatedPrefix = publicDelegatedPrefix + return c +} + +// RequestId sets the optional parameter "requestId": An optional +// request ID to identify requests. Specify a unique request ID so that +// if you must retry your request, the server will know to ignore the +// request if it has already been completed. For example, consider a +// situation where you make an initial request and the request times +// out. If you make the request again with the same request ID, the +// server can check if original operation with the same request ID was +// received, and if so, will ignore the second request. This prevents +// clients from accidentally creating duplicate commitments. The request +// ID must be a valid UUID with the exception that zero UUID is not +// supported ( 00000000-0000-0000-0000-000000000000). +func (c *PublicDelegatedPrefixesAnnounceCall) RequestId(requestId string) *PublicDelegatedPrefixesAnnounceCall { + c.urlParams_.Set("requestId", requestId) + 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 *PublicDelegatedPrefixesAnnounceCall) Fields(s ...googleapi.Field) *PublicDelegatedPrefixesAnnounceCall { + 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 *PublicDelegatedPrefixesAnnounceCall) Context(ctx context.Context) *PublicDelegatedPrefixesAnnounceCall { + 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 *PublicDelegatedPrefixesAnnounceCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *PublicDelegatedPrefixesAnnounceCall) 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, "projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}/announce") + 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{ + "project": c.project, + "region": c.region, + "publicDelegatedPrefix": c.publicDelegatedPrefix, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "compute.publicDelegatedPrefixes.announce" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.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 *PublicDelegatedPrefixesAnnounceCall) Do(opts ...googleapi.CallOption) (*Operation, 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 := &Operation{ + 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": "Announces the specified PublicDelegatedPrefix in the given region.", + // "flatPath": "projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}/announce", + // "httpMethod": "POST", + // "id": "compute.publicDelegatedPrefixes.announce", + // "parameterOrder": [ + // "project", + // "region", + // "publicDelegatedPrefix" + // ], + // "parameters": { + // "project": { + // "description": "Project ID for this request.", + // "location": "path", + // "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + // "required": true, + // "type": "string" + // }, + // "publicDelegatedPrefix": { + // "description": "The name of the public delegated prefix. It should comply with RFC1035.", + // "location": "path", + // "required": true, + // "type": "string" + // }, + // "region": { + // "description": "The name of the region where the public delegated prefix is located. It should comply with RFC1035.", + // "location": "path", + // "required": true, + // "type": "string" + // }, + // "requestId": { + // "description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}/announce", + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/compute" + // ] + // } + +} + // method id "compute.publicDelegatedPrefixes.delete": type PublicDelegatedPrefixesDeleteCall struct { @@ -140871,6 +141552,185 @@ func (c *PublicDelegatedPrefixesPatchCall) Do(opts ...googleapi.CallOption) (*Op } +// method id "compute.publicDelegatedPrefixes.withdraw": + +type PublicDelegatedPrefixesWithdrawCall struct { + s *Service + project string + region string + publicDelegatedPrefix string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Withdraw: Withdraws the specified PublicDelegatedPrefix in the given +// region. +// +// - project: Project ID for this request. +// - publicDelegatedPrefix: The name of the public delegated prefix. It +// should comply with RFC1035. +// - region: The name of the region where the public delegated prefix is +// located. It should comply with RFC1035. +func (r *PublicDelegatedPrefixesService) Withdraw(project string, region string, publicDelegatedPrefix string) *PublicDelegatedPrefixesWithdrawCall { + c := &PublicDelegatedPrefixesWithdrawCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + c.region = region + c.publicDelegatedPrefix = publicDelegatedPrefix + return c +} + +// RequestId sets the optional parameter "requestId": An optional +// request ID to identify requests. Specify a unique request ID so that +// if you must retry your request, the server will know to ignore the +// request if it has already been completed. For example, consider a +// situation where you make an initial request and the request times +// out. If you make the request again with the same request ID, the +// server can check if original operation with the same request ID was +// received, and if so, will ignore the second request. This prevents +// clients from accidentally creating duplicate commitments. The request +// ID must be a valid UUID with the exception that zero UUID is not +// supported ( 00000000-0000-0000-0000-000000000000). +func (c *PublicDelegatedPrefixesWithdrawCall) RequestId(requestId string) *PublicDelegatedPrefixesWithdrawCall { + c.urlParams_.Set("requestId", requestId) + 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 *PublicDelegatedPrefixesWithdrawCall) Fields(s ...googleapi.Field) *PublicDelegatedPrefixesWithdrawCall { + 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 *PublicDelegatedPrefixesWithdrawCall) Context(ctx context.Context) *PublicDelegatedPrefixesWithdrawCall { + 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 *PublicDelegatedPrefixesWithdrawCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *PublicDelegatedPrefixesWithdrawCall) 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, "projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}/withdraw") + 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{ + "project": c.project, + "region": c.region, + "publicDelegatedPrefix": c.publicDelegatedPrefix, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "compute.publicDelegatedPrefixes.withdraw" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.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 *PublicDelegatedPrefixesWithdrawCall) Do(opts ...googleapi.CallOption) (*Operation, 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 := &Operation{ + 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": "Withdraws the specified PublicDelegatedPrefix in the given region.", + // "flatPath": "projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}/withdraw", + // "httpMethod": "POST", + // "id": "compute.publicDelegatedPrefixes.withdraw", + // "parameterOrder": [ + // "project", + // "region", + // "publicDelegatedPrefix" + // ], + // "parameters": { + // "project": { + // "description": "Project ID for this request.", + // "location": "path", + // "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + // "required": true, + // "type": "string" + // }, + // "publicDelegatedPrefix": { + // "description": "The name of the public delegated prefix. It should comply with RFC1035.", + // "location": "path", + // "required": true, + // "type": "string" + // }, + // "region": { + // "description": "The name of the region where the public delegated prefix is located. It should comply with RFC1035.", + // "location": "path", + // "required": true, + // "type": "string" + // }, + // "requestId": { + // "description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}/withdraw", + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/compute" + // ] + // } + +} + // method id "compute.regionAutoscalers.delete": type RegionAutoscalersDeleteCall struct { @@ -183973,6 +184833,331 @@ func (c *ServiceAttachmentsTestIamPermissionsCall) Do(opts ...googleapi.CallOpti } +// method id "compute.snapshotSettings.get": + +type SnapshotSettingsGetCall struct { + s *Service + project string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Get snapshot settings. +// +// - project: Project ID for this request. +func (r *SnapshotSettingsService) Get(project string) *SnapshotSettingsGetCall { + c := &SnapshotSettingsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + 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 *SnapshotSettingsGetCall) Fields(s ...googleapi.Field) *SnapshotSettingsGetCall { + 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 *SnapshotSettingsGetCall) IfNoneMatch(entityTag string) *SnapshotSettingsGetCall { + 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 *SnapshotSettingsGetCall) Context(ctx context.Context) *SnapshotSettingsGetCall { + 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 *SnapshotSettingsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *SnapshotSettingsGetCall) 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, "projects/{project}/global/snapshotSettings") + 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{ + "project": c.project, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "compute.snapshotSettings.get" call. +// Exactly one of *SnapshotSettings or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *SnapshotSettings.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 *SnapshotSettingsGetCall) Do(opts ...googleapi.CallOption) (*SnapshotSettings, 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 := &SnapshotSettings{ + 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": "Get snapshot settings.", + // "flatPath": "projects/{project}/global/snapshotSettings", + // "httpMethod": "GET", + // "id": "compute.snapshotSettings.get", + // "parameterOrder": [ + // "project" + // ], + // "parameters": { + // "project": { + // "description": "Project ID for this request.", + // "location": "path", + // "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + // "required": true, + // "type": "string" + // } + // }, + // "path": "projects/{project}/global/snapshotSettings", + // "response": { + // "$ref": "SnapshotSettings" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/compute", + // "https://www.googleapis.com/auth/compute.readonly" + // ] + // } + +} + +// method id "compute.snapshotSettings.patch": + +type SnapshotSettingsPatchCall struct { + s *Service + project string + snapshotsettings *SnapshotSettings + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Patch snapshot settings. +// +// - project: Project ID for this request. +func (r *SnapshotSettingsService) Patch(project string, snapshotsettings *SnapshotSettings) *SnapshotSettingsPatchCall { + c := &SnapshotSettingsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + c.snapshotsettings = snapshotsettings + return c +} + +// RequestId sets the optional parameter "requestId": An optional +// request ID to identify requests. Specify a unique request ID so that +// if you must retry your request, the server will know to ignore the +// request if it has already been completed. For example, consider a +// situation where you make an initial request and the request times +// out. If you make the request again with the same request ID, the +// server can check if original operation with the same request ID was +// received, and if so, will ignore the second request. This prevents +// clients from accidentally creating duplicate commitments. The request +// ID must be a valid UUID with the exception that zero UUID is not +// supported ( 00000000-0000-0000-0000-000000000000). +func (c *SnapshotSettingsPatchCall) RequestId(requestId string) *SnapshotSettingsPatchCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// UpdateMask sets the optional parameter "updateMask": update_mask +// indicates fields to be updated as part of this request. +func (c *SnapshotSettingsPatchCall) UpdateMask(updateMask string) *SnapshotSettingsPatchCall { + 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 *SnapshotSettingsPatchCall) Fields(s ...googleapi.Field) *SnapshotSettingsPatchCall { + 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 *SnapshotSettingsPatchCall) Context(ctx context.Context) *SnapshotSettingsPatchCall { + 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 *SnapshotSettingsPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *SnapshotSettingsPatchCall) 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.snapshotsettings) + 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, "projects/{project}/global/snapshotSettings") + 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{ + "project": c.project, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "compute.snapshotSettings.patch" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.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 *SnapshotSettingsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, 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 := &Operation{ + 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": "Patch snapshot settings.", + // "flatPath": "projects/{project}/global/snapshotSettings", + // "httpMethod": "PATCH", + // "id": "compute.snapshotSettings.patch", + // "parameterOrder": [ + // "project" + // ], + // "parameters": { + // "project": { + // "description": "Project ID for this request.", + // "location": "path", + // "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + // "required": true, + // "type": "string" + // }, + // "requestId": { + // "description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).", + // "location": "query", + // "type": "string" + // }, + // "updateMask": { + // "description": "update_mask indicates fields to be updated as part of this request.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "projects/{project}/global/snapshotSettings", + // "request": { + // "$ref": "SnapshotSettings" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/compute" + // ] + // } + +} + // method id "compute.snapshots.delete": type SnapshotsDeleteCall struct { diff --git a/container/v1beta1/container-api.json b/container/v1beta1/container-api.json index f5fd2a3e327..357491f63cb 100644 --- a/container/v1beta1/container-api.json +++ b/container/v1beta1/container-api.json @@ -2565,7 +2565,7 @@ } } }, - "revision": "20230919", + "revision": "20231012", "rootUrl": "https://container.googleapis.com/", "schemas": { "AcceleratorConfig": { @@ -3763,6 +3763,10 @@ "$ref": "NetworkTags", "description": "The desired network tags that apply to all auto-provisioned node pools in autopilot clusters and node auto-provisioning enabled clusters." }, + "desiredNodePoolAutoConfigResourceManagerTags": { + "$ref": "ResourceManagerTags", + "description": "The desired resource manager tags that apply to all auto-provisioned node pools in autopilot clusters and node auto-provisioning enabled clusters." + }, "desiredNodePoolAutoscaling": { "$ref": "NodePoolAutoscaling", "description": "Autoscaler configuration for the node pool specified in desired_node_pool_id. If there is only one pool in the cluster and desired_node_pool_id is not provided then the change applies to that single node pool." @@ -4283,11 +4287,13 @@ "enum": [ "CHANNEL_UNSPECIFIED", "CHANNEL_DISABLED", + "CHANNEL_EXPERIMENTAL", "CHANNEL_STANDARD" ], "enumDescriptions": [ "Default value.", "Gateway API support is disabled", + "Gateway API support is enabled, experimental CRDs are installed", "Gateway API support is enabled, standard CRDs are installed" ], "type": "string" @@ -4450,6 +4456,10 @@ "Nodes receive infrastructure and hypervisor updates on a periodic basis, minimizing the number of maintenance operations (live migrations or terminations) on an individual VM. This may mean underlying VMs will take longer to receive an update than if it was configured for AS_NEEDED. Security updates will still be applied as soon as they are available." ], "type": "string" + }, + "opportunisticMaintenanceStrategy": { + "$ref": "OpportunisticMaintenanceStrategy", + "description": "Strategy that will trigger maintenance on behalf of the customer." } }, "type": "object" @@ -5567,6 +5577,10 @@ "description": "The resource labels for the node pool to use to annotate any related Google Compute Engine resources.", "type": "object" }, + "resourceManagerTags": { + "$ref": "ResourceManagerTags", + "description": "A map of resource manager tag keys and values to be attached to the nodes." + }, "sandboxConfig": { "$ref": "SandboxConfig", "description": "Sandbox configuration for this node." @@ -5868,6 +5882,10 @@ "networkTags": { "$ref": "NetworkTags", "description": "The list of instance tags applied to all nodes. Tags are used to identify valid sources or targets for network firewalls and are specified by the client during cluster creation. Each tag within the list must comply with RFC1035." + }, + "resourceManagerTags": { + "$ref": "ResourceManagerTags", + "description": "Resource manager tag keys and values to be attached to the nodes for managing Compute Engine firewalls using Network Firewall Policies." } }, "type": "object" @@ -6059,7 +6077,8 @@ "SET_NODE_POOL_SIZE", "SET_NETWORK_POLICY", "SET_MAINTENANCE_POLICY", - "RESIZE_CLUSTER" + "RESIZE_CLUSTER", + "FLEET_FEATURE_UPGRADE" ], "enumDeprecated": [ false, @@ -6079,6 +6098,7 @@ false, true, true, + false, false ], "enumDescriptions": [ @@ -6099,7 +6119,8 @@ "The node pool is being resized. With the exception of resizing to or from size zero, the node pool is generally usable during this operation.", "Unused. Updating network policy uses UPDATE_CLUSTER.", "Unused. Updating maintenance policy uses UPDATE_CLUSTER.", - "The control plane is being resized. This operation type is initiated by GKE. These operations are often performed preemptively to ensure that the control plane has sufficient resources and is not typically an indication of issues. For more details, see [documentation on resizes](https://cloud.google.com/kubernetes-engine/docs/concepts/maintenance-windows-and-exclusions#repairs)." + "The control plane is being resized. This operation type is initiated by GKE. These operations are often performed preemptively to ensure that the control plane has sufficient resources and is not typically an indication of issues. For more details, see [documentation on resizes](https://cloud.google.com/kubernetes-engine/docs/concepts/maintenance-windows-and-exclusions#repairs).", + "Fleet features of GKE Enterprise are being upgraded. The cluster should be assumed to be blocked for other upgrades until the operation finishes." ], "type": "string" }, @@ -6195,6 +6216,28 @@ }, "type": "object" }, + "OpportunisticMaintenanceStrategy": { + "description": "Strategy that will trigger maintenance on behalf of the customer.", + "id": "OpportunisticMaintenanceStrategy", + "properties": { + "maintenanceAvailabilityWindow": { + "description": "The window of time that opportunistic maintenance can run. Example: A setting of 14 days implies that opportunistic maintenance can only be ran in the 2 weeks leading up to the scheduled maintenance date. Setting 28 days allows opportunistic maintenance to run at any time in the scheduled maintenance window (all `PERIODIC` maintenance is set 28 days in advance).", + "format": "google-duration", + "type": "string" + }, + "minNodesPerPool": { + "description": "The minimum nodes required to be available in a pool. Blocks maintenance if it would cause the number of running nodes to dip below this value.", + "format": "int64", + "type": "string" + }, + "nodeIdleTimeWindow": { + "description": "The amount of time that a node can remain idle (no customer owned workloads running), before triggering maintenance.", + "format": "google-duration", + "type": "string" + } + }, + "type": "object" + }, "ParentProductConfig": { "description": "ParentProductConfig is the configuration of the parent product of the cluster. This field is used by Google internal products that are built on top of a GKE cluster and take the ownership of the cluster.", "id": "ParentProductConfig", @@ -6534,6 +6577,20 @@ }, "type": "object" }, + "ResourceManagerTags": { + "description": "A map of resource manager tag keys and values to be attached to the nodes for managing Compute Engine firewalls using Network Firewall Policies. Tags must be according to specifications in https://cloud.google.com/vpc/docs/tags-firewalls-overview#specifications. A maximum of 5 tag key-value pairs can be specified. Existing tags will be replaced with new values.", + "id": "ResourceManagerTags", + "properties": { + "tags": { + "additionalProperties": { + "type": "string" + }, + "description": "Tags must be in one of the following formats ([KEY]=[VALUE]) 1. `tagKeys/{tag_key_id}=tagValues/{tag_value_id}` 2. `{org_id}/{tag_key_name}={tag_value_name}` 3. `{project_id}/{tag_key_name}={tag_value_name}`", + "type": "object" + } + }, + "type": "object" + }, "ResourceUsageExportConfig": { "description": "Configuration for exporting cluster resource usages.", "id": "ResourceUsageExportConfig", @@ -7566,6 +7623,10 @@ "$ref": "ResourceLabels", "description": "The resource labels for the node pool to use to annotate any related Google Compute Engine resources." }, + "resourceManagerTags": { + "$ref": "ResourceManagerTags", + "description": "Desired resource manager tag keys and values to be attached to the nodes for managing Compute Engine firewalls using Network Firewall Policies. Existing tags will be replaced with new values." + }, "tags": { "$ref": "NetworkTags", "description": "The desired network tags to be applied to all nodes in the node pool. If this field is not present, the tags will not be changed. Otherwise, the existing network tags will be *replaced* with the provided tags." diff --git a/container/v1beta1/container-gen.go b/container/v1beta1/container-gen.go index 7127d24cc29..6009c4ed4df 100644 --- a/container/v1beta1/container-gen.go +++ b/container/v1beta1/container-gen.go @@ -2032,6 +2032,11 @@ type ClusterUpdate struct { // node auto-provisioning enabled clusters. DesiredNodePoolAutoConfigNetworkTags *NetworkTags `json:"desiredNodePoolAutoConfigNetworkTags,omitempty"` + // DesiredNodePoolAutoConfigResourceManagerTags: The desired resource + // manager tags that apply to all auto-provisioned node pools in + // autopilot clusters and node auto-provisioning enabled clusters. + DesiredNodePoolAutoConfigResourceManagerTags *ResourceManagerTags `json:"desiredNodePoolAutoConfigResourceManagerTags,omitempty"` + // DesiredNodePoolAutoscaling: Autoscaler configuration for the node // pool specified in desired_node_pool_id. If there is only one pool in // the cluster and desired_node_pool_id is not provided then the change @@ -2967,6 +2972,8 @@ type GatewayAPIConfig struct { // Possible values: // "CHANNEL_UNSPECIFIED" - Default value. // "CHANNEL_DISABLED" - Gateway API support is disabled + // "CHANNEL_EXPERIMENTAL" - Gateway API support is enabled, + // experimental CRDs are installed // "CHANNEL_STANDARD" - Gateway API support is enabled, standard CRDs // are installed Channel string `json:"channel,omitempty"` @@ -3291,6 +3298,10 @@ type HostMaintenancePolicy struct { // soon as they are available. MaintenanceInterval string `json:"maintenanceInterval,omitempty"` + // OpportunisticMaintenanceStrategy: Strategy that will trigger + // maintenance on behalf of the customer. + OpportunisticMaintenanceStrategy *OpportunisticMaintenanceStrategy `json:"opportunisticMaintenanceStrategy,omitempty"` + // ForceSendFields is a list of field names (e.g. "MaintenanceInterval") // to unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -5224,6 +5235,10 @@ type NodeConfig struct { // annotate any related Google Compute Engine resources. ResourceLabels map[string]string `json:"resourceLabels,omitempty"` + // ResourceManagerTags: A map of resource manager tag keys and values to + // be attached to the nodes. + ResourceManagerTags *ResourceManagerTags `json:"resourceManagerTags,omitempty"` + // SandboxConfig: Sandbox configuration for this node. SandboxConfig *SandboxConfig `json:"sandboxConfig,omitempty"` @@ -5714,6 +5729,11 @@ type NodePoolAutoConfig struct { // the list must comply with RFC1035. NetworkTags *NetworkTags `json:"networkTags,omitempty"` + // ResourceManagerTags: Resource manager tag keys and values to be + // attached to the nodes for managing Compute Engine firewalls using + // Network Firewall Policies. + ResourceManagerTags *ResourceManagerTags `json:"resourceManagerTags,omitempty"` + // ForceSendFields is a list of field names (e.g. "NetworkTags") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -6077,6 +6097,9 @@ type Operation struct { // For more details, see [documentation on // resizes](https://cloud.google.com/kubernetes-engine/docs/concepts/main // tenance-windows-and-exclusions#repairs). + // "FLEET_FEATURE_UPGRADE" - Fleet features of GKE Enterprise are + // being upgraded. The cluster should be assumed to be blocked for other + // upgrades until the operation finishes. OperationType string `json:"operationType,omitempty"` // Progress: Output only. [Output only] Progress information for an @@ -6203,6 +6226,52 @@ func (s *OperationProgress) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// OpportunisticMaintenanceStrategy: Strategy that will trigger +// maintenance on behalf of the customer. +type OpportunisticMaintenanceStrategy struct { + // MaintenanceAvailabilityWindow: The window of time that opportunistic + // maintenance can run. Example: A setting of 14 days implies that + // opportunistic maintenance can only be ran in the 2 weeks leading up + // to the scheduled maintenance date. Setting 28 days allows + // opportunistic maintenance to run at any time in the scheduled + // maintenance window (all `PERIODIC` maintenance is set 28 days in + // advance). + MaintenanceAvailabilityWindow string `json:"maintenanceAvailabilityWindow,omitempty"` + + // MinNodesPerPool: The minimum nodes required to be available in a + // pool. Blocks maintenance if it would cause the number of running + // nodes to dip below this value. + MinNodesPerPool int64 `json:"minNodesPerPool,omitempty,string"` + + // NodeIdleTimeWindow: The amount of time that a node can remain idle + // (no customer owned workloads running), before triggering maintenance. + NodeIdleTimeWindow string `json:"nodeIdleTimeWindow,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "MaintenanceAvailabilityWindow") 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. + // "MaintenanceAvailabilityWindow") 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 *OpportunisticMaintenanceStrategy) MarshalJSON() ([]byte, error) { + type NoMethod OpportunisticMaintenanceStrategy + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ParentProductConfig: ParentProductConfig is the configuration of the // parent product of the cluster. This field is used by Google internal // products that are built on top of a GKE cluster and take the @@ -6852,6 +6921,43 @@ func (s *ResourceLimit) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// ResourceManagerTags: A map of resource manager tag keys and values to +// be attached to the nodes for managing Compute Engine firewalls using +// Network Firewall Policies. Tags must be according to specifications +// in +// https://cloud.google.com/vpc/docs/tags-firewalls-overview#specifications. +// A maximum of 5 tag key-value pairs can be specified. Existing tags +// will be replaced with new values. +type ResourceManagerTags struct { + // Tags: Tags must be in one of the following formats ([KEY]=[VALUE]) 1. + // `tagKeys/{tag_key_id}=tagValues/{tag_value_id}` 2. + // `{org_id}/{tag_key_name}={tag_value_name}` 3. + // `{project_id}/{tag_key_name}={tag_value_name}` + Tags map[string]string `json:"tags,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Tags") 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. "Tags") 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 *ResourceManagerTags) MarshalJSON() ([]byte, error) { + type NoMethod ResourceManagerTags + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ResourceUsageExportConfig: Configuration for exporting cluster // resource usages. type ResourceUsageExportConfig struct { @@ -8537,6 +8643,12 @@ type UpdateNodePoolRequest struct { // annotate any related Google Compute Engine resources. ResourceLabels *ResourceLabels `json:"resourceLabels,omitempty"` + // ResourceManagerTags: Desired resource manager tag keys and values to + // be attached to the nodes for managing Compute Engine firewalls using + // Network Firewall Policies. Existing tags will be replaced with new + // values. + ResourceManagerTags *ResourceManagerTags `json:"resourceManagerTags,omitempty"` + // Tags: The desired network tags to be applied to all nodes in the node // pool. If this field is not present, the tags will not be changed. // Otherwise, the existing network tags will be *replaced* with the diff --git a/contentwarehouse/v1/contentwarehouse-api.json b/contentwarehouse/v1/contentwarehouse-api.json index 099ce6fe49c..5807915fd4a 100644 --- a/contentwarehouse/v1/contentwarehouse-api.json +++ b/contentwarehouse/v1/contentwarehouse-api.json @@ -1156,7 +1156,7 @@ } } }, - "revision": "20231011", + "revision": "20231020", "rootUrl": "https://contentwarehouse.googleapis.com/", "schemas": { "AbuseiamAbuseType": { @@ -3733,7 +3733,8 @@ "NOTEBOOKLM_AFFINITY", "PLAYSPACE_LABS_AFFINITY", "ZOMBIE_CLOUD_AFFINITY", - "RELATIONSHIPS_AFFINITY" + "RELATIONSHIPS_AFFINITY", + "APPS_WORKFLOW_AFFINITY" ], "enumDeprecated": [ false, @@ -4007,6 +4008,7 @@ false, false, false, + false, false ], "enumDescriptions": [ @@ -4281,6 +4283,7 @@ "", "", "", + "", "" ], "type": "string" @@ -11388,8 +11391,7 @@ "type": "object" }, "AssistantApiCoreTypesCalendarEvent": { - "deprecated": true, - "description": "This proto contains the information of a calendar event, including title, start time, end time, etc. IMPORTANT: The definition of CalendarEvent proto is being moved to //assistant/api/core_types/governed/calendar_event_type.proto. All existing references will be updated to point to the new location. If you are adding a reference, use the new one instead. LINT.IfChange(CalendarEvent) NEXT_ID: 26", + "description": "This proto contains the information of a calendar event, including title, start time, end time, etc. LINT.IfChange(CalendarEvent) NEXT_ID: 26", "id": "AssistantApiCoreTypesCalendarEvent", "properties": { "attendees": { @@ -11723,8 +11725,7 @@ "type": "object" }, "AssistantApiCoreTypesCalendarEventWrapper": { - "deprecated": true, - "description": "This empty type allows us to publish sensitive calendar events to go/attentional-entities, while maintaining BUILD visibility protection for their contents. The BUILD-visibility-protected extension to this message is defined at http://google3/assistant/verticals/calendar/proto/multi_account_calendar_event.proto IMPORTANT: The definition of CalendarEventWrapper proto is being moved to //assistant/api/core_types/governed/calendar_event_type.proto. All existing references will be updated to point to the new location. If you are adding a reference, use the new one instead.", + "description": "This empty type allows us to publish sensitive calendar events to go/attentional-entities, while maintaining BUILD visibility protection for their contents. The BUILD-visibility-protected extension to this message is defined at http://google3/assistant/verticals/calendar/proto/multi_account_calendar_event.proto", "id": "AssistantApiCoreTypesCalendarEventWrapper", "properties": {}, "type": "object" @@ -11826,7 +11827,6 @@ "type": "object" }, "AssistantApiCoreTypesDeviceConfig": { - "deprecated": true, "description": "The identification information for third party devices that integrates with the assistant. All of these fields will be populated by the third party when the query is sent from the third party device. Next Id: 5", "id": "AssistantApiCoreTypesDeviceConfig", "properties": { @@ -11842,7 +11842,6 @@ "type": "object" }, "AssistantApiCoreTypesDeviceId": { - "deprecated": true, "description": "LINT.IfChange(DeviceId) Specifies identifier of a device AKA surface. Note there may be multiple device ids for the same physical device E.g. Allo app and Assistant app on Nexus. Note: DeviceId usage is complicated. Please do not depend on it for surface specific logic. Please use google3/assistant/api/capabilities.proto instead. IMPORTANT: When checking for equality between two `DeviceId`s, you should always use an `isSameDevice{As}` function to check for equality, as deep equality between `DeviceId`'s is not guaranteed. * C++: http://google3/assistant/assistant_server/util/device_id_util.cc;l=23;rcl=421295740 * Dart: http://google3/assistant/context/util/lib/device_id.dart;l=26;rcl=442126145 * Java: http://google3/java/com/google/assistant/assistantserver/utils/DeviceIdHelper.java;l=9;rcl=390378522 See http://go/deviceid-equality for more details. Next ID: 14", "id": "AssistantApiCoreTypesDeviceId", "properties": { @@ -11903,8 +11902,7 @@ "type": "object" }, "AssistantApiCoreTypesDeviceUserIdentity": { - "deprecated": true, - "description": "IMPORTANT: The definition of DeviceUserIdentity is being moved to //assistant/api/core_types/governed/device_user_identity.proto. All existing references will be updated to point to the new location. If you are adding a reference, use the new DeviceUserIdentity instead of this one. // LINT.IfChange", + "description": "LINT.IfChange", "id": "AssistantApiCoreTypesDeviceUserIdentity", "properties": { "deviceId": { @@ -11920,7 +11918,8 @@ "type": "object" }, "AssistantApiCoreTypesGovernedColor": { - "description": "Represents a color in the RGBA color space. This message mirrors google.type.Color.", + "deprecated": true, + "description": "LINT.IfChange Represents a color in the RGBA color space. This message mirrors google.type.Color. IMPORTANT: The definition of Color proto is being moved to //assistant/api/core_types/color_type.proto. All existing references will be updated to point to the new location. If you are adding a reference, use the new one instead.", "id": "AssistantApiCoreTypesGovernedColor", "properties": { "alpha": { @@ -11947,7 +11946,8 @@ "type": "object" }, "AssistantApiCoreTypesGovernedDeviceConfig": { - "description": "The identification information for third party devices that integrates with the assistant. All of these fields will be populated by the third party when the query is sent from the third party device. Next Id: 5", + "deprecated": true, + "description": "The identification information for third party devices that integrates with the assistant. All of these fields will be populated by the third party when the query is sent from the third party device. IMPORTANT: The definition of DeviceConfig proto is being moved to //assistant/api/core_types/device_type.proto. All existing references will be updated to point to the new location. If you are adding a reference, use the new one instead. Next Id: 5", "id": "AssistantApiCoreTypesGovernedDeviceConfig", "properties": { "agentId": { @@ -11962,7 +11962,8 @@ "type": "object" }, "AssistantApiCoreTypesGovernedDeviceId": { - "description": "LINT.IfChange Specifies identifier of a device AKA surface. Note there may be multiple device ids for the same physical device E.g. Allo app and Assistant app on Nexus. Note: DeviceId usage is complicated. Please do not depend on it for surface specific logic. Please use google3/assistant/api/capabilities.proto instead. IMPORTANT: When checking for equality between two `DeviceId`s, you should always use an `isSameDevice{As}` function to check for equality, as deep equality between `DeviceId`'s is not guaranteed. * C++: http://google3/assistant/assistant_server/util/device_id_util.cc;l=23;rcl=421295740 * Dart: http://google3/assistant/context/util/lib/device_id.dart;l=26;rcl=442126145 * Java: http://google3/java/com/google/assistant/assistantserver/utils/DeviceIdHelper.java;l=9;rcl=390378522 See http://go/deviceid-equality for more details. Next ID: 14", + "deprecated": true, + "description": "LINT.IfChange Specifies identifier of a device AKA surface. Note there may be multiple device ids for the same physical device E.g. Allo app and Assistant app on Nexus. Note: DeviceId usage is complicated. Please do not depend on it for surface specific logic. Please use google3/assistant/api/capabilities.proto instead. IMPORTANT: When checking for equality between two `DeviceId`s, you should always use an `isSameDevice{As}` function to check for equality, as deep equality between `DeviceId`'s is not guaranteed. * C++: http://google3/assistant/assistant_server/util/device_id_util.cc;l=23;rcl=421295740 * Dart: http://google3/assistant/context/util/lib/device_id.dart;l=26;rcl=442126145 * Java: http://google3/java/com/google/assistant/assistantserver/utils/DeviceIdHelper.java;l=9;rcl=390378522 See http://go/deviceid-equality for more details. IMPORTANT: The definition of DeviceId proto is being moved to //assistant/api/core_types/device_type.proto. All existing references will be updated to point to the new location. If you are adding a reference, use the new one instead. Next ID: 14", "id": "AssistantApiCoreTypesGovernedDeviceId", "properties": { "agsaClientInstanceId": { @@ -12022,7 +12023,8 @@ "type": "object" }, "AssistantApiCoreTypesGovernedRingtoneTaskMetadata": { - "description": "Task metadata information describing the ringtone. Next id: 11", + "deprecated": true, + "description": "LINT.IfChange Task metadata information describing the ringtone. IMPORTANT: The definition of RingtoneTaskMetadata proto is being moved to //assistant/api/core_types/ringtone_task_metadata.proto. All existing references will be updated to point to the new location. If you are adding a reference, use the new one instead. Next id: 11", "id": "AssistantApiCoreTypesGovernedRingtoneTaskMetadata", "properties": { "category": { @@ -12340,7 +12342,8 @@ "type": "object" }, "AssistantApiCoreTypesGovernedSurfaceIdentity": { - "description": "The set of information that helps the server identify the surface. This replaces the User-Agent string within the Assistant Server. Note: The SurfaceIdentity proto should only be used to derive the capabilities of a surface. It should not be accessed outside of the CapabilityBuilder or CapabilityChecker. NEXT ID: 6 LINT.IfChange", + "deprecated": true, + "description": "The set of information that helps the server identify the surface. This replaces the User-Agent string within the Assistant Server. Note: The SurfaceIdentity proto should only be used to derive the capabilities of a surface. It should not be accessed outside of the CapabilityBuilder or CapabilityChecker. IMPORTANT: The partial migration to the SurfaceIdentity and SurfaceVersion protos defined here is being rolled back (b/303012824). All existing references will be updated to point back to //assistant/api/core_types/surface_identity.proto. If you are adding a reference, use the SurfaceIdentity and SurfaceVersion protos defined there. NEXT ID: 6 LINT.IfChange", "id": "AssistantApiCoreTypesGovernedSurfaceIdentity", "properties": { "deviceId": { @@ -12667,6 +12670,7 @@ "type": "object" }, "AssistantApiCoreTypesGovernedSurfaceVersion": { + "deprecated": true, "description": "The version of the surface/client. New surfaces are encouraged to only use the “major” field to keep track of version number. The “minor” field may be used for surfaces that rely on both the “major” and “minor” fields to define their version.", "id": "AssistantApiCoreTypesGovernedSurfaceVersion", "properties": { @@ -12697,8 +12701,7 @@ "type": "object" }, "AssistantApiCoreTypesImage": { - "deprecated": true, - "description": "An image represents the data about an image or a photo. IMPORTANT: The definition of the Image message is being moved to //assistant/api/core_types/governed/image_type.proto. All existing references will be updated to point to the new location. If you are adding a reference, use the new Image message instead of this one. LINT.IfChange NextId: 13", + "description": "An image represents the data about an image or a photo. LINT.IfChange NextId: 13", "id": "AssistantApiCoreTypesImage", "properties": { "accessibilityText": { @@ -13124,8 +13127,7 @@ "type": "object" }, "AssistantApiCoreTypesSurfaceIdentity": { - "deprecated": true, - "description": "The set of information that helps the server identify the surface. This replaces the User-Agent string within the Assistant Server. Note: The SurfaceIdentity proto should only be used to derive the capabilities of a surface. It should not be accessed outside of the CapabilityBuilder or CapabilityChecker. NEXT ID: 6 IMPORTANT: The definitions of the SurfaceIdentity and SurfaceVersion protos are being moved to //assistant/api/core_types/governed/surface_identity.proto All existing references will be updated to point to the new location. If you are adding a reference, use the new SurfaceIdentity and SurfaceVersion protos instead of the protos defined here. LINT.IfChange", + "description": "The set of information that helps the server identify the surface. This replaces the User-Agent string within the Assistant Server. Note: The SurfaceIdentity proto should only be used to derive the capabilities of a surface. It should not be accessed outside of the CapabilityBuilder or CapabilityChecker. NEXT ID: 6 LINT.IfChange", "id": "AssistantApiCoreTypesSurfaceIdentity", "properties": { "deviceId": { @@ -13446,7 +13448,7 @@ }, "surfaceTypeString": { "deprecated": true, - "description": "DEPRECATED. assistant.api.core_types.governed.SurfaceIdentity.surface_type field should be used instead. The device's surface type. This is the string version of the assistant.api.core_types.SurfaceType enum. The server should not use this field, rather it should use the SurfaceType value derived from this string.", + "description": "DEPRECATED. The legacy device's surface type string. NOTE: Prefer using the ontological `surface_type` field. The device's surface type. This is the string version of the assistant.api.core_types.SurfaceType enum. The server should not use this field, rather it should use the SurfaceType value derived from this string.", "type": "string" }, "surfaceVersion": { @@ -13457,7 +13459,6 @@ "type": "object" }, "AssistantApiCoreTypesSurfaceType": { - "deprecated": true, "description": "Specifies the types of device surfaces. LINT.IfChange When adding new surface types make sure that My Activity (https://myactivity.google.com/product/assistant) will correctly render by adding your enum to http://cs/symbol:GetAssistSurfaceName%20f:%5C.cc$ If your type doesn't fit in to any of the existing surfaces messages, add a new message in http://google3/personalization/footprints/boq/uservisible/events/intl/smh_frontend_messages.h.", "id": "AssistantApiCoreTypesSurfaceType", "properties": { @@ -13651,7 +13652,6 @@ "type": "object" }, "AssistantApiCoreTypesSurfaceVersion": { - "deprecated": true, "description": "The version of the surface/client. New surfaces are encouraged to only use the “major” field to keep track of version number. The “minor” field may be used for surfaces that rely on both the “major” and “minor” fields to define their version.", "id": "AssistantApiCoreTypesSurfaceVersion", "properties": { @@ -13723,8 +13723,7 @@ "type": "object" }, "AssistantApiDate": { - "deprecated": true, - "description": "A Gregorian calendar date. IMPORTANT: The definition of Date proto is being moved to //assistant/api/core_types/governed/datetime_type.proto. All existing references will be updated to point to the new location. If you are adding a reference, use the new one instead.", + "description": "A Gregorian calendar date.", "id": "AssistantApiDate", "properties": { "day": { @@ -13746,8 +13745,7 @@ "type": "object" }, "AssistantApiDateTime": { - "deprecated": true, - "description": "A date-time specification, combining a date and civil time (relative to a given timezone). IMPORTANT: The definition of DateTime proto is being moved to //assistant/api/core_types/governed/datetime_type.proto. All existing references will be updated to point to the new location. If you are adding a reference, use the new one instead.", + "description": "A date-time specification, combining a date and civil time (relative to a given timezone).", "id": "AssistantApiDateTime", "properties": { "date": { @@ -13765,6 +13763,21 @@ }, "type": "object" }, + "AssistantApiDateTimeRange": { + "description": "A representation of a range of time with start and end datetime specified.", + "id": "AssistantApiDateTimeRange", + "properties": { + "endDate": { + "$ref": "AssistantApiDateTime", + "description": "End date of the range." + }, + "startDate": { + "$ref": "AssistantApiDateTime", + "description": "Start date of the range." + } + }, + "type": "object" + }, "AssistantApiDeviceCapabilities": { "description": "This message describes roughly what a surface is capable of doing and metadata around those capabilities. These capabilities are determined based on: - device hardware - software - status (e.g. volume level, battery percentage) These capabilities refer to the surface and not the physical device. The list of supported surfaces can be found in the assistant.api.core_types.SurfaceType enum. A surface's capabilities can differ from the device's. An example would be ANDROID_ALLO running on Pixel. Allo does not support AudioInput while the Pixel does. In this case, audio_input will be set to false for Assistant Allo requests while it might be set to true for OPA_NEXUS requests. Next ID: 36", "id": "AssistantApiDeviceCapabilities", @@ -15137,8 +15150,7 @@ "type": "object" }, "AssistantApiRecurrence": { - "deprecated": true, - "description": "Date-based recurrences specify repeating events. Conceptually, a recurrence is a (possibly unbounded) sequence of dates on which an event falls, described by a list of constraints. A date is in a recurrence if and only if it satisfies all of the constraints. Note that devices may support some constraints, but not all. IMPORTANT: The definition of Recurrence proto is being moved to //assistant/api/core_types/governed/datetime_type.proto. All existing references will be updated to point to the new location. If you are adding a reference, use the new one instead.", + "description": "Date-based recurrences specify repeating events. Conceptually, a recurrence is a (possibly unbounded) sequence of dates on which an event falls, described by a list of constraints. A date is in a recurrence if and only if it satisfies all of the constraints. Note that devices may support some constraints, but not all.", "id": "AssistantApiRecurrence", "properties": { "begin": { @@ -15148,7 +15160,7 @@ "blacklistedRanges": { "description": "A list of blacklisted dates to skip the alarm on.", "items": { - "$ref": "AssistantApiRecurrenceDatetimeRange" + "$ref": "AssistantApiDateTimeRange" }, "type": "array" }, @@ -15201,21 +15213,6 @@ }, "type": "object" }, - "AssistantApiRecurrenceDatetimeRange": { - "description": "A representation of a range of time with start and end datetime specified.", - "id": "AssistantApiRecurrenceDatetimeRange", - "properties": { - "endDate": { - "$ref": "AssistantApiDateTime", - "description": "End date of the range." - }, - "startDate": { - "$ref": "AssistantApiDateTime", - "description": "Start date of the range." - } - }, - "type": "object" - }, "AssistantApiScreenCapabilities": { "description": "These capabilities represent the tactile features associated with the device. This includes, for example, whether the device has a screen, how big the screen is, and privacy of the screen. Next ID: 11", "id": "AssistantApiScreenCapabilities", @@ -18130,8 +18127,7 @@ "type": "object" }, "AssistantApiTimeOfDay": { - "deprecated": true, - "description": "A civil time relative to a timezone. IMPORTANT: The definition of TimeOfDay proto is being moved to //assistant/api/core_types/governed/datetime_type.proto. All existing references will be updated to point to the new location. If you are adding a reference, use the new one instead.", + "description": "A civil time relative to a timezone.", "id": "AssistantApiTimeOfDay", "properties": { "hour": { @@ -18158,8 +18154,7 @@ "type": "object" }, "AssistantApiTimeZone": { - "deprecated": true, - "description": "A time zone. Conceptually, a time zone is a set of rules associated with a location that describes a UTC offset and how it changes over time (e.g. Daylight Saving Time). The offset is used to compute the local date and time. IMPORTANT: The definition of TimeZone enum is being moved to //assistant/api/core_types/governed/datetime_type.proto. All existing references will be updated to point to the new location. If you are adding a reference, use the new one instead.", + "description": "A time zone. Conceptually, a time zone is a set of rules associated with a location that describes a UTC offset and how it changes over time (e.g. Daylight Saving Time). The offset is used to compute the local date and time.", "id": "AssistantApiTimeZone", "properties": { "ianaId": { @@ -18170,8 +18165,7 @@ "type": "object" }, "AssistantApiTimestamp": { - "deprecated": true, - "description": "An absolute point in time independent of timezone or calendar, based on the proto3 Timestamp (//google/protobuf/timestamp.proto). IMPORTANT: The definition of Timestamp proto is being moved to //assistant/api/core_types/governed/datetime_type.proto. All existing references will be updated to point to the new location. If you are adding a reference, use the new one instead. NOTE: THIS IS NO LONGER RECOMMENDED TO BE USED. It was originally defined separately from google.protobuf.Timestamp due to incompatibility with proto2 syntax. The incompatibility issues have since been resolved and so the Google-wide standard representation of google.protobuf.Timestamp should be preferred. In fact, google.protobuf.* protos in general are now recommended to be used in new APIs.", + "description": "An absolute point in time independent of timezone or calendar, based on the proto3 Timestamp (//google/protobuf/timestamp.proto). NOTE: THIS IS NO LONGER RECOMMENDED TO BE USED. It was originally defined separately from google.protobuf.Timestamp due to incompatibility with proto2 syntax. The incompatibility issues have since been resolved and so the Google-wide standard representation of google.protobuf.Timestamp should be preferred. In fact, google.protobuf.* protos in general are now recommended to be used in new APIs.", "id": "AssistantApiTimestamp", "properties": { "nanos": { @@ -18239,7 +18233,7 @@ "type": "object" }, "AssistantContextAppProviderId": { - "description": "LINT.IfChanged Identifier for an application provider. NOTE: AppProviderId contains surface-specific info, such as the Android package name of the application. This was necessary for supporting current use cases that rely on surface-specific info in feature code. Eventually we want to deprecate AppProviderId and fetch surface-specific info in some other way (e.g. in a surface-translation layer). But until then, we may continue extending AppProviderId with other surface-specific info.", + "description": "LINT.IfChange Identifier for an application provider. NOTE: AppProviderId contains surface-specific info, such as the Android package name of the application. This was necessary for supporting current use cases that rely on surface-specific info in feature code. Eventually we want to deprecate AppProviderId and fetch surface-specific info in some other way (e.g. in a surface-translation layer). But until then, we may continue extending AppProviderId with other surface-specific info.", "id": "AssistantContextAppProviderId", "properties": { "activityClassName": { @@ -19485,7 +19479,8 @@ "NAME_CORRECTION_LOG", "FUZZY_CONTACT_MATCH", "NEURAL_CONTACT_MATCH", - "NEURAL_CONTACT_MATCH_DARK_LAUNCH" + "NEURAL_CONTACT_MATCH_DARK_LAUNCH", + "PERSONALIZED_NAME_CORRECTION_LOG" ], "enumDescriptions": [ "", @@ -19494,7 +19489,8 @@ "Alternate name from contact correction history.", "Fuzzy match with user's contacts.", "Neural match. See go/phonetic-contact-match.", - "The dark launch for a neural match. We found a match, but we ignore it for serving and just log it." + "The dark launch for a neural match. We found a match, but we ignore it for serving and just log it.", + "Personalized alternate name from Assistant User Profile that stores personalized contact name corrections under ContactAlternates profile." ], "type": "string" } @@ -19926,7 +19922,7 @@ "type": "object" }, "AssistantGroundingRankerMediaGroundingProviderFeatures": { - "description": "Features to be passed from Media GP to HGR. Next ID: 20", + "description": "Features to be passed from Media GP to HGR. Next ID: 21", "id": "AssistantGroundingRankerMediaGroundingProviderFeatures", "properties": { "albumReleaseType": { @@ -19996,6 +19992,10 @@ "description": "True if the user requests seed radio.", "type": "boolean" }, + "isSelfReportedSvodProvider": { + "description": "Provider is a self(user) reported subscripted provider https://g3doc.corp.google.com/knowledge/g3doc/ump/development/GetProviderAffinity.md?cl=head", + "type": "boolean" + }, "isYoutubeMusicSeeking": { "description": "Indicates whether this is youtube content seeking music.", "type": "boolean" @@ -20632,7 +20632,8 @@ "NAME_CORRECTION_LOG", "FUZZY_CONTACT_MATCH", "NEURAL_CONTACT_MATCH", - "NEURAL_CONTACT_MATCH_DARK_LAUNCH" + "NEURAL_CONTACT_MATCH_DARK_LAUNCH", + "PERSONALIZED_NAME_CORRECTION_LOG" ], "enumDescriptions": [ "", @@ -20641,7 +20642,8 @@ "Alternate name from contact correction history.", "Fuzzy match with user's contacts.", "Neural match. See go/phonetic-contact-match.", - "The dark launch for a neural match. We found a match, but we ignore it for serving and just log it." + "The dark launch for a neural match. We found a match, but we ignore it for serving and just log it.", + "Personalized alternate name from Assistant User Profile that stores personalized contact name corrections under ContactAlternates profile." ], "type": "string" }, @@ -32762,7 +32764,7 @@ "type": "object" }, "GeostoreCityJsonProto": { - "description": "CityJsonProto is a custom proto representation of the portion of the CityJSON spec (https://www.cityjson.org/) relevant to internal projects. See go/cityjsonproto-design for more information about the modeling and design decisions implemented here.", + "description": "CityJsonProto is a custom proto representation of the portion of the CityJSON spec (https://www.cityjson.org/) relevant to internal projects. See go/cityjsonproto-design for more information about the modeling and design decisions implemented here. LINT.IfChange", "id": "GeostoreCityJsonProto", "properties": { "cityObjects": { @@ -32820,7 +32822,7 @@ "type": "object" }, "GeostoreCityJsonProtoCityObjectGeometry": { - "description": "Representation of geometry. Geometries vary both in type and in level-of-detail, enabling representation of any shape at any level of granularity.", + "description": "Representation of geometry including geometric primitives which are used as building blocks to construct geometries of varying complexity. Geometries vary both in type and in level-of-detail, enabling representation of any shape at any level of granularity. All geometries are ultimately composed of `MultiPoint`s, which reference the actual vertices. Only linear and planar shapes are allowed, no curves or parametric surfaces.", "id": "GeostoreCityJsonProtoCityObjectGeometry", "properties": { "lod": { @@ -33408,6 +33410,7 @@ "PROVIDER_GOOGLE_GEO_NG_LOCAL", "PROVIDER_GOOGLE_MAPFACTS_CLEANUP", "PROVIDER_GOOGLE_THIRD_PARTY_UGC", + "PROVIDER_GOOGLE_GEO_ISSUE_ADMIN", "PROVIDER_GOOGLE_LOCALSEARCH", "PROVIDER_GOOGLE_TRANSIT", "PROVIDER_GOOGLE_GEOWIKI", @@ -34131,6 +34134,7 @@ false, false, false, + false, true, false, false, @@ -34672,7 +34676,7 @@ "", "ABSTRACT", "", - "All new \"Google\" provider entries must be full ints. The next available ID is: 0x111730B7", + "All new \"Google\" provider entries must be full ints. The next available ID is: 0x111730B8", "ABSTRACT", "", "", @@ -34850,6 +34854,7 @@ "", "", "UMBRELLA", + "", "The next new \"Google\" provider entries should be placed above.", "UMBRELLA", "", @@ -39717,6 +39722,7 @@ "PROVIDER_GOOGLE_GEO_NG_LOCAL", "PROVIDER_GOOGLE_MAPFACTS_CLEANUP", "PROVIDER_GOOGLE_THIRD_PARTY_UGC", + "PROVIDER_GOOGLE_GEO_ISSUE_ADMIN", "PROVIDER_GOOGLE_LOCALSEARCH", "PROVIDER_GOOGLE_TRANSIT", "PROVIDER_GOOGLE_GEOWIKI", @@ -40440,6 +40446,7 @@ false, false, false, + false, true, false, false, @@ -40981,7 +40988,7 @@ "", "ABSTRACT", "", - "All new \"Google\" provider entries must be full ints. The next available ID is: 0x111730B7", + "All new \"Google\" provider entries must be full ints. The next available ID is: 0x111730B8", "ABSTRACT", "", "", @@ -41159,6 +41166,7 @@ "", "", "UMBRELLA", + "", "The next new \"Google\" provider entries should be placed above.", "UMBRELLA", "", @@ -42653,6 +42661,7 @@ "PROVIDER_GOOGLE_GEO_NG_LOCAL", "PROVIDER_GOOGLE_MAPFACTS_CLEANUP", "PROVIDER_GOOGLE_THIRD_PARTY_UGC", + "PROVIDER_GOOGLE_GEO_ISSUE_ADMIN", "PROVIDER_GOOGLE_LOCALSEARCH", "PROVIDER_GOOGLE_TRANSIT", "PROVIDER_GOOGLE_GEOWIKI", @@ -43376,6 +43385,7 @@ false, false, false, + false, true, false, false, @@ -43917,7 +43927,7 @@ "", "ABSTRACT", "", - "All new \"Google\" provider entries must be full ints. The next available ID is: 0x111730B7", + "All new \"Google\" provider entries must be full ints. The next available ID is: 0x111730B8", "ABSTRACT", "", "", @@ -44095,6 +44105,7 @@ "", "", "UMBRELLA", + "", "The next new \"Google\" provider entries should be placed above.", "UMBRELLA", "", @@ -45892,6 +45903,7 @@ "PROVIDER_GOOGLE_GEO_NG_LOCAL", "PROVIDER_GOOGLE_MAPFACTS_CLEANUP", "PROVIDER_GOOGLE_THIRD_PARTY_UGC", + "PROVIDER_GOOGLE_GEO_ISSUE_ADMIN", "PROVIDER_GOOGLE_LOCALSEARCH", "PROVIDER_GOOGLE_TRANSIT", "PROVIDER_GOOGLE_GEOWIKI", @@ -46615,6 +46627,7 @@ false, false, false, + false, true, false, false, @@ -47156,7 +47169,7 @@ "", "ABSTRACT", "", - "All new \"Google\" provider entries must be full ints. The next available ID is: 0x111730B7", + "All new \"Google\" provider entries must be full ints. The next available ID is: 0x111730B8", "ABSTRACT", "", "", @@ -47334,6 +47347,7 @@ "", "", "UMBRELLA", + "", "The next new \"Google\" provider entries should be placed above.", "UMBRELLA", "", @@ -60877,168 +60891,6 @@ }, "type": "object" }, - "HumanSensingFaceAttribute": { - "description": "Defines a generic attribute. The name field is the name of the attribute (for example beard, glasses, joy). The confidence defines how reliable the given annotation is. For binary attributes it is bounded between 0 and 1 and can be interpreted as the posterior probability. The value field can be used for continuous attributes like age. Information returned or stored in this message may be sensitive from a privacy, policy, or legal point of view. Clients should consult with their p-counsels and the privacy working group (go/pwg) to make sure their use respects Google policies.", - "id": "HumanSensingFaceAttribute", - "properties": { - "confidence": { - "format": "float", - "type": "number" - }, - "name": { - "type": "string" - }, - "type": { - "enum": [ - "TYPE_UNKNOWN", - "FREE_FORM", - "FEMALE", - "MALE", - "AGE", - "NON_HUMAN", - "GLASSES", - "DARK_GLASSES", - "HEADWEAR", - "EYES_VISIBLE", - "LEFT_EYELID_CLOSED", - "RIGHT_EYELID_CLOSED", - "MOUTH_OPEN", - "FACIAL_HAIR", - "LONG_HAIR", - "FRONTAL_GAZE", - "SMILING", - "UNDER_EXPOSED", - "BLURRED", - "LEFT_EYE_VISIBLE", - "RIGHT_EYE_VISIBLE", - "LEFT_EAR_VISIBLE", - "RIGHT_EAR_VISIBLE", - "NOSE_TIP_VISIBLE", - "MOUTH_CENTER_VISIBLE", - "LOWER_FACE_COVERED", - "AMUSEMENT", - "ANGER", - "CONCENTRATION", - "CONFUSION", - "CONTENTMENT", - "DESIRE", - "DISAPPOINTMENT", - "DISGUST", - "ELATION", - "EMBARRASSMENT", - "INTEREST", - "LOVE", - "PAIN", - "PRIDE", - "RELIEF", - "SADNESS", - "SURPRISE", - "CANDID", - "POSED" - ], - "enumDeprecated": [ - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - true, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false - ], - "enumDescriptions": [ - "", - "", - "Attribute types that describe the gender of a face. For an attribute if type FEMALE the confidence represent the probability of a face to be from a female person. Similarly, for an attribute of type MALE the confidence is the probability of a face to be from a male person. 4 is reserved for OTHER_GENDER.", - "", - "Attribute type that represent the age of the face. For an attribute of this type the field value represent the age. Values are assumed to be in the range [0, 95].", - "This attributes is used to distinguish actual human faces from other possible face detections like face of sculptures, cartoons faces, and some false detections.", - "Attributes types that describes face appearances/configurations (mouth open, eyes visibles and looking into the camera, smiling) and props (glasses, dark glasses, and headwear).", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "Attributes for the visibility of face landmarks. The landmarks refers to a single point in the image, so the eyes are visible if their center is visible, the ears are visible if the ear tragion is visible.", - "", - "", - "", - "", - "", - "An attribute describing if the lower part of a face is covered by something like a face mask, a scarf or any other type of covering. The expectation is for both the mouth and the nose tip to be covered. This is useful for labeling faces in images captured during the Covid pandemic.", - "FeelNet expressions.", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "" - ], - "type": "string" - }, - "value": { - "format": "float", - "type": "number" - } - }, - "type": "object" - }, "I18nPhonenumbersPhoneNumber": { "description": "The PhoneNumber object that is used by all LibPhoneNumber API's to fully represent a phone number.", "id": "I18nPhonenumbersPhoneNumber", @@ -61542,7 +61394,7 @@ "type": "object" }, "ImageData": { - "description": "This defines the per-doc data which is extracted from thumbnails and propagated over to indexing. It contains all information that can be used for restricts. Next tag id: 132", + "description": "This defines the per-doc data which is extracted from thumbnails and propagated over to indexing. It contains all information that can be used for restricts. Next tag id: 131", "id": "ImageData", "properties": { "adaboostImageFeaturePorn": { @@ -61666,10 +61518,6 @@ "$ref": "PhotosImageMetadata", "description": "The EXIF generated by photos backend team's (more specifically FIFE's) thumbnailer library. This exif model is more comprehensive since a dedicated team is constantly improving it and adding new fields over time. This is currently populated by moonshine for selected corpora." }, - "faceDetection": { - "$ref": "ReneFaceResponse", - "description": "Face Detection." - }, "featuredImageProp": { "$ref": "ImageMonetizationFeaturedImageProperties", "description": "Properties used in featured imagesearch project. inspiration_score indicates how well an image is related to products, or how inspirational it is." @@ -63385,7 +63233,8 @@ "GENUS_SEARCH_SPORTS", "GENUS_BUSINESSMESSAGING", "GENUS_AERIAL_VIEW", - "GENUS_DOCS_FLIX_RENDER" + "GENUS_DOCS_FLIX_RENDER", + "GENUS_SHOPPING" ], "enumDescriptions": [ "", @@ -63436,7 +63285,8 @@ "Genus for Search Sports vertical videos", "Genus for Business Messaging videos", "Genus for Geo Aerial View", - "Genus for Flix Render (Docs)" + "Genus for Flix Render (Docs)", + "Genus for CDS videos processed through Amarna." ], "type": "string" }, @@ -64336,7 +64186,8 @@ "GENUS_SEARCH_SPORTS", "GENUS_BUSINESSMESSAGING", "GENUS_AERIAL_VIEW", - "GENUS_DOCS_FLIX_RENDER" + "GENUS_DOCS_FLIX_RENDER", + "GENUS_SHOPPING" ], "enumDescriptions": [ "", @@ -64387,7 +64238,8 @@ "Genus for Search Sports vertical videos", "Genus for Business Messaging videos", "Genus for Geo Aerial View", - "Genus for Flix Render (Docs)" + "Genus for Flix Render (Docs)", + "Genus for CDS videos processed through Amarna." ], "type": "string" }, @@ -91252,6 +91104,7 @@ "NOTEBOOKLM", "ZOMBIE_CLOUD", "RELATIONSHIPS", + "APPS_WORKFLOW", "DEPRECATED_QUICKSTART_FLUME", "DUO_CLIENT", "ALBERT", @@ -91908,97 +91761,98 @@ false, false, false, - true, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, false, false, false, @@ -92564,6 +92418,7 @@ "Notebooklm Team contact: labs-tailwind-eng-team@google.com", "Zombie Cloud Team contact: zombie-cloud-eng@google.com", "Relationships Team contact: hana-dev@google.com", + "Apps Workflow Team contact: workflows-frontend-eng@google.com", "", "Duo Client Team contact: duo-eng@google.com", "Project albert (go/albert-frontend) Team contact: albert-eng@google.com", @@ -96430,578 +96285,6 @@ }, "type": "object" }, - "PhotosVisionServiceFaceFaceParams": { - "description": "FaceParams are a collection of parameters of a single face found in an image. WARNING: This message has a jspb target. If you add a new message field inside, either put its definition inside this message as well or add the js file corresponding to the new message to the js_deps and proto_js rules in the BUILD file; otherwise it will break lots of builds. The js file name is the message name all in lowercase letters. Next available id: 40.", - "id": "PhotosVisionServiceFaceFaceParams", - "properties": { - "age": { - "description": "The age of the face. Range [0.0, 120.0].", - "format": "float", - "type": "number" - }, - "angerProbability": { - "format": "float", - "type": "number" - }, - "attribute": { - "description": "Attributes for the detected face. Information returned or stored in this message may be sensitive from a privacy, policy, or legal point of view. Clients should consult with their p-counsels and the privacy working group (go/pwg) to make sure their use respects Google policies.", - "items": { - "$ref": "HumanSensingFaceAttribute" - }, - "type": "array" - }, - "beardProbability": { - "format": "float", - "type": "number" - }, - "blurredProbability": { - "format": "float", - "type": "number" - }, - "boundingBox": { - "$ref": "PhotosVisionServiceFaceFaceParamsBoundingBox", - "description": "Bounding box around the face. The coordinates of the bounding box are in the original image's scale as returned in ImageParams. The bounding box is computed to \"frame\" the face as a human would expect, and is typically used in UI (e.g. G+ to show circles around detected faces). It is based on the landmarker results." - }, - "darkGlassesProbability": { - "format": "float", - "type": "number" - }, - "detectionConfidence": { - "description": "Confidence is in the range [0,1].", - "format": "float", - "type": "number" - }, - "extendedLandmarks": { - "items": { - "$ref": "PhotosVisionServiceFaceFaceParamsExtendedLandmark" - }, - "type": "array" - }, - "eyesClosedProbability": { - "format": "float", - "type": "number" - }, - "face2cartoonResults": { - "$ref": "ResearchVisionFace2cartoonFace2CartoonResults", - "description": "Attributes of the detected face useful for generating a cartoon version of the face." - }, - "faceCropV8": { - "$ref": "PhotosVisionServiceFaceFaceParamsFaceCropV8" - }, - "fdBoundingBox": { - "$ref": "PhotosVisionServiceFaceFaceParamsBoundingBox", - "description": "This other bounding box is tighter than the previous one, and encloses only the skin part of the face. It is typically used to eliminate the face from any image analysis that looks up the \"amount of skin\" visible in an image (e.g. safesearch content score). It is not based on the landmarker results, just on the initial face detection, hence the 'fd' prefix." - }, - "femaleProbability": { - "description": "Probability is in the range [0,1].", - "format": "float", - "type": "number" - }, - "frontalGazeProbability": { - "format": "float", - "type": "number" - }, - "glassesProbability": { - "format": "float", - "type": "number" - }, - "headwearProbability": { - "format": "float", - "type": "number" - }, - "imageParams": { - "$ref": "PhotosVisionServiceFaceImageParams", - "description": "A copy of the 'image_params' field that is also returned as part of the ExtractFacesReply. It contains the with and height of the image the face extraction was performed on and provides the original frame of reference for the bounding boxes above." - }, - "joyProbability": { - "format": "float", - "type": "number" - }, - "landmarkPositions": { - "items": { - "$ref": "PhotosVisionServiceFaceFaceParamsLandmarkPosition" - }, - "type": "array" - }, - "landmarkingConfidence": { - "format": "float", - "type": "number" - }, - "leftEyeClosedProbability": { - "format": "float", - "type": "number" - }, - "longHairProbability": { - "format": "float", - "type": "number" - }, - "mouthOpenProbability": { - "format": "float", - "type": "number" - }, - "nonHumanProbability": { - "format": "float", - "type": "number" - }, - "panAngle": { - "description": "Yaw angle. Indicates how much leftward/rightward the face is pointing relative to the vertical plane perpendicular to the image. Range [-180,180].", - "format": "float", - "type": "number" - }, - "poseMatrix": { - "$ref": "PhotosVisionServiceFaceFaceParamsPoseMatrix" - }, - "pretemplate": { - "format": "byte", - "type": "string" - }, - "qualityScore": { - "description": "A score produced by the Face Quality Scoring Module that indicates overall quality of the face and its relative suitability for using it in conjunction with face recognition for instance. As such, the score predicts the likelihood to recognize a given face correctly. A face recognition client could use the score and a threshold to determine whether to use the face in a face model, or whether to even consider it for recognition.", - "format": "float", - "type": "number" - }, - "rightEyeClosedProbability": { - "format": "float", - "type": "number" - }, - "rollAngle": { - "description": "Roll angle indicates how much clockwise/anti-clockwise the face is rotated relative to the image vertical and about the axis perpendicular to the face. Range [-180,180].", - "format": "float", - "type": "number" - }, - "signature": { - "deprecated": true, - "description": "Deprecated: signature will continue to be used for the pre-1.7 SDK template format typically created by the converter module CNVprec_461. All newer templates created with CNVprec_465 or later will use the repeated 'versioned_signatures' field to store the templates and version info.", - "format": "byte", - "type": "string" - }, - "skinBrightnessProbability": { - "format": "float", - "type": "number" - }, - "sorrowProbability": { - "format": "float", - "type": "number" - }, - "surpriseProbability": { - "format": "float", - "type": "number" - }, - "tiltAngle": { - "description": "Pitch angle. Indicates how much upwards/downwards the face is pointing relative to the image's horizontal plane. Range [-180,180].", - "format": "float", - "type": "number" - }, - "underExposedProbability": { - "format": "float", - "type": "number" - }, - "versionedSignatures": { - "items": { - "$ref": "PhotosVisionServiceFaceVersionedFaceSignature" - }, - "type": "array" - } - }, - "type": "object" - }, - "PhotosVisionServiceFaceFaceParamsBoundingBox": { - "id": "PhotosVisionServiceFaceFaceParamsBoundingBox", - "properties": { - "x1": { - "description": "These coordinates are in the same scale as the original image. 0 \u003c= x \u003c width, 0 \u003c= y \u003c height.", - "format": "int32", - "type": "integer" - }, - "x2": { - "format": "int32", - "type": "integer" - }, - "y1": { - "format": "int32", - "type": "integer" - }, - "y2": { - "format": "int32", - "type": "integer" - } - }, - "type": "object" - }, - "PhotosVisionServiceFaceFaceParamsExtendedLandmark": { - "description": "Below is the set of extended landmarks added by LMprec_508 and 510. All future additional landmarks should be added to this message.", - "id": "PhotosVisionServiceFaceFaceParamsExtendedLandmark", - "properties": { - "id": { - "enum": [ - "NOSE_BOTTOM_RIGHT", - "NOSE_BOTTOM_LEFT", - "NOSE_BOTTOM_CENTER", - "LEFT_EYE_TOP_BOUNDARY", - "LEFT_EYE_RIGHT_CORNER", - "LEFT_EYE_BOTTOM_BOUNDARY", - "LEFT_EYE_LEFT_CORNER", - "RIGHT_EYE_TOP_BOUNDARY", - "RIGHT_EYE_RIGHT_CORNER", - "RIGHT_EYE_BOTTOM_BOUNDARY", - "RIGHT_EYE_LEFT_CORNER", - "LEFT_EYEBROW_UPPER_MIDPOINT", - "RIGHT_EYEBROW_UPPER_MIDPOINT", - "LEFT_EAR_TRAGION", - "RIGHT_EAR_TRAGION", - "LEFT_EYE_PUPIL", - "RIGHT_EYE_PUPIL", - "FOREHEAD_GLABELLA", - "CHIN_GNATHION", - "CHIN_LEFT_GONION", - "CHIN_RIGHT_GONION", - "LEFT_CHEEK_CENTER", - "RIGHT_CHEEK_CENTER", - "UNKNOWN_LANDMARK" - ], - "enumDescriptions": [ - "", - "", - "The following landmark is available with LMprec_508 and later", - "The following landmarks are extracted by LMprec_510 and later. See also documentation at www/~jsteffens/no_crawl/doc/FaceDetection/LM510.pdf", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "The following landmarks are extracted by LMprec_600 and later. See go/facesdk.", - "", - "Reserved id for an unknown landmark. This matches the id reserved by the core SDK for an external UNKNOWN landmark." - ], - "type": "string" - }, - "x": { - "description": "NOTE that landmark positions may fall outside the bounds of the image when the face is near one or more edges of the image. That is, it is NOT guaranteed that 0 \u003c= x \u003c width or 0 \u003c= y \u003c height. Rounded version of x_f.", - "format": "int32", - "type": "integer" - }, - "xF": { - "format": "float", - "type": "number" - }, - "y": { - "description": "Rounded version of y_f.", - "format": "int32", - "type": "integer" - }, - "yF": { - "format": "float", - "type": "number" - }, - "z": { - "format": "float", - "type": "number" - } - }, - "type": "object" - }, - "PhotosVisionServiceFaceFaceParamsFaceCropV8": { - "description": "Information defining a FaceCrop for a particular face. See go/on-device-face-grouping-face-crops for more details.", - "id": "PhotosVisionServiceFaceFaceParamsFaceCropV8", - "properties": { - "centerX": { - "description": "The X coordinate of the center of the face crop.", - "format": "float", - "type": "number" - }, - "centerY": { - "description": "The Y coordinate of the center of the face crop.", - "format": "float", - "type": "number" - }, - "rotation": { - "description": "Rotation of the face crop, in radians.", - "format": "float", - "type": "number" - }, - "scale": { - "description": "Scale to apply to the coordinates of the face crop.", - "format": "float", - "type": "number" - } - }, - "type": "object" - }, - "PhotosVisionServiceFaceFaceParamsLandmarkPosition": { - "id": "PhotosVisionServiceFaceFaceParamsLandmarkPosition", - "properties": { - "landmark": { - "description": "Some landmarks are set during face finding and some are set during landmark finding. Only after landmarking will all landmarks be set.", - "enum": [ - "LEFT_EYE", - "RIGHT_EYE", - "LEFT_OF_LEFT_EYEBROW", - "RIGHT_OF_LEFT_EYEBROW", - "LEFT_OF_RIGHT_EYEBROW", - "RIGHT_OF_RIGHT_EYEBROW", - "MIDPOINT_BETWEEN_EYES", - "NOSE_TIP", - "UPPER_LIP", - "LOWER_LIP", - "MOUTH_LEFT", - "MOUTH_RIGHT", - "MOUTH_CENTER", - "DEPRECATED_NOSE_BOTTOM_RIGHT", - "DEPRECATED_NOSE_BOTTOM_LEFT", - "DEPRECATED_NOSE_BOTTOM_CENTER", - "DEPRECATED_LEFT_EYE_TOP_BOUNDARY", - "DEPRECATED_LEFT_EYE_RIGHT_CORNER", - "DEPRECATED_LEFT_EYE_BOTTOM_BOUNDARY", - "DEPRECATED_LEFT_EYE_LEFT_CORNER", - "DEPRECATED_RIGHT_EYE_TOP_BOUNDARY", - "DEPRECATED_RIGHT_EYE_RIGHT_CORNER", - "DEPRECATED_RIGHT_EYE_BOTTOM_BOUNDARY", - "DEPRECATED_RIGHT_EYE_LEFT_CORNER", - "DEPRECATED_LEFT_EYEBROW_UPPER_MIDPOINT", - "DEPRECATED_RIGHT_EYEBROW_UPPER_MIDPOINT", - "DEPRECATED_LEFT_EAR_TRAGION", - "DEPRECATED_RIGHT_EAR_TRAGION", - "DEPRECATED_FOREHEAD_GLABELLA", - "DEPRECATED_CHIN_GNATHION", - "DEPRECATED_CHIN_LEFT_GONION", - "DEPRECATED_CHIN_RIGHT_GONION", - "DEPRECATED_UNKNOWN_LANDMARK" - ], - "enumDeprecated": [ - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true - ], - "enumDescriptions": [ - "Left and right are as viewed in the image without considering mirror projection typical in photos. So LEFT_EYE is typically the person's right eye. For convenience and consistency the enum values mirror the corresponding values defined by the Neven Vision SDK. See landmark table at: wiki/twiki/bin/view/Main/FRSDKLandmarkPositions The following landmarks are extracted by LMprec_502 and later", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "All values below are deprecated. Please use ExtendedLandmark to use them.", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "" - ], - "type": "string" - }, - "x": { - "description": "NOTE that landmark positions may fall outside the bounds of the image when the face is near one or more edges of the image. That is, it is NOT guaranteed that 0 \u003c= x \u003c width or 0 \u003c= y \u003c height. Rounded version of x_f.", - "format": "int32", - "type": "integer" - }, - "xF": { - "format": "float", - "type": "number" - }, - "y": { - "description": "Rounded version of y_f.", - "format": "int32", - "type": "integer" - }, - "yF": { - "format": "float", - "type": "number" - }, - "z": { - "format": "float", - "type": "number" - } - }, - "type": "object" - }, - "PhotosVisionServiceFaceFaceParamsPoseMatrix": { - "description": "Stores the full pose transformation matrix of the detected face. From this the roll, pan, tilt angles can be computed.", - "id": "PhotosVisionServiceFaceFaceParamsPoseMatrix", - "properties": { - "xx": { - "format": "float", - "type": "number" - }, - "xy": { - "format": "float", - "type": "number" - }, - "xz": { - "format": "float", - "type": "number" - }, - "yx": { - "format": "float", - "type": "number" - }, - "yy": { - "format": "float", - "type": "number" - }, - "yz": { - "format": "float", - "type": "number" - }, - "zx": { - "format": "float", - "type": "number" - }, - "zy": { - "format": "float", - "type": "number" - }, - "zz": { - "format": "float", - "type": "number" - } - }, - "type": "object" - }, - "PhotosVisionServiceFaceImageParams": { - "description": "ImageParams are a collection of parameters of the image on which face detection was performed.", - "id": "PhotosVisionServiceFaceImageParams", - "properties": { - "height": { - "format": "int32", - "type": "integer" - }, - "width": { - "format": "int32", - "type": "integer" - } - }, - "type": "object" - }, - "PhotosVisionServiceFaceVersionedFaceSignature": { - "description": "From newer SDK versions onward (1.7+), each face template (signature) will also store a version # derived from the converter version that created the template.", - "id": "PhotosVisionServiceFaceVersionedFaceSignature", - "properties": { - "confidence": { - "description": "Confidence score based on embedding uncertainty. This is populated if fetch_facenet_confidence has been set as true in FaceNetConfig, and FaceNet version satisfies one of the following: 1. FACENET_8. 2. FACENET_9 with confidence model enabled in FaceTemplatesConfig. If face_embedding_confidence module is requested, this will also be populated, and the signature will be empty.", - "format": "float", - "type": "number" - }, - "confidenceVersion": { - "description": "The Confidence version that populated the confidence.", - "enum": [ - "EMBEDDING_CONFIDENCE_VERSION_UNSPECIFIED", - "VERSION_1", - "VERSION_2" - ], - "enumDescriptions": [ - "", - "Corresponds to VSSV1DNormTfLiteClient. Regions without an embedding confidence version should be assumed to have this version.", - "Corresponds to AAV2DNorm. This is an animal-aware version with scores compatible with VERSION_1." - ], - "type": "string" - }, - "converterVersion": { - "description": "The converter version that created this template.", - "enum": [ - "UNKNOWN", - "PREC_461", - "PREC_465", - "PREC_470", - "FACENET_7", - "FACENET_8", - "FACENET_CELEBRITY", - "FACENET_9", - "FACENET_9_TPU", - "FACENET_MOBILE_V1_8BITS" - ], - "enumDescriptions": [ - "", - "", - "", - "", - "", - "", - "", - "", - "", - "" - ], - "type": "string" - }, - "signature": { - "description": "The face template bytes.", - "format": "byte", - "type": "string" - }, - "signatureSource": { - "description": "Specifies the source of the signature in cases where the bytes are from a lower level of the FaceNet architecture. This is useful in combination with the FaceNetClient when it returns multiple outputs and we need to keep track of their contents. For example, this could contain the string 'avgpool-0' while another instance can use the standard 'normalizing' string.", - "type": "string" - }, - "version": { - "description": "The internal version of the template. This is a copy of the version stored within the template.", - "format": "uint32", - "type": "integer" - } - }, - "type": "object" - }, "PornFlagData": { "description": "A protocol buffer to store the url, referer and porn flag for a url. and an optional image score. Next available tag id: 51.", "id": "PornFlagData", @@ -100776,7 +100059,7 @@ "type": "object" }, "QualityNavboostCrapsCrapsData": { - "description": "NEXT TAG: 27", + "description": "NEXT TAG: 28", "id": "QualityNavboostCrapsCrapsData", "properties": { "agingCounts": { @@ -100872,6 +100155,11 @@ }, "url": { "type": "string" + }, + "voterTokenCount": { + "description": "The number of distinct voter tokens (a lower bound on the number of distinct users that contributed to the entry, used for privacy-related filtering).", + "format": "int32", + "type": "integer" } }, "type": "object" @@ -100937,6 +100225,10 @@ "signals": { "$ref": "QualityNavboostCrapsCrapsClickSignals", "description": "CRAPS Signals for the locale." + }, + "voterTokenBitmap": { + "$ref": "QualityNavboostGlueVoterTokenBitmapMessage", + "description": "The set of voter tokens of the sessions that contributed to this feature's stats. Voter tokens are not unique per user, so it is a lower bound on the number of distinct users. Used for privacy-related filtering." } }, "type": "object" @@ -101007,6 +100299,24 @@ }, "type": "object" }, + "QualityNavboostGlueVoterTokenBitmapMessage": { + "description": "Used for aggregating query unique voter_token during merging. We use 4 uint64(s) as a 256-bit bitmap to aggregate distinct voter_tokens in Glue model pipeline. Number of elements should always be either 0 or 4. As an optimization, we store the voter_token as a single uint64 if only one bit is set. See quality/navboost/speedy_glue/util/voter_token_bitmap.h for the class that manages operations on these bitmaps.", + "id": "QualityNavboostGlueVoterTokenBitmapMessage", + "properties": { + "subRange": { + "items": { + "format": "uint64", + "type": "string" + }, + "type": "array" + }, + "voterToken": { + "format": "uint64", + "type": "string" + } + }, + "type": "object" + }, "QualityNsrExperimentalNsrTeamData": { "description": "Experimental NsrTeam data. This is a proto containing versioned signals which can be used to run live experiments. This proto will not be propagated to MDU shards, but it will be populated at query time by go/web-signal-joins inside the CompressedQualitySignals subproto of PerDocData proto. See go/0DayLEs for the design doc. Note how this is only meant to be used during LEs, it should *not* be used for launches.", "id": "QualityNsrExperimentalNsrTeamData", @@ -101136,7 +100446,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: 54", + "description": "NOTE: When adding a new field to be propagated to Raffia check if NsrPatternSignalSpec needs to be updated. Next ID: 55", "id": "QualityNsrNsrData", "properties": { "articleScore": { @@ -101340,6 +100650,11 @@ "format": "float", "type": "number" }, + "smallPersonalSite": { + "description": "Score of small personal site promotion go/promoting-personal-blogs-v1", + "format": "float", + "type": "number" + }, "spambrainLavcScore": { "deprecated": true, "description": "The SpamBrain LAVC score, as of July 2022. See more information at go/cloverfield-lavc-deck.", @@ -104252,7 +103567,8 @@ "NAME_CORRECTION_LOG", "FUZZY_CONTACT_MATCH", "NEURAL_CONTACT_MATCH", - "NEURAL_CONTACT_MATCH_DARK_LAUNCH" + "NEURAL_CONTACT_MATCH_DARK_LAUNCH", + "PERSONALIZED_NAME_CORRECTION_LOG" ], "enumDescriptions": [ "", @@ -104261,7 +103577,8 @@ "Alternate name from contact correction history.", "Fuzzy match with user's contacts.", "Neural match. See go/phonetic-contact-match.", - "The dark launch for a neural match. We found a match, but we ignore it for serving and just log it." + "The dark launch for a neural match. We found a match, but we ignore it for serving and just log it.", + "Personalized alternate name from Assistant User Profile that stores personalized contact name corrections under ContactAlternates profile." ], "type": "string" } @@ -104479,7 +103796,8 @@ "NAME_CORRECTION_LOG", "FUZZY_CONTACT_MATCH", "NEURAL_CONTACT_MATCH", - "NEURAL_CONTACT_MATCH_DARK_LAUNCH" + "NEURAL_CONTACT_MATCH_DARK_LAUNCH", + "PERSONALIZED_NAME_CORRECTION_LOG" ], "enumDescriptions": [ "", @@ -104488,7 +103806,8 @@ "Alternate name from contact correction history.", "Fuzzy match with user's contacts.", "Neural match. See go/phonetic-contact-match.", - "The dark launch for a neural match. We found a match, but we ignore it for serving and just log it." + "The dark launch for a neural match. We found a match, but we ignore it for serving and just log it.", + "Personalized alternate name from Assistant User Profile that stores personalized contact name corrections under ContactAlternates profile." ], "type": "string" }, @@ -105895,11 +105214,6 @@ "format": "uint64", "type": "string" }, - "productPopularity": { - "description": "Organic product popularity.", - "format": "double", - "type": "number" - }, "relevanceEmbedding": { "description": "Relevance embedding from ShoppingAnnotation.Product", "items": { @@ -107369,20 +106683,6 @@ }, "type": "object" }, - "ReneFaceResponse": { - "description": "The output of the face recognition signal.", - "id": "ReneFaceResponse", - "properties": { - "faces": { - "description": "Recognized faces in the image.", - "items": { - "$ref": "PhotosVisionServiceFaceFaceParams" - }, - "type": "array" - } - }, - "type": "object" - }, "RepositoryAnnotationsGeoTopic": { "description": "GeoTopicality of a document is a set of GeoTopics ordered by their normalized scores.", "id": "RepositoryAnnotationsGeoTopic", @@ -111160,16 +110460,6 @@ "$ref": "RepositoryWebrefSubSegmentIndex", "description": "Identifies the sub-segment where the annotation occurs. See SubSegmentIndex for details. Not present in QRef, also deprecated for URL segment types." }, - "timeOffsetConfidence": { - "description": "Confidence for the time_offset_ms annotation, quantized to values in range 0-127 (see speech::VideoASRServerUtil::ConfidenceQuantize for how the quantization was done). Confidence can be empty for special characters (e.g. spaces).", - "format": "int32", - "type": "integer" - }, - "timeOffsetMs": { - "description": "Timestamp that this mention appeared in the video. The field is only populated for VIDEO_TRANSCRIPT when the byte offset is the same. It is extracted from cdoc.doc_videos.content_based_metadata.transcript_asr.transcript.timestamp.", - "format": "int32", - "type": "integer" - }, "trustedNameConfidence": { "description": "Confidence that this name is a trusted name of the entity. This is set only in case the confidence is higher than an internal threshold (see ConceptProbability).", "format": "float", @@ -112897,10 +112187,6 @@ }, "webrefOutlinkInfos": { "$ref": "RepositoryWebrefWebrefOutlinkInfos" - }, - "webrefOutlinksLegacy": { - "$ref": "Proto2BridgeMessageSet", - "deprecated": true } }, "type": "object" @@ -114346,10 +113632,6 @@ "$ref": "Proto2BridgeMessageSet", "description": "Optional extensions (e.g. taxonomic classifications)." }, - "outlinkInfos": { - "$ref": "RepositoryWebrefWebrefOutlinkInfos", - "description": "Information about the outlinks of this document. " - }, "webrefParsedContentSentence": { "description": "The content (CONTENT section 0) as parsed by WebrefParser. Only used by //r/w/postprocessing/idf/idf-pipeline for document ngram idf computation. Populated when the annotator is run with webref_populate_parsed_content Each webref_parsed_content_sentence represents one sentence of the context where saft annotations were used to determine the sentence boundaries. See r/w/universal/processors/saft/saft-sentence-helper.h for details.", "items": { @@ -116503,961 +115785,6 @@ }, "type": "object" }, - "ResearchVisionFace2cartoonAgeClassifierResults": { - "id": "ResearchVisionFace2cartoonAgeClassifierResults", - "properties": { - "age": { - "enum": [ - "UNKNOWN", - "BABY", - "KID", - "ADULT", - "OLD" - ], - "enumDescriptions": [ - "", - "", - "", - "", - "" - ], - "type": "string" - }, - "predictedAge": { - "format": "float", - "type": "number" - } - }, - "type": "object" - }, - "ResearchVisionFace2cartoonChinLengthClassifierResults": { - "id": "ResearchVisionFace2cartoonChinLengthClassifierResults", - "properties": { - "chinLength": { - "enum": [ - "UNKNOWN", - "SHORT", - "AVERAGE", - "LONG" - ], - "enumDescriptions": [ - "", - "", - "", - "" - ], - "type": "string" - }, - "confidence": { - "format": "float", - "type": "number" - } - }, - "type": "object" - }, - "ResearchVisionFace2cartoonEyeColorClassifierResults": { - "id": "ResearchVisionFace2cartoonEyeColorClassifierResults", - "properties": { - "color": { - "enum": [ - "UNKNOWN", - "BROWN_OR_BLACK", - "BLUE_OR_GREEN" - ], - "enumDescriptions": [ - "", - "", - "" - ], - "type": "string" - }, - "confidence": { - "format": "float", - "type": "number" - } - }, - "type": "object" - }, - "ResearchVisionFace2cartoonEyeEyebrowDistanceClassifierResults": { - "description": "The measurement underlying this assumes fixed ear positions, so applying this combined with the FaceWidthClassifierResults may have an unintended outcome.", - "id": "ResearchVisionFace2cartoonEyeEyebrowDistanceClassifierResults", - "properties": { - "confidence": { - "format": "float", - "type": "number" - }, - "eyeEyebrowDistance": { - "enum": [ - "UNKNOWN", - "SMALL", - "AVERAGE", - "LARGE" - ], - "enumDescriptions": [ - "", - "", - "", - "" - ], - "type": "string" - } - }, - "type": "object" - }, - "ResearchVisionFace2cartoonEyeShapeClassifierResults": { - "id": "ResearchVisionFace2cartoonEyeShapeClassifierResults", - "properties": { - "confidence": { - "format": "float", - "type": "number" - }, - "shape": { - "enum": [ - "UNKNOWN", - "DOUBLE_FOLD_EYELID", - "SINGLE_FOLD_EYELID" - ], - "enumDescriptions": [ - "", - "", - "" - ], - "type": "string" - } - }, - "type": "object" - }, - "ResearchVisionFace2cartoonEyeSlantClassifierResults": { - "id": "ResearchVisionFace2cartoonEyeSlantClassifierResults", - "properties": { - "confidence": { - "format": "float", - "type": "number" - }, - "eyeSlant": { - "enum": [ - "UNKNOWN", - "OUTWARDS", - "AVERAGE", - "INWARDS" - ], - "enumDescriptions": [ - "", - "", - "", - "" - ], - "type": "string" - } - }, - "type": "object" - }, - "ResearchVisionFace2cartoonEyeVerticalPositionClassifierResults": { - "description": "The measurement underlying this assumes fixed ear positions, so applying this combined with the FaceWidthClassifierResults may have an unintended outcome.", - "id": "ResearchVisionFace2cartoonEyeVerticalPositionClassifierResults", - "properties": { - "confidence": { - "format": "float", - "type": "number" - }, - "eyeVerticalPosition": { - "enum": [ - "UNKNOWN", - "HIGH", - "AVERAGE", - "LOW" - ], - "enumDescriptions": [ - "", - "", - "", - "" - ], - "type": "string" - } - }, - "type": "object" - }, - "ResearchVisionFace2cartoonEyebrowShapeClassifierResults": { - "id": "ResearchVisionFace2cartoonEyebrowShapeClassifierResults", - "properties": { - "confidence": { - "format": "float", - "type": "number" - }, - "eyebrowShape": { - "enum": [ - "UNKNOWN", - "ST_BREAK", - "ST_BEND", - "HIGH_DIAGONAL", - "TILT", - "ROUND", - "ANGULAR", - "HIGH_CURVY", - "ROUND_UNEVEN", - "BUSHY_ST", - "UNI" - ], - "enumDescriptions": [ - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "" - ], - "type": "string" - } - }, - "type": "object" - }, - "ResearchVisionFace2cartoonEyebrowThicknessClassifierResults": { - "id": "ResearchVisionFace2cartoonEyebrowThicknessClassifierResults", - "properties": { - "confidence": { - "format": "float", - "type": "number" - }, - "eyebrowThickness": { - "enum": [ - "UNKNOWN", - "THIN", - "NORMAL", - "THICK", - "VERY_THICK" - ], - "enumDescriptions": [ - "", - "", - "", - "", - "" - ], - "type": "string" - } - }, - "type": "object" - }, - "ResearchVisionFace2cartoonEyebrowWidthClassifierResults": { - "description": "The measurement underlying this assumes fixed ear positions, so applying this combined with the FaceWidthClassifierResults may have an unintended outcome.", - "id": "ResearchVisionFace2cartoonEyebrowWidthClassifierResults", - "properties": { - "confidence": { - "format": "float", - "type": "number" - }, - "eyebrowWidth": { - "enum": [ - "UNKNOWN", - "NARROW", - "AVERAGE", - "WIDE" - ], - "enumDescriptions": [ - "", - "", - "", - "" - ], - "type": "string" - } - }, - "type": "object" - }, - "ResearchVisionFace2cartoonFace2CartoonResults": { - "description": "Results of the Face2Cartoon pipeline.", - "id": "ResearchVisionFace2cartoonFace2CartoonResults", - "properties": { - "ageClassifierResults": { - "items": { - "$ref": "ResearchVisionFace2cartoonAgeClassifierResults" - }, - "type": "array" - }, - "chinLengthClassifierResults": { - "items": { - "$ref": "ResearchVisionFace2cartoonChinLengthClassifierResults" - }, - "type": "array" - }, - "eyeColorClassifierResults": { - "items": { - "$ref": "ResearchVisionFace2cartoonEyeColorClassifierResults" - }, - "type": "array" - }, - "eyeEyebrowDistanceClassifierResults": { - "items": { - "$ref": "ResearchVisionFace2cartoonEyeEyebrowDistanceClassifierResults" - }, - "type": "array" - }, - "eyeShapeClassifierResults": { - "items": { - "$ref": "ResearchVisionFace2cartoonEyeShapeClassifierResults" - }, - "type": "array" - }, - "eyeSlantClassifierResults": { - "items": { - "$ref": "ResearchVisionFace2cartoonEyeSlantClassifierResults" - }, - "type": "array" - }, - "eyeVerticalPositionClassifierResults": { - "items": { - "$ref": "ResearchVisionFace2cartoonEyeVerticalPositionClassifierResults" - }, - "type": "array" - }, - "eyebrowShapeClassifierResults": { - "items": { - "$ref": "ResearchVisionFace2cartoonEyebrowShapeClassifierResults" - }, - "type": "array" - }, - "eyebrowThicknessClassifierResults": { - "items": { - "$ref": "ResearchVisionFace2cartoonEyebrowThicknessClassifierResults" - }, - "type": "array" - }, - "eyebrowWidthClassifierResults": { - "items": { - "$ref": "ResearchVisionFace2cartoonEyebrowWidthClassifierResults" - }, - "type": "array" - }, - "faceWidthClassifierResults": { - "items": { - "$ref": "ResearchVisionFace2cartoonFaceWidthClassifierResults" - }, - "type": "array" - }, - "facialHairClassifierResults": { - "items": { - "$ref": "ResearchVisionFace2cartoonFacialHairClassifierResults" - }, - "type": "array" - }, - "genderClassifierResults": { - "items": { - "$ref": "ResearchVisionFace2cartoonGenderClassifierResults" - }, - "type": "array" - }, - "glassesClassifierResults": { - "items": { - "$ref": "ResearchVisionFace2cartoonGlassesClassifierResults" - }, - "type": "array" - }, - "hairColorClassifierResults": { - "items": { - "$ref": "ResearchVisionFace2cartoonHairColorClassifierResults" - }, - "type": "array" - }, - "hairStyleClassifierResults": { - "items": { - "$ref": "ResearchVisionFace2cartoonHairStyleClassifierResults" - }, - "type": "array" - }, - "interEyeDistanceClassifierResults": { - "items": { - "$ref": "ResearchVisionFace2cartoonInterEyeDistanceClassifierResults" - }, - "type": "array" - }, - "jawShapeClassifierResults": { - "items": { - "$ref": "ResearchVisionFace2cartoonJawShapeClassifierResults" - }, - "type": "array" - }, - "lipThicknessClassifierResults": { - "items": { - "$ref": "ResearchVisionFace2cartoonLipThicknessClassifierResults" - }, - "type": "array" - }, - "mouthVerticalPositionClassifierResults": { - "items": { - "$ref": "ResearchVisionFace2cartoonMouthVerticalPositionClassifierResults" - }, - "type": "array" - }, - "mouthWidthClassifierResults": { - "items": { - "$ref": "ResearchVisionFace2cartoonMouthWidthClassifierResults" - }, - "type": "array" - }, - "noseVerticalPositionClassifierResults": { - "items": { - "$ref": "ResearchVisionFace2cartoonNoseVerticalPositionClassifierResults" - }, - "type": "array" - }, - "noseWidthClassifierResults": { - "items": { - "$ref": "ResearchVisionFace2cartoonNoseWidthClassifierResults" - }, - "type": "array" - }, - "skinToneClassifierResults": { - "items": { - "$ref": "ResearchVisionFace2cartoonSkinToneClassifierResults" - }, - "type": "array" - } - }, - "type": "object" - }, - "ResearchVisionFace2cartoonFaceWidthClassifierResults": { - "id": "ResearchVisionFace2cartoonFaceWidthClassifierResults", - "properties": { - "confidence": { - "format": "float", - "type": "number" - }, - "faceWidth": { - "enum": [ - "UNKNOWN", - "NARROW", - "AVERAGE", - "WIDE" - ], - "enumDescriptions": [ - "", - "", - "", - "" - ], - "type": "string" - } - }, - "type": "object" - }, - "ResearchVisionFace2cartoonFacialHairClassifierResults": { - "id": "ResearchVisionFace2cartoonFacialHairClassifierResults", - "properties": { - "confidence": { - "format": "float", - "type": "number" - }, - "facialHair": { - "enum": [ - "UNKNOWN", - "NO_FACIAL_HAIR", - "CLOSE_SHAVE", - "SHORT_BEARD_2", - "SHORT_BEARD_1", - "MED_BEARD", - "SHORT_BEARD_5", - "GOATEE", - "MOUSTACHE", - "MOUSTACHE_GOATEE" - ], - "enumDescriptions": [ - "", - "", - "", - "", - "", - "", - "", - "", - "", - "" - ], - "type": "string" - } - }, - "type": "object" - }, - "ResearchVisionFace2cartoonGenderClassifierResults": { - "id": "ResearchVisionFace2cartoonGenderClassifierResults", - "properties": { - "confidence": { - "description": "Uses a scaled version of the FaceSDK classifier's probability as the confidence (since the probability for the selected gender is between (0.5, 1] we scale it to be between (0, 1]).", - "format": "float", - "type": "number" - }, - "gender": { - "enum": [ - "UNKNOWN", - "FEMALE", - "MALE" - ], - "enumDescriptions": [ - "", - "", - "" - ], - "type": "string" - } - }, - "type": "object" - }, - "ResearchVisionFace2cartoonGlassesClassifierResults": { - "id": "ResearchVisionFace2cartoonGlassesClassifierResults", - "properties": { - "confidence": { - "description": "Uses a scaled version of the FaceSDK classifier's probability as the confidence (since the probability for the selected glasses is between (0.5, 1] we scale it to be between (0, 1]).", - "format": "float", - "type": "number" - }, - "glassesType": { - "enum": [ - "UNKNOWN", - "NO_GLASSES", - "GLASSES", - "DARK_GLASSES" - ], - "enumDescriptions": [ - "", - "", - "", - "" - ], - "type": "string" - } - }, - "type": "object" - }, - "ResearchVisionFace2cartoonHairColorClassifierResults": { - "id": "ResearchVisionFace2cartoonHairColorClassifierResults", - "properties": { - "confidence": { - "format": "float", - "type": "number" - }, - "hairColor": { - "enum": [ - "UNKNOWN", - "BLACK", - "DARK_BROWN", - "LIGHT_BROWN", - "AUBURN", - "ORANGE", - "STRAWBERRY_BLONDE", - "DIRTY_BLONDE", - "BLEACHED_BLONDE", - "GREY", - "WHITE", - "MINT", - "PALE_PINK", - "LAVENDER", - "TEAL", - "PURPLE", - "PINK", - "BLUE", - "GREEN" - ], - "enumDescriptions": [ - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "" - ], - "type": "string" - } - }, - "type": "object" - }, - "ResearchVisionFace2cartoonHairStyleClassifierResults": { - "id": "ResearchVisionFace2cartoonHairStyleClassifierResults", - "properties": { - "confidence": { - "format": "float", - "type": "number" - }, - "hairStyle": { - "enum": [ - "UNKNOWN", - "BALD_1", - "BALD_2", - "BALD_3", - "SHAVE_1", - "FRONT_CREW_1", - "SHORT_STRAIGHT_9", - "SHORT_STRAIGHT_17", - "BUN_1", - "SHORT_STRAIGHT_2", - "SHORT_STRAIGHT_10", - "SHORT_STRAIGHT_1", - "SHORT_STRAIGHT_19", - "SHORT_STRAIGHT_4", - "SHORT_STRAIGHT_20", - "SHORT_STRAIGHT_18", - "SHORT_STRAIGHT_11", - "MEDIUM_STRAIGHT_5", - "MEDIUM_STRAIGHT_6", - "MEDIUM_STRAIGHT_3", - "LONG_STRAIGHT_6", - "LONG_STRAIGHT_4", - "LONG_STRAIGHT_2", - "LONG_STRAIGHT_PONYTAIL_2", - "LONG_STRAIGHT_PONYTAIL_1", - "SHORT_WAVY_2", - "MEDIUM_WAVY_1", - "MEDIUM_WAVY_4", - "MEDIUM_WAVY_2", - "LONG_WAVY_1", - "LONG_WAVY_3", - "LONG_WAVY_2", - "LONG_WAVY_4", - "LONG_WAVY_PONYTAIL_4", - "SHORT_CURLY_6", - "SHORT_CURLY_5", - "MEDIUM_CURLY_3", - "SHORT_CURLY_8", - "MEDIUM_CURLY_4", - "LONG_CURLY_3", - "LONG_CURLY_1", - "LONG_CURLY_5", - "LONG_CURLY_4", - "LONG_CURLY_2", - "LONG_CURLY_PONYTAIL_1", - "SHORT_COILY_1", - "SHORT_COILY_5", - "SHORT_COILY_4", - "SHORT_COILY_2", - "MEDIUM_COILY_1", - "LONG_COILY_2", - "LONG_COILY_PONYTAIL_1", - "SHORT_COILY_3", - "LONG_COILY_1", - "BOX_BRAIDS", - "BUN_2", - "COILY_PONYTAIL", - "LONG_COILY_3", - "LONG_COILY_4", - "LONG_COILY_5", - "LONG_COILY_PONYTAIL", - "OTT", - "SHORT_CORNROWS", - "TIGHT_BRAID", - "TIGHT_BRAIDS" - ], - "enumDescriptions": [ - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "" - ], - "type": "string" - } - }, - "type": "object" - }, - "ResearchVisionFace2cartoonInterEyeDistanceClassifierResults": { - "description": "The measurement underlying this assumes fixed ear positions, so applying this combined with the FaceWidthClassifierResults may have an unintended outcome.", - "id": "ResearchVisionFace2cartoonInterEyeDistanceClassifierResults", - "properties": { - "confidence": { - "format": "float", - "type": "number" - }, - "interEyeDistance": { - "enum": [ - "UNKNOWN", - "WIDE", - "AVERAGE", - "CLOSE" - ], - "enumDescriptions": [ - "", - "", - "", - "" - ], - "type": "string" - } - }, - "type": "object" - }, - "ResearchVisionFace2cartoonJawShapeClassifierResults": { - "id": "ResearchVisionFace2cartoonJawShapeClassifierResults", - "properties": { - "confidence": { - "format": "float", - "type": "number" - }, - "jawShape": { - "enum": [ - "UNKNOWN", - "TRIANGLE", - "OVAL", - "SQUARE", - "ROUND" - ], - "enumDescriptions": [ - "", - "", - "", - "", - "" - ], - "type": "string" - } - }, - "type": "object" - }, - "ResearchVisionFace2cartoonLipThicknessClassifierResults": { - "id": "ResearchVisionFace2cartoonLipThicknessClassifierResults", - "properties": { - "confidence": { - "format": "float", - "type": "number" - }, - "lipThickness": { - "enum": [ - "UNKNOWN", - "THIN", - "AVERAGE", - "THICK" - ], - "enumDescriptions": [ - "", - "", - "", - "" - ], - "type": "string" - } - }, - "type": "object" - }, - "ResearchVisionFace2cartoonMouthVerticalPositionClassifierResults": { - "description": "The measurement underlying this assumes fixed ear positions, so applying this combined with the FaceWidthClassifierResults may have an unintended outcome.", - "id": "ResearchVisionFace2cartoonMouthVerticalPositionClassifierResults", - "properties": { - "confidence": { - "format": "float", - "type": "number" - }, - "mouthVerticalPosition": { - "enum": [ - "UNKNOWN", - "HIGH", - "AVERAGE", - "LOW" - ], - "enumDescriptions": [ - "", - "", - "", - "" - ], - "type": "string" - } - }, - "type": "object" - }, - "ResearchVisionFace2cartoonMouthWidthClassifierResults": { - "description": "The measurement underlying this assumes fixed ear positions, so applying this combined with the FaceWidthClassifierResults may have an unintended outcome.", - "id": "ResearchVisionFace2cartoonMouthWidthClassifierResults", - "properties": { - "confidence": { - "format": "float", - "type": "number" - }, - "mouthWidth": { - "enum": [ - "UNKNOWN", - "NARROW", - "AVERAGE", - "WIDE" - ], - "enumDescriptions": [ - "", - "", - "", - "" - ], - "type": "string" - } - }, - "type": "object" - }, - "ResearchVisionFace2cartoonNoseVerticalPositionClassifierResults": { - "description": "The measurement underlying this assumes fixed ear positions, so applying this combined with the FaceWidthClassifierResults may have an unintended outcome.", - "id": "ResearchVisionFace2cartoonNoseVerticalPositionClassifierResults", - "properties": { - "confidence": { - "format": "float", - "type": "number" - }, - "noseVerticalPosition": { - "enum": [ - "UNKNOWN", - "HIGH", - "AVERAGE", - "LOW" - ], - "enumDescriptions": [ - "", - "", - "", - "" - ], - "type": "string" - } - }, - "type": "object" - }, - "ResearchVisionFace2cartoonNoseWidthClassifierResults": { - "description": "The measurement underlying this assumes fixed ear positions, so applying this combined with the FaceWidthClassifierResults may have an unintended outcome.", - "id": "ResearchVisionFace2cartoonNoseWidthClassifierResults", - "properties": { - "confidence": { - "format": "float", - "type": "number" - }, - "noseWidth": { - "enum": [ - "UNKNOWN", - "NARROW", - "AVERAGE", - "WIDE" - ], - "enumDescriptions": [ - "", - "", - "", - "" - ], - "type": "string" - } - }, - "type": "object" - }, - "ResearchVisionFace2cartoonSkinToneClassifierResults": { - "id": "ResearchVisionFace2cartoonSkinToneClassifierResults", - "properties": { - "confidence": { - "format": "float", - "type": "number" - }, - "skinToneType": { - "enum": [ - "UNKNOWN", - "TYPE_1", - "TYPE_2", - "TYPE_3", - "TYPE_4", - "TYPE_5", - "TYPE_6", - "TYPE_7", - "TYPE_8", - "TYPE_9", - "TYPE_10", - "TYPE_11" - ], - "enumDescriptions": [ - "See the images from the links at: https://storage.googleapis.com/cc_8e814306-f840-4e2e-9415-36b06251cf8e/ skin_tone_exemplars/skin-*.png", - "(darkest) RGB: #603d30", - "RGB: #88594b", - "RGB: #aa7454", - "RGB: #c78b5d", - "RGB: #d9a16e", - "RGB: #e3b47e", - "RGB: #eeaf94", - "RGB: #f0c092", - "RGB: #f6d8c1", - "RGB: #fbcdb6", - "(lightest) RGB: #fbdbd1" - ], - "type": "string" - } - }, - "type": "object" - }, "RichsnippetsDataObject": { "description": "Next ID: 11", "id": "RichsnippetsDataObject", @@ -125750,7 +124077,7 @@ "type": "object" }, "TrawlerFetchReplyData": { - "description": "Fetcher -\u003e FetchClient FetchReplyData is the metadata for a reply from a FetchRequest. For metadata + document body, FetchReply is further below. NOTE: FetchReplyData (and FetchReply) is the output interface from Multiverse. Teams outside Multiverse/Trawler should not create fake FetchReplies. Trawler: When adding new fields here, it is recommended that at least the following be rebuilt and pushed: - cron_fetcher_index mapreduces: so that UrlReplyIndex, etc. retain the new fields - tlookup, tlookup_server: want to be able to return the new fields - logviewer, fetchutil: annoying to get back 'tag88:' in results -------------------------- Next Tag: 124 -----------------------", + "description": "Fetcher -\u003e FetchClient FetchReplyData is the metadata for a reply from a FetchRequest. For metadata + document body, FetchReply is further below. NOTE: FetchReplyData (and FetchReply) is the output interface from Multiverse. Teams outside Multiverse/Trawler should not create fake FetchReplies. Trawler: When adding new fields here, it is recommended that at least the following be rebuilt and pushed: - cron_fetcher_index mapreduces: so that UrlReplyIndex, etc. retain the new fields - tlookup, tlookup_server: want to be able to return the new fields - logviewer, fetchutil: annoying to get back 'tag88:' in results -------------------------- Next Tag: 125 -----------------------", "id": "TrawlerFetchReplyData", "properties": { "BadSSLCertificate": { @@ -126142,6 +124469,9 @@ "The context of refresh crawl is that client needs to check the content of some URLs periodically, so they refresh those URLs regularly." ], "type": "string" + }, + "webioInfo": { + "$ref": "TrawlerFetchReplyDataWebIOInfo" } }, "type": "object" @@ -127010,6 +125340,34 @@ }, "type": "object" }, + "TrawlerFetchReplyDataWebIOInfo": { + "description": "WebIO is the new hostload model introduced in 2023. It measures the occupancy of 1 outgoing fetch connection for 1 minute.", + "id": "TrawlerFetchReplyDataWebIOInfo", + "properties": { + "webio": { + "format": "float", + "type": "number" + }, + "webioPercentageTier": { + "enum": [ + "WEBIO_TIER_1", + "WEBIO_TIER_2", + "WEBIO_TIER_3", + "WEBIO_TIER_4", + "WEBIO_NUM_TIERS" + ], + "enumDescriptions": [ + "Utilization 90-100%", + "Utilization 70%-90%", + "Utilization 30%-70%", + "Utilization 0%-30%", + "" + ], + "type": "string" + } + }, + "type": "object" + }, "TrawlerFetchStatus": { "id": "TrawlerFetchStatus", "properties": { @@ -128835,6 +127193,9 @@ "MULTILINE_SUBSCRIPTION_ADDON_TITLE_SESSION_LEVEL", "PAYTM_WALLET_FAILURE_SESSION_LEVEL", "CART_ABANDONMENT_SUBSCRIPTION_BENEFITS_SESSION_LEVEL_V2", + "MULTILINE_SUBSCRIPTION_BASIC_RESTORE_ENABLED_SESSION_LEVEL", + "DECLINE_MESSAGE_IN_SUBSCENTER_FIX_FLOW_SESSION_LEVEL_V1", + "SAVE_FOR_LATER_CART_ABANDONMENT_SCREEN_SESSION_LEVEL", "SESSION_LEVEL_TEST_CODE_LIMIT", "CART_ABANDONMENT_USER_LEVEL", "IN_APP_PRODUCTS_IN_DETAILS_PAGE_USER_LEVEL", @@ -129047,12 +127408,7 @@ "HAS_MONETIZATION_BEHAVIOR_LAST_180D_USER_LEVEL", "HAS_LAST_28D_CART_ABANDONMENT_USER_LEVEL", "HAS_LAST_7D_CART_ABANDONMENT_USER_LEVEL", - "LINK_BIOMETRICS_NEW_SETUP_USER_LEVEL_V2", - "LINK_BIOMETRICS_NEW_SETUP_USER_LEVEL_V3", - "LINK_BIOMETRICS_NEW_SETUP_USER_LEVEL_V3_1", - "LINK_BIOMETRICS_NEW_SETUP_USER_LEVEL_V3_2", - "LINK_BIOMETRICS_NEW_SETUP_USER_LEVEL_V3_3", - "LINK_BIOMETRICS_NEW_SETUP_USER_LEVEL_V3_4", + "LINK_BIOMETRICS_NEW_SETUP_USER_LEVEL_V3_5", "POST_SUCCESS_ADD_BACKUP_FLOW_USER_LEVEL", "SKIP_CHECK_MARK_SCREEN_WITH_BACKUP_FLOW_USER_LEVEL", "IS_ELIGIBLE_FOR_ONE_CLICK_BACKUP_FOP_USER_LEVEL", @@ -129199,6 +127555,9 @@ "UNIFIED_ITEM_RECOMMENDATION_LOWER_PRICED_USER_LEVEL", "CART_WITH_BROKEN_FOP_USER_LEVEL", "CART_ABANDONMENT_SUBSCRIPTION_BENEFITS_USER_LEVEL_V2", + "DECLINE_MESSAGE_IN_SUBSCENTER_FIX_FLOW_USER_LEVEL", + "MULTILINE_SUBSCRIPTION_BASIC_RESTORE_ENABLED_USER_LEVEL", + "SAVE_FOR_LATER_CART_ABANDONMENT_SCREEN_USER_LEVEL", "USER_LEVEL_TEST_CODE_LIMIT" ], "enumDeprecated": [ @@ -129696,256 +128055,59 @@ false, false, false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - true, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - true, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, false, false, false, @@ -130176,6 +128338,89 @@ false, false, false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, true, false, false, @@ -130290,6 +128535,68 @@ false, false, false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, false, false, false, @@ -130405,7 +128712,6 @@ false, false, false, - true, false, false, false, @@ -130433,6 +128739,57 @@ false, false, false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, true, false, false, @@ -130578,6 +128935,9 @@ false, false, false, + false, + false, + false, false ], "enumDescriptions": [ @@ -131593,6 +129953,9 @@ "Session-level test code for multiline addon title.", "Session-level test code for Paytm wallet failures.", "Session-level for showing subscription benefits in cart abandonment.", + "Session_level test code for multiline basic restore enabled.", + "Session-level test code thst indicates decline message is popluated in subscenter.", + "Session level test code for Save For Later cart abandonment screen.", "", "Cart abandonment flow for purchase flow.", "User saw/would have seen the in app products section in App", @@ -131805,11 +130168,6 @@ "User level test code for users who have made any monetization behavior(sub, iap) for the last 180 days (controlled by ULYSSES_OOP_SPEND_PER_PURCHASE_180D), used for AH/GH monetization experiments.", "User level test code for users who have any purchase card abandon behavior in the last 28 day (controlled by LAST_28D_CART_ABANDONMENT_BACKEND), used for AH/GH monetization experiments.", "User level test code for users who have any purchase card abandon behavior in the last 7 day (controlled by LAST_7D_CART_ABANDONMENT_BACKEND), used for AH/GH monetization experiments.", - "User level test code for link biometrics with impression cap and foped user setup.", - "User level test code for link biometrics with impression cap and foped user setup.", - "User level test code for link biometrics with impression cap and foped user setup after traffic rebalancing.", - "User level test code for link biometrics with impression cap and foped user setup after traffic rebalancing.", - "User level test code for link biometrics with impression cap and foped user setup after traffic rebalancing.", "User level test code for link biometrics with impression cap and foped user setup after traffic rebalancing.", "User level test code for post success add backup flow.", "User level test code for skipping ckechmark screen with backup flow.", @@ -131876,7 +130234,7 @@ "", "", "", - "User level test code for reinstall enablement. If user has any eligible reinstall passing the per user filtering logic, testcode will be logged. Note that the filtering logics are controlled by gcl flags. Ex. Play Games Home: http://shortn/_2aGCRQqToq. This test code only knows if any app passes the filtering but not which filtering params are applied.", + "User level test code for reinstall enablement. If user has any eligible reinstall passing the per user filtering logic, testcode will be logged. Note that the filtering logic are controlled by gcl flags. Ex. Play Games Home: http://shortn/_2aGCRQqToq. This test code only knows if any app passes the filtering but not which filtering params are applied.", "User level test code for tagging users who have any app which is recommended by PRS and has reinstall eligibility when is_app_with_historical_oop_purchase restriction is turned on.", "User-level test code for tagging users with previous OOP spend on games.", "User-level test code for tagging users with previous OOP spend on applications.", @@ -131957,6 +130315,9 @@ "", "User level test code indicating that user starts the purchase with a cart that has broken existing form of payment.", "User-level for showing subscription benefits in cart abandonment.", + "User-level test code for users who see the decline message in subscenter.", + "User level test code for multiline basic restore enabled.", + "User level test code for Save For Later cart abandonment screen. Add new user-level TestCode here.", "" ], "type": "string" @@ -132423,7 +130784,8 @@ "NS_SEARCH_SPORTS", "NS_BUSINESSMESSAGING", "NS_AERIAL_VIEW", - "NS_DOCS_FLIX_RENDER" + "NS_DOCS_FLIX_RENDER", + "NS_SHOPPING" ], "enumDeprecated": [ false, @@ -132468,6 +130830,7 @@ false, false, false, + false, false ], "enumDescriptions": [ @@ -132513,7 +130876,8 @@ "Namespace for Search Sports vertical videos.", "Namespace for Business Messaging videos.", "Namespace for Geo Aerial View", - "Namespace for Flix Render (Docs) Please receive approval via go/vp-newclients before adding a new namespace." + "Namespace for Flix Render (Docs)", + "Namespace for CDS videos processed through Amarna. Please receive approval via go/vp-newclients before adding a new namespace." ], "type": "string" } @@ -148987,7 +147351,9 @@ "COUNTERFEIT", "COURT_ORDER", "CTM", + "DANGEROUS", "DEFAMATION", + "EATING_DISORDERS", "GOVERNMENT_ORDER", "HARASSMENT", "HATE", @@ -149003,17 +147369,17 @@ "QUOTA_EXCEEDED", "REGULATED", "SPAM", + "SUICIDE_AND_SELF_HARM", "TRADEMARK", "UNSAFE_RACY", "UNWANTED_SOFTWARE", "UNWANTED_CONTENT", "VIOLENCE", - "DANGEROUS", + "VIOLENT_EXTREMISM", "BLOCKED_LINKS", "BLOCKED_WORDS", "ENABLED_HOLD_ALL", "HIDDEN_USER_LIST", - "VIOLENT_EXTREMISM", "PRIVILEGED_USER_REJECTED", "ABOVE_REJECT_INAPPROPRIATE_SCORE", "TOO_MANY_BAD_CHARS", @@ -149027,7 +147393,9 @@ "Promotion of counterfeit product claims.", "Third-party court orders.", "Circumvention of Technological measures claims. Circumventing protection mechanisms on copyrighted work.", + "Content depicts or provides instructions to complete activities that are dangerous and/or widely illegal, e.g. prostitution, bomb-making, suicide.", "Defamation claims.", + "Content that demonstrates eating disorders", "Government request, regardless of reason.", "Consistent harassing behavior directed towards a person.", "", @@ -149043,17 +147411,17 @@ "", "Contains regulated products and services, such as pharmaceuticals, alcohol, tobacco, etc. For details, https://sites.google.com/a/google.com/crt-policy-site/regulated", "", + "Content that demonstrates suicide and self harm", "Trademark violations where Google could be liable.", "Content that is unsafe because it is sexually suggestive/racy.", "The software is deceptive, promising a value proposition that it does not meet, or tries to trick users into installing it or it piggybacks on the installation of another program, or doesn’t tell the user about all of its principal and significant functions or affects the user’s system in unexpected ways, or collects or transmits private information without the user’s knowledge, or bundled with other software and its presence is not disclosed.", "Content includes spammy commercial content, such as links to MFA pages, affiliate links, ads or solicitation, or otherwise off-topic or irrelevant content.", "", - "Content depicts or provides instructions to complete activities that are dangerous and/or widely illegal, e.g. prostitution, bomb-making, suicide.", + "Content that recruits or solicits terrorists; specific and detailed instructions on how to make a bomb; terrorists who document their attacks; praising acts of mass violence; content that shows captured hostages posted with the intent to solicit demands, threaten, or intimidate.", "Comment contains links in a list of \"blocked links\" in YouTube Studio \u003e Settings \u003e Community.", "Creator setting specific reasons. go/ytc-nextgen-community-settings-storage Comment contains words in a list of \"blocked words\" in YouTube Studio \u003e Settings \u003e Community.", "Held because the moderation policy is \"Hold all comments for review\".", "Comment from listed hidden users.", - "Content that recruits or solicits terrorists; specific and detailed instructions on how to make a bomb; terrorists who document their attacks; praising acts of mass violence; content that shows captured hostages posted with the intent to solicit demands, threaten, or intimidate.", "A privileged user, which can only be parent entity owner for ENTITY_COMMENT, but can be either parent entity channel owner or channel moderator for CHAT_MESSAGE CommentType, manually rejected the Comment. Their decision overrides any system flagging.", "Automod rejected due to above inappropriate score rejection threshold. Maps to ModerationReason.ABOVE_REJECT_INAPPROPRIATE_SCORE.", "Automod rejected due to containing more than allowed bad characters. Maps to ModerationReason.TOO_MANY_BAD_CHARS.", diff --git a/contentwarehouse/v1/contentwarehouse-gen.go b/contentwarehouse/v1/contentwarehouse-gen.go index 2469945120a..706afbabbd3 100644 --- a/contentwarehouse/v1/contentwarehouse-gen.go +++ b/contentwarehouse/v1/contentwarehouse-gen.go @@ -3251,6 +3251,7 @@ type AppsPeopleOzExternalMergedpeopleapiAffinity struct { // "PLAYSPACE_LABS_AFFINITY" // "ZOMBIE_CLOUD_AFFINITY" // "RELATIONSHIPS_AFFINITY" + // "APPS_WORKFLOW_AFFINITY" AffinityType string `json:"affinityType,omitempty"` // ContainerId: The ID of the container @@ -12265,12 +12266,7 @@ func (s *AssistantApiCoreTypesAndroidAppInfoDelta) MarshalJSON() ([]byte, error) // AssistantApiCoreTypesCalendarEvent: This proto contains the // information of a calendar event, including title, start time, end -// time, etc. IMPORTANT: The definition of CalendarEvent proto is being -// moved to -// //assistant/api/core_types/governed/calendar_event_type.proto. All -// existing references will be updated to point to the new location. If -// you are adding a reference, use the new one instead. -// LINT.IfChange(CalendarEvent) NEXT_ID: 26 +// time, etc. LINT.IfChange(CalendarEvent) NEXT_ID: 26 type AssistantApiCoreTypesCalendarEvent struct { // Attendees: Attendees invited to the event, usually includes also the // organizer. @@ -12641,11 +12637,6 @@ func (s *AssistantApiCoreTypesCalendarEventRoomRoomLocationDetails) UnmarshalJSO // while maintaining BUILD visibility protection for their contents. The // BUILD-visibility-protected extension to this message is defined at // http://google3/assistant/verticals/calendar/proto/multi_account_calendar_event.proto -// IMPORTANT: The definition of CalendarEventWrapper proto is being -// moved to -// //assistant/api/core_types/governed/calendar_event_type.proto. All -// existing references will be updated to point to the new location. If -// you are adding a reference, use the new one instead. type AssistantApiCoreTypesCalendarEventWrapper struct { } @@ -12990,12 +12981,7 @@ func (s *AssistantApiCoreTypesDeviceId) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AssistantApiCoreTypesDeviceUserIdentity: IMPORTANT: The definition of -// DeviceUserIdentity is being moved to -// //assistant/api/core_types/governed/device_user_identity.proto. All -// existing references will be updated to point to the new location. If -// you are adding a reference, use the new DeviceUserIdentity instead of -// this one. // LINT.IfChange +// AssistantApiCoreTypesDeviceUserIdentity: LINT.IfChange type AssistantApiCoreTypesDeviceUserIdentity struct { // DeviceId: The identifier of the device. DeviceId *AssistantApiCoreTypesDeviceId `json:"deviceId,omitempty"` @@ -13026,8 +13012,12 @@ func (s *AssistantApiCoreTypesDeviceUserIdentity) MarshalJSON() ([]byte, error) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AssistantApiCoreTypesGovernedColor: Represents a color in the RGBA -// color space. This message mirrors google.type.Color. +// AssistantApiCoreTypesGovernedColor: LINT.IfChange Represents a color +// in the RGBA color space. This message mirrors google.type.Color. +// IMPORTANT: The definition of Color proto is being moved to +// //assistant/api/core_types/color_type.proto. All existing references +// will be updated to point to the new location. If you are adding a +// reference, use the new one instead. type AssistantApiCoreTypesGovernedColor struct { // Alpha: The fraction of this color that should be applied to the // pixel. That is, the final pixel color is defined by the equation: @@ -13096,7 +13086,11 @@ func (s *AssistantApiCoreTypesGovernedColor) UnmarshalJSON(data []byte) error { // AssistantApiCoreTypesGovernedDeviceConfig: The identification // information for third party devices that integrates with the // assistant. All of these fields will be populated by the third party -// when the query is sent from the third party device. Next Id: 5 +// when the query is sent from the third party device. IMPORTANT: The +// definition of DeviceConfig proto is being moved to +// //assistant/api/core_types/device_type.proto. All existing references +// will be updated to point to the new location. If you are adding a +// reference, use the new one instead. Next Id: 5 type AssistantApiCoreTypesGovernedDeviceConfig struct { // AgentId: Pantheon Project ID that uniquely identifies the consumer // project ID. Required @@ -13143,7 +13137,11 @@ func (s *AssistantApiCoreTypesGovernedDeviceConfig) MarshalJSON() ([]byte, error // http://google3/assistant/context/util/lib/device_id.dart;l=26;rcl=442126145 // * Java: // http://google3/java/com/google/assistant/assistantserver/utils/DeviceIdHelper.java;l=9;rcl=390378522 -// See http://go/deviceid-equality for more details. Next ID: 14 +// See http://go/deviceid-equality for more details. IMPORTANT: The +// definition of DeviceId proto is being moved to +// //assistant/api/core_types/device_type.proto. All existing references +// will be updated to point to the new location. If you are adding a +// reference, use the new one instead. Next ID: 14 type AssistantApiCoreTypesGovernedDeviceId struct { // AgsaClientInstanceId: The client_instance_id on devices with GSA. See // 'client_instance_field' in go/androidids. @@ -13253,8 +13251,12 @@ func (s *AssistantApiCoreTypesGovernedDeviceId) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AssistantApiCoreTypesGovernedRingtoneTaskMetadata: Task metadata -// information describing the ringtone. Next id: 11 +// AssistantApiCoreTypesGovernedRingtoneTaskMetadata: LINT.IfChange Task +// metadata information describing the ringtone. IMPORTANT: The +// definition of RingtoneTaskMetadata proto is being moved to +// //assistant/api/core_types/ringtone_task_metadata.proto. All existing +// references will be updated to point to the new location. If you are +// adding a reference, use the new one instead. Next id: 11 type AssistantApiCoreTypesGovernedRingtoneTaskMetadata struct { // Category: The category related with the ringtone. It's used to // generate ringtone related with the category if the entity_mid is not @@ -13643,7 +13645,13 @@ func (s *AssistantApiCoreTypesGovernedRingtoneTaskMetadataRoutineAlarmMetadata) // User-Agent string within the Assistant Server. Note: The // SurfaceIdentity proto should only be used to derive the capabilities // of a surface. It should not be accessed outside of the -// CapabilityBuilder or CapabilityChecker. NEXT ID: 6 LINT.IfChange +// CapabilityBuilder or CapabilityChecker. IMPORTANT: The partial +// migration to the SurfaceIdentity and SurfaceVersion protos defined +// here is being rolled back (b/303012824). All existing references will +// be updated to point back to +// //assistant/api/core_types/surface_identity.proto. If you are adding +// a reference, use the SurfaceIdentity and SurfaceVersion protos +// defined there. NEXT ID: 6 LINT.IfChange type AssistantApiCoreTypesGovernedSurfaceIdentity struct { // DeviceId: The identifier of the device. DeviceId *AssistantApiCoreTypesDeviceId `json:"deviceId,omitempty"` @@ -13972,11 +13980,7 @@ func (s *AssistantApiCoreTypesHomeAppInfo) MarshalJSON() ([]byte, error) { } // AssistantApiCoreTypesImage: An image represents the data about an -// image or a photo. IMPORTANT: The definition of the Image message is -// being moved to //assistant/api/core_types/governed/image_type.proto. -// All existing references will be updated to point to the new location. -// If you are adding a reference, use the new Image message instead of -// this one. LINT.IfChange NextId: 13 +// image or a photo. LINT.IfChange NextId: 13 type AssistantApiCoreTypesImage struct { // AccessibilityText: A text description of the image to be used for // accessibility, e.g. screen readers. @@ -14589,13 +14593,7 @@ func (s *AssistantApiCoreTypesSipProviderInfo) MarshalJSON() ([]byte, error) { // string within the Assistant Server. Note: The SurfaceIdentity proto // should only be used to derive the capabilities of a surface. It // should not be accessed outside of the CapabilityBuilder or -// CapabilityChecker. NEXT ID: 6 IMPORTANT: The definitions of the -// SurfaceIdentity and SurfaceVersion protos are being moved to -// //assistant/api/core_types/governed/surface_identity.proto All -// existing references will be updated to point to the new location. If -// you are adding a reference, use the new SurfaceIdentity and -// SurfaceVersion protos instead of the protos defined here. -// LINT.IfChange +// CapabilityChecker. NEXT ID: 6 LINT.IfChange type AssistantApiCoreTypesSurfaceIdentity struct { // DeviceId: The identifier of the device. DeviceId *AssistantApiCoreTypesDeviceId `json:"deviceId,omitempty"` @@ -14830,12 +14828,12 @@ type AssistantApiCoreTypesSurfaceIdentity struct { // OWNERS: assistant-wearable-team@ SurfaceType string `json:"surfaceType,omitempty"` - // SurfaceTypeString: DEPRECATED. - // assistant.api.core_types.governed.SurfaceIdentity.surface_type field - // should be used instead. The device's surface type. This is the string - // version of the assistant.api.core_types.SurfaceType enum. The server - // should not use this field, rather it should use the SurfaceType value - // derived from this string. + // SurfaceTypeString: DEPRECATED. The legacy device's surface type + // string. NOTE: Prefer using the ontological `surface_type` field. The + // device's surface type. This is the string version of the + // assistant.api.core_types.SurfaceType enum. The server should not use + // this field, rather it should use the SurfaceType value derived from + // this string. SurfaceTypeString string `json:"surfaceTypeString,omitempty"` // SurfaceVersion: The version of the surface/client. This is different @@ -15152,11 +15150,7 @@ func (s *AssistantApiCrossDeviceExecutionCapability) MarshalJSON() ([]byte, erro return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AssistantApiDate: A Gregorian calendar date. IMPORTANT: The -// definition of Date proto is being moved to -// //assistant/api/core_types/governed/datetime_type.proto. All existing -// references will be updated to point to the new location. If you are -// adding a reference, use the new one instead. +// AssistantApiDate: A Gregorian calendar date. type AssistantApiDate struct { // Day: The day, in 1...31. Day int64 `json:"day,omitempty"` @@ -15191,11 +15185,7 @@ func (s *AssistantApiDate) MarshalJSON() ([]byte, error) { } // AssistantApiDateTime: A date-time specification, combining a date and -// civil time (relative to a given timezone). IMPORTANT: The definition -// of DateTime proto is being moved to -// //assistant/api/core_types/governed/datetime_type.proto. All existing -// references will be updated to point to the new location. If you are -// adding a reference, use the new one instead. +// civil time (relative to a given timezone). type AssistantApiDateTime struct { // Date: A Gregorian calendar date. Date *AssistantApiDate `json:"date,omitempty"` @@ -15229,6 +15219,38 @@ func (s *AssistantApiDateTime) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// AssistantApiDateTimeRange: A representation of a range of time with +// start and end datetime specified. +type AssistantApiDateTimeRange struct { + // EndDate: End date of the range. + EndDate *AssistantApiDateTime `json:"endDate,omitempty"` + + // StartDate: Start date of the range. + StartDate *AssistantApiDateTime `json:"startDate,omitempty"` + + // ForceSendFields is a list of field names (e.g. "EndDate") 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. "EndDate") 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 *AssistantApiDateTimeRange) MarshalJSON() ([]byte, error) { + type NoMethod AssistantApiDateTimeRange + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // AssistantApiDeviceCapabilities: This message describes roughly what a // surface is capable of doing and metadata around those capabilities. // These capabilities are determined based on: - device hardware - @@ -17145,17 +17167,14 @@ func (s *AssistantApiProtobuf) MarshalJSON() ([]byte, error) { // of dates on which an event falls, described by a list of constraints. // A date is in a recurrence if and only if it satisfies all of the // constraints. Note that devices may support some constraints, but not -// all. IMPORTANT: The definition of Recurrence proto is being moved to -// //assistant/api/core_types/governed/datetime_type.proto. All existing -// references will be updated to point to the new location. If you are -// adding a reference, use the new one instead. +// all. type AssistantApiRecurrence struct { // Begin: The first day of the recurrence. If begin is not set, then the // reminder will start infinitely in the past. Begin *AssistantApiDate `json:"begin,omitempty"` // BlacklistedRanges: A list of blacklisted dates to skip the alarm on. - BlacklistedRanges []*AssistantApiRecurrenceDatetimeRange `json:"blacklistedRanges,omitempty"` + BlacklistedRanges []*AssistantApiDateTimeRange `json:"blacklistedRanges,omitempty"` // DayOfMonth: Specifies the date in a month. For example, if // day_of_month is 15, then it represent the 15th day of the specified @@ -17211,38 +17230,6 @@ func (s *AssistantApiRecurrence) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AssistantApiRecurrenceDatetimeRange: A representation of a range of -// time with start and end datetime specified. -type AssistantApiRecurrenceDatetimeRange struct { - // EndDate: End date of the range. - EndDate *AssistantApiDateTime `json:"endDate,omitempty"` - - // StartDate: Start date of the range. - StartDate *AssistantApiDateTime `json:"startDate,omitempty"` - - // ForceSendFields is a list of field names (e.g. "EndDate") 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. "EndDate") 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 *AssistantApiRecurrenceDatetimeRange) MarshalJSON() ([]byte, error) { - type NoMethod AssistantApiRecurrenceDatetimeRange - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // AssistantApiScreenCapabilities: These capabilities represent the // tactile features associated with the device. This includes, for // example, whether the device has a screen, how big the screen is, and @@ -21302,10 +21289,6 @@ func (s *AssistantApiThirdPartyCapabilities) MarshalJSON() ([]byte, error) { } // AssistantApiTimeOfDay: A civil time relative to a timezone. -// IMPORTANT: The definition of TimeOfDay proto is being moved to -// //assistant/api/core_types/governed/datetime_type.proto. All existing -// references will be updated to point to the new location. If you are -// adding a reference, use the new one instead. type AssistantApiTimeOfDay struct { // Hour: The hour, in 0...23. Hour int64 `json:"hour,omitempty"` @@ -21345,11 +21328,7 @@ func (s *AssistantApiTimeOfDay) MarshalJSON() ([]byte, error) { // AssistantApiTimeZone: A time zone. Conceptually, a time zone is a set // of rules associated with a location that describes a UTC offset and // how it changes over time (e.g. Daylight Saving Time). The offset is -// used to compute the local date and time. IMPORTANT: The definition of -// TimeZone enum is being moved to -// //assistant/api/core_types/governed/datetime_type.proto. All existing -// references will be updated to point to the new location. If you are -// adding a reference, use the new one instead. +// used to compute the local date and time. type AssistantApiTimeZone struct { // IanaId: Time zone in IANA format, e.g. America/Los_Angeles for USA // Pacific Time. @@ -21380,11 +21359,7 @@ func (s *AssistantApiTimeZone) MarshalJSON() ([]byte, error) { // AssistantApiTimestamp: An absolute point in time independent of // timezone or calendar, based on the proto3 Timestamp -// (//google/protobuf/timestamp.proto). IMPORTANT: The definition of -// Timestamp proto is being moved to -// //assistant/api/core_types/governed/datetime_type.proto. All existing -// references will be updated to point to the new location. If you are -// adding a reference, use the new one instead. NOTE: THIS IS NO LONGER +// (//google/protobuf/timestamp.proto). NOTE: THIS IS NO LONGER // RECOMMENDED TO BE USED. It was originally defined separately from // google.protobuf.Timestamp due to incompatibility with proto2 syntax. // The incompatibility issues have since been resolved and so the @@ -21513,7 +21488,7 @@ func (s *AssistantApiVolumeProperties) UnmarshalJSON(data []byte) error { return nil } -// AssistantContextAppProviderId: LINT.IfChanged Identifier for an +// AssistantContextAppProviderId: LINT.IfChange Identifier for an // application provider. NOTE: AppProviderId contains surface-specific // info, such as the Android package name of the application. This was // necessary for supporting current use cases that rely on @@ -23393,6 +23368,9 @@ type AssistantGroundingRankerContactGroundingProviderFeatures struct { // "NEURAL_CONTACT_MATCH_DARK_LAUNCH" - The dark launch for a neural // match. We found a match, but we ignore it for serving and just log // it. + // "PERSONALIZED_NAME_CORRECTION_LOG" - Personalized alternate name + // from Assistant User Profile that stores personalized contact name + // corrections under ContactAlternates profile. RecognitionAlternateSource string `json:"recognitionAlternateSource,omitempty"` // ForceSendFields is a list of field names (e.g. "ConceptId") to @@ -24126,7 +24104,7 @@ func (s *AssistantGroundingRankerLaaFeaturesProvider) MarshalJSON() ([]byte, err } // AssistantGroundingRankerMediaGroundingProviderFeatures: Features to -// be passed from Media GP to HGR. Next ID: 20 +// be passed from Media GP to HGR. Next ID: 21 type AssistantGroundingRankerMediaGroundingProviderFeatures struct { // AlbumReleaseType: Release type for an album container. // @@ -24189,6 +24167,11 @@ type AssistantGroundingRankerMediaGroundingProviderFeatures struct { // IsSeedRadioRequest: True if the user requests seed radio. IsSeedRadioRequest bool `json:"isSeedRadioRequest,omitempty"` + // IsSelfReportedSvodProvider: Provider is a self(user) reported + // subscripted provider + // https://g3doc.corp.google.com/knowledge/g3doc/ump/development/GetProviderAffinity.md?cl=head + IsSelfReportedSvodProvider bool `json:"isSelfReportedSvodProvider,omitempty"` + // IsYoutubeMusicSeeking: Indicates whether this is youtube content // seeking music. IsYoutubeMusicSeeking bool `json:"isYoutubeMusicSeeking,omitempty"` @@ -24977,6 +24960,9 @@ type AssistantLogsCommunicationPersonalContactDataLog struct { // "NEURAL_CONTACT_MATCH_DARK_LAUNCH" - The dark launch for a neural // match. We found a match, but we ignore it for serving and just log // it. + // "PERSONALIZED_NAME_CORRECTION_LOG" - Personalized alternate name + // from Assistant User Profile that stores personalized contact name + // corrections under ContactAlternates profile. RecognitionAlternateSource string `json:"recognitionAlternateSource,omitempty"` // RelationshipMemoryCount: The number of resolved relationship names @@ -39845,6 +39831,7 @@ func (s *GeostoreCellCoveringProto) MarshalJSON() ([]byte, error) { // of the portion of the CityJSON spec (https://www.cityjson.org/) // relevant to internal projects. See go/cityjsonproto-design for more // information about the modeling and design decisions implemented here. +// LINT.IfChange type GeostoreCityJsonProto struct { // CityObjects: City objects associated with this CityJsonProto. CityObjects []*GeostoreCityJsonProtoCityObject `json:"cityObjects,omitempty"` @@ -39931,9 +39918,13 @@ func (s *GeostoreCityJsonProtoCityObject) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GeostoreCityJsonProtoCityObjectGeometry: Representation of geometry. -// Geometries vary both in type and in level-of-detail, enabling -// representation of any shape at any level of granularity. +// GeostoreCityJsonProtoCityObjectGeometry: Representation of geometry +// including geometric primitives which are used as building blocks to +// construct geometries of varying complexity. Geometries vary both in +// type and in level-of-detail, enabling representation of any shape at +// any level of granularity. All geometries are ultimately composed of +// `MultiPoint`s, which reference the actual vertices. Only linear and +// planar shapes are allowed, no curves or parametric surfaces. type GeostoreCityJsonProtoCityObjectGeometry struct { // Lod: Level-of-detail (LoD) indicates how intricate the geometric // representation is. May be a single digit per CityGML standards or X.Y @@ -40657,7 +40648,7 @@ type GeostoreDataSourceProto struct { // "PROVIDER_GOOGLE" - ABSTRACT // "PROVIDER_GOOGLE_HAND_EDIT" // "PROVIDER_GOOGLE_BORDERS" - All new "Google" provider entries must - // be full ints. The next available ID is: 0x111730B7 + // be full ints. The next available ID is: 0x111730B8 // "PROVIDER_GOOGLE_SUBRANGE" - ABSTRACT // "PROVIDER_GOOGLE_GT_FUSION" // "PROVIDER_GOOGLE_ZAGAT_CMS" @@ -40840,6 +40831,7 @@ type GeostoreDataSourceProto struct { // "PROVIDER_GOOGLE_GEO_NG_LOCAL" // "PROVIDER_GOOGLE_MAPFACTS_CLEANUP" // "PROVIDER_GOOGLE_THIRD_PARTY_UGC" - UMBRELLA + // "PROVIDER_GOOGLE_GEO_ISSUE_ADMIN" // "PROVIDER_GOOGLE_LOCALSEARCH" - The next new "Google" provider // entries should be placed above. // "PROVIDER_GOOGLE_TRANSIT" - UMBRELLA @@ -45328,7 +45320,7 @@ type GeostoreInternalSourceSummaryProto struct { // "PROVIDER_GOOGLE" - ABSTRACT // "PROVIDER_GOOGLE_HAND_EDIT" // "PROVIDER_GOOGLE_BORDERS" - All new "Google" provider entries must - // be full ints. The next available ID is: 0x111730B7 + // be full ints. The next available ID is: 0x111730B8 // "PROVIDER_GOOGLE_SUBRANGE" - ABSTRACT // "PROVIDER_GOOGLE_GT_FUSION" // "PROVIDER_GOOGLE_ZAGAT_CMS" @@ -45511,6 +45503,7 @@ type GeostoreInternalSourceSummaryProto struct { // "PROVIDER_GOOGLE_GEO_NG_LOCAL" // "PROVIDER_GOOGLE_MAPFACTS_CLEANUP" // "PROVIDER_GOOGLE_THIRD_PARTY_UGC" - UMBRELLA + // "PROVIDER_GOOGLE_GEO_ISSUE_ADMIN" // "PROVIDER_GOOGLE_LOCALSEARCH" - The next new "Google" provider // entries should be placed above. // "PROVIDER_GOOGLE_TRANSIT" - UMBRELLA @@ -47513,7 +47506,7 @@ type GeostoreOntologyRawGConceptInstanceProto struct { // "PROVIDER_GOOGLE" - ABSTRACT // "PROVIDER_GOOGLE_HAND_EDIT" // "PROVIDER_GOOGLE_BORDERS" - All new "Google" provider entries must - // be full ints. The next available ID is: 0x111730B7 + // be full ints. The next available ID is: 0x111730B8 // "PROVIDER_GOOGLE_SUBRANGE" - ABSTRACT // "PROVIDER_GOOGLE_GT_FUSION" // "PROVIDER_GOOGLE_ZAGAT_CMS" @@ -47696,6 +47689,7 @@ type GeostoreOntologyRawGConceptInstanceProto struct { // "PROVIDER_GOOGLE_GEO_NG_LOCAL" // "PROVIDER_GOOGLE_MAPFACTS_CLEANUP" // "PROVIDER_GOOGLE_THIRD_PARTY_UGC" - UMBRELLA + // "PROVIDER_GOOGLE_GEO_ISSUE_ADMIN" // "PROVIDER_GOOGLE_LOCALSEARCH" - The next new "Google" provider // entries should be placed above. // "PROVIDER_GOOGLE_TRANSIT" - UMBRELLA @@ -50063,7 +50057,7 @@ type GeostoreProvenanceProto struct { // "PROVIDER_GOOGLE" - ABSTRACT // "PROVIDER_GOOGLE_HAND_EDIT" // "PROVIDER_GOOGLE_BORDERS" - All new "Google" provider entries must - // be full ints. The next available ID is: 0x111730B7 + // be full ints. The next available ID is: 0x111730B8 // "PROVIDER_GOOGLE_SUBRANGE" - ABSTRACT // "PROVIDER_GOOGLE_GT_FUSION" // "PROVIDER_GOOGLE_ZAGAT_CMS" @@ -50246,6 +50240,7 @@ type GeostoreProvenanceProto struct { // "PROVIDER_GOOGLE_GEO_NG_LOCAL" // "PROVIDER_GOOGLE_MAPFACTS_CLEANUP" // "PROVIDER_GOOGLE_THIRD_PARTY_UGC" - UMBRELLA + // "PROVIDER_GOOGLE_GEO_ISSUE_ADMIN" // "PROVIDER_GOOGLE_LOCALSEARCH" - The next new "Google" provider // entries should be placed above. // "PROVIDER_GOOGLE_TRANSIT" - UMBRELLA @@ -69271,128 +69266,6 @@ func (s *HtmlrenderWebkitHeadlessProtoWindowOpenEvent) MarshalJSON() ([]byte, er return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// HumanSensingFaceAttribute: Defines a generic attribute. The name -// field is the name of the attribute (for example beard, glasses, joy). -// The confidence defines how reliable the given annotation is. For -// binary attributes it is bounded between 0 and 1 and can be -// interpreted as the posterior probability. The value field can be used -// for continuous attributes like age. Information returned or stored in -// this message may be sensitive from a privacy, policy, or legal point -// of view. Clients should consult with their p-counsels and the privacy -// working group (go/pwg) to make sure their use respects Google -// policies. -type HumanSensingFaceAttribute struct { - Confidence float64 `json:"confidence,omitempty"` - - Name string `json:"name,omitempty"` - - // Possible values: - // "TYPE_UNKNOWN" - // "FREE_FORM" - // "FEMALE" - Attribute types that describe the gender of a face. For - // an attribute if type FEMALE the confidence represent the probability - // of a face to be from a female person. Similarly, for an attribute of - // type MALE the confidence is the probability of a face to be from a - // male person. 4 is reserved for OTHER_GENDER. - // "MALE" - // "AGE" - Attribute type that represent the age of the face. For an - // attribute of this type the field value represent the age. Values are - // assumed to be in the range [0, 95]. - // "NON_HUMAN" - This attributes is used to distinguish actual human - // faces from other possible face detections like face of sculptures, - // cartoons faces, and some false detections. - // "GLASSES" - Attributes types that describes face - // appearances/configurations (mouth open, eyes visibles and looking - // into the camera, smiling) and props (glasses, dark glasses, and - // headwear). - // "DARK_GLASSES" - // "HEADWEAR" - // "EYES_VISIBLE" - // "LEFT_EYELID_CLOSED" - // "RIGHT_EYELID_CLOSED" - // "MOUTH_OPEN" - // "FACIAL_HAIR" - // "LONG_HAIR" - // "FRONTAL_GAZE" - // "SMILING" - // "UNDER_EXPOSED" - // "BLURRED" - // "LEFT_EYE_VISIBLE" - Attributes for the visibility of face - // landmarks. The landmarks refers to a single point in the image, so - // the eyes are visible if their center is visible, the ears are visible - // if the ear tragion is visible. - // "RIGHT_EYE_VISIBLE" - // "LEFT_EAR_VISIBLE" - // "RIGHT_EAR_VISIBLE" - // "NOSE_TIP_VISIBLE" - // "MOUTH_CENTER_VISIBLE" - // "LOWER_FACE_COVERED" - An attribute describing if the lower part of - // a face is covered by something like a face mask, a scarf or any other - // type of covering. The expectation is for both the mouth and the nose - // tip to be covered. This is useful for labeling faces in images - // captured during the Covid pandemic. - // "AMUSEMENT" - FeelNet expressions. - // "ANGER" - // "CONCENTRATION" - // "CONFUSION" - // "CONTENTMENT" - // "DESIRE" - // "DISAPPOINTMENT" - // "DISGUST" - // "ELATION" - // "EMBARRASSMENT" - // "INTEREST" - // "LOVE" - // "PAIN" - // "PRIDE" - // "RELIEF" - // "SADNESS" - // "SURPRISE" - // "CANDID" - // "POSED" - Type string `json:"type,omitempty"` - - Value float64 `json:"value,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Confidence") 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. "Confidence") 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 *HumanSensingFaceAttribute) MarshalJSON() ([]byte, error) { - type NoMethod HumanSensingFaceAttribute - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -func (s *HumanSensingFaceAttribute) UnmarshalJSON(data []byte) error { - type NoMethod HumanSensingFaceAttribute - var s1 struct { - Confidence gensupport.JSONFloat64 `json:"confidence"` - Value gensupport.JSONFloat64 `json:"value"` - *NoMethod - } - s1.NoMethod = (*NoMethod)(s) - if err := json.Unmarshal(data, &s1); err != nil { - return err - } - s.Confidence = float64(s1.Confidence) - s.Value = float64(s1.Value) - return nil -} - // I18nPhonenumbersPhoneNumber: The PhoneNumber object that is used by // all LibPhoneNumber API's to fully represent a phone number. type I18nPhonenumbersPhoneNumber struct { @@ -70049,7 +69922,7 @@ func (s *ImageContentStarburstVersionGroup) UnmarshalJSON(data []byte) error { // ImageData: This defines the per-doc data which is extracted from // thumbnails and propagated over to indexing. It contains all -// information that can be used for restricts. Next tag id: 132 +// information that can be used for restricts. Next tag id: 131 type ImageData struct { // AdaboostImageFeaturePorn: Warning: adaboost_image_feature_porn* and // imageFeaturePorn fields are DEPRECATED in favor of brain_porn_scores. @@ -70161,9 +70034,6 @@ type ImageData struct { // for selected corpora. ExtendedExif *PhotosImageMetadata `json:"extendedExif,omitempty"` - // FaceDetection: Face Detection. - FaceDetection *ReneFaceResponse `json:"faceDetection,omitempty"` - // FeaturedImageProp: Properties used in featured imagesearch project. // inspiration_score indicates how well an image is related to products, // or how inspirational it is. @@ -72245,6 +72115,7 @@ type ImageRepositoryApiItagSpecificMetadata struct { // "GENUS_BUSINESSMESSAGING" - Genus for Business Messaging videos // "GENUS_AERIAL_VIEW" - Genus for Geo Aerial View // "GENUS_DOCS_FLIX_RENDER" - Genus for Flix Render (Docs) + // "GENUS_SHOPPING" - Genus for CDS videos processed through Amarna. Genus string `json:"genus,omitempty"` // State: Indicates the state in Venom for this transcode type. @@ -73651,6 +73522,7 @@ type ImageRepositoryVenomStatus struct { // "GENUS_BUSINESSMESSAGING" - Genus for Business Messaging videos // "GENUS_AERIAL_VIEW" - Genus for Geo Aerial View // "GENUS_DOCS_FLIX_RENDER" - Genus for Flix Render (Docs) + // "GENUS_SHOPPING" - Genus for CDS videos processed through Amarna. Genus string `json:"genus,omitempty"` // InsertionResponseTimestampUsec: Time that VideoNotification result @@ -106860,6 +106732,8 @@ type PeoplestackFlexorgsProtoInternalExternal struct { // "ZOMBIE_CLOUD" - Zombie Cloud Team contact: // zombie-cloud-eng@google.com // "RELATIONSHIPS" - Relationships Team contact: hana-dev@google.com + // "APPS_WORKFLOW" - Apps Workflow Team contact: + // workflows-frontend-eng@google.com // "DEPRECATED_QUICKSTART_FLUME" // "DUO_CLIENT" - Duo Client Team contact: duo-eng@google.com // "ALBERT" - Project albert (go/albert-frontend) Team contact: @@ -110615,713 +110489,6 @@ func (s *PhotosVisionObjectrecROI) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// PhotosVisionServiceFaceFaceParams: FaceParams are a collection of -// parameters of a single face found in an image. WARNING: This message -// has a jspb target. If you add a new message field inside, either put -// its definition inside this message as well or add the js file -// corresponding to the new message to the js_deps and proto_js rules in -// the BUILD file; otherwise it will break lots of builds. The js file -// name is the message name all in lowercase letters. Next available id: -// 40. -type PhotosVisionServiceFaceFaceParams struct { - // Age: The age of the face. Range [0.0, 120.0]. - Age float64 `json:"age,omitempty"` - - AngerProbability float64 `json:"angerProbability,omitempty"` - - // Attribute: Attributes for the detected face. Information returned or - // stored in this message may be sensitive from a privacy, policy, or - // legal point of view. Clients should consult with their p-counsels and - // the privacy working group (go/pwg) to make sure their use respects - // Google policies. - Attribute []*HumanSensingFaceAttribute `json:"attribute,omitempty"` - - BeardProbability float64 `json:"beardProbability,omitempty"` - - BlurredProbability float64 `json:"blurredProbability,omitempty"` - - // BoundingBox: Bounding box around the face. The coordinates of the - // bounding box are in the original image's scale as returned in - // ImageParams. The bounding box is computed to "frame" the face as a - // human would expect, and is typically used in UI (e.g. G+ to show - // circles around detected faces). It is based on the landmarker - // results. - BoundingBox *PhotosVisionServiceFaceFaceParamsBoundingBox `json:"boundingBox,omitempty"` - - DarkGlassesProbability float64 `json:"darkGlassesProbability,omitempty"` - - // DetectionConfidence: Confidence is in the range [0,1]. - DetectionConfidence float64 `json:"detectionConfidence,omitempty"` - - ExtendedLandmarks []*PhotosVisionServiceFaceFaceParamsExtendedLandmark `json:"extendedLandmarks,omitempty"` - - EyesClosedProbability float64 `json:"eyesClosedProbability,omitempty"` - - // Face2cartoonResults: Attributes of the detected face useful for - // generating a cartoon version of the face. - Face2cartoonResults *ResearchVisionFace2cartoonFace2CartoonResults `json:"face2cartoonResults,omitempty"` - - FaceCropV8 *PhotosVisionServiceFaceFaceParamsFaceCropV8 `json:"faceCropV8,omitempty"` - - // FdBoundingBox: This other bounding box is tighter than the previous - // one, and encloses only the skin part of the face. It is typically - // used to eliminate the face from any image analysis that looks up the - // "amount of skin" visible in an image (e.g. safesearch content score). - // It is not based on the landmarker results, just on the initial face - // detection, hence the 'fd' prefix. - FdBoundingBox *PhotosVisionServiceFaceFaceParamsBoundingBox `json:"fdBoundingBox,omitempty"` - - // FemaleProbability: Probability is in the range [0,1]. - FemaleProbability float64 `json:"femaleProbability,omitempty"` - - FrontalGazeProbability float64 `json:"frontalGazeProbability,omitempty"` - - GlassesProbability float64 `json:"glassesProbability,omitempty"` - - HeadwearProbability float64 `json:"headwearProbability,omitempty"` - - // ImageParams: A copy of the 'image_params' field that is also returned - // as part of the ExtractFacesReply. It contains the with and height of - // the image the face extraction was performed on and provides the - // original frame of reference for the bounding boxes above. - ImageParams *PhotosVisionServiceFaceImageParams `json:"imageParams,omitempty"` - - JoyProbability float64 `json:"joyProbability,omitempty"` - - LandmarkPositions []*PhotosVisionServiceFaceFaceParamsLandmarkPosition `json:"landmarkPositions,omitempty"` - - LandmarkingConfidence float64 `json:"landmarkingConfidence,omitempty"` - - LeftEyeClosedProbability float64 `json:"leftEyeClosedProbability,omitempty"` - - LongHairProbability float64 `json:"longHairProbability,omitempty"` - - MouthOpenProbability float64 `json:"mouthOpenProbability,omitempty"` - - NonHumanProbability float64 `json:"nonHumanProbability,omitempty"` - - // PanAngle: Yaw angle. Indicates how much leftward/rightward the face - // is pointing relative to the vertical plane perpendicular to the - // image. Range [-180,180]. - PanAngle float64 `json:"panAngle,omitempty"` - - PoseMatrix *PhotosVisionServiceFaceFaceParamsPoseMatrix `json:"poseMatrix,omitempty"` - - Pretemplate string `json:"pretemplate,omitempty"` - - // QualityScore: A score produced by the Face Quality Scoring Module - // that indicates overall quality of the face and its relative - // suitability for using it in conjunction with face recognition for - // instance. As such, the score predicts the likelihood to recognize a - // given face correctly. A face recognition client could use the score - // and a threshold to determine whether to use the face in a face model, - // or whether to even consider it for recognition. - QualityScore float64 `json:"qualityScore,omitempty"` - - RightEyeClosedProbability float64 `json:"rightEyeClosedProbability,omitempty"` - - // RollAngle: Roll angle indicates how much clockwise/anti-clockwise the - // face is rotated relative to the image vertical and about the axis - // perpendicular to the face. Range [-180,180]. - RollAngle float64 `json:"rollAngle,omitempty"` - - // Signature: Deprecated: signature will continue to be used for the - // pre-1.7 SDK template format typically created by the converter module - // CNVprec_461. All newer templates created with CNVprec_465 or later - // will use the repeated 'versioned_signatures' field to store the - // templates and version info. - Signature string `json:"signature,omitempty"` - - SkinBrightnessProbability float64 `json:"skinBrightnessProbability,omitempty"` - - SorrowProbability float64 `json:"sorrowProbability,omitempty"` - - SurpriseProbability float64 `json:"surpriseProbability,omitempty"` - - // TiltAngle: Pitch angle. Indicates how much upwards/downwards the face - // is pointing relative to the image's horizontal plane. Range - // [-180,180]. - TiltAngle float64 `json:"tiltAngle,omitempty"` - - UnderExposedProbability float64 `json:"underExposedProbability,omitempty"` - - VersionedSignatures []*PhotosVisionServiceFaceVersionedFaceSignature `json:"versionedSignatures,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Age") 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. "Age") 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 *PhotosVisionServiceFaceFaceParams) MarshalJSON() ([]byte, error) { - type NoMethod PhotosVisionServiceFaceFaceParams - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -func (s *PhotosVisionServiceFaceFaceParams) UnmarshalJSON(data []byte) error { - type NoMethod PhotosVisionServiceFaceFaceParams - var s1 struct { - Age gensupport.JSONFloat64 `json:"age"` - AngerProbability gensupport.JSONFloat64 `json:"angerProbability"` - BeardProbability gensupport.JSONFloat64 `json:"beardProbability"` - BlurredProbability gensupport.JSONFloat64 `json:"blurredProbability"` - DarkGlassesProbability gensupport.JSONFloat64 `json:"darkGlassesProbability"` - DetectionConfidence gensupport.JSONFloat64 `json:"detectionConfidence"` - EyesClosedProbability gensupport.JSONFloat64 `json:"eyesClosedProbability"` - FemaleProbability gensupport.JSONFloat64 `json:"femaleProbability"` - FrontalGazeProbability gensupport.JSONFloat64 `json:"frontalGazeProbability"` - GlassesProbability gensupport.JSONFloat64 `json:"glassesProbability"` - HeadwearProbability gensupport.JSONFloat64 `json:"headwearProbability"` - JoyProbability gensupport.JSONFloat64 `json:"joyProbability"` - LandmarkingConfidence gensupport.JSONFloat64 `json:"landmarkingConfidence"` - LeftEyeClosedProbability gensupport.JSONFloat64 `json:"leftEyeClosedProbability"` - LongHairProbability gensupport.JSONFloat64 `json:"longHairProbability"` - MouthOpenProbability gensupport.JSONFloat64 `json:"mouthOpenProbability"` - NonHumanProbability gensupport.JSONFloat64 `json:"nonHumanProbability"` - PanAngle gensupport.JSONFloat64 `json:"panAngle"` - QualityScore gensupport.JSONFloat64 `json:"qualityScore"` - RightEyeClosedProbability gensupport.JSONFloat64 `json:"rightEyeClosedProbability"` - RollAngle gensupport.JSONFloat64 `json:"rollAngle"` - SkinBrightnessProbability gensupport.JSONFloat64 `json:"skinBrightnessProbability"` - SorrowProbability gensupport.JSONFloat64 `json:"sorrowProbability"` - SurpriseProbability gensupport.JSONFloat64 `json:"surpriseProbability"` - TiltAngle gensupport.JSONFloat64 `json:"tiltAngle"` - UnderExposedProbability gensupport.JSONFloat64 `json:"underExposedProbability"` - *NoMethod - } - s1.NoMethod = (*NoMethod)(s) - if err := json.Unmarshal(data, &s1); err != nil { - return err - } - s.Age = float64(s1.Age) - s.AngerProbability = float64(s1.AngerProbability) - s.BeardProbability = float64(s1.BeardProbability) - s.BlurredProbability = float64(s1.BlurredProbability) - s.DarkGlassesProbability = float64(s1.DarkGlassesProbability) - s.DetectionConfidence = float64(s1.DetectionConfidence) - s.EyesClosedProbability = float64(s1.EyesClosedProbability) - s.FemaleProbability = float64(s1.FemaleProbability) - s.FrontalGazeProbability = float64(s1.FrontalGazeProbability) - s.GlassesProbability = float64(s1.GlassesProbability) - s.HeadwearProbability = float64(s1.HeadwearProbability) - s.JoyProbability = float64(s1.JoyProbability) - s.LandmarkingConfidence = float64(s1.LandmarkingConfidence) - s.LeftEyeClosedProbability = float64(s1.LeftEyeClosedProbability) - s.LongHairProbability = float64(s1.LongHairProbability) - s.MouthOpenProbability = float64(s1.MouthOpenProbability) - s.NonHumanProbability = float64(s1.NonHumanProbability) - s.PanAngle = float64(s1.PanAngle) - s.QualityScore = float64(s1.QualityScore) - s.RightEyeClosedProbability = float64(s1.RightEyeClosedProbability) - s.RollAngle = float64(s1.RollAngle) - s.SkinBrightnessProbability = float64(s1.SkinBrightnessProbability) - s.SorrowProbability = float64(s1.SorrowProbability) - s.SurpriseProbability = float64(s1.SurpriseProbability) - s.TiltAngle = float64(s1.TiltAngle) - s.UnderExposedProbability = float64(s1.UnderExposedProbability) - return nil -} - -type PhotosVisionServiceFaceFaceParamsBoundingBox struct { - // X1: These coordinates are in the same scale as the original image. 0 - // <= x < width, 0 <= y < height. - X1 int64 `json:"x1,omitempty"` - - X2 int64 `json:"x2,omitempty"` - - Y1 int64 `json:"y1,omitempty"` - - Y2 int64 `json:"y2,omitempty"` - - // ForceSendFields is a list of field names (e.g. "X1") 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. "X1") 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 *PhotosVisionServiceFaceFaceParamsBoundingBox) MarshalJSON() ([]byte, error) { - type NoMethod PhotosVisionServiceFaceFaceParamsBoundingBox - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// PhotosVisionServiceFaceFaceParamsExtendedLandmark: Below is the set -// of extended landmarks added by LMprec_508 and 510. All future -// additional landmarks should be added to this message. -type PhotosVisionServiceFaceFaceParamsExtendedLandmark struct { - // Possible values: - // "NOSE_BOTTOM_RIGHT" - // "NOSE_BOTTOM_LEFT" - // "NOSE_BOTTOM_CENTER" - The following landmark is available with - // LMprec_508 and later - // "LEFT_EYE_TOP_BOUNDARY" - The following landmarks are extracted by - // LMprec_510 and later. See also documentation at - // www/~jsteffens/no_crawl/doc/FaceDetection/LM510.pdf - // "LEFT_EYE_RIGHT_CORNER" - // "LEFT_EYE_BOTTOM_BOUNDARY" - // "LEFT_EYE_LEFT_CORNER" - // "RIGHT_EYE_TOP_BOUNDARY" - // "RIGHT_EYE_RIGHT_CORNER" - // "RIGHT_EYE_BOTTOM_BOUNDARY" - // "RIGHT_EYE_LEFT_CORNER" - // "LEFT_EYEBROW_UPPER_MIDPOINT" - // "RIGHT_EYEBROW_UPPER_MIDPOINT" - // "LEFT_EAR_TRAGION" - // "RIGHT_EAR_TRAGION" - // "LEFT_EYE_PUPIL" - // "RIGHT_EYE_PUPIL" - // "FOREHEAD_GLABELLA" - // "CHIN_GNATHION" - // "CHIN_LEFT_GONION" - // "CHIN_RIGHT_GONION" - // "LEFT_CHEEK_CENTER" - The following landmarks are extracted by - // LMprec_600 and later. See go/facesdk. - // "RIGHT_CHEEK_CENTER" - // "UNKNOWN_LANDMARK" - Reserved id for an unknown landmark. This - // matches the id reserved by the core SDK for an external UNKNOWN - // landmark. - Id string `json:"id,omitempty"` - - // X: NOTE that landmark positions may fall outside the bounds of the - // image when the face is near one or more edges of the image. That is, - // it is NOT guaranteed that 0 <= x < width or 0 <= y < height. Rounded - // version of x_f. - X int64 `json:"x,omitempty"` - - XF float64 `json:"xF,omitempty"` - - // Y: Rounded version of y_f. - Y int64 `json:"y,omitempty"` - - YF float64 `json:"yF,omitempty"` - - Z float64 `json:"z,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 *PhotosVisionServiceFaceFaceParamsExtendedLandmark) MarshalJSON() ([]byte, error) { - type NoMethod PhotosVisionServiceFaceFaceParamsExtendedLandmark - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -func (s *PhotosVisionServiceFaceFaceParamsExtendedLandmark) UnmarshalJSON(data []byte) error { - type NoMethod PhotosVisionServiceFaceFaceParamsExtendedLandmark - var s1 struct { - XF gensupport.JSONFloat64 `json:"xF"` - YF gensupport.JSONFloat64 `json:"yF"` - Z gensupport.JSONFloat64 `json:"z"` - *NoMethod - } - s1.NoMethod = (*NoMethod)(s) - if err := json.Unmarshal(data, &s1); err != nil { - return err - } - s.XF = float64(s1.XF) - s.YF = float64(s1.YF) - s.Z = float64(s1.Z) - return nil -} - -// PhotosVisionServiceFaceFaceParamsFaceCropV8: Information defining a -// FaceCrop for a particular face. See -// go/on-device-face-grouping-face-crops for more details. -type PhotosVisionServiceFaceFaceParamsFaceCropV8 struct { - // CenterX: The X coordinate of the center of the face crop. - CenterX float64 `json:"centerX,omitempty"` - - // CenterY: The Y coordinate of the center of the face crop. - CenterY float64 `json:"centerY,omitempty"` - - // Rotation: Rotation of the face crop, in radians. - Rotation float64 `json:"rotation,omitempty"` - - // Scale: Scale to apply to the coordinates of the face crop. - Scale float64 `json:"scale,omitempty"` - - // ForceSendFields is a list of field names (e.g. "CenterX") 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. "CenterX") 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 *PhotosVisionServiceFaceFaceParamsFaceCropV8) MarshalJSON() ([]byte, error) { - type NoMethod PhotosVisionServiceFaceFaceParamsFaceCropV8 - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -func (s *PhotosVisionServiceFaceFaceParamsFaceCropV8) UnmarshalJSON(data []byte) error { - type NoMethod PhotosVisionServiceFaceFaceParamsFaceCropV8 - var s1 struct { - CenterX gensupport.JSONFloat64 `json:"centerX"` - CenterY gensupport.JSONFloat64 `json:"centerY"` - Rotation gensupport.JSONFloat64 `json:"rotation"` - Scale gensupport.JSONFloat64 `json:"scale"` - *NoMethod - } - s1.NoMethod = (*NoMethod)(s) - if err := json.Unmarshal(data, &s1); err != nil { - return err - } - s.CenterX = float64(s1.CenterX) - s.CenterY = float64(s1.CenterY) - s.Rotation = float64(s1.Rotation) - s.Scale = float64(s1.Scale) - return nil -} - -type PhotosVisionServiceFaceFaceParamsLandmarkPosition struct { - // Landmark: Some landmarks are set during face finding and some are set - // during landmark finding. Only after landmarking will all landmarks be - // set. - // - // Possible values: - // "LEFT_EYE" - Left and right are as viewed in the image without - // considering mirror projection typical in photos. So LEFT_EYE is - // typically the person's right eye. For convenience and consistency the - // enum values mirror the corresponding values defined by the Neven - // Vision SDK. See landmark table at: - // wiki/twiki/bin/view/Main/FRSDKLandmarkPositions The following - // landmarks are extracted by LMprec_502 and later - // "RIGHT_EYE" - // "LEFT_OF_LEFT_EYEBROW" - // "RIGHT_OF_LEFT_EYEBROW" - // "LEFT_OF_RIGHT_EYEBROW" - // "RIGHT_OF_RIGHT_EYEBROW" - // "MIDPOINT_BETWEEN_EYES" - // "NOSE_TIP" - // "UPPER_LIP" - // "LOWER_LIP" - // "MOUTH_LEFT" - // "MOUTH_RIGHT" - // "MOUTH_CENTER" - // "DEPRECATED_NOSE_BOTTOM_RIGHT" - All values below are deprecated. - // Please use ExtendedLandmark to use them. - // "DEPRECATED_NOSE_BOTTOM_LEFT" - // "DEPRECATED_NOSE_BOTTOM_CENTER" - // "DEPRECATED_LEFT_EYE_TOP_BOUNDARY" - // "DEPRECATED_LEFT_EYE_RIGHT_CORNER" - // "DEPRECATED_LEFT_EYE_BOTTOM_BOUNDARY" - // "DEPRECATED_LEFT_EYE_LEFT_CORNER" - // "DEPRECATED_RIGHT_EYE_TOP_BOUNDARY" - // "DEPRECATED_RIGHT_EYE_RIGHT_CORNER" - // "DEPRECATED_RIGHT_EYE_BOTTOM_BOUNDARY" - // "DEPRECATED_RIGHT_EYE_LEFT_CORNER" - // "DEPRECATED_LEFT_EYEBROW_UPPER_MIDPOINT" - // "DEPRECATED_RIGHT_EYEBROW_UPPER_MIDPOINT" - // "DEPRECATED_LEFT_EAR_TRAGION" - // "DEPRECATED_RIGHT_EAR_TRAGION" - // "DEPRECATED_FOREHEAD_GLABELLA" - // "DEPRECATED_CHIN_GNATHION" - // "DEPRECATED_CHIN_LEFT_GONION" - // "DEPRECATED_CHIN_RIGHT_GONION" - // "DEPRECATED_UNKNOWN_LANDMARK" - Landmark string `json:"landmark,omitempty"` - - // X: NOTE that landmark positions may fall outside the bounds of the - // image when the face is near one or more edges of the image. That is, - // it is NOT guaranteed that 0 <= x < width or 0 <= y < height. Rounded - // version of x_f. - X int64 `json:"x,omitempty"` - - XF float64 `json:"xF,omitempty"` - - // Y: Rounded version of y_f. - Y int64 `json:"y,omitempty"` - - YF float64 `json:"yF,omitempty"` - - Z float64 `json:"z,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Landmark") 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. "Landmark") 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 *PhotosVisionServiceFaceFaceParamsLandmarkPosition) MarshalJSON() ([]byte, error) { - type NoMethod PhotosVisionServiceFaceFaceParamsLandmarkPosition - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -func (s *PhotosVisionServiceFaceFaceParamsLandmarkPosition) UnmarshalJSON(data []byte) error { - type NoMethod PhotosVisionServiceFaceFaceParamsLandmarkPosition - var s1 struct { - XF gensupport.JSONFloat64 `json:"xF"` - YF gensupport.JSONFloat64 `json:"yF"` - Z gensupport.JSONFloat64 `json:"z"` - *NoMethod - } - s1.NoMethod = (*NoMethod)(s) - if err := json.Unmarshal(data, &s1); err != nil { - return err - } - s.XF = float64(s1.XF) - s.YF = float64(s1.YF) - s.Z = float64(s1.Z) - return nil -} - -// PhotosVisionServiceFaceFaceParamsPoseMatrix: Stores the full pose -// transformation matrix of the detected face. From this the roll, pan, -// tilt angles can be computed. -type PhotosVisionServiceFaceFaceParamsPoseMatrix struct { - Xx float64 `json:"xx,omitempty"` - - Xy float64 `json:"xy,omitempty"` - - Xz float64 `json:"xz,omitempty"` - - Yx float64 `json:"yx,omitempty"` - - Yy float64 `json:"yy,omitempty"` - - Yz float64 `json:"yz,omitempty"` - - Zx float64 `json:"zx,omitempty"` - - Zy float64 `json:"zy,omitempty"` - - Zz float64 `json:"zz,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Xx") 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. "Xx") 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 *PhotosVisionServiceFaceFaceParamsPoseMatrix) MarshalJSON() ([]byte, error) { - type NoMethod PhotosVisionServiceFaceFaceParamsPoseMatrix - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -func (s *PhotosVisionServiceFaceFaceParamsPoseMatrix) UnmarshalJSON(data []byte) error { - type NoMethod PhotosVisionServiceFaceFaceParamsPoseMatrix - var s1 struct { - Xx gensupport.JSONFloat64 `json:"xx"` - Xy gensupport.JSONFloat64 `json:"xy"` - Xz gensupport.JSONFloat64 `json:"xz"` - Yx gensupport.JSONFloat64 `json:"yx"` - Yy gensupport.JSONFloat64 `json:"yy"` - Yz gensupport.JSONFloat64 `json:"yz"` - Zx gensupport.JSONFloat64 `json:"zx"` - Zy gensupport.JSONFloat64 `json:"zy"` - Zz gensupport.JSONFloat64 `json:"zz"` - *NoMethod - } - s1.NoMethod = (*NoMethod)(s) - if err := json.Unmarshal(data, &s1); err != nil { - return err - } - s.Xx = float64(s1.Xx) - s.Xy = float64(s1.Xy) - s.Xz = float64(s1.Xz) - s.Yx = float64(s1.Yx) - s.Yy = float64(s1.Yy) - s.Yz = float64(s1.Yz) - s.Zx = float64(s1.Zx) - s.Zy = float64(s1.Zy) - s.Zz = float64(s1.Zz) - return nil -} - -// PhotosVisionServiceFaceImageParams: ImageParams are a collection of -// parameters of the image on which face detection was performed. -type PhotosVisionServiceFaceImageParams struct { - Height int64 `json:"height,omitempty"` - - Width int64 `json:"width,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Height") 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. "Height") 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 *PhotosVisionServiceFaceImageParams) MarshalJSON() ([]byte, error) { - type NoMethod PhotosVisionServiceFaceImageParams - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// PhotosVisionServiceFaceVersionedFaceSignature: From newer SDK -// versions onward (1.7+), each face template (signature) will also -// store a version # derived from the converter version that created the -// template. -type PhotosVisionServiceFaceVersionedFaceSignature struct { - // Confidence: Confidence score based on embedding uncertainty. This is - // populated if fetch_facenet_confidence has been set as true in - // FaceNetConfig, and FaceNet version satisfies one of the following: 1. - // FACENET_8. 2. FACENET_9 with confidence model enabled in - // FaceTemplatesConfig. If face_embedding_confidence module is - // requested, this will also be populated, and the signature will be - // empty. - Confidence float64 `json:"confidence,omitempty"` - - // ConfidenceVersion: The Confidence version that populated the - // confidence. - // - // Possible values: - // "EMBEDDING_CONFIDENCE_VERSION_UNSPECIFIED" - // "VERSION_1" - Corresponds to VSSV1DNormTfLiteClient. Regions - // without an embedding confidence version should be assumed to have - // this version. - // "VERSION_2" - Corresponds to AAV2DNorm. This is an animal-aware - // version with scores compatible with VERSION_1. - ConfidenceVersion string `json:"confidenceVersion,omitempty"` - - // ConverterVersion: The converter version that created this template. - // - // Possible values: - // "UNKNOWN" - // "PREC_461" - // "PREC_465" - // "PREC_470" - // "FACENET_7" - // "FACENET_8" - // "FACENET_CELEBRITY" - // "FACENET_9" - // "FACENET_9_TPU" - // "FACENET_MOBILE_V1_8BITS" - ConverterVersion string `json:"converterVersion,omitempty"` - - // Signature: The face template bytes. - Signature string `json:"signature,omitempty"` - - // SignatureSource: Specifies the source of the signature in cases where - // the bytes are from a lower level of the FaceNet architecture. This is - // useful in combination with the FaceNetClient when it returns multiple - // outputs and we need to keep track of their contents. For example, - // this could contain the string 'avgpool-0' while another instance can - // use the standard 'normalizing' string. - SignatureSource string `json:"signatureSource,omitempty"` - - // Version: The internal version of the template. This is a copy of the - // version stored within the template. - Version int64 `json:"version,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Confidence") 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. "Confidence") 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 *PhotosVisionServiceFaceVersionedFaceSignature) MarshalJSON() ([]byte, error) { - type NoMethod PhotosVisionServiceFaceVersionedFaceSignature - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -func (s *PhotosVisionServiceFaceVersionedFaceSignature) UnmarshalJSON(data []byte) error { - type NoMethod PhotosVisionServiceFaceVersionedFaceSignature - var s1 struct { - Confidence gensupport.JSONFloat64 `json:"confidence"` - *NoMethod - } - s1.NoMethod = (*NoMethod)(s) - if err := json.Unmarshal(data, &s1); err != nil { - return err - } - s.Confidence = float64(s1.Confidence) - return nil -} - // PornFlagData: A protocol buffer to store the url, referer and porn // flag for a url. and an optional image score. Next available tag id: // 51. @@ -115080,7 +114247,7 @@ func (s *QualityNavboostCrapsCrapsClickSignals) UnmarshalJSON(data []byte) error return nil } -// QualityNavboostCrapsCrapsData: NEXT TAG: 27 +// QualityNavboostCrapsCrapsData: NEXT TAG: 28 type QualityNavboostCrapsCrapsData struct { // AgingCounts: Contains counter for Aging signal (go/freshness-aging). // It's used internally by Craps/Aging pipeline. @@ -115167,6 +114334,11 @@ type QualityNavboostCrapsCrapsData struct { Url string `json:"url,omitempty"` + // VoterTokenCount: The number of distinct voter tokens (a lower bound + // on the number of distinct users that contributed to the entry, used + // for privacy-related filtering). + VoterTokenCount int64 `json:"voterTokenCount,omitempty"` + // ForceSendFields is a list of field names (e.g. "AgingCounts") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -115281,6 +114453,12 @@ type QualityNavboostCrapsFeatureCrapsData struct { // Signals: CRAPS Signals for the locale. Signals *QualityNavboostCrapsCrapsClickSignals `json:"signals,omitempty"` + // VoterTokenBitmap: The set of voter tokens of the sessions that + // contributed to this feature's stats. Voter tokens are not unique per + // user, so it is a lower bound on the number of distinct users. Used + // for privacy-related filtering. + VoterTokenBitmap *QualityNavboostGlueVoterTokenBitmapMessage `json:"voterTokenBitmap,omitempty"` + // ForceSendFields is a list of field names (e.g. "Country") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -115396,6 +114574,42 @@ func (s *QualityNavboostCrapsStatsWithWeightsProto) UnmarshalJSON(data []byte) e return nil } +// QualityNavboostGlueVoterTokenBitmapMessage: Used for aggregating +// query unique voter_token during merging. We use 4 uint64(s) as a +// 256-bit bitmap to aggregate distinct voter_tokens in Glue model +// pipeline. Number of elements should always be either 0 or 4. As an +// optimization, we store the voter_token as a single uint64 if only one +// bit is set. See +// quality/navboost/speedy_glue/util/voter_token_bitmap.h for the class +// that manages operations on these bitmaps. +type QualityNavboostGlueVoterTokenBitmapMessage struct { + SubRange googleapi.Uint64s `json:"subRange,omitempty"` + + VoterToken uint64 `json:"voterToken,omitempty,string"` + + // ForceSendFields is a list of field names (e.g. "SubRange") 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. "SubRange") 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 *QualityNavboostGlueVoterTokenBitmapMessage) MarshalJSON() ([]byte, error) { + type NoMethod QualityNavboostGlueVoterTokenBitmapMessage + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // QualityNsrExperimentalNsrTeamData: Experimental NsrTeam data. This is // a proto containing versioned signals which can be used to run live // experiments. This proto will not be propagated to MDU shards, but it @@ -115654,7 +114868,7 @@ func (s *QualityNsrNsrChunksWithSourceInfo) MarshalJSON() ([]byte, error) { } // QualityNsrNsrData: NOTE: When adding a new field to be propagated to -// Raffia check if NsrPatternSignalSpec needs to be updated. Next ID: 54 +// Raffia check if NsrPatternSignalSpec needs to be updated. Next ID: 55 type QualityNsrNsrData struct { // ArticleScore: Score from article classification of the site. ArticleScore float64 `json:"articleScore,omitempty"` @@ -115801,6 +115015,10 @@ type QualityNsrNsrData struct { // site-level rating. SiteQualityStddev float64 `json:"siteQualityStddev,omitempty"` + // SmallPersonalSite: Score of small personal site promotion + // go/promoting-personal-blogs-v1 + SmallPersonalSite float64 `json:"smallPersonalSite,omitempty"` + // SpambrainLavcScore: The SpamBrain LAVC score, as of July 2022. See // more information at go/cloverfield-lavc-deck. SpambrainLavcScore float64 `json:"spambrainLavcScore,omitempty"` @@ -115875,6 +115093,7 @@ func (s *QualityNsrNsrData) UnmarshalJSON(data []byte) error { SiteLinkOut gensupport.JSONFloat64 `json:"siteLinkOut"` SitePr gensupport.JSONFloat64 `json:"sitePr"` SiteQualityStddev gensupport.JSONFloat64 `json:"siteQualityStddev"` + SmallPersonalSite gensupport.JSONFloat64 `json:"smallPersonalSite"` SpambrainLavcScore gensupport.JSONFloat64 `json:"spambrainLavcScore"` Tofu gensupport.JSONFloat64 `json:"tofu"` UgcScore gensupport.JSONFloat64 `json:"ugcScore"` @@ -115909,6 +115128,7 @@ func (s *QualityNsrNsrData) UnmarshalJSON(data []byte) error { s.SiteLinkOut = float64(s1.SiteLinkOut) s.SitePr = float64(s1.SitePr) s.SiteQualityStddev = float64(s1.SiteQualityStddev) + s.SmallPersonalSite = float64(s1.SmallPersonalSite) s.SpambrainLavcScore = float64(s1.SpambrainLavcScore) s.Tofu = float64(s1.Tofu) s.UgcScore = float64(s1.UgcScore) @@ -118297,6 +117517,9 @@ type QualityQrewriteAlternativeNameInfo struct { // "NEURAL_CONTACT_MATCH_DARK_LAUNCH" - The dark launch for a neural // match. We found a match, but we ignore it for serving and just log // it. + // "PERSONALIZED_NAME_CORRECTION_LOG" - Personalized alternate name + // from Assistant User Profile that stores personalized contact name + // corrections under ContactAlternates profile. Source string `json:"source,omitempty"` // ForceSendFields is a list of field names (e.g. "MatchSignal") to @@ -118582,6 +117805,9 @@ type QualityQrewritePersonalContactData struct { // "NEURAL_CONTACT_MATCH_DARK_LAUNCH" - The dark launch for a neural // match. We found a match, but we ignore it for serving and just log // it. + // "PERSONALIZED_NAME_CORRECTION_LOG" - Personalized alternate name + // from Assistant User Profile that stores personalized contact name + // corrections under ContactAlternates profile. RecognitionAlternateSource string `json:"recognitionAlternateSource,omitempty"` // RelationshipLexicalInfo: Lexical information for relationships in @@ -120174,9 +119400,6 @@ type QualityShoppingShoppingAttachmentProduct struct { ProductClusterMid uint64 `json:"productClusterMid,omitempty,string"` - // ProductPopularity: Organic product popularity. - ProductPopularity float64 `json:"productPopularity,omitempty"` - // RelevanceEmbedding: Relevance embedding from // ShoppingAnnotation.Product RelevanceEmbedding []*QualityRankembedMustangMustangRankEmbedInfo `json:"relevanceEmbedding,omitempty"` @@ -120209,20 +119432,6 @@ func (s *QualityShoppingShoppingAttachmentProduct) MarshalJSON() ([]byte, error) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -func (s *QualityShoppingShoppingAttachmentProduct) UnmarshalJSON(data []byte) error { - type NoMethod QualityShoppingShoppingAttachmentProduct - var s1 struct { - ProductPopularity gensupport.JSONFloat64 `json:"productPopularity"` - *NoMethod - } - s1.NoMethod = (*NoMethod)(s) - if err := json.Unmarshal(data, &s1); err != nil { - return err - } - s.ProductPopularity = float64(s1.ProductPopularity) - return nil -} - // QualitySitemapBreadcrumbTarget: Sitelink candidates that is generated // from breadcrumbs. type QualitySitemapBreadcrumbTarget struct { @@ -122030,34 +121239,6 @@ func (s *RegistrationInfo) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// ReneFaceResponse: The output of the face recognition signal. -type ReneFaceResponse struct { - // Faces: Recognized faces in the image. - Faces []*PhotosVisionServiceFaceFaceParams `json:"faces,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Faces") 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. "Faces") 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 *ReneFaceResponse) MarshalJSON() ([]byte, error) { - type NoMethod ReneFaceResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // RepositoryAnnotationsGeoTopic: GeoTopicality of a document is a set // of GeoTopics ordered by their normalized scores. type RepositoryAnnotationsGeoTopic struct { @@ -127243,20 +126424,6 @@ type RepositoryWebrefMention struct { // deprecated for URL segment types. SubsegmentIndex *RepositoryWebrefSubSegmentIndex `json:"subsegmentIndex,omitempty"` - // TimeOffsetConfidence: Confidence for the time_offset_ms annotation, - // quantized to values in range 0-127 (see - // speech::VideoASRServerUtil::ConfidenceQuantize for how the - // quantization was done). Confidence can be empty for special - // characters (e.g. spaces). - TimeOffsetConfidence int64 `json:"timeOffsetConfidence,omitempty"` - - // TimeOffsetMs: Timestamp that this mention appeared in the video. The - // field is only populated for VIDEO_TRANSCRIPT when the byte offset is - // the same. It is extracted from - // cdoc.doc_videos.content_based_metadata.transcript_asr.transcript.times - // tamp. - TimeOffsetMs int64 `json:"timeOffsetMs,omitempty"` - // TrustedNameConfidence: Confidence that this name is a trusted name of // the entity. This is set only in case the confidence is higher than an // internal threshold (see ConceptProbability). @@ -129760,8 +128927,6 @@ type RepositoryWebrefSimplifiedCompositeDoc struct { WebrefOutlinkInfos *RepositoryWebrefWebrefOutlinkInfos `json:"webrefOutlinkInfos,omitempty"` - WebrefOutlinksLegacy *Proto2BridgeMessageSet `json:"webrefOutlinksLegacy,omitempty"` - // ForceSendFields is a list of field names (e.g. "Anchors") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -131037,9 +130202,6 @@ type RepositoryWebrefWebrefDocumentInfo struct { // Extensions: Optional extensions (e.g. taxonomic classifications). Extensions *Proto2BridgeMessageSet `json:"extensions,omitempty"` - // OutlinkInfos: Information about the outlinks of this document. - OutlinkInfos *RepositoryWebrefWebrefOutlinkInfos `json:"outlinkInfos,omitempty"` - // WebrefParsedContentSentence: The content (CONTENT section 0) as // parsed by WebrefParser. Only used by // //r/w/postprocessing/idf/idf-pipeline for document ngram idf @@ -134123,1347 +133285,6 @@ func (s *ResearchScienceSearchVersionClusterInfo) MarshalJSON() ([]byte, error) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -type ResearchVisionFace2cartoonAgeClassifierResults struct { - // Possible values: - // "UNKNOWN" - // "BABY" - // "KID" - // "ADULT" - // "OLD" - Age string `json:"age,omitempty"` - - PredictedAge float64 `json:"predictedAge,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Age") 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. "Age") 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 *ResearchVisionFace2cartoonAgeClassifierResults) MarshalJSON() ([]byte, error) { - type NoMethod ResearchVisionFace2cartoonAgeClassifierResults - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -func (s *ResearchVisionFace2cartoonAgeClassifierResults) UnmarshalJSON(data []byte) error { - type NoMethod ResearchVisionFace2cartoonAgeClassifierResults - var s1 struct { - PredictedAge gensupport.JSONFloat64 `json:"predictedAge"` - *NoMethod - } - s1.NoMethod = (*NoMethod)(s) - if err := json.Unmarshal(data, &s1); err != nil { - return err - } - s.PredictedAge = float64(s1.PredictedAge) - return nil -} - -type ResearchVisionFace2cartoonChinLengthClassifierResults struct { - // Possible values: - // "UNKNOWN" - // "SHORT" - // "AVERAGE" - // "LONG" - ChinLength string `json:"chinLength,omitempty"` - - Confidence float64 `json:"confidence,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ChinLength") 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. "ChinLength") 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 *ResearchVisionFace2cartoonChinLengthClassifierResults) MarshalJSON() ([]byte, error) { - type NoMethod ResearchVisionFace2cartoonChinLengthClassifierResults - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -func (s *ResearchVisionFace2cartoonChinLengthClassifierResults) UnmarshalJSON(data []byte) error { - type NoMethod ResearchVisionFace2cartoonChinLengthClassifierResults - var s1 struct { - Confidence gensupport.JSONFloat64 `json:"confidence"` - *NoMethod - } - s1.NoMethod = (*NoMethod)(s) - if err := json.Unmarshal(data, &s1); err != nil { - return err - } - s.Confidence = float64(s1.Confidence) - return nil -} - -type ResearchVisionFace2cartoonEyeColorClassifierResults struct { - // Possible values: - // "UNKNOWN" - // "BROWN_OR_BLACK" - // "BLUE_OR_GREEN" - Color string `json:"color,omitempty"` - - Confidence float64 `json:"confidence,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Color") 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. "Color") 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 *ResearchVisionFace2cartoonEyeColorClassifierResults) MarshalJSON() ([]byte, error) { - type NoMethod ResearchVisionFace2cartoonEyeColorClassifierResults - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -func (s *ResearchVisionFace2cartoonEyeColorClassifierResults) UnmarshalJSON(data []byte) error { - type NoMethod ResearchVisionFace2cartoonEyeColorClassifierResults - var s1 struct { - Confidence gensupport.JSONFloat64 `json:"confidence"` - *NoMethod - } - s1.NoMethod = (*NoMethod)(s) - if err := json.Unmarshal(data, &s1); err != nil { - return err - } - s.Confidence = float64(s1.Confidence) - return nil -} - -// ResearchVisionFace2cartoonEyeEyebrowDistanceClassifierResults: The -// measurement underlying this assumes fixed ear positions, so applying -// this combined with the FaceWidthClassifierResults may have an -// unintended outcome. -type ResearchVisionFace2cartoonEyeEyebrowDistanceClassifierResults struct { - Confidence float64 `json:"confidence,omitempty"` - - // Possible values: - // "UNKNOWN" - // "SMALL" - // "AVERAGE" - // "LARGE" - EyeEyebrowDistance string `json:"eyeEyebrowDistance,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Confidence") 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. "Confidence") 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 *ResearchVisionFace2cartoonEyeEyebrowDistanceClassifierResults) MarshalJSON() ([]byte, error) { - type NoMethod ResearchVisionFace2cartoonEyeEyebrowDistanceClassifierResults - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -func (s *ResearchVisionFace2cartoonEyeEyebrowDistanceClassifierResults) UnmarshalJSON(data []byte) error { - type NoMethod ResearchVisionFace2cartoonEyeEyebrowDistanceClassifierResults - var s1 struct { - Confidence gensupport.JSONFloat64 `json:"confidence"` - *NoMethod - } - s1.NoMethod = (*NoMethod)(s) - if err := json.Unmarshal(data, &s1); err != nil { - return err - } - s.Confidence = float64(s1.Confidence) - return nil -} - -type ResearchVisionFace2cartoonEyeShapeClassifierResults struct { - Confidence float64 `json:"confidence,omitempty"` - - // Possible values: - // "UNKNOWN" - // "DOUBLE_FOLD_EYELID" - // "SINGLE_FOLD_EYELID" - Shape string `json:"shape,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Confidence") 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. "Confidence") 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 *ResearchVisionFace2cartoonEyeShapeClassifierResults) MarshalJSON() ([]byte, error) { - type NoMethod ResearchVisionFace2cartoonEyeShapeClassifierResults - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -func (s *ResearchVisionFace2cartoonEyeShapeClassifierResults) UnmarshalJSON(data []byte) error { - type NoMethod ResearchVisionFace2cartoonEyeShapeClassifierResults - var s1 struct { - Confidence gensupport.JSONFloat64 `json:"confidence"` - *NoMethod - } - s1.NoMethod = (*NoMethod)(s) - if err := json.Unmarshal(data, &s1); err != nil { - return err - } - s.Confidence = float64(s1.Confidence) - return nil -} - -type ResearchVisionFace2cartoonEyeSlantClassifierResults struct { - Confidence float64 `json:"confidence,omitempty"` - - // Possible values: - // "UNKNOWN" - // "OUTWARDS" - // "AVERAGE" - // "INWARDS" - EyeSlant string `json:"eyeSlant,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Confidence") 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. "Confidence") 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 *ResearchVisionFace2cartoonEyeSlantClassifierResults) MarshalJSON() ([]byte, error) { - type NoMethod ResearchVisionFace2cartoonEyeSlantClassifierResults - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -func (s *ResearchVisionFace2cartoonEyeSlantClassifierResults) UnmarshalJSON(data []byte) error { - type NoMethod ResearchVisionFace2cartoonEyeSlantClassifierResults - var s1 struct { - Confidence gensupport.JSONFloat64 `json:"confidence"` - *NoMethod - } - s1.NoMethod = (*NoMethod)(s) - if err := json.Unmarshal(data, &s1); err != nil { - return err - } - s.Confidence = float64(s1.Confidence) - return nil -} - -// ResearchVisionFace2cartoonEyeVerticalPositionClassifierResults: The -// measurement underlying this assumes fixed ear positions, so applying -// this combined with the FaceWidthClassifierResults may have an -// unintended outcome. -type ResearchVisionFace2cartoonEyeVerticalPositionClassifierResults struct { - Confidence float64 `json:"confidence,omitempty"` - - // Possible values: - // "UNKNOWN" - // "HIGH" - // "AVERAGE" - // "LOW" - EyeVerticalPosition string `json:"eyeVerticalPosition,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Confidence") 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. "Confidence") 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 *ResearchVisionFace2cartoonEyeVerticalPositionClassifierResults) MarshalJSON() ([]byte, error) { - type NoMethod ResearchVisionFace2cartoonEyeVerticalPositionClassifierResults - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -func (s *ResearchVisionFace2cartoonEyeVerticalPositionClassifierResults) UnmarshalJSON(data []byte) error { - type NoMethod ResearchVisionFace2cartoonEyeVerticalPositionClassifierResults - var s1 struct { - Confidence gensupport.JSONFloat64 `json:"confidence"` - *NoMethod - } - s1.NoMethod = (*NoMethod)(s) - if err := json.Unmarshal(data, &s1); err != nil { - return err - } - s.Confidence = float64(s1.Confidence) - return nil -} - -type ResearchVisionFace2cartoonEyebrowShapeClassifierResults struct { - Confidence float64 `json:"confidence,omitempty"` - - // Possible values: - // "UNKNOWN" - // "ST_BREAK" - // "ST_BEND" - // "HIGH_DIAGONAL" - // "TILT" - // "ROUND" - // "ANGULAR" - // "HIGH_CURVY" - // "ROUND_UNEVEN" - // "BUSHY_ST" - // "UNI" - EyebrowShape string `json:"eyebrowShape,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Confidence") 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. "Confidence") 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 *ResearchVisionFace2cartoonEyebrowShapeClassifierResults) MarshalJSON() ([]byte, error) { - type NoMethod ResearchVisionFace2cartoonEyebrowShapeClassifierResults - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -func (s *ResearchVisionFace2cartoonEyebrowShapeClassifierResults) UnmarshalJSON(data []byte) error { - type NoMethod ResearchVisionFace2cartoonEyebrowShapeClassifierResults - var s1 struct { - Confidence gensupport.JSONFloat64 `json:"confidence"` - *NoMethod - } - s1.NoMethod = (*NoMethod)(s) - if err := json.Unmarshal(data, &s1); err != nil { - return err - } - s.Confidence = float64(s1.Confidence) - return nil -} - -type ResearchVisionFace2cartoonEyebrowThicknessClassifierResults struct { - Confidence float64 `json:"confidence,omitempty"` - - // Possible values: - // "UNKNOWN" - // "THIN" - // "NORMAL" - // "THICK" - // "VERY_THICK" - EyebrowThickness string `json:"eyebrowThickness,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Confidence") 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. "Confidence") 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 *ResearchVisionFace2cartoonEyebrowThicknessClassifierResults) MarshalJSON() ([]byte, error) { - type NoMethod ResearchVisionFace2cartoonEyebrowThicknessClassifierResults - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -func (s *ResearchVisionFace2cartoonEyebrowThicknessClassifierResults) UnmarshalJSON(data []byte) error { - type NoMethod ResearchVisionFace2cartoonEyebrowThicknessClassifierResults - var s1 struct { - Confidence gensupport.JSONFloat64 `json:"confidence"` - *NoMethod - } - s1.NoMethod = (*NoMethod)(s) - if err := json.Unmarshal(data, &s1); err != nil { - return err - } - s.Confidence = float64(s1.Confidence) - return nil -} - -// ResearchVisionFace2cartoonEyebrowWidthClassifierResults: The -// measurement underlying this assumes fixed ear positions, so applying -// this combined with the FaceWidthClassifierResults may have an -// unintended outcome. -type ResearchVisionFace2cartoonEyebrowWidthClassifierResults struct { - Confidence float64 `json:"confidence,omitempty"` - - // Possible values: - // "UNKNOWN" - // "NARROW" - // "AVERAGE" - // "WIDE" - EyebrowWidth string `json:"eyebrowWidth,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Confidence") 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. "Confidence") 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 *ResearchVisionFace2cartoonEyebrowWidthClassifierResults) MarshalJSON() ([]byte, error) { - type NoMethod ResearchVisionFace2cartoonEyebrowWidthClassifierResults - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -func (s *ResearchVisionFace2cartoonEyebrowWidthClassifierResults) UnmarshalJSON(data []byte) error { - type NoMethod ResearchVisionFace2cartoonEyebrowWidthClassifierResults - var s1 struct { - Confidence gensupport.JSONFloat64 `json:"confidence"` - *NoMethod - } - s1.NoMethod = (*NoMethod)(s) - if err := json.Unmarshal(data, &s1); err != nil { - return err - } - s.Confidence = float64(s1.Confidence) - return nil -} - -// ResearchVisionFace2cartoonFace2CartoonResults: Results of the -// Face2Cartoon pipeline. -type ResearchVisionFace2cartoonFace2CartoonResults struct { - AgeClassifierResults []*ResearchVisionFace2cartoonAgeClassifierResults `json:"ageClassifierResults,omitempty"` - - ChinLengthClassifierResults []*ResearchVisionFace2cartoonChinLengthClassifierResults `json:"chinLengthClassifierResults,omitempty"` - - EyeColorClassifierResults []*ResearchVisionFace2cartoonEyeColorClassifierResults `json:"eyeColorClassifierResults,omitempty"` - - EyeEyebrowDistanceClassifierResults []*ResearchVisionFace2cartoonEyeEyebrowDistanceClassifierResults `json:"eyeEyebrowDistanceClassifierResults,omitempty"` - - EyeShapeClassifierResults []*ResearchVisionFace2cartoonEyeShapeClassifierResults `json:"eyeShapeClassifierResults,omitempty"` - - EyeSlantClassifierResults []*ResearchVisionFace2cartoonEyeSlantClassifierResults `json:"eyeSlantClassifierResults,omitempty"` - - EyeVerticalPositionClassifierResults []*ResearchVisionFace2cartoonEyeVerticalPositionClassifierResults `json:"eyeVerticalPositionClassifierResults,omitempty"` - - EyebrowShapeClassifierResults []*ResearchVisionFace2cartoonEyebrowShapeClassifierResults `json:"eyebrowShapeClassifierResults,omitempty"` - - EyebrowThicknessClassifierResults []*ResearchVisionFace2cartoonEyebrowThicknessClassifierResults `json:"eyebrowThicknessClassifierResults,omitempty"` - - EyebrowWidthClassifierResults []*ResearchVisionFace2cartoonEyebrowWidthClassifierResults `json:"eyebrowWidthClassifierResults,omitempty"` - - FaceWidthClassifierResults []*ResearchVisionFace2cartoonFaceWidthClassifierResults `json:"faceWidthClassifierResults,omitempty"` - - FacialHairClassifierResults []*ResearchVisionFace2cartoonFacialHairClassifierResults `json:"facialHairClassifierResults,omitempty"` - - GenderClassifierResults []*ResearchVisionFace2cartoonGenderClassifierResults `json:"genderClassifierResults,omitempty"` - - GlassesClassifierResults []*ResearchVisionFace2cartoonGlassesClassifierResults `json:"glassesClassifierResults,omitempty"` - - HairColorClassifierResults []*ResearchVisionFace2cartoonHairColorClassifierResults `json:"hairColorClassifierResults,omitempty"` - - HairStyleClassifierResults []*ResearchVisionFace2cartoonHairStyleClassifierResults `json:"hairStyleClassifierResults,omitempty"` - - InterEyeDistanceClassifierResults []*ResearchVisionFace2cartoonInterEyeDistanceClassifierResults `json:"interEyeDistanceClassifierResults,omitempty"` - - JawShapeClassifierResults []*ResearchVisionFace2cartoonJawShapeClassifierResults `json:"jawShapeClassifierResults,omitempty"` - - LipThicknessClassifierResults []*ResearchVisionFace2cartoonLipThicknessClassifierResults `json:"lipThicknessClassifierResults,omitempty"` - - MouthVerticalPositionClassifierResults []*ResearchVisionFace2cartoonMouthVerticalPositionClassifierResults `json:"mouthVerticalPositionClassifierResults,omitempty"` - - MouthWidthClassifierResults []*ResearchVisionFace2cartoonMouthWidthClassifierResults `json:"mouthWidthClassifierResults,omitempty"` - - NoseVerticalPositionClassifierResults []*ResearchVisionFace2cartoonNoseVerticalPositionClassifierResults `json:"noseVerticalPositionClassifierResults,omitempty"` - - NoseWidthClassifierResults []*ResearchVisionFace2cartoonNoseWidthClassifierResults `json:"noseWidthClassifierResults,omitempty"` - - SkinToneClassifierResults []*ResearchVisionFace2cartoonSkinToneClassifierResults `json:"skinToneClassifierResults,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "AgeClassifierResults") 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. "AgeClassifierResults") 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 *ResearchVisionFace2cartoonFace2CartoonResults) MarshalJSON() ([]byte, error) { - type NoMethod ResearchVisionFace2cartoonFace2CartoonResults - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -type ResearchVisionFace2cartoonFaceWidthClassifierResults struct { - Confidence float64 `json:"confidence,omitempty"` - - // Possible values: - // "UNKNOWN" - // "NARROW" - // "AVERAGE" - // "WIDE" - FaceWidth string `json:"faceWidth,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Confidence") 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. "Confidence") 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 *ResearchVisionFace2cartoonFaceWidthClassifierResults) MarshalJSON() ([]byte, error) { - type NoMethod ResearchVisionFace2cartoonFaceWidthClassifierResults - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -func (s *ResearchVisionFace2cartoonFaceWidthClassifierResults) UnmarshalJSON(data []byte) error { - type NoMethod ResearchVisionFace2cartoonFaceWidthClassifierResults - var s1 struct { - Confidence gensupport.JSONFloat64 `json:"confidence"` - *NoMethod - } - s1.NoMethod = (*NoMethod)(s) - if err := json.Unmarshal(data, &s1); err != nil { - return err - } - s.Confidence = float64(s1.Confidence) - return nil -} - -type ResearchVisionFace2cartoonFacialHairClassifierResults struct { - Confidence float64 `json:"confidence,omitempty"` - - // Possible values: - // "UNKNOWN" - // "NO_FACIAL_HAIR" - // "CLOSE_SHAVE" - // "SHORT_BEARD_2" - // "SHORT_BEARD_1" - // "MED_BEARD" - // "SHORT_BEARD_5" - // "GOATEE" - // "MOUSTACHE" - // "MOUSTACHE_GOATEE" - FacialHair string `json:"facialHair,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Confidence") 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. "Confidence") 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 *ResearchVisionFace2cartoonFacialHairClassifierResults) MarshalJSON() ([]byte, error) { - type NoMethod ResearchVisionFace2cartoonFacialHairClassifierResults - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -func (s *ResearchVisionFace2cartoonFacialHairClassifierResults) UnmarshalJSON(data []byte) error { - type NoMethod ResearchVisionFace2cartoonFacialHairClassifierResults - var s1 struct { - Confidence gensupport.JSONFloat64 `json:"confidence"` - *NoMethod - } - s1.NoMethod = (*NoMethod)(s) - if err := json.Unmarshal(data, &s1); err != nil { - return err - } - s.Confidence = float64(s1.Confidence) - return nil -} - -type ResearchVisionFace2cartoonGenderClassifierResults struct { - // Confidence: Uses a scaled version of the FaceSDK classifier's - // probability as the confidence (since the probability for the selected - // gender is between (0.5, 1] we scale it to be between (0, 1]). - Confidence float64 `json:"confidence,omitempty"` - - // Possible values: - // "UNKNOWN" - // "FEMALE" - // "MALE" - Gender string `json:"gender,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Confidence") 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. "Confidence") 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 *ResearchVisionFace2cartoonGenderClassifierResults) MarshalJSON() ([]byte, error) { - type NoMethod ResearchVisionFace2cartoonGenderClassifierResults - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -func (s *ResearchVisionFace2cartoonGenderClassifierResults) UnmarshalJSON(data []byte) error { - type NoMethod ResearchVisionFace2cartoonGenderClassifierResults - var s1 struct { - Confidence gensupport.JSONFloat64 `json:"confidence"` - *NoMethod - } - s1.NoMethod = (*NoMethod)(s) - if err := json.Unmarshal(data, &s1); err != nil { - return err - } - s.Confidence = float64(s1.Confidence) - return nil -} - -type ResearchVisionFace2cartoonGlassesClassifierResults struct { - // Confidence: Uses a scaled version of the FaceSDK classifier's - // probability as the confidence (since the probability for the selected - // glasses is between (0.5, 1] we scale it to be between (0, 1]). - Confidence float64 `json:"confidence,omitempty"` - - // Possible values: - // "UNKNOWN" - // "NO_GLASSES" - // "GLASSES" - // "DARK_GLASSES" - GlassesType string `json:"glassesType,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Confidence") 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. "Confidence") 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 *ResearchVisionFace2cartoonGlassesClassifierResults) MarshalJSON() ([]byte, error) { - type NoMethod ResearchVisionFace2cartoonGlassesClassifierResults - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -func (s *ResearchVisionFace2cartoonGlassesClassifierResults) UnmarshalJSON(data []byte) error { - type NoMethod ResearchVisionFace2cartoonGlassesClassifierResults - var s1 struct { - Confidence gensupport.JSONFloat64 `json:"confidence"` - *NoMethod - } - s1.NoMethod = (*NoMethod)(s) - if err := json.Unmarshal(data, &s1); err != nil { - return err - } - s.Confidence = float64(s1.Confidence) - return nil -} - -type ResearchVisionFace2cartoonHairColorClassifierResults struct { - Confidence float64 `json:"confidence,omitempty"` - - // Possible values: - // "UNKNOWN" - // "BLACK" - // "DARK_BROWN" - // "LIGHT_BROWN" - // "AUBURN" - // "ORANGE" - // "STRAWBERRY_BLONDE" - // "DIRTY_BLONDE" - // "BLEACHED_BLONDE" - // "GREY" - // "WHITE" - // "MINT" - // "PALE_PINK" - // "LAVENDER" - // "TEAL" - // "PURPLE" - // "PINK" - // "BLUE" - // "GREEN" - HairColor string `json:"hairColor,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Confidence") 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. "Confidence") 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 *ResearchVisionFace2cartoonHairColorClassifierResults) MarshalJSON() ([]byte, error) { - type NoMethod ResearchVisionFace2cartoonHairColorClassifierResults - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -func (s *ResearchVisionFace2cartoonHairColorClassifierResults) UnmarshalJSON(data []byte) error { - type NoMethod ResearchVisionFace2cartoonHairColorClassifierResults - var s1 struct { - Confidence gensupport.JSONFloat64 `json:"confidence"` - *NoMethod - } - s1.NoMethod = (*NoMethod)(s) - if err := json.Unmarshal(data, &s1); err != nil { - return err - } - s.Confidence = float64(s1.Confidence) - return nil -} - -type ResearchVisionFace2cartoonHairStyleClassifierResults struct { - Confidence float64 `json:"confidence,omitempty"` - - // Possible values: - // "UNKNOWN" - // "BALD_1" - // "BALD_2" - // "BALD_3" - // "SHAVE_1" - // "FRONT_CREW_1" - // "SHORT_STRAIGHT_9" - // "SHORT_STRAIGHT_17" - // "BUN_1" - // "SHORT_STRAIGHT_2" - // "SHORT_STRAIGHT_10" - // "SHORT_STRAIGHT_1" - // "SHORT_STRAIGHT_19" - // "SHORT_STRAIGHT_4" - // "SHORT_STRAIGHT_20" - // "SHORT_STRAIGHT_18" - // "SHORT_STRAIGHT_11" - // "MEDIUM_STRAIGHT_5" - // "MEDIUM_STRAIGHT_6" - // "MEDIUM_STRAIGHT_3" - // "LONG_STRAIGHT_6" - // "LONG_STRAIGHT_4" - // "LONG_STRAIGHT_2" - // "LONG_STRAIGHT_PONYTAIL_2" - // "LONG_STRAIGHT_PONYTAIL_1" - // "SHORT_WAVY_2" - // "MEDIUM_WAVY_1" - // "MEDIUM_WAVY_4" - // "MEDIUM_WAVY_2" - // "LONG_WAVY_1" - // "LONG_WAVY_3" - // "LONG_WAVY_2" - // "LONG_WAVY_4" - // "LONG_WAVY_PONYTAIL_4" - // "SHORT_CURLY_6" - // "SHORT_CURLY_5" - // "MEDIUM_CURLY_3" - // "SHORT_CURLY_8" - // "MEDIUM_CURLY_4" - // "LONG_CURLY_3" - // "LONG_CURLY_1" - // "LONG_CURLY_5" - // "LONG_CURLY_4" - // "LONG_CURLY_2" - // "LONG_CURLY_PONYTAIL_1" - // "SHORT_COILY_1" - // "SHORT_COILY_5" - // "SHORT_COILY_4" - // "SHORT_COILY_2" - // "MEDIUM_COILY_1" - // "LONG_COILY_2" - // "LONG_COILY_PONYTAIL_1" - // "SHORT_COILY_3" - // "LONG_COILY_1" - // "BOX_BRAIDS" - // "BUN_2" - // "COILY_PONYTAIL" - // "LONG_COILY_3" - // "LONG_COILY_4" - // "LONG_COILY_5" - // "LONG_COILY_PONYTAIL" - // "OTT" - // "SHORT_CORNROWS" - // "TIGHT_BRAID" - // "TIGHT_BRAIDS" - HairStyle string `json:"hairStyle,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Confidence") 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. "Confidence") 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 *ResearchVisionFace2cartoonHairStyleClassifierResults) MarshalJSON() ([]byte, error) { - type NoMethod ResearchVisionFace2cartoonHairStyleClassifierResults - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -func (s *ResearchVisionFace2cartoonHairStyleClassifierResults) UnmarshalJSON(data []byte) error { - type NoMethod ResearchVisionFace2cartoonHairStyleClassifierResults - var s1 struct { - Confidence gensupport.JSONFloat64 `json:"confidence"` - *NoMethod - } - s1.NoMethod = (*NoMethod)(s) - if err := json.Unmarshal(data, &s1); err != nil { - return err - } - s.Confidence = float64(s1.Confidence) - return nil -} - -// ResearchVisionFace2cartoonInterEyeDistanceClassifierResults: The -// measurement underlying this assumes fixed ear positions, so applying -// this combined with the FaceWidthClassifierResults may have an -// unintended outcome. -type ResearchVisionFace2cartoonInterEyeDistanceClassifierResults struct { - Confidence float64 `json:"confidence,omitempty"` - - // Possible values: - // "UNKNOWN" - // "WIDE" - // "AVERAGE" - // "CLOSE" - InterEyeDistance string `json:"interEyeDistance,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Confidence") 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. "Confidence") 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 *ResearchVisionFace2cartoonInterEyeDistanceClassifierResults) MarshalJSON() ([]byte, error) { - type NoMethod ResearchVisionFace2cartoonInterEyeDistanceClassifierResults - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -func (s *ResearchVisionFace2cartoonInterEyeDistanceClassifierResults) UnmarshalJSON(data []byte) error { - type NoMethod ResearchVisionFace2cartoonInterEyeDistanceClassifierResults - var s1 struct { - Confidence gensupport.JSONFloat64 `json:"confidence"` - *NoMethod - } - s1.NoMethod = (*NoMethod)(s) - if err := json.Unmarshal(data, &s1); err != nil { - return err - } - s.Confidence = float64(s1.Confidence) - return nil -} - -type ResearchVisionFace2cartoonJawShapeClassifierResults struct { - Confidence float64 `json:"confidence,omitempty"` - - // Possible values: - // "UNKNOWN" - // "TRIANGLE" - // "OVAL" - // "SQUARE" - // "ROUND" - JawShape string `json:"jawShape,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Confidence") 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. "Confidence") 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 *ResearchVisionFace2cartoonJawShapeClassifierResults) MarshalJSON() ([]byte, error) { - type NoMethod ResearchVisionFace2cartoonJawShapeClassifierResults - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -func (s *ResearchVisionFace2cartoonJawShapeClassifierResults) UnmarshalJSON(data []byte) error { - type NoMethod ResearchVisionFace2cartoonJawShapeClassifierResults - var s1 struct { - Confidence gensupport.JSONFloat64 `json:"confidence"` - *NoMethod - } - s1.NoMethod = (*NoMethod)(s) - if err := json.Unmarshal(data, &s1); err != nil { - return err - } - s.Confidence = float64(s1.Confidence) - return nil -} - -type ResearchVisionFace2cartoonLipThicknessClassifierResults struct { - Confidence float64 `json:"confidence,omitempty"` - - // Possible values: - // "UNKNOWN" - // "THIN" - // "AVERAGE" - // "THICK" - LipThickness string `json:"lipThickness,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Confidence") 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. "Confidence") 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 *ResearchVisionFace2cartoonLipThicknessClassifierResults) MarshalJSON() ([]byte, error) { - type NoMethod ResearchVisionFace2cartoonLipThicknessClassifierResults - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -func (s *ResearchVisionFace2cartoonLipThicknessClassifierResults) UnmarshalJSON(data []byte) error { - type NoMethod ResearchVisionFace2cartoonLipThicknessClassifierResults - var s1 struct { - Confidence gensupport.JSONFloat64 `json:"confidence"` - *NoMethod - } - s1.NoMethod = (*NoMethod)(s) - if err := json.Unmarshal(data, &s1); err != nil { - return err - } - s.Confidence = float64(s1.Confidence) - return nil -} - -// ResearchVisionFace2cartoonMouthVerticalPositionClassifierResults: The -// measurement underlying this assumes fixed ear positions, so applying -// this combined with the FaceWidthClassifierResults may have an -// unintended outcome. -type ResearchVisionFace2cartoonMouthVerticalPositionClassifierResults struct { - Confidence float64 `json:"confidence,omitempty"` - - // Possible values: - // "UNKNOWN" - // "HIGH" - // "AVERAGE" - // "LOW" - MouthVerticalPosition string `json:"mouthVerticalPosition,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Confidence") 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. "Confidence") 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 *ResearchVisionFace2cartoonMouthVerticalPositionClassifierResults) MarshalJSON() ([]byte, error) { - type NoMethod ResearchVisionFace2cartoonMouthVerticalPositionClassifierResults - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -func (s *ResearchVisionFace2cartoonMouthVerticalPositionClassifierResults) UnmarshalJSON(data []byte) error { - type NoMethod ResearchVisionFace2cartoonMouthVerticalPositionClassifierResults - var s1 struct { - Confidence gensupport.JSONFloat64 `json:"confidence"` - *NoMethod - } - s1.NoMethod = (*NoMethod)(s) - if err := json.Unmarshal(data, &s1); err != nil { - return err - } - s.Confidence = float64(s1.Confidence) - return nil -} - -// ResearchVisionFace2cartoonMouthWidthClassifierResults: The -// measurement underlying this assumes fixed ear positions, so applying -// this combined with the FaceWidthClassifierResults may have an -// unintended outcome. -type ResearchVisionFace2cartoonMouthWidthClassifierResults struct { - Confidence float64 `json:"confidence,omitempty"` - - // Possible values: - // "UNKNOWN" - // "NARROW" - // "AVERAGE" - // "WIDE" - MouthWidth string `json:"mouthWidth,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Confidence") 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. "Confidence") 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 *ResearchVisionFace2cartoonMouthWidthClassifierResults) MarshalJSON() ([]byte, error) { - type NoMethod ResearchVisionFace2cartoonMouthWidthClassifierResults - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -func (s *ResearchVisionFace2cartoonMouthWidthClassifierResults) UnmarshalJSON(data []byte) error { - type NoMethod ResearchVisionFace2cartoonMouthWidthClassifierResults - var s1 struct { - Confidence gensupport.JSONFloat64 `json:"confidence"` - *NoMethod - } - s1.NoMethod = (*NoMethod)(s) - if err := json.Unmarshal(data, &s1); err != nil { - return err - } - s.Confidence = float64(s1.Confidence) - return nil -} - -// ResearchVisionFace2cartoonNoseVerticalPositionClassifierResults: The -// measurement underlying this assumes fixed ear positions, so applying -// this combined with the FaceWidthClassifierResults may have an -// unintended outcome. -type ResearchVisionFace2cartoonNoseVerticalPositionClassifierResults struct { - Confidence float64 `json:"confidence,omitempty"` - - // Possible values: - // "UNKNOWN" - // "HIGH" - // "AVERAGE" - // "LOW" - NoseVerticalPosition string `json:"noseVerticalPosition,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Confidence") 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. "Confidence") 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 *ResearchVisionFace2cartoonNoseVerticalPositionClassifierResults) MarshalJSON() ([]byte, error) { - type NoMethod ResearchVisionFace2cartoonNoseVerticalPositionClassifierResults - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -func (s *ResearchVisionFace2cartoonNoseVerticalPositionClassifierResults) UnmarshalJSON(data []byte) error { - type NoMethod ResearchVisionFace2cartoonNoseVerticalPositionClassifierResults - var s1 struct { - Confidence gensupport.JSONFloat64 `json:"confidence"` - *NoMethod - } - s1.NoMethod = (*NoMethod)(s) - if err := json.Unmarshal(data, &s1); err != nil { - return err - } - s.Confidence = float64(s1.Confidence) - return nil -} - -// ResearchVisionFace2cartoonNoseWidthClassifierResults: The measurement -// underlying this assumes fixed ear positions, so applying this -// combined with the FaceWidthClassifierResults may have an unintended -// outcome. -type ResearchVisionFace2cartoonNoseWidthClassifierResults struct { - Confidence float64 `json:"confidence,omitempty"` - - // Possible values: - // "UNKNOWN" - // "NARROW" - // "AVERAGE" - // "WIDE" - NoseWidth string `json:"noseWidth,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Confidence") 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. "Confidence") 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 *ResearchVisionFace2cartoonNoseWidthClassifierResults) MarshalJSON() ([]byte, error) { - type NoMethod ResearchVisionFace2cartoonNoseWidthClassifierResults - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -func (s *ResearchVisionFace2cartoonNoseWidthClassifierResults) UnmarshalJSON(data []byte) error { - type NoMethod ResearchVisionFace2cartoonNoseWidthClassifierResults - var s1 struct { - Confidence gensupport.JSONFloat64 `json:"confidence"` - *NoMethod - } - s1.NoMethod = (*NoMethod)(s) - if err := json.Unmarshal(data, &s1); err != nil { - return err - } - s.Confidence = float64(s1.Confidence) - return nil -} - -type ResearchVisionFace2cartoonSkinToneClassifierResults struct { - Confidence float64 `json:"confidence,omitempty"` - - // Possible values: - // "UNKNOWN" - See the images from the links at: - // https://storage.googleapis.com/cc_8e814306-f840-4e2e-9415-36b06251cf8e/ - // skin_tone_exemplars/skin-*.png - // "TYPE_1" - (darkest) RGB: #603d30 - // "TYPE_2" - RGB: #88594b - // "TYPE_3" - RGB: #aa7454 - // "TYPE_4" - RGB: #c78b5d - // "TYPE_5" - RGB: #d9a16e - // "TYPE_6" - RGB: #e3b47e - // "TYPE_7" - RGB: #eeaf94 - // "TYPE_8" - RGB: #f0c092 - // "TYPE_9" - RGB: #f6d8c1 - // "TYPE_10" - RGB: #fbcdb6 - // "TYPE_11" - (lightest) RGB: #fbdbd1 - SkinToneType string `json:"skinToneType,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Confidence") 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. "Confidence") 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 *ResearchVisionFace2cartoonSkinToneClassifierResults) MarshalJSON() ([]byte, error) { - type NoMethod ResearchVisionFace2cartoonSkinToneClassifierResults - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -func (s *ResearchVisionFace2cartoonSkinToneClassifierResults) UnmarshalJSON(data []byte) error { - type NoMethod ResearchVisionFace2cartoonSkinToneClassifierResults - var s1 struct { - Confidence gensupport.JSONFloat64 `json:"confidence"` - *NoMethod - } - s1.NoMethod = (*NoMethod)(s) - if err := json.Unmarshal(data, &s1); err != nil { - return err - } - s.Confidence = float64(s1.Confidence) - return nil -} - // RichsnippetsDataObject: Next ID: 11 type RichsnippetsDataObject struct { AccessKey string `json:"AccessKey,omitempty"` @@ -147134,7 +144955,7 @@ func (s *TrawlerFetchBodyData) MarshalJSON() ([]byte, error) { // UrlReplyIndex, etc. retain the new fields - tlookup, tlookup_server: // want to be able to return the new fields - logviewer, fetchutil: // annoying to get back 'tag88:' in results -------------------------- -// Next Tag: 124 ----------------------- +// Next Tag: 125 ----------------------- type TrawlerFetchReplyData struct { // BadSSLCertificate: This field, if non-empty, contains the SSL // certificate chain from the server. The filed should be serialized @@ -147535,6 +145356,8 @@ type TrawlerFetchReplyData struct { // refresh those URLs regularly. TrafficType string `json:"trafficType,omitempty"` + WebioInfo *TrawlerFetchReplyDataWebIOInfo `json:"webioInfo,omitempty"` + // ForceSendFields is a list of field names (e.g. "BadSSLCertificate") // to unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -148314,6 +146137,57 @@ func (s *TrawlerFetchReplyDataRedirects) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// TrawlerFetchReplyDataWebIOInfo: WebIO is the new hostload model +// introduced in 2023. It measures the occupancy of 1 outgoing fetch +// connection for 1 minute. +type TrawlerFetchReplyDataWebIOInfo struct { + Webio float64 `json:"webio,omitempty"` + + // Possible values: + // "WEBIO_TIER_1" - Utilization 90-100% + // "WEBIO_TIER_2" - Utilization 70%-90% + // "WEBIO_TIER_3" - Utilization 30%-70% + // "WEBIO_TIER_4" - Utilization 0%-30% + // "WEBIO_NUM_TIERS" + WebioPercentageTier string `json:"webioPercentageTier,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Webio") 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. "Webio") 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 *TrawlerFetchReplyDataWebIOInfo) MarshalJSON() ([]byte, error) { + type NoMethod TrawlerFetchReplyDataWebIOInfo + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *TrawlerFetchReplyDataWebIOInfo) UnmarshalJSON(data []byte) error { + type NoMethod TrawlerFetchReplyDataWebIOInfo + var s1 struct { + Webio gensupport.JSONFloat64 `json:"webio"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Webio = float64(s1.Webio) + return nil +} + type TrawlerFetchStatus struct { // Reason: The Reason field gives further clarifying details about why // or how the fetch had the given outcome. For instance, if State is @@ -151067,6 +148941,13 @@ type VendingConsumerProtoTrustedGenomeAnnotation struct { // Paytm wallet failures. // "CART_ABANDONMENT_SUBSCRIPTION_BENEFITS_SESSION_LEVEL_V2" - // Session-level for showing subscription benefits in cart abandonment. + // "MULTILINE_SUBSCRIPTION_BASIC_RESTORE_ENABLED_SESSION_LEVEL" - + // Session_level test code for multiline basic restore enabled. + // "DECLINE_MESSAGE_IN_SUBSCENTER_FIX_FLOW_SESSION_LEVEL_V1" - + // Session-level test code thst indicates decline message is popluated + // in subscenter. + // "SAVE_FOR_LATER_CART_ABANDONMENT_SCREEN_SESSION_LEVEL" - Session + // level test code for Save For Later cart abandonment screen. // "SESSION_LEVEL_TEST_CODE_LIMIT" // "CART_ABANDONMENT_USER_LEVEL" - Cart abandonment flow for purchase // flow. @@ -151423,20 +149304,7 @@ type VendingConsumerProtoTrustedGenomeAnnotation struct { // for users who have any purchase card abandon behavior in the last 7 // day (controlled by LAST_7D_CART_ABANDONMENT_BACKEND), used for AH/GH // monetization experiments. - // "LINK_BIOMETRICS_NEW_SETUP_USER_LEVEL_V2" - User level test code - // for link biometrics with impression cap and foped user setup. - // "LINK_BIOMETRICS_NEW_SETUP_USER_LEVEL_V3" - User level test code - // for link biometrics with impression cap and foped user setup. - // "LINK_BIOMETRICS_NEW_SETUP_USER_LEVEL_V3_1" - User level test code - // for link biometrics with impression cap and foped user setup after - // traffic rebalancing. - // "LINK_BIOMETRICS_NEW_SETUP_USER_LEVEL_V3_2" - User level test code - // for link biometrics with impression cap and foped user setup after - // traffic rebalancing. - // "LINK_BIOMETRICS_NEW_SETUP_USER_LEVEL_V3_3" - User level test code - // for link biometrics with impression cap and foped user setup after - // traffic rebalancing. - // "LINK_BIOMETRICS_NEW_SETUP_USER_LEVEL_V3_4" - User level test code + // "LINK_BIOMETRICS_NEW_SETUP_USER_LEVEL_V3_5" - User level test code // for link biometrics with impression cap and foped user setup after // traffic rebalancing. // "POST_SUCCESS_ADD_BACKUP_FLOW_USER_LEVEL" - User level test code @@ -151556,7 +149424,7 @@ type VendingConsumerProtoTrustedGenomeAnnotation struct { // "HAS_REINSTALL_APP_PASSING_FILTERING_USER_LEVEL" - User level test // code for reinstall enablement. If user has any eligible reinstall // passing the per user filtering logic, testcode will be logged. Note - // that the filtering logics are controlled by gcl flags. Ex. Play Games + // that the filtering logic are controlled by gcl flags. Ex. Play Games // Home: http://shortn/_2aGCRQqToq. This test code only knows if any app // passes the filtering but not which filtering params are applied. // "HAS_RECOMMENDED_APP_WITH_OOP_REINSTALL_ELIGIBILITY_USER_LEVEL" - @@ -151745,6 +149613,13 @@ type VendingConsumerProtoTrustedGenomeAnnotation struct { // form of payment. // "CART_ABANDONMENT_SUBSCRIPTION_BENEFITS_USER_LEVEL_V2" - User-level // for showing subscription benefits in cart abandonment. + // "DECLINE_MESSAGE_IN_SUBSCENTER_FIX_FLOW_USER_LEVEL" - User-level + // test code for users who see the decline message in subscenter. + // "MULTILINE_SUBSCRIPTION_BASIC_RESTORE_ENABLED_USER_LEVEL" - User + // level test code for multiline basic restore enabled. + // "SAVE_FOR_LATER_CART_ABANDONMENT_SCREEN_USER_LEVEL" - User level + // test code for Save For Later cart abandonment screen. Add new + // user-level TestCode here. // "USER_LEVEL_TEST_CODE_LIMIT" TestCode []string `json:"testCode,omitempty"` @@ -152356,8 +150231,10 @@ type VideoAssetsVenomVideoId struct { // "NS_SEARCH_SPORTS" - Namespace for Search Sports vertical videos. // "NS_BUSINESSMESSAGING" - Namespace for Business Messaging videos. // "NS_AERIAL_VIEW" - Namespace for Geo Aerial View - // "NS_DOCS_FLIX_RENDER" - Namespace for Flix Render (Docs) Please - // receive approval via go/vp-newclients before adding a new namespace. + // "NS_DOCS_FLIX_RENDER" - Namespace for Flix Render (Docs) + // "NS_SHOPPING" - Namespace for CDS videos processed through Amarna. + // Please receive approval via go/vp-newclients before adding a new + // namespace. Ns string `json:"ns,omitempty"` // ForceSendFields is a list of field names (e.g. "Id") to @@ -167772,7 +165649,11 @@ type YoutubeCommentsApiCommentRestrictionReason struct { // "COURT_ORDER" - Third-party court orders. // "CTM" - Circumvention of Technological measures claims. // Circumventing protection mechanisms on copyrighted work. + // "DANGEROUS" - Content depicts or provides instructions to complete + // activities that are dangerous and/or widely illegal, e.g. + // prostitution, bomb-making, suicide. // "DEFAMATION" - Defamation claims. + // "EATING_DISORDERS" - Content that demonstrates eating disorders // "GOVERNMENT_ORDER" - Government request, regardless of reason. // "HARASSMENT" - Consistent harassing behavior directed towards a // person. @@ -167797,6 +165678,8 @@ type YoutubeCommentsApiCommentRestrictionReason struct { // pharmaceuticals, alcohol, tobacco, etc. For details, // https://sites.google.com/a/google.com/crt-policy-site/regulated // "SPAM" + // "SUICIDE_AND_SELF_HARM" - Content that demonstrates suicide and + // self harm // "TRADEMARK" - Trademark violations where Google could be liable. // "UNSAFE_RACY" - Content that is unsafe because it is sexually // suggestive/racy. @@ -167812,9 +165695,11 @@ type YoutubeCommentsApiCommentRestrictionReason struct { // such as links to MFA pages, affiliate links, ads or solicitation, or // otherwise off-topic or irrelevant content. // "VIOLENCE" - // "DANGEROUS" - Content depicts or provides instructions to complete - // activities that are dangerous and/or widely illegal, e.g. - // prostitution, bomb-making, suicide. + // "VIOLENT_EXTREMISM" - Content that recruits or solicits terrorists; + // specific and detailed instructions on how to make a bomb; terrorists + // who document their attacks; praising acts of mass violence; content + // that shows captured hostages posted with the intent to solicit + // demands, threaten, or intimidate. // "BLOCKED_LINKS" - Comment contains links in a list of "blocked // links" in YouTube Studio > Settings > Community. // "BLOCKED_WORDS" - Creator setting specific reasons. @@ -167823,11 +165708,6 @@ type YoutubeCommentsApiCommentRestrictionReason struct { // "ENABLED_HOLD_ALL" - Held because the moderation policy is "Hold // all comments for review". // "HIDDEN_USER_LIST" - Comment from listed hidden users. - // "VIOLENT_EXTREMISM" - Content that recruits or solicits terrorists; - // specific and detailed instructions on how to make a bomb; terrorists - // who document their attacks; praising acts of mass violence; content - // that shows captured hostages posted with the intent to solicit - // demands, threaten, or intimidate. // "PRIVILEGED_USER_REJECTED" - A privileged user, which can only be // parent entity owner for ENTITY_COMMENT, but can be either parent // entity channel owner or channel moderator for CHAT_MESSAGE diff --git a/dataflow/v1b3/dataflow-api.json b/dataflow/v1b3/dataflow-api.json index e503c5ab97c..7ac2894a254 100644 --- a/dataflow/v1b3/dataflow-api.json +++ b/dataflow/v1b3/dataflow-api.json @@ -2221,7 +2221,7 @@ } } }, - "revision": "20230929", + "revision": "20231021", "rootUrl": "https://dataflow.googleapis.com/", "schemas": { "ApproximateProgress": { @@ -3932,6 +3932,11 @@ "$ref": "RuntimeUpdatableParams", "description": "This field may ONLY be modified at runtime using the projects.jobs.update method to adjust job behavior. This field has no effect when specified at job creation." }, + "satisfiesPzi": { + "description": "Output only. Reserved for future use. This field is set only in responses from the server; it is ignored if it is set in any requests.", + "readOnly": true, + "type": "boolean" + }, "satisfiesPzs": { "description": "Reserved for future use. This field is set only in responses from the server; it is ignored if it is set in any requests.", "type": "boolean" diff --git a/dataflow/v1b3/dataflow-gen.go b/dataflow/v1b3/dataflow-gen.go index f9717d394f1..3c23e132a53 100644 --- a/dataflow/v1b3/dataflow-gen.go +++ b/dataflow/v1b3/dataflow-gen.go @@ -3102,6 +3102,11 @@ type Job struct { // field has no effect when specified at job creation. RuntimeUpdatableParams *RuntimeUpdatableParams `json:"runtimeUpdatableParams,omitempty"` + // SatisfiesPzi: Output only. Reserved for future use. This field is set + // only in responses from the server; it is ignored if it is set in any + // requests. + SatisfiesPzi bool `json:"satisfiesPzi,omitempty"` + // SatisfiesPzs: Reserved for future use. This field is set only in // responses from the server; it is ignored if it is set in any // requests. diff --git a/gmail/v1/gmail-api.json b/gmail/v1/gmail-api.json index a09e8a2f4a1..cc583a2d789 100644 --- a/gmail/v1/gmail-api.json +++ b/gmail/v1/gmail-api.json @@ -3077,7 +3077,7 @@ } } }, - "revision": "20231002", + "revision": "20231023", "rootUrl": "https://gmail.googleapis.com/", "schemas": { "AutoForwarding": { @@ -3233,6 +3233,10 @@ "description": "Metadata for a private key instance.", "id": "CsePrivateKeyMetadata", "properties": { + "hardwareKeyMetadata": { + "$ref": "HardwareKeyMetadata", + "description": "Metadata for hardware keys." + }, "kaclsKeyMetadata": { "$ref": "KaclsKeyMetadata", "description": "Metadata for a private key instance managed by an external key access control list service." @@ -3429,6 +3433,17 @@ }, "type": "object" }, + "HardwareKeyMetadata": { + "description": "Metadata for hardware keys.", + "id": "HardwareKeyMetadata", + "properties": { + "description": { + "description": "Description about the hardware key.", + "type": "string" + } + }, + "type": "object" + }, "History": { "description": "A record of a change to the user's mailbox. Each history change may affect multiple messages in multiple ways.", "id": "History", diff --git a/gmail/v1/gmail-gen.go b/gmail/v1/gmail-gen.go index 10bd7d58a66..d4b49b269c2 100644 --- a/gmail/v1/gmail-gen.go +++ b/gmail/v1/gmail-gen.go @@ -629,6 +629,9 @@ func (s *CseKeyPair) MarshalJSON() ([]byte, error) { // CsePrivateKeyMetadata: Metadata for a private key instance. type CsePrivateKeyMetadata struct { + // HardwareKeyMetadata: Metadata for hardware keys. + HardwareKeyMetadata *HardwareKeyMetadata `json:"hardwareKeyMetadata,omitempty"` + // KaclsKeyMetadata: Metadata for a private key instance managed by an // external key access control list service. KaclsKeyMetadata *KaclsKeyMetadata `json:"kaclsKeyMetadata,omitempty"` @@ -637,15 +640,15 @@ type CsePrivateKeyMetadata struct { // key metadata instance. PrivateKeyMetadataId string `json:"privateKeyMetadataId,omitempty"` - // ForceSendFields is a list of field names (e.g. "KaclsKeyMetadata") to - // unconditionally include in API requests. By default, fields with + // ForceSendFields is a list of field names (e.g. "HardwareKeyMetadata") + // 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. "KaclsKeyMetadata") to + // NullFields is a list of field names (e.g. "HardwareKeyMetadata") 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 @@ -939,6 +942,34 @@ func (s *ForwardingAddress) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// HardwareKeyMetadata: Metadata for hardware keys. +type HardwareKeyMetadata struct { + // Description: Description about the hardware key. + Description string `json:"description,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 + // 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. "Description") 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 *HardwareKeyMetadata) MarshalJSON() ([]byte, error) { + type NoMethod HardwareKeyMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // History: A record of a change to the user's mailbox. Each history // change may affect multiple messages in multiple ways. type History struct { diff --git a/places/v1/places-api.json b/places/v1/places-api.json index 68ac55e6a68..414509eeec1 100644 --- a/places/v1/places-api.json +++ b/places/v1/places-api.json @@ -248,7 +248,7 @@ } } }, - "revision": "20231023", + "revision": "20231024", "rootUrl": "https://places.googleapis.com/", "schemas": { "GoogleGeoTypeViewport": { @@ -271,18 +271,15 @@ "id": "GoogleMapsPlacesV1AuthorAttribution", "properties": { "displayName": { - "description": "Output only. Name of the author of the Photo or Review.", - "readOnly": true, + "description": "Name of the author of the Photo or Review.", "type": "string" }, "photoUri": { - "description": "Output only. Profile photo URI of the author of the Photo or Review.", - "readOnly": true, + "description": "Profile photo URI of the author of the Photo or Review.", "type": "string" }, "uri": { - "description": "Output only. URI of the author of the Photo or Review.", - "readOnly": true, + "description": "URI of the author of the Photo or Review.", "type": "string" } }, @@ -464,28 +461,24 @@ "id": "GoogleMapsPlacesV1Photo", "properties": { "authorAttributions": { - "description": "Output only. This photo's authors.", + "description": "This photo's authors.", "items": { "$ref": "GoogleMapsPlacesV1AuthorAttribution" }, - "readOnly": true, "type": "array" }, "heightPx": { - "description": "Output only. The maximum available height, in pixels.", + "description": "The maximum available height, in pixels.", "format": "int32", - "readOnly": true, "type": "integer" }, "name": { - "description": "Output only. A reference representing this place photo which may be used to look up this place photo again (a.k.a. the API \"resource\" name: places/{place_id}/photos/{photo}).", - "readOnly": true, + "description": "Identifier. A reference representing this place photo which may be used to look up this place photo again (a.k.a. the API \"resource\" name: places/{place_id}/photos/{photo}).", "type": "string" }, "widthPx": { - "description": "Output only. The maximum available width, in pixels.", + "description": "The maximum available width, in pixels.", "format": "int32", - "readOnly": true, "type": "integer" } }, @@ -691,12 +684,12 @@ "type": "string" }, "primaryType": { - "description": "The primary type of the given result. This type must one of the Places API supported types. For example, \"restaurant\", \"cafe\", \"airport\", etc. A place can only have a single primary type.", + "description": "The primary type of the given result. This type must one of the Places API supported types. For example, \"restaurant\", \"cafe\", \"airport\", etc. A place can only have a single primary type. For the complete list of possible values, see Table A and Table B at https://developers.google.com/maps/documentation/places/web-service/place-types", "type": "string" }, "primaryTypeDisplayName": { "$ref": "GoogleTypeLocalizedText", - "description": "The display name of the primary type, localized to the request language if applicable." + "description": "The display name of the primary type, localized to the request language if applicable. For the complete list of possible values, see Table A and Table B at https://developers.google.com/maps/documentation/places/web-service/place-types" }, "rating": { "description": "A rating between 1.0 and 5.0, based on user reviews of this place.", @@ -723,7 +716,7 @@ "type": "boolean" }, "reviews": { - "description": "List of reviews about this place.", + "description": "List of reviews about this place, sorted by relevance.", "items": { "$ref": "GoogleMapsPlacesV1Review" }, @@ -785,7 +778,7 @@ "type": "boolean" }, "types": { - "description": "A set of type tags for this result. For example, \"political\" and \"locality\". See: https://developers.google.com/maps/documentation/places/web-service/place-types", + "description": "A set of type tags for this result. For example, \"political\" and \"locality\". For the complete list of possible values, see Table A and Table B at https://developers.google.com/maps/documentation/places/web-service/place-types", "items": { "type": "string" }, @@ -1094,40 +1087,33 @@ "properties": { "authorAttribution": { "$ref": "GoogleMapsPlacesV1AuthorAttribution", - "description": "Output only. This review's author.", - "readOnly": true + "description": "This review's author." }, "name": { - "description": "Output only. A reference representing this place review which may be used to look up this place review again (a.k.a. the API \"resource\" name: places/{place_id}/reviews/{review}).", - "readOnly": true, + "description": "A reference representing this place review which may be used to look up this place review again (also called the API \"resource\" name: places/place_id/reviews/review).", "type": "string" }, "originalText": { "$ref": "GoogleTypeLocalizedText", - "description": "Output only. The review text in its original language.", - "readOnly": true + "description": "The review text in its original language." }, "publishTime": { - "description": "Output only. Timestamp for the review.", + "description": "Timestamp for the review.", "format": "google-datetime", - "readOnly": true, "type": "string" }, "rating": { - "description": "Output only. A number between 1.0 and 5.0, a.k.a. the number of stars.", + "description": "A number between 1.0 and 5.0, also called the number of stars.", "format": "double", - "readOnly": true, "type": "number" }, "relativePublishTimeDescription": { - "description": "Output only. A string of formatted recent time, expressing the review time relative to the current time in a form appropriate for the language and country.", - "readOnly": true, + "description": "A string of formatted recent time, expressing the review time relative to the current time in a form appropriate for the language and country.", "type": "string" }, "text": { "$ref": "GoogleTypeLocalizedText", - "description": "Output only. The localized text of the review.", - "readOnly": true + "description": "The localized text of the review." } }, "type": "object" diff --git a/places/v1/places-gen.go b/places/v1/places-gen.go index e12a0ca988b..73858dd0c42 100644 --- a/places/v1/places-gen.go +++ b/places/v1/places-gen.go @@ -247,14 +247,13 @@ func (s *GoogleGeoTypeViewport) MarshalJSON() ([]byte, error) { // GoogleMapsPlacesV1AuthorAttribution: Information about the author of // the UGC data. Used in Photo, and Review. type GoogleMapsPlacesV1AuthorAttribution struct { - // DisplayName: Output only. Name of the author of the Photo or Review. + // DisplayName: Name of the author of the Photo or Review. DisplayName string `json:"displayName,omitempty"` - // PhotoUri: Output only. Profile photo URI of the author of the Photo - // or Review. + // PhotoUri: Profile photo URI of the author of the Photo or Review. PhotoUri string `json:"photoUri,omitempty"` - // Uri: Output only. URI of the author of the Photo or Review. + // Uri: URI of the author of the Photo or Review. Uri string `json:"uri,omitempty"` // ForceSendFields is a list of field names (e.g. "DisplayName") to @@ -547,18 +546,18 @@ func (s *GoogleMapsPlacesV1FuelOptionsFuelPrice) MarshalJSON() ([]byte, error) { // GoogleMapsPlacesV1Photo: Information about a photo of a place. type GoogleMapsPlacesV1Photo struct { - // AuthorAttributions: Output only. This photo's authors. + // AuthorAttributions: This photo's authors. AuthorAttributions []*GoogleMapsPlacesV1AuthorAttribution `json:"authorAttributions,omitempty"` - // HeightPx: Output only. The maximum available height, in pixels. + // HeightPx: The maximum available height, in pixels. HeightPx int64 `json:"heightPx,omitempty"` - // Name: Output only. A reference representing this place photo which - // may be used to look up this place photo again (a.k.a. the API - // "resource" name: places/{place_id}/photos/{photo}). + // Name: Identifier. A reference representing this place photo which may + // be used to look up this place photo again (a.k.a. the API "resource" + // name: places/{place_id}/photos/{photo}). Name string `json:"name,omitempty"` - // WidthPx: Output only. The maximum available width, in pixels. + // WidthPx: The maximum available width, in pixels. WidthPx int64 `json:"widthPx,omitempty"` // ForceSendFields is a list of field names (e.g. "AuthorAttributions") @@ -791,11 +790,15 @@ type GoogleMapsPlacesV1Place struct { // PrimaryType: The primary type of the given result. This type must one // of the Places API supported types. For example, "restaurant", "cafe", - // "airport", etc. A place can only have a single primary type. + // "airport", etc. A place can only have a single primary type. For the + // complete list of possible values, see Table A and Table B at + // https://developers.google.com/maps/documentation/places/web-service/place-types PrimaryType string `json:"primaryType,omitempty"` // PrimaryTypeDisplayName: The display name of the primary type, - // localized to the request language if applicable. + // localized to the request language if applicable. For the complete + // list of possible values, see Table A and Table B at + // https://developers.google.com/maps/documentation/places/web-service/place-types PrimaryTypeDisplayName *GoogleTypeLocalizedText `json:"primaryTypeDisplayName,omitempty"` // Rating: A rating between 1.0 and 5.0, based on user reviews of this @@ -820,7 +823,7 @@ type GoogleMapsPlacesV1Place struct { // Restroom: Place has restroom. Restroom bool `json:"restroom,omitempty"` - // Reviews: List of reviews about this place. + // Reviews: List of reviews about this place, sorted by relevance. Reviews []*GoogleMapsPlacesV1Review `json:"reviews,omitempty"` // ServesBeer: Specifies if the place serves beer. @@ -864,7 +867,8 @@ type GoogleMapsPlacesV1Place struct { Takeout bool `json:"takeout,omitempty"` // Types: A set of type tags for this result. For example, "political" - // and "locality". See: + // and "locality". For the complete list of possible values, see Table A + // and Table B at // https://developers.google.com/maps/documentation/places/web-service/place-types Types []string `json:"types,omitempty"` @@ -1391,30 +1395,30 @@ func (s *GoogleMapsPlacesV1PlaceSubDestination) MarshalJSON() ([]byte, error) { // GoogleMapsPlacesV1Review: Information about a review of a place. type GoogleMapsPlacesV1Review struct { - // AuthorAttribution: Output only. This review's author. + // AuthorAttribution: This review's author. AuthorAttribution *GoogleMapsPlacesV1AuthorAttribution `json:"authorAttribution,omitempty"` - // Name: Output only. A reference representing this place review which - // may be used to look up this place review again (a.k.a. the API - // "resource" name: places/{place_id}/reviews/{review}). + // Name: A reference representing this place review which may be used to + // look up this place review again (also called the API "resource" name: + // places/place_id/reviews/review). Name string `json:"name,omitempty"` - // OriginalText: Output only. The review text in its original language. + // OriginalText: The review text in its original language. OriginalText *GoogleTypeLocalizedText `json:"originalText,omitempty"` - // PublishTime: Output only. Timestamp for the review. + // PublishTime: Timestamp for the review. PublishTime string `json:"publishTime,omitempty"` - // Rating: Output only. A number between 1.0 and 5.0, a.k.a. the number - // of stars. + // Rating: A number between 1.0 and 5.0, also called the number of + // stars. Rating float64 `json:"rating,omitempty"` - // RelativePublishTimeDescription: Output only. A string of formatted - // recent time, expressing the review time relative to the current time - // in a form appropriate for the language and country. + // RelativePublishTimeDescription: A string of formatted recent time, + // expressing the review time relative to the current time in a form + // appropriate for the language and country. RelativePublishTimeDescription string `json:"relativePublishTimeDescription,omitempty"` - // Text: Output only. The localized text of the review. + // Text: The localized text of the review. Text *GoogleTypeLocalizedText `json:"text,omitempty"` // ForceSendFields is a list of field names (e.g. "AuthorAttribution") diff --git a/pubsub/v1/pubsub-api.json b/pubsub/v1/pubsub-api.json index 75fd6468b69..845d6822946 100644 --- a/pubsub/v1/pubsub-api.json +++ b/pubsub/v1/pubsub-api.json @@ -164,7 +164,7 @@ "type": "string" }, "schemaId": { - "description": "The ID to use for the schema, which will become the final component of the schema's resource name. See https://cloud.google.com/pubsub/docs/admin#resource_names for resource name constraints.", + "description": "The ID to use for the schema, which will become the final component of the schema's resource name. See https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names for resource name constraints.", "location": "query", "type": "string" } @@ -566,7 +566,7 @@ "snapshots": { "methods": { "create": { - "description": "Creates a snapshot from the requested subscription. Snapshots are used in [Seek](https://cloud.google.com/pubsub/docs/replay-overview) operations, which allow you to manage message acknowledgments in bulk. That is, you can set the acknowledgment state of messages in an existing subscription to the state captured by a snapshot. If the snapshot already exists, returns `ALREADY_EXISTS`. If the requested subscription doesn't exist, returns `NOT_FOUND`. If the backlog in the subscription is too old -- and the resulting snapshot would expire in less than 1 hour -- then `FAILED_PRECONDITION` is returned. See also the `Snapshot.expire_time` field. If the name is not provided in the request, the server will assign a random name for this snapshot on the same project as the subscription, conforming to the [resource name format] (https://cloud.google.com/pubsub/docs/admin#resource_names). The generated name is populated in the returned Snapshot object. Note that for REST API requests, you must specify a name in the request.", + "description": "Creates a snapshot from the requested subscription. Snapshots are used in [Seek](https://cloud.google.com/pubsub/docs/replay-overview) operations, which allow you to manage message acknowledgments in bulk. That is, you can set the acknowledgment state of messages in an existing subscription to the state captured by a snapshot. If the snapshot already exists, returns `ALREADY_EXISTS`. If the requested subscription doesn't exist, returns `NOT_FOUND`. If the backlog in the subscription is too old -- and the resulting snapshot would expire in less than 1 hour -- then `FAILED_PRECONDITION` is returned. See also the `Snapshot.expire_time` field. If the name is not provided in the request, the server will assign a random name for this snapshot on the same project as the subscription, conforming to the [resource name format] (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). The generated name is populated in the returned Snapshot object. Note that for REST API requests, you must specify a name in the request.", "flatPath": "v1/projects/{projectsId}/snapshots/{snapshotsId}", "httpMethod": "PUT", "id": "pubsub.projects.snapshots.create", @@ -575,7 +575,7 @@ ], "parameters": { "name": { - "description": "Required. User-provided name for this snapshot. If the name is not provided in the request, the server will assign a random name for this snapshot on the same project as the subscription. Note that for REST API requests, you must specify a name. See the [resource name rules](https://cloud.google.com/pubsub/docs/admin#resource_names). Format is `projects/{project}/snapshots/{snap}`.", + "description": "Required. User-provided name for this snapshot. If the name is not provided in the request, the server will assign a random name for this snapshot on the same project as the subscription. Note that for REST API requests, you must specify a name. See the [resource name rules](https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). Format is `projects/{project}/snapshots/{snap}`.", "location": "path", "pattern": "^projects/[^/]+/snapshots/[^/]+$", "required": true, @@ -836,7 +836,7 @@ ] }, "create": { - "description": "Creates a subscription to a given topic. See the [resource name rules] (https://cloud.google.com/pubsub/docs/admin#resource_names). If the subscription already exists, returns `ALREADY_EXISTS`. If the corresponding topic doesn't exist, returns `NOT_FOUND`. If the name is not provided in the request, the server will assign a random name for this subscription on the same project as the topic, conforming to the [resource name format] (https://cloud.google.com/pubsub/docs/admin#resource_names). The generated name is populated in the returned Subscription object. Note that for REST API requests, you must specify a name in the request.", + "description": "Creates a subscription to a given topic. See the [resource name rules] (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). If the subscription already exists, returns `ALREADY_EXISTS`. If the corresponding topic doesn't exist, returns `NOT_FOUND`. If the name is not provided in the request, the server will assign a random name for this subscription on the same project as the topic, conforming to the [resource name format] (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). The generated name is populated in the returned Subscription object. Note that for REST API requests, you must specify a name in the request.", "flatPath": "v1/projects/{projectsId}/subscriptions/{subscriptionsId}", "httpMethod": "PUT", "id": "pubsub.projects.subscriptions.create", @@ -1219,7 +1219,7 @@ "topics": { "methods": { "create": { - "description": "Creates the given topic with the given name. See the [resource name rules] (https://cloud.google.com/pubsub/docs/admin#resource_names).", + "description": "Creates the given topic with the given name. See the [resource name rules] (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names).", "flatPath": "v1/projects/{projectsId}/topics/{topicsId}", "httpMethod": "PUT", "id": "pubsub.projects.topics.create", @@ -1573,7 +1573,7 @@ } } }, - "revision": "20231010", + "revision": "20231019", "rootUrl": "https://pubsub.googleapis.com/", "schemas": { "AcknowledgeRequest": { @@ -1946,7 +1946,7 @@ "id": "MessageStoragePolicy", "properties": { "allowedPersistenceRegions": { - "description": "Optional. A list of IDs of GCP regions where messages that are published to the topic may be persisted in storage. Messages published by publishers running in non-allowed GCP regions (or running outside of GCP altogether) will be routed for storage in one of the allowed regions. An empty list means that no regions are allowed, and is not a valid configuration.", + "description": "Optional. A list of IDs of Google Cloud regions where messages that are published to the topic may be persisted in storage. Messages published by publishers running in non-allowed Google Cloud regions (or running outside of Google Cloud altogether) are routed for storage in one of the allowed regions. An empty list means that no regions are allowed, and is not a valid configuration.", "items": { "type": "string" }, diff --git a/pubsub/v1/pubsub-gen.go b/pubsub/v1/pubsub-gen.go index 3b7f97988bb..a84d8102701 100644 --- a/pubsub/v1/pubsub-gen.go +++ b/pubsub/v1/pubsub-gen.go @@ -1035,12 +1035,13 @@ func (s *ListTopicsResponse) MarshalJSON() ([]byte, error) { // MessageStoragePolicy: A policy constraining the storage of messages // published to the topic. type MessageStoragePolicy struct { - // AllowedPersistenceRegions: Optional. A list of IDs of GCP regions - // where messages that are published to the topic may be persisted in - // storage. Messages published by publishers running in non-allowed GCP - // regions (or running outside of GCP altogether) will be routed for - // storage in one of the allowed regions. An empty list means that no - // regions are allowed, and is not a valid configuration. + // AllowedPersistenceRegions: Optional. A list of IDs of Google Cloud + // regions where messages that are published to the topic may be + // persisted in storage. Messages published by publishers running in + // non-allowed Google Cloud regions (or running outside of Google Cloud + // altogether) are routed for storage in one of the allowed regions. An + // empty list means that no regions are allowed, and is not a valid + // configuration. AllowedPersistenceRegions []string `json:"allowedPersistenceRegions,omitempty"` // ForceSendFields is a list of field names (e.g. @@ -2630,7 +2631,7 @@ func (r *ProjectsSchemasService) Create(parent string, schema *Schema) *Projects // SchemaId sets the optional parameter "schemaId": The ID to use for // the schema, which will become the final component of the schema's // resource name. See -// https://cloud.google.com/pubsub/docs/admin#resource_names for +// https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names for // resource name constraints. func (c *ProjectsSchemasCreateCall) SchemaId(schemaId string) *ProjectsSchemasCreateCall { c.urlParams_.Set("schemaId", schemaId) @@ -2744,7 +2745,7 @@ func (c *ProjectsSchemasCreateCall) Do(opts ...googleapi.CallOption) (*Schema, e // "type": "string" // }, // "schemaId": { - // "description": "The ID to use for the schema, which will become the final component of the schema's resource name. See https://cloud.google.com/pubsub/docs/admin#resource_names for resource name constraints.", + // "description": "The ID to use for the schema, which will become the final component of the schema's resource name. See https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names for resource name constraints.", // "location": "query", // "type": "string" // } @@ -4622,8 +4623,8 @@ type ProjectsSnapshotsCreateCall struct { // provided in the request, the server will assign a random name for // this snapshot on the same project as the subscription, conforming to // the [resource name format] -// (https://cloud.google.com/pubsub/docs/admin#resource_names). The -// generated name is populated in the returned Snapshot object. Note +// (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). +// The generated name is populated in the returned Snapshot object. Note // that for REST API requests, you must specify a name in the request. // // - name: User-provided name for this snapshot. If the name is not @@ -4631,8 +4632,8 @@ type ProjectsSnapshotsCreateCall struct { // this snapshot on the same project as the subscription. Note that // for REST API requests, you must specify a name. See the resource // name rules -// (https://cloud.google.com/pubsub/docs/admin#resource_names). Format -// is `projects/{project}/snapshots/{snap}`. +// (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). +// Format is `projects/{project}/snapshots/{snap}`. func (r *ProjectsSnapshotsService) Create(name string, createsnapshotrequest *CreateSnapshotRequest) *ProjectsSnapshotsCreateCall { c := &ProjectsSnapshotsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -4731,7 +4732,7 @@ func (c *ProjectsSnapshotsCreateCall) Do(opts ...googleapi.CallOption) (*Snapsho } return ret, nil // { - // "description": "Creates a snapshot from the requested subscription. Snapshots are used in [Seek](https://cloud.google.com/pubsub/docs/replay-overview) operations, which allow you to manage message acknowledgments in bulk. That is, you can set the acknowledgment state of messages in an existing subscription to the state captured by a snapshot. If the snapshot already exists, returns `ALREADY_EXISTS`. If the requested subscription doesn't exist, returns `NOT_FOUND`. If the backlog in the subscription is too old -- and the resulting snapshot would expire in less than 1 hour -- then `FAILED_PRECONDITION` is returned. See also the `Snapshot.expire_time` field. If the name is not provided in the request, the server will assign a random name for this snapshot on the same project as the subscription, conforming to the [resource name format] (https://cloud.google.com/pubsub/docs/admin#resource_names). The generated name is populated in the returned Snapshot object. Note that for REST API requests, you must specify a name in the request.", + // "description": "Creates a snapshot from the requested subscription. Snapshots are used in [Seek](https://cloud.google.com/pubsub/docs/replay-overview) operations, which allow you to manage message acknowledgments in bulk. That is, you can set the acknowledgment state of messages in an existing subscription to the state captured by a snapshot. If the snapshot already exists, returns `ALREADY_EXISTS`. If the requested subscription doesn't exist, returns `NOT_FOUND`. If the backlog in the subscription is too old -- and the resulting snapshot would expire in less than 1 hour -- then `FAILED_PRECONDITION` is returned. See also the `Snapshot.expire_time` field. If the name is not provided in the request, the server will assign a random name for this snapshot on the same project as the subscription, conforming to the [resource name format] (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). The generated name is populated in the returned Snapshot object. Note that for REST API requests, you must specify a name in the request.", // "flatPath": "v1/projects/{projectsId}/snapshots/{snapshotsId}", // "httpMethod": "PUT", // "id": "pubsub.projects.snapshots.create", @@ -4740,7 +4741,7 @@ func (c *ProjectsSnapshotsCreateCall) Do(opts ...googleapi.CallOption) (*Snapsho // ], // "parameters": { // "name": { - // "description": "Required. User-provided name for this snapshot. If the name is not provided in the request, the server will assign a random name for this snapshot on the same project as the subscription. Note that for REST API requests, you must specify a name. See the [resource name rules](https://cloud.google.com/pubsub/docs/admin#resource_names). Format is `projects/{project}/snapshots/{snap}`.", + // "description": "Required. User-provided name for this snapshot. If the name is not provided in the request, the server will assign a random name for this snapshot on the same project as the subscription. Note that for REST API requests, you must specify a name. See the [resource name rules](https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). Format is `projects/{project}/snapshots/{snap}`.", // "location": "path", // "pattern": "^projects/[^/]+/snapshots/[^/]+$", // "required": true, @@ -6041,15 +6042,16 @@ type ProjectsSubscriptionsCreateCall struct { // Create: Creates a subscription to a given topic. See the [resource // name rules] -// (https://cloud.google.com/pubsub/docs/admin#resource_names). If the -// subscription already exists, returns `ALREADY_EXISTS`. If the +// (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). +// If the subscription already exists, returns `ALREADY_EXISTS`. If the // corresponding topic doesn't exist, returns `NOT_FOUND`. If the name // is not provided in the request, the server will assign a random name // for this subscription on the same project as the topic, conforming to // the [resource name format] -// (https://cloud.google.com/pubsub/docs/admin#resource_names). The -// generated name is populated in the returned Subscription object. Note -// that for REST API requests, you must specify a name in the request. +// (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). +// The generated name is populated in the returned Subscription object. +// Note that for REST API requests, you must specify a name in the +// request. // // - name: The name of the subscription. It must have the format // "projects/{project}/subscriptions/{subscription}". @@ -6156,7 +6158,7 @@ func (c *ProjectsSubscriptionsCreateCall) Do(opts ...googleapi.CallOption) (*Sub } return ret, nil // { - // "description": "Creates a subscription to a given topic. See the [resource name rules] (https://cloud.google.com/pubsub/docs/admin#resource_names). If the subscription already exists, returns `ALREADY_EXISTS`. If the corresponding topic doesn't exist, returns `NOT_FOUND`. If the name is not provided in the request, the server will assign a random name for this subscription on the same project as the topic, conforming to the [resource name format] (https://cloud.google.com/pubsub/docs/admin#resource_names). The generated name is populated in the returned Subscription object. Note that for REST API requests, you must specify a name in the request.", + // "description": "Creates a subscription to a given topic. See the [resource name rules] (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). If the subscription already exists, returns `ALREADY_EXISTS`. If the corresponding topic doesn't exist, returns `NOT_FOUND`. If the name is not provided in the request, the server will assign a random name for this subscription on the same project as the topic, conforming to the [resource name format] (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). The generated name is populated in the returned Subscription object. Note that for REST API requests, you must specify a name in the request.", // "flatPath": "v1/projects/{projectsId}/subscriptions/{subscriptionsId}", // "httpMethod": "PUT", // "id": "pubsub.projects.subscriptions.create", @@ -8037,7 +8039,7 @@ type ProjectsTopicsCreateCall struct { // Create: Creates the given topic with the given name. See the // [resource name rules] -// (https://cloud.google.com/pubsub/docs/admin#resource_names). +// (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). // // - name: The name of the topic. It must have the format // "projects/{project}/topics/{topic}". `{topic}` must start with a @@ -8143,7 +8145,7 @@ func (c *ProjectsTopicsCreateCall) Do(opts ...googleapi.CallOption) (*Topic, err } return ret, nil // { - // "description": "Creates the given topic with the given name. See the [resource name rules] (https://cloud.google.com/pubsub/docs/admin#resource_names).", + // "description": "Creates the given topic with the given name. See the [resource name rules] (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names).", // "flatPath": "v1/projects/{projectsId}/topics/{topicsId}", // "httpMethod": "PUT", // "id": "pubsub.projects.topics.create", diff --git a/sqladmin/v1/sqladmin-api.json b/sqladmin/v1/sqladmin-api.json index f88b2c61c23..d4b4f83dad9 100644 --- a/sqladmin/v1/sqladmin-api.json +++ b/sqladmin/v1/sqladmin-api.json @@ -2165,7 +2165,7 @@ } } }, - "revision": "20231011", + "revision": "20231017", "rootUrl": "https://sqladmin.googleapis.com/", "schemas": { "AclEntry": { @@ -3789,12 +3789,12 @@ "type": "boolean" }, "stopAt": { - "description": "Optional. StopAt keyword for transaction log import, Applies to Cloud SQL for SQL Server only", + "description": "Optional. The timestamp when the import should stop. This timestamp is in the [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`). This field is equivalent to the STOPAT keyword and applies to Cloud SQL for SQL Server only.", "format": "google-datetime", "type": "string" }, "stopAtMark": { - "description": "Optional. StopAtMark keyword for transaction log import, Applies to Cloud SQL for SQL Server only", + "description": "Optional. The marked transaction where the import should stop. This field is equivalent to the STOPATMARK keyword and applies to Cloud SQL for SQL Server only.", "type": "string" }, "striped": { @@ -4101,11 +4101,11 @@ "description": "PSC settings for this instance." }, "requireSsl": { - "description": "LINT.IfChange(require_ssl_deprecate) Whether SSL/TLS connections over IP are enforced or not. If set to false, allow both non-SSL/non-TLS and SSL/TLS connections. For SSL/TLS connections, the client certificate will not be verified. If set to true, only allow connections encrypted with SSL/TLS and with valid client certificates. If you want to enforce SSL/TLS without enforcing the requirement for valid client certificates, use the `ssl_mode` flag instead of the legacy `require_ssl` flag. LINT.ThenChange(//depot/google3/java/com/google/storage/speckle/boss/admin/actions/InstanceUpdateAction.java:update_api_temp_fix)", + "description": "Whether SSL/TLS connections over IP are enforced. If set to false, then allow both non-SSL/non-TLS and SSL/TLS connections. For SSL/TLS connections, the client certificate won't be verified. If set to true, then only allow connections encrypted with SSL/TLS and with valid client certificates. If you want to enforce SSL/TLS without enforcing the requirement for valid client certificates, then use the `ssl_mode` flag instead of the legacy `require_ssl` flag.", "type": "boolean" }, "sslMode": { - "description": "Specify how SSL/TLS will be enforced in database connections. This flag is only supported for PostgreSQL. Use the legacy `require_ssl` flag for enforcing SSL/TLS in MySQL and SQL Server. But, for PostgreSQL, it is recommended to use the `ssl_mode` flag instead of the legacy `require_ssl` flag. To avoid the conflict between those flags in PostgreSQL, only the following value pairs are valid: ssl_mode=ALLOW_UNENCRYPTED_AND_ENCRYPTED, require_ssl=false; ssl_mode=ENCRYPTED_ONLY, require_ssl=false; ssl_mode=TRUSTED_CLIENT_CERTIFICATE_REQUIRED, require_ssl=true; Note that the value of `ssl_mode` gets priority over the value of the legacy `require_ssl`. For example, for the pair `ssl_mode=ENCRYPTED_ONLY, require_ssl=false`, the `ssl_mode=ENCRYPTED_ONLY` means \"only accepts SSL connection\", while the `require_ssl=false` means \"both non-SSL and SSL connections are allowed\". The database will respect `ssl_mode` in this case and only accept SSL connections.", + "description": "Specify how SSL/TLS is enforced in database connections. This flag is supported only for PostgreSQL. Use the legacy `require_ssl` flag for enforcing SSL/TLS in MySQL and SQL Server. But, for PostgreSQL, use the `ssl_mode` flag instead of the legacy `require_ssl` flag. To avoid the conflict between those flags in PostgreSQL, only the following value pairs are valid: * `ssl_mode=ALLOW_UNENCRYPTED_AND_ENCRYPTED` and `require_ssl=false` * `ssl_mode=ENCRYPTED_ONLY` and `require_ssl=false` * `ssl_mode=TRUSTED_CLIENT_CERTIFICATE_REQUIRED` and `require_ssl=true` Note that the value of `ssl_mode` gets priority over the value of the legacy `require_ssl`. For example, for the pair `ssl_mode=ENCRYPTED_ONLY, require_ssl=false`, the `ssl_mode=ENCRYPTED_ONLY` means \"only accepts SSL connection\", while the `require_ssl=false` means \"both non-SSL and SSL connections are allowed\". The database respects `ssl_mode` in this case and only accepts SSL connections.", "enum": [ "SSL_MODE_UNSPECIFIED", "ALLOW_UNENCRYPTED_AND_ENCRYPTED", @@ -4113,10 +4113,10 @@ "TRUSTED_CLIENT_CERTIFICATE_REQUIRED" ], "enumDescriptions": [ - "SSL mode is unknown.", - "Allow non-SSL/non-TLS and SSL/TLS connections. For SSL/TLS connections, the client certificate will not be verified. When this value is used, legacy `require_ssl` flag must be false or unset to avoid the conflict between values of two flags.", - "Only allow connections encrypted with SSL/TLS. When this value is used, legacy `require_ssl` flag must be false or unset to avoid the conflict between values of two flags.", - "Only allow connections encrypted with SSL/TLS and with valid client certificates. When this value is used, legacy `require_ssl` flag must be true or unset to avoid the conflict between values of two flags." + "The SSL mode is unknown.", + "Allow non-SSL/non-TLS and SSL/TLS connections. For SSL/TLS connections, the client certificate won't be verified. When this value is used, the legacy `require_ssl` flag must be false or cleared to avoid the conflict between values of two flags.", + "Only allow connections encrypted with SSL/TLS. When this value is used, the legacy `require_ssl` flag must be false or cleared to avoid the conflict between values of two flags.", + "Only allow connections encrypted with SSL/TLS and with valid client certificates. When this value is used, the legacy `require_ssl` flag must be true or cleared to avoid the conflict between values of two flags." ], "type": "string" } @@ -4669,10 +4669,6 @@ ], "type": "string" }, - "disallowCompromisedCredentials": { - "description": "Disallow credentials that have been previously compromised by a public data breach.", - "type": "boolean" - }, "disallowUsernameSubstring": { "description": "Disallow username as a part of the password.", "type": "boolean" @@ -5698,12 +5694,18 @@ "enum": [ "BUILT_IN", "CLOUD_IAM_USER", - "CLOUD_IAM_SERVICE_ACCOUNT" + "CLOUD_IAM_SERVICE_ACCOUNT", + "CLOUD_IAM_GROUP", + "CLOUD_IAM_GROUP_USER", + "CLOUD_IAM_GROUP_SERVICE_ACCOUNT" ], "enumDescriptions": [ "The database's built-in user type.", "Cloud IAM user.", - "Cloud IAM service account." + "Cloud IAM service account.", + "Cloud IAM Group non-login user.", + "Cloud IAM Group login user.", + "Cloud IAM Group login service account." ], "type": "string" } diff --git a/sqladmin/v1/sqladmin-gen.go b/sqladmin/v1/sqladmin-gen.go index d04e7ecf830..4b370acaead 100644 --- a/sqladmin/v1/sqladmin-gen.go +++ b/sqladmin/v1/sqladmin-gen.go @@ -2335,12 +2335,16 @@ type ImportContextBakImportOptions struct { // return. Applies only to Cloud SQL for SQL Server. RecoveryOnly bool `json:"recoveryOnly,omitempty"` - // StopAt: Optional. StopAt keyword for transaction log import, Applies - // to Cloud SQL for SQL Server only + // StopAt: Optional. The timestamp when the import should stop. This + // timestamp is in the RFC 3339 (https://tools.ietf.org/html/rfc3339) + // format (for example, `2023-10-01T16:19:00.094`). This field is + // equivalent to the STOPAT keyword and applies to Cloud SQL for SQL + // Server only. StopAt string `json:"stopAt,omitempty"` - // StopAtMark: Optional. StopAtMark keyword for transaction log import, - // Applies to Cloud SQL for SQL Server only + // StopAtMark: Optional. The marked transaction where the import should + // stop. This field is equivalent to the STOPATMARK keyword and applies + // to Cloud SQL for SQL Server only. StopAtMark string `json:"stopAtMark,omitempty"` // Striped: Whether or not the backup set being restored is striped. @@ -2923,49 +2927,46 @@ type IpConfiguration struct { // PscConfig: PSC settings for this instance. PscConfig *PscConfig `json:"pscConfig,omitempty"` - // RequireSsl: LINT.IfChange(require_ssl_deprecate) Whether SSL/TLS - // connections over IP are enforced or not. If set to false, allow both - // non-SSL/non-TLS and SSL/TLS connections. For SSL/TLS connections, the - // client certificate will not be verified. If set to true, only allow - // connections encrypted with SSL/TLS and with valid client - // certificates. If you want to enforce SSL/TLS without enforcing the - // requirement for valid client certificates, use the `ssl_mode` flag - // instead of the legacy `require_ssl` flag. - // LINT.ThenChange(//depot/google3/java/com/google/storage/speckle/boss/a - // dmin/actions/InstanceUpdateAction.java:update_api_temp_fix) + // RequireSsl: Whether SSL/TLS connections over IP are enforced. If set + // to false, then allow both non-SSL/non-TLS and SSL/TLS connections. + // For SSL/TLS connections, the client certificate won't be verified. If + // set to true, then only allow connections encrypted with SSL/TLS and + // with valid client certificates. If you want to enforce SSL/TLS + // without enforcing the requirement for valid client certificates, then + // use the `ssl_mode` flag instead of the legacy `require_ssl` flag. RequireSsl bool `json:"requireSsl,omitempty"` - // SslMode: Specify how SSL/TLS will be enforced in database - // connections. This flag is only supported for PostgreSQL. Use the - // legacy `require_ssl` flag for enforcing SSL/TLS in MySQL and SQL - // Server. But, for PostgreSQL, it is recommended to use the `ssl_mode` - // flag instead of the legacy `require_ssl` flag. To avoid the conflict - // between those flags in PostgreSQL, only the following value pairs are - // valid: ssl_mode=ALLOW_UNENCRYPTED_AND_ENCRYPTED, require_ssl=false; - // ssl_mode=ENCRYPTED_ONLY, require_ssl=false; - // ssl_mode=TRUSTED_CLIENT_CERTIFICATE_REQUIRED, require_ssl=true; Note - // that the value of `ssl_mode` gets priority over the value of the + // SslMode: Specify how SSL/TLS is enforced in database connections. + // This flag is supported only for PostgreSQL. Use the legacy + // `require_ssl` flag for enforcing SSL/TLS in MySQL and SQL Server. + // But, for PostgreSQL, use the `ssl_mode` flag instead of the legacy + // `require_ssl` flag. To avoid the conflict between those flags in + // PostgreSQL, only the following value pairs are valid: * + // `ssl_mode=ALLOW_UNENCRYPTED_AND_ENCRYPTED` and `require_ssl=false` * + // `ssl_mode=ENCRYPTED_ONLY` and `require_ssl=false` * + // `ssl_mode=TRUSTED_CLIENT_CERTIFICATE_REQUIRED` and `require_ssl=true` + // Note that the value of `ssl_mode` gets priority over the value of the // legacy `require_ssl`. For example, for the pair // `ssl_mode=ENCRYPTED_ONLY, require_ssl=false`, the // `ssl_mode=ENCRYPTED_ONLY` means "only accepts SSL connection", while // the `require_ssl=false` means "both non-SSL and SSL connections are - // allowed". The database will respect `ssl_mode` in this case and only - // accept SSL connections. + // allowed". The database respects `ssl_mode` in this case and only + // accepts SSL connections. // // Possible values: - // "SSL_MODE_UNSPECIFIED" - SSL mode is unknown. + // "SSL_MODE_UNSPECIFIED" - The SSL mode is unknown. // "ALLOW_UNENCRYPTED_AND_ENCRYPTED" - Allow non-SSL/non-TLS and // SSL/TLS connections. For SSL/TLS connections, the client certificate - // will not be verified. When this value is used, legacy `require_ssl` - // flag must be false or unset to avoid the conflict between values of + // won't be verified. When this value is used, the legacy `require_ssl` + // flag must be false or cleared to avoid the conflict between values of // two flags. // "ENCRYPTED_ONLY" - Only allow connections encrypted with SSL/TLS. - // When this value is used, legacy `require_ssl` flag must be false or - // unset to avoid the conflict between values of two flags. + // When this value is used, the legacy `require_ssl` flag must be false + // or cleared to avoid the conflict between values of two flags. // "TRUSTED_CLIENT_CERTIFICATE_REQUIRED" - Only allow connections // encrypted with SSL/TLS and with valid client certificates. When this - // value is used, legacy `require_ssl` flag must be true or unset to - // avoid the conflict between values of two flags. + // value is used, the legacy `require_ssl` flag must be true or cleared + // to avoid the conflict between values of two flags. SslMode string `json:"sslMode,omitempty"` // ForceSendFields is a list of field names (e.g. "AllocatedIpRange") to @@ -3653,10 +3654,6 @@ type PasswordValidationPolicy struct { // numeric, and non-alphanumeric characters. Complexity string `json:"complexity,omitempty"` - // DisallowCompromisedCredentials: Disallow credentials that have been - // previously compromised by a public data breach. - DisallowCompromisedCredentials bool `json:"disallowCompromisedCredentials,omitempty"` - // DisallowUsernameSubstring: Disallow username as a part of the // password. DisallowUsernameSubstring bool `json:"disallowUsernameSubstring,omitempty"` @@ -5159,6 +5156,10 @@ type User struct { // "BUILT_IN" - The database's built-in user type. // "CLOUD_IAM_USER" - Cloud IAM user. // "CLOUD_IAM_SERVICE_ACCOUNT" - Cloud IAM service account. + // "CLOUD_IAM_GROUP" - Cloud IAM Group non-login user. + // "CLOUD_IAM_GROUP_USER" - Cloud IAM Group login user. + // "CLOUD_IAM_GROUP_SERVICE_ACCOUNT" - Cloud IAM Group login service + // account. Type string `json:"type,omitempty"` // ServerResponse contains the HTTP response code and headers from the diff --git a/sqladmin/v1beta4/sqladmin-api.json b/sqladmin/v1beta4/sqladmin-api.json index bc860b41d29..665d895c06f 100644 --- a/sqladmin/v1beta4/sqladmin-api.json +++ b/sqladmin/v1beta4/sqladmin-api.json @@ -2165,7 +2165,7 @@ } } }, - "revision": "20231011", + "revision": "20231017", "rootUrl": "https://sqladmin.googleapis.com/", "schemas": { "AclEntry": { @@ -3789,12 +3789,12 @@ "type": "boolean" }, "stopAt": { - "description": "Optional. StopAt keyword for transaction log import, Applies to Cloud SQL for SQL Server only", + "description": "Optional. The timestamp when the import should stop. This timestamp is in the [RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-01T16:19:00.094`). This field is equivalent to the STOPAT keyword and applies to Cloud SQL for SQL Server only.", "format": "google-datetime", "type": "string" }, "stopAtMark": { - "description": "Optional. StopAtMark keyword for transaction log import, Applies to Cloud SQL for SQL Server only", + "description": "Optional. The marked transaction where the import should stop. This field is equivalent to the STOPATMARK keyword and applies to Cloud SQL for SQL Server only.", "type": "string" }, "striped": { @@ -4101,11 +4101,11 @@ "description": "PSC settings for this instance." }, "requireSsl": { - "description": "LINT.IfChange(require_ssl_deprecate) Whether SSL/TLS connections over IP are enforced or not. If set to false, allow both non-SSL/non-TLS and SSL/TLS connections. For SSL/TLS connections, the client certificate will not be verified. If set to true, only allow connections encrypted with SSL/TLS and with valid client certificates. If you want to enforce SSL/TLS without enforcing the requirement for valid client certificates, use the `ssl_mode` flag instead of the legacy `require_ssl` flag. LINT.ThenChange(//depot/google3/java/com/google/storage/speckle/boss/admin/actions/InstanceUpdateAction.java:update_api_temp_fix)", + "description": "Whether SSL/TLS connections over IP are enforced. If set to false, then allow both non-SSL/non-TLS and SSL/TLS connections. For SSL/TLS connections, the client certificate won't be verified. If set to true, then only allow connections encrypted with SSL/TLS and with valid client certificates. If you want to enforce SSL/TLS without enforcing the requirement for valid client certificates, then use the `ssl_mode` flag instead of the legacy `require_ssl` flag.", "type": "boolean" }, "sslMode": { - "description": "Specify how SSL/TLS will be enforced in database connections. This flag is only supported for PostgreSQL. Use the legacy `require_ssl` flag for enforcing SSL/TLS in MySQL and SQL Server. But, for PostgreSQL, it is recommended to use the `ssl_mode` flag instead of the legacy `require_ssl` flag. To avoid the conflict between those flags in PostgreSQL, only the following value pairs are valid: ssl_mode=ALLOW_UNENCRYPTED_AND_ENCRYPTED, require_ssl=false; ssl_mode=ENCRYPTED_ONLY, require_ssl=false; ssl_mode=TRUSTED_CLIENT_CERTIFICATE_REQUIRED, require_ssl=true; Note that the value of `ssl_mode` gets priority over the value of the legacy `require_ssl`. For example, for the pair `ssl_mode=ENCRYPTED_ONLY, require_ssl=false`, the `ssl_mode=ENCRYPTED_ONLY` means \"only accepts SSL connection\", while the `require_ssl=false` means \"both non-SSL and SSL connections are allowed\". The database will respect `ssl_mode` in this case and only accept SSL connections.", + "description": "Specify how SSL/TLS is enforced in database connections. This flag is supported only for PostgreSQL. Use the legacy `require_ssl` flag for enforcing SSL/TLS in MySQL and SQL Server. But, for PostgreSQL, use the `ssl_mode` flag instead of the legacy `require_ssl` flag. To avoid the conflict between those flags in PostgreSQL, only the following value pairs are valid: * `ssl_mode=ALLOW_UNENCRYPTED_AND_ENCRYPTED` and `require_ssl=false` * `ssl_mode=ENCRYPTED_ONLY` and `require_ssl=false` * `ssl_mode=TRUSTED_CLIENT_CERTIFICATE_REQUIRED` and `require_ssl=true` Note that the value of `ssl_mode` gets priority over the value of the legacy `require_ssl`. For example, for the pair `ssl_mode=ENCRYPTED_ONLY, require_ssl=false`, the `ssl_mode=ENCRYPTED_ONLY` means \"only accepts SSL connection\", while the `require_ssl=false` means \"both non-SSL and SSL connections are allowed\". The database respects `ssl_mode` in this case and only accepts SSL connections.", "enum": [ "SSL_MODE_UNSPECIFIED", "ALLOW_UNENCRYPTED_AND_ENCRYPTED", @@ -4113,10 +4113,10 @@ "TRUSTED_CLIENT_CERTIFICATE_REQUIRED" ], "enumDescriptions": [ - "SSL mode is unknown.", - "Allow non-SSL/non-TLS and SSL/TLS connections. For SSL/TLS connections, the client certificate will not be verified. When this value is used, legacy `require_ssl` flag must be false or unset to avoid the conflict between values of two flags.", - "Only allow connections encrypted with SSL/TLS. When this value is used, legacy `require_ssl` flag must be false or unset to avoid the conflict between values of two flags.", - "Only allow connections encrypted with SSL/TLS and with valid client certificates. When this value is used, legacy `require_ssl` flag must be true or unset to avoid the conflict between values of two flags." + "The SSL mode is unknown.", + "Allow non-SSL/non-TLS and SSL/TLS connections. For SSL/TLS connections, the client certificate won't be verified. When this value is used, the legacy `require_ssl` flag must be false or cleared to avoid the conflict between values of two flags.", + "Only allow connections encrypted with SSL/TLS. When this value is used, the legacy `require_ssl` flag must be false or cleared to avoid the conflict between values of two flags.", + "Only allow connections encrypted with SSL/TLS and with valid client certificates. When this value is used, the legacy `require_ssl` flag must be true or cleared to avoid the conflict between values of two flags." ], "type": "string" } @@ -4669,10 +4669,6 @@ ], "type": "string" }, - "disallowCompromisedCredentials": { - "description": "Disallow credentials that have been previously compromised by a public data breach.", - "type": "boolean" - }, "disallowUsernameSubstring": { "description": "Disallow username as a part of the password.", "type": "boolean" @@ -5696,12 +5692,18 @@ "enum": [ "BUILT_IN", "CLOUD_IAM_USER", - "CLOUD_IAM_SERVICE_ACCOUNT" + "CLOUD_IAM_SERVICE_ACCOUNT", + "CLOUD_IAM_GROUP", + "CLOUD_IAM_GROUP_USER", + "CLOUD_IAM_GROUP_SERVICE_ACCOUNT" ], "enumDescriptions": [ "The database's built-in user type.", "Cloud IAM user.", - "Cloud IAM service account." + "Cloud IAM service account.", + "Cloud IAM Group non-login user.", + "Cloud IAM Group login user.", + "Cloud IAM Group service account." ], "type": "string" } diff --git a/sqladmin/v1beta4/sqladmin-gen.go b/sqladmin/v1beta4/sqladmin-gen.go index 40760f62e03..4ffab485f33 100644 --- a/sqladmin/v1beta4/sqladmin-gen.go +++ b/sqladmin/v1beta4/sqladmin-gen.go @@ -2335,12 +2335,16 @@ type ImportContextBakImportOptions struct { // return. Applies only to Cloud SQL for SQL Server. RecoveryOnly bool `json:"recoveryOnly,omitempty"` - // StopAt: Optional. StopAt keyword for transaction log import, Applies - // to Cloud SQL for SQL Server only + // StopAt: Optional. The timestamp when the import should stop. This + // timestamp is in the RFC 3339 (https://tools.ietf.org/html/rfc3339) + // format (for example, `2023-10-01T16:19:00.094`). This field is + // equivalent to the STOPAT keyword and applies to Cloud SQL for SQL + // Server only. StopAt string `json:"stopAt,omitempty"` - // StopAtMark: Optional. StopAtMark keyword for transaction log import, - // Applies to Cloud SQL for SQL Server only + // StopAtMark: Optional. The marked transaction where the import should + // stop. This field is equivalent to the STOPATMARK keyword and applies + // to Cloud SQL for SQL Server only. StopAtMark string `json:"stopAtMark,omitempty"` // Striped: Whether or not the backup set being restored is striped. @@ -2923,49 +2927,46 @@ type IpConfiguration struct { // PscConfig: PSC settings for this instance. PscConfig *PscConfig `json:"pscConfig,omitempty"` - // RequireSsl: LINT.IfChange(require_ssl_deprecate) Whether SSL/TLS - // connections over IP are enforced or not. If set to false, allow both - // non-SSL/non-TLS and SSL/TLS connections. For SSL/TLS connections, the - // client certificate will not be verified. If set to true, only allow - // connections encrypted with SSL/TLS and with valid client - // certificates. If you want to enforce SSL/TLS without enforcing the - // requirement for valid client certificates, use the `ssl_mode` flag - // instead of the legacy `require_ssl` flag. - // LINT.ThenChange(//depot/google3/java/com/google/storage/speckle/boss/a - // dmin/actions/InstanceUpdateAction.java:update_api_temp_fix) + // RequireSsl: Whether SSL/TLS connections over IP are enforced. If set + // to false, then allow both non-SSL/non-TLS and SSL/TLS connections. + // For SSL/TLS connections, the client certificate won't be verified. If + // set to true, then only allow connections encrypted with SSL/TLS and + // with valid client certificates. If you want to enforce SSL/TLS + // without enforcing the requirement for valid client certificates, then + // use the `ssl_mode` flag instead of the legacy `require_ssl` flag. RequireSsl bool `json:"requireSsl,omitempty"` - // SslMode: Specify how SSL/TLS will be enforced in database - // connections. This flag is only supported for PostgreSQL. Use the - // legacy `require_ssl` flag for enforcing SSL/TLS in MySQL and SQL - // Server. But, for PostgreSQL, it is recommended to use the `ssl_mode` - // flag instead of the legacy `require_ssl` flag. To avoid the conflict - // between those flags in PostgreSQL, only the following value pairs are - // valid: ssl_mode=ALLOW_UNENCRYPTED_AND_ENCRYPTED, require_ssl=false; - // ssl_mode=ENCRYPTED_ONLY, require_ssl=false; - // ssl_mode=TRUSTED_CLIENT_CERTIFICATE_REQUIRED, require_ssl=true; Note - // that the value of `ssl_mode` gets priority over the value of the + // SslMode: Specify how SSL/TLS is enforced in database connections. + // This flag is supported only for PostgreSQL. Use the legacy + // `require_ssl` flag for enforcing SSL/TLS in MySQL and SQL Server. + // But, for PostgreSQL, use the `ssl_mode` flag instead of the legacy + // `require_ssl` flag. To avoid the conflict between those flags in + // PostgreSQL, only the following value pairs are valid: * + // `ssl_mode=ALLOW_UNENCRYPTED_AND_ENCRYPTED` and `require_ssl=false` * + // `ssl_mode=ENCRYPTED_ONLY` and `require_ssl=false` * + // `ssl_mode=TRUSTED_CLIENT_CERTIFICATE_REQUIRED` and `require_ssl=true` + // Note that the value of `ssl_mode` gets priority over the value of the // legacy `require_ssl`. For example, for the pair // `ssl_mode=ENCRYPTED_ONLY, require_ssl=false`, the // `ssl_mode=ENCRYPTED_ONLY` means "only accepts SSL connection", while // the `require_ssl=false` means "both non-SSL and SSL connections are - // allowed". The database will respect `ssl_mode` in this case and only - // accept SSL connections. + // allowed". The database respects `ssl_mode` in this case and only + // accepts SSL connections. // // Possible values: - // "SSL_MODE_UNSPECIFIED" - SSL mode is unknown. + // "SSL_MODE_UNSPECIFIED" - The SSL mode is unknown. // "ALLOW_UNENCRYPTED_AND_ENCRYPTED" - Allow non-SSL/non-TLS and // SSL/TLS connections. For SSL/TLS connections, the client certificate - // will not be verified. When this value is used, legacy `require_ssl` - // flag must be false or unset to avoid the conflict between values of + // won't be verified. When this value is used, the legacy `require_ssl` + // flag must be false or cleared to avoid the conflict between values of // two flags. // "ENCRYPTED_ONLY" - Only allow connections encrypted with SSL/TLS. - // When this value is used, legacy `require_ssl` flag must be false or - // unset to avoid the conflict between values of two flags. + // When this value is used, the legacy `require_ssl` flag must be false + // or cleared to avoid the conflict between values of two flags. // "TRUSTED_CLIENT_CERTIFICATE_REQUIRED" - Only allow connections // encrypted with SSL/TLS and with valid client certificates. When this - // value is used, legacy `require_ssl` flag must be true or unset to - // avoid the conflict between values of two flags. + // value is used, the legacy `require_ssl` flag must be true or cleared + // to avoid the conflict between values of two flags. SslMode string `json:"sslMode,omitempty"` // ForceSendFields is a list of field names (e.g. "AllocatedIpRange") to @@ -3653,10 +3654,6 @@ type PasswordValidationPolicy struct { // numeric, and non-alphanumeric characters. Complexity string `json:"complexity,omitempty"` - // DisallowCompromisedCredentials: Disallow credentials that have been - // previously compromised by a public data breach. - DisallowCompromisedCredentials bool `json:"disallowCompromisedCredentials,omitempty"` - // DisallowUsernameSubstring: Disallow username as a part of the // password. DisallowUsernameSubstring bool `json:"disallowUsernameSubstring,omitempty"` @@ -5154,6 +5151,10 @@ type User struct { // "BUILT_IN" - The database's built-in user type. // "CLOUD_IAM_USER" - Cloud IAM user. // "CLOUD_IAM_SERVICE_ACCOUNT" - Cloud IAM service account. + // "CLOUD_IAM_GROUP" - Cloud IAM Group non-login user. + // "CLOUD_IAM_GROUP_USER" - Cloud IAM Group login user. + // "CLOUD_IAM_GROUP_SERVICE_ACCOUNT" - Cloud IAM Group service + // account. Type string `json:"type,omitempty"` // ServerResponse contains the HTTP response code and headers from the diff --git a/texttospeech/v1/texttospeech-api.json b/texttospeech/v1/texttospeech-api.json index ddd0fd40f87..cfde004ce2e 100644 --- a/texttospeech/v1/texttospeech-api.json +++ b/texttospeech/v1/texttospeech-api.json @@ -318,7 +318,7 @@ } } }, - "revision": "20230803", + "revision": "20231023", "rootUrl": "https://texttospeech.googleapis.com/", "schemas": { "AudioConfig": { @@ -390,7 +390,8 @@ "type": "string" }, "reportedUsage": { - "description": "Optional. The usage of the synthesized audio to be reported.", + "deprecated": true, + "description": "Optional. Deprecated. The usage of the synthesized audio to be reported.", "enum": [ "REPORTED_USAGE_UNSPECIFIED", "REALTIME", diff --git a/texttospeech/v1/texttospeech-gen.go b/texttospeech/v1/texttospeech-gen.go index f4c1a4be598..4bea25d74f0 100644 --- a/texttospeech/v1/texttospeech-gen.go +++ b/texttospeech/v1/texttospeech-gen.go @@ -339,8 +339,8 @@ type CustomVoiceParams struct { // custom voice. Model string `json:"model,omitempty"` - // ReportedUsage: Optional. The usage of the synthesized audio to be - // reported. + // ReportedUsage: Optional. Deprecated. The usage of the synthesized + // audio to be reported. // // Possible values: // "REPORTED_USAGE_UNSPECIFIED" - Request with reported usage diff --git a/texttospeech/v1beta1/texttospeech-api.json b/texttospeech/v1beta1/texttospeech-api.json index c8e2166c9f1..3db17a2dcc6 100644 --- a/texttospeech/v1beta1/texttospeech-api.json +++ b/texttospeech/v1beta1/texttospeech-api.json @@ -261,7 +261,7 @@ } } }, - "revision": "20230803", + "revision": "20231023", "rootUrl": "https://texttospeech.googleapis.com/", "schemas": { "AudioConfig": { @@ -329,7 +329,8 @@ "type": "string" }, "reportedUsage": { - "description": "Optional. The usage of the synthesized audio to be reported.", + "deprecated": true, + "description": "Optional. Deprecated. The usage of the synthesized audio to be reported.", "enum": [ "REPORTED_USAGE_UNSPECIFIED", "REALTIME", diff --git a/texttospeech/v1beta1/texttospeech-gen.go b/texttospeech/v1beta1/texttospeech-gen.go index 0ee07cbc3da..799b80153c2 100644 --- a/texttospeech/v1beta1/texttospeech-gen.go +++ b/texttospeech/v1beta1/texttospeech-gen.go @@ -323,8 +323,8 @@ type CustomVoiceParams struct { // custom voice. Model string `json:"model,omitempty"` - // ReportedUsage: Optional. The usage of the synthesized audio to be - // reported. + // ReportedUsage: Optional. Deprecated. The usage of the synthesized + // audio to be reported. // // Possible values: // "REPORTED_USAGE_UNSPECIFIED" - Request with reported usage